From: Daniel Stenberg Date: Wed, 1 May 2024 08:48:16 +0000 (+0200) Subject: configure: error on missing perl if docs or manual is enabled X-Git-Tag: curl-8_8_0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=137aecfbf1e933e7228a4f62cc977eabffb2afbf;p=thirdparty%2Fcurl.git configure: error on missing perl if docs or manual is enabled Fixes #13508 Reported-by: Harmen Stoppels Closes #13514 --- diff --git a/configure.ac b/configure.ac index 430b7dba34..376bb2105b 100644 --- a/configure.ac +++ b/configure.ac @@ -3823,15 +3823,14 @@ AC_CHECK_DECL([fseeko], CURL_CHECK_NONBLOCKING_SOCKET -AC_PATH_PROG( PERL, perl, , - $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) -AC_SUBST(PERL) - -if test -z "$PERL"; then - dnl if perl was not found then disable building docs - AC_MSG_WARN([disabling documentation]) - BUILD_DOCS=0 - curl_docs_msg="no" +if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0"; then + AC_PATH_PROG( PERL, perl, , + $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin ) + AC_SUBST(PERL) + + if test -z "$PERL"; then + AC_MSG_ERROR([perl was not found, needed for docs and manual]) + fi fi dnl set variable for use in automakefile(s)