comparison config/zlib.m4 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 dnl A function to check for zlib availability. zlib is used by default 1 dnl A function to check if the system's zlib library should be used. The
2 dnl unless the user configured with --disable-nls. 2 dnl builtin zlib dnl is used by default unless the user configured with
3 dnl --with-system-zlib.
3 4
4 AC_DEFUN([AM_ZLIB], 5 AC_DEFUN([AM_ZLIB],
5 [ 6 [
6 # See if the user specified whether he wants zlib support or not. 7 # Use the system's zlib library.
7 AC_ARG_WITH(zlib, 8 zlibdir="-L\$(top_builddir)/../zlib"
8 [ --with-zlib include zlib support (auto/yes/no) [default=auto]], 9 zlibinc="-I\$(top_srcdir)/../zlib"
9 [], [with_zlib=auto]) 10 AC_ARG_WITH(system-zlib,
10 11 [AS_HELP_STRING([--with-system-zlib], [use installed libz])],
11 if test "$with_zlib" != "no"; then 12 if test x$with_system_zlib = xyes ; then
12 AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) 13 zlibdir=
13 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then 14 zlibinc=
14 AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found])
15 fi
16 fi 15 fi
16 )
17 AC_SUBST(zlibdir)
18 AC_SUBST(zlibinc)
17 ]) 19 ])
18