X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=bb6018f87decb325298d4f2b59d6f37a92b7c88d;hb=3210412576857e26c18bd0d154906bd7444f5529;hp=18e934c382123fe9341f65c10c5fb5cf21c59d42;hpb=81577dc22887debaf9b19bf1034a2887fb9069c7;p=elogind.git diff --git a/configure.ac b/configure.ac index 18e934c38..bb6018f87 100644 --- a/configure.ac +++ b/configure.ac @@ -672,7 +672,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]) @@ -680,11 +680,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])