2003-04-17 13:24:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
|
2011-09-13 16:20:12 +01:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2005-08-21 09:57:19 +00:00
|
|
|
|
|
|
|
|
ORIGDIR=`pwd`
|
|
|
|
|
cd $srcdir
|
|
|
|
|
|
2011-09-13 16:20:12 +01:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
|
echo "*** No autoreconf found, please intall it ***"
|
|
|
|
|
exit 1
|
2004-07-09 09:16:41 +00:00
|
|
|
fi
|
|
|
|
|
|
2011-09-13 16:20:12 +01:00
|
|
|
GTKDOCIZE=`which gtkdocize`
|
|
|
|
|
if test -z $GTKDOCIZE; then
|
2012-05-14 10:40:49 +02:00
|
|
|
echo "*** No GTK-Doc found, documentation won't be generated ***"
|
|
|
|
|
else
|
|
|
|
|
gtkdocize || exit $?
|
2003-04-17 13:24:29 +00:00
|
|
|
fi
|
|
|
|
|
|
2008-09-22 17:34:36 -04:00
|
|
|
# create dummy */Makefile.am.features and ChangeLog to make automake happy
|
|
|
|
|
> boilerplate/Makefile.am.features
|
|
|
|
|
> src/Makefile.am.features
|
2008-09-09 14:36:40 -04:00
|
|
|
touch ChangeLog
|
2008-09-02 21:31:47 -04:00
|
|
|
|
2012-05-14 10:44:31 +02:00
|
|
|
autoreconf --install --verbose || exit $?
|
2003-04-17 13:24:29 +00:00
|
|
|
|
2011-09-13 16:20:12 +01:00
|
|
|
cd $ORIGDIR
|
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|