AC_DEFINE(HAVE_LIBBLKID, 1, [Define to 1 if you have the -lblkid.])
fi
AM_CONDITIONAL(BUILD_LIBBLKID, test "x$build_libblkid" = xyes)
+AM_CONDITIONAL(BUILD_LIBBLKID_TESTS, test "x$build_libblkid" = xyes -a "x$enable_static" = xyes)
dnl
dnl libmount
UL_REQUIRES_BUILD([libmount], [libblkid])
UL_REQUIRES_HAVE([libmount], [scanf_alloc_modifier], [scanf string alloc modifier])
AM_CONDITIONAL(BUILD_LIBMOUNT, test "x$build_libmount" = xyes)
+AM_CONDITIONAL(BUILD_LIBMOUNT_TESTS, test "x$build_libmount" = xyes -a "x$enable_static" = xyes)
AC_SUBST([LIBMOUNT_VERSION])
AC_SUBST([LIBMOUNT_VERSION_INFO])
libblkid/src/blkid.sym \
libblkid/src/blkid.h.in
+if BUILD_LIBBLKID_TESTS
check_PROGRAMS += \
test_blkid_cache \
test_blkid_config \
test_blkid_verify_LDFLAGS = $(blkid_tests_ldflags)
test_blkid_verify_LDADD = $(blkid_tests_ldadd)
+endif # BUILD_LIBBLKID_TESTS
+
+
# move lib from $(usrlib_execdir) to $(libdir) if needed
install-exec-hook-libblkid:
if test "$(usrlib_execdir)" != "$(libdir)"; then \
libmount/src/libmount.sym \
libmount/src/libmount.h.in
+if BUILD_LIBMOUNT_TESTS
check_PROGRAMS += \
test_mount_cache \
test_mount_context \
test_mount_version_LDFLAGS = $(libmount_tests_ldflags)
test_mount_version_LDADD = $(libmount_tests_ldadd)
+endif # BUILD_LIBMOUNT_TESTS
+
# move lib from $(usrlib_execdir) to $(libdir) if needed
install-exec-hook-libmount: