Blame autogen.sh

Packit ae235b
#!/bin/sh
Packit ae235b
# Run this to generate all the initial makefiles, etc.
Packit ae235b
Packit ae235b
test -n "$srcdir" || srcdir=`dirname "$0"`
Packit ae235b
test -n "$srcdir" || srcdir=.
Packit ae235b
Packit ae235b
olddir=`pwd`
Packit ae235b
cd "$srcdir"
Packit ae235b
Packit ae235b
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
Packit ae235b
if test -z $GTKDOCIZE; then
Packit ae235b
        echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
Packit ae235b
        rm -f gtk-doc.make
Packit ae235b
        cat > gtk-doc.make <
Packit ae235b
EXTRA_DIST =
Packit ae235b
CLEANFILES =
Packit ae235b
EOF
Packit ae235b
else
Packit ae235b
        gtkdocize || exit $?
Packit ae235b
fi
Packit ae235b
Packit ae235b
AUTORECONF=`which autoreconf`
Packit ae235b
if test -z $AUTORECONF; then
Packit ae235b
        echo "*** No autoreconf found, please install it ***"
Packit ae235b
        exit 1
Packit ae235b
fi
Packit ae235b
Packit ae235b
# README and INSTALL are required by automake, but may be deleted by clean
Packit ae235b
# up rules. to get automake to work, simply touch these here, they will be
Packit ae235b
# regenerated from their corresponding *.in files by ./configure anyway.
Packit ae235b
touch README INSTALL
Packit ae235b
Packit ae235b
autoreconf --force --install --verbose || exit $?
Packit ae235b
Packit ae235b
cd "$olddir"
Packit ae235b
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"