|
Packit |
324a5c |
#!/bin/sh
|
|
Packit |
324a5c |
# Run this to generate all the initial makefiles, etc.
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
Packit |
324a5c |
test -n "$srcdir" || srcdir=.
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
ORIGDIR=`pwd`
|
|
Packit |
324a5c |
cd $srcdir
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
AUTORECONF=`which autoreconf`
|
|
Packit |
324a5c |
if test -z $AUTORECONF; then
|
|
Packit |
324a5c |
echo "*** No autoreconf found, please intall it ***"
|
|
Packit |
324a5c |
exit 1
|
|
Packit |
324a5c |
fi
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
GTKDOCIZE=`which gtkdocize`
|
|
Packit |
324a5c |
if test -z $GTKDOCIZE; then
|
|
Packit |
324a5c |
echo "*** No GTK-Doc found, documentation won't be generated ***"
|
|
Packit |
324a5c |
else
|
|
Packit |
324a5c |
gtkdocize || exit $?
|
|
Packit |
324a5c |
fi
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
# create dummy */Makefile.am.features and ChangeLog to make automake happy
|
|
Packit |
324a5c |
> boilerplate/Makefile.am.features
|
|
Packit |
324a5c |
> src/Makefile.am.features
|
|
Packit |
324a5c |
touch ChangeLog
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
autoreconf --install --verbose || exit $?
|
|
Packit |
324a5c |
|
|
Packit |
324a5c |
cd $ORIGDIR
|
|
Packit |
324a5c |
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|