X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=71fbb6034e72306f1b40b4b6394ec93a66c1efdd;hb=d0b96690836f4b876096f3dc14801f8e25281a77;hp=857e8e9fc60a0520b2db2dcf7283d67804093cdb;hpb=2c452d45ca4b7532e92aca40a9d949c169a6a4a4;p=lttng-tools.git diff --git a/configure.ac b/configure.ac index 857e8e9fc..71fbb6034 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,27 @@ AC_CHECK_LIB([popt], [poptGetContext], [], [AC_MSG_ERROR([Cannot find libpopt. Use [LDFLAGS]=-Ldir to specify its location.])] ) +# Check for libuuid +AC_CHECK_LIB([uuid], [uuid_generate], +[ + AC_DEFINE_UNQUOTED([LTTNG_HAVE_LIBUUID], 1, [Has libuuid support.]) + have_libuuid=yes +], +[ + # libuuid not found, check for uuid_create in libc. + AC_CHECK_LIB([c], [uuid_create], + [ + AC_DEFINE_UNQUOTED([LTTNG_HAVE_LIBC_UUID], 1, [Has libc uuid support.]) + have_libc_uuid=yes + ], + [ + AC_MSG_ERROR([Cannot find libuuid uuid_generate nor libc uuid_create. Use [LDFLAGS]=-Ldir to specify their location.]) + ]) +] +) +AM_CONDITIONAL([LTTNG_BUILD_WITH_LIBUUID], [test "x$have_libuuid" = "xyes"]) +AM_CONDITIONAL([LTTNG_BUILD_WITH_LIBC_UUID], [test "x$have_libc_uuid" = "xyes"]) + # URCU library version needed or newer liburcu_version=">= 0.7.2" @@ -150,7 +171,7 @@ AS_IF([test "x$lttng_ust_support" = "xyes"], [ ) ]) AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [test "x$lttng_ust_ctl_found" = xyes]) -AC_CHECK_FUNCS([sched_getcpu sysconf]) +AC_CHECK_FUNCS([sched_getcpu sysconf sync_file_range]) # check for dlopen AC_CHECK_LIB([dl], [dlopen],