zlib
This commit is contained in:
33
packages/zlib/configure.in
Normal file
33
packages/zlib/configure.in
Normal file
@@ -0,0 +1,33 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_INIT(install-sh)
|
||||
AC_PREREQ([2.50])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_SUBST(TARGETS)
|
||||
AC_SUBST(PLTARGETS)
|
||||
|
||||
m4_include([../ac_swi_c.m4])
|
||||
|
||||
AC_CHECK_HEADERS(zlib.h zutil.h)
|
||||
AC_CHECK_LIB(z, zlibVersion,
|
||||
LIBS="$LIBS -lz"
|
||||
ZLIB=yes,
|
||||
ZLIB=no)
|
||||
|
||||
if test "$ZLIB" = yes; then
|
||||
TARGETS="zlib4pl.$SO"
|
||||
PLTARGETS=zlib.pl
|
||||
else
|
||||
TARGETS=nolib
|
||||
cat << EOF
|
||||
##################################################################
|
||||
# ERROR: Could not find library zlib (-lz). Dropped library(zlib)
|
||||
# Library zlib is available from http://www.zlib.net/
|
||||
# Most Unix/Linux distributions are shipped with binaries. Make
|
||||
# sure to have the development library installed.
|
||||
##################################################################
|
||||
EOF
|
||||
fi
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
Reference in New Issue
Block a user