From 1d55fd57864883c18eeb09350067c55afbeddb7e Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Thu, 15 Jun 2017 05:37:40 -0700 Subject: [PATCH] [configure] check that zlib is installed Summary: Infer won't compile without it. Reviewed By: jberdine Differential Revision: D5255391 fbshipit-source-id: c4aa78d --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3cad7fdfd..6ca1f5102 100644 --- a/configure.ac +++ b/configure.ac @@ -234,8 +234,11 @@ _ACEOF fi AC_MSG_RESULT([$USER_JAVA_HOME]) AC_SUBST([USER_JAVA_HOME]) -fi + AC_CHECK_LIB([z], [inflateEnd], [ZLIB_FOUND=yes], [ZLIB_FOUND=no]) + AS_IF([test x"$ZLIB_FOUND" = xno], [AC_MSG_ERROR([zlib not found.])]) +fi +# end if($enable_java_analyzers) AC_PATH_TOOL([ATDGEN], [atdgen], [no]) AC_ASSERT_PROG([atdgen], [$ATDGEN])