]> granicus.if.org Git - php/commitdiff
- Prevent resetting the PHP_*_DIR variables if already set.
authorfoobar <sniper@php.net>
Mon, 21 Oct 2002 02:46:13 +0000 (02:46 +0000)
committerfoobar <sniper@php.net>
Mon, 21 Oct 2002 02:46:13 +0000 (02:46 +0000)
ext/domxml/config.m4
ext/gd/config.m4
ext/mysql/config.m4
ext/pdf/config.m4

index 4a8ac216f8d14e23db90dfd7538ead5e4f785021..580690830297df72c6404ea6605a4fdf05fd70ff 100644 (file)
@@ -23,6 +23,11 @@ PHP_ARG_WITH(dom, for DOM support,
 [  --with-dom[=DIR]        Include DOM support (requires libxml >= 2.4.14).
                           DIR is the libxml install directory.])
 
+if test -z "$PHP_ZLIB_DIR"; then
+  PHP_ARG_WITH(zlib-dir, for the location of libz,
+  [  --with-zlib-dir[=DIR]     DOMXML: Set the path to libz install prefix.], no, no)
+fi
+
 if test "$PHP_DOM" != "no"; then
 
   DOMXML_DIR_ADD=""
index 3710d1488e64119f5140c7d1590f61c0adcae214..ad328a2e2629f6ee43ef26a8b2e90d12b3420897 100644 (file)
@@ -9,14 +9,20 @@ dnl
 PHP_ARG_WITH(gd, for GD support,
 [  --with-gd[=DIR]         Include GD support (DIR is GD's install dir).])
 
-PHP_ARG_WITH(jpeg-dir, for the location of libjpeg,
-[  --with-jpeg-dir=DIR       GD: Set the path to libjpeg install prefix.], no, no)
+if test -z "$PHP_JPEG_DIR"; then
+  PHP_ARG_WITH(jpeg-dir, for the location of libjpeg,
+  [  --with-jpeg-dir=DIR       GD: Set the path to libjpeg install prefix.], no, no)
+fi
 
-PHP_ARG_WITH(png-dir, for the location of libpng,
-[  --with-png-dir=DIR        GD: Set the path to libpng install prefix.], no, no)
+if test -z "$PHP_PNG_DIR"; then
+  PHP_ARG_WITH(png-dir, for the location of libpng,
+  [  --with-png-dir=DIR        GD: Set the path to libpng install prefix.], no, no)
+fi
 
-PHP_ARG_WITH(zlib-dir, for the location of libz, 
-[  --with-zlib-dir[=DIR]     GD: Set the path to libz install prefix.], no, no)
+if test -z "$PHP_ZLIB_DIR"; then
+  PHP_ARG_WITH(zlib-dir, for the location of libz, 
+  [  --with-zlib-dir[=DIR]     GD: Set the path to libz install prefix.], no, no)
+fi
 
 PHP_ARG_WITH(xpm-dir, for the location of libXpm,
 [  --with-xpm-dir=DIR        GD: Set the path to libXpm install prefix.], no, no)
index e0e0c19966ade9ba1b290f471d0d486296088eca..e59a0d51907e69569cc6c5975a09bcebf52e5257 100644 (file)
@@ -48,8 +48,14 @@ PHP_ARG_WITH(mysql, for MySQL support,
                           If unspecified, the bundled MySQL library will be used.], yes)
 
 PHP_ARG_WITH(mysql-sock, for specified location of the MySQL UNIX socket,
-[  --with-mysql-sock[=DIR] Location of the MySQL unix socket pointer.
-                          If unspecified, the default locations are searched.], no, no)
+[  --with-mysql-sock[=DIR]   MySQL: Location of the MySQL unix socket pointer.
+                            If unspecified, the default locations are searched.], no, no)
+
+if test -z "$PHP_ZLIB_DIR"; then
+  PHP_ARG_WITH(zlib-dir, for the location of libz, 
+  [  --with-zlib-dir[=DIR]     MySQL: Set the path to libz install prefix.], no, no)
+fi
+
 
 if test "$PHP_MYSQL" != "no"; then
   AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL])
index e0f40d33270fda46fb46998156724ea31877e8de..01ff4f918e214575497311a352ecc002f6e7021c 100644 (file)
@@ -5,18 +5,24 @@ dnl
 PHP_ARG_WITH(pdflib,for PDFlib support,
 [  --with-pdflib[=DIR]     Include PDFlib support.])
 
-PHP_ARG_WITH(jpeg-dir, for the location of libjpeg, 
-[  --with-jpeg-dir[=DIR]     PDFLIB: define libjpeg install directory.
+if test -z "$PHP_JPEG_DIR"; then
+  PHP_ARG_WITH(jpeg-dir, for the location of libjpeg, 
+  [  --with-jpeg-dir[=DIR]     PDFLIB: define libjpeg install directory.
                                      (OPTIONAL for PDFlib v4)], no, no)
+fi
 
-PHP_ARG_WITH(png-dir, for the location of libpng, 
-[  --with-png-dir[=DIR]      PDFLIB: define libpng install directory.
+if test -z "$PHP_PNG_DIR"; then
+  PHP_ARG_WITH(png-dir, for the location of libpng, 
+  [  --with-png-dir[=DIR]      PDFLIB: define libpng install directory.
                                      (OPTIONAL for PDFlib v4)], no, no)
+fi
 
-PHP_ARG_WITH(zlib-dir, for the location of libz, 
-[  --with-zlib-dir[=DIR]     PDFLIB: define libz install directory.
+if test -z "$PHP_ZLIB_DIR"; then
+  PHP_ARG_WITH(zlib-dir, for the location of libz, 
+  [  --with-zlib-dir[=DIR]     PDFLIB: define libz install directory.
                                      (OPTIONAL for PDFlib v4)], no, no)
+fi
+
 PHP_ARG_WITH(tiff-dir, for the location of libtiff,
 [  --with-tiff-dir[=DIR]     PDFLIB: define libtiff install directory.
                                      (OPTIONAL for PDFlib v4)], no, no)
@@ -121,4 +127,3 @@ See config.log for more information.
     ;;
   esac
 fi
-