when --without-<foo> is passed to the configure script, explicitly inform menuselect that the package was disabled by the user

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2008-11-03 12:26:35 +00:00
parent 9167a2b5e1
commit 191ffe5bce
2 changed files with 245 additions and 62 deletions

View File

@@ -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])