1994-07-19 22:37:37 +08:00
|
|
|
@c This file is included by autoconf.texi and is used to produce
|
|
|
|
@c the INSTALL file.
|
|
|
|
|
2001-08-17 22:54:14 +08:00
|
|
|
@ifclear autoconf
|
2008-08-27 05:29:17 +08:00
|
|
|
@firstparagraphindent insert
|
2001-08-17 08:42:44 +08:00
|
|
|
|
2004-08-21 03:58:06 +08:00
|
|
|
@unnumbered Installation Instructions
|
|
|
|
|
2006-02-13 15:59:10 +08:00
|
|
|
Copyright @copyright{} 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004,
|
2011-01-03 10:49:25 +08:00
|
|
|
2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
|
2001-08-17 08:42:44 +08:00
|
|
|
|
2009-05-04 23:41:41 +08:00
|
|
|
Copying and distribution of this file, with or without modification, are
|
|
|
|
permitted in any medium without royalty provided the copyright notice
|
|
|
|
and this notice are preserved. This file is offered as-is, without
|
|
|
|
warranty of any kind.
|
2001-08-17 08:42:44 +08:00
|
|
|
|
|
|
|
@end ifclear
|
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
@node Basic Installation
|
|
|
|
@section Basic Installation
|
|
|
|
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
Briefly, the shell commands @samp{./configure; make; make install}
|
|
|
|
should configure, build, and install this package. The following
|
|
|
|
more-detailed instructions are generic; see the @file{README} file for
|
|
|
|
instructions specific to this package.
|
2009-07-27 09:06:06 +08:00
|
|
|
@ifclear autoconf
|
|
|
|
Some packages provide this @file{INSTALL} file but do not implement all
|
|
|
|
of the features documented below. The lack of an optional feature in a
|
|
|
|
given package is not necessarily a bug.
|
|
|
|
@end ifclear
|
2011-01-03 10:49:25 +08:00
|
|
|
More recommendations for GNU packages can be found in
|
2009-07-27 09:06:06 +08:00
|
|
|
@ref{Makefile Conventions, , Makefile Conventions, standards,
|
2011-01-03 10:49:25 +08:00
|
|
|
GNU Coding Standards}.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
The @command{configure} shell script attempts to guess correct values
|
|
|
|
for various system-dependent variables used during compilation. It uses
|
1994-07-19 22:37:37 +08:00
|
|
|
those values to create a @file{Makefile} in each directory of the
|
1994-07-27 01:15:52 +08:00
|
|
|
package. It may also create one or more @file{.h} files containing
|
1994-07-19 22:37:37 +08:00
|
|
|
system-dependent definitions. Finally, it creates a shell script
|
|
|
|
@file{config.status} that you can run in the future to recreate the
|
2000-04-05 15:42:06 +08:00
|
|
|
current configuration, and a file @file{config.log} containing compiler
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
output (useful mainly for debugging @command{configure}).
|
2000-04-05 15:42:06 +08:00
|
|
|
|
|
|
|
It can also use an optional file (typically called @file{config.cache}
|
2000-07-04 18:34:21 +08:00
|
|
|
and enabled with @option{--cache-file=config.cache} or simply
|
2000-06-09 19:37:15 +08:00
|
|
|
@option{-C}) that saves the results of its tests to speed up
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
reconfiguring. Caching is disabled by default to prevent problems with
|
|
|
|
accidental use of stale cache files.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
If you need to do unusual things to compile the package, please try to
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
figure out how @command{configure} could check whether to do them, and
|
|
|
|
mail diffs or instructions to the address given in the @file{README} so
|
|
|
|
they can be considered for the next release. If you are using the
|
|
|
|
cache, and at some point @file{config.cache} contains results you don't
|
|
|
|
want to keep, you may remove or edit it.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
2001-01-12 17:19:59 +08:00
|
|
|
The file @file{configure.ac} (or @file{configure.in}) is used to create
|
2009-07-25 21:29:41 +08:00
|
|
|
@file{configure} by a program called @command{autoconf}. You need
|
2001-01-12 17:19:59 +08:00
|
|
|
@file{configure.ac} if you want to change it or regenerate
|
2009-07-25 21:29:41 +08:00
|
|
|
@file{configure} using a newer version of @command{autoconf}.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
The simplest way to compile this package is:
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
@item
|
2009-07-25 21:29:41 +08:00
|
|
|
@command{cd} to the directory containing the package's source code and type
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
@samp{./configure} to configure the package for your system.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
Running @command{configure} might take a while. While running, it prints some
|
1994-07-19 22:37:37 +08:00
|
|
|
messages telling which features it is checking for.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Type @samp{make} to compile the package.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Optionally, type @samp{make check} to run any self-tests that come with
|
2009-07-27 09:06:06 +08:00
|
|
|
the package, generally using the just-built uninstalled binaries.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
@item
|
|
|
|
Type @samp{make install} to install the programs and any data files and
|
2009-07-27 09:06:06 +08:00
|
|
|
documentation. When installing into a prefix owned by root, it is
|
|
|
|
recommended that the package be configured and built as a regular user,
|
|
|
|
and only the @samp{make install} phase executed with root privileges.
|
|
|
|
|
|
|
|
@item
|
|
|
|
Optionally, type @samp{make installcheck} to repeat any self-tests, but
|
2009-10-15 21:00:38 +08:00
|
|
|
this time using the binaries in their final installed location. This
|
|
|
|
target does not install anything. Running this target as a regular
|
2009-10-16 08:43:45 +08:00
|
|
|
user, particularly if the prior @samp{make install} required root
|
2009-10-15 21:00:38 +08:00
|
|
|
privileges, verifies that the installation completed correctly.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
@item
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
You can remove the program binaries and object files from the source
|
|
|
|
code directory by typing @samp{make clean}. To also remove the files
|
|
|
|
that @command{configure} created (so you can compile the package for a
|
|
|
|
different kind of computer), type @samp{make distclean}. There is also
|
|
|
|
a @samp{make maintainer-clean} target, but that is intended mainly for
|
|
|
|
the package's developers. If you use it, you may have to get all sorts
|
|
|
|
of other programs in order to regenerate files that came with the
|
|
|
|
distribution.
|
2007-10-10 03:24:39 +08:00
|
|
|
|
|
|
|
@item
|
|
|
|
Often, you can also type @samp{make uninstall} to remove the installed
|
2009-07-27 09:06:06 +08:00
|
|
|
files again. In practice, not all packages have tested that
|
|
|
|
uninstallation works correctly, even though it is required by the
|
2011-01-03 10:49:25 +08:00
|
|
|
GNU Coding Standards.
|
2009-07-27 09:06:06 +08:00
|
|
|
|
|
|
|
@item
|
|
|
|
Some packages, particularly those that use Automake, provide @samp{make
|
|
|
|
distcheck}, which can by used by developers to test that all other
|
|
|
|
targets like @samp{make install} and @samp{make uninstall} work
|
|
|
|
correctly. This target is generally not run by end users.
|
1994-07-19 22:37:37 +08:00
|
|
|
@end enumerate
|
|
|
|
|
|
|
|
@node Compilers and Options
|
|
|
|
@section Compilers and Options
|
|
|
|
|
1999-10-26 11:54:59 +08:00
|
|
|
Some systems require unusual options for compilation or linking that the
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@command{configure} script does not know about. Run @samp{./configure
|
1999-10-26 11:54:59 +08:00
|
|
|
--help} for details on some of the pertinent environment variables.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
2002-04-29 21:33:22 +08:00
|
|
|
You can give @command{configure} initial values for configuration
|
|
|
|
parameters by setting variables in the command line or in the environment.
|
|
|
|
Here is an example:
|
2000-06-09 19:37:15 +08:00
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
@example
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
./configure CC=c99 CFLAGS=-g LIBS=-lposix
|
1994-07-19 22:37:37 +08:00
|
|
|
@end example
|
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@xref{Defining Variables}, for more details.
|
1999-10-26 11:54:59 +08:00
|
|
|
|
|
|
|
|
1995-02-07 07:31:34 +08:00
|
|
|
@node Multiple Architectures
|
|
|
|
@section Compiling For Multiple Architectures
|
1994-07-19 22:37:37 +08:00
|
|
|
|
1995-02-07 07:31:34 +08:00
|
|
|
You can compile the package for more than one kind of computer at the
|
|
|
|
same time, by placing the object files for each architecture in their
|
2011-01-03 10:49:25 +08:00
|
|
|
own directory. To do this, you can use GNU @command{make}.
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@command{cd} to the directory where you want the object files and
|
|
|
|
executables to go and run the @command{configure} script.
|
|
|
|
@command{configure} automatically checks for the source code in the
|
2009-07-25 21:29:41 +08:00
|
|
|
directory that @command{configure} is in and in @file{..}. This is
|
|
|
|
known as a @dfn{VPATH} build.
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
|
2011-01-03 10:49:25 +08:00
|
|
|
With a non-GNU @command{make},
|
2006-06-14 11:41:56 +08:00
|
|
|
it is safer to compile the package for one
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
architecture at a time in the source code directory. After you have
|
|
|
|
installed the package for one architecture, use @samp{make distclean}
|
|
|
|
before reconfiguring for another architecture.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
2008-08-20 12:16:40 +08:00
|
|
|
On MacOS X 10.5 and later systems, you can create libraries and
|
|
|
|
executables that work on multiple system types---known as @dfn{fat} or
|
|
|
|
@dfn{universal} binaries---by specifying multiple @option{-arch} options
|
|
|
|
to the compiler but only a single @option{-arch} option to the
|
|
|
|
preprocessor. Like this:
|
|
|
|
|
|
|
|
@example
|
|
|
|
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
|
|
|
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
|
|
|
CPP="gcc -E" CXXCPP="g++ -E"
|
|
|
|
@end example
|
|
|
|
|
|
|
|
This is not guaranteed to produce working output in all cases, you may
|
|
|
|
have to build one architecture at a time and combine the results
|
|
|
|
using the @command{lipo} tool if you have problems.
|
|
|
|
|
1994-09-07 23:07:09 +08:00
|
|
|
@node Installation Names
|
|
|
|
@section Installation Names
|
1994-07-19 22:37:37 +08:00
|
|
|
|
2005-06-08 15:13:50 +08:00
|
|
|
By default, @samp{make install} installs the package's commands under
|
|
|
|
@file{/usr/local/bin}, include files under @file{/usr/local/include}, etc.
|
|
|
|
You can specify an
|
1994-07-19 22:37:37 +08:00
|
|
|
installation prefix other than @file{/usr/local} by giving
|
2009-07-25 21:29:41 +08:00
|
|
|
@command{configure} the option @option{--prefix=@var{prefix}}, where
|
2009-10-15 21:00:38 +08:00
|
|
|
@var{prefix} must be an absolute file name.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
You can specify separate installation prefixes for architecture-specific
|
2005-06-08 15:13:50 +08:00
|
|
|
files and architecture-independent files. If you pass the option
|
|
|
|
@option{--exec-prefix=@var{prefix}} to @command{configure}, the
|
|
|
|
package uses @var{prefix} as the prefix for installing programs and
|
|
|
|
libraries. Documentation and other data files still use the
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
regular prefix.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
1995-06-28 03:09:03 +08:00
|
|
|
In addition, if you use an unusual directory layout you can give options
|
2004-08-21 03:58:06 +08:00
|
|
|
like @option{--bindir=@var{dir}} to specify different values for
|
1995-06-28 03:09:03 +08:00
|
|
|
particular kinds of files. Run @samp{configure --help} for a list of
|
2009-07-27 09:06:06 +08:00
|
|
|
the directories you can set and what kinds of files go in them. In
|
|
|
|
general, the default for these options is expressed in terms of
|
|
|
|
@samp{$@{prefix@}}, so that specifying just @option{--prefix} will
|
2009-10-15 21:00:38 +08:00
|
|
|
affect all of the other directory specifications that were not
|
|
|
|
explicitly provided.
|
2009-07-27 09:06:06 +08:00
|
|
|
|
|
|
|
The most portable way to affect installation locations is to pass the
|
|
|
|
correct locations to @command{configure}; however, many packages provide
|
|
|
|
one or both of the following shortcuts of passing variable assignments
|
|
|
|
to the @samp{make install} command line to change installation locations
|
|
|
|
without having to reconfigure or recompile.
|
|
|
|
|
|
|
|
The first method involves providing an override variable for each
|
|
|
|
affected directory. For example, @samp{make install
|
2009-10-15 21:00:38 +08:00
|
|
|
prefix=/alternate/directory} will choose an alternate location for all
|
|
|
|
directory configuration variables that were expressed in terms of
|
|
|
|
@samp{$@{prefix@}}. Any directories that were specified during
|
2009-10-16 08:43:45 +08:00
|
|
|
@command{configure}, but not in terms of @samp{$@{prefix@}}, must each be
|
2009-10-15 21:00:38 +08:00
|
|
|
overridden at install time for the entire
|
|
|
|
installation to be relocated. The approach of makefile variable
|
2011-01-03 10:49:25 +08:00
|
|
|
overrides for each directory variable is required by the GNU
|
2009-07-27 09:06:06 +08:00
|
|
|
Coding Standards, and ideally causes no recompilation. However, some
|
|
|
|
platforms have known limitations with the semantics of shared libraries
|
|
|
|
that end up requiring recompilation when using this method, particularly
|
2011-01-03 10:49:25 +08:00
|
|
|
noticeable in packages that use GNU Libtool.
|
2009-07-27 09:06:06 +08:00
|
|
|
|
|
|
|
The second method involves providing the @samp{DESTDIR} variable. For
|
2009-10-15 21:00:38 +08:00
|
|
|
example, @samp{make install DESTDIR=/alternate/directory} will prepend
|
|
|
|
@samp{/alternate/directory} before all installation names. The approach
|
2011-01-03 10:49:25 +08:00
|
|
|
of @samp{DESTDIR} overrides is not required by the GNU Coding
|
2009-07-27 09:06:06 +08:00
|
|
|
Standards, and does not work on platforms that have drive letters. On
|
|
|
|
the other hand, it does better at avoiding recompilation issues, and
|
|
|
|
works well even when some directory options were not specified in terms
|
2009-10-15 21:00:38 +08:00
|
|
|
of @samp{$@{prefix@}} at @command{configure} time.
|
2009-07-27 09:06:06 +08:00
|
|
|
|
|
|
|
@node Optional Features
|
|
|
|
@section Optional Features
|
1995-06-28 03:09:03 +08:00
|
|
|
|
1994-09-07 23:07:09 +08:00
|
|
|
If the package supports it, you can cause programs to be installed with
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
an extra prefix or suffix on their names by giving @command{configure}
|
|
|
|
the option @option{--program-prefix=@var{PREFIX}} or
|
2000-06-09 19:37:15 +08:00
|
|
|
@option{--program-suffix=@var{SUFFIX}}.
|
1994-09-07 23:07:09 +08:00
|
|
|
|
2000-06-09 19:37:15 +08:00
|
|
|
Some packages pay attention to @option{--enable-@var{feature}} options
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
to @command{configure}, where @var{feature} indicates an optional part
|
|
|
|
of the package. They may also pay attention to
|
2000-06-09 19:37:15 +08:00
|
|
|
@option{--with-@var{package}} options, where @var{package} is something
|
|
|
|
like @samp{gnu-as} or @samp{x} (for the X Window System). The
|
|
|
|
@file{README} should mention any @option{--enable-} and @option{--with-}
|
|
|
|
options that the package recognizes.
|
1994-09-28 06:05:22 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
For packages that use the X Window System, @command{configure} can
|
|
|
|
usually find the X include and library files automatically, but if it
|
|
|
|
doesn't, you can use the @command{configure} options
|
|
|
|
@option{--x-includes=@var{dir}} and @option{--x-libraries=@var{dir}} to
|
|
|
|
specify their locations.
|
1994-09-28 06:05:22 +08:00
|
|
|
|
2009-07-27 09:06:06 +08:00
|
|
|
Some packages offer the ability to configure how verbose the execution
|
|
|
|
of @command{make} will be. For these packages, running
|
|
|
|
@samp{./configure --enable-silent-rules} sets the default to minimal
|
|
|
|
output, which can be overridden with @code{make V=1}; while running
|
|
|
|
@samp{./configure --disable-silent-rules} sets the default to verbose,
|
|
|
|
which can be overridden with @code{make V=0}.
|
|
|
|
|
2008-08-20 21:26:30 +08:00
|
|
|
@node Particular Systems
|
|
|
|
@section Particular systems
|
|
|
|
|
|
|
|
On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is
|
|
|
|
not installed, it is recommended to use the following options in order to
|
|
|
|
use an ANSI C compiler:
|
|
|
|
|
|
|
|
@example
|
2008-12-24 12:09:21 +08:00
|
|
|
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
2008-08-20 21:26:30 +08:00
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
|
|
|
|
|
|
|
On OSF/1 a.k.a.@: Tru64, some versions of the default C compiler cannot
|
|
|
|
parse its @code{<wchar.h>} header file. The option @option{-nodtk} can be
|
|
|
|
used as a workaround. If GNU CC is not installed, it is therefore
|
|
|
|
recommended to try
|
|
|
|
|
|
|
|
@example
|
|
|
|
./configure CC="cc"
|
|
|
|
@end example
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
and if that doesn't work, try
|
|
|
|
|
|
|
|
@example
|
|
|
|
./configure CC="cc -nodtk"
|
|
|
|
@end example
|
|
|
|
|
2008-10-07 03:48:28 +08:00
|
|
|
On Solaris, don't put @code{/usr/ucb} early in your @env{PATH}. This
|
|
|
|
directory contains several dysfunctional programs; working variants
|
|
|
|
of these programs are available in @code{/usr/bin}. So, if you need
|
|
|
|
@code{/usr/ucb} in your @env{PATH}, put it @emph{after} @code{/usr/bin}.
|
|
|
|
|
2008-12-23 13:08:59 +08:00
|
|
|
On Haiku, software installed for all users goes in @file{/boot/common},
|
|
|
|
not @file{/usr/local}. It is recommended to use the following options:
|
|
|
|
|
|
|
|
@example
|
|
|
|
./configure --prefix=/boot/common
|
|
|
|
@end example
|
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
@node System Type
|
|
|
|
@section Specifying the System Type
|
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
There may be some features @command{configure} cannot figure out
|
2002-03-04 23:06:44 +08:00
|
|
|
automatically, but needs to determine by the type of machine the package
|
|
|
|
will run on. Usually, assuming the package is built to be run on the
|
|
|
|
@emph{same} architectures, @command{configure} can figure that out, but
|
|
|
|
if it prints a message saying it cannot guess the machine type, give it
|
|
|
|
the @option{--build=@var{type}} option. @var{type} can either be a
|
|
|
|
short name for the system type, such as @samp{sun4}, or a canonical name
|
|
|
|
which has the form:
|
2000-05-19 20:40:45 +08:00
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
@example
|
|
|
|
@var{cpu}-@var{company}-@var{system}
|
|
|
|
@end example
|
2000-05-19 20:40:45 +08:00
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
@noindent
|
2000-05-19 20:40:45 +08:00
|
|
|
where @var{system} can have one of these forms:
|
|
|
|
|
|
|
|
@example
|
2009-03-17 20:38:07 +08:00
|
|
|
@var{os}
|
|
|
|
@var{kernel}-@var{os}
|
2000-05-19 20:40:45 +08:00
|
|
|
@end example
|
|
|
|
|
1994-07-19 22:37:37 +08:00
|
|
|
See the file @file{config.sub} for the possible values of each field.
|
1994-07-27 01:15:52 +08:00
|
|
|
If @file{config.sub} isn't included in this package, then this package
|
2002-03-04 23:06:44 +08:00
|
|
|
doesn't need to know the machine type.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
If you are @emph{building} compiler tools for cross-compiling, you
|
2005-06-08 15:13:50 +08:00
|
|
|
should use the option @option{--target=@var{type}} to select the type of
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
system they will produce code for.
|
2000-06-30 21:34:37 +08:00
|
|
|
|
|
|
|
If you want to @emph{use} a cross compiler, that generates code for a
|
2002-03-04 23:06:44 +08:00
|
|
|
platform different from the build platform, you should specify the
|
|
|
|
@dfn{host} platform (i.e., that on which the generated programs will
|
|
|
|
eventually be run) with @option{--host=@var{type}}.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
1994-09-28 06:05:22 +08:00
|
|
|
@node Sharing Defaults
|
|
|
|
@section Sharing Defaults
|
1994-07-19 22:37:37 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
If you want to set default values for @command{configure} scripts to
|
|
|
|
share, you can create a site shell script called @file{config.site} that
|
|
|
|
gives default values for variables like @code{CC}, @code{cache_file},
|
|
|
|
and @code{prefix}. @command{configure} looks for
|
1994-10-19 08:30:09 +08:00
|
|
|
@file{@var{prefix}/share/config.site} if it exists, then
|
2000-02-10 02:19:58 +08:00
|
|
|
@file{@var{prefix}/etc/config.site} if it exists. Or, you can set the
|
|
|
|
@code{CONFIG_SITE} environment variable to the location of the site
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
script. A warning: not all @command{configure} scripts look for a site
|
2000-02-10 02:19:58 +08:00
|
|
|
script.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@node Defining Variables
|
|
|
|
@section Defining Variables
|
1999-10-26 11:54:59 +08:00
|
|
|
|
|
|
|
Variables not defined in a site shell script can be set in the
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
environment passed to @command{configure}. However, some packages may
|
|
|
|
run configure again during the build, and the customized values of these
|
1999-10-26 11:54:59 +08:00
|
|
|
variables may be lost. In order to avoid this problem, you should set
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
them in the @command{configure} command line, using @samp{VAR=value}.
|
|
|
|
For example:
|
2000-02-10 02:19:58 +08:00
|
|
|
|
1999-10-26 11:54:59 +08:00
|
|
|
@example
|
|
|
|
./configure CC=/usr/local2/bin/gcc
|
|
|
|
@end example
|
2000-02-10 02:19:58 +08:00
|
|
|
|
|
|
|
@noindent
|
2005-02-01 08:32:44 +08:00
|
|
|
causes the specified @command{gcc} to be used as the C compiler (unless it is
|
1999-10-26 11:54:59 +08:00
|
|
|
overridden in the site shell script).
|
2006-02-04 22:10:46 +08:00
|
|
|
|
|
|
|
@noindent
|
2006-02-13 15:59:10 +08:00
|
|
|
Unfortunately, this technique does not work for @env{CONFIG_SHELL} due
|
|
|
|
to an Autoconf bug. Until the bug is fixed you can use this
|
|
|
|
workaround:
|
1999-10-26 11:54:59 +08:00
|
|
|
|
2005-02-01 08:32:44 +08:00
|
|
|
@example
|
2006-02-04 22:10:46 +08:00
|
|
|
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
2005-02-01 08:32:44 +08:00
|
|
|
@end example
|
|
|
|
|
2000-05-27 01:12:01 +08:00
|
|
|
@node configure Invocation
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@section @command{configure} Invocation
|
1994-09-28 06:05:22 +08:00
|
|
|
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@command{configure} recognizes the following options to control how it
|
1994-09-28 06:05:22 +08:00
|
|
|
operates.
|
1994-07-19 22:37:37 +08:00
|
|
|
|
2000-06-09 19:37:15 +08:00
|
|
|
@table @option
|
2000-02-10 02:19:58 +08:00
|
|
|
@item --help
|
|
|
|
@itemx -h
|
2008-08-26 23:28:15 +08:00
|
|
|
Print a summary of all of the options to @command{configure}, and exit.
|
|
|
|
|
|
|
|
@item --help=short
|
|
|
|
@itemx --help=recursive
|
|
|
|
Print a summary of the options unique to this package's
|
|
|
|
@command{configure}, and exit. The @code{short} variant lists options
|
|
|
|
used only in the top level, while the @code{recursive} variant lists
|
|
|
|
options also present in any nested packages.
|
2000-02-10 02:19:58 +08:00
|
|
|
|
|
|
|
@item --version
|
2000-03-03 02:17:26 +08:00
|
|
|
@itemx -V
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
Print the version of Autoconf used to generate the @command{configure}
|
2000-02-10 02:19:58 +08:00
|
|
|
script, and exit.
|
|
|
|
|
1994-09-06 04:12:21 +08:00
|
|
|
@item --cache-file=@var{file}
|
2000-04-05 15:42:06 +08:00
|
|
|
@cindex Cache, enabling
|
|
|
|
Enable the cache: use and save the results of the tests in @var{file},
|
2000-07-04 18:34:21 +08:00
|
|
|
traditionally @file{config.cache}. @var{file} defaults to
|
2000-04-05 15:42:06 +08:00
|
|
|
@file{/dev/null} to disable caching.
|
1994-09-06 04:12:21 +08:00
|
|
|
|
2000-05-22 21:31:00 +08:00
|
|
|
@item --config-cache
|
|
|
|
@itemx -C
|
2000-07-04 18:34:21 +08:00
|
|
|
Alias for @option{--cache-file=config.cache}.
|
2000-05-22 21:31:00 +08:00
|
|
|
|
1994-07-27 01:15:52 +08:00
|
|
|
@item --quiet
|
|
|
|
@itemx --silent
|
|
|
|
@itemx -q
|
2000-02-10 02:19:58 +08:00
|
|
|
Do not print messages saying which checks are being made. To suppress
|
|
|
|
all normal output, redirect it to @file{/dev/null} (any error messages
|
|
|
|
will still be shown).
|
1994-07-19 22:37:37 +08:00
|
|
|
|
|
|
|
@item --srcdir=@var{dir}
|
|
|
|
Look for the package's source code in directory @var{dir}. Usually
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@command{configure} can determine that directory automatically.
|
2008-08-26 23:28:15 +08:00
|
|
|
|
|
|
|
@item --prefix=@var{dir}
|
|
|
|
Use @var{dir} as the installation prefix. @ref{Installation Names}
|
|
|
|
for more details, including other options available for fine-tuning
|
|
|
|
the installation locations.
|
|
|
|
|
|
|
|
@item --no-create
|
|
|
|
@itemx -n
|
|
|
|
Run the configure checks, but stop before creating any output files.
|
1994-07-19 22:37:37 +08:00
|
|
|
@end table
|
|
|
|
|
|
|
|
@noindent
|
* doc/autoconf.texi (pr): New index.
(prindex, findex): Use, merge, and output them.
(Environment Variable Index, Output Variable Index)
(Preprocessor Symbol Index, Autoconf Macro Index, M4 Macro Index)
(Autotest Macro Index): Rename as...
(Environment Variables, Output Variables,Preprocessor Symbols)
(Autoconf Macros, M4 Macros, Autotest Macros): these.
* doc/install.texi: Use @command.
(Environment Variables): Rename as...
(Defining Variables): this.
2001-08-15 20:34:16 +08:00
|
|
|
@command{configure} also accepts some other, not widely useful, options.
|
2000-02-10 02:19:58 +08:00
|
|
|
Run @samp{configure --help} for more details.
|
2008-08-26 23:28:15 +08:00
|
|
|
|
|
|
|
@c Local Variables:
|
|
|
|
@c fill-column: 72
|
|
|
|
@c ispell-local-dictionary: "american"
|
|
|
|
@c indent-tabs-mode: nil
|
|
|
|
@c whitespace-check-buffer-indent: nil
|
|
|
|
@c End:
|