From aec1eece73b0446201b00f916724c27f0a85e45b Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 8 Apr 2009 21:52:00 +0300 Subject: configure.in: Display summary at the end of configure run. diff --git a/ChangeLog b/ChangeLog index 87544c8..e68597a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2009-04-08 kalev + * configure.in: Display summary at the end of configure run. * cmd2.c: Move aliases/actions back to default group if it was specified as '*'. diff --git a/configure.in b/configure.in index e9f5636..7a8c660 100644 --- a/configure.in +++ b/configure.in @@ -6,35 +6,39 @@ AC_CANONICAL_HOST AC_ARG_ENABLE(vt100, AC_HELP_STRING([--enable-vt100], - [Hard code VT100 escape sequences; use if you have no termcap ]), - [case "${enableval}" in - yes) AC_DEFINE(USE_VT100) ;; - no) ;; - esac]) + [Hard code VT100 escape sequences; use if you have no termcap [[default=no]]]), + , + [enable_vt100="no"] +) +AS_IF([ test "${enable_vt100}" = yes ], + [ AC_DEFINE(USE_VT100) ]) AC_ARG_ENABLE(sort, AC_HELP_STRING([--enable-sort], - [Sort aliases and actions]), - [case "${enableval}" in - yes) AC_DEFINE(DO_SORT) ;; - no) ;; - esac]) + [Sort aliases and actions [[default=no]]]), + , + [enable_sort="no"] +) +AS_IF([ test "${enable_sort}" = yes ], + [ AC_DEFINE(DO_SORT) ]) AC_ARG_ENABLE(noshell, AC_HELP_STRING([--enable-noshell], - [Disables the "#!" command]), - [case "${enableval}" in - yes) AC_DEFINE(NO_SHELL) ;; - no) ;; - esac]) + [Disables the "#!" command [[default=no]]]), + , + [enable_noshell="no"] +) +AS_IF([ test "${enable_noshell}" = yes ], + [ AC_DEFINE(NO_SHELL) ]) AC_ARG_ENABLE(ansibug, AC_HELP_STRING([--enable-ansibug], - [Enables fixes for "#mark" ansi bugs on some terminals]), - [case "${enableval}" in - yes) AC_DEFINE(BUG_ANSI) ;; - no) ;; - esac]) + [Enables fixes for "#mark" ansi bugs on some terminals [[default=no]]]), + , + [enable_ansibug="no"] +) +AS_IF([ test "${enable_ansibug}" = yes ], + [ AC_DEFINE(BUG_ANSI) ]) AC_ARG_ENABLE(bsd, AC_HELP_STRING([--enable-bsd], @@ -97,3 +101,31 @@ AC_FUNC_MALLOC AC_CHECK_FUNCS([bzero]) AC_OUTPUT(Makefile) + +AC_OUTPUT + +cat <