config_f.h revision 69408
172878Skris/* $Header: /src/pub/tcsh/config_f.h,v 3.23 2000/06/11 02:14:10 kim Exp $ */ 272878Skris/* 3100772Sjhb * config_f.h -- configure various defines for tcsh 4100772Sjhb * 5100772Sjhb * This is included by config.h. 672878Skris * 7100772Sjhb * Edit this to match your particular feelings; this is set up to the 872878Skris * way I like it. 9100772Sjhb */ 10100772Sjhb/*- 1172878Skris * Copyright (c) 1980, 1991 The Regents of the University of California. 12100772Sjhb * All rights reserved. 13100772Sjhb * 1472878Skris * Redistribution and use in source and binary forms, with or without 15100772Sjhb * modification, are permitted provided that the following conditions 16100772Sjhb * are met: 1796312Sobrien * 1. Redistributions of source code must retain the above copyright 18100772Sjhb * notice, this list of conditions and the following disclaimer. 19100772Sjhb * 2. Redistributions in binary form must reproduce the above copyright 2072878Skris * notice, this list of conditions and the following disclaimer in the 21100772Sjhb * documentation and/or other materials provided with the distribution. 2272878Skris * 3. All advertising materials mentioning features or use of this software 2372878Skris * must display the following acknowledgement: 2472878Skris * This product includes software developed by the University of 2572878Skris * California, Berkeley and its contributors. 2672878Skris * 4. Neither the name of the University nor the names of its contributors 2772878Skris * may be used to endorse or promote products derived from this software 2872878Skris * without specific prior written permission. 2972878Skris * 3072878Skris * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3172878Skris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3296421Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3372878Skris * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3472878Skris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3572878Skris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3696421Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3772878Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3896421Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3996421Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4096421Sobrien * SUCH DAMAGE. 4196421Sobrien */ 4296421Sobrien#ifndef _h_config_f 4372878Skris#define _h_config_f 4474146Skris 4572878Skris/* 4696421Sobrien * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars 4797661Sru * This fixes up quoting problems and eases implementation 4897661Sru * of nls... 4997661Sru * 5096419Sobrien */ 5197661Sru#define SHORT_STRINGS 5273145Skris 5374146Skris/* 5472878Skris * NLS: Use Native Language System 5574146Skris * Routines like setlocale() are needed 5672878Skris * if you don't have <locale.h>, you don't want 5774146Skris * to define this. 5873145Skris */ 5974146Skris#define NLS 6073145Skris 6174146Skris/* 6273145Skris * NLS_CATALOGS:Use Native Language System catalogs for 6374146Skris * international messages. 6472878Skris * Routines like catopen() are needed 6574146Skris * if you don't have <nl_types.h>, you don't want 6673145Skris * to define this. 6798159Ssobomax */ 6872878Skris#undef NLS_CATALOGS 6974146Skris 7072878Skris/* 7194987Sru * LOGINFIRST Source ~/.login before ~/.cshrc 7272878Skris */ 7372878Skris#undef LOGINFIRST 7472878Skris 7574146Skris/* 7672878Skris * VIDEFAULT Make the VI mode editor the default 7774146Skris */ 7872878Skris#undef VIDEFAULT 7974146Skris 8072878Skris/* 8174146Skris * KAI use "bye" command and rename "log" to "watchlog" 8272878Skris */ 8374146Skris#undef KAI 8472878Skris 8574146Skris/* 8672878Skris * TESLA drops DTR on logout. Historical note: 8772878Skris * tesla.ee.cornell.edu was a vax11/780 with a develcon 8872878Skris * switch that sometimes would not hang up. 89100772Sjhb */ 9072878Skris#undef TESLA 9174146Skris 9274146Skris/* 9374146Skris * DOTLAST put "." last in the default path, for security reasons 9474146Skris */ 9574146Skris#define DOTLAST 9674146Skris 9772878Skris/* 9872878Skris * NODOT Don't put "." in the default path, for security reasons 9972878Skris */ 10072878Skris#undef NODOT 10172878Skris 10296421Sobrien/* 10396421Sobrien * AUTOLOGOUT tries to determine if it should set autologout depending 10473145Skris * on the name of the tty, and environment. 10574069Ssobomax * Does not make sense in the modern window systems! 10672878Skris */ 10774069Ssobomax#define AUTOLOGOUT 10872878Skris 10972878Skris/* 11073145Skris * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 11173145Skris * Define to get the same type of messages. 11273145Skris */ 11373145Skris#define SUSPENDED 11473145Skris 11574553Skris/* 11672878Skris * KANJI Ignore meta-next, and the ISO character set. Should 11772878Skris * be used with SHORT_STRINGS 11873145Skris * 11973145Skris */ 12072878Skris#undef KANJI 12172878Skris 12272878Skris/* 12372878Skris * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 12472878Skris * only output, when "dspmbyte" is set. Should be used with 12572878Skris * KANJI 12672878Skris */ 12772878Skris#undef DSPMBYTE 12872878Skris 12972878Skris/* 13072878Skris * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 13172878Skris * variable "mbytemap". 13272878Skris * (use for multi-byte table check) 13372878Skris */ 13472878Skris#undef MBYTEDEBUG 13572878Skris 13672878Skris/* 13772878Skris * NEWGRP Provide a newgrp builtin. 13872878Skris */ 13972878Skris#undef NEWGRP 14072878Skris 14172878Skris/* 14272878Skris * SYSMALLOC Use the system provided version of malloc and friends. 14372878Skris * This can be much slower and no memory statistics will be 14472878Skris * provided. 14572878Skris */ 146#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) 147# define SYSMALLOC 148#else 149# undef SYSMALLOC 150#endif 151 152/* 153 * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined. 154 * POSIX says to use stat, but stat(2) is less accurate 155 * than access(2) for determining file access. 156 */ 157#undef USE_ACCESS 158 159/* 160 * REMOTEHOST Try to determine the remote host that we logged in from 161 * using first getpeername, and then the utmp file. If 162 * successful, set $REMOTEHOST to the name or address of the 163 * host 164 */ 165#define REMOTEHOST 166 167/* 168 * COLOR_LS_F Do you want to use builtin color ls-F ? 169 * 170 */ 171#define COLOR_LS_F 172 173/* 174 * COLORCAT Do you want to colorful message ? 175 * 176 */ 177#undef COLORCAT 178 179/* 180 * RCSID This defines if we want rcs strings in the binary or not 181 * 182 */ 183#if !defined(lint) && !defined(SABER) && !defined(__CLCC__) 184# ifndef __GNUC__ 185# define RCSID(id) static char *rcsid = (id); 186# else 187# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 188# endif /* !__GNUC__ */ 189#else 190# define RCSID(id) /* Nothing */ 191#endif /* !lint && !SABER */ 192 193#endif /* _h_config_f */ 194