摘要:以最新的pg10.2为例. configure'脚本有大量的命令行选项.对不同的软件包来说,这些选项可能会有变化,但是许多基本的选项是不会改变的.带上'-- help'选项执行'configure'脚本可以看到可用的所有选项.尽管许多选项是很少用到的,但是当你为了特殊的需求而configure一个包时,知道他们的存在是很有益处的.
pg10#./configure --help
`configure' configures PostgreSQL 10.2 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit #帮助
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit #版本
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX #安装目录
[/usr/local/pgsql]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX #依赖软件安装目录.
[PREFIX]
By default, `make install' will install all the files in #默认将完全安装