Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
2
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
3
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
4
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
5
#ifndef __dj_include_sys_config_h_
6
#define __dj_include_sys_config_h_
7
 
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
 
12
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
13
 
14
#ifndef __STRICT_ANSI__
15
 
16
#ifndef _POSIX_SOURCE
17
 
18
/* config.h for DJGPP.
19
 
20
   This is usually generated automatically from config.h.in by the
21
   configure script.  However, it is very hard to run that script under
22
   MS-DOS, because of its extensive use of Unix shell features.  This
23
   header file is provided so you can skip the autoconfigure step
24
   altogether and go directly to the compilation step (after copying
25
   Makefile.in to Makefile and setting the defaults there).
26
 
27
   There are several parts in this header file, which closely follow the
28
   GNU Autoconf procedures.
29
 
30
   The first part checks for things which depend on the specific programs
31
   from your programming environment which you use to compile a package.
32
 
33
   The second part mentions all the header files in the include hierarchy,
34
   even those which every C installation must have.  The only headers
35
   files which are omitted are those which are specific to the PC
36
   architecture or to DJGPP, because no GNU package should ever look for
37
   those.  (Some header files which DJGPP includes only for compatibility,
38
   and which could cause a conflict with the mainstream header file, are
39
   also excluded.)
40
 
41
   The third part mentions all the library functions which aren't included
42
   in every C library.  Obviously, it isn't practical to mention every
43
   library function here, so this part has somewhat ad-hoc nature in that
44
   the macros which should go there were assembled by actually porting
45
   some GNU packages.
46
 
47
   The fourth part defines macros which are related to the header files,
48
   like definitions of some structures and specific member fields in some
49
   structures.
50
 
51
   The fifth part deals with some typedefs which aren't standardized
52
   enough between different systems, or might be missing from your header
53
   files.
54
 
55
   The sixth part defines some macros necessary to deal with differences
56
   between compiler and architectural characteristics of various systems.
57
 
58
   In the seventh part, some system services which might be required by
59
   some packages, are mentioned.
60
 
61
   The last part includes all kinds if miscellaneous macros required by
62
   some GNU packages to be successfully compiled under DJGPP.
63
 
64
              Prepared by Eli Zaretskii 
65
              with help from Morten Welinder 
66
           and using some information from GNU Autoconf package.
67
*/
68
 
69
/* ---------------------------------------------------------------------
70
                       Program-related stuff.
71
   --------------------------------------------------------------------- */
72
 
73
/* Define if `yytext' is a `char *' instead of a `char []'.  This is
74
   true if you use Flex.  */
75
#undef  YYTEXT_POINTER
76
#define YYTEXT_POINTER  1
77
 
78
/* ---------------------------------------------------------------------
79
                               Header files.
80
   --------------------------------------------------------------------- */
81
 
82
/* Define if you have the ANSI C header files.  */
83
#undef  STDC_HEADERS
84
#define STDC_HEADERS    1
85
 
86
/* Define if you have the  header file.  */
87
#undef  HAVE_AR_H
88
#define HAVE_AR_H   1
89
 
90
/* Define if you have the  header file.  */
91
#undef  HAVE_ASSERT_H
92
#define HAVE_ASSERT_H   1
93
 
94
/* Define if you have the  header file.  */
95
#undef  HAVE_COFF_H
96
#define HAVE_COFF_H 1
97
 
98
/* Define if you have the  header file.  */
99
#undef  HAVE_CTYPE_H
100
#define HAVE_CTYPE_H    1
101
 
102
/* Define if you have the  header file.  */
103
#undef  DIRENT
104
#define DIRENT          1
105
 
106
#undef  HAVE_DIRENT_H
107
#define HAVE_DIRENT_H   1
108
 
109
/* Define if you have the  header file.  */
110
#undef  HAVE_ERRNO_H
111
#define HAVE_ERRNO_H    1
112
 
