]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: error on missing perl if docs or manual is enabled
authorDaniel Stenberg <daniel@haxx.se>
Wed, 1 May 2024 08:48:16 +0000 (10:48 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 May 2024 07:45:22 +0000 (09:45 +0200)
Fixes #13508
Reported-by: Harmen Stoppels
Closes #13514

configure.ac

index 430b7dba34e719b723fad31bcec27023d460a144..376bb2105b9248eaa2ccb873c8437743757bd0b7 100644 (file)
@@ -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)