From 6d42a58200ceccd298ede647fce868c7db4bbdec Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 4 Oct 2011 20:40:19 +0200 Subject: [PATCH] build-sys: add --enable-w-from build option Some distributions apparently want to have w command to print FROM field by default. Reported-by: Jaromir Capik Signed-off-by: Sami Kerola --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index bcc0264c..183e24a9 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,14 @@ if test "x$enable_oomem" = xyes; then AC_DEFINE(OOMEM_ENABLE, 1, [add out-of-memory fields to the library and top]) fi +AC_ARG_ENABLE([w-from], + AS_HELP_STRING([--enable-w-from], [enable w from field by default]), + [], enable_w_from=no +) +if test "x$enable_w_from" = xyes; then + AC_DEFINE(W_SHOWFROM, 1, [enable w from field by default]) +fi + AC_CONFIG_FILES([ Makefile proc/Makefile