blob: e56105af574a42bc92a65a3b4bc502907f99710e [file] [log] [blame]
Andrew MacIntyre41d97d62002-02-17 05:23:30 +00001#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
3
Victor Stinnerb90db4c2011-04-26 22:48:24 +02004#error "PEP 11: OS/2 is now unsupported, code will be removed in Python 3.4"
5
Andrew MacIntyred4c9b162003-04-21 14:28:01 +00006/* config.h.
7 * At some time in the past, generated automatically by/from configure.
8 * now maintained manually.
9 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000010
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000011/* build environment */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000012#define PLATFORM "os2emx"
13#define COMPILER "[EMX GCC " __VERSION__ "]"
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000014#define PYOS_OS2 1
15#define PYCC_GCC 1
16
17/* default location(s) */
18#ifndef PREFIX
19#define PREFIX ""
20#endif
21#ifndef PYTHONPATH
22#define PYTHONPATH "./Lib;./Lib/plat-" PLATFORM \
23 ";./Lib/lib-dynload;./Lib/site-packages"
24#endif
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000025
26/* Debugging */
27#ifndef Py_DEBUG
28/*#define Py_DEBUG 1*/
29#endif
30
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000031/* if building an extension or wrapper executable,
32 * mark Python API symbols "extern" so that symbols
33 * imported from the Python core DLL aren't duplicated.
34 */
35#ifdef Py_BUILD_CORE
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000036# define PyAPI_FUNC(RTYPE) RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000037#else
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000038# define PyAPI_FUNC(RTYPE) extern RTYPE
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000039#endif
Andrew MacIntyrebac1ea92003-07-16 13:31:11 +000040#define PyAPI_DATA(RTYPE) extern RTYPE
41#define PyMODINIT_FUNC void
Andrew MacIntyre4ee893f2003-07-13 13:41:59 +000042
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000043/* Use OS/2 flavour of threads */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000044#define WITH_THREAD 1
45#define OS2_THREADS 1
Andrew MacIntyree52aa5c2002-12-31 11:24:43 +000046
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000047/* We want sockets */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000048#define TCPIPV4 1
49#define USE_SOCKET 1
50#define socklen_t int
Thomas Wouters0e3f5912006-08-11 14:57:12 +000051#define FD_SETSIZE 1024
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000052
53/* enable the Python object allocator */
54#define WITH_PYMALLOC 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000055
56/* enable the GC module */
57#define WITH_CYCLE_GC 1
58
Martin v. Löwis2befa482002-06-09 13:41:37 +000059/* Define if you want documentation strings in extension modules */
60#define WITH_DOC_STRINGS 1
61
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000062/* Unicode related */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000063#define PY_UNICODE_TYPE wchar_t
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000064#define Py_UNICODE_SIZE SIZEOF_SHORT
65
Thomas Wouters0e3f5912006-08-11 14:57:12 +000066/* EMX defines ssize_t */
67#define HAVE_SSIZE_T 1
68
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000069/* system capabilities */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000070#define HAVE_TTYNAME 1
71#define HAVE_WAIT 1
72#define HAVE_GETEGID 1
73#define HAVE_GETEUID 1
74#define HAVE_GETGID 1
75#define HAVE_GETPPID 1
76#define HAVE_GETUID 1
77#define HAVE_OPENDIR 1
78#define HAVE_PIPE 1
79#define HAVE_POPEN 1
80#define HAVE_SYSTEM 1
81#define HAVE_TTYNAME 1
82#define HAVE_DYNAMIC_LOADING 1
83
84/* if port of GDBM installed, it includes NDBM emulation */
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000085#define HAVE_NDBM_H 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000086
87/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
88typedef long intptr_t;
89
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000090/* we don't have tm_zone but do have the external array tzname */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000091#define HAVE_TZNAME 1
92
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000093/* Define as the return type of signal handlers (int or void). */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000094#define RETSIGTYPE void
95
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000096/* Define if you have the ANSI C header files. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +000097#define STDC_HEADERS 1
98
Andrew MacIntyred4c9b162003-04-21 14:28:01 +000099/* Define if you can safely include both <sys/time.h> and <time.h>. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000100#define TIME_WITH_SYS_TIME 1
101
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000102/* Define this if you have the type long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000103#define HAVE_LONG_LONG 1
104
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000105/* Define if your compiler supports function prototypes. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000106#define HAVE_PROTOTYPES 1
107
108/* Define if your compiler supports variable length function prototypes
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000109 * (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
110 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000111#define HAVE_STDARG_PROTOTYPES 1
112
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000113/* Define if malloc(0) returns a NULL pointer. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000114#define MALLOC_ZERO_RETURNS_NULL 1
115
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000116/* Define to force use of thread-safe errno, h_errno, and other functions. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000117#define _REENTRANT 1
118
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000119/* Define if you can safely include both <sys/select.h> and <sys/time.h>
120 * (which you can't on SCO ODT 3.0).
121 */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000122#define SYS_SELECT_WITH_SYS_TIME 1
123
124/* The number of bytes in an off_t. */
125#define SIZEOF_OFF_T 4
126
127/* The number of bytes in an time_t. */
128#define SIZEOF_TIME_T 4
129
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000130/* The number of bytes in a short. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000131#define SIZEOF_SHORT 2
132
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000133/* The number of bytes in a int. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000134#define SIZEOF_INT 4
135
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000136/* The number of bytes in a long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000137#define SIZEOF_LONG 4
138
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000139/* The number of bytes in a long long. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000140#define SIZEOF_LONG_LONG 8
141
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000142/* The number of bytes in a void *. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000143#define SIZEOF_VOID_P 4
144
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000145/* The number of bytes in a size_t. */
146#define SIZEOF_SIZE_T 4
147
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000148/* Define if you have the alarm function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000149#define HAVE_ALARM 1
150
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000151/* Define if you have the clock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000152#define HAVE_CLOCK 1
153
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000154/* Define if you have the dup2 function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000155#define HAVE_DUP2 1
156
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000157/* Define if you have the execv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000158#define HAVE_EXECV 1
159
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000160/* Define if you have the spawnv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000161#define HAVE_SPAWNV 1
162
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000163/* Define if you have the flock function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000164#define HAVE_FLOCK 1
165
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000166/* Define if you have the fork function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000167#define HAVE_FORK 1
168
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000169/* Define if you have the fsync function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000170#define HAVE_FSYNC 1
171
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000172/* Define if you have the ftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000173#define HAVE_FTIME 1
174
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000175/* Define if you have the ftruncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000176#define HAVE_FTRUNCATE 1
177
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000178/* Define if you have the getcwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000179#define HAVE_GETCWD 1
180
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000181/* Define if you have the getpeername function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000182#define HAVE_GETPEERNAME 1
183
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000184/* Define if you have the getpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000185#define HAVE_GETPGRP 1
186
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000187/* Define if you have the getpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000188#define HAVE_GETPID 1
189
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000190/* Define if you have the getpwent function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000191#define HAVE_GETPWENT 1
192
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000193/* Define if you have the gettimeofday function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000194#define HAVE_GETTIMEOFDAY 1
195
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000196/* Define if you have the getwd function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000197#define HAVE_GETWD 1
198
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000199/* Define if you have the hypot function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000200#define HAVE_HYPOT 1
201
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000202/* Define if you have the kill function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000203#define HAVE_KILL 1
204
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000205/* Define if you have the memmove function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000206#define HAVE_MEMMOVE 1
207
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000208/* Define if you have the mktime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000209#define HAVE_MKTIME 1
210
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000211/* Define if you have the pause function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000212#define HAVE_PAUSE 1
213
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000214/* Define if you have the putenv function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000215#define HAVE_PUTENV 1
216
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000217/* Define if you have the select function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000218#define HAVE_SELECT 1
219
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000220/* Define if you have the setgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000221#define HAVE_SETGID 1
222
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000223/* Define if you have the setlocale function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000224#define HAVE_SETLOCALE 1
225
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000226/* Define if you have the setpgid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000227#define HAVE_SETPGID 1
228
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000229/* Define if you have the setuid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000230#define HAVE_SETUID 1
231
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000232/* Define if you have the setvbuf function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000233#define HAVE_SETVBUF 1
234
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000235/* Define if you have the sigaction function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000236#define HAVE_SIGACTION 1
237
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000238/* Define if you have the strerror function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000239#define HAVE_STRERROR 1
240
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000241/* Define if you have the strftime function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000242#define HAVE_STRFTIME 1
243
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000244/* Define if you have the tcgetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000245#define HAVE_TCGETPGRP 1
246
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000247/* Define if you have the tcsetpgrp function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000248#define HAVE_TCSETPGRP 1
249
Andrew MacIntyre0dda4002003-06-09 08:16:59 +0000250/* Define if you have the tmpfile function. */
251#define HAVE_TMPFILE 1
252
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000253/* Define if you have the times function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000254#define HAVE_TIMES 1
255
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000256/* Define if you have the truncate function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000257#define HAVE_TRUNCATE 1
258
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000259/* Define if you have the uname function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000260#define HAVE_UNAME 1
261
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000262/* Define if you have the waitpid function. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000263#define HAVE_WAITPID 1
264
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000265/* Define if you have the <conio.h> header file. */
266#undef HAVE_CONIO_H
267
268/* Define if you have the <direct.h> header file. */
269#undef HAVE_DIRECT_H
270
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000271/* Define if you have the <dirent.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000272#define HAVE_DIRENT_H 1
273
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000274/* Define if you have the <errno.h> header file. */
275#define HAVE_ERRNO_H 1
276
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000277/* Define if you have the <fcntl.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000278#define HAVE_FCNTL_H 1
279
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000280/* Define if you have the <io.h> header file. */
281#undef HAVE_IO_H
282
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000283/* Define if you have the <ncurses.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000284#define HAVE_NCURSES_H 1
285
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000286/* Define to 1 if you have the <process.h> header file. */
287#define HAVE_PROCESS_H 1
288
289/* Define if you have the <signal.h> header file. */
290#define HAVE_SIGNAL_H 1
291
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000292/* Define if you have the <sys/file.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000293#define HAVE_SYS_FILE_H 1
294
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000295/* Define if you have the <sys/param.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000296#define HAVE_SYS_PARAM_H 1
297
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000298/* Define if you have the <sys/select.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000299#define HAVE_SYS_SELECT_H 1
300
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000301/* Define if you have the <sys/stat.h> header file. */
302#define HAVE_SYS_STAT_H 1
303
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000304/* Define if you have the <sys/time.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000305#define HAVE_SYS_TIME_H 1
306
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000307/* Define if you have the <sys/times.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000308#define HAVE_SYS_TIMES_H 1
309
Thomas Wouters0e3f5912006-08-11 14:57:12 +0000310/* Define if you have the <sys/types.h> header file. */
311#define HAVE_SYS_TYPES_H 1
312
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000313/* Define if you have the <sys/un.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000314#define HAVE_SYS_UN_H 1
315
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000316/* Define if you have the <sys/utsname.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000317#define HAVE_SYS_UTSNAME_H 1
318
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000319/* Define if you have the <sys/wait.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000320#define HAVE_SYS_WAIT_H 1
321
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000322/* Define if you have the <unistd.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000323#define HAVE_UNISTD_H 1
324
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000325/* Define if you have the <utime.h> header file. */
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000326#define HAVE_UTIME_H 1
327
Andrew MacIntyred4c9b162003-04-21 14:28:01 +0000328/* EMX has an snprintf(). */
329#define HAVE_SNPRINTF 1
Andrew MacIntyre41d97d62002-02-17 05:23:30 +0000330
331#endif /* !Py_CONFIG_H */
332