summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-10-24 03:14:11 +0100
committerJavier Jardón <jjardon@gnome.org>2011-10-24 03:22:26 +0100
commita182abba5aadbb4c4ced9a083516cd879adaaaa3 (patch)
tree79e0ce861f01817a9cd02b4cc3144abe04fabb29
parentccf99bf484de1ea01c7cfcc72a560173edb2a1f6 (diff)
downloadgupnp-vala-a182abba5aadbb4c4ced9a083516cd879adaaaa3.tar.gz
autogen.sh: Use autoreconf instead gnome-autogen
-rwxr-xr-xautogen.sh23
1 files changed, 15 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh
index 66d580a..72ebb9a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,13 +1,20 @@
#!/bin/sh
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from the GNOME git"
- exit 1
-}
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+OLDDIR=`pwd`
+cd "$srcdir"
+
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please install it ***"
+ exit 1
+fi
mkdir -p m4
-# require automak 1.11 for vala support
-REQUIRED_AUTOMAKE_VERSION=1.11 \
-REQUIRED_AUTOCONF_VERSION=2.64 \
-gnome-autogen.sh "$@"
+autoreconf --force --install --verbose || exit $?
+
+cd "$OLDDIR"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"