GNOME Bugzilla – Bug 392424
GNOME_DOC_INIT and not-found gdu
Last modified: 2007-01-25 21:10:13 UTC
GNOME_DOC_INIT aborts when it can't find gnome-doc-utils. However, programmes may want to conditionally support gdu only when it's present. For this, GNOME_DOC_INIT should support optional 2nd and 3rd arguments ACTION-IF-FOUND and ACTION-IF-NOT-FOUND, like most stock autoconf macros do.
Created attachment 79302 [details] [review] proposed patch This patch adds GNOME_DOC_CHECK ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
We can't just drop GNOME_DOC_INIT, for compatibility reasons. I'd be OK with doing this otherwise.
That's exactly why the patch does *not* remove GNOME_DOC_INIT.
Sorry, I missed the part at the bottom of the patch. This is fine by me, but we should also add some code to gnome-autogen.sh to check for GNOME_DOC_CHECK as well as GNOME_DOC_INIT.
Hmm I hadn't thought about gnome-autogen... I named the macro GNOME_DOC_CHECK because INIT seems a bit odd for a macro that doesn't necessarily initialise anything (if it's not found), but it's probably better than changing autogen. So probably just renaming GNOME_DOC_CHECK to INIT and removing the stub at the end will do the trick.
Created attachment 80440 [details] [review] revised patch This just adds optional 2nd and 3rd arguments to GNOME_DOC_INIT.
* tools/gnome-doc-utils.m4: - Provide a 3-argument variant of GNOME_DOC_INIT, to use if you don't want missing gdu be fatal. Bug #392424, also fixes bug #350441.
*** Bug 350441 has been marked as a duplicate of this bug. ***