[asterisk-commits] kpfleming: trunk r153787 - in /trunk: autoconf/ast_ext_lib.m4 configure

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 3 06:26:38 CST 2008


Author: kpfleming
Date: Mon Nov  3 06:26:35 2008
New Revision: 153787

URL: http://svn.digium.com/view/asterisk?view=rev&rev=153787
Log:
when --without-<foo> is passed to the configure script, explicitly inform menuselect that the package was disabled by the user


Modified:
    trunk/autoconf/ast_ext_lib.m4
    trunk/configure

Modified: trunk/autoconf/ast_ext_lib.m4
URL: http://svn.digium.com/view/asterisk/trunk/autoconf/ast_ext_lib.m4?view=diff&rev=153787&r1=153786&r2=153787
==============================================================================
--- trunk/autoconf/ast_ext_lib.m4 (original)
+++ trunk/autoconf/ast_ext_lib.m4 Mon Nov  3 06:26:35 2008
@@ -10,11 +10,15 @@
 [
     $1_DESCRIP="$2"
     $1_OPTION="$3"
+    PBX_$1=0
     AC_ARG_WITH([$3], AC_HELP_STRING([--with-$3=PATH],[use $2 files in PATH $4]),
     [
 	case ${withval} in
 	n|no)
 	USE_$1=no
+	# -1 is a magic value used by menuselect to know that the package
+	# was disabled, other than 'not found'
+	PBX_$1=-1
 	;;
 	y|ye|yes)
 	ac_mandatory_list="${ac_mandatory_list} $1"
@@ -25,7 +29,6 @@
 	;;
 	esac
     ])
-    PBX_$1=0
     AC_SUBST([$1_LIB])
     AC_SUBST([$1_INCLUDE])
     AC_SUBST([$1_DIR])




More information about the asterisk-commits mailing list