]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel
authorAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:06:49 +0000 (12:06 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 7 Aug 2000 12:06:49 +0000 (12:06 +0000)
Roskin.
(AC_MSG_ERROR): Use it.

ChangeLog
acgeneral.m4
doc/autoconf.texi
lib/autoconf/general.m4

index 2e02fbb76b77cb4c1c88f56c2cdbb749ff3c9d54..711630d8888e9a464e184b241be0837b9b7bac79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-07  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_MSG_NOTICE): New macro, suggested by Pavel
+       Roskin.
+       (AC_MSG_ERROR): Use it.
+
 2000-08-04  Ruediger Kuhlmann  <uck4@rz.uni-karlsruhe.de>
 
        * acspecific.m4 (AC_PROG_RANLIB): Use AC_CHECK_TOOL.
index 8f77e1bd0fa28f0f2a787e5c0313ce604bffb9a5..ae63f2dcfba57b8152d7a0d701d960929fa8912e 100644 (file)
@@ -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])
+
 
 
 
index 1757d1614412d5e7eb7b2d4993d00ecdd071d27f..8a041f46ae0b4fedfe12eae16e5351eede7f9c41 100644 (file)
@@ -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
index 8f77e1bd0fa28f0f2a787e5c0313ce604bffb9a5..ae63f2dcfba57b8152d7a0d701d960929fa8912e 100644 (file)
@@ -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])
+