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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
21 --with-libs='lib1 ...' link against additional libs"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
22 ac_help="$ac_help
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
23 --with-readline=DIRECTORY search GNU readline library in DIRECTORY
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
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
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
26 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
27 ac_help="$ac_help
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
28 --with-threads alias for --with-thread"
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
36 --with-fpectl enable SIGFPE catching"
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
63 bindir='${exec_prefix}/bin'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
64 sbindir='${exec_prefix}/sbin'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
65 libexecdir='${exec_prefix}/libexec'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
66 datadir='${prefix}/share'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
67 sysconfdir='${prefix}/etc'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
68 sharedstatedir='${prefix}/com'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
69 localstatedir='${prefix}/var'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
70 libdir='${exec_prefix}/lib'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
71 includedir='${prefix}/include'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
72 oldincludedir='/usr/include'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
73 infodir='${prefix}/info'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
103 ac_prev=bindir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
105 bindir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
106
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
120 ac_prev=datadir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
122 | --da=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
123 datadir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
180 --datadir=DIR read-only architecture-independent data in DIR
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
181 [PREFIX/share]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
184 [PREFIX/com]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
187 --includedir=DIR C header files in DIR [PREFIX/include]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
189 --infodir=DIR info documentation in DIR [PREFIX/info]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
194 --program-transform-name=PROGRAM
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
195 run sed PROGRAM on installed program names
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
196 EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
210 if test -n "$ac_help"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
211 echo "--enable and --with options recognized:$ac_help"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
220 -includedir | --includedir | --includedi | --included | --include \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
221 | --includ | --inclu | --incl | --inc)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
222 ac_prev=includedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
225 includedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
226
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
228 ac_prev=infodir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
230 infodir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
231
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
232 -libdir | --libdir | --libdi | --libd)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
233 ac_prev=libdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
235 libdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
236
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
238 | --libexe | --libex | --libe)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
239 ac_prev=libexecdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
241 | --libexe=* | --libex=* | --libe=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
242 libexecdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
243
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
245 | --localstate | --localstat | --localsta | --localst \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
246 | --locals | --local | --loca | --loc | --lo)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
247 ac_prev=localstatedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
251 localstatedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
252
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
254 ac_prev=mandir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
256 mandir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
272 | --oldin | --oldi | --old | --ol | --o)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
273 ac_prev=oldincludedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
277 oldincludedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
320 ac_prev=sbindir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
322 | --sbi=* | --sb=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
323 sbindir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
324
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
327 | --sharedst | --shareds | --shared | --share | --shar \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
328 | --sha | --sh)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
329 ac_prev=sharedstatedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
333 | --sha=* | --sh=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
334 sharedstatedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
347 | --syscon | --sysco | --sysc | --sys | --sy)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
348 ac_prev=sysconfdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
351 sysconfdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
408 *)
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
419 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
462
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
476 echo > confdefs.h
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
477
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
478 # A filename unique to this package, relative to the directory that
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
481
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
482 # Find the source files, if location was not specified.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
491 srcdir=..
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
511 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
528 ac_ext=c
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
547
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
548
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
549
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
550 # NEXTSTEP stuff
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
551 if test -f /usr/lib/NextStep/software_version; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
552
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
553 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
554 echo "configure:555: checking for --with-next-archs" >&5
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
559 if test -n "$withval"; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
560 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
561 # GCC does not currently support multi archs on the NeXT
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
562 with_gcc=no
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
563 fi
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
564 echo "$ac_t""$with_next_archs" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
565
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
566 else
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
567 echo "$ac_t""none: using `arch`" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
568 fi
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
569
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
570
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
571 if test -z "$MACHDEP"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
572 then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
573 set X `hostinfo | grep 'NeXT Mach.*:' | \
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
574 sed -e 's/://' -e 's/\./_/'` && \
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
575 ac_sys_system=next && ac_sys_release=$4
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
576
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
587 ac_sys_system=`uname -s`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
588 if test "$ac_sys_system" = "AIX" ; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
593 ac_md_system=`echo $ac_sys_system |
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
594 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
595 ac_md_release=`echo $ac_sys_release |
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
596 tr -d '/ ' | sed 's/\..*//'`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
597 MACHDEP="$ac_md_system$ac_md_release"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
598
5383
3c5fcf8bf518 The usual.
Guido van Rossum <guido@python.org>
parents: 5036
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
609 if test "${with_gcc+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
613 no) CC=cc
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
614 without_gcc=yes;;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
615 yes) CC=gcc
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
616 without_gcc=no;;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
617 *) CC=$withval
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
630
2509
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
631 # If the user switches compilers, we can't believe the cache
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
632 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
633 then
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
634 { echo "configure: error: cached CC is different -- throw away $cache_file
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
635 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
636 fi
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
666 if test -z "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
667 # Extract the first word of "cc", so it can be a program name with args.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
668 set dummy cc; ac_word=$2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
670 echo "configure:671: checking for $ac_word" >&5
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
672 echo $ac_n "(cached) $ac_c" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
673 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
674 if test -n "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
675 ac_cv_prog_CC="$CC" # Let the user override the test.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
676 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
678 ac_prog_rejected=no
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
679 for ac_dir in $PATH; do
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
680 test -z "$ac_dir" && ac_dir=.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
681 if test -f $ac_dir/$ac_word; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
683 ac_prog_rejected=yes
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
684 continue
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
685 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
686 ac_cv_prog_CC="cc"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
687 break
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
688 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
689 done
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
690 IFS="$ac_save_ifs"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
691 if test $ac_prog_rejected = yes; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
692 # We found a bogon in the path, so make sure we never use it.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
693 set dummy $ac_cv_prog_CC
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
694 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
695 if test $# -gt 0; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
696 # We chose a different compiler from the bogus one.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
697 # However, it has the same basename, so the bogon will be chosen
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
698 # first if we set CC to just the basename; use the full file name.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
699 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
700 set dummy "$ac_dir/$ac_word" "$@"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
701 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
702 ac_cv_prog_CC="$@"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
703 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
704 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
705 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
706 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
707 CC="$ac_cv_prog_CC"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
708 if test -n "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
709 echo "$ac_t""$CC" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
710 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
711 echo "$ac_t""no" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
712 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
713
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
714 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
855 break
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
856 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
859 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
873
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
877 then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
878 INSTALL=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
879 INSTALL_PROGRAM=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
880 INSTALL_DATA=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
881 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
882 INSTALL_PROGRAM="$INSTALL"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
895 if test "$ac_arch_flags"
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
896 then
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
897 OPT="$OPT $ac_arch_flags"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
898 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
916 #line 917 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
919 Syntax Error
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
920 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
942 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
947 rm -rf conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
948 CPP=/lib/cpp
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
949 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
950 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
964 #line 965 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
965 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
966 #ifdef _AIX
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
967 yes
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
968 #endif
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
969
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
981 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
982 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
983
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
992 #line 993 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
993 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
994 #include <minix/config.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
995 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1008 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1031
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1032 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1033
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1042 if test "$cross_compiling" = yes; then
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1043 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1044 else
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1045 cat > conftest.$ac_ext <<EOF
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1050 if { (eval echo configure:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1059 rm -fr conftest*
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1060 fi
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1070 # check for ANSI or K&R ("traditional") preprocessor
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1071 echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1072 echo "configure:1073: checking for C preprocessor type" >&5
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1073 cat > conftest.$ac_ext <<EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1074 #line 1075 "configure"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1075 #include "confdefs.h"
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1076
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1077 #define spam(name, doc) {#name, &name, #name "() -- " doc}
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1078 int foo;
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1079 struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1082 ;
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1083 ; return 0; }
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1084 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1085 if { (eval echo configure:1086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1086 rm -rf conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1087 cpp_type=ansi
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1091 rm -rf conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1092 cat >> confdefs.h <<\EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1093 #define HAVE_OLD_CPP 1
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1094 EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1095 cpp_type=traditional
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1096 fi
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1097 rm -f conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1098 echo "$ac_t""$cpp_type" 1>&6
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1107 #line 1108 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1108 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1109 #include <stdlib.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1110 #include <stdarg.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1111 #include <string.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1112 #include <float.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1113 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1171 #line 1172 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1172 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1173 #include <ctype.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1174 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1177 int main () { int i; for (i = 0; i < 256; i++)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1178 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1179 exit (0); }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1180
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1181 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
3c5fcf8bf518 The usual.
Guido van Rossum <guido@python.org>
parents: 5036
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1207 sys/audioio.h sys/file.h sys/lock.h \
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1302 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1303 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1304 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1343 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1344 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1345 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1363
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1364 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1386 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1393
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1394 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1395 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1398
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1399 # Add some code to confdefs.h so that the test for off_t works on SCO
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1400 cat >> confdefs.h <<\EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1401 #if defined(SCO_DS)
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1402 #undef _OFF_T
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1403 #endif
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1404 EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1412 #line 1413 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1413 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1424 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1427 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1428 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1457 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1460 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1461 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1490 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1493 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1494 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1502
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1503 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1511 #line 1512 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1512 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1513 #include <sys/types.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1514 #include <signal.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1515 #ifdef signal
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1516 #undef signal
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1517 #endif
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1518 #ifdef __cplusplus
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1519 extern "C" void (*signal (int, void (*)(int)))(int);
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1520 #else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1521 void (*signal ()) ();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1522 #endif
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1527 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1528 if { (eval echo configure:1529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1536 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1564 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1567 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1568 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1593 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1598
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1599 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1612
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1613
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1614 echo $ac_n "checking size of int""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1615 echo "configure:1616: checking size of int" >&5
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1616 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1617 echo $ac_n "(cached) $ac_c" 1>&6
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1618 else
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1619 if test "$cross_compiling" = yes; then
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1620 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1623 #line 1624 "configure"
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1624 #include "confdefs.h"
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1625 #include <stdio.h>
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1626 main()
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1627 {
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1628 FILE *f=fopen("conftestval", "w");
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1629 if (!f) exit(1);
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1630 fprintf(f, "%d\n", sizeof(int));
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1631 exit(0);
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1632 }
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1633 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1636 ac_cv_sizeof_int=`cat conftestval`
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1641 ac_cv_sizeof_int=0
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1646 fi
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1647 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1648 cat >> confdefs.h <<EOF
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1649 #define SIZEOF_INT $ac_cv_sizeof_int
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1650 EOF
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1651
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1652
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1653 echo $ac_n "checking size of long""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1654 echo "configure:1655: checking size of long" >&5
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1655 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1656 echo $ac_n "(cached) $ac_c" 1>&6
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1657 else
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1658 if test "$cross_compiling" = yes; then
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1659 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1662 #line 1663 "configure"
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1663 #include "confdefs.h"
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1664 #include <stdio.h>
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1665 main()
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1666 {
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1667 FILE *f=fopen("conftestval", "w");
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1668 if (!f) exit(1);
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1669 fprintf(f, "%d\n", sizeof(long));
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1670 exit(0);
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1671 }
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1672 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1675 ac_cv_sizeof_long=`cat conftestval`
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1680 ac_cv_sizeof_long=0
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1685 fi
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1686 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1687 cat >> confdefs.h <<EOF
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1688 #define SIZEOF_LONG $ac_cv_sizeof_long
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1689 EOF
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1690
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1691
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1692
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1698 # SO is the extension of shared libraries `(including the dot!)
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1701 echo "configure:1702: checking SO" >&5
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1702 if test -z "$SO"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1705 hp*|HP*) SO=.sl;;
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1706 *) SO=.so;;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1707 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1710 # LDSHARED is the ld *command* used to create shared library
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1713 echo "configure:1714: checking LDSHARED" >&5
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1714 if test -z "$LDSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1717 AIX*) LDSHARED="ld_so_aix \$(CC)";;
5383
3c5fcf8bf518 The usual.
Guido van Rossum <guido@python.org>
parents: 5036
diff changeset
1718 IRIX/5*) LDSHARED="ld -shared";;
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1719 IRIX*/6*) LDSHARED="ld $SGI_ABI -shared -all"; OPT="$OPT $SGI_ABI";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1720 SunOS/4*) LDSHARED="ld";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1721 SunOS/5*) LDSHARED="ld -G";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1722 hp*|HP*) LDSHARED="ld -b";;
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1723 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1724 DYNIX/ptx*) LDSHARED="ld -G";;
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1727 FreeBSD*) LDSHARED="ld -Bshareable";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1728 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1729 *) LDSHARED="ld";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1730 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1736 echo "configure:1737: checking CCSHARED" >&5
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1737 if test -z "$CCSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1738 then
5383
3c5fcf8bf518 The usual.
Guido van Rossum <guido@python.org>
parents: 5036
diff changeset
1739 case $ac_sys_system/$ac_sys_release in
2329
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1740 hp*|HP*) if test "$GCC" = yes;
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1741 then CCSHARED="-fpic";
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1742 else CCSHARED="+z";
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1743 fi;;
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1744 Linux*) CCSHARED="-fpic";;
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1745 FreeBSD*) CCSHARED="-fpic";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1746 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1747 IRIX*/6*) CCSHARED="$SGI_ABI -all";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1748 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1754 echo "configure:1755: checking LINKFORSHARED" >&5
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1755 if test -z "$LINKFORSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1756 then
5383
3c5fcf8bf518 The usual.
Guido van Rossum <guido@python.org>
parents: 5036
diff changeset
1757 case $ac_sys_system/$ac_sys_release in
5506
59438d19d603 The usual
Guido van Rossum <guido@python.org>
parents: 5470
diff changeset
1758 AIX*) LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';;
4609
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
1759 hp*|HP*)
53ef5b51a48b The usual.
Guido van Rossum <guido@python.org>
parents: 4269
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1762 next) LINKFORSHARED="-u libsys_s";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1763 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1764 IRIX*/6*) LINKFORSHARED="$SGI_ABI -all";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1765 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1768
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1779 #line 1780 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1780 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1781 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1782 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1783 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1784 char dlopen();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1789 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1791 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1797 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1798 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1826 #line 1827 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1827 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1828 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1829 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1830 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1831 char shl_load();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1836 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1838 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1844 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1845 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1875 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1876 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1877 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1911 # The following three (nsl,inet,socket) are needed on Sequent;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1912 # the order of checking must be this. Most SVR4 platforms will
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1913 # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1914 # broken. I see no elegant solution (probably CHECK_LIB should be
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1915 # fixed to only add the library if the given entry point is not
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1916 # satisfied without it).
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
1917 if test "$ac_sys_system" != IRIX
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1924 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1927 cat > conftest.$ac_ext <<EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1928 #line 1929 "configure"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1929 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1930 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1931 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1932 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1933 char t_open();
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1936 t_open()
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1937 ; return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1938 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1940 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1941 eval "ac_cv_lib_$ac_lib_var=yes"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1945 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1946 eval "ac_cv_lib_$ac_lib_var=no"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1947 fi
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1948 rm -f conftest*
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1949 LIBS="$ac_save_LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1950
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1951 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1954 LIBS="-lnsl $LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1957 fi
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1964 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1967 cat > conftest.$ac_ext <<EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1968 #line 1969 "configure"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1969 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1970 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1971 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1972 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1973 char gethostbyname();
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1976 gethostbyname()
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1977 ; return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1978 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1980 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1981 eval "ac_cv_lib_$ac_lib_var=yes"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1985 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1986 eval "ac_cv_lib_$ac_lib_var=no"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1987 fi
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1988 rm -f conftest*
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1989 LIBS="$ac_save_LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1990
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1991 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1994 LIBS="-linet $LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1997 fi
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2008 #line 2009 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2009 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2010 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2011 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2012 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2013 char socket();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2018 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2019 if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2020 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2026 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2027 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
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
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
2038 # SVR4 sockets
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2039 fi
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2040 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2041 echo "configure:2042: checking for --with-libs" >&5
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2042 # Check whether --with-libs or --without-libs was given.
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2043 if test "${with_libs+set}" = set; then
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2044 withval="$with_libs"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2045
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2046 echo "$ac_t""$withval" 1>&6
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2047 LIBS="$withval $LIBS"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2048
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2049 else
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2050 echo "$ac_t""no" 1>&6
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2051 fi
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
2052
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2053
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2054 echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2055 echo "configure:2056: checking for --with(out)-readline" >&5
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2058 if test "${with_readline+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2059 withval="$with_readline"
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2060 echo "$ac_t""$withval" 1>&6; use_readline="$withval"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2061 else
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2062 echo "$ac_t""(default) yes" 1>&6
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2063 fi
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2064
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2065 if test "$use_readline" != "no"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2066 then
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2067 if test "$use_readline" != "yes"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2068 then add_ldflags="-L$use_readline"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2069 else add_ldflags=""
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2070 fi
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2071 # See where the termcap interface could be hiding...
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2072 echo $ac_n "checking for readline and termcap libraries""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2073 echo "configure:2074: checking for readline and termcap libraries" >&5
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2074 if eval "test \"`echo '$''{'ac_cv_readline_termcap'+set}'`\" = set"; then
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2075 echo $ac_n "(cached) $ac_c" 1>&6
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2076 else
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2077
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2078 echo "$ac_t""have to find out" 1>&6
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2079 save_libs="$LIBS"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2080 save_ldflags="$LDFLAGS"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2081 LDFLAGS="$save_ldflags $add_ldflags"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2082 rl="-lreadline"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2083 first=""
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2084 # Hack for SGI IRIX 5.x.
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2085 # Both termcap and gl have an entry point clear().
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2086 # When linking with both shared libraries, we're in trouble.
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2087 # We don't need the one in termcap.
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2088 # By forcing a static link for termcap, we avoid
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2089 # linking its clear() entry point.
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2090 if test -f /usr/lib/libgl.so -a -f /usr/lib/libtermcap.a
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2091 then first="/usr/lib/libtermcap.a"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2092 fi
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2093 for add_lib in \
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2094 "$first" "-ltermcap" "-ltermlib" "-lcurses" "-lncurses"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2095 do
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2096 echo $ac_n "checking for $rl $add_lib""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2097 echo "configure:2098: checking for $rl $add_lib" >&5
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2098 LIBS="$save_libs $rl $add_lib"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2099 cat > conftest.$ac_ext <<EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2100 #line 2101 "configure"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2101 #include "confdefs.h"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2104 char *line=readline();
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2105 ; return 0; }
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2106 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2108 rm -rf conftest*
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2109 echo "$ac_t""yes" 1>&6;
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2110 ac_cv_readline_termcap="$rl $add_lib"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2114 rm -rf conftest*
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
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
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2118 if test "$ac_cv_readline_termcap" != ""
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2119 then break
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2120 fi
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2121 done
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2122 LIBS="$save_libs"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2123 LDFLAGS="$save_ldflags"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2124 echo $ac_n "checking result from check for readline and termcap""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2125 echo "configure:2126: checking result from check for readline and termcap" >&5
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2126
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2127 fi
4851
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2128
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2129 if test "$ac_cv_readline_termcap" = ""
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2130 then
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2131 echo "$ac_t""no" 1>&6
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2132 echo "configure: warning: cannot link with GNU readline -- see config.log" 1>&2
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2133 else
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2134 echo "$ac_t""$ac_cv_readline_termcap" 1>&6
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2135 LIBS="$LIBS $ac_cv_readline_termcap"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2136 LDFLAGS="$LDFLAGS $add_ldflags"
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2137 cat >> confdefs.h <<\EOF
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2138 #define WITH_READLINE 1
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2139 EOF
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2140
f808001a3e01 The usual...
Guido van Rossum <guido@python.org>
parents: 4666
diff changeset
2141 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2142 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2143
5036
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2144 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2145 echo "configure:2146: checking for --with-dec-threads" >&5
5036
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2146
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2147 # Check whether --with-dec-threads or --without-dec-threads was given.
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2148 if test "${with_dec_threads+set}" = set; then
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2149 withval="$with_dec_threads"
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2150 echo "$ac_t""$withval" 1>&6
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
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
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2153 with_thread="$withval";
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2154 fi
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2155 else
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
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
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2158
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2159
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2160 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2161 echo "configure:2162: checking for --with-threads" >&5
5036
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2162 # Check whether --with-threads or --without-threads was given.
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2163 if test "${with_threads+set}" = set; then
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2164 withval="$with_threads"
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2165 echo "$ac_t""$withval" 1>&6
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2166 if test "${with_thread+set}" != set; then
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2167 with_thread="$withval";
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2168 fi
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2169 else
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2170 echo "$ac_t""no" 1>&6
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2171 fi
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2172
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2173
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
2174 echo $ac_n "checking for --with-thread""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2177 if test "${with_thread+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2237 #line 2238 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2238 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2239 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2240 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2241 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2242 char pthread_create();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2247 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2249 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2392 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2393 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2394 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2408 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2409 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2424 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2435 #line 2436 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2436 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2437 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2438 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2439 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2440 char thr_create();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2445 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2447 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2453 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2454 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2474 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2475
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2476
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2484 if test "${with_sgi_dl+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2501 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2507 if test "${with_dl_dld+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2532 select setgid setuid setsid setpgid setpgrp setvbuf \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2533 sigaction siginterrupt sigrelse strftime symlink \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2534 tcgetpgrp tcsetpgrp times truncate uname waitpid
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2542 #line 2543 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2548 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2549 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2554 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2555 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2558 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2559 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2560 $ac_func();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2564 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2587 done
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2588
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
2589 for ac_func in dup2 getcwd strdup strerror memmove
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2597 #line 2598 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2603 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2604 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2609 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2610 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2613 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2614 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2615 $ac_func();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2619 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2628 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2643 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2652 #line 2653 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2658 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2659 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2664 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2665 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2666 something starting with __ and the normal name is an alias. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2667 #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2668 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2669 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2670 getpgrp();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2696 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2697 if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2701 EOF
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2706 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2710 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2718 #line 2719 "configure"
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2724 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2725 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2730 /* The GNU C library defines this for functions which it implements
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2731 to always fail with ENOSYS. Some functions are actually named
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2732 something starting with __ and the normal name is an alias. */
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2733 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2734 choke me
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2735 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2736 setpgrp();
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2761 ; return 0; }
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2762 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
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
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2767 EOF
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
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
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2772 fi
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2784 #line 2785 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2790 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2791 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2806 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2815 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2822 #line 2823 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2828 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2830 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2838
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2839 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2856 #include <sys/time.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2888 #line 2889 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2895 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2896 if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2938 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
2955 #line 2956 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2956 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2957 #include <time.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2976
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2999 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3008 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3009 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3010 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3047
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3126 typedef int charset[2]; const charset x;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3127 /* SunOS 4.1.1 cc rejects this. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3128 char const *const *ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3132 static struct point const zero = {0,0};
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3133 /* AIX XL C 1.02.0.0 rejects this.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3134 It does not let you subtract one const X* pointer from another in an arm
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3135 of an if-expression whose if-part is not a constant expression */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3136 const char *g = "string";
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3137 ccp = &g + (g ? g-g : 0);
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3138 /* HPUX 7.0 cc rejects these. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3139 ++ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3140 p = (char**) ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3141 ccp = (char const *const *) p;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3142 { /* SCO 3.2v4 cc rejects this. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3143 char *t;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3144 char const *s = 0 ? (char *) 0 : (char const *) 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3145
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3146 *t++ = 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3147 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3150 const int *foo = &x[0];
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3151 ++foo;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3152 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3154 typedef const int *iptr;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3155 iptr p = 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3156 ++p;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3157 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3158 { /* AIX XL C 1.02.0.0 rejects this saying
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3160 struct s { int j; const int *ap[3]; };
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3161 struct s *b; b->j = 5;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3162 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3194 #line 3195 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3195 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3200 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3202 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3203 works=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3220 #line 3221 "configure"
1974
f95c193bfe65 add test for volatile
Guido van Rossum <guido@python.org>
parents: 1882
diff changeset
3221 #include "confdefs.h"
f95c193bfe65 add test for volatile
Guido van Rossum <guido@python.org>
parents: 1882
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3227 if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3228 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3237
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3238 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3246 #line 3247 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3252 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3274 int foo(int x, ...) {
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3275 va_list va;
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3276 va_start(va, x);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3277 va_arg(va, int);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3278 va_arg(va, char *);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3279 va_arg(va, double);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3280 return 0;
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
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
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3300 if test "$have_prototypes" = yes; then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3305 #line 3306 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3306 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3311 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3313 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3321 bad_prototypes=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3322 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3325 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3326
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3398 # checks for system services
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3399 # (none yet)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3411 #line 3412 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3412 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3413 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3414 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3415 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3416 char __fpu_control();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3421 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3423 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3429 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3430 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3433
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3434 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3447 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3448
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3449
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3450 # Check for --with-fpectl
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3451
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3452 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3453 echo "configure:3454: checking for --with-fpectl" >&5
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3454 # Check whether --with-fpectl or --without-fpectl was given.
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3455 if test "${with_fpectl+set}" = set; then
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3456 withval="$with_fpectl"
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3457
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3458 if test "$withval" != no
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3459 then cat >> confdefs.h <<\EOF
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3460 #define WANT_SIGFPE_HANDLER 1
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3461 EOF
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3462 echo "$ac_t""yes" 1>&6
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3463 else echo "$ac_t""no" 1>&6
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3464 fi
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3465 fi
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3466
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3470 case $ac_sys_system in
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3471 next) ;;
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3472 *) LIBM=-lm
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3473 esac
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3474 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3477 if test "${with_libm+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3480 if test "$withval" = no
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3481 then LIBM=
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3482 echo "$ac_t""force LIBM empty" 1>&6
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3488 else
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3495 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3498 if test "${with_libc+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3501 if test "$withval" = no
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3502 then LIBC=
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3503 echo "$ac_t""force LIBC empty" 1>&6
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
3509 else
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3531 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3532 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3572 for ac_func in hypot
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3573 do
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3575 echo "configure:3576: checking for $ac_func" >&5
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3577 echo $ac_n "(cached) $ac_c" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3578 else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3579 cat > conftest.$ac_ext <<EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3580 #line 3581 "configure"
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3581 #include "confdefs.h"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3582 /* System header to define __stub macros and hopefully few prototypes,
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3583 which can conflict with char $ac_func(); below. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3584 #include <assert.h>
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3585 /* Override any gcc2 internal prototype to avoid an error. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3586 /* We use char because int might match the return type of a gcc2
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3587 builtin and then its argument prototype would still apply. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3588 char $ac_func();
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
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
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3591
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3592 /* The GNU C library defines this for functions which it implements
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3593 to always fail with ENOSYS. Some functions are actually named
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3594 something starting with __ and the normal name is an alias. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3596 choke me
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3597 #else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3598 $ac_func();
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3599 #endif
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3600
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3601 ; return 0; }
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3602 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3604 rm -rf conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3605 eval "ac_cv_func_$ac_func=yes"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
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
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3609 rm -rf conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3610 eval "ac_cv_func_$ac_func=no"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3611 fi
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3612 rm -f conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
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
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
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
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3622 else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3623 echo "$ac_t""no" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3624 LIBOBJS="$LIBOBJS ${ac_func}.o"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3625 fi
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3626 done
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3636 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3637 if test "$cross_compiling" = yes; then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3638 ac_cv_func_getopt=no
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
3641 #line 3642 "configure"
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3642 #include "confdefs.h"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3643 #include <stdio.h>
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3644 extern int optind, opterr, getopt();
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3645 extern char* optarg;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3646 int main() {
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3647 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3648 opterr = 0;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3649 if (getopt(3, av, "f:") == 'f') { exit(1); }
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3650 exit(0);
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3651 }
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3652 EOF
5670
c3501a9d3c20 The usual
Guido van Rossum <guido@python.org>
parents: 5597
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3655 ac_cv_func_getopt=yes
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3660 ac_cv_func_getopt=no
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3667 test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3795 # Generated automatically by configure.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3796 # Run this file to recreate the current configuration.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3797 # This directory was configured as follows,
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3798 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3818 esac
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3819 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3828 EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3829 cat >> $CONFIG_STATUS <<EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3830
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3831 # Protect against being on the right side of a sed subst in config.status.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3832 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3845 s%@bindir@%$bindir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3846 s%@sbindir@%$sbindir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3847 s%@libexecdir@%$libexecdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3848 s%@datadir@%$datadir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3849 s%@sysconfdir@%$sysconfdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3850 s%@sharedstatedir@%$sharedstatedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3851 s%@localstatedir@%$localstatedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3852 s%@libdir@%$libdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3853 s%@includedir@%$includedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3854 s%@oldincludedir@%$oldincludedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3855 s%@infodir@%$infodir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3858 s%@CC@%$CC%g
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3862 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3865 s%@CPP@%$CPP%g
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3866 s%@SO@%$SO%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3867 s%@LDSHARED@%$LDSHARED%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3868 s%@CCSHARED@%$CCSHARED%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3869 s%@LINKFORSHARED@%$LINKFORSHARED%g
5036
69765d6431e1 The usual
Guido van Rossum <guido@python.org>
parents: 5025
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3872 s%@LIBOBJS@%$LIBOBJS%g
5470
d9029a4e0f2a The usual.
Guido van Rossum <guido@python.org>
parents: 5385
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
4072 # Remove last slash and all that follows it. Not all systems have dirname.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
4073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
4074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
4075 # The file is in a subdirectory.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
4076 test ! -d "$ac_dir" && mkdir "$ac_dir"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
4088
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
4089 exit 0
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
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
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
4094