summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-09-26 01:17:07 +0900
committerJavier Jardón <jjardon@gnome.org>2012-09-27 00:09:24 +0900
commit62c67bcc35967a3628ff9c09f7c8c77144dd4b6d (patch)
tree2ccd4d4807da0880c094dfc285fc6670bcb5044d /autogen.sh
parent460cef9cfab15523b453838fa7794d7a203564fc (diff)
downloadgobject-introspection-62c67bcc35967a3628ff9c09f7c8c77144dd4b6d.tar.gz
Make gtk-doc not a hard dependency of gobject-introspection
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684795
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 0eac5f59..51f51c40 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,10 +7,16 @@ test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
-GTKDOCIZE=`which gtkdocize`
+GTKDOCIZE=$(which gtkdocize 2>/dev/null)
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`
@@ -19,7 +25,6 @@ if test -z $AUTORECONF; then
exit 1
fi
-gtkdocize || exit $?
autoreconf --force --install --verbose || exit $?
cd "$olddir"