configure
Cygnus configure
is a shell script which resides in a source tree. The
usual way to invoke configure
is from the shell, as follows:
eg$ ./configure hosttype
This prepares the source in the current directory (`.') to be
compiled for a hosttype environment. It assumes that you wish to
build programs and files in the default build directory (also the
current directory, `.'). If you do not specify a value for
hosttype, Cygnus configure
will attempt to discover this
information by itself (see section Determining system information). For information on hosttype environments,
See section Host.
All GNU software is packaged with one or more configure
script(s)
(see section `How Configuration Should Work' in GNU Coding Standards). By using configure
you prepare the source for your
specific environment by selecting and using `Makefile' fragments and
fragments of shell scripts, which are prepared in advance and stored with the
source.
configure
's command-line options also allow you to specify other aspects
of the source configuration:
configure hosttype [--target=target] [--srcdir=dir] [--rm] [--site=site] [--prefix=dir] [--exec-prefix=dir] [--program-prefix=string] [--tmpdir=dir] [--with-package[=yes/no]] [--without-package] [--enable-feature[=yes/no]] [--disable-feature] [--norecursion] [--nfp] [-s] [-v] [-V | --version] [--help]
--target=target
--srcdir=dir
configure
from. See section Build directories, for an example. If the source directory is
not specified, configure
assumes that the source is in your current
directory. If configure
finds no `configure.in' there, it searches
in the same directory that the configure
script itself lies in.
Pathnames specified (Values for dir) can be either absolute relative to
the build directory.
--rm
Note: We recommend that you use `make distclean' rather than use this option; see section `Invoking
make
' in GNU Make, for details on `make distclean'.
--site=site
--prefix=dir
configure
really does.)
--exec-prefix=dir
configure
really does.)
--program-prefix=string
make
.
This option sets the variable `program_prefix'. Each generated
`Makefile' will have its `program_prefix' variables set to this
value. (See section What configure
really does.)
--tmpdir=tmpdir
configure
's temporary files. The
default is the value of the environment variable TMPDIR
, or
`/tmp' if the environment variable is not set.
--with-package[=yes/no]
--without-package
yes
. `--without-package' is equivalent to
`--with-package=no'.
For example, if you wish to configure the program gcc
for a Sun
SPARCstation running SunOS 4.x, and you want gcc
to use the
GNU linker ld
, you can configure gcc
using
eg$ configure --with-gnu-ld sun4See section What
configure
really does, for
details. See the installation or release notes for your particular package for
details on which other package options are recognized.
--enable-feature[=yes/no]
--disable-feature
yes
.
`--disable-feature' is equivalent to
`--enable-feature=no'.
See section What configure
really does, for
details. See the installation or release notes for your particular package for
details on which other feature options are recognized.
--norecursion
make
is
invoked. (See section config.status
.)
--nfp
-s
configure
when calling itself recursively in subdirectories. You
can override this option with the --verbose
option.
-v
--verbose
--version
-V
configure
version number.
--help
configure
.
Note: You may introduce options with a single dash, `-', rather than two dashes, `--'. However, you may not be able to truncate long option names when using a single dash. When using two dashes, options may be abbreviated as long as each option can be uniquely identified. For example,
eg$ configure --s=/u/me/src hosttype
is ambiguous, as `--s' could refer to either `--site' or `--srcdir'. However,
eg$ configure --src=/u/me/src hosttype
is a valid abbreviation.