summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-19 22:03:22 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-11-21 18:43:58 -0800
commit0e3929c939d3f6c2ca79defcad8d2cceb3dba5df (patch)
tree0630c426a652ba67e0631f4909a0c26710d8f9d6 /configure.ac
parenta52174d1a7562a656559f9bb728a80982b814043 (diff)
Fail configure if zlib.h & -lz not found
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=31595 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fb0b1af..9419909 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,8 +48,10 @@ XORG_FONT_MACROS_VERSION(1.1)
XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings])
# zlib
-
-AC_CHECK_LIB(z, gzclose)
+AC_CHECK_HEADER([zlib.h], [],
+ AC_MSG_FAILURE([zlib.h is required to compile libfontenc]))
+AC_CHECK_LIB(z, gzclose, [],
+ AC_MSG_FAILURE([zlib is required to compile libfontenc]))
# Check for dependencies
PKG_CHECK_MODULES(FONTENC, xproto)