From 137aecfbf1e933e7228a4f62cc977eabffb2afbf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 1 May 2024 10:48:16 +0200 Subject: [PATCH] configure: error on missing perl if docs or manual is enabled Fixes #13508 Reported-by: Harmen Stoppels Closes #13514 --- configure.ac | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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) -- 2.47.3