summaryrefslogtreecommitdiffhomepage
path: root/auto/lib/perl
diff options
context:
space:
mode:
authorAndrey Belov <defan@nginx.com>2012-09-27 15:01:57 +0000
committerAndrey Belov <defan@nginx.com>2012-09-27 15:01:57 +0000
commit181d58f9c9e6b8c2d1642eab35696e62438b5ee0 (patch)
tree18340423271012727f83c8e79edd30ee39117c0f /auto/lib/perl
parent8a1a54b0d6bca397f77503fc178838847d55f9dc (diff)
downloadnginx-181d58f9c9e6b8c2d1642eab35696e62438b5ee0.tar.gz
nginx-181d58f9c9e6b8c2d1642eab35696e62438b5ee0.tar.bz2
Configure: additional test for ExtUtils::Embed perl module presence.
Now perl configure will correctly fail if ExtUtils::Embed perl module is not present in the system (found on Amazon Linux AMI, as of release 2012.03).
Diffstat (limited to 'auto/lib/perl')
-rw-r--r--auto/lib/perl/conf10
1 files changed, 9 insertions, 1 deletions
diff --git a/auto/lib/perl/conf b/auto/lib/perl/conf
index 52c7084e9..5ce6c91e6 100644
--- a/auto/lib/perl/conf
+++ b/auto/lib/perl/conf
@@ -12,7 +12,7 @@ NGX_PERL_VER=`$NGX_PERL -v 2>&1 | grep '^This is perl' 2>&1 \
if test -n "$NGX_PERL_VER"; then
echo " + perl version: $NGX_PERL_VER"
- if [ "`echo 'use 5.006001; print "OK"' | $NGX_PERL 2>&1`" != OK ]; then
+ if [ "`$NGX_PERL -e 'use 5.006001; print "OK"'`" != "OK" ]; then
echo
echo "$0: error: perl 5.6.1 or higher is required"
echo
@@ -20,6 +20,14 @@ if test -n "$NGX_PERL_VER"; then
exit 1;
fi
+ if [ "`$NGX_PERL -MExtUtils::Embed -e 'print "OK"'`" != "OK" ]; then
+ echo
+ echo "$0: error: perl module ExtUtils::Embed is required"
+ echo
+
+ exit 1;
+ fi
+
NGX_PERL_CFLAGS="$CFLAGS `$NGX_PERL -MExtUtils::Embed -e ccopts`"
NGX_PM_CFLAGS=`$NGX_PERL -MExtUtils::Embed -e ccopts`