summaryrefslogtreecommitdiff
path: root/config/v10config.h
blob: 5c6ddb15b2194cbc2e34ffa3fc55a7bf9234719b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/*
 * config.h -- configuration definitions for gawk.
 *
 * Vax Running 10th Edition Unix
 */

/* 
 * Copyright (C) 1991, the Free Software Foundation, Inc.
 * 
 * This file is part of GAWK, the GNU implementation of the
 * AWK Progamming Language.
 * 
 * GAWK is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 1, or (at your option)
 * any later version.
 * 
 * GAWK is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with GAWK; see the file COPYING.  If not, write to
 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
 * This file isolates configuration dependencies for gnu awk.
 * You should know something about your system, perhaps by having
 * a manual handy, when you edit this file.  You should copy config.h-dist
 * to config.h, and edit config.h.  Do not modify config.h-dist, so that
 * it will be easy to apply any patches that may be distributed.
 *
 * The general idea is that systems conforming to the various standards
 * should need to do the least amount of changing.  Definining the various
 * items in ths file usually means that your system is missing that
 * particular feature.
 *
 * The order of preference in standard conformance is ANSI C, POSIX,
 * and the SVID.
 *
 * If you have no clue as to what's going on with your system, try
 * compiling gawk without editing this file and see what shows up
 * missing in the link stage.  From there, you can probably figure out
 * which defines to turn on.
 */

/**************************/
/* Miscellanious features */
/**************************/

/*
 * BLKSIZE_MISSING
 *
 * Check your /usr/include/sys/stat.h file.  If the stat structure
 * does not have a member named st_blksize, define this.  (This will
 * most likely be the case on most System V systems prior to V.4.)
 */
#define BLKSIZE_MISSING	1

/*
 * SIGTYPE
 *
 * The return type of the routines passed to the signal function.
 * Modern systems use `void', older systems use `int'.
 * If left undefined, it will default to void.
 */
#define SIGTYPE	SIG_TYP		/* defined in <signal.h> */

/*
 * SIZE_T_MISSING
 *
 * If your system has no typedef for size_t, define this to get a default
 */
/* #define	SIZE_T_MISSING	1 */

/*
 * CHAR_UNSIGNED
 *
 * If your machine uses unsigned characters (IBM RT and RS/6000 and others)
 * then define this for use in regex.c
 */
/* #define CHAR_UNSIGNED	1 */

/*
 * HAVE_UNDERSCORE_SETJMP
 *
 * Check in your /usr/include/setjmp.h file.  If there are routines
 * there named _setjmp and _longjmp, then you should define this.
 * Typically only systems derived from Berkeley Unix have this.
 */
/* #define HAVE_UNDERSCORE_SETJMP	1 */

/***********************************************/
/* Missing library subroutines or system calls */
/***********************************************/

/*
 * GETOPT_MISSING
 *
 * Define this if your library does not have the getopt(3) library
 * routine for parsing command line arguments.
 */
/* #define GETOPT_MISSING	1 */

/*
 * MEMCMP_MISSING
 * MEMCPY_MISSING
 * MEMSET_MISSING
 *
 * These three routines are for manipulating blocks of memory. Most
 * likely they will either all three be present or all three be missing,
 * so they're grouped together.
 */
/* #define MEMCMP_MISSING	1 */
/* #define MEMCPY_MISSING	1 */
/* #define MEMSET_MISSING	1 */

/*
 * RANDOM_MISSING
 *
 * Your system does not have the random(3) suite of random number
 * generating routines.  These are different than the old rand(3)
 * routines!
 */
#define RANDOM_MISSING	1

/*
 * STRCASE_MISSING
 *
 * Your system does not have the strcasemp() and strncasecmp()
 * routines that originated in Berkeley Unix.
 */
#define STRCASE_MISSING	1

/*
 * STRCHR_MISSING
 *
 * Your system does not have the strchr() and strrchr() functions.
 */
/* #define STRCHR_MISSING	1 */

/*
 * STRERROR_MISSING
 *
 * Your system lacks the ANSI C strerror() routine for returning the
 * strings associated with errno values.
 */
#define STRERROR_MISSING	1

/*
 * STRFTIME_MISSING
 *
 * Your system lacks the ANSI C strftime() routine for formatting
 * broken down time values.
 */
#define STRFTIME_MISSING	1

/*
 * STRTOD_MISSING
 *
 * Your system does not have the strtod() routine for converting
 * strings to double precision floating point values.
 */
/* #define STRTOD_MISSING	1 */

/*
 * STRTOL_MISSING
 *
 * Your system does not have the strtol() routine for converting
 * strings to long integers.
 */
/* #define STRTOL_MISSING	1 */

/*
 * TZSET_MISSING
 *
 * If you have a 4.2 BSD vintage system, then the strftime() routine
 * supplied in the missing directory won't be enough, because it relies on the
 * tzset() routine from System V / Posix.  Fortunately, there is an
 * emulation for tzset() too that should do the trick.  If you don't
 * have tzset(), define this.
 */
#define TZSET_MISSING	1

/*
 * STDC_HEADERS
 *
 * If your system does have ANSI compliant header files that
 * provide prototypes for library routines, then define this.
 */
/* #define STDC_HEADERS	1 */

/*
 * NO_TOKEN_PASTING
 *
 * If your compiler define's __STDC__ but does not support token
 * pasting (tok##tok), then define this.
 */
/* #define NO_TOKEN_PASTING	1 */

/*****************************************************************/
/* Stuff related to the Standard I/O Library.			 */
/*****************************************************************/
/* Much of this is (still, unfortunately) black magic in nature. */
/* You may have to use some or all of these together to get gawk */
/* to work correctly.						 */
/*****************************************************************/

/*
 * NON_STD_SPRINTF
 *
 * Look in your /usr/include/stdio.h file.  If the return type of the
 * sprintf() function is NOT `int', define this.
 */
/* #define NON_STD_SPRINTF	1 */

/*
 * VPRINTF_MISSING
 *
 * Define this if your system lacks vprintf() and the other routines
 * that go with it.
 */
/* #define VPRINTF_MISSING	1 */

/*
 * BSDSTDIO
 *
 * Define this if your standard i/o library is internally compatible
 * with the one shipped with Berkeley Unix systems (4.n, n <= 3-reno).
 * If you've defined VPRINTF_MISSING, you probably will need this too.
 */
/* #define BSDSTDIO		1 */

/*
 * DOPRNT_MISSING
 *
 * Define this if your standard i/o library does not have the _doprnt()
 * routine.  This is used in an attempt to simulate the vfprintf()
 * routine.
 */
/* #define DOPRNT_MISSING	1 */

/*
 * Casts from size_t to int and back.  These will become unnecessary
 * at some point in the future, but for now are required where the
 * two types are a different representation.
 */
/* #define SZTC */
/* #define INTC */

/*
 * SYSTEM_MISSING
 *
 * Define this if your library does not provide a system function
 * or you are not entirely happy with it and would rather use
 * a provided replacement (atari only).
 */
/* #define SYSTEM_MISSING   1 */


/*******************************/
/* Gawk configuration options. */
/*******************************/

/*
 * DEFPATH
 *
 * The default search path for the -f option of gawk.  It is used
 * if the AWKPATH environment variable is undefined.  The default
 * definition is provided here.  Most likely you should not change
 * this.
 */

/* #define DEFPATH	".:/usr/lib/awk:/usr/local/lib/awk" */
/* #define ENVSEP	':' */