Modified: freeswitch/trunk/Makefile.am (15716 => 15717)
--- freeswitch/trunk/Makefile.am 2009-11-30 12:20:55 UTC (rev 15716)
+++ freeswitch/trunk/Makefile.am 2009-11-30 12:31:24 UTC (rev 15717)
@@ -107,7 +107,6 @@
src/switch_time.c\
src/switch_odbc.c \
libs/stfu/stfu.c\
-src/switch_cpp.cpp\
src/g711.c\
src/switch_pcm.c\
libs/libteletone/src/libteletone_detect.c\
@@ -124,6 +123,10 @@
libs/libnatpmp/natpmp.c \
libs/libnatpmp/getgateway.c
+if ENABLE_CPP
+libfreeswitch_la_SOURCES += src/switch_cpp.cpp
+endif
+
library_includedir = $(PREFIX)/include
library_include_HEADERS = \
Modified: freeswitch/trunk/configure.in (15716 => 15717)
--- freeswitch/trunk/configure.in 2009-11-30 12:20:55 UTC (rev 15716)
+++ freeswitch/trunk/configure.in 2009-11-30 12:31:24 UTC (rev 15717)
@@ -270,6 +270,11 @@
fi
+AC_ARG_ENABLE(cpp,
+[AC_HELP_STRING([--disable-cpp],[build without cpp code])],[enable_cpp="$enableval"],[enable_cpp="yes"])
+
+AM_CONDITIONAL([ENABLE_CPP],[test "${enable_cpp}" = "yes"])
+
AC_ARG_ENABLE(zrtp,
[AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp="no"])
if test "x$enable_zrtp" = "xyes" ; then