blob: 1039d3d523152e4fa679c284b448aa69375ae7a2 [file] [log] [blame]
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00001#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
3
Andrew MacIntyred4c9b162003-04-21 14:28:01 +00004/* config.h.
5 * At some time in the past, generated automatically by/from configure.
6 * now maintained manually.
7 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00008
Andrew MacIntyred4c9b162003-04-21 14:28:01 +00009/* build environment */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000010#define PLATFORM "os2emx"
11#define COMPILER "[EMX GCC " __VERSION__ "]"
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000012#define PYOS_OS2 1
13#define PYCC_GCC 1
14
15/* default location(s) */
16#ifndef PREFIX
17#define PREFIX ""
18#endif
19#ifndef PYTHONPATH
20#define PYTHONPATH "./Lib;./Lib/plat-" PLATFORM \
21 ";./Lib/lib-dynload;./Lib/site-packages"
22#endif
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000023
24/* Debugging */
25#ifndef Py_DEBUG
26/*#define Py_DEBUG 1*/
27#endif
28
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000029/* if building an extension or wrapper executable,
30 * mark Python API symbols "extern" so that symbols
31 * imported from the Python core DLL aren't duplicated.
32 */
33#ifdef Py_BUILD_CORE
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000034# define PyAPI_FUNC(RTYPE) RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000035#else
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000036# define PyAPI_FUNC(RTYPE) extern RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000037#endif
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000038#define PyAPI_DATA(RTYPE) extern RTYPE
39#define PyMODINIT_FUNC void
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000040
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000041/* Use OS/2 flavour of threads */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000042#define WITH_THREAD 1
43#define OS2_THREADS 1
Andrew MacIntyree52aa5c2002-12-31 11:24:43 +000044
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000045/* We want sockets */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000046#define TCPIPV4 1
47#define USE_SOCKET 1
48#define socklen_t int
Thomas Wouters0e3f5912006-08-11 14:57:12 +000049#define FD_SETSIZE 1024
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000050
51/* enable the Python object allocator */
52#define WITH_PYMALLOC 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000053
54/* enable the GC module */
55#define WITH_CYCLE_GC 1
56
Martin v. Löwis2befa482002-06-09 13:41:37 +000057/* Define if you want documentation strings in extension modules */
58#define WITH_DOC_STRINGS 1
59
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000060/* Unicode related */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000061#define Py_USING_UNICODE 1
62#define PY_UNICODE_TYPE wchar_t
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000063#define Py_UNICODE_SIZE SIZEOF_SHORT
64
Thomas Wouters0e3f5912006-08-11 14:57:12 +000065/* EMX defines ssize_t */
66#define HAVE_SSIZE_T 1
67
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000068/* system capabilities */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000069#define HAVE_TTYNAME 1
70#define HAVE_WAIT 1
71#define HAVE_GETEGID 1
72#define HAVE_GETEUID 1
73#define HAVE_GETGID 1
74#define HAVE_GETPPID 1
75#define HAVE_GETUID 1
76#define HAVE_OPENDIR 1
77#define HAVE_PIPE 1
78#define HAVE_POPEN 1
79#define HAVE_SYSTEM 1
80#define HAVE_TTYNAME 1
81#define HAVE_DYNAMIC_LOADING 1
82
83/* if port of GDBM installed, it includes NDBM emulation */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000084#define HAVE_NDBM_H 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000085
86/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
87typedef long intptr_t;
88
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000089/* we don't have tm_zone but do have the external array tzname */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000090#define HAVE_TZNAME 1
91
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000092/* Define as the return type of signal handlers (int or void). */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000093#define RETSIGTYPE void
94
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000095/* Define if you have the ANSI C header files. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000096#define STDC_HEADERS 1
97
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000098/* Define if you can safely include both <sys/time.h> and <time.h>. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000099#define TIME_WITH_SYS_TIME 1
100
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000101/* Define this if you have the type long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000102#define HAVE_LONG_LONG 1
103
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000104/* Define if your compiler supports function prototypes. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000105#define HAVE_PROTOTYPES 1
106
107/* Define if your compiler supports variable length function prototypes
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000108 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
109 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000110#define HAVE_STDARG_PROTOTYPES 1
111
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000112/* Define if malloc(0) returns a NULL pointer. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000113#define MALLOC_ZERO_RETURNS_NULL 1
114
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000115/* Define to force use of thread-safe errno, h_errno, and other functions. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000116#define _REENTRANT 1
117
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000118/* Define if you can safely include both <sys/select.h> and <sys/time.h>
119 * (which you can't on SCO ODT 3.0).
120 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000121#define SYS_SELECT_WITH_SYS_TIME 1
122
123/* The number of bytes in an off_t. */
124#define SIZEOF_OFF_T 4
125
126/* The number of bytes in an time_t. */
127#define SIZEOF_TIME_T 4
128
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000129/* The number of bytes in a short. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000130#define SIZEOF_SHORT 2
131
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000132/* The number of bytes in a int. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000133#define SIZEOF_INT 4
134
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000135/* The number of bytes in a long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000136#define SIZEOF_LONG 4
137
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000138/* The number of bytes in a long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000139#define SIZEOF_LONG_LONG 8
140
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000141/* The number of bytes in a void *. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000142#define SIZEOF_VOID_P 4
143
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000144/* The number of bytes in a size_t. */
145#define SIZEOF_SIZE_T 4
146
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000147/* Define if you have the alarm function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000148#define HAVE_ALARM 1
149
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000150/* Define if you have the clock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000151#define HAVE_CLOCK 1
152
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000153/* Define if you have the dup2 function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000154#define HAVE_DUP2 1
155
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000156/* Define if you have the execv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000157#define HAVE_EXECV 1
158
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000159/* Define if you have the spawnv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000160#define HAVE_SPAWNV 1
161
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000162/* Define if you have the flock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000163#define HAVE_FLOCK 1
164
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000165/* Define if you have the fork function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000166#define HAVE_FORK 1
167
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000168/* Define if you have the fsync function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000169#define HAVE_FSYNC 1
170
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000171/* Define if you have the ftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000172#define HAVE_FTIME 1
173
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000174/* Define if you have the ftruncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000175#define HAVE_FTRUNCATE 1
176
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000177/* Define if you have the getcwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000178#define HAVE_GETCWD 1
179
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000180/* Define if you have the getpeername function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000181#define HAVE_GETPEERNAME 1
182
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000183/* Define if you have the getpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000184#define HAVE_GETPGRP 1
185
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000186/* Define if you have the getpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000187#define HAVE_GETPID 1
188
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000189/* Define if you have the getpwent function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000190#define HAVE_GETPWENT 1
191
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000192/* Define if you have the gettimeofday function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000193#define HAVE_GETTIMEOFDAY 1
194
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000195/* Define if you have the getwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000196#define HAVE_GETWD 1
197
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000198/* Define if you have the hypot function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000199#define HAVE_HYPOT 1
200
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000201/* Define if you have the kill function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000202#define HAVE_KILL 1
203
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000204/* Define if you have the memmove function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000205#define HAVE_MEMMOVE 1
206
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000207/* Define if you have the mktime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000208#define HAVE_MKTIME 1
209
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000210/* Define if you have the pause function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000211#define HAVE_PAUSE 1
212
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000213/* Define if you have the putenv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000214#define HAVE_PUTENV 1
215
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000216/* Define if you have the select function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000217#define HAVE_SELECT 1
218
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000219/* Define if you have the setgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000220#define HAVE_SETGID 1
221
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000222/* Define if you have the setlocale function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000223#define HAVE_SETLOCALE 1
224
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000225/* Define if you have the setpgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000226#define HAVE_SETPGID 1
227
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000228/* Define if you have the setuid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000229#define HAVE_SETUID 1
230
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000231/* Define if you have the setvbuf function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000232#define HAVE_SETVBUF 1
233
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000234/* Define if you have the sigaction function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000235#define HAVE_SIGACTION 1
236
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000237/* Define if you have the strerror function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000238#define HAVE_STRERROR 1
239
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000240/* Define if you have the strftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000241#define HAVE_STRFTIME 1
242
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000243/* Define if you have the tcgetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000244#define HAVE_TCGETPGRP 1
245
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000246/* Define if you have the tcsetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000247#define HAVE_TCSETPGRP 1
248
Andrew MacIntyre0dda4002003-06-09 08:16:59 +0000249/* Define if you have the tmpfile function. */
250#define HAVE_TMPFILE 1
251
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000252/* Define if you have the times function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000253#define HAVE_TIMES 1
254
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000255/* Define if you have the truncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000256#define HAVE_TRUNCATE 1
257
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000258/* Define if you have the uname function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000259#define HAVE_UNAME 1
260
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000261/* Define if you have the waitpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000262#define HAVE_WAITPID 1
263
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000264/* Define if you have the <conio.h> header file. */
265#undef HAVE_CONIO_H
266
267/* Define if you have the <direct.h> header file. */
268#undef HAVE_DIRECT_H
269
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000270/* Define if you have the <dirent.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000271#define HAVE_DIRENT_H 1
272
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000273/* Define if you have the <errno.h> header file. */
274#define HAVE_ERRNO_H 1
275
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000276/* Define if you have the <fcntl.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000277#define HAVE_FCNTL_H 1
278
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000279/* Define if you have the <io.h> header file. */
280#undef HAVE_IO_H
281
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000282/* Define if you have the <ncurses.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000283#define HAVE_NCURSES_H 1
284
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000285/* Define to 1 if you have the <process.h> header file. */
286#define HAVE_PROCESS_H 1
287
288/* Define if you have the <signal.h> header file. */
289#define HAVE_SIGNAL_H 1
290
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000291/* Define if you have the <sys/file.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000292#define HAVE_SYS_FILE_H 1
293
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000294/* Define if you have the <sys/param.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000295#define HAVE_SYS_PARAM_H 1
296
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000297/* Define if you have the <sys/select.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000298#define HAVE_SYS_SELECT_H 1
299
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000300/* Define if you have the <sys/stat.h> header file. */
301#define HAVE_SYS_STAT_H 1
302
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000303/* Define if you have the <sys/time.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000304#define HAVE_SYS_TIME_H 1
305
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000306/* Define if you have the <sys/times.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000307#define HAVE_SYS_TIMES_H 1
308
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000309/* Define if you have the <sys/types.h> header file. */
310#define HAVE_SYS_TYPES_H 1
311
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000312/* Define if you have the <sys/un.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000313#define HAVE_SYS_UN_H 1
314
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000315/* Define if you have the <sys/utsname.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000316#define HAVE_SYS_UTSNAME_H 1
317
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000318/* Define if you have the <sys/wait.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000319#define HAVE_SYS_WAIT_H 1
320
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000321/* Define if you have the <unistd.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000322#define HAVE_UNISTD_H 1
323
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000324/* Define if you have the <utime.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000325#define HAVE_UTIME_H 1
326
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000327/* EMX has an snprintf(). */
328#define HAVE_SNPRINTF 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000329
330#endif /* !Py_CONFIG_H */
331