]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - config/zlib.m4
[gdb/symtab] Make gold index workaround more precise
[thirdparty/binutils-gdb.git] / config / zlib.m4
CommitLineData
fa1f5da0
L
1dnl A function to check if the system's zlib library should be used. The
2dnl builtin zlib dnl is used by default unless the user configured with
3dnl --with-system-zlib.
2e078300
JB
4
5AC_DEFUN([AM_ZLIB],
6[
fa1f5da0 7 # Use the system's zlib library.
df7f7547
L
8 zlibdir="-L\$(top_builddir)/../zlib"
9 zlibinc="-I\$(top_srcdir)/../zlib"
fa1f5da0
L
10 AC_ARG_WITH(system-zlib,
11 [AS_HELP_STRING([--with-system-zlib], [use installed libz])],
031f1448
L
12 if test x$with_system_zlib = xyes ; then
13 zlibdir=
14 zlibinc=
15 fi
fa1f5da0
L
16 )
17 AC_SUBST(zlibdir)
18 AC_SUBST(zlibinc)
2e078300 19])