Correct configure option
This commit is contained in:
parent
878b0e9e45
commit
d5b806f4be
@ -67,7 +67,7 @@ fi
|
||||
dnl Include support for regex in upstream proxies?
|
||||
AH_TEMPLATE([UPSTREAM_REGEX],
|
||||
[Include support for connecting to an upstream proxy based on a regex.])
|
||||
TP_ARG_ENABLE(upstream_regex,
|
||||
TP_ARG_ENABLE(upstream-regex,
|
||||
[Enable upstream proxying (default is YES)],
|
||||
yes)
|
||||
if test x"$upstream_regex_enabled" = x"yes"; then
|
||||
|
@ -10,10 +10,11 @@ dnl This macro also defines on variable in the form "option_enabled"
|
||||
dnl set to either "yes" or "no".
|
||||
dnl
|
||||
AC_DEFUN([TP_ARG_ENABLE],
|
||||
[AC_ARG_ENABLE([$1],
|
||||
[var=`echo $1 | tr - _`
|
||||
AC_ARG_ENABLE([$1],
|
||||
AS_HELP_STRING([--enable-$1], [$2]),
|
||||
[case "${enableval}" in
|
||||
yes) $1_enabled=yes ;;
|
||||
no) $1_enabled=no ;;
|
||||
yes) eval ${var}_enabled=yes ;;
|
||||
no) eval ${var}_enabled=no ;;
|
||||
*) AC_MSG_ERROR([bad value ${enableval} for --enable-$1]) ;;
|
||||
esac],[$1_enabled=$3])])
|
||||
esac],[eval ${var}_enabled=$3])])
|
||||
|
Loading…
Reference in New Issue
Block a user