[Libosinfo] [PATCH] autogen: Don't hardcode --enable-gtk-doc

Andrea Bolognani abologna at redhat.com
Wed May 9 12:12:16 UTC 2018


The usual behavior is for configure to detect the availability
of gtk-doc, along with other optional features, and only enable
it if found.

Hardcoding it this way is causing issues for MinGW builds,
where pkg-config is looking in the MinGW-specific paths and
can't locate the native gtk-doc.pc file, thus concluding
gtk-doc must not be present and aborting the build altogether
instead of simply skipping API reference generation.

Both 'make distcheck' (through the DISTCHECK_CONFIGURE_FLAGS
variable) and the prepare-release.sh script are already
enforcing the availability of gtk-doc when preparing releases,
so it's safe to use the default behavior for regular builds.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 autogen.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index eea755b..275f7b2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -20,4 +20,4 @@ which gnome-autogen.sh || {
 # exists at all times :-(
 touch ChangeLog AUTHORS
 
-ACLOCAL_FLAGS="$ACLOCAL_FLAGS" . gnome-autogen.sh --enable-gtk-doc "$@"
+ACLOCAL_FLAGS="$ACLOCAL_FLAGS" . gnome-autogen.sh "$@"
-- 
2.17.0




More information about the Libosinfo mailing list