diff options
-rwxr-xr-x | autogen.sh | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -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" "$@" |