config_p.h revision 142677
11539Srgrimes/* config.h. Generated by configure. */ 21539Srgrimes/* 31539Srgrimes * config.h -- configure various defines for tcsh 41539Srgrimes * 51539Srgrimes * All source files should #include this FIRST. 61539Srgrimes * 71539Srgrimes * Edit this to match your system type. 81539Srgrimes */ 91539Srgrimes 101539Srgrimes/* $FreeBSD: head/bin/csh/config_p.h 142677 2005-02-27 18:18:32Z phantom $ */ 111539Srgrimes 121539Srgrimes#ifndef _h_config 131539Srgrimes#define _h_config 141539Srgrimes/****************** System dependant compilation flags ****************/ 151539Srgrimes/* 161539Srgrimes * POSIX This system supports IEEE Std 1003.1-1988 (POSIX). 171539Srgrimes */ 181539Srgrimes#define POSIX 191539Srgrimes 201539Srgrimes/* 211539Srgrimes * POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX) 221539Srgrimes * job control facilities. 231539Srgrimes */ 241539Srgrimes#define POSIXJOBS 251539Srgrimes 261539Srgrimes/* 271539Srgrimes * POSIXSIGS Use the POSIX signal facilities to emulate BSD signals. 281539Srgrimes */ 291539Srgrimes/* #undef POSIXSIGS */ 301539Srgrimes 311539Srgrimes/* 321539Srgrimes * VFORK This machine has a vfork(). 3323650Speter * It used to be that for job control to work, this define 3478169Sru * was mandatory. This is not the case any more. 351539Srgrimes * If you think you still need it, but you don't have vfork, 361539Srgrimes * define this anyway and then do #define vfork fork. 371539Srgrimes * I do this anyway on a Sun because of yellow pages brain damage, 381539Srgrimes * [should not be needed under 4.1] 391539Srgrimes * and on the iris4d cause SGI's fork is sufficiently "virtual" 401539Srgrimes * that vfork isn't necessary. (Besides, SGI's vfork is weird). 411539Srgrimes * Note that some machines eg. rs6000 have a vfork, but not 421539Srgrimes * with the berkeley semantics, so we cannot use it there either. 431539Srgrimes */ 441539Srgrimes#define VFORK 451539Srgrimes 461539Srgrimes/* 471539Srgrimes * BSDJOBS You have BSD-style job control (both process groups and 481539Srgrimes * a tty that deals correctly 4978169Sru */ 5078169Sru#define BSDJOBS 511539Srgrimes 521539Srgrimes/* 531539Srgrimes * BSDSIGS You have 4.2-style signals, rather than USG style. 541539Srgrimes * Note: POSIX systems should not define this unless they 551539Srgrimes * have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX). 561539Srgrimes */ 571539Srgrimes#define BSDSIGS 581539Srgrimes 5923650Speter/* 6023650Speter * BSDTIMES You have BSD-style process time stuff (like rusage) 611539Srgrimes * This may or may not be true. For example, Apple Unix 6223650Speter * (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES. 6323650Speter */ 641539Srgrimes#define BSDTIMES 651539Srgrimes 661539Srgrimes/* 671539Srgrimes * BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit) 681539Srgrimes */ 691539Srgrimes#define BSDLIMIT 701539Srgrimes 711539Srgrimes/* 721539Srgrimes * BSDNICE Your system uses setpriority() instead of nice, to 731539Srgrimes * change a processes scheduling priority 741539Srgrimes */ 751539Srgrimes#define BSDNICE 761539Srgrimes 771539Srgrimes/* 781539Srgrimes * TERMIO You have struct termio instead of struct sgttyb. 791539Srgrimes * This is usually the case for SYSV systems, where 801539Srgrimes * BSD uses sgttyb. POSIX systems should define this 811539Srgrimes * anyway, even though they use struct termios. 821539Srgrimes */ 831539Srgrimes#define TERMIO 841539Srgrimes 851539Srgrimes/* 861539Srgrimes * SYSVREL Your machine is SYSV based (HPUX, A/UX) 871539Srgrimes * NOTE: don't do this if you are on a Pyramid -- tcsh is 881539Srgrimes * built in a BSD universe. 891539Srgrimes * Set SYSVREL to 1, 2, 3, or 4, depending the version of System V 901539Srgrimes * you are running. Or set it to 0 if you are not SYSV based 911539Srgrimes */ 921539Srgrimes#define SYSVREL 0 931539Srgrimes 941539Srgrimes/* 951539Srgrimes * YPBUGS Work around Sun YP bugs that cause expansion of ~username 961539Srgrimes * to send command output to /dev/null 971539Srgrimes */ 981539Srgrimes/* #undef YPBUGS */ 991539Srgrimes 1001539Srgrimes/* 10123650Speter * SIGVOID Define this if your signal handlers return void. On older 1021539Srgrimes * systems, signal returns int, but on newer ones, it returns void. 1031539Srgrimes */ 1041539Srgrimes#define SIGVOID 1051539Srgrimes 10623650Speter/* 1071539Srgrimes * HAVEDUP2 Define this if your system supports dup2(). 1081539Srgrimes */ 1091539Srgrimes#define HAVEDUP2 1101539Srgrimes 1111539Srgrimes/* 1121539Srgrimes * UTHOST Does the utmp file have a host field? 1131539Srgrimes */ 1141539Srgrimes#define UTHOST 1151539Srgrimes 1161539Srgrimes/* 1171539Srgrimes * DIRENT Your system has <dirent.h> instead of <sys/dir.h> 1181539Srgrimes */ 1191539Srgrimes#define DIRENT 1201539Srgrimes/****************** local defines *********************/ 1211539Srgrimes/****************** configurable hacks ****************/ 1221539Srgrimes 1231539Srgrimes#include <stdlib.h> 1241539Srgrimes 1251539Srgrimes/* have been moved to config_f.h */ 1261539Srgrimes#include "config_f.h" 1271539Srgrimes 1281539Srgrimes#if defined(__FreeBSD__) 1291539Srgrimes#define NLS_BUGS 1301539Srgrimes/* we want to use the system malloc when we install as /bin/csh */ 131#define SYSMALLOC 132#define BSD_STYLE_COLORLS 133/* Use LC_MESSAGES locale category to open the message catalog */ 134#define MCLoadBySet NL_CAT_LOCALE 135#endif 136 137#if defined(__NetBSD__) 138#include <sys/param.h> 139#if __NetBSD_Version__ >= 106030000 /* NetBSD 1.6C */ 140#define HAVEUTMPX 141#endif 142#endif 143 144#if defined(__bsdi__) 145/* 146 * _PATH_TCSHELL if you've change the installation location (vix) 147 */ 148#include <sys/param.h> 149# ifdef _BSDI_VERSION >= 199701 150# define _PATH_TCSHELL "/bin/tcsh" 151/* # undef SYSMALLOC */ 152# define SYSMALLOC 153# else 154# define _PATH_TCSHELL "/usr/contrib/bin/tcsh" 155# endif 156 157/* # undef NLS */ 158/* # undef NLS_CATALOGS */ 159 160#elif defined(__APPLE__) 161# define SYSMALLOC 162 163#else 164# define NLS_CATALOGS 165#endif 166 167#endif /* _h_config */ 168/* config.h.in. Generated automatically from configure.in by autoheader. */ 169