X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=configure.ac;h=1b3796579404afc3b54037ef30d8a07b0f029feb;hb=11a3adca7633e8a5f41beab7851ac3aa5cfb7b39;hp=6e90e72c6d3e762b39702bc8350be3d637cdc971;hpb=bae63afc923740627352cdd6b0aeab1b0706387e;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 6e90e72c..1b379657 100644 --- a/configure.ac +++ b/configure.ac @@ -123,6 +123,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])