Skip to content

configure script

1、一般,开源软件,很多采用的是这种方式

2、更好地支持cross-plateform

wikipedia configure script

Usage

./configure
make
make install
./configure --libs="-lmpfr -lgmp"
./configure --prefix=/home/user/local

Generating configure

Software developers simplify the challenge of cross-platform software development by using GNU Autotools.[2]

Dependency checking

In new development, library dependency checking has been done in great part using pkg-config via the m4 macro, PKG_CHECK_MODULES. Before pkg-config gained popularity, separate m4 macros were created to locate files known to be included in the distribution of libraries depended upon.