Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1 | Basic Installation |
| 2 | ================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 3 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 4 | These are installation instructions for Bash. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 5 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 6 | The simplest way to compile Bash is: |
| 7 | |
| 8 | 1. `cd' to the directory containing the source code and type |
| 9 | `./configure' to configure Bash for your system. If you're using |
| 10 | `csh' on an old version of System V, you might need to type `sh |
| 11 | ./configure' instead to prevent `csh' from trying to execute |
| 12 | `configure' itself. |
| 13 | |
| 14 | Running `configure' takes some time. While running, it prints |
| 15 | messages telling which features it is checking for. |
| 16 | |
| 17 | 2. Type `make' to compile Bash and build the `bashbug' bug reporting |
| 18 | script. |
| 19 | |
| 20 | 3. Optionally, type `make tests' to run the Bash test suite. |
| 21 | |
| 22 | 4. Type `make install' to install `bash' and `bashbug'. This will |
| 23 | also install the manual pages and Info file. |
| 24 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 25 | The `configure' shell script attempts to guess correct values for |
| 26 | various system-dependent variables used during compilation. It uses |
| 27 | those values to create a `Makefile' in each directory of the package |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 28 | (the top directory, the `builtins', `doc', and `support' directories, |
| 29 | each directory under `lib', and several others). It also creates a |
| 30 | `config.h' file containing system-dependent definitions. Finally, it |
| 31 | creates a shell script named `config.status' that you can run in the |
| 32 | future to recreate the current configuration, a file `config.cache' |
| 33 | that saves the results of its tests to speed up reconfiguring, and a |
| 34 | file `config.log' containing compiler output (useful mainly for |
| 35 | debugging `configure'). If at some point `config.cache' contains |
| 36 | results you don't want to keep, you may remove or edit it. |
| 37 | |
| 38 | To find out more about the options and arguments that the `configure' |
| 39 | script understands, type |
| 40 | |
| 41 | bash-2.04$ ./configure --help |
| 42 | |
| 43 | at the Bash prompt in your Bash source directory. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 44 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 45 | If you need to do unusual things to compile Bash, please try to figure |
| 46 | out how `configure' could check whether or not to do them, and mail |
| 47 | diffs or instructions to <bash-maintainers@gnu.org> so they can be |
| 48 | considered for the next release. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 49 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 50 | The file `configure.in' is used to create `configure' by a program |
| 51 | called Autoconf. You only need `configure.in' if you want to change it |
| 52 | or regenerate `configure' using a newer version of Autoconf. If you do |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 53 | this, make sure you are using Autoconf version 2.10 or newer. |
| 54 | |
| 55 | If you need to change `configure.in' or regenerate `configure', you |
| 56 | will need to create two files: `_distribution' and `_patchlevel'. |
| 57 | `_distribution' should contain the major and minor version numbers of |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 58 | the Bash distribution, for example `2.01'. `_patchlevel' should |
| 59 | contain the patch level of the Bash distribution, `0' for example. The |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 60 | script `support/mkconffiles' has been provided to automate the creation |
| 61 | of these files. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 62 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 63 | You can remove the program binaries and object files from the source |
| 64 | code directory by typing `make clean'. To also remove the files that |
| 65 | `configure' created (so you can compile Bash for a different kind of |
| 66 | computer), type `make distclean'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 67 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 68 | Compilers and Options |
| 69 | ===================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 70 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 71 | Some systems require unusual options for compilation or linking that |
| 72 | the `configure' script does not know about. You can give `configure' |
| 73 | initial values for variables by setting them in the environment. Using |
| 74 | a Bourne-compatible shell, you can do that on the command line like |
| 75 | this: |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 76 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 77 | CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 78 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 79 | On systems that have the `env' program, you can do it like this: |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 80 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 81 | env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 82 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 83 | The configuration process uses GCC to build Bash if it is available. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 84 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 85 | Compiling For Multiple Architectures |
| 86 | ==================================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 87 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 88 | You can compile Bash for more than one kind of computer at the same |
| 89 | time, by placing the object files for each architecture in their own |
| 90 | directory. To do this, you must use a version of `make' that supports |
| 91 | the `VPATH' variable, such as GNU `make'. `cd' to the directory where |
| 92 | you want the object files and executables to go and run the `configure' |
| 93 | script from the source directory. You may need to supply the |
| 94 | `--srcdir=PATH' argument to tell `configure' where the source files |
| 95 | are. `configure' automatically checks for the source code in the |
| 96 | directory that `configure' is in and in `..'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 97 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 98 | If you have to use a `make' that does not supports the `VPATH' |
| 99 | variable, you can compile Bash for one architecture at a time in the |
| 100 | source code directory. After you have installed Bash for one |
| 101 | architecture, use `make distclean' before reconfiguring for another |
| 102 | architecture. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 103 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 104 | Alternatively, if your system supports symbolic links, you can use the |
| 105 | `support/mkclone' script to create a build tree which has symbolic |
| 106 | links back to each file in the source directory. Here's an example |
| 107 | that creates a build directory in the current directory from a source |
| 108 | directory `/usr/gnu/src/bash-2.0': |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 109 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 110 | bash /usr/gnu/src/bash-2.0/support/mkclone -s /usr/gnu/src/bash-2.0 . |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 111 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 112 | The `mkclone' script requires Bash, so you must have already built Bash |
| 113 | for at least one architecture before you can create build directories |
| 114 | for other architectures. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 115 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 116 | Installation Names |
| 117 | ================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 118 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 119 | By default, `make install' will install into `/usr/local/bin', |
| 120 | `/usr/local/man', etc. You can specify an installation prefix other |
| 121 | than `/usr/local' by giving `configure' the option `--prefix=PATH'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 122 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 123 | You can specify separate installation prefixes for |
| 124 | architecture-specific files and architecture-independent files. If you |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 125 | give `configure' the option `--exec-prefix=PATH', `make install' will |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 126 | use PATH as the prefix for installing programs and libraries. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 127 | Documentation and other data files will still use the regular prefix. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 128 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 129 | Specifying the System Type |
| 130 | ========================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 131 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 132 | There may be some features `configure' can not figure out |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 133 | automatically, but needs to determine by the type of host Bash will run |
| 134 | on. Usually `configure' can figure that out, but if it prints a |
| 135 | message saying it can not guess the host type, give it the |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 136 | `--host=TYPE' option. `TYPE' can either be a short name for the system |
| 137 | type, such as `sun4', or a canonical name with three fields: |
| 138 | `CPU-COMPANY-SYSTEM' (e.g., `sparc-sun-sunos4.1.2'). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 139 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 140 | See the file `support/config.sub' for the possible values of each field. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 141 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 142 | Sharing Defaults |
| 143 | ================ |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 144 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 145 | If you want to set default values for `configure' scripts to share, you |
| 146 | can create a site shell script called `config.site' that gives default |
| 147 | values for variables like `CC', `cache_file', and `prefix'. `configure' |
| 148 | looks for `PREFIX/share/config.site' if it exists, then |
| 149 | `PREFIX/etc/config.site' if it exists. Or, you can set the |
| 150 | `CONFIG_SITE' environment variable to the location of the site script. |
| 151 | A warning: the Bash `configure' looks for a site script, but not all |
| 152 | `configure' scripts do. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 153 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 154 | Operation Controls |
| 155 | ================== |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 156 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 157 | `configure' recognizes the following options to control how it operates. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 158 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 159 | `--cache-file=FILE' |
| 160 | Use and save the results of the tests in FILE instead of |
| 161 | `./config.cache'. Set FILE to `/dev/null' to disable caching, for |
| 162 | debugging `configure'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 163 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 164 | `--help' |
| 165 | Print a summary of the options to `configure', and exit. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 166 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 167 | `--quiet' |
| 168 | `--silent' |
| 169 | `-q' |
| 170 | Do not print messages saying which checks are being made. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 171 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 172 | `--srcdir=DIR' |
| 173 | Look for the Bash source code in directory DIR. Usually |
| 174 | `configure' can determine that directory automatically. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 175 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 176 | `--version' |
| 177 | Print the version of Autoconf used to generate the `configure' |
| 178 | script, and exit. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 179 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 180 | `configure' also accepts some other, not widely used, boilerplate |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 181 | options. `configure --help' prints the complete list. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 182 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 183 | Optional Features |
| 184 | ================= |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 185 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 186 | The Bash `configure' has a number of `--enable-FEATURE' options, where |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 187 | FEATURE indicates an optional part of Bash. There are also several |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 188 | `--with-PACKAGE' options, where PACKAGE is something like `bash-malloc' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 189 | or `purify'. To turn off the default use of a package, use |
| 190 | `--without-PACKAGE'. To configure Bash without a feature that is |
| 191 | enabled by default, use `--disable-FEATURE'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 192 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 193 | Here is a complete list of the `--enable-' and `--with-' options that |
| 194 | the Bash `configure' recognizes. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 195 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 196 | `--with-afs' |
| 197 | Define if you are using the Andrew File System from Transarc. |
| 198 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 199 | `--with-bash-malloc' |
| 200 | Use the Bash version of `malloc' in `lib/malloc/malloc.c'. This |
| 201 | is not the same `malloc' that appears in GNU libc, but an older |
| 202 | version derived from the 4.2 BSD `malloc'. This `malloc' is very |
| 203 | fast, but wastes some space on each allocation. This option is |
| 204 | enabled by default. The `NOTES' file contains a list of systems |
| 205 | for which this should be turned off, and `configure' disables this |
| 206 | option automatically for a number of systems. |
| 207 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 208 | `--with-curses' |
| 209 | Use the curses library instead of the termcap library. This should |
| 210 | be supplied if your system has an inadequate or incomplete termcap |
| 211 | database. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 212 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 213 | `--with-glibc-malloc' |
| 214 | Use the GNU libc version of `malloc' in `lib/malloc/gmalloc.c'. |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 215 | This is not the version of `malloc' that appears in glibc version |
| 216 | 2, but a modified version of the `malloc' from glibc version 1. |
| 217 | This is somewhat slower than the default `malloc', but wastes less |
| 218 | space on a per-allocation basis, and will return memory to the |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 219 | operating system under certain circumstances. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 220 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 221 | `--with-gnu-malloc' |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 222 | A synonym for `--with-bash-malloc'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 223 | |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 224 | `--with-installed-readline' |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 225 | Define this to make Bash link with a locally-installed version of |
| 226 | Readline rather than the version in `lib/readline'. This works |
| 227 | only with Readline 4.1 and later versions. |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 228 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 229 | `--with-purify' |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 230 | Define this to use the Purify memory allocation checker from |
| 231 | Rational Software. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 232 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 233 | `--enable-minimal-config' |
| 234 | This produces a shell with minimal features, close to the |
| 235 | historical Bourne shell. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 236 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 237 | There are several `--enable-' options that alter how Bash is compiled |
| 238 | and linked, rather than changing run-time features. |
| 239 | |
| 240 | `--enable-profiling' |
| 241 | This builds a Bash binary that produces profiling information to be |
| 242 | processed by `gprof' each time it is executed. |
| 243 | |
| 244 | `--enable-static-link' |
| 245 | This causes Bash to be linked statically, if `gcc' is being used. |
| 246 | This could be used to build a version to use as root's shell. |
| 247 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 248 | The `minimal-config' option can be used to disable all of the following |
| 249 | options, but it is processed first, so individual options may be |
| 250 | enabled using `enable-FEATURE'. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 251 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 252 | All of the following options except for `disabled-builtins' and |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 253 | `xpg-echo-default' are enabled by default, unless the operating system |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 254 | does not provide the necessary support. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 255 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 256 | `--enable-alias' |
| 257 | Allow alias expansion and include the `alias' and `unalias' |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 258 | builtins (*note Aliases::). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 259 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 260 | `--enable-arith-for-command' |
| 261 | Include support for the alternate form of the `for' command that |
| 262 | behaves like the C language `for' statement (*note Looping |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 263 | Constructs::). |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 264 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 265 | `--enable-array-variables' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 266 | Include support for one-dimensional array shell variables (*note |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 267 | Arrays::). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 268 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 269 | `--enable-bang-history' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 270 | Include support for `csh'-like history substitution (*note History |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 271 | Interaction::). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 272 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 273 | `--enable-brace-expansion' |
| 274 | Include `csh'-like brace expansion ( `b{a,b}c' ==> `bac bbc' ). |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 275 | See *Note Brace Expansion::, for a complete description. |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 276 | |
| 277 | `--enable-command-timing' |
| 278 | Include support for recognizing `time' as a reserved word and for |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 279 | displaying timing statistics for the pipeline following `time' |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 280 | (*note Pipelines::). This allows pipelines as well as shell |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 281 | builtins and functions to be timed. |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 282 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 283 | `--enable-cond-command' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 284 | Include support for the `[[' conditional command (*note |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 285 | Conditional Constructs::). |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 286 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 287 | `--enable-directory-stack' |
| 288 | Include support for a `csh'-like directory stack and the `pushd', |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 289 | `popd', and `dirs' builtins (*note The Directory Stack::). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 290 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 291 | `--enable-disabled-builtins' |
| 292 | Allow builtin commands to be invoked via `builtin xxx' even after |
| 293 | `xxx' has been disabled using `enable -n xxx'. See *Note Bash |
| 294 | Builtins::, for details of the `builtin' and `enable' builtin |
| 295 | commands. |
| 296 | |
| 297 | `--enable-dparen-arithmetic' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 298 | Include support for the `((...))' command (*note Conditional |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 299 | Constructs::). |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 300 | |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 301 | `--enable-extended-glob' |
| 302 | Include support for the extended pattern matching features |
| 303 | described above under *Note Pattern Matching::. |
| 304 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 305 | `--enable-help-builtin' |
| 306 | Include the `help' builtin, which displays help on shell builtins |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 307 | and variables (*note Bash Builtins::). |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 308 | |
| 309 | `--enable-history' |
| 310 | Include command history and the `fc' and `history' builtin |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 311 | commands (*note Bash History Facilities::). |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 312 | |
| 313 | `--enable-job-control' |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 314 | This enables the job control features (*note Job Control::), if |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 315 | the operating system supports them. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 316 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 317 | `--enable-net-redirections' |
| 318 | This enables the special handling of filenames of the form |
| 319 | `/dev/tcp/HOST/PORT' and `/dev/udp/HOST/PORT' when used in |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 320 | redirections (*note Redirections::). |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 321 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 322 | `--enable-process-substitution' |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 323 | This enables process substitution (*note Process Substitution::) if |
| 324 | the operating system provides the necessary support. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 325 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 326 | `--enable-prompt-string-decoding' |
| 327 | Turn on the interpretation of a number of backslash-escaped |
| 328 | characters in the `$PS1', `$PS2', `$PS3', and `$PS4' prompt |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 329 | strings. See *Note Printing a Prompt::, for a complete list of |
| 330 | prompt string escape sequences. |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 331 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 332 | `--enable-progcomp' |
| 333 | Enable the programmable completion facilities (*note Programmable |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 334 | Completion::). If Readline is not enabled, this option has no |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 335 | effect. |
| 336 | |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 337 | `--enable-readline' |
| 338 | Include support for command-line editing and history with the Bash |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 339 | version of the Readline library (*note Command Line Editing::). |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 340 | |
| 341 | `--enable-restricted' |
| 342 | Include support for a "restricted shell". If this is enabled, |
| 343 | Bash, when called as `rbash', enters a restricted mode. See *Note |
| 344 | The Restricted Shell::, for a description of restricted mode. |
| 345 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 346 | `--enable-select' |
Jari Aalto | b72432f | 1999-02-19 17:11:39 +0000 | [diff] [blame] | 347 | Include the `select' builtin, which allows the generation of simple |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame^] | 348 | menus (*note Conditional Constructs::). |
Jari Aalto | 726f638 | 1996-08-26 18:22:31 +0000 | [diff] [blame] | 349 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 350 | `--enable-usg-echo-default' |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 351 | A synonym for `--enable-xpg-echo-default'. |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 352 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 353 | `--enable-xpg-echo-default' |
| 354 | Make the `echo' builtin expand backslash-escaped characters by |
| 355 | default, without requiring the `-e' option. This sets the default |
| 356 | value of the `xpg_echo' shell option to `on', which makes the Bash |
| 357 | `echo' behave more like the version specified in the Single Unix |
| 358 | Specification, version 2. *Note Bash Builtins::, for a |
| 359 | description of the escape sequences that `echo' recognizes. |
| 360 | |
| 361 | The file `config-top.h' contains C Preprocessor `#define' statements |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 362 | for options which are not settable from `configure'. Some of these are |
| 363 | not meant to be changed; beware of the consequences if you do. Read |
| 364 | the comments associated with each definition for more information about |
| 365 | its effect. |