From: Akim Demaille Date: Mon, 7 Aug 2000 12:06:49 +0000 (+0000) Subject: * acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel X-Git-Tag: autoconf-2.50~666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=787433a2e81f60245bd97a070fdb073baa9f07dd;p=thirdparty%2Fautoconf.git * acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel Roskin. (AC_MSG_ERROR): Use it. --- diff --git a/ChangeLog b/ChangeLog index 2e02fbb76..711630d88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-08-07 Akim Demaille + + * acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel + Roskin. + (AC_MSG_ERROR): Use it. + 2000-08-04 Ruediger Kuhlmann * acspecific.m4 (AC_PROG_RANLIB): Use AC_CHECK_TOOL. diff --git a/acgeneral.m4 b/acgeneral.m4 index 8f77e1bd0..ae63f2dcf 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2698,6 +2698,14 @@ define([_AC_ECHO_N], [echo $ECHO_N "_AC_SH_QUOTE([$1])$ECHO_C" >&m4_default([$2], [AC_FD_MSG])]) +# AC_MSG_NOTICE(STRING) +# --------------------- +define([AC_MSG_NOTICE], +[_AC_ECHO([configure:__oline__: notice: $1], AC_FD_LOG) +_AC_ECHO([$1])[]dnl +]) + + # AC_MSG_CHECKING(FEATURE) # ------------------------ define([AC_MSG_CHECKING], @@ -2706,12 +2714,6 @@ _AC_ECHO_N([checking $1... ])[]dnl ]) -# autoupdate::AC_CHECKING(FEATURE) -# -------------------------------- -AU_DEFUN([AC_CHECKING], -[AC_MSG_CHECKING([$1])]) - - # AC_MSG_RESULT(RESULT) # --------------------- define([AC_MSG_RESULT], @@ -2729,12 +2731,6 @@ _AC_ECHO_UNQUOTED([${ECHO_T}$1])[]dnl ]) -# autoupdate::AC_VERBOSE(RESULT) -# ------------------------------ -AU_DEFUN([AC_VERBOSE], -[AC_MSG_RESULT([ $1])]) - - # AC_MSG_WARN(PROBLEM) # -------------------- define([AC_MSG_WARN], @@ -2747,6 +2743,16 @@ define([AC_MSG_ERROR], [{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }]) +# AU::AC_CHECKING(FEATURE) +# ------------------------ +AU_ALIAS([AC_CHECKING], +[AC_MSG_NOTICE([checking $1...])]) + + +# AU::AC_VERBOSE(STRING) +# ---------------------- +AU_ALIAS([AC_VERBOSE], [AC_MSG_RESULT]) + diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 1757d1614..8a041f46a 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -6061,6 +6061,20 @@ This macro prints nothing if @code{configure} is run with the @option{--quiet} or @option{--silent} option. @end defmac +@defmac AC_MSG_NOTICE (@var{message}) +@maindex MSG_NOTICE +Deliver the @var{message} to the user. It is useful mainly to print a +general description of the overall purpose of a group of feature checks, +e.g., + +@example +AC_MSG_NOTICE(checking if stack overflow is detectable) +@end example + +This macro prints nothing if @code{configure} is run with the +@option{--quiet} or @option{--silent} option. +@end defmac + @defmac AC_MSG_ERROR (@var{error-description}, @ovar{exit-status}) @maindex MSG_ERROR Notify the user of an error that prevents @code{configure} from @@ -8081,14 +8095,7 @@ typedef loff_t off_t; @defmac AC_CHECKING (@var{feature-description}) @maindex CHECKING -This macro is similar to @code{AC_MSG_CHECKING}, except that it prints a -newline after the @var{feature-description}. It is useful mainly to -print a general description of the overall purpose of a group of feature -checks, e.g., - -@example -AC_CHECKING(if stack overflow is detectable) -@end example +Same as @samp{AC_MSG_NOTICE([checking @var{feature-description}...]}. @end defmac @defmac AC_COMPILE_CHECK (@var{echo-text}, @var{includes}, @var{function-body}, @var{action-if-found}, @ovar{action-if-not-found}) @@ -8107,7 +8114,8 @@ to print messages (@pxref{Printing Messages}). @defmac AC_CROSS_CHECK @maindex CROSS_CHECK -@code{AC_C_CROSS} +Same as @code{AC_C_CROSS}, which is obsolete too, and does nothing +@code{:-)}. @end defmac @defmac AC_CYGWIN @@ -8665,10 +8673,7 @@ This is now handled by default. @defmac AC_VERBOSE (@var{result-description}) @maindex VERBOSE -This macro is similar to @code{AC_MSG_RESULT}, except that it is meant -to follow a call to @code{AC_CHECKING} instead of -@code{AC_MSG_CHECKING}; it starts the message it prints with a tab. It -is considered obsolete. +@code{AC_MSG_RESULT}. @end defmac @defmac AC_VFORK diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 8f77e1bd0..ae63f2dcf 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -2698,6 +2698,14 @@ define([_AC_ECHO_N], [echo $ECHO_N "_AC_SH_QUOTE([$1])$ECHO_C" >&m4_default([$2], [AC_FD_MSG])]) +# AC_MSG_NOTICE(STRING) +# --------------------- +define([AC_MSG_NOTICE], +[_AC_ECHO([configure:__oline__: notice: $1], AC_FD_LOG) +_AC_ECHO([$1])[]dnl +]) + + # AC_MSG_CHECKING(FEATURE) # ------------------------ define([AC_MSG_CHECKING], @@ -2706,12 +2714,6 @@ _AC_ECHO_N([checking $1... ])[]dnl ]) -# autoupdate::AC_CHECKING(FEATURE) -# -------------------------------- -AU_DEFUN([AC_CHECKING], -[AC_MSG_CHECKING([$1])]) - - # AC_MSG_RESULT(RESULT) # --------------------- define([AC_MSG_RESULT], @@ -2729,12 +2731,6 @@ _AC_ECHO_UNQUOTED([${ECHO_T}$1])[]dnl ]) -# autoupdate::AC_VERBOSE(RESULT) -# ------------------------------ -AU_DEFUN([AC_VERBOSE], -[AC_MSG_RESULT([ $1])]) - - # AC_MSG_WARN(PROBLEM) # -------------------- define([AC_MSG_WARN], @@ -2747,6 +2743,16 @@ define([AC_MSG_ERROR], [{ _AC_ECHO([configure: error: $1], 2); exit m4_default([$2], 1); }]) +# AU::AC_CHECKING(FEATURE) +# ------------------------ +AU_ALIAS([AC_CHECKING], +[AC_MSG_NOTICE([checking $1...])]) + + +# AU::AC_VERBOSE(STRING) +# ---------------------- +AU_ALIAS([AC_VERBOSE], [AC_MSG_RESULT]) +