From 44cc399ed89e0a028a5836b8cd7e803fe2049c3e Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Wed, 10 Jun 2015 17:15:32 +0000 Subject: [PATCH] Check that PERL exists before running it. With hat: perl@ Sponsored by: Absolight --- www/mod_perl2/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/mod_perl2/Makefile b/www/mod_perl2/Makefile index 17a52a4f97c5..a5fe1d8e3a83 100644 --- a/www/mod_perl2/Makefile +++ b/www/mod_perl2/Makefile @@ -48,7 +48,12 @@ PLIST_SUB+= AP22="" # PR 200697 # Test whether the system uses a multithreaded perl +.if exists(${PERL}) HAS_ITHREADS!= ${PERL} -e 'use Config; print $$Config{useithreads} ? 1 : 0' +.else +# ASsume true when building packages5. +HAS_ITHREADS= 1 +.endif .if ${HAS_ITHREADS:M1} PLIST_SUB+= ITHREADS="" .else