autoconf: Check for zlib (lib and header)

This commit is contained in:
Heikki Hannikainen 2013-02-22 12:20:59 +02:00
parent 54d4dccda2
commit 4ecbae36b1
3 changed files with 306 additions and 184 deletions

View File

@ -30,6 +30,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Have libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
@ -81,6 +84,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT

474
src/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -223,6 +223,16 @@ if test "$ac_cv_search_clock_gettime" = "-lrt"; then
LIBRT="-lrt"
fi
dnl Check for zlib
AC_SUBST(LIBZ)
AC_SEARCH_LIBS([deflate], [z], [
AC_CHECK_HEADERS([zlib.h], AC_DEFINE(HAVE_LIBZ, 1, [Have libz]))
])
if test "$ac_cv_search_deflate" = "-lz"; then
LIBZ="-lz"
fi
dnl Output files
AC_CONFIG_FILES([Makefile])
AC_OUTPUT