Fix check for perl version and drop minimum perl version back to 5.000 r=axel@pike.org a=leaf bug #52065

git-svn-id: svn://10.0.0.236/trunk@79355 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
2000-09-15 19:40:51 +00:00
parent b70553ceea
commit 8b82eecf54
2 changed files with 386 additions and 382 deletions

750
mozilla/configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -80,7 +80,7 @@ dnl Set the minimum version of toolkit libs used by mozilla
dnl ========================================================
GTK_VERSION=1.2.0
LIBIDL_VERSION=0.6.3
PERL_VERSION=5.005
PERL_VERSION=5.000
dnl Set various checks
dnl ========================================================
@@ -294,14 +294,16 @@ AC_PATH_PROGS(PERL, perl5 perl )
if test -z "$PERL"; then
AC_MSG_ERROR([perl not found in \$PATH])
fi
AC_MSG_CHECKING([for required perl version])
_perl_version=`$PERL -V:apiversion`
if test `echo $_perl_version | grep -c $PERL_VERSION` = 0; then
AC_MSG_WARN([Perl 5.005 or higher is required. Disabling jar packaging])
MOZ_DISABLE_JAR_PACKAGING=1
else
AC_MSG_RESULT([Found 5.005 api])
AC_MSG_CHECKING([for minimum required perl version $PERL_VERSION])
_perl_version=`$PERL -e 'use Config; print "$Config{version}"; if ($Config{version} >= $PERL_VERSION) { exit(0); } else { exit(1); }' 5>&1`
_perl_res=$?
AC_MSG_RESULT([$_perl_version])
if test "$_perl_res" != 0; then
AC_MSG_ERROR([Perl $PERL_VERSION or higher is required.])
fi
AC_PATH_PROG(WHOAMI, whoami, :)
AC_PATH_PROG(AUTOCONF, autoconf, :)
AC_PATH_PROG(UNZIP, unzip, :)