Currently, PHP uses aclocal of the automake suite to include
libtool's /usr/share/aclocal/libtool.m4. This is a trivial
task which does not require aclocal per se.
However, extension authors might depend on additional m4
macros such as AM_PATH_GTK_2_0 which are provided by other
libraries. If that is the case, they need aclocal to create
a proper aclocal.m4 file.
If you are an extension author and use a m4 macro of your
favorite package in your extension's config.m4, then please
speak up now. Otherwise, PHP will soon stop using aclocal.
- Sascha
Index: build/build2.mk
===================================================================
RCS file: /repository/php4/build/build2.mk,v
retrieving revision 1.27
diff -u -r1.27 build2.mk
--- build/build2.mk 21 Jul 2002 12:54:06 -0000 1.27
+++ build/build2.mk 22 Jun 2003 03:16:47 -0000
@@ -52,8 +52,13 @@
touch $(TOUCH_FILES)
aclocal.m4: configure.in acinclude.m4
- aclocal 2>&1 | $(SUPPRESS_WARNINGS)
-
+ @echo rebuilding $@
+ @libtoolize=`./build/shtool path glibtoolize libtoolize`; \
+ $$libtoolize --copy --automake; \
+ ltpath=`dirname $$libtoolize`; \
+ ltfile=`cd $$ltpath/../share/aclocal; pwd`/libtool.m4; \
+ cat acinclude.m4 $$ltfile > $@
+
configure: aclocal.m4 configure.in $(config_m4_files)
@echo rebuilding $@
@autoconf 2>&1 | $(SUPPRESS_WARNINGS)
Index: build/buildcheck.sh
===================================================================
RCS file: /repository/php4/build/buildcheck.sh,v
retrieving revision 1.21.2.3
diff -u -r1.21.2.3 buildcheck.sh
--- build/buildcheck.sh 19 May 2003 13:14:06 -0000 1.21.2.3
+++ build/buildcheck.sh 22 Jun 2003 03:16:47 -0000
@@ -50,39 +50,17 @@
stamp=
fi
-
-# automake 1.4 or newer
-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_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"
-echo " to build PHP from CVS."
-exit 1
-else
-echo "buildconf: automake version $am_version (ok)"
-fi
-
-# libtool 1.4.3 or newer
-# Prefer glibtool over libtool for Mac OS X compatibility
-libtool=`./build/shtool path glibtool 2> /dev/null`
-if test ! -r "$libtool"; then libtool=`./build/shtool path libtool`; fi
-lt_pversion=`$libtool --version 2>/dev/null|sed -n -e 's/^[^0-9]*//' -e 1's/[-
].*//p'`
+# libtoolize 1.4.3 or newer
+# Prefer glibtoolize over libtoolize for Mac OS X compatibility
+libtoolize=`./build/shtool path glibtoolize libtoolize 2> /dev/null`
+lt_pversion=`$libtoolize --version 2>/dev/null|sed -e 's/^[^0-9]*//'`
if test "$lt_pversion" = ""; then
echo "buildconf: libtool not found."
echo " You need libtool version 1.4.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=' '
+IFS=.; set $lt_pversion; IFS=' '
if test "$3" = ""; then
third=0
@@ -100,12 +78,14 @@
exit 1
fi
-am_prefix=`./build/shtool path automake | sed -e 's#/[^/]*/[^/]*$##'`
-lt_prefix=`echo $libtool | sed -e 's#/[^/]*/[^/]*$##'`
-if test "$am_prefix" != "$lt_prefix"; then
- echo "WARNING: automake and libtool are installed in different"
- echo " directories. This may cause aclocal to fail."
- echo " continuing anyway"
+ltpath=`dirname $libtoolize`
+ltfile=`cd $ltpath/../share/aclocal; pwd`/libtool.m4
+if test -r "$ltfile"; then
+ :
+else
+ echo "buildconf: $ltfile does not exist."
+ echo " Please reinstall libtool."
+ exit 1
fi
test -n "$stamp" && touch $stamp
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php