From 534ad6f38f1e06551bccc407d991fd78b7209a20 Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 12 Oct 2002 03:10:04 +0000 Subject: [PATCH] Use AC_ARG_WITH instead of PHP_ARG_WITH. --- sapi/pi3web/config.m4 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sapi/pi3web/config.m4 b/sapi/pi3web/config.m4 index 49a25439fa..5b1ec78140 100644 --- a/sapi/pi3web/config.m4 +++ b/sapi/pi3web/config.m4 @@ -2,14 +2,17 @@ dnl dnl $Id$ dnl -PHP_ARG_WITH(pi3web,for Pi3Web Support, -[ --with-pi3web=DIR Build PHP as a module for use with Pi3Web.], no, no) +RESULT=no +AC_MSG_CHECKING(for Pi3Web support) -if test "$PHP_PI3WEB" != "no"; then - if test "$PHP_PI3WEB" = "yes"; then +AC_ARG_WITH(pi3web, +[ --with-pi3web=DIR Build PHP as Pi3Web module], +[ +if test "$withval" != "no"; then + if test "$withval" = "yes"; then PI3PATH=../.. # the default else - PI3PATH=$PHP_PI3WEB + PI3PATH=$withval fi test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI) PHP_BUILD_THREAD_SAFE @@ -20,7 +23,12 @@ if test "$PHP_PI3WEB" != "no"; then PHP_ADD_INCLUDE($PI3PATH/PHP4) PHP_SELECT_SAPI(pi3web, shared, pi3web_sapi.c) INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/" + RESULT=yes +else + RESULT=no fi +]) +AC_MSG_RESULT($RESULT) dnl ## Local Variables: dnl ## tab-width: 4 -- 2.40.0