<xsl:text>/* * Automatically generated C config: don't edit */ </xsl:text>
<!-- scan all config options -->
<xsl:for-eachselect="config/option">
<xsl:choose>
<!-- config option "boolean" -->
<xsl:whentest="@type='boolean'">
<xsl:choose>
<xsl:whentest="@value='true'">
<xsl:text>#define </xsl:text>
<xsl:value-ofselect="@name"/>
<xsl:text> 1</xsl:text>
</xsl:when>
<xsl:whentest="@value='false'">
<xsl:text>#undef </xsl:text>
<xsl:value-ofselect="@name"/>
</xsl:when>
<xsl:otherwise>
<xsl:messageterminate="yes"> ERROR: boolean configuration option '<xsl:value-ofselect="@name"/>' has unsupported value '<xsl:value-ofselect="@type"/>' instead of [true|false].</xsl:message>
<xsl:messageterminate="yes"> ERROR: configuration option '<xsl:value-ofselect="@name"/> has unsupported type '<xsl:value-ofselect="@type"/>'.</xsl:message>