autoconf: Configuration Files

1 
1 4.7 Creating Configuration Files
1 ================================
1 
1 Be sure to read the previous section, ⇒Configuration Actions.
1 
1  -- Macro: AC_CONFIG_FILES (FILE..., [CMDS], [INIT-CMDS])
1      Make `AC_OUTPUT' create each `FILE' by copying an input file (by
1      default `FILE.in'), substituting the output variable values.  This
11      macro is one of the instantiating macros; see ⇒Configuration
      Actions.  ⇒Makefile Substitutions, for more information
1      on using output variables.  ⇒Setting Output Variables, for
1      more information on creating them.  This macro creates the
1      directory that the file is in if it doesn't exist.  Usually,
1      makefiles are created this way, but other files, such as
1      `.gdbinit', can be specified as well.
1 
1      Typical calls to `AC_CONFIG_FILES' look like this:
1 
1           AC_CONFIG_FILES([Makefile src/Makefile man/Makefile X/Imakefile])
1           AC_CONFIG_FILES([autoconf], [chmod +x autoconf])
1 
1      You can override an input file name by appending to FILE a
1      colon-separated list of input files.  Examples:
1 
1           AC_CONFIG_FILES([Makefile:boiler/top.mk:boiler/bot.mk]
1                           [lib/Makefile:boiler/lib.mk])
1 
1      Doing this allows you to keep your file names acceptable to DOS
1      variants, or to prepend and/or append boilerplate to the file.
1