From e0858b424a6bc876d274052b04e3820a955a9592 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sat, 13 Nov 2010 22:51:11 +0000 Subject: [PATCH] - Using ifelse() here is safer, also eases debugging generated configure. --- acinclude.m4 | 10 ++-------- 1 file 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) ]) -- 2.40.0