configure: fail if PSL is not disabled but not found

Regression since 9b3f67e (shipped in 8.7.0)
Reported-by: Ryan Carsten Schmidt
Fixes #14373
Assisted-by: Viktor Szakats
Closes #14379
This commit is contained in:
Daniel Stenberg 2024-08-04 16:38:11 +02:00
parent 7d45b52166
commit ed2850456c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
4 changed files with 5 additions and 8 deletions

View File

@ -585,6 +585,7 @@ jobs:
--disable-dependency-tracking \
--disable-docs --disable-manual \
--without-nghttp2 --without-libidn2 \
--without-libpsl \
${options}
else
[ '${{ matrix.config }}' = 'OpenSSL' ] && options+=' -DCURL_USE_OPENSSL=ON'

View File

@ -78,6 +78,7 @@ jobs:
mingw-w64-${{ matrix.env }}-${{ matrix.build }} make
mingw-w64-${{ matrix.env }}-openssl
mingw-w64-${{ matrix.env }}-libssh2
mingw-w64-${{ matrix.env }}-libpsl
- name: 'autotools autoreconf'
if: ${{ matrix.build == 'autotools' }}

View File

@ -2113,7 +2113,7 @@ if test X"$OPT_LIBPSL" != Xno; then
CLEANLIBS="$LIBS"
case "$OPT_LIBPSL" in
yes)
yes|off)
dnl --with-libpsl (without path) used
CURL_CHECK_PKGCONFIG(libpsl)
@ -2126,10 +2126,6 @@ if test X"$OPT_LIBPSL" != Xno; then
LIB_PSL="-lpsl"
fi
;;
off)
dnl no --with-libpsl option given, just check default places
LIB_PSL="-lpsl"
;;
*)
dnl use the given --with-libpsl spot
@ -2164,8 +2160,7 @@ if test X"$OPT_LIBPSL" != Xno; then
LIBS=$CLEANLIBS
)
if test X"$OPT_LIBPSL" != Xoff &&
test "$LIBPSL_ENABLED" != "1"; then
if test "$LIBPSL_ENABLED" != "1"; then
AC_MSG_ERROR([libpsl libs and/or directories were not found where specified!])
fi
fi

View File

@ -69,7 +69,7 @@ timestamp=$(grep -Eo 'SOURCE_DATE_EPOCH=[0-9]*' curl-"$curlver"/docs/RELEASE-TOO
pwd=$(pwd)
cd "curl-$curlver"
./configure --without-ssl
./configure --without-ssl --without-libpsl
./scripts/dmaketgz "$curlver" "$timestamp"
mv curl-"$curlver"* ../_tarballs/