config_p.h revision 83121
1222509Snp/* config.h. Generated automatically by configure. */ 2237263Snp/* 3222509Snp * config.h -- configure various defines for tcsh 4222509Snp * 5222509Snp * All source files should #include this FIRST. 6222509Snp * 7222509Snp * Edit this to match your system type. 8222509Snp */ 9222509Snp 10222509Snp/* $FreeBSD: head/bin/csh/config_p.h 83121 2001-09-05 22:56:58Z mp $ */ 11222509Snp 12222509Snp#ifndef _h_config 13222509Snp#define _h_config 14222509Snp/****************** System dependant compilation flags ****************/ 15222509Snp/* 16222509Snp * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). 17222509Snp */ 18222509Snp#define POSIX 19222509Snp 20222509Snp/* 21222509Snp * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) 22222509Snp * job control facilities. 23222509Snp */ 24222509Snp#define POSIXJOBS 25222509Snp 26222509Snp/* 27222509Snp * POSIXSIGS Use the POSIX signal facilities to emulate BSD signals. 28222509Snp */ 29222509Snp/* #undef POSIXSIGS */ 30237819Snp 31222509Snp/* 32222509Snp * VFORK This machine has a vfork(). 33222509Snp * It used to be that for job control to work, this define 34222509Snp * was mandatory. This is not the case any more. 35222509Snp * If you think you still need it, but you don't have vfork, 36222509Snp * define this anyway and then do #define vfork fork. 37222509Snp * I do this anyway on a Sun because of yellow pages brain damage, 38222509Snp * [should not be needed under 4.1] 39222509Snp * and on the iris4d cause SGI's fork is sufficiently "virtual" 40222509Snp * that vfork isn't necessary. (Besides, SGI's vfork is weird). 41228561Snp * Note that some machines eg. rs6000 have a vfork, but not 42222509Snp * with the berkeley semantics, so we cannot use it there either. 43222509Snp */ 44222509Snp#define VFORK 45222509Snp 46222509Snp/* 47222509Snp * BSDJOBS You have BSD-style job control (both process groups and 48228561Snp * a tty that deals correctly 49228561Snp */ 50228561Snp#define BSDJOBS 51228561Snp 52228561Snp/* 53228561Snp * BSDSIGS You have 4.2-style signals, rather than USG style. 54228561Snp * Note: POSIX systems should not define this unless they 55228561Snp * have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX). 56228561Snp */ 57228561Snp#define BSDSIGS 58228561Snp 59228561Snp/* 60228561Snp * BSDTIMES You have BSD-style process time stuff (like rusage) 61228561Snp * This may or may not be true. For example, Apple Unix 62228561Snp * (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES. 63228561Snp */ 64228561Snp#define BSDTIMES 65228561Snp 66222509Snp/* 67228561Snp * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) 68222509Snp */ 69237263Snp#define BSDLIMIT 70237263Snp 71228561Snp/* 72228561Snp * BSDNICE Your system uses setpriority() instead of nice, to 73228561Snp * change a processes scheduling priority 74228561Snp */ 75228561Snp#define BSDNICE 76228561Snp 77228561Snp/* 78228561Snp * TERMIO You have struct termio instead of struct sgttyb. 79228561Snp * This is usually the case for SYSV systems, where 80245434Snp * BSD uses sgttyb. POSIX systems should define this 81228561Snp * anyway, even though they use struct termios. 82228561Snp */ 83228561Snp#define TERMIO 84237263Snp 85237263Snp/* 86228561Snp * SYSVREL Your machine is SYSV based (HPUX, A/UX) 87228561Snp * NOTE: don't do this if you are on a Pyramid -- tcsh is 88228561Snp * built in a BSD universe. 89228561Snp * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V 90228561Snp * you are running. Or set it to 0 if you are not SYSV based 91228561Snp */ 92228561Snp#define SYSVREL 0 93228561Snp 94228561Snp/* 95228561Snp * YPBUGS Work around Sun YP bugs that cause expansion of ~username 96228561Snp * to send command output to /dev/null 97228561Snp */ 98228561Snp/* #undef YPBUGS */ 99228561Snp 100228561Snp/* 101228561Snp * SIGVOID Define this if your signal handlers return void. On older 102228561Snp * systems, signal returns int, but on newer ones, it returns void. 103228561Snp */ 104228561Snp#define SIGVOID 105228561Snp 106228561Snp/* 107228561Snp * HAVEDUP2 Define this if your system supports dup2(). 108228561Snp */ 109228561Snp#define HAVEDUP2 110228561Snp 111228561Snp/* 112237263Snp * UTHOST Does the utmp file have a host field? 113237263Snp */ 114228561Snp#define UTHOST 115237263Snp 116228561Snp/* 117245434Snp * DIRENT Your system has <dirent.h> instead of <sys/dir.h> 118228561Snp */ 119228561Snp#define DIRENT 120228561Snp/****************** local defines *********************/ 121237263Snp/****************** configurable hacks ****************/ 122237263Snp 123228561Snp#include <stdlib.h> 124237263Snp 125228561Snp/* have been moved to config_f.h */ 126228561Snp#include "config_f.h" 127245434Snp 128228561Snp#if defined(__FreeBSD__) 129228561Snp#define NLS_BUGS 130245434Snp/* we want to use the system malloc when we install as /bin/csh */ 131228561Snp#define SYSMALLOC 132228561Snp#define BSD_STYLE_COLORLS 133228561Snp#endif 134237263Snp 135228561Snp#if defined(__bsdi__) 136228561Snp/* 137228561Snp * _PATH_TCSHELL if you've change the installation location (vix) 138228561Snp */ 139228561Snp# if _BSDI_VERSION >= 199701 140228561Snp# define _PATH_TCSHELL "/bin/tcsh" 141228561Snp/* # undef SYSMALLOC */ 142228561Snp# define SYSMALLOC 143228561Snp# else 144228561Snp# define _PATH_TCSHELL "/usr/contrib/bin/tcsh" 145228561Snp# endif 146228561Snp 147228561Snp# undef NLS 148228561Snp# undef NLS_CATALOGS 149228561Snp 150228561Snp#elif defined(__APPLE__) 151228561Snp# define SYSMALLOC 152244551Snp 153237263Snp#else 154228561Snp# define NLS_CATALOGS 155228561Snp#endif 156228561Snp 157228561Snp#define KANJI 158228561Snp#define DSPMBYTE 159228561Snp 160244551Snp#endif /* _h_config */ 161228561Snp/* config.h.in. Generated automatically from configure.in by autoheader. */ 162228561Snp