From: Mark Wielaard <mark@klomp.org>
To: annobin@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [PATCH] Fix configure detection of demangle.h on Debian based systems
Date: Sat, 15 Apr 2023 22:25:56 +0200 [thread overview]
Message-ID: <20230415202556.189994-1-mark@klomp.org> (raw)
---
configure.ac | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4cd97ef..29813d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,9 +152,13 @@ AC_TYPE_UINT64_T
# 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.
+# include headers. On Fedora based systems libiberty.h and demangle.h
+# are installed by binutils-devel in /usr/include. On Debian based
+# systems those headers come from the libiberty-dev package and are
+# placed under /usr/include/libiberty.
+CPPFLAGS="$CPPFLAGS -I/usr/include/libiberty"
AC_CHECK_HEADER([demangle.h], [],
- [AC_MSG_ERROR([binutils-devel demangle.h header not found])],
+ [AC_MSG_ERROR([libiberty-dev/binutils-devel demangle.h header not found])],
[ ])
AM_CONDITIONAL([COND_DOCS], [test "$with_docs" != no])
--
2.31.1
next reply other threads:[~2023-04-15 20:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-15 20:25 Mark Wielaard [this message]
2023-04-17 12:31 ` 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=20230415202556.189994-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).