summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2010-11-13 22:51:11 +0000
committerJani Taskinen <jani@php.net>2010-11-13 22:51:11 +0000
commite0858b424a6bc876d274052b04e3820a955a9592 (patch)
tree8398697a7242d5e9060798dcb1cc5cd6e9f628ff /acinclude.m4
parenta0ccf0f14a630f9e806e8fbcae0d0dce875aac81 (diff)
downloadphp-git-e0858b424a6bc876d274052b04e3820a955a9592.tar.gz
- Using ifelse() here is safer, also eases debugging generated configure.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m410
1 files changed, 2 insertions, 8 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2d5d57132c..a94dd6c23b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -711,10 +711,7 @@ ifelse([$2],,,[AC_MSG_CHECKING([$2])])
AC_ARG_WITH($1,[$3],$5=[$]withval,
[
$5=ifelse($4,,no,$4)
-
- if test "$PHP_ENABLE_ALL" && test "$6" = "yes"; then
- $5=$PHP_ENABLE_ALL
- fi
+ ifelse($6,yes,[test "$PHP_ENABLE_ALL" && $5=$PHP_ENABLE_ALL])
])
PHP_ARG_ANALYZE($5,[$2],$6)
])
@@ -739,10 +736,7 @@ ifelse([$2],,,[AC_MSG_CHECKING([$2])])
AC_ARG_ENABLE($1,[$3],$5=[$]enableval,
[
$5=ifelse($4,,no,$4)
-
- if test "$PHP_ENABLE_ALL" && test "$6" = "yes"; then
- $5=$PHP_ENABLE_ALL
- fi
+ ifelse($6,yes,[test "$PHP_ENABLE_ALL" && $5=$PHP_ENABLE_ALL])
])
PHP_ARG_ANALYZE($5,[$2],$6)
])