config.h revision 59394
159355Sobrien/* config.h.  Generated automatically by configure.  */
259355Sobrien/*
359355Sobrien * config.h -- configure various defines for tcsh
459355Sobrien *
559355Sobrien * All source files should #include this FIRST.
659355Sobrien *
759355Sobrien * Edit this to match your system type.
859355Sobrien */
959355Sobrien
1059355Sobrien/* $FreeBSD: head/bin/csh/config.h 59394 2000-04-19 15:15:44Z obrien $ */
1159355Sobrien
1259355Sobrien#ifndef _h_config
1359355Sobrien#define _h_config
1459355Sobrien/****************** System dependant compilation flags ****************/
1559355Sobrien/*
1659355Sobrien * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
1759355Sobrien */
1859355Sobrien#define POSIX
1959355Sobrien
2059355Sobrien/*
2159355Sobrien * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
2259355Sobrien *		job control facilities.
2359355Sobrien */
2459355Sobrien#define POSIXJOBS
2559355Sobrien
2659355Sobrien/*
2759355Sobrien * POSIXSIGS	Use the POSIX signal facilities to emulate BSD signals.
2859355Sobrien */
2959355Sobrien/* #undef POSIXSIGS */
3059355Sobrien
3159355Sobrien/*
3259355Sobrien * VFORK	This machine has a vfork().
3359355Sobrien *		It used to be that for job control to work, this define
3459355Sobrien *		was mandatory. This is not the case any more.
3559355Sobrien *		If you think you still need it, but you don't have vfork,
3659355Sobrien *		define this anyway and then do #define vfork fork.
3759355Sobrien *		I do this anyway on a Sun because of yellow pages brain damage,
3859355Sobrien *		[should not be needed under 4.1]
3959355Sobrien *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
4059355Sobrien *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
4159355Sobrien *		Note that some machines eg. rs6000 have a vfork, but not
4259355Sobrien *		with the berkeley semantics, so we cannot use it there either.
4359355Sobrien */
4459355Sobrien#define VFORK
4559355Sobrien
4659355Sobrien/*
4759355Sobrien * BSDJOBS	You have BSD-style job control (both process groups and
4859355Sobrien *		a tty that deals correctly
4959355Sobrien */
5059355Sobrien#define BSDJOBS
5159355Sobrien
5259355Sobrien/*
5359355Sobrien * BSDSIGS	You have 4.2-style signals, rather than USG style.
5459355Sobrien *		Note: POSIX systems should not define this unless they
5559355Sobrien *		have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
5659355Sobrien */
5759355Sobrien#define BSDSIGS
5859355Sobrien
5959355Sobrien/*
6059355Sobrien * BSDTIMES	You have BSD-style process time stuff (like rusage)
6159355Sobrien *		This may or may not be true.  For example, Apple Unix
6259355Sobrien *		(OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
6359355Sobrien */
6459355Sobrien#define BSDTIMES
6559355Sobrien
6659355Sobrien/*
6759355Sobrien * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
6859355Sobrien */
6959355Sobrien#define BSDLIMIT
7059355Sobrien
7159355Sobrien/*
7259355Sobrien * BSDNICE	Your system uses setpriority() instead of nice, to
7359355Sobrien *		change a processes scheduling priority
7459355Sobrien */
7559355Sobrien#define BSDNICE
7659355Sobrien
7759355Sobrien/*
7859355Sobrien * TERMIO	You have struct termio instead of struct sgttyb.
7959355Sobrien * 		This is usually the case for SYSV systems, where
8059355Sobrien *		BSD uses sgttyb. POSIX systems should define this
8159355Sobrien *		anyway, even though they use struct termios.
8259355Sobrien */
8359355Sobrien#define TERMIO
8459355Sobrien
8559355Sobrien/*
8659355Sobrien * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
8759355Sobrien *		NOTE: don't do this if you are on a Pyramid -- tcsh is
8859355Sobrien *		built in a BSD universe.
8959355Sobrien *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
9059355Sobrien *		you are running. Or set it to 0 if you are not SYSV based
9159355Sobrien */
9259355Sobrien#define SYSVREL	0
9359355Sobrien
9459355Sobrien/*
9559355Sobrien * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
9659355Sobrien *		to send command output to /dev/null
9759355Sobrien */
9859355Sobrien/* #undef YPBUGS */
9959355Sobrien
10059355Sobrien/*
10159355Sobrien * SIGVOID	Define this if your signal handlers return void.  On older
10259355Sobrien *		systems, signal returns int, but on newer ones, it returns void.
10359355Sobrien */
10459355Sobrien#define SIGVOID
10559355Sobrien
10659355Sobrien/*
10759355Sobrien * HAVEDUP2	Define this if your system supports dup2().
10859355Sobrien */
10959355Sobrien#define HAVEDUP2
11059355Sobrien
11159355Sobrien/*
11259355Sobrien * UTHOST	Does the utmp file have a host field?
11359355Sobrien */
11459355Sobrien#define UTHOST
11559355Sobrien
11659355Sobrien/*
11759355Sobrien * DIRENT	Your system has <dirent.h> instead of <sys/dir.h>
11859355Sobrien */
11959355Sobrien#define DIRENT
12059355Sobrien/****************** local defines *********************/
12159355Sobrien/****************** configurable hacks ****************/
12259355Sobrien
12359394Sobrien#include <stdlib.h>
12459394Sobrien
12559355Sobrien/* have been moved to config_f.h */
12659355Sobrien#include "config_f.h"
12759355Sobrien
12859355Sobrien#if defined(__FreeBSD__)
12959355Sobrien#define NLS_BUGS
13059394Sobrien/* we want to use the system malloc when we install as /bin/csh */
13159394Sobrien#define SYSMALLOC
13259355Sobrien#endif
13359355Sobrien
13459355Sobrien#if defined(__bsdi__)
13559355Sobrien/*
13659355Sobrien * _PATH_TCSHELL      if you've change the installation location (vix)
13759355Sobrien */
13859355Sobrien# ifdef _BSDI_VERSION >= 199701
13959355Sobrien#  define _PATH_TCSHELL "/bin/tcsh"
14059355Sobrien/* #  undef SYSMALLOC */
14159355Sobrien#  define SYSMALLOC
14259355Sobrien# else
14359355Sobrien#  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
14459355Sobrien# endif
14559355Sobrien
14659355Sobrien# undef NLS
14759355Sobrien# undef NLS_CATALOGS
14859355Sobrien
14959355Sobrien#elif defined(__APPLE__)
15059355Sobrien# define SYSMALLOC
15159355Sobrien
15259355Sobrien#else
15359355Sobrien# define NLS_CATALOGS
15459355Sobrien#endif
15559355Sobrien
15659355Sobrien#endif /* _h_config */
15759355Sobrien/* config.h.in.  Generated automatically from configure.in by autoheader.  */
158