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
1.6.2
Kevin P. Fleming 17 years ago
parent 9167a2b5e1
commit 191ffe5bce

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

302
configure vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save