summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan.olivier@wanadoo.fr>2002-10-27 10:11:06 +0000
committerOlivier Fourdan <fourdan.olivier@wanadoo.fr>2002-10-27 10:11:06 +0000
commit3fa2ca6ef03b44831d66da7022b7521e2385bd37 (patch)
tree2c6539baf31502dd1f66187ab0a25de34ed8b4c3 /autogen.sh
parent2a7dd54622489e6333272012425243a425c3946e (diff)
downloadxfwm4-3fa2ca6ef03b44831d66da7022b7521e2385bd37.tar.gz
Change autogen.sh script to use env vars if available.
(Old svn revision: 10653)
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh35
1 files changed, 30 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 2e4c9e527..381128ca2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,32 @@
#!/bin/sh
-aclocal --verbose \
- && autoheader \
- && automake --add-missing --copy --include-deps --foreign --gnu --verbose \
- && autoconf \
- && ./configure $@
+#
+# NOTE: Some distribution ship different version of auto tools using
+# postfixing (e.g."automake-1.6"). If you want to use those, simply
+# set the variable $ACLOCAL, $AUTOHEADER, $AUTOMAKE and $AUTOCONF
+# to the proper command to use.
+#
+# if unset, default commands will be used.
+#
+
+if test "x$ACLOCAL" = "x"; then
+ ACLOCAL=aclocal
+fi
+
+if test "x$AUTOHEADER" = "x"; then
+ AUTOHEADER=autoheader
+fi
+
+if test "x$AUTOMAKE" = "x"; then
+ AUTOMAKE=automake
+fi
+
+if test "x$AUTOCONF" = "x"; then
+ AUTOCONF=autoconf
+fi
+
+$ACLOCAL --verbose \
+&& $AUTOHEADER \
+&& $AUTOMAKE --add-missing --copy --include-deps --foreign --gnu --verbose \
+&& $AUTOCONF \
+&& ./configure $@