blob: 380e19c08ddb6477ae1c427e9a364a1b47129b8d [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_UNICODE_TYPE wchar_t
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000062#define Py_UNICODE_SIZE SIZEOF_SHORT
63
Thomas Wouters0e3f5912006-08-11 14:57:12 +000064/* EMX defines ssize_t */
65#define HAVE_SSIZE_T 1
66
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000067/* system capabilities */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000068#define HAVE_TTYNAME 1
69#define HAVE_WAIT 1
70#define HAVE_GETEGID 1
71#define HAVE_GETEUID 1
72#define HAVE_GETGID 1
73#define HAVE_GETPPID 1
74#define HAVE_GETUID 1
75#define HAVE_OPENDIR 1
76#define HAVE_PIPE 1
77#define HAVE_POPEN 1
78#define HAVE_SYSTEM 1
79#define HAVE_TTYNAME 1
80#define HAVE_DYNAMIC_LOADING 1
81
82/* if port of GDBM installed, it includes NDBM emulation */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000083#define HAVE_NDBM_H 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000084
85/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
86typedef long intptr_t;
87
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000088/* we don't have tm_zone but do have the external array tzname */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000089#define HAVE_TZNAME 1
90
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000091/* Define as the return type of signal handlers (int or void). */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000092#define RETSIGTYPE void
93
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000094/* Define if you have the ANSI C header files. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000095#define STDC_HEADERS 1
96
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000097/* Define if you can safely include both <sys/time.h> and <time.h>. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000098#define TIME_WITH_SYS_TIME 1
99
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000100/* Define this if you have the type long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000101#define HAVE_LONG_LONG 1
102
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000103/* Define if your compiler supports function prototypes. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000104#define HAVE_PROTOTYPES 1
105
106/* Define if your compiler supports variable length function prototypes
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000107 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
108 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000109#define HAVE_STDARG_PROTOTYPES 1
110
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000111/* Define if malloc(0) returns a NULL pointer. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000112#define MALLOC_ZERO_RETURNS_NULL 1
113
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000114/* Define to force use of thread-safe errno, h_errno, and other functions. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000115#define _REENTRANT 1
116
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000117/* Define if you can safely include both <sys/select.h> and <sys/time.h>
118 * (which you can't on SCO ODT 3.0).
119 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000120#define SYS_SELECT_WITH_SYS_TIME 1
121
122/* The number of bytes in an off_t. */
123#define SIZEOF_OFF_T 4
124
125/* The number of bytes in an time_t. */
126#define SIZEOF_TIME_T 4
127
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000128/* The number of bytes in a short. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000129#define SIZEOF_SHORT 2
130
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000131/* The number of bytes in a int. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000132#define SIZEOF_INT 4
133
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000134/* The number of bytes in a long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000135#define SIZEOF_LONG 4
136
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000137/* The number of bytes in a long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000138#define SIZEOF_LONG_LONG 8
139
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000140/* The number of bytes in a void *. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000141#define SIZEOF_VOID_P 4
142
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000143/* The number of bytes in a size_t. */
144#define SIZEOF_SIZE_T 4
145
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000146/* Define if you have the alarm function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000147#define HAVE_ALARM 1
148
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000149/* Define if you have the clock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000150#define HAVE_CLOCK 1
151
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000152/* Define if you have the dup2 function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000153#define HAVE_DUP2 1
154
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000155/* Define if you have the execv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000156#define HAVE_EXECV 1
157
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000158/* Define if you have the spawnv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000159#define HAVE_SPAWNV 1
160
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000161/* Define if you have the flock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000162#define HAVE_FLOCK 1
163
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000164/* Define if you have the fork function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000165#define HAVE_FORK 1
166
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000167/* Define if you have the fsync function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000168#define HAVE_FSYNC 1
169
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000170/* Define if you have the ftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000171#define HAVE_FTIME 1
172
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000173/* Define if you have the ftruncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000174#define HAVE_FTRUNCATE 1
175
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000176/* Define if you have the getcwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000177#define HAVE_GETCWD 1
178
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000179/* Define if you have the getpeername function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000180#define HAVE_GETPEERNAME 1
181
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000182/* Define if you have the getpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000183#define HAVE_GETPGRP 1
184
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000185/* Define if you have the getpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000186#define HAVE_GETPID 1
187
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000188/* Define if you have the getpwent function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000189#define HAVE_GETPWENT 1
190
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000191/* Define if you have the gettimeofday function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000192#define HAVE_GETTIMEOFDAY 1
193
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000194/* Define if you have the getwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000195#define HAVE_GETWD 1
196
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000197/* Define if you have the hypot function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000198#define HAVE_HYPOT 1
199
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000200/* Define if you have the kill function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000201#define HAVE_KILL 1
202
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000203/* Define if you have the memmove function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000204#define HAVE_MEMMOVE 1
205
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000206/* Define if you have the mktime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000207#define HAVE_MKTIME 1
208
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000209/* Define if you have the pause function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000210#define HAVE_PAUSE 1
211
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000212/* Define if you have the putenv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000213#define HAVE_PUTENV 1
214
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000215/* Define if you have the select function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000216#define HAVE_SELECT 1
217
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000218/* Define if you have the setgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000219#define HAVE_SETGID 1
220
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000221/* Define if you have the setlocale function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000222#define HAVE_SETLOCALE 1
223
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000224/* Define if you have the setpgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000225#define HAVE_SETPGID 1
226
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000227/* Define if you have the setuid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000228#define HAVE_SETUID 1
229
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000230/* Define if you have the setvbuf function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000231#define HAVE_SETVBUF 1
232
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000233/* Define if you have the sigaction function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000234#define HAVE_SIGACTION 1
235
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000236/* Define if you have the strerror function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000237#define HAVE_STRERROR 1
238
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000239/* Define if you have the strftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000240#define HAVE_STRFTIME 1
241
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000242/* Define if you have the tcgetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000243#define HAVE_TCGETPGRP 1
244
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000245/* Define if you have the tcsetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000246#define HAVE_TCSETPGRP 1
247
Andrew MacIntyre0dda4002003-06-09 08:16:59 +0000248/* Define if you have the tmpfile function. */
249#define HAVE_TMPFILE 1
250
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000251/* Define if you have the times function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000252#define HAVE_TIMES 1
253
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000254/* Define if you have the truncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000255#define HAVE_TRUNCATE 1
256
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000257/* Define if you have the uname function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000258#define HAVE_UNAME 1
259
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000260/* Define if you have the waitpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000261#define HAVE_WAITPID 1
262
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000263/* Define if you have the <conio.h> header file. */
264#undef HAVE_CONIO_H
265
266/* Define if you have the <direct.h> header file. */
267#undef HAVE_DIRECT_H
268
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000269/* Define if you have the <dirent.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000270#define HAVE_DIRENT_H 1
271
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000272/* Define if you have the <errno.h> header file. */
273#define HAVE_ERRNO_H 1
274
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000275/* Define if you have the <fcntl.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000276#define HAVE_FCNTL_H 1
277
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000278/* Define if you have the <io.h> header file. */
279#undef HAVE_IO_H
280
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000281/* Define if you have the <ncurses.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000282#define HAVE_NCURSES_H 1
283
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000284/* Define to 1 if you have the <process.h> header file. */
285#define HAVE_PROCESS_H 1
286
287/* Define if you have the <signal.h> header file. */
288#define HAVE_SIGNAL_H 1
289
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000290/* Define if you have the <sys/file.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000291#define HAVE_SYS_FILE_H 1
292
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000293/* Define if you have the <sys/param.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000294#define HAVE_SYS_PARAM_H 1
295
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000296/* Define if you have the <sys/select.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000297#define HAVE_SYS_SELECT_H 1
298
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000299/* Define if you have the <sys/stat.h> header file. */
300#define HAVE_SYS_STAT_H 1
301
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000302/* Define if you have the <sys/time.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000303#define HAVE_SYS_TIME_H 1
304
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000305/* Define if you have the <sys/times.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000306#define HAVE_SYS_TIMES_H 1
307
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000308/* Define if you have the <sys/types.h> header file. */
309#define HAVE_SYS_TYPES_H 1
310
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000311/* Define if you have the <sys/un.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000312#define HAVE_SYS_UN_H 1
313
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000314/* Define if you have the <sys/utsname.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000315#define HAVE_SYS_UTSNAME_H 1
316
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000317/* Define if you have the <sys/wait.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000318#define HAVE_SYS_WAIT_H 1
319
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000320/* Define if you have the <unistd.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000321#define HAVE_UNISTD_H 1
322
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000323/* Define if you have the <utime.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000324#define HAVE_UTIME_H 1
325
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000326/* EMX has an snprintf(). */
327#define HAVE_SNPRINTF 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000328
329#endif /* !Py_CONFIG_H */
330