downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/internals2.buildsys.configwin.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/internals2.buildsys.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'internals2.buildsys.configwin.php',
   
1 => 'Talking to the Windows build system: config.w32',
  ),
 
'up' =>
  array (
   
0 => 'internals2.buildsys.php',
   
1 => 'The PHP 5 build system',
  ),
 
'prev' =>
  array (
   
0 => 'internals2.buildsys.configunix.php',
   
1 => 'Talking to the UNIX build system: config.m4',
  ),
 
'next' =>
  array (
   
0 => 'internals2.structure.php',
   
1 => 'Extension structure',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="internals2.buildsys.configwin" class="sect1">
  <h2 class="title">Talking to the Windows build system: config.w32</h2>
  <p class="para">
   An extension&#039;s <var class="filename">config.w32</var> file is similar in usage to
   the <var class="filename">config.m4</var> file, with two critical differences:
   first, it is used for Windows builds, and second, it is written in
   JavaScript. This section makes no attempt to cover JavaScript syntax. For
   the moment, this section is incomplete in lieu of a Win32 testbed, and an
   experimental-only port of the example <var class="filename">config.m4</var> is the
   only example provided.
  </p>
 
  <div class="example">
   <p><b>Example #1 An example config.w32 file</b></p>
   <div class="example-contents programlisting"><br />
// $Id$<br />
// vim:ft=javascript<br />
<div class="javascriptcode"><pre class="javascriptcode">ARG_WITH(&quot;example&quot;, &quot;for example support&quot;, &quot;no&quot;);
ARG_ENABLE(&quot;example-debug&quot;, &quot;for debugging support in example&quot;, &quot;no&quot;)
ARG_WITH(&quot;example-extra&quot;, &quot;for extra functionality in example&quot;, &quot;no&quot;)
if (PHP_EXAMPLE != &quot;no&quot;) {
    if (CHECK_LIB(&quot;libexample.lib&quot;, &quot;example&quot;, PHP_EXAMPLE) &amp;&amp;
        CHECK_HEADER_ADD_INCLUDE(&quot;example.h&quot;, &quot;CFLAGS_EXAMPLE&quot;, PHP_EXAMPLE + &quot;\\include&quot;)) {
       
        if (PHP_EXAMPLE_DEBUG != &quot;no&quot;) {
            AC_DEFINE(&#039;USE_EXAMPLE_DEBUG&#039;, 1, &#039;Debug support in example&#039;);
        }
       
        if (PHP_EXAMPLE_EXTRA != &quot;no&quot; &amp;&amp;
            CHECK_LIB(&quot;libexample-extra.lib&quot;, &quot;example&quot;, PHP_EXAMPLE) &amp;&amp;
            CHECK_HEADER_ADD_INCLUDE(&quot;example-extra.h&quot;, &quot;CFLAGS_EXAMPLE&quot;, PHP_EXAMPLE + &quot;;&quot; + PHP_PHP_BUILD + &quot;\\include&quot;) {
            AC_DEFINE(&#039;HAVE_EXAMPLEEXTRA&#039;, 1, &#039;Extra functionality in example&#039;);
            HAVE_EXTRA = 1;
        } else {
            WARNING( &quot;extra example functionality not enabled, lib not found&quot; );
        }
       
        EXTENSION(&quot;example&quot;, &quot;example.c&quot;);
        if (HAVE_EXTRA == 1) {
            ADD_SOURCES(&quot;example-extra.c&quot;);
        }
    } else {
        WARNING( &quot;example not enabled; libraries not found&quot; );
    }
}</pre>
</div>
   </div>

  </div>

  <div id="internals2.buildsys.configwin.counter" class="sect2">
   <h3 class="title">The counter extension&#039;s config.w32 file</h3>
   <p class="para">
    The counter extension previously documented has a much simpler
    <var class="filename">config.w32</var> file than that described above, as it
    doesn&#039;t make use of many buildsystem features.
   </p>
   <div class="example">
    <p><b>Example #2 counter&#039;s config.w32 file</b></p>
    <div class="example-contents programlisting"><br />
// $Id$<br />
// vim:ft=javascript<br />
<div class="autoconfcode"><pre class="autoconfcode">ARG_ENABLE(&quot;counter&quot;, &quot;for counter support&quot;, &quot;no&quot;);
if (PHP_COUNTER != &quot;no&quot;) {
    EXTENSION(&quot;counter&quot;, &quot;counter.c&quot;);
    ADD_SOURCE(&quot;counter-util.c&quot;);
}</pre>
</div>
    </div>

   </div>
  </div>

 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites