autogen.sh 822 Bytes
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
6

7 8
olddir=`pwd`
cd "$srcdir"
9

10 11 12 13
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
        echo "*** No GTK-Doc found, please install it ***"
        exit 1
Owen Taylor's avatar
Owen Taylor committed
14 15
fi

16 17 18 19
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please install it ***"
        exit 1
Owen Taylor's avatar
Owen Taylor committed
20 21
fi

22 23 24 25 26
# README and INSTALL are required by automake, but may be deleted by clean
# up rules. to get automake to work, simply touch these here, they will be
# regenerated from their corresponding *.in files by ./configure anyway.
touch README INSTALL

27
gtkdocize || exit $?
28
autoreconf --force --install --verbose || exit $?
Tim Janik's avatar
Tim Janik committed
29

30 31
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"