comparison auto/lib/perl/conf @ 4866:fac1cc762969

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).
author Andrey Belov <defan@nginx.com>
date Thu, 27 Sep 2012 15:01:57 +0000
parents d620f497c50f
children f6777aef5b2f
comparison
equal deleted inserted replaced
4865:ca794c55c43f 4866:fac1cc762969
10 | sed -e 's/^This is perl, \(.*\)/\1/'` 10 | sed -e 's/^This is perl, \(.*\)/\1/'`
11 11
12 if test -n "$NGX_PERL_VER"; then 12 if test -n "$NGX_PERL_VER"; then
13 echo " + perl version: $NGX_PERL_VER" 13 echo " + perl version: $NGX_PERL_VER"
14 14
15 if [ "`echo 'use 5.006001; print "OK"' | $NGX_PERL 2>&1`" != OK ]; then 15 if [ "`$NGX_PERL -e 'use 5.006001; print "OK"'`" != "OK" ]; then
16 echo 16 echo
17 echo "$0: error: perl 5.6.1 or higher is required" 17 echo "$0: error: perl 5.6.1 or higher is required"
18 echo
19
20 exit 1;
21 fi
22
23 if [ "`$NGX_PERL -MExtUtils::Embed -e 'print "OK"'`" != "OK" ]; then
24 echo
25 echo "$0: error: perl module ExtUtils::Embed is required"
18 echo 26 echo
19 27
20 exit 1; 28 exit 1;
21 fi 29 fi
22 30