From 271617483aff46e0e82fcfe2849ea050c6ca2cfd Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Wed, 7 Feb 2001 16:01:29 +0000 Subject: [PATCH] Improve use of $withval. This also cures the problem of adding -Lyes/lib to $LIBS. --- ext/domxml/config.m4 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4 index 3ded83a560..d2e874d059 100644 --- a/ext/domxml/config.m4 +++ b/ext/domxml/config.m4 @@ -56,7 +56,6 @@ if test "$PHP_DOM" != "no"; then AC_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) if test $HAVE_ZLIB; then - old_withval=$withval AC_MSG_CHECKING([for zlib (needed by DOM support)]) AC_ARG_WITH(zlib-dir, [ --with-zlib-dir[=DIR] zlib dir for libxml or include zlib support],[ @@ -71,10 +70,9 @@ if test "$PHP_DOM" != "no"; then AC_MSG_RESULT(no) AC_MSG_WARN(If configure fails try --with-zlib=) ]) - withval=$old_withval else echo "checking for libz needed by libxml ... already zlib support" - LIBS="$LIBS -L$withval/lib -lz" + LIBS="$LIBS -lz" fi AC_DEFINE(HAVE_DOMXML,1,[ ]) -- 2.50.1