X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=894b260200f779d66ccc5e9ddace0d90d9cf7df2;hb=f9ff7aa4f0f89c39d35c1e72f0beb99b69061d02;hp=b04d4e35b656f5d4a0db74d12712245f8dbd40e1;hpb=80249235cb6560c6bb915f1cd486aa5017f87456;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index b04d4e35..894b2602 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,16 @@ AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBC_DL], [test "x$have_libc_dl" = "xyes"]) AC_CHECK_LIB([pthread], [pthread_create]) +# Check for dlfcn.h +AC_CHECK_HEADER([dlfcn.h]) +AS_IF([test "x${ac_cv_header_dlfcn_h}" = "xyes"], + [AC_CHECK_DECLS([RTLD_DI_LINKMAP],,, + [#define _GNU_SOURCE /* Required on Linux to get GNU extensions */ + #include ]) + ], + [ac_cv_have_decl_RTLD_DI_LINKMAP="no"]) +AM_CONDITIONAL([HAVE_DLINFO], [test "x${ac_cv_have_decl_RTLD_DI_LINKMAP}" = "xyes"]) + # Checks for header files. #AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])