X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=configure.ac;h=a480e2f010d9e76755ec5ebd7f5cf8351058e8f1;hb=38eb0baa8a8b7bca7b1981e25ef09436d7eb5524;hp=00da3e8c6ac78bd3985a0a2846141347c8466ffe;hpb=67107619135ff344f0de2783ec2d48e558deaf9a;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 00da3e8c..a480e2f0 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.]) ]) ] ) @@ -159,6 +175,7 @@ changequote([,])dnl fi ;; x86_64) LIBFORMAT="elf64-x86-64" ;; + amd64) LIBFORMAT="elf64-x86-64" ;; powerpc) LIBFORMAT="elf32-powerpc" ;; ppc64) LIBFORMAT="elf64-powerpc" ;; powerpc64) LIBFORMAT="elf64-powerpc" ;;