Andrew MacIntyre | 41d97d6 | 2002-02-17 05:23:30 +0000 | [diff] [blame] | 1 | #ifndef Py_CONFIG_H |
| 2 | #define Py_CONFIG_H |
| 3 | |
| 4 | /* |
| 5 | config.h. |
| 6 | At some time in the past, generated automatically by configure. |
| 7 | Maintained manually for better results. |
| 8 | */ |
| 9 | |
| 10 | #define PLATFORM "os2emx" |
| 11 | #define COMPILER "[EMX GCC " __VERSION__ "]" |
| 12 | #define PYOS_OS2 |
| 13 | #define PYCC_GCC |
| 14 | #define PREFIX "/usr" |
| 15 | |
| 16 | /* Debugging */ |
| 17 | #ifndef Py_DEBUG |
| 18 | /*#define Py_DEBUG 1*/ |
| 19 | #endif |
| 20 | |
| 21 | /* so that emx socket headers will define IP V4 socket types */ |
| 22 | #define TCPIPV4 |
| 23 | |
| 24 | /* Use OS/2 flavour of threads */ |
| 25 | #define WITH_THREAD |
| 26 | #define OS2_THREADS |
| 27 | |
Andrew MacIntyre | e52aa5c | 2002-12-31 11:24:43 +0000 | [diff] [blame] | 28 | /* Define if you want to read files with foreign newlines. */ |
| 29 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 30 | |
Andrew MacIntyre | 41d97d6 | 2002-02-17 05:23:30 +0000 | [diff] [blame] | 31 | /* We want sockets */ |
| 32 | #define USE_SOCKET |
| 33 | #define socklen_t int |
| 34 | |
| 35 | /* enable the GC module */ |
| 36 | #define WITH_CYCLE_GC 1 |
| 37 | |
Martin v. Löwis | 2befa48 | 2002-06-09 13:41:37 +0000 | [diff] [blame] | 38 | /* Define if you want documentation strings in extension modules */ |
| 39 | #define WITH_DOC_STRINGS 1 |
| 40 | |
Andrew MacIntyre | 41d97d6 | 2002-02-17 05:23:30 +0000 | [diff] [blame] | 41 | /* Unicode related */ |
| 42 | #define Py_USING_UNICODE |
| 43 | #define PY_UNICODE_TYPE wchar_t |
| 44 | #define Py_UNICODE_SIZE SIZEOF_SHORT |
| 45 | |
| 46 | /* enable the Python object allocator */ |
| 47 | /*#define WITH_PYMALLOC 1*/ |
| 48 | |
| 49 | #define PYTHONPATH ".;./Lib;./Lib/plat-" PLATFORM ";./Lib/lib-dynload;./Lib/site-packages" |
| 50 | |
| 51 | #define HAVE_TTYNAME 1 |
| 52 | #define HAVE_WAIT 1 |
| 53 | #define HAVE_GETEGID 1 |
| 54 | #define HAVE_GETEUID 1 |
| 55 | #define HAVE_GETGID 1 |
| 56 | #define HAVE_GETPPID 1 |
| 57 | #define HAVE_GETUID 1 |
| 58 | #define HAVE_OPENDIR 1 |
| 59 | #define HAVE_PIPE 1 |
| 60 | #define HAVE_POPEN 1 |
| 61 | #define HAVE_SYSTEM 1 |
| 62 | #define HAVE_TTYNAME 1 |
| 63 | #define HAVE_DYNAMIC_LOADING 1 |
| 64 | |
| 65 | /* if port of GDBM installed, it includes NDBM emulation */ |
| 66 | #define HAVE_NDBM_H 1 |
| 67 | |
| 68 | /* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */ |
| 69 | typedef long intptr_t; |
| 70 | |
| 71 | /* we don't have tm_zone but do have the external array |
| 72 | tzname. */ |
| 73 | #define HAVE_TZNAME 1 |
| 74 | |
| 75 | /* Define as the return type of signal handlers (int or void). */ |
| 76 | #define RETSIGTYPE void |
| 77 | |
| 78 | /* Define if you have the ANSI C header files. */ |
| 79 | #define STDC_HEADERS 1 |
| 80 | |
| 81 | /* Define if you can safely include both <sys/time.h> and <time.h>. */ |
| 82 | #define TIME_WITH_SYS_TIME 1 |
| 83 | |
| 84 | /* Used for BeOS configuration */ |
| 85 | /* #undef DL_EXPORT_HEADER */ |
| 86 | #ifdef DL_EXPORT_HEADER |
| 87 | #include DL_EXPORT_HEADER |
| 88 | #endif |
| 89 | |
| 90 | /* Define this if you have the type long long */ |
| 91 | #define HAVE_LONG_LONG 1 |
| 92 | |
| 93 | /* Define if your compiler supports function prototypes */ |
| 94 | #define HAVE_PROTOTYPES 1 |
| 95 | |
| 96 | /* Define if your compiler supports variable length function prototypes |
| 97 | (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */ |
| 98 | #define HAVE_STDARG_PROTOTYPES 1 |
| 99 | |
| 100 | /* Define if malloc(0) returns a NULL pointer */ |
| 101 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 102 | |
| 103 | /* Define to force use of thread-safe errno, h_errno, and other functions */ |
| 104 | #define _REENTRANT 1 |
| 105 | |
| 106 | /* Define if you can safely include both <sys/select.h> and <sys/time.h> |
| 107 | (which you can't on SCO ODT 3.0). */ |
| 108 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 109 | |
| 110 | /* The number of bytes in an off_t. */ |
| 111 | #define SIZEOF_OFF_T 4 |
| 112 | |
| 113 | /* The number of bytes in an time_t. */ |
| 114 | #define SIZEOF_TIME_T 4 |
| 115 | |
| 116 | /* The number of bytes in a short. */ |
| 117 | #define SIZEOF_SHORT 2 |
| 118 | |
| 119 | /* The number of bytes in a int. */ |
| 120 | #define SIZEOF_INT 4 |
| 121 | |
| 122 | /* The number of bytes in a long. */ |
| 123 | #define SIZEOF_LONG 4 |
| 124 | |
| 125 | /* The number of bytes in a long long. */ |
| 126 | #define SIZEOF_LONG_LONG 8 |
| 127 | |
| 128 | /* The number of bytes in a void *. */ |
| 129 | #define SIZEOF_VOID_P 4 |
| 130 | |
| 131 | /* Define if you have the alarm function. */ |
| 132 | #define HAVE_ALARM 1 |
| 133 | |
| 134 | /* Define if you have the clock function. */ |
| 135 | #define HAVE_CLOCK 1 |
| 136 | |
| 137 | /* Define if you have the dup2 function. */ |
| 138 | #define HAVE_DUP2 1 |
| 139 | |
| 140 | /* Define if you have the execv function. */ |
| 141 | #define HAVE_EXECV 1 |
| 142 | |
| 143 | /* Define if you have the spawnv function. */ |
| 144 | #define HAVE_SPAWNV 1 |
| 145 | |
| 146 | /* Define if you have the flock function. */ |
| 147 | #define HAVE_FLOCK 1 |
| 148 | |
| 149 | /* Define if you have the fork function. */ |
| 150 | #define HAVE_FORK 1 |
| 151 | |
| 152 | /* Define if you have the fsync function. */ |
| 153 | #define HAVE_FSYNC 1 |
| 154 | |
| 155 | /* Define if you have the ftime function. */ |
| 156 | #define HAVE_FTIME 1 |
| 157 | |
| 158 | /* Define if you have the ftruncate function. */ |
| 159 | #define HAVE_FTRUNCATE 1 |
| 160 | |
| 161 | /* Define if you have the getcwd function. */ |
| 162 | #define HAVE_GETCWD 1 |
| 163 | |
| 164 | /* Define if you have the getpeername function. */ |
| 165 | #define HAVE_GETPEERNAME 1 |
| 166 | |
| 167 | /* Define if you have the getpgrp function. */ |
| 168 | #define HAVE_GETPGRP 1 |
| 169 | |
| 170 | /* Define if you have the getpid function. */ |
| 171 | #define HAVE_GETPID 1 |
| 172 | |
| 173 | /* Define if you have the getpwent function. */ |
| 174 | #define HAVE_GETPWENT 1 |
| 175 | |
| 176 | /* Define if you have the gettimeofday function. */ |
| 177 | #define HAVE_GETTIMEOFDAY 1 |
| 178 | |
| 179 | /* Define if you have the getwd function. */ |
| 180 | #define HAVE_GETWD 1 |
| 181 | |
| 182 | /* Define if you have the hypot function. */ |
| 183 | #define HAVE_HYPOT 1 |
| 184 | |
| 185 | /* Define if you have the kill function. */ |
| 186 | #define HAVE_KILL 1 |
| 187 | |
| 188 | /* Define if you have the memmove function. */ |
| 189 | #define HAVE_MEMMOVE 1 |
| 190 | |
| 191 | /* Define if you have the mktime function. */ |
| 192 | #define HAVE_MKTIME 1 |
| 193 | |
| 194 | /* Define if you have the pause function. */ |
| 195 | #define HAVE_PAUSE 1 |
| 196 | |
| 197 | /* Define if you have the putenv function. */ |
| 198 | #define HAVE_PUTENV 1 |
| 199 | |
| 200 | /* Define if you have the select function. */ |
| 201 | #define HAVE_SELECT 1 |
| 202 | |
| 203 | /* Define if you have the setgid function. */ |
| 204 | #define HAVE_SETGID 1 |
| 205 | |
| 206 | /* Define if you have the setlocale function. */ |
| 207 | #define HAVE_SETLOCALE 1 |
| 208 | |
| 209 | /* Define if you have the setpgid function. */ |
| 210 | #define HAVE_SETPGID 1 |
| 211 | |
| 212 | /* Define if you have the setuid function. */ |
| 213 | #define HAVE_SETUID 1 |
| 214 | |
| 215 | /* Define if you have the setvbuf function. */ |
| 216 | #define HAVE_SETVBUF 1 |
| 217 | |
| 218 | /* Define if you have the sigaction function. */ |
| 219 | #define HAVE_SIGACTION 1 |
| 220 | |
| 221 | /* Define if you have the strdup function. */ |
| 222 | #define HAVE_STRDUP 1 |
| 223 | |
| 224 | /* Define if you have the strerror function. */ |
| 225 | #define HAVE_STRERROR 1 |
| 226 | |
| 227 | /* Define if you have the strftime function. */ |
| 228 | #define HAVE_STRFTIME 1 |
| 229 | |
| 230 | /* Define if you have the strptime function. */ |
| 231 | #define HAVE_STRPTIME 1 |
| 232 | |
| 233 | /* Define if you have the tcgetpgrp function. */ |
| 234 | #define HAVE_TCGETPGRP 1 |
| 235 | |
| 236 | /* Define if you have the tcsetpgrp function. */ |
| 237 | #define HAVE_TCSETPGRP 1 |
| 238 | |
| 239 | /* Define if you have the times function. */ |
| 240 | #define HAVE_TIMES 1 |
| 241 | |
| 242 | /* Define if you have the truncate function. */ |
| 243 | #define HAVE_TRUNCATE 1 |
| 244 | |
| 245 | /* Define if you have the uname function. */ |
| 246 | #define HAVE_UNAME 1 |
| 247 | |
| 248 | /* Define if you have the waitpid function. */ |
| 249 | #define HAVE_WAITPID 1 |
| 250 | |
| 251 | /* Define if you have the <dirent.h> header file. */ |
| 252 | #define HAVE_DIRENT_H 1 |
| 253 | |
| 254 | /* Define if you have the <fcntl.h> header file. */ |
| 255 | #define HAVE_FCNTL_H 1 |
| 256 | |
| 257 | /* Define if you have the <limits.h> header file. */ |
| 258 | #define HAVE_LIMITS_H 1 |
| 259 | |
| 260 | /* Define if you have the <locale.h> header file. */ |
| 261 | #define HAVE_LOCALE_H 1 |
| 262 | |
| 263 | /* Define if you have the <ncurses.h> header file. */ |
| 264 | #define HAVE_NCURSES_H 1 |
| 265 | |
| 266 | /* Define if you have the <signal.h> header file. */ |
| 267 | #define HAVE_SIGNAL_H 1 |
| 268 | |
| 269 | /* Define if you have the <stdarg.h> header file. */ |
| 270 | #define HAVE_STDARG_H 1 |
| 271 | |
| 272 | /* Define if you have the <stddef.h> header file. */ |
| 273 | #define HAVE_STDDEF_H 1 |
| 274 | |
| 275 | /* Define if you have the <stdlib.h> header file. */ |
| 276 | #define HAVE_STDLIB_H 1 |
| 277 | |
| 278 | /* Define if you have the <sys/file.h> header file. */ |
| 279 | #define HAVE_SYS_FILE_H 1 |
| 280 | |
| 281 | /* Define if you have the <sys/param.h> header file. */ |
| 282 | #define HAVE_SYS_PARAM_H 1 |
| 283 | |
| 284 | /* Define if you have the <sys/select.h> header file. */ |
| 285 | #define HAVE_SYS_SELECT_H 1 |
| 286 | |
| 287 | /* Define if you have the <sys/time.h> header file. */ |
| 288 | #define HAVE_SYS_TIME_H 1 |
| 289 | |
| 290 | /* Define if you have the <sys/times.h> header file. */ |
| 291 | #define HAVE_SYS_TIMES_H 1 |
| 292 | |
| 293 | /* Define if you have the <sys/un.h> header file. */ |
| 294 | #define HAVE_SYS_UN_H 1 |
| 295 | |
| 296 | /* Define if you have the <sys/utsname.h> header file. */ |
| 297 | #define HAVE_SYS_UTSNAME_H 1 |
| 298 | |
| 299 | /* Define if you have the <sys/wait.h> header file. */ |
| 300 | #define HAVE_SYS_WAIT_H 1 |
| 301 | |
| 302 | /* Define if you have the <unistd.h> header file. */ |
| 303 | #define HAVE_UNISTD_H 1 |
| 304 | |
| 305 | /* Define if you have the <utime.h> header file. */ |
| 306 | #define HAVE_UTIME_H 1 |
| 307 | |
| 308 | /* EMX has an snprintf() */ |
| 309 | #define HAVE_SNPRINTF |
| 310 | |
| 311 | #endif /* !Py_CONFIG_H */ |
| 312 | |