GNU autoconf, a tool that enables you to configure your software to adapt to the wide assortment of system configurations in which it may be built, including many non-Linux systems.
The ultimate goal of autoconf is to generate a makefile.
autoconf can generates shell scripts that automatically configure source code packages to adapt to many different brands of UNIX and UNIX-like system. These scripts, usually named configure, test for the presence or absence of certain features a program needs or can use, and build makefiles based on the results of these tests.
Building configure.in
*********************************************
AC_INIT(unique_file_in_source_dir)
any test
AC_OUTPUT([file...[,extra_cmds[,init_cmds]]])
*********************************************
unique_file_in_source_dir is a file present in the source code directory.
AC_OUTPUT creates the output files, such as Makefiles and other(optional) output files.
Sturcturing the File
***********************************************
AC_INIT
Test for programs
Test for libraries
Test for header files
Test for typedefs
Test for structures
Test for compiler behavior
Test for library functions
Test for system services
AC_OUTPUT
***********************************************
总结: 先看到这里,等下边用得着的时候再回来仔细看。