From 48fb8ba3cd18e9b81d0992531621fa9aed0d2a27 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 19 Dec 1999 13:59:29 +0000 Subject: [PATCH] Refine PEAR option. Since it does not reference anything external, it should be AC_ARG_ENABLE instead of AC_ARG_WITH. --- configure.in | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/configure.in b/configure.in index fbfe83eb0a..22ffe72b3c 100644 --- a/configure.in +++ b/configure.in @@ -605,19 +605,20 @@ AC_ARG_ENABLE(low-memory, ]) AC_MSG_RESULT($PHP_LOW_MEMORY) -AC_MSG_CHECKING(whether to install PEAR) -AC_ARG_WITH(pear, -[ --without-pear Do not install PEAR],[ - if test "$withval" = "yes"; then - PEAR_DIR=pear - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi +AC_ARG_ENABLE(pear, +[ --disable-pear Do not install PEAR],[ + PHP_PEAR=$enableval ],[ - PEAR_DIR=pear - AC_MSG_RESULT(yes) + PHP_PEAR=yes ]) + +AC_MSG_CHECKING(whether to install PEAR) +AC_MSG_RESULT($PHP_PEAR) + +if test "$PHP_PEAR" = "yes"; then + PEAR_DIR=pear +fi + AC_SUBST(PEAR_DIR) PHP_SAPI=cgi -- 2.50.1