what's configure
A Configure script is an executable script designed to aid in developing a program to be run on a wide number of different computers. It matches the libraries on the user's computer, with those required by the program, just before compiling it from its source code.
what does configure do?
there are three steps must be done when a software is installed:
./configure make make install
the main work configure doesA configure script accomplishes the first of these steps. Using configure scripts is an automated method of generating makefiles before compilation to tailor the software to the system on which the executable is to be compiled and run.
- configuring the makefile,
- compiling the code,
- and finally installing the executable in the appropriate places.
references:use Makefile to check dependencies,library dependency checking has been done in great part using pkg-config via the m4 macro, PKG_CHECK_MODULES. Before pkg-config's gained popularity, separate m4 macros were created to locate files known to be included in the distribution of libraries depended upon.
http://en.wikipedia.org/wiki/Configure_script#Dependency_checking
本文深入探讨了配置脚本在软件安装流程中的关键角色,从检查依赖到自动生成Makefile,确保软件在不同计算机上都能正确运行。
671

被折叠的 条评论
为什么被折叠?



