Unset zlibdir/zlibinc only for --with-system-zlib
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Apr 2015 11:51:55 +0000 (04:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 1 Apr 2015 11:51:55 +0000 (04:51 -0700)
* zlib.m4 (AM_ZLIB): Unset zlibdir and zlibinc only for
--with-system-zlib.

config/ChangeLog
config/zlib.m4

index 945f080249c19b4cf04d19235ce3c5a116649fa0..6dc499891f6ae3c8f969114befdf4737471af994 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * zlib.m4 (AM_ZLIB): Unset zlibdir and zlibinc only for
+       --with-system-zlib.
+
 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
 
        * zlib.m4 (AM_ZLIB): Replace --with-zlib with --with-system-zlib.
index 366429568e99eb2dda46b6470a9ad20531994f96..aa3ac48692b6e2995730ebe25e5369049742cfb7 100644 (file)
@@ -9,8 +9,10 @@ AC_DEFUN([AM_ZLIB],
   zlibinc="-I\$(srcdir)/../zlib"
   AC_ARG_WITH(system-zlib,
   [AS_HELP_STRING([--with-system-zlib], [use installed libz])],
-  zlibdir=
-  zlibinc=
+  if test x$with_system_zlib = xyes ; then
+    zlibdir=
+    zlibinc=
+  fi
   )
   AC_SUBST(zlibdir)
   AC_SUBST(zlibinc)
This page took 0.025967 seconds and 4 git commands to generate.