From 3adaaa154e5d57c1862a1adb74855d5da2413c1b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 May 2014 13:26:56 +0200 Subject: [PATCH] build-sys: add BUILD_GETOPT Signed-off-by: Karel Zak --- configure.ac | 3 +++ misc-utils/Makemodule.am | 2 ++ 2 files changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 35f80b80a6..d5b33a6016 100644 --- a/configure.ac +++ b/configure.ac @@ -1136,6 +1136,9 @@ AM_CONDITIONAL([BUILD_NAMEI], [test "x$build_namei" = xyes]) UL_BUILD_INIT([whereis], [yes]) AM_CONDITIONAL([BUILD_WHEREIS], [test "x$build_whereis" = xyes]) +UL_BUILD_INIT([getopt], [yes]) +AM_CONDITIONAL([BUILD_GETOPT], [test "x$build_getopt" = xyes]) + UL_BUILD_INIT([blockdev], [check]) UL_REQUIRES_LINUX([blockdev]) diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index 9e643bfa12..94e0958f84 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -162,6 +162,7 @@ dist_man_MANS += misc-utils/rename.1 rename_SOURCES = misc-utils/rename.c endif +if BUILD_GETOPT usrbin_exec_PROGRAMS += getopt dist_man_MANS += misc-utils/getopt.1 getopt_SOURCES = misc-utils/getopt.c @@ -169,3 +170,4 @@ getoptexampledir = $(docdir)/getopt/ dist_getoptexample_SCRIPTS = \ misc-utils/getopt-parse.bash \ misc-utils/getopt-parse.tcsh +endif -- 2.47.2