diff options
author | gb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969> | 2010-03-19 17:11:20 +0000 |
---|---|---|
committer | gb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969> | 2010-03-19 17:11:20 +0000 |
commit | 69f2b146f723b40bbbfcd7998ba91a2832c403c5 (patch) | |
tree | c7698e0a649f584e428ee31229e62fcdd99eb938 /autogen.sh | |
parent | 5c0ee54d03ba18bf82f2a9b446c4e846c36ad701 (diff) |
Generate gtk-doc.make from gtkdocize.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 "$@" |