2 * config_f.h -- configure various defines for tcsh
4 * This is included by config.h.
6 * Edit this to match your particular feelings; this is set up to the
10 * Copyright (c) 1980, 1991 The Regents of the University of California.
11 * All rights reserved.
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 * 3. Neither the name of the University nor the names of its contributors
22 * may be used to endorse or promote products derived from this software
23 * without specific prior written permission.
25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40 #ifdef HAVE_FEATURES_H
41 #include <features.h> /* for __GLIBC__ */
45 * SHORT_STRINGS Use at least 16 bit characters instead of 8 bit chars
46 * This fixes up quoting problems and eases implementation
53 * WIDE_STRINGS Represent strings using wide characters
54 * Allows proper function in multibyte encodings like UTF-8
56 #if defined (SHORT_STRINGS) && defined (NLS) && !defined (WINNT_NATIVE) && !defined(_OSD_POSIX) && SIZEOF_WCHAR_T > 1
58 # if SIZEOF_WCHAR_T < 4
59 # define UTF16_STRINGS
64 * LOGINFIRST Source ~/.login before ~/.cshrc
69 * VIDEFAULT Make the VI mode editor the default
74 * KAI use "bye" command and rename "log" to "watchlog"
79 * TESLA drops DTR on logout. Historical note:
80 * tesla.ee.cornell.edu was a vax11/780 with a develcon
81 * switch that sometimes would not hang up.
86 * DOTLAST put "." last in the default path, for security reasons
91 * NODOT Don't put "." in the default path, for security reasons
96 * AUTOLOGOUT tries to determine if it should set autologout depending
97 * on the name of the tty, and environment.
98 * Does not make sense in the modern window systems!
103 * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'.
104 * Define to get the same type of messages.
109 * KANJI Ignore meta-next, and the ISO character set. Should
110 * be used with SHORT_STRINGS (or WIDE_STRINGS)
116 * DSPMBYTE add variable "dspmbyte" and display multi-byte string at
117 * only output, when "dspmbyte" is set. Should be used with
120 #if defined (SHORT_STRINGS) && !defined (WIDE_STRINGS)
125 * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to
126 * variable "mbytemap".
127 * (use for multi-byte table check)
132 * NEWGRP Provide a newgrp builtin.
137 * SYSMALLOC Use the system provided version of malloc and friends.
138 * This can be much slower and no memory statistics will be
141 #if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__)
148 * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.
149 * POSIX says to use stat, but stat(2) is less accurate
150 * than access(2) for determining file access.
155 * REMOTEHOST Try to determine the remote host that we logged in from
156 * using first getpeername, and then the utmp file. If
157 * successful, set $REMOTEHOST to the name or address of the
163 * COLOR_LS_F Do you want to use builtin color ls-F ?
169 * COLORCAT Do you want to colorful message ?
175 * FILEC support for old style file completion
179 /* Consistency checks */
182 #error "WIDE_STRINGS cannot be used together with WINNT_NATIVE"
185 # ifndef SHORT_STRINGS
186 #error "SHORT_STRINGS must be defined if WIDE_STRINGS is defined"
190 #error "NLS must be defined if WIDE_STRINGS is defined"
194 #error "DSPMBYTE must not be defined if WIDE_STRINGS is defined"
198 #if !defined (SHORT_STRINGS) && defined (DSPMBYTE)
199 #error "SHORT_STRINGS must be defined if DSPMBYTE is defined"
202 #endif /* _h_config_f */