<!ELEMENT configure ((param | prefix)*)> <!ATTLIST configure base CDATA #IMPLIED command CDATA #IMPLIED>
This element occurs in : Element : <alfs> | Element: <stage>
See also : Element: <param> | Element: <prefix>
The configure element is one of the top-level operation elements. The configure element is used to describe the configure command.
When processing the element, you execute the command ./configure with the parameter(s) and prefix(es) specified.
The base attribute allows you to specify the directory in which the operation will be performed. For a better description, see Element : <base>.
The command attribute allows you to specify a custom command if you don't want to use the default ./configure. This is extremely useful when running ./configure in a build directory outside the main source directory. The packages gcc and glibc often require this.
This first example calls configure without any parameters :
<configure base="/usr/src/mypackage/"> </configure>
The equivalent bash script is :
echo Executing configure
cd /usr/src/mypackage/
./configure
This second example calls configure with some prefixes and 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/
CFLAGS="..." CXXFLAGS="..." ./configure --prefix=/opt/mypackage
This third example calls configure with a parameter and uses prefix :
<configure base="/usr/src/mypackage/"> <prefix>PATH=/usr/local/bin</prefix> <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