diff options
author | Javier Jardón <javier.jardon@codethink.co.uk> | 2012-03-28 19:34:14 +0100 |
---|---|---|
committer | Javier Jardón <javier.jardon@codethink.co.uk> | 2012-03-28 19:34:14 +0100 |
commit | fbc1410e57b32945d06d3eafb7badc97dc3f26b4 (patch) | |
tree | 70cc2b8145a89f8d40197b55b441565dff58214a | |
parent | a4c6775b120d48278dc10234c326878ab42a035b (diff) | |
download | intltool-fbc1410e57b32945d06d3eafb7badc97dc3f26b4.tar.gz |
Use autoreconf instead gnome-common
-rwxr-xr-x | autogen.sh | 26 |
1 files changed, 12 insertions, 14 deletions
@@ -1,21 +1,19 @@ #!/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="intltool" -REQUIRED_AUTOMAKE_VERSION="1.6" +olddir=`pwd` +cd $srcdir -(test -f $srcdir/intltoolize.in) || { - 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 the GNOME CVS" - exit 1 -} +autoreconf --force --install --verbose -USE_GNOME2_MACROS=1 . gnome-autogen.sh +cd $olddir +test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" |