952N/A # Set VERSION so we only need to edit in one place (
i.e., here)
952N/A m4_define(PYTHON_VERSION, 2.7)
952N/A AC_REVISION($Revision$)
458N/A+ * Python originally defined these statically, which prevents a 32-64 python
458N/A+ * from working at all.
458N/A+#define SIZEOF_LONG_LONG 8
458N/A+#define SIZEOF_FPOS_T 8
458N/A+#define SIZEOF_PTHREAD_T 4
458N/A+#define SIZEOF_UINTPTR_T 8
458N/A+#define SIZEOF_VOID_P 8
458N/A+#define SIZEOF_TIME_T 8
458N/A+#define SIZEOF_SIZE_T 8
458N/A+#define SIZEOF_LONG_DOUBLE 16
458N/A+#define SIZEOF_UINTPTR_T 4
458N/A+#define SIZEOF_VOID_P 4
458N/A+#define SIZEOF_TIME_T 4
458N/A+#define SIZEOF_SIZE_T 4
458N/A+#define SIZEOF_LONG_DOUBLE 12
458N/A+#define SIZEOF_LONG_DOUBLE 16
458N/A /* Define the macros needed if on a UnixWare
7.x system. */
458N/A #if defined(__USLC__) && defined(__SCO_VERSION__)
458N/A #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
458N/A # Sizes of various common basic types
458N/A # ANSI C requires sizeof(char) == 1, so no need to check it
458N/A AC_CHECK_SIZEOF(int, 4)
458N/A-AC_CHECK_SIZEOF(long, 4)
458N/A-AC_CHECK_SIZEOF(void *, 4)
458N/A+dnl AC_CHECK_SIZEOF(long, 4)
458N/A+dnl AC_CHECK_SIZEOF(void *, 4)
458N/A AC_CHECK_SIZEOF(short, 2)
458N/A AC_CHECK_SIZEOF(float, 4)
458N/A AC_CHECK_SIZEOF(double, 8)
458N/A AC_CHECK_SIZEOF(fpos_t, 4)
458N/A-AC_CHECK_SIZEOF(size_t, 4)
458N/A+dnl AC_CHECK_SIZEOF(size_t, 4)
458N/A AC_CHECK_SIZEOF(pid_t, 4)
458N/A AC_MSG_CHECKING(for long long support)
458N/A AC_MSG_RESULT($have_long_double)
458N/A-if test "$have_long_double" = yes ; then
458N/A-AC_CHECK_SIZEOF(long double, 12)
458N/A+dnl if test "$have_long_double" = yes ; then
458N/A+dnl AC_CHECK_SIZEOF(long double, 12)
458N/A AC_MSG_CHECKING(for _Bool support)
458N/A AC_CHECK_TYPES(uintptr_t,
458N/A- [AC_CHECK_SIZEOF(uintptr_t, 4)],
458N/A [], [#ifdef HAVE_STDINT_H
458N/A AC_MSG_CHECKING(whether to enable large file support)
458N/A if test "$have_long_long" = yes
458N/A-if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
458N/A- "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
458N/A+dnl if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
458N/A+dnl "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
458N/A AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
458N/A [Defined to enable large file support when an off_t is bigger than a long
458N/A and long long is available and at least as big as an off_t. You may need
458N/A to add some flags for configuration and compilation to enable this mode.
458N/A (For Solaris and Linux, the necessary defines are already defined.)])
458N/A-AC_CHECK_SIZEOF(time_t, [], [
458N/A-#ifdef HAVE_SYS_TYPES_H
458N/A+dnl AC_CHECK_SIZEOF(time_t, [], [
458N/A+dnl #ifdef HAVE_SYS_TYPES_H
458N/A # if have pthread_t then define SIZEOF_PTHREAD_T
458N/A case $ac_sys_system/$ac_sys_release in
458N/A- SunOS*) if test "$GCC" = yes;
458N/A- then CCSHARED="-fPIC";
458N/A- elif test `uname -p` = sparc;
458N/A- then CCSHARED="-xcode=pic32";
458N/A- else CCSHARED="-Kpic";
458N/A hp*|HP*) if test "$GCC" = yes;