2009-11-02 21:28:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2009-11-02 21:28:39 +00:00
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
olddir=`pwd`
|
2009-11-02 21:28:39 +00:00
|
|
|
cd $srcdir
|
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
autoreconf --force --install || exit $?
|
2009-11-02 21:28:39 +00:00
|
|
|
fi
|
|
|
|
|
2011-01-10 03:18:53 +00:00
|
|
|
cd $olddir
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|