1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

fixed configure.in, Daniel

This commit is contained in:
Daniel Veillard 2001-10-06 13:49:59 +00:00
parent 3fbe8e30c1
commit 259ff74692

View File

@ -45,6 +45,7 @@ dnl Checks for zlib library.
_cppflags="${CPPFLAGS}" _cppflags="${CPPFLAGS}"
_ldflags="${LDFLAGS}" _ldflags="${LDFLAGS}"
AC_ARG_WITH(zlib, AC_ARG_WITH(zlib,
[ --with-zlib[=DIR] use libz in DIR],[ [ --with-zlib[=DIR] use libz in DIR],[
if test "$withval" != "no" -a "$withval" != "yes"; then if test "$withval" != "no" -a "$withval" != "yes"; then
@ -52,7 +53,10 @@ AC_ARG_WITH(zlib,
CPPFLAGS="${CPPFLAGS} -I$withval/include" CPPFLAGS="${CPPFLAGS} -I$withval/include"
LDFLAGS="${LDFLAGS} -L$withval/lib" LDFLAGS="${LDFLAGS} -L$withval/lib"
fi fi
if test "$withval" != "no"; then ])
if test "$with_zlib" = "no"; then
echo "Disabling compression support"
else
AC_CHECK_HEADERS(zlib.h, AC_CHECK_HEADERS(zlib.h,
AC_CHECK_LIB(z, gzread,[ AC_CHECK_LIB(z, gzread,[
AC_DEFINE(HAVE_LIBZ) AC_DEFINE(HAVE_LIBZ)
@ -67,8 +71,7 @@ AC_ARG_WITH(zlib,
else else
Z_LIBS="-lz" Z_LIBS="-lz"
fi])) fi]))
fi fi
])
AC_SUBST(Z_CFLAGS) AC_SUBST(Z_CFLAGS)
AC_SUBST(Z_LIBS) AC_SUBST(Z_LIBS)
@ -244,7 +247,7 @@ dnl Aloow to disable various pieces
dnl dnl
AC_ARG_WITH(history, [ --with-history Add history support to xmllint shell(off)]) AC_ARG_WITH(history, [ --with-history Add history support to xmllint shell(off)])
if test "$with_ftp" = "yes" ; then if test "$with_history" = "yes" ; then
echo Enabling xmllint shell history echo Enabling xmllint shell history
dnl check for terminal library. this is a very cool solution dnl check for terminal library. this is a very cool solution
dnl from octave's configure.in dnl from octave's configure.in