Fix libpsl configure code

This commit is contained in:
Darshit Shah 2014-11-01 11:20:39 +05:30
parent 35bfcb34b0
commit fdd8b8c997
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-11-01 Darshit Shah <darnir@gmail.com>
* configure.ac: Fix check for libpsl
2014-11-01 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Use pkg-config to check for zlib presence and

View File

@ -61,15 +61,17 @@ dnl
dnl Process features.
dnl
ENABLE_PSL=no
AC_ARG_WITH(libpsl,
AS_HELP_STRING([--without-libpsl],
[disable support for libpsl cookie checking.]),
[],
[with_libpsl=yes])
AS_IF([test "x$with_libpsl" = xyes],
[AC_SEARCH_LIBS(psl_builtin, psl,
[ENABLE_PSL=yes; AC_DEFINE([HAVE_LIBPSL], [1], [PSL Support Enabled])],
[AC_MSG_WARN(*** libpsl not found. Falling back to Wget builtin cookie checking.)])
])
[ENABLE_PSL=no; AC_MSG_WARN(*** libpsl not found. Falling back to Wget builtin cookie checking.)])],
[ENABLE_PSL=no])
AC_ARG_WITH(ssl,
[[ --without-ssl disable SSL autodetection