config_p.h revision 202190
1263115Semaste/* $FreeBSD: head/bin/csh/config_p.h 202190 2010-01-13 17:49:35Z ed $ */ 2263115Semaste/* 3263115Semaste * config.h -- configure various defines for tcsh 4263115Semaste * 5263115Semaste * All source files should #include this FIRST. 6263115Semaste * 7263115Semaste * Edit this to match your system type. 8263115Semaste */ 9263115Semaste 10263115Semaste#ifndef _h_config 11263115Semaste#define _h_config 12263115Semaste/****************** System dependant compilation flags ****************/ 13263115Semaste/* 14263115Semaste * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). 15263115Semaste */ 16263115Semaste#define POSIX 17263115Semaste 18263115Semaste/* 19263115Semaste * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) 20263115Semaste * job control facilities. 21263115Semaste */ 22263115Semaste#define POSIXJOBS 23263115Semaste 24263115Semaste/* 25263115Semaste * VFORK This machine has a vfork(). 26263115Semaste * It used to be that for job control to work, this define 27263115Semaste * was mandatory. This is not the case any more. 28263115Semaste * If you think you still need it, but you don't have vfork, 29263115Semaste * define this anyway and then do #define vfork fork. 30263115Semaste * I do this anyway on a Sun because of yellow pages brain damage, 31263115Semaste * [should not be needed under 4.1] 32263115Semaste * and on the iris4d cause SGI's fork is sufficiently "virtual" 33263115Semaste * that vfork isn't necessary. (Besides, SGI's vfork is weird). 34263115Semaste * Note that some machines eg. rs6000 have a vfork, but not 35263115Semaste * with the berkeley semantics, so we cannot use it there either. 36263115Semaste */ 37263115Semaste#define VFORK 38263115Semaste 39263115Semaste/* 40263115Semaste * BSDJOBS You have BSD-style job control (both process groups and 41263115Semaste * a tty that deals correctly 42294715Ssmh */ 43263115Semaste#define BSDJOBS 44263115Semaste 45263115Semaste/* 46263115Semaste * BSDTIMES You have BSD-style process time stuff (like rusage) 47263115Semaste * This may or may not be true. For example, Apple Unix 48263115Semaste * (OREO) has BSDJOBS but not BSDTIMES. 49263115Semaste */ 50263115Semaste#define BSDTIMES 51263115Semaste 52263115Semaste/* 53263115Semaste * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) 54263115Semaste */ 55263115Semaste#define BSDLIMIT 56263115Semaste 57263115Semaste/* 58263115Semaste * TERMIO You have struct termio instead of struct sgttyb. 59263115Semaste * This is usually the case for SYSV systems, where 60263115Semaste * BSD uses sgttyb. POSIX systems should define this 61263115Semaste * anyway, even though they use struct termios. 62263115Semaste */ 63263115Semaste#define TERMIO 64263115Semaste 65263115Semaste/* 66263115Semaste * SYSVREL Your machine is SYSV based (HPUX, A/UX) 67263115Semaste * NOTE: don't do this if you are on a Pyramid -- tcsh is 68263115Semaste * built in a BSD universe. 69263115Semaste * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V 70263115Semaste * you are running. Or set it to 0 if you are not SYSV based 71263115Semaste */ 72263115Semaste#define SYSVREL 0 73263115Semaste 74263115Semaste/* 75263115Semaste * YPBUGS Work around Sun YP bugs that cause expansion of ~username 76263115Semaste * to send command output to /dev/null 77263115Semaste */ 78263115Semaste#undef YPBUGS 79263115Semaste 80263115Semaste/****************** local defines *********************/ 81263115Semaste 82263115Semaste#if defined(__FreeBSD__) 83263115Semaste#define NLS_BUGS 84263115Semaste#define BSD_STYLE_COLORLS 85263115Semaste/* Use LC_MESSAGES locale category to open the message catalog */ 86263115Semaste#define MCLoadBySet NL_CAT_LOCALE 87263115Semaste#define BUFSIZE 8192 88263115Semaste#define UTMPX_FILE "/var/run/utx.active" 89263115Semaste#endif 90263115Semaste 91263115Semaste#if defined(__bsdi__) 92263115Semaste/* 93263115Semaste * _PATH_TCSHELL if you've change the installation location (vix) 94263115Semaste */ 95263115Semaste#include <sys/param.h> 96263115Semaste# ifdef _BSDI_VERSION >= 199701 97263115Semaste# define _PATH_TCSHELL "/bin/tcsh" 98263115Semaste# undef SYSMALLOC 99263115Semaste# define SYSMALLOC 100263115Semaste# else 101263115Semaste# define _PATH_TCSHELL "/usr/contrib/bin/tcsh" 102263115Semaste# endif 103263115Semaste 104263115Semaste# undef NLS 105263115Semaste# undef NLS_CATALOGS 106263115Semaste 107263115Semaste#elif defined(__APPLE__) 108263115Semaste# define SYSMALLOC 109263115Semaste 110263115Semaste#else 111263115Semaste# define NLS_CATALOGS 112263115Semaste#endif 113263115Semaste 114263115Semaste#endif /* _h_config */ 115263115Semaste