1
dnl Copyright (C) 2009 Sun Microsystems
2
dnl This file is free software; Sun Microsystems
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
6
#--------------------------------------------------------------------
8
#--------------------------------------------------------------------
11
AC_DEFUN([_PANDORA_SEARCH_LIBZ],[
12
AC_REQUIRE([AC_LIB_PREFIX])
14
AC_LIB_HAVE_LINKFLAGS(z,,
21
AM_CONDITIONAL(HAVE_LIBZ, [test "x${ac_cv_libz}" = "xyes"])
24
AC_DEFUN([_PANDORA_HAVE_LIBZ],[
27
[AS_HELP_STRING([--disable-libz],
28
[Build with libz support @<:@default=on@:>@])],
29
[ac_enable_libz="$enableval"],
30
[ac_enable_libz="yes"])
36
AC_DEFUN([PANDORA_HAVE_LIBZ],[
37
AC_REQUIRE([_PANDORA_HAVE_LIBZ])
40
AC_DEFUN([_PANDORA_REQUIRE_LIBZ],[
44
AS_IF([test x$ac_cv_libz = xno],[
45
AC_MSG_ERROR([libz is required for ${PACKAGE}. On Debian this can be found in zlib1g-dev. On RedHat this can be found in zlib-devel.])
49
AC_DEFUN([PANDORA_REQUIRE_LIBZ],[
50
AC_REQUIRE([_PANDORA_REQUIRE_LIBZ])