圣凤凌霜 发表于 2018-12-24 07:52:00

源码编译 PHP 完整配置选项

  Usage: configure
  Options:
  Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
  Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
  
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  
  --bindir=DIR            user executables in DIR
  --sbindir=DIR         system admin executables in DIR
  --libexecdir=DIR      program executables in DIR
  --datadir=DIR         read-only architecture-independent data in DIR
  
  --sysconfdir=DIR      read-only single-machine data in DIR
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  
  --localstatedir=DIR   modifiable single-machine data in DIR
  --libdir=DIR            object code libraries in DIR
  --includedir=DIR      C header files in DIR
  --oldincludedir=DIR   C header files for non-gcc in DIR
  --infodir=DIR         info documentation in DIR
  --mandir=DIR            man documentation in DIR
  --srcdir=DIR            find the sources in DIR
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
  run sed PROGRAM on installed program names
  Host type:
  --build=BUILD         configure for building on BUILD
  --host=HOST             configure for HOST
  --target=TARGET         configure for TARGET
  Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]include FEATURE
  --with-PACKAGE[=ARG]    use PACKAGE
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR      X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
  --enable and --with options recognized:
  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
  --disable-rpath         Disable passing additional runtime library
  search paths
  --enable-re2c-cgoto   Enable -g flag to re2c to use computed goto gcc extension
  SAPI modules:
  --with-aolserver=DIR    Specify path to the installed AOLserver
  --with-apxs[=FILE]      Build shared Apache 1.x module. FILE is the optional
  pathname to the Apache apxs tool
  --with-apache[=DIR]   Build Apache 1.x module. DIR is the top-level Apache
  build directory
  --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
  --with-apxs2filter[=FILE]
  EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
  pathname to the Apache apxs tool
  --with-apxs2[=FILE]   Build shared Apache 2.0 Handler module. FILE is the optional
  pathname to the Apache apxs tool
  --with-apache-hooks[=FILE]
  EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
  pathname to the Apache apxs tool
  --with-apache-hooks-static[=DIR]
  EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
  build directory
  --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
  --with-caudium[=DIR]    Build PHP as a Pike module for use with Caudium.
  DIR is the Caudium server dir
  --disable-cli         Disable building CLI version of PHP
  (this forces --without-pear)
  --with-continuity=DIR   Build PHP as Continuity Server module.
  DIR is path to the installed Continuity Server root
  --enable-embed[=TYPE]   EXPERIMENTAL: Enable building of embedded SAPI library
  TYPE is either 'shared' or 'static'.
  --enable-fpm            EXPERIMENTAL: Enable building of the fpm SAPI executable
  --with-fpm-user[=USER]Set the user for php-fpm to run as. (default: nobody)
  --with-fpm-group[=GRP]Set the group for php-fpm to run as. For a system user, this
  should usually be set to match the fpm username (default: nobody)
  --with-isapi[=DIR]      Build PHP as an ISAPI module for use with Zeus
  --with-litespeed      Build PHP as litespeed module
  --with-milter[=DIR]   Build PHP as Milter application
  --with-nsapi=DIR      Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
  --with-phttpd=DIR       Build PHP as phttpd module
  --with-pi3web[=DIR]   Build PHP as Pi3Web module
  --with-roxen=DIR      Build PHP as a Pike module. DIR is the base Roxen
  directory, normally /usr/local/roxen/server
  --enable-roxen-zts      ROXEN: Build the Roxen module using Zend Thread Safety
  --with-thttpd=SRCDIR    Build PHP as thttpd module
  --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
  --with-webjames=SRCDIRBuild PHP as a WebJames module (RISC OS only)
  --disable-cgi         Disable building CGI version of PHP
  General settings:
  --enable-gcov         Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
  --enable-debug          Compile with debugging symbols
  --with-layout=TYPE      Set how installed files will be laid out.Type can
  be either PHP or GNU
  --with-config-file-path=PATH
  Set the path in which to look for php.ini
  --with-config-file-scan-dir=PATH
  Set the path where to scan for configuration files
  --enable-safe-mode      Enable safe mode by default
  --with-exec-dir[=DIR]   Only allow executables in DIR under safe-mode
  
  --enable-sigchild       Enable PHP's own SIGCHLD handler
  --enable-magic-quotes   Enable magic quotes by default.
  --enable-libgcc         Enable explicitly linking against libgcc
  --disable-short-tags    Disable the short-form
页: [1]
查看完整版本: 源码编译 PHP 完整配置选项