X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=2b61844d6927d1f15fc99ac44e464aa707e4282d;hb=b1e910309fb5e7d46aadbc5321a2c23b288faff2;hp=0ec5e20875201a6e311af2abcf5ff4d80aabe405;hpb=9c28acb8d463f076b55d9c4334c9120ac3b932c7;p=lttng-tools.git diff --git a/configure.ac b/configure.ac index 0ec5e2087..2b61844d6 100644 --- a/configure.ac +++ b/configure.ac @@ -461,21 +461,16 @@ AC_CHECK_FUNCS([sched_getcpu sysconf sync_file_range]) # check for 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_TOOLS_BUILD_WITH_LIBDL], [test "x$have_libdl" = "xyes"]) -AM_CONDITIONAL([LTTNG_TOOLS_BUILD_WITH_LIBC_DL], [test "x$have_libc_dl" = "xyes"]) + [DL_LIBS="-ldl"], + [ + #libdl not found, check for dlopen in libc. + AC_CHECK_LIB([c], [dlopen], + [DL_LIBS="-lc"], + [AC_MSG_FAILURE([Cannot find dlopen in libdl nor libc. Use [LDFLAGS]=-Ldir to specify their location.])] + ) + ] +) +AC_SUBST(DL_LIBS) # Check for fmemopen AC_CHECK_LIB([c], [fmemopen],