]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: make libpsl detection failure cause error
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2024 15:28:50 +0000 (16:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2024 08:09:51 +0000 (09:09 +0100)
To force users to explictily disable it if they really don't want it
used and make it harder to accidentally miss it.

--without-libpsl is the option to use if PSL is not wanted.

Closes #12661

configure.ac

index 79c98b3c4e9c2e143b5ce44c991c4327055f312c..39dc0963f7e8b3e3b2fe03e1560da589acd7ea1d 100644 (file)
@@ -2054,17 +2054,16 @@ dnl **********************************************************************
 
 AC_ARG_WITH(libpsl,
            AS_HELP_STRING([--without-libpsl],
-           [disable support for libpsl cookie checking]),
+           [disable support for libpsl]),
            with_libpsl=$withval,
            with_libpsl=yes)
+curl_psl_msg="no      (libpsl disabled)"
 if test $with_libpsl != "no"; then
   AC_SEARCH_LIBS(psl_builtin, psl,
     [curl_psl_msg="enabled";
      AC_DEFINE([USE_LIBPSL], [1], [PSL support enabled])
      ],
-    [curl_psl_msg="no      (libpsl not found)";
-     AC_MSG_WARN([libpsl was not found])
-     ]
+    [AC_MSG_ERROR([libpsl was not found]) ]
   )
 fi
 AM_CONDITIONAL([USE_LIBPSL], [test "$curl_psl_msg" = "enabled"])