autoconf: Defining Variables

1 
1 16.9 Defining Variables
1 =======================
1 
1 Variables not defined in a site shell script can be set in the
1 environment passed to `configure'.  However, some packages may run
1 configure again during the build, and the customized values of these
1 variables may be lost.  In order to avoid this problem, you should set
1 them in the `configure' command line, using `VAR=value'.  For example:
1 
1      ./configure CC=/usr/local2/bin/gcc
1 
1 causes the specified `gcc' to be used as the C compiler (unless it is
1 overridden in the site shell script).
1 
1 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
1 an Autoconf limitation.  Until the limitation is lifted, you can use
1 this workaround:
1 
1      CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
1