Note: These are only used at compile time. If you want to alter PHP's runtime configuration, please see the chapter on Configuration.
The following is a complete list of options supported by PHP 4 configure scripts (as of 4.1.0), used when compiling in Unix-like environments. Some are available in PHP 3, some in PHP 4, and some in both. This is not noted yet.
Note: These options are only used in PHP 4 as of PHP 4.1.0. Some are available in older versions of PHP 4, some even in PHP 3, some only in PHP 4.1.0. If you want to compile an older version, some options will probably not be available.
Include old xDBM support (deprecated).
Build DBA as a shared module.
Include GDBM support.
Include NDBM support.
Include Berkeley DB2 support.
Include Berkeley DB3 support.
Include DBM support.
Include CDB support.
Enable the bundled dbase library.
Include dbplus support.
Enable dbx.
Include FrontBase support. DIR is the FrontBase base directory.
Enable the bundled read-only filePro support.
Include fribidi support (requires FriBidi >=0.1.12). DIR is the fribidi installation directory - default /usr/local/.
Include Informix support. DIR is the Informix base install directory, defaults to nothing.
Include Ingres II support. DIR is the Ingres base directory (default /II/ingres).
Include InterBase support. DIR is the InterBase base install directory, defaults to /usr/interbase.
Include mSQL support. DIR is the mSQL base install directory, defaults to /usr/local/Hughes.
Include MySQL support. DIR is the MySQL base directory. If unspecified, the bundled MySQL library will be used.
Include Oracle-oci8 support. Default DIR is ORACLE_HOME.
Include Adabas D support. DIR is the Adabas base install directory, defaults to /usr/local.
Include SAP DB support. DIR is SAP DB base install directory, defaults to /usr/local.
Include Solid support. DIR is the Solid base install directory, defaults to /usr/local/solid.
Include IBM DB2 support. DIR is the DB2 base install directory, defaults to /home/db2inst1/sqllib.
Include Empress support. DIR is the Empress base install directory, defaults to $EMPRESSPATH. From PHP4, this option only supports Empress Version 8.60 and above.
Include Empress Local Access support. DIR is the Empress base install directory, defaults to $EMPRESSPATH. From PHP4, this option only supports Empress Version 8.60 and above.
Include Velocis support. DIR is the Velocis base install directory, defaults to /usr/local/velocis.
Include a user defined ODBC support. The DIR is ODBC install base directory, which defaults to /usr/local. Make sure to define CUSTOM_ODBC_LIBS and have some odbc.h in your include dirs. E.g., you should define following for Sybase SQL Anywhere 5.5.00 on QNX, prior to run configure script: CPPFLAGS="-DODBC_QNX -DSQLANY_BUG" LDFLAGS=-lunix CUSTOM_ODBC_LIBS="-ldblib -lodbc".
Include iODBC support. DIR is the iODBC base install directory, defaults to /usr/local.
Include Easysoft OOB support. DIR is the OOB base install directory, defaults to /usr/local/easysoft/oob/client.
Include unixODBC support. DIR is the unixODBC base install directory, defaults to /usr/local.
Include OpenLink ODBC support. DIR is the OpenLink base install directory, defaults to /usr/local. This is the same as iODBC.
Include DBMaker support. DIR is the DBMaker base install directory, defaults to where the latest version of DBMaker is installed (such as /home/dbmaker/3.6).
Include Oracle-oci7 support. Default DIR is ORACLE_HOME.
Include Ovrimos SQL Server support. DIR is the Ovrimos' libsqlcli install directory.
Include PostgreSQL support. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR.
Include Sybase-DB support. DIR is the Sybase home directory, defaults to /home/sybase.
Include Sybase-CT support. DIR is the Sybase home directory. Defaults to /home/sybase.
Disable unified ODBC support. Only applicable if iODBC, Adabas, Solid, Velocis or a custom ODBC interface is enabled. PHP 3 only!
Include GD support (DIR is GD's install dir). Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR.
GD: Enable TrueType string function in gd.
GD: Set the path to libjpeg install prefix.
GD: Set the path to libpng install prefix.
GD: Set the path to libXpm install prefix.
GD: Set the path to freetype2 install prefix.
GD: Include FreeType 1.x support.
GD: Include T1lib support.
Include cpdflib support (requires cpdflib >= 2). DIR is the cpdfllib install directory, defaults to /usr.
jpeg dir for cpdflib 2.x.
tiff dir for cpdflib 2.x.
Include PDFlib support. DIR is the pdflib base install directory, defaults to /usr/local. Set DIR to shared to build as dl, or shared,DIR to build as dl and still specify DIR.
PDFLIB: define libjpeg install directory.
PDFLIB: define libpng install directory.
PDFLIB: define libtiff install directory.
Include swf support.
Disable GD support. PHP 3 only!
Include ImageMagick support. DIR is the install directory, and if left out, PHP will try to find it on its own. [experimental]. PHP 3 only!
Include ming support.
Enable the security check for internal server redirects. You should use this if you are running the CGI version with Apache.
If this is enabled, the PHP CGI binary can safely be placed outside of the web tree and people will not be able to circumvent .htaccess security.
Build PHP as FastCGI application.
Compile with debugging symbols.
Sets how installed files will be laid out. Type is one of PHP (default) or GNU.
Install PEAR in DIR (default PREFIX/lib/php).
Do not install PEAR.
Include OpenSSL support (requires OpenSSL >= 0.9.5).
Enable PHP's own SIGCHLD handler.
Disable passing additional runtime library search paths.
Enable explicitly linking against libgcc.
Enable dmalloc.
Include experimental php streams. Do not use unless you are testing the code!
Define the location of zlib install directory.
Include zlib support (requires zlib >= 1.0.9). DIR is the zlib install directory.
Include ASPELL support.
Enable bc style precision math functions.
Include BZip2 support.
Enable support for calendar conversion.
Include CCVS support.
Include crack support.
Enable ctype support.
Include CURL support.
Include CyberCash support. DIR is the CyberCash MCK install directory.
Include CyberMut (french Credit Mutuel telepaiement).
Include cyrus imap support.
Enable exif support.
Include fdftk support.
Enable FTP support.
Include GNU gettext support. DIR is the gettext install directory, defaults to /usr/local.
Include gmp support.
Include Hyperwave support.
Include ICAP support.
Include iconv support.
Include IMAP support. DIR is the c-client install prefix.
IMAP: Include Kerberos support. DIR is the Kerberos install dir.
IMAP: Include SSL support. DIR is the OpenSSL install dir.
Path to the ircg-config script.
Include ircg support.
Include Java support. DIR is the base install directory for the JDK. This extension can only be built as a shared dl.
Include LDAP support. DIR is the LDAP base install directory.
Enable mailparse support.
Enable multibyte string support.
Enable japanese encoding translation.
Include MCAL support.
Include mcrypt support. DIR is the mcrypt install directory.
Include mhash support. DIR is the mhash install directory.
Include mnoGoSearch support. DIR is the mnoGoSearch base install directory, defaults to /usr/local/mnogosearch.
Include muscat support.
Include ncurses support.
Enable experimental pcntl support (CGI ONLY!)
Do not include Perl Compatible Regular Expressions support. Use --with-pcre-regex=DIR to specify DIR where PCRE's include and library files are located, if not using bundled library.
Include Verisign Payflow Pro support.
Disable POSIX-like functions.
Include PSPELL support.
Include QtDOM support (requires Qt >= 2.2.0).
Include libedit readline replacement.
Include readline support. DIR is the readline install directory.
Include recode support. DIR is the recode install directory.
Enable CORBA support via Satellite (EXPERIMENTIAL) DIR is the base directory for ORBit.
Include mm support for session storage.
Enable transparent session id propagation.
Disable session support.
Enable shmop support.
Include SNMP support. DIR is the SNMP base install directory, defaults to searching through a number of common locations for the snmp install. Set DIR to shared to build as a dl, or shared,DIR to build as a dl and still specify DIR.
Enable UCD SNMP hack.
Enable sockets support.
regex library type: system, apache, php.
Use system regex library (deprecated).
Enable System V semaphore support.
Enable the System V shared memory support.
Include vpopmail support.
Use POSIX threads (default).
Build shared libraries [default=yes].
Build static libraries [default=yes].
Optimize for fast installation [default=yes].
Assume the C compiler uses GNU ld [default=no].
Avoid locking (might break parallel builds).
Try to use only PIC/non-PIC objects [default=use both].
Include YAZ support (ANSI/NISO Z39.50). DIR is the YAZ bin install directory.
Compile with memory limit support.
Disable the URL-aware fopen wrapper that allows accessing files via http or ftp.
Export only required symbols. See INSTALL for more information.
Compile without bc style precision math functions. PHP 3 only!
Include IMSp support (DIR is IMSP's include dir and libimsp.a dir). PHP 3 only!
Include FTP support. PHP 3 only!
Include Cybercash MCK support. DIR is the cybercash mck build directory, defaults to /usr/src/mck-3.2.0.3-linux for help look in extra/cyberlib. PHP 3 only!
Disable user-space object overloading support. PHP 3 only!
Include YP support. PHP 3 only!
Include ZIP support (requires zziplib >= 0.10.6). PHP 3 only!
Include DAV support through Apache's mod_dav, DIR is mod_dav's installation directory (Apache module version only!) PHP 3 only!
Compile with remote debugging functions. PHP 3 only!
Take advantage of versioning and scoping provided by Solaris 2.x and Linux. PHP 3 only!
Enable make rules and dependencies not useful (and sometimes confusing) to the casual installer.
Sets the path in which to look for php.ini, defaults to PREFIX/lib.
Enable safe mode by default.
Only allow executables in DIR when in safe mode defaults to /usr/local/php/bin.
Enable magic quotes by default.
Disable the short-form <? start tag by default.
Specify path to the installed AOLserver.
Build shared Apache module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.
Build Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache.
Enable transfer tables for mod_charset (Rus Apache).
Build shared Apache 2.0 module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.
Build fhttpd module. DIR is the fhttpd sources directory, defaults to /usr/local/src/fhttpd.
Build PHP as an ISAPI module for use with Zeus.
Specify path to the installed Netscape Server.
No information yet.
Build PHP as a module for use with Pi3Web.
Build PHP as a Pike module. DIR is the base Roxen directory, normally /usr/local/roxen/server.
Build the Roxen module using Zend Thread Safety.
Include servlet support. DIR is the base install directory for the JSDK. This SAPI prereqs the java extension must be built as a shared dl.
Build PHP as thttpd module.
Build PHP as a TUX module (Linux only).
Include DOM support (requires libxml >= 2.4.2). DIR is the libxml install directory, defaults to /usr.
Disable XML support using bundled expat lib.
XML: external libexpat install dir.
Include XMLRPC-EPI support.
Enable WDDX support.