summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-07-23 15:13:22 +0000
committerStig Bakken <ssb@php.net>1999-07-23 15:13:22 +0000
commitb291b0902d857e22b80fef6c6f9a62020db691e7 (patch)
treed4e7b199d45ce61980d474289e8b2ac768e830b8 /buildconf
parent6c856de82df68d969fb63b702b51386b7e351305 (diff)
downloadphp-git-b291b0902d857e22b80fef6c6f9a62020db691e7.tar.gz
small fix to libtool check
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf9
1 files changed, 5 insertions, 4 deletions
diff --git a/buildconf b/buildconf
index 80fe27c577..084b5efeef 100755
--- a/buildconf
+++ b/buildconf
@@ -43,19 +43,20 @@ else
fi
# libtool 1.2f or newer
- lt_version=`libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/\([a-z]\).*/.\1/'`
- if test "$lt_version" = ""; then
+ lt_pversion=`libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/ .*//'`
+ if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."
echo " You need libtool version 1.3 or newer installed"
echo " to build PHP from CVS."
exit 1
fi
+ lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
IFS=.; set $lt_version; IFS=' '
if test "$1" -gt "1" || test "$2" -ge "3" || test "$2" = "2" -a "$3" = "f"
then
- echo "buildconf: libtool version $lt_version (ok)"
+ echo "buildconf: libtool version $lt_pversion (ok)"
else
- echo "buildconf: libtool version $lt_version found."
+ echo "buildconf: libtool version $lt_pversion found."
echo " You need libtool version 1.2f or newer installed"
echo " to build PHP from CVS."
exit 1