Mercurial > cpython-lru_cache-weakref
annotate configure.in @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | 150986ab3db2 |
| children | f8cadfb4a1a2 |
| rev | line source |
|---|---|
|
47297
4d98ebaed278
put a big note on configure.in asking people to run autoconf
Benjamin Peterson <benjamin@python.org>
parents:
47232
diff
changeset
|
1 dnl *********************************************** |
|
4d98ebaed278
put a big note on configure.in asking people to run autoconf
Benjamin Peterson <benjamin@python.org>
parents:
47232
diff
changeset
|
2 dnl * Please run autoreconf to test your changes! * |
|
4d98ebaed278
put a big note on configure.in asking people to run autoconf
Benjamin Peterson <benjamin@python.org>
parents:
47232
diff
changeset
|
3 dnl *********************************************** |
|
49901
39a56d355376
note the version that works
Benjamin Peterson <benjamin@python.org>
parents:
49727
diff
changeset
|
4 dnl NOTE: autoconf 2.64 doesn't seem to work (use 2.61). |
|
25923
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
5 |
|
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
6 # Set VERSION so we only need to edit in one place (i.e., here) |
|
49398
1091008f2cbd
Bump version to 2.7. Regenerate.
Martin v. Löwis <martin@v.loewis.de>
parents:
49074
diff
changeset
|
7 m4_define(PYTHON_VERSION, 2.7) |
|
25923
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
8 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
9 AC_REVISION($Revision$) |
|
43084
20d8d11c9b21
Bump autoconf minimum version to 2.61.
Martin v. Löwis <martin@v.loewis.de>
parents:
42699
diff
changeset
|
10 AC_PREREQ(2.61) |
| 54221 | 11 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) |
|
25923
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
12 AC_CONFIG_SRCDIR([Include/object.h]) |
|
18835
2dea40e40d9d
Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.
Martin v. Löwis <martin@v.loewis.de>
parents:
18827
diff
changeset
|
13 AC_CONFIG_HEADER(pyconfig.h) |
| 1453 | 14 |
|
52599
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
15 dnl Ensure that if prefix is specified, it does not end in a slash. If |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
16 dnl it does, we get path names containing '//' which is both ugly and |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
17 dnl can cause trouble. |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
18 |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
19 dnl Last slash shouldn't be stripped if prefix=/ |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
20 if test "$prefix" != "/"; then |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
21 prefix=`echo "$prefix" | sed -e 's/\/$//g'` |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
22 fi |
|
e5286be24ed5
#1676135: remove trailing slashes from --prefix argument.
Georg Brandl <georg@python.org>
parents:
52453
diff
changeset
|
23 |
|
29460
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
24 dnl This is for stuff that absolutely must end up in pyconfig.h. |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
25 dnl Please use pyport.h instead, if possible. |
|
26147
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
26 AH_TOP([ |
|
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
27 #ifndef Py_PYCONFIG_H |
|
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
28 #define Py_PYCONFIG_H |
|
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
29 ]) |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
30 AH_BOTTOM([ |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
31 /* Define the macros needed if on a UnixWare 7.x system. */ |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
32 #if defined(__USLC__) && defined(__SCO_VERSION__) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
33 #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */ |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
34 #endif |
|
26147
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
35 |
|
65d6f0bfa461
Protect pyconfig.h from multiple inclusions.
Martin v. Löwis <martin@v.loewis.de>
parents:
26146
diff
changeset
|
36 #endif /*Py_PYCONFIG_H*/ |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
37 ]) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
38 |
|
29460
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
39 # We don't use PACKAGE_ variables, and they cause conflicts |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
40 # with other autoconf-based packages that include Python.h |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
41 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
42 rm confdefs.h |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
43 mv confdefs.h.new confdefs.h |
|
9883cf8ff217
Explicitly undefine PACKAGE_ variables. Fixes #746012.
Martin v. Löwis <martin@v.loewis.de>
parents:
29341
diff
changeset
|
44 |
|
5856
c4dd3329fd7d
Set $VERSION here (fixed to 1.5).
Guido van Rossum <guido@python.org>
parents:
5843
diff
changeset
|
45 AC_SUBST(VERSION) |
|
25923
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
46 VERSION=PYTHON_VERSION |
|
5856
c4dd3329fd7d
Set $VERSION here (fixed to 1.5).
Guido van Rossum <guido@python.org>
parents:
5843
diff
changeset
|
47 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
48 AC_SUBST(SOVERSION) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
49 SOVERSION=1.0 |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
50 |
|
24342
2ae0145931f1
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
Martin v. Löwis <martin@v.loewis.de>
parents:
24327
diff
changeset
|
51 # The later defininition of _XOPEN_SOURCE disables certain features |
|
2ae0145931f1
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
Martin v. Löwis <martin@v.loewis.de>
parents:
24327
diff
changeset
|
52 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
|
2ae0145931f1
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
Martin v. Löwis <martin@v.loewis.de>
parents:
24327
diff
changeset
|
53 AC_DEFINE(_GNU_SOURCE, 1, [Define on Linux to activate all library features]) |
|
2ae0145931f1
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
Martin v. Löwis <martin@v.loewis.de>
parents:
24327
diff
changeset
|
54 |
|
28954
9d5a75916971
Patch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis <martin@v.loewis.de>
parents:
28953
diff
changeset
|
55 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
|
9d5a75916971
Patch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis <martin@v.loewis.de>
parents:
28953
diff
changeset
|
56 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
|
9d5a75916971
Patch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis <martin@v.loewis.de>
parents:
28953
diff
changeset
|
57 # them. |
|
9d5a75916971
Patch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis <martin@v.loewis.de>
parents:
28953
diff
changeset
|
58 AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]) |
|
9d5a75916971
Patch #730826: Enable extensions on NetBSD 2.0.
Martin v. Löwis <martin@v.loewis.de>
parents:
28953
diff
changeset
|
59 |
|
29737
a5e7336c008d
FreeBSD 5.x has moved some library routines and typedefs outside the
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents:
29630
diff
changeset
|
60 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
|
a5e7336c008d
FreeBSD 5.x has moved some library routines and typedefs outside the
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents:
29630
diff
changeset
|
61 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
|
a5e7336c008d
FreeBSD 5.x has moved some library routines and typedefs outside the
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents:
29630
diff
changeset
|
62 # them. |
|
a5e7336c008d
FreeBSD 5.x has moved some library routines and typedefs outside the
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents:
29630
diff
changeset
|
63 AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features]) |
|
a5e7336c008d
FreeBSD 5.x has moved some library routines and typedefs outside the
Andrew MacIntyre <andymac@bullseye.apana.org.au>
parents:
29630
diff
changeset
|
64 |
|
33097
c70c33f69a44
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
33063
diff
changeset
|
65 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
|
c70c33f69a44
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
33063
diff
changeset
|
66 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
|
c70c33f69a44
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
33063
diff
changeset
|
67 AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int]) |
|
c70c33f69a44
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
33063
diff
changeset
|
68 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
69 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
70 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
71 # them. |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
72 AC_DEFINE(_DARWIN_C_SOURCE, 1, [Define on Darwin to activate all library features]) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
73 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
74 |
|
26146
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
75 define_xopen_source=yes |
|
24342
2ae0145931f1
Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
Martin v. Löwis <martin@v.loewis.de>
parents:
24327
diff
changeset
|
76 |
|
17122
9e6e4f5e5604
Add CONFIG_ARGS Makefile variable (saves the arguments passed
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17103
diff
changeset
|
77 # Arguments passed to configure. |
|
9e6e4f5e5604
Add CONFIG_ARGS Makefile variable (saves the arguments passed
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17103
diff
changeset
|
78 AC_SUBST(CONFIG_ARGS) |
|
9e6e4f5e5604
Add CONFIG_ARGS Makefile variable (saves the arguments passed
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17103
diff
changeset
|
79 CONFIG_ARGS="$ac_configure_args" |
|
9e6e4f5e5604
Add CONFIG_ARGS Makefile variable (saves the arguments passed
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17103
diff
changeset
|
80 |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
81 AC_ARG_ENABLE(universalsdk, |
|
45313
6eb642e0add8
Fix --enable-universalsdk and its comment line so that zsh's flag completion
Brett Cannon <bcannon@gmail.com>
parents:
45118
diff
changeset
|
82 AC_HELP_STRING(--enable-universalsdk@<:@=SDKDIR@:>@, Build against Mac OS X 10.4u SDK (ppc/i386)), |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
83 [ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
84 case $enableval in |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
85 yes) |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
86 enableval=/Developer/SDKs/MacOSX10.4u.sdk |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
87 ;; |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
88 esac |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
89 case $enableval in |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
90 no) |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
91 UNIVERSALSDK= |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
92 enable_universalsdk= |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
93 ;; |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
94 *) |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
95 UNIVERSALSDK=$enableval |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
96 ;; |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
97 esac |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
98 ],[ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
99 UNIVERSALSDK= |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
100 enable_universalsdk= |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
101 ]) |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
102 AC_SUBST(UNIVERSALSDK) |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
103 |
|
47986
ec85b58ad2ba
fix framework install on Mac 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47843
diff
changeset
|
104 ARCH_RUN_32BIT= |
|
ec85b58ad2ba
fix framework install on Mac 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47843
diff
changeset
|
105 AC_SUBST(ARCH_RUN_32BIT) |
|
ec85b58ad2ba
fix framework install on Mac 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47843
diff
changeset
|
106 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
107 UNIVERSAL_ARCHS="32-bit" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
108 AC_MSG_CHECKING(for --with-universal-archs) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
109 AC_ARG_WITH(universal-archs, |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
110 AC_HELP_STRING(--with-universal-archs=ARCH, select architectures for universal build ("32-bit", "64-bit" or "all")), |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
111 [ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
112 AC_MSG_RESULT($withval) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
113 UNIVERSAL_ARCHS="$withval" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
114 ], |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
115 [ |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
116 AC_MSG_RESULT(32-bit) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
117 ]) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
118 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
119 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
120 |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
121 AC_ARG_WITH(framework-name, |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
122 AC_HELP_STRING(--with-framework-name=FRAMEWORK, |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
123 specify an alternate name of the framework built with --enable-framework), |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
124 [ |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
125 PYTHONFRAMEWORK=${withval} |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
126 PYTHONFRAMEWORKDIR=${withval}.framework |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
127 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr '[A-Z]' '[a-z]'` |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
128 ],[ |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
129 PYTHONFRAMEWORK=Python |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
130 PYTHONFRAMEWORKDIR=Python.framework |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
131 PYTHONFRAMEWORKIDENTIFIER=org.python.python |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
132 ]) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
133 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
134 AC_ARG_ENABLE(framework, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
135 AC_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@, Build (MacOSX|Darwin) framework), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
136 [ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
137 case $enableval in |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
138 yes) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
139 enableval=/Library/Frameworks |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
140 esac |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
141 case $enableval in |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
142 no) |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
143 PYTHONFRAMEWORK= |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
144 PYTHONFRAMEWORKDIR=no-framework |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
145 PYTHONFRAMEWORKPREFIX= |
|
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
146 PYTHONFRAMEWORKINSTALLDIR= |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
147 FRAMEWORKINSTALLFIRST= |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
148 FRAMEWORKINSTALLLAST= |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
149 FRAMEWORKALTINSTALLFIRST= |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
150 FRAMEWORKALTINSTALLLAST= |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
151 if test "x${prefix}" = "xNONE"; then |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
152 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
153 else |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
154 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
155 fi |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
156 enable_framework= |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
157 ;; |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
158 *) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
159 PYTHONFRAMEWORKPREFIX=$enableval |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
160 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
161 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
162 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
163 if test "$UNIVERSAL_ARCHS" = "all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
164 then |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
165 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way" |
|
52453
2bff9121be0f
Fix issue where 'make altinstall' or 'make install' would install everything
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
52233
diff
changeset
|
166 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way" |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
167 else |
|
52453
2bff9121be0f
Fix issue where 'make altinstall' or 'make install' would install everything
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
52233
diff
changeset
|
168 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
169 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
170 fi |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
171 |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
172 if test "x${prefix}" = "xNONE" ; then |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
173 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
174 else |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
175 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
176 fi |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
177 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38151
diff
changeset
|
178 |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
179 # Add files for Mac specific code to the list of output |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38151
diff
changeset
|
180 # files: |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
181 AC_CONFIG_FILES(Mac/Makefile) |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
182 AC_CONFIG_FILES(Mac/PythonLauncher/Makefile) |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
183 AC_CONFIG_FILES(Mac/IDLE/Makefile) |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
184 AC_CONFIG_FILES(Mac/Resources/framework/Info.plist) |
|
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
185 AC_CONFIG_FILES(Mac/Resources/app/Info.plist) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
186 esac |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
187 ],[ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
188 PYTHONFRAMEWORK= |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19830
diff
changeset
|
189 PYTHONFRAMEWORKDIR=no-framework |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
190 PYTHONFRAMEWORKPREFIX= |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
191 PYTHONFRAMEWORKINSTALLDIR= |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
192 FRAMEWORKINSTALLFIRST= |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
193 FRAMEWORKINSTALLLAST= |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
194 FRAMEWORKALTINSTALLFIRST= |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
195 FRAMEWORKALTINSTALLLAST= |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
196 if test "x${prefix}" = "xNONE" ; then |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
197 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
198 else |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
199 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" |
|
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
200 fi |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
201 enable_framework= |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
202 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
203 if test "$UNIVERSAL_ARCHS" = "all" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
204 then |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
205 FRAMEWORKINSTALLLAST=update4wayuniversal |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
206 FRAMEWORKALTINSTALLLAST=update4wayuniversal |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
207 fi |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
208 ]) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
209 AC_SUBST(PYTHONFRAMEWORK) |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46560
diff
changeset
|
210 AC_SUBST(PYTHONFRAMEWORKIDENTIFIER) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
211 AC_SUBST(PYTHONFRAMEWORKDIR) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
212 AC_SUBST(PYTHONFRAMEWORKPREFIX) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
213 AC_SUBST(PYTHONFRAMEWORKINSTALLDIR) |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
214 AC_SUBST(FRAMEWORKINSTALLFIRST) |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38219
diff
changeset
|
215 AC_SUBST(FRAMEWORKINSTALLLAST) |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
216 AC_SUBST(FRAMEWORKALTINSTALLFIRST) |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
217 AC_SUBST(FRAMEWORKALTINSTALLLAST) |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38548
diff
changeset
|
218 AC_SUBST(FRAMEWORKUNIXTOOLSPREFIX) |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
219 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
220 ##AC_ARG_WITH(dyld, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
221 ## AC_HELP_STRING(--with-dyld, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
222 ## Use (OpenStep|Rhapsody) dynamic linker)) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
223 ## |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
224 # Set name for machine-dependent library files |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
225 AC_SUBST(MACHDEP) |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
226 AC_MSG_CHECKING(MACHDEP) |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
227 if test -z "$MACHDEP" |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
228 then |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
229 ac_sys_system=`uname -s` |
|
25497
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
230 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
|
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
231 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
232 ac_sys_release=`uname -v` |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
233 else |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
234 ac_sys_release=`uname -r` |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
235 fi |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
236 ac_md_system=`echo $ac_sys_system | |
|
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
237 tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'` |
|
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
238 ac_md_release=`echo $ac_sys_release | |
|
20581
bf03b8e3ef93
Patch from SF bug #473150: configure weaknesses on HP-UX (Michael Piotrowski)
Guido van Rossum <guido@python.org>
parents:
20551
diff
changeset
|
239 tr -d '[/ ]' | sed 's/^[[A-Z]]\.//' | sed 's/\..*//'` |
|
6341
1ed914f8bf0a
Remove plat- prefix from MACHDEP macro;
Guido van Rossum <guido@python.org>
parents:
6263
diff
changeset
|
240 MACHDEP="$ac_md_system$ac_md_release" |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
241 |
|
5207
00ebfa33cc07
Fix typo (missing $ in )
Guido van Rossum <guido@python.org>
parents:
5034
diff
changeset
|
242 case $MACHDEP in |
|
18782
98484ef225f9
Patch #429442 from Jason Tishler: Corrects sys.platform and
Andrew M. Kuchling <amk@amk.ca>
parents:
18735
diff
changeset
|
243 cygwin*) MACHDEP="cygwin";; |
|
21244
1289a0559e5a
sys.platform on Mac OS X is now "darwin", without any version number appended.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21200
diff
changeset
|
244 darwin*) MACHDEP="darwin";; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
245 atheos*) MACHDEP="atheos";; |
|
29838
fe79a5ab392b
Treat irix64 like irix. Fixes #764560. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29804
diff
changeset
|
246 irix646) MACHDEP="irix6";; |
|
6341
1ed914f8bf0a
Remove plat- prefix from MACHDEP macro;
Guido van Rossum <guido@python.org>
parents:
6263
diff
changeset
|
247 '') MACHDEP="unknown";; |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
248 esac |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
249 fi |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
250 |
|
26146
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
251 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
252 # disable features if it is defined, without any means to access these |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
253 # features as extensions. For these systems, we skip the definition of |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
254 # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
255 # some feature, make sure there is no alternative way to access this |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
256 # feature. Also, when using wildcards, make sure you have verified the |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
257 # need for not defining _XOPEN_SOURCE on all systems matching the |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
258 # wildcard, and that the wildcard does not include future systems |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
259 # (which may remove their limitations). |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
260 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
261 case $ac_sys_system/$ac_sys_release in |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
262 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
263 # even though select is a POSIX function. Reported by J. Ribbens. |
|
30627
18e239f23029
Patch #814764: Undefine xopen_source on OpenBSD 3.4. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30540
diff
changeset
|
264 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
|
49066
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
265 OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@ | OpenBSD/4.@<:@0123@:>@) |
|
44387
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
266 define_xopen_source=no |
|
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
267 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is |
|
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
268 # also defined. This can be overridden by defining _BSD_SOURCE |
|
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
269 # As this has a different meaning on Linux, only define it on OpenBSD |
|
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
270 AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features]) |
|
f2922735fb7a
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Martin v. Löwis <martin@v.loewis.de>
parents:
44344
diff
changeset
|
271 ;; |
|
40395
250835dc544a
Disable _XOPEN_SOURCE on NetBSD 1.x.
Martin v. Löwis <martin@v.loewis.de>
parents:
40180
diff
changeset
|
272 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of |
|
250835dc544a
Disable _XOPEN_SOURCE on NetBSD 1.x.
Martin v. Löwis <martin@v.loewis.de>
parents:
40180
diff
changeset
|
273 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by |
|
250835dc544a
Disable _XOPEN_SOURCE on NetBSD 1.x.
Martin v. Löwis <martin@v.loewis.de>
parents:
40180
diff
changeset
|
274 # Marc Recht |
|
49727
4c46323afab6
#4316: fix configure.in markup problem.
Georg Brandl <georg@python.org>
parents:
49640
diff
changeset
|
275 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6@<:@A-S@:>@) |
|
40395
250835dc544a
Disable _XOPEN_SOURCE on NetBSD 1.x.
Martin v. Löwis <martin@v.loewis.de>
parents:
40180
diff
changeset
|
276 define_xopen_source=no;; |
|
28423
e5c008955381
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis <martin@v.loewis.de>
parents:
28422
diff
changeset
|
277 # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
|
e5c008955381
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis <martin@v.loewis.de>
parents:
28422
diff
changeset
|
278 # of union __?sigval. Reported by Stuart Bishop. |
|
e5c008955381
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis <martin@v.loewis.de>
parents:
28422
diff
changeset
|
279 SunOS/5.6) |
|
e5c008955381
Disable _XOPEN_SOURCE for Solaris 2.6. Fixes #690317.
Martin v. Löwis <martin@v.loewis.de>
parents:
28422
diff
changeset
|
280 define_xopen_source=no;; |
|
29072
cd48903e41be
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis <martin@v.loewis.de>
parents:
28983
diff
changeset
|
281 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
|
cd48903e41be
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis <martin@v.loewis.de>
parents:
28983
diff
changeset
|
282 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
|
32008
6e078f7613ad
Record UnixWare 7.1.4 as broken. Fixes #929689.
Martin v. Löwis <martin@v.loewis.de>
parents:
31910
diff
changeset
|
283 # Reconfirmed for 7.1.4 by Martin v. Loewis. |
|
6e078f7613ad
Record UnixWare 7.1.4 as broken. Fixes #929689.
Martin v. Löwis <martin@v.loewis.de>
parents:
31910
diff
changeset
|
284 OpenUNIX/8.0.0| UnixWare/7.1.@<:@0-4@:>@) |
|
29072
cd48903e41be
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis <martin@v.loewis.de>
parents:
28983
diff
changeset
|
285 define_xopen_source=no;; |
|
cd48903e41be
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis <martin@v.loewis.de>
parents:
28983
diff
changeset
|
286 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
|
28976
4bf86518d9ae
Patch #732284: Disable _XOPEN_SOURCE on UnixWare 7.
Martin v. Löwis <martin@v.loewis.de>
parents:
28975
diff
changeset
|
287 # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
|
29072
cd48903e41be
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis <martin@v.loewis.de>
parents:
28983
diff
changeset
|
288 SCO_SV/3.2) |
|
28976
4bf86518d9ae
Patch #732284: Disable _XOPEN_SOURCE on UnixWare 7.
Martin v. Löwis <martin@v.loewis.de>
parents:
28975
diff
changeset
|
289 define_xopen_source=no;; |
|
49640
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
290 # On FreeBSD 4, the math functions C89 does not cover are never defined |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
291 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
292 FreeBSD/4.*) |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
293 define_xopen_source=no;; |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
294 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
295 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
296 # identifies itself as Darwin/7.* |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
297 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
298 # disables platform specific features beyond repair. |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
299 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
300 # has no effect, don't bother defining them |
|
e68e42b17e5e
Issue #4204: Fixed module build errors on FreeBSD 4.
Martin v. Löwis <martin@v.loewis.de>
parents:
49398
diff
changeset
|
301 Darwin/@<:@6789@:>@.*) |
|
30644
205a293f3de0
FreeBSD 4.8 and MacOS X 10.2 have a broken ncurses.h - if you don't
Anthony Baxter <anthonybaxter@gmail.com>
parents:
30627
diff
changeset
|
302 define_xopen_source=no;; |
|
33275
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
303 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
304 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
305 # or has another value. By not (re)defining it, the defaults come in place. |
|
30941
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
306 AIX/4) |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
307 define_xopen_source=no;; |
|
33275
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
308 AIX/5) |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
309 if test `uname -r` -eq 1; then |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
310 define_xopen_source=no |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
311 fi |
|
a12d984bd962
Apply patch #1016224: configure.in change to allow build of _bsddb module on
Trent Mick <trentm@activestate.com>
parents:
33145
diff
changeset
|
312 ;; |
|
47227
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
313 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
314 # defining NI_NUMERICHOST. |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
315 QNX/6.3.2) |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
316 define_xopen_source=no |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
317 ;; |
|
37456
2f57da921aef
Revert 43615, fixing it properly through quadrigraphs.
Martin v. Löwis <martin@v.loewis.de>
parents:
37454
diff
changeset
|
318 |
|
26146
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
319 esac |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
320 |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
321 if test $define_xopen_source = yes |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
322 then |
|
33135
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
323 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
324 # defined precisely as g++ defines it |
|
35953
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
325 # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
326 # compiler |
|
33135
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
327 case $ac_sys_system/$ac_sys_release in |
|
35953
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
328 SunOS/5.8|SunOS/5.9|SunOS/5.10) |
|
33135
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
329 AC_DEFINE(_XOPEN_SOURCE, 500, |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
330 Define to the level of X/Open that your system supports) |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
331 ;; |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
332 *) |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
333 AC_DEFINE(_XOPEN_SOURCE, 600, |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
334 Define to the level of X/Open that your system supports) |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
335 ;; |
|
7375ae5f9dc4
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro <skip@pobox.com>
parents:
33097
diff
changeset
|
336 esac |
|
26152
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
337 |
|
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
338 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
|
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
339 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
|
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
340 # several APIs are not declared. Since this is also needed in some |
|
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
341 # cases for HP-UX, we define it globally. |
|
35953
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
342 # except for Solaris 10, where it must not be defined, |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
343 # as it implies XPG4.2 |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
344 case $ac_sys_system/$ac_sys_release in |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
345 SunOS/5.10) |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
346 ;; |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
347 *) |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
348 AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
349 Define to activate Unix95-and-earlier features) |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
350 ;; |
|
d7f63ede495e
Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Martin v. Löwis <martin@v.loewis.de>
parents:
35326
diff
changeset
|
351 esac |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
352 |
|
26152
ec3414c58872
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis <martin@v.loewis.de>
parents:
26148
diff
changeset
|
353 AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from IEEE Stds 1003.1-2001) |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
354 |
|
26146
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
355 fi |
|
9bb4adfbfcc8
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis <martin@v.loewis.de>
parents:
26144
diff
changeset
|
356 |
|
6470
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
357 # |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
358 # SGI compilers allow the specification of the both the ABI and the |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
359 # ISA on the command line. Depending on the values of these switches, |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
360 # different and often incompatable code will be generated. |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
361 # |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
362 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
363 # thus supply support for various ABI/ISA combinations. The MACHDEP |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
364 # variable is also adjusted. |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
365 # |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
366 AC_SUBST(SGI_ABI) |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
367 if test ! -z "$SGI_ABI" |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
368 then |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
369 CC="cc $SGI_ABI" |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
370 LDFLAGS="$SGI_ABI $LDFLAGS" |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
371 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
372 fi |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
373 AC_MSG_RESULT($MACHDEP) |
|
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
374 |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
375 # And add extra plat-mac for darwin |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
376 AC_SUBST(EXTRAPLATDIR) |
|
28314
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
377 AC_SUBST(EXTRAMACHDEPPATH) |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
378 AC_MSG_CHECKING(EXTRAPLATDIR) |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
379 if test -z "$EXTRAPLATDIR" |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
380 then |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
381 case $MACHDEP in |
|
28314
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
382 darwin) |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
383 EXTRAPLATDIR="\$(PLATMACDIRS)" |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
384 EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
385 ;; |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
386 *) |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
387 EXTRAPLATDIR="" |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
388 EXTRAMACHDEPPATH="" |
|
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28299
diff
changeset
|
389 ;; |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
390 esac |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
391 fi |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
392 AC_MSG_RESULT($EXTRAPLATDIR) |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26849
diff
changeset
|
393 |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
394 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
395 # it may influence the way we can build extensions, so distutils |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
396 # needs to check it |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
397 AC_SUBST(CONFIGURE_MACOSX_DEPLOYMENT_TARGET) |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
398 AC_SUBST(EXPORT_MACOSX_DEPLOYMENT_TARGET) |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
399 CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
400 EXPORT_MACOSX_DEPLOYMENT_TARGET='#' |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
401 |
|
46560
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
402 AC_MSG_CHECKING(machine type as reported by uname -m) |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
403 ac_sys_machine=`uname -m` |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
404 AC_MSG_RESULT($ac_sys_machine) |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
405 |
| 1453 | 406 # checks for alternative programs |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
407 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
408 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
409 # for debug/optimization stuff. BASECFLAGS is for flags that are required |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
410 # just to get things to compile and link. Users are free to override OPT |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
411 # when running configure or make. The build should not break if they do. |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
412 # BASECFLAGS should generally not be messed with, however. |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
413 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
414 # XXX shouldn't some/most/all of this code be merged with the stuff later |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
415 # on that fiddles with OPT and BASECFLAGS? |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
416 AC_MSG_CHECKING(for --without-gcc) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
417 AC_ARG_WITH(gcc, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
418 AC_HELP_STRING(--without-gcc,never use gcc), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
419 [ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
420 case $withval in |
|
50580
f4ee0006ee39
If user configures --without-gcc give preference to $CC instead of blindly
Skip Montanaro <skip@pobox.com>
parents:
50435
diff
changeset
|
421 no) CC=${CC:-cc} |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
422 without_gcc=yes;; |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
423 yes) CC=gcc |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
424 without_gcc=no;; |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
425 *) CC=$withval |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
426 without_gcc=$withval;; |
|
3089
ef9ac6def71d
on osf/1, never use gcc; added test for strftime()
Guido van Rossum <guido@python.org>
parents:
3007
diff
changeset
|
427 esac], [ |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
428 case $ac_sys_system in |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
429 AIX*) CC=cc_r |
|
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
430 without_gcc=;; |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
431 BeOS*) |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
432 case $BE_HOST_CPU in |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
433 ppc) |
| 15107 | 434 CC=mwcc |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
435 without_gcc=yes |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
436 BASECFLAGS="$BASECFLAGS -export pragma" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
437 OPT="$OPT -O" |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
438 LDFLAGS="$LDFLAGS -nodup" |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
439 ;; |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
440 x86) |
| 15107 | 441 CC=gcc |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
442 without_gcc=no |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
443 OPT="$OPT -O" |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
444 ;; |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
445 *) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
446 AC_MSG_ERROR([Unknown BeOS platform "$BE_HOST_CPU"]) |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
447 ;; |
|
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
448 esac |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
449 AR="\$(srcdir)/Modules/ar_beos" |
|
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
450 RANLIB=: |
|
9856
1e8ff8a8792e
Chris Herborth's first pass at making config and install
Guido van Rossum <guido@python.org>
parents:
9808
diff
changeset
|
451 ;; |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
452 Monterey*) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
453 RANLIB=: |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
454 without_gcc=;; |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
455 *) without_gcc=no;; |
|
3089
ef9ac6def71d
on osf/1, never use gcc; added test for strftime()
Guido van Rossum <guido@python.org>
parents:
3007
diff
changeset
|
456 esac]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
457 AC_MSG_RESULT($without_gcc) |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
458 |
|
2508
47cc53a1fd47
added test for CC value not matching cache
Guido van Rossum <guido@python.org>
parents:
2329
diff
changeset
|
459 # If the user switches compilers, we can't believe the cache |
|
47cc53a1fd47
added test for CC value not matching cache
Guido van Rossum <guido@python.org>
parents:
2329
diff
changeset
|
460 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
|
47cc53a1fd47
added test for CC value not matching cache
Guido van Rossum <guido@python.org>
parents:
2329
diff
changeset
|
461 then |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
462 AC_MSG_ERROR([cached CC is different -- throw away $cache_file |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
463 (it is also a good idea to do 'make clean' before compiling)]) |
|
2508
47cc53a1fd47
added test for CC value not matching cache
Guido van Rossum <guido@python.org>
parents:
2329
diff
changeset
|
464 fi |
|
47cc53a1fd47
added test for CC value not matching cache
Guido van Rossum <guido@python.org>
parents:
2329
diff
changeset
|
465 |
| 1453 | 466 AC_PROG_CC |
|
19090
e411bfb9db57
Patch #433537: Cache ac_cv_bad_static_forward.
Martin v. Löwis <martin@v.loewis.de>
parents:
19067
diff
changeset
|
467 |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
468 AC_SUBST(CXX) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
469 AC_SUBST(MAINCC) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
470 AC_MSG_CHECKING(for --with-cxx-main=<compiler>) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
471 AC_ARG_WITH(cxx_main, |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
472 AC_HELP_STRING([--with-cxx-main=<compiler>], |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
473 [compile main() and link python executable with C++ compiler]), |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
474 [ |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
475 |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
476 case $withval in |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
477 no) with_cxx_main=no |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
478 MAINCC='$(CC)';; |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
479 yes) with_cxx_main=yes |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
480 MAINCC='$(CXX)';; |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
481 *) with_cxx_main=yes |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
482 MAINCC=$withval |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
483 if test -z "$CXX" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
484 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
485 CXX=$withval |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
486 fi;; |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
487 esac], [ |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
488 with_cxx_main=no |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
489 MAINCC='$(CC)' |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
490 ]) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
491 AC_MSG_RESULT($with_cxx_main) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
492 |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
493 preset_cxx="$CXX" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
494 if test -z "$CXX" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
495 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
496 case "$CC" in |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
497 gcc) AC_PATH_PROG(CXX, [g++], [g++], [notfound]) ;; |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
498 cc) AC_PATH_PROG(CXX, [c++], [c++], [notfound]) ;; |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
499 esac |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
500 if test "$CXX" = "notfound" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
501 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
502 CXX="" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
503 fi |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
504 fi |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
505 if test -z "$CXX" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
506 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
507 AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
508 if test "$CXX" = "notfound" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
509 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
510 CXX="" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
511 fi |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
512 fi |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
513 if test "$preset_cxx" != "$CXX" |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
514 then |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
515 AC_MSG_WARN([ |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
516 |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
517 By default, distutils will build C++ extension modules with "$CXX". |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
518 If this is not intended, then set CXX on the configure command line. |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
519 ]) |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
520 fi |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
521 |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
522 |
|
19090
e411bfb9db57
Patch #433537: Cache ac_cv_bad_static_forward.
Martin v. Löwis <martin@v.loewis.de>
parents:
19067
diff
changeset
|
523 # checks for UNIX variants that set C preprocessor variables |
|
e411bfb9db57
Patch #433537: Cache ac_cv_bad_static_forward.
Martin v. Löwis <martin@v.loewis.de>
parents:
19067
diff
changeset
|
524 AC_AIX |
|
e411bfb9db57
Patch #433537: Cache ac_cv_bad_static_forward.
Martin v. Löwis <martin@v.loewis.de>
parents:
19067
diff
changeset
|
525 |
|
26499
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
526 # Check for unsupported systems |
|
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
527 case $ac_sys_system/$ac_sys_release in |
|
41934
f9f6000327e2
Have configure raise an error when building on AtheOS. Code specific to AtheOS
Brett Cannon <bcannon@gmail.com>
parents:
41121
diff
changeset
|
528 atheos*|Linux*/1*) |
|
26499
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
529 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
|
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
530 echo See README for details. |
|
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
531 exit 1;; |
|
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
532 esac |
|
76f79bb36fc7
Add compile-time errors for unsupported systems.
Martin v. Löwis <martin@v.loewis.de>
parents:
26364
diff
changeset
|
533 |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
534 AC_EXEEXT |
|
16296
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
535 AC_MSG_CHECKING(for --with-suffix) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
536 AC_ARG_WITH(suffix, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
537 AC_HELP_STRING(--with-suffix=.exe, set executable suffix), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
538 [ |
|
16296
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
539 case $withval in |
|
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
540 no) EXEEXT=;; |
|
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
541 yes) EXEEXT=.exe;; |
|
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
542 *) EXEEXT=$withval;; |
|
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
543 esac]) |
|
ab99bd39470c
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16290
diff
changeset
|
544 AC_MSG_RESULT($EXEEXT) |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
545 |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
546 # Test whether we're running on a non-case-sensitive system, in which |
|
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
547 # case we give a warning if no ext is given |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
548 AC_SUBST(BUILDEXEEXT) |
|
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
549 AC_MSG_CHECKING(for case-insensitive build directory) |
|
26073
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
550 if test ! -d CaseSensitiveTestDir; then |
|
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
551 mkdir CaseSensitiveTestDir |
|
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
552 fi |
|
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
553 |
|
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
554 if test -d casesensitivetestdir |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
555 then |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
556 AC_MSG_RESULT(yes) |
|
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
557 BUILDEXEEXT=.exe |
|
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
558 else |
|
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21244
diff
changeset
|
559 AC_MSG_RESULT(no) |
|
21275
b01323bfcf6c
Silly mistake in build directory extension fix.
Jack Jansen <jack.jansen@cwi.nl>
parents:
21272
diff
changeset
|
560 BUILDEXEEXT=$EXEEXT |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
561 fi |
|
26073
7fa93b5ddfbd
Fix for bug 631247: configure should test the build directory for
Jack Jansen <jack.jansen@cwi.nl>
parents:
25990
diff
changeset
|
562 rmdir CaseSensitiveTestDir |
|
5952
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
563 |
|
9296
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
564 case $MACHDEP in |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
565 bsdos*) |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
566 case $CC in |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
567 gcc) CC="$CC -D_HAVE_BSDI";; |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
568 esac;; |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
569 esac |
|
d64b4cc81ba6
Add test for BSDI -- by Nigel Head and otto@mail.olympus.net.
Guido van Rossum <guido@python.org>
parents:
9218
diff
changeset
|
570 |
|
6123
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
571 case $ac_sys_system in |
|
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
572 hp*|HP*) |
|
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
573 case $CC in |
|
14763
d27058404981
Change HP=UX compiler options from -Aa to -Ae, which implies
Guido van Rossum <guido@python.org>
parents:
14760
diff
changeset
|
574 cc|*/cc) CC="$CC -Ae";; |
|
6123
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
575 esac;; |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
576 Monterey*) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
577 case $CC in |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
578 cc) CC="$CC -Wl,-Bexport";; |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
579 esac;; |
|
16995
9104ed38ac05
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
Martin v. Löwis <martin@v.loewis.de>
parents:
16985
diff
changeset
|
580 SunOS*) |
|
9104ed38ac05
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
Martin v. Löwis <martin@v.loewis.de>
parents:
16985
diff
changeset
|
581 # Some functions have a prototype only with that define, e.g. confstr |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
582 AC_DEFINE(__EXTENSIONS__, 1, [Defined on Solaris to see additional function prototypes.]) |
|
16995
9104ed38ac05
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
Martin v. Löwis <martin@v.loewis.de>
parents:
16985
diff
changeset
|
583 ;; |
|
6123
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
584 esac |
|
748fb5a009a7
Richard Jones: I think we can be confident in using 'CC="-Aa
Guido van Rossum <guido@python.org>
parents:
6098
diff
changeset
|
585 |
|
16995
9104ed38ac05
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
Martin v. Löwis <martin@v.loewis.de>
parents:
16985
diff
changeset
|
586 |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
587 AC_SUBST(LIBRARY) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
588 AC_MSG_CHECKING(LIBRARY) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
589 if test -z "$LIBRARY" |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
590 then |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
591 LIBRARY='libpython$(VERSION).a' |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
592 fi |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
593 AC_MSG_RESULT($LIBRARY) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
594 |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
595 # LDLIBRARY is the name of the library to link against (as opposed to the |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
596 # name of the library into which to insert object files). BLDLIBRARY is also |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
597 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
598 # is blank as the main program is not linked directly against LDLIBRARY. |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
599 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
600 # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
601 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
602 # DLLLIBRARY is the shared (i.e., DLL) library. |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
603 # |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
604 # RUNSHARED is used to run shared python without installed libraries |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
605 # |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
606 # INSTSONAME is the name of the shared library that will be use to install |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
607 # on the system - some systems like version suffix, others don't |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
608 AC_SUBST(LDLIBRARY) |
|
16142
49f94a2b1dd4
Fix some make errors during "make clobber" or "make distclean", caused
Guido van Rossum <guido@python.org>
parents:
15968
diff
changeset
|
609 AC_SUBST(DLLLIBRARY) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
610 AC_SUBST(BLDLIBRARY) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
611 AC_SUBST(LDLIBRARYDIR) |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
612 AC_SUBST(INSTSONAME) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
613 AC_SUBST(RUNSHARED) |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
614 LDLIBRARY="$LIBRARY" |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
615 BLDLIBRARY='$(LDLIBRARY)' |
|
23399
a868baebe956
Patch #553403: Fix typo.
Martin v. Löwis <martin@v.loewis.de>
parents:
23376
diff
changeset
|
616 INSTSONAME='$(LDLIBRARY)' |
|
16142
49f94a2b1dd4
Fix some make errors during "make clobber" or "make distclean", caused
Guido van Rossum <guido@python.org>
parents:
15968
diff
changeset
|
617 DLLLIBRARY='' |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
618 LDLIBRARYDIR='' |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
619 RUNSHARED='' |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
620 |
|
5952
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
621 # LINKCC is the command that links the python executable -- default is $(CC). |
|
20515
06f1254d2280
Use CXX in LINKCC if CXX is used to build main() and the system requires
Martin v. Löwis <martin@v.loewis.de>
parents:
20508
diff
changeset
|
622 # If CXX is set, and if it is needed to link a main function that was |
|
06f1254d2280
Use CXX in LINKCC if CXX is used to build main() and the system requires
Martin v. Löwis <martin@v.loewis.de>
parents:
20508
diff
changeset
|
623 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
|
06f1254d2280
Use CXX in LINKCC if CXX is used to build main() and the system requires
Martin v. Löwis <martin@v.loewis.de>
parents:
20508
diff
changeset
|
624 # python might then depend on the C++ runtime |
| 15107 | 625 # This is altered for AIX in order to build the export list before |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
626 # linking. |
|
5952
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
627 AC_SUBST(LINKCC) |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
628 AC_MSG_CHECKING(LINKCC) |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
629 if test -z "$LINKCC" |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
630 then |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37653
diff
changeset
|
631 LINKCC='$(PURIFY) $(MAINCC)' |
|
5952
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
632 case $ac_sys_system in |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
633 AIX*) |
|
28473
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
634 exp_extra="\"\"" |
|
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
635 if test $ac_sys_release -ge 5 -o \ |
|
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
636 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
|
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
637 exp_extra="." |
|
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
638 fi |
|
0f558eede6c5
SF patch #712367, get build working on AIX
Neal Norwitz <nnorwitz@gmail.com>
parents:
28454
diff
changeset
|
639 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
640 Monterey64*) |
|
22413
927bd4f6e35b
Expand LINKCC in configure.in. Suggested in bug report #529713.
Martin v. Löwis <martin@v.loewis.de>
parents:
22304
diff
changeset
|
641 LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
|
47227
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
642 QNX*) |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
643 # qcc must be used because the other compilers do not |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
644 # support -N. |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
645 LINKCC=qcc;; |
|
5952
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
646 esac |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
647 fi |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
648 AC_MSG_RESULT($LINKCC) |
|
b2e018fb2ba9
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum <guido@python.org>
parents:
5950
diff
changeset
|
649 |
|
53937
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
650 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
651 # make sure we default having it set to "no": this is used by |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
652 # distutils.unixccompiler to know if it should add --enable-new-dtags |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
653 # to linker command lines, and failing to detect GNU ld simply results |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
654 # in the same bahaviour as before. |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
655 AC_SUBST(GNULD) |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
656 AC_MSG_CHECKING(for GNU ld) |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
657 ac_prog=ld |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
658 if test "$GCC" = yes; then |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
659 ac_prog=`$CC -print-prog-name=ld` |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
660 fi |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
661 case `"$ac_prog" -V 2>&1 < /dev/null` in |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
662 *GNU*) |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
663 GNULD=yes;; |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
664 *) |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
665 GNULD=no;; |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
666 esac |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
667 AC_MSG_RESULT($GNULD) |
|
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
668 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
669 AC_MSG_CHECKING(for --enable-shared) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
670 AC_ARG_ENABLE(shared, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
671 AC_HELP_STRING(--enable-shared, disable/enable building shared python library)) |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
672 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
673 if test -z "$enable_shared" |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
674 then |
|
23376
cbbe289e7c2e
Patch #551093: Let cygwin default to --enable-shared.
Martin v. Löwis <martin@v.loewis.de>
parents:
23193
diff
changeset
|
675 case $ac_sys_system in |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
676 CYGWIN* | atheos*) |
|
23376
cbbe289e7c2e
Patch #551093: Let cygwin default to --enable-shared.
Martin v. Löwis <martin@v.loewis.de>
parents:
23193
diff
changeset
|
677 enable_shared="yes";; |
|
cbbe289e7c2e
Patch #551093: Let cygwin default to --enable-shared.
Martin v. Löwis <martin@v.loewis.de>
parents:
23193
diff
changeset
|
678 *) |
|
cbbe289e7c2e
Patch #551093: Let cygwin default to --enable-shared.
Martin v. Löwis <martin@v.loewis.de>
parents:
23193
diff
changeset
|
679 enable_shared="no";; |
|
cbbe289e7c2e
Patch #551093: Let cygwin default to --enable-shared.
Martin v. Löwis <martin@v.loewis.de>
parents:
23193
diff
changeset
|
680 esac |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
681 fi |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
682 AC_MSG_RESULT($enable_shared) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
683 |
|
32370
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
684 AC_MSG_CHECKING(for --enable-profiling) |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
685 AC_ARG_ENABLE(profiling, |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
686 AC_HELP_STRING(--enable-profiling, enable C-level code profiling), |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
687 [ac_save_cc="$CC" |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
688 CC="$CC -pg" |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
689 AC_TRY_RUN([int main() { return 0; }], |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
690 ac_enable_profiling="yes", |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
691 ac_enable_profiling="no", |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
692 ac_enable_profiling="no") |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
693 CC="$ac_save_cc"]) |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
694 AC_MSG_RESULT($ac_enable_profiling) |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
695 |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
696 case "$ac_enable_profiling" in |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
697 "yes") |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
698 BASECFLAGS="-pg $BASECFLAGS" |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
699 LDFLAGS="-pg $LDFLAGS" |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
700 ;; |
|
963d23557020
allow developers to more easily build a profiling version of the interpreter
Skip Montanaro <skip@pobox.com>
parents:
32301
diff
changeset
|
701 esac |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
702 |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
703 AC_MSG_CHECKING(LDLIBRARY) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
704 |
|
19732
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
705 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
706 # library that we build, but we do not want to link against it (we |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
707 # will find it with a -framework option). For this reason there is an |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
708 # extra variable BLDLIBRARY against which Python and the extension |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
709 # modules are linked, BLDLIBRARY. This is normally the same as |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
710 # LDLIBRARY, but empty for MacOSX framework builds. |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
711 if test "$enable_framework" |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
712 then |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
713 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
29759
4ec880c53e2a
Fixed two bugs in MacOSX framework handling spotted by Edward Moy:
Jack Jansen <jack.jansen@cwi.nl>
parents:
29737
diff
changeset
|
714 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
715 BLDLIBRARY='' |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
716 else |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
717 BLDLIBRARY='$(LDLIBRARY)' |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
718 fi |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
719 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
720 # Other platforms follow |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
721 if test $enable_shared = "yes"; then |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24314
diff
changeset
|
722 AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.]) |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
723 case $ac_sys_system in |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
724 BeOS*) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
725 LDLIBRARY='libpython$(VERSION).so' |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
726 ;; |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
727 CYGWIN*) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
728 LDLIBRARY='libpython$(VERSION).dll.a' |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
729 DLLLIBRARY='libpython$(VERSION).dll' |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
730 ;; |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
731 SunOS*) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
732 LDLIBRARY='libpython$(VERSION).so' |
|
29469
0cf1ec58e220
Use -R instead of -rpath on Solaris. Fixes #749911.
Martin v. Löwis <martin@v.loewis.de>
parents:
29466
diff
changeset
|
733 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
|
30106
265079883668
Patch #771998: Put braces around variables. Will backport to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30024
diff
changeset
|
734 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
|
30828
e59ab708bbb0
Patch #833710: Set INSTSONAME on Solaris. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30644
diff
changeset
|
735 INSTSONAME="$LDLIBRARY".$SOVERSION |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
736 ;; |
|
36543
36325caeff9c
Patch #1432345: Make python compile on DragonFly.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
737 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
738 LDLIBRARY='libpython$(VERSION).so' |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
739 BLDLIBRARY='-L. -lpython$(VERSION)' |
|
30106
265079883668
Patch #771998: Put braces around variables. Will backport to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30024
diff
changeset
|
740 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
|
33840
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
741 case $ac_sys_system in |
|
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
742 FreeBSD*) |
|
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
743 SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
|
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
744 ;; |
|
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
745 esac |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
746 INSTSONAME="$LDLIBRARY".$SOVERSION |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
747 ;; |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
748 hp*|HP*) |
|
38219
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
749 case `uname -m` in |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
750 ia64) |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
751 LDLIBRARY='libpython$(VERSION).so' |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
752 ;; |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
753 *) |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
754 LDLIBRARY='libpython$(VERSION).sl' |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
755 ;; |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
756 esac |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
757 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
|
30106
265079883668
Patch #771998: Put braces around variables. Will backport to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30024
diff
changeset
|
758 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
759 ;; |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
760 OSF*) |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
761 LDLIBRARY='libpython$(VERSION).so' |
|
36253
27bdc1e27eed
Fix bugs #1244610, #1392915, fix build problem on OpenBSD 3.7 and 3.8.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36245
diff
changeset
|
762 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
|
30106
265079883668
Patch #771998: Put braces around variables. Will backport to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30024
diff
changeset
|
763 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
764 ;; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
765 atheos*) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
766 LDLIBRARY='libpython$(VERSION).so' |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
767 BLDLIBRARY='-L. -lpython$(VERSION)' |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
768 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
769 ;; |
|
50435
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
770 Darwin*) |
|
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
771 LDLIBRARY='libpython$(VERSION).dylib' |
|
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
772 BLDLIBRARY='-L. -lpython$(VERSION)' |
|
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
773 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}' |
|
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
774 ;; |
|
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
775 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
776 esac |
|
30310
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
777 else # shared is disabled |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
778 case $ac_sys_system in |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
779 CYGWIN*) |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
780 BLDLIBRARY='$(LIBRARY)' |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
781 LDLIBRARY='libpython$(VERSION).dll.a' |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
782 ;; |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
783 esac |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
784 fi |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
785 |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
786 AC_MSG_RESULT($LDLIBRARY) |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
787 |
| 1453 | 788 AC_PROG_RANLIB |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
789 AC_SUBST(AR) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
790 AC_CHECK_PROGS(AR, ar aal, ar) |
|
17269
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
791 |
|
53888
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
792 # tweak ARFLAGS only if the user didn't set it on the command line |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
793 AC_SUBST(ARFLAGS) |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
794 if test -z "$ARFLAGS" |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
795 then |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
796 ARFLAGS="rc" |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
797 fi |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53606
diff
changeset
|
798 |
|
36203
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36158
diff
changeset
|
799 AC_SUBST(SVNVERSION) |
|
37444
1049e9aeb385
Set "not found" value for svnversion to not-found. Fixes #1463559.
Martin v. Löwis <martin@v.loewis.de>
parents:
37384
diff
changeset
|
800 AC_CHECK_PROG(SVNVERSION, svnversion, found, not-found) |
|
36204
032924e75c24
Always set SVNVERSION to "exported" if it otherwise fails.
Martin v. Löwis <martin@v.loewis.de>
parents:
36203
diff
changeset
|
801 if test $SVNVERSION = found |
|
032924e75c24
Always set SVNVERSION to "exported" if it otherwise fails.
Martin v. Löwis <martin@v.loewis.de>
parents:
36203
diff
changeset
|
802 then |
|
032924e75c24
Always set SVNVERSION to "exported" if it otherwise fails.
Martin v. Löwis <martin@v.loewis.de>
parents:
36203
diff
changeset
|
803 SVNVERSION="svnversion \$(srcdir)" |
|
032924e75c24
Always set SVNVERSION to "exported" if it otherwise fails.
Martin v. Löwis <martin@v.loewis.de>
parents:
36203
diff
changeset
|
804 else |
|
54289
150986ab3db2
support building with subversion 1.7 #6094
Benjamin Peterson <benjamin@python.org>
parents:
54221
diff
changeset
|
805 SVNVERSION="echo Unversioned directory" |
|
36204
032924e75c24
Always set SVNVERSION to "exported" if it otherwise fails.
Martin v. Löwis <martin@v.loewis.de>
parents:
36203
diff
changeset
|
806 fi |
|
36203
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36158
diff
changeset
|
807 |
|
17269
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
808 case $MACHDEP in |
|
20596
ca5f2ff83979
install on HP-UX does not support the -d option. Using the install-sh instead.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
20581
diff
changeset
|
809 bsdos*|hp*|HP*) |
|
ca5f2ff83979
install on HP-UX does not support the -d option. Using the install-sh instead.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
20581
diff
changeset
|
810 # install -d does not work on BSDI or HP-UX |
|
17269
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
811 if test -z "$INSTALL" |
|
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
812 then |
|
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
813 INSTALL="${srcdir}/install-sh -c" |
|
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
814 fi |
|
093e9a24ee76
"install -d" does not work on BSDI systems even though autoconf thinks
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17122
diff
changeset
|
815 esac |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
816 AC_PROG_INSTALL |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
817 |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
818 # Not every filesystem supports hard links |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
819 AC_SUBST(LN) |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
820 if test -z "$LN" ; then |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
821 case $ac_sys_system in |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
822 BeOS*) LN="ln -s";; |
|
15804
37819a777fc0
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum <guido@python.org>
parents:
15802
diff
changeset
|
823 CYGWIN*) LN="ln -s";; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
824 atheos*) LN="ln -s";; |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
825 *) LN=ln;; |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
826 esac |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
827 fi |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
828 |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
829 # Check for --with-pydebug |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
830 AC_MSG_CHECKING(for --with-pydebug) |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
831 AC_ARG_WITH(pydebug, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
832 AC_HELP_STRING(--with-pydebug, build with Py_DEBUG defined), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
833 [ |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
834 if test "$withval" != no |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
835 then |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
836 AC_DEFINE(Py_DEBUG, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
837 [Define if you want to build an interpreter with many run-time checks.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
838 AC_MSG_RESULT(yes); |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
839 Py_DEBUG='true' |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
840 else AC_MSG_RESULT(no); Py_DEBUG='false' |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
841 fi], |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
842 [AC_MSG_RESULT(no)]) |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
843 |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
844 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
845 # merged with this chunk of code? |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
846 |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
847 # Optimizer/debugger flags |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
848 # ------------------------ |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
849 # (The following bit of code is complicated enough - please keep things |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
850 # indented properly. Just pretend you're editing Python code. ;-) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
851 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
852 # There are two parallel sets of case statements below, one that checks to |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
853 # see if OPT was set and one that does BASECFLAGS setting based upon |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
854 # compiler and platform. BASECFLAGS tweaks need to be made even if the |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
855 # user set OPT. |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
856 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
857 # tweak OPT based on compiler and platform, only if the user didn't set |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
858 # it on the command line |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
859 AC_SUBST(OPT) |
|
1803
fafa5dc8100f
Simplify value of INSTALL (always 'cp').
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
860 if test -z "$OPT" |
|
3852
97519dfc63ae
Changes for NeXT. Some improvements to long lines.
Guido van Rossum <guido@python.org>
parents:
3809
diff
changeset
|
861 then |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
862 case $GCC in |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
863 yes) |
|
37653
12567189ef25
If compiling with g++ don't use -Wstrict-prototpes.
Skip Montanaro <skip@pobox.com>
parents:
37605
diff
changeset
|
864 if test "$CC" != 'g++' ; then |
|
12567189ef25
If compiling with g++ don't use -Wstrict-prototpes.
Skip Montanaro <skip@pobox.com>
parents:
37605
diff
changeset
|
865 STRICT_PROTO="-Wstrict-prototypes" |
|
12567189ef25
If compiling with g++ don't use -Wstrict-prototpes.
Skip Montanaro <skip@pobox.com>
parents:
37605
diff
changeset
|
866 fi |
|
44287
589262d81e29
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
Guido van Rossum <guido@python.org>
parents:
44140
diff
changeset
|
867 # For gcc 4.x we need to use -fwrapv so lets check if its supported |
|
589262d81e29
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
Guido van Rossum <guido@python.org>
parents:
44140
diff
changeset
|
868 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
|
589262d81e29
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
Guido van Rossum <guido@python.org>
parents:
44140
diff
changeset
|
869 WRAP="-fwrapv" |
|
589262d81e29
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
Guido van Rossum <guido@python.org>
parents:
44140
diff
changeset
|
870 fi |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
871 case $ac_cv_prog_cc_g in |
|
17419
3fadc37cfa92
Unixware 7 support by Billy G. Allie (SF patch 413011)
Guido van Rossum <guido@python.org>
parents:
17269
diff
changeset
|
872 yes) |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
873 if test "$Py_DEBUG" = 'true' ; then |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
874 # Optimization messes up debuggers, so turn it off for |
|
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
875 # debug builds. |
|
37653
12567189ef25
If compiling with g++ don't use -Wstrict-prototpes.
Skip Montanaro <skip@pobox.com>
parents:
37605
diff
changeset
|
876 OPT="-g -Wall $STRICT_PROTO" |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
877 else |
|
44287
589262d81e29
Patch #1608. Someone with access to autoconf 2.61 or higher needs to
Guido van Rossum <guido@python.org>
parents:
44140
diff
changeset
|
878 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
879 fi |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
880 ;; |
|
17419
3fadc37cfa92
Unixware 7 support by Billy G. Allie (SF patch 413011)
Guido van Rossum <guido@python.org>
parents:
17269
diff
changeset
|
881 *) |
|
37653
12567189ef25
If compiling with g++ don't use -Wstrict-prototpes.
Skip Montanaro <skip@pobox.com>
parents:
37605
diff
changeset
|
882 OPT="-O3 -Wall $STRICT_PROTO" |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
883 ;; |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
884 esac |
|
25497
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
885 case $ac_sys_system in |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
886 SCO_SV*) OPT="$OPT -m486 -DSCO5" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
887 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
888 esac |
|
18467
9f74965e0f35
Check for --with-pydebug earlier, and record the result.
Fred Drake <fdrake@acm.org>
parents:
18452
diff
changeset
|
889 ;; |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
890 |
|
17419
3fadc37cfa92
Unixware 7 support by Billy G. Allie (SF patch 413011)
Guido van Rossum <guido@python.org>
parents:
17269
diff
changeset
|
891 *) |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
892 OPT="-O" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
893 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
894 esac |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
895 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
896 # The current (beta) Monterey compiler dies with optimizations |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
897 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
898 case $ac_sys_system in |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
899 Monterey*) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
900 OPT="" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
901 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
902 esac |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
903 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
904 fi |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
905 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
906 AC_SUBST(BASECFLAGS) |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
907 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
908 # The -arch flags for universal builds on OSX |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
909 UNIVERSAL_ARCH_FLAGS= |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
910 AC_SUBST(UNIVERSAL_ARCH_FLAGS) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
911 |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
912 # tweak BASECFLAGS based on compiler and platform |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
913 case $GCC in |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
914 yes) |
|
29774
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
915 # Python violates C99 rules, by casting between incompatible |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
916 # pointer types. GCC may generate bad code as a result of that, |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
917 # so use -fno-strict-aliasing if supported. |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
918 AC_MSG_CHECKING(whether $CC accepts -fno-strict-aliasing) |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
919 ac_save_cc="$CC" |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
920 CC="$CC -fno-strict-aliasing" |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
921 AC_TRY_RUN([int main() { return 0; }], |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
922 ac_cv_no_strict_aliasing_ok=yes, |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
923 ac_cv_no_strict_aliasing_ok=no, |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
924 ac_cv_no_strict_aliasing_ok=no) |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
925 CC="$ac_save_cc" |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
926 AC_MSG_RESULT($ac_cv_no_strict_aliasing_ok) |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
927 if test $ac_cv_no_strict_aliasing_ok = yes |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
928 then |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
929 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
|
9396134684cf
Use -fno-strict-aliasing if available. Fixes #766696. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
29764
diff
changeset
|
930 fi |
|
46560
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
931 |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
932 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
933 # support. Without this, treatment of subnormals doesn't follow |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
934 # the standard. |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
935 case $ac_sys_machine in |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
936 alpha*) |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
937 BASECFLAGS="$BASECFLAGS -mieee" |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
938 ;; |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
939 esac |
|
ce620cc9a6a8
Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
Mark Dickinson <dickinsm@gmail.com>
parents:
46528
diff
changeset
|
940 |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
941 case $ac_sys_system in |
|
25497
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
942 SCO_SV*) |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
943 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
944 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
945 # is there any other compiler on Darwin besides gcc? |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
946 Darwin*) |
|
45787
c4402ec60c3a
Allow Gnu gcc's to build python on OSX by removing -Wno-long-double,
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
45655
diff
changeset
|
947 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd |
|
c4402ec60c3a
Allow Gnu gcc's to build python on OSX by removing -Wno-long-double,
Jeffrey Yasskin <jyasskin@gmail.com>
parents:
45655
diff
changeset
|
948 # used to be here, but non-Apple gcc doesn't accept them. |
|
48000
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
949 |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
950 |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
951 if test "${enable_universalsdk}"; then |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
952 UNIVERSAL_ARCH_FLAGS="" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
953 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
954 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
|
47986
ec85b58ad2ba
fix framework install on Mac 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47843
diff
changeset
|
955 ARCH_RUN_32BIT="" |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
956 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
957 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
958 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
959 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
960 elif test "$UNIVERSAL_ARCHS" = "all" ; then |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
961 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
|
48219
a3393e581b15
Fix typo in the `arch` commandline
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48047
diff
changeset
|
962 ARCH_RUN_32BIT="arch -i386 -ppc" |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
963 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
964 else |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
965 AC_MSG_ERROR([proper usage is --with-universalarch=32-bit|64-bit|all]) |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
966 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
967 fi |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
968 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
969 |
|
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
970 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" |
|
48047
3b5c2613ed05
Fix buglet in fix for issue3381
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
48000
diff
changeset
|
971 tgt=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'` |
|
48000
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
972 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
973 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
974 fi |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
975 fi |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
976 |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
977 # Calculate the right deployment target for this build. |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
978 # |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
979 cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'` |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
980 if test ${cur_target} '>' 10.2; then |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
981 cur_target=10.3 |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
982 fi |
|
48000
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
983 if test "${UNIVERSAL_ARCHS}" = "all"; then |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
984 # Ensure that the default platform for a 4-way |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
985 # universal build is OSX 10.5, that's the first |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
986 # OS release where 4-way builds make sense. |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
987 cur_target='10.5' |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
988 fi |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
989 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
990 |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
991 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
992 # environment with a value that is the same as what we'll use |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
993 # in the Makefile to ensure that we'll get the same compiler |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
994 # environment during configure and build time. |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
995 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
996 export MACOSX_DEPLOYMENT_TARGET |
|
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
997 EXPORT_MACOSX_DEPLOYMENT_TARGET='' |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
998 |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
999 ;; |
|
37320
d1993ee8ac41
Get gcc to do strict IEEE math. This flag was already used for cc, just not
Neal Norwitz <nnorwitz@gmail.com>
parents:
37099
diff
changeset
|
1000 OSF*) |
|
d1993ee8ac41
Get gcc to do strict IEEE math. This flag was already used for cc, just not
Neal Norwitz <nnorwitz@gmail.com>
parents:
37099
diff
changeset
|
1001 BASECFLAGS="$BASECFLAGS -mieee" |
|
d1993ee8ac41
Get gcc to do strict IEEE math. This flag was already used for cc, just not
Neal Norwitz <nnorwitz@gmail.com>
parents:
37099
diff
changeset
|
1002 ;; |
|
17419
3fadc37cfa92
Unixware 7 support by Billy G. Allie (SF patch 413011)
Guido van Rossum <guido@python.org>
parents:
17269
diff
changeset
|
1003 esac |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1004 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1005 |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1006 *) |
|
18976
471a9018129c
- On OSX add -no-cpp-precomp to OPT. The user still has to manually specify
Jack Jansen <jack.jansen@cwi.nl>
parents:
18835
diff
changeset
|
1007 case $ac_sys_system in |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1008 OpenUNIX*|UnixWare*) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1009 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1010 ;; |
|
29268
7887fe3a9a8f
SF patch #719359, fix test_long failure on OSF/1 with vendor cc
Neal Norwitz <nnorwitz@gmail.com>
parents:
29265
diff
changeset
|
1011 OSF*) |
|
7887fe3a9a8f
SF patch #719359, fix test_long failure on OSF/1 with vendor cc
Neal Norwitz <nnorwitz@gmail.com>
parents:
29265
diff
changeset
|
1012 BASECFLAGS="$BASECFLAGS -ieee -std" |
|
7887fe3a9a8f
SF patch #719359, fix test_long failure on OSF/1 with vendor cc
Neal Norwitz <nnorwitz@gmail.com>
parents:
29265
diff
changeset
|
1013 ;; |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1014 SCO_SV*) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1015 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1016 ;; |
|
18976
471a9018129c
- On OSX add -no-cpp-precomp to OPT. The user still has to manually specify
Jack Jansen <jack.jansen@cwi.nl>
parents:
18835
diff
changeset
|
1017 esac |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1018 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1019 esac |
| 1453 | 1020 |
|
21200
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1021 if test "$Py_DEBUG" = 'true'; then |
|
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1022 : |
|
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1023 else |
|
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1024 OPT="-DNDEBUG $OPT" |
|
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1025 fi |
|
947931392694
Define NDEBUG when compiling a release build on Unix.
Fred Drake <fdrake@acm.org>
parents:
21134
diff
changeset
|
1026 |
|
4252
6b6c5d12130c
Fixed nextstep buglet; check for libreadline w/o libterm*
Guido van Rossum <guido@python.org>
parents:
4184
diff
changeset
|
1027 if test "$ac_arch_flags" |
| 3891 | 1028 then |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1029 BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
| 3891 | 1030 fi |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
1031 |
|
36228
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1032 # disable check for icc since it seems to pass, but generates a warning |
|
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1033 if test "$CC" = icc |
|
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1034 then |
|
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1035 ac_cv_opt_olimit_ok=no |
|
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1036 fi |
|
e7c96c1d144b
icc accepts -OPT... but generates a warning, so just disable the check
Neal Norwitz <nnorwitz@gmail.com>
parents:
36220
diff
changeset
|
1037 |
|
6470
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1038 AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0) |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1039 AC_CACHE_VAL(ac_cv_opt_olimit_ok, |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1040 [ac_save_cc="$CC" |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1041 CC="$CC -OPT:Olimit=0" |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1042 AC_TRY_RUN([int main() { return 0; }], |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1043 ac_cv_opt_olimit_ok=yes, |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1044 ac_cv_opt_olimit_ok=no, |
|
6470
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1045 ac_cv_opt_olimit_ok=no) |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1046 CC="$ac_save_cc"]) |
|
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1047 AC_MSG_RESULT($ac_cv_opt_olimit_ok) |
|
6520
f1b1728452c1
Daniel Larsson discovered another cut-n-paste bug in the Olimit story...
Guido van Rossum <guido@python.org>
parents:
6495
diff
changeset
|
1048 if test $ac_cv_opt_olimit_ok = yes; then |
|
15119
a358ba707e4d
Checking in three Darwin-specific patches.
Guido van Rossum <guido@python.org>
parents:
15107
diff
changeset
|
1049 case $ac_sys_system in |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1050 # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1051 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1052 # environment? |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1053 Darwin*) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1054 ;; |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1055 *) |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1056 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1057 ;; |
|
15119
a358ba707e4d
Checking in three Darwin-specific patches.
Guido van Rossum <guido@python.org>
parents:
15107
diff
changeset
|
1058 esac |
|
8632
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1059 else |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1060 AC_MSG_CHECKING(whether $CC accepts -Olimit 1500) |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1061 AC_CACHE_VAL(ac_cv_olimit_ok, |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1062 [ac_save_cc="$CC" |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1063 CC="$CC -Olimit 1500" |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1064 AC_TRY_RUN([int main() { return 0; }], |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1065 ac_cv_olimit_ok=yes, |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1066 ac_cv_olimit_ok=no, |
|
8632
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1067 ac_cv_olimit_ok=no) |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1068 CC="$ac_save_cc"]) |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1069 AC_MSG_RESULT($ac_cv_olimit_ok) |
|
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1070 if test $ac_cv_olimit_ok = yes; then |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1071 BASECFLAGS="$BASECFLAGS -Olimit 1500" |
|
8632
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1072 fi |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5497
diff
changeset
|
1073 fi |
|
8632
6d75a44347a2
Fix two unrelated problems in the same area:
Guido van Rossum <guido@python.org>
parents:
8487
diff
changeset
|
1074 |
|
40151
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1075 # Check whether GCC supports PyArg_ParseTuple format |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1076 if test "$GCC" = "yes" |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1077 then |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1078 AC_MSG_CHECKING(whether gcc supports ParseTuple __format__) |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1079 save_CFLAGS=$CFLAGS |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1080 CFLAGS="$CFLAGS -Werror" |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1081 AC_TRY_COMPILE([ |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1082 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1083 ],, |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1084 AC_DEFINE(HAVE_ATTRIBUTE_FORMAT_PARSETUPLE, 1, [Define if GCC supports __attribute__((format(PyArg_ParseTuple, 2, 3)))]) |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1085 AC_MSG_RESULT(yes), |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1086 AC_MSG_RESULT(no) |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1087 ) |
|
40153
0509ab14b2d9
Restore CFLAGS after checking for __attribute__
Martin v. Löwis <martin@v.loewis.de>
parents:
40151
diff
changeset
|
1088 CFLAGS=$save_CFLAGS |
|
40151
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1089 fi |
|
410c1c78ed51
Add check for the PyArg_ParseTuple format, and declare
Martin v. Löwis <martin@v.loewis.de>
parents:
40140
diff
changeset
|
1090 |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1091 # On some compilers, pthreads are available without further options |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1092 # (e.g. MacOS X). On some of these systems, the compiler will not |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1093 # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1094 # So we have to see first whether pthreads are available without |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1095 # options before we can check whether -Kpthread improves anything. |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1096 AC_MSG_CHECKING(whether pthreads are available without options) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1097 AC_CACHE_VAL(ac_cv_pthread_is_default, |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1098 [AC_TRY_RUN([ |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1099 #include <pthread.h> |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1100 |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1101 void* routine(void* p){return NULL;} |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1102 |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1103 int main(){ |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1104 pthread_t p; |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1105 if(pthread_create(&p,NULL,routine,NULL)!=0) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1106 return 1; |
|
22183
534e79059be1
When testing for availability of pthreads without special compiler options
Jack Jansen <jack.jansen@cwi.nl>
parents:
22159
diff
changeset
|
1107 (void)pthread_detach(p); |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1108 return 0; |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1109 } |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1110 ], |
|
29804
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1111 [ |
|
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1112 ac_cv_pthread_is_default=yes |
|
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1113 ac_cv_kthread=no |
|
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1114 ac_cv_pthread=no |
|
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1115 ], |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1116 ac_cv_pthread_is_default=no, |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1117 ac_cv_pthread_is_default=no) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1118 ]) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1119 AC_MSG_RESULT($ac_cv_pthread_is_default) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1120 |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1121 |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1122 if test $ac_cv_pthread_is_default = yes |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1123 then |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1124 ac_cv_kpthread=no |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1125 else |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1126 # -Kpthread, if available, provides the right #defines |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1127 # and linker options to make pthread_create available |
|
20299
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1128 # Some compilers won't report that they do not support -Kpthread, |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1129 # so we need to run a program to see whether it really made the |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1130 # function available. |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1131 AC_MSG_CHECKING(whether $CC accepts -Kpthread) |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1132 AC_CACHE_VAL(ac_cv_kpthread, |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1133 [ac_save_cc="$CC" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1134 CC="$CC -Kpthread" |
|
20299
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1135 AC_TRY_RUN([ |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1136 #include <pthread.h> |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1137 |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1138 void* routine(void* p){return NULL;} |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1139 |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1140 int main(){ |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1141 pthread_t p; |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1142 if(pthread_create(&p,NULL,routine,NULL)!=0) |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1143 return 1; |
|
22183
534e79059be1
When testing for availability of pthreads without special compiler options
Jack Jansen <jack.jansen@cwi.nl>
parents:
22159
diff
changeset
|
1144 (void)pthread_detach(p); |
|
20299
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1145 return 0; |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1146 } |
|
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1147 ], |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1148 ac_cv_kpthread=yes, |
|
20299
42b52793740c
Use AC_TRY_RUN for checking for -Kpthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
20264
diff
changeset
|
1149 ac_cv_kpthread=no, |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1150 ac_cv_kpthread=no) |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1151 CC="$ac_save_cc"]) |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1152 AC_MSG_RESULT($ac_cv_kpthread) |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
1153 fi |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1154 |
|
29804
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1155 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no |
|
28975
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1156 then |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1157 # -Kthread, if available, provides the right #defines |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1158 # and linker options to make pthread_create available |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1159 # Some compilers won't report that they do not support -Kthread, |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1160 # so we need to run a program to see whether it really made the |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1161 # function available. |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1162 AC_MSG_CHECKING(whether $CC accepts -Kthread) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1163 AC_CACHE_VAL(ac_cv_kthread, |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1164 [ac_save_cc="$CC" |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1165 CC="$CC -Kthread" |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1166 AC_TRY_RUN([ |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1167 #include <pthread.h> |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1168 |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1169 void* routine(void* p){return NULL;} |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1170 |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1171 int main(){ |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1172 pthread_t p; |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1173 if(pthread_create(&p,NULL,routine,NULL)!=0) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1174 return 1; |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1175 (void)pthread_detach(p); |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1176 return 0; |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1177 } |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1178 ], |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1179 ac_cv_kthread=yes, |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1180 ac_cv_kthread=no, |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1181 ac_cv_kthread=no) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1182 CC="$ac_save_cc"]) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1183 AC_MSG_RESULT($ac_cv_kthread) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1184 fi |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1185 |
|
29804
0df11b2bfca5
avoid testing for -Kthread or -pthread if the default build environment
Skip Montanaro <skip@pobox.com>
parents:
29774
diff
changeset
|
1186 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1187 then |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1188 # -pthread, if available, provides the right #defines |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1189 # and linker options to make pthread_create available |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1190 # Some compilers won't report that they do not support -pthread, |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1191 # so we need to run a program to see whether it really made the |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1192 # function available. |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1193 AC_MSG_CHECKING(whether $CC accepts -pthread) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1194 AC_CACHE_VAL(ac_cv_thread, |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1195 [ac_save_cc="$CC" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1196 CC="$CC -pthread" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1197 AC_TRY_RUN([ |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1198 #include <pthread.h> |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1199 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1200 void* routine(void* p){return NULL;} |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1201 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1202 int main(){ |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1203 pthread_t p; |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1204 if(pthread_create(&p,NULL,routine,NULL)!=0) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1205 return 1; |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1206 (void)pthread_detach(p); |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1207 return 0; |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1208 } |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1209 ], |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1210 ac_cv_pthread=yes, |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1211 ac_cv_pthread=no, |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1212 ac_cv_pthread=no) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1213 CC="$ac_save_cc"]) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1214 AC_MSG_RESULT($ac_cv_pthread) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1215 fi |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1216 |
|
29630
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1217 # If we have set a CC compiler flag for thread support then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1218 # check if it works for CXX, too. |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1219 ac_cv_cxx_thread=no |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1220 if test ! -z "$CXX" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1221 then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1222 AC_MSG_CHECKING(whether $CXX also accepts flags for thread support) |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1223 ac_save_cxx="$CXX" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1224 |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1225 if test "$ac_cv_kpthread" = "yes" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1226 then |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1227 CXX="$CXX -Kpthread" |
|
29630
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1228 ac_cv_cxx_thread=yes |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1229 elif test "$ac_cv_kthread" = "yes" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1230 then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1231 CXX="$CXX -Kthread" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1232 ac_cv_cxx_thread=yes |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1233 elif test "$ac_cv_pthread" = "yes" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1234 then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1235 CXX="$CXX -pthread" |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1236 ac_cv_cxx_thread=yes |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1237 fi |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1238 |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1239 if test $ac_cv_cxx_thread = yes |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1240 then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1241 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1242 $CXX -c conftest.$ac_ext 2>&5 |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1243 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1244 && test -s conftest$ac_exeext && ./conftest$ac_exeext |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1245 then |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1246 ac_cv_cxx_thread=yes |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1247 else |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1248 ac_cv_cxx_thread=no |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1249 fi |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1250 rm -fr conftest* |
|
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1251 fi |
|
33919
8698653e05fc
Move the AC_MSG_RESULT function call for checking for pthread options up into
Brett Cannon <bcannon@gmail.com>
parents:
33908
diff
changeset
|
1252 AC_MSG_RESULT($ac_cv_cxx_thread) |
|
29630
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1253 fi |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1254 CXX="$ac_save_cxx" |
|
29630
410b3c222211
Patch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis <martin@v.loewis.de>
parents:
29471
diff
changeset
|
1255 |
|
13467
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1256 dnl # check for ANSI or K&R ("traditional") preprocessor |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1257 dnl AC_MSG_CHECKING(for C preprocessor type) |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1258 dnl AC_TRY_COMPILE([ |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1259 dnl #define spam(name, doc) {#name, &name, #name "() -- " doc} |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1260 dnl int foo; |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1261 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1262 dnl ], [;], cpp_type=ansi, AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional) |
|
6690374a1dc1
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake <fdrake@acm.org>
parents:
13357
diff
changeset
|
1263 dnl AC_MSG_RESULT($cpp_type) |
| 4029 | 1264 |
| 1453 | 1265 # checks for header files |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1266 AC_HEADER_STDC |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38647
diff
changeset
|
1267 AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ |
|
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38647
diff
changeset
|
1268 fcntl.h grp.h \ |
|
46154
1e10b30f7498
Fix compiler warning about finite() missing on Solaris.
Neal Norwitz <nnorwitz@gmail.com>
parents:
46053
diff
changeset
|
1269 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ |
|
39950
1697d0d4ef33
Guard uintptr_t test with HAVE_STDINT_H, test for
Martin v. Löwis <martin@v.loewis.de>
parents:
39947
diff
changeset
|
1270 shadow.h signal.h stdint.h stropts.h termios.h thread.h \ |
|
26998
6ca1c0d3ef19
Expose I_ constants. Auto-detect stropts.h. Properly configure the slave terminal.
Martin v. Löwis <martin@v.loewis.de>
parents:
26945
diff
changeset
|
1271 unistd.h utime.h \ |
|
45991
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
1272 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
1273 sys/lock.h sys/mkdev.h sys/modem.h \ |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38647
diff
changeset
|
1274 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ |
|
47227
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1275 sys/termio.h sys/time.h \ |
|
38716
42808526511c
Patch #1495999: Part two of Windows CE changes.
Martin v. Löwis <martin@v.loewis.de>
parents:
38647
diff
changeset
|
1276 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
|
40180
015f89a73929
Get DBL_MAX from float.h not values.h. Will backport.
Martin v. Löwis <martin@v.loewis.de>
parents:
40178
diff
changeset
|
1277 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
|
44561
ac51cfe5c5c6
Issue #1646: Make socket support TIPC. The socket module now has support
Christian Heimes <christian@cheimes.de>
parents:
44387
diff
changeset
|
1278 bluetooth/bluetooth.h linux/tipc.h) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1279 AC_HEADER_DIRENT |
|
25694
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
1280 AC_HEADER_MAJOR |
| 1453 | 1281 |
|
33508
94f500ebf60a
Patch #1012280: Include curses.h for term.h check. Fixes #933795.
Martin v. Löwis <martin@v.loewis.de>
parents:
33494
diff
changeset
|
1282 # On Solaris, term.h requires curses.h |
|
34054
7026d0385081
Bump version number to 2.5.
Martin v. Löwis <martin@v.loewis.de>
parents:
33919
diff
changeset
|
1283 AC_CHECK_HEADERS(term.h,,,[ |
|
33511
03edb63ae071
Make curses.h inclusion conditional as in the original patch #1012280.
Martin v. Löwis <martin@v.loewis.de>
parents:
33508
diff
changeset
|
1284 #ifdef HAVE_CURSES_H |
|
03edb63ae071
Make curses.h inclusion conditional as in the original patch #1012280.
Martin v. Löwis <martin@v.loewis.de>
parents:
33508
diff
changeset
|
1285 #include <curses.h> |
|
03edb63ae071
Make curses.h inclusion conditional as in the original patch #1012280.
Martin v. Löwis <martin@v.loewis.de>
parents:
33508
diff
changeset
|
1286 #endif |
|
03edb63ae071
Make curses.h inclusion conditional as in the original patch #1012280.
Martin v. Löwis <martin@v.loewis.de>
parents:
33508
diff
changeset
|
1287 ]) |
|
33508
94f500ebf60a
Patch #1012280: Include curses.h for term.h check. Fixes #933795.
Martin v. Löwis <martin@v.loewis.de>
parents:
33494
diff
changeset
|
1288 |
|
36286
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1289 # On Linux, netlink.h requires asm/types.h |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1290 AC_CHECK_HEADERS(linux/netlink.h,,,[ |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1291 #ifdef HAVE_ASM_TYPES_H |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1292 #include <asm/types.h> |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1293 #endif |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1294 #ifdef HAVE_SYS_SOCKET_H |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1295 #include <sys/socket.h> |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1296 #endif |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1297 ]) |
|
ae4480935016
Patch #1103116: AF_NETLINK sockets basic support.
Martin v. Löwis <martin@v.loewis.de>
parents:
36253
diff
changeset
|
1298 |
| 1453 | 1299 # checks for typedefs |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
1300 was_it_defined=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
1301 AC_MSG_CHECKING(for clock_t in time.h) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1302 AC_EGREP_HEADER(clock_t, time.h, was_it_defined=yes, [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1303 AC_DEFINE(clock_t, long, [Define to 'long' if <time.h> doesn't define.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1304 ]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
1305 AC_MSG_RESULT($was_it_defined) |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
1306 |
|
24429
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1307 # Check whether using makedev requires defining _OSF_SOURCE |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1308 AC_MSG_CHECKING(for makedev) |
|
28035
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
1309 AC_TRY_LINK([#include <sys/types.h> ], |
|
24429
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1310 [ makedev(0, 0) ], |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1311 ac_cv_has_makedev=yes, |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1312 ac_cv_has_makedev=no) |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1313 if test "$ac_cv_has_makedev" = "no"; then |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1314 # we didn't link, try if _OSF_SOURCE will allow us to link |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1315 AC_TRY_LINK([ |
|
28035
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
1316 #define _OSF_SOURCE 1 |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
1317 #include <sys/types.h> |
|
24429
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1318 ], |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1319 [ makedev(0, 0) ], |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1320 ac_cv_has_makedev=yes, |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1321 ac_cv_has_makedev=no) |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1322 if test "$ac_cv_has_makedev" = "yes"; then |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1323 AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.]) |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1324 fi |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1325 fi |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1326 AC_MSG_RESULT($ac_cv_has_makedev) |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1327 if test "$ac_cv_has_makedev" = "yes"; then |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1328 AC_DEFINE(HAVE_MAKEDEV, 1, [Define this if you have the makedev macro.]) |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1329 fi |
|
f55d58ee4ea3
SF patch #584245, get python to link on OSF1 (Dec Unix)
Neal Norwitz <nnorwitz@gmail.com>
parents:
24413
diff
changeset
|
1330 |
|
25548
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1331 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1332 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1333 # defined, but the compiler does not support pragma redefine_extname, |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1334 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1335 # structures (such as rlimit64) without declaring them. As a |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1336 # work-around, disable LFS on such configurations |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1337 |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1338 use_lfs=yes |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1339 AC_MSG_CHECKING(Solaris LFS bug) |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1340 AC_TRY_COMPILE([ |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1341 #define _LARGEFILE_SOURCE 1 |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1342 #define _FILE_OFFSET_BITS 64 |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1343 #include <sys/resource.h> |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1344 ],struct rlimit foo;,sol_lfs_bug=no,sol_lfs_bug=yes) |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1345 AC_MSG_RESULT($sol_lfs_bug) |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1346 if test "$sol_lfs_bug" = "yes"; then |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1347 use_lfs=no |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1348 fi |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1349 |
|
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1350 if test "$use_lfs" = "yes"; then |
|
19818
6b1be14d7650
This time (I hope) I've fixed largefile
Guido van Rossum <guido@python.org>
parents:
19796
diff
changeset
|
1351 # Two defines needed to enable largefile support on various platforms |
|
6b1be14d7650
This time (I hope) I've fixed largefile
Guido van Rossum <guido@python.org>
parents:
19796
diff
changeset
|
1352 # These may affect some typedefs |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1353 AC_DEFINE(_LARGEFILE_SOURCE, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1354 [This must be defined on some systems to enable large file support.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1355 AC_DEFINE(_FILE_OFFSET_BITS, 64, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1356 [This must be set to 64 on some systems to enable large file support.]) |
|
25548
0ed829475717
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis <martin@v.loewis.de>
parents:
25545
diff
changeset
|
1357 fi |
|
19818
6b1be14d7650
This time (I hope) I've fixed largefile
Guido van Rossum <guido@python.org>
parents:
19796
diff
changeset
|
1358 |
| 4029 | 1359 # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1360 cat >> confdefs.h <<\EOF | |
| 1361 #if defined(SCO_DS) | |
| 1362 #undef _OFF_T | |
| 1363 #endif | |
| 1364 EOF | |
| 1365 | |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
1366 # Type availability checks |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1367 AC_TYPE_MODE_T |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1368 AC_TYPE_OFF_T |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1369 AC_TYPE_PID_T |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1370 AC_TYPE_SIGNAL |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1371 AC_TYPE_SIZE_T |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1372 AC_TYPE_UID_T |
|
52233
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
1373 AC_TYPE_UINT32_T |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
1374 AC_TYPE_UINT64_T |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
1375 AC_TYPE_INT32_T |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
1376 AC_TYPE_INT64_T |
|
45077
f0e6bb9b24f6
Fixed bug #1983: Return from fork() is pid_t, not int
Christian Heimes <christian@cheimes.de>
parents:
45063
diff
changeset
|
1377 AC_CHECK_TYPE(ssize_t, |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36473
diff
changeset
|
1378 AC_DEFINE(HAVE_SSIZE_T, 1, Define if your compiler provides ssize_t),,) |
| 1453 | 1379 |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
1380 # Sizes of various common basic types |
|
31378
64ae832131e1
Remove support for minix.
Skip Montanaro <skip@pobox.com>
parents:
31156
diff
changeset
|
1381 # ANSI C requires sizeof(char) == 1, so no need to check it |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1382 AC_CHECK_SIZEOF(int, 4) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1383 AC_CHECK_SIZEOF(long, 4) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1384 AC_CHECK_SIZEOF(void *, 4) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1385 AC_CHECK_SIZEOF(short, 2) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1386 AC_CHECK_SIZEOF(float, 4) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1387 AC_CHECK_SIZEOF(double, 8) |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1388 AC_CHECK_SIZEOF(fpos_t, 4) |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
36473
diff
changeset
|
1389 AC_CHECK_SIZEOF(size_t, 4) |
|
45077
f0e6bb9b24f6
Fixed bug #1983: Return from fork() is pid_t, not int
Christian Heimes <christian@cheimes.de>
parents:
45063
diff
changeset
|
1390 AC_CHECK_SIZEOF(pid_t, 4) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1391 |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1392 AC_MSG_CHECKING(for long long support) |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1393 have_long_long=no |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1394 AC_TRY_COMPILE([], [long long x; x = (long long)0;], [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1395 AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1396 have_long_long=yes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1397 ]) |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1398 AC_MSG_RESULT($have_long_long) |
|
10563
f6fc67d705de
Quote a bunch of shell variables used in test, related to long-long.
Guido van Rossum <guido@python.org>
parents:
10522
diff
changeset
|
1399 if test "$have_long_long" = yes ; then |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1400 AC_CHECK_SIZEOF(long long, 8) |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1401 fi |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1402 |
|
47503
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1403 AC_MSG_CHECKING(for long double support) |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1404 have_long_double=no |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1405 AC_TRY_COMPILE([], [long double x; x = (long double)0.;], [ |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1406 AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.]) |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1407 have_long_double=yes |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1408 ]) |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1409 AC_MSG_RESULT($have_long_double) |
|
47843
841ae1767b4c
Fix typo in configure.in, and propagate configure.in changes from r64002
Mark Dickinson <dickinsm@gmail.com>
parents:
47503
diff
changeset
|
1410 if test "$have_long_double" = yes ; then |
|
47503
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1411 AC_CHECK_SIZEOF(long double, 12) |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1412 fi |
|
3aebac7f2725
Add long double check support to configure test.
Travis E. Oliphant <oliphant@enthought.com>
parents:
47501
diff
changeset
|
1413 |
|
40681
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1414 AC_MSG_CHECKING(for _Bool support) |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1415 have_c99_bool=no |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1416 AC_TRY_COMPILE([], [_Bool x; x = (_Bool)0;], [ |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1417 AC_DEFINE(HAVE_C99_BOOL, 1, [Define this if you have the type _Bool.]) |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1418 have_c99_bool=yes |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1419 ]) |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1420 AC_MSG_RESULT($have_c99_bool) |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1421 if test "$have_c99_bool" = yes ; then |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1422 AC_CHECK_SIZEOF(_Bool, 1) |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1423 fi |
|
0bffca64ccc4
Patch #1610575: Add support for _Bool to struct.
Martin v. Löwis <martin@v.loewis.de>
parents:
40395
diff
changeset
|
1424 |
|
39947
00af6987026a
Fix test for uintptr_t. Fixes #1568842.
Martin v. Löwis <martin@v.loewis.de>
parents:
39871
diff
changeset
|
1425 AC_CHECK_TYPES(uintptr_t, |
|
00af6987026a
Fix test for uintptr_t. Fixes #1568842.
Martin v. Löwis <martin@v.loewis.de>
parents:
39871
diff
changeset
|
1426 [AC_CHECK_SIZEOF(uintptr_t, 4)], |
|
39950
1697d0d4ef33
Guard uintptr_t test with HAVE_STDINT_H, test for
Martin v. Löwis <martin@v.loewis.de>
parents:
39947
diff
changeset
|
1427 [], [#ifdef HAVE_STDINT_H |
|
1697d0d4ef33
Guard uintptr_t test with HAVE_STDINT_H, test for
Martin v. Löwis <martin@v.loewis.de>
parents:
39947
diff
changeset
|
1428 #include <stdint.h> |
|
1697d0d4ef33
Guard uintptr_t test with HAVE_STDINT_H, test for
Martin v. Löwis <martin@v.loewis.de>
parents:
39947
diff
changeset
|
1429 #endif]) |
|
39947
00af6987026a
Fix test for uintptr_t. Fixes #1568842.
Martin v. Löwis <martin@v.loewis.de>
parents:
39871
diff
changeset
|
1430 |
|
14048
8cf56147d7b5
Added test for uintptr_t, the C9X acceptable way to spell "type to
Barry Warsaw <barry@python.org>
parents:
14023
diff
changeset
|
1431 |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1432 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1433 AC_MSG_CHECKING(size of off_t) |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1434 AC_CACHE_VAL(ac_cv_sizeof_off_t, |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1435 [AC_TRY_RUN([#include <stdio.h> |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1436 #include <sys/types.h> |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1437 main() |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1438 { |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1439 FILE *f=fopen("conftestval", "w"); |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1440 if (!f) exit(1); |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1441 fprintf(f, "%d\n", sizeof(off_t)); |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1442 exit(0); |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1443 }], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1444 ac_cv_sizeof_off_t=`cat conftestval`, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1445 ac_cv_sizeof_off_t=0, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1446 ac_cv_sizeof_off_t=4) |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1447 ]) |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1448 AC_MSG_RESULT($ac_cv_sizeof_off_t) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1449 AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1450 [The number of bytes in an off_t.]) |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1451 |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1452 AC_MSG_CHECKING(whether to enable large file support) |
|
10563
f6fc67d705de
Quote a bunch of shell variables used in test, related to long-long.
Guido van Rossum <guido@python.org>
parents:
10522
diff
changeset
|
1453 if test "$have_long_long" = yes -a \ |
|
f6fc67d705de
Quote a bunch of shell variables used in test, related to long-long.
Guido van Rossum <guido@python.org>
parents:
10522
diff
changeset
|
1454 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
|
f6fc67d705de
Quote a bunch of shell variables used in test, related to long-long.
Guido van Rossum <guido@python.org>
parents:
10522
diff
changeset
|
1455 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1456 AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1457 [Defined to enable large file support when an off_t is bigger than a long |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1458 and long long is available and at least as big as an off_t. You may need |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1459 to add some flags for configuration and compilation to enable this mode. |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1460 (For Solaris and Linux, the necessary defines are already defined.)]) |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1461 AC_MSG_RESULT(yes) |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1462 else |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1463 AC_MSG_RESULT(no) |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1464 fi |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1465 |
|
13151
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1466 # AC_CHECK_SIZEOF() doesn't include <time.h>. |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1467 AC_MSG_CHECKING(size of time_t) |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1468 AC_CACHE_VAL(ac_cv_sizeof_time_t, |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1469 [AC_TRY_RUN([#include <stdio.h> |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1470 #include <time.h> |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1471 main() |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1472 { |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1473 FILE *f=fopen("conftestval", "w"); |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1474 if (!f) exit(1); |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1475 fprintf(f, "%d\n", sizeof(time_t)); |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1476 exit(0); |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1477 }], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1478 ac_cv_sizeof_time_t=`cat conftestval`, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1479 ac_cv_sizeof_time_t=0, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1480 ac_cv_sizeof_time_t=4) |
|
13151
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1481 ]) |
|
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1482 AC_MSG_RESULT($ac_cv_sizeof_time_t) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1483 AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1484 [The number of bytes in a time_t.]) |
|
13151
3f8073c63033
This patch extends PC/config.h and configure.in as appropriate for
Fred Drake <fdrake@acm.org>
parents:
13130
diff
changeset
|
1485 |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
1486 |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1487 # if have pthread_t then define SIZEOF_PTHREAD_T |
|
18735
59d14c88651c
Use -Kpthread when trying to find out the size of pthread_t.
Martin v. Löwis <martin@v.loewis.de>
parents:
18730
diff
changeset
|
1488 ac_save_cc="$CC" |
|
59d14c88651c
Use -Kpthread when trying to find out the size of pthread_t.
Martin v. Löwis <martin@v.loewis.de>
parents:
18730
diff
changeset
|
1489 if test "$ac_cv_kpthread" = "yes" |
|
59d14c88651c
Use -Kpthread when trying to find out the size of pthread_t.
Martin v. Löwis <martin@v.loewis.de>
parents:
18730
diff
changeset
|
1490 then CC="$CC -Kpthread" |
|
28975
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1491 elif test "$ac_cv_kthread" = "yes" |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
1492 then CC="$CC -Kthread" |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1493 elif test "$ac_cv_pthread" = "yes" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
1494 then CC="$CC -pthread" |
|
18735
59d14c88651c
Use -Kpthread when trying to find out the size of pthread_t.
Martin v. Löwis <martin@v.loewis.de>
parents:
18730
diff
changeset
|
1495 fi |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1496 AC_MSG_CHECKING(for pthread_t) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1497 have_pthread_t=no |
|
14798
3e3c2efc79c7
Stupid typo in the pthread_t test
Guido van Rossum <guido@python.org>
parents:
14772
diff
changeset
|
1498 AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes) |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1499 AC_MSG_RESULT($have_pthread_t) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1500 if test "$have_pthread_t" = yes ; then |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1501 # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1502 AC_MSG_CHECKING(size of pthread_t) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1503 AC_CACHE_VAL(ac_cv_sizeof_pthread_t, |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1504 [AC_TRY_RUN([#include <stdio.h> |
|
28035
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
1505 #include <pthread.h> |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1506 main() |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1507 { |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1508 FILE *f=fopen("conftestval", "w"); |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1509 if (!f) exit(1); |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1510 fprintf(f, "%d\n", sizeof(pthread_t)); |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1511 exit(0); |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1512 }], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1513 ac_cv_sizeof_pthread_t=`cat conftestval`, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1514 ac_cv_sizeof_pthread_t=0, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
1515 ac_cv_sizeof_pthread_t=4) |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1516 ]) |
|
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1517 AC_MSG_RESULT($ac_cv_sizeof_pthread_t) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1518 AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1519 [The number of bytes in a pthread_t.]) |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1520 fi |
|
18735
59d14c88651c
Use -Kpthread when trying to find out the size of pthread_t.
Martin v. Löwis <martin@v.loewis.de>
parents:
18730
diff
changeset
|
1521 CC="$ac_save_cc" |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1522 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1523 AC_MSG_CHECKING(for --enable-toolbox-glue) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1524 AC_ARG_ENABLE(toolbox-glue, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1525 AC_HELP_STRING(--enable-toolbox-glue, disable/enable MacOSX glue code for extensions)) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1526 |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1527 if test -z "$enable_toolbox_glue" |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1528 then |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1529 case $ac_sys_system/$ac_sys_release in |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1530 Darwin/*) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1531 enable_toolbox_glue="yes";; |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1532 *) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1533 enable_toolbox_glue="no";; |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1534 esac |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1535 fi |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1536 case "$enable_toolbox_glue" in |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1537 yes) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1538 extra_machdep_objs="Python/mactoolboxglue.o" |
|
33908
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1539 extra_undefs="-u _PyMac_Error" |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1540 AC_DEFINE(USE_TOOLBOX_OBJECT_GLUE, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1541 [Define if you want to use MacPython modules on MacOSX in unix-Python.]) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1542 ;; |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1543 *) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1544 extra_machdep_objs="" |
|
19270
b65312238c0b
MacOSX: if we're building without --enable-toolbox-glue don't attempt to
Jack Jansen <jack.jansen@cwi.nl>
parents:
19262
diff
changeset
|
1545 extra_undefs="" |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1546 ;; |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1547 esac |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1548 AC_MSG_RESULT($enable_toolbox_glue) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1549 |
|
47501
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
1550 |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1551 AC_SUBST(OTHER_LIBTOOL_OPT) |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1552 case $ac_sys_system/$ac_sys_release in |
|
37553
3959810bc549
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
Anthony Baxter <anthonybaxter@gmail.com>
parents:
37456
diff
changeset
|
1553 Darwin/@<:@01567@:>@\..*) |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1554 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1555 ;; |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1556 Darwin/*) |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1557 OTHER_LIBTOOL_OPT="" |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1558 ;; |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1559 esac |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1560 |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1561 AC_SUBST(LIBTOOL_CRUFT) |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1562 case $ac_sys_system/$ac_sys_release in |
|
37553
3959810bc549
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
Anthony Baxter <anthonybaxter@gmail.com>
parents:
37456
diff
changeset
|
1563 Darwin/@<:@01567@:>@\..*) |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1564 LIBTOOL_CRUFT="-framework System -lcc_dynamic" |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1565 if test "${enable_universalsdk}"; then |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1566 : |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1567 else |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1568 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`" |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1569 fi |
|
32709
846ace57389c
Don't hardcode "Python" as the framework name, we have a variable for it:
Jack Jansen <jack.jansen@cwi.nl>
parents:
32526
diff
changeset
|
1570 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
19796
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1571 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
|
15119
a358ba707e4d
Checking in three Darwin-specific patches.
Guido van Rossum <guido@python.org>
parents:
15107
diff
changeset
|
1572 Darwin/*) |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1573 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1574 if test ${gcc_version} '<' 4.0 |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1575 then |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1576 LIBTOOL_CRUFT="-lcc_dynamic" |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1577 else |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1578 LIBTOOL_CRUFT="" |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34754
diff
changeset
|
1579 fi |
|
36649
e1c3ffe926c1
On OSX, use --arch_only `arch` in stead of --arch_only ppc, so things will
Jack Jansen <jack.jansen@cwi.nl>
parents:
36543
diff
changeset
|
1580 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
|
32709
846ace57389c
Don't hardcode "Python" as the framework name, we have a variable for it:
Jack Jansen <jack.jansen@cwi.nl>
parents:
32526
diff
changeset
|
1581 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1582 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1583 esac |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1584 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1585 AC_MSG_CHECKING(for --enable-framework) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1586 if test "$enable_framework" |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1587 then |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
1588 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1589 # -F. is needed to allow linking to the framework while |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1590 # in the build location. |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1591 AC_DEFINE(WITH_NEXT_FRAMEWORK, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1592 [Define if you want to produce an OpenStep/Rhapsody framework |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1593 (shared library plus accessory files).]) |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1594 AC_MSG_RESULT(yes) |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1595 else |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1596 AC_MSG_RESULT(no) |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1597 fi |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1598 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1599 AC_MSG_CHECKING(for dyld) |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1600 case $ac_sys_system/$ac_sys_release in |
|
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1601 Darwin/*) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1602 AC_DEFINE(WITH_DYLD, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1603 [Define if you want to use the new-style (Openstep, Rhapsody, MacOS) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1604 dynamic linker (dyld) instead of the old-style (NextStep) dynamic |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1605 linker (rld). Dyld is necessary to support frameworks.]) |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1606 AC_MSG_RESULT(always on for Darwin) |
|
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1607 ;; |
|
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1608 *) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1609 AC_MSG_RESULT(no) |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1610 ;; |
|
19067
d79865c0f804
Various fixes to streamline build process on Mac OS X:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19062
diff
changeset
|
1611 esac |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1612 |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1613 # Set info about shared libraries. |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1614 AC_SUBST(SO) |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1615 AC_SUBST(LDSHARED) |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1616 AC_SUBST(BLDSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1617 AC_SUBST(CCSHARED) |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1618 AC_SUBST(LINKFORSHARED) |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1619 # SO is the extension of shared libraries `(including the dot!) |
|
15804
37819a777fc0
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum <guido@python.org>
parents:
15802
diff
changeset
|
1620 # -- usually .so, .sl on HP-UX, .dll on Cygwin |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1621 AC_MSG_CHECKING(SO) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1622 if test -z "$SO" |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1623 then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1624 case $ac_sys_system in |
|
38219
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1625 hp*|HP*) |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1626 case `uname -m` in |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1627 ia64) SO=.so;; |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1628 *) SO=.sl;; |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1629 esac |
|
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1630 ;; |
|
15804
37819a777fc0
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum <guido@python.org>
parents:
15802
diff
changeset
|
1631 CYGWIN*) SO=.dll;; |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
1632 *) SO=.so;; |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1633 esac |
|
29466
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1634 else |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1635 # this might also be a termcap variable, see #610332 |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1636 echo |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1637 echo '=====================================================================' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1638 echo '+ +' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1639 echo '+ WARNING: You have set SO in your environment. +' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1640 echo '+ Do you really mean to change the extension for shared libraries? +' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1641 echo '+ Continuing in 10 seconds to let you to ponder. +' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1642 echo '+ +' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1643 echo '=====================================================================' |
|
3523ba92450c
Give a warning if SO is set. Fixes #610332.
Martin v. Löwis <martin@v.loewis.de>
parents:
29460
diff
changeset
|
1644 sleep 10 |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1645 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1646 AC_MSG_RESULT($SO) |
|
50435
40fa868981cc
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
49910
diff
changeset
|
1647 |
|
38219
cbf2d562e322
Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
Neal Norwitz <nnorwitz@gmail.com>
parents:
38188
diff
changeset
|
1648 AC_DEFINE_UNQUOTED(SHLIB_EXT, "$SO", [Define this to be extension of shared libraries (including the dot!).]) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1649 # LDSHARED is the ld *command* used to create shared library |
|
31384
5bbec8f1bf6d
Remove support for SunOS 4.
Skip Montanaro <skip@pobox.com>
parents:
31381
diff
changeset
|
1650 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1651 # (Shared libraries in this instance are shared modules to be loaded into |
|
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1652 # Python, as opposed to building Python itself as a shared library.) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1653 AC_MSG_CHECKING(LDSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1654 if test -z "$LDSHARED" |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1655 then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1656 case $ac_sys_system/$ac_sys_release in |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1657 AIX*) |
|
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1658 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
|
20143
b94bc7ec7be8
Fix SF bug 419062: building pbs on AIX 4.3.2
Guido van Rossum <guido@python.org>
parents:
19933
diff
changeset
|
1659 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1660 ;; |
|
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1661 BeOS*) |
|
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1662 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
|
20143
b94bc7ec7be8
Fix SF bug 419062: building pbs on AIX 4.3.2
Guido van Rossum <guido@python.org>
parents:
19933
diff
changeset
|
1663 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1664 ;; |
|
5382
3f558a32c498
Added test for pthread.h.
Guido van Rossum <guido@python.org>
parents:
5207
diff
changeset
|
1665 IRIX/5*) LDSHARED="ld -shared";; |
|
6470
ee4f2b1ceeda
Don Beaudry's changes to support SGI_ABI on Irix 6.x.
Guido van Rossum <guido@python.org>
parents:
6466
diff
changeset
|
1666 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
|
12767
9cbcad2e8723
When building on Solaris and the compiler is GCC, use '$(CC) -G' to
Greg Ward <gward@python.net>
parents:
12725
diff
changeset
|
1667 SunOS/5*) |
|
9cbcad2e8723
When building on Solaris and the compiler is GCC, use '$(CC) -G' to
Greg Ward <gward@python.net>
parents:
12725
diff
changeset
|
1668 if test "$GCC" = "yes" |
|
16686
a0baf4cd835c
Revert SF patch #103655. Martin Löwis says:
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16669
diff
changeset
|
1669 then LDSHARED='$(CC) -shared' |
|
25628
5bb2c057fd40
Fix quoting for Solaris LDSHARED. Will backport to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25611
diff
changeset
|
1670 else LDSHARED='$(CC) -G'; |
|
12767
9cbcad2e8723
When building on Solaris and the compiler is GCC, use '$(CC) -G' to
Greg Ward <gward@python.net>
parents:
12725
diff
changeset
|
1671 fi ;; |
|
46288
b28a2d25fd92
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
Thomas Heller <theller@ctypes.org>
parents:
46154
diff
changeset
|
1672 hp*|HP*) |
|
b28a2d25fd92
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
Thomas Heller <theller@ctypes.org>
parents:
46154
diff
changeset
|
1673 if test "$GCC" = "yes" |
|
b28a2d25fd92
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
Thomas Heller <theller@ctypes.org>
parents:
46154
diff
changeset
|
1674 then LDSHARED='$(CC) -shared' |
|
b28a2d25fd92
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
Thomas Heller <theller@ctypes.org>
parents:
46154
diff
changeset
|
1675 else LDSHARED='ld -b'; |
|
b28a2d25fd92
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
Thomas Heller <theller@ctypes.org>
parents:
46154
diff
changeset
|
1676 fi ;; |
|
2245
7fa48ab4be0f
add OSF/1 LDSHARED; add IRIX5 conditional for sockets
Guido van Rossum <guido@python.org>
parents:
2195
diff
changeset
|
1677 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
|
20972
ce69d4ee2fa0
OSX tests used specific version numbers to test for new features and
Jack Jansen <jack.jansen@cwi.nl>
parents:
20934
diff
changeset
|
1678 Darwin/1.3*) |
|
19796
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1679 LDSHARED='$(CC) $(LDFLAGS) -bundle' |
|
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1680 if test "$enable_framework" ; then |
|
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1681 # Link against the framework. All externals should be defined. |
|
34348
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1682 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1683 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
19796
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1684 else |
|
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1685 # No framework. Ignore undefined symbols, assuming they come from Python |
|
20972
ce69d4ee2fa0
OSX tests used specific version numbers to test for new features and
Jack Jansen <jack.jansen@cwi.nl>
parents:
20934
diff
changeset
|
1686 LDSHARED="$LDSHARED -undefined suppress" |
|
19796
700fefdc03d2
(Slightly modified) patch by Steve Spicklemire to make Python build
Jack Jansen <jack.jansen@cwi.nl>
parents:
19741
diff
changeset
|
1687 fi ;; |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1688 Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1689 LDSHARED='$(CC) $(LDFLAGS) -bundle' |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1690 if test "$enable_framework" ; then |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1691 # Link against the framework. All externals should be defined. |
|
34348
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1692 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1693 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1694 else |
|
22159
71902e1cfbef
Apply Jack's patch attached to
Michael W. Hudson <mwh@python.net>
parents:
22015
diff
changeset
|
1695 # No framework, use the Python app as bundle-loader |
|
71902e1cfbef
Apply Jack's patch attached to
Michael W. Hudson <mwh@python.net>
parents:
22015
diff
changeset
|
1696 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
|
28057
1a0c231c6b0c
Refer to the Mac OS X bundle_loader by the altbininstall name, so that
Jack Jansen <jack.jansen@cwi.nl>
parents:
28035
diff
changeset
|
1697 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1698 fi ;; |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1699 Darwin/*) |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1700 # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1701 # This allows an extension to be used in any Python |
|
48000
a29c86ce7668
#3381 fix framework builds on 10.4
Benjamin Peterson <benjamin@python.org>
parents:
47986
diff
changeset
|
1702 |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
1703 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2 |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1704 then |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1705 if test "${enable_universalsdk}"; then |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47309
diff
changeset
|
1706 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37714
diff
changeset
|
1707 fi |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1708 LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1709 BLDSHARED="$LDSHARED" |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1710 else |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1711 LDSHARED='$(CC) $(LDFLAGS) -bundle' |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1712 if test "$enable_framework" ; then |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1713 # Link against the framework. All externals should be defined. |
|
34348
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1714 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1715 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1716 else |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1717 # No framework, use the Python app as bundle-loader |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1718 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1719 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1720 fi |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1721 fi |
|
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32008
diff
changeset
|
1722 ;; |
|
47227
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1723 Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; |
|
11293
a9d28a07a327
Erik Lindvall contributed a BSD/OS 4 patch for LDSHARED.
Guido van Rossum <guido@python.org>
parents:
10765
diff
changeset
|
1724 BSD/OS*/4*) LDSHARED="gcc -shared";; |
|
38548
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1725 FreeBSD*) |
|
14305
e3779ee942d0
patch #101733: fix glitch in FreeBSD conf
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
14302
diff
changeset
|
1726 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] |
|
14245
5994bb619163
Some cleanup for FreeBSD. This gets rid of version numbers and
Guido van Rossum <guido@python.org>
parents:
14222
diff
changeset
|
1727 then |
|
33840
6fc10306bf31
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
Hye-Shik Chang <hyeshik@gmail.com>
parents:
33749
diff
changeset
|
1728 LDSHARED="$CC -shared ${LDFLAGS}" |
|
14245
5994bb619163
Some cleanup for FreeBSD. This gets rid of version numbers and
Guido van Rossum <guido@python.org>
parents:
14222
diff
changeset
|
1729 else |
|
5994bb619163
Some cleanup for FreeBSD. This gets rid of version numbers and
Guido van Rossum <guido@python.org>
parents:
14222
diff
changeset
|
1730 LDSHARED="ld -Bshareable ${LDFLAGS}" |
|
5994bb619163
Some cleanup for FreeBSD. This gets rid of version numbers and
Guido van Rossum <guido@python.org>
parents:
14222
diff
changeset
|
1731 fi;; |
|
38548
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1732 OpenBSD*) |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1733 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1734 then |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1735 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1736 else |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1737 case `uname -r` in |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1738 [[01]].* | 2.[[0-7]] | 2.[[0-7]].*) |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1739 LDSHARED="ld -Bshareable ${LDFLAGS}" |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1740 ;; |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1741 *) |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1742 LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}' |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1743 ;; |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1744 esac |
|
383cd94c2a67
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Martin v. Löwis <martin@v.loewis.de>
parents:
38349
diff
changeset
|
1745 fi;; |
|
36543
36325caeff9c
Patch #1432345: Make python compile on DragonFly.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
1746 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
|
20301
3b3ee97633c1
Support OpenUNIX like UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
20299
diff
changeset
|
1747 OpenUNIX*|UnixWare*) |
|
17103
a38cce3f41b4
Use proper compiler flags on UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
17081
diff
changeset
|
1748 if test "$GCC" = "yes" |
|
26594
056387767832
Patch #651289: Fix quoting errors.
Martin v. Löwis <martin@v.loewis.de>
parents:
26500
diff
changeset
|
1749 then LDSHARED='$(CC) -shared' |
|
056387767832
Patch #651289: Fix quoting errors.
Martin v. Löwis <martin@v.loewis.de>
parents:
26500
diff
changeset
|
1750 else LDSHARED='$(CC) -G' |
|
17103
a38cce3f41b4
Use proper compiler flags on UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
17081
diff
changeset
|
1751 fi;; |
|
26594
056387767832
Patch #651289: Fix quoting errors.
Martin v. Löwis <martin@v.loewis.de>
parents:
26500
diff
changeset
|
1752 SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1753 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
|
15804
37819a777fc0
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum <guido@python.org>
parents:
15802
diff
changeset
|
1754 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1755 atheos*) LDSHARED="gcc -shared";; |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1756 *) LDSHARED="ld";; |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1757 esac |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1758 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1759 AC_MSG_RESULT($LDSHARED) |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1760 BLDSHARED=${BLDSHARED-$LDSHARED} |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1761 # CCSHARED are the C *flags* used to create objects to go into a shared |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1762 # library (module) -- this is only needed for a few systems |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1763 AC_MSG_CHECKING(CCSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1764 if test -z "$CCSHARED" |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1765 then |
|
5382
3f558a32c498
Added test for pthread.h.
Guido van Rossum <guido@python.org>
parents:
5207
diff
changeset
|
1766 case $ac_sys_system/$ac_sys_release in |
|
16669
990fa25cde1c
Use -G option for linking shared libraries on Solaris (SF patch #103656).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16627
diff
changeset
|
1767 SunOS*) if test "$GCC" = yes; |
|
41121
adf612f706e4
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis <martin@v.loewis.de>
parents:
40872
diff
changeset
|
1768 then CCSHARED="-fPIC"; |
|
adf612f706e4
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis <martin@v.loewis.de>
parents:
40872
diff
changeset
|
1769 elif test `uname -p` = sparc; |
|
adf612f706e4
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis <martin@v.loewis.de>
parents:
40872
diff
changeset
|
1770 then CCSHARED="-xcode=pic32"; |
|
adf612f706e4
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis <martin@v.loewis.de>
parents:
40872
diff
changeset
|
1771 else CCSHARED="-Kpic"; |
|
adf612f706e4
Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Martin v. Löwis <martin@v.loewis.de>
parents:
40872
diff
changeset
|
1772 fi;; |
| 2329 | 1773 hp*|HP*) if test "$GCC" = yes; |
|
19721
7766ea724320
Use -fPIC instead of -fpic for gcc on HP/UX. Fixes bug #433234.
Martin v. Löwis <martin@v.loewis.de>
parents:
19720
diff
changeset
|
1774 then CCSHARED="-fPIC"; |
| 2329 | 1775 else CCSHARED="+z"; |
| 1776 fi;; | |
|
21606
67da11293406
Patch #497098: build support for GNU/Hurd.
Martin v. Löwis <martin@v.loewis.de>
parents:
21285
diff
changeset
|
1777 Linux*|GNU*) CCSHARED="-fPIC";; |
|
11372
d919cf9fdd89
Dynamic linking support for BSD/OS 4.x as suggested by Vivek Khera
Guido van Rossum <guido@python.org>
parents:
11293
diff
changeset
|
1778 BSD/OS*/4*) CCSHARED="-fpic";; |
|
36543
36325caeff9c
Patch #1432345: Make python compile on DragonFly.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
1779 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
|
20301
3b3ee97633c1
Support OpenUNIX like UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
20299
diff
changeset
|
1780 OpenUNIX*|UnixWare*) |
|
17103
a38cce3f41b4
Use proper compiler flags on UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
17081
diff
changeset
|
1781 if test "$GCC" = "yes" |
|
a38cce3f41b4
Use proper compiler flags on UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
17081
diff
changeset
|
1782 then CCSHARED="-fPIC" |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
1783 else CCSHARED="-KPIC" |
|
17103
a38cce3f41b4
Use proper compiler flags on UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
17081
diff
changeset
|
1784 fi;; |
|
25497
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1785 SCO_SV*) |
|
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1786 if test "$GCC" = "yes" |
|
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1787 then CCSHARED="-fPIC" |
|
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1788 else CCSHARED="-Kpic -belf" |
|
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1789 fi;; |
|
14144
31cda87e9ff4
This patch partly (some stuff went in already) ports Python to Monterey.
Trent Mick <trentm@activestate.com>
parents:
14048
diff
changeset
|
1790 Monterey*) CCSHARED="-G";; |
|
7558
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1791 IRIX*/6*) case $CC in |
|
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1792 *gcc*) CCSHARED="-shared";; |
|
8097
a6ce2dff2735
Remove bogus CCSHARED for cc on IRIX 6.x.
Guido van Rossum <guido@python.org>
parents:
8032
diff
changeset
|
1793 *) CCSHARED="";; |
|
7558
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1794 esac;; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1795 atheos*) CCSHARED="-fPIC";; |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1796 esac |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1797 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1798 AC_MSG_RESULT($CCSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1799 # LINKFORSHARED are the flags passed to the $(CC) command that links |
|
2731
9f82a6bb0010
linux elf shlib; sys/wait.h; don't add -posix for NeXT
Guido van Rossum <guido@python.org>
parents:
2508
diff
changeset
|
1800 # the python executable -- this is only needed for a few systems |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1801 AC_MSG_CHECKING(LINKFORSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1802 if test -z "$LINKFORSHARED" |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1803 then |
|
5382
3f558a32c498
Added test for pthread.h.
Guido van Rossum <guido@python.org>
parents:
5207
diff
changeset
|
1804 case $ac_sys_system/$ac_sys_release in |
|
16626
611768349dd9
Simplify linking on AIX and BeOS (SF patch #103679).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16502
diff
changeset
|
1805 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
| 4608 | 1806 hp*|HP*) |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
1807 LINKFORSHARED="-Wl,-E -Wl,+s";; |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22611
diff
changeset
|
1808 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
|
11372
d919cf9fdd89
Dynamic linking support for BSD/OS 4.x as suggested by Vivek Khera
Guido van Rossum <guido@python.org>
parents:
11293
diff
changeset
|
1809 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
|
21606
67da11293406
Patch #497098: build support for GNU/Hurd.
Martin v. Löwis <martin@v.loewis.de>
parents:
21285
diff
changeset
|
1810 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
|
9970
8efa37a770c6
Patches by William Lewis for Nextstep descendants.
Guido van Rossum <guido@python.org>
parents:
9856
diff
changeset
|
1811 # -u libsys_s pulls in all symbols in libsys |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1812 Darwin/*) |
|
33908
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1813 # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
|
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1814 # which is |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1815 # not used by the core itself but which needs to be in the core so |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1816 # that dynamically loaded extension modules have access to it. |
|
28031
904a8b822daf
Disabled -prebind again when linking the interpreter on MacOSX. It caused
Jack Jansen <jack.jansen@cwi.nl>
parents:
27977
diff
changeset
|
1817 # -prebind is no longer used, because it actually seems to give a |
|
904a8b822daf
Disabled -prebind again when linking the interpreter on MacOSX. It caused
Jack Jansen <jack.jansen@cwi.nl>
parents:
27977
diff
changeset
|
1818 # slowdown in stead of a speedup, maybe due to the large number of |
|
904a8b822daf
Disabled -prebind again when linking the interpreter on MacOSX. It caused
Jack Jansen <jack.jansen@cwi.nl>
parents:
27977
diff
changeset
|
1819 # dynamic loads Python does. |
|
33908
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1820 |
|
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1821 LINKFORSHARED="$extra_undefs" |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1822 if test "$enable_framework" |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1823 then |
|
34348
a8ecd4a96825
Patch #1097739 by Bob Ippolito:
Jack Jansen <jack.jansen@cwi.nl>
parents:
34343
diff
changeset
|
1824 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
1825 fi |
|
33908
7ed899b61182
SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
Raymond Hettinger <python@rcn.com>
parents:
33840
diff
changeset
|
1826 LINKFORSHARED="$LINKFORSHARED";; |
|
20301
3b3ee97633c1
Support OpenUNIX like UnixWare.
Martin v. Löwis <martin@v.loewis.de>
parents:
20299
diff
changeset
|
1827 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
|
25497
b526e12b941b
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis <martin@v.loewis.de>
parents:
25486
diff
changeset
|
1828 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
|
14843
94c246e6399d
Properly set LINKFORSHARED on Reliant UNIX. Problem and required linker
Fred Drake <fdrake@acm.org>
parents:
14807
diff
changeset
|
1829 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
|
36543
36325caeff9c
Patch #1432345: Make python compile on DragonFly.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
1830 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
| 9808 | 1831 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] |
| 1832 then | |
| 1833 LINKFORSHARED="-Wl,--export-dynamic" | |
| 1834 fi;; | |
|
7558
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1835 SunOS/5*) case $CC in |
|
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1836 *gcc*) |
|
23151
f769b4958e66
Test for --export-dynamic directly to avoid problems with binutils 2.12.
Martin v. Löwis <martin@v.loewis.de>
parents:
23084
diff
changeset
|
1837 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
|
6920
afb1e8af7e4f
Two unrelated changes:
Guido van Rossum <guido@python.org>
parents:
6739
diff
changeset
|
1838 then |
|
afb1e8af7e4f
Two unrelated changes:
Guido van Rossum <guido@python.org>
parents:
6739
diff
changeset
|
1839 LINKFORSHARED="-Xlinker --export-dynamic" |
|
7558
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1840 fi;; |
|
22de5116832f
Some changes because gcc on SGI doesn't support '-all'
Guido van Rossum <guido@python.org>
parents:
7524
diff
changeset
|
1841 esac;; |
|
30310
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
1842 CYGWIN*) |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
1843 if test $enable_shared = "no" |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
1844 then |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
1845 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
30106
diff
changeset
|
1846 fi;; |
|
47227
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1847 QNX*) |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1848 # -Wl,-E causes the symbols to be added to the dynamic |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1849 # symbol table so that they can be found when a module |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1850 # is loaded. -N 2048K causes the stack size to be set |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1851 # to 2048 kilobytes so that the stack doesn't overflow |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1852 # when running test_compile.py. |
|
5ec9528c93de
Patch #1722225: Support QNX 6.
Martin v. Löwis <martin@v.loewis.de>
parents:
47219
diff
changeset
|
1853 LINKFORSHARED='-Wl,-E -N 2048K';; |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1854 esac |
|
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1855 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1856 AC_MSG_RESULT($LINKFORSHARED) |
|
1881
3a70e9c0d9f5
Shared library support
Guido van Rossum <guido@python.org>
parents:
1803
diff
changeset
|
1857 |
|
47501
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
1858 |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1859 AC_SUBST(CFLAGSFORSHARED) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1860 AC_MSG_CHECKING(CFLAGSFORSHARED) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1861 if test ! "$LIBRARY" = "$LDLIBRARY" |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1862 then |
|
16307
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1863 case $ac_sys_system in |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1864 CYGWIN*) |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1865 # Cygwin needs CCSHARED when building extension DLLs |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1866 # but not when building the interpreter DLL. |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1867 CFLAGSFORSHARED='';; |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1868 *) |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1869 CFLAGSFORSHARED='$(CCSHARED)' |
|
f84f8d81e32c
- Remove Guido's LINKCC=CXX experiment.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16296
diff
changeset
|
1870 esac |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1871 fi |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1872 AC_MSG_RESULT($CFLAGSFORSHARED) |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
1873 |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1874 # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1875 # library (with --enable-shared). |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1876 # For platforms on which shared libraries are not allowed to have unresolved |
|
24535
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1877 # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
|
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1878 # if it is not required, since it creates a dependency of the shared library |
|
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1879 # to LIBS. This, in turn, means that applications linking the shared libpython |
|
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1880 # don't need to link LIBS explicitly. The default should be only changed |
|
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1881 # on systems where this approach causes problems. |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1882 AC_SUBST(SHLIBS) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1883 AC_MSG_CHECKING(SHLIBS) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1884 case "$ac_sys_system" in |
|
24535
41895609d084
Always link libpython.so with LIBS. Fixes #589422.
Martin v. Löwis <martin@v.loewis.de>
parents:
24469
diff
changeset
|
1885 *) |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1886 SHLIBS='$(LIBS)';; |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1887 esac |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1888 AC_MSG_RESULT($SHLIBS) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1889 |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
1890 |
| 1453 | 1891 # checks for libraries |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1892 AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
1893 AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1894 |
| 49910 | 1895 # only check for sem_init if thread support is requested |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1896 if test "$with_threads" = "yes" -o -z "$with_threads"; then |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1897 AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1898 # posix4 on Solaris 2.6 |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1899 # pthread (first!) on Linux |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1900 fi |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
1901 |
|
29471
4f076fc0195a
Patch #752671: NetBSD needs to link libintl to _locale.so.
Martin v. Löwis <martin@v.loewis.de>
parents:
29469
diff
changeset
|
1902 # check if we need libintl for locale functions |
|
4f076fc0195a
Patch #752671: NetBSD needs to link libintl to _locale.so.
Martin v. Löwis <martin@v.loewis.de>
parents:
29469
diff
changeset
|
1903 AC_CHECK_LIB(intl, textdomain, |
|
4f076fc0195a
Patch #752671: NetBSD needs to link libintl to _locale.so.
Martin v. Löwis <martin@v.loewis.de>
parents:
29469
diff
changeset
|
1904 AC_DEFINE(WITH_LIBINTL, 1, |
|
4f076fc0195a
Patch #752671: NetBSD needs to link libintl to _locale.so.
Martin v. Löwis <martin@v.loewis.de>
parents:
29469
diff
changeset
|
1905 [Define to 1 if libintl is needed for locale functions.])) |
|
11472
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1906 |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1907 # checks for system dependent C++ extensions support |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1908 case "$ac_sys_system" in |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1909 AIX*) AC_MSG_CHECKING(for genuine AIX C++ extensions support) |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1910 AC_TRY_LINK([#include "/usr/lpp/xlC/include/load.h"], |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1911 [loadAndInit("", 0, "")], |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1912 [AC_DEFINE(AIX_GENUINE_CPLUSPLUS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1913 [Define for AIX if your compiler is a genuine IBM xlC/xlC_r |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
1914 and you want support for AIX C++ shared extension modules.]) |
|
11472
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1915 AC_MSG_RESULT(yes)], |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1916 [AC_MSG_RESULT(no)]);; |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1917 *) ;; |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1918 esac |
|
09d351882c51
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Guido van Rossum <guido@python.org>
parents:
11372
diff
changeset
|
1919 |
|
7744
c498451c5f56
Get rid of the check for -linet -- recent Sequent Dynix systems don't
Guido van Rossum <guido@python.org>
parents:
7573
diff
changeset
|
1920 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1921 # BeOS' sockets are stashed in libnet. |
|
2161
f06222e07ca7
hopefully final changes for Sequent -linet
Guido van Rossum <guido@python.org>
parents:
2130
diff
changeset
|
1922 AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4 |
|
f06222e07ca7
hopefully final changes for Sequent -linet
Guido van Rossum <guido@python.org>
parents:
2130
diff
changeset
|
1923 AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets |
|
31381
e20fc1b80205
Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld
Skip Montanaro <skip@pobox.com>
parents:
31380
diff
changeset
|
1924 |
|
13733
ba36a9c3f477
Gregor Hoffleit: don't link with libnet on non-BeOS systems
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13731
diff
changeset
|
1925 case "$ac_sys_system" in |
|
ba36a9c3f477
Gregor Hoffleit: don't link with libnet on non-BeOS systems
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13731
diff
changeset
|
1926 BeOS*) |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1927 AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1928 ;; |
|
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
1929 esac |
|
7744
c498451c5f56
Get rid of the check for -linet -- recent Sequent Dynix systems don't
Guido van Rossum <guido@python.org>
parents:
7573
diff
changeset
|
1930 |
| 3891 | 1931 AC_MSG_CHECKING(for --with-libs) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
1932 AC_ARG_WITH(libs, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1933 AC_HELP_STRING(--with-libs='lib1 ...', link against additional libs), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1934 [ |
| 3891 | 1935 AC_MSG_RESULT($withval) |
| 1936 LIBS="$withval $LIBS" | |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1937 ], |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1938 [AC_MSG_RESULT(no)]) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1939 |
|
37605
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1940 # Check for use of the system libffi library |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1941 AC_MSG_CHECKING(for --with-system-ffi) |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1942 AC_ARG_WITH(system_ffi, |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1943 AC_HELP_STRING(--with-system-ffi, build _ctypes module using an installed ffi library)) |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1944 |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1945 AC_MSG_RESULT($with_system_ffi) |
|
e070c316eb45
Patch #1464444: Add --with-system-ffi.
Martin v. Löwis <martin@v.loewis.de>
parents:
37592
diff
changeset
|
1946 |
|
53602
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1947 # Check for --with-dbmliborder |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1948 AC_MSG_CHECKING(for --with-dbmliborder) |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1949 AC_ARG_WITH(dbmliborder, |
|
53605
ae7f82bbf16c
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53602
diff
changeset
|
1950 AC_HELP_STRING([--with-dbmliborder=db1:db2:...], [order to check db backends for dbm. Valid value is a colon separated string with the backend names `ndbm', `gdbm' and `bdb'.]), |
|
53602
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1951 [ |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1952 if test x$with_dbmliborder = xyes |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1953 then |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1954 AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1955 else |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1956 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1957 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1958 then |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1959 AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1960 fi |
|
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1961 done |
|
53606
a3814dc99b80
- configure.in: Don't error, when no --with-dbmliborder option is present
Matthias Klose <doko@ubuntu.com>
parents:
53605
diff
changeset
|
1962 fi]) |
|
a3814dc99b80
- configure.in: Don't error, when no --with-dbmliborder option is present
Matthias Klose <doko@ubuntu.com>
parents:
53605
diff
changeset
|
1963 AC_MSG_RESULT($with_dbmliborder) |
|
53602
2ef2cb5773fe
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
Matthias Klose <doko@ubuntu.com>
parents:
53227
diff
changeset
|
1964 |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1965 # Determine if signalmodule should be used. |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1966 AC_SUBST(USE_SIGNAL_MODULE) |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1967 AC_SUBST(SIGNAL_OBJS) |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1968 AC_MSG_CHECKING(for --with-signal-module) |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1969 AC_ARG_WITH(signal-module, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1970 AC_HELP_STRING(--with-signal-module, disable/enable signal module)) |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1971 |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1972 if test -z "$with_signal_module" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1973 then with_signal_module="yes" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1974 fi |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1975 AC_MSG_RESULT($with_signal_module) |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1976 |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1977 if test "${with_signal_module}" = "yes"; then |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1978 USE_SIGNAL_MODULE="" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1979 SIGNAL_OBJS="" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1980 else |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1981 USE_SIGNAL_MODULE="#" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1982 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1983 fi |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
1984 |
|
15798
d027e85e209f
Adapted version of Eric Raymond's patches to automatically configure
Guido van Rossum <guido@python.org>
parents:
15766
diff
changeset
|
1985 # This is used to generate Setup.config |
|
6739
1d4175ed6a9c
When --with-thread(s) is specified, the thread module is now automatically
Guido van Rossum <guido@python.org>
parents:
6709
diff
changeset
|
1986 AC_SUBST(USE_THREAD_MODULE) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
1987 USE_THREAD_MODULE="" |
|
6739
1d4175ed6a9c
When --with-thread(s) is specified, the thread module is now automatically
Guido van Rossum <guido@python.org>
parents:
6709
diff
changeset
|
1988 |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1989 AC_MSG_CHECKING(for --with-dec-threads) |
|
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1990 AC_SUBST(LDLAST) |
|
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1991 AC_ARG_WITH(dec-threads, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1992 AC_HELP_STRING(--with-dec-threads, use DEC Alpha/OSF1 thread-safe libraries), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1993 [ |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
1994 AC_MSG_RESULT($withval) |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1995 LDLAST=-threads |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4850
diff
changeset
|
1996 if test "${with_thread+set}" != set; then |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1997 with_thread="$withval"; |
|
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
1998 fi], |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
1999 [AC_MSG_RESULT(no)]) |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
2000 |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2001 # Templates for things AC_DEFINEd more than once. |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2002 # For a single AC_DEFINE, no template is needed. |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2003 AH_TEMPLATE(C_THREADS,[Define if you have the Mach cthreads package]) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2004 AH_TEMPLATE(_REENTRANT, |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2005 [Define to force use of thread-safe errno, h_errno, and other functions]) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2006 AH_TEMPLATE(WITH_THREAD, |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2007 [Define if you want to compile in rudimentary thread support]) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2008 |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
2009 AC_MSG_CHECKING(for --with-threads) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2010 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2011 AC_ARG_WITH(threads, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2012 AC_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@, disable/enable thread support)) |
|
5034
de2a75c7ea9f
Add --with-dec-threads, for DEL Alpha, which requires -threads as the
Guido van Rossum <guido@python.org>
parents:
5024
diff
changeset
|
2013 |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2014 # --with-thread is deprecated, but check for it anyway |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2015 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output |
|
13231
209eb44cdbf7
Document --with-thread as deprecated. This gets rid of the annoying
Barry Warsaw <barry@python.org>
parents:
13228
diff
changeset
|
2016 AC_ARG_WITH(thread, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2017 AC_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@, deprecated; use --with(out)-threads), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2018 [with_threads=$with_thread]) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2019 |
|
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2020 if test -z "$with_threads" |
|
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2021 then with_threads="yes" |
| 1453 | 2022 fi |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2023 AC_MSG_RESULT($with_threads) |
|
5596
2e2bbe985620
DG/UX specific test for threads.
Guido van Rossum <guido@python.org>
parents:
5590
diff
changeset
|
2024 |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2025 AC_SUBST(THREADOBJ) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2026 if test "$with_threads" = "no" |
|
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2027 then |
|
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2028 USE_THREAD_MODULE="#" |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2029 elif test "$ac_cv_pthread_is_default" = yes |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2030 then |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2031 AC_DEFINE(WITH_THREAD) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2032 # Defining _REENTRANT on system with POSIX threads should not hurt. |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2033 AC_DEFINE(_REENTRANT) |
|
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2034 posix_threads=yes |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2035 THREADOBJ="Python/thread.o" |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2036 elif test "$ac_cv_kpthread" = "yes" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2037 then |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2038 CC="$CC -Kpthread" |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2039 if test "$ac_cv_cxx_thread" = "yes"; then |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2040 CXX="$CXX -Kpthread" |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2041 fi |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2042 AC_DEFINE(WITH_THREAD) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2043 posix_threads=yes |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2044 THREADOBJ="Python/thread.o" |
|
28975
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2045 elif test "$ac_cv_kthread" = "yes" |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2046 then |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2047 CC="$CC -Kthread" |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2048 if test "$ac_cv_cxx_thread" = "yes"; then |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2049 CXX="$CXX -Kthread" |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2050 fi |
|
28975
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2051 AC_DEFINE(WITH_THREAD) |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2052 posix_threads=yes |
|
3e88cff05822
Patch #732234: Check for -Kthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
28960
diff
changeset
|
2053 THREADOBJ="Python/thread.o" |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2054 elif test "$ac_cv_pthread" = "yes" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2055 then |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2056 CC="$CC -pthread" |
|
30455
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2057 if test "$ac_cv_cxx_thread" = "yes"; then |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2058 CXX="$CXX -pthread" |
|
bba7e1e0f1c7
Patch #805604: Do not check for sem_init, do not use -Kthread,
Martin v. Löwis <martin@v.loewis.de>
parents:
30451
diff
changeset
|
2059 fi |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2060 AC_DEFINE(WITH_THREAD) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2061 posix_threads=yes |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2062 THREADOBJ="Python/thread.o" |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2063 else |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2064 if test ! -z "$with_threads" -a -d "$with_threads" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2065 then LDFLAGS="$LDFLAGS -L$with_threads" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2066 fi |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2067 if test ! -z "$withval" -a -d "$withval" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2068 then LDFLAGS="$LDFLAGS -L$withval" |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2069 fi |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2070 |
|
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2071 # According to the POSIX spec, a pthreads implementation must |
|
33145
28a205ecb4dd
The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
Matthias Klose <doko@ubuntu.com>
parents:
33135
diff
changeset
|
2072 # define _POSIX_THREADS in unistd.h. Some apparently don't |
|
28a205ecb4dd
The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
Matthias Klose <doko@ubuntu.com>
parents:
33135
diff
changeset
|
2073 # (e.g. gnu pth with pthread emulation) |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2074 AC_MSG_CHECKING(for _POSIX_THREADS in unistd.h) |
|
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2075 AC_EGREP_CPP(yes, |
|
28035
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2076 [ |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2077 #include <unistd.h> |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2078 #ifdef _POSIX_THREADS |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2079 yes |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2080 #endif |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2081 ], unistd_defines_pthreads=yes, unistd_defines_pthreads=no) |
|
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2082 AC_MSG_RESULT($unistd_defines_pthreads) |
|
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2083 |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2084 AC_DEFINE(_REENTRANT) |
|
21606
67da11293406
Patch #497098: build support for GNU/Hurd.
Martin v. Löwis <martin@v.loewis.de>
parents:
21285
diff
changeset
|
2085 AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD) |
|
67da11293406
Patch #497098: build support for GNU/Hurd.
Martin v. Löwis <martin@v.loewis.de>
parents:
21285
diff
changeset
|
2086 AC_DEFINE(C_THREADS) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2087 AC_DEFINE(HURD_C_THREADS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2088 [Define if you are using Mach cthreads directly under /include]) |
|
21606
67da11293406
Patch #497098: build support for GNU/Hurd.
Martin v. Löwis <martin@v.loewis.de>
parents:
21285
diff
changeset
|
2089 LIBS="$LIBS -lthreads" |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2090 THREADOBJ="Python/thread.o"],[ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2091 AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD) |
|
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2092 AC_DEFINE(C_THREADS) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2093 AC_DEFINE(MACH_C_THREADS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2094 [Define if you are using Mach cthreads under mach /]) |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2095 THREADOBJ="Python/thread.o"],[ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2096 AC_MSG_CHECKING(for --with-pth) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2097 AC_ARG_WITH([pth], |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2098 AC_HELP_STRING(--with-pth, use GNU pth threading libraries), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2099 [AC_MSG_RESULT($withval) |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2100 AC_DEFINE([WITH_THREAD]) |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2101 AC_DEFINE([HAVE_PTH], 1, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2102 [Define if you have GNU PTH threads.]) |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2103 LIBS="-lpth $LIBS" |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2104 THREADOBJ="Python/thread.o"], |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2105 [AC_MSG_RESULT(no) |
|
20312
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2106 |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2107 # Just looking for pthread_create in libpthread is not enough: |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2108 # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2109 # So we really have to include pthread.h, and then link. |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2110 _libs=$LIBS |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2111 LIBS="$LIBS -lpthread" |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2112 AC_MSG_CHECKING([for pthread_create in -lpthread]) |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2113 AC_TRY_LINK([#include <pthread.h> |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2114 |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2115 void * start_routine (void *arg) { exit (0); }], [ |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2116 pthread_create (NULL, NULL, start_routine, NULL)], [ |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2117 AC_MSG_RESULT(yes) |
|
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2118 AC_DEFINE(WITH_THREAD) |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2119 posix_threads=yes |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2120 THREADOBJ="Python/thread.o"],[ |
|
20312
3393d6f807f5
Provide explicit program when trying to link pthread_create.
Martin v. Löwis <martin@v.loewis.de>
parents:
20301
diff
changeset
|
2121 LIBS=$_libs |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2122 AC_CHECK_FUNC(pthread_detach, [AC_DEFINE(WITH_THREAD) |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2123 posix_threads=yes |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2124 THREADOBJ="Python/thread.o"],[ |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
2125 AC_CHECK_HEADER(atheos/threads.h, [AC_DEFINE(WITH_THREAD) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
2126 AC_DEFINE(ATHEOS_THREADS, 1, |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
2127 [Define this if you have AtheOS threads.]) |
|
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
2128 THREADOBJ="Python/thread.o"],[ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2129 AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2130 AC_DEFINE(BEOS_THREADS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2131 [Define this if you have BeOS threads.]) |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2132 THREADOBJ="Python/thread.o"],[ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2133 AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2134 posix_threads=yes |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2135 LIBS="$LIBS -lpthreads" |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2136 THREADOBJ="Python/thread.o"], [ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2137 AC_CHECK_LIB(c_r, pthread_create, [AC_DEFINE(WITH_THREAD) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2138 posix_threads=yes |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2139 LIBS="$LIBS -lc_r" |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2140 THREADOBJ="Python/thread.o"], [ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2141 AC_CHECK_LIB(pthread, __pthread_create_system, [AC_DEFINE(WITH_THREAD) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2142 posix_threads=yes |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2143 LIBS="$LIBS -lpthread" |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2144 THREADOBJ="Python/thread.o"], [ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2145 AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2146 posix_threads=yes |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2147 LIBS="$LIBS -lcma" |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22662
diff
changeset
|
2148 THREADOBJ="Python/thread.o"],[ |
|
18730
335e75bcb51a
Patch #418659: Fixes for UnixWare and ReliantUnix.
Martin v. Löwis <martin@v.loewis.de>
parents:
18690
diff
changeset
|
2149 USE_THREAD_MODULE="#"]) |
|
31380
67a1eead72ba
Remove support for systems defining __d6_pthread_create.
Skip Montanaro <skip@pobox.com>
parents:
31379
diff
changeset
|
2150 ])])])])])])])])])]) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
2151 |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2152 AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2153 LIBS="$LIBS -lmpc" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2154 THREADOBJ="Python/thread.o" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2155 USE_THREAD_MODULE=""]) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2156 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2157 if test "$posix_threads" != "yes"; then |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2158 AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2159 LIBS="$LIBS -lthread" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2160 THREADOBJ="Python/thread.o" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2161 USE_THREAD_MODULE=""]) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2162 fi |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2163 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2164 if test "$USE_THREAD_MODULE" != "#" |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2165 then |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2166 # If the above checks didn't disable threads, (at least) OSF1 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2167 # needs this '-threads' argument during linking. |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2168 case $ac_sys_system in |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2169 OSF1) LDLAST=-threads;; |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2170 esac |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2171 fi |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2172 fi |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2173 |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2174 if test "$posix_threads" = "yes"; then |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2175 if test "$unistd_defines_pthreads" = "no"; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2176 AC_DEFINE(_POSIX_THREADS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2177 [Define if you have POSIX threads, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2178 and your system does not define that.]) |
|
20431
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2179 fi |
|
cee0fe5fce11
Do not define _POSIX_THREADS if unistd.h defines it.
Martin v. Löwis <martin@v.loewis.de>
parents:
20428
diff
changeset
|
2180 |
|
27320
1562c1e10b49
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis <martin@v.loewis.de>
parents:
27313
diff
changeset
|
2181 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
|
1562c1e10b49
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis <martin@v.loewis.de>
parents:
27313
diff
changeset
|
2182 case $ac_sys_system/$ac_sys_release in |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2183 SunOS/5.6) AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1, |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2184 Defined for Solaris 2.6 bug in pthread header.) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2185 ;; |
|
27320
1562c1e10b49
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis <martin@v.loewis.de>
parents:
27313
diff
changeset
|
2186 SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1, |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2187 Define if the Posix semaphores do not work on your system) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2188 ;; |
|
45063
7d0df5ec3d2f
Bug #1234: Fixed semaphore errors on AIX 5.2
Christian Heimes <christian@cheimes.de>
parents:
44825
diff
changeset
|
2189 AIX/5) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1, |
|
7d0df5ec3d2f
Bug #1234: Fixed semaphore errors on AIX 5.2
Christian Heimes <christian@cheimes.de>
parents:
44825
diff
changeset
|
2190 Define if the Posix semaphores do not work on your system) |
|
7d0df5ec3d2f
Bug #1234: Fixed semaphore errors on AIX 5.2
Christian Heimes <christian@cheimes.de>
parents:
44825
diff
changeset
|
2191 ;; |
|
27320
1562c1e10b49
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis <martin@v.loewis.de>
parents:
27313
diff
changeset
|
2192 esac |
|
1562c1e10b49
Don't use Posix semaphores on Solaris 8. Fixes #662787.
Martin v. Löwis <martin@v.loewis.de>
parents:
27313
diff
changeset
|
2193 |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2194 AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported) |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2195 AC_CACHE_VAL(ac_cv_pthread_system_supported, |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2196 [AC_TRY_RUN([#include <pthread.h> |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2197 void *foo(void *parm) { |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2198 return NULL; |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2199 } |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2200 main() { |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2201 pthread_attr_t attr; |
|
22015
4eb81869f619
Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
Martin v. Löwis <martin@v.loewis.de>
parents:
21966
diff
changeset
|
2202 pthread_t id; |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2203 if (pthread_attr_init(&attr)) exit(-1); |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2204 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
|
22015
4eb81869f619
Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
Martin v. Löwis <martin@v.loewis.de>
parents:
21966
diff
changeset
|
2205 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2206 exit(0); |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
2207 }], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
2208 ac_cv_pthread_system_supported=yes, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
2209 ac_cv_pthread_system_supported=no, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
2210 ac_cv_pthread_system_supported=no) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2211 ]) |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2212 AC_MSG_RESULT($ac_cv_pthread_system_supported) |
|
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2213 if test "$ac_cv_pthread_system_supported" = "yes"; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2214 AC_DEFINE(PTHREAD_SYSTEM_SCHED_SUPPORTED, 1, [Defined if PTHREAD_SCOPE_SYSTEM supported.]) |
|
19826
8ef456949b76
Improve threading on Solaris, according to SF patch #460269, submitted
Guido van Rossum <guido@python.org>
parents:
19818
diff
changeset
|
2215 fi |
|
29972
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2216 AC_CHECK_FUNCS(pthread_sigmask, |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2217 [case $ac_sys_system in |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2218 CYGWIN*) |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2219 AC_DEFINE(HAVE_BROKEN_PTHREAD_SIGMASK, 1, |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2220 [Define if pthread_sigmask() does not work on your system.]) |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2221 ;; |
|
a408ac5527c3
Patch 775605: Cygwin pthread_sigmask() workaround patch
Jason Tishler <jason@tishler.net>
parents:
29838
diff
changeset
|
2222 esac]) |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2223 fi |
|
15245
e4ea44b10abb
Patch #101936: Auto-detect DEC threads (which need "-threads" argument)
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
15176
diff
changeset
|
2224 |
| 1453 | 2225 |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2226 # Check for enable-ipv6 |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
2227 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) |
|
19720
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2228 AC_MSG_CHECKING([if --enable-ipv6 is specified]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2229 AC_ARG_ENABLE(ipv6, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2230 [ --enable-ipv6 Enable ipv6 (with ipv4) support |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2231 --disable-ipv6 Disable ipv6 support], |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2232 [ case "$enableval" in |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2233 no) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2234 AC_MSG_RESULT(no) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2235 ipv6=no |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2236 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2237 *) AC_MSG_RESULT(yes) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2238 AC_DEFINE(ENABLE_IPV6) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2239 ipv6=yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2240 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2241 esac ], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2242 |
|
19720
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2243 [ |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2244 dnl the check does not work on cross compilation case... |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2245 AC_TRY_RUN([ /* AF_INET6 available check */ |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2246 #include <sys/types.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2247 #include <sys/socket.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2248 main() |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2249 { |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2250 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2251 exit(1); |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2252 else |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2253 exit(0); |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2254 } |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2255 ], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2256 AC_MSG_RESULT(yes) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2257 ipv6=yes, |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2258 AC_MSG_RESULT(no) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2259 ipv6=no, |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2260 AC_MSG_RESULT(no) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2261 ipv6=no |
|
19720
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2262 ) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2263 |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2264 if test "$ipv6" = "yes"; then |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2265 AC_MSG_CHECKING(if RFC2553 API is available) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2266 AC_TRY_COMPILE([#include <sys/types.h> |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2267 #include <netinet/in.h>], |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2268 [struct sockaddr_in6 x; |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2269 x.sin6_scope_id;], |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2270 AC_MSG_RESULT(yes) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2271 ipv6=yes, |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2272 AC_MSG_RESULT(no, IPv6 disabled) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2273 ipv6=no) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2274 fi |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2275 |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2276 if test "$ipv6" = "yes"; then |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2277 AC_DEFINE(ENABLE_IPV6) |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2278 fi |
|
a684b4c10128
Check for RFC 2553 API. Fixes bug #454493.
Martin v. Löwis <martin@v.loewis.de>
parents:
19574
diff
changeset
|
2279 ]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2280 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2281 ipv6type=unknown |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2282 ipv6lib=none |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2283 ipv6trylibc=no |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2284 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2285 if test "$ipv6" = "yes"; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2286 AC_MSG_CHECKING([ipv6 stack type]) |
|
19732
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
2287 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
|
b7dc5159448f
Changes to automatically enable large file support on some systems.
Guido van Rossum <guido@python.org>
parents:
19728
diff
changeset
|
2288 do |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2289 case $i in |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2290 inria) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2291 dnl http://www.kame.net/ |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2292 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2293 #include <netinet/in.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2294 #ifdef IPV6_INRIA_VERSION |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2295 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2296 #endif], |
|
21128
15ff504632ed
Remove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis <martin@v.loewis.de>
parents:
20972
diff
changeset
|
2297 [ipv6type=$i]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2298 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2299 kame) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2300 dnl http://www.kame.net/ |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2301 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2302 #include <netinet/in.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2303 #ifdef __KAME__ |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2304 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2305 #endif], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2306 [ipv6type=$i; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2307 ipv6lib=inet6 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2308 ipv6libdir=/usr/local/v6/lib |
|
21128
15ff504632ed
Remove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis <martin@v.loewis.de>
parents:
20972
diff
changeset
|
2309 ipv6trylibc=yes]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2310 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2311 linux-glibc) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2312 dnl http://www.v6.linux.or.jp/ |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2313 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2314 #include <features.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2315 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2316 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2317 #endif], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2318 [ipv6type=$i; |
|
21128
15ff504632ed
Remove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis <martin@v.loewis.de>
parents:
20972
diff
changeset
|
2319 ipv6trylibc=yes]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2320 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2321 linux-inet6) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2322 dnl http://www.v6.linux.or.jp/ |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2323 if test -d /usr/inet6; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2324 ipv6type=$i |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2325 ipv6lib=inet6 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2326 ipv6libdir=/usr/inet6/lib |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
2327 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2328 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2329 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2330 solaris) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2331 if test -f /etc/netconfig; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2332 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2333 ipv6type=$i |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2334 ipv6trylibc=yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2335 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2336 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2337 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2338 toshiba) |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2339 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2340 #include <sys/param.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2341 #ifdef _TOSHIBA_INET6 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2342 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2343 #endif], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2344 [ipv6type=$i; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2345 ipv6lib=inet6; |
|
21128
15ff504632ed
Remove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis <martin@v.loewis.de>
parents:
20972
diff
changeset
|
2346 ipv6libdir=/usr/local/v6/lib]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2347 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2348 v6d) |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2349 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2350 #include </usr/local/v6/include/sys/v6config.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2351 #ifdef __V6D__ |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2352 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2353 #endif], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2354 [ipv6type=$i; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2355 ipv6lib=v6; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2356 ipv6libdir=/usr/local/v6/lib; |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26998
diff
changeset
|
2357 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2358 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2359 zeta) |
|
20428
632b9d3a8d1a
Check whether pthreads are available without any options before checking
Martin v. Löwis <martin@v.loewis.de>
parents:
20413
diff
changeset
|
2360 AC_EGREP_CPP(yes, [ |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2361 #include <sys/param.h> |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2362 #ifdef _ZETA_MINAMI_INET6 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2363 yes |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2364 #endif], |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2365 [ipv6type=$i; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2366 ipv6lib=inet6; |
|
21128
15ff504632ed
Remove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis <martin@v.loewis.de>
parents:
20972
diff
changeset
|
2367 ipv6libdir=/usr/local/v6/lib]) |
|
19091
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2368 ;; |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2369 esac |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2370 if test "$ipv6type" != "unknown"; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2371 break |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2372 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2373 done |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2374 AC_MSG_RESULT($ipv6type) |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2375 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2376 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2377 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2378 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2379 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2380 echo "using lib$ipv6lib" |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2381 else |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2382 if test $ipv6trylibc = "yes"; then |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2383 echo "using libc" |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2384 else |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2385 echo 'Fatal: no $ipv6lib library found. cannot continue.' |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2386 echo "You need to fetch lib$ipv6lib.a from appropriate" |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2387 echo 'ipv6 kit and compile beforehand.' |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2388 exit 1 |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2389 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2390 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2391 fi |
|
6faed615b058
Move IPv6 test further down so that usage of -lnsl has been tested.
Martin v. Löwis <martin@v.loewis.de>
parents:
19090
diff
changeset
|
2392 |
|
47501
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2393 AC_MSG_CHECKING(for OSX 10.5 SDK or later) |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2394 AC_TRY_COMPILE([#include <Carbon/Carbon.h>], FSIORefNum fRef = 0, |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2395 AC_DEFINE(HAVE_OSX105_SDK, 1, Define if compiling using MacOS X 10.5 SDK or later.) |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2396 AC_MSG_RESULT(yes), |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2397 AC_MSG_RESULT(no) |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2398 ) |
|
c9a5f2eb720c
Fix build issue on OSX 10.4
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47486
diff
changeset
|
2399 |
|
23746
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2400 # Check for --with-doc-strings |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2401 AC_MSG_CHECKING(for --with-doc-strings) |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2402 AC_ARG_WITH(doc-strings, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2403 AC_HELP_STRING(--with(out)-doc-strings, disable/enable documentation strings)) |
|
23746
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2404 |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2405 if test -z "$with_doc_strings" |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2406 then with_doc_strings="yes" |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2407 fi |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2408 if test "$with_doc_strings" != "no" |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2409 then |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2410 AC_DEFINE(WITH_DOC_STRINGS, 1, |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2411 [Define if you want documentation strings in extension modules]) |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2412 fi |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2413 AC_MSG_RESULT($with_doc_strings) |
|
43ddcdcd3c71
Patch #505375: Make doc strings optional.
Martin v. Löwis <martin@v.loewis.de>
parents:
23700
diff
changeset
|
2414 |
|
16782
5864a9c58c81
Add Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16772
diff
changeset
|
2415 # Check for Python-specific malloc support |
|
32301
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2416 AC_MSG_CHECKING(for --with-tsc) |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2417 AC_ARG_WITH(tsc, |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2418 [ --with(out)-tsc enable/disable timestamp counter profile], [ |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2419 if test "$withval" != no |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2420 then |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2421 AC_DEFINE(WITH_TSC, 1, |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2422 [Define to profile with the Pentium timestamp counter]) |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2423 AC_MSG_RESULT(yes) |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2424 else AC_MSG_RESULT(no) |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2425 fi], |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2426 [AC_MSG_RESULT(no)]) |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2427 |
|
41c59d80bbc5
Patch #510695: Add TSC profiling for the VM.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
2428 # Check for Python-specific malloc support |
|
16782
5864a9c58c81
Add Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16772
diff
changeset
|
2429 AC_MSG_CHECKING(for --with-pymalloc) |
|
5864a9c58c81
Add Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16772
diff
changeset
|
2430 AC_ARG_WITH(pymalloc, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2431 AC_HELP_STRING(--with(out)-pymalloc, disable/enable specialized mallocs)) |
|
22447
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2432 |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2433 if test -z "$with_pymalloc" |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2434 then with_pymalloc="yes" |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2435 fi |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2436 if test "$with_pymalloc" != "no" |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2437 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2438 AC_DEFINE(WITH_PYMALLOC, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2439 [Define if you want to compile in Python-specific mallocs]) |
|
22447
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2440 fi |
|
ef6e2fef81d2
Enable pymalloc by default.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22427
diff
changeset
|
2441 AC_MSG_RESULT($with_pymalloc) |
|
16782
5864a9c58c81
Add Vladimir Marangozov's object allocator. It is disabled by default. This
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16772
diff
changeset
|
2442 |
|
13228
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2443 # Check for --with-wctype-functions |
|
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2444 AC_MSG_CHECKING(for --with-wctype-functions) |
|
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2445 AC_ARG_WITH(wctype-functions, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2446 AC_HELP_STRING(--with-wctype-functions, use wctype.h functions), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
2447 [ |
|
13228
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2448 if test "$withval" != no |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2449 then |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2450 AC_DEFINE(WANT_WCTYPE_FUNCTIONS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2451 [Define if you want wctype.h functions to be used instead of the |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2452 one supplied by Python itself. (see Include/unicodectype.h).]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2453 AC_MSG_RESULT(yes) |
|
13228
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2454 else AC_MSG_RESULT(no) |
|
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2455 fi], |
|
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2456 [AC_MSG_RESULT(no)]) |
|
f195c9981fa1
Enable the garbage collection module by default. --without-cycle-gc
Barry Warsaw <barry@python.org>
parents:
13180
diff
changeset
|
2457 |
|
3626
bd6eaa2b41ac
Some more header files and symbols.
Guido van Rossum <guido@python.org>
parents:
3113
diff
changeset
|
2458 # -I${DLINCLDIR} is added to the compile rule for importdl.o |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2459 AC_SUBST(DLINCLDIR) |
|
19741
a5eeb1e70f41
SF bug #427073: DLINCLDIR defined incorrectly (Skip Montanaro).
Guido van Rossum <guido@python.org>
parents:
19732
diff
changeset
|
2460 DLINCLDIR=. |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2461 |
|
11606
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2462 # the dlopen() function means we might want to use dynload_shlib.o. some |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2463 # platforms, such as AIX, have dlopen(), but don't want to use it. |
|
13874
266e11a226f7
Cleanup configure.in. Specifically:
Thomas Wouters <thomas@python.org>
parents:
13733
diff
changeset
|
2464 AC_CHECK_FUNCS(dlopen) |
|
11606
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2465 |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2466 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2467 # loading of modules. |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2468 AC_SUBST(DYNLOADFILE) |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2469 AC_MSG_CHECKING(DYNLOADFILE) |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2470 if test -z "$DYNLOADFILE" |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2471 then |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2472 case $ac_sys_system/$ac_sys_release in |
|
30941
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2473 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2474 if test "$ac_cv_func_dlopen" = yes |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2475 then DYNLOADFILE="dynload_shlib.o" |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2476 else DYNLOADFILE="dynload_aix.o" |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2477 fi |
|
cb7d5e23dbc7
Patch #836434: Use dlopen/dlsym on AIX if available. Also disable
Martin v. Löwis <martin@v.loewis.de>
parents:
30892
diff
changeset
|
2478 ;; |
|
11606
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2479 BeOS*) DYNLOADFILE="dynload_beos.o";; |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2480 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
|
37553
3959810bc549
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
Anthony Baxter <anthonybaxter@gmail.com>
parents:
37456
diff
changeset
|
2481 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() |
|
3959810bc549
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
Anthony Baxter <anthonybaxter@gmail.com>
parents:
37456
diff
changeset
|
2482 Darwin/@<:@0156@:>@\..*) DYNLOADFILE="dynload_next.o";; |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23746
diff
changeset
|
2483 atheos*) DYNLOADFILE="dynload_atheos.o";; |
|
11606
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2484 *) |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2485 # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2486 # out any dynamic loading |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2487 if test "$ac_cv_func_dlopen" = yes |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2488 then DYNLOADFILE="dynload_shlib.o" |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2489 else DYNLOADFILE="dynload_stub.o" |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2490 fi |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2491 ;; |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2492 esac |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2493 fi |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2494 AC_MSG_RESULT($DYNLOADFILE) |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2495 if test "$DYNLOADFILE" != "dynload_stub.o" |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2496 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2497 AC_DEFINE(HAVE_DYNAMIC_LOADING, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2498 [Defined when any dynamic module loading is enabled.]) |
|
11606
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2499 fi |
|
13daad8a6eee
Changes to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum <guido@python.org>
parents:
11584
diff
changeset
|
2500 |
|
18154
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2501 # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
|
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2502 |
|
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2503 AC_SUBST(MACHDEP_OBJS) |
|
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2504 AC_MSG_CHECKING(MACHDEP_OBJS) |
|
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2505 if test -z "$MACHDEP_OBJS" |
|
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2506 then |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
2507 MACHDEP_OBJS=$extra_machdep_objs |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
2508 else |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
2509 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
|
18154
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2510 fi |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19151
diff
changeset
|
2511 AC_MSG_RESULT(MACHDEP_OBJS) |
|
18154
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
17786
diff
changeset
|
2512 |
| 1453 | 2513 # checks for library functions |
|
46053
461ff43e74d0
Patch #2240: Implement signal.setitimer and signal.getitimer.
Martin v. Löwis <martin@v.loewis.de>
parents:
45991
diff
changeset
|
2514 AC_CHECK_FUNCS(alarm setitimer getitimer bind_textdomain_codeset chown \ |
|
461ff43e74d0
Patch #2240: Implement signal.setitimer and signal.getitimer.
Martin v. Löwis <martin@v.loewis.de>
parents:
45991
diff
changeset
|
2515 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ |
|
26810
9d0e62c9a128
Patch #657889: Implement posix.getloadavg.
Martin v. Löwis <martin@v.loewis.de>
parents:
26739
diff
changeset
|
2516 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
|
34481
9c62e7d690a5
Patch #579435: Shadow Password Support Module
Martin v. Löwis <martin@v.loewis.de>
parents:
34348
diff
changeset
|
2517 getpriority getpwent getspnam getspent getsid getwd \ |
|
44140
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2518 kill killpg lchmod lchown lstat mkfifo mknod mktime \ |
| 25721 | 2519 mremap nice pathconf pause plock poll pthread_init \ |
|
27977
0fe321e78ad3
- sys.path[0] (the directory from which the script is loaded) is now
Guido van Rossum <guido@python.org>
parents:
27857
diff
changeset
|
2520 putenv readlink realpath \ |
|
52696
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
2521 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
2522 setgid \ |
|
28422
721e9e4eec1e
Add test for setpgrp. Fixes #690317.
Martin v. Löwis <martin@v.loewis.de>
parents:
28351
diff
changeset
|
2523 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
|
31469
8495b027bce3
Remove HAVE_STRPTIME - no longer necessary with the pure Python version of
Skip Montanaro <skip@pobox.com>
parents:
31443
diff
changeset
|
2524 sigaction siginterrupt sigrelse strftime \ |
| 23550 | 2525 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
|
37099
d62b13488943
Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36649
diff
changeset
|
2526 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty) |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
2527 |
|
26144
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2528 # For some functions, having a definition is not sufficient, since |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2529 # we want to take their address. |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2530 AC_MSG_CHECKING(for chroot) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2531 AC_TRY_COMPILE([#include <unistd.h>], void *x=chroot, |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2532 AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2533 AC_MSG_RESULT(yes), |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2534 AC_MSG_RESULT(no) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2535 ) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2536 AC_MSG_CHECKING(for link) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2537 AC_TRY_COMPILE([#include <unistd.h>], void *x=link, |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2538 AC_DEFINE(HAVE_LINK, 1, Define if you have the 'link' function.) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2539 AC_MSG_RESULT(yes), |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2540 AC_MSG_RESULT(no) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2541 ) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2542 AC_MSG_CHECKING(for symlink) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2543 AC_TRY_COMPILE([#include <unistd.h>], void *x=symlink, |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2544 AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2545 AC_MSG_RESULT(yes), |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2546 AC_MSG_RESULT(no) |
|
a48acb5b40ef
Check whether we can take the address of chown, link, and symlink.
Martin v. Löwis <martin@v.loewis.de>
parents:
26091
diff
changeset
|
2547 ) |
|
30469
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2548 AC_MSG_CHECKING(for fchdir) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2549 AC_TRY_COMPILE([#include <unistd.h>], void *x=fchdir, |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2550 AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2551 AC_MSG_RESULT(yes), |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2552 AC_MSG_RESULT(no) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2553 ) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2554 AC_MSG_CHECKING(for fsync) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2555 AC_TRY_COMPILE([#include <unistd.h>], void *x=fsync, |
|
30540
9cd4f4ae7a4c
Typo: HAVE_SYNC -> HAVE_FSYNC
Skip Montanaro <skip@pobox.com>
parents:
30495
diff
changeset
|
2556 AC_DEFINE(HAVE_FSYNC, 1, Define if you have the 'fsync' function.) |
|
30469
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2557 AC_MSG_RESULT(yes), |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2558 AC_MSG_RESULT(no) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2559 ) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2560 AC_MSG_CHECKING(for fdatasync) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2561 AC_TRY_COMPILE([#include <unistd.h>], void *x=fdatasync, |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2562 AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2563 AC_MSG_RESULT(yes), |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2564 AC_MSG_RESULT(no) |
|
55857aebc24f
Check for declarations of fchdir and fsync. Fixes #800710. Backported to 2.3.
Martin v. Löwis <martin@v.loewis.de>
parents:
30455
diff
changeset
|
2565 ) |
|
45991
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2566 AC_MSG_CHECKING(for epoll) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2567 AC_TRY_COMPILE([#include <sys/epoll.h>], void *x=epoll_create, |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2568 AC_DEFINE(HAVE_EPOLL, 1, Define if you have the 'epoll' functions.) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2569 AC_MSG_RESULT(yes), |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2570 AC_MSG_RESULT(no) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2571 ) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2572 AC_MSG_CHECKING(for kqueue) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2573 AC_TRY_COMPILE([ |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2574 #include <sys/types.h> |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2575 #include <sys/event.h> |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2576 ], int x=kqueue(), |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2577 AC_DEFINE(HAVE_KQUEUE, 1, Define if you have the 'kqueue' functions.) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2578 AC_MSG_RESULT(yes), |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2579 AC_MSG_RESULT(no) |
|
728dc13327b2
Applied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes <christian@cheimes.de>
parents:
45824
diff
changeset
|
2580 ) |
|
26325
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2581 # On some systems (eg. FreeBSD 5), we would find a definition of the |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2582 # functions ctermid_r, setgroups in the library, but no prototype |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2583 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2584 # address to avoid compiler warnings and potential miscompilations |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2585 # because of the missing prototypes. |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2586 |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2587 AC_MSG_CHECKING(for ctermid_r) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2588 AC_TRY_COMPILE([ |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2589 #include "confdefs.h" |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2590 #include <stdio.h> |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2591 ], void* p = ctermid_r, |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2592 AC_DEFINE(HAVE_CTERMID_R, 1, Define if you have the 'ctermid_r' function.) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2593 AC_MSG_RESULT(yes), |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2594 AC_MSG_RESULT(no) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2595 ) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2596 |
|
28454
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2597 AC_MSG_CHECKING(for flock) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2598 AC_TRY_COMPILE([ |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2599 #include "confdefs.h" |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2600 #include <sys/file.h> |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2601 ], void* p = flock, |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2602 AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2603 AC_MSG_RESULT(yes), |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2604 AC_MSG_RESULT(no) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2605 ) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2606 |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2607 AC_MSG_CHECKING(for getpagesize) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2608 AC_TRY_COMPILE([ |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2609 #include "confdefs.h" |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2610 #include <unistd.h> |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2611 ], void* p = getpagesize, |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2612 AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2613 AC_MSG_RESULT(yes), |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2614 AC_MSG_RESULT(no) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2615 ) |
|
f3078654a5c0
Patch #650412: Check whether the address of flock and getpagesize
Martin v. Löwis <martin@v.loewis.de>
parents:
28439
diff
changeset
|
2616 |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2617 dnl check for true |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2618 AC_CHECK_PROGS(TRUE, true, /bin/true) |
|
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2619 |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2620 dnl On some systems (e.g. Solaris 9), hstrerror and inet_aton are in -lresolv |
|
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2621 dnl On others, they are in the C library, so we to take no action |
|
29265
74da4d2eaad3
Patch #742741: Check for true in different paths, support -pthread.
Martin v. Löwis <martin@v.loewis.de>
parents:
29249
diff
changeset
|
2622 AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE], |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2623 AC_CHECK_LIB(resolv, inet_aton) |
|
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2624 ) |
|
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2625 |
|
44140
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2626 # On Tru64, chflags seems to be present, but calling it will |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2627 # exit Python |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2628 AC_MSG_CHECKING(for chflags) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2629 AC_TRY_RUN([ |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2630 #include <sys/stat.h> |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2631 #include <unistd.h> |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2632 int main(int argc, char*argv[]) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2633 { |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2634 if(chflags(argv[0], 0) != 0) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2635 return 1; |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2636 return 0; |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2637 } |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2638 ],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2639 AC_MSG_RESULT(yes), |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2640 AC_MSG_RESULT(no) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2641 ) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2642 |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2643 AC_MSG_CHECKING(for lchflags) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2644 AC_TRY_RUN([ |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2645 #include <sys/stat.h> |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2646 #include <unistd.h> |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2647 int main(int argc, char*argv[]) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2648 { |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2649 if(lchflags(argv[0], 0) != 0) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2650 return 1; |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2651 return 0; |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2652 } |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2653 ],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2654 AC_MSG_RESULT(yes), |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2655 AC_MSG_RESULT(no) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2656 ) |
|
04505c988abc
Fix chflags issue on Tru64, from #1490190.
Martin v. Löwis <martin@v.loewis.de>
parents:
44073
diff
changeset
|
2657 |
|
38771
618d088d9668
Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy
Neal Norwitz <nnorwitz@gmail.com>
parents:
38764
diff
changeset
|
2658 dnl Check if system zlib has *Copy() functions |
|
39019
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2659 dnl |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2660 dnl On MacOSX the linker will search for dylibs on the entire linker path |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2661 dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2662 dnl to revert to a more traditional unix behaviour and make it possible to |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2663 dnl override the system libz with a local static library of libz. Temporarily |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2664 dnl add that flag to our CFLAGS as well to ensure that we check the version |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2665 dnl of libz that will be used by setup.py. |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2666 dnl The -L/usr/local/lib is needed as wel to get the same compilation |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2667 dnl environment as setup.py (and leaving it out can cause configure to use the |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2668 dnl wrong version of the library) |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2669 case $ac_sys_system/$ac_sys_release in |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2670 Darwin/*) |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2671 _CUR_CFLAGS="${CFLAGS}" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2672 _CUR_LDFLAGS="${LDFLAGS}" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2673 CFLAGS="${CFLAGS} -Wl,-search_paths_first" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2674 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2675 ;; |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2676 esac |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2677 |
|
38771
618d088d9668
Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy
Neal Norwitz <nnorwitz@gmail.com>
parents:
38764
diff
changeset
|
2678 AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_ZLIB_COPY, 1, Define if the zlib library has inflateCopy)) |
|
618d088d9668
Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy
Neal Norwitz <nnorwitz@gmail.com>
parents:
38764
diff
changeset
|
2679 |
|
39019
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2680 case $ac_sys_system/$ac_sys_release in |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2681 Darwin/*) |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2682 CFLAGS="${_CUR_CFLAGS}" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2683 LDFLAGS="${_CUR_LDFLAGS}" |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2684 ;; |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2685 esac |
|
f4e33b12bb57
This patch solves the problem Skip was seeing with zlib, this patch ensures that
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38877
diff
changeset
|
2686 |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2687 AC_MSG_CHECKING(for hstrerror) |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2688 AC_TRY_LINK([ |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2689 #include "confdefs.h" |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2690 #include <netdb.h> |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2691 ], void* p = hstrerror; hstrerror(0), |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2692 AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2693 AC_MSG_RESULT(yes), |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2694 AC_MSG_RESULT(no) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2695 ) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2696 |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2697 AC_MSG_CHECKING(for inet_aton) |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2698 AC_TRY_LINK([ |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2699 #include "confdefs.h" |
|
36543
36325caeff9c
Patch #1432345: Make python compile on DragonFly.
Martin v. Löwis <martin@v.loewis.de>
parents:
36501
diff
changeset
|
2700 #include <sys/types.h> |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2701 #include <sys/socket.h> |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2702 #include <netinet/in.h> |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2703 #include <arpa/inet.h> |
|
28960
6ca94aeb292a
Try linking hstrerror and inet_aton tests. Look for these functions in -lresolv.
Martin v. Löwis <martin@v.loewis.de>
parents:
28959
diff
changeset
|
2704 ], void* p = inet_aton;inet_aton(0,0), |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2705 AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2706 AC_MSG_RESULT(yes), |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2707 AC_MSG_RESULT(no) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2708 ) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2709 |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2710 AC_MSG_CHECKING(for inet_pton) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2711 AC_TRY_COMPILE([ |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2712 #include "confdefs.h" |
|
28983
a5dd5747cdfe
Patch #732479: Fix typos.
Martin v. Löwis <martin@v.loewis.de>
parents:
28976
diff
changeset
|
2713 #include <sys/types.h> |
|
28953
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2714 #include <sys/socket.h> |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2715 #include <netinet/in.h> |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2716 #include <arpa/inet.h> |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2717 ], void* p = inet_pton, |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2718 AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2719 AC_MSG_RESULT(yes), |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2720 AC_MSG_RESULT(no) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2721 ) |
|
09422c301826
Patch #724588: Check whether the address of hstrerror and inet_pton can
Martin v. Löwis <martin@v.loewis.de>
parents:
28579
diff
changeset
|
2722 |
|
29764
fe5eb17800f9
Include grp.h in setgroups test. Fixes #765822.
Martin v. Löwis <martin@v.loewis.de>
parents:
29759
diff
changeset
|
2723 # On some systems, setgroups is in unistd.h, on others, in grp.h |
|
26325
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2724 AC_MSG_CHECKING(for setgroups) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2725 AC_TRY_COMPILE([ |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2726 #include "confdefs.h" |
|
28983
a5dd5747cdfe
Patch #732479: Fix typos.
Martin v. Löwis <martin@v.loewis.de>
parents:
28976
diff
changeset
|
2727 #include <unistd.h> |
|
29764
fe5eb17800f9
Include grp.h in setgroups test. Fixes #765822.
Martin v. Löwis <martin@v.loewis.de>
parents:
29759
diff
changeset
|
2728 #ifdef HAVE_GRP_H |
|
fe5eb17800f9
Include grp.h in setgroups test. Fixes #765822.
Martin v. Löwis <martin@v.loewis.de>
parents:
29759
diff
changeset
|
2729 #include <grp.h> |
|
fe5eb17800f9
Include grp.h in setgroups test. Fixes #765822.
Martin v. Löwis <martin@v.loewis.de>
parents:
29759
diff
changeset
|
2730 #endif |
|
26325
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2731 ], |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2732 void* p = setgroups, |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2733 AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2734 AC_MSG_RESULT(yes), |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2735 AC_MSG_RESULT(no) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2736 ) |
|
823896ce2e5d
Patch #639371: Remove FreeBSD 5 specific test, test for ctermid_r, setgroups
Martin v. Löwis <martin@v.loewis.de>
parents:
26170
diff
changeset
|
2737 |
|
13058
53f4022c0cd5
Thomas Wouters <thomas@xs4all.net>:
Fred Drake <fdrake@acm.org>
parents:
12949
diff
changeset
|
2738 # check for openpty and forkpty |
|
53f4022c0cd5
Thomas Wouters <thomas@xs4all.net>:
Fred Drake <fdrake@acm.org>
parents:
12949
diff
changeset
|
2739 |
|
36245
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2740 AC_CHECK_FUNCS(openpty,, |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2741 AC_CHECK_LIB(util,openpty, |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2742 [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"], |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2743 AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"]) |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2744 ) |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2745 ) |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2746 AC_CHECK_FUNCS(forkpty,, |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2747 AC_CHECK_LIB(util,forkpty, |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2748 [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"], |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2749 AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"]) |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2750 ) |
|
d3e68cb739fb
Patch #881820: look for openpty and forkpty also in libbsd.
Martin v. Löwis <martin@v.loewis.de>
parents:
36228
diff
changeset
|
2751 ) |
|
13058
53f4022c0cd5
Thomas Wouters <thomas@xs4all.net>:
Fred Drake <fdrake@acm.org>
parents:
12949
diff
changeset
|
2752 |
|
45824
c0f165e1dbc0
Remove our implementation of memmove() and strerror(); both are in the C89
Brett Cannon <bcannon@gmail.com>
parents:
45787
diff
changeset
|
2753 # Stuff for expat. |
|
c0f165e1dbc0
Remove our implementation of memmove() and strerror(); both are in the C89
Brett Cannon <bcannon@gmail.com>
parents:
45787
diff
changeset
|
2754 AC_CHECK_FUNCS(memmove) |
|
c0f165e1dbc0
Remove our implementation of memmove() and strerror(); both are in the C89
Brett Cannon <bcannon@gmail.com>
parents:
45787
diff
changeset
|
2755 |
|
9790
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
2756 # check for long file support functions |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
2757 AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs) |
|
7cdcdf8686b3
Changes for long file support by Steve Clift.
Guido van Rossum <guido@python.org>
parents:
9646
diff
changeset
|
2758 |
|
45824
c0f165e1dbc0
Remove our implementation of memmove() and strerror(); both are in the C89
Brett Cannon <bcannon@gmail.com>
parents:
45787
diff
changeset
|
2759 AC_REPLACE_FUNCS(dup2 getcwd strdup) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2760 AC_CHECK_FUNCS(getpgrp, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2761 AC_TRY_COMPILE([#include <unistd.h>], |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2762 [getpgrp(0);], |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2763 AC_DEFINE(GETPGRP_HAVE_ARG, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2764 [Define if getpgrp() must be called as getpgrp(0).]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2765 ) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2766 ) |
|
28439
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2767 AC_CHECK_FUNCS(setpgrp, |
|
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2768 AC_TRY_COMPILE([#include <unistd.h>], |
|
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2769 [setpgrp(0,0);], |
|
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2770 AC_DEFINE(SETPGRP_HAVE_ARG, 1, |
|
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2771 [Define if setpgrp() must be called as setpgrp(0, 0).]) |
|
d93a845ce5c0
The test for setpgrp having two arguments didn't actually test anything.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28423
diff
changeset
|
2772 ) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2773 ) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2774 AC_CHECK_FUNCS(gettimeofday, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2775 AC_TRY_COMPILE([#include <sys/time.h>], |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2776 [gettimeofday((struct timeval*)0,(struct timezone*)0);], , |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2777 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2778 [Define if gettimeofday() does not have second (timezone) argument |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2779 This is the case on Motorola V4 (R40V4.2)]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2780 ) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2781 ) |
| 1453 | 2782 |
|
25694
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2783 AC_MSG_CHECKING(for major, minor, and makedev) |
|
26091
d9474c0445ba
Try linking the major/minor test program. Fixes #634444.
Martin v. Löwis <martin@v.loewis.de>
parents:
26073
diff
changeset
|
2784 AC_TRY_LINK([ |
|
28035
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2785 #if defined(MAJOR_IN_MKDEV) |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2786 #include <sys/mkdev.h> |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2787 #elif defined(MAJOR_IN_SYSMACROS) |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2788 #include <sys/sysmacros.h> |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2789 #else |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2790 #include <sys/types.h> |
|
f34fcd63ae28
Fix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz <nnorwitz@gmail.com>
parents:
28031
diff
changeset
|
2791 #endif |
|
25694
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2792 ],[ |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2793 makedev(major(0),minor(0)); |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2794 ],[ |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2795 AC_DEFINE(HAVE_DEVICE_MACROS, 1, |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2796 [Define to 1 if you have the device macros.]) |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2797 AC_MSG_RESULT(yes) |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2798 ],[ |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2799 AC_MSG_RESULT(no) |
|
e9e7f160aac9
Patch #569139: Implementation of major, minor and makedev.
Martin v. Löwis <martin@v.loewis.de>
parents:
25656
diff
changeset
|
2800 ]) |
|
20646
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2801 |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2802 # On OSF/1 V5.1, getaddrinfo is available, but a define |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2803 # for [no]getaddrinfo in netdb.h. |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2804 AC_MSG_CHECKING(for getaddrinfo) |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2805 AC_TRY_LINK([ |
|
20934
ba9455fc4c8b
Add sys/types.h and stdio.h into getaddrinfo test, based on itojun's message
Martin v. Löwis <martin@v.loewis.de>
parents:
20789
diff
changeset
|
2806 #include <sys/types.h> |
|
20646
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2807 #include <sys/socket.h> |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2808 #include <netdb.h> |
|
20934
ba9455fc4c8b
Add sys/types.h and stdio.h into getaddrinfo test, based on itojun's message
Martin v. Löwis <martin@v.loewis.de>
parents:
20789
diff
changeset
|
2809 #include <stdio.h> |
|
20646
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2810 ],[ |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2811 getaddrinfo(NULL, NULL, NULL, NULL); |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2812 ], [ |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2813 AC_MSG_RESULT(yes) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2814 AC_MSG_CHECKING(getaddrinfo bug) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2815 AC_TRY_RUN([ |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2816 #include <sys/types.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2817 #include <netdb.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2818 #include <string.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2819 #include <sys/socket.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2820 #include <netinet/in.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2821 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2822 main() |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2823 { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2824 int passive, gaierr, inet4 = 0, inet6 = 0; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2825 struct addrinfo hints, *ai, *aitop; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2826 char straddr[INET6_ADDRSTRLEN], strport[16]; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2827 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2828 for (passive = 0; passive <= 1; passive++) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2829 memset(&hints, 0, sizeof(hints)); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2830 hints.ai_family = AF_UNSPEC; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2831 hints.ai_flags = passive ? AI_PASSIVE : 0; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2832 hints.ai_socktype = SOCK_STREAM; |
|
31910
73486ff6b552
Bug #934635: Fix a bug where the configure script couldn't detect
Hye-Shik Chang <hyeshik@gmail.com>
parents:
31761
diff
changeset
|
2833 hints.ai_protocol = IPPROTO_TCP; |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2834 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2835 (void)gai_strerror(gaierr); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2836 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2837 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2838 for (ai = aitop; ai; ai = ai->ai_next) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2839 if (ai->ai_addr == NULL || |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2840 ai->ai_addrlen == 0 || |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2841 getnameinfo(ai->ai_addr, ai->ai_addrlen, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2842 straddr, sizeof(straddr), strport, sizeof(strport), |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2843 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2844 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2845 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2846 switch (ai->ai_family) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2847 case AF_INET: |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2848 if (strcmp(strport, "54321") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2849 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2850 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2851 if (passive) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2852 if (strcmp(straddr, "0.0.0.0") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2853 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2854 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2855 } else { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2856 if (strcmp(straddr, "127.0.0.1") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2857 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2858 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2859 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2860 inet4++; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2861 break; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2862 case AF_INET6: |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2863 if (strcmp(strport, "54321") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2864 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2865 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2866 if (passive) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2867 if (strcmp(straddr, "::") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2868 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2869 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2870 } else { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2871 if (strcmp(straddr, "::1") != 0) { |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2872 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2873 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2874 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2875 inet6++; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2876 break; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2877 case AF_UNSPEC: |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2878 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2879 break; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2880 default: |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2881 /* another family support? */ |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2882 break; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2883 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2884 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2885 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2886 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2887 if (!(inet4 == 0 || inet4 == 2)) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2888 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2889 if (!(inet6 == 0 || inet6 == 2)) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2890 goto bad; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2891 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2892 if (aitop) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2893 freeaddrinfo(aitop); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2894 exit(0); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2895 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2896 bad: |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2897 if (aitop) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2898 freeaddrinfo(aitop); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2899 exit(1); |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2900 } |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2901 ], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2902 AC_MSG_RESULT(good) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2903 buggygetaddrinfo=no, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2904 AC_MSG_RESULT(buggy) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2905 buggygetaddrinfo=yes, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2906 AC_MSG_RESULT(buggy) |
|
20646
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2907 buggygetaddrinfo=yes)], [ |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2908 AC_MSG_RESULT(no) |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2909 buggygetaddrinfo=yes |
|
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2910 ]) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2911 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2912 if test "$buggygetaddrinfo" = "yes"; then |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2913 if test "$ipv6" = "yes"; then |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2914 echo 'Fatal: You must get working getaddrinfo() function.' |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2915 echo ' or you can specify "--disable-ipv6"'. |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2916 exit 1 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2917 fi |
|
20646
cabb568a558b
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
Martin v. Löwis <martin@v.loewis.de>
parents:
20596
diff
changeset
|
2918 else |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2919 AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if you have the getaddrinfo function.]) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2920 fi |
|
19062
e426230ea573
Remove redundant check for 'getaddrinfo' (it's already checked the block
Thomas Wouters <thomas@python.org>
parents:
18996
diff
changeset
|
2921 AC_CHECK_FUNCS(getnameinfo) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2922 |
| 1453 | 2923 # checks for structures |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2924 AC_HEADER_TIME |
| 1453 | 2925 AC_STRUCT_TM |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2926 AC_STRUCT_TIMEZONE |
|
25810
915112671152
Patch #623780: Replace obsolete struct macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25721
diff
changeset
|
2927 AC_CHECK_MEMBERS([struct stat.st_rdev]) |
|
915112671152
Patch #623780: Replace obsolete struct macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25721
diff
changeset
|
2928 AC_CHECK_MEMBERS([struct stat.st_blksize]) |
|
34990
00cd350cf7bf
Patch #1212117: Add optional attribute st_flags to os.stat_result
Hye-Shik Chang <hyeshik@gmail.com>
parents:
34828
diff
changeset
|
2929 AC_CHECK_MEMBERS([struct stat.st_flags]) |
|
35326
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
2930 AC_CHECK_MEMBERS([struct stat.st_gen]) |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
2931 AC_CHECK_MEMBERS([struct stat.st_birthtime]) |
|
20539
2d599a36b67a
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
Guido van Rossum <guido@python.org>
parents:
20537
diff
changeset
|
2932 AC_STRUCT_ST_BLOCKS |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2933 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2934 AC_MSG_CHECKING(for time.h that defines altzone) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2935 AC_CACHE_VAL(ac_cv_header_time_altzone, |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2936 [AC_TRY_COMPILE([#include <time.h>], [return altzone;], |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2937 ac_cv_header_time_altzone=yes, |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2938 ac_cv_header_time_altzone=no)]) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2939 AC_MSG_RESULT($ac_cv_header_time_altzone) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2940 if test $ac_cv_header_time_altzone = yes; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2941 AC_DEFINE(HAVE_ALTZONE, 1, [Define this if your time.h defines altzone.]) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2942 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2943 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2944 was_it_defined=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2945 AC_MSG_CHECKING(whether sys/select.h and sys/time.h may both be included) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2946 AC_TRY_COMPILE([ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2947 #include <sys/types.h> |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2948 #include <sys/select.h> |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2949 #include <sys/time.h> |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2950 ], [;], [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2951 AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2952 [Define if you can safely include both <sys/select.h> and <sys/time.h> |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2953 (which you can't on SCO ODT 3.0).]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2954 was_it_defined=yes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2955 ]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2956 AC_MSG_RESULT($was_it_defined) |
| 1453 | 2957 |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2958 AC_MSG_CHECKING(for addrinfo) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2959 AC_CACHE_VAL(ac_cv_struct_addrinfo, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2960 AC_TRY_COMPILE([ |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2961 # include <netdb.h>], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2962 [struct addrinfo a], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2963 ac_cv_struct_addrinfo=yes, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2964 ac_cv_struct_addrinfo=no)) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2965 AC_MSG_RESULT($ac_cv_struct_addrinfo) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2966 if test $ac_cv_struct_addrinfo = yes; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2967 AC_DEFINE(HAVE_ADDRINFO, 1, [struct addrinfo (netdb.h)]) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2968 fi |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2969 |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2970 AC_MSG_CHECKING(for sockaddr_storage) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2971 AC_CACHE_VAL(ac_cv_struct_sockaddr_storage, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2972 AC_TRY_COMPILE([ |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2973 # include <sys/types.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2974 # include <sys/socket.h>], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2975 [struct sockaddr_storage s], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2976 ac_cv_struct_sockaddr_storage=yes, |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2977 ac_cv_struct_sockaddr_storage=no)) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2978 AC_MSG_RESULT($ac_cv_struct_sockaddr_storage) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2979 if test $ac_cv_struct_sockaddr_storage = yes; then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2980 AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [struct sockaddr_storage (sys/socket.h)]) |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2981 fi |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
2982 |
| 1453 | 2983 # checks for compiler characteristics |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2984 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2985 AC_C_CHAR_UNSIGNED |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
2986 AC_C_CONST |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2987 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2988 works=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2989 AC_MSG_CHECKING(for working volatile) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2990 AC_TRY_COMPILE([],[volatile int x; x = 0;], works=yes, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2991 AC_DEFINE(volatile, [], [Define to empty if the keyword does not work.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2992 ) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2993 AC_MSG_RESULT($works) |
| 1974 | 2994 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2995 works=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
2996 AC_MSG_CHECKING(for working signed char) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2997 AC_TRY_COMPILE([], [signed char c;], works=yes, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2998 AC_DEFINE(signed, [], [Define to empty if the keyword does not work.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
2999 ) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3000 AC_MSG_RESULT($works) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3001 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3002 have_prototypes=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3003 AC_MSG_CHECKING(for prototypes) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3004 AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],[ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3005 AC_DEFINE(HAVE_PROTOTYPES, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3006 [Define if your compiler supports function prototype]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3007 have_prototypes=yes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3008 ]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3009 AC_MSG_RESULT($have_prototypes) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3010 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3011 works=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3012 AC_MSG_CHECKING(for variable length prototypes and stdarg.h) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3013 AC_TRY_COMPILE([ |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3014 #include <stdarg.h> |
|
4184
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3015 int foo(int x, ...) { |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3016 va_list va; |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3017 va_start(va, x); |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3018 va_arg(va, int); |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3019 va_arg(va, char *); |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3020 va_arg(va, double); |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3021 return 0; |
|
2ccb99c92854
More thorough test for working <stdarg.h>.
Guido van Rossum <guido@python.org>
parents:
4180
diff
changeset
|
3022 } |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3023 ], [return foo(10, "", 3.14);], [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3024 AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3025 [Define if your compiler supports variable length function prototypes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3026 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3027 works=yes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3028 ]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3029 AC_MSG_RESULT($works) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3030 |
|
33063
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3031 # check for socketpair |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3032 AC_MSG_CHECKING(for socketpair) |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3033 AC_TRY_COMPILE([ |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3034 #include <sys/types.h> |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3035 #include <sys/socket.h> |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3036 ], void *x=socketpair, |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3037 AC_DEFINE(HAVE_SOCKETPAIR, 1, Define if you have the 'socketpair' function.) |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3038 AC_MSG_RESULT(yes), |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3039 AC_MSG_RESULT(no) |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3040 ) |
|
90da70986407
Patch #1003700: Add socketpair function to socket module.
Dave Cole <djc@object-craft.com.au>
parents:
32794
diff
changeset
|
3041 |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3042 # check if sockaddr has sa_len member |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3043 AC_MSG_CHECKING(if sockaddr has sa_len member) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3044 AC_TRY_COMPILE([#include <sys/types.h> |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3045 #include <sys/socket.h>], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3046 [struct sockaddr x; |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3047 x.sa_len = 0;], |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3048 AC_MSG_RESULT(yes) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3049 AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member]), |
|
18246
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3050 AC_MSG_RESULT(no)) |
|
c4db09b87424
Patch #401196: Configuration machinery for IPv6.
Martin v. Löwis <martin@v.loewis.de>
parents:
18154
diff
changeset
|
3051 |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3052 va_list_is_array=no |
|
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3053 AC_MSG_CHECKING(whether va_list is an array) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3054 AC_TRY_COMPILE([ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3055 #ifdef HAVE_STDARG_PROTOTYPES |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3056 #include <stdarg.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3057 #else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3058 #include <varargs.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3059 #endif |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3060 ], [va_list list1, list2; list1 = list2;], , [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3061 AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3062 va_list_is_array=yes |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3063 ]) |
|
2195
ccc279ff935d
modernize all tests to use cache and report outcome
Guido van Rossum <guido@python.org>
parents:
2193
diff
changeset
|
3064 AC_MSG_RESULT($va_list_is_array) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3065 |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3066 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
3067 AH_TEMPLATE(HAVE_GETHOSTBYNAME_R, |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
3068 [Define this if you have some version of gethostbyname_r()]) |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
3069 |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3070 AC_CHECK_FUNC(gethostbyname_r, [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3071 AC_DEFINE(HAVE_GETHOSTBYNAME_R) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3072 AC_MSG_CHECKING([gethostbyname_r with 6 args]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3073 OLD_CFLAGS=$CFLAGS |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3074 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3075 AC_TRY_COMPILE([ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3076 # include <netdb.h> |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3077 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3078 char *name; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3079 struct hostent *he, *res; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3080 char buffer[2048]; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3081 int buflen = 2048; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3082 int h_errnop; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3083 |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3084 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3085 ], [ |
|
10448
97a06ec7c6f4
Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
Guido van Rossum <guido@python.org>
parents:
10444
diff
changeset
|
3086 AC_DEFINE(HAVE_GETHOSTBYNAME_R) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3087 AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3088 [Define this if you have the 6-arg version of gethostbyname_r().]) |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3089 AC_MSG_RESULT(yes) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3090 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3091 AC_MSG_RESULT(no) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3092 AC_MSG_CHECKING([gethostbyname_r with 5 args]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3093 AC_TRY_COMPILE([ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3094 # include <netdb.h> |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3095 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3096 char *name; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3097 struct hostent *he; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3098 char buffer[2048]; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3099 int buflen = 2048; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3100 int h_errnop; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3101 |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3102 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3103 ], [ |
|
10448
97a06ec7c6f4
Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
Guido van Rossum <guido@python.org>
parents:
10444
diff
changeset
|
3104 AC_DEFINE(HAVE_GETHOSTBYNAME_R) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3105 AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3106 [Define this if you have the 5-arg version of gethostbyname_r().]) |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3107 AC_MSG_RESULT(yes) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3108 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3109 AC_MSG_RESULT(no) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3110 AC_MSG_CHECKING([gethostbyname_r with 3 args]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3111 AC_TRY_COMPILE([ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3112 # include <netdb.h> |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3113 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3114 char *name; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3115 struct hostent *he; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3116 struct hostent_data data; |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3117 |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3118 (void) gethostbyname_r(name, he, &data); |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3119 ], [ |
|
10448
97a06ec7c6f4
Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
Guido van Rossum <guido@python.org>
parents:
10444
diff
changeset
|
3120 AC_DEFINE(HAVE_GETHOSTBYNAME_R) |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3121 AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3122 [Define this if you have the 3-arg version of gethostbyname_r().]) |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3123 AC_MSG_RESULT(yes) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3124 ], [ |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3125 AC_MSG_RESULT(no) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3126 ]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3127 ]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3128 ]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3129 CFLAGS=$OLD_CFLAGS |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3130 ], [ |
|
13874
266e11a226f7
Cleanup configure.in. Specifically:
Thomas Wouters <thomas@python.org>
parents:
13733
diff
changeset
|
3131 AC_CHECK_FUNCS(gethostbyname) |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3132 ]) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3133 AC_SUBST(HAVE_GETHOSTBYNAME_R_6_ARG) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3134 AC_SUBST(HAVE_GETHOSTBYNAME_R_5_ARG) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3135 AC_SUBST(HAVE_GETHOSTBYNAME_R_3_ARG) |
|
10448
97a06ec7c6f4
Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested!
Guido van Rossum <guido@python.org>
parents:
10444
diff
changeset
|
3136 AC_SUBST(HAVE_GETHOSTBYNAME_R) |
|
10444
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3137 AC_SUBST(HAVE_GETHOSTBYNAME) |
|
2a149e94ef4a
Add code to test for all sorts of gethostbyname_r variants,
Guido van Rossum <guido@python.org>
parents:
10402
diff
changeset
|
3138 |
| 1453 | 3139 # checks for system services |
| 3140 # (none yet) | |
| 3141 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
2015
diff
changeset
|
3142 # Linux requires this for correct f.p. operations |
|
13731
8d996f9c5903
Gregor Hoffleit: Don't link with the libieee library if it's not necessary
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13601
diff
changeset
|
3143 AC_CHECK_FUNC(__fpu_control, |
|
8d996f9c5903
Gregor Hoffleit: Don't link with the libieee library if it's not necessary
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13601
diff
changeset
|
3144 [], |
|
8d996f9c5903
Gregor Hoffleit: Don't link with the libieee library if it's not necessary
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13601
diff
changeset
|
3145 [AC_CHECK_LIB(ieee, __fpu_control) |
|
8d996f9c5903
Gregor Hoffleit: Don't link with the libieee library if it's not necessary
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
13601
diff
changeset
|
3146 ]) |
| 1453 | 3147 |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3148 # Check for --with-fpectl |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3149 AC_MSG_CHECKING(for --with-fpectl) |
|
13130
7a7871535727
Thread support is turned on my default now. To disable building
Barry Warsaw <barry@python.org>
parents:
13058
diff
changeset
|
3150 AC_ARG_WITH(fpectl, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3151 AC_HELP_STRING(--with-fpectl, enable SIGFPE catching), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3152 [ |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3153 if test "$withval" != no |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3154 then |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3155 AC_DEFINE(WANT_SIGFPE_HANDLER, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3156 [Define if you want SIGFPE handled (see Include/pyfpe.h).]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3157 AC_MSG_RESULT(yes) |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3158 else AC_MSG_RESULT(no) |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3159 fi], |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3160 [AC_MSG_RESULT(no)]) |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3161 |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3162 # check for --with-libm=... |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3163 AC_SUBST(LIBM) |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
3164 case $ac_sys_system in |
|
15033
6c91a041c1d2
[ Patch #101730 ] Add initial static support for Darwin/MacOSX.
Guido van Rossum <guido@python.org>
parents:
14843
diff
changeset
|
3165 Darwin) ;; |
|
8818
71fcc4ca0e8a
Changes for BeOS, QNX and long long, by Chris Herborth.
Guido van Rossum <guido@python.org>
parents:
8632
diff
changeset
|
3166 BeOS) ;; |
|
4253
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
3167 *) LIBM=-lm |
|
02a0321f9468
Changes for NeXT by Lele
Guido van Rossum <guido@python.org>
parents:
4252
diff
changeset
|
3168 esac |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3169 AC_MSG_CHECKING(for --with-libm=STRING) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3170 AC_ARG_WITH(libm, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3171 AC_HELP_STRING(--with-libm=STRING, math library), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3172 [ |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3173 if test "$withval" = no |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3174 then LIBM= |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3175 AC_MSG_RESULT(force LIBM empty) |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3176 elif test "$withval" != yes |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3177 then LIBM=$withval |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3178 AC_MSG_RESULT(set LIBM="$withval") |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3179 else AC_MSG_ERROR([proper usage is --with-libm=STRING]) |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3180 fi], |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3181 [AC_MSG_RESULT(default LIBM="$LIBM")]) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3182 |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3183 # check for --with-libc=... |
|
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3184 AC_SUBST(LIBC) |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3185 AC_MSG_CHECKING(for --with-libc=STRING) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3186 AC_ARG_WITH(libc, |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3187 AC_HELP_STRING(--with-libc=STRING, C library), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3188 [ |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3189 if test "$withval" = no |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3190 then LIBC= |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3191 AC_MSG_RESULT(force LIBC empty) |
|
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3192 elif test "$withval" != yes |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3193 then LIBC=$withval |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3194 AC_MSG_RESULT(set LIBC="$withval") |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3195 else AC_MSG_ERROR([proper usage is --with-libc=STRING]) |
|
5469
47e81b2169e9
Added --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum <guido@python.org>
parents:
5384
diff
changeset
|
3196 fi], |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3197 [AC_MSG_RESULT(default LIBC="$LIBC")]) |
|
1748
8286a662502b
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3198 |
|
44344
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44324
diff
changeset
|
3199 # ************************************ |
|
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44324
diff
changeset
|
3200 # * Check for mathematical functions * |
|
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44324
diff
changeset
|
3201 # ************************************ |
|
46524
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3202 |
|
46528
108fe57b9a68
Make configure test for tanh(-0.) == -0. committed in r62447 actually
Mark Dickinson <dickinsm@gmail.com>
parents:
46524
diff
changeset
|
3203 LIBS_SAVE=$LIBS |
|
108fe57b9a68
Make configure test for tanh(-0.) == -0. committed in r62447 actually
Mark Dickinson <dickinsm@gmail.com>
parents:
46524
diff
changeset
|
3204 LIBS="$LIBS $LIBM" |
|
108fe57b9a68
Make configure test for tanh(-0.) == -0. committed in r62447 actually
Mark Dickinson <dickinsm@gmail.com>
parents:
46524
diff
changeset
|
3205 |
|
50583
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3206 # Detect whether system arithmetic is subject to x87-style double |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3207 # rounding issues. The result of this test has little meaning on non |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3208 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3209 # mode is round-to-nearest and double rounding issues are present, and |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3210 # 0 otherwise. See http://bugs.python.org/issue2937 for more info. |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3211 AC_MSG_CHECKING(for x87-style double rounding) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3212 AC_CACHE_VAL(ac_cv_x87_double_rounding, [ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3213 AC_TRY_RUN([ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3214 #include <stdlib.h> |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3215 #include <math.h> |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3216 int main() { |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3217 volatile double x, y, z; |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3218 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3219 x = 0.99999999999999989; /* 1-2**-53 */ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3220 y = 1./x; |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3221 if (y != 1.) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3222 exit(0); |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3223 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3224 x = 1e16; |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3225 y = 2.99999; |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3226 z = x + y; |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3227 if (z != 1e16+4.) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3228 exit(0); |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3229 /* both tests show evidence of double rounding */ |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3230 exit(1); |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3231 } |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3232 ], |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3233 ac_cv_x87_double_rounding=no, |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3234 ac_cv_x87_double_rounding=yes, |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3235 ac_cv_x87_double_rounding=no)]) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3236 AC_MSG_RESULT($ac_cv_x87_double_rounding) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3237 if test "$ac_cv_x87_double_rounding" = yes |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3238 then |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3239 AC_DEFINE(X87_DOUBLE_ROUNDING, 1, |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3240 [Define if arithmetic is subject to x87-style double rounding issue]) |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3241 fi |
|
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3242 |
|
52696
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3243 # Multiprocessing check for broken sem_getvalue |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3244 AC_MSG_CHECKING(for broken sem_getvalue) |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3245 AC_TRY_RUN([ |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3246 #include <unistd.h> |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3247 #include <fcntl.h> |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3248 #include <stdio.h> |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3249 #include <semaphore.h> |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3250 #include <sys/stat.h> |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3251 |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3252 int main(void){ |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3253 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3254 int count; |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3255 int res; |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3256 if(a==SEM_FAILED){ |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3257 perror("sem_open"); |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3258 return 1; |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3259 |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3260 } |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3261 res = sem_getvalue(a, &count); |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3262 sem_close(a); |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3263 return res==-1 ? 1 : 0; |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3264 } |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3265 ] |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3266 ,AC_MSG_RESULT(no), |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3267 AC_MSG_RESULT(yes) |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3268 AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, define to 1 if your sem_getvalue is broken.) |
|
d343e802b276
issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help
Jesse Noller <jnoller@gmail.com>
parents:
52599
diff
changeset
|
3269 ) |
|
50583
f854373a66e5
Add autoconf test to detect x87-style double rounding, as described in
Mark Dickinson <dickinsm@gmail.com>
parents:
50580
diff
changeset
|
3270 |
|
46524
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3271 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3272 # -0. on some architectures. |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3273 AC_MSG_CHECKING(whether tanh preserves the sign of zero) |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3274 AC_CACHE_VAL(ac_cv_tanh_preserves_zero_sign, [ |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3275 AC_TRY_RUN([ |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3276 #include <math.h> |
|
46528
108fe57b9a68
Make configure test for tanh(-0.) == -0. committed in r62447 actually
Mark Dickinson <dickinsm@gmail.com>
parents:
46524
diff
changeset
|
3277 #include <stdlib.h> |
|
46524
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3278 int main() { |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3279 /* return 0 if either negative zeros don't exist |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3280 on this platform or if negative zeros exist |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3281 and tanh(-0.) == -0. */ |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3282 if (atan2(0., -1.) == atan2(-0., -1.) || |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3283 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3284 else exit(1); |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3285 } |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3286 ], |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3287 ac_cv_tanh_preserves_zero_sign=yes, |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3288 ac_cv_tanh_preserves_zero_sign=no, |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3289 ac_cv_tanh_preserves_zero_sign=no)]) |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3290 AC_MSG_RESULT($ac_cv_tanh_preserves_zero_sign) |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3291 if test "$ac_cv_tanh_preserves_zero_sign" = yes |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3292 then |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3293 AC_DEFINE(TANH_PRESERVES_ZERO_SIGN, 1, |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3294 [Define if tanh(-0.) is -0., or if platform doesn't have signed zeros]) |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3295 fi |
|
bae2f4feefcc
test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
Mark Dickinson <dickinsm@gmail.com>
parents:
46288
diff
changeset
|
3296 |
|
53227
96d82facd890
Backport r71704 (add configure check for C99 round function) to trunk.
Mark Dickinson <dickinsm@gmail.com>
parents:
52696
diff
changeset
|
3297 AC_CHECK_FUNCS([acosh asinh atanh copysign expm1 finite hypot log1p round]) |
|
50584
3a540ed795d3
isinf and isnan are macros, not functions; fix configure script
Mark Dickinson <dickinsm@gmail.com>
parents:
50583
diff
changeset
|
3298 AC_CHECK_DECLS([isinf, isnan, isfinite], [], [], [[#include <math.h>]]) |
|
44344
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44324
diff
changeset
|
3299 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3300 LIBS=$LIBS_SAVE |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3301 |
|
52233
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3302 # determine what size digit to use for Python's longs |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3303 AC_MSG_CHECKING([digit size for Python's longs]) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3304 AC_ARG_ENABLE(big-digits, |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3305 AC_HELP_STRING([--enable-big-digits@<:@=BITS@:>@],[use big digits for Python longs [[BITS=30]]]), |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3306 [case $enable_big_digits in |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3307 yes) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3308 enable_big_digits=30 ;; |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3309 no) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3310 enable_big_digits=15 ;; |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3311 [15|30]) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3312 ;; |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3313 *) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3314 AC_MSG_ERROR([bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30]) ;; |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3315 esac |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3316 AC_MSG_RESULT($enable_big_digits) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3317 AC_DEFINE_UNQUOTED(PYLONG_BITS_IN_DIGIT, $enable_big_digits, [Define as the preferred size in bits of long digits]) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3318 ], |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3319 [AC_MSG_RESULT(no value specified)]) |
|
9b358eae532a
Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Mark Dickinson <dickinsm@gmail.com>
parents:
50594
diff
changeset
|
3320 |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3321 # check for wchar.h |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3322 AC_CHECK_HEADER(wchar.h, [ |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3323 AC_DEFINE(HAVE_WCHAR_H, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3324 [Define if the compiler provides a wchar.h header file.]) |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3325 wchar_h="yes" |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3326 ], |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3327 wchar_h="no" |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3328 ) |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3329 |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3330 # determine wchar_t size |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3331 if test "$wchar_h" = yes |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3332 then |
|
20581
bf03b8e3ef93
Patch from SF bug #473150: configure weaknesses on HP-UX (Michael Piotrowski)
Guido van Rossum <guido@python.org>
parents:
20551
diff
changeset
|
3333 AC_CHECK_SIZEOF(wchar_t, 4, [#include <wchar.h>]) |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3334 fi |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3335 |
|
30318
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3336 AC_MSG_CHECKING(for UCS-4 tcl) |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3337 have_ucs4_tcl=no |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3338 AC_TRY_COMPILE([ |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3339 #include <tcl.h> |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3340 #if TCL_UTF_MAX != 6 |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3341 # error "NOT UCS4_TCL" |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3342 #endif], [], [ |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3343 AC_DEFINE(HAVE_UCS4_TCL, 1, [Define this if you have tcl and TCL_UTF_MAX==6]) |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3344 have_ucs4_tcl=yes |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3345 ]) |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3346 AC_MSG_RESULT($have_ucs4_tcl) |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3347 |
|
30495
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3348 # check whether wchar_t is signed or not |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3349 if test "$wchar_h" = yes |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3350 then |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3351 # check whether wchar_t is signed or not |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3352 AC_MSG_CHECKING(whether wchar_t is signed) |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3353 AC_CACHE_VAL(ac_cv_wchar_t_signed, [ |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3354 AC_TRY_RUN([ |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3355 #include <wchar.h> |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3356 int main() |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3357 { |
|
37592
924504b00196
Correct test whether wchar_t is unsigned. Fixed crash
Martin v. Löwis <martin@v.loewis.de>
parents:
37553
diff
changeset
|
3358 /* Success: exit code 0 */ |
|
924504b00196
Correct test whether wchar_t is unsigned. Fixed crash
Martin v. Löwis <martin@v.loewis.de>
parents:
37553
diff
changeset
|
3359 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); |
|
30495
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3360 } |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3361 ], |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3362 ac_cv_wchar_t_signed=yes, |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3363 ac_cv_wchar_t_signed=no, |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3364 ac_cv_wchar_t_signed=yes)]) |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3365 AC_MSG_RESULT($ac_cv_wchar_t_signed) |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3366 fi |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3367 |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3368 AC_MSG_CHECKING(what type to use for unicode) |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3369 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3370 AC_ARG_ENABLE(unicode, |
|
25940
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3371 AC_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@, Enable Unicode strings (default is yes)), |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3372 [], |
|
e1db1f90e17f
Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.
Martin v. Löwis <martin@v.loewis.de>
parents:
25923
diff
changeset
|
3373 [enable_unicode=yes]) |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3374 |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3375 if test $enable_unicode = yes |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3376 then |
|
18328
e4527d45e942
Default to ucs2 when no argument to --enable-unicode is specified.
Martin v. Löwis <martin@v.loewis.de>
parents:
18292
diff
changeset
|
3377 # Without any arguments, Py_UNICODE defaults to two-byte mode |
|
30318
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3378 case "$have_ucs4_tcl" in |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3379 yes) enable_unicode="ucs4" |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3380 ;; |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3381 *) enable_unicode="ucs2" |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3382 ;; |
|
770fe83bf89f
Patch #798202: detect redhat9 Tcl/Tk in configure script.
Martin v. Löwis <martin@v.loewis.de>
parents:
30310
diff
changeset
|
3383 esac |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3384 fi |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3385 |
| 22991 | 3386 AH_TEMPLATE(Py_UNICODE_SIZE, |
| 3387 [Define as the size of the unicode type.]) | |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3388 case "$enable_unicode" in |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3389 ucs2) unicode_size="2" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3390 AC_DEFINE(Py_UNICODE_SIZE,2) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3391 ;; |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3392 ucs4) unicode_size="4" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3393 AC_DEFINE(Py_UNICODE_SIZE,4) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3394 ;; |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3395 esac |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3396 |
|
22989
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
3397 AH_TEMPLATE(PY_UNICODE_TYPE, |
|
61661583a12f
Update to autoconf 2.5x.
Martin v. Löwis <martin@v.loewis.de>
parents:
22863
diff
changeset
|
3398 [Define as the integral type used for Unicode representation.]) |
| 22991 | 3399 |
|
19343
7257e87e0720
Patch #445762: Support --disable-unicode
Martin v. Löwis <martin@v.loewis.de>
parents:
19278
diff
changeset
|
3400 AC_SUBST(UNICODE_OBJS) |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3401 if test "$enable_unicode" = "no" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3402 then |
|
19343
7257e87e0720
Patch #445762: Support --disable-unicode
Martin v. Löwis <martin@v.loewis.de>
parents:
19278
diff
changeset
|
3403 UNICODE_OBJS="" |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3404 AC_MSG_RESULT(not used) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3405 else |
|
19343
7257e87e0720
Patch #445762: Support --disable-unicode
Martin v. Löwis <martin@v.loewis.de>
parents:
19278
diff
changeset
|
3406 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3407 AC_DEFINE(Py_USING_UNICODE, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3408 [Define if you want to have a Unicode type.]) |
|
30495
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3409 |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3410 # wchar_t is only usable if it maps to an unsigned type |
|
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3411 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
|
34252
28891dc25580
Use = instead of == as operator to test
Matthias Klose <doko@ubuntu.com>
parents:
34054
diff
changeset
|
3412 -a "$ac_cv_wchar_t_signed" = "no" |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3413 then |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3414 PY_UNICODE_TYPE="wchar_t" |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3415 AC_DEFINE(HAVE_USABLE_WCHAR_T, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3416 [Define if you have a useable wchar_t type defined in wchar.h; useable |
|
30495
871776d38213
Added test whether wchar_t is signed or not. A signed wchar_t is not usable as internal unicode type base for Py_UNICODE since the unicode implementation assumes an unsigned type.
Marc-André Lemburg <mal@egenix.com>
parents:
30469
diff
changeset
|
3417 means wchar_t must be an unsigned type with at least 16 bits. (see |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3418 Include/unicodeobject.h).]) |
|
18292
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3419 AC_DEFINE(PY_UNICODE_TYPE,wchar_t) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3420 elif test "$ac_cv_sizeof_short" = "$unicode_size" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3421 then |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3422 PY_UNICODE_TYPE="unsigned short" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3423 AC_DEFINE(PY_UNICODE_TYPE,unsigned short) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3424 elif test "$ac_cv_sizeof_long" = "$unicode_size" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3425 then |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3426 PY_UNICODE_TYPE="unsigned long" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3427 AC_DEFINE(PY_UNICODE_TYPE,unsigned long) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3428 else |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3429 PY_UNICODE_TYPE="no type found" |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3430 fi |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3431 AC_MSG_RESULT($PY_UNICODE_TYPE) |
|
ffbb9c918ac0
Support using UCS-4 as the Py_UNICODE type:
Martin v. Löwis <martin@v.loewis.de>
parents:
18262
diff
changeset
|
3432 fi |
|
11960
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3433 |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3434 # check for endianness |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3435 AC_C_BIGENDIAN |
|
741069092831
Part of the Unicode checkin for Marc-Andre Lemburg.
Guido van Rossum <guido@python.org>
parents:
11856
diff
changeset
|
3436 |
|
13562
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3437 # Check whether right shifting a negative integer extends the sign bit |
|
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3438 # or fills with zeros (like the Cray J90, according to Tim Peters). |
|
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3439 AC_MSG_CHECKING(whether right shift extends the sign bit) |
|
13569
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3440 AC_CACHE_VAL(ac_cv_rshift_extends_sign, [ |
|
13562
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3441 AC_TRY_RUN([ |
|
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3442 int main() |
|
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3443 { |
|
13569
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3444 exit(((-1)>>3 == -1) ? 0 : 1); |
|
13562
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3445 } |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3446 ], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3447 ac_cv_rshift_extends_sign=yes, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3448 ac_cv_rshift_extends_sign=no, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3449 ac_cv_rshift_extends_sign=yes)]) |
|
13569
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3450 AC_MSG_RESULT($ac_cv_rshift_extends_sign) |
|
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3451 if test "$ac_cv_rshift_extends_sign" = no |
|
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3452 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3453 AC_DEFINE(SIGNED_RIGHT_SHIFT_ZERO_FILLS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3454 [Define if i>>j for signed int i does not extend the sign bit |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3455 when i < 0]) |
|
13569
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3456 fi |
|
5d61b6f2aea3
Second try: checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13562
diff
changeset
|
3457 |
|
15747
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3458 # check for getc_unlocked and related locking functions |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3459 AC_MSG_CHECKING(for getc_unlocked() and friends) |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3460 AC_CACHE_VAL(ac_cv_have_getc_unlocked, [ |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3461 AC_TRY_LINK([#include <stdio.h>],[ |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3462 FILE *f = fopen("/dev/null", "r"); |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3463 flockfile(f); |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3464 getc_unlocked(f); |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3465 funlockfile(f); |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3466 ], ac_cv_have_getc_unlocked=yes, ac_cv_have_getc_unlocked=no)]) |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3467 AC_MSG_RESULT($ac_cv_have_getc_unlocked) |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3468 if test "$ac_cv_have_getc_unlocked" = yes |
|
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3469 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3470 AC_DEFINE(HAVE_GETC_UNLOCKED, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3471 [Define this if you have flockfile(), getc_unlocked(), and funlockfile()]) |
|
15747
fa3f537c8249
Configuration test for working getc_unlocked() (and flockfile() and
Guido van Rossum <guido@python.org>
parents:
15549
diff
changeset
|
3472 fi |
|
13562
919f3d5172a9
Checks whether right shift extends the sign bit.
Vladimir Marangozov <vladimir.marangozov@t-online.de>
parents:
13467
diff
changeset
|
3473 |
|
36220
6e17968d4de9
If there is no libtermcap all the readline tests failed.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36204
diff
changeset
|
3474 # check where readline lives |
|
36473
7b19a533ce9b
Avoid linking python with readline.
Martin v. Löwis <martin@v.loewis.de>
parents:
36421
diff
changeset
|
3475 # save the value of LIBS so we don't actually link Python with readline |
|
7b19a533ce9b
Avoid linking python with readline.
Martin v. Löwis <martin@v.loewis.de>
parents:
36421
diff
changeset
|
3476 LIBS_no_readline=$LIBS |
|
49066
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3477 |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3478 # On some systems we need to link readline to a termcap compatible |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3479 # library. NOTE: Keep the precedence of listed libraries synchronised |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3480 # with setup.py. |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3481 py_cv_lib_readline=no |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3482 AC_MSG_CHECKING([how to link readline libs]) |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3483 for py_libtermcap in "" ncursesw ncurses curses termcap; do |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3484 if test -z "$py_libtermcap"; then |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3485 READLINE_LIBS="-lreadline" |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3486 else |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3487 READLINE_LIBS="-lreadline -l$py_libtermcap" |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3488 fi |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3489 LIBS="$READLINE_LIBS $LIBS_no_readline" |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3490 AC_LINK_IFELSE( |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3491 [AC_LANG_CALL([],[readline])], |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3492 [py_cv_lib_readline=yes]) |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3493 if test $py_cv_lib_readline = yes; then |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3494 break |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3495 fi |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3496 done |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3497 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3498 #AC_SUBST([READLINE_LIBS]) |
|
49074
a1cae9555f5d
bugfix to r66283 (see issue #1204).
Gregory P. Smith <greg@mad-scientist.com>
parents:
49066
diff
changeset
|
3499 if test $py_cv_lib_readline = no; then |
|
49066
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3500 AC_MSG_RESULT([none]) |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3501 else |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3502 AC_MSG_RESULT([$READLINE_LIBS]) |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3503 AC_DEFINE(HAVE_LIBREADLINE, 1, |
|
7510d873b88c
- Issue #1204: The configure script now tests for additional libraries
Gregory P. Smith <greg@mad-scientist.com>
parents:
48979
diff
changeset
|
3504 [Define if you have the readline library (-lreadline).]) |
|
36220
6e17968d4de9
If there is no libtermcap all the readline tests failed.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36204
diff
changeset
|
3505 fi |
|
6e17968d4de9
If there is no libtermcap all the readline tests failed.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36204
diff
changeset
|
3506 |
| 32526 | 3507 # check for readline 2.1 |
| 3508 AC_CHECK_LIB(readline, rl_callback_handler_install, | |
| 3509 AC_DEFINE(HAVE_RL_CALLBACK, 1, | |
|
48979
2a60f7b42328
Fix issue 3645: OpenBSD required -lcurses when linking with readline
Gregory P. Smith <greg@mad-scientist.com>
parents:
48219
diff
changeset
|
3510 [Define if you have readline 2.1]), ,$READLINE_LIBS) |
| 32526 | 3511 |
|
26849
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3512 # check for readline 2.2 |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3513 AC_TRY_CPP([#include <readline/readline.h>], |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3514 have_readline=yes, have_readline=no) |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3515 if test $have_readline = yes |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3516 then |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3517 AC_EGREP_HEADER([extern int rl_completion_append_character;], |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3518 [readline/readline.h], |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3519 AC_DEFINE(HAVE_RL_COMPLETION_APPEND_CHARACTER, 1, |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3520 [Define if you have readline 2.2]), ) |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3521 fi |
|
bca5409b76ec
Patch 659834 by Magnus Lie Hetland:
Guido van Rossum <guido@python.org>
parents:
26810
diff
changeset
|
3522 |
|
20188
6dda498cccc4
Patch #462122: add readline startup and pre_event hooks.
Martin v. Löwis <martin@v.loewis.de>
parents:
20143
diff
changeset
|
3523 # check for readline 4.0 |
|
6dda498cccc4
Patch #462122: add readline startup and pre_event hooks.
Martin v. Löwis <martin@v.loewis.de>
parents:
20143
diff
changeset
|
3524 AC_CHECK_LIB(readline, rl_pre_input_hook, |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3525 AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK, 1, |
|
48979
2a60f7b42328
Fix issue 3645: OpenBSD required -lcurses when linking with readline
Gregory P. Smith <greg@mad-scientist.com>
parents:
48219
diff
changeset
|
3526 [Define if you have readline 4.0]), ,$READLINE_LIBS) |
|
20188
6dda498cccc4
Patch #462122: add readline startup and pre_event hooks.
Martin v. Löwis <martin@v.loewis.de>
parents:
20143
diff
changeset
|
3527 |
|
43228
1a0c73580665
Patch #1388440: Add set_completion_display_matches_hook and
Martin v. Löwis <martin@v.loewis.de>
parents:
43198
diff
changeset
|
3528 # also in 4.0 |
|
1a0c73580665
Patch #1388440: Add set_completion_display_matches_hook and
Martin v. Löwis <martin@v.loewis.de>
parents:
43198
diff
changeset
|
3529 AC_CHECK_LIB(readline, rl_completion_display_matches_hook, |
|
1a0c73580665
Patch #1388440: Add set_completion_display_matches_hook and
Martin v. Löwis <martin@v.loewis.de>
parents:
43198
diff
changeset
|
3530 AC_DEFINE(HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK, 1, |
|
48979
2a60f7b42328
Fix issue 3645: OpenBSD required -lcurses when linking with readline
Gregory P. Smith <greg@mad-scientist.com>
parents:
48219
diff
changeset
|
3531 [Define if you have readline 4.0]), ,$READLINE_LIBS) |
|
43228
1a0c73580665
Patch #1388440: Add set_completion_display_matches_hook and
Martin v. Löwis <martin@v.loewis.de>
parents:
43198
diff
changeset
|
3532 |
|
18452
2f1b4cdcbb06
SF Patch #432457 by Jason Tishler: support for readline 4.2.
Guido van Rossum <guido@python.org>
parents:
18328
diff
changeset
|
3533 # check for readline 4.2 |
|
2f1b4cdcbb06
SF Patch #432457 by Jason Tishler: support for readline 4.2.
Guido van Rossum <guido@python.org>
parents:
18328
diff
changeset
|
3534 AC_CHECK_LIB(readline, rl_completion_matches, |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3535 AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, |
|
48979
2a60f7b42328
Fix issue 3645: OpenBSD required -lcurses when linking with readline
Gregory P. Smith <greg@mad-scientist.com>
parents:
48219
diff
changeset
|
3536 [Define if you have readline 4.2]), ,$READLINE_LIBS) |
|
18452
2f1b4cdcbb06
SF Patch #432457 by Jason Tishler: support for readline 4.2.
Guido van Rossum <guido@python.org>
parents:
18328
diff
changeset
|
3537 |
| 32526 | 3538 # also in readline 4.2 |
| 3539 AC_TRY_CPP([#include <readline/readline.h>], | |
| 3540 have_readline=yes, have_readline=no) | |
| 3541 if test $have_readline = yes | |
| 3542 then | |
| 3543 AC_EGREP_HEADER([extern int rl_catch_signals;], | |
| 3544 [readline/readline.h], | |
| 3545 AC_DEFINE(HAVE_RL_CATCH_SIGNAL, 1, | |
| 3546 [Define if you can turn off readline's signal handling.]), ) | |
| 3547 fi | |
| 3548 | |
|
36473
7b19a533ce9b
Avoid linking python with readline.
Martin v. Löwis <martin@v.loewis.de>
parents:
36421
diff
changeset
|
3549 # End of readline checks: restore LIBS |
|
7b19a533ce9b
Avoid linking python with readline.
Martin v. Löwis <martin@v.loewis.de>
parents:
36421
diff
changeset
|
3550 LIBS=$LIBS_no_readline |
|
7b19a533ce9b
Avoid linking python with readline.
Martin v. Löwis <martin@v.loewis.de>
parents:
36421
diff
changeset
|
3551 |
|
18486
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3552 AC_MSG_CHECKING(for broken nice()) |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3553 AC_CACHE_VAL(ac_cv_broken_nice, [ |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3554 AC_TRY_RUN([ |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3555 int main() |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3556 { |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3557 int val1 = nice(1); |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3558 if (val1 != -1 && val1 == nice(2)) |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3559 exit(0); |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3560 exit(1); |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3561 } |
|
19933
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3562 ], |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3563 ac_cv_broken_nice=yes, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3564 ac_cv_broken_nice=no, |
|
b6cf2f27e44f
Add cross-compilation defaults to most AC_TRY_RUN values. The
Guido van Rossum <guido@python.org>
parents:
19858
diff
changeset
|
3565 ac_cv_broken_nice=no)]) |
|
18486
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3566 AC_MSG_RESULT($ac_cv_broken_nice) |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3567 if test "$ac_cv_broken_nice" = yes |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3568 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3569 AC_DEFINE(HAVE_BROKEN_NICE, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3570 [Define if nice() returns success/failure instead of the new priority.]) |
|
18486
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3571 fi |
|
26fc905ddc12
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters <thomas@python.org>
parents:
18476
diff
changeset
|
3572 |
|
31761
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3573 AC_MSG_CHECKING(for broken poll()) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3574 AC_TRY_RUN([ |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3575 #include <poll.h> |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3576 |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3577 int main (void) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3578 { |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3579 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3580 |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3581 close (42); |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3582 |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3583 int poll_test = poll (&poll_struct, 1, 0); |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3584 |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3585 if (poll_test < 0) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3586 { |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3587 exit(0); |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3588 } |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3589 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3590 { |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3591 exit(0); |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3592 } |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3593 else |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3594 { |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3595 exit(1); |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3596 } |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3597 } |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3598 ], |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3599 ac_cv_broken_poll=yes, |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3600 ac_cv_broken_poll=no, |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3601 ac_cv_broken_poll=no) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3602 AC_MSG_RESULT($ac_cv_broken_poll) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3603 if test "$ac_cv_broken_poll" = yes |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3604 then |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3605 AC_DEFINE(HAVE_BROKEN_POLL, 1, |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3606 [Define if poll() sets errno on invalid file descriptors.]) |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3607 fi |
|
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3608 |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3609 # Before we can test tzset, we need to check if struct tm has a tm_zone |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3610 # (which is not required by ISO C or UNIX spec) and/or if we support |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3611 # tzname[] |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3612 AC_STRUCT_TIMEZONE |
|
31761
f4a4ac7331ec
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin <nick.bastin@gmail.com>
parents:
31504
diff
changeset
|
3613 |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3614 # check tzset(3) exists and works like we expect it to |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3615 AC_MSG_CHECKING(for working tzset()) |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3616 AC_CACHE_VAL(ac_cv_working_tzset, [ |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3617 AC_TRY_RUN([ |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3618 #include <stdlib.h> |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3619 #include <time.h> |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3620 #include <string.h> |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3621 |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3622 #if HAVE_TZNAME |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3623 extern char *tzname[]; |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3624 #endif |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3625 |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3626 int main() |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3627 { |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3628 /* Note that we need to ensure that not only does tzset(3) |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3629 do 'something' with localtime, but it works as documented |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3630 in the library reference and as expected by the test suite. |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3631 This includes making sure that tzname is set properly if |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3632 tm->tm_zone does not exist since it is the alternative way |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3633 of getting timezone info. |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3634 |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3635 Red Hat 6.2 doesn't understand the southern hemisphere |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3636 after New Year's Day. |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3637 */ |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3638 |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3639 time_t groundhogday = 1044144000; /* GMT-based */ |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3640 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3641 |
|
28579
981032e64736
SF patch #706707, time.tzset standards compliance update by Stuart Bishop
Neal Norwitz <nnorwitz@gmail.com>
parents:
28473
diff
changeset
|
3642 putenv("TZ=UTC+0"); |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3643 tzset(); |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3644 if (localtime(&groundhogday)->tm_hour != 0) |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3645 exit(1); |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3646 #if HAVE_TZNAME |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3647 /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3648 if (strcmp(tzname[0], "UTC") || |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3649 (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3650 exit(1); |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3651 #endif |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3652 |
|
28579
981032e64736
SF patch #706707, time.tzset standards compliance update by Stuart Bishop
Neal Norwitz <nnorwitz@gmail.com>
parents:
28473
diff
changeset
|
3653 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3654 tzset(); |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3655 if (localtime(&groundhogday)->tm_hour != 19) |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3656 exit(1); |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3657 #if HAVE_TZNAME |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3658 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3659 exit(1); |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3660 #endif |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3661 |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3662 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3663 tzset(); |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3664 if (localtime(&groundhogday)->tm_hour != 11) |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3665 exit(1); |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3666 #if HAVE_TZNAME |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3667 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3668 exit(1); |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3669 #endif |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3670 |
|
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3671 #if HAVE_STRUCT_TM_TM_ZONE |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3672 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3673 exit(1); |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3674 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
|
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3675 exit(1); |
|
34580
ca7c18ef8bdc
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
Brett Cannon <bcannon@gmail.com>
parents:
34481
diff
changeset
|
3676 #endif |
|
30451
b39cb9212f5c
Improve detection of whether tzset is broken.
Brett Cannon <bcannon@gmail.com>
parents:
30318
diff
changeset
|
3677 |
|
28299
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3678 exit(0); |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3679 } |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3680 ], |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3681 ac_cv_working_tzset=yes, |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3682 ac_cv_working_tzset=no, |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3683 ac_cv_working_tzset=no)]) |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3684 AC_MSG_RESULT($ac_cv_working_tzset) |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3685 if test "$ac_cv_working_tzset" = yes |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3686 then |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3687 AC_DEFINE(HAVE_WORKING_TZSET, 1, |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3688 [Define if tzset() actually switches the local timezone in a meaningful way.]) |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3689 fi |
|
14316df1c298
- New function time.tzset() provides access to the C library tzet()
Guido van Rossum <guido@python.org>
parents:
28057
diff
changeset
|
3690 |
|
25176
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3691 # Look for subsecond timestamps in struct stat |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3692 AC_MSG_CHECKING(for tv_nsec in struct stat) |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3693 AC_CACHE_VAL(ac_cv_stat_tv_nsec, |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3694 AC_TRY_COMPILE([#include <sys/stat.h>], [ |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3695 struct stat st; |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3696 st.st_mtim.tv_nsec = 1; |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3697 ], |
|
25177
bcdb60df4e3e
Always generate floats for stat_result; fix configure test.
Martin v. Löwis <martin@v.loewis.de>
parents:
25176
diff
changeset
|
3698 ac_cv_stat_tv_nsec=yes, |
|
25176
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3699 ac_cv_stat_tv_nsec=no, |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3700 ac_cv_stat_tv_nsec=no)) |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3701 AC_MSG_RESULT($ac_cv_stat_tv_nsec) |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3702 if test "$ac_cv_stat_tv_nsec" = yes |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3703 then |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3704 AC_DEFINE(HAVE_STAT_TV_NSEC, 1, |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3705 [Define if you have struct stat.st_mtim.tv_nsec]) |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3706 fi |
|
038711ae13e0
Patch #606592: Subsecond timestamps in stat_result.
Martin v. Löwis <martin@v.loewis.de>
parents:
24842
diff
changeset
|
3707 |
|
35326
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3708 # Look for BSD style subsecond timestamps in struct stat |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3709 AC_MSG_CHECKING(for tv_nsec2 in struct stat) |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3710 AC_CACHE_VAL(ac_cv_stat_tv_nsec2, |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3711 AC_TRY_COMPILE([#include <sys/stat.h>], [ |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3712 struct stat st; |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3713 st.st_mtimespec.tv_nsec = 1; |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3714 ], |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3715 ac_cv_stat_tv_nsec2=yes, |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3716 ac_cv_stat_tv_nsec2=no, |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3717 ac_cv_stat_tv_nsec2=no)) |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3718 AC_MSG_RESULT($ac_cv_stat_tv_nsec2) |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3719 if test "$ac_cv_stat_tv_nsec2" = yes |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3720 then |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3721 AC_DEFINE(HAVE_STAT_TV_NSEC2, 1, |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3722 [Define if you have struct stat.st_mtimensec]) |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3723 fi |
|
3094843e7b92
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
Martin v. Löwis <martin@v.loewis.de>
parents:
35325
diff
changeset
|
3724 |
|
20647
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3725 # On HP/UX 11.0, mvwdelch is a block with a return statement |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3726 AC_MSG_CHECKING(whether mvwdelch is an expression) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3727 AC_CACHE_VAL(ac_cv_mvwdelch_is_expression, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3728 AC_TRY_COMPILE([#include <curses.h>], [ |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3729 int rtn; |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3730 rtn = mvwdelch(0,0,0); |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3731 ], ac_cv_mvwdelch_is_expression=yes, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3732 ac_cv_mvwdelch_is_expression=no, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3733 ac_cv_mvwdelch_is_expression=yes)) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3734 AC_MSG_RESULT($ac_cv_mvwdelch_is_expression) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3735 |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3736 if test "$ac_cv_mvwdelch_is_expression" = yes |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3737 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3738 AC_DEFINE(MVWDELCH_IS_EXPRESSION, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3739 [Define if mvwdelch in curses.h is an expression.]) |
|
20647
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3740 fi |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3741 |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3742 AC_MSG_CHECKING(whether WINDOW has _flags) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3743 AC_CACHE_VAL(ac_cv_window_has_flags, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3744 AC_TRY_COMPILE([#include <curses.h>], [ |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3745 WINDOW *w; |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3746 w->_flags = 0; |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3747 ], ac_cv_window_has_flags=yes, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3748 ac_cv_window_has_flags=no, |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3749 ac_cv_window_has_flags=no)) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3750 AC_MSG_RESULT($ac_cv_window_has_flags) |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3751 |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3752 |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3753 if test "$ac_cv_window_has_flags" = yes |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3754 then |
|
22863
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3755 AC_DEFINE(WINDOW_HAS_FLAGS, 1, |
|
6f8a5ad39e6f
Move autoheader declarations into configure.in.
Martin v. Löwis <martin@v.loewis.de>
parents:
22847
diff
changeset
|
3756 [Define if WINDOW in curses.h offers a field _flags.]) |
|
20647
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3757 fi |
|
dd78b1a71f3e
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
Martin v. Löwis <martin@v.loewis.de>
parents:
20646
diff
changeset
|
3758 |
|
38876
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3759 AC_MSG_CHECKING(for is_term_resized) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3760 AC_TRY_COMPILE([#include <curses.h>], void *x=is_term_resized, |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3761 AC_DEFINE(HAVE_CURSES_IS_TERM_RESIZED, 1, Define if you have the 'is_term_resized' function.) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3762 AC_MSG_RESULT(yes), |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3763 AC_MSG_RESULT(no) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3764 ) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3765 |
|
38877
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3766 AC_MSG_CHECKING(for resize_term) |
|
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3767 AC_TRY_COMPILE([#include <curses.h>], void *x=resize_term, |
|
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3768 AC_DEFINE(HAVE_CURSES_RESIZE_TERM, 1, Define if you have the 'resize_term' function.) |
|
38876
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3769 AC_MSG_RESULT(yes), |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3770 AC_MSG_RESULT(no) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3771 ) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3772 |
|
38877
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3773 AC_MSG_CHECKING(for resizeterm) |
|
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3774 AC_TRY_COMPILE([#include <curses.h>], void *x=resizeterm, |
|
0b95a0aaaaef
Make check order match in configure and configure.in.
Walter Dörwald <walter@livinglogic.de>
parents:
38876
diff
changeset
|
3775 AC_DEFINE(HAVE_CURSES_RESIZETERM, 1, Define if you have the 'resizeterm' function.) |
|
38876
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3776 AC_MSG_RESULT(yes), |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3777 AC_MSG_RESULT(no) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3778 ) |
|
4a766024043a
Patch #1506645: add Python wrappers for the curses functions
Walter Dörwald <walter@livinglogic.de>
parents:
38771
diff
changeset
|
3779 |
|
40140
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3780 AC_MSG_CHECKING(for /dev/ptmx) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3781 |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3782 if test -r /dev/ptmx |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3783 then |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3784 AC_MSG_RESULT(yes) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3785 AC_DEFINE(HAVE_DEV_PTMX, 1, |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3786 [Define if we have /dev/ptmx.]) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3787 else |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3788 AC_MSG_RESULT(no) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3789 fi |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3790 |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3791 AC_MSG_CHECKING(for /dev/ptc) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3792 |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3793 if test -r /dev/ptc |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3794 then |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3795 AC_MSG_RESULT(yes) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3796 AC_DEFINE(HAVE_DEV_PTC, 1, |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3797 [Define if we have /dev/ptc.]) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3798 else |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3799 AC_MSG_RESULT(no) |
|
14513db0d62d
Forward-port r52358:
Martin v. Löwis <martin@v.loewis.de>
parents:
39950
diff
changeset
|
3800 fi |
|
28351
d57421623449
/dev/ptmx doesn't exist on AIX, they had to be different and use /dev/ptc.
Neal Norwitz <nnorwitz@gmail.com>
parents:
28314
diff
changeset
|
3801 |
|
38151
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3802 AC_MSG_CHECKING(for %zd printf() format support) |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3803 AC_TRY_RUN([#include <stdio.h> |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3804 #include <stddef.h> |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3805 #include <string.h> |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3806 |
|
44324
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3807 #ifdef HAVE_SYS_TYPES_H |
|
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3808 #include <sys/types.h> |
|
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3809 #endif |
|
39871
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3810 |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3811 #ifdef HAVE_SSIZE_T |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3812 typedef ssize_t Py_ssize_t; |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3813 #elif SIZEOF_VOID_P == SIZEOF_LONG |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3814 typedef long Py_ssize_t; |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3815 #else |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3816 typedef int Py_ssize_t; |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3817 #endif |
|
38151
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3818 |
|
44324
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3819 int main() |
|
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3820 { |
|
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3821 char buffer[256]; |
|
a14489f6db6f
Fixed #1638: %zd configure test fails on Linux
Christian Heimes <christian@cheimes.de>
parents:
44287
diff
changeset
|
3822 |
|
38151
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3823 if(sprintf(buffer, "%zd", (size_t)123) < 0) |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3824 return 1; |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3825 |
|
39871
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3826 if (strcmp(buffer, "123")) |
|
38151
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3827 return 1; |
|
39871
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3828 |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3829 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3830 return 1; |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3831 |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3832 if (strcmp(buffer, "-123")) |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3833 return 1; |
|
24f9a13084b0
Fix %zd string formatting on Mac OS X so it prints negative numbers.
Neal Norwitz <nnorwitz@gmail.com>
parents:
39752
diff
changeset
|
3834 |
|
38151
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3835 return 0; |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3836 }], |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3837 [AC_MSG_RESULT(yes) |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3838 AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])], |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3839 AC_MSG_RESULT(no)) |
|
9d4fcc390236
Detect if %zd is supported by printf() during configure and sets
Brett Cannon <bcannon@gmail.com>
parents:
38040
diff
changeset
|
3840 |
|
26148
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3841 AC_CHECK_TYPE(socklen_t,, |
|
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3842 AC_DEFINE(socklen_t,int, |
|
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3843 Define to `int' if <sys/socket.h> does not define.),[ |
|
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3844 #ifdef HAVE_SYS_TYPES_H |
|
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3845 #include <sys/types.h> |
|
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3846 #endif |
|
12715
6ad8cd34ad8c
Fix the test for socklen_t so that it searches through sys/socket.h.
Guido van Rossum <guido@python.org>
parents:
12668
diff
changeset
|
3847 #ifdef HAVE_SYS_SOCKET_H |
|
6ad8cd34ad8c
Fix the test for socklen_t so that it searches through sys/socket.h.
Guido van Rossum <guido@python.org>
parents:
12668
diff
changeset
|
3848 #include <sys/socket.h> |
|
6ad8cd34ad8c
Fix the test for socklen_t so that it searches through sys/socket.h.
Guido van Rossum <guido@python.org>
parents:
12668
diff
changeset
|
3849 #endif |
|
26148
0b611e50c5fc
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis <martin@v.loewis.de>
parents:
26147
diff
changeset
|
3850 ]) |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3851 |
|
21134
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3852 AC_SUBST(THREADHEADERS) |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3853 |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3854 for h in `(cd $srcdir;echo Python/thread_*.h)` |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3855 do |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3856 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3857 done |
|
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21128
diff
changeset
|
3858 |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3859 AC_SUBST(SRCDIRS) |
|
36087
49a0493f245e
Jack said we don't need the Mac/Python/ directory any more.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36033
diff
changeset
|
3860 SRCDIRS="Parser Grammar Objects Python Modules Mac" |
|
16290
7a251440ce67
Removed setup.cfg from the list of generated files
Andrew M. Kuchling <amk@amk.ca>
parents:
16276
diff
changeset
|
3861 AC_MSG_CHECKING(for build directories) |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3862 for dir in $SRCDIRS; do |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3863 if test ! -d $dir; then |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3864 mkdir $dir |
|
15370
2e1ab0c941c0
Make sure the Modules/ directory is created before writing Modules/Setup.
Fred Drake <fdrake@acm.org>
parents:
15365
diff
changeset
|
3865 fi |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3866 done |
|
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3867 AC_MSG_RESULT(done) |
|
15343
acf2b19e4344
Test for and create Modules/Setup in the configure script if it does not
Fred Drake <fdrake@acm.org>
parents:
15245
diff
changeset
|
3868 |
| 1453 | 3869 # generate output files |
|
25923
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
3870 AC_CONFIG_FILES(Makefile.pre Modules/Setup.config) |
|
834b0e0389c5
Patch #623771: Properly use autoconf 2.5x macros.
Martin v. Löwis <martin@v.loewis.de>
parents:
25921
diff
changeset
|
3871 AC_OUTPUT |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3872 |
|
37714
ec986aabe1fd
Patch #1045620: Prepend Modules/ before Setup in stdout.
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
3873 echo "creating Modules/Setup" |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3874 if test ! -f Modules/Setup |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3875 then |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3876 cp $srcdir/Modules/Setup.dist Modules/Setup |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3877 fi |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3878 |
|
37714
ec986aabe1fd
Patch #1045620: Prepend Modules/ before Setup in stdout.
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
3879 echo "creating Modules/Setup.local" |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3880 if test ! -f Modules/Setup.local |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3881 then |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3882 echo "# Edit this file for local setup changes" >Modules/Setup.local |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3883 fi |
|
16227
8c4db8b9af9b
- build now happens in toplevel directory, add subdir paths to filenames
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16142
diff
changeset
|
3884 |
|
16276
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3885 echo "creating Makefile" |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3886 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
|
ca85547fcb5e
- LIBRARY is now a SUBST variable.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16227
diff
changeset
|
3887 -s Modules Modules/Setup.config \ |
|
17611
1eb00a123a0e
Process Setup* files with makesetup in the same order as the makefile.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17571
diff
changeset
|
3888 Modules/Setup.local Modules/Setup |
|
42699
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3889 |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3890 case $ac_sys_system in |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3891 BeOS) |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3892 AC_MSG_WARN([ |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3893 |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3894 Support for BeOS is deprecated as of Python 2.6. |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3895 See PEP 11 for the gory details. |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3896 ]) |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3897 ;; |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3898 *) ;; |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3899 esac |
|
3b4e39e83193
Note that BeOS is unsupported as of Python 2.6.
Skip Montanaro <skip@pobox.com>
parents:
42412
diff
changeset
|
3900 |
|
16669
990fa25cde1c
Use -G option for linking shared libraries on Solaris (SF patch #103656).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16627
diff
changeset
|
3901 mv config.c Modules |
