]> err.no Git - util-linux/commitdiff
build-sys: add warning when libuuid is not found
authorKarel Zak <kzak@redhat.com>
Wed, 18 Jul 2007 08:46:42 +0000 (10:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 18 Jul 2007 08:46:42 +0000 (10:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index 35852f8670c6d40ef9610552322fcd8a6b17b2a5..2705873227fb16d0c56fb8c4a070608c25ebb82c 100644 (file)
@@ -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)