2 /* modify settings or make new ones based on what autoconf tells us. */
4 /* Copyright (C) 1989-2002 Free Software Foundation, Inc.
6 This file is part of GNU Bash, the Bourne Again SHell.
8 Bash is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2, or (at your option) any later
13 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License along
19 with Bash; see the file COPYING. If not, write to the Free Software
20 Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
22 #if !defined (HAVE_VPRINTF) && defined (HAVE_DOPRNT)
23 # define USE_VFPRINTF_EMULATION
27 /* Ultrix botches type-ahead when switching from canonical to
28 non-canonical mode, at least through version 4.3 */
29 #if !defined (HAVE_TERMIOS_H) || !defined (HAVE_TCGETATTR) || defined (ultrix)
30 # define TERMIOS_MISSING
33 /* If we have a getcwd(3), but it calls popen(), #undef HAVE_GETCWD so
34 the replacement in getcwd.c will be built. */
35 #if defined (HAVE_GETCWD) && defined (GETCWD_BROKEN)
39 #if defined (HAVE_SYS_RESOURCE_H) && defined (HAVE_GETRLIMIT)
40 # define HAVE_RESOURCE
43 #if !defined (GETPGRP_VOID)
44 # define HAVE_BSD_PGRP
47 #if !defined (HAVE_DEV_FD) && defined (NAMED_PIPES_MISSING)
48 # undef PROCESS_SUBSTITUTION
51 /* If the shell is called by this name, it will become restricted. */
52 #if defined (RESTRICTED_SHELL)
53 # define RESTRICTED_SHELL_NAME "rbash"
56 /* BANG_HISTORY requires HISTORY. */
57 #if defined (BANG_HISTORY) && !defined (HISTORY)
59 #endif /* BANG_HISTORY && !HISTORY */
61 #if defined (READLINE) && !defined (HISTORY)
65 #if defined (PROGRAMMABLE_COMPLETION) && !defined (READLINE)
66 # undef PROGRAMMABLE_COMPLETION
69 #if !defined (V9_ECHO)
70 # undef DEFAULT_ECHO_TO_XPG
73 #if defined (JOB_CONTROL_MISSING)
77 #if defined (__STDC__) && defined (HAVE_STDARG_H)
78 # define PREFER_STDARG
81 # if defined (HAVE_VARARGS_H)
82 # define PREFER_VARARGS
87 #if defined (STRCOLL_BROKEN)
91 #if defined (HAVE_SYS_SOCKET_H) && defined (HAVE_GETPEERNAME) && defined (HAVE_NETINET_IN_H)
95 #if !defined (PROMPT_STRING_DECODE)
100 /************************************************/
101 /* check multibyte capability for I18N code */
102 /************************************************/
104 /* For platforms which support the ISO C amendement 1 functionality we
105 support user defined character classes. */
106 /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
107 #if defined (HAVE_WCTYPE_H) && defined (HAVE_WCHAR_H)
110 # if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */
111 # define HANDLE_MULTIBYTE 1
115 /* Some systems, like BeOS, have multibyte encodings but lack mbstate_t. */
116 #if HANDLE_MULTIBYTE && !defined (HAVE_MBSTATE_T)
117 # define wcsrtombs(dest, src, len, ps) (wcsrtombs) (dest, src, len, 0)
118 # define mbsrtowcs(dest, src, len, ps) (mbsrtowcs) (dest, src, len, 0)
119 # define wcrtomb(s, wc, ps) (wcrtomb) (s, wc, 0)
120 # define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0)
121 # define mbrlen(s, n, ps) (mbrlen) (s, n, 0)
122 # define mbstate_t int
125 /* Make sure MB_LEN_MAX is at least 16 (some systems define
127 #ifdef HANDLE_MULTIBYTE
129 # if defined(MB_LEN_MAX) && (MB_LEN_MAX < 16)
132 # if !defined (MB_LEN_MAX)
133 # define MB_LEN_MAX 16
137 /************************************************/
138 /* end of multibyte capability checks for I18N */
139 /************************************************/