<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.pecl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'install.pecl.php-config.php',
    1 => 'php-config',
    2 => 'php-config',
  ),
  'up' => 
  array (
    0 => 'install.pecl.php',
    1 => 'Installation of PECL extensions',
  ),
  'prev' => 
  array (
    0 => 'install.pecl.phpize.php',
    1 => 'Compiling shared PECL extensions with phpize',
  ),
  'next' => 
  array (
    0 => 'install.pecl.static.php',
    1 => 'Compiling PECL extensions statically into PHP',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'install/pecl.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.pecl.php-config" class="sect1">
  <h2 class="title">
   <strong class="command">php-config</strong>
  </h2>
  
  <p class="para">
   <strong class="command">php-config</strong>
   is a simple shell script for obtaining information about the installed PHP
   configuration.
  </p>
  
  <p class="para">
   When the extensions are being compiled, if multiple PHP versions are
   installed, the installation for which to build can be specified by using the
   <strong class="option configure">--with-php-config</strong>
   option during configuration, setting the path of the respective
   <strong class="command">php-config</strong>
   script.
  </p>
  
  <p class="para">
   The list of command line options provided by the
   <strong class="command">php-config</strong>
   script can be queried anytime by running
   <strong class="command">php-config</strong>
   with the <strong class="option unknown">-h</strong> switch:
   <div class="example-contents screen">
<div class="cdata"><pre>
Usage: /usr/local/bin/php-config [OPTION]
Options:
  --prefix            [...]
  --includes          [...]
  --ldflags           [...]
  --libs              [...]
  --extension-dir     [...]
  --include-dir       [...]
  --php-binary        [...]
  --php-sapis         [...]
  --configure-options [...]
  --version           [...]
  --vernum            [...]
</pre></div>
   </div>
  </p>
  
  <p class="para">
   <table class="doctable table">
    <caption><strong>Command line options</strong></caption>
    
     <thead>
      <tr>
       <th>Option</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>--prefix</td>
       <td>Directory prefix where PHP is installed, e.g. /usr/local</td>
      </tr>

      <tr>
       <td>--includes</td>
       <td>
        List of <code class="literal">-I</code> options with all include files
       </td>
      </tr>

      <tr>
       <td>--ldflags</td>
       <td>
        <code class="literal">LD</code>
        flags which PHP was compiled with
       </td>
      </tr>

      <tr>
       <td>--libs</td>
       <td>Extra libraries which PHP was compiled with</td>
      </tr>

      <tr>
       <td>--extension-dir</td>
       <td>Directory where extensions are searched by default</td>
      </tr>

      <tr>
       <td>--include-dir</td>
       <td>
        Directory prefix where header files are installed by default
       </td>
      </tr>

      <tr>
       <td>--php-binary</td>
       <td>Full path to php CLI or CGI binary</td>
      </tr>

      <tr>
       <td>--php-sapis</td>
       <td>Show all SAPI modules available</td>
      </tr>

      <tr>
       <td>--configure-options</td>
       <td>
        Configure options to recreate configuration of current PHP installation
       </td>
      </tr>

      <tr>
       <td>--version</td>
       <td>PHP version</td>
      </tr>

      <tr>
       <td>--vernum</td>
       <td>PHP version as integer</td>
      </tr>

     </tbody>
    
   </table>

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