113
/* Define if you have the  header file.  */
114
#undef  HAVE_FCNTL_H
115
#define HAVE_FCNTL_H    1
116
 
117
/* Define if you have the  header file.  */
118
#undef  HAVE_FLOAT_H
119
#define HAVE_FLOAT_H    1
120
 
121
/* Define if you have the  header file.  */
122
#undef  HAVE_FNMATCH_H
123
#define HAVE_FNMATCH_H  1
124
 
125
/* Define if you have the  header file.  */
126
#undef  HAVE_FTW_H
127
#define HAVE_FTW_H  1
128
 
129
/* Define if you have the  header file.  */
130
#undef  HAVE_GLOB_H
131
#define HAVE_GLOB_H 1
132
 
133
/* Define if you have the  header file.  */
134
#undef  HAVE_GRP_H
135
#define HAVE_GRP_H  1
136
 
137
/* Define if you have the  header file.  */
138
#undef  HAVE_IO_H
139
#define HAVE_IO_H   1
140
 
141
/* Define if you have the  header file.  */
142
#undef  HAVE_LIMITS_H
143
#define HAVE_LIMITS_H   1
144
 
145
/* Define if you have the  header file.  */
146
#undef  HAVE_LOCALE_H
147
#define HAVE_LOCALE_H   1
148
 
149
/* Define if you have the  header file.  */
150
#undef  HAVE_MATH_H
151
#define HAVE_MATH_H     1
152
 
153
/* Define if you have the  header file.  */
154
#undef  HAVE_MNTENT_H
155
#define HAVE_MNTENT_H   1
156
 
157
/* Define if you have the  header file.  */
158
#undef  HAVE_PWD_H
159
#define HAVE_PWD_H      1
160
 
161
/* Define if you have the  header file.  */
162
#undef  HAVE_SEARCH_H
163
#define HAVE_SEARCH_H   1
164
 
165
/* Define if you have the  header file.  */
166
#undef  HAVE_SETJMP_H
167
#define HAVE_SETJMP_H   1
168
 
169
/* Define if you have the  header file.  */
170
#undef  HAVE_SIGNAL_H
171
#define HAVE_SIGNAL_H   1
172
 
173
#undef  HAVE_SYS_SIGLIST
174
#define HAVE_SYS_SIGLIST 1
175
 
176
/* Define if you have the  header file.  */
177
#undef  HAVE_STDARG_H
178
#define HAVE_STDARG_H   1
179
 
180
/* Define if you have the  header file.  */
181
#undef  HAVE_STDDEF_H
182
#define HAVE_STDDEF_H   1
183
 
184
/* Define if you have the  header file (is there ANY C
185
   installation that doesn't??).  */
186
#undef  HAVE_STDIO_H
187
#define HAVE_STDIO_H    1
188
 
189
/* Define if you have the  header file.  */
190
#undef  HAVE_STDLIB_H
191
#define HAVE_STDLIB_H   1
192
 
193
/* Define if you have the  header file.  */
194
#undef  HAVE_STRING_H
195
#define HAVE_STRING_H   1
196
 
197
/* Define if you have the  header file.  */
198
#undef  HAVE_TERMIOS_H  /* we have, but the functions aren't implemented */
199
/* #define HAVE_TERMIOS_H  1 */
200
 
201
/* Define if you have the  header file.  */
202
#undef  HAVE_TIME_H
203
#define HAVE_TIME_H     1
204
 
205
/* Define if you have the  header file.  */
206
#undef  HAVE_SYS_TIME_H
207
#define HAVE_SYS_TIME_H     1
208
 
209
/* Define this if your  and  can both be
210
   included with no conflicts.  */
211
#undef  TIME_WITH_SYS_TIME
212
#define TIME_WITH_SYS_TIME  1
213
 
214
/* Define if you have the  header file.  */
215
#undef  HAVE_UNISTD_H
216
#define HAVE_UNISTD_H   1
217
 
