aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-06-11 01:15:32 +0800
committermat <mat@FreeBSD.org>2015-06-11 01:15:32 +0800
commit8dfa56574a39f60eb1f2d6cc68d7df7f726a9403 (patch)
tree53a3504b9434c3f59d752ccfbcb93eebe5dd9797 /www
parent5965b0bb615800c6ed73f2c2e3effaab74da64dc (diff)
downloadfreebsd-ports-gnome-8dfa56574a39f60eb1f2d6cc68d7df7f726a9403.tar.gz
freebsd-ports-gnome-8dfa56574a39f60eb1f2d6cc68d7df7f726a9403.tar.zst
freebsd-ports-gnome-8dfa56574a39f60eb1f2d6cc68d7df7f726a9403.zip
Check that PERL exists before running it.
With hat: perl@ Sponsored by: Absolight
Diffstat (limited to 'www')
-rw-r--r--www/mod_perl2/Makefile5
1 files changed, 5 insertions, 0 deletions
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