Added checks and fixed built order

SVN revision: 6161
This commit is contained in:
thalma 2002-04-22 07:20:11 +00:00 committed by thalma
parent fd507f34cd
commit b0967ede9d
1 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,10 @@
#! /bin/sh #! /bin/sh
abort () {
echo "$1 not found or command failed. Aborting!"
exit 1
}
srcdir=`dirname $0` srcdir=`dirname $0`
test -z "$srcdir" && srcdir=. test -z "$srcdir" && srcdir=.
@ -8,11 +13,11 @@ cd "$srcdir"
DIE=0 DIE=0
set -x set -x
autoheader aclocal || abort "aclocal"
libtoolize --ltdl --force --copy libtoolize --ltdl --force --copy || abort "libtoolize"
aclocal autoheader || abort "autoheader"
automake --foreign --add-missing automake --foreign --add-missing || abort "automake"
autoconf autoconf || abort "autoconf"
if test -z "$*"; then if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish " echo "I am going to run ./configure with no arguments - if you wish "
@ -21,7 +26,7 @@ fi
cd "$THEDIR" cd "$THEDIR"
$srcdir/configure "$@" $srcdir/configure "$@" || abort "configure"
set +x set +x