You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sc...@apache.org on 2005/10/10 21:18:58 UTC
svn commit: r312716 - /httpd/mod_mbox/trunk/autogen.sh
Author: sctemme
Date: Mon Oct 10 12:18:57 2005
New Revision: 312716
URL: http://svn.apache.org/viewcvs?rev=312716&view=rev
Log:
More thorough search for oddly named autotools. Makes work on Darwin (libtoolize became glibtoolize) and sorta work on FreeBSD (which has a zoo of names with embedded version numbers).
Modified:
httpd/mod_mbox/trunk/autogen.sh
Modified: httpd/mod_mbox/trunk/autogen.sh
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/autogen.sh?rev=312716&r1=312715&r2=312716&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/autogen.sh (original)
+++ httpd/mod_mbox/trunk/autogen.sh Mon Oct 10 12:18:57 2005
@@ -6,14 +6,54 @@
AUTOMAKE=automake-1.9
ACLOCAL=aclocal-1.9
-($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
- AUTOMAKE=automake
- ACLOCAL=aclocal
-}
+# Find the first extant libtoolize on the path out of a number of platform
+# specific possibilities.
+for l in libtoolize libtoolize15 libtoolize14 glibtoolize;
+do
+ ($l --version) < /dev/null > /dev/null 2>&1 && {
+ LIBTOOLIZE=$l
+ break
+ }
+done
+
+# Same for aclocal
+for a in aclocal aclocal-1.9 aclocal19 aclocal15 aclocal14;
+do
+ ($a --version) < /dev/null > /dev/null 2>&1 && {
+ ACLOCAL=$a
+ break
+ }
+done
+
+# Same for automake
+for m in automake automake-1.9 automake19 automake15 automake14;
+do
+ ($m --version) < /dev/null > /dev/null 2>&1 && {
+ AUTOMAKE=$m
+ break
+ }
+done
+
+for h in autoheader autoheader259 autoheader253;
+do
+ ($h --version) < /dev/null > /dev/null 2>&1 && {
+ AUTOHEADER=$h
+ break
+ }
+done
+
+for c in autoconf autoconf259 autoconf253;
+do
+ ($c --version) < /dev/null > /dev/null 2>&1 && {
+ AUTOCONF=$c
+ break
+ }
+done
+
$LIBTOOLIZE --force --copy
$ACLOCAL -I m4
$AUTOMAKE --add-missing --copy --foreign
-autoheader
-autoconf
+$AUTOHEADER
+$AUTOCONF
rm -rf autom4te.cache