]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
New cache variable index in the manual.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Sep 2009 05:16:04 +0000 (07:16 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Sep 2009 05:16:04 +0000 (07:16 +0200)
* doc/autoconf.texi: Define new index `CA' for cache variables.
(caindex): New macro.
(Cache Variable Index): New appendix node.
(Top, Indices): Adjust menus.
(Cache Variable Names, Site Defaults): Adjust text.
* doc/Makefile.am (CLEANFILES): Add files generated for CA index.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
doc/Makefile.am
doc/autoconf.texi

index d534115c9c59c708e3654cd2387fcfff65fb030f..8a5380430f8239303692bcbfb7dcd3a94573d143 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       New cache variable index in the manual.
+       * doc/autoconf.texi: Define new index `CA' for cache variables.
+       (caindex): New macro.
+       (Cache Variable Index): New appendix node.
+       (Top, Indices): Adjust menus.
+       (Cache Variable Names, Site Defaults): Adjust text.
+       * doc/Makefile.am (CLEANFILES): Add files generated for CA index.
+
        New FAQ node: Debugging.
        * doc/autoconf.texi (Debugging): New node.
        (Top, FAQ): Adjust menus.
index 1e4e53e4d1fd89f144e56712fe8a53caf8d3a7f8..fd1ab3386263a1efe5a4b4be37e8c58d01c4037d 100644 (file)
@@ -30,4 +30,5 @@ EXTRA_DIST = gendocs_template
 # not know.
 CLEANFILES = autoconf.ACs  autoconf.cvs  autoconf.MSs  autoconf.prs \
             autoconf.ATs  autoconf.evs  autoconf.fns  autoconf.ovs \
+            autoconf.ca   autoconf.CA   autoconf.cas  autoconf.CAs \
             autoconf.tmp
index f3c5ef2e57e1070fb6b09cbe855a789aea271151..7dbb97841a33ab3924c6b18ae6fff44fb3ff72e7 100644 (file)
@@ -52,6 +52,8 @@
 @defcodeindex ov
 @c Define a CPP variable index.
 @defcodeindex cv
+@c Define a cache variable index.
+@defcodeindex CA
 @c Define an Autoconf macro index that @defmac doesn't write to.
 @defcodeindex AC
 @c Define an Autotest macro index that @defmac doesn't write to.
 @end ifclear
 
 
+@c @caindex{VARIABLE}
+@c ------------------
+@c Registering an ac_cv_\VARIABLE\ cache variable.
+@ifset shortindexflag
+@macro caindex{macro}
+@CAindex \macro\
+@end macro
+@end ifset
+@ifclear shortindexflag
+@macro caindex{macro}
+@CAindex ac_cv_\macro\
+@end macro
+@end ifclear
+
 @c Define an index for functions: `alloca' etc.  Used for the
 @c portability sections and so on.  We can't use `fn' (aka `fnindex),
 @c since `@defmac' goes into it => we'd get all the macros too.
@@ -637,6 +653,7 @@ Indices
 * Environment Variable Index::  Index of environment variables used
 * Output Variable Index::       Index of variables set in output files
 * Preprocessor Symbol Index::   Index of C preprocessor symbols defined
+* Cache Variable Index::        Index of documented cache variables
 * Autoconf Macro Index::        Index of Autoconf macros
 * M4 Macro Index::              Index of M4, M4sugar, and M4sh macros
 * Autotest Macro Index::        Index of Autotest macros
@@ -9292,6 +9309,9 @@ be omitted if it does not apply.
 The values assigned to cache variables may not contain newlines.
 Usually, their values are Boolean (@samp{yes} or @samp{no}) or the
 names of files or functions; so this is not an important restriction.
+@ref{Cache Variable Index} for an index of cache variables with
+documented semantics.
+
 
 @node Cache Files
 @subsection Cache Files
@@ -20451,9 +20471,12 @@ useful if you are cross-compiling, where it is impossible to check features
 that require running a test program.  You could ``prime the cache'' by
 setting those values correctly for that system in
 @file{@var{prefix}/etc/config.site}.  To find out the names of the cache
-variables you need to set, look for shell variables with @samp{_cv_} in
-their names in the affected @command{configure} scripts, or in the Autoconf
-M4 source code for those macros.
+variables you need to set, see the documentation of the respective
+Autoconf macro.  If the variables or their semantics are undocumented,
+you may need to look for shell variables with @samp{_cv_} in their names
+in the affected @command{configure} scripts, or in the Autoconf M4
+source code for those macros; but in that case, their name or semantics
+may change in a future Autoconf version.
 
 The cache file is careful to not override any variables set in the site
 files.  Similarly, you should not override command-line options in the
@@ -24245,6 +24268,7 @@ have free time again.  I think.  Yeah, right.)
 * Environment Variable Index::  Index of environment variables used
 * Output Variable Index::       Index of variables set in output files
 * Preprocessor Symbol Index::   Index of C preprocessor symbols defined
+* Cache Variable Index::        Index of documented cache variables
 * Autoconf Macro Index::        Index of Autoconf macros
 * M4 Macro Index::              Index of M4, M4sugar, and M4sh macros
 * Autotest Macro Index::        Index of Autotest macros
@@ -24279,6 +24303,19 @@ use these names in @code{#if} or @code{#ifdef} directives.
 
 @printindex cv
 
+@node Cache Variable Index
+@appendixsec Cache Variable Index
+
+This is an alphabetical list of documented cache variables used
+by macros defined in Autoconf.  Autoconf macro may use additional cache
+variables internally.
+@ifset shortindexflag
+To make the list easier to use, the variables are listed without their
+preceding @samp{ac_cv_}.
+@end ifset
+
+@printindex CA
+
 @node Autoconf Macro Index
 @appendixsec Autoconf Macro Index