1236769Sobrien/*	$NetBSD: config.h,v 1.21 2012/03/31 00:12:24 christos Exp $	*/
2236769Sobrien
3236769Sobrien/*
4236769Sobrien * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
5236769Sobrien *
6236769Sobrien * This code is derived from software contributed to Berkeley by
7236769Sobrien * Adam de Boor.
8236769Sobrien *
9236769Sobrien * Redistribution and use in source and binary forms, with or without
10236769Sobrien * modification, are permitted provided that the following conditions
11236769Sobrien * are met:
12236769Sobrien * 1. Redistributions of source code must retain the above copyright
13236769Sobrien *    notice, this list of conditions and the following disclaimer.
14236769Sobrien * 2. Redistributions in binary form must reproduce the above copyright
15236769Sobrien *    notice, this list of conditions and the following disclaimer in the
16236769Sobrien *    documentation and/or other materials provided with the distribution.
17236769Sobrien * 3. Neither the name of the University nor the names of its contributors
18236769Sobrien *    may be used to endorse or promote products derived from this software
19236769Sobrien *    without specific prior written permission.
20236769Sobrien *
21236769Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22236769Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23236769Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24236769Sobrien * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25236769Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26236769Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27236769Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28236769Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29236769Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30236769Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31236769Sobrien * SUCH DAMAGE.
32236769Sobrien *
33236769Sobrien *	from: @(#)config.h	8.1 (Berkeley) 6/6/93
34236769Sobrien */
35236769Sobrien
36236769Sobrien/*
37236769Sobrien * Copyright (c) 1988, 1989 by Adam de Boor
38236769Sobrien * Copyright (c) 1989 by Berkeley Softworks
39236769Sobrien * All rights reserved.
40236769Sobrien *
41236769Sobrien * This code is derived from software contributed to Berkeley by
42236769Sobrien * Adam de Boor.
43236769Sobrien *
44236769Sobrien * Redistribution and use in source and binary forms, with or without
45236769Sobrien * modification, are permitted provided that the following conditions
46236769Sobrien * are met:
47236769Sobrien * 1. Redistributions of source code must retain the above copyright
48236769Sobrien *    notice, this list of conditions and the following disclaimer.
49236769Sobrien * 2. Redistributions in binary form must reproduce the above copyright
50236769Sobrien *    notice, this list of conditions and the following disclaimer in the
51236769Sobrien *    documentation and/or other materials provided with the distribution.
52236769Sobrien * 3. All advertising materials mentioning features or use of this software
53236769Sobrien *    must display the following acknowledgement:
54236769Sobrien *	This product includes software developed by the University of
55236769Sobrien *	California, Berkeley and its contributors.
56236769Sobrien * 4. Neither the name of the University nor the names of its contributors
57236769Sobrien *    may be used to endorse or promote products derived from this software
58236769Sobrien *    without specific prior written permission.
59236769Sobrien *
60236769Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
61236769Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
62236769Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
63236769Sobrien * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
64236769Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
65236769Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
66236769Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
67236769Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
68236769Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
69236769Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
70236769Sobrien * SUCH DAMAGE.
71236769Sobrien *
72236769Sobrien *	from: @(#)config.h	8.1 (Berkeley) 6/6/93
73236769Sobrien */
74236769Sobrien
75236769Sobrien/*
76236769Sobrien * DEFMAXJOBS
77236769Sobrien * DEFMAXLOCAL
78236769Sobrien *	These control the default concurrency. On no occasion will more
79236769Sobrien *	than DEFMAXJOBS targets be created at once (locally or remotely)
80236769Sobrien *	DEFMAXLOCAL is the highest number of targets which will be
81236769Sobrien *	created on the local machine at once. Note that if you set this
82236769Sobrien *	to 0, nothing will ever happen...
83236769Sobrien */
84236769Sobrien#define DEFMAXJOBS	4
85236769Sobrien#define DEFMAXLOCAL	1
86236769Sobrien
87236769Sobrien/*
88236769Sobrien * INCLUDES
89236769Sobrien * LIBRARIES
90236769Sobrien *	These control the handling of the .INCLUDES and .LIBS variables.
91236769Sobrien *	If INCLUDES is defined, the .INCLUDES variable will be filled
92236769Sobrien *	from the search paths of those suffixes which are marked by
93236769Sobrien *	.INCLUDES dependency lines. Similarly for LIBRARIES and .LIBS
94236769Sobrien *	See suff.c for more details.
95236769Sobrien */
96236769Sobrien#define INCLUDES
97236769Sobrien#define LIBRARIES
98236769Sobrien
99236769Sobrien/*
100236769Sobrien * LIBSUFF
101236769Sobrien *	Is the suffix used to denote libraries and is used by the Suff module
102236769Sobrien *	to find the search path on which to seek any -l<xx> targets.
103236769Sobrien *
104236769Sobrien * RECHECK
105236769Sobrien *	If defined, Make_Update will check a target for its current
106236769Sobrien *	modification time after it has been re-made, setting it to the
107236769Sobrien *	starting time of the make only if the target still doesn't exist.
108236769Sobrien *	Unfortunately, under NFS the modification time often doesn't
109236769Sobrien *	get updated in time, so a target will appear to not have been
110236769Sobrien *	re-made, causing later targets to appear up-to-date. On systems
111236769Sobrien *	that don't have this problem, you should defined this. Under
112236769Sobrien *	NFS you probably should not, unless you aren't exporting jobs.
113236769Sobrien */
114236769Sobrien#define	LIBSUFF	".a"
115236769Sobrien#define	RECHECK
116236769Sobrien
117236769Sobrien/*
118236769Sobrien * POSIX
119236769Sobrien *	Adhere to the POSIX 1003.2 draft for the make(1) program.
120236769Sobrien *	- Use MAKEFLAGS instead of MAKE to pick arguments from the
121236769Sobrien *	  environment.
122236769Sobrien *	- Allow empty command lines if starting with tab.
123236769Sobrien */
124236769Sobrien#define POSIX
125236769Sobrien
126236769Sobrien/*
127236769Sobrien * SYSVINCLUDE
128236769Sobrien *	Recognize system V like include directives [include "filename"]
129236769Sobrien * SYSVVARSUB
130236769Sobrien *	Recognize system V like ${VAR:x=y} variable substitutions
131236769Sobrien */
132236769Sobrien#define SYSVINCLUDE
133236769Sobrien#define SYSVVARSUB
134236769Sobrien
135236769Sobrien/*
136236769Sobrien * GMAKEEXPORT
137236769Sobrien *	Recognize gmake like variable export directives [export <VAR>=<VALUE>]
138236769Sobrien */
139236769Sobrien#define GMAKEEXPORT
140236769Sobrien
141236769Sobrien/*
142236769Sobrien * SUNSHCMD
143236769Sobrien *	Recognize SunOS and Solaris:
144236769Sobrien *		VAR :sh= CMD	# Assign VAR to the command substitution of CMD
145236769Sobrien *		${VAR:sh}	# Return the command substitution of the value
146236769Sobrien *				# of ${VAR}
147236769Sobrien */
148236769Sobrien#define SUNSHCMD
149236769Sobrien
150236769Sobrien/*
151236769Sobrien * USE_IOVEC
152236769Sobrien *	We have writev(2)
153236769Sobrien */
154236769Sobrien#ifdef HAVE_SYS_UIO_H
155236769Sobrien# define USE_IOVEC
156236769Sobrien#endif
157236769Sobrien
158236769Sobrien#if defined(MAKE_NATIVE) && !defined(__ELF__)
159236769Sobrien# ifndef RANLIBMAG
160236769Sobrien#  define RANLIBMAG "__.SYMDEF"
161236769Sobrien# endif
162236769Sobrien#endif
163