17 Aug 2011 02:45
[PATCH 1/2] [SHELL] Allow building without LINEO support.
David Miller <davem <at> davemloft.net>
2011-08-17 00:45:02 GMT
2011-08-17 00:45:02 GMT
Simply specify --disable-lineno to configure.
Signed-off-by: David S. Miller <davem <at> davemloft.net>
---
configure.ac | 5 +++++
src/var.c | 4 ++++
src/var.h | 6 ++++++
3 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7eae954..96b6310 100644
--- a/configure.ac
+++ b/configure.ac
<at> <at> -131,5 +131,10 <at> <at> 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
diff --git a/src/var.c b/src/var.c
index ecc8c90..027beff 100644
--- a/src/var.c
+++ b/src/var.c
<at> <at> -101,7 +101,9 <at> <at> struct var varinit[] = {
(Continue reading)
RSS Feed