[w3m-dev 03865] Re: configure --help

* acinclude.m4 (AC_W3M_ANSI_COLOR): depends USE_COLOR
	(AC_W3M_BG_COLOR): depends USE_COLOR
	(AC_W3M_W3MMAILER): depends external_uri_loader
* fm.h: undef USE_BG_COLOR ifndef USE_COLOR
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2003-04-08 16:27:16 +00:00
parent fbfe1b1bff
commit 0b74f17f68
5 changed files with 26 additions and 17 deletions

View File

@@ -28,8 +28,8 @@ AC_DEFUN([AC_W3M_ANSI_COLOR],
[AC_SUBST(USE_ANSI_COLOR)
AC_MSG_CHECKING(if ansi color escape sequence support is enabled)
AC_ARG_ENABLE(ansi_color,
[ --disable-ansi-color disable ansi color escape sequence],,
[enable_ansi_color="yes"])
[ --disable-ansi-color disable ansi color escape sequence],,
[enable_ansi_color="$enable_color"])
test x"$enable_ansi_color" = xyes && AC_DEFINE(USE_ANSI_COLOR)
AC_MSG_RESULT($enable_ansi_color)])
#
@@ -40,8 +40,8 @@ AC_DEFUN([AC_W3M_BG_COLOR],
[AC_SUBST(USE_BG_COLOR)
AC_MSG_CHECKING(if background color support is enabled)
AC_ARG_ENABLE(bgcolor,
[ --disable-bgcolor disable to set background color],,
[enable_bgcolor="yes"])
[ --disable-bgcolor disable to set background color],,
[enable_bgcolor="$enable_color"])
test x"$enable_bgcolor" = xyes && AC_DEFINE(USE_BG_COLOR)
AC_MSG_RESULT($enable_bgcolor)])
#
@@ -300,7 +300,7 @@ AC_DEFUN([AC_W3M_W3MMAILER],
[AC_SUBST(USE_W3MMAILER)
AC_MSG_CHECKING(if w3mmail is used)
AC_ARG_ENABLE(w3mmailer,
[ --disable-w3mmailer disable w3mmailer],,
[ --disable-w3mmailer disable w3mmailer],,
[enable_w3mmailer="$enable_external_uri_loader"])
test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
test x"$enable_w3mmailer" = xyes && AC_DEFINE(USE_W3MMAILER)