summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>1999-09-24 14:29:28 +0000
committerStig Bakken <ssb@php.net>1999-09-24 14:29:28 +0000
commit56654596a31c6764c0cea1fa1c6908a462b7b7b9 (patch)
treea2f38cfd07a6b27b1f99ae3b358383420927b024 /buildconf
parent10ec822b59684e485daa0d735648516c7a6a1bb2 (diff)
downloadphp-git-56654596a31c6764c0cea1fa1c6908a462b7b7b9.tar.gz
Detect automake/libtool that are installed with different prefixes.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf18
1 files changed, 17 insertions, 1 deletions
diff --git a/buildconf b/buildconf
index 7863af8605..b2de3c0c94 100755
--- a/buildconf
+++ b/buildconf
@@ -66,10 +66,17 @@ else
echo " to build PHP from CVS."
exit 1
fi
-
touch buildconf.stamp
fi
+am_prefix=`which automake | sed -e 's#/[^/]*/[^/]*$##'`
+lt_prefix=`which libtool | sed -e 's#/[^/]*/[^/]*$##'`
+if test "$am_prefix" != "$lt_prefix"; then
+ echo "buildconf: WARNING: automake and libtool are installed in different"
+ echo " directories. This may cause aclocal to fail."
+ echo "buildconf: continuing anyway"
+fi
+
if test "$supplied_flag" = "--copy"; then
automake_flags=--copy
fi
@@ -111,6 +118,15 @@ libtoolize --automake $automake_flags --force
mv aclocal.m4 aclocal.m4.old 2>/dev/null
aclocal
+if test "$?" != "0" -a "$am_prefix" != "$lt_prefix"; then
+ echo "buildconf: ERROR: aclocal failed, probably because automake and"
+ echo " libtool are installed with different prefixes;"
+ echo " automake is installed in $am_prefix, but libtool in $lt_prefix."
+ echo " Please re-install automake and/or libtool with a common prefix"
+ echo " and try again."
+ exit 1
+fi
+
if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
echo "buildconf: keeping aclocal.m4"
mv aclocal.m4.old aclocal.m4