1 /***********************************************************
2 Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyright notice appear in all copies and that
10 both that copyright notice and this permission notice appear in
11 supporting documentation, and that the names of Stichting Mathematisch
12 Centrum or CWI not be used in advertising or publicity pertaining to
13 distribution of the software without specific, written prior permission.
15 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
16 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
18 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 ******************************************************************/
25 /* config.h for Macintosh.
26 Valid only for CodeWarrior.
27 There's no point in giving exact version numbers of the compilers
28 since we don't update this file as each compiler comes out;
29 with CodeWarrior, we generally use the most recent version.
32 #define USE_STACKCHECK
34 /* Define if on Macintosh (MPW or __MWERKS__ should also be defined) */
39 #if defined(USE_GUSI2)
44 #define DONT_HAVE_SYS_TYPES_H
45 #define DONT_HAVE_SYS_STAT_H
49 /* Define if on AIX 3.
50 System headers sometimes define this.
51 We just want to avoid a redefinition error message. */
56 /* Define if type char is unsigned and you are not using gcc. */
57 #ifndef __CHAR_UNSIGNED__
58 #undef __CHAR_UNSIGNED__
61 /* Define to empty if the keyword does not work. */
64 /* Define to `int' if <sys/types.h> doesn't define. */
67 /* Define if your struct tm has tm_zone. */
70 /* Define if you don't have tm_zone but do have the external array
74 /* Define if on MINIX. */
77 /* Define to `int' if <sys/types.h> doesn't define. */
80 /* Define to `long' if <sys/types.h> doesn't define. */
83 /* Define to `int' if <sys/types.h> doesn't define. */
86 /* Define if the system does not provide POSIX.1 features except
88 #undef _POSIX_1_SOURCE
90 /* Define if you need to in order for stat and other things to work. */
93 /* Define as the return type of signal handlers (int or void). */
94 #define RETSIGTYPE void
96 /* Define to `unsigned' if <sys/types.h> doesn't define. */
99 /* Define if you have the ANSI C header files. */
100 #define STDC_HEADERS 1
102 /* Define if you can safely include both <sys/time.h> and <time.h>. */
103 #undef TIME_WITH_SYS_TIME
105 /* Define if your <sys/time.h> declares struct tm. */
106 #undef TM_IN_SYS_TIME
108 /* Define to `int' if <sys/types.h> doesn't define. */
111 /* Define if your processor stores words with the most significant
112 byte first (like Motorola and SPARC, unlike Intel and VAX). */
113 #define WORDS_BIGENDIAN 1
115 /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r
116 and you want support for AIX C++ shared extension modules. */
117 #undef AIX_GENUINE_CPLUSPLUS
119 /* Define if your <unistd.h> contains bad prototypes for exec*()
120 (as it does on SGI IRIX 4.x) */
121 #undef BAD_EXEC_PROTOTYPES
123 /* Define if your compiler botches static forward declarations */
124 #define BAD_STATIC_FORWARD
126 /* Define this if you have BeOS threads */
129 /* Define if you have the Mach cthreads package */
132 /* Define to `long' if <time.h> doesn't define. */
135 /* Defined on Solaris to see additional function prototypes. */
136 #undef __EXTENSIONS__
138 /* Define if getpgrp() must be called as getpgrp(0). */
139 #undef GETPGRP_HAVE_ARG
141 /* Define if gettimeofday() does not have second (timezone) argument
142 This is the case on Motorola V4 (R40V4.2) */
143 #undef GETTIMEOFDAY_NO_TZ
145 /* Define this if your time.h defines altzone */
148 /* Define if --enable-ipv6 is specified */
151 /* Define if sockaddr has sa_len member */
152 #undef HAVE_SOCKADDR_SA_LEN
154 /* struct addrinfo (netdb.h) */
157 /* struct sockaddr_storage (sys/socket.h) */
158 #undef HAVE_SOCKADDR_STORAGE
160 /* Defined when any dynamic module loading is enabled */
161 /* #undef HAVE_DYNAMIC_LOADING */
163 /* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */
164 #undef HAVE_GETC_UNLOCKED
166 /* Define this if you have some version of gethostbyname_r() */
167 #undef HAVE_GETHOSTBYNAME_R
169 /* Define this if you have the 3-arg version of gethostbyname_r() */
170 #undef HAVE_GETHOSTBYNAME_R_3_ARG
172 /* Define this if you have the 5-arg version of gethostbyname_r() */
173 #undef HAVE_GETHOSTBYNAME_R_5_ARG
175 /* Define this if you have the 6-arg version of gethostbyname_r() */
176 #undef HAVE_GETHOSTBYNAME_R_6_ARG
178 /* Defined to enable large file support when an off_t is bigger than a long
179 and long long is available and at least as big as an off_t. You may need
180 to add some flags for configuration and compilation to enable this mode.
181 E.g, for Solaris 2.7:
182 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" OPT="-O2 $CFLAGS" \
185 #undef HAVE_LARGEFILE_SUPPORT
187 /* Define this if you have the type long long */
188 #define HAVE_LONG_LONG
190 /* Define if your compiler supports function prototypes */
191 #define HAVE_PROTOTYPES 1
193 /* Define if you have GNU PTH threads */
196 /* Define if you have readline 4.2 */
197 #undef HAVE_RL_COMPLETION_MATCHES
199 /* Define if your compiler supports variable length function prototypes
200 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
201 #define HAVE_STDARG_PROTOTYPES
203 /* Define this if you have the type uintptr_t */
204 #undef HAVE_UINTPTR_T
206 /* Define if you have a useable wchar_t type defined in wchar.h; useable
207 means wchar_t must be 16-bit unsigned type. (see
208 Include/unicodeobject.h). */
209 #define HAVE_USABLE_WCHAR_T 1
211 /* Define if the compiler provides a wchar.h header file. */
212 #define HAVE_WCHAR_H 1
214 /* Define if you want to have a Unicode type. */
215 #define Py_USING_UNICODE 1
217 /* Define as the integral type used for Unicode representation. */
218 #define PY_UNICODE_TYPE wchar_t
220 /* Define as the size of the unicode type. */
221 #define Py_UNICODE_SIZE 2
223 /* Define if nice() returns success/failure instead of the new priority. */
224 #undef HAVE_BROKEN_NICE
226 /* Define if malloc(0) returns a NULL pointer */
227 #ifdef USE_MSL_MALLOC
228 #define MALLOC_ZERO_RETURNS_NULL
230 #undef MALLOC_ZERO_RETURNS_NULL
233 /* Define if you have POSIX threads */
235 #define _POSIX_THREADS
238 /* Define if you want to build an interpreter with many run-time checks */
241 /* Define to force use of thread-safe errno, h_errno, and other functions */
244 /* Define if setpgrp() must be called as setpgrp(0, 0). */
245 #undef SETPGRP_HAVE_ARG
247 /* Define to empty if the keyword does not work. */
250 /* Define if i>>j for signed int i does not extend the sign bit
253 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS
255 /* The number of bytes in an off_t. */
256 #define SIZEOF_OFF_T 4
258 /* The number of bytes in a time_t. */
259 #define SIZEOF_TIME_T 4
261 /* The number of bytes in a pthread_t. */
263 #define SIZEOF_PTHREAD_T 4
266 /* Define to `int' if <sys/types.h> doesn't define. */
269 /* Define if you can safely include both <sys/select.h> and <sys/time.h>
270 (which you can't on SCO ODT 3.0). */
271 #undef SYS_SELECT_WITH_SYS_TIME
273 /* Define if a va_list is an array of some kind */
274 #undef VA_LIST_IS_ARRAY
276 /* Define to empty if the keyword does not work. */
279 /* Define if you want SIGFPE handled (see Include/pyfpe.h). */
280 #undef WANT_SIGFPE_HANDLER
282 /* Define if you want wctype.h functions to be used instead of the
283 one supplied by Python itself. (see Include/unicodectype.h). */
284 #undef WANT_WCTYPE_FUNCTIONS
286 /* Define if you want cross-platform newline support for reading */
287 #define WITH_UNIVERSAL_NEWLINES
289 /* Define if you want to emulate SGI (IRIX 4) dynamic linking.
290 This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
291 Sequent Symmetry (Dynix), and Atari ST.
292 This requires the "dl-dld" library,
293 ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z,
294 as well as the "GNU dld" library,
295 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
296 Don't bother on SunOS 4 or 5, they already have dynamic linking using
300 /* Define if you want documentation strings in extension modules */
301 #define WITH_DOC_STRINGS 1
303 /* Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
304 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
305 linker (rld). Dyld is necessary to support frameworks. */
308 /* Define if you want to compile in Python-specific mallocs */
309 #define WITH_PYMALLOC 1
311 /* Define if you want to produce an OpenStep/Rhapsody framework
312 (shared library plus accessory files). */
313 #undef WITH_NEXT_FRAMEWORK
315 /* Define if you want to use MacPython modules on MacOSX in unix-Python */
316 #define USE_TOOLBOX_OBJECT_GLUE
318 /* Define if you want to use SGI (IRIX 4) dynamic linking.
319 This requires the "dl" library by Jack Jansen,
320 ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
321 Don't bother on IRIX 5, it already has dynamic linking using SunOS
322 style shared libraries */
325 /* Define if you want to compile in rudimentary thread support */
326 /* #undef WITH_THREAD */
328 /* The number of bytes in a char. */
329 #define SIZEOF_CHAR 1
331 /* The number of bytes in a double. */
332 #define SIZEOF_DOUBLE 8
334 /* The number of bytes in a float. */
335 #define SIZEOF_FLOAT 4
337 /* The number of bytes in a fpos_t. */
338 #define SIZEOF_FPOS_T 4
340 /* The number of bytes in a int. */
343 /* The number of bytes in a long. */
344 #define SIZEOF_LONG 4
346 /* The number of bytes in a long long. */
347 #define SIZEOF_LONG_LONG 8
349 /* The number of bytes in a short. */
350 #define SIZEOF_SHORT 2
352 /* The number of bytes in a uintptr_t. */
353 #define SIZEOF_UINTPTR_T 4
355 /* The number of bytes in a void *. */
356 #define SIZEOF_VOID_P 4
358 /* Define if you have the _getpty function. */
361 /* Define if you have the alarm function. */
364 /* Define if you have the chown function. */
367 /* Define if you have clock. */
370 /* Define if you have the confstr function. */
373 /* Define if you have the ctermid function. */
376 /* Define if you have the ctermid_r function. */
377 #undef HAVE_CTERMID_R
379 /* Define if you have the dlopen function. */
382 /* Define if you have the dup2 function. */
385 /* Define if you have the execv function. */
388 /* Define if you have the fdatasync function. */
389 #undef HAVE_FDATASYNC
391 /* Define if you have the flock function. */
394 /* Define if you have the fork function. */
397 /* Define if you have the forkpty function. */
400 /* Define if you have the fpathconf function. */
401 #undef HAVE_FPATHCONF
403 /* Define if you have the fseek64 function. */
406 /* Define if you have the fseeko function. */
409 /* Define if you have the fstatvfs function. */
412 /* Define if you have the fsync function. */
415 /* Define if you have the ftell64 function. */
418 /* Define if you have the ftello function. */
421 /* Define if you have the ftime function. */
424 /* Define if you have the ftruncate function. */
426 #define HAVE_FTRUNCATE
429 /* Define if you have the getcwd function. */
432 /* Define if you have the getgroups function. */
433 #undef HAVE_GETGROUPS
435 /* Define if you have the gethostbyname function. */
437 #define HAVE_GETHOSTBYNAME 1
440 /* Define if you have the getlogin function. */
443 /* Define if you have the getnameinfo function. */
444 #undef HAVE_GETNAMEINFO
446 /* Define if you have the getpeername function. */
448 #define HAVE_GETPEERNAME
451 /* Define if you have the getpgid function. */
454 /* Define if you have the getpgrp function. */
457 /* Define if you have the getpid function. */
460 /* Define if you have the getpriority function. */
461 #undef HAVE_GETPRIORITY
463 /* Define if you have the getpwent function. */
466 /* Define if you have the gettimeofday function. */
468 #define HAVE_GETTIMEOFDAY
471 /* Define if you have the getwd function. */
474 /* Define if you have the hstrerror function. */
475 #undef HAVE_HSTRERROR
477 /* Define if you have the hypot function. */
480 /* Define if you have the inet_pton function. */
481 #undef HAVE_INET_PTON
483 /* Define if you have the kill function. */
486 /* Define if you have the link function. */
489 /* Define if you have the lstat function. */
492 /* Define if you have the memmove function. */
495 /* Define if you have the mkfifo function. */
498 /* Define if you have the mktime function. */
501 /* Define if you have the mremap function. */
504 /* Define if you have the nice function. */
507 /* Define if you have the openpty function. */
510 /* Define if you have the pathconf function. */
513 /* Define if you have the pause function. */
516 /* Define if you have the plock function. */
519 /* Define if you have the poll function. */
522 /* Define if you have the pthread_init function. */
523 #undef HAVE_PTHREAD_INIT
525 /* Define if you have the putenv function. */
528 /* Define if you have the readlink function. */
531 /* Define if you have the select function. */
536 /* Define if you have the setegid function. */
539 /* Define if you have the seteuid function. */
542 /* Define if you have the setgid function. */
545 /* Define if you have the setlocale function. */
546 #undef HAVE_SETLOCALE
548 /* Define if you have the setpgid function. */
551 /* Define if you have the setpgrp function. */
554 /* Define if you have the setregid function. */
557 /* Define if you have the setreuid function. */
560 /* Define if you have the setsid function. */
563 /* Define if you have the setuid function. */
566 /* Define if you have the setvbuf function. */
569 /* Define if you have the sigaction function. */
570 #undef HAVE_SIGACTION
572 /* Define if you have the siginterrupt function. */
573 #undef HAVE_SIGINTERRUPT
575 /* Define if you have the sigrelse function. */
578 /* Define if you have the snprintf function. */
579 #define HAVE_SNPRINTF
581 /* Define if you have the statvfs function. */
584 /* Define if you have the strdup function. */
587 /* Define if you have the strerror function. */
588 #define HAVE_STRERROR
590 /* Define if you have the strftime function. */
591 #define HAVE_STRFTIME
593 /* Define if you have the strptime function. */
596 /* Define if you have the symlink function. */
599 /* Define if you have the sysconf function. */
602 /* Define if you have the tcgetpgrp function. */
603 #undef HAVE_TCGETPGRP
605 /* Define if you have the tcsetpgrp function. */
606 #undef HAVE_TCSETPGRP
608 /* Define if you have the tempnam function. */
611 /* Define if you have the timegm function. */
614 /* Define if you have the times function. */
617 /* Define if you have the tmpfile function. */
620 /* Define if you have the tmpnam function. */
623 /* Define if you have the tmpnam_r function. */
626 /* Define if you have the truncate function. */
627 #define HAVE_TRUNCATE
629 /* Define if you have the uname function. */
632 /* Define if you have the waitpid function. */
635 /* Define if you have the <db.h> header file. */
638 /* Define if you have the <db1/ndbm.h> header file. */
639 #undef HAVE_DB1_NDBM_H
641 /* Define if you have the <db_185.h> header file. */
644 /* Define if you have the <dirent.h> header file. */
646 #define HAVE_DIRENT_H
649 /* Define if you have the <dlfcn.h> header file. */
652 /* Define if you have the <fcntl.h> header file. */
655 /* Define if you have the <gdbm/ndbm.h> header file. */
656 #undef HAVE_GDBM_NDBM_H
658 /* Define if you have the <libutil.h> header file. */
659 #undef HAVE_LIBUTIL_H
661 /* Define if you have the <limits.h> header file. */
662 #define HAVE_LIMITS_H
664 /* Define if you have the <locale.h> header file. */
665 #define HAVE_LOCALE_H
667 /* Define if you have the <ncurses.h> header file. */
668 #undef HAVE_NCURSES_H
670 /* Define if you have the <ndbm.h> header file. */
673 /* Define if you have the <ndir.h> header file. */
676 /* Define if you have the <poll.h> header file. */
679 /* Define if you have the <pthread.h> header file. */
681 #define HAVE_PTHREAD_H
684 /* Define if you have the <pty.h> header file. */
687 /* Define if you have the <signal.h> header file. */
688 #define HAVE_SIGNAL_H
690 /* Define if you have the <stdarg.h> header file. */
691 #define HAVE_STDARG_H
693 /* Define if you have the <stddef.h> header file. */
694 #define HAVE_STDDEF_H
696 /* Define if you have the <stdlib.h> header file. */
697 #define HAVE_STDLIB_H
699 /* Define if you have the <sys/audioio.h> header file. */
700 #undef HAVE_SYS_AUDIOIO_H
702 /* Define if you have the <sys/dir.h> header file. */
703 #undef HAVE_SYS_DIR_H
705 /* Define if you have the <sys/file.h> header file. */
706 #undef HAVE_SYS_FILE_H
708 /* Define if you have the <sys/lock.h> header file. */
709 #undef HAVE_SYS_LOCK_H
711 /* Define if you have the <sys/modem.h> header file. */
712 #undef HAVE_SYS_MODEM_H
714 /* Define if you have the <sys/ndir.h> header file. */
715 #undef HAVE_SYS_NDIR_H
717 /* Define if you have the <sys/param.h> header file. */
718 #undef HAVE_SYS_PARAM_H
720 /* Define if you have the <sys/poll.h> header file. */
721 #undef HAVE_SYS_POLL_H
723 /* Define if you have the <sys/resource.h> header file. */
724 #undef HAVE_SYS_RESOURCE_H
726 /* Define if you have the <sys/select.h> header file. */
727 #undef HAVE_SYS_SELECT_H
729 /* Define if you have the <sys/socket.h> header file. */
731 #define HAVE_SYS_SOCKET_H
734 /* Define if you have the <sys/time.h> header file. */
736 #define HAVE_SYS_TIME_H
739 /* Define if you have the <sys/times.h> header file. */
740 #undef HAVE_SYS_TIMES_H
742 /* Define if you have the <sys/un.h> header file. */
745 /* Define if you have the <sys/utsname.h> header file. */
746 #undef HAVE_SYS_UTSNAME_H
748 /* Define if you have the <sys/wait.h> header file. */
749 #undef HAVE_SYS_WAIT_H
751 /* Define if you have the <termios.h> header file. */
752 #undef HAVE_TERMIOS_H
754 /* Define if you have the <thread.h> header file. */
757 /* Define if you have the <unistd.h> header file. */
758 #define HAVE_UNISTD_H
760 /* Define if you have the <utime.h> header file. */
763 /* Define if you have the dl library (-ldl). */
766 /* Define if you have the dld library (-ldld). */
769 /* Define if you have the ieee library (-lieee). */
774 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
775 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
777 #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
778 #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE