autogen.sh 737 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh 

# This script does all the magic calls to automake/autoconf and
# friends that are needed to configure a cvs checkout.  As described in
# the file HACKING you need a couple of extra tools to run this script
# successfully.
#
# If you are compiling from a released tarball you don't need these
# tools and you shouldn't use this script.  Just call ./configure
# directly.

12 13
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
14

15
ORIGDIR=`pwd`
16
cd $srcdir
17

18 19
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
20
        echo "*** No autoreconf found, please install it ***"
21
        exit 1
22
fi
23

24
autoreconf --force --install --verbose || exit 1
25

26
cd $ORIGDIR
27
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"