Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: configure.ac

Issue 15550: Trailing white spaces
Patch Set: Created 7 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Doc/data/refcounts.dat » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl *********************************************** 1 dnl ***********************************************
2 dnl * Please run autoreconf to test your changes! * 2 dnl * Please run autoreconf to test your changes! *
3 dnl *********************************************** 3 dnl ***********************************************
4 4
5 # Set VERSION so we only need to edit in one place (i.e., here) 5 # Set VERSION so we only need to edit in one place (i.e., here)
6 m4_define(PYTHON_VERSION, 3.3) 6 m4_define(PYTHON_VERSION, 3.3)
7 7
8 AC_PREREQ(2.65) 8 AC_PREREQ(2.65)
9 9
10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) 10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 fi 56 fi
57 AC_SUBST(PYTHON_FOR_BUILD) 57 AC_SUBST(PYTHON_FOR_BUILD)
58 58
59 dnl Ensure that if prefix is specified, it does not end in a slash. If 59 dnl Ensure that if prefix is specified, it does not end in a slash. If
60 dnl it does, we get path names containing '//' which is both ugly and 60 dnl it does, we get path names containing '//' which is both ugly and
61 dnl can cause trouble. 61 dnl can cause trouble.
62 62
63 dnl Last slash shouldn't be stripped if prefix=/ 63 dnl Last slash shouldn't be stripped if prefix=/
64 if test "$prefix" != "/"; then 64 if test "$prefix" != "/"; then
65 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 65 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
66 fi 66 fi
67 67
68 dnl This is for stuff that absolutely must end up in pyconfig.h. 68 dnl This is for stuff that absolutely must end up in pyconfig.h.
69 dnl Please use pyport.h instead, if possible. 69 dnl Please use pyport.h instead, if possible.
70 AH_TOP([ 70 AH_TOP([
71 #ifndef Py_PYCONFIG_H 71 #ifndef Py_PYCONFIG_H
72 #define Py_PYCONFIG_H 72 #define Py_PYCONFIG_H
73 ]) 73 ])
74 AH_BOTTOM([ 74 AH_BOTTOM([
75 /* Define the macros needed if on a UnixWare 7.x system. */ 75 /* Define the macros needed if on a UnixWare 7.x system. */
76 #if defined(__USLC__) && defined(__SCO_VERSION__) 76 #if defined(__USLC__) && defined(__SCO_VERSION__)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 enable_universalsdk= 148 enable_universalsdk=
149 ;; 149 ;;
150 *) 150 *)
151 UNIVERSALSDK=$enableval 151 UNIVERSALSDK=$enableval
152 if test ! -d "${UNIVERSALSDK}" 152 if test ! -d "${UNIVERSALSDK}"
153 then 153 then
154 AC_MSG_ERROR([--enable-universalsdk specifies non-existi ng SDK: ${UNIVERSALSDK}]) 154 AC_MSG_ERROR([--enable-universalsdk specifies non-existi ng SDK: ${UNIVERSALSDK}])
155 fi 155 fi
156 ;; 156 ;;
157 esac 157 esac
158 » 158
159 ],[ 159 ],[
160 UNIVERSALSDK= 160 UNIVERSALSDK=
161 enable_universalsdk= 161 enable_universalsdk=
162 ]) 162 ])
163 if test -n "${UNIVERSALSDK}" 163 if test -n "${UNIVERSALSDK}"
164 then 164 then
165 AC_MSG_RESULT(${UNIVERSALSDK}) 165 AC_MSG_RESULT(${UNIVERSALSDK})
166 else 166 else
167 AC_MSG_RESULT(no) 167 AC_MSG_RESULT(no)
168 fi 168 fi
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 ],[ 208 ],[
209 PYTHONFRAMEWORK=Python 209 PYTHONFRAMEWORK=Python
210 PYTHONFRAMEWORKDIR=Python.framework 210 PYTHONFRAMEWORKDIR=Python.framework
211 PYTHONFRAMEWORKIDENTIFIER=org.python.python 211 PYTHONFRAMEWORKIDENTIFIER=org.python.python
212 ]) 212 ])
213 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output 213 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
214 AC_ARG_ENABLE(framework, 214 AC_ARG_ENABLE(framework,
215 AS_HELP_STRING([--enable-framework@<:@=INSTALLDIR@:>@], [Build (Ma cOSX|Darwin) framework]), 215 AS_HELP_STRING([--enable-framework@<:@=INSTALLDIR@:>@], [Build (Ma cOSX|Darwin) framework]),
216 [ 216 [
217 case $enableval in 217 case $enableval in
218 » yes) 218 » yes)
219 enableval=/Library/Frameworks 219 enableval=/Library/Frameworks
220 esac 220 esac
221 case $enableval in 221 case $enableval in
222 no) 222 no)
223 PYTHONFRAMEWORK= 223 PYTHONFRAMEWORK=
224 PYTHONFRAMEWORKDIR=no-framework 224 PYTHONFRAMEWORKDIR=no-framework
225 PYTHONFRAMEWORKPREFIX= 225 PYTHONFRAMEWORKPREFIX=
226 PYTHONFRAMEWORKINSTALLDIR= 226 PYTHONFRAMEWORKINSTALLDIR=
227 FRAMEWORKINSTALLFIRST= 227 FRAMEWORKINSTALLFIRST=
228 FRAMEWORKINSTALLLAST= 228 FRAMEWORKINSTALLLAST=
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 /Library*) 263 /Library*)
264 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 264 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
265 ;; 265 ;;
266 266
267 */Library/Frameworks) 267 */Library/Frameworks)
268 MDIR="`dirname "${enableval}"`" 268 MDIR="`dirname "${enableval}"`"
269 MDIR="`dirname "${MDIR}"`" 269 MDIR="`dirname "${MDIR}"`"
270 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 270 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
271 271
272 if test "${prefix}" = "NONE"; then 272 if test "${prefix}" = "NONE"; then
273 » » » » # User hasn't specified the 273 » » » » # User hasn't specified the
274 # --prefix option, but wants to install 274 # --prefix option, but wants to install
275 # the framework in a non-default location, 275 # the framework in a non-default location,
276 # ensure that the compatibility links get 276 # ensure that the compatibility links get
277 # installed relative to that prefix as well 277 # installed relative to that prefix as well
278 # instead of in /usr/local. 278 # instead of in /usr/local.
279 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 279 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
280 fi 280 fi
281 ;; 281 ;;
282 282
283 *) 283 *)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 *-*-cygwin*) 389 *-*-cygwin*)
390 _host_cpu= 390 _host_cpu=
391 ;; 391 ;;
392 *) 392 *)
393 # for now, limit cross builds to known configurations 393 # for now, limit cross builds to known configurations
394 MACHDEP="unknown" 394 MACHDEP="unknown"
395 AC_MSG_ERROR([cross build not supported for $host]) 395 AC_MSG_ERROR([cross build not supported for $host])
396 esac 396 esac
397 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 397 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
398 fi 398 fi
399 » 399
400 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they 400 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
401 # disable features if it is defined, without any means to access these 401 # disable features if it is defined, without any means to access these
402 # features as extensions. For these systems, we skip the definition of 402 # features as extensions. For these systems, we skip the definition of
403 # _XOPEN_SOURCE. Before adding a system to the list to gain access to 403 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
404 # some feature, make sure there is no alternative way to access this 404 # some feature, make sure there is no alternative way to access this
405 # feature. Also, when using wildcards, make sure you have verified the 405 # feature. Also, when using wildcards, make sure you have verified the
406 # need for not defining _XOPEN_SOURCE on all systems matching the 406 # need for not defining _XOPEN_SOURCE on all systems matching the
407 # wildcard, and that the wildcard does not include future systems 407 # wildcard, and that the wildcard does not include future systems
408 # (which may remove their limitations). 408 # (which may remove their limitations).
409 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output 409 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
410 case $ac_sys_system/$ac_sys_release in 410 case $ac_sys_system/$ac_sys_release in
411 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 411 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
412 # even though select is a POSIX function. Reported by J. Ribbens. 412 # even though select is a POSIX function. Reported by J. Ribbens.
413 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 413 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
414 # In addition, Stefan Krah confirms that issue #1244610 exists through 414 # In addition, Stefan Krah confirms that issue #1244610 exists through
415 # OpenBSD 4.6, but is fixed in 4.7. 415 # OpenBSD 4.6, but is fixed in 4.7.
416 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.@<:@0123456@:>@) 416 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.@<:@0123456@:>@)
417 define_xopen_source=no 417 define_xopen_source=no
418 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 418 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
419 # also defined. This can be overridden by defining _BSD_SOURCE 419 # also defined. This can be overridden by defining _BSD_SOURCE
420 # As this has a different meaning on Linux, only define it on OpenBSD 420 # As this has a different meaning on Linux, only define it on OpenBSD
421 AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library feature s]) 421 AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library feature s])
422 ;; 422 ;;
423 OpenBSD/*) 423 OpenBSD/*)
424 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 424 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
425 # also defined. This can be overridden by defining _BSD_SOURCE 425 # also defined. This can be overridden by defining _BSD_SOURCE
426 # As this has a different meaning on Linux, only define it on OpenBSD 426 # As this has a different meaning on Linux, only define it on OpenBSD
(...skipping 17 matching lines...) Expand all
444 OpenUNIX/8.0.0| UnixWare/7.1.@<:@0-4@:>@) 444 OpenUNIX/8.0.0| UnixWare/7.1.@<:@0-4@:>@)
445 define_xopen_source=no;; 445 define_xopen_source=no;;
446 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 446 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
447 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 447 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
448 SCO_SV/3.2) 448 SCO_SV/3.2)
449 define_xopen_source=no;; 449 define_xopen_source=no;;
450 # On FreeBSD 4, the math functions C89 does not cover are never defined 450 # On FreeBSD 4, the math functions C89 does not cover are never defined
451 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. 451 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
452 FreeBSD/4.*) 452 FreeBSD/4.*)
453 define_xopen_source=no;; 453 define_xopen_source=no;;
454 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 454 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
455 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 455 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
456 # identifies itself as Darwin/7.* 456 # identifies itself as Darwin/7.*
457 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 457 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
458 # disables platform specific features beyond repair. 458 # disables platform specific features beyond repair.
459 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 459 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
460 # has no effect, don't bother defining them 460 # has no effect, don't bother defining them
461 Darwin/@<:@6789@:>@.*) 461 Darwin/@<:@6789@:>@.*)
462 define_xopen_source=no;; 462 define_xopen_source=no;;
463 Darwin/1@<:@0-9@:>@.*) 463 Darwin/1@<:@0-9@:>@.*)
464 define_xopen_source=no;; 464 define_xopen_source=no;;
465 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 465 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
466 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 466 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
467 # or has another value. By not (re)defining it, the defaults come in place. 467 # or has another value. By not (re)defining it, the defaults come in place.
468 AIX/4) 468 AIX/4)
469 define_xopen_source=no;; 469 define_xopen_source=no;;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 fi 623 fi
624 AC_PROG_CC 624 AC_PROG_CC
625 625
626 AC_SUBST(CXX) 626 AC_SUBST(CXX)
627 AC_SUBST(MAINCC) 627 AC_SUBST(MAINCC)
628 AC_MSG_CHECKING(for --with-cxx-main=<compiler>) 628 AC_MSG_CHECKING(for --with-cxx-main=<compiler>)
629 AC_ARG_WITH(cxx_main, 629 AC_ARG_WITH(cxx_main,
630 AS_HELP_STRING([--with-cxx-main=<compiler>], 630 AS_HELP_STRING([--with-cxx-main=<compiler>],
631 [compile main() and link python executable with C++ c ompiler]), 631 [compile main() and link python executable with C++ c ompiler]),
632 [ 632 [
633 » 633
634 case $withval in 634 case $withval in
635 no) with_cxx_main=no 635 no) with_cxx_main=no
636 MAINCC='$(CC)';; 636 MAINCC='$(CC)';;
637 yes) with_cxx_main=yes 637 yes) with_cxx_main=yes
638 MAINCC='$(CXX)';; 638 MAINCC='$(CXX)';;
639 *) with_cxx_main=yes 639 *) with_cxx_main=yes
640 MAINCC=$withval 640 MAINCC=$withval
641 if test -z "$CXX" 641 if test -z "$CXX"
642 then 642 then
643 CXX=$withval 643 CXX=$withval
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 AC_MSG_RESULT($LIBRARY) 756 AC_MSG_RESULT($LIBRARY)
757 757
758 # LDLIBRARY is the name of the library to link against (as opposed to the 758 # LDLIBRARY is the name of the library to link against (as opposed to the
759 # name of the library into which to insert object files). BLDLIBRARY is also 759 # name of the library into which to insert object files). BLDLIBRARY is also
760 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 760 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
761 # is blank as the main program is not linked directly against LDLIBRARY. 761 # is blank as the main program is not linked directly against LDLIBRARY.
762 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 762 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
763 # systems without shared libraries, LDLIBRARY is the same as LIBRARY 763 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
764 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 764 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
765 # DLLLIBRARY is the shared (i.e., DLL) library. 765 # DLLLIBRARY is the shared (i.e., DLL) library.
766 # 766 #
767 # RUNSHARED is used to run shared python without installed libraries 767 # RUNSHARED is used to run shared python without installed libraries
768 # 768 #
769 # INSTSONAME is the name of the shared library that will be use to install 769 # INSTSONAME is the name of the shared library that will be use to install
770 # on the system - some systems like version suffix, others don't 770 # on the system - some systems like version suffix, others don't
771 # 771 #
772 # LDVERSION is the shared library version number, normally the Python version 772 # LDVERSION is the shared library version number, normally the Python version
773 # with the ABI build flags appended. 773 # with the ABI build flags appended.
774 AC_SUBST(LDLIBRARY) 774 AC_SUBST(LDLIBRARY)
775 AC_SUBST(DLLLIBRARY) 775 AC_SUBST(DLLLIBRARY)
776 AC_SUBST(BLDLIBRARY) 776 AC_SUBST(BLDLIBRARY)
777 AC_SUBST(PY3LIBRARY) 777 AC_SUBST(PY3LIBRARY)
778 AC_SUBST(LDLIBRARYDIR) 778 AC_SUBST(LDLIBRARYDIR)
779 AC_SUBST(INSTSONAME) 779 AC_SUBST(INSTSONAME)
780 AC_SUBST(RUNSHARED) 780 AC_SUBST(RUNSHARED)
781 AC_SUBST(LDVERSION) 781 AC_SUBST(LDVERSION)
782 LDLIBRARY="$LIBRARY" 782 LDLIBRARY="$LIBRARY"
783 BLDLIBRARY='$(LDLIBRARY)' 783 BLDLIBRARY='$(LDLIBRARY)'
784 INSTSONAME='$(LDLIBRARY)' 784 INSTSONAME='$(LDLIBRARY)'
785 DLLLIBRARY='' 785 DLLLIBRARY=''
786 LDLIBRARYDIR='' 786 LDLIBRARYDIR=''
787 RUNSHARED='' 787 RUNSHARED=''
788 LDVERSION="$VERSION" 788 LDVERSION="$VERSION"
789 789
790 # LINKCC is the command that links the python executable -- default is $(CC). 790 # LINKCC is the command that links the python executable -- default is $(CC).
791 # If CXX is set, and if it is needed to link a main function that was 791 # If CXX is set, and if it is needed to link a main function that was
792 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 792 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
793 # python might then depend on the C++ runtime 793 # python might then depend on the C++ runtime
794 # This is altered for AIX in order to build the export list before 794 # This is altered for AIX in order to build the export list before
795 # linking. 795 # linking.
796 AC_SUBST(LINKCC) 796 AC_SUBST(LINKCC)
797 AC_MSG_CHECKING(LINKCC) 797 AC_MSG_CHECKING(LINKCC)
798 if test -z "$LINKCC" 798 if test -z "$LINKCC"
799 then 799 then
800 LINKCC='$(PURIFY) $(MAINCC)' 800 LINKCC='$(PURIFY) $(MAINCC)'
801 case $ac_sys_system in 801 case $ac_sys_system in
802 AIX*) 802 AIX*)
803 exp_extra="\"\"" 803 exp_extra="\"\""
804 if test $ac_sys_release -ge 5 -o \ 804 if test $ac_sys_release -ge 5 -o \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 AC_DEFINE(USE_INLINE, 1, [Define to use the C99 inline keyword.]) 838 AC_DEFINE(USE_INLINE, 1, [Define to use the C99 inline keyword.])
839 AC_SUBST(USE_INLINE) 839 AC_SUBST(USE_INLINE)
840 fi 840 fi
841 841
842 842
843 AC_MSG_CHECKING(for --enable-shared) 843 AC_MSG_CHECKING(for --enable-shared)
844 AC_ARG_ENABLE(shared, 844 AC_ARG_ENABLE(shared,
845 AS_HELP_STRING([--enable-shared], [disable/enable building shared python library])) 845 AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
846 846
847 if test -z "$enable_shared" 847 if test -z "$enable_shared"
848 then 848 then
849 case $ac_sys_system in 849 case $ac_sys_system in
850 CYGWIN*) 850 CYGWIN*)
851 enable_shared="yes";; 851 enable_shared="yes";;
852 *) 852 *)
853 enable_shared="no";; 853 enable_shared="no";;
854 esac 854 esac
855 fi 855 fi
856 AC_MSG_RESULT($enable_shared) 856 AC_MSG_RESULT($enable_shared)
857 857
858 AC_MSG_CHECKING(for --enable-profiling) 858 AC_MSG_CHECKING(for --enable-profiling)
(...skipping 24 matching lines...) Expand all
883 # extra variable BLDLIBRARY against which Python and the extension 883 # extra variable BLDLIBRARY against which Python and the extension
884 # modules are linked, BLDLIBRARY. This is normally the same as 884 # modules are linked, BLDLIBRARY. This is normally the same as
885 # LDLIBRARY, but empty for MacOSX framework builds. 885 # LDLIBRARY, but empty for MacOSX framework builds.
886 if test "$enable_framework" 886 if test "$enable_framework"
887 then 887 then
888 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 888 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
889 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" 889 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
890 BLDLIBRARY='' 890 BLDLIBRARY=''
891 else 891 else
892 BLDLIBRARY='$(LDLIBRARY)' 892 BLDLIBRARY='$(LDLIBRARY)'
893 fi 893 fi
894 894
895 # Other platforms follow 895 # Other platforms follow
896 if test $enable_shared = "yes"; then 896 if test $enable_shared = "yes"; then
897 AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library .]) 897 AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library .])
898 case $ac_sys_system in 898 case $ac_sys_system in
899 CYGWIN*) 899 CYGWIN*)
900 LDLIBRARY='libpython$(LDVERSION).dll.a' 900 LDLIBRARY='libpython$(LDVERSION).dll.a'
901 DLLLIBRARY='libpython$(LDVERSION).dll' 901 DLLLIBRARY='libpython$(LDVERSION).dll'
902 ;; 902 ;;
903 SunOS*) 903 SunOS*)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 *) LN=ln;; 1012 *) LN=ln;;
1013 esac 1013 esac
1014 fi 1014 fi
1015 1015
1016 # For calculating the .so ABI tag. 1016 # For calculating the .so ABI tag.
1017 AC_SUBST(ABIFLAGS) 1017 AC_SUBST(ABIFLAGS)
1018 ABIFLAGS="" 1018 ABIFLAGS=""
1019 1019
1020 # Check for --with-pydebug 1020 # Check for --with-pydebug
1021 AC_MSG_CHECKING(for --with-pydebug) 1021 AC_MSG_CHECKING(for --with-pydebug)
1022 AC_ARG_WITH(pydebug, 1022 AC_ARG_WITH(pydebug,
1023 AS_HELP_STRING([--with-pydebug], [build with Py_DEBUG defined]), 1023 AS_HELP_STRING([--with-pydebug], [build with Py_DEBUG defined]),
1024 [ 1024 [
1025 if test "$withval" != no 1025 if test "$withval" != no
1026 then 1026 then
1027 AC_DEFINE(Py_DEBUG, 1, 1027 AC_DEFINE(Py_DEBUG, 1,
1028 [Define if you want to build an interpreter with many run-time checks.]) 1028 [Define if you want to build an interpreter with many run-time checks.])
1029 AC_MSG_RESULT(yes); 1029 AC_MSG_RESULT(yes);
1030 Py_DEBUG='true' 1030 Py_DEBUG='true'
1031 ABIFLAGS="${ABIFLAGS}d" 1031 ABIFLAGS="${ABIFLAGS}d"
1032 else AC_MSG_RESULT(no); Py_DEBUG='false' 1032 else AC_MSG_RESULT(no); Py_DEBUG='false'
1033 fi], 1033 fi],
1034 [AC_MSG_RESULT(no)]) 1034 [AC_MSG_RESULT(no)])
1035 1035
1036 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 1036 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
1037 # merged with this chunk of code? 1037 # merged with this chunk of code?
1038 1038
1039 # Optimizer/debugger flags 1039 # Optimizer/debugger flags
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 ;; 1174 ;;
1175 # is there any other compiler on Darwin besides gcc? 1175 # is there any other compiler on Darwin besides gcc?
1176 Darwin*) 1176 Darwin*)
1177 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 1177 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
1178 # used to be here, but non-Apple gcc doesn't accept them. 1178 # used to be here, but non-Apple gcc doesn't accept them.
1179 if test "${CC}" = gcc 1179 if test "${CC}" = gcc
1180 then 1180 then
1181 AC_MSG_CHECKING(which compiler should be used) 1181 AC_MSG_CHECKING(which compiler should be used)
1182 case "${UNIVERSALSDK}" in 1182 case "${UNIVERSALSDK}" in
1183 */MacOSX10.4u.sdk) 1183 */MacOSX10.4u.sdk)
1184 » » » # Build using 10.4 SDK, force usage of gcc when the 1184 » » » # Build using 10.4 SDK, force usage of gcc when the
1185 # compiler is gcc, otherwise the user will get very 1185 # compiler is gcc, otherwise the user will get very
1186 # confusing error messages when building on OSX 10.6 1186 # confusing error messages when building on OSX 10.6
1187 CC=gcc-4.0 1187 CC=gcc-4.0
1188 CPP=cpp-4.0 1188 CPP=cpp-4.0
1189 ;; 1189 ;;
1190 esac 1190 esac
1191 AC_MSG_RESULT($CC) 1191 AC_MSG_RESULT($CC)
1192 fi 1192 fi
1193 1193
1194 1194
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 1235
1236 # Calculate the right deployment target for this build. 1236 # Calculate the right deployment target for this build.
1237 # 1237 #
1238 cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/' ` 1238 cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/' `
1239 if test ${cur_target} '>' 10.2 && \ 1239 if test ${cur_target} '>' 10.2 && \
1240 test ${cur_target} '<' 10.6 1240 test ${cur_target} '<' 10.6
1241 then 1241 then
1242 cur_target=10.3 1242 cur_target=10.3
1243 if test ${enable_universalsdk}; then 1243 if test ${enable_universalsdk}; then
1244 if test "${UNIVERSAL_ARCHS}" = "all"; then 1244 if test "${UNIVERSAL_ARCHS}" = "all"; then
1245 » » » » # Ensure that the default platform for a 1245 » » » » # Ensure that the default platform for a
1246 » » » » # 4-way universal build is OSX 10.5, 1246 » » » » # 4-way universal build is OSX 10.5,
1247 » » » » # that's the first OS release where 1247 » » » » # that's the first OS release where
1248 # 4-way builds make sense. 1248 # 4-way builds make sense.
1249 cur_target='10.5' 1249 cur_target='10.5'
1250 1250
1251 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then 1251 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
1252 cur_target='10.5' 1252 cur_target='10.5'
1253 1253
1254 elif test "${UNIVERSAL_ARCHS}" = "intel"; then 1254 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
1255 cur_target='10.5' 1255 cur_target='10.5'
1256 1256
1257 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then 1257 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
1258 cur_target='10.5' 1258 cur_target='10.5'
1259 fi 1259 fi
1260 else 1260 else
1261 if test `/usr/bin/arch` = "i386"; then 1261 if test `/usr/bin/arch` = "i386"; then
1262 # On Intel macs default to a deployment 1262 # On Intel macs default to a deployment
1263 # target of 10.4, that's the first OSX 1263 # target of 10.4, that's the first OSX
1264 # release with Intel support. 1264 # release with Intel support.
1265 cur_target="10.4" 1265 cur_target="10.4"
1266 fi 1266 fi
1267 fi 1267 fi
1268 fi 1268 fi
1269 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_ target}} 1269 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_ target}}
1270 » 1270
1271 » # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 1271 » # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
1272 # environment with a value that is the same as what we'll use 1272 # environment with a value that is the same as what we'll use
1273 # in the Makefile to ensure that we'll get the same compiler 1273 # in the Makefile to ensure that we'll get the same compiler
1274 # environment during configure and build time. 1274 # environment during configure and build time.
1275 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 1275 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
1276 export MACOSX_DEPLOYMENT_TARGET 1276 export MACOSX_DEPLOYMENT_TARGET
1277 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 1277 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
1278 1278
1279 ;; 1279 ;;
1280 esac 1280 esac
1281 ;; 1281 ;;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 } 1342 }
1343 ]])],[ 1343 ]])],[
1344 ac_cv_pthread_is_default=yes 1344 ac_cv_pthread_is_default=yes
1345 ac_cv_kthread=no 1345 ac_cv_kthread=no
1346 ac_cv_pthread=no 1346 ac_cv_pthread=no
1347 ],[ac_cv_pthread_is_default=no],[ac_cv_pthread_is_default=no]) 1347 ],[ac_cv_pthread_is_default=no],[ac_cv_pthread_is_default=no])
1348 ]) 1348 ])
1349 AC_MSG_RESULT($ac_cv_pthread_is_default) 1349 AC_MSG_RESULT($ac_cv_pthread_is_default)
1350 1350
1351 1351
1352 if test $ac_cv_pthread_is_default = yes 1352 if test $ac_cv_pthread_is_default = yes
1353 then 1353 then
1354 ac_cv_kpthread=no 1354 ac_cv_kpthread=no
1355 else 1355 else
1356 # -Kpthread, if available, provides the right #defines 1356 # -Kpthread, if available, provides the right #defines
1357 # and linker options to make pthread_create available 1357 # and linker options to make pthread_create available
1358 # Some compilers won't report that they do not support -Kpthread, 1358 # Some compilers won't report that they do not support -Kpthread,
1359 # so we need to run a program to see whether it really made the 1359 # so we need to run a program to see whether it really made the
1360 # function available. 1360 # function available.
1361 AC_MSG_CHECKING(whether $CC accepts -Kpthread) 1361 AC_MSG_CHECKING(whether $CC accepts -Kpthread)
1362 AC_CACHE_VAL(ac_cv_kpthread, 1362 AC_CACHE_VAL(ac_cv_kpthread,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 # If we have set a CC compiler flag for thread support then 1438 # If we have set a CC compiler flag for thread support then
1439 # check if it works for CXX, too. 1439 # check if it works for CXX, too.
1440 ac_cv_cxx_thread=no 1440 ac_cv_cxx_thread=no
1441 if test ! -z "$CXX" 1441 if test ! -z "$CXX"
1442 then 1442 then
1443 AC_MSG_CHECKING(whether $CXX also accepts flags for thread support) 1443 AC_MSG_CHECKING(whether $CXX also accepts flags for thread support)
1444 ac_save_cxx="$CXX" 1444 ac_save_cxx="$CXX"
1445 1445
1446 if test "$ac_cv_kpthread" = "yes" 1446 if test "$ac_cv_kpthread" = "yes"
1447 then 1447 then
1448 CXX="$CXX -Kpthread" 1448 CXX="$CXX -Kpthread"
1449 ac_cv_cxx_thread=yes 1449 ac_cv_cxx_thread=yes
1450 elif test "$ac_cv_kthread" = "yes" 1450 elif test "$ac_cv_kthread" = "yes"
1451 then 1451 then
1452 CXX="$CXX -Kthread" 1452 CXX="$CXX -Kthread"
1453 ac_cv_cxx_thread=yes 1453 ac_cv_cxx_thread=yes
1454 elif test "$ac_cv_pthread" = "yes" 1454 elif test "$ac_cv_pthread" = "yes"
1455 then 1455 then
1456 CXX="$CXX -pthread" 1456 CXX="$CXX -pthread"
1457 ac_cv_cxx_thread=yes 1457 ac_cv_cxx_thread=yes
1458 fi 1458 fi
1459 1459
1460 if test $ac_cv_cxx_thread = yes 1460 if test $ac_cv_cxx_thread = yes
1461 then 1461 then
1462 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 1462 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
1463 $CXX -c conftest.$ac_ext 2>&5 1463 $CXX -c conftest.$ac_ext 2>&5
1464 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 1464 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
1465 && test -s conftest$ac_exeext && ./conftest$ac_exeext 1465 && test -s conftest$ac_exeext && ./conftest$ac_exeext
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 AC_MSG_RESULT($sol_lfs_bug) 1587 AC_MSG_RESULT($sol_lfs_bug)
1588 if test "$sol_lfs_bug" = "yes"; then 1588 if test "$sol_lfs_bug" = "yes"; then
1589 use_lfs=no 1589 use_lfs=no
1590 fi 1590 fi
1591 1591
1592 if test "$use_lfs" = "yes"; then 1592 if test "$use_lfs" = "yes"; then
1593 # Two defines needed to enable largefile support on various platforms 1593 # Two defines needed to enable largefile support on various platforms
1594 # These may affect some typedefs 1594 # These may affect some typedefs
1595 case $ac_sys_system/$ac_sys_release in 1595 case $ac_sys_system/$ac_sys_release in
1596 AIX*) 1596 AIX*)
1597 AC_DEFINE(_LARGE_FILES, 1, 1597 AC_DEFINE(_LARGE_FILES, 1,
1598 [This must be defined on AIX systems to enable large file support.]) 1598 [This must be defined on AIX systems to enable large file support.])
1599 ;; 1599 ;;
1600 esac 1600 esac
1601 AC_DEFINE(_LARGEFILE_SOURCE, 1, 1601 AC_DEFINE(_LARGEFILE_SOURCE, 1,
1602 [This must be defined on some systems to enable large file support.]) 1602 [This must be defined on some systems to enable large file support.])
1603 AC_DEFINE(_FILE_OFFSET_BITS, 64, 1603 AC_DEFINE(_FILE_OFFSET_BITS, 64,
1604 [This must be set to 64 on some systems to enable large file support.]) 1604 [This must be set to 64 on some systems to enable large file support.])
1605 fi 1605 fi
1606 1606
1607 # Add some code to confdefs.h so that the test for off_t works on SCO 1607 # Add some code to confdefs.h so that the test for off_t works on SCO
1608 cat >> confdefs.h <<\EOF 1608 cat >> confdefs.h <<\EOF
1609 #if defined(SCO_DS) 1609 #if defined(SCO_DS)
1610 #undef _OFF_T 1610 #undef _OFF_T
1611 #endif 1611 #endif
(...skipping 23 matching lines...) Expand all
1635 AC_CHECK_SIZEOF(short, 2) 1635 AC_CHECK_SIZEOF(short, 2)
1636 AC_CHECK_SIZEOF(float, 4) 1636 AC_CHECK_SIZEOF(float, 4)
1637 AC_CHECK_SIZEOF(double, 8) 1637 AC_CHECK_SIZEOF(double, 8)
1638 AC_CHECK_SIZEOF(fpos_t, 4) 1638 AC_CHECK_SIZEOF(fpos_t, 4)
1639 AC_CHECK_SIZEOF(size_t, 4) 1639 AC_CHECK_SIZEOF(size_t, 4)
1640 AC_CHECK_SIZEOF(pid_t, 4) 1640 AC_CHECK_SIZEOF(pid_t, 4)
1641 1641
1642 AC_MSG_CHECKING(for long long support) 1642 AC_MSG_CHECKING(for long long support)
1643 have_long_long=no 1643 have_long_long=no
1644 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[ 1644 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[
1645 AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.]) 1645 AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.])
1646 have_long_long=yes 1646 have_long_long=yes
1647 ],[]) 1647 ],[])
1648 AC_MSG_RESULT($have_long_long) 1648 AC_MSG_RESULT($have_long_long)
1649 if test "$have_long_long" = yes ; then 1649 if test "$have_long_long" = yes ; then
1650 AC_CHECK_SIZEOF(long long, 8) 1650 AC_CHECK_SIZEOF(long long, 8)
1651 fi 1651 fi
1652 1652
1653 AC_MSG_CHECKING(for long double support) 1653 AC_MSG_CHECKING(for long double support)
1654 have_long_double=no 1654 have_long_double=no
1655 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]]) ],[ 1655 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]]) ],[
1656 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.] ) 1656 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.] )
1657 have_long_double=yes 1657 have_long_double=yes
1658 ],[]) 1658 ],[])
1659 AC_MSG_RESULT($have_long_double) 1659 AC_MSG_RESULT($have_long_double)
1660 if test "$have_long_double" = yes ; then 1660 if test "$have_long_double" = yes ; then
1661 AC_CHECK_SIZEOF(long double, 16) 1661 AC_CHECK_SIZEOF(long double, 16)
1662 fi 1662 fi
1663 1663
1664 1664
1665 AC_MSG_CHECKING(for _Bool support) 1665 AC_MSG_CHECKING(for _Bool support)
1666 have_c99_bool=no 1666 have_c99_bool=no
1667 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool x; x = (_Bool)0;]])],[ 1667 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool x; x = (_Bool)0;]])],[
1668 AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.]) 1668 AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.])
1669 have_c99_bool=yes 1669 have_c99_bool=yes
1670 ],[]) 1670 ],[])
1671 AC_MSG_RESULT($have_c99_bool) 1671 AC_MSG_RESULT($have_c99_bool)
1672 if test "$have_c99_bool" = yes ; then 1672 if test "$have_c99_bool" = yes ; then
1673 AC_CHECK_SIZEOF(_Bool, 1) 1673 AC_CHECK_SIZEOF(_Bool, 1)
1674 fi 1674 fi
1675 1675
1676 AC_CHECK_TYPES(uintptr_t, 1676 AC_CHECK_TYPES(uintptr_t,
1677 [AC_CHECK_SIZEOF(uintptr_t, 4)], 1677 [AC_CHECK_SIZEOF(uintptr_t, 4)],
1678 [], [#ifdef HAVE_STDINT_H 1678 [], [#ifdef HAVE_STDINT_H
1679 #include <stdint.h> 1679 #include <stdint.h>
1680 #endif 1680 #endif
1681 #ifdef HAVE_INTTYPES_H 1681 #ifdef HAVE_INTTYPES_H
1682 #include <inttypes.h> 1682 #include <inttypes.h>
1683 #endif]) 1683 #endif])
1684 1684
1685 AC_CHECK_SIZEOF(off_t, [], [ 1685 AC_CHECK_SIZEOF(off_t, [], [
1686 #ifdef HAVE_SYS_TYPES_H 1686 #ifdef HAVE_SYS_TYPES_H
1687 #include <sys/types.h> 1687 #include <sys/types.h>
1688 #endif 1688 #endif
1689 ]) 1689 ])
1690 1690
1691 AC_MSG_CHECKING(whether to enable large file support) 1691 AC_MSG_CHECKING(whether to enable large file support)
1692 if test "$have_long_long" = yes 1692 if test "$have_long_long" = yes
1693 then 1693 then
1694 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 1694 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
1695 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 1695 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
1696 AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1, 1696 AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
1697 [Defined to enable large file support when an off_t is bigger than a long 1697 [Defined to enable large file support when an off_t is bigger than a long
1698 and long long is available and at least as big as an off_t. You may need 1698 and long long is available and at least as big as an off_t. You may need
1699 to add some flags for configuration and compilation to enable this mode. 1699 to add some flags for configuration and compilation to enable this mode.
1700 (For Solaris and Linux, the necessary defines are already defined.)]) 1700 (For Solaris and Linux, the necessary defines are already defined.)])
1701 AC_MSG_RESULT(yes) 1701 AC_MSG_RESULT(yes)
1702 else 1702 else
1703 AC_MSG_RESULT(no) 1703 AC_MSG_RESULT(no)
1704 fi 1704 fi
1705 else 1705 else
1706 AC_MSG_RESULT(no) 1706 AC_MSG_RESULT(no)
(...skipping 28 matching lines...) Expand all
1735 AC_CHECK_SIZEOF(pthread_t, [], [ 1735 AC_CHECK_SIZEOF(pthread_t, [], [
1736 #ifdef HAVE_PTHREAD_H 1736 #ifdef HAVE_PTHREAD_H
1737 #include <pthread.h> 1737 #include <pthread.h>
1738 #endif 1738 #endif
1739 ]) 1739 ])
1740 fi 1740 fi
1741 CC="$ac_save_cc" 1741 CC="$ac_save_cc"
1742 1742
1743 AC_SUBST(OTHER_LIBTOOL_OPT) 1743 AC_SUBST(OTHER_LIBTOOL_OPT)
1744 case $ac_sys_system/$ac_sys_release in 1744 case $ac_sys_system/$ac_sys_release in
1745 Darwin/@<:@01567@:>@\..*) 1745 Darwin/@<:@01567@:>@\..*)
1746 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 1746 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
1747 ;; 1747 ;;
1748 Darwin/*) 1748 Darwin/*)
1749 OTHER_LIBTOOL_OPT="" 1749 OTHER_LIBTOOL_OPT=""
1750 ;; 1750 ;;
1751 esac 1751 esac
1752 1752
1753 1753
1754 ARCH_RUN_32BIT="" 1754 ARCH_RUN_32BIT=""
1755 AC_SUBST(LIBTOOL_CRUFT) 1755 AC_SUBST(LIBTOOL_CRUFT)
1756 case $ac_sys_system/$ac_sys_release in 1756 case $ac_sys_system/$ac_sys_release in
1757 Darwin/@<:@01567@:>@\..*) 1757 Darwin/@<:@01567@:>@\..*)
1758 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 1758 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
1759 if test "${enable_universalsdk}"; then 1759 if test "${enable_universalsdk}"; then
1760 : 1760 :
1761 else 1761 else
1762 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 1762 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
1763 fi 1763 fi
1764 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Ver sions/$(VERSION)/$(PYTHONFRAMEWORK)' 1764 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Ver sions/$(VERSION)/$(PYTHONFRAMEWORK)'
1765 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_ver sion $(VERSION)';; 1765 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_ver sion $(VERSION)';;
1766 Darwin/*) 1766 Darwin/*)
1767 gcc_version=`gcc -dumpversion` 1767 gcc_version=`gcc -dumpversion`
1768 if test ${gcc_version} '<' 4.0 1768 if test ${gcc_version} '<' 4.0
1769 then 1769 then
1770 LIBTOOL_CRUFT="-lcc_dynamic" 1770 LIBTOOL_CRUFT="-lcc_dynamic"
1771 else 1771 else
1772 LIBTOOL_CRUFT="" 1772 LIBTOOL_CRUFT=""
1773 fi 1773 fi
1774 AC_RUN_IFELSE([AC_LANG_SOURCE([[ 1774 AC_RUN_IFELSE([AC_LANG_SOURCE([[
1775 #include <unistd.h> 1775 #include <unistd.h>
1776 int main(int argc, char*argv[]) 1776 int main(int argc, char*argv[])
1777 { 1777 {
1778 if (sizeof(long) == 4) { 1778 if (sizeof(long) == 4) {
1779 return 0; 1779 return 0;
1780 } else { 1780 } else {
1781 return 1; 1781 return 1;
1782 } 1782 }
1783 } 1783 }
1784 ]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes]) 1784 ]])],[ac_osx_32bit=yes],[ac_osx_32bit=no],[ac_osx_32bit=yes])
1785 1785
1786 if test "${ac_osx_32bit}" = "yes"; then 1786 if test "${ac_osx_32bit}" = "yes"; then
1787 case `/usr/bin/arch` in 1787 case `/usr/bin/arch` in
1788 » i386) 1788 » i386)
1789 » » MACOSX_DEFAULT_ARCH="i386" 1789 » » MACOSX_DEFAULT_ARCH="i386"
1790 ;; 1790 ;;
1791 » ppc) 1791 » ppc)
1792 » » MACOSX_DEFAULT_ARCH="ppc" 1792 » » MACOSX_DEFAULT_ARCH="ppc"
1793 ;; 1793 ;;
1794 *) 1794 *)
1795 AC_MSG_ERROR([Unexpected output of 'arch' on OSX]) 1795 AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
1796 ;; 1796 ;;
1797 esac 1797 esac
1798 else 1798 else
1799 case `/usr/bin/arch` in 1799 case `/usr/bin/arch` in
1800 » i386) 1800 » i386)
1801 » » MACOSX_DEFAULT_ARCH="x86_64" 1801 » » MACOSX_DEFAULT_ARCH="x86_64"
1802 ;; 1802 ;;
1803 » ppc) 1803 » ppc)
1804 » » MACOSX_DEFAULT_ARCH="ppc64" 1804 » » MACOSX_DEFAULT_ARCH="ppc64"
1805 ;; 1805 ;;
1806 *) 1806 *)
1807 AC_MSG_ERROR([Unexpected output of 'arch' on OSX]) 1807 AC_MSG_ERROR([Unexpected output of 'arch' on OSX])
1808 ;; 1808 ;;
1809 esac 1809 esac
1810 1810
1811 #ARCH_RUN_32BIT="true" 1811 #ARCH_RUN_32BIT="true"
1812 fi 1812 fi
1813 1813
1814 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEF AULT_ARCH}" 1814 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEF AULT_ARCH}"
1815 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Ver sions/$(VERSION)/$(PYTHONFRAMEWORK)' 1815 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Ver sions/$(VERSION)/$(PYTHONFRAMEWORK)'
1816 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_ver sion $(VERSION)';; 1816 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_ver sion $(VERSION)';;
1817 esac 1817 esac
1818 1818
1819 AC_MSG_CHECKING(for --enable-framework) 1819 AC_MSG_CHECKING(for --enable-framework)
1820 if test "$enable_framework" 1820 if test "$enable_framework"
1821 then 1821 then
1822 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 1822 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
1823 » # -F. is needed to allow linking to the framework while 1823 » # -F. is needed to allow linking to the framework while
1824 # in the build location. 1824 # in the build location.
1825 » AC_DEFINE(WITH_NEXT_FRAMEWORK, 1, 1825 » AC_DEFINE(WITH_NEXT_FRAMEWORK, 1,
1826 [Define if you want to produce an OpenStep/Rhapsody framework 1826 [Define if you want to produce an OpenStep/Rhapsody framework
1827 (shared library plus accessory files).]) 1827 (shared library plus accessory files).])
1828 AC_MSG_RESULT(yes) 1828 AC_MSG_RESULT(yes)
1829 if test $enable_shared = "yes" 1829 if test $enable_shared = "yes"
1830 then 1830 then
1831 AC_MSG_ERROR([Specifying both --enable-shared and --enable-frame work is not supported, use only --enable-framework instead]) 1831 AC_MSG_ERROR([Specifying both --enable-shared and --enable-frame work is not supported, use only --enable-framework instead])
1832 fi 1832 fi
1833 else 1833 else
1834 AC_MSG_RESULT(no) 1834 AC_MSG_RESULT(no)
1835 fi 1835 fi
1836 1836
1837 AC_MSG_CHECKING(for dyld) 1837 AC_MSG_CHECKING(for dyld)
1838 case $ac_sys_system/$ac_sys_release in 1838 case $ac_sys_system/$ac_sys_release in
1839 Darwin/*) 1839 Darwin/*)
1840 » AC_DEFINE(WITH_DYLD, 1, 1840 » AC_DEFINE(WITH_DYLD, 1,
1841 [Define if you want to use the new-style (Openstep, Rhapsody, MacOS) 1841 [Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
1842 dynamic linker (dyld) instead of the old-style (NextStep) dynamic 1842 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
1843 linker (rld). Dyld is necessary to support frameworks.]) 1843 linker (rld). Dyld is necessary to support frameworks.])
1844 AC_MSG_RESULT(always on for Darwin) 1844 AC_MSG_RESULT(always on for Darwin)
1845 ;; 1845 ;;
1846 *) 1846 *)
1847 AC_MSG_RESULT(no) 1847 AC_MSG_RESULT(no)
1848 ;; 1848 ;;
1849 esac 1849 esac
1850 1850
(...skipping 13 matching lines...) Expand all
1864 AC_MSG_CHECKING(LDSHARED) 1864 AC_MSG_CHECKING(LDSHARED)
1865 if test -z "$LDSHARED" 1865 if test -z "$LDSHARED"
1866 then 1866 then
1867 case $ac_sys_system/$ac_sys_release in 1867 case $ac_sys_system/$ac_sys_release in
1868 AIX*) 1868 AIX*)
1869 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Mo dules/python.exp" 1869 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Mo dules/python.exp"
1870 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDE ST)/config/python.exp" 1870 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDE ST)/config/python.exp"
1871 ;; 1871 ;;
1872 IRIX/5*) LDSHARED="ld -shared";; 1872 IRIX/5*) LDSHARED="ld -shared";;
1873 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; 1873 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
1874 » SunOS/5*) 1874 » SunOS/5*)
1875 if test "$GCC" = "yes" ; then 1875 if test "$GCC" = "yes" ; then
1876 LDSHARED='$(CC) -shared' 1876 LDSHARED='$(CC) -shared'
1877 LDCXXSHARED='$(CXX) -shared' 1877 LDCXXSHARED='$(CXX) -shared'
1878 else 1878 else
1879 LDSHARED='$(CC) -G' 1879 LDSHARED='$(CC) -G'
1880 LDCXXSHARED='$(CXX) -G' 1880 LDCXXSHARED='$(CXX) -G'
1881 fi ;; 1881 fi ;;
1882 hp*|HP*) 1882 hp*|HP*)
1883 if test "$GCC" = "yes" ; then 1883 if test "$GCC" = "yes" ; then
1884 LDSHARED='$(CC) -shared' 1884 LDSHARED='$(CC) -shared'
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2036 if test -z "$LINKFORSHARED" 2036 if test -z "$LINKFORSHARED"
2037 then 2037 then
2038 case $ac_sys_system/$ac_sys_release in 2038 case $ac_sys_system/$ac_sys_release in
2039 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 2039 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
2040 hp*|HP*) 2040 hp*|HP*)
2041 LINKFORSHARED="-Wl,-E -Wl,+s";; 2041 LINKFORSHARED="-Wl,-E -Wl,+s";;
2042 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 2042 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2043 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 2043 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
2044 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 2044 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
2045 # -u libsys_s pulls in all symbols in libsys 2045 # -u libsys_s pulls in all symbols in libsys
2046 » Darwin/*) 2046 » Darwin/*)
2047 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 2047 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
2048 if test "$enable_framework" 2048 if test "$enable_framework"
2049 then 2049 then
2050 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Ve rsions/$(VERSION)/$(PYTHONFRAMEWORK)' 2050 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Ve rsions/$(VERSION)/$(PYTHONFRAMEWORK)'
2051 fi 2051 fi
2052 LINKFORSHARED="$LINKFORSHARED";; 2052 LINKFORSHARED="$LINKFORSHARED";;
2053 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 2053 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
2054 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 2054 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
2055 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 2055 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
2056 » FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 2056 » FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
2057 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] 2057 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
2058 then 2058 then
2059 LINKFORSHARED="-Wl,--export-dynamic" 2059 LINKFORSHARED="-Wl,--export-dynamic"
2060 fi;; 2060 fi;;
2061 SunOS/5*) case $CC in 2061 SunOS/5*) case $CC in
2062 *gcc*) 2062 *gcc*)
2063 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 2063 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
2064 then 2064 then
2065 LINKFORSHARED="-Xlinker --export-dynamic" 2065 LINKFORSHARED="-Xlinker --export-dynamic"
2066 fi;; 2066 fi;;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 AC_SUBST(THREADOBJ) 2277 AC_SUBST(THREADOBJ)
2278 if test "$with_threads" = "no" 2278 if test "$with_threads" = "no"
2279 then 2279 then
2280 USE_THREAD_MODULE="#" 2280 USE_THREAD_MODULE="#"
2281 elif test "$ac_cv_pthread_is_default" = yes 2281 elif test "$ac_cv_pthread_is_default" = yes
2282 then 2282 then
2283 AC_DEFINE(WITH_THREAD) 2283 AC_DEFINE(WITH_THREAD)
2284 # Defining _REENTRANT on system with POSIX threads should not hurt. 2284 # Defining _REENTRANT on system with POSIX threads should not hurt.
2285 AC_DEFINE(_REENTRANT) 2285 AC_DEFINE(_REENTRANT)
2286 posix_threads=yes 2286 posix_threads=yes
2287 THREADOBJ="Python/thread.o" 2287 THREADOBJ="Python/thread.o"
2288 elif test "$ac_cv_kpthread" = "yes" 2288 elif test "$ac_cv_kpthread" = "yes"
2289 then 2289 then
2290 CC="$CC -Kpthread" 2290 CC="$CC -Kpthread"
2291 if test "$ac_cv_cxx_thread" = "yes"; then 2291 if test "$ac_cv_cxx_thread" = "yes"; then
2292 CXX="$CXX -Kpthread" 2292 CXX="$CXX -Kpthread"
2293 fi 2293 fi
2294 AC_DEFINE(WITH_THREAD) 2294 AC_DEFINE(WITH_THREAD)
2295 posix_threads=yes 2295 posix_threads=yes
2296 THREADOBJ="Python/thread.o" 2296 THREADOBJ="Python/thread.o"
2297 elif test "$ac_cv_kthread" = "yes" 2297 elif test "$ac_cv_kthread" = "yes"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 LIBS="$LIBS -lcma" 2369 LIBS="$LIBS -lcma"
2370 THREADOBJ="Python/thread.o"],[ 2370 THREADOBJ="Python/thread.o"],[
2371 USE_THREAD_MODULE="#"]) 2371 USE_THREAD_MODULE="#"])
2372 ])])])])]) 2372 ])])])])])
2373 2373
2374 AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) 2374 AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
2375 LIBS="$LIBS -lmpc" 2375 LIBS="$LIBS -lmpc"
2376 THREADOBJ="Python/thread.o" 2376 THREADOBJ="Python/thread.o"
2377 USE_THREAD_MODULE=""]) 2377 USE_THREAD_MODULE=""])
2378 2378
2379 if test "$posix_threads" != "yes"; then 2379 if test "$posix_threads" != "yes"; then
2380 AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD) 2380 AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
2381 LIBS="$LIBS -lthread" 2381 LIBS="$LIBS -lthread"
2382 THREADOBJ="Python/thread.o" 2382 THREADOBJ="Python/thread.o"
2383 USE_THREAD_MODULE=""]) 2383 USE_THREAD_MODULE=""])
2384 fi 2384 fi
2385 fi 2385 fi
2386 2386
2387 if test "$posix_threads" = "yes"; then 2387 if test "$posix_threads" = "yes"; then
2388 if test "$unistd_defines_pthreads" = "no"; then 2388 if test "$unistd_defines_pthreads" = "no"; then
2389 AC_DEFINE(_POSIX_THREADS, 1, 2389 AC_DEFINE(_POSIX_THREADS, 1,
2390 [Define if you have POSIX threads, 2390 [Define if you have POSIX threads,
2391 and your system does not define that.]) 2391 and your system does not define that.])
2392 fi 2392 fi
2393 2393
2394 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 2394 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
2395 case $ac_sys_system/$ac_sys_release in 2395 case $ac_sys_system/$ac_sys_release in
2396 SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1, 2396 SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
2397 [Defined for Solaris 2.6 bug in pthread header.]) 2397 [Defined for Solaris 2.6 bug in pthread header.])
2398 ;; 2398 ;;
2399 SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1, 2399 SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
2400 [Define if the Posix semaphores do not work on your syste m]) 2400 [Define if the Posix semaphores do not work on your syste m])
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 AC_DEFINE(WITH_DOC_STRINGS, 1, 2632 AC_DEFINE(WITH_DOC_STRINGS, 1,
2633 [Define if you want documentation strings in extension modules]) 2633 [Define if you want documentation strings in extension modules])
2634 fi 2634 fi
2635 AC_MSG_RESULT($with_doc_strings) 2635 AC_MSG_RESULT($with_doc_strings)
2636 2636
2637 # Check if eval loop should use timestamp counter profiling 2637 # Check if eval loop should use timestamp counter profiling
2638 AC_MSG_CHECKING(for --with-tsc) 2638 AC_MSG_CHECKING(for --with-tsc)
2639 AC_ARG_WITH(tsc, 2639 AC_ARG_WITH(tsc,
2640 AS_HELP_STRING([--with(out)-tsc],[enable/disable timestamp counter p rofile]),[ 2640 AS_HELP_STRING([--with(out)-tsc],[enable/disable timestamp counter p rofile]),[
2641 if test "$withval" != no 2641 if test "$withval" != no
2642 then 2642 then
2643 AC_DEFINE(WITH_TSC, 1, 2643 AC_DEFINE(WITH_TSC, 1,
2644 [Define to profile with the Pentium timestamp counter]) 2644 [Define to profile with the Pentium timestamp counter])
2645 AC_MSG_RESULT(yes) 2645 AC_MSG_RESULT(yes)
2646 else AC_MSG_RESULT(no) 2646 else AC_MSG_RESULT(no)
2647 fi], 2647 fi],
2648 [AC_MSG_RESULT(no)]) 2648 [AC_MSG_RESULT(no)])
2649 2649
2650 # Check for Python-specific malloc support 2650 # Check for Python-specific malloc support
2651 AC_MSG_CHECKING(for --with-pymalloc) 2651 AC_MSG_CHECKING(for --with-pymalloc)
2652 AC_ARG_WITH(pymalloc, 2652 AC_ARG_WITH(pymalloc,
2653 AS_HELP_STRING([--with(out)-pymalloc], [disable/enable specialized m allocs])) 2653 AS_HELP_STRING([--with(out)-pymalloc], [disable/enable specialized m allocs]))
2654 2654
2655 if test -z "$with_pymalloc" 2655 if test -z "$with_pymalloc"
2656 then 2656 then
2657 with_pymalloc="yes" 2657 with_pymalloc="yes"
2658 fi 2658 fi
2659 if test "$with_pymalloc" != "no" 2659 if test "$with_pymalloc" != "no"
2660 then 2660 then
2661 AC_DEFINE(WITH_PYMALLOC, 1, 2661 AC_DEFINE(WITH_PYMALLOC, 1,
2662 [Define if you want to compile in Python-specific mallocs]) 2662 [Define if you want to compile in Python-specific mallocs])
2663 ABIFLAGS="${ABIFLAGS}m" 2663 ABIFLAGS="${ABIFLAGS}m"
2664 fi 2664 fi
2665 AC_MSG_RESULT($with_pymalloc) 2665 AC_MSG_RESULT($with_pymalloc)
2666 2666
2667 # Check for Valgrind support 2667 # Check for Valgrind support
2668 AC_MSG_CHECKING([for --with-valgrind]) 2668 AC_MSG_CHECKING([for --with-valgrind])
2669 AC_ARG_WITH([valgrind], 2669 AC_ARG_WITH([valgrind],
2670 AS_HELP_STRING([--with-valgrind], [Enable Valgrind support]),, 2670 AS_HELP_STRING([--with-valgrind], [Enable Valgrind support]),,
2671 with_valgrind=no) 2671 with_valgrind=no)
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 AC_DEFINE(HAVE_LCHFLAGS, 1, [Define to 1 if you have the 'lchflags' function.] ) 2928 AC_DEFINE(HAVE_LCHFLAGS, 1, [Define to 1 if you have the 'lchflags' function.] )
2929 fi 2929 fi
2930 2930
2931 dnl Check if system zlib has *Copy() functions 2931 dnl Check if system zlib has *Copy() functions
2932 dnl 2932 dnl
2933 dnl On MacOSX the linker will search for dylibs on the entire linker path 2933 dnl On MacOSX the linker will search for dylibs on the entire linker path
2934 dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first 2934 dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first
2935 dnl to revert to a more traditional unix behaviour and make it possible to 2935 dnl to revert to a more traditional unix behaviour and make it possible to
2936 dnl override the system libz with a local static library of libz. Temporarily 2936 dnl override the system libz with a local static library of libz. Temporarily
2937 dnl add that flag to our CFLAGS as well to ensure that we check the version 2937 dnl add that flag to our CFLAGS as well to ensure that we check the version
2938 dnl of libz that will be used by setup.py. 2938 dnl of libz that will be used by setup.py.
2939 dnl The -L/usr/local/lib is needed as wel to get the same compilation 2939 dnl The -L/usr/local/lib is needed as wel to get the same compilation
2940 dnl environment as setup.py (and leaving it out can cause configure to use the 2940 dnl environment as setup.py (and leaving it out can cause configure to use the
2941 dnl wrong version of the library) 2941 dnl wrong version of the library)
2942 case $ac_sys_system/$ac_sys_release in 2942 case $ac_sys_system/$ac_sys_release in
2943 Darwin/*) 2943 Darwin/*)
2944 _CUR_CFLAGS="${CFLAGS}" 2944 _CUR_CFLAGS="${CFLAGS}"
2945 _CUR_LDFLAGS="${LDFLAGS}" 2945 _CUR_LDFLAGS="${LDFLAGS}"
2946 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 2946 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
2947 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 2947 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
2948 ;; 2948 ;;
2949 esac 2949 esac
2950 2950
2951 AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_ZLIB_COPY, 1, [Define if the zlib li brary has inflateCopy])) 2951 AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_ZLIB_COPY, 1, [Define if the zlib li brary has inflateCopy]))
2952 2952
2953 case $ac_sys_system/$ac_sys_release in 2953 case $ac_sys_system/$ac_sys_release in
2954 Darwin/*) 2954 Darwin/*)
2955 CFLAGS="${_CUR_CFLAGS}" 2955 CFLAGS="${_CUR_CFLAGS}"
2956 LDFLAGS="${_CUR_LDFLAGS}" 2956 LDFLAGS="${_CUR_LDFLAGS}"
2957 ;; 2957 ;;
2958 esac 2958 esac
2959 2959
2960 AC_MSG_CHECKING(for hstrerror) 2960 AC_MSG_CHECKING(for hstrerror)
2961 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 2961 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2962 #include <netdb.h> 2962 #include <netdb.h>
2963 ]], [[void* p = hstrerror; hstrerror(0)]])], 2963 ]], [[void* p = hstrerror; hstrerror(0)]])],
2964 [AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.) 2964 [AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2998 #include <grp.h> 2998 #include <grp.h>
2999 #endif 2999 #endif
3000 ]], [[void* p = setgroups]])], 3000 ]], [[void* p = setgroups]])],
3001 [AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.) 3001 [AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.)
3002 AC_MSG_RESULT(yes)], 3002 AC_MSG_RESULT(yes)],
3003 [AC_MSG_RESULT(no) 3003 [AC_MSG_RESULT(no)
3004 ]) 3004 ])
3005 3005
3006 # check for openpty and forkpty 3006 # check for openpty and forkpty
3007 3007
3008 AC_CHECK_FUNCS(openpty,, 3008 AC_CHECK_FUNCS(openpty,,
3009 AC_CHECK_LIB(util,openpty, 3009 AC_CHECK_LIB(util,openpty,
3010 [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"], 3010 [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"],
3011 AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"]) 3011 AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"])
3012 ) 3012 )
3013 ) 3013 )
3014 AC_CHECK_FUNCS(forkpty,, 3014 AC_CHECK_FUNCS(forkpty,,
3015 AC_CHECK_LIB(util,forkpty, 3015 AC_CHECK_LIB(util,forkpty,
3016 [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"], 3016 [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"],
3017 AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"]) 3017 AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"])
3018 ) 3018 )
3019 ) 3019 )
3020 3020
3021 # Stuff for expat. 3021 # Stuff for expat.
3022 AC_CHECK_FUNCS(memmove) 3022 AC_CHECK_FUNCS(memmove)
3023 3023
3024 # check for long file support functions 3024 # check for long file support functions
3025 AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs) 3025 AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
3026 3026
3027 AC_REPLACE_FUNCS(dup2 getcwd strdup) 3027 AC_REPLACE_FUNCS(dup2 getcwd strdup)
3028 AC_CHECK_FUNCS(getpgrp, 3028 AC_CHECK_FUNCS(getpgrp,
3029 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])], 3029 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],
3030 [AC_DEFINE(GETPGRP_HAVE_ARG, 1, [Define if getpgrp() must be called as getpg rp(0).])], 3030 [AC_DEFINE(GETPGRP_HAVE_ARG, 1, [Define if getpgrp() must be called as getpg rp(0).])],
3031 []) 3031 [])
3032 ) 3032 )
3033 AC_CHECK_FUNCS(setpgrp, 3033 AC_CHECK_FUNCS(setpgrp,
3034 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[setpgrp(0,0);]]) ], 3034 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[setpgrp(0,0);]]) ],
3035 [AC_DEFINE(SETPGRP_HAVE_ARG, 1, [Define if setpgrp() must be called as setpg rp(0, 0).])], 3035 [AC_DEFINE(SETPGRP_HAVE_ARG, 1, [Define if setpgrp() must be called as setpg rp(0, 0).])],
3036 []) 3036 [])
3037 ) 3037 )
3038 AC_CHECK_FUNCS(gettimeofday, 3038 AC_CHECK_FUNCS(gettimeofday,
3039 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]], 3039 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]],
3040 [[gettimeofday((struct timeval*)0,(struct t imezone*)0);]])], 3040 [[gettimeofday((struct timeval*)0,(struct t imezone*)0);]])],
3041 [], 3041 [],
3042 [AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, 3042 [AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1,
3043 [Define if gettimeofday() does not have second (timezone) argument 3043 [Define if gettimeofday() does not have second (timezone) argument
3044 This is the case on Motorola V4 (R40V4.2)]) 3044 This is the case on Motorola V4 (R40V4.2)])
3045 ]) 3045 ])
3046 ) 3046 )
3047 3047
3048 AC_CHECK_FUNCS(clock_gettime, [], [ 3048 AC_CHECK_FUNCS(clock_gettime, [], [
(...skipping 23 matching lines...) Expand all
3072 makedev(major(0),minor(0)); 3072 makedev(major(0),minor(0));
3073 ]])],[ 3073 ]])],[
3074 AC_DEFINE(HAVE_DEVICE_MACROS, 1, 3074 AC_DEFINE(HAVE_DEVICE_MACROS, 1,
3075 [Define to 1 if you have the device macros.]) 3075 [Define to 1 if you have the device macros.])
3076 AC_MSG_RESULT(yes) 3076 AC_MSG_RESULT(yes)
3077 ],[ 3077 ],[
3078 AC_MSG_RESULT(no) 3078 AC_MSG_RESULT(no)
3079 ]) 3079 ])
3080 3080
3081 # On OSF/1 V5.1, getaddrinfo is available, but a define 3081 # On OSF/1 V5.1, getaddrinfo is available, but a define
3082 # for [no]getaddrinfo in netdb.h. 3082 # for [no]getaddrinfo in netdb.h.
3083 AC_MSG_CHECKING(for getaddrinfo) 3083 AC_MSG_CHECKING(for getaddrinfo)
3084 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 3084 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
3085 #include <sys/types.h> 3085 #include <sys/types.h>
3086 #include <sys/socket.h> 3086 #include <sys/socket.h>
3087 #include <netdb.h> 3087 #include <netdb.h>
3088 #include <stdio.h> 3088 #include <stdio.h>
3089 ]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])], 3089 ]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])],
3090 [have_getaddrinfo=yes], 3090 [have_getaddrinfo=yes],
3091 [have_getaddrinfo=no]) 3091 [have_getaddrinfo=no])
3092 AC_MSG_RESULT($have_getaddrinfo) 3092 AC_MSG_RESULT($have_getaddrinfo)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 3231
3232 was_it_defined=no 3232 was_it_defined=no
3233 AC_MSG_CHECKING(whether sys/select.h and sys/time.h may both be included) 3233 AC_MSG_CHECKING(whether sys/select.h and sys/time.h may both be included)
3234 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 3234 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3235 #include <sys/types.h> 3235 #include <sys/types.h>
3236 #include <sys/select.h> 3236 #include <sys/select.h>
3237 #include <sys/time.h> 3237 #include <sys/time.h>
3238 ]], [[;]])],[ 3238 ]], [[;]])],[
3239 AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1, 3239 AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1,
3240 [Define if you can safely include both <sys/select.h> and <sys/time.h> 3240 [Define if you can safely include both <sys/select.h> and <sys/time.h>
3241 (which you can't on SCO ODT 3.0).]) 3241 (which you can't on SCO ODT 3.0).])
3242 was_it_defined=yes 3242 was_it_defined=yes
3243 ],[]) 3243 ],[])
3244 AC_MSG_RESULT($was_it_defined) 3244 AC_MSG_RESULT($was_it_defined)
3245 3245
3246 AC_MSG_CHECKING(for addrinfo) 3246 AC_MSG_CHECKING(for addrinfo)
3247 AC_CACHE_VAL(ac_cv_struct_addrinfo, 3247 AC_CACHE_VAL(ac_cv_struct_addrinfo,
3248 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[struct addrinfo a]] )], 3248 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[struct addrinfo a]] )],
3249 [ac_cv_struct_addrinfo=yes], 3249 [ac_cv_struct_addrinfo=yes],
3250 [ac_cv_struct_addrinfo=no])) 3250 [ac_cv_struct_addrinfo=no]))
3251 AC_MSG_RESULT($ac_cv_struct_addrinfo) 3251 AC_MSG_RESULT($ac_cv_struct_addrinfo)
(...skipping 30 matching lines...) Expand all
3282 AC_MSG_CHECKING(for working signed char) 3282 AC_MSG_CHECKING(for working signed char)
3283 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])], 3283 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])],
3284 [works=yes], 3284 [works=yes],
3285 [AC_DEFINE(signed, , [Define to empty if the keyword does not work.])] 3285 [AC_DEFINE(signed, , [Define to empty if the keyword does not work.])]
3286 ) 3286 )
3287 AC_MSG_RESULT($works) 3287 AC_MSG_RESULT($works)
3288 3288
3289 have_prototypes=no 3289 have_prototypes=no
3290 AC_MSG_CHECKING(for prototypes) 3290 AC_MSG_CHECKING(for prototypes)
3291 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return fo o(10);]])], 3291 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return fo o(10);]])],
3292 [AC_DEFINE(HAVE_PROTOTYPES, 1, 3292 [AC_DEFINE(HAVE_PROTOTYPES, 1,
3293 [Define if your compiler supports function prototype]) 3293 [Define if your compiler supports function prototype])
3294 have_prototypes=yes], 3294 have_prototypes=yes],
3295 [] 3295 []
3296 ) 3296 )
3297 AC_MSG_RESULT($have_prototypes) 3297 AC_MSG_RESULT($have_prototypes)
3298 3298
3299 works=no 3299 works=no
3300 AC_MSG_CHECKING(for variable length prototypes and stdarg.h) 3300 AC_MSG_CHECKING(for variable length prototypes and stdarg.h)
3301 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 3301 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3302 #include <stdarg.h> 3302 #include <stdarg.h>
3303 int foo(int x, ...) { 3303 int foo(int x, ...) {
3304 va_list va; 3304 va_list va;
3305 va_start(va, x); 3305 va_start(va, x);
3306 va_arg(va, int); 3306 va_arg(va, int);
3307 va_arg(va, char *); 3307 va_arg(va, char *);
3308 va_arg(va, double); 3308 va_arg(va, double);
3309 return 0; 3309 return 0;
3310 } 3310 }
3311 ]], [[return foo(10, "", 3.14);]])],[ 3311 ]], [[return foo(10, "", 3.14);]])],[
3312 AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1, 3312 AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1,
3313 [Define if your compiler supports variable length function prototypes 3313 [Define if your compiler supports variable length function prototypes
3314 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>]) 3314 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>])
3315 works=yes 3315 works=yes
3316 ],[]) 3316 ],[])
3317 AC_MSG_RESULT($works) 3317 AC_MSG_RESULT($works)
3318 3318
3319 # check for socketpair 3319 # check for socketpair
3320 AC_MSG_CHECKING(for socketpair) 3320 AC_MSG_CHECKING(for socketpair)
3321 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 3321 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3322 #include <sys/types.h> 3322 #include <sys/types.h>
3323 #include <sys/socket.h> 3323 #include <sys/socket.h>
3324 ]], [[void *x=socketpair]])], 3324 ]], [[void *x=socketpair]])],
(...skipping 14 matching lines...) Expand all
3339 3339
3340 va_list_is_array=no 3340 va_list_is_array=no
3341 AC_MSG_CHECKING(whether va_list is an array) 3341 AC_MSG_CHECKING(whether va_list is an array)
3342 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 3342 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
3343 #ifdef HAVE_STDARG_PROTOTYPES 3343 #ifdef HAVE_STDARG_PROTOTYPES
3344 #include <stdarg.h> 3344 #include <stdarg.h>
3345 #else 3345 #else
3346 #include <varargs.h> 3346 #include <varargs.h>
3347 #endif 3347 #endif
3348 ]], [[va_list list1, list2; list1 = list2;]])],[],[ 3348 ]], [[va_list list1, list2; list1 = list2;]])],[],[
3349 AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind]) 3349 AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind])
3350 va_list_is_array=yes 3350 va_list_is_array=yes
3351 ]) 3351 ])
3352 AC_MSG_RESULT($va_list_is_array) 3352 AC_MSG_RESULT($va_list_is_array)
3353 3353
3354 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 3354 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
3355 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R, 3355 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R,
3356 [Define this if you have some version of gethostbyname_r()]) 3356 [Define this if you have some version of gethostbyname_r()])
3357 3357
3358 AC_CHECK_FUNC(gethostbyname_r, [ 3358 AC_CHECK_FUNC(gethostbyname_r, [
3359 AC_DEFINE(HAVE_GETHOSTBYNAME_R) 3359 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
3434 [], 3434 [],
3435 [AC_CHECK_LIB(ieee, __fpu_control) 3435 [AC_CHECK_LIB(ieee, __fpu_control)
3436 ]) 3436 ])
3437 3437
3438 # Check for --with-fpectl 3438 # Check for --with-fpectl
3439 AC_MSG_CHECKING(for --with-fpectl) 3439 AC_MSG_CHECKING(for --with-fpectl)
3440 AC_ARG_WITH(fpectl, 3440 AC_ARG_WITH(fpectl,
3441 AS_HELP_STRING([--with-fpectl], [enable SIGFPE catching]), 3441 AS_HELP_STRING([--with-fpectl], [enable SIGFPE catching]),
3442 [ 3442 [
3443 if test "$withval" != no 3443 if test "$withval" != no
3444 then 3444 then
3445 AC_DEFINE(WANT_SIGFPE_HANDLER, 1, 3445 AC_DEFINE(WANT_SIGFPE_HANDLER, 1,
3446 [Define if you want SIGFPE handled (see Include/pyfpe.h).]) 3446 [Define if you want SIGFPE handled (see Include/pyfpe.h).])
3447 AC_MSG_RESULT(yes) 3447 AC_MSG_RESULT(yes)
3448 else AC_MSG_RESULT(no) 3448 else AC_MSG_RESULT(no)
3449 fi], 3449 fi],
3450 [AC_MSG_RESULT(no)]) 3450 [AC_MSG_RESULT(no)])
3451 3451
3452 # check for --with-libm=... 3452 # check for --with-libm=...
3453 AC_SUBST(LIBM) 3453 AC_SUBST(LIBM)
3454 case $ac_sys_system in 3454 case $ac_sys_system in
3455 Darwin) ;; 3455 Darwin) ;;
3456 *) LIBM=-lm 3456 *) LIBM=-lm
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
3794 *) 3794 *)
3795 AC_MSG_ERROR([bad value $enable_big_digits for --enable-big-digits; value shou ld be 15 or 30]) ;; 3795 AC_MSG_ERROR([bad value $enable_big_digits for --enable-big-digits; value shou ld be 15 or 30]) ;;
3796 esac 3796 esac
3797 AC_MSG_RESULT($enable_big_digits) 3797 AC_MSG_RESULT($enable_big_digits)
3798 AC_DEFINE_UNQUOTED(PYLONG_BITS_IN_DIGIT, $enable_big_digits, [Define as the pref erred size in bits of long digits]) 3798 AC_DEFINE_UNQUOTED(PYLONG_BITS_IN_DIGIT, $enable_big_digits, [Define as the pref erred size in bits of long digits])
3799 ], 3799 ],
3800 [AC_MSG_RESULT(no value specified)]) 3800 [AC_MSG_RESULT(no value specified)])
3801 3801
3802 # check for wchar.h 3802 # check for wchar.h
3803 AC_CHECK_HEADER(wchar.h, [ 3803 AC_CHECK_HEADER(wchar.h, [
3804 AC_DEFINE(HAVE_WCHAR_H, 1, 3804 AC_DEFINE(HAVE_WCHAR_H, 1,
3805 [Define if the compiler provides a wchar.h header file.]) 3805 [Define if the compiler provides a wchar.h header file.])
3806 wchar_h="yes" 3806 wchar_h="yes"
3807 ], 3807 ],
3808 wchar_h="no" 3808 wchar_h="no"
3809 ) 3809 )
3810 3810
3811 # determine wchar_t size 3811 # determine wchar_t size
3812 if test "$wchar_h" = yes 3812 if test "$wchar_h" = yes
3813 then 3813 then
3814 AC_CHECK_SIZEOF(wchar_t, 4, [#include <wchar.h>]) 3814 AC_CHECK_SIZEOF(wchar_t, 4, [#include <wchar.h>])
3815 fi 3815 fi
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
4087 [ac_cv_broken_poll=yes], 4087 [ac_cv_broken_poll=yes],
4088 [ac_cv_broken_poll=no], 4088 [ac_cv_broken_poll=no],
4089 [ac_cv_broken_poll=no])) 4089 [ac_cv_broken_poll=no]))
4090 AC_MSG_RESULT($ac_cv_broken_poll) 4090 AC_MSG_RESULT($ac_cv_broken_poll)
4091 if test "$ac_cv_broken_poll" = yes 4091 if test "$ac_cv_broken_poll" = yes
4092 then 4092 then
4093 AC_DEFINE(HAVE_BROKEN_POLL, 1, 4093 AC_DEFINE(HAVE_BROKEN_POLL, 1,
4094 [Define if poll() sets errno on invalid file descriptors.]) 4094 [Define if poll() sets errno on invalid file descriptors.])
4095 fi 4095 fi
4096 4096
4097 # Before we can test tzset, we need to check if struct tm has a tm_zone 4097 # Before we can test tzset, we need to check if struct tm has a tm_zone
4098 # (which is not required by ISO C or UNIX spec) and/or if we support 4098 # (which is not required by ISO C or UNIX spec) and/or if we support
4099 # tzname[] 4099 # tzname[]
4100 AC_STRUCT_TIMEZONE 4100 AC_STRUCT_TIMEZONE
4101 4101
4102 # check tzset(3) exists and works like we expect it to 4102 # check tzset(3) exists and works like we expect it to
4103 AC_MSG_CHECKING(for working tzset()) 4103 AC_MSG_CHECKING(for working tzset())
4104 AC_CACHE_VAL(ac_cv_working_tzset, [ 4104 AC_CACHE_VAL(ac_cv_working_tzset, [
4105 AC_RUN_IFELSE([AC_LANG_SOURCE([[ 4105 AC_RUN_IFELSE([AC_LANG_SOURCE([[
4106 #include <stdlib.h> 4106 #include <stdlib.h>
4107 #include <time.h> 4107 #include <time.h>
4108 #include <string.h> 4108 #include <string.h>
4109 4109
4110 #if HAVE_TZNAME 4110 #if HAVE_TZNAME
4111 extern char *tzname[]; 4111 extern char *tzname[];
4112 #endif 4112 #endif
4113 4113
4114 int main() 4114 int main()
4115 { 4115 {
4116 /* Note that we need to ensure that not only does tzset(3) 4116 /* Note that we need to ensure that not only does tzset(3)
4117 do 'something' with localtime, but it works as documented 4117 do 'something' with localtime, but it works as documented
4118 in the library reference and as expected by the test suite. 4118 in the library reference and as expected by the test suite.
4119 This includes making sure that tzname is set properly if 4119 This includes making sure that tzname is set properly if
4120 tm->tm_zone does not exist since it is the alternative way 4120 tm->tm_zone does not exist since it is the alternative way
4121 of getting timezone info. 4121 of getting timezone info.
4122 4122
4123 » Red Hat 6.2 doesn't understand the southern hemisphere 4123 » Red Hat 6.2 doesn't understand the southern hemisphere
4124 after New Year's Day. 4124 after New Year's Day.
4125 */ 4125 */
4126 4126
4127 time_t groundhogday = 1044144000; /* GMT-based */ 4127 time_t groundhogday = 1044144000; /* GMT-based */
4128 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 4128 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
4129 4129
4130 putenv("TZ=UTC+0"); 4130 putenv("TZ=UTC+0");
4131 tzset(); 4131 tzset();
4132 if (localtime(&groundhogday)->tm_hour != 0) 4132 if (localtime(&groundhogday)->tm_hour != 0)
4133 exit(1); 4133 exit(1);
4134 #if HAVE_TZNAME 4134 #if HAVE_TZNAME
4135 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 4135 /* For UTC, tzname[1] is sometimes "", sometimes " " */
4136 » if (strcmp(tzname[0], "UTC") || 4136 » if (strcmp(tzname[0], "UTC") ||
4137 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 4137 (tzname[1][0] != 0 && tzname[1][0] != ' '))
4138 exit(1); 4138 exit(1);
4139 #endif 4139 #endif
4140 4140
4141 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 4141 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
4142 tzset(); 4142 tzset();
4143 if (localtime(&groundhogday)->tm_hour != 19) 4143 if (localtime(&groundhogday)->tm_hour != 19)
4144 exit(1); 4144 exit(1);
4145 #if HAVE_TZNAME 4145 #if HAVE_TZNAME
4146 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 4146 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
4233 WINDOW *w; 4233 WINDOW *w;
4234 w->_flags = 0; 4234 w->_flags = 0;
4235 ]])], 4235 ]])],
4236 [ac_cv_window_has_flags=yes], 4236 [ac_cv_window_has_flags=yes],
4237 [ac_cv_window_has_flags=no])) 4237 [ac_cv_window_has_flags=no]))
4238 AC_MSG_RESULT($ac_cv_window_has_flags) 4238 AC_MSG_RESULT($ac_cv_window_has_flags)
4239 4239
4240 4240
4241 if test "$ac_cv_window_has_flags" = yes 4241 if test "$ac_cv_window_has_flags" = yes
4242 then 4242 then
4243 AC_DEFINE(WINDOW_HAS_FLAGS, 1, 4243 AC_DEFINE(WINDOW_HAS_FLAGS, 1,
4244 [Define if WINDOW in curses.h offers a field _flags.]) 4244 [Define if WINDOW in curses.h offers a field _flags.])
4245 fi 4245 fi
4246 4246
4247 AC_MSG_CHECKING(for is_term_resized) 4247 AC_MSG_CHECKING(for is_term_resized)
4248 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[void *x=is_term_re sized]])], 4248 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[void *x=is_term_re sized]])],
4249 [AC_DEFINE(HAVE_CURSES_IS_TERM_RESIZED, 1, Define if you have the 'is_term_res ized' function.) 4249 [AC_DEFINE(HAVE_CURSES_IS_TERM_RESIZED, 1, Define if you have the 'is_term_res ized' function.)
4250 AC_MSG_RESULT(yes)], 4250 AC_MSG_RESULT(yes)],
4251 [AC_MSG_RESULT(no)] 4251 [AC_MSG_RESULT(no)]
4252 ) 4252 )
4253 4253
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
4431 return (len != 4); 4431 return (len != 4);
4432 } 4432 }
4433 ]])], 4433 ]])],
4434 [ac_cv_broken_mbstowcs=no], 4434 [ac_cv_broken_mbstowcs=no],
4435 [ac_cv_broken_mbstowcs=yes], 4435 [ac_cv_broken_mbstowcs=yes],
4436 [ac_cv_broken_mbstowcs=no])) 4436 [ac_cv_broken_mbstowcs=no]))
4437 AC_MSG_RESULT($ac_cv_broken_mbstowcs) 4437 AC_MSG_RESULT($ac_cv_broken_mbstowcs)
4438 if test "$ac_cv_broken_mbstowcs" = yes 4438 if test "$ac_cv_broken_mbstowcs" = yes
4439 then 4439 then
4440 AC_DEFINE(HAVE_BROKEN_MBSTOWCS, 1, 4440 AC_DEFINE(HAVE_BROKEN_MBSTOWCS, 1,
4441 [Define if mbstowcs(NULL, "text", 0) does not return the number of 4441 [Define if mbstowcs(NULL, "text", 0) does not return the number of
4442 wide chars that would be converted.]) 4442 wide chars that would be converted.])
4443 fi 4443 fi
4444 4444
4445 # Check for --with-computed-gotos 4445 # Check for --with-computed-gotos
4446 AC_MSG_CHECKING(for --with-computed-gotos) 4446 AC_MSG_CHECKING(for --with-computed-gotos)
4447 AC_ARG_WITH(computed-gotos, 4447 AC_ARG_WITH(computed-gotos,
4448 AS_HELP_STRING([--with(out)-computed-gotos], 4448 AS_HELP_STRING([--with(out)-computed-gotos],
4449 [Use computed gotos in evaluation loop (enabled by de fault on supported compilers)]), 4449 [Use computed gotos in evaluation loop (enabled by de fault on supported compilers)]),
4450 [ 4450 [
4451 if test "$withval" = yes 4451 if test "$withval" = yes
4452 then 4452 then
4453 AC_DEFINE(USE_COMPUTED_GOTOS, 1, 4453 AC_DEFINE(USE_COMPUTED_GOTOS, 1,
4454 [Define if you want to use computed gotos in ceval.c.]) 4454 [Define if you want to use computed gotos in ceval.c.])
4455 AC_MSG_RESULT(yes) 4455 AC_MSG_RESULT(yes)
4456 fi 4456 fi
4457 if test "$withval" = no 4457 if test "$withval" = no
4458 then 4458 then
4459 AC_DEFINE(USE_COMPUTED_GOTOS, 0, 4459 AC_DEFINE(USE_COMPUTED_GOTOS, 0,
4460 [Define if you want to use computed gotos in ceval.c.]) 4460 [Define if you want to use computed gotos in ceval.c.])
4461 AC_MSG_RESULT(no) 4461 AC_MSG_RESULT(no)
4462 fi 4462 fi
4463 ], 4463 ],
4464 [AC_MSG_RESULT(no value specified)]) 4464 [AC_MSG_RESULT(no value specified)])
4465 4465
4466 AC_MSG_CHECKING(whether $CC supports computed gotos) 4466 AC_MSG_CHECKING(whether $CC supports computed gotos)
4467 AC_CACHE_VAL(ac_cv_computed_gotos, 4467 AC_CACHE_VAL(ac_cv_computed_gotos,
4468 AC_RUN_IFELSE([AC_LANG_SOURCE([[[ 4468 AC_RUN_IFELSE([AC_LANG_SOURCE([[[
4469 int main(int argc, char **argv) 4469 int main(int argc, char **argv)
4470 { 4470 {
(...skipping 13 matching lines...) Expand all
4484 else 4484 else
4485 ac_cv_computed_gotos=no 4485 ac_cv_computed_gotos=no
4486 fi])) 4486 fi]))
4487 AC_MSG_RESULT($ac_cv_computed_gotos) 4487 AC_MSG_RESULT($ac_cv_computed_gotos)
4488 case "$ac_cv_computed_gotos" in yes*) 4488 case "$ac_cv_computed_gotos" in yes*)
4489 AC_DEFINE(HAVE_COMPUTED_GOTOS, 1, 4489 AC_DEFINE(HAVE_COMPUTED_GOTOS, 1,
4490 [Define if the C compiler supports computed gotos.]) 4490 [Define if the C compiler supports computed gotos.])
4491 esac 4491 esac
4492 4492
4493 case $ac_sys_system in 4493 case $ac_sys_system in
4494 AIX*) 4494 AIX*)
4495 AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PI PE_BUF value.]) ;; 4495 AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PI PE_BUF value.]) ;;
4496 esac 4496 esac
4497 4497
4498 4498
4499 AC_SUBST(THREADHEADERS) 4499 AC_SUBST(THREADHEADERS)
4500 4500
4501 for h in `(cd $srcdir;echo Python/thread_*.h)` 4501 for h in `(cd $srcdir;echo Python/thread_*.h)`
4502 do 4502 do
4503 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 4503 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
4504 done 4504 done
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
4611 if test ! -f Modules/Setup.local 4611 if test ! -f Modules/Setup.local
4612 then 4612 then
4613 echo "# Edit this file for local setup changes" >Modules/Setup.local 4613 echo "# Edit this file for local setup changes" >Modules/Setup.local
4614 fi 4614 fi
4615 4615
4616 echo "creating Makefile" 4616 echo "creating Makefile"
4617 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 4617 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
4618 -s Modules Modules/Setup.config \ 4618 -s Modules Modules/Setup.config \
4619 Modules/Setup.local Modules/Setup 4619 Modules/Setup.local Modules/Setup
4620 mv config.c Modules 4620 mv config.c Modules
OLDNEW
« no previous file with comments | « no previous file | Doc/data/refcounts.dat » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+