]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add --disable-fdformat
authorKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 21:03:20 +0000 (23:03 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 21:03:20 +0000 (23:03 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/Makemodule.am
configure.ac
disk-utils/Makemodule.am

index 14e0e61367664a44333ba6ff44481093655aca4f..371aaf5067d23ad33a2cd3110da87601683c2dba 100644 (file)
@@ -62,11 +62,14 @@ if BUILD_SWAPLABEL
 dist_bashcompletion_DATA += \
        bash-completion/swaplabel
 endif
-if LINUX
+if BUILD_FDFORMAT
 dist_bashcompletion_DATA += \
-       bash-completion/blockdev \
        bash-completion/fdformat
 endif
+if LINUX
+dist_bashcompletion_DATA += \
+       bash-completion/blockdev
+endif
 # ...disk-utils
 
 # fdisks...
index 84148abd3e34f9f95c67739447b6b9b2f9bc2872..fec2e4d79087f722b72de2d68c888ff08576518b 100644 (file)
@@ -958,7 +958,7 @@ UL_REQUIRES_HAVE([cramfs], [z], [z library])
 AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
 
 
-AC_ARG_ENABLE([BUILD_BFS],
+AC_ARG_ENABLE([bfs],
   AS_HELP_STRING([--disable-bfs], [do not build mkfs.bfs]),
   [], enable_bfs=yes
 )
@@ -966,6 +966,15 @@ UL_BUILD_INIT([bfs])
 AM_CONDITIONAL(BUILD_BFS, test "x$build_bfs" = xyes)
 
 
+AC_ARG_ENABLE([fdformat],
+  AS_HELP_STRING([--disable-fdformat], [do not build fdformat]),
+  [], enable_fdformat=yes
+)
+UL_BUILD_INIT([fdformat])
+UL_REQUIRES_LINUX([fdformat])
+AM_CONDITIONAL(BUILD_FDFORMAT, test "x$build_fdformat" = xyes)
+
+
 AC_ARG_ENABLE([hwclock],
   AS_HELP_STRING([--disable-hwclock], [do not build hwclock]),
   [], enable_hwclock=check
index 4e32847459c7f050bc9a9f66a86e6a4f3df4e1c2..def18c7f5c02b90eb6e108d246f595e390c94ece 100644 (file)
@@ -107,18 +107,18 @@ test_fsck_cramfs_LDADD = $(fsck_cramfs_LDADD)
 test_fsck_cramfs_CFLAGS = $(AM_CFLAGS) -DINCLUDE_FS_TESTS
 endif
 
+if BUILD_FDFORMAT
+usrsbin_exec_PROGRAMS += fdformat
+dist_man_MANS += disk-utils/fdformat.8
+fdformat_SOURCES = disk-utils/fdformat.c
+endif
 
 if LINUX
 sbin_PROGRAMS += blockdev
 dist_man_MANS += disk-utils/blockdev.8
 blockdev_SOURCES = disk-utils/blockdev.c
 blockdev_LDADD = $(LDADD) libcommon.la
-
-usrsbin_exec_PROGRAMS += fdformat
-dist_man_MANS += disk-utils/fdformat.8
-fdformat_SOURCES = disk-utils/fdformat.c
-endif # LINUX
-
+endif
 
 if BUILD_PARTX
 usrsbin_exec_PROGRAMS += partx addpart delpart resizepart