X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=853f22bcfa840644dbfac2388d3a8ebae2f574f9;hb=f411d708e7db110702db21a109c85f045070d713;hp=befff34f11efe7b0658a39132f1ebc81e7fcc55c;hpb=912f3dd1f6cf864162234ee28ee599f5b543b290;p=pspp diff --git a/configure.ac b/configure.ac index befff34f11..853f22bcfa 100644 --- a/configure.ac +++ b/configure.ac @@ -176,16 +176,8 @@ PKG_CHECK_MODULES( PSPP_OPTIONAL_PREREQ([libxml2])]) dnl Check for zlib. -AC_SEARCH_LIBS( - [gzopen], [z], - [HAVE_ZLIB=yes], - [HAVE_ZLIB=no - PSPP_OPTIONAL_PREREQ([zlib])]) -AC_CHECK_HEADERS( - [zlib.h], - [], - [HAVE_ZLIB=no - PSPP_OPTIONAL_PREREQ([zlib])]) +AC_SEARCH_LIBS([gzopen], [z], [], [PSPP_REQUIRED_PREREQ([zlib])]) +AC_CHECK_HEADERS([zlib.h], [], [PSPP_REQUIRED_PREREQ([zlib])]) dnl Avoid interference between zlib's crc32() function and gnulib's dnl crc32() function, which have different signatures. PSPP calls @@ -200,7 +192,7 @@ AC_DEFINE( [Avoid making zlib call gnulib's crc32() instead of its own.]) dnl Gnumeric and OpenDocument (read) support requires libxml2 and zlib. -if test $HAVE_LIBXML2 = yes && test $HAVE_ZLIB = yes; then +if test $HAVE_LIBXML2 = yes; then GNM_READ_SUPPORT=yes ODF_READ_SUPPORT=yes AC_DEFINE(