X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=00da3e8c6ac78bd3985a0a2846141347c8466ffe;hb=67107619135ff344f0de2783ec2d48e558deaf9a;hp=21dca42c45fa563054dec166c79f9dff32ef6576;hpb=eade58d0cba1a300e37a4b1fd4b2588f134d08c9;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 21dca42c..00da3e8c 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])