]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
whereis: add --disable-whereis to configure
authorSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:35:00 +0000 (11:35 +0000)
committerSamanta Navarro <ferivoz@riseup.net>
Wed, 4 Nov 2020 11:43:09 +0000 (11:43 +0000)
Allow a build of util-linux without whereis.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
configure.ac

index 9d4785c95c5383d1d7d9e5ba1d603c55265d4dbc..a99437697119c6de40fbfe049ee38093ac478da0 100644 (file)
@@ -1651,7 +1651,11 @@ if test "x$matriplet" != "x"; then
   AC_DEFINE_UNQUOTED([MULTIARCHTRIPLET], ["$matriplet"],
   ["Multi-arch triplet for whereis library search path"])
 fi
-UL_BUILD_INIT([whereis], [yes])
+AC_ARG_ENABLE([whereis],
+  AS_HELP_STRING([--disable-whereis], [do not build whereis]),
+  [], [UL_DEFAULT_ENABLE([whereis], [check])]
+)
+UL_BUILD_INIT([whereis])
 AM_CONDITIONAL([BUILD_WHEREIS], [test "x$build_whereis" = xyes])
 
 UL_BUILD_INIT([getopt], [yes])