Element : <configure>

Syntax


<!ELEMENT configure     ((param | prefix)*)>
<!ATTLIST configure
          base             CDATA #IMPLIED
          command          CDATA #IMPLIED>

This element is an element of : Element : <alfs> | Element: <stage>

See also : Element: <param> | Element: <prefix>

Description

The element configure is one of the many main operation elements. The element configure is used to describe the command configure.

Notice that all the elements param and prefix are surrounded by parathensis [ ( ) ]and followed by an asterisk [ * ]. The asterisk signifies that each element can be used optionally inside the configure declaration in a profile and that, if used, they can be used more than once.

When processing the element, one executes the command ./configure with the parameter(s) and prefix(es) specified.

The attribute base allows you to specify the directory in which the command is executed. See Element : <base>.

The attribute command allows you to specify a custom command if you doen't want to use the default ./configure. This is extremely usefull when running ./configure in a build directory outside the main source directory. The packages gcc and glibc often require this.

Examples

This example calls to configure without any parameters :

<configure base="/usr/src/mypackage/">
</configure>

The equivalent bash script is :

echo Executing configure
cd /usr/src/mypackage/
./configure

This example calls configure with a parameter :

<configure base="/usr/src/mypackage/">
        <prefix>CFLAGS="..."<prefix>
        <prefix>CXXFLAGS="..."<prefix>
        <param>--prefix=/opt/mypackage</param>
</configure>

The equivalent bash script is :

echo Executing configure
cd /usr/src/mypackage/
./configure --prefix=/opt/mypackage

This example calls configure with a parameter and an explicit command :

<configure base="/usr/src/mypackage/" command="PATH=/usr/local/bin ./configure">
        <param>--prefix=/opt/mypackage</param>
</configure>

The equivalent bash script is :

echo Executing configure
cd /usr/src/mypackage/
PATH=/usr/local/bin ./configure --prefix=/opt/mypackage