1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-01 22:28:02 +02:00

* configure.ac: Locate libbz2 for bzip2 compression support.

This commit is contained in:
David Shaw 2003-10-31 04:29:38 +00:00
parent 38282fca0c
commit ba38a9c7b7
2 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-10-30 David Shaw <dshaw@jabberwocky.com>
* configure.ac: Locate libbz2 for bzip2 compression support.
2003-10-27 David Shaw <dshaw@jabberwocky.com>
* configure.ac (DLLIBS): Work properly on platforms where dlopen

View File

@ -835,8 +835,32 @@ if test "$use_local_zlib" = yes ; then
else
AM_CONDITIONAL(ENABLE_LOCAL_ZLIB, false)
fi
AC_SUBST(ZLIBS)
_cppflags="${CPPFLAGS}"
_ldflags="${LDFLAGS}"
AC_ARG_WITH(bzip2,
AC_HELP_STRING([--with-bzip2=DIR],[look for bzip2 in DIR]),
[
if test -d "$withval" ; then
CPPFLAGS="${CPPFLAGS} -I$withval/include"
LDFLAGS="${LDFLAGS} -L$withval/lib"
fi
],withval="")
if test "$withval" != no ; then
AC_CHECK_HEADER(bzlib.h,
AC_CHECK_LIB(bz2,BZ2_bzCompressInit,
[
ZLIBS="$ZLIBS -lbz2"
AC_DEFINE(HAVE_BZIP2,1,
[Defined if the bz2 compression library is available])
],
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}),
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags})
fi
AM_CONDITIONAL(ENABLE_BZIP2_SUPPORT,test x"$have_bz2" = "xyes")
AC_SUBST(ZLIBS)
# Allow users to append something to the version string without
# flagging it as development version. The user version parts is