[Freeswitch-svn] [commit] r8344 - freeswitch/trunk

Freeswitch SVN stkn at freeswitch.org
Fri May 9 20:35:35 EDT 2008


Author: stkn
Date: Fri May  9 20:35:34 2008
New Revision: 8344

Modified:
   freeswitch/trunk/configure.in

Log:
Fix --enable-debug / --disable-debug configure option (disable did not work)

Modified: freeswitch/trunk/configure.in
==============================================================================
--- freeswitch/trunk/configure.in	(original)
+++ freeswitch/trunk/configure.in	Fri May  9 20:35:34 2008
@@ -64,8 +64,6 @@
 fi
 
 
-AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
-
 # Optional Features
 
 AC_ARG_ENABLE(resample,
@@ -144,7 +142,7 @@
 
 #  Enable debugging
 AC_ARG_ENABLE(debug,
-[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enable_debug"],[enable_debug="yes"])
+[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enableval"],[enable_debug="yes"])
 
 if test "${enable_debug}" = "yes"; then
         AC_DEFINE([DEBUG],[],[Enable extra debugging.])
@@ -157,6 +155,8 @@
 
 fi
 
+AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
+
 
 # tweak platform specific flags
 case "$host" in



More information about the Freeswitch-svn mailing list