Re: [systemd-devel] [PATCH] build-sys: require elfutils = 158

2014-06-22 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jun 20, 2014 at 01:46:04PM -0700, Michael Marineau wrote:
 The recently added stacktrace support in 8d4e028f uses functions added
 in elfutils 158. Check for one of the new functions to avoid attempting
 to build against older versions.
Applied.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] build-sys: require elfutils = 158

2014-06-20 Thread Michael Marineau
The recently added stacktrace support in 8d4e028f uses functions added
in elfutils 158. Check for one of the new functions to avoid attempting
to build against older versions.
---
 configure.ac | 12 ++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1391d03..c1f83ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -639,7 +639,7 @@ AC_ARG_ENABLE([elfutils],
 if test x${have_elfutils} != xno ; then
 AC_CHECK_HEADERS(
 [elfutils/libdwfl.h],
-[have_elfutils=yes],
+[],
 [if test x$have_elfutils = xyes ; then
 AC_MSG_ERROR([*** ELFUTILS headers not found.])
 fi])
@@ -647,11 +647,19 @@ if test x${have_elfutils} != xno ; then
 AC_CHECK_LIB(
 [dw],
 [dwfl_begin],
-[have_elfutils=yes],
+[],
 [if test x$have_elfutils = xyes ; then
 AC_MSG_ERROR([*** ELFUTILS libs not found.])
 fi])
 
+AC_CHECK_LIB(
+[dw],
+[dwfl_core_file_attach],
+[have_elfutils=yes],
+[if test x$have_elfutils = xyes ; then
+AC_MSG_ERROR([*** ELFUTILS = 158 is required.])
+fi])
+
 if test x$have_elfutils = xyes ; then
 ELFUTILS_LIBS=-lelf -ldw
 AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
-- 
1.8.5.5

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel