1. Run command AutoScan to generate Configure.scan and configure.log files, if you need to install autuconf packages, http://download.chinaunix.net/download/ 0001000/648.shtml
Unzip after download
Run the command./configure at this point, if you do not have the M4 software package installed, you will be prompted to check how to install the M4 software package (http://blog.csdn.net/ldl22847/article/details/ 8575140) This blog is very clear about how to install and run after the installation is complete./configure No error message
Run command make
Run make Install
You can run the AutoScan command after the previous step without error, and a. Scan and. log file is generated. You need to use the command MV to change the Configure.scan to Configure.in or configure.ac.
Use Vim to view and modify the contents of the Configure.ac, otherwise the. m4 file is not generated when the polygon is running aclocal.
Modify the content is, add Am_init_automake in the configure.in this sentence to be able. As shown
Run the aclocal command again and then view the. m4 file generation that you see.
Run the command autofonf. Generate Configure File
2. Writing makefile.am files
3. Automake
Depending on the prompts, you may need to run Automake--add-missing to install some of the necessary software, and then run Automake generate makefile.in files
4. Execution configure this may be prompted Config.status:error:cannot find input file: ' config.h.in ' ERROR, the workaround is to run the command Autoheader generates Config.h.in, and then executes configure. You can see that the makefile file is generated.
Links: http://my.oschina.net/qihh/blog/66113
Http://bbs.chinaunix.net/thread-793596-1-1.html
The above one is a very specific introduction to the relationship between makefile.am makefile.in makefile and how to generate makefile files in step-by-step
The following link is a processing condition when an error occurs when generating a. m4 file.
Generate makefile files with makefile.am and makefile.in