X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=configure.ac;h=aa0fac34a6b8af3f10fdac8c65ea98cc711e53ee;hb=bf24b009e15fdf7c9c5fdf464a2576ce8cd7dfc3;hp=f9738a7e460a5970a3b2cac1e7b8ea8c88268787;hpb=578ce73a104b847b78790041bf30aa9aaa310dd0;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index f9738a7e..aa0fac34 100644 --- a/configure.ac +++ b/configure.ac @@ -49,18 +49,22 @@ AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([uuid], [uuid_generate], [ AC_DEFINE_UNQUOTED([LTTNG_UST_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_UST_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 its location.]) ]) ] ) +AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBUUID], [test "x$have_libuuid" = "xyes"]) +AM_CONDITIONAL([LTTNG_UST_BUILD_WITH_LIBC_UUID], [test "x$have_libc_uuid" = "xyes"]) # Checks for header files. #AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])