]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
authorAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 10:00:25 +0000 (10:00 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 14 Nov 2000 10:00:25 +0000 (10:00 +0000)
gives back traces.

ChangeLog
doc/autoconf.texi
man/autoscan.1
tests/Makefile.in

index 1b72fccb146017a294a2929d4d80c6402106d6c8..925d89f6cadfccc75311a32ad791e3ef0563eac1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-14  Akim Demaille  <akim@epita.fr>
+
+       * doc/autoconf.texi (autoconf Invocation): Explain `-W error'
+       gives back traces.
+
 2000-11-11  Pavel Roskin  <proski@gnu.org>
 
        * acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
index 46520ecdb963ee64d3a3e56f7a7cc1114b204902..55145be4881eb1e3048d82169d0f2eb3625a11df 100644 (file)
@@ -1012,9 +1012,42 @@ autoconf --warnings=syntax,$WARNINGS,@var{categories}
 
 @noindent
 If you want to disable @command{autoconf}'s defaults and @code{WARNING}
-but enable the warnings about obsolete constructs, use @samp{-W
+but enable the warnings about obsolete constructs, use @option{-W
 none,obsolete}.
 
+@cindex Back trace
+@cindex Macro invocation stack
+@command{autoconf} displays a back trace for errors, but not for
+warnings; if you want them, just pass @option{-W error}.  For instance
+on this @file{configure.in}:
+
+@example
+AC_DEFUN([INNER],
+[AC_TRY_RUN([true])])
+
+AC_DEFUN([OUTTER],
+[INNER])
+
+AC_INIT
+OUTTER
+@end example
+
+@noindent
+you get:
+
+@example
+/tmp % ace -Wcross
+configure.in:8: warning: AC_TRY_RUN called without default to allow \
+cross compiling
+/tmp % ace -Wcross,error
+configure.in:8: error: AC_TRY_RUN called without default to allow \
+cross compiling
+acgeneral.m4:3044: AC_TRY_RUN is expanded from...
+configure.in:2: INNER is expanded from...
+configure.in:5: OUTTER is expanded from...
+configure.in:8: the top level
+@end example
+
 @item --trace=@var{macro}[:@var{format}]
 @itemx -t @var{macro}[:@var{format}]
 Do not create the @code{configure} script, but list the calls to
index 891c77fc11bcd871e976e231e98403237d7e10ea..1787edbcc51e440f15e150b65b1440521f1f94b2 100644 (file)
@@ -1,5 +1,5 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.022.
-.TH AUTOSCAN "1" "October 2000" "GNU autoconf 2.49b" FSF
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
+.TH AUTOSCAN "1" "November 2000" "GNU autoconf 2.49b" FSF
 .SH NAME
 autoscan \- Generate a preliminary configure.in
 .SH SYNOPSIS
index 4a35440f0fc3d3488e87ee5103d77578e374adcf..1607ac4e3c4f23d5fd8a9a89e7354b8c29853ec2 100644 (file)
@@ -83,7 +83,8 @@ CLEANFILES = debug-*.sh macro configure configure.in config.status
 DISTCLEANFILES = atconfig testsuite
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_CLEAN_FILES =  atconfig
-DIST_COMMON =  README Makefile.am Makefile.in atconfig.in
+DIST_COMMON =  README Makefile.am Makefile.in atconfig.in configure \
+configure.in
 
 
 PACKAGE = @PACKAGE@