4 test -z "$srcdir" && srcdir=.
10 test $TEST_TYPE $FILE || {
11 echo "You must run this script in the top-level $PROJECT directory"
15 GTKDOCIZE=`which gtkdocize`
16 if test -z $GTKDOCIZE; then
17 echo "*** No gtk-doc support ***"
18 echo "EXTRA_DIST =" > gtk-doc.make
21 # we need to patch gtk-doc.make to support pretty output with
22 # libtool 1.x. Should be fixed in the next version of gtk-doc.
23 # To be more resilient with the various versions of gtk-doc one
24 # can find, just sed gkt-doc.make rather than patch it.
25 sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
26 && mv gtk-doc.temp gtk-doc.make
27 sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
28 && mv gtk-doc.temp gtk-doc.make
31 AUTORECONF=`which autoreconf`
32 if test -z $AUTORECONF; then
33 echo "*** No autoreconf found ***"
36 ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
39 autopoint --force || exit $?
41 if test -z "$NOCONFIGURE"; then
42 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."