chiark / gitweb /
Remove elfutils checks
authorAndy Wingo <wingo@pobox.com>
Sun, 19 Apr 2015 13:43:41 +0000 (15:43 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 19 Apr 2015 13:43:41 +0000 (15:43 +0200)
configure.ac
src/shared/build.h

index 0632c51..1832405 100644 (file)
@@ -486,52 +486,6 @@ fi
 AM_CONDITIONAL([HAVE_SMACK], [test "x$have_smack" = "xyes"])
 
 # ------------------------------------------------------------------------------
-AC_ARG_ENABLE([elfutils],
-        AS_HELP_STRING([--disable-elfutils],[Disable optional ELFUTILS support]),
-                [case "${enableval}" in
-                        yes) have_elfutils=yes ;;
-                        no) have_elfutils=no ;;
-                        *) AC_MSG_ERROR(bad value ${enableval} for --disable-elfutils) ;;
-                esac],
-                [have_elfutils=auto])
-
-if test "x${have_elfutils}" != xno ; then
-        AC_CHECK_HEADERS(
-                [elfutils/libdwfl.h],
-                [],
-                [if test "x$have_elfutils" = xyes ; then
-                        AC_MSG_ERROR([*** ELFUTILS headers not found.])
-                fi])
-
-        AC_CHECK_LIB(
-                [dw],
-                [dwfl_begin],
-                [],
-                [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])
-        else
-                have_elfutils=no
-        fi
-else
-        ELFUTILS_LIBS=
-fi
-AC_SUBST(ELFUTILS_LIBS)
-AM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
-
-# ------------------------------------------------------------------------------
 have_libcryptsetup=no
 AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
 if test "x$enable_libcryptsetup" != "xno"; then
@@ -1155,7 +1109,6 @@ AC_MSG_RESULT([
         GNUTLS:                  ${have_gnutls}
         libcurl:                 ${have_libcurl}
         libidn:                  ${have_libidn}
-        ELFUTILS:                ${have_elfutils}
         binfmt:                  ${have_binfmt}
         vconsole:                ${have_vconsole}
         bootchart:               ${have_bootchart}
index eeaf989..4583afd 100644 (file)
 #define _BLKID_FEATURE_ "-BLKID"
 #endif
 
-#ifdef HAVE_ELFUTILS
-#define _ELFUTILS_FEATURE_ "+ELFUTILS"
-#else
-#define _ELFUTILS_FEATURE_ "-ELFUTILS"
-#endif
-
 #ifdef HAVE_LIBIDN
 #define _IDN_FEATURE_ "+IDN"
 #else
@@ -97,5 +91,4 @@
         _ACL_FEATURE_ " "                                               \
         _SECCOMP_FEATURE_ " "                                           \
         _BLKID_FEATURE_ " "                                             \
-        _ELFUTILS_FEATURE_ " "                                          \
         _IDN_FEATURE_