After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323938 - gtk-doc.m4 check is silent
gtk-doc.m4 check is silent
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.4
Other Linux
: Normal normal
: 1.9
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on: 450338
Blocks:
 
 
Reported: 2005-12-12 23:42 UTC by Yeti
Modified: 2007-09-22 19:10 UTC
See Also:
GNOME target: 2.20.x
GNOME version: ---



Description Yeti 2005-12-12 23:42:50 UTC
gtk-doc.m4 only invokes any AC_MSG_CHECKING() when all following conditions are met:

* gtk-doc was already found via pkg-config
* version check is requested

Therefore when for example gtk-doc.pc is not found, it looks like configure did
not attempt to check for gtk-doc at all.  This is quite confusing.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2006-03-21 11:12:09 UTC
but if there is no gtk-doc.pc, than this should mean that there is no gtk-doc at all. What scenario can you imagine where gtk-doc has been installed without gtk-doc.pc.
Comment 2 Yeti 2006-03-21 11:21:27 UTC
If configure comes to conslusion there is no gtk-doc.pc (and thus no gtk-doc), then it checked for gtk-doc.  Therefore I expect it to print:

Checking for gtk-doc... no

What scenario can you imagine configure can determine presence or absence of some package without checking for it?
Comment 3 Petteri Räty 2007-06-23 12:24:02 UTC
I submitted a patch to bug 450338 that fixes this issue among other things.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-15 09:19:32 UTC
Yeti, is the patch in bug #450338 fine for you too?
Comment 5 Yeti 2007-07-16 08:02:14 UTC
(In reply to comment #4)
> Yeti, is the patch in bug #450338 fine for you too?

At the expense of calling pkg-config twice, yes, as one gets a diagnostics when gtk-doc is not installed at all.
Comment 6 Petteri Räty 2007-07-16 08:39:33 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Yeti, is the patch in bug #450338 fine for you too?
> 
> At the expense of calling pkg-config twice, yes, as one gets a diagnostics when
> gtk-doc is not installed at all.
> 

What do you mean? If anything my patch removes calling pkg-config twice.
Comment 7 Yeti 2007-07-16 08:43:22 UTC
(In reply to comment #6)
> 
> What do you mean? If anything my patch removes calling pkg-config twice.

Sorry, too early in the morning, not enough coffee...

Yes, the patch is good.

Comment 8 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-16 15:21:10 UTC
2007-07-16  Stefan Kost  <ensonic@users.sf.net>

	Patch by: Petteri Räty <betelgeuse@gentoo.org>

	* gtk-doc.m4:
	Make gtk-doc.m4 fail when needed gtk-doc is not installed and notify
	user. Fixes #323938 and #450338.