X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=8b79f9a9566b3809eced77d07ac392a1ab5b35c6;hb=90cefaa31af0a85593a155fba8570e04c653225a;hp=00da3e8c6ac78bd3985a0a2846141347c8466ffe;hpb=277d6e1d016e69184fd49b867ff1268d3ff668f5;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 00da3e8c..8b79f9a9 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,23 @@ AC_PROG_MAKE_SET LT_INIT ## Checks for libraries. -AC_CHECK_LIB([dl], [dlopen]) +AC_CHECK_LIB([dl], [dlopen], +[ + have_libdl=yes +], +[ + #libdl not found, check for dlopen in libc. + AC_CHECK_LIB([c], [dlopen], + [ + have_libc_dl=yes + ], + [ + AC_MSG_ERROR([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.]) + ]) +]) +AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBDL], [test "x$have_libdl" = "xyes"]) +AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBC_DL], [test "x$have_libc_dl" = "xyes"]) + AC_CHECK_LIB([pthread], [pthread_create]) # Check for libuuid @@ -59,7 +75,7 @@ AC_CHECK_LIB([uuid], [uuid_generate], have_libc_uuid=yes ], [ - AC_MSG_ERROR([Cannot find libuuid uuid_generate nor libc uuid_create. Use [LDFLAGS]=-Ldir to specify its location.]) + AC_MSG_ERROR([Cannot find libuuid uuid_generate nor libc uuid_create. Use [LDFLAGS]=-Ldir to specify their location.]) ]) ] )