Mercurial > cpython-lru_cache-weakref
annotate configure @ 5817:48b94de85bf3 legacy-trunk
Extensive changes by AMK.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:29:42 +0000 |
| parents | a8e31d905d2c |
| children | 5961f12ae426 |
| rev | line source |
|---|---|
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1 #! /bin/sh |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2 |
|
5761
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3 # From configure.in Revision: 1.54 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4 |
| 1453 | 5 # Guess values for system-dependent variables and create Makefiles. |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
6 # Generated automatically using autoconf version 2.12 |
| 3627 | 7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
8 # |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
9 # This configure script is free software; the Free Software Foundation |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
10 # gives unlimited permission to copy, distribute and modify it. |
| 1453 | 11 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
12 # Defaults: |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
13 ac_help= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
14 ac_default_prefix=/usr/local |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
15 # Any additions from configure.in: |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
16 ac_help="$ac_help |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
17 --with-next-archs='arch1 arch2 ..' build MAB binary" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
18 ac_help="$ac_help |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
19 --without-gcc never use gcc" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
20 ac_help="$ac_help |
| 3894 | 21 --with-libs='lib1 ...' link against additional libs" |
| 22 ac_help="$ac_help | |
| 4851 | 23 --with-readline=DIRECTORY search GNU readline library in DIRECTORY |
| 24 --without-readline do not use GNU readline library" | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
25 ac_help="$ac_help |
| 5036 | 26 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
| 27 ac_help="$ac_help | |
| 28 --with-threads alias for --with-thread" | |
| 29 ac_help="$ac_help | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
30 --with-thread[=DIRECTORY] make interpreter thread-safe" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
31 ac_help="$ac_help |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
32 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
33 ac_help="$ac_help |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
34 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
35 ac_help="$ac_help |
| 5470 | 36 --with-fpectl enable SIGFPE catching" |
| 37 ac_help="$ac_help | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
38 --with-libm=STRING math library" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
39 ac_help="$ac_help |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
40 --with-libc=STRING C library" |
| 1453 | 41 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
42 # Initialize some variables set by options. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
43 # The variables have the same names as the options, with |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
44 # dashes changed to underlines. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
45 build=NONE |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
46 cache_file=./config.cache |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
47 exec_prefix=NONE |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
48 host=NONE |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
49 no_create= |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
50 nonopt=NONE |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
51 no_recursion= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
52 prefix=NONE |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
53 program_prefix=NONE |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
54 program_suffix=NONE |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
55 program_transform_name=s,x,x, |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
56 silent= |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
57 site= |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
58 srcdir= |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
59 target=NONE |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
60 verbose= |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
61 x_includes=NONE |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
62 x_libraries=NONE |
| 3627 | 63 bindir='${exec_prefix}/bin' |
| 64 sbindir='${exec_prefix}/sbin' | |
| 65 libexecdir='${exec_prefix}/libexec' | |
| 66 datadir='${prefix}/share' | |
| 67 sysconfdir='${prefix}/etc' | |
| 68 sharedstatedir='${prefix}/com' | |
| 69 localstatedir='${prefix}/var' | |
| 70 libdir='${exec_prefix}/lib' | |
| 71 includedir='${prefix}/include' | |
| 72 oldincludedir='/usr/include' | |
| 73 infodir='${prefix}/info' | |
| 74 mandir='${prefix}/man' | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
75 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
76 # Initialize some other variables. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
77 subdirs= |
| 3627 | 78 MFLAGS= MAKEFLAGS= |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
79 # Maximum number of lines to put in a shell here document. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
80 ac_max_here_lines=12 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
81 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
82 ac_prev= |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
83 for ac_option |
| 1453 | 84 do |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
85 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
86 # If the previous option needs an argument, assign it. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
87 if test -n "$ac_prev"; then |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
88 eval "$ac_prev=\$ac_option" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
89 ac_prev= |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
90 continue |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
91 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
92 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
93 case "$ac_option" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
95 *) ac_optarg= ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
96 esac |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
97 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
98 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
99 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
100 case "$ac_option" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
101 |
| 3627 | 102 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 103 ac_prev=bindir ;; | |
| 104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 105 bindir="$ac_optarg" ;; | |
| 106 | |
| 107 -build | --build | --buil | --bui | --bu) | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
108 ac_prev=build ;; |
| 3627 | 109 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
110 build="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
111 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
112 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
114 ac_prev=cache_file ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
117 cache_file="$ac_optarg" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
118 |
| 3627 | 119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 120 ac_prev=datadir ;; | |
| 121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
| 122 | --da=*) | |
| 123 datadir="$ac_optarg" ;; | |
| 124 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
125 -disable-* | --disable-*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
127 # Reject names that are not valid shell variable names. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
130 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
132 eval "enable_${ac_feature}=no" ;; |
| 1453 | 133 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
134 -enable-* | --enable-*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
136 # Reject names that are not valid shell variable names. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
139 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
141 case "$ac_option" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
142 *=*) ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
143 *) ac_optarg=yes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
144 esac |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
145 eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 1453 | 146 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
149 | --exec | --exe | --ex) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
150 ac_prev=exec_prefix ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
153 | --exec=* | --exe=* | --ex=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
154 exec_prefix="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
155 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
156 -gas | --gas | --ga | --g) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
157 # Obsolete; use --with-gas. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
158 with_gas=yes ;; |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
159 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
160 -help | --help | --hel | --he) |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
161 # Omit some internal or obsolete options to make the list less imposing. |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
162 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
163 cat << EOF |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
164 Usage: configure [options] [host] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
165 Options: [defaults in brackets after descriptions] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
166 Configuration: |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
167 --cache-file=FILE cache test results in FILE |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
168 --help print this message |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
169 --no-create do not create output files |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
170 --quiet, --silent do not print \`checking...' messages |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
171 --version print the version of autoconf that created configure |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
172 Directory and file names: |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
173 --prefix=PREFIX install architecture-independent files in PREFIX |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
174 [$ac_default_prefix] |
| 3627 | 175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
176 [same as prefix] |
| 3627 | 177 --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
| 179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
| 180 --datadir=DIR read-only architecture-independent data in DIR | |
| 181 [PREFIX/share] | |
| 182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
| 183 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
| 184 [PREFIX/com] | |
| 185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
| 186 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
| 187 --includedir=DIR C header files in DIR [PREFIX/include] | |
| 188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
| 189 --infodir=DIR info documentation in DIR [PREFIX/info] | |
| 190 --mandir=DIR man documentation in DIR [PREFIX/man] | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
191 --srcdir=DIR find the sources in DIR [configure dir or ..] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
192 --program-prefix=PREFIX prepend PREFIX to installed program names |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
193 --program-suffix=SUFFIX append SUFFIX to installed program names |
| 3627 | 194 --program-transform-name=PROGRAM |
| 195 run sed PROGRAM on installed program names | |
| 196 EOF | |
| 197 cat << EOF | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
198 Host type: |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
199 --build=BUILD configure for building on BUILD [BUILD=HOST] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
200 --host=HOST configure for HOST [guessed] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
201 --target=TARGET configure for TARGET [TARGET=HOST] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
202 Features and packages: |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
207 --x-includes=DIR X include files are in DIR |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
208 --x-libraries=DIR X library files are in DIR |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
209 EOF |
| 3627 | 210 if test -n "$ac_help"; then |
| 211 echo "--enable and --with options recognized:$ac_help" | |
| 212 fi | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
213 exit 0 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
214 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
215 -host | --host | --hos | --ho) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
216 ac_prev=host ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
217 -host=* | --host=* | --hos=* | --ho=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
218 host="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
219 |
| 3627 | 220 -includedir | --includedir | --includedi | --included | --include \ |
| 221 | --includ | --inclu | --incl | --inc) | |
| 222 ac_prev=includedir ;; | |
| 223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 224 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 225 includedir="$ac_optarg" ;; | |
| 226 | |
| 227 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 228 ac_prev=infodir ;; | |
| 229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 230 infodir="$ac_optarg" ;; | |
| 231 | |
| 232 -libdir | --libdir | --libdi | --libd) | |
| 233 ac_prev=libdir ;; | |
| 234 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 235 libdir="$ac_optarg" ;; | |
| 236 | |
| 237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 238 | --libexe | --libex | --libe) | |
| 239 ac_prev=libexecdir ;; | |
| 240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 241 | --libexe=* | --libex=* | --libe=*) | |
| 242 libexecdir="$ac_optarg" ;; | |
| 243 | |
| 244 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 245 | --localstate | --localstat | --localsta | --localst \ | |
| 246 | --locals | --local | --loca | --loc | --lo) | |
| 247 ac_prev=localstatedir ;; | |
| 248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
| 250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
| 251 localstatedir="$ac_optarg" ;; | |
| 252 | |
| 253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 254 ac_prev=mandir ;; | |
| 255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 256 mandir="$ac_optarg" ;; | |
| 257 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
258 -nfp | --nfp | --nf) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
259 # Obsolete; use --without-fp. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
260 with_fp=no ;; |
| 1453 | 261 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
263 | --no-cr | --no-c) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
264 no_create=yes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
265 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
268 no_recursion=yes ;; |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
269 |
| 3627 | 270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 272 | --oldin | --oldi | --old | --ol | --o) | |
| 273 ac_prev=oldincludedir ;; | |
| 274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 277 oldincludedir="$ac_optarg" ;; | |
| 278 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
280 ac_prev=prefix ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
282 prefix="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
283 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
285 | --program-pre | --program-pr | --program-p) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
286 ac_prev=program_prefix ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
289 program_prefix="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
290 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
292 | --program-suf | --program-su | --program-s) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
293 ac_prev=program_suffix ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
296 program_suffix="$ac_optarg" ;; |
| 1453 | 297 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
298 -program-transform-name | --program-transform-name \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
299 | --program-transform-nam | --program-transform-na \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
300 | --program-transform-n | --program-transform- \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
301 | --program-transform | --program-transfor \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
302 | --program-transfo | --program-transf \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
303 | --program-trans | --program-tran \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
304 | --progr-tra | --program-tr | --program-t) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
305 ac_prev=program_transform_name ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
306 -program-transform-name=* | --program-transform-name=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
307 | --program-transform-nam=* | --program-transform-na=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
308 | --program-transform-n=* | --program-transform-=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
309 | --program-transform=* | --program-transfor=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
310 | --program-transfo=* | --program-transf=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
311 | --program-trans=* | --program-tran=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
312 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
313 program_transform_name="$ac_optarg" ;; |
| 1453 | 314 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
316 | -silent | --silent | --silen | --sile | --sil) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
317 silent=yes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
318 |
| 3627 | 319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 320 ac_prev=sbindir ;; | |
| 321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 322 | --sbi=* | --sb=*) | |
| 323 sbindir="$ac_optarg" ;; | |
| 324 | |
| 325 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 327 | --sharedst | --shareds | --shared | --share | --shar \ | |
| 328 | --sha | --sh) | |
| 329 ac_prev=sharedstatedir ;; | |
| 330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 333 | --sha=* | --sh=*) | |
| 334 sharedstatedir="$ac_optarg" ;; | |
| 335 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
336 -site | --site | --sit) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
337 ac_prev=site ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
338 -site=* | --site=* | --sit=*) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
339 site="$ac_optarg" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
340 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
342 ac_prev=srcdir ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
344 srcdir="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
345 |
| 3627 | 346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 347 | --syscon | --sysco | --sysc | --sys | --sy) | |
| 348 ac_prev=sysconfdir ;; | |
| 349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 351 sysconfdir="$ac_optarg" ;; | |
| 352 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
353 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
354 ac_prev=target ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
356 target="$ac_optarg" ;; |
| 1453 | 357 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
358 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
359 verbose=yes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
360 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
361 -version | --version | --versio | --versi | --vers) |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
362 echo "configure generated by autoconf version 2.12" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
363 exit 0 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
364 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
365 -with-* | --with-*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
367 # Reject names that are not valid shell variable names. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
370 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
371 ac_package=`echo $ac_package| sed 's/-/_/g'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
372 case "$ac_option" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
373 *=*) ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
374 *) ac_optarg=yes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
375 esac |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
376 eval "with_${ac_package}='$ac_optarg'" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
377 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
378 -without-* | --without-*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
380 # Reject names that are not valid shell variable names. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
383 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
384 ac_package=`echo $ac_package| sed 's/-/_/g'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
385 eval "with_${ac_package}=no" ;; |
| 1453 | 386 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
387 --x) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
388 # Obsolete; use --with-x. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
389 with_x=yes ;; |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
390 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
392 | --x-incl | --x-inc | --x-in | --x-i) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
393 ac_prev=x_includes ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
396 x_includes="$ac_optarg" ;; |
| 1453 | 397 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
400 ac_prev=x_libraries ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
403 x_libraries="$ac_optarg" ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
404 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
406 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
407 |
| 3627 | 408 *) |
| 1882 | 409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
410 echo "configure: warning: $ac_option: invalid host type" 1>&2 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
411 fi |
| 1882 | 412 if test "x$nonopt" != xNONE; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
414 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
415 nonopt="$ac_option" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
416 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
417 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
418 esac |
| 1453 | 419 done |
| 420 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
421 if test -n "$ac_prev"; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
423 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
424 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
426 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
427 # File descriptor usage: |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
428 # 0 standard input |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
429 # 1 file creation |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
430 # 2 errors and warnings |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
431 # 3 some systems may open it to /dev/tty |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
432 # 4 used on the Kubota Titan |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
433 # 6 checking for... messages and results |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
434 # 5 compiler messages saved in config.log |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
435 if test "$silent" = yes; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
436 exec 6>/dev/null |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
437 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
438 exec 6>&1 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
439 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
440 exec 5>./config.log |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
441 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
442 echo "\ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
443 This file contains any messages produced by compilers while |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
444 running configure, to aid debugging if configure makes a mistake. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
445 " 1>&5 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
446 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
447 # Strip out --no-create and --no-recursion so they do not pile up. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
448 # Also quote any args containing shell metacharacters. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
449 ac_configure_args= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
450 for ac_arg |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
451 do |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
452 case "$ac_arg" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
454 | --no-cr | --no-c) ;; |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
460 esac |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
461 done |
| 1453 | 462 |
| 463 # NLS nuisances. | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
464 # Only set these to C if already set. These must not be set unconditionally |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
465 # because not all systems understand e.g. LANG=C (notably SCO). |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
467 # Non-C LC_CTYPE values break the ctype check. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 1453 | 472 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
473 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
474 rm -rf conftest* confdefs.h |
| 1453 | 475 # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 476 echo > confdefs.h | |
| 477 | |
| 478 # A filename unique to this package, relative to the directory that | |
| 479 # configure is in, which we can look for to find out if srcdir is correct. | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
480 ac_unique_file=Include/object.h |
| 1453 | 481 |
| 482 # Find the source files, if location was not specified. | |
| 483 if test -z "$srcdir"; then | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
484 ac_srcdir_defaulted=yes |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
485 # Try the directory containing this script, then its parent. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
486 ac_prog=$0 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
489 srcdir=$ac_confdir |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
490 if test ! -r $srcdir/$ac_unique_file; then |
| 1453 | 491 srcdir=.. |
| 492 fi | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
493 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
494 ac_srcdir_defaulted=no |
| 1453 | 495 fi |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
496 if test ! -r $srcdir/$ac_unique_file; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
497 if test "$ac_srcdir_defaulted" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 1453 | 499 else |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
501 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
502 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
504 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
505 # Prefer explicitly selected file to automatically selected ones. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
506 if test -z "$CONFIG_SITE"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
507 if test "x$prefix" != xNONE; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
509 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1453 | 511 fi |
| 512 fi | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
513 for ac_site_file in $CONFIG_SITE; do |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
514 if test -r "$ac_site_file"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
515 echo "loading site script $ac_site_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
516 . "$ac_site_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
517 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
518 done |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
519 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
520 if test -r "$cache_file"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
521 echo "loading cache $cache_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
522 . $cache_file |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
523 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
524 echo "creating cache $cache_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
525 > $cache_file |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
526 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
527 |
| 1882 | 528 ac_ext=c |
| 529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
530 ac_cpp='$CPP $CPPFLAGS' |
| 3627 | 531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
533 cross_compiling=$ac_cv_prog_cc_cross |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
534 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
538 ac_n= ac_c=' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
539 ' ac_t=' ' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
540 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
541 ac_n=-n ac_c= ac_t= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
542 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
543 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
544 ac_n= ac_c='\c' ac_t= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
545 fi |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
546 |
| 1453 | 547 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
548 |
| 1453 | 549 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
550 # NEXTSTEP stuff |
| 4269 | 551 if test -f /usr/lib/NextStep/software_version; then |
| 552 | |
| 553 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 | |
| 5470 | 554 echo "configure:555: checking for --with-next-archs" >&5 |
| 4269 | 555 # Check whether --with-next-archs or --without-next-archs was given. |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
556 if test "${with_next_archs+set}" = set; then |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
557 withval="$with_next_archs" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
558 |
| 4269 | 559 if test -n "$withval"; then |
| 560 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` | |
| 561 # GCC does not currently support multi archs on the NeXT | |
| 562 with_gcc=no | |
| 563 fi | |
| 564 echo "$ac_t""$with_next_archs" 1>&6 | |
| 565 | |
| 566 else | |
| 567 echo "$ac_t""none: using `arch`" 1>&6 | |
| 568 fi | |
| 569 | |
| 570 | |
| 571 if test -z "$MACHDEP" | |
| 572 then | |
| 573 set X `hostinfo | grep 'NeXT Mach.*:' | \ | |
| 574 sed -e 's/://' -e 's/\./_/'` && \ | |
| 575 ac_sys_system=next && ac_sys_release=$4 | |
| 576 | |
| 577 MACHDEP="$ac_sys_system$ac_sys_release" | |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
578 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
579 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
580 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
581 # Set name for machine-dependent library files |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
582 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
583 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
| 5470 | 584 echo "configure:585: checking MACHDEP" >&5 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
585 if test -z "$MACHDEP" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
586 then |
| 4269 | 587 ac_sys_system=`uname -s` |
| 588 if test "$ac_sys_system" = "AIX" ; then | |
| 589 ac_sys_release=`uname -v` | |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
590 else |
| 4269 | 591 ac_sys_release=`uname -r` |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
592 fi |
| 4269 | 593 ac_md_system=`echo $ac_sys_system | |
| 594 tr -d '/ ' | tr '[A-Z]' '[a-z]'` | |
| 595 ac_md_release=`echo $ac_sys_release | | |
| 596 tr -d '/ ' | sed 's/\..*//'` | |
| 597 MACHDEP="$ac_md_system$ac_md_release" | |
| 598 | |
| 5383 | 599 case $MACHDEP in |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
600 '') MACHDEP=unknown;; |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
601 esac |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
602 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
603 echo "$ac_t""$MACHDEP" 1>&6 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
604 |
| 1453 | 605 # checks for alternative programs |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
606 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
| 5470 | 607 echo "configure:608: checking for --without-gcc" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
608 # Check whether --with-gcc or --without-gcc was given. |
| 3627 | 609 if test "${with_gcc+set}" = set; then |
| 610 withval="$with_gcc" | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
611 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
612 case $withval in |
| 2247 | 613 no) CC=cc |
| 614 without_gcc=yes;; | |
| 615 yes) CC=gcc | |
| 616 without_gcc=no;; | |
| 617 *) CC=$withval | |
| 618 without_gcc=$withval;; | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
619 esac |
| 2247 | 620 else |
|
3092
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
621 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
622 case $ac_sys_system in |
|
3092
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
623 OSF1) CC=cc |
|
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
624 without_gcc=;; |
|
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
625 *) without_gcc=no;; |
|
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
626 esac |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
627 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
628 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
629 echo "$ac_t""$without_gcc" 1>&6 |
| 2247 | 630 |
| 2509 | 631 # If the user switches compilers, we can't believe the cache |
| 632 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | |
| 633 then | |
| 634 { echo "configure: error: cached CC is different -- throw away $cache_file | |
| 635 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } | |
| 636 fi | |
| 637 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
638 # Extract the first word of "gcc", so it can be a program name with args. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
639 set dummy gcc; ac_word=$2 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5470 | 641 echo "configure:642: checking for $ac_word" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
643 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
644 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
645 if test -n "$CC"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
646 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
647 else |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
649 for ac_dir in $PATH; do |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
650 test -z "$ac_dir" && ac_dir=. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
651 if test -f $ac_dir/$ac_word; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
652 ac_cv_prog_CC="gcc" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
653 break |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
654 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
655 done |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
656 IFS="$ac_save_ifs" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
657 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
658 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
659 CC="$ac_cv_prog_CC" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
660 if test -n "$CC"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
661 echo "$ac_t""$CC" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
662 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
663 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
664 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
665 |
| 3627 | 666 if test -z "$CC"; then |
| 667 # Extract the first word of "cc", so it can be a program name with args. | |
| 668 set dummy cc; ac_word=$2 | |
| 669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 5470 | 670 echo "configure:671: checking for $ac_word" >&5 |
| 3627 | 671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 672 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 673 else | |
| 674 if test -n "$CC"; then | |
| 675 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 676 else | |
| 677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
| 678 ac_prog_rejected=no | |
| 679 for ac_dir in $PATH; do | |
| 680 test -z "$ac_dir" && ac_dir=. | |
| 681 if test -f $ac_dir/$ac_word; then | |
| 682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 683 ac_prog_rejected=yes | |
| 684 continue | |
| 685 fi | |
| 686 ac_cv_prog_CC="cc" | |
| 687 break | |
| 688 fi | |
| 689 done | |
| 690 IFS="$ac_save_ifs" | |
| 691 if test $ac_prog_rejected = yes; then | |
| 692 # We found a bogon in the path, so make sure we never use it. | |
| 693 set dummy $ac_cv_prog_CC | |
| 694 shift | |
| 695 if test $# -gt 0; then | |
| 696 # We chose a different compiler from the bogus one. | |
| 697 # However, it has the same basename, so the bogon will be chosen | |
| 698 # first if we set CC to just the basename; use the full file name. | |
| 699 shift | |
| 700 set dummy "$ac_dir/$ac_word" "$@" | |
| 701 shift | |
| 702 ac_cv_prog_CC="$@" | |
| 703 fi | |
| 704 fi | |
| 705 fi | |
| 706 fi | |
| 707 CC="$ac_cv_prog_CC" | |
| 708 if test -n "$CC"; then | |
| 709 echo "$ac_t""$CC" 1>&6 | |
| 710 else | |
| 711 echo "$ac_t""no" 1>&6 | |
| 712 fi | |
| 713 | |
| 714 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 715 fi | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
716 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
717 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 5470 | 718 echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
719 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
720 ac_ext=c |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
722 ac_cpp='$CPP $CPPFLAGS' |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
724 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
725 cross_compiling=$ac_cv_prog_cc_cross |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
726 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
727 cat > conftest.$ac_ext <<EOF |
| 5470 | 728 #line 729 "configure" |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
729 #include "confdefs.h" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
730 main(){return(0);} |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
731 EOF |
| 5470 | 732 if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
733 ac_cv_prog_cc_works=yes |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
734 # If we can't run a trivial program, we are probably using a cross compiler. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
735 if (./conftest; exit) 2>/dev/null; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
736 ac_cv_prog_cc_cross=no |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
737 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
738 ac_cv_prog_cc_cross=yes |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
739 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
740 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
741 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
742 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
743 ac_cv_prog_cc_works=no |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
744 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
745 rm -fr conftest* |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
746 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
747 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
748 if test $ac_cv_prog_cc_works = no; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
750 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 5470 | 752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
753 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
754 cross_compiling=$ac_cv_prog_cc_cross |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
755 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
756 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 5470 | 757 echo "configure:758: checking whether we are using GNU C" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
758 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
759 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
760 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
761 cat > conftest.c <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
762 #ifdef __GNUC__ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
763 yes; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
764 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
765 EOF |
| 5470 | 766 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
767 ac_cv_prog_gcc=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
768 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
769 ac_cv_prog_gcc=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
770 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
771 fi |
| 3627 | 772 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
773 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
774 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
775 if test $ac_cv_prog_gcc = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
776 GCC=yes |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
777 ac_test_CFLAGS="${CFLAGS+set}" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
778 ac_save_CFLAGS="$CFLAGS" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
779 CFLAGS= |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
780 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 5470 | 781 echo "configure:782: checking whether ${CC-cc} accepts -g" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
782 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
783 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
784 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
785 echo 'void f(){}' > conftest.c |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
786 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
787 ac_cv_prog_cc_g=yes |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
788 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
789 ac_cv_prog_cc_g=no |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
790 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
791 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
792 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
793 fi |
| 3627 | 794 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
795 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
796 if test "$ac_test_CFLAGS" = set; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
797 CFLAGS="$ac_save_CFLAGS" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
798 elif test $ac_cv_prog_cc_g = yes; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
799 CFLAGS="-g -O2" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
800 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
801 CFLAGS="-O2" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
802 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
803 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
804 GCC= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
805 test "${CFLAGS+set}" = set || CFLAGS="-g" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
806 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
807 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
808 # Extract the first word of "ranlib", so it can be a program name with args. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
809 set dummy ranlib; ac_word=$2 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5470 | 811 echo "configure:812: checking for $ac_word" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
812 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
813 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
814 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
815 if test -n "$RANLIB"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
817 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
819 for ac_dir in $PATH; do |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
820 test -z "$ac_dir" && ac_dir=. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
821 if test -f $ac_dir/$ac_word; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
822 ac_cv_prog_RANLIB="ranlib" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
823 break |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
824 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
825 done |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
826 IFS="$ac_save_ifs" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
827 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
828 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
829 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
830 RANLIB="$ac_cv_prog_RANLIB" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
831 if test -n "$RANLIB"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
832 echo "$ac_t""$RANLIB" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
833 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
834 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
835 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
836 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
837 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
838 for ac_prog in ar aal |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
839 do |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
840 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
841 set dummy $ac_prog; ac_word=$2 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5470 | 843 echo "configure:844: checking for $ac_word" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
844 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
845 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
846 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
847 if test -n "$AR"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
848 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
849 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
851 for ac_dir in $PATH; do |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
852 test -z "$ac_dir" && ac_dir=. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
853 if test -f $ac_dir/$ac_word; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
854 ac_cv_prog_AR="$ac_prog" |
| 1453 | 855 break |
| 856 fi | |
| 857 done | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
858 IFS="$ac_save_ifs" |
| 1453 | 859 fi |
| 860 fi | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
861 AR="$ac_cv_prog_AR" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
862 if test -n "$AR"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
863 echo "$ac_t""$AR" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
864 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
865 echo "$ac_t""no" 1>&6 |
| 1453 | 866 fi |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
867 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
868 test -n "$AR" && break |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
869 done |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
870 test -n "$AR" || AR="ar" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
871 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
872 |
| 2247 | 873 |
| 874 | |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
875 # Install just never works :-( |
|
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
876 if test -z "$INSTALL" |
| 2247 | 877 then |
| 878 INSTALL=cp | |
| 879 INSTALL_PROGRAM=cp | |
| 880 INSTALL_DATA=cp | |
| 881 else | |
| 882 INSTALL_PROGRAM="$INSTALL" | |
| 883 INSTALL_DATA="$INSTALL -m 644" | |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
884 fi |
|
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
885 |
|
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
886 # Optimizer/debugger flags passed between Makefiles |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
887 |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
888 if test -z "$OPT" |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
889 then |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
890 case $ac_sys_system in |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
891 *) OPT="-O";; |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
892 esac |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
893 fi |
|
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
894 |
| 4269 | 895 if test "$ac_arch_flags" |
| 3894 | 896 then |
| 897 OPT="$OPT $ac_arch_flags" | |
| 898 fi | |
| 1453 | 899 # checks for UNIX variants that set C preprocessor variables |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
900 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 5470 | 901 echo "configure:902: checking how to run the C preprocessor" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
902 # On Suns, sometimes $CPP names a directory. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
903 if test -n "$CPP" && test -d "$CPP"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
904 CPP= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
905 fi |
| 1453 | 906 if test -z "$CPP"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
907 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
908 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
909 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
910 # This must be in double quotes, not single quotes, because CPP may get |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
911 # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1453 | 912 CPP="${CC-cc} -E" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
913 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
914 # not just through cpp. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
915 cat > conftest.$ac_ext <<EOF |
| 5470 | 916 #line 917 "configure" |
| 1453 | 917 #include "confdefs.h" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
918 #include <assert.h> |
| 1453 | 919 Syntax Error |
| 920 EOF | |
| 3627 | 921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5470 | 922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
923 ac_err=`grep -v '^ *+' conftest.out` |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
924 if test -z "$ac_err"; then |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
925 : |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
926 else |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
927 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
928 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
929 cat conftest.$ac_ext >&5 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
930 rm -rf conftest* |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
931 CPP="${CC-cc} -E -traditional-cpp" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
932 cat > conftest.$ac_ext <<EOF |
| 5470 | 933 #line 934 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
934 #include "confdefs.h" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
935 #include <assert.h> |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
936 Syntax Error |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
937 EOF |
| 3627 | 938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5470 | 939 { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
940 ac_err=`grep -v '^ *+' conftest.out` |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
941 if test -z "$ac_err"; then |
| 1453 | 942 : |
| 943 else | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
944 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
945 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
946 cat conftest.$ac_ext >&5 |
| 1453 | 947 rm -rf conftest* |
| 948 CPP=/lib/cpp | |
| 949 fi | |
| 950 rm -f conftest* | |
| 951 fi | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
952 rm -f conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
953 ac_cv_prog_CPP="$CPP" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
954 fi |
|
3092
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
955 CPP="$ac_cv_prog_CPP" |
|
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
956 else |
|
1ff12619a14c
new version from configure.in
Guido van Rossum <guido@python.org>
parents:
2741
diff
changeset
|
957 ac_cv_prog_CPP="$CPP" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
958 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
959 echo "$ac_t""$CPP" 1>&6 |
| 1453 | 960 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
961 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 5470 | 962 echo "configure:963: checking for AIX" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
963 cat > conftest.$ac_ext <<EOF |
| 5470 | 964 #line 965 "configure" |
| 1453 | 965 #include "confdefs.h" |
| 966 #ifdef _AIX | |
| 967 yes | |
| 968 #endif | |
| 969 | |
| 970 EOF | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
972 egrep "yes" >/dev/null 2>&1; then |
| 1453 | 973 rm -rf conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
974 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
975 #define _ALL_SOURCE 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
976 EOF |
| 1453 | 977 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
978 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
979 rm -rf conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
980 echo "$ac_t""no" 1>&6 |
| 1453 | 981 fi |
| 982 rm -f conftest* | |
| 983 | |
| 984 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
985 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
986 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
| 5470 | 987 echo "configure:988: checking for minix/config.h" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
989 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
990 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
991 cat > conftest.$ac_ext <<EOF |
| 5470 | 992 #line 993 "configure" |
| 1453 | 993 #include "confdefs.h" |
| 994 #include <minix/config.h> | |
| 995 EOF | |
| 3627 | 996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5470 | 997 { (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
998 ac_err=`grep -v '^ *+' conftest.out` |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
999 if test -z "$ac_err"; then |
| 1453 | 1000 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1001 eval "ac_cv_header_$ac_safe=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1002 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1003 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1004 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1005 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1006 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1007 eval "ac_cv_header_$ac_safe=no" |
| 1453 | 1008 fi |
| 1009 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1010 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1012 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1013 MINIX=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1014 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1015 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1016 MINIX= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1017 fi |
| 1453 | 1018 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1019 if test "$MINIX" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1020 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1021 #define _POSIX_SOURCE 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1022 EOF |
| 1453 | 1023 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1024 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1025 #define _POSIX_1_SOURCE 2 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1026 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1027 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1028 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1029 #define _MINIX 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1030 EOF |
| 1453 | 1031 |
| 1032 fi | |
| 1033 | |
| 2247 | 1034 |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1035 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1036 echo "configure:1037: checking whether $CC accepts -Olimit 1500" >&5 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1037 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1038 echo $ac_n "(cached) $ac_c" 1>&6 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1039 else |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1040 ac_save_cc="$CC" |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1041 CC="$CC -Olimit 1500" |
| 5670 | 1042 if test "$cross_compiling" = yes; then |
| 1043 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
| 1044 else | |
| 1045 cat > conftest.$ac_ext <<EOF | |
| 1046 #line 1047 "configure" | |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1047 #include "confdefs.h" |
| 5670 | 1048 int main() { return 0; } |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1049 EOF |
| 5670 | 1050 if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
| 1051 then | |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1052 ac_cv_olimit_ok=yes |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1053 else |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1054 echo "configure: failed program was:" >&5 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1055 cat conftest.$ac_ext >&5 |
| 5670 | 1056 rm -fr conftest* |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1057 ac_cv_olimit_ok=no |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1058 fi |
| 5670 | 1059 rm -fr conftest* |
| 1060 fi | |
| 1061 | |
|
5521
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1062 CC="$ac_save_cc" |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1063 fi |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1064 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1065 echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1066 if test $ac_cv_olimit_ok = yes; then |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1067 OPT="$OPT -Olimit 1500" |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1068 fi |
|
8803bf404b69
Add -Olimit 1500 to OPT if CC supports it.
Guido van Rossum <guido@python.org>
parents:
5506
diff
changeset
|
1069 |
| 4030 | 1070 # check for ANSI or K&R ("traditional") preprocessor |
| 1071 echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 | |
| 5670 | 1072 echo "configure:1073: checking for C preprocessor type" >&5 |
| 4030 | 1073 cat > conftest.$ac_ext <<EOF |
| 5670 | 1074 #line 1075 "configure" |
| 4030 | 1075 #include "confdefs.h" |
| 1076 | |
| 1077 #define spam(name, doc) {#name, &name, #name "() -- " doc} | |
| 1078 int foo; | |
| 1079 struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); | |
| 1080 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1081 int main() { |
| 4030 | 1082 ; |
| 1083 ; return 0; } | |
| 1084 EOF | |
| 5670 | 1085 if { (eval echo configure:1086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4030 | 1086 rm -rf conftest* |
| 1087 cpp_type=ansi | |
| 1088 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1089 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1090 cat conftest.$ac_ext >&5 |
| 4030 | 1091 rm -rf conftest* |
| 1092 cat >> confdefs.h <<\EOF | |
| 1093 #define HAVE_OLD_CPP 1 | |
| 1094 EOF | |
| 1095 cpp_type=traditional | |
| 1096 fi | |
| 1097 rm -f conftest* | |
| 1098 echo "$ac_t""$cpp_type" 1>&6 | |
| 1099 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1100 # checks for header files |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1101 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 5670 | 1102 echo "configure:1103: checking for ANSI C header files" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1103 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1104 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1105 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1106 cat > conftest.$ac_ext <<EOF |
| 5670 | 1107 #line 1108 "configure" |
| 1453 | 1108 #include "confdefs.h" |
| 1109 #include <stdlib.h> | |
| 1110 #include <stdarg.h> | |
| 1111 #include <string.h> | |
| 1112 #include <float.h> | |
| 1113 EOF | |
| 3627 | 1114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5670 | 1115 { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1116 ac_err=`grep -v '^ *+' conftest.out` |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1117 if test -z "$ac_err"; then |
| 1453 | 1118 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1119 ac_cv_header_stdc=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1120 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1121 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1122 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1123 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1124 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1125 ac_cv_header_stdc=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1126 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1127 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1128 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1129 if test $ac_cv_header_stdc = yes; then |
| 1453 | 1130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1131 cat > conftest.$ac_ext <<EOF |
| 5670 | 1132 #line 1133 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1133 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1134 #include <string.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1135 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1137 egrep "memchr" >/dev/null 2>&1; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1138 : |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1139 else |
| 1453 | 1140 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1141 ac_cv_header_stdc=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1142 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1143 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1144 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1145 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1146 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1147 if test $ac_cv_header_stdc = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1149 cat > conftest.$ac_ext <<EOF |
| 5670 | 1150 #line 1151 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1151 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1152 #include <stdlib.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1153 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1155 egrep "free" >/dev/null 2>&1; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1156 : |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1157 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1158 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1159 ac_cv_header_stdc=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1160 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1161 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1162 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1163 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1164 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1165 if test $ac_cv_header_stdc = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1167 if test "$cross_compiling" = yes; then |
| 3627 | 1168 : |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1169 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1170 cat > conftest.$ac_ext <<EOF |
| 5670 | 1171 #line 1172 "configure" |
| 1453 | 1172 #include "confdefs.h" |
| 1173 #include <ctype.h> | |
| 1174 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
| 1175 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1453 | 1177 int main () { int i; for (i = 0; i < 256; i++) |
| 1178 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
| 1179 exit (0); } | |
| 1180 | |
| 1181 EOF | |
| 5670 | 1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1183 then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1184 : |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1185 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1186 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1187 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1188 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1189 ac_cv_header_stdc=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1190 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1191 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1192 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1193 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1194 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1195 fi |
| 3627 | 1196 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1197 echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1198 if test $ac_cv_header_stdc = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1199 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1200 #define STDC_HEADERS 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1201 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1202 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1203 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1204 |
| 5383 | 1205 for ac_hdr in dlfcn.h fcntl.h limits.h ncurses.h pthread.h \ |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
1206 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
| 4609 | 1207 sys/audioio.h sys/file.h sys/lock.h \ |
| 1208 sys/param.h sys/select.h sys/time.h sys/times.h \ | |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
1209 sys/un.h sys/utsname.h sys/wait.h |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1210 do |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5670 | 1213 echo "configure:1214: checking for $ac_hdr" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1215 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1216 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1217 cat > conftest.$ac_ext <<EOF |
| 5670 | 1218 #line 1219 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1219 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1220 #include <$ac_hdr> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1221 EOF |
| 3627 | 1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5670 | 1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1224 ac_err=`grep -v '^ *+' conftest.out` |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1225 if test -z "$ac_err"; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1226 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1227 eval "ac_cv_header_$ac_safe=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1228 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1229 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1230 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1231 cat conftest.$ac_ext >&5 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1232 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1233 eval "ac_cv_header_$ac_safe=no" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1234 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1235 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1236 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1238 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1240 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1241 #define $ac_tr_hdr 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1242 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1243 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1244 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1245 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1246 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1247 done |
| 1453 | 1248 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1249 ac_header_dirent=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1251 do |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1253 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 5670 | 1254 echo "configure:1255: checking for $ac_hdr that defines DIR" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1255 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1256 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1257 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1258 cat > conftest.$ac_ext <<EOF |
| 5670 | 1259 #line 1260 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1260 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1261 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1262 #include <$ac_hdr> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1263 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1264 DIR *dirp = 0; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1265 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1266 EOF |
| 5670 | 1267 if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1268 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1269 eval "ac_cv_header_dirent_$ac_safe=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1270 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1271 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1272 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1273 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1274 eval "ac_cv_header_dirent_$ac_safe=no" |
| 1453 | 1275 fi |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1276 rm -f conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1277 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1278 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1279 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1281 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1282 #define $ac_tr_hdr 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1283 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1284 ac_header_dirent=$ac_hdr; break |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1285 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1286 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1287 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1288 done |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1289 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1290 if test $ac_header_dirent = dirent.h; then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1291 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
| 5670 | 1292 echo "configure:1293: checking for opendir in -ldir" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1293 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 3627 | 1294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1295 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1296 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1297 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1298 LIBS="-ldir $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1299 cat > conftest.$ac_ext <<EOF |
| 5670 | 1300 #line 1301 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1301 #include "confdefs.h" |
| 3627 | 1302 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1303 /* We use char because int might match the return type of a gcc2 | |
| 1304 builtin and then its argument prototype would still apply. */ | |
| 1305 char opendir(); | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1306 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1307 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1308 opendir() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1309 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1310 EOF |
| 5670 | 1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1312 rm -rf conftest* |
| 3627 | 1313 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1314 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1315 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1316 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1317 rm -rf conftest* |
| 3627 | 1318 eval "ac_cv_lib_$ac_lib_var=no" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1319 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1320 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1321 LIBS="$ac_save_LIBS" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1322 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1323 fi |
| 3627 | 1324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1325 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1326 LIBS="$LIBS -ldir" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1327 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1328 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1329 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1330 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1331 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1332 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
| 5670 | 1333 echo "configure:1334: checking for opendir in -lx" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1334 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 3627 | 1335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1336 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1337 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1338 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1339 LIBS="-lx $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1340 cat > conftest.$ac_ext <<EOF |
| 5670 | 1341 #line 1342 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1342 #include "confdefs.h" |
| 3627 | 1343 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1344 /* We use char because int might match the return type of a gcc2 | |
| 1345 builtin and then its argument prototype would still apply. */ | |
| 1346 char opendir(); | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1347 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1348 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1349 opendir() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1350 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1351 EOF |
| 5670 | 1352 if { (eval echo configure:1353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1353 rm -rf conftest* |
| 3627 | 1354 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1355 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1356 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1357 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1358 rm -rf conftest* |
| 3627 | 1359 eval "ac_cv_lib_$ac_lib_var=no" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1360 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1361 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1362 LIBS="$ac_save_LIBS" |
| 1453 | 1363 |
| 1364 fi | |
| 3627 | 1365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1366 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1367 LIBS="$LIBS -lx" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1368 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1369 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1370 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1371 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1372 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1373 |
| 1453 | 1374 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1375 # checks for typedefs |
| 2247 | 1376 was_it_defined=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1377 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
| 5670 | 1378 echo "configure:1379: checking for clock_t in time.h" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1379 cat > conftest.$ac_ext <<EOF |
| 5670 | 1380 #line 1381 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1381 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1382 #include <time.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1383 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1385 egrep "clock_t" >/dev/null 2>&1; then |
| 2247 | 1386 rm -rf conftest* |
| 1387 was_it_defined=yes | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1388 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1389 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1390 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1391 #define clock_t long |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1392 EOF |
| 1453 | 1393 |
| 1394 fi | |
| 1395 rm -f conftest* | |
| 1396 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1397 echo "$ac_t""$was_it_defined" 1>&6 |
| 2247 | 1398 |
| 4030 | 1399 # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1400 cat >> confdefs.h <<\EOF | |
| 1401 #if defined(SCO_DS) | |
| 1402 #undef _OFF_T | |
| 1403 #endif | |
| 1404 EOF | |
| 1405 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1406 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
| 5670 | 1407 echo "configure:1408: checking for mode_t" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1408 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1409 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1410 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1411 cat > conftest.$ac_ext <<EOF |
| 5670 | 1412 #line 1413 "configure" |
| 1453 | 1413 #include "confdefs.h" |
| 1414 #include <sys/types.h> | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1415 #if STDC_HEADERS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1416 #include <stdlib.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1417 #include <stddef.h> |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1418 #endif |
| 1453 | 1419 EOF |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1421 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 1453 | 1422 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1423 ac_cv_type_mode_t=yes |
| 1453 | 1424 else |
| 1425 rm -rf conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1426 ac_cv_type_mode_t=no |
| 1453 | 1427 fi |
| 1428 rm -f conftest* | |
| 1429 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1430 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1431 echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1432 if test $ac_cv_type_mode_t = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1433 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1434 #define mode_t int |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1435 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1436 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1437 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1438 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1439 echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 5670 | 1440 echo "configure:1441: checking for off_t" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1441 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1442 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1443 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1444 cat > conftest.$ac_ext <<EOF |
| 5670 | 1445 #line 1446 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1446 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1447 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1448 #if STDC_HEADERS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1449 #include <stdlib.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1450 #include <stddef.h> |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1451 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1452 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1454 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1455 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1456 ac_cv_type_off_t=yes |
| 1453 | 1457 else |
| 1458 rm -rf conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1459 ac_cv_type_off_t=no |
| 1453 | 1460 fi |
| 1461 rm -f conftest* | |
| 1462 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1463 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1464 echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1465 if test $ac_cv_type_off_t = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1466 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1467 #define off_t long |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1468 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1469 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1470 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1471 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1472 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 5670 | 1473 echo "configure:1474: checking for pid_t" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1474 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1475 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1476 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1477 cat > conftest.$ac_ext <<EOF |
| 5670 | 1478 #line 1479 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1479 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1480 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1481 #if STDC_HEADERS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1482 #include <stdlib.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1483 #include <stddef.h> |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1484 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1485 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1487 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1488 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1489 ac_cv_type_pid_t=yes |
| 1453 | 1490 else |
| 1491 rm -rf conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1492 ac_cv_type_pid_t=no |
| 1453 | 1493 fi |
| 1494 rm -f conftest* | |
| 1495 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1496 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1497 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1498 if test $ac_cv_type_pid_t = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1499 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1500 #define pid_t int |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1501 EOF |
| 1453 | 1502 |
| 1503 fi | |
| 1504 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1505 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 5670 | 1506 echo "configure:1507: checking return type of signal handlers" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1507 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1508 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1509 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1510 cat > conftest.$ac_ext <<EOF |
| 5670 | 1511 #line 1512 "configure" |
| 1453 | 1512 #include "confdefs.h" |
| 1513 #include <sys/types.h> | |
| 1514 #include <signal.h> | |
| 1515 #ifdef signal | |
| 1516 #undef signal | |
| 1517 #endif | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1518 #ifdef __cplusplus |
| 3627 | 1519 extern "C" void (*signal (int, void (*)(int)))(int); |
| 1520 #else | |
| 1521 void (*signal ()) (); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1522 #endif |
| 3627 | 1523 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1524 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1525 int i; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1526 ; return 0; } |
| 1453 | 1527 EOF |
| 5670 | 1528 if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 1529 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1530 ac_cv_type_signal=void |
| 1453 | 1531 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1532 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1533 cat conftest.$ac_ext >&5 |
| 1453 | 1534 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1535 ac_cv_type_signal=int |
| 1453 | 1536 fi |
| 1537 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1538 fi |
| 3627 | 1539 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1540 echo "$ac_t""$ac_cv_type_signal" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1541 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1542 #define RETSIGTYPE $ac_cv_type_signal |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1543 EOF |
| 1453 | 1544 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1545 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1546 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 5670 | 1547 echo "configure:1548: checking for size_t" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1548 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1549 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1550 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1551 cat > conftest.$ac_ext <<EOF |
| 5670 | 1552 #line 1553 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1553 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1554 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1555 #if STDC_HEADERS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1556 #include <stdlib.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1557 #include <stddef.h> |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1558 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1559 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1561 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1562 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1563 ac_cv_type_size_t=yes |
| 1453 | 1564 else |
| 1565 rm -rf conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1566 ac_cv_type_size_t=no |
| 1453 | 1567 fi |
| 1568 rm -f conftest* | |
| 1569 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1570 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1571 echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1572 if test $ac_cv_type_size_t = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1573 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1574 #define size_t unsigned |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1575 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1576 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1577 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1578 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1579 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
| 5670 | 1580 echo "configure:1581: checking for uid_t in sys/types.h" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1581 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1582 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1583 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1584 cat > conftest.$ac_ext <<EOF |
| 5670 | 1585 #line 1586 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1586 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1587 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1588 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1590 egrep "uid_t" >/dev/null 2>&1; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1591 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1592 ac_cv_type_uid_t=yes |
| 1453 | 1593 else |
| 1594 rm -rf conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1595 ac_cv_type_uid_t=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1596 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1597 rm -f conftest* |
| 1453 | 1598 |
| 1599 fi | |
| 3627 | 1600 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1601 echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1602 if test $ac_cv_type_uid_t = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1603 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1604 #define uid_t int |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1605 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1606 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1607 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1608 #define gid_t int |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1609 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1610 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1611 fi |
| 1453 | 1612 |
| 1613 | |
| 4609 | 1614 echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 5670 | 1615 echo "configure:1616: checking size of int" >&5 |
| 4609 | 1616 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1617 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1618 else | |
| 1619 if test "$cross_compiling" = yes; then | |
| 1620 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
| 1621 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1622 cat > conftest.$ac_ext <<EOF |
| 5670 | 1623 #line 1624 "configure" |
| 4609 | 1624 #include "confdefs.h" |
| 1625 #include <stdio.h> | |
| 1626 main() | |
| 1627 { | |
| 1628 FILE *f=fopen("conftestval", "w"); | |
| 1629 if (!f) exit(1); | |
| 1630 fprintf(f, "%d\n", sizeof(int)); | |
| 1631 exit(0); | |
| 1632 } | |
| 1633 EOF | |
| 5670 | 1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1635 then |
| 4609 | 1636 ac_cv_sizeof_int=`cat conftestval` |
| 1637 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1638 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1639 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1640 rm -fr conftest* |
| 4609 | 1641 ac_cv_sizeof_int=0 |
| 1642 fi | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1643 rm -fr conftest* |
| 4609 | 1644 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1645 |
| 4609 | 1646 fi |
| 1647 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
| 1648 cat >> confdefs.h <<EOF | |
| 1649 #define SIZEOF_INT $ac_cv_sizeof_int | |
| 1650 EOF | |
| 1651 | |
| 1652 | |
| 1653 echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
| 5670 | 1654 echo "configure:1655: checking size of long" >&5 |
| 4609 | 1655 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 1656 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1657 else | |
| 1658 if test "$cross_compiling" = yes; then | |
| 1659 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
| 1660 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1661 cat > conftest.$ac_ext <<EOF |
| 5670 | 1662 #line 1663 "configure" |
| 4609 | 1663 #include "confdefs.h" |
| 1664 #include <stdio.h> | |
| 1665 main() | |
| 1666 { | |
| 1667 FILE *f=fopen("conftestval", "w"); | |
| 1668 if (!f) exit(1); | |
| 1669 fprintf(f, "%d\n", sizeof(long)); | |
| 1670 exit(0); | |
| 1671 } | |
| 1672 EOF | |
| 5670 | 1673 if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1674 then |
| 4609 | 1675 ac_cv_sizeof_long=`cat conftestval` |
| 1676 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1677 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1678 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1679 rm -fr conftest* |
| 4609 | 1680 ac_cv_sizeof_long=0 |
| 1681 fi | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1682 rm -fr conftest* |
| 4609 | 1683 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1684 |
| 4609 | 1685 fi |
| 1686 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
| 1687 cat >> confdefs.h <<EOF | |
| 1688 #define SIZEOF_LONG $ac_cv_sizeof_long | |
| 1689 EOF | |
| 1690 | |
| 1691 | |
| 1882 | 1692 |
| 1693 # Set info about shared libraries. | |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
1694 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
1695 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
1696 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
1697 |
| 1882 | 1698 # SO is the extension of shared libraries `(including the dot!) |
| 1699 # -- usually .so, .sl on HP-UX | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1700 echo $ac_n "checking SO""... $ac_c" 1>&6 |
| 5670 | 1701 echo "configure:1702: checking SO" >&5 |
| 1882 | 1702 if test -z "$SO" |
| 1703 then | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1704 case $ac_sys_system in |
| 4269 | 1705 hp*|HP*) SO=.sl;; |
| 1706 *) SO=.so;; | |
| 1882 | 1707 esac |
| 1708 fi | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1709 echo "$ac_t""$SO" 1>&6 |
| 1882 | 1710 # LDSHARED is the ld *command* used to create shared library |
| 1711 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1712 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
| 5670 | 1713 echo "configure:1714: checking LDSHARED" >&5 |
| 1882 | 1714 if test -z "$LDSHARED" |
| 1715 then | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1716 case $ac_sys_system/$ac_sys_release in |
| 4030 | 1717 AIX*) LDSHARED="ld_so_aix \$(CC)";; |
| 5383 | 1718 IRIX/5*) LDSHARED="ld -shared";; |
| 5670 | 1719 IRIX*/6*) LDSHARED="ld $SGI_ABI -shared -all"; OPT="$OPT $SGI_ABI";; |
| 1882 | 1720 SunOS/4*) LDSHARED="ld";; |
| 1721 SunOS/5*) LDSHARED="ld -G";; | |
| 1722 hp*|HP*) LDSHARED="ld -b";; | |
| 2247 | 1723 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 1724 DYNIX/ptx*) LDSHARED="ld -G";; | |
| 4269 | 1725 next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; |
|
3782
3eb1694edce6
Use gcc, not gcc-elf on Linux
Guido van Rossum <guido@python.org>
parents:
3740
diff
changeset
|
1726 Linux*) LDSHARED="gcc -shared";; |
| 3627 | 1727 FreeBSD*) LDSHARED="ld -Bshareable";; |
| 4030 | 1728 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
| 1882 | 1729 *) LDSHARED="ld";; |
| 1730 esac | |
| 1731 fi | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1732 echo "$ac_t""$LDSHARED" 1>&6 |
| 1882 | 1733 # CCSHARED are the C *flags* used to create objects to go into a shared |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1734 # library -- this is only needed for a few systems |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1735 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
| 5670 | 1736 echo "configure:1737: checking CCSHARED" >&5 |
| 1882 | 1737 if test -z "$CCSHARED" |
| 1738 then | |
| 5383 | 1739 case $ac_sys_system/$ac_sys_release in |
| 2329 | 1740 hp*|HP*) if test "$GCC" = yes; |
| 1741 then CCSHARED="-fpic"; | |
| 1742 else CCSHARED="+z"; | |
| 1743 fi;; | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1744 Linux*) CCSHARED="-fpic";; |
| 3627 | 1745 FreeBSD*) CCSHARED="-fpic";; |
| 4030 | 1746 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
| 5670 | 1747 IRIX*/6*) CCSHARED="$SGI_ABI -all";; |
| 1882 | 1748 esac |
| 1749 fi | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1750 echo "$ac_t""$CCSHARED" 1>&6 |
| 1882 | 1751 # LINKFORSHARED are the flags passed to the $(CC) command that links |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1752 # the python executable -- this is only needed for a few systems |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1753 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
| 5670 | 1754 echo "configure:1755: checking LINKFORSHARED" >&5 |
| 1882 | 1755 if test -z "$LINKFORSHARED" |
| 1756 then | |
| 5383 | 1757 case $ac_sys_system/$ac_sys_release in |
| 5506 | 1758 AIX*) LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';; |
| 4609 | 1759 hp*|HP*) |
| 1760 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/sharedmodules";; | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1761 Linux*) LINKFORSHARED="-rdynamic";; |
| 4269 | 1762 next) LINKFORSHARED="-u libsys_s";; |
| 4030 | 1763 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
| 5670 | 1764 IRIX*/6*) LINKFORSHARED="$SGI_ABI -all";; |
| 1882 | 1765 esac |
| 1766 fi | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1767 echo "$ac_t""$LINKFORSHARED" 1>&6 |
| 1882 | 1768 |
| 1453 | 1769 # checks for libraries |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1770 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
| 5670 | 1771 echo "configure:1772: checking for dlopen in -ldl" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1772 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 3627 | 1773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1774 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1775 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1776 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1777 LIBS="-ldl $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1778 cat > conftest.$ac_ext <<EOF |
| 5670 | 1779 #line 1780 "configure" |
| 1453 | 1780 #include "confdefs.h" |
| 3627 | 1781 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1782 /* We use char because int might match the return type of a gcc2 | |
| 1783 builtin and then its argument prototype would still apply. */ | |
| 1784 char dlopen(); | |
| 1453 | 1785 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1786 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1787 dlopen() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1788 ; return 0; } |
| 1453 | 1789 EOF |
| 5670 | 1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 1791 rm -rf conftest* |
| 3627 | 1792 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1793 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1794 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1795 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1796 rm -rf conftest* |
| 3627 | 1797 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 1798 fi |
| 1799 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1800 LIBS="$ac_save_LIBS" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1801 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1802 fi |
| 3627 | 1803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1804 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1805 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1807 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1808 #define $ac_tr_lib 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1809 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1810 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1811 LIBS="-ldl $LIBS" |
| 1453 | 1812 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1813 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1814 echo "$ac_t""no" 1>&6 |
| 1453 | 1815 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1816 # Dynamic linking for SunOS/Solaris and SYSV |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1817 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
| 5670 | 1818 echo "configure:1819: checking for shl_load in -ldld" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1819 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
| 3627 | 1820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1821 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1822 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1823 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1824 LIBS="-ldld $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1825 cat > conftest.$ac_ext <<EOF |
| 5670 | 1826 #line 1827 "configure" |
| 1453 | 1827 #include "confdefs.h" |
| 3627 | 1828 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1829 /* We use char because int might match the return type of a gcc2 | |
| 1830 builtin and then its argument prototype would still apply. */ | |
| 1831 char shl_load(); | |
| 1453 | 1832 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1833 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1834 shl_load() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1835 ; return 0; } |
| 1453 | 1836 EOF |
| 5670 | 1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 1838 rm -rf conftest* |
| 3627 | 1839 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1840 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1841 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1842 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1843 rm -rf conftest* |
| 3627 | 1844 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 1845 fi |
| 1846 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1847 LIBS="$ac_save_LIBS" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1848 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1849 fi |
| 3627 | 1850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1851 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1852 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1853 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1854 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1855 #define $ac_tr_lib 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1856 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1857 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1858 LIBS="-ldld $LIBS" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1859 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1860 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1861 echo "$ac_t""no" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1862 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1863 # Dynamic linking for HP-UX |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1864 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6 |
| 5670 | 1865 echo "configure:1866: checking for getpwnam in -lsun" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1866 ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'` |
| 3627 | 1867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1868 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1869 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1870 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1871 LIBS="-lsun $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1872 cat > conftest.$ac_ext <<EOF |
| 5670 | 1873 #line 1874 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1874 #include "confdefs.h" |
| 3627 | 1875 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1876 /* We use char because int might match the return type of a gcc2 | |
| 1877 builtin and then its argument prototype would still apply. */ | |
| 1878 char getpwnam(); | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1879 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1880 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1881 getpwnam() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1882 ; return 0; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1883 EOF |
| 5670 | 1884 if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1885 rm -rf conftest* |
| 3627 | 1886 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1887 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1888 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1889 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1890 rm -rf conftest* |
| 3627 | 1891 eval "ac_cv_lib_$ac_lib_var=no" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1892 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
1893 rm -f conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1894 LIBS="$ac_save_LIBS" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1895 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1896 fi |
| 3627 | 1897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1898 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1899 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1901 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1902 #define $ac_tr_lib 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1903 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1904 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1905 LIBS="-lsun $LIBS" |
| 1453 | 1906 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1907 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1908 echo "$ac_t""no" 1>&6 |
| 1453 | 1909 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
1910 # NIS (== YP) interface for IRIX 4 |
| 2247 | 1911 # The following three (nsl,inet,socket) are needed on Sequent; |
| 1912 # the order of checking must be this. Most SVR4 platforms will | |
| 1913 # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but | |
| 1914 # broken. I see no elegant solution (probably CHECK_LIB should be | |
| 1915 # fixed to only add the library if the given entry point is not | |
| 1916 # satisfied without it). | |
| 4181 | 1917 if test "$ac_sys_system" != IRIX |
| 2247 | 1918 then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1919 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
| 5670 | 1920 echo "configure:1921: checking for t_open in -lnsl" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1921 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
| 3627 | 1922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1923 echo $ac_n "(cached) $ac_c" 1>&6 |
| 2132 | 1924 else |
| 1925 ac_save_LIBS="$LIBS" | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1926 LIBS="-lnsl $LIBS" |
| 2132 | 1927 cat > conftest.$ac_ext <<EOF |
| 5670 | 1928 #line 1929 "configure" |
| 2132 | 1929 #include "confdefs.h" |
| 3627 | 1930 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1931 /* We use char because int might match the return type of a gcc2 | |
| 1932 builtin and then its argument prototype would still apply. */ | |
| 1933 char t_open(); | |
| 2132 | 1934 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1935 int main() { |
| 2164 | 1936 t_open() |
| 2132 | 1937 ; return 0; } |
| 1938 EOF | |
| 5670 | 1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2132 | 1940 rm -rf conftest* |
| 3627 | 1941 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2132 | 1942 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1943 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1944 cat conftest.$ac_ext >&5 |
| 2132 | 1945 rm -rf conftest* |
| 3627 | 1946 eval "ac_cv_lib_$ac_lib_var=no" |
| 2132 | 1947 fi |
| 1948 rm -f conftest* | |
| 1949 LIBS="$ac_save_LIBS" | |
| 1950 | |
| 1951 fi | |
| 3627 | 1952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1953 echo "$ac_t""yes" 1>&6 |
| 2132 | 1954 LIBS="-lnsl $LIBS" |
| 1955 else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1956 echo "$ac_t""no" 1>&6 |
| 2132 | 1957 fi |
| 2164 | 1958 # SVR4 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1959 echo $ac_n "checking for gethostbyname in -linet""... $ac_c" 1>&6 |
| 5670 | 1960 echo "configure:1961: checking for gethostbyname in -linet" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1961 ac_lib_var=`echo inet'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 3627 | 1962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1963 echo $ac_n "(cached) $ac_c" 1>&6 |
| 2132 | 1964 else |
| 1965 ac_save_LIBS="$LIBS" | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1966 LIBS="-linet -lnsl $LIBS" |
| 2132 | 1967 cat > conftest.$ac_ext <<EOF |
| 5670 | 1968 #line 1969 "configure" |
| 2132 | 1969 #include "confdefs.h" |
| 3627 | 1970 /* Override any gcc2 internal prototype to avoid an error. */ |
| 1971 /* We use char because int might match the return type of a gcc2 | |
| 1972 builtin and then its argument prototype would still apply. */ | |
| 1973 char gethostbyname(); | |
| 2132 | 1974 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1975 int main() { |
| 2164 | 1976 gethostbyname() |
| 2132 | 1977 ; return 0; } |
| 1978 EOF | |
| 5670 | 1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2132 | 1980 rm -rf conftest* |
| 3627 | 1981 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2132 | 1982 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1983 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1984 cat conftest.$ac_ext >&5 |
| 2132 | 1985 rm -rf conftest* |
| 3627 | 1986 eval "ac_cv_lib_$ac_lib_var=no" |
| 2132 | 1987 fi |
| 1988 rm -f conftest* | |
| 1989 LIBS="$ac_save_LIBS" | |
| 1990 | |
| 1991 fi | |
| 3627 | 1992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1993 echo "$ac_t""yes" 1>&6 |
| 2132 | 1994 LIBS="-linet $LIBS" |
| 1995 else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
1996 echo "$ac_t""no" 1>&6 |
| 2132 | 1997 fi |
| 2164 | 1998 # Sequent |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
1999 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 5670 | 2000 echo "configure:2001: checking for socket in -lsocket" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2001 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 3627 | 2002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2003 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2004 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2005 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2006 LIBS="-lsocket $LIBS $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2007 cat > conftest.$ac_ext <<EOF |
| 5670 | 2008 #line 2009 "configure" |
| 1453 | 2009 #include "confdefs.h" |
| 3627 | 2010 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2011 /* We use char because int might match the return type of a gcc2 | |
| 2012 builtin and then its argument prototype would still apply. */ | |
| 2013 char socket(); | |
| 1453 | 2014 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2015 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2016 socket() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2017 ; return 0; } |
| 1453 | 2018 EOF |
| 5670 | 2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 2020 rm -rf conftest* |
| 3627 | 2021 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2022 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2023 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2024 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2025 rm -rf conftest* |
| 3627 | 2026 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 2027 fi |
| 2028 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2029 LIBS="$ac_save_LIBS" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2030 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2031 fi |
| 3627 | 2032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2033 echo "$ac_t""yes" 1>&6 |
| 2132 | 2034 LIBS="-lsocket $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2035 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2036 echo "$ac_t""no" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2037 fi |
| 2132 | 2038 # SVR4 sockets |
| 2247 | 2039 fi |
| 3894 | 2040 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
| 5670 | 2041 echo "configure:2042: checking for --with-libs" >&5 |
| 3894 | 2042 # Check whether --with-libs or --without-libs was given. |
| 2043 if test "${with_libs+set}" = set; then | |
| 2044 withval="$with_libs" | |
| 2045 | |
| 2046 echo "$ac_t""$withval" 1>&6 | |
| 2047 LIBS="$withval $LIBS" | |
| 2048 | |
| 2049 else | |
| 2050 echo "$ac_t""no" 1>&6 | |
| 2051 fi | |
| 2052 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2053 |
| 4851 | 2054 echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
| 5670 | 2055 echo "configure:2056: checking for --with(out)-readline" >&5 |
| 4851 | 2056 use_readline="yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2057 # Check whether --with-readline or --without-readline was given. |
| 3627 | 2058 if test "${with_readline+set}" = set; then |
| 2059 withval="$with_readline" | |
| 4851 | 2060 echo "$ac_t""$withval" 1>&6; use_readline="$withval" |
| 2061 else | |
| 2062 echo "$ac_t""(default) yes" 1>&6 | |
| 2063 fi | |
| 2064 | |
| 2065 if test "$use_readline" != "no" | |
| 2066 then | |
| 2067 if test "$use_readline" != "yes" | |
| 2068 then add_ldflags="-L$use_readline" | |
| 2069 else add_ldflags="" | |
| 2070 fi | |
| 2071 # See where the termcap interface could be hiding... | |
| 2072 echo $ac_n "checking for readline and termcap libraries""... $ac_c" 1>&6 | |
| 5670 | 2073 echo "configure:2074: checking for readline and termcap libraries" >&5 |
| 4851 | 2074 if eval "test \"`echo '$''{'ac_cv_readline_termcap'+set}'`\" = set"; then |
| 2075 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 2076 else | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2077 |
| 4851 | 2078 echo "$ac_t""have to find out" 1>&6 |
| 2079 save_libs="$LIBS" | |
| 2080 save_ldflags="$LDFLAGS" | |
| 2081 LDFLAGS="$save_ldflags $add_ldflags" | |
| 2082 rl="-lreadline" | |
| 2083 first="" | |
| 2084 # Hack for SGI IRIX 5.x. | |
| 2085 # Both termcap and gl have an entry point clear(). | |
| 2086 # When linking with both shared libraries, we're in trouble. | |
| 2087 # We don't need the one in termcap. | |
| 2088 # By forcing a static link for termcap, we avoid | |
| 2089 # linking its clear() entry point. | |
| 2090 if test -f /usr/lib/libgl.so -a -f /usr/lib/libtermcap.a | |
| 2091 then first="/usr/lib/libtermcap.a" | |
| 2092 fi | |
| 2093 for add_lib in \ | |
| 2094 "$first" "-ltermcap" "-ltermlib" "-lcurses" "-lncurses" | |
| 2095 do | |
| 2096 echo $ac_n "checking for $rl $add_lib""... $ac_c" 1>&6 | |
| 5670 | 2097 echo "configure:2098: checking for $rl $add_lib" >&5 |
| 4851 | 2098 LIBS="$save_libs $rl $add_lib" |
| 2099 cat > conftest.$ac_ext <<EOF | |
| 5670 | 2100 #line 2101 "configure" |
| 4269 | 2101 #include "confdefs.h" |
| 2102 extern char *readline(); | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2103 int main() { |
| 4269 | 2104 char *line=readline(); |
| 2105 ; return 0; } | |
| 2106 EOF | |
| 5670 | 2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4269 | 2108 rm -rf conftest* |
| 4851 | 2109 echo "$ac_t""yes" 1>&6; |
| 2110 ac_cv_readline_termcap="$rl $add_lib" | |
| 4269 | 2111 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2112 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2113 cat conftest.$ac_ext >&5 |
| 4269 | 2114 rm -rf conftest* |
| 4851 | 2115 echo "$ac_t""no" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2116 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2117 rm -f conftest* |
| 4851 | 2118 if test "$ac_cv_readline_termcap" != "" |
| 2119 then break | |
| 2120 fi | |
| 2121 done | |
| 2122 LIBS="$save_libs" | |
| 2123 LDFLAGS="$save_ldflags" | |
| 2124 echo $ac_n "checking result from check for readline and termcap""... $ac_c" 1>&6 | |
| 5670 | 2125 echo "configure:2126: checking result from check for readline and termcap" >&5 |
| 4851 | 2126 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2127 fi |
| 4851 | 2128 |
| 2129 if test "$ac_cv_readline_termcap" = "" | |
| 2130 then | |
| 2131 echo "$ac_t""no" 1>&6 | |
| 2132 echo "configure: warning: cannot link with GNU readline -- see config.log" 1>&2 | |
| 2133 else | |
| 2134 echo "$ac_t""$ac_cv_readline_termcap" 1>&6 | |
| 2135 LIBS="$LIBS $ac_cv_readline_termcap" | |
| 2136 LDFLAGS="$LDFLAGS $add_ldflags" | |
| 2137 cat >> confdefs.h <<\EOF | |
| 2138 #define WITH_READLINE 1 | |
| 2139 EOF | |
| 2140 | |
| 2141 fi | |
| 1453 | 2142 fi |
| 2143 | |
| 5036 | 2144 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
| 5670 | 2145 echo "configure:2146: checking for --with-dec-threads" >&5 |
| 5036 | 2146 |
| 2147 # Check whether --with-dec-threads or --without-dec-threads was given. | |
| 2148 if test "${with_dec_threads+set}" = set; then | |
| 2149 withval="$with_dec_threads" | |
| 2150 echo "$ac_t""$withval" 1>&6 | |
| 2151 LDLAST=-threads | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2152 if test "${with_thread+set}" != set; then |
| 5036 | 2153 with_thread="$withval"; |
| 2154 fi | |
| 2155 else | |
| 2156 echo "$ac_t""no" 1>&6 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2157 fi |
| 5036 | 2158 |
| 2159 | |
| 2160 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 | |
| 5670 | 2161 echo "configure:2162: checking for --with-threads" >&5 |
| 5036 | 2162 # Check whether --with-threads or --without-threads was given. |
| 2163 if test "${with_threads+set}" = set; then | |
| 2164 withval="$with_threads" | |
| 2165 echo "$ac_t""$withval" 1>&6 | |
| 2166 if test "${with_thread+set}" != set; then | |
| 2167 with_thread="$withval"; | |
| 2168 fi | |
| 2169 else | |
| 2170 echo "$ac_t""no" 1>&6 | |
| 2171 fi | |
| 2172 | |
| 2173 | |
| 2174 echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 | |
| 5670 | 2175 echo "configure:2176: checking for --with-thread" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2176 # Check whether --with-thread or --without-thread was given. |
| 3627 | 2177 if test "${with_thread+set}" = set; then |
| 2178 withval="$with_thread" | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2179 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2180 echo "$ac_t""$withval" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2181 if test -d "$withval" |
| 4030 | 2182 then LDFLAGS="$LDFLAGS -L$withval" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2183 fi |
|
3911
a9a92dc2b374
Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents:
3909
diff
changeset
|
2184 cat >> confdefs.h <<\EOF |
|
a9a92dc2b374
Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents:
3909
diff
changeset
|
2185 #define _REENTRANT 1 |
|
a9a92dc2b374
Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents:
3909
diff
changeset
|
2186 EOF |
|
a9a92dc2b374
Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents:
3909
diff
changeset
|
2187 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2188 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2189 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
| 5670 | 2190 echo "configure:2191: checking for mach/cthreads.h" >&5 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2192 echo $ac_n "(cached) $ac_c" 1>&6 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2193 else |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2194 cat > conftest.$ac_ext <<EOF |
| 5670 | 2195 #line 2196 "configure" |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2196 #include "confdefs.h" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2197 #include <mach/cthreads.h> |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2198 EOF |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5670 | 2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2201 ac_err=`grep -v '^ *+' conftest.out` |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2202 if test -z "$ac_err"; then |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2203 rm -rf conftest* |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2204 eval "ac_cv_header_$ac_safe=yes" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2205 else |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2206 echo "$ac_err" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2207 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2208 cat conftest.$ac_ext >&5 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2209 rm -rf conftest* |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2210 eval "ac_cv_header_$ac_safe=no" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2211 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2212 rm -f conftest* |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2213 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2215 echo "$ac_t""yes" 1>&6 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2216 cat >> confdefs.h <<\EOF |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2217 #define WITH_THREAD 1 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2218 EOF |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2219 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2220 cat >> confdefs.h <<\EOF |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2221 #define C_THREADS 1 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2222 EOF |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2223 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2224 LIBOBJS="$LIBOBJS thread.o" |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2225 else |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2226 echo "$ac_t""no" 1>&6 |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2227 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2228 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
| 5670 | 2229 echo "configure:2230: checking for pthread_create in -lpthreads" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2230 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
| 3627 | 2231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2232 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2233 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2234 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2235 LIBS="-lpthreads $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2236 cat > conftest.$ac_ext <<EOF |
| 5670 | 2237 #line 2238 "configure" |
| 1453 | 2238 #include "confdefs.h" |
| 3627 | 2239 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2240 /* We use char because int might match the return type of a gcc2 | |
| 2241 builtin and then its argument prototype would still apply. */ | |
| 2242 char pthread_create(); | |
| 1453 | 2243 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2244 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2245 pthread_create() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2246 ; return 0; } |
| 1453 | 2247 EOF |
| 5670 | 2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 2249 rm -rf conftest* |
| 3627 | 2250 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2251 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2252 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2253 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2254 rm -rf conftest* |
| 3627 | 2255 eval "ac_cv_lib_$ac_lib_var=no" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2256 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2257 rm -f conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2258 LIBS="$ac_save_LIBS" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2259 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2260 fi |
| 3627 | 2261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2262 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2263 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2264 #define WITH_THREAD 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2265 EOF |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2266 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2267 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2268 #define _POSIX_THREADS 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2269 EOF |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2270 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2271 LIBS="$LIBS -lpthreads" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2272 LIBOBJS="$LIBOBJS thread.o" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2273 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2274 echo "$ac_t""no" 1>&6 |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2275 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2276 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
| 5670 | 2277 echo "configure:2278: checking for pthread_create in -lpthread" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2278 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2280 echo $ac_n "(cached) $ac_c" 1>&6 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2281 else |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2282 ac_save_LIBS="$LIBS" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2283 LIBS="-lpthread $LIBS" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2284 cat > conftest.$ac_ext <<EOF |
| 5670 | 2285 #line 2286 "configure" |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2286 #include "confdefs.h" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2287 /* Override any gcc2 internal prototype to avoid an error. */ |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2288 /* We use char because int might match the return type of a gcc2 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2289 builtin and then its argument prototype would still apply. */ |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2290 char pthread_create(); |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2291 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2292 int main() { |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2293 pthread_create() |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2294 ; return 0; } |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2295 EOF |
| 5670 | 2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2297 rm -rf conftest* |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2298 eval "ac_cv_lib_$ac_lib_var=yes" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2299 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2300 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2301 cat conftest.$ac_ext >&5 |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2302 rm -rf conftest* |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2303 eval "ac_cv_lib_$ac_lib_var=no" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2304 fi |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2305 rm -f conftest* |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2306 LIBS="$ac_save_LIBS" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2307 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2308 fi |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2310 echo "$ac_t""yes" 1>&6 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2311 cat >> confdefs.h <<\EOF |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2312 #define WITH_THREAD 1 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2313 EOF |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2314 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2315 cat >> confdefs.h <<\EOF |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2316 #define _POSIX_THREADS 1 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2317 EOF |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2318 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2319 LIBS="$LIBS -lpthread" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2320 LIBOBJS="$LIBOBJS thread.o" |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2321 else |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2322 echo "$ac_t""no" 1>&6 |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2323 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2324 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
| 5670 | 2325 echo "configure:2326: checking for __d6_pthread_create in -lthread" >&5 |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2326 ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2328 echo $ac_n "(cached) $ac_c" 1>&6 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2329 else |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2330 ac_save_LIBS="$LIBS" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2331 LIBS="-lthread $LIBS" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2332 cat > conftest.$ac_ext <<EOF |
| 5670 | 2333 #line 2334 "configure" |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2334 #include "confdefs.h" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2335 /* Override any gcc2 internal prototype to avoid an error. */ |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2336 /* We use char because int might match the return type of a gcc2 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2337 builtin and then its argument prototype would still apply. */ |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2338 char __d6_pthread_create(); |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2339 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2340 int main() { |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2341 __d6_pthread_create() |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2342 ; return 0; } |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2343 EOF |
| 5670 | 2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2345 rm -rf conftest* |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2346 eval "ac_cv_lib_$ac_lib_var=yes" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2347 else |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2348 echo "configure: failed program was:" >&5 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2349 cat conftest.$ac_ext >&5 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2350 rm -rf conftest* |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2351 eval "ac_cv_lib_$ac_lib_var=no" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2352 fi |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2353 rm -f conftest* |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2354 LIBS="$ac_save_LIBS" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2355 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2356 fi |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2358 echo "$ac_t""yes" 1>&6 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2359 cat >> confdefs.h <<\EOF |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2360 #define WITH_THREAD 1 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2361 EOF |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2362 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2363 cat >> confdefs.h <<\EOF |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2364 #define _POSIX_THREADS 1 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2365 EOF |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2366 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2367 LIBS="$LIBS -lthread" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2368 LIBOBJS="$LIBOBJS thread.o" |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2369 else |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2370 echo "$ac_t""no" 1>&6 |
|
3723
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2371 fi |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2372 |
|
43a37e6b6469
result of new configure.in
Guido van Rossum <guido@python.org>
parents:
3627
diff
changeset
|
2373 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2374 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2375 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2376 fi |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2377 |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2378 fi |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2379 |
|
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2380 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2381 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
| 5670 | 2382 echo "configure:2383: checking for usconfig in -lmpc" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2383 ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
| 3627 | 2384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2385 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2386 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2387 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2388 LIBS="-lmpc $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2389 cat > conftest.$ac_ext <<EOF |
| 5670 | 2390 #line 2391 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2391 #include "confdefs.h" |
| 3627 | 2392 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2393 /* We use char because int might match the return type of a gcc2 | |
| 2394 builtin and then its argument prototype would still apply. */ | |
| 2395 char usconfig(); | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2396 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2397 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2398 usconfig() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2399 ; return 0; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2400 EOF |
| 5670 | 2401 if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2402 rm -rf conftest* |
| 3627 | 2403 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2404 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2405 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2406 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2407 rm -rf conftest* |
| 3627 | 2408 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 2409 fi |
| 2410 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2411 LIBS="$ac_save_LIBS" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2412 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2413 fi |
| 3627 | 2414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2415 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2416 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2417 #define WITH_THREAD 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2418 EOF |
| 1453 | 2419 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2420 LIBS="$LIBS -lmpc" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2421 LIBOBJS="$LIBOBJS thread.o" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2422 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2423 echo "$ac_t""no" 1>&6 |
| 1453 | 2424 fi |
| 2425 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2426 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
| 5670 | 2427 echo "configure:2428: checking for thr_create in -lthread" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2428 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
| 3627 | 2429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2430 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2431 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2432 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2433 LIBS="-lthread $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2434 cat > conftest.$ac_ext <<EOF |
| 5670 | 2435 #line 2436 "configure" |
| 1453 | 2436 #include "confdefs.h" |
| 3627 | 2437 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2438 /* We use char because int might match the return type of a gcc2 | |
| 2439 builtin and then its argument prototype would still apply. */ | |
| 2440 char thr_create(); | |
| 1453 | 2441 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2442 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2443 thr_create() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2444 ; return 0; } |
| 1453 | 2445 EOF |
| 5670 | 2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 2447 rm -rf conftest* |
| 3627 | 2448 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2449 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2450 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2451 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2452 rm -rf conftest* |
| 3627 | 2453 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 2454 fi |
| 2455 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2456 LIBS="$ac_save_LIBS" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2457 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2458 fi |
| 3627 | 2459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2460 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2461 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2462 #define WITH_THREAD 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2463 EOF |
| 1453 | 2464 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2465 LIBS="$LIBS -lthread" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2466 LIBOBJS="$LIBOBJS thread.o" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2467 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2468 echo "$ac_t""no" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2469 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2470 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2471 |
| 2247 | 2472 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2473 echo "$ac_t""no" 1>&6 |
| 1453 | 2474 fi |
| 2475 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2476 |
| 3627 | 2477 # -I${DLINCLDIR} is added to the compile rule for importdl.o |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2478 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2479 DLINCLDIR=/ |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2480 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2481 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
| 5670 | 2482 echo "configure:2483: checking for --with-sgi-dl" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2483 # Check whether --with-sgi-dl or --without-sgi-dl was given. |
| 3627 | 2484 if test "${with_sgi_dl+set}" = set; then |
| 2485 withval="$with_sgi_dl" | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2486 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2487 echo "$ac_t""$withval" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2488 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2489 #define WITH_SGI_DL 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2490 EOF |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2491 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2492 dldir=$withval |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2493 if test -d "$dldir" |
| 4030 | 2494 then LDFLAGS="$LDFLAGS -L$dldir" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2495 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2496 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2497 DLINCLDIR=${dldir} |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2498 LIBS="$LIBS -ldl -lmld" |
| 2247 | 2499 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2500 echo "$ac_t""no" 1>&6 |
| 1453 | 2501 fi |
| 2502 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2503 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2504 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
| 5670 | 2505 echo "configure:2506: checking for --with-dl-dld" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2506 # Check whether --with-dl-dld or --without-dl-dld was given. |
| 3627 | 2507 if test "${with_dl_dld+set}" = set; then |
| 2508 withval="$with_dl_dld" | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2509 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2510 echo "$ac_t""$withval" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2511 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2512 #define WITH_DL_DLD 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2513 EOF |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2514 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2515 dldir=`echo "$withval" | sed 's/,.*//'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2516 dlddir=`echo "$withval" | sed 's/.*,//'` |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2517 if test -d "$dldir" -a -d "$dlddir" |
| 4030 | 2518 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2519 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2520 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2521 DLINCLDIR=${dldir} |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2522 LIBS="$LIBS -ldl -ldld" |
| 2247 | 2523 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2524 echo "$ac_t""no" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2525 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2526 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2527 |
| 1453 | 2528 # checks for library functions |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2529 for ac_func in chown clock dlopen execv flock fork ftime ftruncate \ |
| 3627 | 2530 gethostname_r getpeername getpgrp getpid gettimeofday getwd \ |
|
5595
c5a567af13ee
The usual effects of a new configure.in
Guido van Rossum <guido@python.org>
parents:
5521
diff
changeset
|
2531 kill link lstat mkfifo nice plock putenv readlink \ |
| 3627 | 2532 select setgid setuid setsid setpgid setpgrp setvbuf \ |
| 2533 sigaction siginterrupt sigrelse strftime symlink \ | |
| 2534 tcgetpgrp tcsetpgrp times truncate uname waitpid | |
| 1453 | 2535 do |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5670 | 2537 echo "configure:2538: checking for $ac_func" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2539 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2540 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2541 cat > conftest.$ac_ext <<EOF |
| 5670 | 2542 #line 2543 "configure" |
| 1453 | 2543 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2544 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2545 which can conflict with char $ac_func(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2546 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2547 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 2548 /* We use char because int might match the return type of a gcc2 |
| 2549 builtin and then its argument prototype would still apply. */ | |
| 2550 char $ac_func(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2551 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2552 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2553 |
| 1453 | 2554 /* The GNU C library defines this for functions which it implements |
| 2555 to always fail with ENOSYS. Some functions are actually named | |
| 2556 something starting with __ and the normal name is an alias. */ | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1453 | 2558 choke me |
| 2559 #else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2560 $ac_func(); |
| 1453 | 2561 #endif |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2562 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2563 ; return 0; } |
| 1453 | 2564 EOF |
| 5670 | 2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 2566 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2567 eval "ac_cv_func_$ac_func=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2568 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2569 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2570 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2571 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2572 eval "ac_cv_func_$ac_func=no" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2573 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2574 rm -f conftest* |
| 1453 | 2575 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2576 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2578 echo "$ac_t""yes" 1>&6 |
| 3627 | 2579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2580 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2581 #define $ac_tr_func 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2582 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2583 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2584 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2585 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2586 fi |
| 1453 | 2587 done |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
2588 |
| 4181 | 2589 for ac_func in dup2 getcwd strdup strerror memmove |
| 1453 | 2590 do |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5670 | 2592 echo "configure:2593: checking for $ac_func" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2594 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2595 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2596 cat > conftest.$ac_ext <<EOF |
| 5670 | 2597 #line 2598 "configure" |
| 1453 | 2598 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2599 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2600 which can conflict with char $ac_func(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2601 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2602 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 2603 /* We use char because int might match the return type of a gcc2 |
| 2604 builtin and then its argument prototype would still apply. */ | |
| 2605 char $ac_func(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2606 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2607 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2608 |
| 1453 | 2609 /* The GNU C library defines this for functions which it implements |
| 2610 to always fail with ENOSYS. Some functions are actually named | |
| 2611 something starting with __ and the normal name is an alias. */ | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 1453 | 2613 choke me |
| 2614 #else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2615 $ac_func(); |
| 1453 | 2616 #endif |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2617 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2618 ; return 0; } |
| 1453 | 2619 EOF |
| 5670 | 2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2621 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2622 eval "ac_cv_func_$ac_func=yes" |
| 1453 | 2623 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2624 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2625 cat conftest.$ac_ext >&5 |
| 1453 | 2626 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2627 eval "ac_cv_func_$ac_func=no" |
| 1453 | 2628 fi |
| 2629 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2630 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2631 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2633 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2635 cat >> confdefs.h <<EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2636 #define $ac_tr_func 1 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2637 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2638 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2639 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2640 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2641 LIBOBJS="$LIBOBJS ${ac_func}.o" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2642 fi |
| 1453 | 2643 done |
| 2644 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2645 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2646 echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
| 5670 | 2647 echo "configure:2648: checking for getpgrp" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2648 if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2649 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2650 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2651 cat > conftest.$ac_ext <<EOF |
| 5670 | 2652 #line 2653 "configure" |
| 1453 | 2653 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2654 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2655 which can conflict with char getpgrp(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2656 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2657 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 2658 /* We use char because int might match the return type of a gcc2 |
| 2659 builtin and then its argument prototype would still apply. */ | |
| 2660 char getpgrp(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2661 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2662 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2663 |
| 1453 | 2664 /* The GNU C library defines this for functions which it implements |
| 2665 to always fail with ENOSYS. Some functions are actually named | |
| 2666 something starting with __ and the normal name is an alias. */ | |
| 2667 #if defined (__stub_getpgrp) || defined (__stub___getpgrp) | |
| 2668 choke me | |
| 2669 #else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2670 getpgrp(); |
| 1453 | 2671 #endif |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2672 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2673 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2674 EOF |
| 5670 | 2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2676 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2677 eval "ac_cv_func_getpgrp=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2678 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2679 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2680 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2681 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2682 eval "ac_cv_func_getpgrp=no" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2683 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2684 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2685 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2686 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2687 if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2688 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2689 cat > conftest.$ac_ext <<EOF |
| 5670 | 2690 #line 2691 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2691 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2692 #include <unistd.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2693 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2694 getpgrp(0); |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
2695 ; return 0; } |
| 1453 | 2696 EOF |
| 5670 | 2697 if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 2698 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2699 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2700 #define GETPGRP_HAVE_ARG 1 |
| 1453 | 2701 EOF |
| 2702 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2703 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2704 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2705 cat conftest.$ac_ext >&5 |
| 1453 | 2706 fi |
| 2707 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2708 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2709 echo "$ac_t""no" 1>&6 |
| 1453 | 2710 fi |
| 2711 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2712 echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
| 5670 | 2713 echo "configure:2714: checking for setpgrp" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2714 if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2715 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2716 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2717 cat > conftest.$ac_ext <<EOF |
| 5670 | 2718 #line 2719 "configure" |
| 1995 | 2719 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2720 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2721 which can conflict with char setpgrp(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2722 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2723 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 2724 /* We use char because int might match the return type of a gcc2 |
| 2725 builtin and then its argument prototype would still apply. */ | |
| 2726 char setpgrp(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2727 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2728 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2729 |
| 1995 | 2730 /* The GNU C library defines this for functions which it implements |
| 2731 to always fail with ENOSYS. Some functions are actually named | |
| 2732 something starting with __ and the normal name is an alias. */ | |
| 2733 #if defined (__stub_setpgrp) || defined (__stub___setpgrp) | |
| 2734 choke me | |
| 2735 #else | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2736 setpgrp(); |
| 1995 | 2737 #endif |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2738 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2739 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2740 EOF |
| 5670 | 2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2742 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2743 eval "ac_cv_func_setpgrp=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2744 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2745 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2746 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2747 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2748 eval "ac_cv_func_setpgrp=no" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2749 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2750 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2751 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2752 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2753 if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2754 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2755 cat > conftest.$ac_ext <<EOF |
| 5670 | 2756 #line 2757 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2757 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2758 #include <unistd.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2759 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2760 setpgrp(0,0); |
| 1995 | 2761 ; return 0; } |
| 2762 EOF | |
| 5670 | 2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1995 | 2764 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2765 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2766 #define SETPGRP_HAVE_ARG 1 |
| 1995 | 2767 EOF |
| 2768 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2769 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2770 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2771 cat conftest.$ac_ext >&5 |
| 1995 | 2772 fi |
| 2773 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2774 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2775 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2776 fi |
| 1453 | 2777 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2778 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
| 5670 | 2779 echo "configure:2780: checking for gettimeofday" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2780 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2781 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2782 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2783 cat > conftest.$ac_ext <<EOF |
| 5670 | 2784 #line 2785 "configure" |
| 1453 | 2785 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2786 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2787 which can conflict with char gettimeofday(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2788 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2789 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 2790 /* We use char because int might match the return type of a gcc2 |
| 2791 builtin and then its argument prototype would still apply. */ | |
| 2792 char gettimeofday(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2793 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2794 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2795 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2796 /* The GNU C library defines this for functions which it implements |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2797 to always fail with ENOSYS. Some functions are actually named |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2798 something starting with __ and the normal name is an alias. */ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2799 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2800 choke me |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2801 #else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2802 gettimeofday(); |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2803 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2804 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2805 ; return 0; } |
| 1453 | 2806 EOF |
| 5670 | 2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 2808 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2809 eval "ac_cv_func_gettimeofday=yes" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2810 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2811 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2812 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2813 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2814 eval "ac_cv_func_gettimeofday=no" |
| 1453 | 2815 fi |
| 2816 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2817 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2818 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2819 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2820 echo "$ac_t""yes" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2821 cat > conftest.$ac_ext <<EOF |
| 5670 | 2822 #line 2823 "configure" |
| 1453 | 2823 #include "confdefs.h" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2824 #include <sys/time.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2825 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2826 gettimeofday((struct timeval*)0,(struct timezone*)0); |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2827 ; return 0; } |
| 1453 | 2828 EOF |
| 5670 | 2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 2830 : |
| 2831 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2832 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2833 cat conftest.$ac_ext >&5 |
| 1453 | 2834 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2835 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2836 #define GETTIMEOFDAY_NO_TZ 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2837 EOF |
| 1453 | 2838 |
| 2839 fi | |
| 2840 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2841 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2842 echo "$ac_t""no" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2843 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2844 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2845 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2846 # checks for structures |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2847 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 5670 | 2848 echo "configure:2849: checking whether time.h and sys/time.h may both be included" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2849 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2850 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2851 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2852 cat > conftest.$ac_ext <<EOF |
| 5670 | 2853 #line 2854 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2854 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2855 #include <sys/types.h> |
| 1453 | 2856 #include <sys/time.h> |
| 2857 #include <time.h> | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2858 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2859 struct tm *tp; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2860 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2861 EOF |
| 5670 | 2862 if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2863 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2864 ac_cv_header_time=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2865 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2866 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2867 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2868 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2869 ac_cv_header_time=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2870 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2871 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2872 fi |
| 3627 | 2873 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2874 echo "$ac_t""$ac_cv_header_time" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2875 if test $ac_cv_header_time = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2876 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2877 #define TIME_WITH_SYS_TIME 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2878 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2879 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2880 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2881 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2882 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
| 5670 | 2883 echo "configure:2884: checking whether struct tm is in sys/time.h or time.h" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2884 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2885 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2886 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2887 cat > conftest.$ac_ext <<EOF |
| 5670 | 2888 #line 2889 "configure" |
| 1453 | 2889 #include "confdefs.h" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2890 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2891 #include <time.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2892 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2893 struct tm *tp; tp->tm_sec; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2894 ; return 0; } |
| 1453 | 2895 EOF |
| 5670 | 2896 if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 2897 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2898 ac_cv_struct_tm=time.h |
| 1453 | 2899 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2900 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2901 cat conftest.$ac_ext >&5 |
| 1453 | 2902 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2903 ac_cv_struct_tm=sys/time.h |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2904 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2905 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2906 fi |
| 3627 | 2907 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2908 echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2909 if test $ac_cv_struct_tm = sys/time.h; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2910 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2911 #define TM_IN_SYS_TIME 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2912 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2913 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2914 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2915 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2916 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 5670 | 2917 echo "configure:2918: checking for tm_zone in struct tm" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2918 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2919 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2920 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2921 cat > conftest.$ac_ext <<EOF |
| 5670 | 2922 #line 2923 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2923 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2924 #include <sys/types.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2925 #include <$ac_cv_struct_tm> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2926 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2927 struct tm tm; tm.tm_zone; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2928 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2929 EOF |
| 5670 | 2930 if { (eval echo configure:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2931 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2932 ac_cv_struct_tm_zone=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2933 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2934 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2935 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2936 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2937 ac_cv_struct_tm_zone=no |
| 1453 | 2938 fi |
| 2939 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2940 fi |
| 3627 | 2941 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2942 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2943 if test "$ac_cv_struct_tm_zone" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2944 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2945 #define HAVE_TM_ZONE 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2946 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2947 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2948 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2949 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
| 5670 | 2950 echo "configure:2951: checking for tzname" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2951 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2952 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2953 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2954 cat > conftest.$ac_ext <<EOF |
| 5670 | 2955 #line 2956 "configure" |
| 1453 | 2956 #include "confdefs.h" |
| 2957 #include <time.h> | |
| 2958 #ifndef tzname /* For SGI. */ | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2959 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 1453 | 2960 #endif |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2961 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2962 atoi(*tzname); |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2963 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2964 EOF |
| 5670 | 2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2966 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2967 ac_cv_var_tzname=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2968 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2969 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2970 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2971 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2972 ac_cv_var_tzname=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2973 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2974 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2975 fi |
| 3627 | 2976 |
| 2977 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2978 if test $ac_cv_var_tzname = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2979 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2980 #define HAVE_TZNAME 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2981 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2982 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2983 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2984 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2985 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2986 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2987 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
| 5670 | 2988 echo "configure:2989: checking for time.h that defines altzone" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2989 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
2990 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2991 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2992 cat > conftest.$ac_ext <<EOF |
| 5670 | 2993 #line 2994 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2994 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2995 #include <time.h> |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
2996 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2997 return altzone; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
2998 ; return 0; } |
| 1453 | 2999 EOF |
| 5670 | 3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 3001 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3002 ac_cv_header_time_altzone=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3003 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3004 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3005 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3006 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3007 ac_cv_header_time_altzone=no |
| 1453 | 3008 fi |
| 3009 rm -f conftest* | |
| 3010 fi | |
| 3011 | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3012 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3013 if test $ac_cv_header_time_altzone = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3014 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3015 #define HAVE_ALTZONE 1 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3016 EOF |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3017 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3018 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3019 |
| 2247 | 3020 was_it_defined=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3021 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 5670 | 3022 echo "configure:3023: checking whether sys/select.h and sys/time.h may both be included" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3023 cat > conftest.$ac_ext <<EOF |
| 5670 | 3024 #line 3025 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3025 #include "confdefs.h" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3026 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3027 #include <sys/types.h> |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3028 #include <sys/select.h> |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3029 #include <sys/time.h> |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3030 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3031 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3032 ; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3033 ; return 0; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3034 EOF |
| 5670 | 3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3036 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3037 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3038 #define SYS_SELECT_WITH_SYS_TIME 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3039 EOF |
| 2247 | 3040 was_it_defined=yes |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3041 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3042 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3043 cat conftest.$ac_ext >&5 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3044 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3045 rm -f conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3046 echo "$ac_t""$was_it_defined" 1>&6 |
| 1453 | 3047 |
| 3048 # checks for compiler characteristics | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3049 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3050 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
| 5670 | 3051 echo "configure:3052: checking whether char is unsigned" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3052 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3053 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3054 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3055 if test "$GCC" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3056 # GCC predefines this symbol on systems where it applies. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3057 cat > conftest.$ac_ext <<EOF |
| 5670 | 3058 #line 3059 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3059 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3060 #ifdef __CHAR_UNSIGNED__ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3061 yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3062 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3063 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3064 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3066 egrep "yes" >/dev/null 2>&1; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3067 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3068 ac_cv_c_char_unsigned=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3069 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3070 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3071 ac_cv_c_char_unsigned=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3072 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3073 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3074 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3075 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3076 if test "$cross_compiling" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3077 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3078 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3079 cat > conftest.$ac_ext <<EOF |
| 5670 | 3080 #line 3081 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3081 #include "confdefs.h" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3082 /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3083 #if !defined(__STDC__) || __STDC__ != 1 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3084 #define volatile |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3085 #endif |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3086 main() { |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3087 volatile char c = 255; exit(c < 0); |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3088 } |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3089 EOF |
| 5670 | 3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3091 then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3092 ac_cv_c_char_unsigned=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3093 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3094 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3095 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3096 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3097 ac_cv_c_char_unsigned=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3098 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3099 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3100 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3101 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3102 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3103 fi |
| 3627 | 3104 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3105 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3106 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3107 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3108 #define __CHAR_UNSIGNED__ 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3109 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3110 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3111 fi |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3112 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3113 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3114 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 5670 | 3115 echo "configure:3116: checking for working const" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3116 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3117 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3118 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3119 cat > conftest.$ac_ext <<EOF |
| 5670 | 3120 #line 3121 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3121 #include "confdefs.h" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3122 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3123 int main() { |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3124 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3125 /* Ultrix mips cc rejects this. */ |
| 1453 | 3126 typedef int charset[2]; const charset x; |
| 3127 /* SunOS 4.1.1 cc rejects this. */ | |
| 3128 char const *const *ccp; | |
| 3129 char **p; | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3130 /* NEC SVR4.0.2 mips cc rejects this. */ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3131 struct point {int x, y;}; |
| 3627 | 3132 static struct point const zero = {0,0}; |
| 1453 | 3133 /* AIX XL C 1.02.0.0 rejects this. |
| 3134 It does not let you subtract one const X* pointer from another in an arm | |
| 3135 of an if-expression whose if-part is not a constant expression */ | |
| 3136 const char *g = "string"; | |
| 3137 ccp = &g + (g ? g-g : 0); | |
| 3138 /* HPUX 7.0 cc rejects these. */ | |
| 3139 ++ccp; | |
| 3140 p = (char**) ccp; | |
| 3141 ccp = (char const *const *) p; | |
| 3142 { /* SCO 3.2v4 cc rejects this. */ | |
| 3143 char *t; | |
| 3144 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
| 3145 | |
| 3146 *t++ = 0; | |
| 3147 } | |
| 3148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3149 int x[] = {25, 17}; |
| 1453 | 3150 const int *foo = &x[0]; |
| 3151 ++foo; | |
| 3152 } | |
| 3153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
| 3154 typedef const int *iptr; | |
| 3155 iptr p = 0; | |
| 3156 ++p; | |
| 3157 } | |
| 3158 { /* AIX XL C 1.02.0.0 rejects this saying | |
| 3159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
| 3160 struct s { int j; const int *ap[3]; }; | |
| 3161 struct s *b; b->j = 5; | |
| 3162 } | |
| 3163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
| 3164 const int foo = 10; | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3165 } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3166 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3167 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3168 EOF |
| 5670 | 3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3170 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3171 ac_cv_c_const=yes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3172 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3173 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3174 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3175 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3176 ac_cv_c_const=no |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3177 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3178 rm -f conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3179 fi |
| 3627 | 3180 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3181 echo "$ac_t""$ac_cv_c_const" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3182 if test $ac_cv_c_const = no; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3183 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3184 #define const |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3185 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3186 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3187 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3188 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3189 |
| 2247 | 3190 works=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3191 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
| 5670 | 3192 echo "configure:3193: checking for working volatile" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3193 cat > conftest.$ac_ext <<EOF |
| 5670 | 3194 #line 3195 "configure" |
| 1453 | 3195 #include "confdefs.h" |
| 3196 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3197 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3198 volatile int x; x = 0; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3199 ; return 0; } |
| 1453 | 3200 EOF |
| 5670 | 3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2247 | 3202 rm -rf conftest* |
| 3203 works=yes | |
| 1453 | 3204 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3205 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3206 cat conftest.$ac_ext >&5 |
| 1453 | 3207 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3208 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3209 #define volatile |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3210 EOF |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3211 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3212 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3213 rm -f conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3214 echo "$ac_t""$works" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3215 |
| 2247 | 3216 works=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3217 echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
| 5670 | 3218 echo "configure:3219: checking for working signed char" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3219 cat > conftest.$ac_ext <<EOF |
| 5670 | 3220 #line 3221 "configure" |
| 1974 | 3221 #include "confdefs.h" |
| 3222 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3223 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3224 signed char c; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3225 ; return 0; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3226 EOF |
| 5670 | 3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2247 | 3228 rm -rf conftest* |
| 3229 works=yes | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3230 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3231 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3232 cat conftest.$ac_ext >&5 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3233 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3234 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3235 #define signed |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3236 EOF |
| 1453 | 3237 |
| 3238 fi | |
| 3239 rm -f conftest* | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3240 echo "$ac_t""$works" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3241 |
| 2247 | 3242 have_prototypes=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3243 echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
| 5670 | 3244 echo "configure:3245: checking for prototypes" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3245 cat > conftest.$ac_ext <<EOF |
| 5670 | 3246 #line 3247 "configure" |
| 1453 | 3247 #include "confdefs.h" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3248 int foo(int x) { return 0; } |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3249 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3250 return foo(10); |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3251 ; return 0; } |
| 1453 | 3252 EOF |
| 5670 | 3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3254 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3255 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3256 #define HAVE_PROTOTYPES 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3257 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3258 have_prototypes=yes |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3259 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3260 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3261 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3262 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3263 rm -f conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3264 echo "$ac_t""$have_prototypes" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3265 |
| 2247 | 3266 works=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3267 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
| 5670 | 3268 echo "configure:3269: checking for variable length prototypes and stdarg.h" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3269 cat > conftest.$ac_ext <<EOF |
| 5670 | 3270 #line 3271 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3271 #include "confdefs.h" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3272 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3273 #include <stdarg.h> |
| 4185 | 3274 int foo(int x, ...) { |
| 3275 va_list va; | |
| 3276 va_start(va, x); | |
| 3277 va_arg(va, int); | |
| 3278 va_arg(va, char *); | |
| 3279 va_arg(va, double); | |
| 3280 return 0; | |
| 3281 } | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3282 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3283 int main() { |
| 4185 | 3284 return foo(10, "", 3.14); |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3285 ; return 0; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3286 EOF |
| 5670 | 3287 if { (eval echo configure:3288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3288 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3289 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3290 #define HAVE_STDARG_PROTOTYPES 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3291 EOF |
| 2247 | 3292 works=yes |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3293 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3294 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3295 cat conftest.$ac_ext >&5 |
| 1453 | 3296 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3297 rm -f conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3298 echo "$ac_t""$works" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3299 |
| 2247 | 3300 if test "$have_prototypes" = yes; then |
| 3301 bad_prototypes=no | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3302 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
| 5670 | 3303 echo "configure:3304: checking for bad exec* prototypes" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3304 cat > conftest.$ac_ext <<EOF |
| 5670 | 3305 #line 3306 "configure" |
| 1453 | 3306 #include "confdefs.h" |
| 3307 #include <unistd.h> | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3308 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3309 char **t;execve("@",t,t); |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3310 ; return 0; } |
| 1453 | 3311 EOF |
| 5670 | 3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1453 | 3313 : |
| 3314 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3315 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3316 cat conftest.$ac_ext >&5 |
| 1453 | 3317 rm -rf conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3318 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3319 #define BAD_EXEC_PROTOTYPES 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3320 EOF |
| 2247 | 3321 bad_prototypes=yes |
| 1453 | 3322 fi |
| 3323 rm -f conftest* | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3324 echo "$ac_t""$bad_prototypes" 1>&6 |
| 1453 | 3325 fi |
| 3326 | |
| 2247 | 3327 bad_forward=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3328 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
| 5670 | 3329 echo "configure:3330: checking for bad static forward" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3330 if test "$cross_compiling" = yes; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3332 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3333 cat > conftest.$ac_ext <<EOF |
| 5670 | 3334 #line 3335 "configure" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3335 #include "confdefs.h" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3336 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3337 struct s { int a; int b; }; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3338 static struct s foo; |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3339 int foobar() { |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3340 static int random; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3341 random = (int) &foo; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3342 return random; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3343 } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3344 static struct s foo = { 1, 2 }; |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3345 main() { |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3346 exit(!((int)&foo == foobar())); |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3347 } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3348 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3349 EOF |
| 5670 | 3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3351 then |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3352 : |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3353 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3354 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3355 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3356 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3357 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3358 #define BAD_STATIC_FORWARD 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3359 EOF |
| 2247 | 3360 bad_forward=yes |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3361 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3362 rm -fr conftest* |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3363 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3364 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3365 echo "$ac_t""$bad_forward" 1>&6 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3366 |
| 2247 | 3367 va_list_is_array=no |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3368 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
| 5670 | 3369 echo "configure:3370: checking whether va_list is an array" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3370 cat > conftest.$ac_ext <<EOF |
| 5670 | 3371 #line 3372 "configure" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3372 #include "confdefs.h" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3373 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3374 #ifdef HAVE_STDARG_PROTOTYPES |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3375 #include <stdarg.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3376 #else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3377 #include <varargs.h> |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3378 #endif |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3379 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3380 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3381 va_list list1, list2; list1 = list2; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3382 ; return 0; } |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3383 EOF |
| 5670 | 3384 if { (eval echo configure:3385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3385 : |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3386 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3387 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3388 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3389 rm -rf conftest* |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3390 cat >> confdefs.h <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3391 #define VA_LIST_IS_ARRAY 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3392 EOF |
| 2247 | 3393 va_list_is_array=yes |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3394 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3395 rm -f conftest* |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3396 echo "$ac_t""$va_list_is_array" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3397 |
| 1453 | 3398 # checks for system services |
| 3399 # (none yet) | |
| 3400 | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3401 # Linux requires this for correct f.p. operations |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3402 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
| 5670 | 3403 echo "configure:3404: checking for __fpu_control in -lieee" >&5 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3404 ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
| 3627 | 3405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3406 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3407 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3408 ac_save_LIBS="$LIBS" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3409 LIBS="-lieee $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3410 cat > conftest.$ac_ext <<EOF |
| 5670 | 3411 #line 3412 "configure" |
| 1453 | 3412 #include "confdefs.h" |
| 3627 | 3413 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3414 /* We use char because int might match the return type of a gcc2 | |
| 3415 builtin and then its argument prototype would still apply. */ | |
| 3416 char __fpu_control(); | |
| 1453 | 3417 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3418 int main() { |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3419 __fpu_control() |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3420 ; return 0; } |
| 1453 | 3421 EOF |
| 5670 | 3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1453 | 3423 rm -rf conftest* |
| 3627 | 3424 eval "ac_cv_lib_$ac_lib_var=yes" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3425 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3426 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3427 cat conftest.$ac_ext >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3428 rm -rf conftest* |
| 3627 | 3429 eval "ac_cv_lib_$ac_lib_var=no" |
| 1453 | 3430 fi |
| 3431 rm -f conftest* | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3432 LIBS="$ac_save_LIBS" |
| 1453 | 3433 |
| 3434 fi | |
| 3627 | 3435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3436 echo "$ac_t""yes" 1>&6 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3437 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3439 cat >> confdefs.h <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3440 #define $ac_tr_lib 1 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3441 EOF |
| 1453 | 3442 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3443 LIBS="-lieee $LIBS" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3444 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3445 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3446 echo "$ac_t""no" 1>&6 |
| 1453 | 3447 fi |
| 3448 | |
| 3449 | |
| 5470 | 3450 # Check for --with-fpectl |
| 3451 | |
| 3452 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 | |
| 5670 | 3453 echo "configure:3454: checking for --with-fpectl" >&5 |
| 5470 | 3454 # Check whether --with-fpectl or --without-fpectl was given. |
| 3455 if test "${with_fpectl+set}" = set; then | |
| 3456 withval="$with_fpectl" | |
| 3457 | |
| 3458 if test "$withval" != no | |
| 3459 then cat >> confdefs.h <<\EOF | |
| 3460 #define WANT_SIGFPE_HANDLER 1 | |
| 3461 EOF | |
| 3462 echo "$ac_t""yes" 1>&6 | |
| 3463 else echo "$ac_t""no" 1>&6 | |
| 3464 fi | |
| 3465 fi | |
| 3466 | |
| 3467 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3468 # check for --with-libm=... |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3469 |
| 4269 | 3470 case $ac_sys_system in |
| 3471 next) ;; | |
| 3472 *) LIBM=-lm | |
| 3473 esac | |
| 5470 | 3474 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
| 5670 | 3475 echo "configure:3476: checking for --with-libm=STRING" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3476 # Check whether --with-libm or --without-libm was given. |
| 3627 | 3477 if test "${with_libm+set}" = set; then |
| 3478 withval="$with_libm" | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3479 |
| 5470 | 3480 if test "$withval" = no |
| 3481 then LIBM= | |
| 3482 echo "$ac_t""force LIBM empty" 1>&6 | |
| 3483 elif test "$withval" != yes | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3484 then LIBM=$withval |
| 5470 | 3485 echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3486 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3487 fi |
| 5470 | 3488 else |
| 3489 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3490 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3491 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3492 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3493 # check for --with-libc=... |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3494 |
| 5470 | 3495 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
| 5670 | 3496 echo "configure:3497: checking for --with-libc=STRING" >&5 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3497 # Check whether --with-libc or --without-libc was given. |
| 3627 | 3498 if test "${with_libc+set}" = set; then |
| 3499 withval="$with_libc" | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3500 |
| 5470 | 3501 if test "$withval" = no |
| 3502 then LIBC= | |
| 3503 echo "$ac_t""force LIBC empty" 1>&6 | |
| 3504 elif test "$withval" != yes | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3505 then LIBC=$withval |
| 5470 | 3506 echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3507 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; } |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3508 fi |
| 5470 | 3509 else |
| 3510 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3511 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3512 |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3513 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3514 # check for hypot() in math library |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3515 LIBS_SAVE=$LIBS |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3516 LIBS="$LIBS $LIBM" |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3517 for ac_func in hypot |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3518 do |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5670 | 3520 echo "configure:3521: checking for $ac_func" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3522 echo $ac_n "(cached) $ac_c" 1>&6 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3523 else |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3524 cat > conftest.$ac_ext <<EOF |
| 5670 | 3525 #line 3526 "configure" |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3526 #include "confdefs.h" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3527 /* System header to define __stub macros and hopefully few prototypes, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3528 which can conflict with char $ac_func(); below. */ |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3529 #include <assert.h> |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3530 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3627 | 3531 /* We use char because int might match the return type of a gcc2 |
| 3532 builtin and then its argument prototype would still apply. */ | |
| 3533 char $ac_func(); | |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3534 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3535 int main() { |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3536 |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3537 /* The GNU C library defines this for functions which it implements |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3538 to always fail with ENOSYS. Some functions are actually named |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3539 something starting with __ and the normal name is an alias. */ |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3541 choke me |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3542 #else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3543 $ac_func(); |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3544 #endif |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3545 |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3546 ; return 0; } |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3547 EOF |
| 5670 | 3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3549 rm -rf conftest* |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3550 eval "ac_cv_func_$ac_func=yes" |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3551 else |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3552 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3553 cat conftest.$ac_ext >&5 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3554 rm -rf conftest* |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3555 eval "ac_cv_func_$ac_func=no" |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3556 fi |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3557 rm -f conftest* |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3558 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3559 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3561 echo "$ac_t""yes" 1>&6 |
| 3627 | 3562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3563 cat >> confdefs.h <<EOF |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3564 #define $ac_tr_func 1 |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3565 EOF |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3566 |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3567 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3568 echo "$ac_t""no" 1>&6 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3569 fi |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3570 done |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3571 |
| 4181 | 3572 for ac_func in hypot |
| 3573 do | |
| 3574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
| 5670 | 3575 echo "configure:3576: checking for $ac_func" >&5 |
| 4181 | 3576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3577 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 3578 else | |
| 3579 cat > conftest.$ac_ext <<EOF | |
| 5670 | 3580 #line 3581 "configure" |
| 4181 | 3581 #include "confdefs.h" |
| 3582 /* System header to define __stub macros and hopefully few prototypes, | |
| 3583 which can conflict with char $ac_func(); below. */ | |
| 3584 #include <assert.h> | |
| 3585 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3586 /* We use char because int might match the return type of a gcc2 | |
| 3587 builtin and then its argument prototype would still apply. */ | |
| 3588 char $ac_func(); | |
| 3589 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3590 int main() { |
| 4181 | 3591 |
| 3592 /* The GNU C library defines this for functions which it implements | |
| 3593 to always fail with ENOSYS. Some functions are actually named | |
| 3594 something starting with __ and the normal name is an alias. */ | |
| 3595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 3596 choke me | |
| 3597 #else | |
| 3598 $ac_func(); | |
| 3599 #endif | |
| 3600 | |
| 3601 ; return 0; } | |
| 3602 EOF | |
| 5670 | 3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4181 | 3604 rm -rf conftest* |
| 3605 eval "ac_cv_func_$ac_func=yes" | |
| 3606 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3607 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3608 cat conftest.$ac_ext >&5 |
| 4181 | 3609 rm -rf conftest* |
| 3610 eval "ac_cv_func_$ac_func=no" | |
| 3611 fi | |
| 3612 rm -f conftest* | |
| 3613 fi | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3614 |
| 4181 | 3615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3616 echo "$ac_t""yes" 1>&6 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3618 cat >> confdefs.h <<EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3619 #define $ac_tr_func 1 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3620 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3621 |
| 4181 | 3622 else |
| 3623 echo "$ac_t""no" 1>&6 | |
| 3624 LIBOBJS="$LIBOBJS ${ac_func}.o" | |
| 3625 fi | |
| 3626 done | |
| 3627 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3628 |
|
2057
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3629 LIBS=$LIBS_SAVE |
|
79c171f581fc
README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents:
2049
diff
changeset
|
3630 |
| 2247 | 3631 # check for getopt |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3632 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
| 5670 | 3633 echo "configure:3634: checking for genuine getopt" >&5 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3634 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3635 echo $ac_n "(cached) $ac_c" 1>&6 |
| 2247 | 3636 else |
| 3637 if test "$cross_compiling" = yes; then | |
| 3638 ac_cv_func_getopt=no | |
| 3639 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3640 cat > conftest.$ac_ext <<EOF |
| 5670 | 3641 #line 3642 "configure" |
| 2247 | 3642 #include "confdefs.h" |
| 3643 #include <stdio.h> | |
| 3644 extern int optind, opterr, getopt(); | |
| 3645 extern char* optarg; | |
| 3646 int main() { | |
| 3647 char* av[] = { "testprog", "parameter", "-fFlag", NULL }; | |
| 3648 opterr = 0; | |
| 3649 if (getopt(3, av, "f:") == 'f') { exit(1); } | |
| 3650 exit(0); | |
| 3651 } | |
| 3652 EOF | |
| 5670 | 3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3654 then |
| 2247 | 3655 ac_cv_func_getopt=yes |
| 3656 else | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3657 echo "configure: failed program was:" >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3658 cat conftest.$ac_ext >&5 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3659 rm -fr conftest* |
| 2247 | 3660 ac_cv_func_getopt=no |
| 3661 fi | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3662 rm -fr conftest* |
| 2247 | 3663 fi |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3664 |
| 2247 | 3665 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3666 echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
| 2247 | 3667 test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 3668 | |
|
5761
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3669 # check whether malloc(0) returns NULL or not |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3670 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3671 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3672 echo "configure:3673: checking what malloc(0) returns" >&5 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3673 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3674 echo $ac_n "(cached) $ac_c" 1>&6 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3675 else |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3676 if test "$cross_compiling" = yes; then |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3677 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3678 else |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3679 cat > conftest.$ac_ext <<EOF |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3680 #line 3681 "configure" |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3681 #include "confdefs.h" |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3682 #include <stdio.h> |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3683 #ifdef HAVE_STDLIB |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3684 #include <stdlib.h> |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3685 #else |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3686 char *malloc(), *realloc(); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3687 int *free(); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3688 #endif |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3689 main() { |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3690 char *p; |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3691 p = malloc(0); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3692 if (p == NULL) exit(1); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3693 p = realloc(p, 0); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3694 if (p == NULL) exit(1); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3695 free(p); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3696 exit(0); |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3697 } |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3698 EOF |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3700 then |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3701 ac_cv_malloc_zero=nonnull |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3702 else |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3703 echo "configure: failed program was:" >&5 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3704 cat conftest.$ac_ext >&5 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3705 rm -fr conftest* |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3706 ac_cv_malloc_zero=null |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3707 fi |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3708 rm -fr conftest* |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3709 fi |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3710 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3711 fi |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3712 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3713 echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3714 if test "$ac_cv_malloc_zero" = null |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3715 then |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3716 cat >> confdefs.h <<\EOF |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3717 #define MALLOC_ZERO_RETURNS_NULL 1 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3718 EOF |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3719 |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3720 fi |
|
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3721 |
| 1453 | 3722 # generate output files |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3723 trap '' 1 2 15 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3724 cat > confcache <<\EOF |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3725 # This file is a shell script that caches the results of configure |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3726 # tests run on this system so they can be shared between configure |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3727 # scripts and configure runs. It is not useful on other systems. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3728 # If it contains results you don't want to keep, you may remove or edit it. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3729 # |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3730 # By default, configure uses ./config.cache as the cache file, |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3731 # creating it if it does not exist already. You can give configure |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3732 # the --cache-file=FILE option to use a different cache file; that is |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3733 # what configure does when it calls configure scripts in |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3734 # subdirectories, so they share the cache. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3735 # Giving --cache-file=/dev/null disables caching, for debugging configure. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3736 # config.status only pays attention to the cache file if you give it the |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3737 # --recheck option to rerun configure. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3738 # |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3739 EOF |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3740 # The following way of writing the cache mishandles newlines in values, |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3741 # but we know of no workaround that is simple, portable, and efficient. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3742 # So, don't put newlines in cache variables' values. |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3743 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3744 # and sets the high bit in the cache file unless we assign to the vars. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3745 (set) 2>&1 | |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3746 case `(ac_space=' '; set) 2>&1` in |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3747 *ac_space=\ *) |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3748 # `set' does not quote correctly, so add quotes (double-quote substitution |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3749 # turns \\\\ into \\, and sed turns \\ into \). |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3750 sed -n \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3751 -e "s/'/'\\\\''/g" \ |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3752 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3753 ;; |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3754 *) |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3755 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3756 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3757 ;; |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3758 esac >> confcache |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3759 if cmp -s $cache_file confcache; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3760 : |
| 1882 | 3761 else |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3762 if test -w $cache_file; then |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3763 echo "updating cache $cache_file" |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3764 cat confcache > $cache_file |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3765 else |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3766 echo "not updating unwritable cache $cache_file" |
|
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3767 fi |
| 1453 | 3768 fi |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3769 rm -f confcache |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3770 |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3771 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3772 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3773 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3774 # Let make expand exec_prefix. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1882 | 3776 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3777 # Any assignment to VPATH causes Sun make to only execute |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3778 # the first set of double-colon rules, so remove it if not needed. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3779 # If there is a colon in the path, we need to keep it. |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3780 if test "x$srcdir" = x.; then |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3781 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3782 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3783 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3784 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3785 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3786 DEFS=-DHAVE_CONFIG_H |
| 1453 | 3787 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3788 # Without the "./", some shells look in PATH for config.status. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3789 : ${CONFIG_STATUS=./config.status} |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3790 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3791 echo creating $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3792 rm -f $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3793 cat > $CONFIG_STATUS <<EOF |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3794 #! /bin/sh |
| 1453 | 3795 # Generated automatically by configure. |
| 3796 # Run this file to recreate the current configuration. | |
| 3797 # This directory was configured as follows, | |
| 3798 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
| 3799 # | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3800 # $0 $ac_configure_args |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3801 # |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3802 # Compiler output produced by configure, useful for debugging |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3803 # configure, is in ./config.log if it exists. |
| 1453 | 3804 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3805 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3806 for ac_option |
| 1453 | 3807 do |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3808 case "\$ac_option" in |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3810 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3811 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3812 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3813 echo "$CONFIG_STATUS generated by autoconf version 2.12" |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3814 exit 0 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3815 -help | --help | --hel | --he | --h) |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3816 echo "\$ac_cs_usage"; exit 0 ;; |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3817 *) echo "\$ac_cs_usage"; exit 1 ;; |
| 1453 | 3818 esac |
| 3819 done | |
| 3820 | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3821 ac_given_srcdir=$srcdir |
| 1453 | 3822 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3823 trap 'rm -fr `echo "Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3824 Objects/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3825 Parser/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3826 Python/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3827 Modules/Makefile.pre config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 3627 | 3828 EOF |
| 3829 cat >> $CONFIG_STATUS <<EOF | |
| 3830 | |
| 3831 # Protect against being on the right side of a sed subst in config.status. | |
| 3832 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
| 3833 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3834 $ac_vpsub |
| 1453 | 3835 $extrasub |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3836 s%@CFLAGS@%$CFLAGS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3837 s%@CPPFLAGS@%$CPPFLAGS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3838 s%@CXXFLAGS@%$CXXFLAGS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3839 s%@DEFS@%$DEFS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3840 s%@LDFLAGS@%$LDFLAGS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3841 s%@LIBS@%$LIBS%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3842 s%@exec_prefix@%$exec_prefix%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3843 s%@prefix@%$prefix%g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3844 s%@program_transform_name@%$program_transform_name%g |
| 3627 | 3845 s%@bindir@%$bindir%g |
| 3846 s%@sbindir@%$sbindir%g | |
| 3847 s%@libexecdir@%$libexecdir%g | |
| 3848 s%@datadir@%$datadir%g | |
| 3849 s%@sysconfdir@%$sysconfdir%g | |
| 3850 s%@sharedstatedir@%$sharedstatedir%g | |
| 3851 s%@localstatedir@%$localstatedir%g | |
| 3852 s%@libdir@%$libdir%g | |
| 3853 s%@includedir@%$includedir%g | |
| 3854 s%@oldincludedir@%$oldincludedir%g | |
| 3855 s%@infodir@%$infodir%g | |
| 3856 s%@mandir@%$mandir%g | |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3857 s%@MACHDEP@%$MACHDEP%g |
| 1453 | 3858 s%@CC@%$CC%g |
| 3859 s%@RANLIB@%$RANLIB%g | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3860 s%@AR@%$AR%g |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
3861 s%@INSTALL@%$INSTALL%g |
| 2247 | 3862 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 3863 s%@INSTALL_DATA@%$INSTALL_DATA%g | |
|
1804
b408d6a63819
Match new configure.in
Guido van Rossum <guido@python.org>
parents:
1779
diff
changeset
|
3864 s%@OPT@%$OPT%g |
| 1453 | 3865 s%@CPP@%$CPP%g |
| 1882 | 3866 s%@SO@%$SO%g |
| 3867 s%@LDSHARED@%$LDSHARED%g | |
| 3868 s%@CCSHARED@%$CCSHARED%g | |
| 3869 s%@LINKFORSHARED@%$LINKFORSHARED%g | |
| 5036 | 3870 s%@LDLAST@%$LDLAST%g |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3871 s%@DLINCLDIR@%$DLINCLDIR%g |
| 1453 | 3872 s%@LIBOBJS@%$LIBOBJS%g |
| 5470 | 3873 s%@WANT_SIGFPE_HANDLER@%$WANT_SIGFPE_HANDLER%g |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3874 s%@LIBM@%$LIBM%g |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3875 s%@LIBC@%$LIBC%g |
|
5761
a8e31d905d2c
Added check whether malloc(0) returns NULL or not.
Guido van Rossum <guido@python.org>
parents:
5670
diff
changeset
|
3876 s%@MALLOC_ZERO_RETURNS_NULL@%$MALLOC_ZERO_RETURNS_NULL%g |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3877 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3878 CEOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3879 EOF |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3880 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3881 cat >> $CONFIG_STATUS <<\EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3882 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3883 # Split the substitutions into bite-sized pieces for seds with |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3884 # small command number limits, like on Digital OSF/1 and HP-UX. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3885 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3886 ac_file=1 # Number of current file. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3887 ac_beg=1 # First line for current file. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3888 ac_end=$ac_max_sed_cmds # Line after last line for current file. |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3889 ac_more_lines=: |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3890 ac_sed_cmds="" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3891 while $ac_more_lines; do |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3892 if test $ac_beg -gt 1; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3893 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3894 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3895 sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3896 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3897 if test ! -s conftest.s$ac_file; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3898 ac_more_lines=false |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3899 rm -f conftest.s$ac_file |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3900 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3901 if test -z "$ac_sed_cmds"; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3902 ac_sed_cmds="sed -f conftest.s$ac_file" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3903 else |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3904 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3905 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3906 ac_file=`expr $ac_file + 1` |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3907 ac_beg=$ac_end |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3908 ac_end=`expr $ac_end + $ac_max_sed_cmds` |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3909 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3910 done |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3911 if test -z "$ac_sed_cmds"; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3912 ac_sed_cmds=cat |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3913 fi |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3914 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3915 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3916 cat >> $CONFIG_STATUS <<EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3917 |
|
3853
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3918 CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3919 Objects/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3920 Parser/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3921 Python/Makefile \ |
|
3b114f0315c1
Follow new configure.in
Guido van Rossum <guido@python.org>
parents:
3810
diff
changeset
|
3922 Modules/Makefile.pre"} |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3923 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3924 cat >> $CONFIG_STATUS <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3925 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3927 case "$ac_file" in |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3928 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3929 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3930 *) ac_file_in="${ac_file}.in" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3931 esac |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3932 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3933 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3934 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3935 # Remove last slash and all that follows it. Not all systems have dirname. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3936 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3937 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3938 # The file is in a subdirectory. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3939 test ! -d "$ac_dir" && mkdir "$ac_dir" |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
3940 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3941 # A "../" for each directory in $ac_dir_suffix. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3942 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3943 else |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3944 ac_dir_suffix= ac_dots= |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3945 fi |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3946 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3947 case "$ac_given_srcdir" in |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3948 .) srcdir=. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3949 if test -z "$ac_dots"; then top_srcdir=. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3950 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3951 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3952 *) # Relative path. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3953 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3954 top_srcdir="$ac_dots$ac_given_srcdir" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3955 esac |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3956 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3957 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3958 echo creating "$ac_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3959 rm -f "$ac_file" |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3960 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3961 case "$ac_file" in |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3962 *Makefile*) ac_comsub="1i\\ |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3963 # $configure_input" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3964 *) ac_comsub= ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3965 esac |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3966 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3967 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3968 sed -e "$ac_comsub |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3969 s%@configure_input@%$configure_input%g |
| 1453 | 3970 s%@srcdir@%$srcdir%g |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3971 s%@top_srcdir@%$top_srcdir%g |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3972 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 1453 | 3973 fi; done |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3974 rm -f conftest.s* |
| 1453 | 3975 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3976 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3977 # NAME is the cpp macro being defined and VALUE is the value it is being given. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3978 # |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3979 # ac_d sets the value in "#define NAME VALUE" lines. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3980 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3981 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3982 ac_dC='\3' |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3983 ac_dD='%g' |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3984 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3985 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3986 ac_uB='\([ ]\)%\1#\2define\3' |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3987 ac_uC=' ' |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3988 ac_uD='\4%g' |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3989 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3990 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3991 ac_eB='$%\1#\2define\3' |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
3992 ac_eC=' ' |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3993 ac_eD='%g' |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
3994 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3995 if test "${CONFIG_HEADERS+set}" != set; then |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3996 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3997 cat >> $CONFIG_STATUS <<EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3998 CONFIG_HEADERS="config.h" |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
3999 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4000 cat >> $CONFIG_STATUS <<\EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4001 fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4002 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4004 case "$ac_file" in |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4005 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4006 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4007 *) ac_file_in="${ac_file}.in" ;; |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4008 esac |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4009 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4010 echo creating $ac_file |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4011 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4012 rm -f conftest.frag conftest.in conftest.out |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4014 cat $ac_file_inputs > conftest.in |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4015 |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4016 EOF |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4017 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4018 # Transform confdefs.h into a sed script conftest.vals that substitutes |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4019 # the proper values into config.h.in to produce config.h. And first: |
| 3627 | 4020 # Protect against being on the right side of a sed subst in config.status. |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4021 # Protect against being in an unquoted here document in config.status. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4022 rm -f conftest.vals |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4023 cat > conftest.hdr <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4024 s/[\\&%]/\\&/g |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4025 s%[\\$`]%\\&%g |
| 3627 | 4026 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4027 s%ac_d%ac_u%gp |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4028 s%ac_u%ac_e%gp |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4029 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4030 sed -n -f conftest.hdr confdefs.h > conftest.vals |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4031 rm -f conftest.hdr |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4032 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4033 # This sed command replaces #undef with comments. This is necessary, for |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4034 # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4035 # on some systems where configure will not decide to define it. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4036 cat >> conftest.vals <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4037 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4038 EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4039 |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4040 # Break up conftest.vals because some shells have a limit on |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4041 # the size of here documents, and old seds have small limits too. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4042 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4043 rm -f conftest.tail |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4044 while : |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4045 do |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4046 ac_lines=`grep -c . conftest.vals` |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4047 # grep -c gives empty output for an empty file on some AIX systems. |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4048 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4049 # Write a limited-size here document to conftest.frag. |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4050 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4051 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4052 echo 'CEOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4053 sed -f conftest.frag conftest.in > conftest.out |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4054 rm -f conftest.in |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4055 mv conftest.out conftest.in |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4056 ' >> $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4057 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4058 rm -f conftest.vals |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4059 mv conftest.tail conftest.vals |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4060 done |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4061 rm -f conftest.vals |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4062 |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4063 cat >> $CONFIG_STATUS <<\EOF |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4064 rm -f conftest.frag conftest.h |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4065 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4066 cat conftest.in >> conftest.h |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4067 rm -f conftest.in |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4068 if cmp -s $ac_file conftest.h 2>/dev/null; then |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4069 echo "$ac_file is unchanged" |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4070 rm -f conftest.h |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4071 else |
| 3627 | 4072 # Remove last slash and all that follows it. Not all systems have dirname. |
| 4073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
| 4074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
| 4075 # The file is in a subdirectory. | |
| 4076 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
| 4077 fi | |
|
1749
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4078 rm -f $ac_file |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4079 mv conftest.h $ac_file |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4080 fi |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4081 fi; done |
|
bceb720ee362
Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents:
1456
diff
changeset
|
4082 |
|
5024
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4083 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4084 cat >> $CONFIG_STATUS <<EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4085 |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4086 EOF |
|
7e5190999633
Let --with-threads be an alias for --with-thread.
Guido van Rossum <guido@python.org>
parents:
4851
diff
changeset
|
4087 cat >> $CONFIG_STATUS <<\EOF |
| 1453 | 4088 |
| 4089 exit 0 | |
| 4090 EOF | |
|
2049
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4091 chmod +x $CONFIG_STATUS |
|
07cf3b3baf16
The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents:
1997
diff
changeset
|
4092 rm -fr confdefs* $ac_clean_files |
|
2741
982a5bd6d46d
derived from new configure.in
Guido van Rossum <guido@python.org>
parents:
2509
diff
changeset
|
4093 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 1453 | 4094 |
