* [libgpiod][PATCH] build: fix HAS_GI_DOCGEN never defined error
@ 2024-08-31 7:52 Kent Gibson
2024-09-02 9:41 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Kent Gibson @ 2024-08-31 7:52 UTC (permalink / raw)
To: linux-gpio, brgl; +Cc: Kent Gibson
When building without --enable-bindings-glib configure reports this error:
...
checking for help2man... true
checking that generated files are newer than configure... done
configure: error: conditional "HAS_GI_DOCGEN" was never defined.
Usually this means the macro was only invoked conditionally.
make: *** [Makefile:440: config.status] Error 1
Move the initialization of HAS_GI_DOCGEN outside the conditional
with_bindings_glib section so it is always initialized.
Fixes: e090088c21b7 ("bindings: add GLib bindings")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
Sorry about the resend - forgot the libgpiod prefix on the first try :(.
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index cbe9e13..1ac1002 100644
--- a/configure.ac
+++ b/configure.ac
@@ -267,12 +267,12 @@ then
AC_MSG_ERROR([glib-mkenums not found - needed to build GLib bindings]))
AC_CHECK_PROG([has_gi_docgen], [gi-docgen], [true], [false])
- AM_CONDITIONAL([HAS_GI_DOCGEN], [test "x$has_gi_docgen" = xtrue])
if test "x$has_gi_docgen" = xfalse
then
AC_MSG_NOTICE([gi-docgen not found - GLib documentation cannot be generated])
fi
fi
+AM_CONDITIONAL([HAS_GI_DOCGEN], [test "x$has_gi_docgen" = xtrue])
# GObject-introspection
found_introspection=no
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [libgpiod][PATCH] build: fix HAS_GI_DOCGEN never defined error
2024-08-31 7:52 [libgpiod][PATCH] build: fix HAS_GI_DOCGEN never defined error Kent Gibson
@ 2024-09-02 9:41 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2024-09-02 9:41 UTC (permalink / raw)
To: linux-gpio, brgl, Kent Gibson; +Cc: Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Sat, 31 Aug 2024 15:52:12 +0800, Kent Gibson wrote:
> When building without --enable-bindings-glib configure reports this error:
>
> ...
> checking for help2man... true
> checking that generated files are newer than configure... done
> configure: error: conditional "HAS_GI_DOCGEN" was never defined.
> Usually this means the macro was only invoked conditionally.
> make: *** [Makefile:440: config.status] Error 1
>
> [...]
Applied, thanks!
[1/1] build: fix HAS_GI_DOCGEN never defined error
commit: c701785717629ecb609764092414d1f164022d2a
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-02 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-31 7:52 [libgpiod][PATCH] build: fix HAS_GI_DOCGEN never defined error Kent Gibson
2024-09-02 9:41 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).