]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add --enable-ddate
authorKarel Zak <kzak@redhat.com>
Thu, 18 Aug 2011 09:50:27 +0000 (11:50 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Aug 2011 09:50:27 +0000 (11:50 +0200)
Don't build this crazy thing by default.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
misc-utils/Makefile.am

index a8bf0d8fc5947a4d75bd6f335093c67c7cdc7d1d..0d3b889312edfa2852686fd2698aab28b405faf3 100644 (file)
@@ -855,6 +855,12 @@ AC_ARG_ENABLE([arch],
 )
 AM_CONDITIONAL(BUILD_ARCH, test "x$enable_arch" = xyes)
 
+AC_ARG_ENABLE([ddate],
+  AS_HELP_STRING([--enable-ddate], [do build ddate]),
+  [], enable_date=no
+)
+AM_CONDITIONAL(BUILD_DDATE, test "x$enable_ddate" = xyes)
+
 AC_ARG_ENABLE([agetty],
   AS_HELP_STRING([--disable-agetty], [do not build agetty]),
   [], enable_agetty=yes
index 9e2e66bf7be3f11df297e8f66a9e6e693ae60760..28bcca1731cb640fe838670c5c1d2be4e260384a 100644 (file)
@@ -6,7 +6,7 @@ bin_PROGRAMS =
 sbin_PROGRAMS =
 usrsbin_exec_PROGRAMS =
 
-usrbin_exec_PROGRAMS = cal ddate logger look mcookie namei whereis 
+usrbin_exec_PROGRAMS = cal logger look mcookie namei whereis
 
 EXTRA_DIST += README.cal README.ddate
 
@@ -17,11 +17,16 @@ usrbin_exec_SCRIPTS = chkdupexe
 
 CLEANFILES = chkdupexe
 
-dist_man_MANS = cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \
+dist_man_MANS = cal.1 chkdupexe.1 logger.1 look.1 mcookie.1 \
                namei.1 whereis.1
 
 namei_SOURCES = namei.c $(top_srcdir)/lib/strutils.c
 
+if BUILD_DDATE
+usrbin_exec_PROGRAMS += ddate
+dist_man_MANS += ddate.1
+endif
+
 if BUILD_LIBUUID
 usrbin_exec_PROGRAMS += uuidgen
 dist_man_MANS += uuidgen.1