From fdd8b8c9974b70993f1b97cc127ea9701449f065 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Sat, 1 Nov 2014 11:20:39 +0530 Subject: [PATCH] Fix libpsl configure code --- ChangeLog | 4 ++++ configure.ac | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e240196..dc137ca9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-01 Darshit Shah + + * configure.ac: Fix check for libpsl + 2014-11-01 Mike Frysinger * configure.ac: Use pkg-config to check for zlib presence and diff --git a/configure.ac b/configure.ac index c2fbda80..01d3eef5 100644 --- a/configure.ac +++ b/configure.ac @@ -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