218
/* Define if you have the  header file.  */
219
#undef  HAVE_UTIME_H
220
#define HAVE_UTIME_H    1
221
 
222
/* Define if you have the values.h header file.  */
223
#undef  HAVE_VALUES_H
224
#define HAVE_VALUES_H 1
225
 
226
/* Define if you have the  header file.  */
227
#undef  HAVE_VARARGS_H
228
#define HAVE_VARARGS_H  1
229
 
230
/* Define if you have the  header file.  */
231
#undef  HAVE_NETINET_IN_H
232
#define HAVE_NETINET_IN_H   1
233
 
234
/* Define if you have the  header file.  */
235
#undef  HAVE_SYS_FILE_H
236
#define HAVE_SYS_FILE_H     1
237
 
238
/* Define if you have the  header file.  */
239
#undef  HAVE_SYS_IOCTL_H
240
#define HAVE_SYS_IOCTL_H 1
241
 
242
/* Define if you have the  header file.  */
243
#undef  HAVE_SYS_PARAM_H
244
#define HAVE_SYS_PARAM_H    1
245
 
246
/* Define if you have the  header file.  */
247
#undef  HAVE_SYS_RESOURCE_H
248
#define HAVE_SYS_RESOURCE_H 1
249
 
250
/* Define if you have the  header file.  */
251
#undef  HAVE_SYS_STAT_H
252
#define HAVE_SYS_STAT_H 1
253
 
254
/* Define if you have the  header file.  */
255
#undef  HAVE_SYS_TIME_H
256
#define HAVE_SYS_TIME_H 1
257
 
258
/* Define if you have the  header file.  */
259
#undef  HAVE_SYS_TIMEB_H
260
#define HAVE_SYS_TIMEB_H    1
261
 
262
/* Define if you have the  header file.  */
263
#undef  HAVE_SYS_TIMES_H
264
#define HAVE_SYS_TIMES_H    1
265
 
266
/* Define if you have the  header file.  */
267
#undef  HAVE_SYS_TYPES_H
268
#define HAVE_SYS_TYPES_H    1
269
 
270
/* Define if you have the  header file.  */
271
#undef  HAVE_SYS_UTSNAME_H
272
#define HAVE_SYS_UTSNAME_H  1
273
 
274
/* Define if you have the  header file.  */
275
#undef  HAVE_SYS_VFS_H
276
#define HAVE_SYS_VFS_H  1
277
 
278
/* Define if you have the  header file.  */
279
#undef  HAVE_SYS_WAIT_H
280
#define HAVE_SYS_WAIT_H 1
281
 
282
 
283
/* ---------------------------------------------------------------------
284
                   Library functions and related stuff.
285
   --------------------------------------------------------------------- */
286
 
287
/* Define if using alloca.c.  */
288
#undef  C_ALLOCA
289
 
290
/* Define if you have bcmp() and bcopy() library functions.  */
291
#undef  HAVE_BCMP
292
#define HAVE_BCMP   1
293
#undef  HAVE_BCOPY
294
#define HAVE_BCOPY  1
295
 
296
/* Define if you have closedir() function in your library.  */
297
#undef  HAVE_CLOSEDIR
298
#define HAVE_CLOSEDIR   1
299
 
300
/* Define if you have dup2() library function.  */
301
#undef  HAVE_DUP2
302
#define HAVE_DUP2       1
303
 
304
/* Define if you have the endgrent function.  */
305
#undef  HAVE_ENDGRENT
306
#define HAVE_ENDGRENT 1
307
 
308
/* Define if you have the endpwent function.  */
309
#undef  HAVE_ENDPWENT
310
#define HAVE_ENDPWENT 1
311
 
312
/* Define if you have fnmatch() function in your library.  */
313
#undef  HAVE_FNMATCH
314
#define HAVE_FNMATCH    1
315
 
