diff options
author | Karel Zak | 2011-10-27 14:17:00 +0200 |
---|---|---|
committer | Karel Zak | 2011-11-03 12:32:49 +0100 |
commit | bcdab497df60efd55878ee98b5694c3babfd6412 (patch) | |
tree | 45e36377f887c8024037b610dc78fcd502a21ba9 /configure.ac | |
parent | build-sys: cleanup BUILD_LIBMOUNT (diff) | |
download | kernel-qcow2-util-linux-bcdab497df60efd55878ee98b5694c3babfd6412.tar.gz kernel-qcow2-util-linux-bcdab497df60efd55878ee98b5694c3babfd6412.tar.xz kernel-qcow2-util-linux-bcdab497df60efd55878ee98b5694c3babfd6412.zip |
build-sys: cleanup BUILD_UUIDD
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac index 0ba8e7964..984ad597d 100644 --- a/configure.ac +++ b/configure.ac @@ -415,7 +415,6 @@ AC_SUBST([LIBMOUNT_VERSION_INFO]) AC_DEFINE_UNQUOTED(LIBMOUNT_VERSION, "$LIBMOUNT_VERSION", [libmount version string]) - AC_ARG_ENABLE([mount], AS_HELP_STRING([--disable-mount], [do not build mount utilities]), [], enable_mount=check @@ -460,20 +459,14 @@ AM_CONDITIONAL(BUILD_PARTX, test "x$build_partx" = xyes) AC_ARG_ENABLE([uuidd], AS_HELP_STRING([--disable-uuidd], [do not build the uuid daemon]), - [], enable_uuidd=auto + [], enable_uuidd=check ) - -case "$enable_uuidd:$enable_libuuid" in -yes:no) - AC_MSG_ERROR([cannot enable uuidd when libuuid is disabled]) ;; -auto:*) - enable_uuidd=$enable_libuuid ;; -esac -if test "x$enable_uuidd" = xyes; then +build_uuidd=yes +UL_REQUIRES_BUILD([uuidd], [libuuid]) +if test "x$build_uuidd" = xyes; then AC_DEFINE(HAVE_UUIDD, 1, [Define to 1 if you want to use uuid daemon.]) fi -AM_CONDITIONAL(BUILD_UUIDD, test "x$enable_uuidd" = xyes) - +AM_CONDITIONAL(BUILD_UUIDD, test "x$build_uuidd" = xyes) AC_ARG_ENABLE([mountpoint], |