summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Karppinen <markonen@php.net>2002-01-27 03:37:02 +0000
committerMarko Karppinen <markonen@php.net>2002-01-27 03:37:02 +0000
commitfc3a59c85fb6b7a15220ffcea900b8b0af1f2471 (patch)
tree23948e17a9142e6b95f9b549e62c4c70d5a35131
parent83721f0142142c87599d68e7665669f78e299498 (diff)
downloadphp-git-fc3a59c85fb6b7a15220ffcea900b8b0af1f2471.tar.gz
Enable developers to use PHP_ARG_ENABLE and PHP_ARG_WITH silently
to maintain legacy configure options without clutter in the configure help and checking output. # Hopefully this encourages module writers to finally adopt # standard naming conventions for their configure options!
-rw-r--r--acinclude.m416
1 files changed, 11 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d03204ed16..cb99efb3b7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -370,7 +370,9 @@ if test "$php_always_shared" = "yes"; then
test "[$]$1" = "no" && $1=yes
fi
-AC_MSG_RESULT([$ext_output])
+if test -n "$2"; then
+ AC_MSG_RESULT([$ext_output])
+fi
])
dnl
@@ -384,9 +386,11 @@ PHP_REAL_ARG_WITH([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z0-9-,A-Z0-9_))
])
AC_DEFUN(PHP_REAL_ARG_WITH,[
-AC_MSG_CHECKING([$2])
+if test -n "$2"; then
+ AC_MSG_CHECKING([$2])
+fi
AC_ARG_WITH($1,[$3],$5=[$]withval,$5=ifelse($4,,no,$4))
-PHP_ARG_ANALYZE($5)
+PHP_ARG_ANALYZE($5,[$2])
])
dnl
@@ -400,9 +404,11 @@ PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_))
])
AC_DEFUN(PHP_REAL_ARG_ENABLE,[
-AC_MSG_CHECKING([$2])
+if test -n "$2"; then
+ AC_MSG_CHECKING([$2])
+fi
AC_ARG_ENABLE($1,[$3],$5=[$]enableval,$5=ifelse($4,,no,$4))
-PHP_ARG_ANALYZE($5)
+PHP_ARG_ANALYZE($5,[$2])
])
AC_DEFUN(PHP_MODULE_PTR,[