1/*
2 * config.h -- configure various defines for tcsh
3 *
4 * All source files should #include this FIRST.
5 *
6 * Edit this to match your system type.
7 */
8
9#ifndef _h_config
10#define _h_config
11/****************** System dependant compilation flags ****************/
12/*
13 * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
14 */
15#define POSIX
16
17#if defined(__hpux) && !defined(hpux)
18# define hpux
19#endif /* __hpux && !hpux */
20
21#if __STDC__ && !defined(__GNUC__)
22# define _POSIX_SOURCE
23# ifndef _HPUX_SOURCE
24# define  _HPUX_SOURCE
25# endif /* !_HPUX_SOURCE */
26#endif
27
28/*
29 * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
30 *		job control facilities.
31 */
32#define POSIXJOBS
33
34/*
35 * VFORK	This machine has a vfork().
36 *		It used to be that for job control to work, this define
37 *		was mandatory. This is not the case any more.
38 *		If you think you still need it, but you don't have vfork,
39 *		define this anyway and then do #define vfork fork.
40 *		I do this anyway on a Sun because of yellow pages brain damage,
41 *		[should not be needed under 4.1]
42 *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
43 *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
44 *		Note that some machines eg. rs6000 have a vfork, but not
45 *		with the berkeley semantics, so we cannot use it there either.
46 */
47#undef VFORK
48
49/*
50 * BSDJOBS	You have BSD-style job control (both process groups and
51 *		a tty that deals correctly
52 */
53#define BSDJOBS
54
55/*
56 * BSDTIMES	You have BSD-style process time stuff (like rusage)
57 *		This may or may not be true.  For example, Apple Unix
58 *		(OREO) has BSDJOBS but not BSDTIMES.
59 */
60#undef BSDTIMES
61
62/*
63 * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
64 */
65#define BSDLIMIT
66
67/*
68 * TERMIO	You have struct termio instead of struct sgttyb.
69 * 		This is usually the case for SYSV systems, where
70 *		BSD uses sgttyb. POSIX systems should define this
71 *		anyway, even though they use struct termios.
72 */
73#define TERMIO
74
75/*
76 * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
77 *		NOTE: don't do this if you are on a Pyramid -- tcsh is
78 *		built in a BSD universe.
79 *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
80 *		you are running. Or set it to 0 if you are not SYSV based
81 */
82#define SYSVREL	3
83
84/*
85 * ECHO_STYLE	Optionally change the behavior of the builtin echo
86 *		BOTH_ECHO: Support both bsd options (-n) and sysv escapes (\nnn)
87 *		BSD_ECHO:  Support only -n
88 *		SYSV_ECHO: Support only sysv escapes (\nnn)
89 *		NONE_ECHO: Pure echo.
90 */
91#define ECHO_STYLE BOTH_ECHO	/* Both BSD and SYSV options */
92
93/****************** local defines *********************/
94#define NAMEI_BUG	/* Great! you broke that one too */
95
96#define HPUXVERSION 800	/* For HP-UX version 8.00 */
97
98#define _XOPEN_SOURCE_EXTENDED
99
100#endif /* _h_config */
101