From da2d5b408c1975acd1d3dd39d5e0820343a9043b Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 3 Nov 2008 12:26:35 +0000 Subject: when --without- is passed to the configure script, explicitly inform menuselect that the package was disabled by the user git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153787 f38db490-d61c-443f-a65b-d21fe96a405b --- autoconf/ast_ext_lib.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'autoconf/ast_ext_lib.m4') diff --git a/autoconf/ast_ext_lib.m4 b/autoconf/ast_ext_lib.m4 index 57d83a5d1..35be41ffa 100644 --- a/autoconf/ast_ext_lib.m4 +++ b/autoconf/ast_ext_lib.m4 @@ -10,11 +10,15 @@ AC_DEFUN([AST_EXT_LIB_SETUP], [ $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 @@ AC_DEFUN([AST_EXT_LIB_SETUP], ;; esac ]) - PBX_$1=0 AC_SUBST([$1_LIB]) AC_SUBST([$1_INCLUDE]) AC_SUBST([$1_DIR]) -- cgit v1.2.3