From 8ce4f47adb343aed069862a05b5e315173b17823 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 18 Jul 2008 16:35:57 +0200 Subject: If we don't have libuuid, build without it instead of failing Only error out if configure was given --with-libuuid but we don't find it. --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f534bd2..faf8c4d 100644 --- a/configure.ac +++ b/configure.ac @@ -36,11 +36,14 @@ AC_HEADER_STDC XTRANS_CONNECTION_FLAGS AC_ARG_WITH(libuuid, AC_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs])) -AM_CONDITIONAL(WITH_LIBUUID, test x"$with_libuuid" != xno) if test x"$with_libuuid" != xno; then - PKG_CHECK_MODULES(LIBUUID, uuid) + PKG_CHECK_MODULES(LIBUUID, uuid, [HAVE_LIBUUID=yes], [HAVE_LIBUUID=no]) fi +if test x"$with_libuuid" = xyes && test HAVE_LIBUUID = no; then + AC_MSG_ERROR([requested libuuid support but uuid.pc not found]) +fi +AM_CONDITIONAL(WITH_LIBUUID, test x"$HAVE_LIBUUID" = xyes) if test "x$GCC" = "xyes"; then GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ -- cgit v1.2.3