From e274c3be978de686106ec7b1840c0fa160b7a498 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Thu, 29 Jan 2009 15:46:18 -0600 Subject: Add a very basic autogen.sh script --- autogen.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) create mode 100755 autogen.sh --- autogen.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 autogen.sh (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..0c200a4 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +(test -f $srcdir/configure.ac) || { + echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" + echo " top-level package directory" + exit 1 +} + +(${AUTORECONF:-autoreconf} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`autoreconf' installed." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" + DIE=1 +} + +(${AUTOMAKE:-automake} --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`automake' installed." + echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" + DIE=1 +} + +if test -n "$DIE"; then + exit 1 +fi + +if test -z "$*"; then + echo "**Warning**: I am going to run \`configure' with no arguments." + echo "If you wish to pass any to it, please specify them on the" + echo \`$0\'" command line." + echo +fi + +conf_flags="" + +${AUTORECONF:-autoreconf} --install --verbose && ./configure $conf_flags $@ -- cgit