diff options
author | Sascha Schumann <sas@php.net> | 2001-05-24 12:36:09 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-05-24 12:36:09 +0000 |
commit | 2cb13b0cf3de5f6517e24cef7efbfabb60193cbf (patch) | |
tree | 5390cf782f39d29ada92f7f82858cf06a5f1a955 /build/buildcheck.sh | |
parent | 9caffb4fb7092bd699f8735ce2ddaa17aeb5acb5 (diff) | |
download | php-git-2cb13b0cf3de5f6517e24cef7efbfabb60193cbf.tar.gz |
Display the correct automake version
Diffstat (limited to 'build/buildcheck.sh')
-rwxr-xr-x | build/buildcheck.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build/buildcheck.sh b/build/buildcheck.sh index 57b99cfaa2..2f6f969bfb 100755 --- a/build/buildcheck.sh +++ b/build/buildcheck.sh @@ -16,7 +16,7 @@ # | Sascha Schumann <sascha@schumann.cx> | # +----------------------------------------------------------------------+ # -# $Id: buildcheck.sh,v 1.10 2001-05-23 19:13:24 sas Exp $ +# $Id: buildcheck.sh,v 1.11 2001-05-24 12:36:09 sas Exp $ # echo "buildconf: checking installation..." @@ -40,14 +40,15 @@ echo "buildconf: autoconf version $ac_version (ok)" fi # automake 1.4 or newer -am_version=`automake --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//' -e 's/-p[0-9]*$//'` +am_version=`automake --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +am_version_clean=`echo $am_version|sed -e 's/-p[0-9]*$//'` if test "$am_version" = ""; then echo "buildconf: automake not found." echo " You need automake version 1.4 or newer installed" echo " to build PHP from CVS." exit 1 fi -IFS=.; set $am_version; IFS=' ' +IFS=.; set $am_version_clean; IFS=' ' if test "$1" = "1" -a "$2" -lt "4" || test "$1" -lt "1"; then echo "buildconf: automake version $am_version found." echo " You need automake version 1.4 or newer installed" |