xref: /freebsd/contrib/tcsh/config/bsd4.4 (revision 19d2e3de755b7c9ca2f5c90b5902fc8f214b2490)
13b6eaa7bSAndrey A. Chernov/*
23b6eaa7bSAndrey A. Chernov * config.h -- configure various defines for tcsh
33b6eaa7bSAndrey A. Chernov *
43b6eaa7bSAndrey A. Chernov * All source files should #include this FIRST.
53b6eaa7bSAndrey A. Chernov *
63b6eaa7bSAndrey A. Chernov * Edit this to match your system type.
73b6eaa7bSAndrey A. Chernov */
83b6eaa7bSAndrey A. Chernov
93b6eaa7bSAndrey A. Chernov#ifndef _h_config
103b6eaa7bSAndrey A. Chernov#define _h_config
113b6eaa7bSAndrey A. Chernov/****************** System dependant compilation flags ****************/
123b6eaa7bSAndrey A. Chernov/*
133b6eaa7bSAndrey A. Chernov * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
143b6eaa7bSAndrey A. Chernov */
153b6eaa7bSAndrey A. Chernov#define POSIX
163b6eaa7bSAndrey A. Chernov
173b6eaa7bSAndrey A. Chernov/*
183b6eaa7bSAndrey A. Chernov * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
193b6eaa7bSAndrey A. Chernov *		job control facilities.
203b6eaa7bSAndrey A. Chernov */
213b6eaa7bSAndrey A. Chernov#define POSIXJOBS
223b6eaa7bSAndrey A. Chernov
233b6eaa7bSAndrey A. Chernov/*
243b6eaa7bSAndrey A. Chernov * VFORK	This machine has a vfork().
253b6eaa7bSAndrey A. Chernov *		It used to be that for job control to work, this define
263b6eaa7bSAndrey A. Chernov *		was mandatory. This is not the case any more.
273b6eaa7bSAndrey A. Chernov *		If you think you still need it, but you don't have vfork,
283b6eaa7bSAndrey A. Chernov *		define this anyway and then do #define vfork fork.
293b6eaa7bSAndrey A. Chernov *		I do this anyway on a Sun because of yellow pages brain damage,
303b6eaa7bSAndrey A. Chernov *		[should not be needed under 4.1]
313b6eaa7bSAndrey A. Chernov *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
323b6eaa7bSAndrey A. Chernov *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
333b6eaa7bSAndrey A. Chernov *		Note that some machines eg. rs6000 have a vfork, but not
343b6eaa7bSAndrey A. Chernov *		with the berkeley semantics, so we cannot use it there either.
353b6eaa7bSAndrey A. Chernov */
363b6eaa7bSAndrey A. Chernov#define VFORK
373b6eaa7bSAndrey A. Chernov
383b6eaa7bSAndrey A. Chernov/*
393b6eaa7bSAndrey A. Chernov * BSDJOBS	You have BSD-style job control (both process groups and
403b6eaa7bSAndrey A. Chernov *		a tty that deals correctly
413b6eaa7bSAndrey A. Chernov */
423b6eaa7bSAndrey A. Chernov#define BSDJOBS
433b6eaa7bSAndrey A. Chernov
443b6eaa7bSAndrey A. Chernov/*
453b6eaa7bSAndrey A. Chernov * BSDTIMES	You have BSD-style process time stuff (like rusage)
463b6eaa7bSAndrey A. Chernov *		This may or may not be true.  For example, Apple Unix
4745e5710bSMark Peek *		(OREO) has BSDJOBS but not BSDTIMES.
483b6eaa7bSAndrey A. Chernov */
493b6eaa7bSAndrey A. Chernov#define BSDTIMES
503b6eaa7bSAndrey A. Chernov
513b6eaa7bSAndrey A. Chernov/*
523b6eaa7bSAndrey A. Chernov * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
533b6eaa7bSAndrey A. Chernov */
543b6eaa7bSAndrey A. Chernov#define BSDLIMIT
553b6eaa7bSAndrey A. Chernov
563b6eaa7bSAndrey A. Chernov/*
573b6eaa7bSAndrey A. Chernov * TERMIO	You have struct termio instead of struct sgttyb.
583b6eaa7bSAndrey A. Chernov * 		This is usually the case for SYSV systems, where
593b6eaa7bSAndrey A. Chernov *		BSD uses sgttyb. POSIX systems should define this
603b6eaa7bSAndrey A. Chernov *		anyway, even though they use struct termios.
613b6eaa7bSAndrey A. Chernov */
623b6eaa7bSAndrey A. Chernov#define TERMIO
633b6eaa7bSAndrey A. Chernov
643b6eaa7bSAndrey A. Chernov/*
653b6eaa7bSAndrey A. Chernov * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
663b6eaa7bSAndrey A. Chernov *		NOTE: don't do this if you are on a Pyramid -- tcsh is
673b6eaa7bSAndrey A. Chernov *		built in a BSD universe.
683b6eaa7bSAndrey A. Chernov *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
693b6eaa7bSAndrey A. Chernov *		you are running. Or set it to 0 if you are not SYSV based
703b6eaa7bSAndrey A. Chernov */
713b6eaa7bSAndrey A. Chernov#define SYSVREL	0
723b6eaa7bSAndrey A. Chernov
733b6eaa7bSAndrey A. Chernov/*
743b6eaa7bSAndrey A. Chernov * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
753b6eaa7bSAndrey A. Chernov *		to send command output to /dev/null
763b6eaa7bSAndrey A. Chernov */
773b6eaa7bSAndrey A. Chernov#undef YPBUGS
783b6eaa7bSAndrey A. Chernov
793b6eaa7bSAndrey A. Chernov/****************** local defines *********************/
803b6eaa7bSAndrey A. Chernov
813b6eaa7bSAndrey A. Chernov#if defined(__FreeBSD__)
823b6eaa7bSAndrey A. Chernov#define NLS_BUGS
836767bd61SMark Peek#define BSD_STYLE_COLORLS
843b6eaa7bSAndrey A. Chernov#endif
853b6eaa7bSAndrey A. Chernov
863b6eaa7bSAndrey A. Chernov#if defined(__bsdi__)
873b6eaa7bSAndrey A. Chernov/*
883b6eaa7bSAndrey A. Chernov * _PATH_TCSHELL      if you've change the installation location (vix)
893b6eaa7bSAndrey A. Chernov */
9029301572SMark Peek#include <sys/param.h>
913b6eaa7bSAndrey A. Chernov# ifdef _BSDI_VERSION >= 199701
923b6eaa7bSAndrey A. Chernov#  define _PATH_TCSHELL "/bin/tcsh"
933b6eaa7bSAndrey A. Chernov#  undef SYSMALLOC
943b6eaa7bSAndrey A. Chernov#  define SYSMALLOC
953b6eaa7bSAndrey A. Chernov# else
963b6eaa7bSAndrey A. Chernov#  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
973b6eaa7bSAndrey A. Chernov# endif
983b6eaa7bSAndrey A. Chernov
993b6eaa7bSAndrey A. Chernov#elif defined(__APPLE__)
1003b6eaa7bSAndrey A. Chernov# define SYSMALLOC
101*19d2e3deSDmitry Chagin# define BSD_STYLE_COLORLS
1023b6eaa7bSAndrey A. Chernov#endif
1033b6eaa7bSAndrey A. Chernov
1043b6eaa7bSAndrey A. Chernov#endif /* _h_config */
105