2017-06-30 15:03:35 +00:00
|
|
|
From f41a0a8c6839e3962e10a7bd3aad39127a764748 Mon Sep 17 00:00:00 2001
|
2017-03-08 09:25:36 +00:00
|
|
|
From: Mark Wielaard <mjw@redhat.com>
|
|
|
|
Date: Wed, 24 Aug 2016 17:06:34 +0200
|
2017-07-18 13:49:11 +00:00
|
|
|
Subject: [PATCH] Fix libdw configure check.
|
2017-03-08 09:25:36 +00:00
|
|
|
|
|
|
|
commit a82119 "configure.ac: use LIBDW always conditionally" contained
|
|
|
|
a typo that caused WITH_LIBDW_LIB never to be set when you were using
|
|
|
|
libelf. Fixed by reverting the "!=" to "=" again.
|
|
|
|
|
|
|
|
Signed-off-by: Mark Wielaard <mjw@redhat.com>
|
2017-06-30 15:03:35 +00:00
|
|
|
(cherry picked from commit 10633641ec17081cca6332c3fb4abeea3df4059f)
|
2017-03-08 09:25:36 +00:00
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2017-06-30 15:03:35 +00:00
|
|
|
index 33c8f344f..9596a97b3 100644
|
2017-03-08 09:25:36 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2017-06-30 15:03:35 +00:00
|
|
|
@@ -362,7 +362,7 @@ AM_CONDITIONAL(WITH_ARCHIVE,[test "$with_archive" = yes])
|
2017-03-08 09:25:36 +00:00
|
|
|
#=================
|
|
|
|
# Check for elfutils libdw library with dwelf_elf_gnu_build_id.
|
|
|
|
WITH_LIBDW_LIB=
|
|
|
|
-AS_IF([test "$WITH_LIBELF" != yes],[
|
|
|
|
+AS_IF([test "$WITH_LIBELF" = yes],[
|
|
|
|
AC_CHECK_HEADERS([elfutils/libdwelf.h],[
|
|
|
|
AC_CHECK_LIB(dw, dwelf_elf_gnu_build_id, [
|
|
|
|
AC_DEFINE(HAVE_LIBDW, 1,
|