Better to check for zlib using autoconf and not pkg-config.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 autogen.sh   |    7 -------
 configure.ac |    2 +-
 2 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 2aff2b6..c4d17af 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -23,10 +23,3 @@ aclocal $ACLOCAL_INCLUDES
 ${LIBTOOLIZE} --automake --copy --force
 automake --foreign --add-missing
 autoconf
-
-if [ `uname` == "Darwin" ]; then
-    echo -e "\n\n"
-    echo "Before you run configure, you'll need to tell pkg-config about zlib"
-    echo 'export ZLIB_CFLAGS=" "'
-    echo 'export ZLIB_LIBS=" "'
-fi
diff --git a/configure.ac b/configure.ac
index 753474d..6673db4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,7 @@ AC_ARG_WITH([openssl],
 AC_PROG_LIBTOOL
 
 PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
-PKG_CHECK_MODULES(ZLIB, zlib)
+AC_CHECK_LIB(zlib, zlib)
 
 libproxy_hdr=no
 AC_CHECK_HEADER([libproxy.h],
-- 
1.7.3.2


--=-=-=--



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux