autogen.sh 819 Bytes
Newer Older
Cosimo Cecchi's avatar
Cosimo Cecchi 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=.
Cosimo Cecchi's avatar
Cosimo Cecchi committed
6

7 8
OLDDIR=`pwd`
cd $srcdir
Cosimo Cecchi's avatar
Cosimo Cecchi committed
9

10 11
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
12
    echo "*** No autoreconf found, please install it ***"
Cosimo Cecchi's avatar
Cosimo Cecchi committed
13
    exit 1
14
fi
Cosimo Cecchi's avatar
Cosimo Cecchi committed
15

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

GNOMEDOC=`which yelp-build`
if test -z $GNOMEDOC; then
    echo "*** The tools to build the documentation are not found,"
25
    echo "    please install the yelp-tools package ***"
26 27 28 29 30 31 32 33
    exit 1
fi

autopoint --force || exit $?
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose

cd $OLDDIR
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
Cosimo Cecchi's avatar
Cosimo Cecchi committed
34