From a1a44f17d5f546951e076c27d9f36602dcbcea5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Mon, 2 May 2011 15:21:41 +0100 Subject: [PATCH] autogen.sh: Use autoreconf instead gnome-autogen --- autogen.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/autogen.sh b/autogen.sh index de00c2b..2fd9755 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,23 +1,26 @@ #!/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="gtetrinet" -REQUIRED_AUTOMAKE_VERSION="1.10" +olddir=`pwd` +cd $srcdir -(test -f $srcdir/configure.ac \ - && test -d $srcdir/src) || { - echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level $PKG_NAME directory" - exit 1 -} +AUTORECONF=`which autoreconf` +if test -z $AUTORECONF; then + echo "*** No autoreconf found, please intall it ***" + exit 1 +fi -which gnome-autogen.sh || { - echo "You need to install gnome-common from GNOME Git (or from" - echo "your OS vendor's package manager)." - exit 1 -} +INTLTOOLIZE=`which intltoolize` +if test -z $INTLTOOLIZE; then + echo "*** No intltoolize found, please install the intltool package ***" + exit 1 +fi -USE_GNOME2_MACROS=1 . gnome-autogen.sh +autopoint --force +AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose + +cd $olddir +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" -- 2.50.1