Changeset 2123

Show
Ignore:
Timestamp:
03/10/2008 07:15:27 PM (6 months ago)
Author:
jan
Message:

make configure checks for --with-pcre, --with-zlib and --with-bzip2 failing if the headers aren't found

Location:
branches/lighttpd-1.4.x
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/NEWS

    r2121 r2123  
    5050  * fix sending "408 - Timeout" instead of "410 - Gone" for timedout urls in mod_secdownload (#1440) 
    5151  * workaround #1587: require userdir.path to be set to enable mod_userdir (empty string allowed) 
     52  * make configure checks for --with-pcre, --with-zlib and --with-bzip2 failing if the headers aren't found 
    5253 
    5354- 1.4.18 - 2007-09-09 
  • branches/lighttpd-1.4.x/configure.in

    r1998 r2123  
    267267    ]) 
    268268    LIBS="$OLDLIBS" 
     269  else 
     270     AC_MSG_ERROR([pcre-config not found, install the pcre-devel package and build with --without-pcre]) 
    269271  fi 
    270272fi 
     
    272274AC_SUBST(PCRE_LIB) 
    273275 
    274 AC_CHECK_LIB(z, deflate, [ 
    275   AC_CHECK_HEADERS([zlib.h],[ 
    276     Z_LIB=-lz 
    277     AC_DEFINE([HAVE_LIBZ], [1], [libz]) 
    278     AC_DEFINE([HAVE_ZLIB_H], [1]) 
     276AC_MSG_CHECKING(for zlib support) 
     277AC_ARG_WITH(zlib, AC_HELP_STRING([--with-zlib],[Enable zlib support for mod_compress]), 
     278    [WITH_ZLIB=$withval],[WITH_ZLIB=yes]) 
     279AC_MSG_RESULT([$WITH_ZLIB]) 
     280 
     281if test "$WITH_ZLIB" != "no"; then 
     282  AC_CHECK_LIB(z, deflate, [ 
     283    AC_CHECK_HEADERS([zlib.h],[ 
     284      Z_LIB=-lz 
     285      AC_DEFINE([HAVE_LIBZ], [1], [libz]) 
     286      AC_DEFINE([HAVE_ZLIB_H], [1]) 
     287    ]) 
    279288  ]) 
    280 ]) 
     289  if test x$Z_LIB = x; then 
     290     AC_MSG_ERROR([zlib-headers and/or libs where not found, install them or build with --without-zlib]) 
     291  fi 
     292fi 
    281293AC_SUBST(Z_LIB) 
    282294 
     
    294306    ]) 
    295307  ]) 
     308  if test x$BZ_LIB = x; then 
     309     AC_MSG_ERROR([bzip2-headers and/or libs where not found, install them or build with --without-bzip2]) 
     310  fi 
    296311fi 
    297312AC_SUBST(BZ_LIB) 
     
    325340  AC_CHECK_FUNCS([FAMNoExists]) 
    326341  LIBS=$OLD_LIBS 
     342   
     343  if test x$FAM_LIBS = x; then 
     344     AC_MSG_ERROR([fam/gamin-headers and/or libs where not found, install them or build with --without-fam]) 
     345  fi 
    327346fi 
    328347