Fallback on checking for libz manualy if zlib.pc isn't available.
authorberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Feb 2014 13:48:53 +0000 (13:48 +0000)
committerberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Feb 2014 13:48:53 +0000 (13:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=127061

Patch by Koop Mast <kwm@FreeBSD.org> on 2014-02-27
Reviewed by Gustavo Noronha Silva.

* Source/autotools/FindDependencies.m4:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164796 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/autotools/FindDependencies.m4

index 2657c10..e3fbe90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2014-02-27  Koop Mast  <kwm@FreeBSD.org>
+
+        Fallback on checking for libz manualy if zlib.pc isn't available.
+        https://bugs.webkit.org/show_bug.cgi?id=127061
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * Source/autotools/FindDependencies.m4:
+
 2014-02-25  Sergio Villar Senin  <svillar@igalia.com>
 
         [CSS Grid Layout] Add ENABLE flag
index 1e7de16..bd14f10 100644 (file)
@@ -129,7 +129,10 @@ esac
 AC_SUBST([UNICODE_CFLAGS])
 AC_SUBST([UNICODE_LIBS])
 
-PKG_CHECK_MODULES([ZLIB], [zlib])
+PKG_CHECK_MODULES([ZLIB], [zlib], [], [
+       AC_CHECK_LIB([z], [gzread], ,
+         [AC_MSG_ERROR([unable to find the libz library])]
+       )])
 AC_SUBST([ZLIB_CFLAGS])
 AC_SUBST([ZLIB_LIBS])