316
/* Define if you have frexp() function in your library.  */
317
#undef  HAVE_FREXP
318
#define HAVE_FREXP  1
319
 
320
/* Define if you have ftime() function in your library.  */
321
#undef  HAVE_FTIME
322
#define HAVE_FTIME  1
323
 
324
/* Define if you have the the ftruncate() library function.  */
325
#undef  HAVE_FTRUNCATE
326
#define HAVE_FTRUNCATE  1
327
 
328
/* Define if you have ftw() function in your library.  */
329
#undef  HAVE_FTW
330
#define HAVE_FTW    1
331
 
332
/* Define if you have getcwd() function in your library.  */
333
#undef  HAVE_GETCWD
334
#define HAVE_GETCWD 1
335
 
336
/* Define if you have getdtablesize() function in your library.  */
337
#undef  HAVE_GETDTABLESIZE
338
#define HAVE_GETDTABLESIZE  1
339
 
340
/* Define if you have the getgroups function.  */
341
#undef  HAVE_GETGROUPS
342
#define HAVE_GETGROUPS	1
343
 
344
/* Define if you have gethostname() function in your library.  */
345
#undef  HAVE_GETHOSTNAME
346
#define HAVE_GETHOSTNAME  1
347
 
348
/* Define if you have getmntent() function in your library.  */
349
#undef  HAVE_GETMNTENT
350
#define HAVE_GETMNTENT      1
351
 
352
/* Define if you have getpagesize() function in your library.  */
353
#undef  HAVE_GETPAGESIZE
354
#define HAVE_GETPAGESIZE      1
355
 
356
/* Define this if your getpgrp() function takes no argument (the
357
   POSIX.1 version).  */
358
#undef  GETPGRP_VOID
359
#define GETPGRP_VOID        1
360
 
361
/* Define if your getmntent() function accepts one argument.  */
362
#undef  MOUNTED_GETMNTENT1
363
#define MOUNTED_GETMNTENT1  1
364
 
365
/* Define if you have gettimeofday() function in your library.  */
366
#undef  HAVE_GETTIMEOFDAY
367
#define HAVE_GETTIMEOFDAY   1
368
 
369
/* Define if you have the glob() function in your library.  */
370
#undef  HAVE_GLOB
371
#define HAVE_GLOB   1
372
 
373
/* Define if you have the isascii function.  */
374
#undef  HAVE_ISASCII
375
#define HAVE_ISASCII 1
376
 
377
/* Define if you have memchr() in your library.  */
378
#undef  HAVE_MEMCHR
379
#define HAVE_MEMCHR 1
380
 
381
/* Define if you have the memcpy function.  */
382
#undef  HAVE_MEMCPY
383
#define HAVE_MEMCPY 1
384
 
385
/* Define if you have mkdir() function in your library.  */
386
#undef  HAVE_MKDIR
387
#define HAVE_MKDIR  1
388
 
389
/* Define if you have the mkfifo function.  */
390
#undef  HAVE_MKFIFO
391
#define HAVE_MKFIFO 1
392
 
393
/* Define if you have mktime() function in your library.  */
394
#undef  HAVE_MKTIME
395
#define HAVE_MKTIME 1
396
 
397
/* Define if you have the pow function.  */
398
#undef  HAVE_POW
399
#define HAVE_POW 1
400
 
401
/* Define if you have the putenv function.  */
402
#undef  HAVE_PUTENV
403
#define HAVE_PUTENV 1
404
 
405
/* Define if you have random() function in your library.  */
406
#undef  HAVE_RANDOM
407
#define HAVE_RANDOM 1
408
 
409
/* Define if you have rename() function in your library.  */
410
#undef  HAVE_RENAME
411
#define HAVE_RENAME 1
412
 
413
/* Define if you have rmdir() function in your library.  */
414
#undef  HAVE_RMDIR
415
#define HAVE_RMDIR  1
416
 
