From 7bea65a047fee56629553db9244282886a96c2e8 Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 8 Jan 2013 16:20:05 +0000 Subject: autogen.sh: Use autoreconf instead gnome-autogen --- autogen.sh | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/autogen.sh b/autogen.sh index 615d8d8..99c398e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,15 +1,28 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=. -PKG_NAME="atk" -REQUIRED_AUTOMAKE_VERSION=1.7 +olddir=`pwd` +cd "$srcdir" -which gnome-autogen.sh || { - echo "You need to install gnome-common from the GNOME CVS" - exit 1 -} +GTKDOCIZE=`which gtkdocize` +if test -z $GTKDOCIZE; then + echo "*** No GTK-Doc found, please install it ***" + exit 1 +fi -USE_GNOME2_MACROS=1 . gnome-autogen.sh +AUTORECONF=`which autoreconf` +if test -z $AUTORECONF; then + echo "*** No autoreconf found, please install it ***" + exit 1 +fi + +mkdir -p m4 + +gtkdocize || exit $? +autoreconf --force --install --verbose || exit $? + +cd "$olddir" +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" -- cgit v1.2.1