<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/configure.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'configure.about.php',
    1 => 'List of core configure options',
    2 => 'List of core configure options',
  ),
  'up' => 
  array (
    0 => 'configure.php',
    1 => 'Configure options',
  ),
  'prev' => 
  array (
    0 => 'configure.php',
    1 => 'Configure options',
  ),
  'next' => 
  array (
    0 => 'ini.php',
    1 => 'Impostazioni del php.ini',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/configure/index.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="configure.about" class="sect1">
  <h2 class="title">List of core configure options</h2>
  <p class="para">
   Below is a partial list of configure options used by the PHP
   <var class="filename">configure</var> scripts when compiling in Unix-like
   environments. Most configure options are listed in their appropriate
   locations on the extension reference pages and not here. For a complete
   up-to-date list of configure options, run <strong class="command">./configure --help</strong>
   in your PHP source directory after running <strong class="command">autoconf</strong>
   (see also the <a href="install.php" class="link">Installation chapter</a>).
   You may also be interested in reading the
   <a href="http://www.airs.com/ian/configure/" class="link external">&raquo;&nbsp;GNU configure</a> documentation for
   information on additional <strong class="command">configure</strong> options such as
   <code class="literal">--prefix=PREFIX</code>.
  </p>
  
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    These are only used at compile time. If you want to alter PHP&#039;s
    runtime configuration, please see the chapter on <a href="configuration.php" class="link">Runtime Configuration</a>.
   </p>
  </p></blockquote>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.misc" class="link">Miscellaneous</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.php" class="link">PHP Behaviour</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.servers" class="link">Server</a>
    </span>
   </li>
  </ul>

  <div class="sect2" id="configure.options">
   <h3 class="title">Configure Options in PHP</h3>
   

 <div class="sect3" id="configure.options.misc">
  <h4 class="title">Misc options</h4>
  <dl>
   
    <dt id="configure.enable-debug">
     <strong class="option configure">--enable-debug</strong>
    </dt>
    <dd>
     <p class="para">
      Compile with debugging symbols.
     </p>
    </dd>
   
   
    <dt id="configure.with-layout">
     <strong class="option configure">--with-layout=TYPE</strong>
    </dt>
    <dd>
     <p class="para">
      Sets how installed files will be laid out. Type is one of PHP (default) 
      or GNU. Note that if installing manpages under PREFIX (default), choose the
      GNU style in order for them to be found in the search path of <var class="filename">manpath</var> utility.
     </p>
    </dd>
   
   
    <dt id="configure.with-pear">
     <strong class="option configure">--with-pear=DIR</strong>
    </dt>
    <dd>
     <p class="para">
      Install PEAR in DIR (default PREFIX/lib/php).
     </p>
    </dd>
   
   
    <dt id="configure.without-pear">
     <strong class="option configure">--without-pear</strong>
    </dt>
    <dd>
     <p class="para">
      Do not install PEAR.
     </p>
    </dd>
   

   
    <dt id="configure.enable-sigchild">
     <strong class="option configure">--enable-sigchild</strong>
    </dt>
    <dd>
     <p class="para">
      Enable PHP&#039;s own SIGCHLD handler.
     </p>
    </dd>
   
   
    <dt id="configure.disable-rpath">
     <strong class="option configure">--disable-rpath</strong>
    </dt>
    <dd>
     <p class="para">
      Disable passing additional runtime library search paths.
     </p>
    </dd>
   
   
    <dt id="configure.enable-libgcc">
     <strong class="option configure">--enable-libgcc</strong>
    </dt>
    <dd>
     <p class="para">
      Enable explicitly linking against libgcc.
     </p>
    </dd>
   
   
    <dt id="configure.enable-php-streams">
     <strong class="option configure">--enable-php-streams</strong>
    </dt>
    <dd>
     <p class="para">
      Include experimental PHP streams. Do not use unless you are testing the 
code!
     </p>
    </dd>
   
   
    <dt id="configure.with-zlib-dir">
     <strong class="option configure">--with-zlib-dir[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      Define the location of zlib install directory.
     </p>
    </dd>
   

   
    <dt id="configure.with-tsrm-pthreads">
     <strong class="option configure">--with-tsrm-pthreads</strong>
    </dt>
    <dd>
     <p class="para">
      Use POSIX threads (default).
     </p>
    </dd>
   
   
    <dt id="configure.enable-shared">
     <strong class="option configure">--enable-shared[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      Build shared libraries [default=yes].
     </p>
    </dd>
   
   
    <dt id="configure.enable-static">
     <strong class="option configure">--enable-static[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      Build static libraries [default=yes].
     </p>
    </dd>
   
   
    <dt id="configure.enable-fast-install">
     <strong class="option configure">--enable-fast-install[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      Optimize for fast installation [default=yes].
     </p>
    </dd>
   
   
    <dt id="configure.with-gnu-ld">
     <strong class="option configure">--with-gnu-ld</strong>
    </dt>
    <dd>
     <p class="para">
      Assume the C compiler uses GNU ld [default=no].
     </p>
    </dd>
   
   
    <dt id="configure.disable-libtool-lock">
     <strong class="option configure">--disable-libtool-lock</strong>
    </dt>
    <dd>
     <p class="para">
      Avoid locking (might break parallel builds).
     </p>
    </dd>
   
   
    <dt id="configure.with-pic">
     <strong class="option configure">--with-pic</strong>
    </dt>
    <dd>
     <p class="para">
      Try to use only PIC/non-PIC objects [default=use both].
     </p>
    </dd>
   

   
    <dt id="configure.enable-versioning.php4">
     <strong class="option configure">--enable-versioning</strong>
    </dt>
    <dd>
     <p class="para">
      Export only required symbols.
      See INSTALL for more information.
     </p>
    </dd>
   
  </dl>
 </div>



   

 <div class="sect3" id="configure.options.php">
  <h4 class="title">PHP options</h4>
  <dl>
   
    <dt id="configure.enable-maintainer-mode">
     <strong class="option configure">--enable-maintainer-mode</strong>
    </dt>
    <dd>
     <p class="para">
      Enable make rules and dependencies not useful (and sometimes confusing) 
      to the casual installer.
     </p>
    </dd>
   
   
    <dt id="configure.with-config-file-path">
     <strong class="option configure">--with-config-file-path=PATH</strong>
    </dt>
    <dd>
     <p class="para">
      Sets the path in which to look for <var class="filename">php.ini</var>, defaults to <code class="literal">PREFIX/lib</code>.
     </p>
    </dd>
   
   
    <dt id="configure.disable-short-tags">
     <strong class="option configure">--disable-short-tags</strong>
    </dt>
    <dd>
     <p class="para">
      Disable the short-form &lt;? start tag by default.
     </p>
    </dd>
   
   
    <dt id="configure.with-libdir">
     <strong class="option configure">--with-libdir</strong>
    </dt>
    <dd>
     <p class="para">
      Specifies the directory where the libraries to build PHP exist on a 
      Unix system. For 64bit systems, its needed to specify this argument 
      to the <code class="literal">lib64</code> directory like: 
      <code class="literal">--with-libdir=lib64</code>.
     </p>
    </dd>
   
   
    <dt id="configure.enable-zts">
     <strong class="option configure">--enable-zts</strong>
    </dt>
    <dd>
     <p class="para">
      Enables thread safety.
      Prior to PHP 8.0.0 on non-Windows systems, the option was called
      <strong class="option configure">--enable-maintainer-zts</strong>.
     </p>
    </dd>
   
  </dl>
 </div>



   

 <div class="sect3" id="configure.options.servers">
  <h4 class="title">SAPI options</h4>
  <p class="para">
   The following list contains the available SAPI&amp;s (<code class="literal">Server
   Application Programming Interface</code>) for PHP.
  </p>
  <dl>
   
    <dt id="configure.with-apxs">
     <strong class="option configure">--with-apxs[=FILE]</strong>
    </dt>
    <dd>
     <p class="para">
      Build shared Apache module. FILE is the optional pathname to the Apache
      apxs tool; defaults to apxs. Make sure you specify the version of apxs that
      is actually installed on your system and NOT the one that is in the apache
      source tarball.
     </p>
    </dd>
   
   
    <dt id="configure.with-apache">
     <strong class="option configure">--with-apache[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      Build a static Apache module. DIR is the top-level Apache build directory,
      defaults to <var class="filename">/usr/local/apache</var>.
     </p>
    </dd>
   
   
    <dt id="configure.with-mod-charset">
     <strong class="option configure">--with-mod_charset</strong>
    </dt>
    <dd>
     <p class="para">
      Enable transfer tables for mod_charset (Russian Apache).
     </p>
    </dd>
   
   
    <dt id="configure.with-apxs2">
     <strong class="option configure">--with-apxs2[=FILE]</strong>
    </dt>
    <dd>
     <p class="para">
      Build shared Apache 2.0 module. FILE is the optional pathname to the Apache
      apxs tool; defaults to apxs.
     </p>
    </dd>
   

   
    <dt id="configure.disable-cli">
     <strong class="option configure">--disable-cli</strong>
    </dt>
    <dd>
     <p class="para">
      Disable building the CLI version of PHP (this
      forces <a href="configure.about.php#configure.without-pear" class="link">--without-pear</a>).
      More information is available in the section about
      <a href="features.commandline.php" class="link">Using PHP from the command line</a>.
     </p>
    </dd>
   
   
   
    <dt id="configure.enable-phpdbg">
     <strong class="option configure">--enable-phpdbg</strong>
    </dt>
    <dd>
     <p class="para">
      Enable phpdbg interactive debugger SAPI module support.
     </p>
    </dd>
   

   
    <dt id="configure.enable-embed">
     <strong class="option configure">--enable-embed[=TYPE]</strong>
    </dt>
    <dd>
     <p class="para">
      Enable building of the embedded SAPI library. TYPE is either
      <code class="literal">shared</code> or <code class="literal">static</code>, which
      defaults to <code class="literal">shared</code>.
     </p>
    </dd>
   

   
    <dt id="configure.with-servlet">
     <strong class="option configure">--with-servlet[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      Include servlet support. DIR is the base install directory for the JSDK.
      This SAPI requires the java extension must be built as a shared dl.
     </p>
    </dd>
   

   
    <dt id="configure.disable-cgi">
     <strong class="option configure">--disable-cgi</strong>
    </dt>
    <dd>
     <p class="para">
      Disable building CGI version of PHP.
     </p>
     <p class="para">
      This argument also enables FastCGI.
     </p>
    </dd>
   

  </dl>
 </div>



  </div>
 </div><?php manual_footer($setup); ?>