autoconf: Autoconf Input Layout
1
1 3.1.3 Standard `configure.ac' Layout
1 ------------------------------------
1
1 The order in which `configure.ac' calls the Autoconf macros is not
1 important, with a few exceptions. Every `configure.ac' must contain a
1 call to `AC_INIT' before the checks, and a call to `AC_OUTPUT' at the
1 end (⇒Output). Additionally, some macros rely on other macros
1 having been called first, because they check previously set values of
1 some variables to decide what to do. These macros are noted in the
1 individual descriptions (⇒Existing Tests), and they also warn
1 you when `configure' is created if they are called out of order.
1
1 To encourage consistency, here is a suggested order for calling the
1 Autoconf macros. Generally speaking, the things near the end of this
1 list are those that could depend on things earlier in it. For example,
1 library functions could be affected by types and libraries.
1
1 Autoconf requirements
1 `AC_INIT(PACKAGE, VERSION, BUG-REPORT-ADDRESS)'
1 information on the package
1 checks for programs
1 checks for libraries
1 checks for header files
1 checks for types
1 checks for structures
1 checks for compiler characteristics
1 checks for library functions
1 checks for system services
1 `AC_CONFIG_FILES([FILE...])'
1 `AC_OUTPUT'
1