diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 7e705811..dd0e40eb 100644 --- a/configure.ac +++ b/configure.ac @@ -306,13 +306,14 @@ if test $build_elfutils = yes; then LDFLAGS="$LDFLAGS $elfutils_rpath" && make install-data # so that elfutils/version.h - if any - may be found. ) + save_CPPFLAGS=${CPPFLAGS} + CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils + AC_CHECK_HEADERS([elfutils/version.h]) + CPPFLAGS="$save_CPPFLAGS" +else + AC_CHECK_HEADERS([elfutils/version.h]) fi -save_CPPFLAGS=${CPPFLAGS} -CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils -AC_CHECK_HEADERS([elfutils/version.h]) -CPPFLAGS="$save_CPPFLAGS" - dnl This is here mainly to make sure that configure --prefix=... changes dnl the config.h files so files depending on it are recompiled dnl prefix is passed through indirectly in the Makefile.am AM_CPPFLAGS. |