From: Mark Wielaard <mark@klomp.org>
To: annobin@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [PATCH] Add check for binutils-devel demangle.h header
Date: Thu, 13 Apr 2023 17:28:24 +0200 [thread overview]
Message-ID: <20230413152824.97333-1-mark@klomp.org> (raw)
Make sure demangle.h is available during configure to prevent build
issues later.
Also remove check for AC_HEADER_SYS_WAIT which isn't actually used.
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 36d252d..7ed31fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,7 +149,13 @@ ACX_LT_HOST_FLAGS
AC_SUBST(target_noncanonical)
AC_TYPE_INT64_T
AC_TYPE_UINT64_T
-AC_HEADER_SYS_WAIT
+
+# Check for demangle.h header, note the "empty" includes to make sure
+# libiberty.h isn't getting confused by the use of configure detected
+# include headers.
+AC_CHECK_HEADER([demangle.h], [],
+ [AC_MSG_ERROR([binutils-devel demangle.h header not found])],
+ [ ])
AM_CONDITIONAL([COND_DOCS], [test "$with_docs" != no])
AM_CONDITIONAL([COND_TESTS], [test "$with_tests" != no])
--
2.31.1
next reply other threads:[~2023-04-13 15:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-13 15:28 Mark Wielaard [this message]
2023-04-13 19:07 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230413152824.97333-1-mark@klomp.org \
--to=mark@klomp.org \
--cc=annobin@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).