summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-02-09 13:28:20 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-03-21 13:43:43 +0000
commitfd3ed34a2070fca3804baf54ece40d0bc2666226 (patch)
tree546cdaad8e558c0367c321954f0b1391cb52ffe5 /autogen.sh
parent3b04c73650b5e9bbcb602fdb8cea0b16ad82d0c0 (diff)
build: Update autotools configuration
Replace some deprecated autoconf macros and use the new libtool syntax
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index 904cd674..30d679f4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,12 +1,6 @@
#! /bin/sh
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-
-autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
-
-$srcdir/configure --enable-maintainer-mode "$@"
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+autoreconf --force --install --verbose "$srcdir"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"