Chapter 10: Installing Bash

140

if it prints a message saying it can not guess the host type, give it the --host=TYPE option.

‘TYPE’ can either be a short name for the system type, such as ‘sun4’, or a canonical name with three fields: ‘CPU-COMPANY-SYSTEM’ (e.g., ‘i386-unknown-freebsd4.2’).

See the file support/config.sub for the possible values of each field.

10.6 Sharing Defaults

If you want to set default values for configure scripts to share, you can create a site shell script called config.site that gives default values for variables like CC, cache_ file, and prefix. configure looks for PREFIX/share/config.site if it exists, then

PREFIX/etc/config.site if it exists. Or, you can set the CONFIG_SITE environment vari- able to the location of the site script. A warning: the Bash configure looks for a site script, but not all configure scripts do.

10.7 Operation Controls configure recognizes the following options to control how it operates.

--cache-file=file

Use and save the results of the tests in file instead of ./config.cache. Set file to /dev/null to disable caching, for debugging configure.

--help

Print a summary of the options to configure, and exit.

--quiet

--silent

-q

Do not print messages saying which checks are being made.

--srcdir=dir

Look for the Bash source code in directory dir. Usually configure can deter- mine that directory automatically.

--version

Print the version of Autoconf used to generate the configure script, and exit. configure also accepts some other, not widely used, boilerplate options. ‘configure

--help’ prints the complete list.

10.8 Optional Features

The Bash configure has a number of --enable-feature options, where feature indicates an optional part of Bash. There are also several --with-package options, where package is something like ‘bash-malloc’ or ‘purify’. To turn off the default use of a package, use

--without-package. To configure Bash without a feature that is enabled by default, use

--disable-feature.

Here is a complete list of the --enable- and --with- options that the Bash configure recognizes.

--with-afs

Define if you are using the Andrew File System from Transarc.