summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-07-26 20:28:14 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 20:28:14 +0400
commit15a8bd002db68408468ee450c09f7af3975782e8 (patch)
tree854443553b4320f10d66f12a94c5c3361cea2860 /autogen.sh
parent483278295142421b2f8794e3c900ac2490439450 (diff)
downloadbdwgc-15a8bd002db68408468ee450c09f7af3975782e8.tar.gz
gc7.0alpha4 tarball importgc7_0alpha4
Diffstat (limited to 'autogen.sh')
-rw-r--r--autogen.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100644
index 00000000..afbfc55c
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+set -e
+
+# These version are ok, pre-1.7 is not. Post 1.7 may produce a lot of
+# warnings for unrelated projects, so prefer 1.7 for now.
+am_version=
+for v in 1.7 1.9 1.8; do
+ if type -p &>/dev/null automake-$v; then
+ am_version="-$v"
+ break
+ fi
+done
+if [ -z "$am_version" ]; then
+ case "`automake --version`" in
+ *\ 0.*|*\ 1.[0-6].*|*\ 1.[0-6]\ *)
+ echo "$0: Automake-1.7 or later is needed."
+ exit 2
+ ;;
+ esac
+fi
+
+set -x
+libtoolize --automake --force
+aclocal$am_version
+automake$am_version -ac
+autoconf
+set +x
+echo
+echo "Ready to run './configure'."
+echo