olddir=`pwd`
cd "$srcdir"
-GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
- echo "*** No GTK-Doc found, please install it ***"
- exit 1
+ echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
+ rm -f gtk-doc.make
+ cat > gtk-doc.make <<EOF
+EXTRA_DIST =
+CLEANFILES =
+EOF
+else
+ gtkdocize || exit $?
fi
AUTORECONF=`which autoreconf`
exit 1
fi
-mkdir -p m4
-
-gtkdocize || exit $?
-autoreconf --force --install --verbose || exit $?
+autoreconf --verbose --force --install -Wno-portability || exit 1
cd "$olddir"
+
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"