summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2005-02-23 20:38:24 +0000
committerMichael Jennings <mej@kainx.org>2005-02-23 20:38:24 +0000
commitfb382f1f52f49ba7bf5607e68695239ea047a43a (patch)
tree8cfe4b32a3749248cb36bd8e69e124857fcfd2f5 /autogen.sh
parenta60b18a8511dceff7c2bdc84ec16d3f470cfdb3c (diff)
downloadeterm-fb382f1f52f49ba7bf5607e68695239ea047a43a.tar.gz
Wed Feb 23 15:37:40 2005 Michael Jennings (mej)
Merged in previous autoFUCK changes from libast. Added a feature to specify a command to be run in place of the normal PC speaker beep. ---------------------------------------------------------------------- SVN revision: 13484
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh39
1 files changed, 22 insertions, 17 deletions
diff --git a/autogen.sh b/autogen.sh
index f4e5e74..c900c4f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,45 +15,50 @@ DIE=0
echo "Generating configuration files for Eterm, please wait...."
LIBTOOLIZE_CHOICES="$LIBTOOLIZE libtoolize glibtoolize"
-AUTOHEADER_CHOICES="$AUTOHEADER autoheader213 autoheader-2.13 autoheader"
-ACLOCAL_CHOICES="$ACLOCAL aclocal14 aclocal-1.4 aclocal"
-AUTOMAKE_CHOICES="$AUTOMAKE automake14 automake-1.4 automake"
-AUTOCONF_CHOICES="$AUTOCONF autoconf213 autoconf-2.13 autoconf"
+ACLOCAL_CHOICES="$ACLOCAL aclocal"
+AUTOCONF_CHOICES="$AUTOCONF autoconf"
+AUTOHEADER_CHOICES="$AUTOHEADER autoheader"
+AUTOMAKE_CHOICES="$AUTOMAKE automake"
for i in $LIBTOOLIZE_CHOICES ; do
$i --version </dev/null >/dev/null 2>&1 && LIBTOOLIZE=$i && break
done
[ "x$LIBTOOLIZE" = "x" ] && broken libtool
-for i in $AUTOHEADER_CHOICES ; do
- $i --version </dev/null >/dev/null 2>&1 && AUTOHEADER=$i && break
-done
-[ "x$AUTOHEADER" = "x" ] && broken autoconf
-
for i in $ACLOCAL_CHOICES ; do
$i --version </dev/null >/dev/null 2>&1 && ACLOCAL=$i && break
done
[ "x$ACLOCAL" = "x" ] && broken automake
-for i in $AUTOMAKE_CHOICES ; do
- $i --version </dev/null >/dev/null 2>&1 && AUTOMAKE=$i && break
-done
-[ "x$AUTOMAKE" = "x" ] && broken automake
-
for i in $AUTOCONF_CHOICES ; do
$i --version </dev/null >/dev/null 2>&1 && AUTOCONF=$i && break
done
[ "x$AUTOCONF" = "x" ] && broken autoconf
+for i in $AUTOHEADER_CHOICES ; do
+ $i --version </dev/null >/dev/null 2>&1 && AUTOHEADER=$i && break
+done
+[ "x$AUTOHEADER" = "x" ] && broken autoconf
+
+for i in $AUTOMAKE_CHOICES ; do
+ $i --version </dev/null >/dev/null 2>&1 && AUTOMAKE=$i && break
+done
+[ "x$AUTOMAKE" = "x" ] && broken automake
+
# Export them so configure can AC_SUBST() them.
-export LIBTOOLIZE AUTOHEADER ACLOCAL AUTOMAKE AUTOCONF
+export LIBTOOLIZE ACLOCAL AUTOCONF AUTOHEADER AUTOMAKE
+
+# Check for existing libast.m4 we can use. Use the local one if not.
+if test ! -f "`$ACLOCAL --print-ac-dir`/libast.m4"; then
+ ACLOCAL_FLAGS="-I . $ACLOCAL_FLAGS"
+fi
# Run the stuff.
(set -x && $LIBTOOLIZE -c -f)
-(set -x && $AUTOHEADER)
(set -x && $ACLOCAL $ACLOCAL_FLAGS)
-(set -x && $AUTOMAKE -a -c)
(set -x && $AUTOCONF)
+(set -x && $AUTOHEADER)
+(set -x && $AUTOMAKE -a -c)
# Run configure.
./configure "$@"