summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-05 19:04:07 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-05 19:04:07 -0700
commit54b0411f06c4b84ae7efd110c7540edc688a991e (patch)
tree138f70807fc1a5d094e5cd65edced1974d1bd5fa
parentb7e75ca2ccd8733496e0e891e84dc3856840813d (diff)
configure: Use pkg-config to find zlib
Fixes: #6 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 2256bd5..7ff0bbb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,9 +38,6 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
-AC_CHECK_LIB(z, gzopen, [],
- [AC_MSG_ERROR([zlib is required, but was not found.])])
-
AC_ARG_WITH(bzip2,
AS_HELP_STRING([--with-bzip2],
[Support bzip2 compressed bitmap fonts]),
@@ -55,7 +52,7 @@ fi
AC_CHECK_FUNCS([vasprintf])
# Checks for pkg-config packages
-PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2)
+PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2 zlib)
PKG_CHECK_MODULES(X11, [xproto >= 7.0.25])
dnl Allow checking code with lint, sparse, etc.