config_f.h revision 131962
1184610Salfred/* $Header: /src/pub/tcsh/config_f.h,v 3.26 2004/03/21 16:48:14 christos Exp $ */ 2184610Salfred/* 3184610Salfred * config_f.h -- configure various defines for tcsh 4184610Salfred * 5184610Salfred * This is included by config.h. 6184610Salfred * 7184610Salfred * Edit this to match your particular feelings; this is set up to the 8184610Salfred * way I like it. 9184610Salfred */ 10184610Salfred/*- 11184610Salfred * Copyright (c) 1980, 1991 The Regents of the University of California. 12184610Salfred * All rights reserved. 13184610Salfred * 14184610Salfred * Redistribution and use in source and binary forms, with or without 15184610Salfred * modification, are permitted provided that the following conditions 16184610Salfred * are met: 17184610Salfred * 1. Redistributions of source code must retain the above copyright 18184610Salfred * notice, this list of conditions and the following disclaimer. 19184610Salfred * 2. Redistributions in binary form must reproduce the above copyright 20184610Salfred * notice, this list of conditions and the following disclaimer in the 21184610Salfred * documentation and/or other materials provided with the distribution. 22184610Salfred * 3. Neither the name of the University nor the names of its contributors 23184610Salfred * may be used to endorse or promote products derived from this software 24184610Salfred * without specific prior written permission. 25184610Salfred * 26184610Salfred * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27184610Salfred * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28184610Salfred * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29184610Salfred * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30184610Salfred * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31184610Salfred * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32184610Salfred * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33184610Salfred * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34184610Salfred * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35184610Salfred * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36184610Salfred * SUCH DAMAGE. 37184610Salfred */ 38184610Salfred#ifndef _h_config_f 39184610Salfred#define _h_config_f 40184610Salfred 41190174Sthompsa/* 42187170Sthompsa * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars 43190754Sthompsa * This fixes up quoting problems and eases implementation 44184610Salfred * of nls... 45184610Salfred * 46184610Salfred */ 47184610Salfred#define SHORT_STRINGS 48184610Salfred 49184610Salfred/* 50184610Salfred * NLS: Use Native Language System 51184610Salfred * Routines like setlocale() are needed 52184610Salfred * if you don't have <locale.h>, you don't want 53184610Salfred * to define this. 54184610Salfred */ 55184610Salfred#define NLS 56184610Salfred 57184610Salfred/* 58184610Salfred * NLS_CATALOGS:Use Native Language System catalogs for 59184610Salfred * international messages. 60184610Salfred * Routines like catopen() are needed 61184610Salfred * if you don't have <nl_types.h>, you don't want 62184610Salfred * to define this. 63184610Salfred */ 64184610Salfred#undef NLS_CATALOGS 65184610Salfred 66184610Salfred/* 67184610Salfred * LOGINFIRST Source ~/.login before ~/.cshrc 68184610Salfred */ 69184610Salfred#undef LOGINFIRST 70184610Salfred 71184610Salfred/* 72184610Salfred * VIDEFAULT Make the VI mode editor the default 73184610Salfred */ 74184610Salfred#undef VIDEFAULT 75184610Salfred 76184610Salfred/* 77184610Salfred * KAI use "bye" command and rename "log" to "watchlog" 78184610Salfred */ 79184610Salfred#undef KAI 80184610Salfred 81184610Salfred/* 82184610Salfred * TESLA drops DTR on logout. Historical note: 83184610Salfred * tesla.ee.cornell.edu was a vax11/780 with a develcon 84184610Salfred * switch that sometimes would not hang up. 85184610Salfred */ 86184610Salfred#undef TESLA 87184610Salfred 88184610Salfred/* 89184610Salfred * DOTLAST put "." last in the default path, for security reasons 90184610Salfred */ 91184610Salfred#define DOTLAST 92184610Salfred 93184610Salfred/* 94184610Salfred * NODOT Don't put "." in the default path, for security reasons 95184610Salfred */ 96184610Salfred#undef NODOT 97184610Salfred 98184610Salfred/* 99184610Salfred * AUTOLOGOUT tries to determine if it should set autologout depending 100184610Salfred * on the name of the tty, and environment. 101184610Salfred * Does not make sense in the modern window systems! 102184610Salfred */ 103184610Salfred#define AUTOLOGOUT 104184610Salfred 105184610Salfred/* 106184610Salfred * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 107184610Salfred * Define to get the same type of messages. 108184610Salfred */ 109184610Salfred#define SUSPENDED 110184610Salfred 111184610Salfred/* 112184610Salfred * KANJI Ignore meta-next, and the ISO character set. Should 113184610Salfred * be used with SHORT_STRINGS 114184610Salfred * 115184610Salfred */ 116184610Salfred#define KANJI 117184610Salfred 118184610Salfred/* 119184610Salfred * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 120184610Salfred * only output, when "dspmbyte" is set. Should be used with 121184610Salfred * KANJI 122184610Salfred */ 123184610Salfred#define DSPMBYTE 124184610Salfred 125184610Salfred/* 126184610Salfred * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 127184610Salfred * variable "mbytemap". 128184610Salfred * (use for multi-byte table check) 129184610Salfred */ 130184610Salfred#undef MBYTEDEBUG 131184610Salfred 132184610Salfred/* 133184610Salfred * NEWGRP Provide a newgrp builtin. 134184610Salfred */ 135184610Salfred#undef NEWGRP 136184610Salfred 137184610Salfred/* 138184610Salfred * SYSMALLOC Use the system provided version of malloc and friends. 139184610Salfred * This can be much slower and no memory statistics will be 140184610Salfred * provided. 141184610Salfred */ 142184610Salfred#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) 143184610Salfred# define SYSMALLOC 144184610Salfred#else 145184610Salfred# undef SYSMALLOC 146184610Salfred#endif 147184610Salfred 148184610Salfred/* 149184610Salfred * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined. 150184610Salfred * POSIX says to use stat, but stat(2) is less accurate 151184610Salfred * than access(2) for determining file access. 152184610Salfred */ 153184610Salfred#undef USE_ACCESS 154184610Salfred 155184610Salfred/* 156184610Salfred * REMOTEHOST Try to determine the remote host that we logged in from 157184610Salfred * using first getpeername, and then the utmp file. If 158184610Salfred * successful, set $REMOTEHOST to the name or address of the 159184610Salfred * host 160184610Salfred */ 161184610Salfred#define REMOTEHOST 162184610Salfred 163184610Salfred/* 164184610Salfred * COLOR_LS_F Do you want to use builtin color ls-F ? 165186730Salfred * 166186730Salfred */ 167186730Salfred#define COLOR_LS_F 168186730Salfred 169186730Salfred/* 170186730Salfred * COLORCAT Do you want to colorful message ? 171186730Salfred * 172186730Salfred */ 173186730Salfred#undef COLORCAT 174184610Salfred 175184610Salfred/* 176184610Salfred * FILEC support for old style file completion 177184610Salfred */ 178184610Salfred#define FILEC 179184610Salfred 180184610Salfred/* 181184610Salfred * RCSID This defines if we want rcs strings in the binary or not 182184610Salfred * 183184610Salfred */ 184184610Salfred#if !defined(lint) && !defined(SABER) && !defined(__CLCC__) 185184610Salfred# ifndef __GNUC__ 186184610Salfred# define RCSID(id) static char *rcsid = (id); 187184610Salfred# else 188184610Salfred# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 189184610Salfred# endif /* !__GNUC__ */ 190184610Salfred#else 191184610Salfred# define RCSID(id) /* Nothing */ 192184610Salfred#endif /* !lint && !SABER */ 193184610Salfred 194184610Salfred#endif /* _h_config_f */ 195184610Salfred