diff options
author | Stefan Kost <stefkost@src.gnome.org> | 2009-04-15 11:29:48 +0000 |
---|---|---|
committer | Stefan Kost <stefkost@src.gnome.org> | 2009-04-15 11:29:48 +0000 |
commit | e4c5cc2e23da02b53ce60476ca71ef04b3c073d9 (patch) | |
tree | 5827a57f9f97563cc5d6fad35c4424a521a98a46 | |
parent | 99456dc529e5a5c59ba50c4f5b34e5ace08136fa (diff) | |
download | gtk-doc-e4c5cc2e23da02b53ce60476ca71ef04b3c073d9.tar.gz |
Tentative patch to allow building without scrollkeeper and
* autogen.sh:
* configure.in:
Tentative patch to allow building without scrollkeeper and
gnome-doc-utils. Fixes #577059.
svn path=/trunk/; revision=718
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | autogen.sh | 16 | ||||
-rw-r--r-- | configure.in | 13 |
3 files changed, 17 insertions, 19 deletions
@@ -1,3 +1,10 @@ +2009-04-15 Stefan Kost <ensonic@users.sf.net> + + * autogen.sh: + * configure.in: + Tentative patch to allow building without scrollkeeper and + gnome-doc-utils. Fixes #577059. + 2009-04-05 Stefan Kost <ensonic@users.sf.net> * examples/Makefile.am: @@ -4,6 +4,7 @@ PROJECT=gtk-doc TEST_TYPE=-f FILE=gtk-doc.dsl.in +CONFIGURE_FLAGS= # a silly hack that generates autoregen.sh but it's handy echo "#!/bin/sh" > autoregen.sh @@ -19,11 +20,6 @@ THEDIR="`pwd`" cd "$srcdir" -which >/dev/null gnome-doc-prepare || { - echo "You need to install gnome-doc-utils to build this package" - DIE=1 -} - (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have autoconf installed to compile $PROJECT." @@ -69,8 +65,12 @@ if test "$#" = 0; then echo "to pass any to it, please specify them on the $0 command line." fi -echo "* Running gnome-doc-prepare" -gnome-doc-prepare --force --automake +if gnome-doc-prepare --version < /dev/null > /dev/null 2>&1; then + echo "* Running gnome-doc-prepare" + gnome-doc-prepare --force --automake +else + CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-scrollkeeper" +fi # to support timj aclocal setup we are shipping gnome-doc-utils.m4 # and making sure automake picks it up ;) @@ -91,7 +91,7 @@ $AUTOMAKE --add-missing -Wno-portability $am_opt || exit $? cd "$THEDIR" -$srcdir/configure --enable-maintainer-mode "$@" || exit $? +$srcdir/configure --enable-maintainer-mode "$@" $CONFIGURE_FLAGS || exit $? echo echo "Now type 'make install' to install $PROJECT." diff --git a/configure.in b/configure.in index d006b58..6d06c13 100644 --- a/configure.in +++ b/configure.in @@ -142,15 +142,6 @@ if test "x$GCC" = "xyes"; then fi fi -# Check for scrollkeeper -AC_PATH_PROG(scrollkeeper_config, scrollkeeper-config, no) -if test x$scrollkeeper_config = xno; then - AC_MSG_WARN([Couldn't find scrollkeeper-config, please install the scrollkeeper package]) -# if test x$xsltproc = xno; then -# AC_MSG_WARN([Couldn't find xsltproc, please install the libxml/libxslt package]) -# fi -fi - # if glib is available we can enable the tests PKG_CHECK_MODULES(TEST_DEPS, [glib-2.0 >= 2.6.0 gobject-2.0 >= 2.6.0], [ glib_prefix="`$PKG_CONFIG --variable=prefix glib-2.0`" @@ -236,13 +227,13 @@ test -n "$JADE" \ test -n "$FOP" \ && AC_MSG_NOTICE([** XML PDF support enabled, using $FOP]) \ || AC_MSG_NOTICE([ XML PDF support disabled, no fop available]) -test x$scrollkeeper_config != xno \ +test "x$enable_scrollkeeper" = "xyes" \ && AC_MSG_NOTICE([** Scrollkeeper support enabled]) \ || AC_MSG_NOTICE([ Scrollkeeper support disabled]) test -n "$HIGHLIGHT" \ && AC_MSG_NOTICE([** Syntax highlighting of examples enabled, using $HIGHLIGHT]) \ || AC_MSG_NOTICE([ Syntax highlighting of examples disabled]) -test x$build_tests != xno \ +test "x$build_tests" != "xno" \ && AC_MSG_NOTICE([** Building regression tests]) \ || AC_MSG_NOTICE([ Skipping regression tests]) |