1 /* config.h -- Configuration file for bash. */
3 /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
5 This file is part of GNU Bash, the Bourne Again SHell.
7 Bash is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 Bash is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Bash; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
24 /* Configuration settings controllable by autoconf. */
26 /* Define JOB_CONTROL if your operating system supports
27 BSD-like job control. */
30 /* Define ALIAS if you want the alias features. */
33 /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
34 (Also the `dirs' commands.) */
37 /* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
38 foo{a,b} -> fooa foob. Even if this is compiled in (the default) you
39 can turn it off at shell startup with `-nobraceexpansion', or during
40 shell execution with `set +o braceexpand'. */
41 #undef BRACE_EXPANSION
43 /* Define READLINE to get the nifty/glitzy editing features.
44 This is on by default. You can turn it off interactively
45 with the -nolineediting flag. */
48 /* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
49 This is unrelated to READLINE. */
52 /* Define HISTORY if you want to have access to previously typed commands.
54 If both HISTORY and READLINE are defined, you can get at the commands
55 with line editing commands, and you can directly manipulate the history
56 from the command line.
58 If only HISTORY is defined, the `fc' and `history' builtins are
62 /* Define this if you want completion that puts all alternatives into
63 a brace expansion shell expression. */
64 #if defined (BRACE_EXPANSION) && defined (READLINE)
65 # define BRACE_COMPLETION
66 #endif /* BRACE_EXPANSION */
68 /* Define DEFAULT_ECHO_TO_XPG if you want the echo builtin to interpret
69 the backslash-escape characters by default, like the XPG Single Unix
70 Specification V2 for echo.
71 This requires that V9_ECHO be defined. */
72 #undef DEFAULT_ECHO_TO_XPG
74 /* Define HELP_BUILTIN if you want the `help' shell builtin and the long
75 documentation strings compiled into the shell. */
78 /* Define RESTRICTED_SHELL if you want the generated shell to have the
79 ability to be a restricted one. The shell thus generated can become
80 restricted by being run with the name "rbash", or by setting the -r
82 #undef RESTRICTED_SHELL
84 /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
85 shell builtin "foo", even if it has been disabled with "enable -n foo". */
86 #undef DISABLED_BUILTINS
88 /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
89 substitution features "<(file)". */
90 /* Right now, you cannot do this on machines without fully operational
91 FIFO support. This currently include NeXT and Alliant. */
92 #undef PROCESS_SUBSTITUTION
94 /* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
95 characters in PS1 and PS2 expanded. Variable expansion will still be
97 #undef PROMPT_STRING_DECODE
99 /* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
100 select word in word_list; do command_list; done */
101 #undef SELECT_COMMAND
103 /* Define COMMAND_TIMING of you want the ksh-style `time' reserved word and
104 the ability to time pipelines, functions, and builtins. */
105 #undef COMMAND_TIMING
107 /* Define ARRAY_VARS if you want ksh-style one-dimensional array variables. */
110 /* Define DPAREN_ARITHMETIC if you want the ksh-style ((...)) arithmetic
111 evaluation command. */
112 #undef DPAREN_ARITHMETIC
114 /* Define EXTENDED_GLOB if you want the ksh-style [*+@?!](patlist) extended
118 /* Define COND_COMMAND if you want the ksh-style [[...]] conditional
122 /* Define ARITH_FOR_COMMAND if you want the ksh93-style
123 for (( init; test; step )) do list; done
124 arithmetic for command. */
125 #undef ARITH_FOR_COMMAND
127 /* Define NETWORK_REDIRECTIONS if you want /dev/(tcp|udp)/host/port to open
128 socket connections when used in redirections */
129 #undef NETWORK_REDIRECTIONS
131 /* Define PROGRAMMABLE_COMPLETION for the programmable completion features
132 and the complete builtin. */
133 #undef PROGRAMMABLE_COMPLETION
135 /* Define AFS if you are using Transarc's AFS. */
138 /* End of configuration settings controllable by autoconf. */
139 /* Other settable options appear in config-top.h. */
141 #include "config-top.h"
143 /* Beginning of autoconf additions. */
145 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
147 /* Memory management functions. */
149 /* Define if using the bash version of malloc in lib/malloc/malloc.c */
150 #undef USING_BASH_MALLOC
152 /* Define if using alloca.c. */
155 /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
156 This function is required for alloca.c support on those systems. */
157 #undef CRAY_STACKSEG_END
159 /* Define if you have alloca, as a function or macro. */
162 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
168 /* The number of bytes in a int. */
171 /* The number of bytes in a long. */
174 /* The number of bytes in a pointer to char. */
177 /* The number of bytes in a double (hopefully 8). */
180 /* Define to `long' if <sys/types.h> doesn't define. */
183 /* Define to `int' if <sys/types.h> doesn't define. */
186 /* Define to `int' if <signal.h> doesn't define. */
189 /* Define to `int' if <sys/types.h> doesn't define. */
192 /* Define to `short' if <sys/types.h> doesn't define. */
195 /* Define to `unsigned short' if <sys/types.h> doesn't define. */
198 /* Define to `int' if <sys/types.h> doesn't define. */
201 /* Define to `unsigned int' if <sys/types.h> doesn't define. */
204 /* Define to `double' if <sys/types.h> doesn't define. */
207 /* Define to `int' if <sys/types.h> doesn't define. */
210 /* Define to `unsigned int' if <sys/types.h> doesn't define. */
213 /* Define to `unsigned long' if <sys/types.h> doesn't define. */
216 /* Define to `unsigned' if <sys/types.h> doesn't define. */
219 /* Define to `int' if <sys/types.h> doesn't define. */
222 /* Define to `long' if <sys/types.h> doesn't define. */
225 /* Define to `long' if <sys/types.h> doesn't define. */
228 /* Define to `int' if <sys/types.h> doesn't define. */
231 /* Define if you have quad_t in <sys/types.h>. */
236 /* Define to the type of elements in the array set by `getgroups'.
237 Usually this is either `int' or `gid_t'. */
240 /* Define if the system does not provide POSIX.1 features except
241 with this defined. */
242 #undef _POSIX_1_SOURCE
244 /* Define if you need to in order for stat and other things to work. */
247 /* Characteristics of the machine archictecture. */
249 /* If using the C implementation of alloca, define if you know the
250 direction of stack growth for your system; otherwise it will be
251 automatically deduced at run-time.
252 STACK_DIRECTION > 0 => grows toward higher addresses
253 STACK_DIRECTION < 0 => grows toward lower addresses
254 STACK_DIRECTION = 0 => direction of growth unknown
256 #undef STACK_DIRECTION
258 /* Define if the machine architecture is big-endian. */
259 #undef WORDS_BIGENDIAN
261 /* Define if you have the ANSI C header files. */
264 /* Check for the presence of certain non-function symbols in the system
267 /* Define if `sys_siglist' is declared by <signal.h> or <unistd.h>. */
268 #undef SYS_SIGLIST_DECLARED
270 /* Define if `_sys_siglist' is declared by <signal.h> or <unistd.h>. */
271 #undef UNDER_SYS_SIGLIST_DECLARED
273 #undef HAVE_SYS_SIGLIST
275 #undef HAVE_UNDER_SYS_SIGLIST
277 #undef HAVE_SYS_ERRLIST
282 /* Characteristics of some of the system structures. */
284 #undef STRUCT_DIRENT_HAS_D_INO
286 #undef STRUCT_DIRENT_HAS_D_FILENO
288 #undef TIOCSTAT_IN_SYS_IOCTL
290 #undef FIONREAD_IN_SYS_IOCTL
292 #undef GWINSZ_IN_SYS_IOCTL
294 #undef STRUCT_WINSIZE_IN_SYS_IOCTL
296 #undef STRUCT_WINSIZE_IN_TERMIOS
298 #undef SPEED_T_IN_SYS_TYPES
305 /* Characteristics of definitions in the system header files. */
307 #undef HAVE_GETPW_DECLS
313 #undef PRINTF_DECLARED
315 /* Characteristics of system calls and C library functions. */
317 /* Define if the `getpgrp' function takes no argument. */
320 #undef NAMED_PIPES_MISSING
322 #undef OPENDIR_NOT_ROBUST
326 /* Define if the setvbuf function takes the buffering type as its second
327 argument and the buffer pointer as the third, as on System V
329 #undef SETVBUF_REVERSED
331 #undef STAT_MACROS_BROKEN
335 #undef CAN_REDEFINE_GETENV
338 /* Characteristics of properties exported by the kernel. */
340 /* Define if the kernel can exec files beginning with #! */
341 #undef HAVE_HASH_BANG_EXEC
343 /* Define if you have the /dev/fd devices to map open files into the file system. */
346 /* Defined to /dev/fd or /proc/self/fd (linux). */
349 /* Define if you have the /dev/stdin device. */
350 #undef HAVE_DEV_STDIN
353 /* Type and behavior of signal handling functions. */
355 /* Define as the return type of signal handlers (int or void). */
358 /* Define if return type of signal handlers is void */
359 #undef VOID_SIGHANDLER
361 #undef MUST_REINSTALL_SIGHANDLERS
363 /* Define if system calls automatically restart after interruption
365 #undef HAVE_RESTARTABLE_SYSCALLS
367 #undef HAVE_BSD_SIGNALS
369 #undef HAVE_POSIX_SIGNALS
371 #undef HAVE_USG_SIGHOLD
373 #undef UNUSABLE_RT_SIGNALS
376 /* Presence of system and C library functions. */
378 /* Define if you have the bcopy function. */
381 /* Define if you have the bindtextdomain function. */
382 #undef HAVE_BINDTEXTDOMAIN
384 /* Define if you have the bzero function. */
387 /* Define if you have the confstr function. */
390 /* Define if you have the dlclose function. */
393 /* Define if you have the dlopen function. */
396 /* Define if you have the dlsym function. */
399 /* Define if you don't have vprintf but do have _doprnt. */
402 /* Define if you have the dup2 function. */
405 /* Define if you have the getcwd function. */
408 /* Define if you have the getdtablesize function. */
409 #undef HAVE_GETDTABLESIZE
411 /* Define if you have the getgroups function. */
412 #undef HAVE_GETGROUPS
414 /* Define if you have the gethostbyname function. */
415 #undef HAVE_GETHOSTBYNAME
417 /* Define if you have the gethostname function. */
418 #undef HAVE_GETHOSTNAME
420 /* Define if you have the getpagesize function. */
421 #undef HAVE_GETPAGESIZE
423 /* Define if you have the getpeername function. */
424 #undef HAVE_GETPEERNAME
426 /* Define if you have the getrlimit function. */
427 #undef HAVE_GETRLIMIT
429 /* Define if you have the getrusage function. */
430 #undef HAVE_GETRUSAGE
432 /* Define if you have the getservbyname function. */
433 #undef HAVE_GETSERVBYNAME
435 /* Define if you have the gettext function. */
438 /* Define if you have the gettimeofday function. */
439 #undef HAVE_GETTIMEOFDAY
441 /* Define if you have the getwd function. */
444 /* Define if you have the inet_aton function. */
445 #undef HAVE_INET_ATON
447 /* Define if you have the killpg function. */
450 /* Define if you have the lstat function. */
453 /* Define if you have the memmove function. */
456 /* Define if you have the mkfifo function. */
459 /* Define if you have the pathconf function. */
462 /* Define if you have the putenv function. */
465 /* Define if you have the readlink function. */
468 /* Define if you have the rename function. */
471 /* Define if you have the sbrk function. */
474 /* Define if you have the select function. */
477 /* Define if you have the setdtablesize function. */
478 #undef HAVE_SETDTABLESIZE
480 /* Define if you have the setenv function. */
483 /* Define if you have the setlinebuf function. */
484 #undef HAVE_SETLINEBUF
486 /* Define if you have the setlocale function. */
487 #undef HAVE_SETLOCALE
489 /* Define if you have the setostype function. */
490 #undef HAVE_SETOSTYPE
492 /* Define if you have the setvbuf function. */
495 /* Define if you have the siginterrupt function. */
496 #undef HAVE_SIGINTERRUPT
498 /* Define if you have the POSIX.1-style sigsetjmp function. */
499 #undef HAVE_POSIX_SIGSETJMP
501 /* Define if you have the strcasecmp function. */
502 #undef HAVE_STRCASECMP
504 /* Define if you have the strchr function. */
507 /* Define if you have the strcoll function. */
510 /* Define if you have the strerror function. */
513 /* Define if you have the strpbrk function. */
516 /* Define if you have the strtod function. */
519 /* Define if you have the strtol function. */
522 /* Define if you have the strtoul function. */
525 /* Define if you have the strsignal function or macro. */
526 #undef HAVE_STRSIGNAL
528 /* Define if you have the sysconf function. */
531 /* Define if you have the tcgetattr function. */
532 #undef HAVE_TCGETATTR
534 /* Define if you have the tcgetpgrp function. */
535 #undef HAVE_TCGETPGRP
537 /* Define if you have the textdomain function. */
538 #undef HAVE_TEXTDOMAIN
540 /* Define if you have the times function. */
543 /* Define if you have the ttyname function. */
546 /* Define if you have the tzset function. */
549 /* Define if you have the ulimit function. */
552 /* Define if you have the uname function. */
555 /* Define if you have the vprintf function. */
558 /* Define if you have the waitpid function. */
561 /* Define if you have the wait3 function. */
565 /* Presence of certain system include files. */
567 /* Define if you have the <arpa/inet.h> header file. */
568 #undef HAVE_ARPA_INET_H
570 /* Define if you have the <dirent.h> header file. */
573 /* Define if you have the <dlfcn.h> header file. */
576 /* Define if you have the <libintl.h> header file. */
577 #undef HAVE_LIBINTL_H
579 /* Define if you have the <limits.h> header file. */
582 /* Define if you have the <locale.h> header file. */
585 /* Define if you have the <ndir.h> header file. */
588 /* Define if you have the <netdh.h> header file. */
591 /* Define if you have the <netinet/in.h> header file. */
592 #undef HAVE_NETINET_IN_H
594 /* Define if you have the <stdlib.h> header file. */
597 /* Define if you have the <stdarg.h> header file. */
600 /* Define if you have the <string.h> header file. */
603 /* Define if you have the <memory.h> header file. */
606 /* Define if you have the <stddef.h> header file. */
609 /* Define if you have the <sys/dir.h> header file. */
610 #undef HAVE_SYS_DIR_H
612 /* Define if you have the <sys/file.h> header file. */
613 #undef HAVE_SYS_FILE_H
615 /* Define if you have the <sys/ndir.h> header file. */
616 #undef HAVE_SYS_NDIR_H
618 /* Define if you have the <sys/param.h> header file. */
619 #undef HAVE_SYS_PARAM_H
621 /* Define if you have the <sys/pte.h> header file. */
622 #undef HAVE_SYS_PTE_H
624 /* Define if you have the <sys/ptem.h> header file. */
625 #undef HAVE_SYS_PTEM_H
627 /* Define if you have the <sys/resource.h> header file. */
628 #undef HAVE_SYS_RESOURCE_H
630 /* Define if you have the <sys/select.h> header file. */
631 #undef HAVE_SYS_SELECT_H
633 /* Define if you have the <sys/socket.h> header file. */
634 #undef HAVE_SYS_SOCKET_H
636 /* Define if you have the <sys/stream.h> header file. */
637 #undef HAVE_SYS_STREAM_H
639 /* Define if you have <sys/time.h> */
640 #undef HAVE_SYS_TIME_H
642 #undef TIME_WITH_SYS_TIME
644 /* Define if you have <sys/times.h> */
645 #undef HAVE_SYS_TIMES_H
647 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
648 #undef HAVE_SYS_WAIT_H
650 /* Define if you have the <termcap.h> header file. */
651 #undef HAVE_TERMCAP_H
653 /* Define if you have the <termio.h> header file. */
656 /* Define if you have the <termios.h> header file. */
657 #undef HAVE_TERMIOS_H
659 /* Define if you have the <unistd.h> header file. */
662 /* Define if you have the <varargs.h> header file. */
663 #undef HAVE_VARARGS_H
665 /* Presence of certain system libraries. */
671 #undef HAVE_LIBSOCKET
674 /* Define if on MINIX. */
677 /* Are we running SVR5 (UnixWare 7)? */
680 /* Are we running SVR4.2? */
683 /* Are we running some version of SVR4? */
686 /* Define if job control is unusable or unsupported. */
687 #undef JOB_CONTROL_MISSING
689 /* Do we need to define _KERNEL to get the RLIMIT_* defines from
691 #undef RLIMIT_NEEDS_KERNEL
693 /* Do strcoll(3) and strcmp(3) give different results in the default locale? */
694 #undef STRCOLL_BROKEN
700 #include "config-bot.h"
702 #endif /* _CONFIG_H_ */