From 9e30f88e70f6416c50d3fe3e41f6cbc3748c7c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20H=C3=A5llberg?= Date: Thu, 1 Jan 2009 03:01:59 +0100 Subject: support ./configure --disable-FEATURE diff --git a/configure.in b/configure.in index aea52e3..891fa09 100644 --- a/configure.in +++ b/configure.in @@ -4,29 +4,44 @@ AM_INIT_AUTOMAKE(powwow, 1.2.13) AC_ARG_ENABLE(vt100, AC_HELP_STRING([--enable-vt100], - [Hard code vt100 escape sequences, use if you have no termcap ]), - AC_DEFINE(USE_VT100)) + [Hard code VT100 escape sequences; use if you have no termcap ]), + [case "${enableval}" in + yes) AC_DEFINE(USE_VT100) ;; + no) ;; + esac]) AC_ARG_ENABLE(sort, AC_HELP_STRING([--enable-sort], [Sort aliases and actions]), - AC_DEFINE(DO_SORT)) + [case "${enableval}" in + yes) AC_DEFINE(DO_SORT) ;; + no) ;; + esac]) AC_ARG_ENABLE(noshell, AC_HELP_STRING([--enable-noshell], [Disables the "#!" command]), - AC_DEFINE(NO_SHELL)) + [case "${enableval}" in + yes) AC_DEFINE(NO_SHELL) ;; + no) ;; + esac]) AC_ARG_ENABLE(ansibug, AC_HELP_STRING([--enable-ansibug], - [enables fixes for "#mark" ansi bugs on some terminals]), - AC_DEFINE(BUG_ANSI)) + [Enables fixes for "#mark" ansi bugs on some terminals]), + [case "${enableval}" in + yes) AC_DEFINE(BUG_ANSI) ;; + no) ;; + esac]) AC_ARG_ENABLE(bsd, AC_HELP_STRING([--enable-bsd], [Needed for BSD systems, in powwow this was USE_SGTTY and BSD_LIKE]), - AC_DEFINE(USE_SGTTY) - AC_DEFINE(BSD_LIKE)) + [case "${enableval}" in + yes) AC_DEFINE(USE_SGTTY) + AC_DEFINE(BSD_LIKE) ;; + no) ;; + esac]) # Checks for programs. AC_PROG_CC -- cgit v0.10.2