public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb: add ../config/pkg.m4 in acinclude.m4
@ 2021-05-09  1:24 Simon Marchi
  2021-05-09 20:00 ` Mike Frysinger
  0 siblings, 1 reply; 22+ messages in thread
From: Simon Marchi @ 2021-05-09  1:24 UTC (permalink / raw)
  To: gdb-patches

Since commit adeab0c5b33f ("config/debuginfod: do not include pkg.m4
directly"), it no longer works to re-generate the autoconf stuff in GDB
without passing "-I ../config":

    $ autoreconf -f
    configure.ac:161: error: possibly undefined macro: AC_MSG_ERROR
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    configure.ac:329: error: possibly undefined macro: AC_MSG_WARN
    configure.ac:409: error: possibly undefined macro: AC_DEFINE
    autoreconf: /opt/autostuff/2.69/bin/autoconf failed with exit status: 1

The reason is: since that commit, the PKG_CHECK_MODULES macro is not
found.  When passing "-I ../config" to the autoconf tools, then it's
found.  But if I understand correctly, the reason why we have all these
includes in acinclude.m4 is to avoid having to specify that, to make the
default invocation without special arguments "just work".

So, add pkg.m4 to that list.

gdb/ChangeLog:

	* acinclude.m4: Include ../config/pkg.m4.
	* aclocal.m4: Re-generate.

Change-Id: I6c6ca833f225b6e9b954ae80f1ebc2e735dee4e4
---
 gdb/acinclude.m4 | 3 +++
 gdb/aclocal.m4   | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index 68520d6d9381..49704c5e7e3a 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -78,6 +78,9 @@ m4_include(ax_cxx_compile_stdcxx.m4)
 
 m4_include([../config/ax_pthread.m4])
 
+dnl For PKG_CHECK_MODULES, used by debuginfod configury code.
+m4_include([../config/pkg.m4])
+
 dnl written by Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva 
 dnl Version 1.3 (2001/03/02)
 dnl source http://www.gnu.org/software/ac-archive/Miscellaneous/ac_define_dir.html
diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
index cbea739c0e51..110b416e6156 100644
--- a/gdb/aclocal.m4
+++ b/gdb/aclocal.m4
@@ -199,5 +199,4 @@ AC_DEFUN([_AM_SUBST_NOTMAKE])
 # Public sister of _AM_SUBST_NOTMAKE.
 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
-m4_include([../config/pkg.m4])
 m4_include([acinclude.m4])
-- 
2.30.1


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-06-24 18:45 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-09  1:24 [PATCH] gdb: add ../config/pkg.m4 in acinclude.m4 Simon Marchi
2021-05-09 20:00 ` Mike Frysinger
2021-05-10  0:16   ` Simon Marchi
2021-05-10  1:14     ` Mike Frysinger
2021-05-10  1:32       ` Simon Marchi
2021-05-10 13:25         ` Tom Tromey
2021-05-10 22:36         ` Mike Frysinger
2021-06-15  5:44           ` [PATCH] gdb/gdbserver: switch to AC_CONFIG_MACRO_DIRS Mike Frysinger
2021-06-17  2:30             ` Simon Marchi
2021-06-17  4:21               ` Mike Frysinger
2021-06-17 14:43                 ` Simon Marchi
2021-06-18  4:38                   ` Mike Frysinger
2021-06-18 13:22                     ` Simon Marchi
2021-06-23  9:38                     ` Pedro Alves
2021-06-23 22:26                       ` Mike Frysinger
2021-06-24 18:45                         ` Pedro Alves
2021-06-18 14:03             ` [PATCH v2] " Mike Frysinger
2021-06-20  0:48               ` Simon Marchi
2021-06-20  2:10                 ` Mike Frysinger
2021-06-20  2:17                   ` Simon Marchi
2021-06-20  2:22               ` [PATCH v3] " Mike Frysinger
2021-06-20  2:46                 ` Simon Marchi

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 read-only IMAP folder(s) and NNTP newsgroup(s).