autogen.sh 860 Bytes
Newer Older
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

Javier Jardón's avatar
Javier Jardón committed
4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
6

Javier Jardón's avatar
Javier Jardón committed
7 8
olddir=`pwd`
cd "$srcdir"
9

10 11
mkdir -p m4

Javier Jardón's avatar
Javier Jardón committed
12 13 14 15
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
        echo "*** No GTK-Doc found, please install it ***"
        exit 1
16
else
Javier Jardón's avatar
Javier Jardón committed
17
        gtkdocize || exit $?
18 19
fi

20 21 22 23 24
# 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

Javier Jardón's avatar
Javier Jardón committed
25 26 27 28 29 30
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please install it ***"
        exit 1
else
        autoreconf --force --install --verbose || exit $?
31
fi
Javier Jardón's avatar
Javier Jardón committed
32 33 34

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