417
/* Define if you have the setenv function.  */
418
#undef  HAVE_SETENV
419
#define HAVE_SETENV 1
420
 
421
/* Define if you have setlinebuf() function in your library.  */
422
#undef  HAVE_SETLINEBUF
423
#define HAVE_SETLINEBUF 1
424
 
425
/* Define if you have the setlocale function.  */
426
#undef  HAVE_SETLOCALE
427
#define HAVE_SETLOCALE 1
428
 
429
/* Define if you have sigaction() function in your library.  */
430
#undef  HAVE_SIGACTION
431
#define HAVE_SIGACTION  1
432
 
433
/* Define if your statfs() function accepts 2 arguments and
434
   struct statfs has f_bsize field.  */
435
#undef  STAT_STATFS2_BSIZE
436
#define STAT_STATFS2_BSIZE  1
437
 
438
/* Define if you have the stpcpy function.  */
439
#undef  HAVE_STPCPY
440
#define HAVE_STPCPY 1
441
 
442
/* Define if you have strcasecmp() function in your library.  */
443
#undef	HAVE_STRCASECMP
444
#define HAVE_STRCASECMP	1
445
 
446
/* Define if you have strchr() function in your library.  */
447
#undef	HAVE_STRCHR
448
#define HAVE_STRCHR	1
449
 
450
/* Define if you have strrchr() function in your library.  */
451
#undef	HAVE_STRRCHR
452
#define HAVE_STRRCHR	1
453
 
454
/* Define if you have strcoll() function in your library.  */
455
#undef  HAVE_STRCOLL
456
#define HAVE_STRCOLL    1
457
 
458
/* Define if you have strdup() function in your library.  */
459
#undef	HAVE_STRDUP
460
#define HAVE_STRDUP	1
461
 
462
/* Define if you have strftime() function in your library.  */
463
#undef  HAVE_STRFTIME
464
#define HAVE_STRFTIME   1
465
 
466
/* Define if you have strerror.  */
467
#undef  HAVE_STRERROR
468
#define HAVE_STRERROR   1
469
 
470
/* Define if your utime() library function accepts NULL as its second
471
   argument (meaning use current time).  */
472
#undef  HAVE_UTIME_NULL
473
#define HAVE_UTIME_NULL 1
474
 
475
/* Define vfork as fork if vfork() does not work.  */
476
#undef  vfork
477
#define vfork   fork
478
 
479
/* Define if you have the vprintf() library function.  */
480
#undef  HAVE_VPRINTF
481
#define HAVE_VPRINTF    1
482
 
483
/* Define if you have waitpid.  */
484
#undef  HAVE_WAITPID    /* we do, but it always fails :-( */
485
 
486
/* ---------------------------------------------------------------------
487
                                Structures
488
   --------------------------------------------------------------------- */
489
 
490
/* Define if your struct stat has st_blksize.  */
491
#undef  HAVE_ST_BLKSIZE
492
#define HAVE_ST_BLKSIZE 1
493
 
494
/* Define if your struct stat has st_blocks.  */
495
#undef  HAVE_ST_BLOCKS
496
 
497
/* Define if your struct stat has st_rdev member.  */
498
#undef  HAVE_ST_RDEV
499
#define HAVE_ST_RDEV    1
500
 
501
/* Define if you have `struct utimbuf' declared in .  */
502
#undef  HAVE_STRUCT_UTIMBUF
503
#define HAVE_STRUCT_UTIMBUF 1
504
 
505
/* Define if you have struct timeval defined in your  header file.  */
506
#undef  HAVE_TIMEVAL
507
#define HAVE_TIMEVAL    1
508
 
509
/* Define if you have tm_zone field in your struct tm definition (in
510
    header file).  */
511
#undef  HAVE_TM_ZONE
512
#define HAVE_TM_ZONE    1
513
 
514
/* ---------------------------------------------------------------------
515
                                 Typedefs
516
   --------------------------------------------------------------------- */
517
 
