X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=configure.ac;h=647e44e353f0e32afb7f384b5eb0b8d18bc71f4e;hb=6d67d793f51af4e0a5a840751c15308ab76ba8b6;hp=9007a0eecc533a203668773ff3bc047306104500;hpb=baed30f057d4de0b0f4f9d12f6c58a4623acac95;p=wget diff --git a/configure.ac b/configure.ac index 9007a0ee..647e44e3 100644 --- a/configure.ac +++ b/configure.ac @@ -65,6 +65,9 @@ AC_ARG_WITH(ssl, [[ --without-ssl disable SSL autodetection --with-ssl={gnutls,openssl} specify the SSL backend. GNU TLS is the default.]]) +AC_ARG_WITH(zlib, +[[ --without-zlib disable zlib ]]) + AC_ARG_ENABLE(opie, [ --disable-opie disable support for opie or s/key FTP login], ENABLE_OPIE=$enableval, ENABLE_OPIE=yes) @@ -234,6 +237,10 @@ dnl dnl Checks for libraries. dnl +AS_IF([test x"$with_zlib" != xno], [ + AC_CHECK_LIB(z, compress) +]) + AS_IF([test x"$with_ssl" = xopenssl], [ dnl some versions of openssl use zlib compression AC_CHECK_LIB(z, compress) @@ -271,7 +278,7 @@ AS_IF([test x"$with_ssl" = xopenssl], [ AS_IF([test x$ssl_found != xyes], [ dnl Now actually check for -lssl if it wasn't already found - AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [ + AC_LIB_HAVE_LINKFLAGS([ssl], [crypto z], [ #include #include #include @@ -511,7 +518,19 @@ if test "X$iri" != "Xno"; then fi fi +dnl +dnl Check for UUID +dnl + +AC_CHECK_HEADER(uuid/uuid.h, + AC_CHECK_LIB(uuid, uuid_generate, + [LIBS="${LIBS} -luuid" + AC_DEFINE([HAVE_LIBUUID], 1, + [Define if libuuid is available.]) + ]) +) + dnl Needed by src/Makefile.am AM_CONDITIONAL([IRI_IS_ENABLED], [test "X$iri" != "Xno"])