summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-19 17:11:20 +0000
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>2010-03-19 17:11:20 +0000
commit69f2b146f723b40bbbfcd7998ba91a2832c403c5 (patch)
treec7698e0a649f584e428ee31229e62fcdd99eb938 /autogen.sh
parent5c0ee54d03ba18bf82f2a9b446c4e846c36ad701 (diff)
Generate gtk-doc.make from gtkdocize.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 9c2f4f66..d5526f99 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,20 @@
#! /bin/sh
+
+GTKDOCIZE=`which gtkdocize`
+if test -z $GTKDOCIZE; then
+ echo "*** No gtk-doc support ***"
+ echo "EXTRA_DIST =" > gtk-doc.make
+else
+ gtkdocize || exit $?
+ # we need to patch gtk-doc.make to support pretty output with
+ # libtool 1.x. Should be fixed in the next version of gtk-doc.
+ # To be more resilient with the various versions of gtk-doc one
+ # can find, just sed gkt-doc.make rather than patch it.
+ sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
+ && mv gtk-doc.temp gtk-doc.make
+ sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
+ && mv gtk-doc.temp gtk-doc.make
+fi
+
autoreconf -v --install
./configure "$@"