From 4da0e221ba2244921862d46cdeefbc8ab5808eed Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 17 Aug 2011 09:31:17 +0800 Subject: [SHELL] Allow building without LINEO support Simply specify --disable-lineno to configure. Signed-off-by: David S. Miller Signed-off-by: Herbert Xu --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5cd6e95..c6fb401 100644 --- a/configure.ac +++ b/configure.ac @@ -131,5 +131,10 @@ if test "$use_libedit" != "yes"; then else export LIBS="$LIBS -ledit" fi +AC_ARG_ENABLE(lineno, AS_HELP_STRING(--disable-lineno, \ + [Disable LINENO support])) +if test "$enable_lineno" != "no"; then + AC_DEFINE([WITH_LINENO], 1, [Define if you build with -DWITH_LINENO]) +fi AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT -- cgit 1.4.1