[PATCH:libfontenc] Fail configure if zlib.h & -lz not found
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Nov 19 22:04:37 PST 2010
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=31595
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
configure.ac | 6 ++++--
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)
--
1.7.3.2
More information about the xorg-devel
mailing list