config_f.h revision 131962
1131962Smp/* $Header: /src/pub/tcsh/config_f.h,v 3.26 2004/03/21 16:48:14 christos Exp $ */ 259243Sobrien/* 359243Sobrien * config_f.h -- configure various defines for tcsh 459243Sobrien * 559243Sobrien * This is included by config.h. 659243Sobrien * 759243Sobrien * Edit this to match your particular feelings; this is set up to the 859243Sobrien * way I like it. 959243Sobrien */ 1059243Sobrien/*- 1159243Sobrien * Copyright (c) 1980, 1991 The Regents of the University of California. 1259243Sobrien * All rights reserved. 1359243Sobrien * 1459243Sobrien * Redistribution and use in source and binary forms, with or without 1559243Sobrien * modification, are permitted provided that the following conditions 1659243Sobrien * are met: 1759243Sobrien * 1. Redistributions of source code must retain the above copyright 1859243Sobrien * notice, this list of conditions and the following disclaimer. 1959243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 2059243Sobrien * notice, this list of conditions and the following disclaimer in the 2159243Sobrien * documentation and/or other materials provided with the distribution. 22100616Smp * 3. Neither the name of the University nor the names of its contributors 2359243Sobrien * may be used to endorse or promote products derived from this software 2459243Sobrien * without specific prior written permission. 2559243Sobrien * 2659243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2759243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2859243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2959243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3059243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3159243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3259243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3359243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3459243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3559243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3659243Sobrien * SUCH DAMAGE. 3759243Sobrien */ 3859243Sobrien#ifndef _h_config_f 3959243Sobrien#define _h_config_f 4059243Sobrien 4159243Sobrien/* 4259243Sobrien * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars 4359243Sobrien * This fixes up quoting problems and eases implementation 4459243Sobrien * of nls... 4559243Sobrien * 4659243Sobrien */ 4759243Sobrien#define SHORT_STRINGS 4859243Sobrien 4959243Sobrien/* 5059243Sobrien * NLS: Use Native Language System 5159243Sobrien * Routines like setlocale() are needed 5259243Sobrien * if you don't have <locale.h>, you don't want 5359243Sobrien * to define this. 5459243Sobrien */ 5559243Sobrien#define NLS 5659243Sobrien 5759243Sobrien/* 5859243Sobrien * NLS_CATALOGS:Use Native Language System catalogs for 5959243Sobrien * international messages. 6059243Sobrien * Routines like catopen() are needed 6159243Sobrien * if you don't have <nl_types.h>, you don't want 6259243Sobrien * to define this. 6359243Sobrien */ 6459243Sobrien#undef NLS_CATALOGS 6559243Sobrien 6659243Sobrien/* 6759243Sobrien * LOGINFIRST Source ~/.login before ~/.cshrc 6859243Sobrien */ 6959243Sobrien#undef LOGINFIRST 7059243Sobrien 7159243Sobrien/* 7259243Sobrien * VIDEFAULT Make the VI mode editor the default 7359243Sobrien */ 7459243Sobrien#undef VIDEFAULT 7559243Sobrien 7659243Sobrien/* 7759243Sobrien * KAI use "bye" command and rename "log" to "watchlog" 7859243Sobrien */ 7959243Sobrien#undef KAI 8059243Sobrien 8159243Sobrien/* 8259243Sobrien * TESLA drops DTR on logout. Historical note: 8359243Sobrien * tesla.ee.cornell.edu was a vax11/780 with a develcon 8459243Sobrien * switch that sometimes would not hang up. 8559243Sobrien */ 8659243Sobrien#undef TESLA 8759243Sobrien 8859243Sobrien/* 8959243Sobrien * DOTLAST put "." last in the default path, for security reasons 9059243Sobrien */ 9159243Sobrien#define DOTLAST 9259243Sobrien 9359243Sobrien/* 9459243Sobrien * NODOT Don't put "." in the default path, for security reasons 9559243Sobrien */ 9659243Sobrien#undef NODOT 9759243Sobrien 9859243Sobrien/* 9959243Sobrien * AUTOLOGOUT tries to determine if it should set autologout depending 10059243Sobrien * on the name of the tty, and environment. 10159243Sobrien * Does not make sense in the modern window systems! 10259243Sobrien */ 10359243Sobrien#define AUTOLOGOUT 10459243Sobrien 10559243Sobrien/* 10659243Sobrien * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 10759243Sobrien * Define to get the same type of messages. 10859243Sobrien */ 10959243Sobrien#define SUSPENDED 11059243Sobrien 11159243Sobrien/* 11259243Sobrien * KANJI Ignore meta-next, and the ISO character set. Should 11359243Sobrien * be used with SHORT_STRINGS 11459243Sobrien * 11559243Sobrien */ 116131962Smp#define KANJI 11759243Sobrien 11859243Sobrien/* 11959243Sobrien * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 12059243Sobrien * only output, when "dspmbyte" is set. Should be used with 12159243Sobrien * KANJI 12259243Sobrien */ 123131962Smp#define DSPMBYTE 12459243Sobrien 12559243Sobrien/* 12659243Sobrien * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 12759243Sobrien * variable "mbytemap". 12859243Sobrien * (use for multi-byte table check) 12959243Sobrien */ 13059243Sobrien#undef MBYTEDEBUG 13159243Sobrien 13259243Sobrien/* 13359243Sobrien * NEWGRP Provide a newgrp builtin. 13459243Sobrien */ 13559243Sobrien#undef NEWGRP 13659243Sobrien 13759243Sobrien/* 13859243Sobrien * SYSMALLOC Use the system provided version of malloc and friends. 13959243Sobrien * This can be much slower and no memory statistics will be 14059243Sobrien * provided. 14159243Sobrien */ 14269408Sache#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) 14359243Sobrien# define SYSMALLOC 14459243Sobrien#else 14559243Sobrien# undef SYSMALLOC 14659243Sobrien#endif 14759243Sobrien 14859243Sobrien/* 14959243Sobrien * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined. 15059243Sobrien * POSIX says to use stat, but stat(2) is less accurate 15159243Sobrien * than access(2) for determining file access. 15259243Sobrien */ 15359243Sobrien#undef USE_ACCESS 15459243Sobrien 15559243Sobrien/* 15659243Sobrien * REMOTEHOST Try to determine the remote host that we logged in from 15759243Sobrien * using first getpeername, and then the utmp file. If 15859243Sobrien * successful, set $REMOTEHOST to the name or address of the 15959243Sobrien * host 16059243Sobrien */ 16159243Sobrien#define REMOTEHOST 16259243Sobrien 16359243Sobrien/* 16459243Sobrien * COLOR_LS_F Do you want to use builtin color ls-F ? 16559243Sobrien * 16659243Sobrien */ 16759243Sobrien#define COLOR_LS_F 16859243Sobrien 16959243Sobrien/* 17059243Sobrien * COLORCAT Do you want to colorful message ? 17159243Sobrien * 17259243Sobrien */ 17359243Sobrien#undef COLORCAT 17459243Sobrien 17559243Sobrien/* 176100616Smp * FILEC support for old style file completion 177100616Smp */ 178100616Smp#define FILEC 179100616Smp 180100616Smp/* 18159243Sobrien * RCSID This defines if we want rcs strings in the binary or not 18259243Sobrien * 18359243Sobrien */ 18459243Sobrien#if !defined(lint) && !defined(SABER) && !defined(__CLCC__) 18559243Sobrien# ifndef __GNUC__ 18659243Sobrien# define RCSID(id) static char *rcsid = (id); 18759243Sobrien# else 18859243Sobrien# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 18959243Sobrien# endif /* !__GNUC__ */ 19059243Sobrien#else 19159243Sobrien# define RCSID(id) /* Nothing */ 19259243Sobrien#endif /* !lint && !SABER */ 19359243Sobrien 19459243Sobrien#endif /* _h_config_f */ 195