Commit e1dfb2e3 authored by Constantin Rack's avatar Constantin Rack Committed by GitHub

Merge pull request #2625 from trofi/master

configure.ac: allow user to disable libunwind discovery via --disable-libunwind
parents dfcf396d 88487e7d
...@@ -721,16 +721,28 @@ else ...@@ -721,16 +721,28 @@ else
AC_SUBST(pkg_config_defines, "") AC_SUBST(pkg_config_defines, "")
fi fi
PKG_CHECK_MODULES(LIBUNWIND, [libunwind], AC_ARG_ENABLE([libunwind],
[ [AS_HELP_STRING([--enable-libunwind],
AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used]) [enable libunwind [default=auto]])],
AC_SUBST([LIBUNWIND_CFLAGS]) [enable_libunwind=$enableval],
AC_SUBST([LIBUNWIND_LIBS]) [enable_libunwind="auto"])
AC_CHECK_LIB([dl], [dladdr])
], if test "x$enable_libunwind" != "xno"; then
[ PKG_CHECK_MODULES(LIBUNWIND, [libunwind],
AC_MSG_WARN([Cannot find libunwind]) [
]) AC_DEFINE(HAVE_LIBUNWIND, 1, [The libunwind library is to be used])
AC_SUBST([LIBUNWIND_CFLAGS])
AC_SUBST([LIBUNWIND_LIBS])
AC_CHECK_LIB([dl], [dladdr])
],
[
if test "x$enable_libunwind" = "xyes"; then
AC_MSG_ERROR([Cannot find libunwind])
else
AC_MSG_WARN([Cannot find libunwind])
fi
])
fi
# Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS # Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS
AC_SUBST(LIBZMQ_EXTRA_CFLAGS) AC_SUBST(LIBZMQ_EXTRA_CFLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment