From: Karel Zak Date: Wed, 18 Jul 2007 08:46:42 +0000 (+0200) Subject: build-sys: add warning when libuuid is not found X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dc801d2b7073004679c4dc3f7a60b623bbfcbd5;p=util-linux build-sys: add warning when libuuid is not found Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 35852f86..27058732 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,12 @@ AC_DEFUN([UTIL_CHECK_LIB], [ AC_CHECK_LIB([$1], [$2], [], [have_$1=no]) AM_CONDITIONAL(AS_TR_CPP(HAVE_$1), [test $have_$1 = yes]) ]) + UTIL_CHECK_LIB(uuid, uuid_is_null) +if test $have_uuid = no; then + AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs]) +fi + UTIL_CHECK_LIB(util, openpty) UTIL_CHECK_LIB(termcap, tgetnum)