518
/* Define to the type of elements in the array set by `getgroups'.
519
   Usually this is either `int' or `gid_t'.  */
520
#undef  GETGROUPS_T
521
#define GETGROUPS_T     gid_t
522
 
523
/* Define as the return type of signal handlers (int or void).  */
524
#undef  RETSIGTYPE
525
#define RETSIGTYPE      void
526
 
527
 
528
/* ---------------------------------------------------------------------
529
                         Compiler Characteristics
530
   --------------------------------------------------------------------- */
531
 
532
/* Define `inline' to `__inline__' if your compiler accepts it.  */
533
#undef  inline
534
#define inline  __inline__
535
 
536
/* Define this if the C compiler supports the `long double' type.  */
537
#undef  HAVE_LONG_DOUBLE
538
#define HAVE_LONG_DOUBLE    1
539
 
540
/* Sizes of built-in types and pointers known to the compiler.  */
541
#define SIZEOF_CHAR             1
542
#define SIZEOF_CHAR_P           4
543
#define SIZEOF_SHORT            2
544
#define SIZEOF_SHORT_P          4
545
#define SIZEOF_INT              4
546
#define SIZEOF_INT_P            4
547
#define SIZEOF_LONG             4
548
#define SIZEOF_LONG_P           4
549
#define SIZEOF_LONG_LONG        8
550
#define SIZEOF_LONG_LONG_P      4
551
#define SIZEOF_FLOAT            4
552
#define SIZEOF_FLOAT_P          4
553
#define SIZEOF_DOUBLE           8
554
#define SIZEOF_DOUBLE_P         4
555
#define SIZEOF_LONG_DOUBLE      10
556
#define SIZEOF_LONG_DOUBLE_P    4
557
#define SIZEOF_VOID_P           4
558
 
559
/* If using the C implementation of alloca, define if you know the
560
   direction of stack growth for your system; otherwise it will be
561
   automatically deduced at run-time.
562
	STACK_DIRECTION > 0 => grows toward higher addresses
563
	STACK_DIRECTION < 0 => grows toward lower addresses
564
	STACK_DIRECTION = 0 => direction of growth unknown
565
 */
566
#undef  STACK_DIRECTION
567
 
568
/* Define to empty if the `const' keyword does not work.  */
569
#undef  const
570
 
571
/* ---------------------------------------------------------------------
572
                              System Services
573
   --------------------------------------------------------------------- */
574
 
575
/* Define this to be the name of your NULL device.  */
576
#undef  NULL_DEVICE
577
#define NULL_DEVICE "nul"
578
 
579
/* Do we have long filenames?  */
580
#undef  HAVE_LONG_FILE_NAMES    /* not yet, but Win95 might have them... */
581
 
582
/* ---------------------------------------------------------------------
583
                             Misc definitions
584
   --------------------------------------------------------------------- */
585
 
586
/* Define both _LIBC and __GNU_LIBRARY__ if you use GNU C library,
587
   but want link in the version of getopt, regex, fnmatch (and other
588
   routines which are part of GNU C library) which came with the
589
   package.  Define _LIBC alone if you use non-GNU C library which
590
   might be incompatible with GNU (e.g., getopt()).  Define __GNU_LIBRARY__
591
   alone if you want the code for the above functions to be effectively
592
   commented out, so you will get the code from the GNU C library.
593
*/
594
#undef  _LIBC
595
#undef  __GNU_LIBRARY__
596
/* #define _LIBC           1 */
597
/* #define __GNU_LIBRARY__ 1 */
598
 
599
 
600
 
601
#endif /* !_POSIX_SOURCE */
602
#endif /* !__STRICT_ANSI__ */
603
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
604
 
605
#ifndef __dj_ENFORCE_FUNCTION_CALLS
606
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
607
 
608
#ifdef __cplusplus
609
}
610
#endif
611
 
612
#endif /* !__dj_include_sys_config_h_ */