configure: error on missing perl if docs or manual is enabled
Fixes #13508 Reported-by: Harmen Stoppels Closes #13514
This commit is contained in:
parent
5f4aaf8b66
commit
137aecfbf1
15
configure.ac
15
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 "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
|
||||
dnl if perl was not found then disable building docs
|
||||
AC_MSG_WARN([disabling documentation])
|
||||
BUILD_DOCS=0
|
||||
curl_docs_msg="no"
|
||||
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user