autogen.sh 773 Bytes
Newer Older
David Zeuthen's avatar
David Zeuthen 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
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please intall it ***"
        exit 1
David Zeuthen's avatar
David Zeuthen committed
14 15
fi

16 17 18 19
INTLTOOLIZE=`which intltoolize`
if test -z $INTLTOOLIZE; then
        echo "*** No intltoolize found, please install the intltool package ***"
        exit 1
David Zeuthen's avatar
David Zeuthen committed
20 21
fi

22 23 24 25
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
        echo "*** No GTK-Doc found, please install it ***"
        exit 1
26 27
fi

28
gtkdocize
29 30
autopoint --force
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
31

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