[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: autogen.sh
From: |
Mark Wielaard |
Subject: |
Re: Patch: autogen.sh |
Date: |
Fri, 09 Apr 2004 19:09:07 +0200 |
Hi,
On Fri, 2004-04-09 at 16:00, Dalibor Topic wrote:
> anyway, I thought that autoreconf took care of picking the right
> versions automatically. Can't we just have
>
> autoreconf
>
> in autogen.sh and be done with it?
No, because autoreconf (at least the version that comes with GNU
Autoconf 2.59 on my system) also doesn't automatically pick up the right
version :{
I added the suggestion of Michael to also test for the 1.8 versions of
these tools to make the script a little bit more robust. But it still
feel very fragile to me. How do other projects handle this if they don't
require people to just issue these commands by hand (so they can select
the right versions themselves)?
2004-04-09 Mark Wielaard <address@hidden>
* autogen.sh: Check for explicit versions of the autotools installed
in /usr/bin.
Cheers,
Mark
Index: autogen.sh
===================================================================
RCS file: /cvsroot/classpath/classpath/autogen.sh,v
retrieving revision 1.3
diff -u -r1.3 autogen.sh
--- autogen.sh 8 Apr 2004 20:22:40 -0000 1.3
+++ autogen.sh 9 Apr 2004 17:07:04 -0000
@@ -2,26 +2,51 @@
set -e
-libtoolize --version | head -1
+LIBTOOLIZE=libtoolize
+${LIBTOOLIZE} --version | head -1
echo "libtoolize: minimum version required: 1.4.2"
-autoconf --version | head -1
+
+AUTOCONF=autoconf
+${AUTOCONF} --version | head -1
echo "autoconf: minimum version required: 2.59"
-automake --version | head -1
+
+# Autoheader is part of autoconf
+AUTOHEADER=autoheader
+${AUTOHEADER} --version | head -1
+echo "autoheader: minimum version required: 2.59"
+
+AUTOMAKE=automake
+if test -x /usr/bin/automake-1.8; then
+ AUTOMAKE=/usr/bin/automake-1.8
+elif test -x /usr/bin/automake-1.7; then
+ AUTOMAKE=/usr/bin/automake-1.7
+fi
+${AUTOMAKE} --version | head -1
echo "automake: minimum version required: 1.7.0"
+# Aclocal is part of automake
+ACLOCAL=aclocal
+if test -x /usr/bin/aclocal-1.8; then
+ ACLOCAL=/usr/bin/aclocal-1.8
+elif test -x /usr/bin/aclocal-1.7; then
+ ACLOCAL=/usr/bin/aclocal-1.7
+fi
+${ACLOCAL} --version | head -1
+echo "aclocal: minimum version required: 1.7.0"
+
echo "libtoolize ..."
-libtoolize --force --copy
+${LIBTOOLIZE} --force --copy
echo "aclocal ..."
-aclocal
+${ACLOCAL}
echo "autoheader ..."
-autoheader --force
+${AUTOHEADER} --force
echo "automake ..."
-automake --add-missing --copy
+${AUTOMAKE} --add-missing --copy
echo "autoconf ..."
-autoconf --force
+${AUTOCONF} --force
echo "Finished"
signature.asc
Description: This is a digitally signed message part
- Patch: autogen.sh, Michael Koch, 2004/04/08
- Re: Patch: autogen.sh, Thomas Fitzsimmons, 2004/04/08
- Re: Patch: autogen.sh, Michael Koch, 2004/04/08
- Re: Patch: autogen.sh, Mark Wielaard, 2004/04/09
- Re: Patch: autogen.sh, Mark Wielaard, 2004/04/09
- Re: Patch: autogen.sh, Michael Koch, 2004/04/09
- Re: Patch: autogen.sh, Dalibor Topic, 2004/04/09
- Re: Patch: autogen.sh,
Mark Wielaard <=
- Re: Patch: autogen.sh, Archie Cobbs, 2004/04/09