blob: 7758d78914d67ee26f7db91dd998933ab6328a5d [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Martin v. Löwis19ff4462002-10-07 17:45:56 +00002# From configure.in Revision: 1.354 .
Guido van Rossum627b2d71993-12-24 10:39:16 +00003# Guess values for system-dependent variables and create Makefiles.
Martin v. Löwis11437992002-04-12 09:54:03 +00004# Generated by GNU Autoconf 2.53.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005#
Martin v. Löwis11437992002-04-12 09:54:03 +00006# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Guido van Rossum627b2d71993-12-24 10:39:16 +000010
Martin v. Löwis11437992002-04-12 09:54:03 +000011if expr a : '\(a\)' >/dev/null 2>&1; then
12 as_expr=expr
13else
14 as_expr=false
15fi
16
17
18## --------------------- ##
19## M4sh Initialization. ##
20## --------------------- ##
21
22# Be Bourne compatible
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24 emulate sh
25 NULLCMD=:
26elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 set -o posix
28fi
29
30# NLS nuisances.
31# Support unset when possible.
32if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 as_unset=unset
34else
35 as_unset=false
36fi
37
38(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39 { $as_unset LANG || test "${LANG+set}" != set; } ||
40 { LANG=C; export LANG; }
41(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43 { LC_ALL=C; export LC_ALL; }
44(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46 { LC_TIME=C; export LC_TIME; }
47(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49 { LC_CTYPE=C; export LC_CTYPE; }
50(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52 { LANGUAGE=C; export LANGUAGE; }
53(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55 { LC_COLLATE=C; export LC_COLLATE; }
56(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58 { LC_NUMERIC=C; export LC_NUMERIC; }
59(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61 { LC_MESSAGES=C; export LC_MESSAGES; }
62
63
64# Name of the executable.
65as_me=`(basename "$0") 2>/dev/null ||
66$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76# PATH needs CR, and LINENO needs CR and PATH.
77# Avoid depending upon Character Ranges.
78as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81as_cr_digits='0123456789'
82as_cr_alnum=$as_cr_Letters$as_cr_digits
83
84# The user is always right.
85if test "${PATH_SEPARATOR+set}" != set; then
86 echo "#! /bin/sh" >conftest.sh
87 echo "exit 0" >>conftest.sh
88 chmod +x conftest.sh
89 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90 PATH_SEPARATOR=';'
91 else
92 PATH_SEPARATOR=:
93 fi
94 rm -f conftest.sh
95fi
96
97
98 as_lineno_1=$LINENO
99 as_lineno_2=$LINENO
100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101 test "x$as_lineno_1" != "x$as_lineno_2" &&
102 test "x$as_lineno_3" = "x$as_lineno_2" || {
103 # Find who we are. Look in the path if we contain no path at all
104 # relative or not.
105 case $0 in
106 *[\\/]* ) as_myself=$0 ;;
107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108for as_dir in $PATH
109do
110 IFS=$as_save_IFS
111 test -z "$as_dir" && as_dir=.
112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113done
114
115 ;;
116 esac
117 # We did not find ourselves, most probably we were run as `sh COMMAND'
118 # in which case we are not to be found in the path.
119 if test "x$as_myself" = x; then
120 as_myself=$0
121 fi
122 if test ! -f "$as_myself"; then
123 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124 { (exit 1); exit 1; }; }
125 fi
126 case $CONFIG_SHELL in
127 '')
128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130do
131 IFS=$as_save_IFS
132 test -z "$as_dir" && as_dir=.
133 for as_base in sh bash ksh sh5; do
134 case $as_dir in
135 /*)
136 if ("$as_dir/$as_base" -c '
137 as_lineno_1=$LINENO
138 as_lineno_2=$LINENO
139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140 test "x$as_lineno_1" != "x$as_lineno_2" &&
141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142 CONFIG_SHELL=$as_dir/$as_base
143 export CONFIG_SHELL
144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145 fi;;
146 esac
147 done
148done
149;;
150 esac
151
152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153 # uniformly replaced by the line number. The first 'sed' inserts a
154 # line-number line before each line; the second 'sed' does the real
155 # work. The second script uses 'N' to pair each line-number line
156 # with the numbered line, and appends trailing '-' during
157 # substitution so that $LINENO is not a special case at line end.
158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160 sed '=' <$as_myself |
161 sed '
162 N
163 s,$,-,
164 : loop
165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166 t loop
167 s,-$,,
168 s,^['$as_cr_digits']*\n,,
169 ' >$as_me.lineno &&
170 chmod +x $as_me.lineno ||
171 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172 { (exit 1); exit 1; }; }
173
174 # Don't try to exec as it changes $[0], causing all sort of problems
175 # (the dirname of $[0] is not the place where we might find the
176 # original and so on. Autoconf is especially sensible to this).
177 . ./$as_me.lineno
178 # Exit status is that of the last command.
179 exit
180}
181
182
183case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184 *c*,-n*) ECHO_N= ECHO_C='
185' ECHO_T=' ' ;;
186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
188esac
189
190if expr a : '\(a\)' >/dev/null 2>&1; then
191 as_expr=expr
192else
193 as_expr=false
194fi
195
196rm -f conf$$ conf$$.exe conf$$.file
197echo >conf$$.file
198if ln -s conf$$.file conf$$ 2>/dev/null; then
199 # We could just check for DJGPP; but this test a) works b) is more generic
200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201 if test -f conf$$.exe; then
202 # Don't use ln at all; we don't have any links
203 as_ln_s='cp -p'
204 else
205 as_ln_s='ln -s'
206 fi
207elif ln conf$$.file conf$$ 2>/dev/null; then
208 as_ln_s=ln
209else
210 as_ln_s='cp -p'
211fi
212rm -f conf$$ conf$$.exe conf$$.file
213
214as_executable_p="test -f"
215
216# Sed expression to map a string onto a valid CPP name.
217as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
219# Sed expression to map a string onto a valid variable name.
220as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221
222
223# IFS
224# We need space, tab and new line, in precisely that order.
225as_nl='
226'
227IFS=" $as_nl"
228
229# CDPATH.
230$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231
232
233# Name of the host.
234# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235# so uname gets run too.
236ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237
238exec 6>&1
239
240#
241# Initializations.
242#
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000243ac_default_prefix=/usr/local
Martin v. Löwis11437992002-04-12 09:54:03 +0000244cross_compiling=no
245subdirs=
246MFLAGS=
247MAKEFLAGS=
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250# Maximum number of lines to put in a shell here document.
251# This variable seems obsolete. It should probably be removed, and
252# only ac_max_sed_lines should be used.
253: ${ac_max_here_lines=38}
254
255# Identity of this package.
256PACKAGE_NAME=
257PACKAGE_TARNAME=
258PACKAGE_VERSION=
259PACKAGE_STRING=
260PACKAGE_BUGREPORT=
261
262ac_unique_file="Include/object.h"
263# Factoring default headers for most tests.
264ac_includes_default="\
265#include <stdio.h>
266#if HAVE_SYS_TYPES_H
267# include <sys/types.h>
268#endif
269#if HAVE_SYS_STAT_H
270# include <sys/stat.h>
271#endif
272#if STDC_HEADERS
273# include <stdlib.h>
274# include <stddef.h>
275#else
276# if HAVE_STDLIB_H
277# include <stdlib.h>
278# endif
279#endif
280#if HAVE_STRING_H
281# if !STDC_HEADERS && HAVE_MEMORY_H
282# include <memory.h>
283# endif
284# include <string.h>
285#endif
286#if HAVE_STRINGS_H
287# include <strings.h>
288#endif
289#if HAVE_INTTYPES_H
290# include <inttypes.h>
291#else
292# if HAVE_STDINT_H
293# include <stdint.h>
294# endif
295#endif
296#if HAVE_UNISTD_H
297# include <unistd.h>
298#endif"
299
Guido van Rossum627b2d71993-12-24 10:39:16 +0000300
Guido van Rossum7f43da71994-08-01 12:15:30 +0000301# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03 +0000302ac_init_help=
303ac_init_version=false
Guido van Rossum7f43da71994-08-01 12:15:30 +0000304# The variables have the same names as the options, with
305# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03 +0000306cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000307exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +0000308no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000309no_recursion=
310prefix=NONE
311program_prefix=NONE
312program_suffix=NONE
313program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +0000314silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000315site=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000316srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30 +0000317verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000318x_includes=NONE
319x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03 +0000320
321# Installation directory options.
322# These are left unexpanded so users can "make install exec_prefix=/foo"
323# and all the variables that are supposed to be based on exec_prefix
324# by default will actually change.
325# Use braces instead of parens because sh, perl, etc. also accept them.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000326bindir='${exec_prefix}/bin'
327sbindir='${exec_prefix}/sbin'
328libexecdir='${exec_prefix}/libexec'
329datadir='${prefix}/share'
330sysconfdir='${prefix}/etc'
331sharedstatedir='${prefix}/com'
332localstatedir='${prefix}/var'
333libdir='${exec_prefix}/lib'
334includedir='${prefix}/include'
335oldincludedir='/usr/include'
336infodir='${prefix}/info'
337mandir='${prefix}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000338
Guido van Rossum7f43da71994-08-01 12:15:30 +0000339ac_prev=
340for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000341do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
345 ac_prev=
346 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000347 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000348
Martin v. Löwis11437992002-04-12 09:54:03 +0000349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000350
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000351 # Accept the important Cygnus configure options, so we can diagnose typos.
352
Martin v. Löwis11437992002-04-12 09:54:03 +0000353 case $ac_option in
Guido van Rossum7f43da71994-08-01 12:15:30 +0000354
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 ac_prev=bindir ;;
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000358 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000359
360 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03 +0000361 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000363 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000364
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000370 cache_file=$ac_optarg ;;
371
372 --config-cache | -C)
373 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000374
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 ac_prev=datadir ;;
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 | --da=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000379 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000380
Guido van Rossum7f43da71994-08-01 12:15:30 +0000381 -disable-* | --disable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000383 # Reject names that are not valid shell variable names.
Martin v. Löwis11437992002-04-12 09:54:03 +0000384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000389
390 -enable-* | --enable-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000392 # Reject names that are not valid shell variable names.
Martin v. Löwis11437992002-04-12 09:54:03 +0000393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 case $ac_option in
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000399 *) ac_optarg=yes ;;
400 esac
Martin v. Löwis11437992002-04-12 09:54:03 +0000401 eval "enable_$ac_feature='$ac_optarg'" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000402
Guido van Rossum7f43da71994-08-01 12:15:30 +0000403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000410 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000411
412 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000413 # Obsolete; use --with-gas.
414 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000415
Martin v. Löwis11437992002-04-12 09:54:03 +0000416 -help | --help | --hel | --he | -h)
417 ac_init_help=long ;;
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000422
423 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:03 +0000424 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000425 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000426 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000427
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000433 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000434
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 ac_prev=infodir ;;
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000438 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000439
440 -libdir | --libdir | --libdi | --libd)
441 ac_prev=libdir ;;
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000443 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000444
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000450 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000451
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000459 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000460
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 ac_prev=mandir ;;
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000464 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000465
Guido van Rossum7f43da71994-08-01 12:15:30 +0000466 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000467 # Obsolete; use --without-fp.
468 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000469
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:03 +0000471 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:30 +0000472 no_create=yes ;;
473
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000477
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000485 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000486
Guido van Rossum7f43da71994-08-01 12:15:30 +0000487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 ac_prev=prefix ;;
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000490 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000491
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000497 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000498
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000504 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000505
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000521 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000522
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
525 silent=yes ;;
526
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 ac_prev=sbindir ;;
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000531 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000532
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
536 | --sha | --sh)
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000542 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000543
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000544 -site | --site | --sit)
545 ac_prev=site ;;
546 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000547 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000548
Guido van Rossum7f43da71994-08-01 12:15:30 +0000549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 ac_prev=srcdir ;;
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000552 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000553
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000559 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000560
Guido van Rossum7f43da71994-08-01 12:15:30 +0000561 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:03 +0000562 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000564 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000565
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
567 verbose=yes ;;
568
Martin v. Löwis11437992002-04-12 09:54:03 +0000569 -version | --version | --versio | --versi | --vers | -V)
570 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000571
572 -with-* | --with-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000574 # Reject names that are not valid shell variable names.
Martin v. Löwis11437992002-04-12 09:54:03 +0000575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000578 ac_package=`echo $ac_package| sed 's/-/_/g'`
Martin v. Löwis11437992002-04-12 09:54:03 +0000579 case $ac_option in
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000581 *) ac_optarg=yes ;;
582 esac
Martin v. Löwis11437992002-04-12 09:54:03 +0000583 eval "with_$ac_package='$ac_optarg'" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000584
585 -without-* | --without-*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000587 # Reject names that are not valid shell variable names.
Martin v. Löwis11437992002-04-12 09:54:03 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000593
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000594 --x)
595 # Obsolete; use --with-x.
596 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000597
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000603 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000604
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:03 +0000610 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000611
Martin v. Löwis11437992002-04-12 09:54:03 +0000612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000615 ;;
616
Martin v. Löwis11437992002-04-12 09:54:03 +0000617 *=*)
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
625 export $ac_envvar ;;
626
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000627 *)
Martin v. Löwis11437992002-04-12 09:54:03 +0000628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Guido van Rossum7f43da71994-08-01 12:15:30 +0000633 ;;
634
635 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +0000636done
637
Guido van Rossum7f43da71994-08-01 12:15:30 +0000638if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:03 +0000639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000642fi
643
Martin v. Löwis11437992002-04-12 09:54:03 +0000644# Be sure to have absolute paths.
645for ac_var in exec_prefix prefix
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000646do
Martin v. Löwis11437992002-04-12 09:54:03 +0000647 eval ac_val=$`echo $ac_var`
648 case $ac_val in
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000652 esac
653done
Guido van Rossum627b2d71993-12-24 10:39:16 +0000654
Martin v. Löwis11437992002-04-12 09:54:03 +0000655# Be sure to have absolute paths.
656for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
658do
659 eval ac_val=$`echo $ac_var`
660 case $ac_val in
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
664 esac
665done
Guido van Rossum627b2d71993-12-24 10:39:16 +0000666
Martin v. Löwis11437992002-04-12 09:54:03 +0000667# There might be people who depend on the old broken behavior: `$host'
668# used to hold the argument of --host etc.
669# FIXME: To remove some day.
670build=$build_alias
671host=$host_alias
672target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:16 +0000673
Martin v. Löwis11437992002-04-12 09:54:03 +0000674# FIXME: To remove some day.
675if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
681 cross_compiling=yes
682 fi
683fi
684
685ac_tool_prefix=
686test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
688test "$silent" = yes && exec 6>/dev/null
689
Guido van Rossum627b2d71993-12-24 10:39:16 +0000690
691# Find the source files, if location was not specified.
692if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +0000693 ac_srcdir_defaulted=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000694 # Try the directory containing this script, then its parent.
Martin v. Löwis11437992002-04-12 09:54:03 +0000695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
701echo X"$0" |
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
706 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000707 srcdir=$ac_confdir
708 if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000709 srcdir=..
710 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000711else
712 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000713fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000714if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000715 if test "$ac_srcdir_defaulted" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +0000716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000718 else
Martin v. Löwis11437992002-04-12 09:54:03 +0000719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000721 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000722fi
Martin v. Löwis11437992002-04-12 09:54:03 +0000723srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724ac_env_build_alias_set=${build_alias+set}
725ac_env_build_alias_value=$build_alias
726ac_cv_env_build_alias_set=${build_alias+set}
727ac_cv_env_build_alias_value=$build_alias
728ac_env_host_alias_set=${host_alias+set}
729ac_env_host_alias_value=$host_alias
730ac_cv_env_host_alias_set=${host_alias+set}
731ac_cv_env_host_alias_value=$host_alias
732ac_env_target_alias_set=${target_alias+set}
733ac_env_target_alias_value=$target_alias
734ac_cv_env_target_alias_set=${target_alias+set}
735ac_cv_env_target_alias_value=$target_alias
736ac_env_CC_set=${CC+set}
737ac_env_CC_value=$CC
738ac_cv_env_CC_set=${CC+set}
739ac_cv_env_CC_value=$CC
740ac_env_CFLAGS_set=${CFLAGS+set}
741ac_env_CFLAGS_value=$CFLAGS
742ac_cv_env_CFLAGS_set=${CFLAGS+set}
743ac_cv_env_CFLAGS_value=$CFLAGS
744ac_env_LDFLAGS_set=${LDFLAGS+set}
745ac_env_LDFLAGS_value=$LDFLAGS
746ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747ac_cv_env_LDFLAGS_value=$LDFLAGS
748ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749ac_env_CPPFLAGS_value=$CPPFLAGS
750ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752ac_env_CPP_set=${CPP+set}
753ac_env_CPP_value=$CPP
754ac_cv_env_CPP_set=${CPP+set}
755ac_cv_env_CPP_value=$CPP
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000756
Martin v. Löwis11437992002-04-12 09:54:03 +0000757#
758# Report the --help message.
759#
760if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
763 cat <<_ACEOF
764\`configure' configures this package to adapt to many kinds of systems.
765
766Usage: $0 [OPTION]... [VAR=VALUE]...
767
768To assign environment variables (e.g., CC, CFLAGS...), specify them as
769VAR=VALUE. See below for descriptions of some of the useful variables.
770
771Defaults for the options are specified in brackets.
772
773Configuration:
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783
784_ACEOF
785
786 cat <<_ACEOF
787Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
789 [$ac_default_prefix]
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
791 [PREFIX]
792
793By default, \`make install' will install all the files in
794\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796for instance \`--prefix=\$HOME'.
797
798For better control, use the options below.
799
800Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
813_ACEOF
814
815 cat <<\_ACEOF
816_ACEOF
817fi
818
819if test -n "$ac_init_help"; then
820
821 cat <<\_ACEOF
822
823Optional Features:
824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
826 --enable-framework=INSTALLDIR Build (MacOSX|Darwin) framework
827 --enable-shared disable/enable building shared python library
828 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
829 --enable-ipv6 Enable ipv6 (with ipv4) support
830 --disable-ipv6 Disable ipv6 support
831 --enable-unicode=ucs2,ucs4 Enable Unicode strings (default is yes)
832
833Optional Packages:
834 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
835 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
836 --without-gcc never use gcc
837 --with-cxx=<compiler> enable C++ support
838 --with-suffix=.exe set executable suffix
839 --with-pydebug build with Py_DEBUG defined
840 --with-libs='lib1 ...' link against additional libs
841 --with-signal-module disable/enable signal module
842 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
843 --with(out)-threads=DIRECTORY disable/enable thread support
844 --with(out)-thread=DIRECTORY deprecated; use --with(out)-threads
845 --with-pth use GNU pth threading libraries
Jack Jansen7b8c7542002-04-14 20:12:41 +0000846 --with(out)-universal-newlines disable/enable foreign newlines
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +0000847 --with(out)-doc-strings disable/enable documentation strings
Martin v. Löwis11437992002-04-12 09:54:03 +0000848 --with(out)-pymalloc disable/enable specialized mallocs
849 --with-wctype-functions use wctype.h functions
850 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking
851 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking
852 --with-fpectl enable SIGFPE catching
853 --with-libm=STRING math library
854 --with-libc=STRING C library
855
856Some influential environment variables:
857 CC C compiler command
858 CFLAGS C compiler flags
859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860 nonstandard directory <lib dir>
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863 CPP C preprocessor
864
865Use these variables to override the choices made by `configure' or to help
866it to find libraries and programs with nonstandard names/locations.
867
868_ACEOF
869fi
870
871if test "$ac_init_help" = "recursive"; then
872 # If there are subdirs, report their specific --help.
873 ac_popdir=`pwd`
874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
875 test -d $ac_dir || continue
876 ac_builddir=.
877
878if test "$ac_dir" != .; then
879 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
880 # A "../" for each directory in $ac_dir_suffix.
881 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
882else
883 ac_dir_suffix= ac_top_builddir=
884fi
885
886case $srcdir in
887 .) # No --srcdir option. We are building in place.
888 ac_srcdir=.
889 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=.
891 else
892 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
893 fi ;;
894 [\\/]* | ?:[\\/]* ) # Absolute path.
895 ac_srcdir=$srcdir$ac_dir_suffix;
896 ac_top_srcdir=$srcdir ;;
897 *) # Relative path.
898 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
899 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900esac
901# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
902# absolute.
903ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Martin v. Löwis19ff4462002-10-07 17:45:56 +0000904ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Martin v. Löwis11437992002-04-12 09:54:03 +0000905ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
906ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
907
908 cd $ac_dir
909 # Check for guested configure; otherwise get Cygnus style configure.
910 if test -f $ac_srcdir/configure.gnu; then
911 echo
912 $SHELL $ac_srcdir/configure.gnu --help=recursive
913 elif test -f $ac_srcdir/configure; then
914 echo
915 $SHELL $ac_srcdir/configure --help=recursive
916 elif test -f $ac_srcdir/configure.ac ||
917 test -f $ac_srcdir/configure.in; then
918 echo
919 $ac_configure --help
920 else
921 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922 fi
923 cd $ac_popdir
924 done
925fi
926
927test -n "$ac_init_help" && exit 0
928if $ac_init_version; then
929 cat <<\_ACEOF
930
931Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
932Free Software Foundation, Inc.
933This configure script is free software; the Free Software Foundation
934gives unlimited permission to copy, distribute and modify it.
935_ACEOF
936 exit 0
937fi
938exec 5>config.log
939cat >&5 <<_ACEOF
940This file contains any messages produced by compilers while
941running configure, to aid debugging if configure makes a mistake.
942
943It was created by $as_me, which was
944generated by GNU Autoconf 2.53. Invocation command line was
945
946 $ $0 $@
947
948_ACEOF
949{
950cat <<_ASUNAME
951## --------- ##
952## Platform. ##
953## --------- ##
954
955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
956uname -m = `(uname -m) 2>/dev/null || echo unknown`
957uname -r = `(uname -r) 2>/dev/null || echo unknown`
958uname -s = `(uname -s) 2>/dev/null || echo unknown`
959uname -v = `(uname -v) 2>/dev/null || echo unknown`
960
961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
963
964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
967hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
971
972_ASUNAME
973
974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
975for as_dir in $PATH
976do
977 IFS=$as_save_IFS
978 test -z "$as_dir" && as_dir=.
979 echo "PATH: $as_dir"
980done
981
982} >&5
983
984cat >&5 <<_ACEOF
985
986
987## ----------- ##
988## Core tests. ##
989## ----------- ##
990
991_ACEOF
992
993
994# Keep a trace of the command line.
995# Strip out --no-create and --no-recursion so they do not pile up.
996# Also quote any args containing shell meta-characters.
997ac_configure_args=
998ac_sep=
999for ac_arg
1000do
1001 case $ac_arg in
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n ) continue ;;
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 continue ;;
1007 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 esac
1010 case " $ac_configure_args " in
1011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1012 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1013 ac_sep=" " ;;
1014 esac
1015 # Get rid of the leading space.
1016done
1017
1018# When interrupted or exit'd, cleanup temporary files, and complete
1019# config.log. We remove comments because anyway the quotes in there
1020# would cause problems or look ugly.
1021# WARNING: Be sure not to use single quotes in there, as some shells,
1022# such as our DU 5.0 friend, will then `close' the trap.
1023trap 'exit_status=$?
1024 # Save into config.log some information that might help in debugging.
1025 {
1026 echo
1027 cat <<\_ASBOX
1028## ---------------- ##
1029## Cache variables. ##
1030## ---------------- ##
1031_ASBOX
1032 echo
1033 # The following way of writing the cache mishandles newlines in values,
1034{
1035 (set) 2>&1 |
1036 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1037 *ac_space=\ *)
1038 sed -n \
1039 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1041 ;;
1042 *)
1043 sed -n \
1044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 ;;
1046 esac;
1047}
1048 echo
1049 if test -s confdefs.h; then
1050 cat <<\_ASBOX
1051## ----------- ##
1052## confdefs.h. ##
1053## ----------- ##
1054_ASBOX
1055 echo
1056 sed "/^$/d" confdefs.h
1057 echo
1058 fi
1059 test "$ac_signal" != 0 &&
1060 echo "$as_me: caught signal $ac_signal"
1061 echo "$as_me: exit $exit_status"
1062 } >&5
1063 rm -f core core.* *.core &&
1064 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1065 exit $exit_status
1066 ' 0
1067for ac_signal in 1 2 13 15; do
1068 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1069done
1070ac_signal=0
1071
1072# confdefs.h avoids OS command line length limits that DEFS can exceed.
1073rm -rf conftest* confdefs.h
1074# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1075echo >confdefs.h
1076
1077# Predefined preprocessor variables.
1078
1079cat >>confdefs.h <<_ACEOF
1080#define PACKAGE_NAME "$PACKAGE_NAME"
1081_ACEOF
1082
1083
1084cat >>confdefs.h <<_ACEOF
1085#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1086_ACEOF
1087
1088
1089cat >>confdefs.h <<_ACEOF
1090#define PACKAGE_VERSION "$PACKAGE_VERSION"
1091_ACEOF
1092
1093
1094cat >>confdefs.h <<_ACEOF
1095#define PACKAGE_STRING "$PACKAGE_STRING"
1096_ACEOF
1097
1098
1099cat >>confdefs.h <<_ACEOF
1100#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1101_ACEOF
1102
1103
1104# Let the site file select an alternate cache file if it wants to.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001105# Prefer explicitly selected file to automatically selected ones.
1106if test -z "$CONFIG_SITE"; then
1107 if test "x$prefix" != xNONE; then
1108 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1109 else
1110 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1111 fi
1112fi
1113for ac_site_file in $CONFIG_SITE; do
1114 if test -r "$ac_site_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001115 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1116echo "$as_me: loading site script $ac_site_file" >&6;}
1117 sed 's/^/| /' "$ac_site_file" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001118 . "$ac_site_file"
1119 fi
1120done
1121
1122if test -r "$cache_file"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001123 # Some versions of bash will fail to source /dev/null (special
1124 # files actually), so we avoid doing that.
1125 if test -f "$cache_file"; then
1126 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1127echo "$as_me: loading cache $cache_file" >&6;}
1128 case $cache_file in
1129 [\\/]* | ?:[\\/]* ) . $cache_file;;
1130 *) . ./$cache_file;;
1131 esac
1132 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001133else
Martin v. Löwis11437992002-04-12 09:54:03 +00001134 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1135echo "$as_me: creating cache $cache_file" >&6;}
1136 >$cache_file
1137fi
1138
1139# Check that the precious variables saved in the cache have kept the same
1140# value.
1141ac_cache_corrupted=false
1142for ac_var in `(set) 2>&1 |
1143 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1144 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1145 eval ac_new_set=\$ac_env_${ac_var}_set
1146 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1147 eval ac_new_val="\$ac_env_${ac_var}_value"
1148 case $ac_old_set,$ac_new_set in
1149 set,)
1150 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1151echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1152 ac_cache_corrupted=: ;;
1153 ,set)
1154 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1155echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1156 ac_cache_corrupted=: ;;
1157 ,);;
1158 *)
1159 if test "x$ac_old_val" != "x$ac_new_val"; then
1160 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1161echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1162 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1163echo "$as_me: former value: $ac_old_val" >&2;}
1164 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1165echo "$as_me: current value: $ac_new_val" >&2;}
1166 ac_cache_corrupted=:
1167 fi;;
1168 esac
1169 # Pass precious variables to config.status.
1170 if test "$ac_new_set" = set; then
1171 case $ac_new_val in
1172 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1174 *) ac_arg=$ac_var=$ac_new_val ;;
1175 esac
1176 case " $ac_configure_args " in
1177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1178 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1179 esac
1180 fi
1181done
1182if $ac_cache_corrupted; then
1183 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1184echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1185 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1186echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1187 { (exit 1); exit 1; }; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001188fi
1189
Guido van Rossum7f43da71994-08-01 12:15:30 +00001190ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001191ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00001192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001195
Guido van Rossum627b2d71993-12-24 10:39:16 +00001196
Michael W. Hudson54241132001-12-07 15:38:26 +00001197
1198
Guido van Rossum627b2d71993-12-24 10:39:16 +00001199
Martin v. Löwis11437992002-04-12 09:54:03 +00001200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213ac_config_headers="$ac_config_headers pyconfig.h"
1214
1215
1216# This is for stuff that absolutely must end up in pyconfig.h.
1217# Please use pyport.h instead, if possible.
1218
1219
1220
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001221# Set VERSION so we only need to edit in one place (i.e., here)
1222
Andrew M. Kuchlingf2f219d2002-02-11 16:31:10 +00001223VERSION=2.3
Guido van Rossum1fd74a71997-07-19 19:36:02 +00001224
Martin v. Löwis1142de32002-03-29 16:28:31 +00001225
1226SOVERSION=1.0
1227
Martin v. Löwis6f18a3c2002-07-20 08:51:52 +00001228# The later defininition of _XOPEN_SOURCE disables certain features
1229# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1230
1231cat >>confdefs.h <<\_ACEOF
1232#define _GNU_SOURCE 1
1233_ACEOF
1234
1235
1236# The definition of _GNU_SOURCE potentially causes a change of the value
1237# of _XOPEN_SOURCE. So define it only conditionally.
1238
1239
1240cat >>confdefs.h <<\_ACEOF
1241#define _XOPEN_SOURCE 500
1242_ACEOF
1243
1244
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00001245# Arguments passed to configure.
1246
1247CONFIG_ARGS="$ac_configure_args"
1248
Michael W. Hudson54241132001-12-07 15:38:26 +00001249
Jack Jansene578a632001-08-15 01:27:14 +00001250# Check whether --enable-framework or --disable-framework was given.
1251if test "${enable_framework+set}" = set; then
1252 enableval="$enable_framework"
Martin v. Löwis11437992002-04-12 09:54:03 +00001253
Jack Jansene578a632001-08-15 01:27:14 +00001254 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:03 +00001255 yes)
Jack Jansene578a632001-08-15 01:27:14 +00001256 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:54 +00001257 esac
1258 case $enableval in
1259 no)
1260 PYTHONFRAMEWORK=
1261 PYTHONFRAMEWORKDIR=no-framework
1262 PYTHONFRAMEWORKPREFIX=
1263 PYTHONFRAMEWORKINSTALLDIR=
1264 enable_framework=
Jack Jansene578a632001-08-15 01:27:14 +00001265 ;;
1266 *)
Jack Jansen127e56e2001-09-11 14:41:54 +00001267 PYTHONFRAMEWORK=Python
1268 PYTHONFRAMEWORKDIR=Python.framework
Jack Jansene578a632001-08-15 01:27:14 +00001269 PYTHONFRAMEWORKPREFIX=$enableval
Jack Jansen127e56e2001-09-11 14:41:54 +00001270 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1271 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Jack Jansene578a632001-08-15 01:27:14 +00001272 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001273
Guido van Rossum563e7081996-09-10 18:20:48 +00001274else
Martin v. Löwis11437992002-04-12 09:54:03 +00001275
Jack Jansene578a632001-08-15 01:27:14 +00001276 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:54 +00001277 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:14 +00001278 PYTHONFRAMEWORKPREFIX=
1279 PYTHONFRAMEWORKINSTALLDIR=
1280 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001281
Martin v. Löwis11437992002-04-12 09:54:03 +00001282fi;
Michael W. Hudson54241132001-12-07 15:38:26 +00001283
1284
1285
1286
Jack Jansene578a632001-08-15 01:27:14 +00001287
1288##AC_ARG_WITH(dyld,
1289##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,)
1290##
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001291# Set name for machine-dependent library files
1292
Martin v. Löwis11437992002-04-12 09:54:03 +00001293echo "$as_me:$LINENO: checking MACHDEP" >&5
1294echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001295if test -z "$MACHDEP"
1296then
Guido van Rossum563e7081996-09-10 18:20:48 +00001297 ac_sys_system=`uname -s`
Martin v. Löwis21ee4092002-09-30 16:19:48 +00001298 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1299 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:48 +00001300 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001301 else
Guido van Rossum563e7081996-09-10 18:20:48 +00001302 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001303 fi
Guido van Rossum563e7081996-09-10 18:20:48 +00001304 ac_md_system=`echo $ac_sys_system |
1305 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1306 ac_md_release=`echo $ac_sys_release |
Guido van Rossum67b26592001-10-20 14:21:45 +00001307 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +00001308 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +00001309
Guido van Rossum07397971997-04-29 21:49:50 +00001310 case $MACHDEP in
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:04 +00001311 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:32 +00001312 darwin*) MACHDEP="darwin";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00001313 atheos*) MACHDEP="atheos";;
Guido van Rossumb97ef171997-09-28 05:44:03 +00001314 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001315 esac
1316fi
Guido van Rossum91922671997-10-09 20:24:13 +00001317
1318#
1319# SGI compilers allow the specification of the both the ABI and the
1320# ISA on the command line. Depending on the values of these switches,
1321# different and often incompatable code will be generated.
1322#
1323# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
1324# thus supply support for various ABI/ISA combinations. The MACHDEP
1325# variable is also adjusted.
1326#
1327
1328if test ! -z "$SGI_ABI"
1329then
1330 CC="cc $SGI_ABI"
1331 LDFLAGS="$SGI_ABI $LDFLAGS"
1332 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
1333fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001334echo "$as_me:$LINENO: result: $MACHDEP" >&5
1335echo "${ECHO_T}$MACHDEP" >&6
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001336
Guido van Rossum627b2d71993-12-24 10:39:16 +00001337# checks for alternative programs
Martin v. Löwis11437992002-04-12 09:54:03 +00001338echo "$as_me:$LINENO: checking for --without-gcc" >&5
1339echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6
1340
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001341# Check whether --with-gcc or --without-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001342if test "${with_gcc+set}" = set; then
1343 withval="$with_gcc"
Martin v. Löwis11437992002-04-12 09:54:03 +00001344
Guido van Rossum7f43da71994-08-01 12:15:30 +00001345 case $withval in
Guido van Rossumda88dad1995-01-26 00:46:29 +00001346 no) CC=cc
1347 without_gcc=yes;;
1348 yes) CC=gcc
1349 without_gcc=no;;
1350 *) CC=$withval
1351 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00001352 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +00001353else
Martin v. Löwis11437992002-04-12 09:54:03 +00001354
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001355 case $ac_sys_system in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00001356 AIX*) CC=cc_r
1357 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001358 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001359 case $BE_HOST_CPU in
1360 ppc)
Fred Drake5790be12000-10-09 17:06:13 +00001361 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001362 without_gcc=yes
Mark Hammond8235ea12002-07-19 06:55:41 +00001363 OPT="-O -export pragma"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001364 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001365 ;;
1366 x86)
Fred Drake5790be12000-10-09 17:06:13 +00001367 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001368 without_gcc=no
Fred Drake5790be12000-10-09 17:06:13 +00001369 OPT=-O
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001370 ;;
1371 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00001372 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
1373echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
1374 { (exit 1); exit 1; }; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001375 ;;
1376 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00001377 AR="\$(srcdir)/Modules/ar_beos"
1378 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +00001379 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +00001380 Monterey*)
1381 RANLIB=:
Martin v. Löwis130fb172001-07-19 11:00:41 +00001382 without_gcc=;;
1383 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:59 +00001384 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00001385fi;
1386echo "$as_me:$LINENO: result: $without_gcc" >&5
1387echo "${ECHO_T}$without_gcc" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00001388
1389
Guido van Rossum95012191999-12-16 17:50:52 +00001390
Fred Drakea1a84e72001-03-06 05:52:16 +00001391MAINOBJ=python.o
Martin v. Löwis11437992002-04-12 09:54:03 +00001392echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5
1393echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6
1394
Guido van Rossum95012191999-12-16 17:50:52 +00001395# Check whether --with-cxx or --without-cxx was given.
1396if test "${with_cxx+set}" = set; then
1397 withval="$with_cxx"
Martin v. Löwis11437992002-04-12 09:54:03 +00001398
Martin v. Löwis22352952000-12-13 17:37:02 +00001399 check_cxx=no
Guido van Rossum95012191999-12-16 17:50:52 +00001400 case $withval in
1401 no) CXX=
1402 with_cxx=no;;
1403 *) CXX=$withval
Fred Drakea1a84e72001-03-06 05:52:16 +00001404 MAINOBJ=ccpython.o
Guido van Rossum95012191999-12-16 17:50:52 +00001405 with_cxx=$withval;;
1406 esac
1407else
Martin v. Löwis11437992002-04-12 09:54:03 +00001408
Guido van Rossum95012191999-12-16 17:50:52 +00001409 with_cxx=no
Martin v. Löwis22352952000-12-13 17:37:02 +00001410 check_cxx=yes
Guido van Rossum95012191999-12-16 17:50:52 +00001411
Martin v. Löwis11437992002-04-12 09:54:03 +00001412fi;
1413echo "$as_me:$LINENO: result: $with_cxx" >&5
1414echo "${ECHO_T}$with_cxx" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00001415
1416if test "$with_cxx" = "yes"
1417then
Martin v. Löwis11437992002-04-12 09:54:03 +00001418 { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5
1419echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;}
1420 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00001421fi
1422
1423
1424
1425
Martin v. Löwis11437992002-04-12 09:54:03 +00001426if test "$check_cxx" = "yes"
Martin v. Löwis22352952000-12-13 17:37:02 +00001427then
1428 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1429do
Martin v. Löwis11437992002-04-12 09:54:03 +00001430 # Extract the first word of "$ac_prog", so it can be a program name with args.
Martin v. Löwis22352952000-12-13 17:37:02 +00001431set dummy $ac_prog; ac_word=$2
Martin v. Löwis11437992002-04-12 09:54:03 +00001432echo "$as_me:$LINENO: checking for $ac_word" >&5
1433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434if test "${ac_cv_prog_CXX+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis22352952000-12-13 17:37:02 +00001436else
1437 if test -n "$CXX"; then
1438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1439else
Martin v. Löwis11437992002-04-12 09:54:03 +00001440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_CXX="$ac_prog"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 break 2
1450 fi
1451done
1452done
1453
Martin v. Löwis22352952000-12-13 17:37:02 +00001454fi
1455fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001456CXX=$ac_cv_prog_CXX
Martin v. Löwis22352952000-12-13 17:37:02 +00001457if test -n "$CXX"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001458 echo "$as_me:$LINENO: result: $CXX" >&5
1459echo "${ECHO_T}$CXX" >&6
Martin v. Löwis22352952000-12-13 17:37:02 +00001460else
Martin v. Löwis11437992002-04-12 09:54:03 +00001461 echo "$as_me:$LINENO: result: no" >&5
1462echo "${ECHO_T}no" >&6
Martin v. Löwis22352952000-12-13 17:37:02 +00001463fi
1464
Martin v. Löwis11437992002-04-12 09:54:03 +00001465 test -n "$CXX" && break
Martin v. Löwis22352952000-12-13 17:37:02 +00001466done
1467test -n "$CXX" || CXX="notfound"
1468
1469 if test "$CXX" = "notfound"
1470 then
1471 CXX=
1472 else
Martin v. Löwis11437992002-04-12 09:54:03 +00001473 ac_ext=cc
Martin v. Löwis22352952000-12-13 17:37:02 +00001474ac_cpp='$CXXCPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:03 +00001475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1478 cat >conftest.$ac_ext <<_ACEOF
1479#line $LINENO "configure"
Martin v. Löwis22352952000-12-13 17:37:02 +00001480#include "confdefs.h"
1481
Martin v. Löwis11437992002-04-12 09:54:03 +00001482#ifdef F77_DUMMY_MAIN
1483# ifdef __cplusplus
1484 extern "C"
1485# endif
1486 int F77_DUMMY_MAIN() { return 1; }
1487#endif
1488int
1489main ()
1490{
Michael W. Hudson54241132001-12-07 15:38:26 +00001491
Martin v. Löwis11437992002-04-12 09:54:03 +00001492 ;
1493 return 0;
1494}
1495_ACEOF
1496ac_clean_files_save=$ac_clean_files
1497ac_clean_files="$ac_clean_files a.out a.exe"
1498# Try to create an executable without -o first, disregard a.out.
1499# It will help us diagnose broken compilers, and finding out an intuition
1500# of exeext.
1501echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1502echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1503ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1504if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1505 (eval $ac_link_default) 2>&5
1506 ac_status=$?
1507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1508 (exit $ac_status); }; then
1509 # Find the output, starting from the most likely. This scheme is
1510# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1511# resort.
1512
1513# Be careful to initialize this variable, since it used to be cached.
1514# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1515ac_cv_exeext=
1516for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1517 ls a.out conftest 2>/dev/null;
1518 ls a.* conftest.* 2>/dev/null`; do
1519 case $ac_file in
1520 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1521 a.out ) # We found the default executable, but exeext='' is most
1522 # certainly right.
1523 break;;
1524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1525 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1526 export ac_cv_exeext
1527 break;;
1528 * ) break;;
1529 esac
1530done
1531else
1532 echo "$as_me: failed program was:" >&5
1533cat conftest.$ac_ext >&5
1534{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1535echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1536 { (exit 77); exit 77; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00001537fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001538
1539ac_exeext=$ac_cv_exeext
1540echo "$as_me:$LINENO: result: $ac_file" >&5
1541echo "${ECHO_T}$ac_file" >&6
1542
1543# Check the compiler produces executables we can run. If not, either
1544# the compiler is broken, or we cross compile.
1545echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1546echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1547# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1548# If not cross compiling, check that we can run a simple program.
1549if test "$cross_compiling" != yes; then
1550 if { ac_try='./$ac_file'
1551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1552 (eval $ac_try) 2>&5
1553 ac_status=$?
1554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1555 (exit $ac_status); }; }; then
1556 cross_compiling=no
1557 else
1558 if test "$cross_compiling" = maybe; then
1559 cross_compiling=yes
1560 else
1561 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1562If you meant to cross compile, use \`--host'." >&5
1563echo "$as_me: error: cannot run C++ compiled programs.
1564If you meant to cross compile, use \`--host'." >&2;}
1565 { (exit 1); exit 1; }; }
1566 fi
1567 fi
1568fi
1569echo "$as_me:$LINENO: result: yes" >&5
1570echo "${ECHO_T}yes" >&6
1571
1572rm -f a.out a.exe conftest$ac_cv_exeext
1573ac_clean_files=$ac_clean_files_save
1574# Check the compiler produces executables we can run. If not, either
1575# the compiler is broken, or we cross compile.
1576echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1577echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1578echo "$as_me:$LINENO: result: $cross_compiling" >&5
1579echo "${ECHO_T}$cross_compiling" >&6
1580
1581echo "$as_me:$LINENO: checking for suffix of executables" >&5
1582echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1584 (eval $ac_link) 2>&5
1585 ac_status=$?
1586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1587 (exit $ac_status); }; then
1588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1590# work properly (i.e., refer to `conftest.exe'), while it won't with
1591# `rm'.
1592for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1593 case $ac_file in
1594 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1596 export ac_cv_exeext
1597 break;;
1598 * ) break;;
1599 esac
1600done
1601else
1602 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1603echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1604 { (exit 1); exit 1; }; }
1605fi
1606
1607rm -f conftest$ac_cv_exeext
1608echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1609echo "${ECHO_T}$ac_cv_exeext" >&6
1610
1611rm -f conftest.$ac_ext
1612EXEEXT=$ac_cv_exeext
1613ac_exeext=$EXEEXT
1614
1615 ac_ext=c
1616ac_cpp='$CPP $CPPFLAGS'
1617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1619ac_compiler_gnu=$ac_cv_c_compiler_gnu
1620
1621
Martin v. Löwis22352952000-12-13 17:37:02 +00001622
1623 fi
1624fi
1625
Guido van Rossum8b131c51995-03-09 14:10:13 +00001626# If the user switches compilers, we can't believe the cache
1627if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
1628then
Martin v. Löwis11437992002-04-12 09:54:03 +00001629 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
1630(it is also a good idea to do 'make clean' before compiling)" >&5
1631echo "$as_me: error: cached CC is different -- throw away $cache_file
1632(it is also a good idea to do 'make clean' before compiling)" >&2;}
1633 { (exit 1); exit 1; }; }
Guido van Rossum8b131c51995-03-09 14:10:13 +00001634fi
1635
Martin v. Löwis11437992002-04-12 09:54:03 +00001636ac_ext=c
1637ac_cpp='$CPP $CPPFLAGS'
1638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1640ac_compiler_gnu=$ac_cv_c_compiler_gnu
1641if test -n "$ac_tool_prefix"; then
1642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1643set dummy ${ac_tool_prefix}gcc; ac_word=$2
1644echo "$as_me:$LINENO: checking for $ac_word" >&5
1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646if test "${ac_cv_prog_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001648else
1649 if test -n "$CC"; then
1650 ac_cv_prog_CC="$CC" # Let the user override the test.
1651else
Martin v. Löwis11437992002-04-12 09:54:03 +00001652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1662 fi
1663done
1664done
1665
Jack Jansendd19cf82001-12-06 22:36:17 +00001666fi
1667fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001668CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:17 +00001669if test -n "$CC"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001670 echo "$as_me:$LINENO: result: $CC" >&5
1671echo "${ECHO_T}$CC" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00001672else
Martin v. Löwis11437992002-04-12 09:54:03 +00001673 echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677fi
1678if test -z "$ac_cv_prog_CC"; then
1679 ac_ct_CC=$CC
1680 # Extract the first word of "gcc", so it can be a program name with args.
1681set dummy gcc; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687 if test -n "$ac_ct_CC"; then
1688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_ac_ct_CC="gcc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701done
1702done
1703
1704fi
1705fi
1706ac_ct_CC=$ac_cv_prog_ac_ct_CC
1707if test -n "$ac_ct_CC"; then
1708 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1709echo "${ECHO_T}$ac_ct_CC" >&6
1710else
1711 echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715 CC=$ac_ct_CC
1716else
1717 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:17 +00001718fi
1719
Jack Jansendd19cf82001-12-06 22:36:17 +00001720if test -z "$CC"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001721 if test -n "$ac_tool_prefix"; then
1722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1723set dummy ${ac_tool_prefix}cc; ac_word=$2
1724echo "$as_me:$LINENO: checking for $ac_word" >&5
1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726if test "${ac_cv_prog_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00001728else
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1731else
Martin v. Löwis11437992002-04-12 09:54:03 +00001732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_CC="${ac_tool_prefix}cc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1742 fi
1743done
1744done
1745
1746fi
1747fi
1748CC=$ac_cv_prog_CC
1749if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751echo "${ECHO_T}$CC" >&6
1752else
1753 echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757fi
1758if test -z "$ac_cv_prog_CC"; then
1759 ac_ct_CC=$CC
1760 # Extract the first word of "cc", so it can be a program name with args.
1761set dummy cc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 if test -n "$ac_ct_CC"; then
1768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1769else
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_ac_ct_CC="cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1780 fi
1781done
1782done
1783
1784fi
1785fi
1786ac_ct_CC=$ac_cv_prog_ac_ct_CC
1787if test -n "$ac_ct_CC"; then
1788 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1789echo "${ECHO_T}$ac_ct_CC" >&6
1790else
1791 echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793fi
1794
1795 CC=$ac_ct_CC
1796else
1797 CC="$ac_cv_prog_CC"
1798fi
1799
1800fi
1801if test -z "$CC"; then
1802 # Extract the first word of "cc", so it can be a program name with args.
1803set dummy cc; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1811else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001812 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:03 +00001813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814for as_dir in $PATH
1815do
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1821 ac_prog_rejected=yes
1822 continue
1823 fi
1824 ac_cv_prog_CC="cc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001831if test $ac_prog_rejected = yes; then
1832 # We found a bogon in the path, so make sure we never use it.
1833 set dummy $ac_cv_prog_CC
1834 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00001835 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001836 # We chose a different compiler from the bogus one.
1837 # However, it has the same basename, so the bogon will be chosen
1838 # first if we set CC to just the basename; use the full file name.
1839 shift
Martin v. Löwis11437992002-04-12 09:54:03 +00001840 set dummy "$as_dir/$ac_word" ${1+"$@"}
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001841 shift
1842 ac_cv_prog_CC="$@"
1843 fi
1844fi
1845fi
1846fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001847CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001848if test -n "$CC"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00001849 echo "$as_me:$LINENO: result: $CC" >&5
1850echo "${ECHO_T}$CC" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001851else
Martin v. Löwis11437992002-04-12 09:54:03 +00001852 echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001854fi
1855
Martin v. Löwis11437992002-04-12 09:54:03 +00001856fi
1857if test -z "$CC"; then
1858 if test -n "$ac_tool_prefix"; then
1859 for ac_prog in cl
1860 do
1861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001867else
1868 if test -n "$CC"; then
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1870else
Martin v. Löwis11437992002-04-12 09:54:03 +00001871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 break 2
Guido van Rossumf78abae1997-01-21 22:02:36 +00001881 fi
Martin v. Löwis11437992002-04-12 09:54:03 +00001882done
1883done
1884
1885fi
1886fi
1887CC=$ac_cv_prog_CC
1888if test -n "$CC"; then
1889 echo "$as_me:$LINENO: result: $CC" >&5
1890echo "${ECHO_T}$CC" >&6
1891else
1892 echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00001894fi
1895
Martin v. Löwis11437992002-04-12 09:54:03 +00001896 test -n "$CC" && break
1897 done
1898fi
1899if test -z "$CC"; then
1900 ac_ct_CC=$CC
1901 for ac_prog in cl
1902do
1903 # Extract the first word of "$ac_prog", so it can be a program name with args.
1904set dummy $ac_prog; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912else
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_ac_ct_CC="$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922 break 2
1923 fi
1924done
1925done
Jack Jansendd19cf82001-12-06 22:36:17 +00001926
Martin v. Löwis11437992002-04-12 09:54:03 +00001927fi
1928fi
1929ac_ct_CC=$ac_cv_prog_ac_ct_CC
1930if test -n "$ac_ct_CC"; then
1931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1932echo "${ECHO_T}$ac_ct_CC" >&6
1933else
1934 echo "$as_me:$LINENO: result: no" >&5
1935echo "${ECHO_T}no" >&6
1936fi
Michael W. Hudson54241132001-12-07 15:38:26 +00001937
Martin v. Löwis11437992002-04-12 09:54:03 +00001938 test -n "$ac_ct_CC" && break
1939done
Michael W. Hudson54241132001-12-07 15:38:26 +00001940
Martin v. Löwis11437992002-04-12 09:54:03 +00001941 CC=$ac_ct_CC
1942fi
1943
1944fi
1945
1946
1947test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1948echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1949 { (exit 1); exit 1; }; }
1950
1951# Provide some information about the compiler.
1952echo "$as_me:$LINENO:" \
1953 "checking for C compiler version" >&5
1954ac_compiler=`set X $ac_compile; echo $2`
1955{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1956 (eval $ac_compiler --version </dev/null >&5) 2>&5
1957 ac_status=$?
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); }
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1961 (eval $ac_compiler -v </dev/null >&5) 2>&5
1962 ac_status=$?
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1966 (eval $ac_compiler -V </dev/null >&5) 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970
1971cat >conftest.$ac_ext <<_ACEOF
1972#line $LINENO "configure"
Jack Jansendd19cf82001-12-06 22:36:17 +00001973#include "confdefs.h"
1974
Martin v. Löwis11437992002-04-12 09:54:03 +00001975#ifdef F77_DUMMY_MAIN
1976# ifdef __cplusplus
1977 extern "C"
1978# endif
1979 int F77_DUMMY_MAIN() { return 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001980#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00001981int
1982main ()
1983{
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989ac_clean_files_save=$ac_clean_files
1990ac_clean_files="$ac_clean_files a.out a.exe"
1991# Try to create an executable without -o first, disregard a.out.
1992# It will help us diagnose broken compilers, and finding out an intuition
1993# of exeext.
1994echo "$as_me:$LINENO: checking for C compiler default output" >&5
1995echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1996ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998 (eval $ac_link_default) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # Find the output, starting from the most likely. This scheme is
2003# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004# resort.
2005
2006# Be careful to initialize this variable, since it used to be cached.
2007# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008ac_cv_exeext=
2009for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2010 ls a.out conftest 2>/dev/null;
2011 ls a.* conftest.* 2>/dev/null`; do
2012 case $ac_file in
2013 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2014 a.out ) # We found the default executable, but exeext='' is most
2015 # certainly right.
2016 break;;
2017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2018 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2019 export ac_cv_exeext
2020 break;;
2021 * ) break;;
2022 esac
2023done
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002024else
Martin v. Löwis11437992002-04-12 09:54:03 +00002025 echo "$as_me: failed program was:" >&5
2026cat conftest.$ac_ext >&5
2027{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2028echo "$as_me: error: C compiler cannot create executables" >&2;}
2029 { (exit 77); exit 77; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002030fi
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002031
Martin v. Löwis11437992002-04-12 09:54:03 +00002032ac_exeext=$ac_cv_exeext
2033echo "$as_me:$LINENO: result: $ac_file" >&5
2034echo "${ECHO_T}$ac_file" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002035
Martin v. Löwis11437992002-04-12 09:54:03 +00002036# Check the compiler produces executables we can run. If not, either
2037# the compiler is broken, or we cross compile.
2038echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2039echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2040# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2041# If not cross compiling, check that we can run a simple program.
2042if test "$cross_compiling" != yes; then
2043 if { ac_try='./$ac_file'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 cross_compiling=no
2050 else
2051 if test "$cross_compiling" = maybe; then
2052 cross_compiling=yes
2053 else
2054 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2055If you meant to cross compile, use \`--host'." >&5
2056echo "$as_me: error: cannot run C compiled programs.
2057If you meant to cross compile, use \`--host'." >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060 fi
2061fi
2062echo "$as_me:$LINENO: result: yes" >&5
2063echo "${ECHO_T}yes" >&6
2064
2065rm -f a.out a.exe conftest$ac_cv_exeext
2066ac_clean_files=$ac_clean_files_save
2067# Check the compiler produces executables we can run. If not, either
2068# the compiler is broken, or we cross compile.
2069echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2070echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2071echo "$as_me:$LINENO: result: $cross_compiling" >&5
2072echo "${ECHO_T}$cross_compiling" >&6
2073
2074echo "$as_me:$LINENO: checking for suffix of executables" >&5
2075echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2077 (eval $ac_link) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; then
2081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2082# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2083# work properly (i.e., refer to `conftest.exe'), while it won't with
2084# `rm'.
2085for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2086 case $ac_file in
2087 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 export ac_cv_exeext
2090 break;;
2091 * ) break;;
2092 esac
2093done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002094else
Martin v. Löwis11437992002-04-12 09:54:03 +00002095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2096echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2097 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +00002098fi
Jack Jansendd19cf82001-12-06 22:36:17 +00002099
Martin v. Löwis11437992002-04-12 09:54:03 +00002100rm -f conftest$ac_cv_exeext
2101echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2102echo "${ECHO_T}$ac_cv_exeext" >&6
2103
2104rm -f conftest.$ac_ext
2105EXEEXT=$ac_cv_exeext
2106ac_exeext=$EXEEXT
2107echo "$as_me:$LINENO: checking for suffix of object files" >&5
2108echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2109if test "${ac_cv_objext+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002111else
Martin v. Löwis11437992002-04-12 09:54:03 +00002112 cat >conftest.$ac_ext <<_ACEOF
2113#line $LINENO "configure"
2114#include "confdefs.h"
2115
2116#ifdef F77_DUMMY_MAIN
2117# ifdef __cplusplus
2118 extern "C"
2119# endif
2120 int F77_DUMMY_MAIN() { return 1; }
2121#endif
2122int
2123main ()
2124{
2125
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130rm -f conftest.o conftest.obj
2131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2137 case $ac_file in
2138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2139 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2140 break;;
2141 esac
2142done
2143else
2144 echo "$as_me: failed program was:" >&5
2145cat conftest.$ac_ext >&5
2146{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2147echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2148 { (exit 1); exit 1; }; }
2149fi
2150
2151rm -f conftest.$ac_cv_objext conftest.$ac_ext
2152fi
2153echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2154echo "${ECHO_T}$ac_cv_objext" >&6
2155OBJEXT=$ac_cv_objext
2156ac_objext=$OBJEXT
2157echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2158echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2159if test "${ac_cv_c_compiler_gnu+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162 cat >conftest.$ac_ext <<_ACEOF
2163#line $LINENO "configure"
2164#include "confdefs.h"
2165
2166#ifdef F77_DUMMY_MAIN
2167# ifdef __cplusplus
2168 extern "C"
2169# endif
2170 int F77_DUMMY_MAIN() { return 1; }
2171#endif
2172int
2173main ()
2174{
2175#ifndef __GNUC__
2176 choke me
2177#endif
2178
2179 ;
2180 return 0;
2181}
2182_ACEOF
2183rm -f conftest.$ac_objext
2184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 ac_compiler_gnu=yes
2196else
2197 echo "$as_me: failed program was:" >&5
2198cat conftest.$ac_ext >&5
2199ac_compiler_gnu=no
2200fi
2201rm -f conftest.$ac_objext conftest.$ac_ext
2202ac_cv_c_compiler_gnu=$ac_compiler_gnu
2203
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2206echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2207GCC=`test $ac_compiler_gnu = yes && echo yes`
2208ac_test_CFLAGS=${CFLAGS+set}
2209ac_save_CFLAGS=$CFLAGS
2210CFLAGS="-g"
2211echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2213if test "${ac_cv_prog_cc_g+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216 cat >conftest.$ac_ext <<_ACEOF
2217#line $LINENO "configure"
2218#include "confdefs.h"
2219
2220#ifdef F77_DUMMY_MAIN
2221# ifdef __cplusplus
2222 extern "C"
2223# endif
2224 int F77_DUMMY_MAIN() { return 1; }
2225#endif
2226int
2227main ()
2228{
2229
2230 ;
2231 return 0;
2232}
2233_ACEOF
2234rm -f conftest.$ac_objext
2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00002246 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002247else
Martin v. Löwis11437992002-04-12 09:54:03 +00002248 echo "$as_me: failed program was:" >&5
2249cat conftest.$ac_ext >&5
2250ac_cv_prog_cc_g=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002251fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002252rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002253fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002254echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2255echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002256if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002257 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002258elif test $ac_cv_prog_cc_g = yes; then
2259 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00002260 CFLAGS="-g -O2"
2261 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002262 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002263 fi
2264else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002265 if test "$GCC" = yes; then
2266 CFLAGS="-O2"
2267 else
2268 CFLAGS=
2269 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002270fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002271# Some people use a C++ compiler to compile C. Since we use `exit',
2272# in C++ we need to declare it. In case someone uses the same compiler
2273# for both compiling C and C++ we need to have the C++ compiler decide
2274# the declaration of exit, since it's the most demanding environment.
2275cat >conftest.$ac_ext <<_ACEOF
2276#ifndef __cplusplus
2277 choke me
2278#endif
2279_ACEOF
2280rm -f conftest.$ac_objext
2281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 for ac_declaration in \
2293 ''\
2294 '#include <stdlib.h>' \
2295 'extern "C" void std::exit (int) throw (); using std::exit;' \
2296 'extern "C" void std::exit (int); using std::exit;' \
2297 'extern "C" void exit (int) throw ();' \
2298 'extern "C" void exit (int);' \
2299 'void exit (int);'
2300do
2301 cat >conftest.$ac_ext <<_ACEOF
2302#line $LINENO "configure"
2303#include "confdefs.h"
2304#include <stdlib.h>
2305$ac_declaration
2306#ifdef F77_DUMMY_MAIN
2307# ifdef __cplusplus
2308 extern "C"
2309# endif
2310 int F77_DUMMY_MAIN() { return 1; }
2311#endif
2312int
2313main ()
2314{
2315exit (42);
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 :
2333else
2334 echo "$as_me: failed program was:" >&5
2335cat conftest.$ac_ext >&5
2336continue
2337fi
2338rm -f conftest.$ac_objext conftest.$ac_ext
2339 cat >conftest.$ac_ext <<_ACEOF
2340#line $LINENO "configure"
2341#include "confdefs.h"
2342$ac_declaration
2343#ifdef F77_DUMMY_MAIN
2344# ifdef __cplusplus
2345 extern "C"
2346# endif
2347 int F77_DUMMY_MAIN() { return 1; }
2348#endif
2349int
2350main ()
2351{
2352exit (42);
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357rm -f conftest.$ac_objext
2358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 break
2370else
2371 echo "$as_me: failed program was:" >&5
2372cat conftest.$ac_ext >&5
2373fi
2374rm -f conftest.$ac_objext conftest.$ac_ext
2375done
2376rm -f conftest*
2377if test -n "$ac_declaration"; then
2378 echo '#ifdef __cplusplus' >>confdefs.h
2379 echo $ac_declaration >>confdefs.h
2380 echo '#endif' >>confdefs.h
2381fi
2382
2383else
2384 echo "$as_me: failed program was:" >&5
2385cat conftest.$ac_ext >&5
2386fi
2387rm -f conftest.$ac_objext conftest.$ac_ext
2388ac_ext=c
2389ac_cpp='$CPP $CPPFLAGS'
2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002393
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002394
2395# checks for UNIX variants that set C preprocessor variables
Martin v. Löwis11437992002-04-12 09:54:03 +00002396
2397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2403echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002404# On Suns, sometimes $CPP names a directory.
2405if test -n "$CPP" && test -d "$CPP"; then
2406 CPP=
2407fi
2408if test -z "$CPP"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002409 if test "${ac_cv_prog_CPP+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002411else
Martin v. Löwis11437992002-04-12 09:54:03 +00002412 # Double quotes because CPP needs to be expanded
2413 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2414 do
2415 ac_preproc_ok=false
2416for ac_c_preproc_warn_flag in '' yes
2417do
2418 # Use a header file that comes with gcc, so configuring glibc
2419 # with a fresh cross-compiler works.
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002420 # On the NeXT, cc -E runs the code through the compiler's parser,
Martin v. Löwis11437992002-04-12 09:54:03 +00002421 # not just through cpp. "Syntax error" is here to catch this case.
2422 cat >conftest.$ac_ext <<_ACEOF
2423#line $LINENO "configure"
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002424#include "confdefs.h"
2425#include <assert.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00002426 Syntax error
2427_ACEOF
2428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2430 ac_status=$?
2431 egrep -v '^ *\+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } >/dev/null; then
2436 if test -s conftest.err; then
2437 ac_cpp_err=$ac_c_preproc_warn_flag
2438 else
2439 ac_cpp_err=
2440 fi
2441else
2442 ac_cpp_err=yes
2443fi
2444if test -z "$ac_cpp_err"; then
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002445 :
2446else
Martin v. Löwis11437992002-04-12 09:54:03 +00002447 echo "$as_me: failed program was:" >&5
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002448 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002449 # Broken: fails on valid input.
2450continue
Jack Jansendd19cf82001-12-06 22:36:17 +00002451fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002452rm -f conftest.err conftest.$ac_ext
Jack Jansendd19cf82001-12-06 22:36:17 +00002453
Martin v. Löwis11437992002-04-12 09:54:03 +00002454 # OK, works on sane cases. Now check whether non-existent headers
2455 # can be detected and how.
2456 cat >conftest.$ac_ext <<_ACEOF
2457#line $LINENO "configure"
2458#include "confdefs.h"
2459#include <ac_nonexistent.h>
2460_ACEOF
2461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2463 ac_status=$?
2464 egrep -v '^ *\+' conftest.er1 >conftest.err
2465 rm -f conftest.er1
2466 cat conftest.err >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } >/dev/null; then
2469 if test -s conftest.err; then
2470 ac_cpp_err=$ac_c_preproc_warn_flag
2471 else
2472 ac_cpp_err=
2473 fi
2474else
2475 ac_cpp_err=yes
2476fi
2477if test -z "$ac_cpp_err"; then
2478 # Broken: success on invalid input.
2479continue
2480else
2481 echo "$as_me: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 # Passes both tests.
2484ac_preproc_ok=:
2485break
2486fi
2487rm -f conftest.err conftest.$ac_ext
2488
2489done
2490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2491rm -f conftest.err conftest.$ac_ext
2492if $ac_preproc_ok; then
2493 break
2494fi
2495
2496 done
2497 ac_cv_prog_CPP=$CPP
2498
2499fi
2500 CPP=$ac_cv_prog_CPP
2501else
2502 ac_cv_prog_CPP=$CPP
2503fi
2504echo "$as_me:$LINENO: result: $CPP" >&5
2505echo "${ECHO_T}$CPP" >&6
2506ac_preproc_ok=false
2507for ac_c_preproc_warn_flag in '' yes
2508do
2509 # Use a header file that comes with gcc, so configuring glibc
2510 # with a fresh cross-compiler works.
2511 # On the NeXT, cc -E runs the code through the compiler's parser,
2512 # not just through cpp. "Syntax error" is here to catch this case.
2513 cat >conftest.$ac_ext <<_ACEOF
2514#line $LINENO "configure"
2515#include "confdefs.h"
2516#include <assert.h>
2517 Syntax error
2518_ACEOF
2519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2521 ac_status=$?
2522 egrep -v '^ *\+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } >/dev/null; then
2527 if test -s conftest.err; then
2528 ac_cpp_err=$ac_c_preproc_warn_flag
2529 else
2530 ac_cpp_err=
2531 fi
2532else
2533 ac_cpp_err=yes
2534fi
2535if test -z "$ac_cpp_err"; then
2536 :
2537else
2538 echo "$as_me: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 # Broken: fails on valid input.
2541continue
2542fi
2543rm -f conftest.err conftest.$ac_ext
2544
2545 # OK, works on sane cases. Now check whether non-existent headers
2546 # can be detected and how.
2547 cat >conftest.$ac_ext <<_ACEOF
2548#line $LINENO "configure"
2549#include "confdefs.h"
2550#include <ac_nonexistent.h>
2551_ACEOF
2552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2554 ac_status=$?
2555 egrep -v '^ *\+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } >/dev/null; then
2560 if test -s conftest.err; then
2561 ac_cpp_err=$ac_c_preproc_warn_flag
2562 else
2563 ac_cpp_err=
2564 fi
2565else
2566 ac_cpp_err=yes
2567fi
2568if test -z "$ac_cpp_err"; then
2569 # Broken: success on invalid input.
2570continue
2571else
2572 echo "$as_me: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 # Passes both tests.
2575ac_preproc_ok=:
2576break
2577fi
2578rm -f conftest.err conftest.$ac_ext
2579
2580done
2581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2582rm -f conftest.err conftest.$ac_ext
2583if $ac_preproc_ok; then
2584 :
2585else
2586 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2587echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2588 { (exit 1); exit 1; }; }
2589fi
2590
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598
2599echo "$as_me:$LINENO: checking for AIX" >&5
2600echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2601cat >conftest.$ac_ext <<_ACEOF
2602#line $LINENO "configure"
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002603#include "confdefs.h"
2604#ifdef _AIX
2605 yes
2606#endif
2607
Martin v. Löwis11437992002-04-12 09:54:03 +00002608_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002614#define _ALL_SOURCE 1
Martin v. Löwis11437992002-04-12 09:54:03 +00002615_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002616
2617else
Martin v. Löwis11437992002-04-12 09:54:03 +00002618 echo "$as_me:$LINENO: result: no" >&5
2619echo "${ECHO_T}no" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002620fi
2621rm -f conftest*
2622
Michael W. Hudson54241132001-12-07 15:38:26 +00002623
Martin v. Löwis11437992002-04-12 09:54:03 +00002624echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2625echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2626if test "${ac_cv_header_stdc+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002628else
Martin v. Löwis11437992002-04-12 09:54:03 +00002629 cat >conftest.$ac_ext <<_ACEOF
2630#line $LINENO "configure"
2631#include "confdefs.h"
2632#include <stdlib.h>
2633#include <stdarg.h>
2634#include <string.h>
2635#include <float.h>
2636
2637_ACEOF
2638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2640 ac_status=$?
2641 egrep -v '^ *\+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } >/dev/null; then
2646 if test -s conftest.err; then
2647 ac_cpp_err=$ac_c_preproc_warn_flag
2648 else
2649 ac_cpp_err=
2650 fi
2651else
2652 ac_cpp_err=yes
2653fi
2654if test -z "$ac_cpp_err"; then
2655 ac_cv_header_stdc=yes
2656else
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 ac_cv_header_stdc=no
2660fi
2661rm -f conftest.err conftest.$ac_ext
2662
2663if test $ac_cv_header_stdc = yes; then
2664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2665 cat >conftest.$ac_ext <<_ACEOF
2666#line $LINENO "configure"
2667#include "confdefs.h"
2668#include <string.h>
2669
2670_ACEOF
2671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672 egrep "memchr" >/dev/null 2>&1; then
2673 :
2674else
2675 ac_cv_header_stdc=no
2676fi
2677rm -f conftest*
2678
2679fi
2680
2681if test $ac_cv_header_stdc = yes; then
2682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2683 cat >conftest.$ac_ext <<_ACEOF
2684#line $LINENO "configure"
2685#include "confdefs.h"
2686#include <stdlib.h>
2687
2688_ACEOF
2689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2690 egrep "free" >/dev/null 2>&1; then
2691 :
2692else
2693 ac_cv_header_stdc=no
2694fi
2695rm -f conftest*
2696
2697fi
2698
2699if test $ac_cv_header_stdc = yes; then
2700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2701 if test "$cross_compiling" = yes; then
2702 :
2703else
2704 cat >conftest.$ac_ext <<_ACEOF
2705#line $LINENO "configure"
2706#include "confdefs.h"
2707#include <ctype.h>
2708#if ((' ' & 0x0FF) == 0x020)
2709# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2710# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2711#else
2712# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2713 || ('j' <= (c) && (c) <= 'r') \
2714 || ('s' <= (c) && (c) <= 'z'))
2715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2716#endif
2717
2718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2719int
2720main ()
2721{
2722 int i;
2723 for (i = 0; i < 256; i++)
2724 if (XOR (islower (i), ISLOWER (i))
2725 || toupper (i) != TOUPPER (i))
2726 exit(2);
2727 exit (0);
2728}
2729_ACEOF
2730rm -f conftest$ac_exeext
2731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732 (eval $ac_link) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 :
2742else
2743 echo "$as_me: program exited with status $ac_status" >&5
2744echo "$as_me: failed program was:" >&5
2745cat conftest.$ac_ext >&5
2746( exit $ac_status )
2747ac_cv_header_stdc=no
2748fi
2749rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2750fi
2751fi
2752fi
2753echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2754echo "${ECHO_T}$ac_cv_header_stdc" >&6
2755if test $ac_cv_header_stdc = yes; then
2756
2757cat >>confdefs.h <<\_ACEOF
2758#define STDC_HEADERS 1
2759_ACEOF
2760
2761fi
2762
2763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2774 inttypes.h stdint.h unistd.h
2775do
2776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2777echo "$as_me:$LINENO: checking for $ac_header" >&5
2778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2779if eval "test \"\${$as_ac_Header+set}\" = set"; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782 cat >conftest.$ac_ext <<_ACEOF
2783#line $LINENO "configure"
2784#include "confdefs.h"
2785$ac_includes_default
2786
2787#include <$ac_header>
2788_ACEOF
2789rm -f conftest.$ac_objext
2790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 eval "$as_ac_Header=yes"
2802else
2803 echo "$as_me: failed program was:" >&5
2804cat conftest.$ac_ext >&5
2805eval "$as_ac_Header=no"
2806fi
2807rm -f conftest.$ac_objext conftest.$ac_ext
2808fi
2809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2811if test `eval echo '${'$as_ac_Header'}'` = yes; then
2812 cat >>confdefs.h <<_ACEOF
2813#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2814_ACEOF
2815
2816fi
2817
2818done
2819
2820
2821if test "${ac_cv_header_minix_config_h+set}" = set; then
2822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2823echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2824if test "${ac_cv_header_minix_config_h+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826fi
2827echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2828echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2829else
2830 # Is the header compilable?
2831echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2832echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2833cat >conftest.$ac_ext <<_ACEOF
2834#line $LINENO "configure"
2835#include "confdefs.h"
2836$ac_includes_default
2837#include <minix/config.h>
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_header_compiler=yes
2852else
2853 echo "$as_me: failed program was:" >&5
2854cat conftest.$ac_ext >&5
2855ac_header_compiler=no
2856fi
2857rm -f conftest.$ac_objext conftest.$ac_ext
2858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2859echo "${ECHO_T}$ac_header_compiler" >&6
2860
2861# Is the header present?
2862echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2863echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2864cat >conftest.$ac_ext <<_ACEOF
2865#line $LINENO "configure"
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002866#include "confdefs.h"
2867#include <minix/config.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00002868_ACEOF
2869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2871 ac_status=$?
2872 egrep -v '^ *\+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } >/dev/null; then
2877 if test -s conftest.err; then
2878 ac_cpp_err=$ac_c_preproc_warn_flag
2879 else
2880 ac_cpp_err=
2881 fi
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002882else
Martin v. Löwis11437992002-04-12 09:54:03 +00002883 ac_cpp_err=yes
2884fi
2885if test -z "$ac_cpp_err"; then
2886 ac_header_preproc=yes
2887else
2888 echo "$as_me: failed program was:" >&5
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002889 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00002890 ac_header_preproc=no
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002891fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002892rm -f conftest.err conftest.$ac_ext
2893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2894echo "${ECHO_T}$ac_header_preproc" >&6
2895
2896# So? What about this header?
2897case $ac_header_compiler:$ac_header_preproc in
2898 yes:no )
2899 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2900echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2901 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2902echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2903 no:yes )
2904 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2905echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2906 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2907echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2908 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2909echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
2910esac
2911echo "$as_me:$LINENO: checking for minix/config.h" >&5
2912echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2913if test "${ac_cv_header_minix_config_h+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916 ac_cv_header_minix_config_h=$ac_header_preproc
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002917fi
Martin v. Löwis11437992002-04-12 09:54:03 +00002918echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2919echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2920
2921fi
2922if test $ac_cv_header_minix_config_h = yes; then
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002923 MINIX=yes
2924else
Martin v. Löwis11437992002-04-12 09:54:03 +00002925 MINIX=
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002926fi
2927
Martin v. Löwis11437992002-04-12 09:54:03 +00002928
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002929if test "$MINIX" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00002930
2931cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002932#define _POSIX_SOURCE 1
Martin v. Löwis11437992002-04-12 09:54:03 +00002933_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002934
Martin v. Löwis11437992002-04-12 09:54:03 +00002935
2936cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002937#define _POSIX_1_SOURCE 2
Martin v. Löwis11437992002-04-12 09:54:03 +00002938_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002939
Martin v. Löwis11437992002-04-12 09:54:03 +00002940
2941cat >>confdefs.h <<\_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002942#define _MINIX 1
Martin v. Löwis11437992002-04-12 09:54:03 +00002943_ACEOF
Martin v. Löwis1d5ecb72001-08-09 10:29:44 +00002944
2945fi
2946
2947
Michael W. Hudson54241132001-12-07 15:38:26 +00002948
Martin v. Löwis11437992002-04-12 09:54:03 +00002949echo "$as_me:$LINENO: checking for --with-suffix" >&5
2950echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00002951
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00002952# Check whether --with-suffix or --without-suffix was given.
2953if test "${with_suffix+set}" = set; then
2954 withval="$with_suffix"
Martin v. Löwis11437992002-04-12 09:54:03 +00002955
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00002956 case $withval in
2957 no) EXEEXT=;;
2958 yes) EXEEXT=.exe;;
2959 *) EXEEXT=$withval;;
2960 esac
Martin v. Löwis11437992002-04-12 09:54:03 +00002961fi;
2962echo "$as_me:$LINENO: result: $EXEEXT" >&5
2963echo "${ECHO_T}$EXEEXT" >&6
Jack Jansen1999ef42001-12-06 21:47:20 +00002964
Jack Jansen9a66b6d2001-08-08 13:56:14 +00002965# Test whether we're running on a non-case-sensitive system, in which
2966# case we give a warning if no ext is given
Jack Jansen1999ef42001-12-06 21:47:20 +00002967
Martin v. Löwis11437992002-04-12 09:54:03 +00002968echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
2969echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6
Jack Jansen0b06be72002-06-21 14:48:38 +00002970if test -d "${srcdir}/python"
Jack Jansen9a66b6d2001-08-08 13:56:14 +00002971then
Martin v. Löwis11437992002-04-12 09:54:03 +00002972 echo "$as_me:$LINENO: result: yes" >&5
2973echo "${ECHO_T}yes" >&6
Jack Jansen1999ef42001-12-06 21:47:20 +00002974 BUILDEXEEXT=.exe
2975else
Martin v. Löwis11437992002-04-12 09:54:03 +00002976 echo "$as_me:$LINENO: result: no" >&5
2977echo "${ECHO_T}no" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +00002978 BUILDEXEEXT=$EXEEXT
Jack Jansen9a66b6d2001-08-08 13:56:14 +00002979fi
Guido van Rossumff555e32000-09-22 15:38:21 +00002980
Guido van Rossumdd997f71998-10-07 19:58:26 +00002981case $MACHDEP in
2982bsdos*)
2983 case $CC in
2984 gcc) CC="$CC -D_HAVE_BSDI";;
2985 esac;;
2986esac
2987
Guido van Rossum24b1e751997-08-21 02:29:16 +00002988case $ac_sys_system in
2989hp*|HP*)
2990 case $CC in
Guido van Rossumcd5ff9f2000-09-22 16:15:54 +00002991 cc|*/cc) CC="$CC -Ae";;
Guido van Rossum24b1e751997-08-21 02:29:16 +00002992 esac;;
Trent Mick635f6fb2000-08-23 21:33:05 +00002993Monterey*)
2994 case $CC in
2995 cc) CC="$CC -Wl,-Bexport";;
2996 esac;;
Martin v. Löwisa30c1002001-03-06 12:10:20 +00002997SunOS*)
2998 # Some functions have a prototype only with that define, e.g. confstr
Martin v. Löwis11437992002-04-12 09:54:03 +00002999
3000cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003001#define __EXTENSIONS__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003002_ACEOF
Martin v. Löwisa30c1002001-03-06 12:10:20 +00003003
3004 ;;
Guido van Rossum24b1e751997-08-21 02:29:16 +00003005esac
3006
Michael W. Hudson54241132001-12-07 15:38:26 +00003007
3008
Martin v. Löwis11437992002-04-12 09:54:03 +00003009echo "$as_me:$LINENO: checking LIBRARY" >&5
3010echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003011if test -z "$LIBRARY"
3012then
3013 LIBRARY='libpython$(VERSION).a'
3014fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003015echo "$as_me:$LINENO: result: $LIBRARY" >&5
3016echo "${ECHO_T}$LIBRARY" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003017
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003018# LDLIBRARY is the name of the library to link against (as opposed to the
Jack Jansene578a632001-08-15 01:27:14 +00003019# name of the library into which to insert object files). BLDLIBRARY is also
3020# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3021# is blank as the main program is not linked directly against LDLIBRARY.
3022# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3023# systems without shared libraries, LDLIBRARY is the same as LIBRARY
3024# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3025# DLLLIBRARY is the shared (i.e., DLL) library.
Martin v. Löwis11437992002-04-12 09:54:03 +00003026#
Martin v. Löwis1142de32002-03-29 16:28:31 +00003027# RUNSHARED is used to run shared python without installed libraries
3028#
3029# INSTSONAME is the name of the shared library that will be use to install
3030# on the system - some systems like version suffix, others don't
3031
3032
Michael W. Hudson54241132001-12-07 15:38:26 +00003033
3034
3035
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003036
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003037LDLIBRARY="$LIBRARY"
Jack Jansene578a632001-08-15 01:27:14 +00003038BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis09bdf722002-05-08 08:51:29 +00003039INSTSONAME='$(LDLIBRARY)'
Guido van Rossumca563f22001-01-23 01:52:44 +00003040DLLLIBRARY=''
Jack Jansene578a632001-08-15 01:27:14 +00003041LDLIBRARYDIR=''
Martin v. Löwis1142de32002-03-29 16:28:31 +00003042RUNSHARED=''
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003043
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003044# LINKCC is the command that links the python executable -- default is $(CC).
Martin v. Löwisb7da67a2001-10-18 15:35:38 +00003045# If CXX is set, and if it is needed to link a main function that was
3046# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3047# python might then depend on the C++ runtime
Martin v. Löwis11437992002-04-12 09:54:03 +00003048# This is altered for AIX in order to build the export list before
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003049# linking.
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003050
Martin v. Löwis11437992002-04-12 09:54:03 +00003051echo "$as_me:$LINENO: checking LINKCC" >&5
3052echo $ECHO_N "checking LINKCC... $ECHO_C" >&6
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003053if test -z "$LINKCC"
3054then
Martin v. Löwisb7da67a2001-10-18 15:35:38 +00003055 if test -z "$CXX"; then
3056 LINKCC="\$(PURIFY) \$(CC)"
3057 else
Martin v. Löwis1931ca72002-06-01 21:39:58 +00003058 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
Martin v. Löwisb7da67a2001-10-18 15:35:38 +00003059 $CXX -c conftest.$ac_ext 2>&5
3060 if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
3061 && test -s conftest$ac_exeext && ./conftest$ac_exeext
3062 then
3063 LINKCC="\$(PURIFY) \$(CC)"
3064 else
3065 LINKCC="\$(PURIFY) \$(CXX)"
3066 fi
3067 rm -fr conftest*
3068 fi
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003069 case $ac_sys_system in
3070 AIX*)
Jack Jansen524a0982002-03-12 15:25:52 +00003071 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00003072 dgux*)
Martin v. Löwis4e732dc2002-03-19 15:15:32 +00003073 LINKCC="LD_RUN_PATH=$libdir $LINKCC";;
Trent Mick635f6fb2000-08-23 21:33:05 +00003074 Monterey64*)
Martin v. Löwis4e732dc2002-03-19 15:15:32 +00003075 LINKCC="$LINKCC -L/usr/lib/ia64l64";;
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003076 esac
3077fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003078echo "$as_me:$LINENO: result: $LINKCC" >&5
3079echo "${ECHO_T}$LINKCC" >&6
Guido van Rossum76c5fe21997-08-14 19:45:07 +00003080
Martin v. Löwis11437992002-04-12 09:54:03 +00003081echo "$as_me:$LINENO: checking for --enable-shared" >&5
3082echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +00003083# Check whether --enable-shared or --disable-shared was given.
3084if test "${enable_shared+set}" = set; then
3085 enableval="$enable_shared"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003086
Martin v. Löwis11437992002-04-12 09:54:03 +00003087fi;
Martin v. Löwis1142de32002-03-29 16:28:31 +00003088
3089if test -z "$enable_shared"
Martin v. Löwis11437992002-04-12 09:54:03 +00003090then
Martin v. Löwisb51033d2002-05-03 05:53:15 +00003091 case $ac_sys_system in
Martin v. Löwisf90ae202002-06-11 06:22:31 +00003092 CYGWIN* | atheos*)
Martin v. Löwisb51033d2002-05-03 05:53:15 +00003093 enable_shared="yes";;
3094 *)
3095 enable_shared="no";;
3096 esac
Martin v. Löwis1142de32002-03-29 16:28:31 +00003097fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003098echo "$as_me:$LINENO: result: $enable_shared" >&5
3099echo "${ECHO_T}$enable_shared" >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +00003100
3101
Martin v. Löwis11437992002-04-12 09:54:03 +00003102echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3103echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6
Jack Jansene578a632001-08-15 01:27:14 +00003104
Guido van Rossumb8552162001-09-05 14:58:11 +00003105# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3106# library that we build, but we do not want to link against it (we
3107# will find it with a -framework option). For this reason there is an
3108# extra variable BLDLIBRARY against which Python and the extension
3109# modules are linked, BLDLIBRARY. This is normally the same as
3110# LDLIBRARY, but empty for MacOSX framework builds.
Jack Jansene578a632001-08-15 01:27:14 +00003111if test "$enable_framework"
3112then
3113 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3114 LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)'
3115 BLDLIBRARY=''
3116else
3117 BLDLIBRARY='$(LDLIBRARY)'
Martin v. Löwis11437992002-04-12 09:54:03 +00003118fi
Jack Jansene578a632001-08-15 01:27:14 +00003119
Martin v. Löwis1142de32002-03-29 16:28:31 +00003120# Other platforms follow
3121if test $enable_shared = "yes"; then
Mark Hammond8235ea12002-07-19 06:55:41 +00003122
3123cat >>confdefs.h <<\_ACEOF
3124#define Py_ENABLE_SHARED 1
3125_ACEOF
3126
Martin v. Löwis1142de32002-03-29 16:28:31 +00003127 case $ac_sys_system in
3128 BeOS*)
3129 LDLIBRARY='libpython$(VERSION).so'
3130 ;;
3131 CYGWIN*)
3132 LDLIBRARY='libpython$(VERSION).dll.a'
3133 DLLLIBRARY='libpython$(VERSION).dll'
3134 ;;
3135 SunOS*)
3136 LDLIBRARY='libpython$(VERSION).so'
3137 BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)'
3138 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3139 ;;
Martin v. Löwis1bc894b2002-07-30 20:19:58 +00003140 Linux*|GNU*)
Martin v. Löwis1142de32002-03-29 16:28:31 +00003141 LDLIBRARY='libpython$(VERSION).so'
3142 BLDLIBRARY='-L. -lpython$(VERSION)'
3143 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3144 INSTSONAME="$LDLIBRARY".$SOVERSION
3145 ;;
3146 hp*|HP*)
3147 LDLIBRARY='libpython$(VERSION).sl'
3148 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
3149 RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH
3150 ;;
3151 OSF*)
3152 LDLIBRARY='libpython$(VERSION).so'
3153 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
3154 RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
3155 ;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00003156 atheos*)
3157 LDLIBRARY='libpython$(VERSION).so'
3158 BLDLIBRARY='-L. -lpython$(VERSION)'
3159 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
3160 ;;
Martin v. Löwis1142de32002-03-29 16:28:31 +00003161 esac
3162 # DG/UX requires some fancy ld contortions to produce a .so from an .a
3163 case $MACHDEP in
3164 dguxR4)
3165 LDLIBRARY='libpython$(VERSION).so'
3166 OPT="$OPT -pic"
3167 ;;
3168 esac
3169fi
3170
Martin v. Löwis11437992002-04-12 09:54:03 +00003171echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
3172echo "${ECHO_T}$LDLIBRARY" >&6
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003173
Martin v. Löwis11437992002-04-12 09:54:03 +00003174if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3176set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_prog_RANLIB+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003181else
3182 if test -n "$RANLIB"; then
3183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3184else
Martin v. Löwis11437992002-04-12 09:54:03 +00003185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197done
3198
Guido van Rossum627b2d71993-12-24 10:39:16 +00003199fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003200fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003201RANLIB=$ac_cv_prog_RANLIB
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003202if test -n "$RANLIB"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003203 echo "$as_me:$LINENO: result: $RANLIB" >&5
3204echo "${ECHO_T}$RANLIB" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003205else
Martin v. Löwis11437992002-04-12 09:54:03 +00003206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208fi
3209
3210fi
3211if test -z "$ac_cv_prog_RANLIB"; then
3212 ac_ct_RANLIB=$RANLIB
3213 # Extract the first word of "ranlib", so it can be a program name with args.
3214set dummy ranlib; ac_word=$2
3215echo "$as_me:$LINENO: checking for $ac_word" >&5
3216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 if test -n "$ac_ct_RANLIB"; then
3221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_ac_ct_RANLIB="ranlib"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234done
3235done
3236
3237 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3238fi
3239fi
3240ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3241if test -n "$ac_ct_RANLIB"; then
3242 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3243echo "${ECHO_T}$ac_ct_RANLIB" >&6
3244else
3245 echo "$as_me:$LINENO: result: no" >&5
3246echo "${ECHO_T}no" >&6
3247fi
3248
3249 RANLIB=$ac_ct_RANLIB
3250else
3251 RANLIB="$ac_cv_prog_RANLIB"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003252fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00003253
3254
Guido van Rossum7f43da71994-08-01 12:15:30 +00003255for ac_prog in ar aal
3256do
Martin v. Löwis11437992002-04-12 09:54:03 +00003257 # Extract the first word of "$ac_prog", so it can be a program name with args.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003258set dummy $ac_prog; ac_word=$2
Martin v. Löwis11437992002-04-12 09:54:03 +00003259echo "$as_me:$LINENO: checking for $ac_word" >&5
3260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261if test "${ac_cv_prog_AR+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003263else
3264 if test -n "$AR"; then
3265 ac_cv_prog_AR="$AR" # Let the user override the test.
3266else
Martin v. Löwis11437992002-04-12 09:54:03 +00003267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268for as_dir in $PATH
3269do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_AR="$ac_prog"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278done
3279done
3280
Guido van Rossum7f43da71994-08-01 12:15:30 +00003281fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003282fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003283AR=$ac_cv_prog_AR
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003284if test -n "$AR"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003285 echo "$as_me:$LINENO: result: $AR" >&5
3286echo "${ECHO_T}$AR" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003287else
Martin v. Löwis11437992002-04-12 09:54:03 +00003288 echo "$as_me:$LINENO: result: no" >&5
3289echo "${ECHO_T}no" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003290fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00003291
Martin v. Löwis11437992002-04-12 09:54:03 +00003292 test -n "$AR" && break
Guido van Rossum7f43da71994-08-01 12:15:30 +00003293done
3294test -n "$AR" || AR="ar"
3295
Michael W. Hudson54241132001-12-07 15:38:26 +00003296
Neil Schemenauera42c8272001-03-31 00:01:55 +00003297case $MACHDEP in
Neil Schemenaueraf5567f2001-10-21 22:32:04 +00003298bsdos*|hp*|HP*)
3299 # install -d does not work on BSDI or HP-UX
Neil Schemenauera42c8272001-03-31 00:01:55 +00003300 if test -z "$INSTALL"
3301 then
3302 INSTALL="${srcdir}/install-sh -c"
3303 fi
3304esac
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003305ac_aux_dir=
3306for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3307 if test -f $ac_dir/install-sh; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/install-sh -c"
3310 break
3311 elif test -f $ac_dir/install.sh; then
3312 ac_aux_dir=$ac_dir
3313 ac_install_sh="$ac_aux_dir/install.sh -c"
3314 break
Martin v. Löwis11437992002-04-12 09:54:03 +00003315 elif test -f $ac_dir/shtool; then
3316 ac_aux_dir=$ac_dir
3317 ac_install_sh="$ac_aux_dir/shtool install -c"
3318 break
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003319 fi
3320done
3321if test -z "$ac_aux_dir"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003322 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3323echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3324 { (exit 1); exit 1; }; }
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00003325fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003326ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3327ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3328ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003329
3330# Find a good install program. We prefer a C program (faster),
3331# so one script is as good as another. But avoid the broken or
3332# incompatible versions:
3333# SysV /etc/install, /usr/sbin/install
3334# SunOS /usr/etc/install
3335# IRIX /sbin/install
3336# AIX /bin/install
Martin v. Löwis11437992002-04-12 09:54:03 +00003337# AmigaOS /C/install, which installs bootblocks on floppy discs
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3341# ./install, which can be erroneously created by make from ./install.sh.
Martin v. Löwis11437992002-04-12 09:54:03 +00003342echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3343echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003344if test -z "$INSTALL"; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003345if test "${ac_cv_path_install+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003347else
Martin v. Löwis11437992002-04-12 09:54:03 +00003348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 # Account for people who put trailing slashes in PATH elements.
3354case $as_dir/ in
3355 ./ | .// | /cC/* | \
3356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3357 /usr/ucb/* ) ;;
3358 *)
3359 # OSF1 and SCO ODT 3.0 have their own names for install.
3360 # Don't use installbsd from OSF since it installs stuff as root
3361 # by default.
3362 for ac_prog in ginstall scoinst install; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3365 if test $ac_prog = install &&
3366 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3367 # AIX install. It has an incompatible calling convention.
3368 :
3369 elif test $ac_prog = install &&
3370 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3371 # program-specific install script used by HP pwplus--don't use.
3372 :
3373 else
3374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3375 break 3
3376 fi
3377 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003378 done
Martin v. Löwis11437992002-04-12 09:54:03 +00003379 done
3380 ;;
3381esac
3382done
3383
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003384
3385fi
3386 if test "${ac_cv_path_install+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003387 INSTALL=$ac_cv_path_install
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003388 else
3389 # As a last resort, use the slow shell script. We don't cache a
3390 # path for INSTALL within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the path is relative.
Martin v. Löwis11437992002-04-12 09:54:03 +00003393 INSTALL=$ac_install_sh
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003394 fi
3395fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003396echo "$as_me:$LINENO: result: $INSTALL" >&5
3397echo "${ECHO_T}$INSTALL" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003398
3399# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3400# It thinks the first close brace ends the variable substitution.
3401test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3402
Martin v. Löwis11437992002-04-12 09:54:03 +00003403test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003404
3405test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3406
Michael W. Hudson54241132001-12-07 15:38:26 +00003407
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003408# Not every filesystem supports hard links
3409
3410if test -z "$LN" ; then
3411 case $ac_sys_system in
3412 BeOS*) LN="ln -s";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00003413 CYGWIN*) LN="ln -s";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00003414 atheos*) LN="ln -s";;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003415 *) LN=ln;;
3416 esac
3417fi
3418
Fred Drake109d9862001-07-11 06:27:56 +00003419# Check for --with-pydebug
Martin v. Löwis11437992002-04-12 09:54:03 +00003420echo "$as_me:$LINENO: checking for --with-pydebug" >&5
3421echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6
3422
Fred Drake109d9862001-07-11 06:27:56 +00003423# Check whether --with-pydebug or --without-pydebug was given.
3424if test "${with_pydebug+set}" = set; then
3425 withval="$with_pydebug"
Martin v. Löwis11437992002-04-12 09:54:03 +00003426
Fred Drake109d9862001-07-11 06:27:56 +00003427if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +00003428then
3429
3430cat >>confdefs.h <<\_ACEOF
Fred Drake109d9862001-07-11 06:27:56 +00003431#define Py_DEBUG 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003432_ACEOF
3433
3434 echo "$as_me:$LINENO: result: yes" >&5
3435echo "${ECHO_T}yes" >&6;
Martin v. Löwisc45929e2002-04-06 10:10:49 +00003436 Py_DEBUG='true'
Martin v. Löwis11437992002-04-12 09:54:03 +00003437else echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6; Py_DEBUG='false'
Fred Drake109d9862001-07-11 06:27:56 +00003439fi
3440else
Martin v. Löwis11437992002-04-12 09:54:03 +00003441 echo "$as_me:$LINENO: result: no" >&5
3442echo "${ECHO_T}no" >&6
3443fi;
Fred Drake109d9862001-07-11 06:27:56 +00003444
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003445# Optimizer/debugger flags
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003446
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00003447if test -z "$OPT"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003448then
Neal Norwitzd957f392002-09-25 21:26:19 +00003449 case $GCC in
Guido van Rossumedca74a1997-07-18 23:29:40 +00003450 yes)
3451 case $ac_cv_prog_cc_g in
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003452 yes)
Fred Drake109d9862001-07-11 06:27:56 +00003453 if test "$Py_DEBUG" = 'true' ; then
3454 # Optimization messes up debuggers, so turn it off for
3455 # debug builds.
3456 OPT="-g -Wall -Wstrict-prototypes"
3457 else
3458 OPT="-g -O3 -Wall -Wstrict-prototypes"
3459 fi;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003460 *)
Fred Drake109d9862001-07-11 06:27:56 +00003461 OPT="-O3 -Wall -Wstrict-prototypes";;
3462 esac
Martin v. Löwis21ee4092002-09-30 16:19:48 +00003463 case $ac_sys_system in
3464 SCO_SV*) OPT="$OPT -m486 -DSCO5";;
3465 esac
Fred Drake109d9862001-07-11 06:27:56 +00003466 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003467 *)
3468 case $ac_sys_system in
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00003469 OpenUNIX*|UnixWare*)
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003470 OPT="-O -K pentium,host,inline,loop_unroll,alloca ";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00003471 SCO_SV*)
3472 CFLAGS="$CFLAGS -belf"
3473 OPT="-belf -O -Ki486 -DSCO5";;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003474 *)
3475 OPT="-O";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003476 esac
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003477 esac
Jack Jansenca06bc62001-08-03 15:32:23 +00003478 case $ac_sys_system in
3479 Darwin*)
Jack Jansen524a0982002-03-12 15:25:52 +00003480 OPT="$OPT -Wno-long-double -no-cpp-precomp";;
Jack Jansenca06bc62001-08-03 15:32:23 +00003481 esac
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00003482fi
3483
Fred Drakee1ceaa02001-12-04 20:55:47 +00003484if test "$Py_DEBUG" = 'true'; then
3485 :
3486else
3487 OPT="-DNDEBUG $OPT"
3488fi
3489
Trent Mick635f6fb2000-08-23 21:33:05 +00003490# The current (beta) Monterey compiler dies with optimizations
3491case $ac_sys_system in
3492Monterey*) OPT="";;
3493esac
3494
Guido van Rossum563e7081996-09-10 18:20:48 +00003495if test "$ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00003496then
3497 OPT="$OPT $ac_arch_flags"
3498fi
Guido van Rossumda88dad1995-01-26 00:46:29 +00003499
Martin v. Löwis11437992002-04-12 09:54:03 +00003500echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
3501echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6
3502if test "${ac_cv_opt_olimit_ok+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum91922671997-10-09 20:24:13 +00003504else
3505 ac_save_cc="$CC"
3506CC="$CC -OPT:Olimit=0"
3507if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00003508 ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00003509else
Martin v. Löwis11437992002-04-12 09:54:03 +00003510 cat >conftest.$ac_ext <<_ACEOF
3511#line $LINENO "configure"
Guido van Rossum91922671997-10-09 20:24:13 +00003512#include "confdefs.h"
3513int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003514_ACEOF
3515rm -f conftest$ac_exeext
3516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517 (eval $ac_link) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
Guido van Rossum91922671997-10-09 20:24:13 +00003526 ac_cv_opt_olimit_ok=yes
3527else
Martin v. Löwis11437992002-04-12 09:54:03 +00003528 echo "$as_me: program exited with status $ac_status" >&5
3529echo "$as_me: failed program was:" >&5
3530cat conftest.$ac_ext >&5
3531( exit $ac_status )
3532ac_cv_opt_olimit_ok=no
Guido van Rossum91922671997-10-09 20:24:13 +00003533fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003534rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum91922671997-10-09 20:24:13 +00003535fi
Guido van Rossum91922671997-10-09 20:24:13 +00003536CC="$ac_save_cc"
3537fi
3538
Martin v. Löwis11437992002-04-12 09:54:03 +00003539echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
3540echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6
Guido van Rossum2efa34b1997-10-23 17:43:11 +00003541if test $ac_cv_opt_olimit_ok = yes; then
Guido van Rossum5839e582000-10-09 19:52:35 +00003542 case $ac_sys_system in
3543 Darwin*) OPT="$OPT" ;;
3544 *) OPT="$OPT -OPT:Olimit=0";;
3545 esac
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003546else
Martin v. Löwis11437992002-04-12 09:54:03 +00003547 echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
3548echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6
3549 if test "${ac_cv_olimit_ok+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003551else
3552 ac_save_cc="$CC"
3553 CC="$CC -Olimit 1500"
3554 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00003555 ac_cv_olimit_ok=no
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003556else
Martin v. Löwis11437992002-04-12 09:54:03 +00003557 cat >conftest.$ac_ext <<_ACEOF
3558#line $LINENO "configure"
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003559#include "confdefs.h"
3560int main() { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +00003561_ACEOF
3562rm -f conftest$ac_exeext
3563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3564 (eval $ac_link) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003573 ac_cv_olimit_ok=yes
3574else
Martin v. Löwis11437992002-04-12 09:54:03 +00003575 echo "$as_me: program exited with status $ac_status" >&5
3576echo "$as_me: failed program was:" >&5
3577cat conftest.$ac_ext >&5
3578( exit $ac_status )
3579ac_cv_olimit_ok=no
Guido van Rossum201afe51997-05-14 21:14:44 +00003580fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003581rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003582fi
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003583 CC="$ac_save_cc"
3584fi
3585
Martin v. Löwis11437992002-04-12 09:54:03 +00003586 echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
3587echo "${ECHO_T}$ac_cv_olimit_ok" >&6
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00003588 if test $ac_cv_olimit_ok = yes; then
3589 OPT="$OPT -Olimit 1500"
3590 fi
3591fi
3592
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003593# On some compilers, pthreads are available without further options
3594# (e.g. MacOS X). On some of these systems, the compiler will not
3595# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
3596# So we have to see first whether pthreads are available without
3597# options before we can check whether -Kpthread improves anything.
Martin v. Löwis11437992002-04-12 09:54:03 +00003598echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
3599echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6
3600if test "${ac_cv_pthread_is_default+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis130fb172001-07-19 11:00:41 +00003602else
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003603 if test "$cross_compiling" = yes; then
3604 ac_cv_pthread_is_default=no
Martin v. Löwis260aecc2001-10-07 08:14:41 +00003605else
Martin v. Löwis11437992002-04-12 09:54:03 +00003606 cat >conftest.$ac_ext <<_ACEOF
3607#line $LINENO "configure"
Martin v. Löwis130fb172001-07-19 11:00:41 +00003608#include "confdefs.h"
Martin v. Löwis260aecc2001-10-07 08:14:41 +00003609
Martin v. Löwis130fb172001-07-19 11:00:41 +00003610#include <pthread.h>
Martin v. Löwis260aecc2001-10-07 08:14:41 +00003611
3612void* routine(void* p){return NULL;}
3613
3614int main(){
3615 pthread_t p;
3616 if(pthread_create(&p,NULL,routine,NULL)!=0)
3617 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00003618 (void)pthread_detach(p);
Martin v. Löwis260aecc2001-10-07 08:14:41 +00003619 return 0;
3620}
3621
Martin v. Löwis11437992002-04-12 09:54:03 +00003622_ACEOF
3623rm -f conftest$ac_exeext
3624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625 (eval $ac_link) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003634 ac_cv_pthread_is_default=yes
3635else
Martin v. Löwis11437992002-04-12 09:54:03 +00003636 echo "$as_me: program exited with status $ac_status" >&5
3637echo "$as_me: failed program was:" >&5
3638cat conftest.$ac_ext >&5
3639( exit $ac_status )
3640ac_cv_pthread_is_default=no
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003641fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003642rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003643fi
3644
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003645fi
3646
Martin v. Löwis11437992002-04-12 09:54:03 +00003647echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
3648echo "${ECHO_T}$ac_cv_pthread_is_default" >&6
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003649
Michael W. Hudson54241132001-12-07 15:38:26 +00003650
Martin v. Löwis11437992002-04-12 09:54:03 +00003651if test $ac_cv_pthread_is_default = yes
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003652then
3653 ac_cv_kpthread=no
3654else
3655# -Kpthread, if available, provides the right #defines
3656# and linker options to make pthread_create available
3657# Some compilers won't report that they do not support -Kpthread,
3658# so we need to run a program to see whether it really made the
3659# function available.
Martin v. Löwis11437992002-04-12 09:54:03 +00003660echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
3661echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6
3662if test "${ac_cv_kpthread+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003664else
3665 ac_save_cc="$CC"
3666CC="$CC -Kpthread"
3667if test "$cross_compiling" = yes; then
3668 ac_cv_kpthread=no
3669else
Martin v. Löwis11437992002-04-12 09:54:03 +00003670 cat >conftest.$ac_ext <<_ACEOF
3671#line $LINENO "configure"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003672#include "confdefs.h"
3673
3674#include <pthread.h>
3675
3676void* routine(void* p){return NULL;}
3677
3678int main(){
3679 pthread_t p;
3680 if(pthread_create(&p,NULL,routine,NULL)!=0)
3681 return 1;
Jack Jansen4f8d0542002-03-08 13:43:01 +00003682 (void)pthread_detach(p);
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003683 return 0;
3684}
3685
Martin v. Löwis11437992002-04-12 09:54:03 +00003686_ACEOF
3687rm -f conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
Martin v. Löwis130fb172001-07-19 11:00:41 +00003698 ac_cv_kpthread=yes
3699else
Martin v. Löwis11437992002-04-12 09:54:03 +00003700 echo "$as_me: program exited with status $ac_status" >&5
3701echo "$as_me: failed program was:" >&5
3702cat conftest.$ac_ext >&5
3703( exit $ac_status )
3704ac_cv_kpthread=no
Martin v. Löwis130fb172001-07-19 11:00:41 +00003705fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003706rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis260aecc2001-10-07 08:14:41 +00003707fi
Martin v. Löwis130fb172001-07-19 11:00:41 +00003708CC="$ac_save_cc"
3709fi
3710
Martin v. Löwis11437992002-04-12 09:54:03 +00003711echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
3712echo "${ECHO_T}$ac_cv_kpthread" >&6
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00003713fi
Martin v. Löwis130fb172001-07-19 11:00:41 +00003714
Michael W. Hudson54241132001-12-07 15:38:26 +00003715
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003716# checks for header files
Martin v. Löwis11437992002-04-12 09:54:03 +00003717echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3718echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3719if test "${ac_cv_header_stdc+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003721else
Martin v. Löwis11437992002-04-12 09:54:03 +00003722 cat >conftest.$ac_ext <<_ACEOF
3723#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003724#include "confdefs.h"
3725#include <stdlib.h>
3726#include <stdarg.h>
3727#include <string.h>
3728#include <float.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00003729
3730_ACEOF
3731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 egrep -v '^ *\+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 else
3742 ac_cpp_err=
3743 fi
3744else
3745 ac_cpp_err=yes
3746fi
3747if test -z "$ac_cpp_err"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003748 ac_cv_header_stdc=yes
3749else
Martin v. Löwis11437992002-04-12 09:54:03 +00003750 echo "$as_me: failed program was:" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003751 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003752 ac_cv_header_stdc=no
3753fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003754rm -f conftest.err conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003755
3756if test $ac_cv_header_stdc = yes; then
3757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00003758 cat >conftest.$ac_ext <<_ACEOF
3759#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003760#include "confdefs.h"
3761#include <string.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00003762
3763_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 egrep "memchr" >/dev/null 2>&1; then
3766 :
3767else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003768 ac_cv_header_stdc=no
3769fi
3770rm -f conftest*
3771
3772fi
3773
3774if test $ac_cv_header_stdc = yes; then
3775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Martin v. Löwis11437992002-04-12 09:54:03 +00003776 cat >conftest.$ac_ext <<_ACEOF
3777#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003778#include "confdefs.h"
3779#include <stdlib.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00003780
3781_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 egrep "free" >/dev/null 2>&1; then
3784 :
3785else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003786 ac_cv_header_stdc=no
3787fi
3788rm -f conftest*
3789
3790fi
3791
3792if test $ac_cv_header_stdc = yes; then
3793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Martin v. Löwis11437992002-04-12 09:54:03 +00003794 if test "$cross_compiling" = yes; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003795 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003796else
Martin v. Löwis11437992002-04-12 09:54:03 +00003797 cat >conftest.$ac_ext <<_ACEOF
3798#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003799#include "confdefs.h"
3800#include <ctype.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00003801#if ((' ' & 0x0FF) == 0x020)
3802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804#else
3805# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809#endif
Michael W. Hudson54241132001-12-07 15:38:26 +00003810
Martin v. Löwis11437992002-04-12 09:54:03 +00003811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812int
3813main ()
3814{
3815 int i;
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3819 exit(2);
3820 exit (0);
3821}
3822_ACEOF
3823rm -f conftest$ac_exeext
3824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3825 (eval $ac_link) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003834 :
3835else
Martin v. Löwis11437992002-04-12 09:54:03 +00003836 echo "$as_me: program exited with status $ac_status" >&5
3837echo "$as_me: failed program was:" >&5
3838cat conftest.$ac_ext >&5
3839( exit $ac_status )
3840ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00003841fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003842rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00003843fi
3844fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003845fi
3846echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3847echo "${ECHO_T}$ac_cv_header_stdc" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00003848if test $ac_cv_header_stdc = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00003849
3850cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003851#define STDC_HEADERS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00003852_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003853
3854fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00003855
Martin v. Löwis11437992002-04-12 09:54:03 +00003856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
Martin v. Löwis19ff4462002-10-07 17:45:56 +00003893
Martin v. Löwis11437992002-04-12 09:54:03 +00003894for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \
Martin v. Löwis2e64c342002-03-27 18:49:02 +00003895libintl.h locale.h ncurses.h poll.h pthread.h \
Eric S. Raymondd2d75d32001-01-16 15:26:34 +00003896signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
Skip Montanaro57454e52002-06-14 20:30:31 +00003897sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \
Andrew M. Kuchling881fd902001-07-14 20:55:52 +00003898sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
Martin v. Löwis19ff4462002-10-07 17:45:56 +00003899sys/un.h sys/utsname.h sys/wait.h pty.h term.h wctype.h libutil.h \
Skip Montanaro8345f712002-06-25 05:53:48 +00003900sys/resource.h netpacket/packet.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00003901do
Martin v. Löwis11437992002-04-12 09:54:03 +00003902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3903if eval "test \"\${$as_ac_Header+set}\" = set"; then
3904 echo "$as_me:$LINENO: checking for $ac_header" >&5
3905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3906if eval "test \"\${$as_ac_Header+set}\" = set"; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908fi
3909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003911else
Martin v. Löwis11437992002-04-12 09:54:03 +00003912 # Is the header compilable?
3913echo "$as_me:$LINENO: checking $ac_header usability" >&5
3914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3915cat >conftest.$ac_ext <<_ACEOF
3916#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003917#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00003918$ac_includes_default
3919#include <$ac_header>
3920_ACEOF
3921rm -f conftest.$ac_objext
3922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_header_compiler=yes
Michael W. Hudson54241132001-12-07 15:38:26 +00003934else
Martin v. Löwis11437992002-04-12 09:54:03 +00003935 echo "$as_me: failed program was:" >&5
3936cat conftest.$ac_ext >&5
3937ac_header_compiler=no
3938fi
3939rm -f conftest.$ac_objext conftest.$ac_ext
3940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3941echo "${ECHO_T}$ac_header_compiler" >&6
3942
3943# Is the header present?
3944echo "$as_me:$LINENO: checking $ac_header presence" >&5
3945echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3946cat >conftest.$ac_ext <<_ACEOF
3947#line $LINENO "configure"
3948#include "confdefs.h"
3949#include <$ac_header>
3950_ACEOF
3951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 ac_status=$?
3954 egrep -v '^ *\+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 else
3962 ac_cpp_err=
3963 fi
3964else
3965 ac_cpp_err=yes
3966fi
3967if test -z "$ac_cpp_err"; then
3968 ac_header_preproc=yes
3969else
3970 echo "$as_me: failed program was:" >&5
Michael W. Hudson54241132001-12-07 15:38:26 +00003971 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00003972 ac_header_preproc=no
Michael W. Hudson54241132001-12-07 15:38:26 +00003973fi
Martin v. Löwis11437992002-04-12 09:54:03 +00003974rm -f conftest.err conftest.$ac_ext
3975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3976echo "${ECHO_T}$ac_header_preproc" >&6
3977
3978# So? What about this header?
3979case $ac_header_compiler:$ac_header_preproc in
3980 yes:no )
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3985 no:yes )
3986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3992esac
3993echo "$as_me:$LINENO: checking for $ac_header" >&5
3994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3995if eval "test \"\${$as_ac_Header+set}\" = set"; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00003997else
Martin v. Löwis11437992002-04-12 09:54:03 +00003998 eval "$as_ac_Header=$ac_header_preproc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003999fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4002
4003fi
4004if test `eval echo '${'$as_ac_Header'}'` = yes; then
4005 cat >>confdefs.h <<_ACEOF
4006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4007_ACEOF
4008
4009fi
4010
Guido van Rossum627b2d71993-12-24 10:39:16 +00004011done
4012
Martin v. Löwis11437992002-04-12 09:54:03 +00004013
4014
4015
4016
4017
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004018ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:03 +00004019for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4020 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4021echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4022echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4023if eval "test \"\${$as_ac_Header+set}\" = set"; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00004025else
Martin v. Löwis11437992002-04-12 09:54:03 +00004026 cat >conftest.$ac_ext <<_ACEOF
4027#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004028#include "confdefs.h"
4029#include <sys/types.h>
4030#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:03 +00004031
4032#ifdef F77_DUMMY_MAIN
4033# ifdef __cplusplus
4034 extern "C"
4035# endif
4036 int F77_DUMMY_MAIN() { return 1; }
4037#endif
4038int
4039main ()
4040{
4041if ((DIR *) 0)
4042return 0;
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047rm -f conftest.$ac_objext
4048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049 (eval $ac_compile) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +00004060else
Martin v. Löwis11437992002-04-12 09:54:03 +00004061 echo "$as_me: failed program was:" >&5
4062cat conftest.$ac_ext >&5
4063eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004064fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004065rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00004066fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4069if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4072_ACEOF
4073
4074ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:26 +00004075fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004076
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004077done
4078# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4079if test $ac_header_dirent = dirent.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +00004080 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4081echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4082if test "${ac_cv_search_opendir+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004084else
Martin v. Löwis11437992002-04-12 09:54:03 +00004085 ac_func_search_save_LIBS=$LIBS
4086ac_cv_search_opendir=no
4087cat >conftest.$ac_ext <<_ACEOF
4088#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004089#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004090
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004091/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004092#ifdef __cplusplus
4093extern "C"
4094#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004095/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00004096 builtin and then its argument prototype would still apply. */
4097char opendir ();
4098#ifdef F77_DUMMY_MAIN
4099# ifdef __cplusplus
4100 extern "C"
4101# endif
4102 int F77_DUMMY_MAIN() { return 1; }
4103#endif
4104int
4105main ()
4106{
4107opendir ();
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112rm -f conftest.$ac_objext conftest$ac_exeext
4113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_search_opendir="none required"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004125else
Martin v. Löwis11437992002-04-12 09:54:03 +00004126 echo "$as_me: failed program was:" >&5
4127cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004128fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4130if test "$ac_cv_search_opendir" = no; then
4131 for ac_lib in dir; do
4132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4133 cat >conftest.$ac_ext <<_ACEOF
4134#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004135#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004136
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004137/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00004138#ifdef __cplusplus
4139extern "C"
4140#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004141/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00004142 builtin and then its argument prototype would still apply. */
4143char opendir ();
4144#ifdef F77_DUMMY_MAIN
4145# ifdef __cplusplus
4146 extern "C"
4147# endif
4148 int F77_DUMMY_MAIN() { return 1; }
4149#endif
4150int
4151main ()
4152{
4153opendir ();
4154 ;
4155 return 0;
4156}
4157_ACEOF
4158rm -f conftest.$ac_objext conftest$ac_exeext
4159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160 (eval $ac_link) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -s conftest$ac_exeext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_search_opendir="-l$ac_lib"
4171break
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004172else
Martin v. Löwis11437992002-04-12 09:54:03 +00004173 echo "$as_me: failed program was:" >&5
4174cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004175fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4177 done
4178fi
4179LIBS=$ac_func_search_save_LIBS
4180fi
4181echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4182echo "${ECHO_T}$ac_cv_search_opendir" >&6
4183if test "$ac_cv_search_opendir" != no; then
4184 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
Michael W. Hudson54241132001-12-07 15:38:26 +00004185
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004186fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004187
Michael W. Hudson54241132001-12-07 15:38:26 +00004188else
Martin v. Löwis11437992002-04-12 09:54:03 +00004189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4190echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4191if test "${ac_cv_search_opendir+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194 ac_func_search_save_LIBS=$LIBS
4195ac_cv_search_opendir=no
4196cat >conftest.$ac_ext <<_ACEOF
4197#line $LINENO "configure"
4198#include "confdefs.h"
4199
4200/* Override any gcc2 internal prototype to avoid an error. */
4201#ifdef __cplusplus
4202extern "C"
4203#endif
4204/* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4206char opendir ();
4207#ifdef F77_DUMMY_MAIN
4208# ifdef __cplusplus
4209 extern "C"
4210# endif
4211 int F77_DUMMY_MAIN() { return 1; }
4212#endif
4213int
4214main ()
4215{
4216opendir ();
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext conftest$ac_exeext
4222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -s conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_search_opendir="none required"
4234else
4235 echo "$as_me: failed program was:" >&5
4236cat conftest.$ac_ext >&5
4237fi
4238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4239if test "$ac_cv_search_opendir" = no; then
4240 for ac_lib in x; do
4241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4242 cat >conftest.$ac_ext <<_ACEOF
4243#line $LINENO "configure"
4244#include "confdefs.h"
4245
4246/* Override any gcc2 internal prototype to avoid an error. */
4247#ifdef __cplusplus
4248extern "C"
4249#endif
4250/* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252char opendir ();
4253#ifdef F77_DUMMY_MAIN
4254# ifdef __cplusplus
4255 extern "C"
4256# endif
4257 int F77_DUMMY_MAIN() { return 1; }
4258#endif
4259int
4260main ()
4261{
4262opendir ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -s conftest$ac_exeext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_cv_search_opendir="-l$ac_lib"
4280break
4281else
4282 echo "$as_me: failed program was:" >&5
4283cat conftest.$ac_ext >&5
4284fi
4285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4286 done
4287fi
4288LIBS=$ac_func_search_save_LIBS
4289fi
4290echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4291echo "${ECHO_T}$ac_cv_search_opendir" >&6
4292if test "$ac_cv_search_opendir" != no; then
4293 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4294
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004295fi
4296
4297fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004298
Michael W. Hudson54241132001-12-07 15:38:26 +00004299
Guido van Rossum627b2d71993-12-24 10:39:16 +00004300# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00004301was_it_defined=no
Martin v. Löwis11437992002-04-12 09:54:03 +00004302echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
4303echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6
4304cat >conftest.$ac_ext <<_ACEOF
4305#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004306#include "confdefs.h"
4307#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00004308
4309_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 egrep "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00004312 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004313else
Martin v. Löwis11437992002-04-12 09:54:03 +00004314
4315
4316cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004317#define clock_t long
Martin v. Löwis11437992002-04-12 09:54:03 +00004318_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004319
Martin v. Löwisc45929e2002-04-06 10:10:49 +00004320
Guido van Rossum627b2d71993-12-24 10:39:16 +00004321fi
4322rm -f conftest*
4323
Martin v. Löwis11437992002-04-12 09:54:03 +00004324echo "$as_me:$LINENO: result: $was_it_defined" >&5
4325echo "${ECHO_T}$was_it_defined" >&6
Guido van Rossumda88dad1995-01-26 00:46:29 +00004326
Neal Norwitz11690112002-07-30 01:08:28 +00004327# Check whether using makedev requires defining _OSF_SOURCE
4328echo "$as_me:$LINENO: checking for makedev" >&5
4329echo $ECHO_N "checking for makedev... $ECHO_C" >&6
4330cat >conftest.$ac_ext <<_ACEOF
4331#line $LINENO "configure"
4332#include "confdefs.h"
4333 #include <sys/types.h>
4334#ifdef F77_DUMMY_MAIN
4335# ifdef __cplusplus
4336 extern "C"
4337# endif
4338 int F77_DUMMY_MAIN() { return 1; }
4339#endif
4340int
4341main ()
4342{
4343 makedev(0, 0)
4344 ;
4345 return 0;
4346}
4347_ACEOF
4348rm -f conftest.$ac_objext conftest$ac_exeext
4349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -s conftest$ac_exeext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_has_makedev=yes
4361else
4362 echo "$as_me: failed program was:" >&5
4363cat conftest.$ac_ext >&5
4364ac_cv_has_makedev=no
4365fi
4366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4367if test "$ac_cv_has_makedev" = "no"; then
4368 # we didn't link, try if _OSF_SOURCE will allow us to link
4369 cat >conftest.$ac_ext <<_ACEOF
4370#line $LINENO "configure"
4371#include "confdefs.h"
4372
4373 #define _OSF_SOURCE 1
4374 #include <sys/types.h>
4375
4376#ifdef F77_DUMMY_MAIN
4377# ifdef __cplusplus
4378 extern "C"
4379# endif
4380 int F77_DUMMY_MAIN() { return 1; }
4381#endif
4382int
4383main ()
4384{
4385 makedev(0, 0)
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext conftest$ac_exeext
4391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 ac_cv_has_makedev=yes
4403else
4404 echo "$as_me: failed program was:" >&5
4405cat conftest.$ac_ext >&5
4406ac_cv_has_makedev=no
4407fi
4408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4409 if test "$ac_cv_has_makedev" = "yes"; then
4410
4411cat >>confdefs.h <<\_ACEOF
4412#define _OSF_SOURCE 1
4413_ACEOF
4414
4415 fi
4416fi
4417echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
4418echo "${ECHO_T}$ac_cv_has_makedev" >&6
4419if test "$ac_cv_has_makedev" = "yes"; then
4420
4421cat >>confdefs.h <<\_ACEOF
4422#define HAVE_MAKEDEV 1
4423_ACEOF
4424
4425fi
4426
Martin v. Löwis399a6892002-10-04 10:22:02 +00004427# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
4428# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
4429# defined, but the compiler does not support pragma redefine_extname,
4430# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
4431# structures (such as rlimit64) without declaring them. As a
4432# work-around, disable LFS on such configurations
4433
4434use_lfs=yes
4435echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
4436echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6
4437cat >conftest.$ac_ext <<_ACEOF
4438#line $LINENO "configure"
4439#include "confdefs.h"
4440
4441#define _LARGEFILE_SOURCE 1
4442#define _FILE_OFFSET_BITS 64
4443#include <sys/resource.h>
4444
4445#ifdef F77_DUMMY_MAIN
4446# ifdef __cplusplus
4447 extern "C"
4448# endif
4449 int F77_DUMMY_MAIN() { return 1; }
4450#endif
4451int
4452main ()
4453{
4454struct rlimit foo;
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 sol_lfs_bug=no
4472else
4473 echo "$as_me: failed program was:" >&5
4474cat conftest.$ac_ext >&5
4475sol_lfs_bug=yes
4476fi
4477rm -f conftest.$ac_objext conftest.$ac_ext
4478echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
4479echo "${ECHO_T}$sol_lfs_bug" >&6
4480if test "$sol_lfs_bug" = "yes"; then
4481 use_lfs=no
4482fi
4483
4484if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:39 +00004485# Two defines needed to enable largefile support on various platforms
4486# These may affect some typedefs
Guido van Rossum810cc512001-09-09 23:51:39 +00004487
Martin v. Löwis11437992002-04-12 09:54:03 +00004488cat >>confdefs.h <<\_ACEOF
4489#define _LARGEFILE_SOURCE 1
4490_ACEOF
4491
4492
4493cat >>confdefs.h <<\_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00004494#define _FILE_OFFSET_BITS 64
Martin v. Löwis11437992002-04-12 09:54:03 +00004495_ACEOF
Guido van Rossum810cc512001-09-09 23:51:39 +00004496
Martin v. Löwis399a6892002-10-04 10:22:02 +00004497fi
Michael W. Hudson54241132001-12-07 15:38:26 +00004498
Guido van Rossum84e7b241996-08-19 21:59:00 +00004499# Add some code to confdefs.h so that the test for off_t works on SCO
4500cat >> confdefs.h <<\EOF
4501#if defined(SCO_DS)
4502#undef _OFF_T
4503#endif
4504EOF
4505
Guido van Rossumef2255b2000-03-10 22:30:29 +00004506# Type availability checks
Martin v. Löwis11437992002-04-12 09:54:03 +00004507echo "$as_me:$LINENO: checking for mode_t" >&5
4508echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4509if test "${ac_cv_type_mode_t+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004511else
Martin v. Löwis11437992002-04-12 09:54:03 +00004512 cat >conftest.$ac_ext <<_ACEOF
4513#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004514#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004515$ac_includes_default
4516#ifdef F77_DUMMY_MAIN
4517# ifdef __cplusplus
4518 extern "C"
4519# endif
4520 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004521#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00004522int
4523main ()
4524{
4525if ((mode_t *) 0)
4526 return 0;
4527if (sizeof (mode_t))
4528 return 0;
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext
4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -s conftest.$ac_objext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
Jack Jansendd19cf82001-12-06 22:36:17 +00004545 ac_cv_type_mode_t=yes
4546else
Martin v. Löwis11437992002-04-12 09:54:03 +00004547 echo "$as_me: failed program was:" >&5
4548cat conftest.$ac_ext >&5
4549ac_cv_type_mode_t=no
Jack Jansendd19cf82001-12-06 22:36:17 +00004550fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004551rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00004552fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004553echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4554echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4555if test $ac_cv_type_mode_t = yes; then
4556 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004557else
Martin v. Löwis11437992002-04-12 09:54:03 +00004558
4559cat >>confdefs.h <<_ACEOF
4560#define mode_t int
4561_ACEOF
4562
4563fi
4564
4565echo "$as_me:$LINENO: checking for off_t" >&5
4566echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4567if test "${ac_cv_type_off_t+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 cat >conftest.$ac_ext <<_ACEOF
4571#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004572#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004573$ac_includes_default
4574#ifdef F77_DUMMY_MAIN
4575# ifdef __cplusplus
4576 extern "C"
4577# endif
4578 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004579#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00004580int
4581main ()
4582{
4583if ((off_t *) 0)
4584 return 0;
4585if (sizeof (off_t))
4586 return 0;
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext
4592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004603 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004604else
Martin v. Löwis11437992002-04-12 09:54:03 +00004605 echo "$as_me: failed program was:" >&5
4606cat conftest.$ac_ext >&5
4607ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004608fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004609rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00004610fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004611echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4612echo "${ECHO_T}$ac_cv_type_off_t" >&6
4613if test $ac_cv_type_off_t = yes; then
4614 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004615else
Martin v. Löwis11437992002-04-12 09:54:03 +00004616
4617cat >>confdefs.h <<_ACEOF
4618#define off_t long
4619_ACEOF
4620
4621fi
4622
4623echo "$as_me:$LINENO: checking for pid_t" >&5
4624echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4625if test "${ac_cv_type_pid_t+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628 cat >conftest.$ac_ext <<_ACEOF
4629#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004630#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004631$ac_includes_default
4632#ifdef F77_DUMMY_MAIN
4633# ifdef __cplusplus
4634 extern "C"
4635# endif
4636 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004637#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00004638int
4639main ()
4640{
4641if ((pid_t *) 0)
4642 return 0;
4643if (sizeof (pid_t))
4644 return 0;
4645 ;
4646 return 0;
4647}
4648_ACEOF
4649rm -f conftest.$ac_objext
4650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004661 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004662else
Martin v. Löwis11437992002-04-12 09:54:03 +00004663 echo "$as_me: failed program was:" >&5
4664cat conftest.$ac_ext >&5
4665ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004666fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004667rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00004668fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004669echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4670echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4671if test $ac_cv_type_pid_t = yes; then
4672 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004673else
Martin v. Löwis11437992002-04-12 09:54:03 +00004674
4675cat >>confdefs.h <<_ACEOF
4676#define pid_t int
4677_ACEOF
4678
4679fi
4680
4681echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4682echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4683if test "${ac_cv_type_signal+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686 cat >conftest.$ac_ext <<_ACEOF
4687#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004688#include "confdefs.h"
4689#include <sys/types.h>
4690#include <signal.h>
4691#ifdef signal
Martin v. Löwis11437992002-04-12 09:54:03 +00004692# undef signal
Guido van Rossum627b2d71993-12-24 10:39:16 +00004693#endif
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004694#ifdef __cplusplus
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004695extern "C" void (*signal (int, void (*)(int)))(int);
4696#else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004697void (*signal ()) ();
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004698#endif
4699
Martin v. Löwis11437992002-04-12 09:54:03 +00004700#ifdef F77_DUMMY_MAIN
4701# ifdef __cplusplus
4702 extern "C"
4703# endif
4704 int F77_DUMMY_MAIN() { return 1; }
4705#endif
4706int
4707main ()
4708{
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004709int i;
Martin v. Löwis11437992002-04-12 09:54:03 +00004710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004726 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00004727else
Martin v. Löwis11437992002-04-12 09:54:03 +00004728 echo "$as_me: failed program was:" >&5
4729cat conftest.$ac_ext >&5
4730ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00004731fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004732rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004733fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004734echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4735echo "${ECHO_T}$ac_cv_type_signal" >&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004736
Martin v. Löwis11437992002-04-12 09:54:03 +00004737cat >>confdefs.h <<_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004738#define RETSIGTYPE $ac_cv_type_signal
Martin v. Löwis11437992002-04-12 09:54:03 +00004739_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004740
Michael W. Hudson54241132001-12-07 15:38:26 +00004741
Martin v. Löwis11437992002-04-12 09:54:03 +00004742echo "$as_me:$LINENO: checking for size_t" >&5
4743echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4744if test "${ac_cv_type_size_t+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004746else
Martin v. Löwis11437992002-04-12 09:54:03 +00004747 cat >conftest.$ac_ext <<_ACEOF
4748#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004749#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00004750$ac_includes_default
4751#ifdef F77_DUMMY_MAIN
4752# ifdef __cplusplus
4753 extern "C"
4754# endif
4755 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +00004756#endif
Martin v. Löwis11437992002-04-12 09:54:03 +00004757int
4758main ()
4759{
4760if ((size_t *) 0)
4761 return 0;
4762if (sizeof (size_t))
4763 return 0;
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004780 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004781else
Martin v. Löwis11437992002-04-12 09:54:03 +00004782 echo "$as_me: failed program was:" >&5
4783cat conftest.$ac_ext >&5
4784ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004785fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004786rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +00004787fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004788echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4789echo "${ECHO_T}$ac_cv_type_size_t" >&6
4790if test $ac_cv_type_size_t = yes; then
4791 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004792else
Martin v. Löwis11437992002-04-12 09:54:03 +00004793
4794cat >>confdefs.h <<_ACEOF
4795#define size_t unsigned
4796_ACEOF
4797
4798fi
4799
4800echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4801echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4802if test "${ac_cv_type_uid_t+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805 cat >conftest.$ac_ext <<_ACEOF
4806#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004807#include "confdefs.h"
4808#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00004809
4810_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4812 egrep "uid_t" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004813 ac_cv_type_uid_t=yes
4814else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004815 ac_cv_type_uid_t=no
4816fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004817rm -f conftest*
4818
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004819fi
Martin v. Löwis11437992002-04-12 09:54:03 +00004820echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4821echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00004822if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004823
Martin v. Löwis11437992002-04-12 09:54:03 +00004824cat >>confdefs.h <<\_ACEOF
4825#define uid_t int
4826_ACEOF
4827
4828
4829cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004830#define gid_t int
Martin v. Löwis11437992002-04-12 09:54:03 +00004831_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004832
4833fi
4834
Jack Jansendd19cf82001-12-06 22:36:17 +00004835
Michael W. Hudson54241132001-12-07 15:38:26 +00004836# Sizes of various common basic types
Martin v. Löwis11437992002-04-12 09:54:03 +00004837echo "$as_me:$LINENO: checking for int" >&5
4838echo $ECHO_N "checking for int... $ECHO_C" >&6
4839if test "${ac_cv_type_int+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 cat >conftest.$ac_ext <<_ACEOF
4843#line $LINENO "configure"
4844#include "confdefs.h"
4845$ac_includes_default
4846#ifdef F77_DUMMY_MAIN
4847# ifdef __cplusplus
4848 extern "C"
4849# endif
4850 int F77_DUMMY_MAIN() { return 1; }
4851#endif
4852int
4853main ()
4854{
4855if ((int *) 0)
4856 return 0;
4857if (sizeof (int))
4858 return 0;
4859 ;
4860 return 0;
4861}
4862_ACEOF
4863rm -f conftest.$ac_objext
4864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865 (eval $ac_compile) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_type_int=yes
4876else
4877 echo "$as_me: failed program was:" >&5
4878cat conftest.$ac_ext >&5
4879ac_cv_type_int=no
4880fi
4881rm -f conftest.$ac_objext conftest.$ac_ext
4882fi
4883echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4884echo "${ECHO_T}$ac_cv_type_int" >&6
4885
4886echo "$as_me:$LINENO: checking size of int" >&5
4887echo $ECHO_N "checking size of int... $ECHO_C" >&6
4888if test "${ac_cv_sizeof_int+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 if test "$ac_cv_type_int" = yes; then
4892 # The cast to unsigned long works around a bug in the HP C Compiler
4893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4895 # This bug is HP SR number 8606223364.
4896 if test "$cross_compiling" = yes; then
4897 # Depending upon the size, compute the lo and hi bounds.
4898cat >conftest.$ac_ext <<_ACEOF
4899#line $LINENO "configure"
4900#include "confdefs.h"
4901$ac_includes_default
4902#ifdef F77_DUMMY_MAIN
4903# ifdef __cplusplus
4904 extern "C"
4905# endif
4906 int F77_DUMMY_MAIN() { return 1; }
4907#endif
4908int
4909main ()
4910{
4911static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4912test_array [0] = 0
4913
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918rm -f conftest.$ac_objext
4919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4930 ac_lo=0 ac_mid=0
4931 while :; do
4932 cat >conftest.$ac_ext <<_ACEOF
4933#line $LINENO "configure"
4934#include "confdefs.h"
4935$ac_includes_default
4936#ifdef F77_DUMMY_MAIN
4937# ifdef __cplusplus
4938 extern "C"
4939# endif
4940 int F77_DUMMY_MAIN() { return 1; }
4941#endif
4942int
4943main ()
4944{
4945static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4946test_array [0] = 0
4947
4948 ;
4949 return 0;
4950}
4951_ACEOF
4952rm -f conftest.$ac_objext
4953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_hi=$ac_mid; break
4965else
4966 echo "$as_me: failed program was:" >&5
4967cat conftest.$ac_ext >&5
4968ac_lo=`expr $ac_mid + 1`
4969 if test $ac_lo -le $ac_mid; then
4970 ac_lo= ac_hi=
4971 break
4972 fi
4973 ac_mid=`expr 2 '*' $ac_mid + 1`
4974fi
4975rm -f conftest.$ac_objext conftest.$ac_ext
4976 done
4977else
4978 echo "$as_me: failed program was:" >&5
4979cat conftest.$ac_ext >&5
4980cat >conftest.$ac_ext <<_ACEOF
4981#line $LINENO "configure"
4982#include "confdefs.h"
4983$ac_includes_default
4984#ifdef F77_DUMMY_MAIN
4985# ifdef __cplusplus
4986 extern "C"
4987# endif
4988 int F77_DUMMY_MAIN() { return 1; }
4989#endif
4990int
4991main ()
4992{
4993static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4994test_array [0] = 0
4995
4996 ;
4997 return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_hi=-1 ac_mid=-1
5013 while :; do
5014 cat >conftest.$ac_ext <<_ACEOF
5015#line $LINENO "configure"
5016#include "confdefs.h"
5017$ac_includes_default
5018#ifdef F77_DUMMY_MAIN
5019# ifdef __cplusplus
5020 extern "C"
5021# endif
5022 int F77_DUMMY_MAIN() { return 1; }
5023#endif
5024int
5025main ()
5026{
5027static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5028test_array [0] = 0
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext
5035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_lo=$ac_mid; break
5047else
5048 echo "$as_me: failed program was:" >&5
5049cat conftest.$ac_ext >&5
5050ac_hi=`expr '(' $ac_mid ')' - 1`
5051 if test $ac_mid -le $ac_hi; then
5052 ac_lo= ac_hi=
5053 break
5054 fi
5055 ac_mid=`expr 2 '*' $ac_mid`
5056fi
5057rm -f conftest.$ac_objext conftest.$ac_ext
5058 done
5059else
5060 echo "$as_me: failed program was:" >&5
5061cat conftest.$ac_ext >&5
5062ac_lo= ac_hi=
5063fi
5064rm -f conftest.$ac_objext conftest.$ac_ext
5065fi
5066rm -f conftest.$ac_objext conftest.$ac_ext
5067# Binary search between lo and hi bounds.
5068while test "x$ac_lo" != "x$ac_hi"; do
5069 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5070 cat >conftest.$ac_ext <<_ACEOF
5071#line $LINENO "configure"
5072#include "confdefs.h"
5073$ac_includes_default
5074#ifdef F77_DUMMY_MAIN
5075# ifdef __cplusplus
5076 extern "C"
5077# endif
5078 int F77_DUMMY_MAIN() { return 1; }
5079#endif
5080int
5081main ()
5082{
5083static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5084test_array [0] = 0
5085
5086 ;
5087 return 0;
5088}
5089_ACEOF
5090rm -f conftest.$ac_objext
5091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5092 (eval $ac_compile) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest.$ac_objext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_hi=$ac_mid
5103else
5104 echo "$as_me: failed program was:" >&5
5105cat conftest.$ac_ext >&5
5106ac_lo=`expr '(' $ac_mid ')' + 1`
5107fi
5108rm -f conftest.$ac_objext conftest.$ac_ext
5109done
5110case $ac_lo in
5111?*) ac_cv_sizeof_int=$ac_lo;;
5112'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5113echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5115esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005116else
5117 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5119echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5120 { (exit 1); exit 1; }; }
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005121else
Martin v. Löwis11437992002-04-12 09:54:03 +00005122 cat >conftest.$ac_ext <<_ACEOF
5123#line $LINENO "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005124#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00005125$ac_includes_default
5126long longval () { return (long) (sizeof (int)); }
5127unsigned long ulongval () { return (long) (sizeof (int)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00005128#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005129#include <stdlib.h>
5130#ifdef F77_DUMMY_MAIN
5131# ifdef __cplusplus
5132 extern "C"
5133# endif
5134 int F77_DUMMY_MAIN() { return 1; }
5135#endif
5136int
5137main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005138{
Martin v. Löwis11437992002-04-12 09:54:03 +00005139
5140 FILE *f = fopen ("conftest.val", "w");
5141 if (! f)
5142 exit (1);
5143 if (((long) (sizeof (int))) < 0)
5144 {
5145 long i = longval ();
5146 if (i != ((long) (sizeof (int))))
5147 exit (1);
5148 fprintf (f, "%ld\n", i);
5149 }
5150 else
5151 {
5152 unsigned long i = ulongval ();
5153 if (i != ((long) (sizeof (int))))
5154 exit (1);
5155 fprintf (f, "%lu\n", i);
5156 }
5157 exit (ferror (f) || fclose (f) != 0);
5158
5159 ;
5160 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005161}
Martin v. Löwis11437992002-04-12 09:54:03 +00005162_ACEOF
5163rm -f conftest$ac_exeext
5164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_sizeof_int=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005175else
Martin v. Löwis11437992002-04-12 09:54:03 +00005176 echo "$as_me: program exited with status $ac_status" >&5
5177echo "$as_me: failed program was:" >&5
5178cat conftest.$ac_ext >&5
5179( exit $ac_status )
5180{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
5181echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
5182 { (exit 1); exit 1; }; }
5183fi
5184rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185fi
5186fi
5187rm -f conftest.val
5188else
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005189 ac_cv_sizeof_int=0
5190fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005191fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005192echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5193echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5194cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005195#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:03 +00005196_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005197
5198
Martin v. Löwis11437992002-04-12 09:54:03 +00005199echo "$as_me:$LINENO: checking for long" >&5
5200echo $ECHO_N "checking for long... $ECHO_C" >&6
5201if test "${ac_cv_type_long+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204 cat >conftest.$ac_ext <<_ACEOF
5205#line $LINENO "configure"
5206#include "confdefs.h"
5207$ac_includes_default
5208#ifdef F77_DUMMY_MAIN
5209# ifdef __cplusplus
5210 extern "C"
5211# endif
5212 int F77_DUMMY_MAIN() { return 1; }
5213#endif
5214int
5215main ()
5216{
5217if ((long *) 0)
5218 return 0;
5219if (sizeof (long))
5220 return 0;
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_type_long=yes
5238else
5239 echo "$as_me: failed program was:" >&5
5240cat conftest.$ac_ext >&5
5241ac_cv_type_long=no
5242fi
5243rm -f conftest.$ac_objext conftest.$ac_ext
5244fi
5245echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5246echo "${ECHO_T}$ac_cv_type_long" >&6
5247
5248echo "$as_me:$LINENO: checking size of long" >&5
5249echo $ECHO_N "checking size of long... $ECHO_C" >&6
5250if test "${ac_cv_sizeof_long+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 if test "$ac_cv_type_long" = yes; then
5254 # The cast to unsigned long works around a bug in the HP C Compiler
5255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5257 # This bug is HP SR number 8606223364.
5258 if test "$cross_compiling" = yes; then
5259 # Depending upon the size, compute the lo and hi bounds.
5260cat >conftest.$ac_ext <<_ACEOF
5261#line $LINENO "configure"
5262#include "confdefs.h"
5263$ac_includes_default
5264#ifdef F77_DUMMY_MAIN
5265# ifdef __cplusplus
5266 extern "C"
5267# endif
5268 int F77_DUMMY_MAIN() { return 1; }
5269#endif
5270int
5271main ()
5272{
5273static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5274test_array [0] = 0
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest.$ac_objext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_lo=0 ac_mid=0
5293 while :; do
5294 cat >conftest.$ac_ext <<_ACEOF
5295#line $LINENO "configure"
5296#include "confdefs.h"
5297$ac_includes_default
5298#ifdef F77_DUMMY_MAIN
5299# ifdef __cplusplus
5300 extern "C"
5301# endif
5302 int F77_DUMMY_MAIN() { return 1; }
5303#endif
5304int
5305main ()
5306{
5307static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5308test_array [0] = 0
5309
5310 ;
5311 return 0;
5312}
5313_ACEOF
5314rm -f conftest.$ac_objext
5315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_hi=$ac_mid; break
5327else
5328 echo "$as_me: failed program was:" >&5
5329cat conftest.$ac_ext >&5
5330ac_lo=`expr $ac_mid + 1`
5331 if test $ac_lo -le $ac_mid; then
5332 ac_lo= ac_hi=
5333 break
5334 fi
5335 ac_mid=`expr 2 '*' $ac_mid + 1`
5336fi
5337rm -f conftest.$ac_objext conftest.$ac_ext
5338 done
5339else
5340 echo "$as_me: failed program was:" >&5
5341cat conftest.$ac_ext >&5
5342cat >conftest.$ac_ext <<_ACEOF
5343#line $LINENO "configure"
5344#include "confdefs.h"
5345$ac_includes_default
5346#ifdef F77_DUMMY_MAIN
5347# ifdef __cplusplus
5348 extern "C"
5349# endif
5350 int F77_DUMMY_MAIN() { return 1; }
5351#endif
5352int
5353main ()
5354{
5355static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5356test_array [0] = 0
5357
5358 ;
5359 return 0;
5360}
5361_ACEOF
5362rm -f conftest.$ac_objext
5363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364 (eval $ac_compile) 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -s conftest.$ac_objext'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
5374 ac_hi=-1 ac_mid=-1
5375 while :; do
5376 cat >conftest.$ac_ext <<_ACEOF
5377#line $LINENO "configure"
5378#include "confdefs.h"
5379$ac_includes_default
5380#ifdef F77_DUMMY_MAIN
5381# ifdef __cplusplus
5382 extern "C"
5383# endif
5384 int F77_DUMMY_MAIN() { return 1; }
5385#endif
5386int
5387main ()
5388{
5389static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5390test_array [0] = 0
5391
5392 ;
5393 return 0;
5394}
5395_ACEOF
5396rm -f conftest.$ac_objext
5397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_lo=$ac_mid; break
5409else
5410 echo "$as_me: failed program was:" >&5
5411cat conftest.$ac_ext >&5
5412ac_hi=`expr '(' $ac_mid ')' - 1`
5413 if test $ac_mid -le $ac_hi; then
5414 ac_lo= ac_hi=
5415 break
5416 fi
5417 ac_mid=`expr 2 '*' $ac_mid`
5418fi
5419rm -f conftest.$ac_objext conftest.$ac_ext
5420 done
5421else
5422 echo "$as_me: failed program was:" >&5
5423cat conftest.$ac_ext >&5
5424ac_lo= ac_hi=
5425fi
5426rm -f conftest.$ac_objext conftest.$ac_ext
5427fi
5428rm -f conftest.$ac_objext conftest.$ac_ext
5429# Binary search between lo and hi bounds.
5430while test "x$ac_lo" != "x$ac_hi"; do
5431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5432 cat >conftest.$ac_ext <<_ACEOF
5433#line $LINENO "configure"
5434#include "confdefs.h"
5435$ac_includes_default
5436#ifdef F77_DUMMY_MAIN
5437# ifdef __cplusplus
5438 extern "C"
5439# endif
5440 int F77_DUMMY_MAIN() { return 1; }
5441#endif
5442int
5443main ()
5444{
5445static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5446test_array [0] = 0
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext
5453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; }; then
5464 ac_hi=$ac_mid
5465else
5466 echo "$as_me: failed program was:" >&5
5467cat conftest.$ac_ext >&5
5468ac_lo=`expr '(' $ac_mid ')' + 1`
5469fi
5470rm -f conftest.$ac_objext conftest.$ac_ext
5471done
5472case $ac_lo in
5473?*) ac_cv_sizeof_long=$ac_lo;;
5474'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5475echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5477esac
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005478else
5479 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005480 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5481echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5482 { (exit 1); exit 1; }; }
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005483else
Martin v. Löwis11437992002-04-12 09:54:03 +00005484 cat >conftest.$ac_ext <<_ACEOF
5485#line $LINENO "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005486#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00005487$ac_includes_default
5488long longval () { return (long) (sizeof (long)); }
5489unsigned long ulongval () { return (long) (sizeof (long)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00005490#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005491#include <stdlib.h>
5492#ifdef F77_DUMMY_MAIN
5493# ifdef __cplusplus
5494 extern "C"
5495# endif
5496 int F77_DUMMY_MAIN() { return 1; }
5497#endif
5498int
5499main ()
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005500{
Martin v. Löwis11437992002-04-12 09:54:03 +00005501
5502 FILE *f = fopen ("conftest.val", "w");
5503 if (! f)
5504 exit (1);
5505 if (((long) (sizeof (long))) < 0)
5506 {
5507 long i = longval ();
5508 if (i != ((long) (sizeof (long))))
5509 exit (1);
5510 fprintf (f, "%ld\n", i);
5511 }
5512 else
5513 {
5514 unsigned long i = ulongval ();
5515 if (i != ((long) (sizeof (long))))
5516 exit (1);
5517 fprintf (f, "%lu\n", i);
5518 }
5519 exit (ferror (f) || fclose (f) != 0);
5520
5521 ;
5522 return 0;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005523}
Martin v. Löwis11437992002-04-12 09:54:03 +00005524_ACEOF
5525rm -f conftest$ac_exeext
5526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_sizeof_long=`cat conftest.val`
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005537else
Martin v. Löwis11437992002-04-12 09:54:03 +00005538 echo "$as_me: program exited with status $ac_status" >&5
5539echo "$as_me: failed program was:" >&5
5540cat conftest.$ac_ext >&5
5541( exit $ac_status )
5542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
5543echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
5544 { (exit 1); exit 1; }; }
5545fi
5546rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5547fi
5548fi
5549rm -f conftest.val
5550else
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005551 ac_cv_sizeof_long=0
5552fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005553fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005554echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5555echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5556cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005557#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:03 +00005558_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:16 +00005559
5560
Martin v. Löwis11437992002-04-12 09:54:03 +00005561echo "$as_me:$LINENO: checking for void *" >&5
5562echo $ECHO_N "checking for void *... $ECHO_C" >&6
5563if test "${ac_cv_type_void_p+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 cat >conftest.$ac_ext <<_ACEOF
5567#line $LINENO "configure"
5568#include "confdefs.h"
5569$ac_includes_default
5570#ifdef F77_DUMMY_MAIN
5571# ifdef __cplusplus
5572 extern "C"
5573# endif
5574 int F77_DUMMY_MAIN() { return 1; }
5575#endif
5576int
5577main ()
5578{
5579if ((void * *) 0)
5580 return 0;
5581if (sizeof (void *))
5582 return 0;
5583 ;
5584 return 0;
5585}
5586_ACEOF
5587rm -f conftest.$ac_objext
5588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_cv_type_void_p=yes
5600else
5601 echo "$as_me: failed program was:" >&5
5602cat conftest.$ac_ext >&5
5603ac_cv_type_void_p=no
5604fi
5605rm -f conftest.$ac_objext conftest.$ac_ext
5606fi
5607echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5608echo "${ECHO_T}$ac_cv_type_void_p" >&6
5609
5610echo "$as_me:$LINENO: checking size of void *" >&5
5611echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5612if test "${ac_cv_sizeof_void_p+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 if test "$ac_cv_type_void_p" = yes; then
5616 # The cast to unsigned long works around a bug in the HP C Compiler
5617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5619 # This bug is HP SR number 8606223364.
5620 if test "$cross_compiling" = yes; then
5621 # Depending upon the size, compute the lo and hi bounds.
5622cat >conftest.$ac_ext <<_ACEOF
5623#line $LINENO "configure"
5624#include "confdefs.h"
5625$ac_includes_default
5626#ifdef F77_DUMMY_MAIN
5627# ifdef __cplusplus
5628 extern "C"
5629# endif
5630 int F77_DUMMY_MAIN() { return 1; }
5631#endif
5632int
5633main ()
5634{
5635static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
5636test_array [0] = 0
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext
5643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_lo=0 ac_mid=0
5655 while :; do
5656 cat >conftest.$ac_ext <<_ACEOF
5657#line $LINENO "configure"
5658#include "confdefs.h"
5659$ac_includes_default
5660#ifdef F77_DUMMY_MAIN
5661# ifdef __cplusplus
5662 extern "C"
5663# endif
5664 int F77_DUMMY_MAIN() { return 1; }
5665#endif
5666int
5667main ()
5668{
5669static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5670test_array [0] = 0
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest.$ac_objext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 (eval $ac_try) 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_hi=$ac_mid; break
5689else
5690 echo "$as_me: failed program was:" >&5
5691cat conftest.$ac_ext >&5
5692ac_lo=`expr $ac_mid + 1`
5693 if test $ac_lo -le $ac_mid; then
5694 ac_lo= ac_hi=
5695 break
5696 fi
5697 ac_mid=`expr 2 '*' $ac_mid + 1`
5698fi
5699rm -f conftest.$ac_objext conftest.$ac_ext
5700 done
5701else
5702 echo "$as_me: failed program was:" >&5
5703cat conftest.$ac_ext >&5
5704cat >conftest.$ac_ext <<_ACEOF
5705#line $LINENO "configure"
5706#include "confdefs.h"
5707$ac_includes_default
5708#ifdef F77_DUMMY_MAIN
5709# ifdef __cplusplus
5710 extern "C"
5711# endif
5712 int F77_DUMMY_MAIN() { return 1; }
5713#endif
5714int
5715main ()
5716{
5717static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
5718test_array [0] = 0
5719
5720 ;
5721 return 0;
5722}
5723_ACEOF
5724rm -f conftest.$ac_objext
5725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
5736 ac_hi=-1 ac_mid=-1
5737 while :; do
5738 cat >conftest.$ac_ext <<_ACEOF
5739#line $LINENO "configure"
5740#include "confdefs.h"
5741$ac_includes_default
5742#ifdef F77_DUMMY_MAIN
5743# ifdef __cplusplus
5744 extern "C"
5745# endif
5746 int F77_DUMMY_MAIN() { return 1; }
5747#endif
5748int
5749main ()
5750{
5751static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
5752test_array [0] = 0
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_lo=$ac_mid; break
5771else
5772 echo "$as_me: failed program was:" >&5
5773cat conftest.$ac_ext >&5
5774ac_hi=`expr '(' $ac_mid ')' - 1`
5775 if test $ac_mid -le $ac_hi; then
5776 ac_lo= ac_hi=
5777 break
5778 fi
5779 ac_mid=`expr 2 '*' $ac_mid`
5780fi
5781rm -f conftest.$ac_objext conftest.$ac_ext
5782 done
5783else
5784 echo "$as_me: failed program was:" >&5
5785cat conftest.$ac_ext >&5
5786ac_lo= ac_hi=
5787fi
5788rm -f conftest.$ac_objext conftest.$ac_ext
5789fi
5790rm -f conftest.$ac_objext conftest.$ac_ext
5791# Binary search between lo and hi bounds.
5792while test "x$ac_lo" != "x$ac_hi"; do
5793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5794 cat >conftest.$ac_ext <<_ACEOF
5795#line $LINENO "configure"
5796#include "confdefs.h"
5797$ac_includes_default
5798#ifdef F77_DUMMY_MAIN
5799# ifdef __cplusplus
5800 extern "C"
5801# endif
5802 int F77_DUMMY_MAIN() { return 1; }
5803#endif
5804int
5805main ()
5806{
5807static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5808test_array [0] = 0
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
5814rm -f conftest.$ac_objext
5815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -s conftest.$ac_objext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_hi=$ac_mid
5827else
5828 echo "$as_me: failed program was:" >&5
5829cat conftest.$ac_ext >&5
5830ac_lo=`expr '(' $ac_mid ')' + 1`
5831fi
5832rm -f conftest.$ac_objext conftest.$ac_ext
5833done
5834case $ac_lo in
5835?*) ac_cv_sizeof_void_p=$ac_lo;;
5836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5837echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5838 { (exit 1); exit 1; }; } ;;
5839esac
Guido van Rossumad678af1998-10-02 14:42:15 +00005840else
5841 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00005842 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
5843echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5844 { (exit 1); exit 1; }; }
Guido van Rossumad678af1998-10-02 14:42:15 +00005845else
Martin v. Löwis11437992002-04-12 09:54:03 +00005846 cat >conftest.$ac_ext <<_ACEOF
5847#line $LINENO "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00005848#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00005849$ac_includes_default
5850long longval () { return (long) (sizeof (void *)); }
5851unsigned long ulongval () { return (long) (sizeof (void *)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00005852#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00005853#include <stdlib.h>
5854#ifdef F77_DUMMY_MAIN
5855# ifdef __cplusplus
5856 extern "C"
5857# endif
5858 int F77_DUMMY_MAIN() { return 1; }
5859#endif
5860int
5861main ()
Guido van Rossumad678af1998-10-02 14:42:15 +00005862{
Martin v. Löwis11437992002-04-12 09:54:03 +00005863
5864 FILE *f = fopen ("conftest.val", "w");
5865 if (! f)
5866 exit (1);
5867 if (((long) (sizeof (void *))) < 0)
5868 {
5869 long i = longval ();
5870 if (i != ((long) (sizeof (void *))))
5871 exit (1);
5872 fprintf (f, "%ld\n", i);
5873 }
5874 else
5875 {
5876 unsigned long i = ulongval ();
5877 if (i != ((long) (sizeof (void *))))
5878 exit (1);
5879 fprintf (f, "%lu\n", i);
5880 }
5881 exit (ferror (f) || fclose (f) != 0);
5882
5883 ;
5884 return 0;
Guido van Rossumad678af1998-10-02 14:42:15 +00005885}
Martin v. Löwis11437992002-04-12 09:54:03 +00005886_ACEOF
5887rm -f conftest$ac_exeext
5888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889 (eval $ac_link) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_sizeof_void_p=`cat conftest.val`
Guido van Rossumad678af1998-10-02 14:42:15 +00005899else
Martin v. Löwis11437992002-04-12 09:54:03 +00005900 echo "$as_me: program exited with status $ac_status" >&5
5901echo "$as_me: failed program was:" >&5
5902cat conftest.$ac_ext >&5
5903( exit $ac_status )
5904{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5
5905echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;}
5906 { (exit 1); exit 1; }; }
5907fi
5908rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5909fi
5910fi
5911rm -f conftest.val
5912else
Guido van Rossumad678af1998-10-02 14:42:15 +00005913 ac_cv_sizeof_void_p=0
5914fi
Guido van Rossumad678af1998-10-02 14:42:15 +00005915fi
Martin v. Löwis11437992002-04-12 09:54:03 +00005916echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5917echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5918cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00005919#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:03 +00005920_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +00005921
5922
Martin v. Löwis11437992002-04-12 09:54:03 +00005923echo "$as_me:$LINENO: checking for char" >&5
5924echo $ECHO_N "checking for char... $ECHO_C" >&6
5925if test "${ac_cv_type_char+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928 cat >conftest.$ac_ext <<_ACEOF
5929#line $LINENO "configure"
5930#include "confdefs.h"
5931$ac_includes_default
5932#ifdef F77_DUMMY_MAIN
5933# ifdef __cplusplus
5934 extern "C"
5935# endif
5936 int F77_DUMMY_MAIN() { return 1; }
5937#endif
5938int
5939main ()
5940{
5941if ((char *) 0)
5942 return 0;
5943if (sizeof (char))
5944 return 0;
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949rm -f conftest.$ac_objext
5950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951 (eval $ac_compile) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_type_char=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964cat conftest.$ac_ext >&5
5965ac_cv_type_char=no
5966fi
5967rm -f conftest.$ac_objext conftest.$ac_ext
5968fi
5969echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5970echo "${ECHO_T}$ac_cv_type_char" >&6
5971
5972echo "$as_me:$LINENO: checking size of char" >&5
5973echo $ECHO_N "checking size of char... $ECHO_C" >&6
5974if test "${ac_cv_sizeof_char+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 if test "$ac_cv_type_char" = yes; then
5978 # The cast to unsigned long works around a bug in the HP C Compiler
5979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5981 # This bug is HP SR number 8606223364.
5982 if test "$cross_compiling" = yes; then
5983 # Depending upon the size, compute the lo and hi bounds.
5984cat >conftest.$ac_ext <<_ACEOF
5985#line $LINENO "configure"
5986#include "confdefs.h"
5987$ac_includes_default
5988#ifdef F77_DUMMY_MAIN
5989# ifdef __cplusplus
5990 extern "C"
5991# endif
5992 int F77_DUMMY_MAIN() { return 1; }
5993#endif
5994int
5995main ()
5996{
5997static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5998test_array [0] = 0
5999
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_lo=0 ac_mid=0
6017 while :; do
6018 cat >conftest.$ac_ext <<_ACEOF
6019#line $LINENO "configure"
6020#include "confdefs.h"
6021$ac_includes_default
6022#ifdef F77_DUMMY_MAIN
6023# ifdef __cplusplus
6024 extern "C"
6025# endif
6026 int F77_DUMMY_MAIN() { return 1; }
6027#endif
6028int
6029main ()
6030{
6031static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6032test_array [0] = 0
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext
6039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_hi=$ac_mid; break
6051else
6052 echo "$as_me: failed program was:" >&5
6053cat conftest.$ac_ext >&5
6054ac_lo=`expr $ac_mid + 1`
6055 if test $ac_lo -le $ac_mid; then
6056 ac_lo= ac_hi=
6057 break
6058 fi
6059 ac_mid=`expr 2 '*' $ac_mid + 1`
6060fi
6061rm -f conftest.$ac_objext conftest.$ac_ext
6062 done
6063else
6064 echo "$as_me: failed program was:" >&5
6065cat conftest.$ac_ext >&5
6066cat >conftest.$ac_ext <<_ACEOF
6067#line $LINENO "configure"
6068#include "confdefs.h"
6069$ac_includes_default
6070#ifdef F77_DUMMY_MAIN
6071# ifdef __cplusplus
6072 extern "C"
6073# endif
6074 int F77_DUMMY_MAIN() { return 1; }
6075#endif
6076int
6077main ()
6078{
6079static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6080test_array [0] = 0
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
6087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_hi=-1 ac_mid=-1
6099 while :; do
6100 cat >conftest.$ac_ext <<_ACEOF
6101#line $LINENO "configure"
6102#include "confdefs.h"
6103$ac_includes_default
6104#ifdef F77_DUMMY_MAIN
6105# ifdef __cplusplus
6106 extern "C"
6107# endif
6108 int F77_DUMMY_MAIN() { return 1; }
6109#endif
6110int
6111main ()
6112{
6113static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6114test_array [0] = 0
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
6121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try='test -s conftest.$ac_objext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_lo=$ac_mid; break
6133else
6134 echo "$as_me: failed program was:" >&5
6135cat conftest.$ac_ext >&5
6136ac_hi=`expr '(' $ac_mid ')' - 1`
6137 if test $ac_mid -le $ac_hi; then
6138 ac_lo= ac_hi=
6139 break
6140 fi
6141 ac_mid=`expr 2 '*' $ac_mid`
6142fi
6143rm -f conftest.$ac_objext conftest.$ac_ext
6144 done
6145else
6146 echo "$as_me: failed program was:" >&5
6147cat conftest.$ac_ext >&5
6148ac_lo= ac_hi=
6149fi
6150rm -f conftest.$ac_objext conftest.$ac_ext
6151fi
6152rm -f conftest.$ac_objext conftest.$ac_ext
6153# Binary search between lo and hi bounds.
6154while test "x$ac_lo" != "x$ac_hi"; do
6155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6156 cat >conftest.$ac_ext <<_ACEOF
6157#line $LINENO "configure"
6158#include "confdefs.h"
6159$ac_includes_default
6160#ifdef F77_DUMMY_MAIN
6161# ifdef __cplusplus
6162 extern "C"
6163# endif
6164 int F77_DUMMY_MAIN() { return 1; }
6165#endif
6166int
6167main ()
6168{
6169static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6170test_array [0] = 0
6171
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext
6177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_hi=$ac_mid
6189else
6190 echo "$as_me: failed program was:" >&5
6191cat conftest.$ac_ext >&5
6192ac_lo=`expr '(' $ac_mid ')' + 1`
6193fi
6194rm -f conftest.$ac_objext conftest.$ac_ext
6195done
6196case $ac_lo in
6197?*) ac_cv_sizeof_char=$ac_lo;;
6198'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6199echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6200 { (exit 1); exit 1; }; } ;;
6201esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00006202else
6203 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006204 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6205echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6206 { (exit 1); exit 1; }; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00006207else
Martin v. Löwis11437992002-04-12 09:54:03 +00006208 cat >conftest.$ac_ext <<_ACEOF
6209#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00006210#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00006211$ac_includes_default
6212long longval () { return (long) (sizeof (char)); }
6213unsigned long ulongval () { return (long) (sizeof (char)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00006214#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006215#include <stdlib.h>
6216#ifdef F77_DUMMY_MAIN
6217# ifdef __cplusplus
6218 extern "C"
6219# endif
6220 int F77_DUMMY_MAIN() { return 1; }
6221#endif
6222int
6223main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00006224{
Martin v. Löwis11437992002-04-12 09:54:03 +00006225
6226 FILE *f = fopen ("conftest.val", "w");
6227 if (! f)
6228 exit (1);
6229 if (((long) (sizeof (char))) < 0)
6230 {
6231 long i = longval ();
6232 if (i != ((long) (sizeof (char))))
6233 exit (1);
6234 fprintf (f, "%ld\n", i);
6235 }
6236 else
6237 {
6238 unsigned long i = ulongval ();
6239 if (i != ((long) (sizeof (char))))
6240 exit (1);
6241 fprintf (f, "%lu\n", i);
6242 }
6243 exit (ferror (f) || fclose (f) != 0);
6244
6245 ;
6246 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00006247}
Martin v. Löwis11437992002-04-12 09:54:03 +00006248_ACEOF
6249rm -f conftest$ac_exeext
6250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_cv_sizeof_char=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00006261else
Martin v. Löwis11437992002-04-12 09:54:03 +00006262 echo "$as_me: program exited with status $ac_status" >&5
6263echo "$as_me: failed program was:" >&5
6264cat conftest.$ac_ext >&5
6265( exit $ac_status )
6266{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
6267echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
6268 { (exit 1); exit 1; }; }
6269fi
6270rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6271fi
6272fi
6273rm -f conftest.val
6274else
Guido van Rossumef2255b2000-03-10 22:30:29 +00006275 ac_cv_sizeof_char=0
6276fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00006277fi
Martin v. Löwis11437992002-04-12 09:54:03 +00006278echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6279echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6280cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00006281#define SIZEOF_CHAR $ac_cv_sizeof_char
Martin v. Löwis11437992002-04-12 09:54:03 +00006282_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00006283
6284
Martin v. Löwis11437992002-04-12 09:54:03 +00006285echo "$as_me:$LINENO: checking for short" >&5
6286echo $ECHO_N "checking for short... $ECHO_C" >&6
6287if test "${ac_cv_type_short+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 cat >conftest.$ac_ext <<_ACEOF
6291#line $LINENO "configure"
6292#include "confdefs.h"
6293$ac_includes_default
6294#ifdef F77_DUMMY_MAIN
6295# ifdef __cplusplus
6296 extern "C"
6297# endif
6298 int F77_DUMMY_MAIN() { return 1; }
6299#endif
6300int
6301main ()
6302{
6303if ((short *) 0)
6304 return 0;
6305if (sizeof (short))
6306 return 0;
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
6312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313 (eval $ac_compile) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_type_short=yes
6324else
6325 echo "$as_me: failed program was:" >&5
6326cat conftest.$ac_ext >&5
6327ac_cv_type_short=no
6328fi
6329rm -f conftest.$ac_objext conftest.$ac_ext
6330fi
6331echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6332echo "${ECHO_T}$ac_cv_type_short" >&6
6333
6334echo "$as_me:$LINENO: checking size of short" >&5
6335echo $ECHO_N "checking size of short... $ECHO_C" >&6
6336if test "${ac_cv_sizeof_short+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 if test "$ac_cv_type_short" = yes; then
6340 # The cast to unsigned long works around a bug in the HP C Compiler
6341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6343 # This bug is HP SR number 8606223364.
6344 if test "$cross_compiling" = yes; then
6345 # Depending upon the size, compute the lo and hi bounds.
6346cat >conftest.$ac_ext <<_ACEOF
6347#line $LINENO "configure"
6348#include "confdefs.h"
6349$ac_includes_default
6350#ifdef F77_DUMMY_MAIN
6351# ifdef __cplusplus
6352 extern "C"
6353# endif
6354 int F77_DUMMY_MAIN() { return 1; }
6355#endif
6356int
6357main ()
6358{
6359static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6360test_array [0] = 0
6361
6362 ;
6363 return 0;
6364}
6365_ACEOF
6366rm -f conftest.$ac_objext
6367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374 (eval $ac_try) 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_lo=0 ac_mid=0
6379 while :; do
6380 cat >conftest.$ac_ext <<_ACEOF
6381#line $LINENO "configure"
6382#include "confdefs.h"
6383$ac_includes_default
6384#ifdef F77_DUMMY_MAIN
6385# ifdef __cplusplus
6386 extern "C"
6387# endif
6388 int F77_DUMMY_MAIN() { return 1; }
6389#endif
6390int
6391main ()
6392{
6393static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6394test_array [0] = 0
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 ac_hi=$ac_mid; break
6413else
6414 echo "$as_me: failed program was:" >&5
6415cat conftest.$ac_ext >&5
6416ac_lo=`expr $ac_mid + 1`
6417 if test $ac_lo -le $ac_mid; then
6418 ac_lo= ac_hi=
6419 break
6420 fi
6421 ac_mid=`expr 2 '*' $ac_mid + 1`
6422fi
6423rm -f conftest.$ac_objext conftest.$ac_ext
6424 done
6425else
6426 echo "$as_me: failed program was:" >&5
6427cat conftest.$ac_ext >&5
6428cat >conftest.$ac_ext <<_ACEOF
6429#line $LINENO "configure"
6430#include "confdefs.h"
6431$ac_includes_default
6432#ifdef F77_DUMMY_MAIN
6433# ifdef __cplusplus
6434 extern "C"
6435# endif
6436 int F77_DUMMY_MAIN() { return 1; }
6437#endif
6438int
6439main ()
6440{
6441static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6442test_array [0] = 0
6443
6444 ;
6445 return 0;
6446}
6447_ACEOF
6448rm -f conftest.$ac_objext
6449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_hi=-1 ac_mid=-1
6461 while :; do
6462 cat >conftest.$ac_ext <<_ACEOF
6463#line $LINENO "configure"
6464#include "confdefs.h"
6465$ac_includes_default
6466#ifdef F77_DUMMY_MAIN
6467# ifdef __cplusplus
6468 extern "C"
6469# endif
6470 int F77_DUMMY_MAIN() { return 1; }
6471#endif
6472int
6473main ()
6474{
6475static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6476test_array [0] = 0
6477
6478 ;
6479 return 0;
6480}
6481_ACEOF
6482rm -f conftest.$ac_objext
6483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_lo=$ac_mid; break
6495else
6496 echo "$as_me: failed program was:" >&5
6497cat conftest.$ac_ext >&5
6498ac_hi=`expr '(' $ac_mid ')' - 1`
6499 if test $ac_mid -le $ac_hi; then
6500 ac_lo= ac_hi=
6501 break
6502 fi
6503 ac_mid=`expr 2 '*' $ac_mid`
6504fi
6505rm -f conftest.$ac_objext conftest.$ac_ext
6506 done
6507else
6508 echo "$as_me: failed program was:" >&5
6509cat conftest.$ac_ext >&5
6510ac_lo= ac_hi=
6511fi
6512rm -f conftest.$ac_objext conftest.$ac_ext
6513fi
6514rm -f conftest.$ac_objext conftest.$ac_ext
6515# Binary search between lo and hi bounds.
6516while test "x$ac_lo" != "x$ac_hi"; do
6517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6518 cat >conftest.$ac_ext <<_ACEOF
6519#line $LINENO "configure"
6520#include "confdefs.h"
6521$ac_includes_default
6522#ifdef F77_DUMMY_MAIN
6523# ifdef __cplusplus
6524 extern "C"
6525# endif
6526 int F77_DUMMY_MAIN() { return 1; }
6527#endif
6528int
6529main ()
6530{
6531static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6532test_array [0] = 0
6533
6534 ;
6535 return 0;
6536}
6537_ACEOF
6538rm -f conftest.$ac_objext
6539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_hi=$ac_mid
6551else
6552 echo "$as_me: failed program was:" >&5
6553cat conftest.$ac_ext >&5
6554ac_lo=`expr '(' $ac_mid ')' + 1`
6555fi
6556rm -f conftest.$ac_objext conftest.$ac_ext
6557done
6558case $ac_lo in
6559?*) ac_cv_sizeof_short=$ac_lo;;
6560'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6561echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6562 { (exit 1); exit 1; }; } ;;
6563esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00006564else
6565 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6567echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6568 { (exit 1); exit 1; }; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00006569else
Martin v. Löwis11437992002-04-12 09:54:03 +00006570 cat >conftest.$ac_ext <<_ACEOF
6571#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00006572#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00006573$ac_includes_default
6574long longval () { return (long) (sizeof (short)); }
6575unsigned long ulongval () { return (long) (sizeof (short)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00006576#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006577#include <stdlib.h>
6578#ifdef F77_DUMMY_MAIN
6579# ifdef __cplusplus
6580 extern "C"
6581# endif
6582 int F77_DUMMY_MAIN() { return 1; }
6583#endif
6584int
6585main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00006586{
Martin v. Löwis11437992002-04-12 09:54:03 +00006587
6588 FILE *f = fopen ("conftest.val", "w");
6589 if (! f)
6590 exit (1);
6591 if (((long) (sizeof (short))) < 0)
6592 {
6593 long i = longval ();
6594 if (i != ((long) (sizeof (short))))
6595 exit (1);
6596 fprintf (f, "%ld\n", i);
6597 }
6598 else
6599 {
6600 unsigned long i = ulongval ();
6601 if (i != ((long) (sizeof (short))))
6602 exit (1);
6603 fprintf (f, "%lu\n", i);
6604 }
6605 exit (ferror (f) || fclose (f) != 0);
6606
6607 ;
6608 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00006609}
Martin v. Löwis11437992002-04-12 09:54:03 +00006610_ACEOF
6611rm -f conftest$ac_exeext
6612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6613 (eval $ac_link) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_cv_sizeof_short=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00006623else
Martin v. Löwis11437992002-04-12 09:54:03 +00006624 echo "$as_me: program exited with status $ac_status" >&5
6625echo "$as_me: failed program was:" >&5
6626cat conftest.$ac_ext >&5
6627( exit $ac_status )
6628{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
6629echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
6630 { (exit 1); exit 1; }; }
6631fi
6632rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6633fi
6634fi
6635rm -f conftest.val
6636else
Guido van Rossumef2255b2000-03-10 22:30:29 +00006637 ac_cv_sizeof_short=0
6638fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00006639fi
Martin v. Löwis11437992002-04-12 09:54:03 +00006640echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6641echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6642cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00006643#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:03 +00006644_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00006645
6646
Martin v. Löwis11437992002-04-12 09:54:03 +00006647echo "$as_me:$LINENO: checking for float" >&5
6648echo $ECHO_N "checking for float... $ECHO_C" >&6
6649if test "${ac_cv_type_float+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652 cat >conftest.$ac_ext <<_ACEOF
6653#line $LINENO "configure"
6654#include "confdefs.h"
6655$ac_includes_default
6656#ifdef F77_DUMMY_MAIN
6657# ifdef __cplusplus
6658 extern "C"
6659# endif
6660 int F77_DUMMY_MAIN() { return 1; }
6661#endif
6662int
6663main ()
6664{
6665if ((float *) 0)
6666 return 0;
6667if (sizeof (float))
6668 return 0;
6669 ;
6670 return 0;
6671}
6672_ACEOF
6673rm -f conftest.$ac_objext
6674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675 (eval $ac_compile) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 ac_cv_type_float=yes
6686else
6687 echo "$as_me: failed program was:" >&5
6688cat conftest.$ac_ext >&5
6689ac_cv_type_float=no
6690fi
6691rm -f conftest.$ac_objext conftest.$ac_ext
6692fi
6693echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
6694echo "${ECHO_T}$ac_cv_type_float" >&6
6695
6696echo "$as_me:$LINENO: checking size of float" >&5
6697echo $ECHO_N "checking size of float... $ECHO_C" >&6
6698if test "${ac_cv_sizeof_float+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701 if test "$ac_cv_type_float" = yes; then
6702 # The cast to unsigned long works around a bug in the HP C Compiler
6703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6705 # This bug is HP SR number 8606223364.
6706 if test "$cross_compiling" = yes; then
6707 # Depending upon the size, compute the lo and hi bounds.
6708cat >conftest.$ac_ext <<_ACEOF
6709#line $LINENO "configure"
6710#include "confdefs.h"
6711$ac_includes_default
6712#ifdef F77_DUMMY_MAIN
6713# ifdef __cplusplus
6714 extern "C"
6715# endif
6716 int F77_DUMMY_MAIN() { return 1; }
6717#endif
6718int
6719main ()
6720{
6721static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
6722test_array [0] = 0
6723
6724 ;
6725 return 0;
6726}
6727_ACEOF
6728rm -f conftest.$ac_objext
6729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
6734 { ac_try='test -s conftest.$ac_objext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
6740 ac_lo=0 ac_mid=0
6741 while :; do
6742 cat >conftest.$ac_ext <<_ACEOF
6743#line $LINENO "configure"
6744#include "confdefs.h"
6745$ac_includes_default
6746#ifdef F77_DUMMY_MAIN
6747# ifdef __cplusplus
6748 extern "C"
6749# endif
6750 int F77_DUMMY_MAIN() { return 1; }
6751#endif
6752int
6753main ()
6754{
6755static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
6756test_array [0] = 0
6757
6758 ;
6759 return 0;
6760}
6761_ACEOF
6762rm -f conftest.$ac_objext
6763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -s conftest.$ac_objext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_hi=$ac_mid; break
6775else
6776 echo "$as_me: failed program was:" >&5
6777cat conftest.$ac_ext >&5
6778ac_lo=`expr $ac_mid + 1`
6779 if test $ac_lo -le $ac_mid; then
6780 ac_lo= ac_hi=
6781 break
6782 fi
6783 ac_mid=`expr 2 '*' $ac_mid + 1`
6784fi
6785rm -f conftest.$ac_objext conftest.$ac_ext
6786 done
6787else
6788 echo "$as_me: failed program was:" >&5
6789cat conftest.$ac_ext >&5
6790cat >conftest.$ac_ext <<_ACEOF
6791#line $LINENO "configure"
6792#include "confdefs.h"
6793$ac_includes_default
6794#ifdef F77_DUMMY_MAIN
6795# ifdef __cplusplus
6796 extern "C"
6797# endif
6798 int F77_DUMMY_MAIN() { return 1; }
6799#endif
6800int
6801main ()
6802{
6803static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
6804test_array [0] = 0
6805
6806 ;
6807 return 0;
6808}
6809_ACEOF
6810rm -f conftest.$ac_objext
6811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_hi=-1 ac_mid=-1
6823 while :; do
6824 cat >conftest.$ac_ext <<_ACEOF
6825#line $LINENO "configure"
6826#include "confdefs.h"
6827$ac_includes_default
6828#ifdef F77_DUMMY_MAIN
6829# ifdef __cplusplus
6830 extern "C"
6831# endif
6832 int F77_DUMMY_MAIN() { return 1; }
6833#endif
6834int
6835main ()
6836{
6837static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
6838test_array [0] = 0
6839
6840 ;
6841 return 0;
6842}
6843_ACEOF
6844rm -f conftest.$ac_objext
6845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 ac_lo=$ac_mid; break
6857else
6858 echo "$as_me: failed program was:" >&5
6859cat conftest.$ac_ext >&5
6860ac_hi=`expr '(' $ac_mid ')' - 1`
6861 if test $ac_mid -le $ac_hi; then
6862 ac_lo= ac_hi=
6863 break
6864 fi
6865 ac_mid=`expr 2 '*' $ac_mid`
6866fi
6867rm -f conftest.$ac_objext conftest.$ac_ext
6868 done
6869else
6870 echo "$as_me: failed program was:" >&5
6871cat conftest.$ac_ext >&5
6872ac_lo= ac_hi=
6873fi
6874rm -f conftest.$ac_objext conftest.$ac_ext
6875fi
6876rm -f conftest.$ac_objext conftest.$ac_ext
6877# Binary search between lo and hi bounds.
6878while test "x$ac_lo" != "x$ac_hi"; do
6879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6880 cat >conftest.$ac_ext <<_ACEOF
6881#line $LINENO "configure"
6882#include "confdefs.h"
6883$ac_includes_default
6884#ifdef F77_DUMMY_MAIN
6885# ifdef __cplusplus
6886 extern "C"
6887# endif
6888 int F77_DUMMY_MAIN() { return 1; }
6889#endif
6890int
6891main ()
6892{
6893static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
6894test_array [0] = 0
6895
6896 ;
6897 return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_hi=$ac_mid
6913else
6914 echo "$as_me: failed program was:" >&5
6915cat conftest.$ac_ext >&5
6916ac_lo=`expr '(' $ac_mid ')' + 1`
6917fi
6918rm -f conftest.$ac_objext conftest.$ac_ext
6919done
6920case $ac_lo in
6921?*) ac_cv_sizeof_float=$ac_lo;;
6922'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
6923echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
6924 { (exit 1); exit 1; }; } ;;
6925esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00006926else
6927 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00006928 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6929echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6930 { (exit 1); exit 1; }; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00006931else
Martin v. Löwis11437992002-04-12 09:54:03 +00006932 cat >conftest.$ac_ext <<_ACEOF
6933#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00006934#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00006935$ac_includes_default
6936long longval () { return (long) (sizeof (float)); }
6937unsigned long ulongval () { return (long) (sizeof (float)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00006938#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00006939#include <stdlib.h>
6940#ifdef F77_DUMMY_MAIN
6941# ifdef __cplusplus
6942 extern "C"
6943# endif
6944 int F77_DUMMY_MAIN() { return 1; }
6945#endif
6946int
6947main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00006948{
Martin v. Löwis11437992002-04-12 09:54:03 +00006949
6950 FILE *f = fopen ("conftest.val", "w");
6951 if (! f)
6952 exit (1);
6953 if (((long) (sizeof (float))) < 0)
6954 {
6955 long i = longval ();
6956 if (i != ((long) (sizeof (float))))
6957 exit (1);
6958 fprintf (f, "%ld\n", i);
6959 }
6960 else
6961 {
6962 unsigned long i = ulongval ();
6963 if (i != ((long) (sizeof (float))))
6964 exit (1);
6965 fprintf (f, "%lu\n", i);
6966 }
6967 exit (ferror (f) || fclose (f) != 0);
6968
6969 ;
6970 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00006971}
Martin v. Löwis11437992002-04-12 09:54:03 +00006972_ACEOF
6973rm -f conftest$ac_exeext
6974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975 (eval $ac_link) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_sizeof_float=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00006985else
Martin v. Löwis11437992002-04-12 09:54:03 +00006986 echo "$as_me: program exited with status $ac_status" >&5
6987echo "$as_me: failed program was:" >&5
6988cat conftest.$ac_ext >&5
6989( exit $ac_status )
6990{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5
6991echo "$as_me: error: cannot compute sizeof (float), 77" >&2;}
6992 { (exit 1); exit 1; }; }
6993fi
6994rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6995fi
6996fi
6997rm -f conftest.val
6998else
Guido van Rossumef2255b2000-03-10 22:30:29 +00006999 ac_cv_sizeof_float=0
7000fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00007001fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007002echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
7003echo "${ECHO_T}$ac_cv_sizeof_float" >&6
7004cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007005#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:03 +00007006_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007007
7008
Martin v. Löwis11437992002-04-12 09:54:03 +00007009echo "$as_me:$LINENO: checking for double" >&5
7010echo $ECHO_N "checking for double... $ECHO_C" >&6
7011if test "${ac_cv_type_double+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013else
7014 cat >conftest.$ac_ext <<_ACEOF
7015#line $LINENO "configure"
7016#include "confdefs.h"
7017$ac_includes_default
7018#ifdef F77_DUMMY_MAIN
7019# ifdef __cplusplus
7020 extern "C"
7021# endif
7022 int F77_DUMMY_MAIN() { return 1; }
7023#endif
7024int
7025main ()
7026{
7027if ((double *) 0)
7028 return 0;
7029if (sizeof (double))
7030 return 0;
7031 ;
7032 return 0;
7033}
7034_ACEOF
7035rm -f conftest.$ac_objext
7036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_type_double=yes
7048else
7049 echo "$as_me: failed program was:" >&5
7050cat conftest.$ac_ext >&5
7051ac_cv_type_double=no
7052fi
7053rm -f conftest.$ac_objext conftest.$ac_ext
7054fi
7055echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
7056echo "${ECHO_T}$ac_cv_type_double" >&6
7057
7058echo "$as_me:$LINENO: checking size of double" >&5
7059echo $ECHO_N "checking size of double... $ECHO_C" >&6
7060if test "${ac_cv_sizeof_double+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 if test "$ac_cv_type_double" = yes; then
7064 # The cast to unsigned long works around a bug in the HP C Compiler
7065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7067 # This bug is HP SR number 8606223364.
7068 if test "$cross_compiling" = yes; then
7069 # Depending upon the size, compute the lo and hi bounds.
7070cat >conftest.$ac_ext <<_ACEOF
7071#line $LINENO "configure"
7072#include "confdefs.h"
7073$ac_includes_default
7074#ifdef F77_DUMMY_MAIN
7075# ifdef __cplusplus
7076 extern "C"
7077# endif
7078 int F77_DUMMY_MAIN() { return 1; }
7079#endif
7080int
7081main ()
7082{
7083static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
7084test_array [0] = 0
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_lo=0 ac_mid=0
7103 while :; do
7104 cat >conftest.$ac_ext <<_ACEOF
7105#line $LINENO "configure"
7106#include "confdefs.h"
7107$ac_includes_default
7108#ifdef F77_DUMMY_MAIN
7109# ifdef __cplusplus
7110 extern "C"
7111# endif
7112 int F77_DUMMY_MAIN() { return 1; }
7113#endif
7114int
7115main ()
7116{
7117static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7118test_array [0] = 0
7119
7120 ;
7121 return 0;
7122}
7123_ACEOF
7124rm -f conftest.$ac_objext
7125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_hi=$ac_mid; break
7137else
7138 echo "$as_me: failed program was:" >&5
7139cat conftest.$ac_ext >&5
7140ac_lo=`expr $ac_mid + 1`
7141 if test $ac_lo -le $ac_mid; then
7142 ac_lo= ac_hi=
7143 break
7144 fi
7145 ac_mid=`expr 2 '*' $ac_mid + 1`
7146fi
7147rm -f conftest.$ac_objext conftest.$ac_ext
7148 done
7149else
7150 echo "$as_me: failed program was:" >&5
7151cat conftest.$ac_ext >&5
7152cat >conftest.$ac_ext <<_ACEOF
7153#line $LINENO "configure"
7154#include "confdefs.h"
7155$ac_includes_default
7156#ifdef F77_DUMMY_MAIN
7157# ifdef __cplusplus
7158 extern "C"
7159# endif
7160 int F77_DUMMY_MAIN() { return 1; }
7161#endif
7162int
7163main ()
7164{
7165static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
7166test_array [0] = 0
7167
7168 ;
7169 return 0;
7170}
7171_ACEOF
7172rm -f conftest.$ac_objext
7173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -s conftest.$ac_objext'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; }; then
7184 ac_hi=-1 ac_mid=-1
7185 while :; do
7186 cat >conftest.$ac_ext <<_ACEOF
7187#line $LINENO "configure"
7188#include "confdefs.h"
7189$ac_includes_default
7190#ifdef F77_DUMMY_MAIN
7191# ifdef __cplusplus
7192 extern "C"
7193# endif
7194 int F77_DUMMY_MAIN() { return 1; }
7195#endif
7196int
7197main ()
7198{
7199static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
7200test_array [0] = 0
7201
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext
7207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_lo=$ac_mid; break
7219else
7220 echo "$as_me: failed program was:" >&5
7221cat conftest.$ac_ext >&5
7222ac_hi=`expr '(' $ac_mid ')' - 1`
7223 if test $ac_mid -le $ac_hi; then
7224 ac_lo= ac_hi=
7225 break
7226 fi
7227 ac_mid=`expr 2 '*' $ac_mid`
7228fi
7229rm -f conftest.$ac_objext conftest.$ac_ext
7230 done
7231else
7232 echo "$as_me: failed program was:" >&5
7233cat conftest.$ac_ext >&5
7234ac_lo= ac_hi=
7235fi
7236rm -f conftest.$ac_objext conftest.$ac_ext
7237fi
7238rm -f conftest.$ac_objext conftest.$ac_ext
7239# Binary search between lo and hi bounds.
7240while test "x$ac_lo" != "x$ac_hi"; do
7241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7242 cat >conftest.$ac_ext <<_ACEOF
7243#line $LINENO "configure"
7244#include "confdefs.h"
7245$ac_includes_default
7246#ifdef F77_DUMMY_MAIN
7247# ifdef __cplusplus
7248 extern "C"
7249# endif
7250 int F77_DUMMY_MAIN() { return 1; }
7251#endif
7252int
7253main ()
7254{
7255static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
7256test_array [0] = 0
7257
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262rm -f conftest.$ac_objext
7263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_hi=$ac_mid
7275else
7276 echo "$as_me: failed program was:" >&5
7277cat conftest.$ac_ext >&5
7278ac_lo=`expr '(' $ac_mid ')' + 1`
7279fi
7280rm -f conftest.$ac_objext conftest.$ac_ext
7281done
7282case $ac_lo in
7283?*) ac_cv_sizeof_double=$ac_lo;;
7284'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7285echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7286 { (exit 1); exit 1; }; } ;;
7287esac
Guido van Rossumef2255b2000-03-10 22:30:29 +00007288else
7289 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007290 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7291echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7292 { (exit 1); exit 1; }; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00007293else
Martin v. Löwis11437992002-04-12 09:54:03 +00007294 cat >conftest.$ac_ext <<_ACEOF
7295#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00007296#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00007297$ac_includes_default
7298long longval () { return (long) (sizeof (double)); }
7299unsigned long ulongval () { return (long) (sizeof (double)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00007300#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007301#include <stdlib.h>
7302#ifdef F77_DUMMY_MAIN
7303# ifdef __cplusplus
7304 extern "C"
7305# endif
7306 int F77_DUMMY_MAIN() { return 1; }
7307#endif
7308int
7309main ()
Guido van Rossumef2255b2000-03-10 22:30:29 +00007310{
Martin v. Löwis11437992002-04-12 09:54:03 +00007311
7312 FILE *f = fopen ("conftest.val", "w");
7313 if (! f)
7314 exit (1);
7315 if (((long) (sizeof (double))) < 0)
7316 {
7317 long i = longval ();
7318 if (i != ((long) (sizeof (double))))
7319 exit (1);
7320 fprintf (f, "%ld\n", i);
7321 }
7322 else
7323 {
7324 unsigned long i = ulongval ();
7325 if (i != ((long) (sizeof (double))))
7326 exit (1);
7327 fprintf (f, "%lu\n", i);
7328 }
7329 exit (ferror (f) || fclose (f) != 0);
7330
7331 ;
7332 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +00007333}
Martin v. Löwis11437992002-04-12 09:54:03 +00007334_ACEOF
7335rm -f conftest$ac_exeext
7336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_sizeof_double=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +00007347else
Martin v. Löwis11437992002-04-12 09:54:03 +00007348 echo "$as_me: program exited with status $ac_status" >&5
7349echo "$as_me: failed program was:" >&5
7350cat conftest.$ac_ext >&5
7351( exit $ac_status )
7352{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5
7353echo "$as_me: error: cannot compute sizeof (double), 77" >&2;}
7354 { (exit 1); exit 1; }; }
7355fi
7356rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7357fi
7358fi
7359rm -f conftest.val
7360else
Guido van Rossumef2255b2000-03-10 22:30:29 +00007361 ac_cv_sizeof_double=0
7362fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00007363fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007364echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
7365echo "${ECHO_T}$ac_cv_sizeof_double" >&6
7366cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007367#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:03 +00007368_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +00007369
7370
Martin v. Löwis11437992002-04-12 09:54:03 +00007371echo "$as_me:$LINENO: checking for fpos_t" >&5
7372echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
7373if test "${ac_cv_type_fpos_t+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376 cat >conftest.$ac_ext <<_ACEOF
7377#line $LINENO "configure"
7378#include "confdefs.h"
7379$ac_includes_default
7380#ifdef F77_DUMMY_MAIN
7381# ifdef __cplusplus
7382 extern "C"
7383# endif
7384 int F77_DUMMY_MAIN() { return 1; }
7385#endif
7386int
7387main ()
7388{
7389if ((fpos_t *) 0)
7390 return 0;
7391if (sizeof (fpos_t))
7392 return 0;
7393 ;
7394 return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext
7398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_type_fpos_t=yes
7410else
7411 echo "$as_me: failed program was:" >&5
7412cat conftest.$ac_ext >&5
7413ac_cv_type_fpos_t=no
7414fi
7415rm -f conftest.$ac_objext conftest.$ac_ext
7416fi
7417echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
7418echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
7419
7420echo "$as_me:$LINENO: checking size of fpos_t" >&5
7421echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
7422if test "${ac_cv_sizeof_fpos_t+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425 if test "$ac_cv_type_fpos_t" = yes; then
7426 # The cast to unsigned long works around a bug in the HP C Compiler
7427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7429 # This bug is HP SR number 8606223364.
7430 if test "$cross_compiling" = yes; then
7431 # Depending upon the size, compute the lo and hi bounds.
7432cat >conftest.$ac_ext <<_ACEOF
7433#line $LINENO "configure"
7434#include "confdefs.h"
7435$ac_includes_default
7436#ifdef F77_DUMMY_MAIN
7437# ifdef __cplusplus
7438 extern "C"
7439# endif
7440 int F77_DUMMY_MAIN() { return 1; }
7441#endif
7442int
7443main ()
7444{
7445static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
7446test_array [0] = 0
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452rm -f conftest.$ac_objext
7453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_lo=0 ac_mid=0
7465 while :; do
7466 cat >conftest.$ac_ext <<_ACEOF
7467#line $LINENO "configure"
7468#include "confdefs.h"
7469$ac_includes_default
7470#ifdef F77_DUMMY_MAIN
7471# ifdef __cplusplus
7472 extern "C"
7473# endif
7474 int F77_DUMMY_MAIN() { return 1; }
7475#endif
7476int
7477main ()
7478{
7479static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7480test_array [0] = 0
7481
7482 ;
7483 return 0;
7484}
7485_ACEOF
7486rm -f conftest.$ac_objext
7487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7488 (eval $ac_compile) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try='test -s conftest.$ac_objext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 ac_hi=$ac_mid; break
7499else
7500 echo "$as_me: failed program was:" >&5
7501cat conftest.$ac_ext >&5
7502ac_lo=`expr $ac_mid + 1`
7503 if test $ac_lo -le $ac_mid; then
7504 ac_lo= ac_hi=
7505 break
7506 fi
7507 ac_mid=`expr 2 '*' $ac_mid + 1`
7508fi
7509rm -f conftest.$ac_objext conftest.$ac_ext
7510 done
7511else
7512 echo "$as_me: failed program was:" >&5
7513cat conftest.$ac_ext >&5
7514cat >conftest.$ac_ext <<_ACEOF
7515#line $LINENO "configure"
7516#include "confdefs.h"
7517$ac_includes_default
7518#ifdef F77_DUMMY_MAIN
7519# ifdef __cplusplus
7520 extern "C"
7521# endif
7522 int F77_DUMMY_MAIN() { return 1; }
7523#endif
7524int
7525main ()
7526{
7527static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
7528test_array [0] = 0
7529
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534rm -f conftest.$ac_objext
7535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_hi=-1 ac_mid=-1
7547 while :; do
7548 cat >conftest.$ac_ext <<_ACEOF
7549#line $LINENO "configure"
7550#include "confdefs.h"
7551$ac_includes_default
7552#ifdef F77_DUMMY_MAIN
7553# ifdef __cplusplus
7554 extern "C"
7555# endif
7556 int F77_DUMMY_MAIN() { return 1; }
7557#endif
7558int
7559main ()
7560{
7561static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
7562test_array [0] = 0
7563
7564 ;
7565 return 0;
7566}
7567_ACEOF
7568rm -f conftest.$ac_objext
7569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570 (eval $ac_compile) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -s conftest.$ac_objext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 ac_lo=$ac_mid; break
7581else
7582 echo "$as_me: failed program was:" >&5
7583cat conftest.$ac_ext >&5
7584ac_hi=`expr '(' $ac_mid ')' - 1`
7585 if test $ac_mid -le $ac_hi; then
7586 ac_lo= ac_hi=
7587 break
7588 fi
7589 ac_mid=`expr 2 '*' $ac_mid`
7590fi
7591rm -f conftest.$ac_objext conftest.$ac_ext
7592 done
7593else
7594 echo "$as_me: failed program was:" >&5
7595cat conftest.$ac_ext >&5
7596ac_lo= ac_hi=
7597fi
7598rm -f conftest.$ac_objext conftest.$ac_ext
7599fi
7600rm -f conftest.$ac_objext conftest.$ac_ext
7601# Binary search between lo and hi bounds.
7602while test "x$ac_lo" != "x$ac_hi"; do
7603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7604 cat >conftest.$ac_ext <<_ACEOF
7605#line $LINENO "configure"
7606#include "confdefs.h"
7607$ac_includes_default
7608#ifdef F77_DUMMY_MAIN
7609# ifdef __cplusplus
7610 extern "C"
7611# endif
7612 int F77_DUMMY_MAIN() { return 1; }
7613#endif
7614int
7615main ()
7616{
7617static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
7618test_array [0] = 0
7619
7620 ;
7621 return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext
7625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_hi=$ac_mid
7637else
7638 echo "$as_me: failed program was:" >&5
7639cat conftest.$ac_ext >&5
7640ac_lo=`expr '(' $ac_mid ')' + 1`
7641fi
7642rm -f conftest.$ac_objext conftest.$ac_ext
7643done
7644case $ac_lo in
7645?*) ac_cv_sizeof_fpos_t=$ac_lo;;
7646'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
7647echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
7648 { (exit 1); exit 1; }; } ;;
7649esac
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007650else
7651 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007652 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7653echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7654 { (exit 1); exit 1; }; }
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007655else
Martin v. Löwis11437992002-04-12 09:54:03 +00007656 cat >conftest.$ac_ext <<_ACEOF
7657#line $LINENO "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007658#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00007659$ac_includes_default
7660long longval () { return (long) (sizeof (fpos_t)); }
7661unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00007662#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00007663#include <stdlib.h>
7664#ifdef F77_DUMMY_MAIN
7665# ifdef __cplusplus
7666 extern "C"
7667# endif
7668 int F77_DUMMY_MAIN() { return 1; }
7669#endif
7670int
7671main ()
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007672{
Martin v. Löwis11437992002-04-12 09:54:03 +00007673
7674 FILE *f = fopen ("conftest.val", "w");
7675 if (! f)
7676 exit (1);
7677 if (((long) (sizeof (fpos_t))) < 0)
7678 {
7679 long i = longval ();
7680 if (i != ((long) (sizeof (fpos_t))))
7681 exit (1);
7682 fprintf (f, "%ld\n", i);
7683 }
7684 else
7685 {
7686 unsigned long i = ulongval ();
7687 if (i != ((long) (sizeof (fpos_t))))
7688 exit (1);
7689 fprintf (f, "%lu\n", i);
7690 }
7691 exit (ferror (f) || fclose (f) != 0);
7692
7693 ;
7694 return 0;
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007695}
Martin v. Löwis11437992002-04-12 09:54:03 +00007696_ACEOF
7697rm -f conftest$ac_exeext
7698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; }; then
7708 ac_cv_sizeof_fpos_t=`cat conftest.val`
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007709else
Martin v. Löwis11437992002-04-12 09:54:03 +00007710 echo "$as_me: program exited with status $ac_status" >&5
7711echo "$as_me: failed program was:" >&5
7712cat conftest.$ac_ext >&5
7713( exit $ac_status )
7714{ { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5
7715echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;}
7716 { (exit 1); exit 1; }; }
7717fi
7718rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7719fi
7720fi
7721rm -f conftest.val
7722else
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007723 ac_cv_sizeof_fpos_t=0
7724fi
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007725fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007726echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
7727echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
7728cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007729#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:03 +00007730_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00007731
Michael W. Hudson54241132001-12-07 15:38:26 +00007732
7733
Martin v. Löwis11437992002-04-12 09:54:03 +00007734echo "$as_me:$LINENO: checking for long long support" >&5
7735echo $ECHO_N "checking for long long support... $ECHO_C" >&6
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007736have_long_long=no
Martin v. Löwis11437992002-04-12 09:54:03 +00007737cat >conftest.$ac_ext <<_ACEOF
7738#line $LINENO "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007739#include "confdefs.h"
7740
Martin v. Löwis11437992002-04-12 09:54:03 +00007741#ifdef F77_DUMMY_MAIN
7742# ifdef __cplusplus
7743 extern "C"
7744# endif
7745 int F77_DUMMY_MAIN() { return 1; }
7746#endif
7747int
7748main ()
7749{
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007750long long x; x = (long long)0;
Martin v. Löwis11437992002-04-12 09:54:03 +00007751 ;
7752 return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext
7756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -s conftest.$ac_objext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767
7768
7769cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007770#define HAVE_LONG_LONG 1
Martin v. Löwis11437992002-04-12 09:54:03 +00007771_ACEOF
7772
Martin v. Löwisc45929e2002-04-06 10:10:49 +00007773 have_long_long=yes
7774
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007775else
Martin v. Löwis11437992002-04-12 09:54:03 +00007776 echo "$as_me: failed program was:" >&5
7777cat conftest.$ac_ext >&5
Guido van Rossumec95c7b1998-08-04 17:59:56 +00007778fi
Martin v. Löwis11437992002-04-12 09:54:03 +00007779rm -f conftest.$ac_objext conftest.$ac_ext
7780echo "$as_me:$LINENO: result: $have_long_long" >&5
7781echo "${ECHO_T}$have_long_long" >&6
Guido van Rossum96f2eb91999-04-10 16:02:18 +00007782if test "$have_long_long" = yes ; then
Martin v. Löwis11437992002-04-12 09:54:03 +00007783echo "$as_me:$LINENO: checking for long long" >&5
7784echo $ECHO_N "checking for long long... $ECHO_C" >&6
7785if test "${ac_cv_type_long_long+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 cat >conftest.$ac_ext <<_ACEOF
7789#line $LINENO "configure"
7790#include "confdefs.h"
7791$ac_includes_default
7792#ifdef F77_DUMMY_MAIN
7793# ifdef __cplusplus
7794 extern "C"
7795# endif
7796 int F77_DUMMY_MAIN() { return 1; }
7797#endif
7798int
7799main ()
7800{
7801if ((long long *) 0)
7802 return 0;
7803if (sizeof (long long))
7804 return 0;
7805 ;
7806 return 0;
7807}
7808_ACEOF
7809rm -f conftest.$ac_objext
7810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811 (eval $ac_compile) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -s conftest.$ac_objext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_type_long_long=yes
7822else
7823 echo "$as_me: failed program was:" >&5
7824cat conftest.$ac_ext >&5
7825ac_cv_type_long_long=no
7826fi
7827rm -f conftest.$ac_objext conftest.$ac_ext
7828fi
7829echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7830echo "${ECHO_T}$ac_cv_type_long_long" >&6
7831
7832echo "$as_me:$LINENO: checking size of long long" >&5
7833echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7834if test "${ac_cv_sizeof_long_long+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 if test "$ac_cv_type_long_long" = yes; then
7838 # The cast to unsigned long works around a bug in the HP C Compiler
7839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7841 # This bug is HP SR number 8606223364.
7842 if test "$cross_compiling" = yes; then
7843 # Depending upon the size, compute the lo and hi bounds.
7844cat >conftest.$ac_ext <<_ACEOF
7845#line $LINENO "configure"
7846#include "confdefs.h"
7847$ac_includes_default
7848#ifdef F77_DUMMY_MAIN
7849# ifdef __cplusplus
7850 extern "C"
7851# endif
7852 int F77_DUMMY_MAIN() { return 1; }
7853#endif
7854int
7855main ()
7856{
7857static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7858test_array [0] = 0
7859
7860 ;
7861 return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext
7865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_lo=0 ac_mid=0
7877 while :; do
7878 cat >conftest.$ac_ext <<_ACEOF
7879#line $LINENO "configure"
7880#include "confdefs.h"
7881$ac_includes_default
7882#ifdef F77_DUMMY_MAIN
7883# ifdef __cplusplus
7884 extern "C"
7885# endif
7886 int F77_DUMMY_MAIN() { return 1; }
7887#endif
7888int
7889main ()
7890{
7891static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7892test_array [0] = 0
7893
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_hi=$ac_mid; break
7911else
7912 echo "$as_me: failed program was:" >&5
7913cat conftest.$ac_ext >&5
7914ac_lo=`expr $ac_mid + 1`
7915 if test $ac_lo -le $ac_mid; then
7916 ac_lo= ac_hi=
7917 break
7918 fi
7919 ac_mid=`expr 2 '*' $ac_mid + 1`
7920fi
7921rm -f conftest.$ac_objext conftest.$ac_ext
7922 done
7923else
7924 echo "$as_me: failed program was:" >&5
7925cat conftest.$ac_ext >&5
7926cat >conftest.$ac_ext <<_ACEOF
7927#line $LINENO "configure"
7928#include "confdefs.h"
7929$ac_includes_default
7930#ifdef F77_DUMMY_MAIN
7931# ifdef __cplusplus
7932 extern "C"
7933# endif
7934 int F77_DUMMY_MAIN() { return 1; }
7935#endif
7936int
7937main ()
7938{
7939static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7940test_array [0] = 0
7941
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext
7947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_hi=-1 ac_mid=-1
7959 while :; do
7960 cat >conftest.$ac_ext <<_ACEOF
7961#line $LINENO "configure"
7962#include "confdefs.h"
7963$ac_includes_default
7964#ifdef F77_DUMMY_MAIN
7965# ifdef __cplusplus
7966 extern "C"
7967# endif
7968 int F77_DUMMY_MAIN() { return 1; }
7969#endif
7970int
7971main ()
7972{
7973static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7974test_array [0] = 0
7975
7976 ;
7977 return 0;
7978}
7979_ACEOF
7980rm -f conftest.$ac_objext
7981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_lo=$ac_mid; break
7993else
7994 echo "$as_me: failed program was:" >&5
7995cat conftest.$ac_ext >&5
7996ac_hi=`expr '(' $ac_mid ')' - 1`
7997 if test $ac_mid -le $ac_hi; then
7998 ac_lo= ac_hi=
7999 break
8000 fi
8001 ac_mid=`expr 2 '*' $ac_mid`
8002fi
8003rm -f conftest.$ac_objext conftest.$ac_ext
8004 done
8005else
8006 echo "$as_me: failed program was:" >&5
8007cat conftest.$ac_ext >&5
8008ac_lo= ac_hi=
8009fi
8010rm -f conftest.$ac_objext conftest.$ac_ext
8011fi
8012rm -f conftest.$ac_objext conftest.$ac_ext
8013# Binary search between lo and hi bounds.
8014while test "x$ac_lo" != "x$ac_hi"; do
8015 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8016 cat >conftest.$ac_ext <<_ACEOF
8017#line $LINENO "configure"
8018#include "confdefs.h"
8019$ac_includes_default
8020#ifdef F77_DUMMY_MAIN
8021# ifdef __cplusplus
8022 extern "C"
8023# endif
8024 int F77_DUMMY_MAIN() { return 1; }
8025#endif
8026int
8027main ()
8028{
8029static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8030test_array [0] = 0
8031
8032 ;
8033 return 0;
8034}
8035_ACEOF
8036rm -f conftest.$ac_objext
8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038 (eval $ac_compile) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_hi=$ac_mid
8049else
8050 echo "$as_me: failed program was:" >&5
8051cat conftest.$ac_ext >&5
8052ac_lo=`expr '(' $ac_mid ')' + 1`
8053fi
8054rm -f conftest.$ac_objext conftest.$ac_ext
8055done
8056case $ac_lo in
8057?*) ac_cv_sizeof_long_long=$ac_lo;;
8058'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8059echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8060 { (exit 1); exit 1; }; } ;;
8061esac
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008062else
8063 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8065echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8066 { (exit 1); exit 1; }; }
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008067else
Martin v. Löwis11437992002-04-12 09:54:03 +00008068 cat >conftest.$ac_ext <<_ACEOF
8069#line $LINENO "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008070#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00008071$ac_includes_default
8072long longval () { return (long) (sizeof (long long)); }
8073unsigned long ulongval () { return (long) (sizeof (long long)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008074#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008075#include <stdlib.h>
8076#ifdef F77_DUMMY_MAIN
8077# ifdef __cplusplus
8078 extern "C"
8079# endif
8080 int F77_DUMMY_MAIN() { return 1; }
8081#endif
8082int
8083main ()
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008084{
Martin v. Löwis11437992002-04-12 09:54:03 +00008085
8086 FILE *f = fopen ("conftest.val", "w");
8087 if (! f)
8088 exit (1);
8089 if (((long) (sizeof (long long))) < 0)
8090 {
8091 long i = longval ();
8092 if (i != ((long) (sizeof (long long))))
8093 exit (1);
8094 fprintf (f, "%ld\n", i);
8095 }
8096 else
8097 {
8098 unsigned long i = ulongval ();
8099 if (i != ((long) (sizeof (long long))))
8100 exit (1);
8101 fprintf (f, "%lu\n", i);
8102 }
8103 exit (ferror (f) || fclose (f) != 0);
8104
8105 ;
8106 return 0;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008107}
Martin v. Löwis11437992002-04-12 09:54:03 +00008108_ACEOF
8109rm -f conftest$ac_exeext
8110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_sizeof_long_long=`cat conftest.val`
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008121else
Martin v. Löwis11437992002-04-12 09:54:03 +00008122 echo "$as_me: program exited with status $ac_status" >&5
8123echo "$as_me: failed program was:" >&5
8124cat conftest.$ac_ext >&5
8125( exit $ac_status )
8126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
8127echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
8128 { (exit 1); exit 1; }; }
8129fi
8130rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8131fi
8132fi
8133rm -f conftest.val
8134else
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008135 ac_cv_sizeof_long_long=0
8136fi
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008137fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008138echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8139echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8140cat >>confdefs.h <<_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008141#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Martin v. Löwis11437992002-04-12 09:54:03 +00008142_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008143
Michael W. Hudson54241132001-12-07 15:38:26 +00008144
Guido van Rossumec95c7b1998-08-04 17:59:56 +00008145fi
8146
Martin v. Löwis11437992002-04-12 09:54:03 +00008147echo "$as_me:$LINENO: checking for uintptr_t support" >&5
8148echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008149have_uintptr_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008150cat >conftest.$ac_ext <<_ACEOF
8151#line $LINENO "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008152#include "confdefs.h"
8153
Martin v. Löwis11437992002-04-12 09:54:03 +00008154#ifdef F77_DUMMY_MAIN
8155# ifdef __cplusplus
8156 extern "C"
8157# endif
8158 int F77_DUMMY_MAIN() { return 1; }
8159#endif
8160int
8161main ()
8162{
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008163uintptr_t x; x = (uintptr_t)0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008164 ;
8165 return 0;
8166}
8167_ACEOF
8168rm -f conftest.$ac_objext
8169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170 (eval $ac_compile) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -s conftest.$ac_objext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180
8181
8182cat >>confdefs.h <<\_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008183#define HAVE_UINTPTR_T 1
Martin v. Löwis11437992002-04-12 09:54:03 +00008184_ACEOF
8185
Martin v. Löwisc45929e2002-04-06 10:10:49 +00008186 have_uintptr_t=yes
8187
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008188else
Martin v. Löwis11437992002-04-12 09:54:03 +00008189 echo "$as_me: failed program was:" >&5
8190cat conftest.$ac_ext >&5
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008191fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008192rm -f conftest.$ac_objext conftest.$ac_ext
8193echo "$as_me:$LINENO: result: $have_uintptr_t" >&5
8194echo "${ECHO_T}$have_uintptr_t" >&6
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008195if test "$have_uintptr_t" = yes ; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008196echo "$as_me:$LINENO: checking for uintptr_t" >&5
8197echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8198if test "${ac_cv_type_uintptr_t+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 cat >conftest.$ac_ext <<_ACEOF
8202#line $LINENO "configure"
8203#include "confdefs.h"
8204$ac_includes_default
8205#ifdef F77_DUMMY_MAIN
8206# ifdef __cplusplus
8207 extern "C"
8208# endif
8209 int F77_DUMMY_MAIN() { return 1; }
8210#endif
8211int
8212main ()
8213{
8214if ((uintptr_t *) 0)
8215 return 0;
8216if (sizeof (uintptr_t))
8217 return 0;
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext
8223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8224 (eval $ac_compile) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_type_uintptr_t=yes
8235else
8236 echo "$as_me: failed program was:" >&5
8237cat conftest.$ac_ext >&5
8238ac_cv_type_uintptr_t=no
8239fi
8240rm -f conftest.$ac_objext conftest.$ac_ext
8241fi
8242echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8243echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8244
8245echo "$as_me:$LINENO: checking size of uintptr_t" >&5
8246echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
8247if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 if test "$ac_cv_type_uintptr_t" = yes; then
8251 # The cast to unsigned long works around a bug in the HP C Compiler
8252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8254 # This bug is HP SR number 8606223364.
8255 if test "$cross_compiling" = yes; then
8256 # Depending upon the size, compute the lo and hi bounds.
8257cat >conftest.$ac_ext <<_ACEOF
8258#line $LINENO "configure"
8259#include "confdefs.h"
8260$ac_includes_default
8261#ifdef F77_DUMMY_MAIN
8262# ifdef __cplusplus
8263 extern "C"
8264# endif
8265 int F77_DUMMY_MAIN() { return 1; }
8266#endif
8267int
8268main ()
8269{
8270static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
8271test_array [0] = 0
8272
8273 ;
8274 return 0;
8275}
8276_ACEOF
8277rm -f conftest.$ac_objext
8278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -s conftest.$ac_objext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_lo=0 ac_mid=0
8290 while :; do
8291 cat >conftest.$ac_ext <<_ACEOF
8292#line $LINENO "configure"
8293#include "confdefs.h"
8294$ac_includes_default
8295#ifdef F77_DUMMY_MAIN
8296# ifdef __cplusplus
8297 extern "C"
8298# endif
8299 int F77_DUMMY_MAIN() { return 1; }
8300#endif
8301int
8302main ()
8303{
8304static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8305test_array [0] = 0
8306
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311rm -f conftest.$ac_objext
8312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_hi=$ac_mid; break
8324else
8325 echo "$as_me: failed program was:" >&5
8326cat conftest.$ac_ext >&5
8327ac_lo=`expr $ac_mid + 1`
8328 if test $ac_lo -le $ac_mid; then
8329 ac_lo= ac_hi=
8330 break
8331 fi
8332 ac_mid=`expr 2 '*' $ac_mid + 1`
8333fi
8334rm -f conftest.$ac_objext conftest.$ac_ext
8335 done
8336else
8337 echo "$as_me: failed program was:" >&5
8338cat conftest.$ac_ext >&5
8339cat >conftest.$ac_ext <<_ACEOF
8340#line $LINENO "configure"
8341#include "confdefs.h"
8342$ac_includes_default
8343#ifdef F77_DUMMY_MAIN
8344# ifdef __cplusplus
8345 extern "C"
8346# endif
8347 int F77_DUMMY_MAIN() { return 1; }
8348#endif
8349int
8350main ()
8351{
8352static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
8353test_array [0] = 0
8354
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359rm -f conftest.$ac_objext
8360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8361 (eval $ac_compile) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest.$ac_objext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_hi=-1 ac_mid=-1
8372 while :; do
8373 cat >conftest.$ac_ext <<_ACEOF
8374#line $LINENO "configure"
8375#include "confdefs.h"
8376$ac_includes_default
8377#ifdef F77_DUMMY_MAIN
8378# ifdef __cplusplus
8379 extern "C"
8380# endif
8381 int F77_DUMMY_MAIN() { return 1; }
8382#endif
8383int
8384main ()
8385{
8386static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
8387test_array [0] = 0
8388
8389 ;
8390 return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest.$ac_objext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_lo=$ac_mid; break
8406else
8407 echo "$as_me: failed program was:" >&5
8408cat conftest.$ac_ext >&5
8409ac_hi=`expr '(' $ac_mid ')' - 1`
8410 if test $ac_mid -le $ac_hi; then
8411 ac_lo= ac_hi=
8412 break
8413 fi
8414 ac_mid=`expr 2 '*' $ac_mid`
8415fi
8416rm -f conftest.$ac_objext conftest.$ac_ext
8417 done
8418else
8419 echo "$as_me: failed program was:" >&5
8420cat conftest.$ac_ext >&5
8421ac_lo= ac_hi=
8422fi
8423rm -f conftest.$ac_objext conftest.$ac_ext
8424fi
8425rm -f conftest.$ac_objext conftest.$ac_ext
8426# Binary search between lo and hi bounds.
8427while test "x$ac_lo" != "x$ac_hi"; do
8428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8429 cat >conftest.$ac_ext <<_ACEOF
8430#line $LINENO "configure"
8431#include "confdefs.h"
8432$ac_includes_default
8433#ifdef F77_DUMMY_MAIN
8434# ifdef __cplusplus
8435 extern "C"
8436# endif
8437 int F77_DUMMY_MAIN() { return 1; }
8438#endif
8439int
8440main ()
8441{
8442static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
8443test_array [0] = 0
8444
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest.$ac_objext
8450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_hi=$ac_mid
8462else
8463 echo "$as_me: failed program was:" >&5
8464cat conftest.$ac_ext >&5
8465ac_lo=`expr '(' $ac_mid ')' + 1`
8466fi
8467rm -f conftest.$ac_objext conftest.$ac_ext
8468done
8469case $ac_lo in
8470?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
8471'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8472echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8473 { (exit 1); exit 1; }; } ;;
8474esac
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008475else
8476 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +00008477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8478echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8479 { (exit 1); exit 1; }; }
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008480else
Martin v. Löwis11437992002-04-12 09:54:03 +00008481 cat >conftest.$ac_ext <<_ACEOF
8482#line $LINENO "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008483#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00008484$ac_includes_default
8485long longval () { return (long) (sizeof (uintptr_t)); }
8486unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +00008487#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008488#include <stdlib.h>
8489#ifdef F77_DUMMY_MAIN
8490# ifdef __cplusplus
8491 extern "C"
8492# endif
8493 int F77_DUMMY_MAIN() { return 1; }
8494#endif
8495int
8496main ()
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008497{
Martin v. Löwis11437992002-04-12 09:54:03 +00008498
8499 FILE *f = fopen ("conftest.val", "w");
8500 if (! f)
8501 exit (1);
8502 if (((long) (sizeof (uintptr_t))) < 0)
8503 {
8504 long i = longval ();
8505 if (i != ((long) (sizeof (uintptr_t))))
8506 exit (1);
8507 fprintf (f, "%ld\n", i);
8508 }
8509 else
8510 {
8511 unsigned long i = ulongval ();
8512 if (i != ((long) (sizeof (uintptr_t))))
8513 exit (1);
8514 fprintf (f, "%lu\n", i);
8515 }
8516 exit (ferror (f) || fclose (f) != 0);
8517
8518 ;
8519 return 0;
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008520}
Martin v. Löwis11437992002-04-12 09:54:03 +00008521_ACEOF
8522rm -f conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 ac_cv_sizeof_uintptr_t=`cat conftest.val`
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008534else
Martin v. Löwis11437992002-04-12 09:54:03 +00008535 echo "$as_me: program exited with status $ac_status" >&5
8536echo "$as_me: failed program was:" >&5
8537cat conftest.$ac_ext >&5
8538( exit $ac_status )
8539{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5
8540echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;}
8541 { (exit 1); exit 1; }; }
8542fi
8543rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8544fi
8545fi
8546rm -f conftest.val
8547else
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008548 ac_cv_sizeof_uintptr_t=0
8549fi
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008550fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008551echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
8552echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
8553cat >>confdefs.h <<_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008554#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008555_ACEOF
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008556
Michael W. Hudson54241132001-12-07 15:38:26 +00008557
Barry Warsawbc7c7f92000-08-18 04:53:33 +00008558fi
8559
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008560# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
Martin v. Löwis11437992002-04-12 09:54:03 +00008561echo "$as_me:$LINENO: checking size of off_t" >&5
8562echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
8563if test "${ac_cv_sizeof_off_t+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008565else
8566 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00008567 ac_cv_sizeof_off_t=4
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008568else
Martin v. Löwis11437992002-04-12 09:54:03 +00008569 cat >conftest.$ac_ext <<_ACEOF
8570#line $LINENO "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008571#include "confdefs.h"
8572#include <stdio.h>
8573#include <sys/types.h>
8574main()
8575{
8576 FILE *f=fopen("conftestval", "w");
8577 if (!f) exit(1);
8578 fprintf(f, "%d\n", sizeof(off_t));
8579 exit(0);
8580}
Martin v. Löwis11437992002-04-12 09:54:03 +00008581_ACEOF
8582rm -f conftest$ac_exeext
8583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008593 ac_cv_sizeof_off_t=`cat conftestval`
8594else
Martin v. Löwis11437992002-04-12 09:54:03 +00008595 echo "$as_me: program exited with status $ac_status" >&5
8596echo "$as_me: failed program was:" >&5
8597cat conftest.$ac_ext >&5
8598( exit $ac_status )
8599ac_cv_sizeof_off_t=0
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008600fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008601rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008602fi
8603
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008604fi
8605
Martin v. Löwis11437992002-04-12 09:54:03 +00008606echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8607echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8608
8609cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008610#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008611_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008612
Michael W. Hudson54241132001-12-07 15:38:26 +00008613
Martin v. Löwis11437992002-04-12 09:54:03 +00008614echo "$as_me:$LINENO: checking whether to enable large file support" >&5
8615echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6
Guido van Rossum96f2eb91999-04-10 16:02:18 +00008616if test "$have_long_long" = yes -a \
8617 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8618 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008619
Martin v. Löwis11437992002-04-12 09:54:03 +00008620cat >>confdefs.h <<\_ACEOF
8621#define HAVE_LARGEFILE_SUPPORT 1
8622_ACEOF
8623
8624 echo "$as_me:$LINENO: result: yes" >&5
8625echo "${ECHO_T}yes" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008626else
Martin v. Löwis11437992002-04-12 09:54:03 +00008627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +00008629fi
8630
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008631# AC_CHECK_SIZEOF() doesn't include <time.h>.
Martin v. Löwis11437992002-04-12 09:54:03 +00008632echo "$as_me:$LINENO: checking size of time_t" >&5
8633echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
8634if test "${ac_cv_sizeof_time_t+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008636else
8637 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00008638 ac_cv_sizeof_time_t=4
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008639else
Martin v. Löwis11437992002-04-12 09:54:03 +00008640 cat >conftest.$ac_ext <<_ACEOF
8641#line $LINENO "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008642#include "confdefs.h"
8643#include <stdio.h>
8644#include <time.h>
8645main()
8646{
8647 FILE *f=fopen("conftestval", "w");
8648 if (!f) exit(1);
8649 fprintf(f, "%d\n", sizeof(time_t));
8650 exit(0);
8651}
Martin v. Löwis11437992002-04-12 09:54:03 +00008652_ACEOF
8653rm -f conftest$ac_exeext
8654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008664 ac_cv_sizeof_time_t=`cat conftestval`
8665else
Martin v. Löwis11437992002-04-12 09:54:03 +00008666 echo "$as_me: program exited with status $ac_status" >&5
8667echo "$as_me: failed program was:" >&5
8668cat conftest.$ac_ext >&5
8669( exit $ac_status )
8670ac_cv_sizeof_time_t=0
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008671fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008672rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008673fi
8674
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008675fi
8676
Martin v. Löwis11437992002-04-12 09:54:03 +00008677echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
8678echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
8679
8680cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008681#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008682_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:53 +00008683
Michael W. Hudson54241132001-12-07 15:38:26 +00008684
8685
Trent Mick635f6fb2000-08-23 21:33:05 +00008686# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:10 +00008687ac_save_cc="$CC"
8688if test "$ac_cv_kpthread" = "yes"
8689then CC="$CC -Kpthread"
8690fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008691echo "$as_me:$LINENO: checking for pthread_t" >&5
8692echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6
Trent Mick635f6fb2000-08-23 21:33:05 +00008693have_pthread_t=no
Martin v. Löwis11437992002-04-12 09:54:03 +00008694cat >conftest.$ac_ext <<_ACEOF
8695#line $LINENO "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00008696#include "confdefs.h"
8697#include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00008698#ifdef F77_DUMMY_MAIN
8699# ifdef __cplusplus
8700 extern "C"
8701# endif
8702 int F77_DUMMY_MAIN() { return 1; }
8703#endif
8704int
8705main ()
8706{
Guido van Rossum12580492000-09-24 16:47:19 +00008707pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:03 +00008708 ;
8709 return 0;
8710}
8711_ACEOF
8712rm -f conftest.$ac_objext
8713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +00008724 have_pthread_t=yes
8725else
Martin v. Löwis11437992002-04-12 09:54:03 +00008726 echo "$as_me: failed program was:" >&5
8727cat conftest.$ac_ext >&5
Trent Mick635f6fb2000-08-23 21:33:05 +00008728fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008729rm -f conftest.$ac_objext conftest.$ac_ext
8730echo "$as_me:$LINENO: result: $have_pthread_t" >&5
8731echo "${ECHO_T}$have_pthread_t" >&6
Trent Mick635f6fb2000-08-23 21:33:05 +00008732if test "$have_pthread_t" = yes ; then
8733 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
Martin v. Löwis11437992002-04-12 09:54:03 +00008734 echo "$as_me:$LINENO: checking size of pthread_t" >&5
8735echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
8736 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
Trent Mick635f6fb2000-08-23 21:33:05 +00008738else
8739 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +00008740 ac_cv_sizeof_pthread_t=4
Trent Mick635f6fb2000-08-23 21:33:05 +00008741else
Martin v. Löwis11437992002-04-12 09:54:03 +00008742 cat >conftest.$ac_ext <<_ACEOF
8743#line $LINENO "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00008744#include "confdefs.h"
8745#include <stdio.h>
8746 #include <pthread.h>
8747 main()
8748 {
8749 FILE *f=fopen("conftestval", "w");
8750 if (!f) exit(1);
8751 fprintf(f, "%d\n", sizeof(pthread_t));
8752 exit(0);
8753 }
Martin v. Löwis11437992002-04-12 09:54:03 +00008754_ACEOF
8755rm -f conftest$ac_exeext
8756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +00008766 ac_cv_sizeof_pthread_t=`cat conftestval`
8767else
Martin v. Löwis11437992002-04-12 09:54:03 +00008768 echo "$as_me: program exited with status $ac_status" >&5
8769echo "$as_me: failed program was:" >&5
8770cat conftest.$ac_ext >&5
8771( exit $ac_status )
8772ac_cv_sizeof_pthread_t=0
Trent Mick635f6fb2000-08-23 21:33:05 +00008773fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008774rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Trent Mick635f6fb2000-08-23 21:33:05 +00008775fi
8776
Trent Mick635f6fb2000-08-23 21:33:05 +00008777fi
8778
Martin v. Löwis11437992002-04-12 09:54:03 +00008779 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
8780echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
8781
8782cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +00008783#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:03 +00008784_ACEOF
Trent Mick635f6fb2000-08-23 21:33:05 +00008785
8786fi
Martin v. Löwis123cbd22001-07-19 14:21:10 +00008787CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:05 +00008788
Martin v. Löwis11437992002-04-12 09:54:03 +00008789echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
8790echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6
Jack Jansene578a632001-08-15 01:27:14 +00008791# Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
8792if test "${enable_toolbox_glue+set}" = set; then
8793 enableval="$enable_toolbox_glue"
Jack Jansene578a632001-08-15 01:27:14 +00008794
Martin v. Löwis11437992002-04-12 09:54:03 +00008795fi;
Jack Jansene578a632001-08-15 01:27:14 +00008796
8797if test -z "$enable_toolbox_glue"
Martin v. Löwis11437992002-04-12 09:54:03 +00008798then
Jack Jansene578a632001-08-15 01:27:14 +00008799 case $ac_sys_system/$ac_sys_release in
8800 Darwin/*)
8801 enable_toolbox_glue="yes";;
8802 *)
8803 enable_toolbox_glue="no";;
8804 esac
8805fi
8806case "$enable_toolbox_glue" in
8807yes)
Jack Jansen666b1e72001-10-31 12:11:48 +00008808 extra_frameworks="-framework CoreServices -framework Foundation"
Jack Jansene578a632001-08-15 01:27:14 +00008809 extra_machdep_objs="Python/mactoolboxglue.o"
Jack Jansen591cbed2001-08-15 13:55:15 +00008810 extra_undefs="-u __dummy -u _PyMac_Error"
Martin v. Löwis11437992002-04-12 09:54:03 +00008811
8812cat >>confdefs.h <<\_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +00008813#define USE_TOOLBOX_OBJECT_GLUE 1
Martin v. Löwis11437992002-04-12 09:54:03 +00008814_ACEOF
Jack Jansene578a632001-08-15 01:27:14 +00008815
8816 ;;
8817*)
8818 extra_frameworks=""
8819 extra_machdep_objs=""
Jack Jansen591cbed2001-08-15 13:55:15 +00008820 extra_undefs=""
Jack Jansene578a632001-08-15 01:27:14 +00008821 ;;
8822esac
Martin v. Löwis11437992002-04-12 09:54:03 +00008823echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
8824echo "${ECHO_T}$enable_toolbox_glue" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +00008825
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008826
8827case $ac_sys_system/$ac_sys_release in
Jack Jansen418c3b12001-11-14 10:59:57 +00008828 Darwin/1.3*)
Jack Jansenea0c3822002-08-01 21:57:49 +00008829 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
Jack Jansen418c3b12001-11-14 10:59:57 +00008830 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
Jack Jansena3891ea2001-09-07 14:25:12 +00008831 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
8832 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:35 +00008833 Darwin/*)
Jack Jansenea0c3822002-08-01 21:57:49 +00008834 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc"
Jack Jansen418c3b12001-11-14 10:59:57 +00008835 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
Jack Jansene578a632001-08-15 01:27:14 +00008836 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
8837 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008838esac
8839
Martin v. Löwis11437992002-04-12 09:54:03 +00008840echo "$as_me:$LINENO: checking for --enable-framework" >&5
8841echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6
Jack Jansene578a632001-08-15 01:27:14 +00008842if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008843then
Jack Jansenca06bc62001-08-03 15:32:23 +00008844 OPT="$OPT -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:03 +00008845 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:14 +00008846 # in the build location.
Jack Jansenea0c3822002-08-01 21:57:49 +00008847 LDFLAGS="$LDFLAGS -Wl,-F."
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008848
Martin v. Löwis11437992002-04-12 09:54:03 +00008849cat >>confdefs.h <<\_ACEOF
8850#define WITH_NEXT_FRAMEWORK 1
8851_ACEOF
8852
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008855else
Martin v. Löwis11437992002-04-12 09:54:03 +00008856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008858fi
8859
Martin v. Löwis11437992002-04-12 09:54:03 +00008860echo "$as_me:$LINENO: checking for dyld" >&5
8861echo $ECHO_N "checking for dyld... $ECHO_C" >&6
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008862case $ac_sys_system/$ac_sys_release in
8863 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008864
Martin v. Löwis11437992002-04-12 09:54:03 +00008865cat >>confdefs.h <<\_ACEOF
8866#define WITH_DYLD 1
8867_ACEOF
8868
8869 echo "$as_me:$LINENO: result: always on for Darwin" >&5
8870echo "${ECHO_T}always on for Darwin" >&6
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008871 ;;
8872 *)
Martin v. Löwis11437992002-04-12 09:54:03 +00008873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
Jack Jansene578a632001-08-15 01:27:14 +00008875 ;;
Jack Jansen9a66b6d2001-08-08 13:56:14 +00008876esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008877
Guido van Rossum0a516c91994-09-12 10:58:40 +00008878# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +00008879
Michael W. Hudson54241132001-12-07 15:38:26 +00008880
8881
8882
8883
Guido van Rossum0a516c91994-09-12 10:58:40 +00008884# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +00008885# -- usually .so, .sl on HP-UX, .dll on Cygwin
Martin v. Löwis11437992002-04-12 09:54:03 +00008886echo "$as_me:$LINENO: checking SO" >&5
8887echo $ECHO_N "checking SO... $ECHO_C" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00008888if test -z "$SO"
8889then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008890 case $ac_sys_system in
Guido van Rossum563e7081996-09-10 18:20:48 +00008891 hp*|HP*) SO=.sl;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00008892 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +00008893 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008894 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00008895fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008896echo "$as_me:$LINENO: result: $SO" >&5
8897echo "${ECHO_T}$SO" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00008898# LDSHARED is the ld *command* used to create shared library
Martin v. Löwis5b718fc2001-09-10 15:34:42 +00008899# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008900# (Shared libraries in this instance are shared modules to be loaded into
8901# Python, as opposed to building Python itself as a shared library.)
Martin v. Löwis11437992002-04-12 09:54:03 +00008902echo "$as_me:$LINENO: checking LDSHARED" >&5
8903echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00008904if test -z "$LDSHARED"
8905then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008906 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008907 AIX*)
8908 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Guido van Rossumce608b02001-09-28 15:59:38 +00008909 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008910 ;;
8911 BeOS*)
8912 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
Guido van Rossumce608b02001-09-28 15:59:38 +00008913 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008914 ;;
Guido van Rossum07397971997-04-29 21:49:50 +00008915 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +00008916 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008917 SunOS/4*) LDSHARED="ld";;
Martin v. Löwis11437992002-04-12 09:54:03 +00008918 SunOS/5*)
Greg Ward57c9a662000-05-26 12:22:54 +00008919 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +00008920 then LDSHARED='$(CC) -shared'
Martin v. Löwisaa5afe12002-10-07 06:21:41 +00008921 else LDSHARED='$(CC) -G';
Greg Ward57c9a662000-05-26 12:22:54 +00008922 fi ;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008923 hp*|HP*) LDSHARED="ld -b";;
Guido van Rossumda88dad1995-01-26 00:46:29 +00008924 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8925 DYNIX/ptx*) LDSHARED="ld -G";;
Jack Jansen418c3b12001-11-14 10:59:57 +00008926 Darwin/1.3*)
Jack Jansena3891ea2001-09-07 14:25:12 +00008927 LDSHARED='$(CC) $(LDFLAGS) -bundle'
8928 if test "$enable_framework" ; then
8929 # Link against the framework. All externals should be defined.
8930 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
8931 else
8932 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:57 +00008933 LDSHARED="$LDSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:12 +00008934 fi ;;
Jack Jansene578a632001-08-15 01:27:14 +00008935 Darwin/*)
8936 LDSHARED='$(CC) $(LDFLAGS) -bundle'
8937 if test "$enable_framework" ; then
8938 # Link against the framework. All externals should be defined.
8939 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
8940 else
Michael W. Hudson594bc802002-03-07 09:59:15 +00008941 # No framework, use the Python app as bundle-loader
8942 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
8943 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008944 fi ;;
Martin v. Löwis3cba5c02002-09-16 17:50:59 +00008945 Linux*|GNU*) LDSHARED='$(CC) -shared';;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00008946 dgux*) LDSHARED="ld -G";;
Guido van Rossum458e7fa1999-09-17 15:40:40 +00008947 BSD/OS*/4*) LDSHARED="gcc -shared";;
Martin v. Löwisd61888b2002-09-30 11:17:27 +00008948 OpenBSD*|FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +00008949 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +00008950 then
8951 LDSHARED="cc -shared ${LDFLAGS}"
8952 else
8953 LDSHARED="ld -Bshareable ${LDFLAGS}"
8954 fi;;
Martin v. Löwisd61888b2002-09-30 11:17:27 +00008955 NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00008956 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +00008957 if test "$GCC" = "yes"
8958 then LDSHARED="$(CC) -shared"
Martin v. Löwis130fb172001-07-19 11:00:41 +00008959 else LDSHARED="$(CC) -G"
Martin v. Löwisbec19582001-03-21 15:57:54 +00008960 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00008961 SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";;
Trent Mick635f6fb2000-08-23 21:33:05 +00008962 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00008963 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00008964 atheos*) LDSHARED="gcc -shared";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00008965 *) LDSHARED="ld";;
8966 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00008967fi
Martin v. Löwis11437992002-04-12 09:54:03 +00008968echo "$as_me:$LINENO: result: $LDSHARED" >&5
8969echo "${ECHO_T}$LDSHARED" >&6
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00008970BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +00008971# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00008972# library (module) -- this is only needed for a few systems
Martin v. Löwis11437992002-04-12 09:54:03 +00008973echo "$as_me:$LINENO: checking CCSHARED" >&5
8974echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00008975if test -z "$CCSHARED"
8976then
Guido van Rossum07397971997-04-29 21:49:50 +00008977 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +00008978 SunOS*) if test "$GCC" = yes;
8979 then CCSHARED="-fPIC";
8980 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +00008981 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:52 +00008982 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:27 +00008983 else CCSHARED="+z";
8984 fi;;
Martin v. Löwisa6e97582002-01-01 18:41:33 +00008985 Linux*|GNU*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00008986 BSD/OS*/4*) CCSHARED="-fpic";;
Martin v. Löwis36546db2001-09-05 14:24:43 +00008987 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00008988 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:54 +00008989 if test "$GCC" = "yes"
8990 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:41 +00008991 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:54 +00008992 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00008993 SCO_SV*)
8994 if test "$GCC" = "yes"
8995 then CCSHARED="-fPIC"
8996 else CCSHARED="-Kpic -belf"
8997 fi;;
Trent Mick635f6fb2000-08-23 21:33:05 +00008998 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00008999 IRIX*/6*) case $CC in
9000 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +00009001 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00009002 esac;;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009003 atheos*) CCSHARED="-fPIC";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00009004 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00009005fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009006echo "$as_me:$LINENO: result: $CCSHARED" >&5
9007echo "${ECHO_T}$CCSHARED" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00009008# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009009# the python executable -- this is only needed for a few systems
Martin v. Löwis11437992002-04-12 09:54:03 +00009010echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
9011echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00009012if test -z "$LINKFORSHARED"
9013then
Guido van Rossum07397971997-04-29 21:49:50 +00009014 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00009015 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00009016 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:31 +00009017 LINKFORSHARED="-Wl,-E -Wl,+s";;
9018# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00009019 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009020 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00009021 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:03 +00009022 Darwin/*)
Jack Jansene578a632001-08-15 01:27:14 +00009023 # -u __dummy makes the linker aware of the objc runtime
9024 # in System.framework; otherwise, __objcInit (referenced in
9025 # crt1.o) gets erroneously defined as common, which breaks dynamic
9026 # loading of any modules which reference it in System.framework.
9027 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
9028 # not used by the core itself but which needs to be in the core so
9029 # that dynamically loaded extension modules have access to it.
Jack Jansen591cbed2001-08-15 13:55:15 +00009030 LINKFORSHARED="$extra_undefs -framework System"
Jack Jansene578a632001-08-15 01:27:14 +00009031 if test "$enable_framework"
9032 then
9033 LINKFORSHARED="$LINKFORSHARED -framework Python"
9034 fi
9035 LINKFORSHARED="$LINKFORSHARED $extra_frameworks";;
Martin v. Löwis25ae43b2001-10-07 08:39:18 +00009036 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:48 +00009037 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +00009038 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis11437992002-04-12 09:54:03 +00009039 FreeBSD*|NetBSD*|OpenBSD*)
Guido van Rossumdf693651999-01-07 21:50:41 +00009040 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9041 then
9042 LINKFORSHARED="-Wl,--export-dynamic"
9043 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00009044 SunOS/5*) case $CC in
9045 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:36 +00009046 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +00009047 then
9048 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +00009049 fi;;
9050 esac;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00009051 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00009052fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009053echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
9054echo "${ECHO_T}$LINKFORSHARED" >&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00009055
Michael W. Hudson54241132001-12-07 15:38:26 +00009056
Martin v. Löwis11437992002-04-12 09:54:03 +00009057echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
9058echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00009059if test ! "$LIBRARY" = "$LDLIBRARY"
9060then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +00009061 case $ac_sys_system in
9062 CYGWIN*)
9063 # Cygwin needs CCSHARED when building extension DLLs
9064 # but not when building the interpreter DLL.
9065 CFLAGSFORSHARED='';;
9066 *)
9067 CFLAGSFORSHARED='$(CCSHARED)'
9068 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00009069fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009070echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
9071echo "${ECHO_T}$CFLAGSFORSHARED" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00009072
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009073# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9074# library (with --enable-shared).
9075# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:50 +00009076# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9077# if it is not required, since it creates a dependency of the shared library
9078# to LIBS. This, in turn, means that applications linking the shared libpython
9079# don't need to link LIBS explicitly. The default should be only changed
9080# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009081
9082echo "$as_me:$LINENO: checking SHLIBS" >&5
9083echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6
9084case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009085 *)
Martin v. Löwisd6359c52002-08-04 12:38:50 +00009086 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:31 +00009087esac
9088echo "$as_me:$LINENO: result: $SHLIBS" >&5
9089echo "${ECHO_T}$SHLIBS" >&6
9090
9091
Guido van Rossum627b2d71993-12-24 10:39:16 +00009092# checks for libraries
Martin v. Löwis11437992002-04-12 09:54:03 +00009093
9094echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9095echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9096if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009098else
Martin v. Löwis11437992002-04-12 09:54:03 +00009099 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009100LIBS="-ldl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00009101cat >conftest.$ac_ext <<_ACEOF
9102#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00009103#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009104
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009105/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009106#ifdef __cplusplus
9107extern "C"
9108#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009109/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009110 builtin and then its argument prototype would still apply. */
9111char dlopen ();
9112#ifdef F77_DUMMY_MAIN
9113# ifdef __cplusplus
9114 extern "C"
9115# endif
9116 int F77_DUMMY_MAIN() { return 1; }
9117#endif
9118int
9119main ()
9120{
9121dlopen ();
9122 ;
9123 return 0;
9124}
9125_ACEOF
9126rm -f conftest.$ac_objext conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009139else
Martin v. Löwis11437992002-04-12 09:54:03 +00009140 echo "$as_me: failed program was:" >&5
9141cat conftest.$ac_ext >&5
9142ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00009143fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9145LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +00009146fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009147echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9148echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9149if test $ac_cv_lib_dl_dlopen = yes; then
9150 cat >>confdefs.h <<_ACEOF
9151#define HAVE_LIBDL 1
9152_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00009153
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009154 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00009155
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009156fi
9157 # Dynamic linking for SunOS/Solaris and SYSV
Martin v. Löwis11437992002-04-12 09:54:03 +00009158
9159echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9160echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9161if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009163else
Martin v. Löwis11437992002-04-12 09:54:03 +00009164 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009165LIBS="-ldld $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00009166cat >conftest.$ac_ext <<_ACEOF
9167#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00009168#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009169
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009170/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009171#ifdef __cplusplus
9172extern "C"
9173#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009174/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009175 builtin and then its argument prototype would still apply. */
9176char shl_load ();
9177#ifdef F77_DUMMY_MAIN
9178# ifdef __cplusplus
9179 extern "C"
9180# endif
9181 int F77_DUMMY_MAIN() { return 1; }
9182#endif
9183int
9184main ()
9185{
9186shl_load ();
9187 ;
9188 return 0;
9189}
9190_ACEOF
9191rm -f conftest.$ac_objext conftest$ac_exeext
9192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009204else
Martin v. Löwis11437992002-04-12 09:54:03 +00009205 echo "$as_me: failed program was:" >&5
9206cat conftest.$ac_ext >&5
9207ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00009208fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9210LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:16 +00009211fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009212echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9213echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9214if test $ac_cv_lib_dld_shl_load = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216#define HAVE_LIBDLD 1
9217_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00009218
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009219 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009220
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009221fi
9222 # Dynamic linking for HP-UX
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009223echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9224echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
9225if test "${ac_cv_search_sem_init+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +00009226 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009227else
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009228 ac_func_search_save_LIBS=$LIBS
9229ac_cv_search_sem_init=no
Martin v. Löwis11437992002-04-12 09:54:03 +00009230cat >conftest.$ac_ext <<_ACEOF
9231#line $LINENO "configure"
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009232#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009233
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009234/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009235#ifdef __cplusplus
9236extern "C"
9237#endif
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009238/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009239 builtin and then its argument prototype would still apply. */
9240char sem_init ();
9241#ifdef F77_DUMMY_MAIN
9242# ifdef __cplusplus
9243 extern "C"
9244# endif
9245 int F77_DUMMY_MAIN() { return 1; }
9246#endif
9247int
9248main ()
9249{
9250sem_init ();
9251 ;
9252 return 0;
9253}
9254_ACEOF
9255rm -f conftest.$ac_objext conftest$ac_exeext
9256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9257 (eval $ac_link) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -s conftest$ac_exeext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009267 ac_cv_search_sem_init="none required"
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009268else
Martin v. Löwis11437992002-04-12 09:54:03 +00009269 echo "$as_me: failed program was:" >&5
9270cat conftest.$ac_ext >&5
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009271fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009273if test "$ac_cv_search_sem_init" = no; then
9274 for ac_lib in rt posix4; do
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9276 cat >conftest.$ac_ext <<_ACEOF
9277#line $LINENO "configure"
9278#include "confdefs.h"
9279
9280/* Override any gcc2 internal prototype to avoid an error. */
9281#ifdef __cplusplus
9282extern "C"
9283#endif
9284/* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9286char sem_init ();
9287#ifdef F77_DUMMY_MAIN
9288# ifdef __cplusplus
9289 extern "C"
9290# endif
9291 int F77_DUMMY_MAIN() { return 1; }
9292#endif
9293int
9294main ()
9295{
9296sem_init ();
9297 ;
9298 return 0;
9299}
Martin v. Löwis11437992002-04-12 09:54:03 +00009300_ACEOF
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009301rm -f conftest.$ac_objext conftest$ac_exeext
9302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -s conftest$ac_exeext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_cv_search_sem_init="-l$ac_lib"
9314break
9315else
9316 echo "$as_me: failed program was:" >&5
9317cat conftest.$ac_ext >&5
9318fi
9319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9320 done
9321fi
9322LIBS=$ac_func_search_save_LIBS
9323fi
9324echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9325echo "${ECHO_T}$ac_cv_search_sem_init" >&6
9326if test "$ac_cv_search_sem_init" != no; then
9327 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009328
Martin v. Löwis41933dd2002-03-21 15:10:58 +00009329fi
Martin v. Löwis82c19a72002-10-06 11:48:09 +00009330 # 'Real Time' functions on Solaris,
9331 # posix4 on Solaris 2.6
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009332
9333# checks for system dependent C++ extensions support
9334case "$ac_sys_system" in
Martin v. Löwis11437992002-04-12 09:54:03 +00009335 AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
9336echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9338#line $LINENO "configure"
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009339#include "confdefs.h"
9340#include "/usr/lpp/xlC/include/load.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009341#ifdef F77_DUMMY_MAIN
9342# ifdef __cplusplus
9343 extern "C"
9344# endif
9345 int F77_DUMMY_MAIN() { return 1; }
9346#endif
9347int
9348main ()
9349{
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009350loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:03 +00009351 ;
9352 return 0;
9353}
9354_ACEOF
9355rm -f conftest.$ac_objext conftest$ac_exeext
9356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9357 (eval $ac_link) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest$ac_exeext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 (eval $ac_try) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009367
Martin v. Löwis11437992002-04-12 09:54:03 +00009368cat >>confdefs.h <<\_ACEOF
9369#define AIX_GENUINE_CPLUSPLUS 1
9370_ACEOF
9371
9372 echo "$as_me:$LINENO: result: yes" >&5
9373echo "${ECHO_T}yes" >&6
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009374else
Martin v. Löwis11437992002-04-12 09:54:03 +00009375 echo "$as_me: failed program was:" >&5
9376cat conftest.$ac_ext >&5
9377echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009379fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009380rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00009381 *) ;;
9382esac
9383
Guido van Rossum70c7f481998-03-26 18:44:10 +00009384# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
9385# However on SGI IRIX, these exist but are broken.
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009386# BeOS' sockets are stashed in libnet.
9387case "$ac_sys_system" in
9388IRIX*) ;;
Guido van Rossumb93a8621998-05-07 13:27:32 +00009389*)
Martin v. Löwis11437992002-04-12 09:54:03 +00009390echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
9391echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
9392if test "${ac_cv_lib_nsl_t_open+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009394else
Martin v. Löwis11437992002-04-12 09:54:03 +00009395 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009396LIBS="-lnsl $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00009397cat >conftest.$ac_ext <<_ACEOF
9398#line $LINENO "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009399#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009400
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009401/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009402#ifdef __cplusplus
9403extern "C"
9404#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009405/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009406 builtin and then its argument prototype would still apply. */
9407char t_open ();
9408#ifdef F77_DUMMY_MAIN
9409# ifdef __cplusplus
9410 extern "C"
9411# endif
9412 int F77_DUMMY_MAIN() { return 1; }
9413#endif
9414int
9415main ()
9416{
9417t_open ();
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424 (eval $ac_link) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -s conftest$ac_exeext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009435else
Martin v. Löwis11437992002-04-12 09:54:03 +00009436 echo "$as_me: failed program was:" >&5
9437cat conftest.$ac_ext >&5
9438ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009439fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009442fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009443echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
9444echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
9445if test $ac_cv_lib_nsl_t_open = yes; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009446 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00009447fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00009448 # SVR4
Martin v. Löwis11437992002-04-12 09:54:03 +00009449echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9450echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9451if test "${ac_cv_lib_socket_socket+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009453else
Martin v. Löwis11437992002-04-12 09:54:03 +00009454 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00009455LIBS="-lsocket $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00009456cat >conftest.$ac_ext <<_ACEOF
9457#line $LINENO "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009458#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009459
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009460/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009461#ifdef __cplusplus
9462extern "C"
9463#endif
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009464/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009465 builtin and then its argument prototype would still apply. */
9466char socket ();
9467#ifdef F77_DUMMY_MAIN
9468# ifdef __cplusplus
9469 extern "C"
9470# endif
9471 int F77_DUMMY_MAIN() { return 1; }
9472#endif
9473int
9474main ()
9475{
9476socket ();
9477 ;
9478 return 0;
9479}
9480_ACEOF
9481rm -f conftest.$ac_objext conftest$ac_exeext
9482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 (eval $ac_try) 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9493 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009494else
Martin v. Löwis11437992002-04-12 09:54:03 +00009495 echo "$as_me: failed program was:" >&5
9496cat conftest.$ac_ext >&5
9497ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009498fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9500LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009501fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009502echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9503echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9504if test $ac_cv_lib_socket_socket = yes; then
Guido van Rossumad678af1998-10-02 14:42:15 +00009505 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:15 +00009506fi
9507 # SVR4 sockets
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +00009508;;
9509esac
9510case "$ac_sys_system" in
9511BeOS*)
Martin v. Löwis11437992002-04-12 09:54:03 +00009512echo "$as_me:$LINENO: checking for socket in -lnet" >&5
9513echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6
9514if test "${ac_cv_lib_net_socket+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +00009516else
Martin v. Löwis11437992002-04-12 09:54:03 +00009517 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +00009518LIBS="-lnet $LIBS $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +00009519cat >conftest.$ac_ext <<_ACEOF
9520#line $LINENO "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00009521#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +00009522
Guido van Rossumad678af1998-10-02 14:42:15 +00009523/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +00009524#ifdef __cplusplus
9525extern "C"
9526#endif
Guido van Rossumad678af1998-10-02 14:42:15 +00009527/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +00009528 builtin and then its argument prototype would still apply. */
9529char socket ();
9530#ifdef F77_DUMMY_MAIN
9531# ifdef __cplusplus
9532 extern "C"
9533# endif
9534 int F77_DUMMY_MAIN() { return 1; }
9535#endif
9536int
9537main ()
9538{
9539socket ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_lib_net_socket=yes
Guido van Rossumad678af1998-10-02 14:42:15 +00009557else
Martin v. Löwis11437992002-04-12 09:54:03 +00009558 echo "$as_me: failed program was:" >&5
9559cat conftest.$ac_ext >&5
9560ac_cv_lib_net_socket=no
Guido van Rossumad678af1998-10-02 14:42:15 +00009561fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9563LIBS=$ac_check_lib_save_LIBS
Guido van Rossumad678af1998-10-02 14:42:15 +00009564fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009565echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
9566echo "${ECHO_T}$ac_cv_lib_net_socket" >&6
9567if test $ac_cv_lib_net_socket = yes; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009568 LIBS="-lnet $LIBS"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00009569fi
9570 # BeOS
9571;;
9572esac
Guido van Rossum70c7f481998-03-26 18:44:10 +00009573
Martin v. Löwis11437992002-04-12 09:54:03 +00009574echo "$as_me:$LINENO: checking for --with-libs" >&5
9575echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
9576
Guido van Rossuma68acba1996-07-31 17:36:39 +00009577# Check whether --with-libs or --without-libs was given.
9578if test "${with_libs+set}" = set; then
9579 withval="$with_libs"
Martin v. Löwis11437992002-04-12 09:54:03 +00009580
9581echo "$as_me:$LINENO: result: $withval" >&5
9582echo "${ECHO_T}$withval" >&6
Guido van Rossuma68acba1996-07-31 17:36:39 +00009583LIBS="$withval $LIBS"
9584
9585else
Martin v. Löwis11437992002-04-12 09:54:03 +00009586 echo "$as_me:$LINENO: result: no" >&5
9587echo "${ECHO_T}no" >&6
9588fi;
Guido van Rossum7f43da71994-08-01 12:15:30 +00009589
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009590# Determine if signalmodule should be used.
9591
9592
Martin v. Löwis11437992002-04-12 09:54:03 +00009593echo "$as_me:$LINENO: checking for --with-signal-module" >&5
9594echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6
9595
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009596# Check whether --with-signal-module or --without-signal-module was given.
9597if test "${with_signal_module+set}" = set; then
9598 withval="$with_signal_module"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009599
Martin v. Löwis11437992002-04-12 09:54:03 +00009600fi;
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009601
9602if test -z "$with_signal_module"
9603then with_signal_module="yes"
9604fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009605echo "$as_me:$LINENO: result: $with_signal_module" >&5
9606echo "${ECHO_T}$with_signal_module" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +00009607
9608if test "${with_signal_module}" = "yes"; then
9609 USE_SIGNAL_MODULE=""
9610 SIGNAL_OBJS=""
9611else
9612 USE_SIGNAL_MODULE="#"
9613 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
9614fi
9615
Guido van Rossum3d15bd82001-01-10 18:53:48 +00009616# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +00009617
Barry Warsawc0d24d82000-06-29 16:12:00 +00009618USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +00009619
Martin v. Löwis11437992002-04-12 09:54:03 +00009620echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
9621echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6
9622
Guido van Rossumec2f0731997-01-22 20:54:01 +00009623
9624# Check whether --with-dec-threads or --without-dec-threads was given.
9625if test "${with_dec_threads+set}" = set; then
9626 withval="$with_dec_threads"
Martin v. Löwis11437992002-04-12 09:54:03 +00009627
9628echo "$as_me:$LINENO: result: $withval" >&5
9629echo "${ECHO_T}$withval" >&6
Guido van Rossumec2f0731997-01-22 20:54:01 +00009630LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +00009631if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +00009632 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +00009633fi
Guido van Rossumec2f0731997-01-22 20:54:01 +00009634else
Martin v. Löwis11437992002-04-12 09:54:03 +00009635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637fi;
9638
9639# Templates for things AC_DEFINEd more than once.
9640# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:01 +00009641
9642
Martin v. Löwis11437992002-04-12 09:54:03 +00009643
9644
9645
9646
9647
9648echo "$as_me:$LINENO: checking for --with-threads" >&5
9649echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6
9650
Guido van Rossumec2f0731997-01-22 20:54:01 +00009651# Check whether --with-threads or --without-threads was given.
9652if test "${with_threads+set}" = set; then
9653 withval="$with_threads"
Guido van Rossumec2f0731997-01-22 20:54:01 +00009654
Martin v. Löwis11437992002-04-12 09:54:03 +00009655fi;
Guido van Rossumec2f0731997-01-22 20:54:01 +00009656
Barry Warsawc0d24d82000-06-29 16:12:00 +00009657# --with-thread is deprecated, but check for it anyway
Martin v. Löwis11437992002-04-12 09:54:03 +00009658
Guido van Rossum76be6ed1995-01-02 18:33:54 +00009659# Check whether --with-thread or --without-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00009660if test "${with_thread+set}" = set; then
9661 withval="$with_thread"
Michael W. Hudson54241132001-12-07 15:38:26 +00009662
Martin v. Löwis11437992002-04-12 09:54:03 +00009663with_threads=$with_thread
9664fi;
Barry Warsawc0d24d82000-06-29 16:12:00 +00009665
9666if test -z "$with_threads"
9667then with_threads="yes"
9668fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009669echo "$as_me:$LINENO: result: $with_threads" >&5
9670echo "${ECHO_T}$with_threads" >&6
Barry Warsawc0d24d82000-06-29 16:12:00 +00009671
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009672
Barry Warsawc0d24d82000-06-29 16:12:00 +00009673if test "$with_threads" = "no"
9674then
9675 USE_THREAD_MODULE="#"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009676elif test "$ac_cv_pthread_is_default" = yes
9677then
Martin v. Löwis11437992002-04-12 09:54:03 +00009678 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009679#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009680_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009681
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009682 # Defining _REENTRANT on system with POSIX threads should not hurt.
Martin v. Löwis11437992002-04-12 09:54:03 +00009683 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009684#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009685_ACEOF
Martin v. Löwisa5f73f92001-10-15 08:06:29 +00009686
9687 posix_threads=yes
Martin v. Löwis11437992002-04-12 09:54:03 +00009688 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +00009689elif test "$ac_cv_kpthread" = "yes"
9690then
9691 CC="$CC -Kpthread"
Martin v. Löwis11437992002-04-12 09:54:03 +00009692 cat >>confdefs.h <<\_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00009693#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009694_ACEOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00009695
Guido van Rossumd0b69ec2001-09-10 14:10:54 +00009696 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009697 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +00009698else
9699 if test ! -z "$with_threads" -a -d "$with_threads"
9700 then LDFLAGS="$LDFLAGS -L$with_threads"
9701 fi
9702 if test ! -z "$withval" -a -d "$withval"
9703 then LDFLAGS="$LDFLAGS -L$withval"
9704 fi
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009705
9706 # According to the POSIX spec, a pthreads implementation must
9707 # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?)
Martin v. Löwis11437992002-04-12 09:54:03 +00009708 echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
9709echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6
9710 cat >conftest.$ac_ext <<_ACEOF
9711#line $LINENO "configure"
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009712#include "confdefs.h"
9713#include <unistd.h>
9714 #ifdef _POSIX_THREADS
9715 yes
9716 #endif
Martin v. Löwis11437992002-04-12 09:54:03 +00009717
9718_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009721 unistd_defines_pthreads=yes
9722else
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009723 unistd_defines_pthreads=no
9724fi
9725rm -f conftest*
9726
Martin v. Löwis11437992002-04-12 09:54:03 +00009727 echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
9728echo "${ECHO_T}$unistd_defines_pthreads" >&6
Martin v. Löwis69c0ff32001-10-15 14:34:42 +00009729
Martin v. Löwis11437992002-04-12 09:54:03 +00009730 cat >>confdefs.h <<\_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +00009731#define _REENTRANT 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009732_ACEOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +00009733
Martin v. Löwis11437992002-04-12 09:54:03 +00009734 if test "${ac_cv_header_cthreads_h+set}" = set; then
9735 echo "$as_me:$LINENO: checking for cthreads.h" >&5
9736echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
9737if test "${ac_cv_header_cthreads_h+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739fi
9740echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
9741echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009742else
Martin v. Löwis11437992002-04-12 09:54:03 +00009743 # Is the header compilable?
9744echo "$as_me:$LINENO: checking cthreads.h usability" >&5
9745echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6
9746cat >conftest.$ac_ext <<_ACEOF
9747#line $LINENO "configure"
9748#include "confdefs.h"
9749$ac_includes_default
9750#include <cthreads.h>
9751_ACEOF
9752rm -f conftest.$ac_objext
9753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9754 (eval $ac_compile) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest.$ac_objext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_header_compiler=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767cat conftest.$ac_ext >&5
9768ac_header_compiler=no
9769fi
9770rm -f conftest.$ac_objext conftest.$ac_ext
9771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9772echo "${ECHO_T}$ac_header_compiler" >&6
9773
9774# Is the header present?
9775echo "$as_me:$LINENO: checking cthreads.h presence" >&5
9776echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6
9777cat >conftest.$ac_ext <<_ACEOF
9778#line $LINENO "configure"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009779#include "confdefs.h"
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009780#include <cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009781_ACEOF
9782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9784 ac_status=$?
9785 egrep -v '^ *\+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } >/dev/null; then
9790 if test -s conftest.err; then
9791 ac_cpp_err=$ac_c_preproc_warn_flag
9792 else
9793 ac_cpp_err=
9794 fi
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009795else
Martin v. Löwis11437992002-04-12 09:54:03 +00009796 ac_cpp_err=yes
9797fi
9798if test -z "$ac_cpp_err"; then
9799 ac_header_preproc=yes
9800else
9801 echo "$as_me: failed program was:" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00009802 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009803 ac_header_preproc=no
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009804fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009805rm -f conftest.err conftest.$ac_ext
9806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807echo "${ECHO_T}$ac_header_preproc" >&6
9808
9809# So? What about this header?
9810case $ac_header_compiler:$ac_header_preproc in
9811 yes:no )
9812 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
9813echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
9815echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
9816 no:yes )
9817 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
9818echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
9820echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
9822echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};;
9823esac
9824echo "$as_me:$LINENO: checking for cthreads.h" >&5
9825echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6
9826if test "${ac_cv_header_cthreads_h+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 ac_cv_header_cthreads_h=$ac_header_preproc
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009830fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009831echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
9832echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6
9833
9834fi
9835if test $ac_cv_header_cthreads_h = yes; then
9836 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009837#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009838_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009839
Martin v. Löwis11437992002-04-12 09:54:03 +00009840 cat >>confdefs.h <<\_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009841#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009842_ACEOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009843
Martin v. Löwis11437992002-04-12 09:54:03 +00009844
9845cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009846#define HURD_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009847_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009848
9849 LIBS="$LIBS -lthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009850 THREADOBJ="Python/thread.o"
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009851else
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009852
Martin v. Löwis11437992002-04-12 09:54:03 +00009853 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9854 echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
9855echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
9856if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858fi
9859echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
9860echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009861else
Martin v. Löwis11437992002-04-12 09:54:03 +00009862 # Is the header compilable?
9863echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
9864echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
9865cat >conftest.$ac_ext <<_ACEOF
9866#line $LINENO "configure"
9867#include "confdefs.h"
9868$ac_includes_default
9869#include <mach/cthreads.h>
9870_ACEOF
9871rm -f conftest.$ac_objext
9872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_header_compiler=yes
9884else
9885 echo "$as_me: failed program was:" >&5
9886cat conftest.$ac_ext >&5
9887ac_header_compiler=no
9888fi
9889rm -f conftest.$ac_objext conftest.$ac_ext
9890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9891echo "${ECHO_T}$ac_header_compiler" >&6
9892
9893# Is the header present?
9894echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
9895echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
9896cat >conftest.$ac_ext <<_ACEOF
9897#line $LINENO "configure"
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009898#include "confdefs.h"
9899#include <mach/cthreads.h>
Martin v. Löwis11437992002-04-12 09:54:03 +00009900_ACEOF
9901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9903 ac_status=$?
9904 egrep -v '^ *\+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } >/dev/null; then
9909 if test -s conftest.err; then
9910 ac_cpp_err=$ac_c_preproc_warn_flag
9911 else
9912 ac_cpp_err=
9913 fi
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009914else
Martin v. Löwis11437992002-04-12 09:54:03 +00009915 ac_cpp_err=yes
9916fi
9917if test -z "$ac_cpp_err"; then
9918 ac_header_preproc=yes
9919else
9920 echo "$as_me: failed program was:" >&5
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009921 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +00009922 ac_header_preproc=no
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009923fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009924rm -f conftest.err conftest.$ac_ext
9925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926echo "${ECHO_T}$ac_header_preproc" >&6
9927
9928# So? What about this header?
9929case $ac_header_compiler:$ac_header_preproc in
9930 yes:no )
9931 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
9934echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
9935 no:yes )
9936 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
9937echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
9939echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
9941echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};;
9942esac
9943echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
9944echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
9945if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948 ac_cv_header_mach_cthreads_h=$ac_header_preproc
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009949fi
Martin v. Löwis11437992002-04-12 09:54:03 +00009950echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
9951echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
9952
9953fi
9954if test $ac_cv_header_mach_cthreads_h = yes; then
9955 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009956#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009957_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009958
Martin v. Löwis11437992002-04-12 09:54:03 +00009959 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009960#define C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009961_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009962
Martin v. Löwis11437992002-04-12 09:54:03 +00009963
9964cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009965#define MACH_C_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009966_ACEOF
Martin v. Löwisa6e97582002-01-01 18:41:33 +00009967
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009968 THREADOBJ="Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009969else
Guido van Rossum7b3853f1996-07-30 18:09:35 +00009970
Martin v. Löwis11437992002-04-12 09:54:03 +00009971 echo "$as_me:$LINENO: checking for --with-pth" >&5
9972echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
9973
9974# Check whether --with-pth or --without-pth was given.
Guido van Rossum9e8181b2000-09-19 00:46:46 +00009975if test "${with_pth+set}" = set; then
9976 withval="$with_pth"
Guido van Rossum9e8181b2000-09-19 00:46:46 +00009977
Martin v. Löwis11437992002-04-12 09:54:03 +00009978 echo "$as_me:$LINENO: result: $withval" >&5
9979echo "${ECHO_T}$withval" >&6
9980 cat >>confdefs.h <<\_ACEOF
9981#define WITH_THREAD 1
9982_ACEOF
9983
9984
9985cat >>confdefs.h <<\_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +00009986#define HAVE_PTH 1
Martin v. Löwis11437992002-04-12 09:54:03 +00009987_ACEOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +00009988
Martin v. Löwis130fb172001-07-19 11:00:41 +00009989 LIBS="-lpth $LIBS"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +00009990 THREADOBJ="Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +00009991else
Martin v. Löwis11437992002-04-12 09:54:03 +00009992
9993 echo "$as_me:$LINENO: result: no" >&5
9994echo "${ECHO_T}no" >&6
Martin v. Löwis8158b5a2001-10-08 13:17:28 +00009995
9996 # Just looking for pthread_create in libpthread is not enough:
9997 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
9998 # So we really have to include pthread.h, and then link.
9999 _libs=$LIBS
10000 LIBS="$LIBS -lpthread"
Martin v. Löwis11437992002-04-12 09:54:03 +000010001 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10002echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
10003 cat >conftest.$ac_ext <<_ACEOF
10004#line $LINENO "configure"
Guido van Rossum02a1c402000-02-25 19:26:31 +000010005#include "confdefs.h"
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000010006#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:31 +000010007
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000010008void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:03 +000010009#ifdef F77_DUMMY_MAIN
10010# ifdef __cplusplus
10011 extern "C"
10012# endif
10013 int F77_DUMMY_MAIN() { return 1; }
10014#endif
10015int
10016main ()
10017{
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000010018
10019pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:03 +000010020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext conftest$ac_exeext
10025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036
10037 echo "$as_me:$LINENO: result: yes" >&5
10038echo "${ECHO_T}yes" >&6
10039 cat >>confdefs.h <<\_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000010040#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010041_ACEOF
Guido van Rossum02a1c402000-02-25 19:26:31 +000010042
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010043 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010044 THREADOBJ="Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +000010045else
Martin v. Löwis11437992002-04-12 09:54:03 +000010046 echo "$as_me: failed program was:" >&5
10047cat conftest.$ac_ext >&5
10048
Martin v. Löwis8158b5a2001-10-08 13:17:28 +000010049 LIBS=$_libs
Martin v. Löwis11437992002-04-12 09:54:03 +000010050 echo "$as_me:$LINENO: checking for pthread_detach" >&5
10051echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6
10052if test "${ac_cv_func_pthread_detach+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad678af1998-10-02 14:42:15 +000010054else
Martin v. Löwis11437992002-04-12 09:54:03 +000010055 cat >conftest.$ac_ext <<_ACEOF
10056#line $LINENO "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +000010057#include "confdefs.h"
10058/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000010059 which can conflict with char pthread_detach (); below. */
Guido van Rossumad678af1998-10-02 14:42:15 +000010060#include <assert.h>
10061/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010062#ifdef __cplusplus
10063extern "C"
10064#endif
Guido van Rossumad678af1998-10-02 14:42:15 +000010065/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010066 builtin and then its argument prototype would still apply. */
10067char pthread_detach ();
10068char (*f) ();
Guido van Rossumad678af1998-10-02 14:42:15 +000010069
Martin v. Löwis11437992002-04-12 09:54:03 +000010070#ifdef F77_DUMMY_MAIN
10071# ifdef __cplusplus
10072 extern "C"
10073# endif
10074 int F77_DUMMY_MAIN() { return 1; }
10075#endif
10076int
10077main ()
10078{
Guido van Rossumad678af1998-10-02 14:42:15 +000010079/* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
Guido van Rossumea516321998-12-17 18:08:55 +000010082#if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
Guido van Rossumad678af1998-10-02 14:42:15 +000010083choke me
10084#else
Martin v. Löwis11437992002-04-12 09:54:03 +000010085f = pthread_detach;
Guido van Rossumad678af1998-10-02 14:42:15 +000010086#endif
10087
Martin v. Löwis11437992002-04-12 09:54:03 +000010088 ;
10089 return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_func_pthread_detach=yes
Guido van Rossumad678af1998-10-02 14:42:15 +000010105else
Martin v. Löwis11437992002-04-12 09:54:03 +000010106 echo "$as_me: failed program was:" >&5
10107cat conftest.$ac_ext >&5
10108ac_cv_func_pthread_detach=no
Guido van Rossumad678af1998-10-02 14:42:15 +000010109fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Guido van Rossumad678af1998-10-02 14:42:15 +000010111fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010112echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
10113echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6
10114if test $ac_cv_func_pthread_detach = yes; then
10115 cat >>confdefs.h <<\_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000010116#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010117_ACEOF
Guido van Rossumad678af1998-10-02 14:42:15 +000010118
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010119 posix_threads=yes
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010120 THREADOBJ="Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +000010121else
Guido van Rossumad678af1998-10-02 14:42:15 +000010122
Martin v. Löwisf90ae202002-06-11 06:22:31 +000010123 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10124 echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10125echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10126if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128fi
10129echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10130echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10131else
10132 # Is the header compilable?
10133echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
10134echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6
10135cat >conftest.$ac_ext <<_ACEOF
10136#line $LINENO "configure"
10137#include "confdefs.h"
10138$ac_includes_default
10139#include <atheos/threads.h>
10140_ACEOF
10141rm -f conftest.$ac_objext
10142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -s conftest.$ac_objext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_header_compiler=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156cat conftest.$ac_ext >&5
10157ac_header_compiler=no
10158fi
10159rm -f conftest.$ac_objext conftest.$ac_ext
10160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10161echo "${ECHO_T}$ac_header_compiler" >&6
10162
10163# Is the header present?
10164echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
10165echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6
10166cat >conftest.$ac_ext <<_ACEOF
10167#line $LINENO "configure"
10168#include "confdefs.h"
10169#include <atheos/threads.h>
10170_ACEOF
10171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10173 ac_status=$?
10174 egrep -v '^ *\+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } >/dev/null; then
10179 if test -s conftest.err; then
10180 ac_cpp_err=$ac_c_preproc_warn_flag
10181 else
10182 ac_cpp_err=
10183 fi
10184else
10185 ac_cpp_err=yes
10186fi
10187if test -z "$ac_cpp_err"; then
10188 ac_header_preproc=yes
10189else
10190 echo "$as_me: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 ac_header_preproc=no
10193fi
10194rm -f conftest.err conftest.$ac_ext
10195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10196echo "${ECHO_T}$ac_header_preproc" >&6
10197
10198# So? What about this header?
10199case $ac_header_compiler:$ac_header_preproc in
10200 yes:no )
10201 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
10202echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10204echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10205 no:yes )
10206 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
10207echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
10209echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
10211echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};;
10212esac
10213echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
10214echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6
10215if test "${ac_cv_header_atheos_threads_h+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
10218 ac_cv_header_atheos_threads_h=$ac_header_preproc
10219fi
10220echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
10221echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6
10222
10223fi
10224if test $ac_cv_header_atheos_threads_h = yes; then
10225 cat >>confdefs.h <<\_ACEOF
10226#define WITH_THREAD 1
10227_ACEOF
10228
10229
10230cat >>confdefs.h <<\_ACEOF
10231#define ATHEOS_THREADS 1
10232_ACEOF
10233
10234 THREADOBJ="Python/thread.o"
10235else
10236
Martin v. Löwis11437992002-04-12 09:54:03 +000010237 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10238 echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10239echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10240if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242fi
10243echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10244echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010245else
Martin v. Löwis11437992002-04-12 09:54:03 +000010246 # Is the header compilable?
10247echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
10248echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6
10249cat >conftest.$ac_ext <<_ACEOF
10250#line $LINENO "configure"
10251#include "confdefs.h"
10252$ac_includes_default
10253#include <kernel/OS.h>
10254_ACEOF
10255rm -f conftest.$ac_objext
10256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257 (eval $ac_compile) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -s conftest.$ac_objext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_header_compiler=yes
10268else
10269 echo "$as_me: failed program was:" >&5
10270cat conftest.$ac_ext >&5
10271ac_header_compiler=no
10272fi
10273rm -f conftest.$ac_objext conftest.$ac_ext
10274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10275echo "${ECHO_T}$ac_header_compiler" >&6
10276
10277# Is the header present?
10278echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
10279echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6
10280cat >conftest.$ac_ext <<_ACEOF
10281#line $LINENO "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010282#include "confdefs.h"
10283#include <kernel/OS.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000010284_ACEOF
10285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10287 ac_status=$?
10288 egrep -v '^ *\+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } >/dev/null; then
10293 if test -s conftest.err; then
10294 ac_cpp_err=$ac_c_preproc_warn_flag
10295 else
10296 ac_cpp_err=
10297 fi
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010298else
Martin v. Löwis11437992002-04-12 09:54:03 +000010299 ac_cpp_err=yes
10300fi
10301if test -z "$ac_cpp_err"; then
10302 ac_header_preproc=yes
10303else
10304 echo "$as_me: failed program was:" >&5
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010305 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000010306 ac_header_preproc=no
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010307fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010308rm -f conftest.err conftest.$ac_ext
10309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310echo "${ECHO_T}$ac_header_preproc" >&6
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010311
Martin v. Löwis11437992002-04-12 09:54:03 +000010312# So? What about this header?
10313case $ac_header_compiler:$ac_header_preproc in
10314 yes:no )
10315 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
10316echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10318echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10319 no:yes )
10320 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
10321echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
10322 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
10323echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
10324 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
10325echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};;
10326esac
10327echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
10328echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6
10329if test "${ac_cv_header_kernel_OS_h+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331else
10332 ac_cv_header_kernel_OS_h=$ac_header_preproc
10333fi
10334echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
10335echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6
10336
10337fi
10338if test $ac_cv_header_kernel_OS_h = yes; then
10339 cat >>confdefs.h <<\_ACEOF
10340#define WITH_THREAD 1
10341_ACEOF
10342
10343
10344cat >>confdefs.h <<\_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010345#define BEOS_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010346_ACEOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010347
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010348 THREADOBJ="Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010349else
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010350
Martin v. Löwis11437992002-04-12 09:54:03 +000010351 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
10352echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
10353if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010355else
Martin v. Löwis11437992002-04-12 09:54:03 +000010356 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000010357LIBS="-lpthreads $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010358cat >conftest.$ac_ext <<_ACEOF
10359#line $LINENO "configure"
Greg Steinadf63d62000-07-05 10:38:09 +000010360#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010361
Greg Steinadf63d62000-07-05 10:38:09 +000010362/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010363#ifdef __cplusplus
10364extern "C"
10365#endif
Greg Steinadf63d62000-07-05 10:38:09 +000010366/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010367 builtin and then its argument prototype would still apply. */
10368char pthread_create ();
10369#ifdef F77_DUMMY_MAIN
10370# ifdef __cplusplus
10371 extern "C"
10372# endif
10373 int F77_DUMMY_MAIN() { return 1; }
10374#endif
10375int
10376main ()
10377{
10378pthread_create ();
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext conftest$ac_exeext
10384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:09 +000010396else
Martin v. Löwis11437992002-04-12 09:54:03 +000010397 echo "$as_me: failed program was:" >&5
10398cat conftest.$ac_ext >&5
10399ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:09 +000010400fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10402LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000010403fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010404echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
10405echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
10406if test $ac_cv_lib_pthreads_pthread_create = yes; then
10407 cat >>confdefs.h <<\_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000010408#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010409_ACEOF
Greg Steinadf63d62000-07-05 10:38:09 +000010410
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010411 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000010412 LIBS="$LIBS -lpthreads"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010413 THREADOBJ="Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +000010414else
Greg Steinadf63d62000-07-05 10:38:09 +000010415
Martin v. Löwis11437992002-04-12 09:54:03 +000010416 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
10417echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
10418if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
Greg Steinadf63d62000-07-05 10:38:09 +000010420else
Martin v. Löwis11437992002-04-12 09:54:03 +000010421 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000010422LIBS="-lc_r $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010423cat >conftest.$ac_ext <<_ACEOF
10424#line $LINENO "configure"
Guido van Rossum49545951997-12-02 19:28:29 +000010425#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010426
Guido van Rossum49545951997-12-02 19:28:29 +000010427/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010428#ifdef __cplusplus
10429extern "C"
10430#endif
Guido van Rossum49545951997-12-02 19:28:29 +000010431/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010432 builtin and then its argument prototype would still apply. */
10433char pthread_create ();
10434#ifdef F77_DUMMY_MAIN
10435# ifdef __cplusplus
10436 extern "C"
10437# endif
10438 int F77_DUMMY_MAIN() { return 1; }
10439#endif
10440int
10441main ()
10442{
10443pthread_create ();
10444 ;
10445 return 0;
10446}
10447_ACEOF
10448rm -f conftest.$ac_objext conftest$ac_exeext
10449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:29 +000010461else
Martin v. Löwis11437992002-04-12 09:54:03 +000010462 echo "$as_me: failed program was:" >&5
10463cat conftest.$ac_ext >&5
10464ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:29 +000010465fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10467LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:29 +000010468fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010469echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
10470echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
10471if test $ac_cv_lib_c_r_pthread_create = yes; then
10472 cat >>confdefs.h <<\_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000010473#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010474_ACEOF
Guido van Rossum49545951997-12-02 19:28:29 +000010475
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010476 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000010477 LIBS="$LIBS -lc_r"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010478 THREADOBJ="Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010479else
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010480
Martin v. Löwis11437992002-04-12 09:54:03 +000010481 echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
10482echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
10483if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010485else
Martin v. Löwis11437992002-04-12 09:54:03 +000010486 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:09 +000010487LIBS="-lthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010488cat >conftest.$ac_ext <<_ACEOF
10489#line $LINENO "configure"
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010490#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010491
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010492/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010493#ifdef __cplusplus
10494extern "C"
10495#endif
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010496/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010497 builtin and then its argument prototype would still apply. */
10498char __d6_pthread_create ();
10499#ifdef F77_DUMMY_MAIN
10500# ifdef __cplusplus
10501 extern "C"
10502# endif
10503 int F77_DUMMY_MAIN() { return 1; }
10504#endif
10505int
10506main ()
10507{
10508__d6_pthread_create ();
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext conftest$ac_exeext
10514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_lib_thread___d6_pthread_create=yes
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010526else
Martin v. Löwis11437992002-04-12 09:54:03 +000010527 echo "$as_me: failed program was:" >&5
10528cat conftest.$ac_ext >&5
10529ac_cv_lib_thread___d6_pthread_create=no
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010530fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10532LIBS=$ac_check_lib_save_LIBS
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010533fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010534echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
10535echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
10536if test $ac_cv_lib_thread___d6_pthread_create = yes; then
10537 cat >>confdefs.h <<\_ACEOF
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010538#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010539_ACEOF
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010540
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010541 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000010542 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010543 THREADOBJ="Python/thread.o"
Guido van Rossum49545951997-12-02 19:28:29 +000010544else
Guido van Rossum49545951997-12-02 19:28:29 +000010545
Martin v. Löwis11437992002-04-12 09:54:03 +000010546 echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
10547echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6
10548if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010550else
Martin v. Löwis11437992002-04-12 09:54:03 +000010551 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010552LIBS="-lpthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010553cat >conftest.$ac_ext <<_ACEOF
10554#line $LINENO "configure"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010555#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010556
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010557/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010558#ifdef __cplusplus
10559extern "C"
10560#endif
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010561/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010562 builtin and then its argument prototype would still apply. */
10563char __pthread_create_system ();
10564#ifdef F77_DUMMY_MAIN
10565# ifdef __cplusplus
10566 extern "C"
10567# endif
10568 int F77_DUMMY_MAIN() { return 1; }
10569#endif
10570int
10571main ()
10572{
10573__pthread_create_system ();
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext conftest$ac_exeext
10579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10580 (eval $ac_link) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010591else
Martin v. Löwis11437992002-04-12 09:54:03 +000010592 echo "$as_me: failed program was:" >&5
10593cat conftest.$ac_ext >&5
10594ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010595fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10597LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010598fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010599echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10600echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6
10601if test $ac_cv_lib_pthread___pthread_create_system = yes; then
10602 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010603#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010604_ACEOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010605
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010606 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000010607 LIBS="$LIBS -lpthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010608 THREADOBJ="Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010609else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000010610
Martin v. Löwis11437992002-04-12 09:54:03 +000010611 echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
10612echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6
10613if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumb93a8621998-05-07 13:27:32 +000010615else
Martin v. Löwis11437992002-04-12 09:54:03 +000010616 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000010617LIBS="-lcma $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010618cat >conftest.$ac_ext <<_ACEOF
10619#line $LINENO "configure"
Guido van Rossumb93a8621998-05-07 13:27:32 +000010620#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010621
Guido van Rossumb93a8621998-05-07 13:27:32 +000010622/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010623#ifdef __cplusplus
10624extern "C"
10625#endif
Guido van Rossumb93a8621998-05-07 13:27:32 +000010626/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010627 builtin and then its argument prototype would still apply. */
10628char pthread_create ();
10629#ifdef F77_DUMMY_MAIN
10630# ifdef __cplusplus
10631 extern "C"
10632# endif
10633 int F77_DUMMY_MAIN() { return 1; }
10634#endif
10635int
10636main ()
10637{
10638pthread_create ();
10639 ;
10640 return 0;
10641}
10642_ACEOF
10643rm -f conftest.$ac_objext conftest$ac_exeext
10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -s conftest$ac_exeext'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:32 +000010656else
Martin v. Löwis11437992002-04-12 09:54:03 +000010657 echo "$as_me: failed program was:" >&5
10658cat conftest.$ac_ext >&5
10659ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:32 +000010660fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10662LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:32 +000010663fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010664echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
10665echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6
10666if test $ac_cv_lib_cma_pthread_create = yes; then
10667 cat >>confdefs.h <<\_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000010668#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010669_ACEOF
Guido van Rossumb93a8621998-05-07 13:27:32 +000010670
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010671 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:41 +000010672 LIBS="$LIBS -lcma"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010673 THREADOBJ="Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +000010674else
Thomas Wouters0db2b2b2000-08-26 11:33:43 +000010675
Martin v. Löwis130fb172001-07-19 11:00:41 +000010676 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +000010677fi
10678
Guido van Rossum627b2d71993-12-24 10:39:16 +000010679
Guido van Rossum7b3853f1996-07-30 18:09:35 +000010680fi
10681
Guido van Rossum0be3e491997-05-22 20:33:33 +000010682fi
10683
Guido van Rossum49545951997-12-02 19:28:29 +000010684fi
10685
Guido van Rossumb93a8621998-05-07 13:27:32 +000010686fi
10687
Guido van Rossumec95c7b1998-08-04 17:59:56 +000010688fi
10689
Guido van Rossum07bd90e2000-05-08 13:41:38 +000010690
Michael W. Hudson54241132001-12-07 15:38:26 +000010691fi
10692
Martin v. Löwisf90ae202002-06-11 06:22:31 +000010693
10694fi
10695
Martin v. Löwisa6e97582002-01-01 18:41:33 +000010696fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10698fi;
10699fi
10700
10701
10702fi
10703
Martin v. Löwisa6e97582002-01-01 18:41:33 +000010704
Michael W. Hudson54241132001-12-07 15:38:26 +000010705
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010706 if test "$posix_threads" = "yes"; then
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010707 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010708
10709cat >>confdefs.h <<\_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010710#define _POSIX_THREADS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010711_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010712
10713 fi
10714
Martin v. Löwis11437992002-04-12 09:54:03 +000010715 echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10716echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6
10717 if test "${ac_cv_pthread_system_supported+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010719else
10720 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000010721 ac_cv_pthread_system_supported=no
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010722else
Martin v. Löwis11437992002-04-12 09:54:03 +000010723 cat >conftest.$ac_ext <<_ACEOF
10724#line $LINENO "configure"
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010725#include "confdefs.h"
10726#include <pthread.h>
10727 void *foo(void *parm) {
10728 return NULL;
10729 }
10730 main() {
10731 pthread_attr_t attr;
Martin v. Löwisa82d3472002-02-24 16:05:05 +000010732 pthread_t id;
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010733 if (pthread_attr_init(&attr)) exit(-1);
10734 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
Martin v. Löwisa82d3472002-02-24 16:05:05 +000010735 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010736 exit(0);
10737 }
Martin v. Löwis11437992002-04-12 09:54:03 +000010738_ACEOF
10739rm -f conftest$ac_exeext
10740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010750 ac_cv_pthread_system_supported=yes
10751else
Martin v. Löwis11437992002-04-12 09:54:03 +000010752 echo "$as_me: program exited with status $ac_status" >&5
10753echo "$as_me: failed program was:" >&5
10754cat conftest.$ac_ext >&5
10755( exit $ac_status )
10756ac_cv_pthread_system_supported=no
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010757fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010758rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010759fi
10760
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010761fi
10762
Martin v. Löwis11437992002-04-12 09:54:03 +000010763 echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
10764echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010765 if test "$ac_cv_pthread_system_supported" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000010766
10767cat >>confdefs.h <<\_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010768#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010769_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010770
10771 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010772
10773for ac_func in pthread_sigmask
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010774do
Martin v. Löwis11437992002-04-12 09:54:03 +000010775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776echo "$as_me:$LINENO: checking for $ac_func" >&5
10777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10778if eval "test \"\${$as_ac_var+set}\" = set"; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010780else
Martin v. Löwis11437992002-04-12 09:54:03 +000010781 cat >conftest.$ac_ext <<_ACEOF
10782#line $LINENO "configure"
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010783#include "confdefs.h"
10784/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000010785 which can conflict with char $ac_func (); below. */
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010786#include <assert.h>
10787/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010788#ifdef __cplusplus
10789extern "C"
10790#endif
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010791/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010792 builtin and then its argument prototype would still apply. */
10793char $ac_func ();
10794char (*f) ();
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010795
Martin v. Löwis11437992002-04-12 09:54:03 +000010796#ifdef F77_DUMMY_MAIN
10797# ifdef __cplusplus
10798 extern "C"
10799# endif
10800 int F77_DUMMY_MAIN() { return 1; }
10801#endif
10802int
10803main ()
10804{
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010805/* The GNU C library defines this for functions which it implements
10806 to always fail with ENOSYS. Some functions are actually named
10807 something starting with __ and the normal name is an alias. */
10808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10809choke me
10810#else
Martin v. Löwis11437992002-04-12 09:54:03 +000010811f = $ac_func;
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010812#endif
10813
Martin v. Löwis11437992002-04-12 09:54:03 +000010814 ;
10815 return 0;
10816}
10817_ACEOF
10818rm -f conftest.$ac_objext conftest$ac_exeext
10819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10820 (eval $ac_link) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000010831else
Martin v. Löwis11437992002-04-12 09:54:03 +000010832 echo "$as_me: failed program was:" >&5
10833cat conftest.$ac_ext >&5
10834eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000010835fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000010837fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10840if test `eval echo '${'$as_ac_var'}'` = yes; then
10841 cat >>confdefs.h <<_ACEOF
10842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10843_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010844
Martin v. Löwis69c0ff32001-10-15 14:34:42 +000010845fi
10846done
10847
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000010848 fi
10849
Martin v. Löwis11437992002-04-12 09:54:03 +000010850 echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
10851echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
10852if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010854else
Martin v. Löwis11437992002-04-12 09:54:03 +000010855 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000010856LIBS="-lmpc $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010857cat >conftest.$ac_ext <<_ACEOF
10858#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000010859#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010860
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000010861/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010862#ifdef __cplusplus
10863extern "C"
10864#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000010865/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010866 builtin and then its argument prototype would still apply. */
10867char usconfig ();
10868#ifdef F77_DUMMY_MAIN
10869# ifdef __cplusplus
10870 extern "C"
10871# endif
10872 int F77_DUMMY_MAIN() { return 1; }
10873#endif
10874int
10875main ()
10876{
10877usconfig ();
10878 ;
10879 return 0;
10880}
10881_ACEOF
10882rm -f conftest.$ac_objext conftest$ac_exeext
10883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -s conftest$ac_exeext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
10894 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010895else
Martin v. Löwis11437992002-04-12 09:54:03 +000010896 echo "$as_me: failed program was:" >&5
10897cat conftest.$ac_ext >&5
10898ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000010899fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10901LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010902fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010903echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
10904echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
10905if test $ac_cv_lib_mpc_usconfig = yes; then
10906 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010907#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010908_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000010909
Martin v. Löwis130fb172001-07-19 11:00:41 +000010910 LIBS="$LIBS -lmpc"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010911 THREADOBJ="Python/thread.o"
Martin v. Löwis130fb172001-07-19 11:00:41 +000010912 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000010913fi
10914
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000010915
Martin v. Löwis11437992002-04-12 09:54:03 +000010916 if test $posix_threads != "yes"; then
10917 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
10918echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
10919if test "${ac_cv_lib_thread_thr_create+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010921else
Martin v. Löwis11437992002-04-12 09:54:03 +000010922 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000010923LIBS="-lthread $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000010924cat >conftest.$ac_ext <<_ACEOF
10925#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000010926#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000010927
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000010928/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000010929#ifdef __cplusplus
10930extern "C"
10931#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000010932/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000010933 builtin and then its argument prototype would still apply. */
10934char thr_create ();
10935#ifdef F77_DUMMY_MAIN
10936# ifdef __cplusplus
10937 extern "C"
10938# endif
10939 int F77_DUMMY_MAIN() { return 1; }
10940#endif
10941int
10942main ()
10943{
10944thr_create ();
10945 ;
10946 return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext conftest$ac_exeext
10950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10951 (eval $ac_link) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -s conftest$ac_exeext'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_lib_thread_thr_create=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010962else
Martin v. Löwis11437992002-04-12 09:54:03 +000010963 echo "$as_me: failed program was:" >&5
10964cat conftest.$ac_ext >&5
10965ac_cv_lib_thread_thr_create=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000010966fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10968LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010969fi
Martin v. Löwis11437992002-04-12 09:54:03 +000010970echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
10971echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
10972if test $ac_cv_lib_thread_thr_create = yes; then
10973 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000010974#define WITH_THREAD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000010975_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000010976
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000010977 LIBS="$LIBS -lthread"
Martin v. Löwis2d7e2642002-04-05 16:50:53 +000010978 THREADOBJ="Python/thread.o"
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000010979 USE_THREAD_MODULE=""
Guido van Rossum627b2d71993-12-24 10:39:16 +000010980fi
10981
Martin v. Löwis3d2b5492002-03-15 13:48:21 +000010982 fi
Michael W. Hudson54241132001-12-07 15:38:26 +000010983
Martin v. Löwis130fb172001-07-19 11:00:41 +000010984 if test "$USE_THREAD_MODULE" != "#"
10985 then
10986 # If the above checks didn't disable threads, (at least) OSF1
10987 # needs this '-threads' argument during linking.
10988 case $ac_sys_system in
10989 OSF1) LDLAST=-threads;;
10990 esac
Jeremy Hylton1a2ca862000-10-16 16:59:12 +000010991 fi
Martin v. Löwisa7a76d32002-10-04 07:21:24 +000010992
10993 if test "$posix_threads" = yes -a \
10994 "$ac_sys_system" = "SunOS" -a \
10995 "$ac_sys_release" = "5.6"; then
10996
10997cat >>confdefs.h <<\_ACEOF
10998#define HAVE_PTHREAD_DESTRUCTOR 1
10999_ACEOF
11000
11001 fi
11002
Guido van Rossum627b2d71993-12-24 10:39:16 +000011003fi
11004
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011005# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:03 +000011006
11007
11008echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
11009echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011010# Check whether --enable-ipv6 or --disable-ipv6 was given.
11011if test "${enable_ipv6+set}" = set; then
11012 enableval="$enable_ipv6"
11013 case "$enableval" in
11014 no)
Martin v. Löwis11437992002-04-12 09:54:03 +000011015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011017 ipv6=no
11018 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000011019 *) echo "$as_me:$LINENO: result: yes" >&5
11020echo "${ECHO_T}yes" >&6
11021 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011022#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011023_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011024
11025 ipv6=yes
11026 ;;
Martin v. Löwis11437992002-04-12 09:54:03 +000011027 esac
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011028else
Martin v. Löwis11437992002-04-12 09:54:03 +000011029
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011030 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011033 ipv6=no
11034
11035else
Martin v. Löwis11437992002-04-12 09:54:03 +000011036 cat >conftest.$ac_ext <<_ACEOF
11037#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011038#include "confdefs.h"
11039 /* AF_INET6 available check */
11040#include <sys/types.h>
11041#include <sys/socket.h>
11042main()
11043{
11044 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
11045 exit(1);
11046 else
11047 exit(0);
11048}
11049
Martin v. Löwis11437992002-04-12 09:54:03 +000011050_ACEOF
11051rm -f conftest$ac_exeext
11052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 echo "$as_me:$LINENO: result: yes" >&5
11063echo "${ECHO_T}yes" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011064 ipv6=yes
11065else
Martin v. Löwis11437992002-04-12 09:54:03 +000011066 echo "$as_me: program exited with status $ac_status" >&5
11067echo "$as_me: failed program was:" >&5
11068cat conftest.$ac_ext >&5
11069( exit $ac_status )
11070echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011072 ipv6=no
11073fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011074rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011075fi
11076
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011077if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011078 echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
11079echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11081#line $LINENO "configure"
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011082#include "confdefs.h"
11083#include <sys/types.h>
11084#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000011085#ifdef F77_DUMMY_MAIN
11086# ifdef __cplusplus
11087 extern "C"
11088# endif
11089 int F77_DUMMY_MAIN() { return 1; }
11090#endif
11091int
11092main ()
11093{
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011094struct sockaddr_in6 x;
11095x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:03 +000011096 ;
11097 return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext
11101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 echo "$as_me:$LINENO: result: yes" >&5
11113echo "${ECHO_T}yes" >&6
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011114 ipv6=yes
11115else
Martin v. Löwis11437992002-04-12 09:54:03 +000011116 echo "$as_me: failed program was:" >&5
11117cat conftest.$ac_ext >&5
11118echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011120 ipv6=no
11121fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011122rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011123fi
11124
11125if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011126 cat >>confdefs.h <<\_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011127#define ENABLE_IPV6 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011128_ACEOF
Martin v. Löwisa5f8bb52001-09-05 08:22:34 +000011129
11130fi
11131
Martin v. Löwis11437992002-04-12 09:54:03 +000011132fi;
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011133
11134ipv6type=unknown
11135ipv6lib=none
11136ipv6trylibc=no
11137
11138if test "$ipv6" = "yes"; then
Martin v. Löwis11437992002-04-12 09:54:03 +000011139 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
11140echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
Guido van Rossumb8552162001-09-05 14:58:11 +000011141 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11142 do
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011143 case $i in
11144 inria)
Martin v. Löwis11437992002-04-12 09:54:03 +000011145 cat >conftest.$ac_ext <<_ACEOF
11146#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011147#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011148
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011149#include <netinet/in.h>
11150#ifdef IPV6_INRIA_VERSION
11151yes
11152#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011153_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11155 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000011156 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011157fi
11158rm -f conftest*
11159
11160 ;;
11161 kame)
Martin v. Löwis11437992002-04-12 09:54:03 +000011162 cat >conftest.$ac_ext <<_ACEOF
11163#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011164#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011165
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011166#include <netinet/in.h>
11167#ifdef __KAME__
11168yes
11169#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011170_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11172 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011173 ipv6type=$i;
11174 ipv6lib=inet6
11175 ipv6libdir=/usr/local/v6/lib
11176 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011177fi
11178rm -f conftest*
11179
11180 ;;
11181 linux-glibc)
Martin v. Löwis11437992002-04-12 09:54:03 +000011182 cat >conftest.$ac_ext <<_ACEOF
11183#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011184#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011185
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011186#include <features.h>
11187#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11188yes
11189#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011190_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11192 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011193 ipv6type=$i;
11194 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011195fi
11196rm -f conftest*
11197
11198 ;;
11199 linux-inet6)
11200 if test -d /usr/inet6; then
11201 ipv6type=$i
11202 ipv6lib=inet6
11203 ipv6libdir=/usr/inet6/lib
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000011204 OPT="-I/usr/inet6/include $OPT"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011205 fi
11206 ;;
11207 solaris)
11208 if test -f /etc/netconfig; then
11209 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
11210 ipv6type=$i
11211 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011212 fi
11213 fi
11214 ;;
11215 toshiba)
Martin v. Löwis11437992002-04-12 09:54:03 +000011216 cat >conftest.$ac_ext <<_ACEOF
11217#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011218#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011219
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011220#include <sys/param.h>
11221#ifdef _TOSHIBA_INET6
11222yes
11223#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011224_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11226 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011227 ipv6type=$i;
11228 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000011229 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011230fi
11231rm -f conftest*
11232
11233 ;;
11234 v6d)
Martin v. Löwis11437992002-04-12 09:54:03 +000011235 cat >conftest.$ac_ext <<_ACEOF
11236#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011237#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011238
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011239#include </usr/local/v6/include/sys/v6config.h>
11240#ifdef __V6D__
11241yes
11242#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011243_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11245 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011246 ipv6type=$i;
11247 ipv6lib=v6;
11248 ipv6libdir=/usr/local/v6/lib;
11249 OPT="-I/usr/local/v6/include $OPT"
11250fi
11251rm -f conftest*
11252
11253 ;;
11254 zeta)
Martin v. Löwis11437992002-04-12 09:54:03 +000011255 cat >conftest.$ac_ext <<_ACEOF
11256#line $LINENO "configure"
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011257#include "confdefs.h"
Martin v. Löwisa5f73f92001-10-15 08:06:29 +000011258
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011259#include <sys/param.h>
11260#ifdef _ZETA_MINAMI_INET6
11261yes
11262#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000011263_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11265 egrep "yes" >/dev/null 2>&1; then
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011266 ipv6type=$i;
11267 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:37 +000011268 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011269fi
11270rm -f conftest*
11271
11272 ;;
11273 esac
11274 if test "$ipv6type" != "unknown"; then
11275 break
11276 fi
11277 done
Martin v. Löwis11437992002-04-12 09:54:03 +000011278 echo "$as_me:$LINENO: result: $ipv6type" >&5
11279echo "${ECHO_T}$ipv6type" >&6
Martin v. Löwisa2ac6022001-08-09 11:40:14 +000011280fi
11281
11282if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11283 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11284 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11285 echo "using lib$ipv6lib"
11286 else
11287 if test $ipv6trylibc = "yes"; then
11288 echo "using libc"
11289 else
11290 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11291 echo "You need to fetch lib$ipv6lib.a from appropriate"
11292 echo 'ipv6 kit and compile beforehand.'
11293 exit 1
11294 fi
11295 fi
11296fi
11297
Jack Jansen7b8c7542002-04-14 20:12:41 +000011298# Check for universal newline support
Guido van Rossum402905e2002-08-15 13:56:35 +000011299echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5
11300echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6
Jack Jansen7b8c7542002-04-14 20:12:41 +000011301
11302# Check whether --with-universal-newlines or --without-universal-newlines was given.
11303if test "${with_universal_newlines+set}" = set; then
11304 withval="$with_universal_newlines"
11305
11306fi;
11307
11308if test -z "$with_universal_newlines"
11309then with_universal_newlines="yes"
11310fi
11311if test "$with_universal_newlines" != "no"
11312then
Martin v. Löwise8aea582002-04-16 05:51:02 +000011313
11314cat >>confdefs.h <<\_ACEOF
Jack Jansen7b8c7542002-04-14 20:12:41 +000011315#define WITH_UNIVERSAL_NEWLINES 1
11316_ACEOF
11317
11318fi
11319echo "$as_me:$LINENO: result: $with_universal_newlines" >&5
11320echo "${ECHO_T}$with_universal_newlines" >&6
11321
Martin v. Löwisa3fb4f72002-06-09 13:33:54 +000011322# Check for --with-doc-strings
11323echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
11324echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6
11325
11326# Check whether --with-doc-strings or --without-doc-strings was given.
11327if test "${with_doc_strings+set}" = set; then
11328 withval="$with_doc_strings"
11329
11330fi;
11331
11332if test -z "$with_doc_strings"
11333then with_doc_strings="yes"
11334fi
11335if test "$with_doc_strings" != "no"
11336then
11337
11338cat >>confdefs.h <<\_ACEOF
11339#define WITH_DOC_STRINGS 1
11340_ACEOF
11341
11342fi
11343echo "$as_me:$LINENO: result: $with_doc_strings" >&5
11344echo "${ECHO_T}$with_doc_strings" >&6
11345
Neil Schemenauera35c6882001-02-27 04:45:05 +000011346# Check for Python-specific malloc support
Martin v. Löwis11437992002-04-12 09:54:03 +000011347echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
11348echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6
11349
Neil Schemenauera35c6882001-02-27 04:45:05 +000011350# Check whether --with-pymalloc or --without-pymalloc was given.
11351if test "${with_pymalloc+set}" = set; then
11352 withval="$with_pymalloc"
Michael W. Hudson54241132001-12-07 15:38:26 +000011353
Martin v. Löwis11437992002-04-12 09:54:03 +000011354fi;
Neil Schemenauera35c6882001-02-27 04:45:05 +000011355
Neil Schemenauer16c22972002-03-22 15:34:49 +000011356if test -z "$with_pymalloc"
11357then with_pymalloc="yes"
11358fi
11359if test "$with_pymalloc" != "no"
11360then
Martin v. Löwis11437992002-04-12 09:54:03 +000011361
11362cat >>confdefs.h <<\_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000011363#define WITH_PYMALLOC 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011364_ACEOF
Neil Schemenauer16c22972002-03-22 15:34:49 +000011365
11366fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011367echo "$as_me:$LINENO: result: $with_pymalloc" >&5
11368echo "${ECHO_T}$with_pymalloc" >&6
Neil Schemenauer16c22972002-03-22 15:34:49 +000011369
Barry Warsawef82cd72000-06-30 16:21:01 +000011370# Check for --with-wctype-functions
Martin v. Löwis11437992002-04-12 09:54:03 +000011371echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
11372echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6
11373
Barry Warsawef82cd72000-06-30 16:21:01 +000011374# Check whether --with-wctype-functions or --without-wctype-functions was given.
11375if test "${with_wctype_functions+set}" = set; then
11376 withval="$with_wctype_functions"
Martin v. Löwis11437992002-04-12 09:54:03 +000011377
Barry Warsawef82cd72000-06-30 16:21:01 +000011378if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000011379then
11380
11381cat >>confdefs.h <<\_ACEOF
Barry Warsawef82cd72000-06-30 16:21:01 +000011382#define WANT_WCTYPE_FUNCTIONS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011383_ACEOF
11384
11385 echo "$as_me:$LINENO: result: yes" >&5
11386echo "${ECHO_T}yes" >&6
11387else echo "$as_me:$LINENO: result: no" >&5
11388echo "${ECHO_T}no" >&6
Barry Warsawef82cd72000-06-30 16:21:01 +000011389fi
11390else
Martin v. Löwis11437992002-04-12 09:54:03 +000011391 echo "$as_me:$LINENO: result: no" >&5
11392echo "${ECHO_T}no" >&6
11393fi;
Barry Warsawef82cd72000-06-30 16:21:01 +000011394
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000011395# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +000011396
Guido van Rossum98935bf2001-09-05 19:13:16 +000011397DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:30 +000011398
Martin v. Löwis11437992002-04-12 09:54:03 +000011399echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5
11400echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6
11401
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011402# Check whether --with-sgi-dl or --without-sgi-dl was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000011403if test "${with_sgi_dl+set}" = set; then
11404 withval="$with_sgi_dl"
Martin v. Löwis11437992002-04-12 09:54:03 +000011405
11406echo "$as_me:$LINENO: result: $withval" >&5
11407echo "${ECHO_T}$withval" >&6
11408
11409cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011410#define WITH_SGI_DL 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011411_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000011412
Guido van Rossume97ee181999-12-20 21:27:22 +000011413DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +000011414dldir=$withval
Guido van Rossum40951012000-10-07 16:21:27 +000011415if test ! -z "$dldir" -a -d "$dldir"
Guido van Rossum84e7b241996-08-19 21:59:00 +000011416then LDFLAGS="$LDFLAGS -L$dldir"
Martin v. Löwis11437992002-04-12 09:54:03 +000011417else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5
11418echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;}
11419 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000011420fi
11421DLINCLDIR=${dldir}
11422LIBS="$LIBS -ldl -lmld"
Guido van Rossumda88dad1995-01-26 00:46:29 +000011423else
Martin v. Löwis11437992002-04-12 09:54:03 +000011424 echo "$as_me:$LINENO: result: no" >&5
11425echo "${ECHO_T}no" >&6
11426fi;
Guido van Rossum7f43da71994-08-01 12:15:30 +000011427
Martin v. Löwis11437992002-04-12 09:54:03 +000011428echo "$as_me:$LINENO: checking for --with-dl-dld" >&5
11429echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6
Guido van Rossum7f43da71994-08-01 12:15:30 +000011430
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011431# Check whether --with-dl-dld or --without-dl-dld was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000011432if test "${with_dl_dld+set}" = set; then
11433 withval="$with_dl_dld"
Martin v. Löwis11437992002-04-12 09:54:03 +000011434
11435echo "$as_me:$LINENO: result: $withval" >&5
11436echo "${ECHO_T}$withval" >&6
11437
11438cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011439#define WITH_DL_DLD 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011440_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000011441
Guido van Rossume97ee181999-12-20 21:27:22 +000011442DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +000011443dldir=`echo "$withval" | sed 's/,.*//'`
11444dlddir=`echo "$withval" | sed 's/.*,//'`
Barry Warsaw7d1219d2000-10-05 18:45:53 +000011445if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
Guido van Rossum84e7b241996-08-19 21:59:00 +000011446then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
Martin v. Löwis11437992002-04-12 09:54:03 +000011447else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5
11448echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;}
11449 { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000011450fi
11451DLINCLDIR=${dldir}
11452LIBS="$LIBS -ldl -ldld"
Guido van Rossumda88dad1995-01-26 00:46:29 +000011453else
Martin v. Löwis11437992002-04-12 09:54:03 +000011454 echo "$as_me:$LINENO: result: no" >&5
11455echo "${ECHO_T}no" >&6
11456fi;
Guido van Rossum7f43da71994-08-01 12:15:30 +000011457
Guido van Rossume97ee181999-12-20 21:27:22 +000011458# the dlopen() function means we might want to use dynload_shlib.o. some
11459# platforms, such as AIX, have dlopen(), but don't want to use it.
Martin v. Löwis11437992002-04-12 09:54:03 +000011460
Thomas Wouters3a584202000-08-05 23:28:51 +000011461for ac_func in dlopen
11462do
Martin v. Löwis11437992002-04-12 09:54:03 +000011463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464echo "$as_me:$LINENO: checking for $ac_func" >&5
11465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11466if eval "test \"\${$as_ac_var+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000011468else
Martin v. Löwis11437992002-04-12 09:54:03 +000011469 cat >conftest.$ac_ext <<_ACEOF
11470#line $LINENO "configure"
Guido van Rossume97ee181999-12-20 21:27:22 +000011471#include "confdefs.h"
11472/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000011473 which can conflict with char $ac_func (); below. */
Guido van Rossume97ee181999-12-20 21:27:22 +000011474#include <assert.h>
11475/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011476#ifdef __cplusplus
11477extern "C"
11478#endif
Guido van Rossume97ee181999-12-20 21:27:22 +000011479/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011480 builtin and then its argument prototype would still apply. */
11481char $ac_func ();
11482char (*f) ();
Guido van Rossume97ee181999-12-20 21:27:22 +000011483
Martin v. Löwis11437992002-04-12 09:54:03 +000011484#ifdef F77_DUMMY_MAIN
11485# ifdef __cplusplus
11486 extern "C"
11487# endif
11488 int F77_DUMMY_MAIN() { return 1; }
11489#endif
11490int
11491main ()
11492{
Guido van Rossume97ee181999-12-20 21:27:22 +000011493/* The GNU C library defines this for functions which it implements
11494 to always fail with ENOSYS. Some functions are actually named
11495 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +000011496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossume97ee181999-12-20 21:27:22 +000011497choke me
11498#else
Martin v. Löwis11437992002-04-12 09:54:03 +000011499f = $ac_func;
Guido van Rossume97ee181999-12-20 21:27:22 +000011500#endif
11501
Martin v. Löwis11437992002-04-12 09:54:03 +000011502 ;
11503 return 0;
11504}
11505_ACEOF
11506rm -f conftest.$ac_objext conftest$ac_exeext
11507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000011519else
Martin v. Löwis11437992002-04-12 09:54:03 +000011520 echo "$as_me: failed program was:" >&5
11521cat conftest.$ac_ext >&5
11522eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000011523fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000011525fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11528if test `eval echo '${'$as_ac_var'}'` = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11531_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000011532
Guido van Rossume97ee181999-12-20 21:27:22 +000011533fi
Thomas Wouters3a584202000-08-05 23:28:51 +000011534done
Guido van Rossume97ee181999-12-20 21:27:22 +000011535
Michael W. Hudson54241132001-12-07 15:38:26 +000011536
Guido van Rossume97ee181999-12-20 21:27:22 +000011537# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11538# loading of modules.
11539
Martin v. Löwis11437992002-04-12 09:54:03 +000011540echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
11541echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000011542if test -z "$DYNLOADFILE"
11543then
11544 case $ac_sys_system/$ac_sys_release in
11545 AIX*) DYNLOADFILE="dynload_aix.o";;
11546 BeOS*) DYNLOADFILE="dynload_beos.o";;
11547 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Jack Jansene578a632001-08-15 01:27:14 +000011548 Darwin/*) DYNLOADFILE="dynload_next.o";;
Martin v. Löwisf90ae202002-06-11 06:22:31 +000011549 atheos*) DYNLOADFILE="dynload_atheos.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +000011550 *)
11551 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11552 # out any dynamic loading
11553 if test "$ac_cv_func_dlopen" = yes
11554 then DYNLOADFILE="dynload_shlib.o"
11555 else DYNLOADFILE="dynload_stub.o"
11556 fi
11557 ;;
11558 esac
11559fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011560echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
11561echo "${ECHO_T}$DYNLOADFILE" >&6
Guido van Rossume97ee181999-12-20 21:27:22 +000011562if test "$DYNLOADFILE" != "dynload_stub.o"
11563then
Martin v. Löwis11437992002-04-12 09:54:03 +000011564
11565cat >>confdefs.h <<\_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000011566#define HAVE_DYNAMIC_LOADING 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011567_ACEOF
Guido van Rossume97ee181999-12-20 21:27:22 +000011568
11569fi
11570
Neil Schemenauer4e425612001-06-19 15:44:15 +000011571# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11572
Michael W. Hudson54241132001-12-07 15:38:26 +000011573
Martin v. Löwis11437992002-04-12 09:54:03 +000011574echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
11575echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6
Neil Schemenauer4e425612001-06-19 15:44:15 +000011576if test -z "$MACHDEP_OBJS"
11577then
Jack Jansene578a632001-08-15 01:27:14 +000011578 MACHDEP_OBJS=$extra_machdep_objs
11579else
11580 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:15 +000011581fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011582echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
11583echo "${ECHO_T}MACHDEP_OBJS" >&6
Neil Schemenauer4e425612001-06-19 15:44:15 +000011584
Guido van Rossum627b2d71993-12-24 10:39:16 +000011585# checks for library functions
Martin v. Löwis11437992002-04-12 09:54:03 +000011586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
Martin v. Löwis06a83e92002-04-14 10:19:44 +000011659
Fred Drake6b3cc522002-04-15 19:20:27 +000011660
Jack Jansen0b06be72002-06-21 14:48:38 +000011661
Martin v. Löwis0cec0ff2002-07-28 16:33:45 +000011662
Martin v. Löwis6aa9fdb2002-09-10 09:16:13 +000011663
Martin v. Löwisfed24052002-10-07 13:55:50 +000011664
11665
Martin v. Löwis244edc82001-10-04 22:44:26 +000011666for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \
Fred Drake6b3cc522002-04-15 19:20:27 +000011667 fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
Martin v. Löwis606edc12002-06-13 21:09:11 +000011668 gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \
Martin v. Löwisfed24052002-10-07 13:55:50 +000011669 hstrerror inet_pton iswprint kill killpg lchown link lstat mbtowc mkfifo \
11670 mknod mktime mremap nice pathconf pause plock poll pthread_init \
Fred Drake35a092f1999-12-13 16:23:35 +000011671 putenv readlink \
Martin v. Löwis61c5edf2001-10-18 04:06:00 +000011672 select setegid seteuid setgid setgroups \
Martin v. Löwis791bfda2001-07-24 06:33:08 +000011673 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
Michael W. Hudson065c1a22002-06-06 13:03:44 +000011674 sigaction siginterrupt sigrelse strftime strptime symlink \
Michael W. Hudson34f20ea2002-05-27 15:08:24 +000011675 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Martin v. Löwis6aa9fdb2002-09-10 09:16:13 +000011676 truncate uname unsetenv utimes waitpid _getpty getpriority
Guido van Rossum627b2d71993-12-24 10:39:16 +000011677do
Martin v. Löwis11437992002-04-12 09:54:03 +000011678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11679echo "$as_me:$LINENO: checking for $ac_func" >&5
11680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11681if eval "test \"\${$as_ac_var+set}\" = set"; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011683else
Martin v. Löwis11437992002-04-12 09:54:03 +000011684 cat >conftest.$ac_ext <<_ACEOF
11685#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000011686#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000011687/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000011688 which can conflict with char $ac_func (); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000011689#include <assert.h>
11690/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011691#ifdef __cplusplus
11692extern "C"
11693#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000011694/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011695 builtin and then its argument prototype would still apply. */
11696char $ac_func ();
11697char (*f) ();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000011698
Martin v. Löwis11437992002-04-12 09:54:03 +000011699#ifdef F77_DUMMY_MAIN
11700# ifdef __cplusplus
11701 extern "C"
11702# endif
11703 int F77_DUMMY_MAIN() { return 1; }
11704#endif
11705int
11706main ()
11707{
Guido van Rossum627b2d71993-12-24 10:39:16 +000011708/* The GNU C library defines this for functions which it implements
11709 to always fail with ENOSYS. Some functions are actually named
11710 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011711#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +000011712choke me
11713#else
Martin v. Löwis11437992002-04-12 09:54:03 +000011714f = $ac_func;
Guido van Rossum627b2d71993-12-24 10:39:16 +000011715#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000011716
Martin v. Löwis11437992002-04-12 09:54:03 +000011717 ;
11718 return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext conftest$ac_exeext
11722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000011734else
Martin v. Löwis11437992002-04-12 09:54:03 +000011735 echo "$as_me: failed program was:" >&5
11736cat conftest.$ac_ext >&5
11737eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000011738fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000011740fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11743if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000011747
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011748fi
11749done
11750
Michael W. Hudson54241132001-12-07 15:38:26 +000011751
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011752# check for openpty and forkpty
11753
Martin v. Löwis11437992002-04-12 09:54:03 +000011754
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011755for ac_func in openpty
11756do
Martin v. Löwis11437992002-04-12 09:54:03 +000011757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11758echo "$as_me:$LINENO: checking for $ac_func" >&5
11759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11760if eval "test \"\${$as_ac_var+set}\" = set"; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011762else
Martin v. Löwis11437992002-04-12 09:54:03 +000011763 cat >conftest.$ac_ext <<_ACEOF
11764#line $LINENO "configure"
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011765#include "confdefs.h"
11766/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000011767 which can conflict with char $ac_func (); below. */
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011768#include <assert.h>
11769/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011770#ifdef __cplusplus
11771extern "C"
11772#endif
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011773/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011774 builtin and then its argument prototype would still apply. */
11775char $ac_func ();
11776char (*f) ();
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011777
Martin v. Löwis11437992002-04-12 09:54:03 +000011778#ifdef F77_DUMMY_MAIN
11779# ifdef __cplusplus
11780 extern "C"
11781# endif
11782 int F77_DUMMY_MAIN() { return 1; }
11783#endif
11784int
11785main ()
11786{
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011787/* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11791choke me
11792#else
Martin v. Löwis11437992002-04-12 09:54:03 +000011793f = $ac_func;
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011794#endif
11795
Martin v. Löwis11437992002-04-12 09:54:03 +000011796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest$ac_exeext
11801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802 (eval $ac_link) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -s conftest$ac_exeext'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; }; then
11812 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000011813else
Martin v. Löwis11437992002-04-12 09:54:03 +000011814 echo "$as_me: failed program was:" >&5
11815cat conftest.$ac_ext >&5
11816eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000011817fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000011819fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11822if test `eval echo '${'$as_ac_var'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11825_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011826
Guido van Rossumd0b69ec2001-09-10 14:10:54 +000011827else
Martin v. Löwis11437992002-04-12 09:54:03 +000011828 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
11829echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
11830if test "${ac_cv_lib_util_openpty+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000011832else
Martin v. Löwis11437992002-04-12 09:54:03 +000011833 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011834LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000011835cat >conftest.$ac_ext <<_ACEOF
11836#line $LINENO "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +000011837#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000011838
Fred Drake8cef4cf2000-06-28 16:40:38 +000011839/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011840#ifdef __cplusplus
11841extern "C"
11842#endif
Fred Drake8cef4cf2000-06-28 16:40:38 +000011843/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011844 builtin and then its argument prototype would still apply. */
11845char openpty ();
11846#ifdef F77_DUMMY_MAIN
11847# ifdef __cplusplus
11848 extern "C"
11849# endif
11850 int F77_DUMMY_MAIN() { return 1; }
11851#endif
11852int
11853main ()
11854{
11855openpty ();
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862 (eval $ac_link) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000011873else
Martin v. Löwis11437992002-04-12 09:54:03 +000011874 echo "$as_me: failed program was:" >&5
11875cat conftest.$ac_ext >&5
11876ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000011877fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011880fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011881echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
11882echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
11883if test $ac_cv_lib_util_openpty = yes; then
11884 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000011885#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000011886_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000011887 LIBS="$LIBS -lutil"
Fred Drake8cef4cf2000-06-28 16:40:38 +000011888fi
11889
11890fi
11891done
11892
Martin v. Löwis11437992002-04-12 09:54:03 +000011893
Fred Drake8cef4cf2000-06-28 16:40:38 +000011894for ac_func in forkpty
11895do
Martin v. Löwis11437992002-04-12 09:54:03 +000011896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11897echo "$as_me:$LINENO: checking for $ac_func" >&5
11898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11899if eval "test \"\${$as_ac_var+set}\" = set"; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000011901else
Martin v. Löwis11437992002-04-12 09:54:03 +000011902 cat >conftest.$ac_ext <<_ACEOF
11903#line $LINENO "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +000011904#include "confdefs.h"
11905/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000011906 which can conflict with char $ac_func (); below. */
Fred Drake8cef4cf2000-06-28 16:40:38 +000011907#include <assert.h>
11908/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011909#ifdef __cplusplus
11910extern "C"
11911#endif
Fred Drake8cef4cf2000-06-28 16:40:38 +000011912/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011913 builtin and then its argument prototype would still apply. */
11914char $ac_func ();
11915char (*f) ();
Fred Drake8cef4cf2000-06-28 16:40:38 +000011916
Martin v. Löwis11437992002-04-12 09:54:03 +000011917#ifdef F77_DUMMY_MAIN
11918# ifdef __cplusplus
11919 extern "C"
11920# endif
11921 int F77_DUMMY_MAIN() { return 1; }
11922#endif
11923int
11924main ()
11925{
Fred Drake8cef4cf2000-06-28 16:40:38 +000011926/* The GNU C library defines this for functions which it implements
11927 to always fail with ENOSYS. Some functions are actually named
11928 something starting with __ and the normal name is an alias. */
11929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11930choke me
11931#else
Martin v. Löwis11437992002-04-12 09:54:03 +000011932f = $ac_func;
Fred Drake8cef4cf2000-06-28 16:40:38 +000011933#endif
11934
Martin v. Löwis11437992002-04-12 09:54:03 +000011935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
11940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000011952else
Martin v. Löwis11437992002-04-12 09:54:03 +000011953 echo "$as_me: failed program was:" >&5
11954cat conftest.$ac_ext >&5
11955eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000011956fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000011958fi
Martin v. Löwis11437992002-04-12 09:54:03 +000011959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11961if test `eval echo '${'$as_ac_var'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000011965
Fred Drake8cef4cf2000-06-28 16:40:38 +000011966else
Martin v. Löwis11437992002-04-12 09:54:03 +000011967 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
11968echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
11969if test "${ac_cv_lib_util_forkpty+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
Fred Drake8cef4cf2000-06-28 16:40:38 +000011971else
Martin v. Löwis11437992002-04-12 09:54:03 +000011972 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000011973LIBS="-lutil $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000011974cat >conftest.$ac_ext <<_ACEOF
11975#line $LINENO "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +000011976#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000011977
Fred Drake8cef4cf2000-06-28 16:40:38 +000011978/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000011979#ifdef __cplusplus
11980extern "C"
11981#endif
Fred Drake8cef4cf2000-06-28 16:40:38 +000011982/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000011983 builtin and then its argument prototype would still apply. */
11984char forkpty ();
11985#ifdef F77_DUMMY_MAIN
11986# ifdef __cplusplus
11987 extern "C"
11988# endif
11989 int F77_DUMMY_MAIN() { return 1; }
11990#endif
11991int
11992main ()
11993{
11994forkpty ();
11995 ;
11996 return 0;
11997}
11998_ACEOF
11999rm -f conftest.$ac_objext conftest$ac_exeext
12000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest$ac_exeext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:38 +000012012else
Martin v. Löwis11437992002-04-12 09:54:03 +000012013 echo "$as_me: failed program was:" >&5
12014cat conftest.$ac_ext >&5
12015ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:38 +000012016fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12018LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:38 +000012019fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012020echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
12021echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
12022if test $ac_cv_lib_util_forkpty = yes; then
12023 cat >>confdefs.h <<\_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000012024#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012025_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:38 +000012026 LIBS="$LIBS -lutil"
Fred Drake8cef4cf2000-06-28 16:40:38 +000012027fi
12028
12029fi
12030done
12031
Jack Jansendd19cf82001-12-06 22:36:17 +000012032
Michael W. Hudson54241132001-12-07 15:38:26 +000012033# check for long file support functions
Martin v. Löwis11437992002-04-12 09:54:03 +000012034
12035
12036
12037
12038
12039
Fred Drake8cef4cf2000-06-28 16:40:38 +000012040for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12041do
Martin v. Löwis11437992002-04-12 09:54:03 +000012042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12043echo "$as_me:$LINENO: checking for $ac_func" >&5
12044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12045if eval "test \"\${$as_ac_var+set}\" = set"; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012047else
Martin v. Löwis11437992002-04-12 09:54:03 +000012048 cat >conftest.$ac_ext <<_ACEOF
12049#line $LINENO "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012050#include "confdefs.h"
12051/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000012052 which can conflict with char $ac_func (); below. */
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012053#include <assert.h>
12054/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012055#ifdef __cplusplus
12056extern "C"
12057#endif
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012058/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000012059 builtin and then its argument prototype would still apply. */
12060char $ac_func ();
12061char (*f) ();
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012062
Martin v. Löwis11437992002-04-12 09:54:03 +000012063#ifdef F77_DUMMY_MAIN
12064# ifdef __cplusplus
12065 extern "C"
12066# endif
12067 int F77_DUMMY_MAIN() { return 1; }
12068#endif
12069int
12070main ()
12071{
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012072/* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12076choke me
12077#else
Martin v. Löwis11437992002-04-12 09:54:03 +000012078f = $ac_func;
Guido van Rossumf98e2a71999-01-06 18:53:34 +000012079#endif
12080
Martin v. Löwis11437992002-04-12 09:54:03 +000012081 ;
12082 return 0;
12083}
12084_ACEOF
12085rm -f conftest.$ac_objext conftest$ac_exeext
12086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087 (eval $ac_link) 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 eval "$as_ac_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012098else
Martin v. Löwis11437992002-04-12 09:54:03 +000012099 echo "$as_me: failed program was:" >&5
12100cat conftest.$ac_ext >&5
12101eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000012102fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012104fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12107if test `eval echo '${'$as_ac_var'}'` = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12110_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000012111
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012112fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000012113done
12114
Michael W. Hudson54241132001-12-07 15:38:26 +000012115
Martin v. Löwis11437992002-04-12 09:54:03 +000012116
12117
12118
12119
12120
Martin v. Löwis1142de32002-03-29 16:28:31 +000012121for ac_func in dup2 getcwd strdup strerror memmove
Thomas Wouters3a584202000-08-05 23:28:51 +000012122do
Martin v. Löwis11437992002-04-12 09:54:03 +000012123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12124echo "$as_me:$LINENO: checking for $ac_func" >&5
12125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12126if eval "test \"\${$as_ac_var+set}\" = set"; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012128else
Martin v. Löwis11437992002-04-12 09:54:03 +000012129 cat >conftest.$ac_ext <<_ACEOF
12130#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000012131#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012132/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000012133 which can conflict with char $ac_func (); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012134#include <assert.h>
12135/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012136#ifdef __cplusplus
12137extern "C"
12138#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000012139/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000012140 builtin and then its argument prototype would still apply. */
12141char $ac_func ();
12142char (*f) ();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012143
Martin v. Löwis11437992002-04-12 09:54:03 +000012144#ifdef F77_DUMMY_MAIN
12145# ifdef __cplusplus
12146 extern "C"
12147# endif
12148 int F77_DUMMY_MAIN() { return 1; }
12149#endif
12150int
12151main ()
12152{
Guido van Rossum627b2d71993-12-24 10:39:16 +000012153/* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +000012156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +000012157choke me
12158#else
Martin v. Löwis11437992002-04-12 09:54:03 +000012159f = $ac_func;
Guido van Rossum627b2d71993-12-24 10:39:16 +000012160#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012161
Martin v. Löwis11437992002-04-12 09:54:03 +000012162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext conftest$ac_exeext
12167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 eval "$as_ac_var=yes"
Martin v. Löwis1142de32002-03-29 16:28:31 +000012179else
Martin v. Löwis11437992002-04-12 09:54:03 +000012180 echo "$as_me: failed program was:" >&5
12181cat conftest.$ac_ext >&5
12182eval "$as_ac_var=no"
Martin v. Löwis1142de32002-03-29 16:28:31 +000012183fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis1142de32002-03-29 16:28:31 +000012185fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12187echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12188if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191_ACEOF
Martin v. Löwis1142de32002-03-29 16:28:31 +000012192
Martin v. Löwis1142de32002-03-29 16:28:31 +000012193else
Martin v. Löwis11437992002-04-12 09:54:03 +000012194 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
Martin v. Löwis1142de32002-03-29 16:28:31 +000012195fi
12196done
12197
12198
Martin v. Löwis11437992002-04-12 09:54:03 +000012199
Martin v. Löwis1142de32002-03-29 16:28:31 +000012200for ac_func in getpgrp
12201do
Martin v. Löwis11437992002-04-12 09:54:03 +000012202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12203echo "$as_me:$LINENO: checking for $ac_func" >&5
12204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12205if eval "test \"\${$as_ac_var+set}\" = set"; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis1142de32002-03-29 16:28:31 +000012207else
Martin v. Löwis11437992002-04-12 09:54:03 +000012208 cat >conftest.$ac_ext <<_ACEOF
12209#line $LINENO "configure"
Martin v. Löwis1142de32002-03-29 16:28:31 +000012210#include "confdefs.h"
12211/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000012212 which can conflict with char $ac_func (); below. */
Martin v. Löwis1142de32002-03-29 16:28:31 +000012213#include <assert.h>
12214/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012215#ifdef __cplusplus
12216extern "C"
12217#endif
Martin v. Löwis1142de32002-03-29 16:28:31 +000012218/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000012219 builtin and then its argument prototype would still apply. */
12220char $ac_func ();
12221char (*f) ();
Martin v. Löwis1142de32002-03-29 16:28:31 +000012222
Martin v. Löwis11437992002-04-12 09:54:03 +000012223#ifdef F77_DUMMY_MAIN
12224# ifdef __cplusplus
12225 extern "C"
12226# endif
12227 int F77_DUMMY_MAIN() { return 1; }
12228#endif
12229int
12230main ()
12231{
Martin v. Löwis1142de32002-03-29 16:28:31 +000012232/* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12236choke me
12237#else
Martin v. Löwis11437992002-04-12 09:54:03 +000012238f = $ac_func;
Martin v. Löwis1142de32002-03-29 16:28:31 +000012239#endif
12240
Martin v. Löwis11437992002-04-12 09:54:03 +000012241 ;
12242 return 0;
12243}
12244_ACEOF
12245rm -f conftest.$ac_objext conftest$ac_exeext
12246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12247 (eval $ac_link) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000012258else
Martin v. Löwis11437992002-04-12 09:54:03 +000012259 echo "$as_me: failed program was:" >&5
12260cat conftest.$ac_ext >&5
12261eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000012262fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012264fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12267if test `eval echo '${'$as_ac_var'}'` = yes; then
12268 cat >>confdefs.h <<_ACEOF
12269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12270_ACEOF
12271 cat >conftest.$ac_ext <<_ACEOF
12272#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012273#include "confdefs.h"
12274#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012275#ifdef F77_DUMMY_MAIN
12276# ifdef __cplusplus
12277 extern "C"
12278# endif
12279 int F77_DUMMY_MAIN() { return 1; }
12280#endif
12281int
12282main ()
12283{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012284getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:03 +000012285 ;
12286 return 0;
12287}
12288_ACEOF
12289rm -f conftest.$ac_objext
12290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -s conftest.$ac_objext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301
12302cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012303#define GETPGRP_HAVE_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012304_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000012305
Martin v. Löwis11437992002-04-12 09:54:03 +000012306
Guido van Rossumf78abae1997-01-21 22:02:36 +000012307else
Martin v. Löwis11437992002-04-12 09:54:03 +000012308 echo "$as_me: failed program was:" >&5
12309cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +000012310fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012311rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012312
Guido van Rossum627b2d71993-12-24 10:39:16 +000012313fi
Thomas Wouters3a584202000-08-05 23:28:51 +000012314done
Guido van Rossum627b2d71993-12-24 10:39:16 +000012315
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012316echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12317echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
12318if test "${ac_cv_func_setpgrp_void+set}" = set; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012319 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012320else
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012321 if test "$cross_compiling" = yes; then
12322 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
12323echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
12324 { (exit 1); exit 1; }; }
12325else
Martin v. Löwis11437992002-04-12 09:54:03 +000012326 cat >conftest.$ac_ext <<_ACEOF
12327#line $LINENO "configure"
Guido van Rossum8eee56f1994-10-20 22:18:37 +000012328#include "confdefs.h"
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012329#if HAVE_UNISTD_H
12330# include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012331#endif
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012332
Martin v. Löwis11437992002-04-12 09:54:03 +000012333#ifdef F77_DUMMY_MAIN
12334# ifdef __cplusplus
12335 extern "C"
12336# endif
12337 int F77_DUMMY_MAIN() { return 1; }
12338#endif
12339int
12340main ()
12341{
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012342/* If this system has a BSD-style setpgrp which takes arguments,
12343 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12344 exit successfully. */
12345 exit (setpgrp (1,1) == -1 ? 0 : 1);
Martin v. Löwis11437992002-04-12 09:54:03 +000012346 ;
12347 return 0;
12348}
12349_ACEOF
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012350rm -f conftest$ac_exeext
Martin v. Löwis11437992002-04-12 09:54:03 +000012351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352 (eval $ac_link) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Martin v. Löwis11437992002-04-12 09:54:03 +000012356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012361 ac_cv_func_setpgrp_void=no
Michael W. Hudson54241132001-12-07 15:38:26 +000012362else
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012363 echo "$as_me: program exited with status $ac_status" >&5
12364echo "$as_me: failed program was:" >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000012365cat conftest.$ac_ext >&5
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012366( exit $ac_status )
12367ac_cv_func_setpgrp_void=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000012368fi
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012369rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012370fi
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012371fi
12372echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12373echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
12374if test $ac_cv_func_setpgrp_void = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012375
12376cat >>confdefs.h <<\_ACEOF
Jeremy Hyltonaf4c12f2002-07-18 20:25:46 +000012377#define SETPGRP_VOID 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012378_ACEOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +000012379
12380fi
Guido van Rossum8eee56f1994-10-20 22:18:37 +000012381
Martin v. Löwis11437992002-04-12 09:54:03 +000012382
Thomas Wouters3a584202000-08-05 23:28:51 +000012383for ac_func in gettimeofday
12384do
Martin v. Löwis11437992002-04-12 09:54:03 +000012385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12386echo "$as_me:$LINENO: checking for $ac_func" >&5
12387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12388if eval "test \"\${$as_ac_var+set}\" = set"; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012390else
Martin v. Löwis11437992002-04-12 09:54:03 +000012391 cat >conftest.$ac_ext <<_ACEOF
12392#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000012393#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012394/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000012395 which can conflict with char $ac_func (); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012396#include <assert.h>
12397/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012398#ifdef __cplusplus
12399extern "C"
12400#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000012401/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000012402 builtin and then its argument prototype would still apply. */
12403char $ac_func ();
12404char (*f) ();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000012405
Martin v. Löwis11437992002-04-12 09:54:03 +000012406#ifdef F77_DUMMY_MAIN
12407# ifdef __cplusplus
12408 extern "C"
12409# endif
12410 int F77_DUMMY_MAIN() { return 1; }
12411#endif
12412int
12413main ()
12414{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012415/* The GNU C library defines this for functions which it implements
12416 to always fail with ENOSYS. Some functions are actually named
12417 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +000012418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012419choke me
12420#else
Martin v. Löwis11437992002-04-12 09:54:03 +000012421f = $ac_func;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012422#endif
12423
Martin v. Löwis11437992002-04-12 09:54:03 +000012424 ;
12425 return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext conftest$ac_exeext
12429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000012441else
Martin v. Löwis11437992002-04-12 09:54:03 +000012442 echo "$as_me: failed program was:" >&5
12443cat conftest.$ac_ext >&5
12444eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000012445fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012447fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12449echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12450if test `eval echo '${'$as_ac_var'}'` = yes; then
12451 cat >>confdefs.h <<_ACEOF
12452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453_ACEOF
12454 cat >conftest.$ac_ext <<_ACEOF
12455#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012456#include "confdefs.h"
Guido van Rossum627b2d71993-12-24 10:39:16 +000012457#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012458#ifdef F77_DUMMY_MAIN
12459# ifdef __cplusplus
12460 extern "C"
12461# endif
12462 int F77_DUMMY_MAIN() { return 1; }
12463#endif
12464int
12465main ()
12466{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012467gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:03 +000012468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext
12473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -s conftest.$ac_objext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +000012484 :
12485else
Martin v. Löwis11437992002-04-12 09:54:03 +000012486 echo "$as_me: failed program was:" >&5
12487cat conftest.$ac_ext >&5
12488
12489cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012490#define GETTIMEOFDAY_NO_TZ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012491_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000012492
Martin v. Löwis11437992002-04-12 09:54:03 +000012493
Guido van Rossum627b2d71993-12-24 10:39:16 +000012494fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012495rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:49 +000012496
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012497fi
Thomas Wouters3a584202000-08-05 23:28:51 +000012498done
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012499
Michael W. Hudson54241132001-12-07 15:38:26 +000012500
12501
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012502# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:03 +000012503# for [no]getaddrinfo in netdb.h.
12504echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12505echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
12506cat >conftest.$ac_ext <<_ACEOF
12507#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012508#include "confdefs.h"
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012509
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000012510#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012511#include <sys/socket.h>
12512#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:52 +000012513#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012514
Martin v. Löwis11437992002-04-12 09:54:03 +000012515#ifdef F77_DUMMY_MAIN
12516# ifdef __cplusplus
12517 extern "C"
12518# endif
12519 int F77_DUMMY_MAIN() { return 1; }
12520#endif
12521int
12522main ()
12523{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012524
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012525getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012526
Martin v. Löwis11437992002-04-12 09:54:03 +000012527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext conftest$ac_exeext
12532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533 (eval $ac_link) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543
12544echo "$as_me:$LINENO: result: yes" >&5
12545echo "${ECHO_T}yes" >&6
12546echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
12547echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012548if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012549 echo "$as_me:$LINENO: result: buggy" >&5
12550echo "${ECHO_T}buggy" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012551buggygetaddrinfo=yes
12552else
Martin v. Löwis11437992002-04-12 09:54:03 +000012553 cat >conftest.$ac_ext <<_ACEOF
12554#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012555#include "confdefs.h"
12556
12557#include <sys/types.h>
12558#include <netdb.h>
12559#include <string.h>
12560#include <sys/socket.h>
12561#include <netinet/in.h>
12562
12563main()
12564{
12565 int passive, gaierr, inet4 = 0, inet6 = 0;
12566 struct addrinfo hints, *ai, *aitop;
12567 char straddr[INET6_ADDRSTRLEN], strport[16];
12568
12569 for (passive = 0; passive <= 1; passive++) {
12570 memset(&hints, 0, sizeof(hints));
12571 hints.ai_family = AF_UNSPEC;
12572 hints.ai_flags = passive ? AI_PASSIVE : 0;
12573 hints.ai_socktype = SOCK_STREAM;
12574 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
12575 (void)gai_strerror(gaierr);
12576 goto bad;
12577 }
12578 for (ai = aitop; ai; ai = ai->ai_next) {
12579 if (ai->ai_addr == NULL ||
12580 ai->ai_addrlen == 0 ||
12581 getnameinfo(ai->ai_addr, ai->ai_addrlen,
12582 straddr, sizeof(straddr), strport, sizeof(strport),
12583 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
12584 goto bad;
12585 }
12586 switch (ai->ai_family) {
12587 case AF_INET:
12588 if (strcmp(strport, "54321") != 0) {
12589 goto bad;
12590 }
12591 if (passive) {
12592 if (strcmp(straddr, "0.0.0.0") != 0) {
12593 goto bad;
12594 }
12595 } else {
12596 if (strcmp(straddr, "127.0.0.1") != 0) {
12597 goto bad;
12598 }
12599 }
12600 inet4++;
12601 break;
12602 case AF_INET6:
12603 if (strcmp(strport, "54321") != 0) {
12604 goto bad;
12605 }
12606 if (passive) {
12607 if (strcmp(straddr, "::") != 0) {
12608 goto bad;
12609 }
12610 } else {
12611 if (strcmp(straddr, "::1") != 0) {
12612 goto bad;
12613 }
12614 }
12615 inet6++;
12616 break;
12617 case AF_UNSPEC:
12618 goto bad;
12619 break;
12620 default:
12621 /* another family support? */
12622 break;
12623 }
12624 }
12625 }
12626
12627 if (!(inet4 == 0 || inet4 == 2))
12628 goto bad;
12629 if (!(inet6 == 0 || inet6 == 2))
12630 goto bad;
12631
12632 if (aitop)
12633 freeaddrinfo(aitop);
12634 exit(0);
12635
12636 bad:
12637 if (aitop)
12638 freeaddrinfo(aitop);
12639 exit(1);
12640}
12641
Martin v. Löwis11437992002-04-12 09:54:03 +000012642_ACEOF
12643rm -f conftest$ac_exeext
12644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 echo "$as_me:$LINENO: result: good" >&5
12655echo "${ECHO_T}good" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012656buggygetaddrinfo=no
12657else
Martin v. Löwis11437992002-04-12 09:54:03 +000012658 echo "$as_me: program exited with status $ac_status" >&5
12659echo "$as_me: failed program was:" >&5
12660cat conftest.$ac_ext >&5
12661( exit $ac_status )
12662echo "$as_me:$LINENO: result: buggy" >&5
12663echo "${ECHO_T}buggy" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012664buggygetaddrinfo=yes
12665fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012667fi
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012668else
Martin v. Löwis11437992002-04-12 09:54:03 +000012669 echo "$as_me: failed program was:" >&5
12670cat conftest.$ac_ext >&5
12671
12672echo "$as_me:$LINENO: result: no" >&5
12673echo "${ECHO_T}no" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012674buggygetaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012675
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012676fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012678
12679if test "$buggygetaddrinfo" = "yes"; then
12680 if test "$ipv6" = "yes"; then
12681 echo 'Fatal: You must get working getaddrinfo() function.'
12682 echo ' or you can specify "--disable-ipv6"'.
12683 exit 1
12684 fi
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012685else
Martin v. Löwis11437992002-04-12 09:54:03 +000012686
12687cat >>confdefs.h <<\_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012688#define HAVE_GETADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012689_ACEOF
Martin v. Löwis861a65b2001-10-24 14:36:00 +000012690
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012691fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012692
Jack Jansen9a66b6d2001-08-08 13:56:14 +000012693for ac_func in getnameinfo
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012694do
Martin v. Löwis11437992002-04-12 09:54:03 +000012695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12696echo "$as_me:$LINENO: checking for $ac_func" >&5
12697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12698if eval "test \"\${$as_ac_var+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012700else
Martin v. Löwis11437992002-04-12 09:54:03 +000012701 cat >conftest.$ac_ext <<_ACEOF
12702#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012703#include "confdefs.h"
12704/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000012705 which can conflict with char $ac_func (); below. */
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012706#include <assert.h>
12707/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000012708#ifdef __cplusplus
12709extern "C"
12710#endif
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012711/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000012712 builtin and then its argument prototype would still apply. */
12713char $ac_func ();
12714char (*f) ();
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012715
Martin v. Löwis11437992002-04-12 09:54:03 +000012716#ifdef F77_DUMMY_MAIN
12717# ifdef __cplusplus
12718 extern "C"
12719# endif
12720 int F77_DUMMY_MAIN() { return 1; }
12721#endif
12722int
12723main ()
12724{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012725/* The GNU C library defines this for functions which it implements
12726 to always fail with ENOSYS. Some functions are actually named
12727 something starting with __ and the normal name is an alias. */
12728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12729choke me
12730#else
Martin v. Löwis11437992002-04-12 09:54:03 +000012731f = $ac_func;
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012732#endif
12733
Martin v. Löwis11437992002-04-12 09:54:03 +000012734 ;
12735 return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext conftest$ac_exeext
12739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000012751else
Martin v. Löwis11437992002-04-12 09:54:03 +000012752 echo "$as_me: failed program was:" >&5
12753cat conftest.$ac_ext >&5
12754eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000012755fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000012757fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12760if test `eval echo '${'$as_ac_var'}'` = yes; then
12761 cat >>confdefs.h <<_ACEOF
12762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12763_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012764
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000012765fi
12766done
12767
Michael W. Hudson54241132001-12-07 15:38:26 +000012768
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012769# checks for structures
Martin v. Löwis11437992002-04-12 09:54:03 +000012770echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12771echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12772if test "${ac_cv_header_time+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012774else
Martin v. Löwis11437992002-04-12 09:54:03 +000012775 cat >conftest.$ac_ext <<_ACEOF
12776#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000012777#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012778#include <sys/types.h>
12779#include <sys/time.h>
12780#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012781
12782#ifdef F77_DUMMY_MAIN
12783# ifdef __cplusplus
12784 extern "C"
12785# endif
12786 int F77_DUMMY_MAIN() { return 1; }
12787#endif
12788int
12789main ()
12790{
12791if ((struct tm *) 0)
12792return 0;
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
12798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799 (eval $ac_compile) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -s conftest.$ac_objext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012809 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000012810else
Martin v. Löwis11437992002-04-12 09:54:03 +000012811 echo "$as_me: failed program was:" >&5
12812cat conftest.$ac_ext >&5
12813ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000012814fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012815rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012816fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012817echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12818echo "${ECHO_T}$ac_cv_header_time" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000012819if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012820
12821cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012822#define TIME_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012823_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012824
12825fi
12826
Martin v. Löwis11437992002-04-12 09:54:03 +000012827echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12828echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12829if test "${ac_cv_struct_tm+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012831else
Martin v. Löwis11437992002-04-12 09:54:03 +000012832 cat >conftest.$ac_ext <<_ACEOF
12833#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012834#include "confdefs.h"
12835#include <sys/types.h>
12836#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000012837
12838#ifdef F77_DUMMY_MAIN
12839# ifdef __cplusplus
12840 extern "C"
12841# endif
12842 int F77_DUMMY_MAIN() { return 1; }
12843#endif
12844int
12845main ()
12846{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012847struct tm *tp; tp->tm_sec;
Martin v. Löwis11437992002-04-12 09:54:03 +000012848 ;
12849 return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext
12853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12854 (eval $ac_compile) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -s conftest.$ac_objext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012864 ac_cv_struct_tm=time.h
12865else
Martin v. Löwis11437992002-04-12 09:54:03 +000012866 echo "$as_me: failed program was:" >&5
12867cat conftest.$ac_ext >&5
12868ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012869fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012870rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012871fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012872echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12873echo "${ECHO_T}$ac_cv_struct_tm" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000012874if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012875
12876cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012877#define TM_IN_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012878_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012879
12880fi
12881
Martin v. Löwis11437992002-04-12 09:54:03 +000012882echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12883echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12884if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012886else
Martin v. Löwis11437992002-04-12 09:54:03 +000012887 cat >conftest.$ac_ext <<_ACEOF
12888#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012889#include "confdefs.h"
12890#include <sys/types.h>
12891#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:03 +000012892
12893
12894#ifdef F77_DUMMY_MAIN
12895# ifdef __cplusplus
12896 extern "C"
12897# endif
12898 int F77_DUMMY_MAIN() { return 1; }
12899#endif
12900int
12901main ()
12902{
12903static struct tm ac_aggr;
12904if (ac_aggr.tm_zone)
12905return 0;
12906 ;
12907 return 0;
12908}
12909_ACEOF
12910rm -f conftest.$ac_objext
12911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_member_struct_tm_tm_zone=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000012923else
Martin v. Löwis11437992002-04-12 09:54:03 +000012924 echo "$as_me: failed program was:" >&5
12925cat conftest.$ac_ext >&5
12926ac_cv_member_struct_tm_tm_zone=no
Michael W. Hudson54241132001-12-07 15:38:26 +000012927fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012928rm -f conftest.$ac_objext conftest.$ac_ext
12929fi
12930echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12931echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12932if test $ac_cv_member_struct_tm_tm_zone = yes; then
12933
12934cat >>confdefs.h <<_ACEOF
12935#define HAVE_STRUCT_TM_TM_ZONE 1
12936_ACEOF
12937
12938
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012939fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000012940
Martin v. Löwis11437992002-04-12 09:54:03 +000012941if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12942
12943cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012944#define HAVE_TM_ZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000012945_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012946
12947else
Martin v. Löwis11437992002-04-12 09:54:03 +000012948 echo "$as_me:$LINENO: checking for tzname" >&5
12949echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12950if test "${ac_cv_var_tzname+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012952else
Martin v. Löwis11437992002-04-12 09:54:03 +000012953 cat >conftest.$ac_ext <<_ACEOF
12954#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000012955#include "confdefs.h"
12956#include <time.h>
12957#ifndef tzname /* For SGI. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012958extern char *tzname[]; /* RS6000 and others reject char **tzname. */
Guido van Rossum627b2d71993-12-24 10:39:16 +000012959#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000012960
12961#ifdef F77_DUMMY_MAIN
12962# ifdef __cplusplus
12963 extern "C"
12964# endif
12965 int F77_DUMMY_MAIN() { return 1; }
12966#endif
12967int
12968main ()
12969{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012970atoi(*tzname);
Martin v. Löwis11437992002-04-12 09:54:03 +000012971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext conftest$ac_exeext
12976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012987 ac_cv_var_tzname=yes
12988else
Martin v. Löwis11437992002-04-12 09:54:03 +000012989 echo "$as_me: failed program was:" >&5
12990cat conftest.$ac_ext >&5
12991ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000012992fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:16 +000012994fi
Martin v. Löwis11437992002-04-12 09:54:03 +000012995echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12996echo "${ECHO_T}$ac_cv_var_tzname" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000012997 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000012998
12999cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013000#define HAVE_TZNAME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013001_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013002
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013003 fi
13004fi
13005
Jack Jansendd19cf82001-12-06 22:36:17 +000013006
Martin v. Löwis11437992002-04-12 09:54:03 +000013007echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13008echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13009if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011else
13012 cat >conftest.$ac_ext <<_ACEOF
13013#line $LINENO "configure"
13014#include "confdefs.h"
13015$ac_includes_default
13016#ifdef F77_DUMMY_MAIN
13017# ifdef __cplusplus
13018 extern "C"
13019# endif
13020 int F77_DUMMY_MAIN() { return 1; }
13021#endif
13022int
13023main ()
13024{
13025static struct stat ac_aggr;
13026if (ac_aggr.st_rdev)
13027return 0;
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_member_struct_stat_st_rdev=yes
13045else
13046 echo "$as_me: failed program was:" >&5
13047cat conftest.$ac_ext >&5
13048ac_cv_member_struct_stat_st_rdev=no
13049fi
13050rm -f conftest.$ac_objext conftest.$ac_ext
13051fi
13052echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13053echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13054if test $ac_cv_member_struct_stat_st_rdev = yes; then
13055
13056cat >>confdefs.h <<_ACEOF
13057#define HAVE_STRUCT_STAT_ST_RDEV 1
13058_ACEOF
13059
13060
13061cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013062#define HAVE_ST_RDEV 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013063_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013064
13065fi
13066
Martin v. Löwis11437992002-04-12 09:54:03 +000013067
13068
13069echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13070echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13071if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013073else
Martin v. Löwis11437992002-04-12 09:54:03 +000013074 cat >conftest.$ac_ext <<_ACEOF
13075#line $LINENO "configure"
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013076#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000013077$ac_includes_default
13078#ifdef F77_DUMMY_MAIN
13079# ifdef __cplusplus
13080 extern "C"
13081# endif
13082 int F77_DUMMY_MAIN() { return 1; }
13083#endif
13084int
13085main ()
13086{
13087static struct stat ac_aggr;
13088if (ac_aggr.st_blksize)
13089return 0;
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext
13095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_member_struct_stat_st_blksize=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000013107else
Martin v. Löwis11437992002-04-12 09:54:03 +000013108 echo "$as_me: failed program was:" >&5
13109cat conftest.$ac_ext >&5
13110ac_cv_member_struct_stat_st_blksize=no
Michael W. Hudson54241132001-12-07 15:38:26 +000013111fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013112rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000013113fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013114echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13115echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13116if test $ac_cv_member_struct_stat_st_blksize = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000013117
Martin v. Löwis11437992002-04-12 09:54:03 +000013118cat >>confdefs.h <<_ACEOF
13119#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13120_ACEOF
13121
13122
13123cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013124#define HAVE_ST_BLKSIZE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013125_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013126
13127fi
13128
Martin v. Löwis11437992002-04-12 09:54:03 +000013129
13130echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13131echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13132if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013134else
Martin v. Löwis11437992002-04-12 09:54:03 +000013135 cat >conftest.$ac_ext <<_ACEOF
13136#line $LINENO "configure"
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013137#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000013138$ac_includes_default
13139#ifdef F77_DUMMY_MAIN
13140# ifdef __cplusplus
13141 extern "C"
13142# endif
13143 int F77_DUMMY_MAIN() { return 1; }
13144#endif
13145int
13146main ()
13147{
13148static struct stat ac_aggr;
13149if (ac_aggr.st_blocks)
13150return 0;
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155rm -f conftest.$ac_objext
13156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_member_struct_stat_st_blocks=yes
Michael W. Hudson54241132001-12-07 15:38:26 +000013168else
Martin v. Löwis11437992002-04-12 09:54:03 +000013169 echo "$as_me: failed program was:" >&5
13170cat conftest.$ac_ext >&5
13171ac_cv_member_struct_stat_st_blocks=no
Michael W. Hudson54241132001-12-07 15:38:26 +000013172fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013173rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000013174fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013175echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13176echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13177if test $ac_cv_member_struct_stat_st_blocks = yes; then
Jack Jansendd19cf82001-12-06 22:36:17 +000013178
Martin v. Löwis11437992002-04-12 09:54:03 +000013179cat >>confdefs.h <<_ACEOF
13180#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13181_ACEOF
13182
13183
13184cat >>confdefs.h <<\_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013185#define HAVE_ST_BLOCKS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013186_ACEOF
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013187
13188else
Martin v. Löwis11437992002-04-12 09:54:03 +000013189 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
Guido van Rossum98bf58f2001-10-18 20:34:25 +000013190fi
13191
Michael W. Hudson54241132001-12-07 15:38:26 +000013192
Martin v. Löwis11437992002-04-12 09:54:03 +000013193
13194echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
13195echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6
13196if test "${ac_cv_header_time_altzone+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013198else
Martin v. Löwis11437992002-04-12 09:54:03 +000013199 cat >conftest.$ac_ext <<_ACEOF
13200#line $LINENO "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013201#include "confdefs.h"
13202#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013203#ifdef F77_DUMMY_MAIN
13204# ifdef __cplusplus
13205 extern "C"
13206# endif
13207 int F77_DUMMY_MAIN() { return 1; }
13208#endif
13209int
13210main ()
13211{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013212return altzone;
Martin v. Löwis11437992002-04-12 09:54:03 +000013213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013229 ac_cv_header_time_altzone=yes
13230else
Martin v. Löwis11437992002-04-12 09:54:03 +000013231 echo "$as_me: failed program was:" >&5
13232cat conftest.$ac_ext >&5
13233ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +000013234fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013235rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013236fi
13237
Martin v. Löwis11437992002-04-12 09:54:03 +000013238echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
13239echo "${ECHO_T}$ac_cv_header_time_altzone" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013240if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013241
13242cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013243#define HAVE_ALTZONE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013244_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013245
13246fi
13247
Guido van Rossumda88dad1995-01-26 00:46:29 +000013248was_it_defined=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013249echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13250echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
13251cat >conftest.$ac_ext <<_ACEOF
13252#line $LINENO "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013253#include "confdefs.h"
13254
13255#include <sys/types.h>
13256#include <sys/select.h>
13257#include <sys/time.h>
13258
Martin v. Löwis11437992002-04-12 09:54:03 +000013259#ifdef F77_DUMMY_MAIN
13260# ifdef __cplusplus
13261 extern "C"
13262# endif
13263 int F77_DUMMY_MAIN() { return 1; }
13264#endif
13265int
13266main ()
13267{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013268;
Martin v. Löwis11437992002-04-12 09:54:03 +000013269 ;
13270 return 0;
13271}
13272_ACEOF
13273rm -f conftest.$ac_objext
13274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285
13286
13287cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013288#define SYS_SELECT_WITH_SYS_TIME 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013289_ACEOF
13290
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013291 was_it_defined=yes
13292
Guido van Rossumf78abae1997-01-21 22:02:36 +000013293else
Martin v. Löwis11437992002-04-12 09:54:03 +000013294 echo "$as_me: failed program was:" >&5
13295cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +000013296fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013297rm -f conftest.$ac_objext conftest.$ac_ext
13298echo "$as_me:$LINENO: result: $was_it_defined" >&5
13299echo "${ECHO_T}$was_it_defined" >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +000013300
Martin v. Löwis11437992002-04-12 09:54:03 +000013301echo "$as_me:$LINENO: checking for addrinfo" >&5
13302echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
13303if test "${ac_cv_struct_addrinfo+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013305else
Martin v. Löwis11437992002-04-12 09:54:03 +000013306 cat >conftest.$ac_ext <<_ACEOF
13307#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013308#include "confdefs.h"
13309
13310# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013311#ifdef F77_DUMMY_MAIN
13312# ifdef __cplusplus
13313 extern "C"
13314# endif
13315 int F77_DUMMY_MAIN() { return 1; }
13316#endif
13317int
13318main ()
13319{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013320struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:03 +000013321 ;
13322 return 0;
13323}
13324_ACEOF
13325rm -f conftest.$ac_objext
13326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013337 ac_cv_struct_addrinfo=yes
13338else
Martin v. Löwis11437992002-04-12 09:54:03 +000013339 echo "$as_me: failed program was:" >&5
13340cat conftest.$ac_ext >&5
13341ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013342fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013343rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013344fi
13345
Martin v. Löwis11437992002-04-12 09:54:03 +000013346echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
13347echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013348if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013349
13350cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013351#define HAVE_ADDRINFO 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013352_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013353
13354fi
13355
Martin v. Löwis11437992002-04-12 09:54:03 +000013356echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
13357echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
13358if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013360else
Martin v. Löwis11437992002-04-12 09:54:03 +000013361 cat >conftest.$ac_ext <<_ACEOF
13362#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013363#include "confdefs.h"
13364
13365# include <sys/types.h>
13366# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013367#ifdef F77_DUMMY_MAIN
13368# ifdef __cplusplus
13369 extern "C"
13370# endif
13371 int F77_DUMMY_MAIN() { return 1; }
13372#endif
13373int
13374main ()
13375{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013376struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:03 +000013377 ;
13378 return 0;
13379}
13380_ACEOF
13381rm -f conftest.$ac_objext
13382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -s conftest.$ac_objext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013393 ac_cv_struct_sockaddr_storage=yes
13394else
Martin v. Löwis11437992002-04-12 09:54:03 +000013395 echo "$as_me: failed program was:" >&5
13396cat conftest.$ac_ext >&5
13397ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013398fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013399rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013400fi
13401
Martin v. Löwis11437992002-04-12 09:54:03 +000013402echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
13403echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013404if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013405
13406cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013407#define HAVE_SOCKADDR_STORAGE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013408_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013409
13410fi
13411
Guido van Rossum627b2d71993-12-24 10:39:16 +000013412# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +000013413
Michael W. Hudson54241132001-12-07 15:38:26 +000013414
Martin v. Löwis11437992002-04-12 09:54:03 +000013415echo "$as_me:$LINENO: checking whether char is unsigned" >&5
13416echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
13417if test "${ac_cv_c_char_unsigned+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansendd19cf82001-12-06 22:36:17 +000013419else
Martin v. Löwis11437992002-04-12 09:54:03 +000013420 cat >conftest.$ac_ext <<_ACEOF
13421#line $LINENO "configure"
Michael W. Hudson54241132001-12-07 15:38:26 +000013422#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000013423$ac_includes_default
13424#ifdef F77_DUMMY_MAIN
13425# ifdef __cplusplus
13426 extern "C"
13427# endif
13428 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +000013429#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000013430int
13431main ()
13432{
13433static int test_array [1 - 2 * !(((char) -1) < 0)];
13434test_array [0] = 0
13435
13436 ;
13437 return 0;
Michael W. Hudson54241132001-12-07 15:38:26 +000013438}
Martin v. Löwis11437992002-04-12 09:54:03 +000013439_ACEOF
13440rm -f conftest.$ac_objext
13441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
Michael W. Hudson54241132001-12-07 15:38:26 +000013452 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013453else
13454 echo "$as_me: failed program was:" >&5
13455cat conftest.$ac_ext >&5
13456ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013457fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013458rm -f conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000013459fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013460echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
13461echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013462if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013463 cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013464#define __CHAR_UNSIGNED__ 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013465_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013466
13467fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000013468
Martin v. Löwis11437992002-04-12 09:54:03 +000013469echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13470echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13471if test "${ac_cv_prog_cc_stdc+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013473else
Martin v. Löwis11437992002-04-12 09:54:03 +000013474 ac_cv_prog_cc_stdc=no
13475ac_save_CC=$CC
13476cat >conftest.$ac_ext <<_ACEOF
13477#line $LINENO "configure"
13478#include "confdefs.h"
13479#include <stdarg.h>
13480#include <stdio.h>
13481#include <sys/types.h>
13482#include <sys/stat.h>
13483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13484struct buf { int x; };
13485FILE * (*rcsopen) (struct buf *, struct stat *, int);
13486static char *e (p, i)
13487 char **p;
13488 int i;
13489{
13490 return p[i];
13491}
13492static char *f (char * (*g) (char **, int), char **p, ...)
13493{
13494 char *s;
13495 va_list v;
13496 va_start (v,p);
13497 s = g (p, va_arg (v,int));
13498 va_end (v);
13499 return s;
13500}
13501int test (int i, double x);
13502struct s1 {int (*f) (int a);};
13503struct s2 {int (*f) (double a);};
13504int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13505int argc;
13506char **argv;
13507#ifdef F77_DUMMY_MAIN
13508# ifdef __cplusplus
13509 extern "C"
13510# endif
13511 int F77_DUMMY_MAIN() { return 1; }
13512#endif
13513int
13514main ()
13515{
13516return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13517 ;
13518 return 0;
13519}
13520_ACEOF
13521# Don't try gcc -ansi; that turns off useful extensions and
13522# breaks some systems' header files.
13523# AIX -qlanglvl=ansi
13524# Ultrix and OSF/1 -std1
13525# HP-UX 10.20 and later -Ae
13526# HP-UX older versions -Aa -D_HPUX_SOURCE
13527# SVR4 -Xc -D__EXTENSIONS__
13528for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13529do
13530 CC="$ac_save_CC $ac_arg"
13531 rm -f conftest.$ac_objext
13532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13543 ac_cv_prog_cc_stdc=$ac_arg
13544break
13545else
13546 echo "$as_me: failed program was:" >&5
13547cat conftest.$ac_ext >&5
13548fi
13549rm -f conftest.$ac_objext
13550done
13551rm -f conftest.$ac_ext conftest.$ac_objext
13552CC=$ac_save_CC
13553
13554fi
13555
13556case "x$ac_cv_prog_cc_stdc" in
13557 x|xno)
13558 echo "$as_me:$LINENO: result: none needed" >&5
13559echo "${ECHO_T}none needed" >&6 ;;
13560 *)
13561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13562echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13563 CC="$CC $ac_cv_prog_cc_stdc" ;;
13564esac
13565
13566echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13567echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13568if test "${ac_cv_c_const+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571 cat >conftest.$ac_ext <<_ACEOF
13572#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013573#include "confdefs.h"
13574
Martin v. Löwis11437992002-04-12 09:54:03 +000013575#ifdef F77_DUMMY_MAIN
13576# ifdef __cplusplus
13577 extern "C"
13578# endif
13579 int F77_DUMMY_MAIN() { return 1; }
13580#endif
13581int
13582main ()
13583{
13584/* FIXME: Include the comments suggested by Paul. */
13585#ifndef __cplusplus
13586 /* Ultrix mips cc rejects this. */
13587 typedef int charset[2];
13588 const charset x;
13589 /* SunOS 4.1.1 cc rejects this. */
13590 char const *const *ccp;
13591 char **p;
13592 /* NEC SVR4.0.2 mips cc rejects this. */
13593 struct point {int x, y;};
13594 static struct point const zero = {0,0};
13595 /* AIX XL C 1.02.0.0 rejects this.
13596 It does not let you subtract one const X* pointer from another in
13597 an arm of an if-expression whose if-part is not a constant
13598 expression */
13599 const char *g = "string";
13600 ccp = &g + (g ? g-g : 0);
13601 /* HPUX 7.0 cc rejects these. */
13602 ++ccp;
13603 p = (char**) ccp;
13604 ccp = (char const *const *) p;
13605 { /* SCO 3.2v4 cc rejects this. */
13606 char *t;
13607 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013608
Martin v. Löwis11437992002-04-12 09:54:03 +000013609 *t++ = 0;
13610 }
13611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13612 int x[] = {25, 17};
13613 const int *foo = &x[0];
13614 ++foo;
13615 }
13616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13617 typedef const int *iptr;
13618 iptr p = 0;
13619 ++p;
13620 }
13621 { /* AIX XL C 1.02.0.0 rejects this saying
13622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13623 struct s { int j; const int *ap[3]; };
13624 struct s *b; b->j = 5;
13625 }
13626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13627 const int foo = 10;
13628 }
13629#endif
Guido van Rossum627b2d71993-12-24 10:39:16 +000013630
Martin v. Löwis11437992002-04-12 09:54:03 +000013631 ;
13632 return 0;
Guido van Rossum627b2d71993-12-24 10:39:16 +000013633}
Martin v. Löwis11437992002-04-12 09:54:03 +000013634_ACEOF
13635rm -f conftest.$ac_objext
13636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013647 ac_cv_c_const=yes
13648else
Martin v. Löwis11437992002-04-12 09:54:03 +000013649 echo "$as_me: failed program was:" >&5
13650cat conftest.$ac_ext >&5
13651ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013652fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013653rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013654fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013655echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13656echo "${ECHO_T}$ac_cv_c_const" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013657if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:03 +000013658
13659cat >>confdefs.h <<\_ACEOF
13660#define const
13661_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013662
13663fi
13664
Michael W. Hudson54241132001-12-07 15:38:26 +000013665
Guido van Rossumda88dad1995-01-26 00:46:29 +000013666works=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013667echo "$as_me:$LINENO: checking for working volatile" >&5
13668echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
13669cat >conftest.$ac_ext <<_ACEOF
13670#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000013671#include "confdefs.h"
13672
Martin v. Löwis11437992002-04-12 09:54:03 +000013673#ifdef F77_DUMMY_MAIN
13674# ifdef __cplusplus
13675 extern "C"
13676# endif
13677 int F77_DUMMY_MAIN() { return 1; }
13678#endif
13679int
13680main ()
13681{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013682volatile int x; x = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000013683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
13688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -s conftest.$ac_objext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000013699 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000013700else
Martin v. Löwis11437992002-04-12 09:54:03 +000013701 echo "$as_me: failed program was:" >&5
13702cat conftest.$ac_ext >&5
13703
13704cat >>confdefs.h <<\_ACEOF
13705#define volatile
13706_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000013707
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013708
Guido van Rossum627b2d71993-12-24 10:39:16 +000013709fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013710rm -f conftest.$ac_objext conftest.$ac_ext
13711echo "$as_me:$LINENO: result: $works" >&5
13712echo "${ECHO_T}$works" >&6
Guido van Rossum7f43da71994-08-01 12:15:30 +000013713
Guido van Rossumda88dad1995-01-26 00:46:29 +000013714works=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013715echo "$as_me:$LINENO: checking for working signed char" >&5
13716echo $ECHO_N "checking for working signed char... $ECHO_C" >&6
13717cat >conftest.$ac_ext <<_ACEOF
13718#line $LINENO "configure"
Guido van Rossumdabb11b1994-10-11 15:04:27 +000013719#include "confdefs.h"
13720
Martin v. Löwis11437992002-04-12 09:54:03 +000013721#ifdef F77_DUMMY_MAIN
13722# ifdef __cplusplus
13723 extern "C"
13724# endif
13725 int F77_DUMMY_MAIN() { return 1; }
13726#endif
13727int
13728main ()
13729{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013730signed char c;
Martin v. Löwis11437992002-04-12 09:54:03 +000013731 ;
13732 return 0;
13733}
13734_ACEOF
13735rm -f conftest.$ac_objext
13736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +000013747 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +000013748else
Martin v. Löwis11437992002-04-12 09:54:03 +000013749 echo "$as_me: failed program was:" >&5
13750cat conftest.$ac_ext >&5
13751
13752cat >>confdefs.h <<\_ACEOF
13753#define signed
13754_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000013755
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013756
Guido van Rossum7f43da71994-08-01 12:15:30 +000013757fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013758rm -f conftest.$ac_objext conftest.$ac_ext
13759echo "$as_me:$LINENO: result: $works" >&5
13760echo "${ECHO_T}$works" >&6
Guido van Rossum7f43da71994-08-01 12:15:30 +000013761
Guido van Rossumda88dad1995-01-26 00:46:29 +000013762have_prototypes=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013763echo "$as_me:$LINENO: checking for prototypes" >&5
13764echo $ECHO_N "checking for prototypes... $ECHO_C" >&6
13765cat >conftest.$ac_ext <<_ACEOF
13766#line $LINENO "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013767#include "confdefs.h"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013768int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:03 +000013769#ifdef F77_DUMMY_MAIN
13770# ifdef __cplusplus
13771 extern "C"
13772# endif
13773 int F77_DUMMY_MAIN() { return 1; }
13774#endif
13775int
13776main ()
13777{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013778return foo(10);
Martin v. Löwis11437992002-04-12 09:54:03 +000013779 ;
13780 return 0;
13781}
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795
13796
13797cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013798#define HAVE_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013799_ACEOF
13800
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013801 have_prototypes=yes
13802
Guido van Rossumf78abae1997-01-21 22:02:36 +000013803else
Martin v. Löwis11437992002-04-12 09:54:03 +000013804 echo "$as_me: failed program was:" >&5
13805cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +000013806fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013807rm -f conftest.$ac_objext conftest.$ac_ext
13808echo "$as_me:$LINENO: result: $have_prototypes" >&5
13809echo "${ECHO_T}$have_prototypes" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013810
Guido van Rossumda88dad1995-01-26 00:46:29 +000013811works=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013812echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
13813echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6
13814cat >conftest.$ac_ext <<_ACEOF
13815#line $LINENO "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +000013816#include "confdefs.h"
13817
13818#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +000013819int foo(int x, ...) {
13820 va_list va;
13821 va_start(va, x);
13822 va_arg(va, int);
13823 va_arg(va, char *);
13824 va_arg(va, double);
13825 return 0;
13826}
Guido van Rossum7f43da71994-08-01 12:15:30 +000013827
Martin v. Löwis11437992002-04-12 09:54:03 +000013828#ifdef F77_DUMMY_MAIN
13829# ifdef __cplusplus
13830 extern "C"
13831# endif
13832 int F77_DUMMY_MAIN() { return 1; }
13833#endif
13834int
13835main ()
13836{
Guido van Rossum90eea071996-08-30 20:58:57 +000013837return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:03 +000013838 ;
13839 return 0;
13840}
13841_ACEOF
13842rm -f conftest.$ac_objext
13843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854
13855
13856cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013857#define HAVE_STDARG_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013858_ACEOF
13859
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013860 works=yes
13861
Guido van Rossumf78abae1997-01-21 22:02:36 +000013862else
Martin v. Löwis11437992002-04-12 09:54:03 +000013863 echo "$as_me: failed program was:" >&5
13864cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +000013865fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013866rm -f conftest.$ac_objext conftest.$ac_ext
13867echo "$as_me:$LINENO: result: $works" >&5
13868echo "${ECHO_T}$works" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013869
Guido van Rossumda88dad1995-01-26 00:46:29 +000013870if test "$have_prototypes" = yes; then
13871bad_prototypes=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013872echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5
13873echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6
13874cat >conftest.$ac_ext <<_ACEOF
13875#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000013876#include "confdefs.h"
13877#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013878#ifdef F77_DUMMY_MAIN
13879# ifdef __cplusplus
13880 extern "C"
13881# endif
13882 int F77_DUMMY_MAIN() { return 1; }
13883#endif
13884int
13885main ()
13886{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013887char **t;execve("@",t,t);
Martin v. Löwis11437992002-04-12 09:54:03 +000013888 ;
13889 return 0;
13890}
13891_ACEOF
13892rm -f conftest.$ac_objext
13893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +000013904 :
13905else
Martin v. Löwis11437992002-04-12 09:54:03 +000013906 echo "$as_me: failed program was:" >&5
13907cat conftest.$ac_ext >&5
13908
13909cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013910#define BAD_EXEC_PROTOTYPES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013911_ACEOF
13912
Martin v. Löwisc45929e2002-04-06 10:10:49 +000013913 bad_prototypes=yes
13914
Guido van Rossum627b2d71993-12-24 10:39:16 +000013915fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013916rm -f conftest.$ac_objext conftest.$ac_ext
13917echo "$as_me:$LINENO: result: $bad_prototypes" >&5
13918echo "${ECHO_T}$bad_prototypes" >&6
Guido van Rossum627b2d71993-12-24 10:39:16 +000013919fi
13920
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013921# check if sockaddr has sa_len member
Martin v. Löwis11437992002-04-12 09:54:03 +000013922echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
13923echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6
13924cat >conftest.$ac_ext <<_ACEOF
13925#line $LINENO "configure"
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013926#include "confdefs.h"
13927#include <sys/types.h>
13928#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000013929#ifdef F77_DUMMY_MAIN
13930# ifdef __cplusplus
13931 extern "C"
13932# endif
13933 int F77_DUMMY_MAIN() { return 1; }
13934#endif
13935int
13936main ()
13937{
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013938struct sockaddr x;
13939x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:03 +000013940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext
13945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946 (eval $ac_compile) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 echo "$as_me:$LINENO: result: yes" >&5
13957echo "${ECHO_T}yes" >&6
13958
13959cat >>confdefs.h <<\_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013960#define HAVE_SOCKADDR_SA_LEN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000013961_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013962
13963else
Martin v. Löwis11437992002-04-12 09:54:03 +000013964 echo "$as_me: failed program was:" >&5
13965cat conftest.$ac_ext >&5
13966echo "$as_me:$LINENO: result: no" >&5
13967echo "${ECHO_T}no" >&6
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013968fi
Martin v. Löwis11437992002-04-12 09:54:03 +000013969rm -f conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:13 +000013970
Guido van Rossumda88dad1995-01-26 00:46:29 +000013971va_list_is_array=no
Martin v. Löwis11437992002-04-12 09:54:03 +000013972echo "$as_me:$LINENO: checking whether va_list is an array" >&5
13973echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6
13974cat >conftest.$ac_ext <<_ACEOF
13975#line $LINENO "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013976#include "confdefs.h"
13977
13978#ifdef HAVE_STDARG_PROTOTYPES
13979#include <stdarg.h>
13980#else
13981#include <varargs.h>
13982#endif
13983
Martin v. Löwis11437992002-04-12 09:54:03 +000013984#ifdef F77_DUMMY_MAIN
13985# ifdef __cplusplus
13986 extern "C"
13987# endif
13988 int F77_DUMMY_MAIN() { return 1; }
13989#endif
13990int
13991main ()
13992{
Guido van Rossum76be6ed1995-01-02 18:33:54 +000013993va_list list1, list2; list1 = list2;
Martin v. Löwis11437992002-04-12 09:54:03 +000013994 ;
13995 return 0;
13996}
13997_ACEOF
13998rm -f conftest.$ac_objext
13999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014010 :
14011else
Martin v. Löwis11437992002-04-12 09:54:03 +000014012 echo "$as_me: failed program was:" >&5
14013cat conftest.$ac_ext >&5
14014
14015
14016cat >>confdefs.h <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014017#define VA_LIST_IS_ARRAY 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014018_ACEOF
14019
Guido van Rossumda88dad1995-01-26 00:46:29 +000014020 va_list_is_array=yes
Martin v. Löwisc45929e2002-04-06 10:10:49 +000014021
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014022fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014023rm -f conftest.$ac_objext conftest.$ac_ext
14024echo "$as_me:$LINENO: result: $va_list_is_array" >&5
14025echo "${ECHO_T}$va_list_is_array" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014026
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014027# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:03 +000014028
14029
14030
14031echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14032echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14033if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014035else
Martin v. Löwis11437992002-04-12 09:54:03 +000014036 cat >conftest.$ac_ext <<_ACEOF
14037#line $LINENO "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014038#include "confdefs.h"
14039/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000014040 which can conflict with char gethostbyname_r (); below. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014041#include <assert.h>
14042/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014043#ifdef __cplusplus
14044extern "C"
14045#endif
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014046/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000014047 builtin and then its argument prototype would still apply. */
14048char gethostbyname_r ();
14049char (*f) ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014050
Martin v. Löwis11437992002-04-12 09:54:03 +000014051#ifdef F77_DUMMY_MAIN
14052# ifdef __cplusplus
14053 extern "C"
14054# endif
14055 int F77_DUMMY_MAIN() { return 1; }
14056#endif
14057int
14058main ()
14059{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014060/* The GNU C library defines this for functions which it implements
14061 to always fail with ENOSYS. Some functions are actually named
14062 something starting with __ and the normal name is an alias. */
14063#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14064choke me
14065#else
Martin v. Löwis11437992002-04-12 09:54:03 +000014066f = gethostbyname_r;
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014067#endif
14068
Martin v. Löwis11437992002-04-12 09:54:03 +000014069 ;
14070 return 0;
14071}
14072_ACEOF
14073rm -f conftest.$ac_objext conftest$ac_exeext
14074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_func_gethostbyname_r=yes
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014086else
Martin v. Löwis11437992002-04-12 09:54:03 +000014087 echo "$as_me: failed program was:" >&5
14088cat conftest.$ac_ext >&5
14089ac_cv_func_gethostbyname_r=no
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014090fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014092fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014093echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14094echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14095if test $ac_cv_func_gethostbyname_r = yes; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014096
Martin v. Löwis11437992002-04-12 09:54:03 +000014097 cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014098#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014099_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014100
Martin v. Löwis11437992002-04-12 09:54:03 +000014101 echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
14102echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014103 OLD_CFLAGS=$CFLAGS
14104 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014105 cat >conftest.$ac_ext <<_ACEOF
14106#line $LINENO "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014107#include "confdefs.h"
14108
14109# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014110
14111#ifdef F77_DUMMY_MAIN
14112# ifdef __cplusplus
14113 extern "C"
14114# endif
14115 int F77_DUMMY_MAIN() { return 1; }
14116#endif
14117int
14118main ()
14119{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014120
14121 char *name;
14122 struct hostent *he, *res;
14123 char buffer[2048];
14124 int buflen = 2048;
14125 int h_errnop;
14126
14127 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000014128
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133rm -f conftest.$ac_objext
14134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14135 (eval $ac_compile) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145
14146 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014147#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014148_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014149
Martin v. Löwis11437992002-04-12 09:54:03 +000014150
14151cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014152#define HAVE_GETHOSTBYNAME_R_6_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014153_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014154
Martin v. Löwis11437992002-04-12 09:54:03 +000014155 echo "$as_me:$LINENO: result: yes" >&5
14156echo "${ECHO_T}yes" >&6
14157
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014158else
Martin v. Löwis11437992002-04-12 09:54:03 +000014159 echo "$as_me: failed program was:" >&5
14160cat conftest.$ac_ext >&5
14161
14162 echo "$as_me:$LINENO: result: no" >&5
14163echo "${ECHO_T}no" >&6
14164 echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
14165echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6
14166 cat >conftest.$ac_ext <<_ACEOF
14167#line $LINENO "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014168#include "confdefs.h"
14169
14170# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014171
14172#ifdef F77_DUMMY_MAIN
14173# ifdef __cplusplus
14174 extern "C"
14175# endif
14176 int F77_DUMMY_MAIN() { return 1; }
14177#endif
14178int
14179main ()
14180{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014181
14182 char *name;
14183 struct hostent *he;
14184 char buffer[2048];
14185 int buflen = 2048;
14186 int h_errnop;
14187
14188 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:03 +000014189
14190 ;
14191 return 0;
14192}
14193_ACEOF
14194rm -f conftest.$ac_objext
14195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206
14207 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014208#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014209_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014210
Martin v. Löwis11437992002-04-12 09:54:03 +000014211
14212cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014213#define HAVE_GETHOSTBYNAME_R_5_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014214_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014215
Martin v. Löwis11437992002-04-12 09:54:03 +000014216 echo "$as_me:$LINENO: result: yes" >&5
14217echo "${ECHO_T}yes" >&6
14218
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014219else
Martin v. Löwis11437992002-04-12 09:54:03 +000014220 echo "$as_me: failed program was:" >&5
14221cat conftest.$ac_ext >&5
14222
14223 echo "$as_me:$LINENO: result: no" >&5
14224echo "${ECHO_T}no" >&6
14225 echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
14226echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14228#line $LINENO "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014229#include "confdefs.h"
14230
14231# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014232
14233#ifdef F77_DUMMY_MAIN
14234# ifdef __cplusplus
14235 extern "C"
14236# endif
14237 int F77_DUMMY_MAIN() { return 1; }
14238#endif
14239int
14240main ()
14241{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014242
14243 char *name;
14244 struct hostent *he;
14245 struct hostent_data data;
14246
14247 (void) gethostbyname_r(name, he, &data);
Martin v. Löwis11437992002-04-12 09:54:03 +000014248
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
14254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265
14266 cat >>confdefs.h <<\_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014267#define HAVE_GETHOSTBYNAME_R 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014268_ACEOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +000014269
Martin v. Löwis11437992002-04-12 09:54:03 +000014270
14271cat >>confdefs.h <<\_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014272#define HAVE_GETHOSTBYNAME_R_3_ARG 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014273_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014274
Martin v. Löwis11437992002-04-12 09:54:03 +000014275 echo "$as_me:$LINENO: result: yes" >&5
14276echo "${ECHO_T}yes" >&6
14277
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014278else
Martin v. Löwis11437992002-04-12 09:54:03 +000014279 echo "$as_me: failed program was:" >&5
14280cat conftest.$ac_ext >&5
14281
14282 echo "$as_me:$LINENO: result: no" >&5
14283echo "${ECHO_T}no" >&6
14284
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014285fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014286rm -f conftest.$ac_objext conftest.$ac_ext
14287
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014288fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014289rm -f conftest.$ac_objext conftest.$ac_ext
14290
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014291fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014292rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014293 CFLAGS=$OLD_CFLAGS
14294
14295else
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014296
Martin v. Löwis11437992002-04-12 09:54:03 +000014297
14298for ac_func in gethostbyname
Thomas Wouters3a584202000-08-05 23:28:51 +000014299do
Martin v. Löwis11437992002-04-12 09:54:03 +000014300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301echo "$as_me:$LINENO: checking for $ac_func" >&5
14302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14303if eval "test \"\${$as_ac_var+set}\" = set"; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014305else
Martin v. Löwis11437992002-04-12 09:54:03 +000014306 cat >conftest.$ac_ext <<_ACEOF
14307#line $LINENO "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014308#include "confdefs.h"
14309/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000014310 which can conflict with char $ac_func (); below. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014311#include <assert.h>
14312/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014313#ifdef __cplusplus
14314extern "C"
14315#endif
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014316/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000014317 builtin and then its argument prototype would still apply. */
14318char $ac_func ();
14319char (*f) ();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014320
Martin v. Löwis11437992002-04-12 09:54:03 +000014321#ifdef F77_DUMMY_MAIN
14322# ifdef __cplusplus
14323 extern "C"
14324# endif
14325 int F77_DUMMY_MAIN() { return 1; }
14326#endif
14327int
14328main ()
14329{
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014330/* The GNU C library defines this for functions which it implements
14331 to always fail with ENOSYS. Some functions are actually named
14332 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +000014333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014334choke me
14335#else
Martin v. Löwis11437992002-04-12 09:54:03 +000014336f = $ac_func;
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014337#endif
14338
Martin v. Löwis11437992002-04-12 09:54:03 +000014339 ;
14340 return 0;
14341}
14342_ACEOF
14343rm -f conftest.$ac_objext conftest$ac_exeext
14344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14345 (eval $ac_link) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -s conftest$ac_exeext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 eval "$as_ac_var=yes"
Michael W. Hudson54241132001-12-07 15:38:26 +000014356else
Martin v. Löwis11437992002-04-12 09:54:03 +000014357 echo "$as_me: failed program was:" >&5
14358cat conftest.$ac_ext >&5
14359eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000014360fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000014362fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14365if test `eval echo '${'$as_ac_var'}'` = yes; then
14366 cat >>confdefs.h <<_ACEOF
14367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14368_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014369
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014370fi
Thomas Wouters3a584202000-08-05 23:28:51 +000014371done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014372
Michael W. Hudson54241132001-12-07 15:38:26 +000014373
Guido van Rossuma96f0ba1999-03-22 21:49:51 +000014374fi
14375
Michael W. Hudson54241132001-12-07 15:38:26 +000014376
14377
14378
14379
14380
14381
Guido van Rossum627b2d71993-12-24 10:39:16 +000014382# checks for system services
14383# (none yet)
14384
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014385# Linux requires this for correct f.p. operations
Martin v. Löwis11437992002-04-12 09:54:03 +000014386echo "$as_me:$LINENO: checking for __fpu_control" >&5
14387echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6
14388if test "${ac_cv_func___fpu_control+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014390else
Martin v. Löwis11437992002-04-12 09:54:03 +000014391 cat >conftest.$ac_ext <<_ACEOF
14392#line $LINENO "configure"
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014393#include "confdefs.h"
14394/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000014395 which can conflict with char __fpu_control (); below. */
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014396#include <assert.h>
14397/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014398#ifdef __cplusplus
14399extern "C"
14400#endif
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014401/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000014402 builtin and then its argument prototype would still apply. */
14403char __fpu_control ();
14404char (*f) ();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014405
Martin v. Löwis11437992002-04-12 09:54:03 +000014406#ifdef F77_DUMMY_MAIN
14407# ifdef __cplusplus
14408 extern "C"
14409# endif
14410 int F77_DUMMY_MAIN() { return 1; }
14411#endif
14412int
14413main ()
14414{
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014415/* The GNU C library defines this for functions which it implements
14416 to always fail with ENOSYS. Some functions are actually named
14417 something starting with __ and the normal name is an alias. */
14418#if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
14419choke me
14420#else
Martin v. Löwis11437992002-04-12 09:54:03 +000014421f = __fpu_control;
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014422#endif
14423
Martin v. Löwis11437992002-04-12 09:54:03 +000014424 ;
14425 return 0;
14426}
14427_ACEOF
14428rm -f conftest.$ac_objext conftest$ac_exeext
14429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14430 (eval $ac_link) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -s conftest$ac_exeext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_cv_func___fpu_control=yes
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014441else
Martin v. Löwis11437992002-04-12 09:54:03 +000014442 echo "$as_me: failed program was:" >&5
14443cat conftest.$ac_ext >&5
14444ac_cv_func___fpu_control=no
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014445fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014447fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014448echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
14449echo "${ECHO_T}$ac_cv_func___fpu_control" >&6
14450if test $ac_cv_func___fpu_control = yes; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014451 :
14452else
Martin v. Löwis11437992002-04-12 09:54:03 +000014453
14454echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
14455echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6
14456if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014458else
Martin v. Löwis11437992002-04-12 09:54:03 +000014459 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014460LIBS="-lieee $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000014461cat >conftest.$ac_ext <<_ACEOF
14462#line $LINENO "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +000014463#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000014464
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014465/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014466#ifdef __cplusplus
14467extern "C"
14468#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014469/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000014470 builtin and then its argument prototype would still apply. */
14471char __fpu_control ();
14472#ifdef F77_DUMMY_MAIN
14473# ifdef __cplusplus
14474 extern "C"
14475# endif
14476 int F77_DUMMY_MAIN() { return 1; }
14477#endif
14478int
14479main ()
14480{
14481__fpu_control ();
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext conftest$ac_exeext
14487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14488 (eval $ac_link) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +000014499else
Martin v. Löwis11437992002-04-12 09:54:03 +000014500 echo "$as_me: failed program was:" >&5
14501cat conftest.$ac_ext >&5
14502ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:16 +000014503fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14505LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014506fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014507echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
14508echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6
14509if test $ac_cv_lib_ieee___fpu_control = yes; then
14510 cat >>confdefs.h <<_ACEOF
14511#define HAVE_LIBIEEE 1
14512_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014513
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014514 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014515
Guido van Rossum627b2d71993-12-24 10:39:16 +000014516fi
14517
Michael W. Hudson54241132001-12-07 15:38:26 +000014518
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +000014519fi
14520
Michael W. Hudson54241132001-12-07 15:38:26 +000014521
Guido van Rossum7f253911997-05-09 02:42:48 +000014522# Check for --with-fpectl
Martin v. Löwis11437992002-04-12 09:54:03 +000014523echo "$as_me:$LINENO: checking for --with-fpectl" >&5
14524echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6
14525
Guido van Rossum7f253911997-05-09 02:42:48 +000014526# Check whether --with-fpectl or --without-fpectl was given.
14527if test "${with_fpectl+set}" = set; then
14528 withval="$with_fpectl"
Martin v. Löwis11437992002-04-12 09:54:03 +000014529
Guido van Rossum7f253911997-05-09 02:42:48 +000014530if test "$withval" != no
Martin v. Löwis11437992002-04-12 09:54:03 +000014531then
14532
14533cat >>confdefs.h <<\_ACEOF
Guido van Rossum7f253911997-05-09 02:42:48 +000014534#define WANT_SIGFPE_HANDLER 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014535_ACEOF
14536
14537 echo "$as_me:$LINENO: result: yes" >&5
14538echo "${ECHO_T}yes" >&6
14539else echo "$as_me:$LINENO: result: no" >&5
14540echo "${ECHO_T}no" >&6
Guido van Rossum7f253911997-05-09 02:42:48 +000014541fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000014542else
Martin v. Löwis11437992002-04-12 09:54:03 +000014543 echo "$as_me:$LINENO: result: no" >&5
14544echo "${ECHO_T}no" >&6
14545fi;
Guido van Rossum7f253911997-05-09 02:42:48 +000014546
Guido van Rossum7f43da71994-08-01 12:15:30 +000014547# check for --with-libm=...
14548
Guido van Rossum563e7081996-09-10 18:20:48 +000014549case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +000014550Darwin) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +000014551BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +000014552*) LIBM=-lm
14553esac
Martin v. Löwis11437992002-04-12 09:54:03 +000014554echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
14555echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6
14556
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014557# Check whether --with-libm or --without-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014558if test "${with_libm+set}" = set; then
14559 withval="$with_libm"
Martin v. Löwis11437992002-04-12 09:54:03 +000014560
Guido van Rossum7f253911997-05-09 02:42:48 +000014561if test "$withval" = no
14562then LIBM=
Martin v. Löwis11437992002-04-12 09:54:03 +000014563 echo "$as_me:$LINENO: result: force LIBM empty" >&5
14564echo "${ECHO_T}force LIBM empty" >&6
Guido van Rossum7f253911997-05-09 02:42:48 +000014565elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000014566then LIBM=$withval
Martin v. Löwis11437992002-04-12 09:54:03 +000014567 echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
14568echo "${ECHO_T}set LIBM=\"$withval\"" >&6
14569else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
14570echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
14571 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000014572fi
Guido van Rossum7f253911997-05-09 02:42:48 +000014573else
Martin v. Löwis11437992002-04-12 09:54:03 +000014574 echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
14575echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6
14576fi;
Guido van Rossum7f43da71994-08-01 12:15:30 +000014577
14578# check for --with-libc=...
14579
Martin v. Löwis11437992002-04-12 09:54:03 +000014580echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
14581echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6
14582
Guido van Rossum76be6ed1995-01-02 18:33:54 +000014583# Check whether --with-libc or --without-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014584if test "${with_libc+set}" = set; then
14585 withval="$with_libc"
Martin v. Löwis11437992002-04-12 09:54:03 +000014586
Guido van Rossum7f253911997-05-09 02:42:48 +000014587if test "$withval" = no
14588then LIBC=
Martin v. Löwis11437992002-04-12 09:54:03 +000014589 echo "$as_me:$LINENO: result: force LIBC empty" >&5
14590echo "${ECHO_T}force LIBC empty" >&6
Guido van Rossum7f253911997-05-09 02:42:48 +000014591elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +000014592then LIBC=$withval
Martin v. Löwis11437992002-04-12 09:54:03 +000014593 echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
14594echo "${ECHO_T}set LIBC=\"$withval\"" >&6
14595else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
14596echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
14597 { (exit 1); exit 1; }; }
Guido van Rossum7f43da71994-08-01 12:15:30 +000014598fi
Guido van Rossum7f253911997-05-09 02:42:48 +000014599else
Martin v. Löwis11437992002-04-12 09:54:03 +000014600 echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
14601echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6
14602fi;
Guido van Rossum7f43da71994-08-01 12:15:30 +000014603
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014604# check for hypot() in math library
14605LIBS_SAVE=$LIBS
14606LIBS="$LIBS $LIBM"
Martin v. Löwis11437992002-04-12 09:54:03 +000014607
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014608for ac_func in hypot
14609do
Martin v. Löwis11437992002-04-12 09:54:03 +000014610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611echo "$as_me:$LINENO: checking for $ac_func" >&5
14612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613if eval "test \"\${$as_ac_var+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014615else
Martin v. Löwis11437992002-04-12 09:54:03 +000014616 cat >conftest.$ac_ext <<_ACEOF
14617#line $LINENO "configure"
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014618#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014619/* System header to define __stub macros and hopefully few prototypes,
Martin v. Löwis11437992002-04-12 09:54:03 +000014620 which can conflict with char $ac_func (); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014621#include <assert.h>
14622/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000014623#ifdef __cplusplus
14624extern "C"
14625#endif
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000014626/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000014627 builtin and then its argument prototype would still apply. */
14628char $ac_func ();
14629char (*f) ();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000014630
Martin v. Löwis11437992002-04-12 09:54:03 +000014631#ifdef F77_DUMMY_MAIN
14632# ifdef __cplusplus
14633 extern "C"
14634# endif
14635 int F77_DUMMY_MAIN() { return 1; }
14636#endif
14637int
14638main ()
14639{
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014640/* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14644choke me
14645#else
Martin v. Löwis11437992002-04-12 09:54:03 +000014646f = $ac_func;
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014647#endif
14648
Martin v. Löwis11437992002-04-12 09:54:03 +000014649 ;
14650 return 0;
14651}
14652_ACEOF
14653rm -f conftest.$ac_objext conftest$ac_exeext
14654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14655 (eval $ac_link) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -s conftest$ac_exeext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 eval "$as_ac_var=yes"
Guido van Rossum2b3ac691996-08-30 15:18:41 +000014666else
Martin v. Löwis11437992002-04-12 09:54:03 +000014667 echo "$as_me: failed program was:" >&5
14668cat conftest.$ac_ext >&5
14669eval "$as_ac_var=no"
Michael W. Hudson54241132001-12-07 15:38:26 +000014670fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:26 +000014672fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14675if test `eval echo '${'$as_ac_var'}'` = yes; then
14676 cat >>confdefs.h <<_ACEOF
14677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678_ACEOF
Michael W. Hudson54241132001-12-07 15:38:26 +000014679
Michael W. Hudson54241132001-12-07 15:38:26 +000014680else
Martin v. Löwis11437992002-04-12 09:54:03 +000014681 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
Guido van Rossum2b3ac691996-08-30 15:18:41 +000014682fi
Guido van Rossum2b3ac691996-08-30 15:18:41 +000014683done
14684
Michael W. Hudson54241132001-12-07 15:38:26 +000014685
Guido van Rossumaf5b83e1995-01-04 19:02:35 +000014686LIBS=$LIBS_SAVE
14687
Guido van Rossumad713701997-07-10 22:42:38 +000014688# check whether malloc(0) returns NULL or not
Martin v. Löwis11437992002-04-12 09:54:03 +000014689echo "$as_me:$LINENO: checking what malloc(0) returns" >&5
14690echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6
14691if test "${ac_cv_malloc_zero+set}" = set; then
14692 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumad713701997-07-10 22:42:38 +000014693else
14694 if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000014695 ac_cv_malloc_zero=nonnull
Guido van Rossumad713701997-07-10 22:42:38 +000014696else
Martin v. Löwis11437992002-04-12 09:54:03 +000014697 cat >conftest.$ac_ext <<_ACEOF
14698#line $LINENO "configure"
Guido van Rossumad713701997-07-10 22:42:38 +000014699#include "confdefs.h"
14700#include <stdio.h>
14701#ifdef HAVE_STDLIB
14702#include <stdlib.h>
14703#else
14704char *malloc(), *realloc();
14705int *free();
14706#endif
14707main() {
14708 char *p;
14709 p = malloc(0);
14710 if (p == NULL) exit(1);
14711 p = realloc(p, 0);
14712 if (p == NULL) exit(1);
14713 free(p);
14714 exit(0);
14715}
Martin v. Löwis11437992002-04-12 09:54:03 +000014716_ACEOF
14717rm -f conftest$ac_exeext
14718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719 (eval $ac_link) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
Guido van Rossumad713701997-07-10 22:42:38 +000014728 ac_cv_malloc_zero=nonnull
14729else
Martin v. Löwis11437992002-04-12 09:54:03 +000014730 echo "$as_me: program exited with status $ac_status" >&5
14731echo "$as_me: failed program was:" >&5
14732cat conftest.$ac_ext >&5
14733( exit $ac_status )
14734ac_cv_malloc_zero=null
Guido van Rossumad713701997-07-10 22:42:38 +000014735fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014736rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumad713701997-07-10 22:42:38 +000014737fi
Guido van Rossumad713701997-07-10 22:42:38 +000014738fi
Guido van Rossum3065c942001-09-17 04:03:14 +000014739 # XXX arm cross-compile?
Martin v. Löwis11437992002-04-12 09:54:03 +000014740echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5
14741echo "${ECHO_T}$ac_cv_malloc_zero" >&6
Guido van Rossumad713701997-07-10 22:42:38 +000014742if test "$ac_cv_malloc_zero" = null
14743then
Martin v. Löwis11437992002-04-12 09:54:03 +000014744
14745cat >>confdefs.h <<\_ACEOF
Guido van Rossumad713701997-07-10 22:42:38 +000014746#define MALLOC_ZERO_RETURNS_NULL 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014747_ACEOF
Guido van Rossumad713701997-07-10 22:42:38 +000014748
14749fi
14750
Guido van Rossumef2255b2000-03-10 22:30:29 +000014751# check for wchar.h
Martin v. Löwis11437992002-04-12 09:54:03 +000014752if test "${ac_cv_header_wchar_h+set}" = set; then
14753 echo "$as_me:$LINENO: checking for wchar.h" >&5
14754echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
14755if test "${ac_cv_header_wchar_h+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757fi
14758echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
14759echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000014760else
Martin v. Löwis11437992002-04-12 09:54:03 +000014761 # Is the header compilable?
14762echo "$as_me:$LINENO: checking wchar.h usability" >&5
14763echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
14764cat >conftest.$ac_ext <<_ACEOF
14765#line $LINENO "configure"
14766#include "confdefs.h"
14767$ac_includes_default
14768#include <wchar.h>
14769_ACEOF
14770rm -f conftest.$ac_objext
14771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_header_compiler=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785cat conftest.$ac_ext >&5
14786ac_header_compiler=no
14787fi
14788rm -f conftest.$ac_objext conftest.$ac_ext
14789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14790echo "${ECHO_T}$ac_header_compiler" >&6
14791
14792# Is the header present?
14793echo "$as_me:$LINENO: checking wchar.h presence" >&5
14794echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
14795cat >conftest.$ac_ext <<_ACEOF
14796#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +000014797#include "confdefs.h"
14798#include <wchar.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000014799_ACEOF
14800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 ac_status=$?
14803 egrep -v '^ *\+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null; then
14808 if test -s conftest.err; then
14809 ac_cpp_err=$ac_c_preproc_warn_flag
14810 else
14811 ac_cpp_err=
14812 fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000014813else
Martin v. Löwis11437992002-04-12 09:54:03 +000014814 ac_cpp_err=yes
14815fi
14816if test -z "$ac_cpp_err"; then
14817 ac_header_preproc=yes
14818else
14819 echo "$as_me: failed program was:" >&5
Guido van Rossumef2255b2000-03-10 22:30:29 +000014820 cat conftest.$ac_ext >&5
Martin v. Löwis11437992002-04-12 09:54:03 +000014821 ac_header_preproc=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000014822fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014823rm -f conftest.err conftest.$ac_ext
14824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14825echo "${ECHO_T}$ac_header_preproc" >&6
14826
14827# So? What about this header?
14828case $ac_header_compiler:$ac_header_preproc in
14829 yes:no )
14830 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
14831echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
14833echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
14834 no:yes )
14835 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
14840echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};;
14841esac
14842echo "$as_me:$LINENO: checking for wchar.h" >&5
14843echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
14844if test "${ac_cv_header_wchar_h+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 ac_cv_header_wchar_h=$ac_header_preproc
Guido van Rossumef2255b2000-03-10 22:30:29 +000014848fi
Martin v. Löwis11437992002-04-12 09:54:03 +000014849echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
14850echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
14851
14852fi
14853if test $ac_cv_header_wchar_h = yes; then
14854
14855
14856cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000014857#define HAVE_WCHAR_H 1
Martin v. Löwis11437992002-04-12 09:54:03 +000014858_ACEOF
14859
Martin v. Löwisc45929e2002-04-06 10:10:49 +000014860 wchar_h="yes"
14861
Guido van Rossumef2255b2000-03-10 22:30:29 +000014862else
Martin v. Löwis11437992002-04-12 09:54:03 +000014863 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:29 +000014864
14865fi
14866
Michael W. Hudson54241132001-12-07 15:38:26 +000014867
Martin v. Löwis11437992002-04-12 09:54:03 +000014868
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000014869# determine wchar_t size
14870if test "$wchar_h" = yes
14871then
Martin v. Löwis11437992002-04-12 09:54:03 +000014872 echo "$as_me:$LINENO: checking for wchar_t" >&5
14873echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14874if test "${ac_cv_type_wchar_t+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 cat >conftest.$ac_ext <<_ACEOF
14878#line $LINENO "configure"
14879#include "confdefs.h"
14880#include <wchar.h>
14881
14882#ifdef F77_DUMMY_MAIN
14883# ifdef __cplusplus
14884 extern "C"
14885# endif
14886 int F77_DUMMY_MAIN() { return 1; }
14887#endif
14888int
14889main ()
14890{
14891if ((wchar_t *) 0)
14892 return 0;
14893if (sizeof (wchar_t))
14894 return 0;
14895 ;
14896 return 0;
14897}
14898_ACEOF
14899rm -f conftest.$ac_objext
14900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14901 (eval $ac_compile) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } &&
14905 { ac_try='test -s conftest.$ac_objext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 ac_cv_type_wchar_t=yes
14912else
14913 echo "$as_me: failed program was:" >&5
14914cat conftest.$ac_ext >&5
14915ac_cv_type_wchar_t=no
14916fi
14917rm -f conftest.$ac_objext conftest.$ac_ext
14918fi
14919echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
14920echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
14921
14922echo "$as_me:$LINENO: checking size of wchar_t" >&5
14923echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
14924if test "${ac_cv_sizeof_wchar_t+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926else
14927 if test "$ac_cv_type_wchar_t" = yes; then
14928 # The cast to unsigned long works around a bug in the HP C Compiler
14929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14931 # This bug is HP SR number 8606223364.
14932 if test "$cross_compiling" = yes; then
14933 # Depending upon the size, compute the lo and hi bounds.
14934cat >conftest.$ac_ext <<_ACEOF
14935#line $LINENO "configure"
14936#include "confdefs.h"
14937#include <wchar.h>
14938
14939#ifdef F77_DUMMY_MAIN
14940# ifdef __cplusplus
14941 extern "C"
14942# endif
14943 int F77_DUMMY_MAIN() { return 1; }
14944#endif
14945int
14946main ()
14947{
14948static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
14949test_array [0] = 0
14950
14951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext
14956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest.$ac_objext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_lo=0 ac_mid=0
14968 while :; do
14969 cat >conftest.$ac_ext <<_ACEOF
14970#line $LINENO "configure"
14971#include "confdefs.h"
14972#include <wchar.h>
14973
14974#ifdef F77_DUMMY_MAIN
14975# ifdef __cplusplus
14976 extern "C"
14977# endif
14978 int F77_DUMMY_MAIN() { return 1; }
14979#endif
14980int
14981main ()
14982{
14983static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
14984test_array [0] = 0
14985
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -s conftest.$ac_objext'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_hi=$ac_mid; break
15003else
15004 echo "$as_me: failed program was:" >&5
15005cat conftest.$ac_ext >&5
15006ac_lo=`expr $ac_mid + 1`
15007 if test $ac_lo -le $ac_mid; then
15008 ac_lo= ac_hi=
15009 break
15010 fi
15011 ac_mid=`expr 2 '*' $ac_mid + 1`
15012fi
15013rm -f conftest.$ac_objext conftest.$ac_ext
15014 done
15015else
15016 echo "$as_me: failed program was:" >&5
15017cat conftest.$ac_ext >&5
15018cat >conftest.$ac_ext <<_ACEOF
15019#line $LINENO "configure"
15020#include "confdefs.h"
15021#include <wchar.h>
15022
15023#ifdef F77_DUMMY_MAIN
15024# ifdef __cplusplus
15025 extern "C"
15026# endif
15027 int F77_DUMMY_MAIN() { return 1; }
15028#endif
15029int
15030main ()
15031{
15032static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
15033test_array [0] = 0
15034
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039rm -f conftest.$ac_objext
15040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_hi=-1 ac_mid=-1
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054#line $LINENO "configure"
15055#include "confdefs.h"
15056#include <wchar.h>
15057
15058#ifdef F77_DUMMY_MAIN
15059# ifdef __cplusplus
15060 extern "C"
15061# endif
15062 int F77_DUMMY_MAIN() { return 1; }
15063#endif
15064int
15065main ()
15066{
15067static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
15068test_array [0] = 0
15069
15070 ;
15071 return 0;
15072}
15073_ACEOF
15074rm -f conftest.$ac_objext
15075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -s conftest.$ac_objext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_lo=$ac_mid; break
15087else
15088 echo "$as_me: failed program was:" >&5
15089cat conftest.$ac_ext >&5
15090ac_hi=`expr '(' $ac_mid ')' - 1`
15091 if test $ac_mid -le $ac_hi; then
15092 ac_lo= ac_hi=
15093 break
15094 fi
15095 ac_mid=`expr 2 '*' $ac_mid`
15096fi
15097rm -f conftest.$ac_objext conftest.$ac_ext
15098 done
15099else
15100 echo "$as_me: failed program was:" >&5
15101cat conftest.$ac_ext >&5
15102ac_lo= ac_hi=
15103fi
15104rm -f conftest.$ac_objext conftest.$ac_ext
15105fi
15106rm -f conftest.$ac_objext conftest.$ac_ext
15107# Binary search between lo and hi bounds.
15108while test "x$ac_lo" != "x$ac_hi"; do
15109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15110 cat >conftest.$ac_ext <<_ACEOF
15111#line $LINENO "configure"
15112#include "confdefs.h"
15113#include <wchar.h>
15114
15115#ifdef F77_DUMMY_MAIN
15116# ifdef __cplusplus
15117 extern "C"
15118# endif
15119 int F77_DUMMY_MAIN() { return 1; }
15120#endif
15121int
15122main ()
15123{
15124static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
15125test_array [0] = 0
15126
15127 ;
15128 return 0;
15129}
15130_ACEOF
15131rm -f conftest.$ac_objext
15132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133 (eval $ac_compile) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -s conftest.$ac_objext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_hi=$ac_mid
15144else
15145 echo "$as_me: failed program was:" >&5
15146cat conftest.$ac_ext >&5
15147ac_lo=`expr '(' $ac_mid ')' + 1`
15148fi
15149rm -f conftest.$ac_objext conftest.$ac_ext
15150done
15151case $ac_lo in
15152?*) ac_cv_sizeof_wchar_t=$ac_lo;;
15153'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15154echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15155 { (exit 1); exit 1; }; } ;;
15156esac
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015157else
15158 if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15160echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15161 { (exit 1); exit 1; }; }
Guido van Rossumef2255b2000-03-10 22:30:29 +000015162else
Martin v. Löwis11437992002-04-12 09:54:03 +000015163 cat >conftest.$ac_ext <<_ACEOF
15164#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +000015165#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000015166#include <wchar.h>
15167
15168long longval () { return (long) (sizeof (wchar_t)); }
15169unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
Michael W. Hudson54241132001-12-07 15:38:26 +000015170#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015171#include <stdlib.h>
15172#ifdef F77_DUMMY_MAIN
15173# ifdef __cplusplus
15174 extern "C"
15175# endif
15176 int F77_DUMMY_MAIN() { return 1; }
15177#endif
15178int
15179main ()
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015180{
Martin v. Löwis11437992002-04-12 09:54:03 +000015181
15182 FILE *f = fopen ("conftest.val", "w");
15183 if (! f)
15184 exit (1);
15185 if (((long) (sizeof (wchar_t))) < 0)
15186 {
15187 long i = longval ();
15188 if (i != ((long) (sizeof (wchar_t))))
15189 exit (1);
15190 fprintf (f, "%ld\n", i);
15191 }
15192 else
15193 {
15194 unsigned long i = ulongval ();
15195 if (i != ((long) (sizeof (wchar_t))))
15196 exit (1);
15197 fprintf (f, "%lu\n", i);
15198 }
15199 exit (ferror (f) || fclose (f) != 0);
15200
15201 ;
15202 return 0;
Guido van Rossumef2255b2000-03-10 22:30:29 +000015203}
Martin v. Löwis11437992002-04-12 09:54:03 +000015204_ACEOF
15205rm -f conftest$ac_exeext
15206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15207 (eval $ac_link) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216 ac_cv_sizeof_wchar_t=`cat conftest.val`
Guido van Rossumef2255b2000-03-10 22:30:29 +000015217else
Martin v. Löwis11437992002-04-12 09:54:03 +000015218 echo "$as_me: program exited with status $ac_status" >&5
15219echo "$as_me: failed program was:" >&5
15220cat conftest.$ac_ext >&5
15221( exit $ac_status )
15222{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5
15223echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;}
15224 { (exit 1); exit 1; }; }
15225fi
15226rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15227fi
15228fi
15229rm -f conftest.val
15230else
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015231 ac_cv_sizeof_wchar_t=0
Guido van Rossumef2255b2000-03-10 22:30:29 +000015232fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000015233fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015234echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
15235echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
15236cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015237#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000015238_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015239
Michael W. Hudson54241132001-12-07 15:38:26 +000015240
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015241fi
15242
Martin v. Löwis11437992002-04-12 09:54:03 +000015243echo "$as_me:$LINENO: checking what type to use for unicode" >&5
15244echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015245# Check whether --enable-unicode or --disable-unicode was given.
15246if test "${enable_unicode+set}" = set; then
15247 enableval="$enable_unicode"
Martin v. Löwis11437992002-04-12 09:54:03 +000015248
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015249else
15250 enable_unicode=yes
Martin v. Löwis11437992002-04-12 09:54:03 +000015251fi;
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015252
15253if test $enable_unicode = yes
15254then
Martin v. Löwisfd917792001-06-27 20:22:04 +000015255 # Without any arguments, Py_UNICODE defaults to two-byte mode
15256 enable_unicode="ucs2"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015257fi
15258
Martin v. Löwis0036cba2002-04-12 09:58:45 +000015259
15260
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015261case "$enable_unicode" in
15262ucs2) unicode_size="2"
Martin v. Löwis11437992002-04-12 09:54:03 +000015263 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015264#define Py_UNICODE_SIZE 2
Martin v. Löwis11437992002-04-12 09:54:03 +000015265_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015266
15267 ;;
15268ucs4) unicode_size="4"
Martin v. Löwis11437992002-04-12 09:54:03 +000015269 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015270#define Py_UNICODE_SIZE 4
Martin v. Löwis11437992002-04-12 09:54:03 +000015271_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015272
15273 ;;
15274esac
15275
Michael W. Hudson54241132001-12-07 15:38:26 +000015276
Martin v. Löwis11437992002-04-12 09:54:03 +000015277
15278
Martin v. Löwis0036cba2002-04-12 09:58:45 +000015279
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015280if test "$enable_unicode" = "no"
15281then
Martin v. Löwis339d0f72001-08-17 18:39:25 +000015282 UNICODE_OBJS=""
Martin v. Löwis11437992002-04-12 09:54:03 +000015283 echo "$as_me:$LINENO: result: not used" >&5
15284echo "${ECHO_T}not used" >&6
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015285else
Martin v. Löwis339d0f72001-08-17 18:39:25 +000015286 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
Martin v. Löwis11437992002-04-12 09:54:03 +000015287
15288cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015289#define Py_USING_UNICODE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015290_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015291
15292 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
15293 then
15294 PY_UNICODE_TYPE="wchar_t"
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015295
Martin v. Löwis11437992002-04-12 09:54:03 +000015296cat >>confdefs.h <<\_ACEOF
15297#define HAVE_USABLE_WCHAR_T 1
15298_ACEOF
15299
15300 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015301#define PY_UNICODE_TYPE wchar_t
Martin v. Löwis11437992002-04-12 09:54:03 +000015302_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015303
15304 elif test "$ac_cv_sizeof_short" = "$unicode_size"
15305 then
15306 PY_UNICODE_TYPE="unsigned short"
Martin v. Löwis11437992002-04-12 09:54:03 +000015307 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015308#define PY_UNICODE_TYPE unsigned short
Martin v. Löwis11437992002-04-12 09:54:03 +000015309_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015310
15311 elif test "$ac_cv_sizeof_long" = "$unicode_size"
15312 then
15313 PY_UNICODE_TYPE="unsigned long"
Martin v. Löwis11437992002-04-12 09:54:03 +000015314 cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015315#define PY_UNICODE_TYPE unsigned long
Martin v. Löwis11437992002-04-12 09:54:03 +000015316_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015317
15318 else
15319 PY_UNICODE_TYPE="no type found"
15320 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015321 echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
15322echo "${ECHO_T}$PY_UNICODE_TYPE" >&6
Martin v. Löwis0ba70cc2001-06-26 22:22:37 +000015323fi
Guido van Rossumef2255b2000-03-10 22:30:29 +000015324
15325# check for endianness
Martin v. Löwis11437992002-04-12 09:54:03 +000015326echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15327echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15328if test "${ac_cv_c_bigendian+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumef2255b2000-03-10 22:30:29 +000015330else
Martin v. Löwis11437992002-04-12 09:54:03 +000015331 # See if sys/param.h defines the BYTE_ORDER macro.
15332cat >conftest.$ac_ext <<_ACEOF
15333#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +000015334#include "confdefs.h"
15335#include <sys/types.h>
15336#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000015337
Martin v. Löwis11437992002-04-12 09:54:03 +000015338#ifdef F77_DUMMY_MAIN
15339# ifdef __cplusplus
15340 extern "C"
15341# endif
15342 int F77_DUMMY_MAIN() { return 1; }
15343#endif
15344int
15345main ()
15346{
Guido van Rossumef2255b2000-03-10 22:30:29 +000015347#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15348 bogus endian macros
15349#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015350
15351 ;
15352 return 0;
15353}
15354_ACEOF
15355rm -f conftest.$ac_objext
15356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357 (eval $ac_compile) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -s conftest.$ac_objext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000015367 # It does; now see whether it defined to BIG_ENDIAN or not.
Martin v. Löwis11437992002-04-12 09:54:03 +000015368cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +000015370#include "confdefs.h"
15371#include <sys/types.h>
15372#include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:29 +000015373
Martin v. Löwis11437992002-04-12 09:54:03 +000015374#ifdef F77_DUMMY_MAIN
15375# ifdef __cplusplus
15376 extern "C"
15377# endif
15378 int F77_DUMMY_MAIN() { return 1; }
15379#endif
15380int
15381main ()
15382{
Guido van Rossumef2255b2000-03-10 22:30:29 +000015383#if BYTE_ORDER != BIG_ENDIAN
15384 not big endian
15385#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000015386
15387 ;
15388 return 0;
15389}
15390_ACEOF
15391rm -f conftest.$ac_objext
15392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000015403 ac_cv_c_bigendian=yes
15404else
Martin v. Löwis11437992002-04-12 09:54:03 +000015405 echo "$as_me: failed program was:" >&5
15406cat conftest.$ac_ext >&5
15407ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:29 +000015408fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015409rm -f conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000015410else
Martin v. Löwis11437992002-04-12 09:54:03 +000015411 echo "$as_me: failed program was:" >&5
15412cat conftest.$ac_ext >&5
15413# It does not; compile a test program.
Guido van Rossumef2255b2000-03-10 22:30:29 +000015414if test "$cross_compiling" = yes; then
Martin v. Löwis11437992002-04-12 09:54:03 +000015415 # try to guess the endianess by grep'ing values into an object file
15416 ac_cv_c_bigendian=unknown
15417 cat >conftest.$ac_ext <<_ACEOF
15418#line $LINENO "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +000015419#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000015420short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15421short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15422void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15423short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15424short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15425void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15426#ifdef F77_DUMMY_MAIN
15427# ifdef __cplusplus
15428 extern "C"
15429# endif
15430 int F77_DUMMY_MAIN() { return 1; }
15431#endif
15432int
15433main ()
15434{
15435 _ascii (); _ebcdic ();
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext
15441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15442 (eval $ac_compile) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -s conftest.$ac_objext'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
15452 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15453 ac_cv_c_bigendian=yes
15454fi
15455if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15456 if test "$ac_cv_c_bigendian" = unknown; then
15457 ac_cv_c_bigendian=no
15458 else
15459 # finding both strings is unlikely to happen, but who knows?
15460 ac_cv_c_bigendian=unknown
15461 fi
15462fi
15463else
15464 echo "$as_me: failed program was:" >&5
15465cat conftest.$ac_ext >&5
15466fi
15467rm -f conftest.$ac_objext conftest.$ac_ext
15468else
15469 cat >conftest.$ac_ext <<_ACEOF
15470#line $LINENO "configure"
15471#include "confdefs.h"
15472int
15473main ()
15474{
Guido van Rossumef2255b2000-03-10 22:30:29 +000015475 /* Are we little or big endian? From Harbison&Steele. */
15476 union
15477 {
15478 long l;
15479 char c[sizeof (long)];
15480 } u;
15481 u.l = 1;
15482 exit (u.c[sizeof (long) - 1] == 1);
15483}
Martin v. Löwis11437992002-04-12 09:54:03 +000015484_ACEOF
15485rm -f conftest$ac_exeext
15486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +000015496 ac_cv_c_bigendian=no
15497else
Martin v. Löwis11437992002-04-12 09:54:03 +000015498 echo "$as_me: program exited with status $ac_status" >&5
15499echo "$as_me: failed program was:" >&5
15500cat conftest.$ac_ext >&5
15501( exit $ac_status )
15502ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:29 +000015503fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015504rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:29 +000015505fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015506fi
15507rm -f conftest.$ac_objext conftest.$ac_ext
15508fi
15509echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15510echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15511case $ac_cv_c_bigendian in
15512 yes)
Jack Jansendd19cf82001-12-06 22:36:17 +000015513
Martin v. Löwis11437992002-04-12 09:54:03 +000015514cat >>confdefs.h <<\_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:29 +000015515#define WORDS_BIGENDIAN 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015516_ACEOF
15517 ;;
15518 no)
15519 ;;
15520 *)
15521 { { echo "$as_me:$LINENO: error: unknown endianess
15522presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15523echo "$as_me: error: unknown endianess
15524presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15525 { (exit 1); exit 1; }; } ;;
15526esac
Guido van Rossumef2255b2000-03-10 22:30:29 +000015527
Michael W. Hudson54241132001-12-07 15:38:26 +000015528
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015529# Check whether right shifting a negative integer extends the sign bit
15530# or fills with zeros (like the Cray J90, according to Tim Peters).
Martin v. Löwis11437992002-04-12 09:54:03 +000015531echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
15532echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6
15533if test "${ac_cv_rshift_extends_sign+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000015535else
Martin v. Löwis11437992002-04-12 09:54:03 +000015536
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015537if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000015538 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015539else
Martin v. Löwis11437992002-04-12 09:54:03 +000015540 cat >conftest.$ac_ext <<_ACEOF
15541#line $LINENO "configure"
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015542#include "confdefs.h"
15543
15544int main()
15545{
Vladimir Marangozova6180282000-07-12 05:05:06 +000015546 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015547}
15548
Martin v. Löwis11437992002-04-12 09:54:03 +000015549_ACEOF
15550rm -f conftest$ac_exeext
15551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15552 (eval $ac_link) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
Vladimir Marangozova6180282000-07-12 05:05:06 +000015561 ac_cv_rshift_extends_sign=yes
15562else
Martin v. Löwis11437992002-04-12 09:54:03 +000015563 echo "$as_me: program exited with status $ac_status" >&5
15564echo "$as_me: failed program was:" >&5
15565cat conftest.$ac_ext >&5
15566( exit $ac_status )
15567ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:06 +000015568fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015569rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15570fi
Vladimir Marangozova6180282000-07-12 05:05:06 +000015571fi
15572
Martin v. Löwis11437992002-04-12 09:54:03 +000015573echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
15574echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6
Vladimir Marangozova6180282000-07-12 05:05:06 +000015575if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015576then
Martin v. Löwis11437992002-04-12 09:54:03 +000015577
15578cat >>confdefs.h <<\_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015579#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015580_ACEOF
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015581
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015582fi
15583
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015584# check for getc_unlocked and related locking functions
Martin v. Löwis11437992002-04-12 09:54:03 +000015585echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
15586echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6
15587if test "${ac_cv_have_getc_unlocked+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015589else
Martin v. Löwis11437992002-04-12 09:54:03 +000015590
15591cat >conftest.$ac_ext <<_ACEOF
15592#line $LINENO "configure"
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015593#include "confdefs.h"
15594#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015595#ifdef F77_DUMMY_MAIN
15596# ifdef __cplusplus
15597 extern "C"
15598# endif
15599 int F77_DUMMY_MAIN() { return 1; }
15600#endif
15601int
15602main ()
15603{
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015604
15605 FILE *f = fopen("/dev/null", "r");
15606 flockfile(f);
15607 getc_unlocked(f);
15608 funlockfile(f);
15609
Martin v. Löwis11437992002-04-12 09:54:03 +000015610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext conftest$ac_exeext
15615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15616 (eval $ac_link) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015626 ac_cv_have_getc_unlocked=yes
15627else
Martin v. Löwis11437992002-04-12 09:54:03 +000015628 echo "$as_me: failed program was:" >&5
15629cat conftest.$ac_ext >&5
15630ac_cv_have_getc_unlocked=no
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015631fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015633fi
15634
Martin v. Löwis11437992002-04-12 09:54:03 +000015635echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
15636echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015637if test "$ac_cv_have_getc_unlocked" = yes
15638then
Martin v. Löwis11437992002-04-12 09:54:03 +000015639
15640cat >>confdefs.h <<\_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015641#define HAVE_GETC_UNLOCKED 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015642_ACEOF
Guido van Rossumcadfaec2001-01-05 14:45:49 +000015643
15644fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +000015645
Martin v. Löwis0daad592001-09-30 21:09:59 +000015646# check for readline 4.0
Martin v. Löwis11437992002-04-12 09:54:03 +000015647echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
15648echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6
15649if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum353ae582001-07-10 16:45:32 +000015651else
Martin v. Löwis11437992002-04-12 09:54:03 +000015652 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum353ae582001-07-10 16:45:32 +000015653LIBS="-lreadline -ltermcap $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015654cat >conftest.$ac_ext <<_ACEOF
15655#line $LINENO "configure"
Guido van Rossum353ae582001-07-10 16:45:32 +000015656#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000015657
Guido van Rossum353ae582001-07-10 16:45:32 +000015658/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015659#ifdef __cplusplus
15660extern "C"
15661#endif
Guido van Rossum353ae582001-07-10 16:45:32 +000015662/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000015663 builtin and then its argument prototype would still apply. */
15664char rl_pre_input_hook ();
15665#ifdef F77_DUMMY_MAIN
15666# ifdef __cplusplus
15667 extern "C"
15668# endif
15669 int F77_DUMMY_MAIN() { return 1; }
15670#endif
15671int
15672main ()
15673{
15674rl_pre_input_hook ();
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext conftest$ac_exeext
15680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:59 +000015692else
Martin v. Löwis11437992002-04-12 09:54:03 +000015693 echo "$as_me: failed program was:" >&5
15694cat conftest.$ac_ext >&5
15695ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:59 +000015696fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15698LIBS=$ac_check_lib_save_LIBS
15699fi
15700echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15701echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6
15702if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000015703
Martin v. Löwis11437992002-04-12 09:54:03 +000015704cat >>confdefs.h <<\_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000015705#define HAVE_RL_PRE_INPUT_HOOK 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015706_ACEOF
Martin v. Löwis0daad592001-09-30 21:09:59 +000015707
Martin v. Löwis0daad592001-09-30 21:09:59 +000015708fi
15709
Michael W. Hudson54241132001-12-07 15:38:26 +000015710
Martin v. Löwis0daad592001-09-30 21:09:59 +000015711# check for readline 4.2
Martin v. Löwis11437992002-04-12 09:54:03 +000015712echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
15713echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
15714if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
Martin v. Löwis0daad592001-09-30 21:09:59 +000015716else
Martin v. Löwis11437992002-04-12 09:54:03 +000015717 ac_check_lib_save_LIBS=$LIBS
Martin v. Löwis0daad592001-09-30 21:09:59 +000015718LIBS="-lreadline -ltermcap $LIBS"
Martin v. Löwis11437992002-04-12 09:54:03 +000015719cat >conftest.$ac_ext <<_ACEOF
15720#line $LINENO "configure"
Martin v. Löwis0daad592001-09-30 21:09:59 +000015721#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000015722
Martin v. Löwis0daad592001-09-30 21:09:59 +000015723/* Override any gcc2 internal prototype to avoid an error. */
Martin v. Löwis11437992002-04-12 09:54:03 +000015724#ifdef __cplusplus
15725extern "C"
15726#endif
Martin v. Löwis0daad592001-09-30 21:09:59 +000015727/* We use char because int might match the return type of a gcc2
Martin v. Löwis11437992002-04-12 09:54:03 +000015728 builtin and then its argument prototype would still apply. */
15729char rl_completion_matches ();
15730#ifdef F77_DUMMY_MAIN
15731# ifdef __cplusplus
15732 extern "C"
15733# endif
15734 int F77_DUMMY_MAIN() { return 1; }
15735#endif
15736int
15737main ()
15738{
15739rl_completion_matches ();
15740 ;
15741 return 0;
15742}
15743_ACEOF
15744rm -f conftest.$ac_objext conftest$ac_exeext
15745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15746 (eval $ac_link) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -s conftest$ac_exeext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:32 +000015757else
Martin v. Löwis11437992002-04-12 09:54:03 +000015758 echo "$as_me: failed program was:" >&5
15759cat conftest.$ac_ext >&5
15760ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:32 +000015761fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15763LIBS=$ac_check_lib_save_LIBS
15764fi
15765echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15766echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
15767if test $ac_cv_lib_readline_rl_completion_matches = yes; then
Michael W. Hudson54241132001-12-07 15:38:26 +000015768
Martin v. Löwis11437992002-04-12 09:54:03 +000015769cat >>confdefs.h <<\_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000015770#define HAVE_RL_COMPLETION_MATCHES 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015771_ACEOF
Guido van Rossum353ae582001-07-10 16:45:32 +000015772
Guido van Rossum353ae582001-07-10 16:45:32 +000015773fi
15774
Jack Jansendd19cf82001-12-06 22:36:17 +000015775
Martin v. Löwis11437992002-04-12 09:54:03 +000015776echo "$as_me:$LINENO: checking for broken nice()" >&5
15777echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
15778if test "${ac_cv_broken_nice+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000015780else
Martin v. Löwis11437992002-04-12 09:54:03 +000015781
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015782if test "$cross_compiling" = yes; then
Guido van Rossum3065c942001-09-17 04:03:14 +000015783 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015784else
Martin v. Löwis11437992002-04-12 09:54:03 +000015785 cat >conftest.$ac_ext <<_ACEOF
15786#line $LINENO "configure"
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015787#include "confdefs.h"
15788
15789int main()
15790{
15791 int val1 = nice(1);
15792 if (val1 != -1 && val1 == nice(2))
15793 exit(0);
15794 exit(1);
15795}
15796
Martin v. Löwis11437992002-04-12 09:54:03 +000015797_ACEOF
15798rm -f conftest$ac_exeext
15799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800 (eval $ac_link) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015809 ac_cv_broken_nice=yes
15810else
Martin v. Löwis11437992002-04-12 09:54:03 +000015811 echo "$as_me: program exited with status $ac_status" >&5
15812echo "$as_me: failed program was:" >&5
15813cat conftest.$ac_ext >&5
15814( exit $ac_status )
15815ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015816fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015817rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15818fi
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015819fi
15820
Martin v. Löwis11437992002-04-12 09:54:03 +000015821echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
15822echo "${ECHO_T}$ac_cv_broken_nice" >&6
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015823if test "$ac_cv_broken_nice" = yes
15824then
Martin v. Löwis11437992002-04-12 09:54:03 +000015825
15826cat >>confdefs.h <<\_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015827#define HAVE_BROKEN_NICE 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015828_ACEOF
Thomas Wouterse38b2f12001-07-11 22:35:31 +000015829
15830fi
15831
Martin v. Löwis94717ed2002-09-09 14:24:16 +000015832# Look for subsecond timestamps in struct stat
15833echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
15834echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
15835if test "${ac_cv_stat_tv_nsec+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837else
15838 cat >conftest.$ac_ext <<_ACEOF
15839#line $LINENO "configure"
15840#include "confdefs.h"
15841#include <sys/stat.h>
15842#ifdef F77_DUMMY_MAIN
15843# ifdef __cplusplus
15844 extern "C"
15845# endif
15846 int F77_DUMMY_MAIN() { return 1; }
15847#endif
15848int
15849main ()
15850{
15851
15852struct stat st;
15853st.st_mtim.tv_nsec = 1;
15854
15855 ;
15856 return 0;
15857}
15858_ACEOF
15859rm -f conftest.$ac_objext
15860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
Martin v. Löwisa32c9942002-09-09 16:17:47 +000015871 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:16 +000015872else
15873 echo "$as_me: failed program was:" >&5
15874cat conftest.$ac_ext >&5
15875ac_cv_stat_tv_nsec=no
15876fi
15877rm -f conftest.$ac_objext conftest.$ac_ext
15878fi
15879
15880echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
15881echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
15882if test "$ac_cv_stat_tv_nsec" = yes
15883then
15884
15885cat >>confdefs.h <<\_ACEOF
15886#define HAVE_STAT_TV_NSEC 1
15887_ACEOF
15888
15889fi
15890
Jack Jansen666b1e72001-10-31 12:11:48 +000015891# On HP/UX 11.0, mvwdelch is a block with a return statement
Martin v. Löwis11437992002-04-12 09:54:03 +000015892echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
15893echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6
15894if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000015896else
Martin v. Löwis11437992002-04-12 09:54:03 +000015897 cat >conftest.$ac_ext <<_ACEOF
15898#line $LINENO "configure"
Jack Jansen666b1e72001-10-31 12:11:48 +000015899#include "confdefs.h"
15900#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015901#ifdef F77_DUMMY_MAIN
15902# ifdef __cplusplus
15903 extern "C"
15904# endif
15905 int F77_DUMMY_MAIN() { return 1; }
15906#endif
15907int
15908main ()
15909{
Jack Jansen666b1e72001-10-31 12:11:48 +000015910
15911 int rtn;
15912 rtn = mvwdelch(0,0,0);
15913
Martin v. Löwis11437992002-04-12 09:54:03 +000015914 ;
15915 return 0;
15916}
15917_ACEOF
15918rm -f conftest.$ac_objext
15919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -s conftest.$ac_objext'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
Jack Jansen666b1e72001-10-31 12:11:48 +000015930 ac_cv_mvwdelch_is_expression=yes
15931else
Martin v. Löwis11437992002-04-12 09:54:03 +000015932 echo "$as_me: failed program was:" >&5
15933cat conftest.$ac_ext >&5
15934ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:48 +000015935fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015936rm -f conftest.$ac_objext conftest.$ac_ext
Jack Jansen666b1e72001-10-31 12:11:48 +000015937fi
15938
Martin v. Löwis11437992002-04-12 09:54:03 +000015939echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
15940echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000015941
15942if test "$ac_cv_mvwdelch_is_expression" = yes
15943then
Martin v. Löwis11437992002-04-12 09:54:03 +000015944
15945cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000015946#define MVWDELCH_IS_EXPRESSION 1
Martin v. Löwis11437992002-04-12 09:54:03 +000015947_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000015948
15949fi
15950
Martin v. Löwis11437992002-04-12 09:54:03 +000015951echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
15952echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6
15953if test "${ac_cv_window_has_flags+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
Jack Jansen666b1e72001-10-31 12:11:48 +000015955else
Martin v. Löwis11437992002-04-12 09:54:03 +000015956 cat >conftest.$ac_ext <<_ACEOF
15957#line $LINENO "configure"
Jack Jansen666b1e72001-10-31 12:11:48 +000015958#include "confdefs.h"
15959#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:03 +000015960#ifdef F77_DUMMY_MAIN
15961# ifdef __cplusplus
15962 extern "C"
15963# endif
15964 int F77_DUMMY_MAIN() { return 1; }
15965#endif
15966int
15967main ()
15968{
Jack Jansen666b1e72001-10-31 12:11:48 +000015969
15970 WINDOW *w;
15971 w->_flags = 0;
15972
Martin v. Löwis11437992002-04-12 09:54:03 +000015973 ;
15974 return 0;
15975}
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
Jack Jansen666b1e72001-10-31 12:11:48 +000015989 ac_cv_window_has_flags=yes
15990else
Martin v. Löwis11437992002-04-12 09:54:03 +000015991 echo "$as_me: failed program was:" >&5
15992cat conftest.$ac_ext >&5
15993ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:48 +000015994fi
Martin v. Löwis11437992002-04-12 09:54:03 +000015995rm -f conftest.$ac_objext conftest.$ac_ext
Jack Jansen666b1e72001-10-31 12:11:48 +000015996fi
15997
Martin v. Löwis11437992002-04-12 09:54:03 +000015998echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
15999echo "${ECHO_T}$ac_cv_window_has_flags" >&6
Michael W. Hudson54241132001-12-07 15:38:26 +000016000
Jack Jansen666b1e72001-10-31 12:11:48 +000016001
16002if test "$ac_cv_window_has_flags" = yes
16003then
Martin v. Löwis11437992002-04-12 09:54:03 +000016004
16005cat >>confdefs.h <<\_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000016006#define WINDOW_HAS_FLAGS 1
Martin v. Löwis11437992002-04-12 09:54:03 +000016007_ACEOF
Jack Jansen666b1e72001-10-31 12:11:48 +000016008
16009fi
16010
Guido van Rossum95713eb2000-05-18 20:53:31 +000016011# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
16012# Add sys/socket.h to confdefs.h
16013cat >> confdefs.h <<\EOF
16014#ifdef HAVE_SYS_SOCKET_H
16015#include <sys/socket.h>
16016#endif
16017EOF
Martin v. Löwis11437992002-04-12 09:54:03 +000016018echo "$as_me:$LINENO: checking for socklen_t" >&5
16019echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
16020if test "${ac_cv_type_socklen_t+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
Guido van Rossum95713eb2000-05-18 20:53:31 +000016022else
Martin v. Löwis11437992002-04-12 09:54:03 +000016023 cat >conftest.$ac_ext <<_ACEOF
16024#line $LINENO "configure"
Guido van Rossum95713eb2000-05-18 20:53:31 +000016025#include "confdefs.h"
Martin v. Löwis11437992002-04-12 09:54:03 +000016026$ac_includes_default
16027#ifdef F77_DUMMY_MAIN
16028# ifdef __cplusplus
16029 extern "C"
16030# endif
16031 int F77_DUMMY_MAIN() { return 1; }
Michael W. Hudson54241132001-12-07 15:38:26 +000016032#endif
Martin v. Löwis11437992002-04-12 09:54:03 +000016033int
16034main ()
16035{
16036if ((socklen_t *) 0)
16037 return 0;
16038if (sizeof (socklen_t))
16039 return 0;
16040 ;
16041 return 0;
16042}
16043_ACEOF
16044rm -f conftest.$ac_objext
16045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -s conftest.$ac_objext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +000016056 ac_cv_type_socklen_t=yes
Guido van Rossum95713eb2000-05-18 20:53:31 +000016057else
Martin v. Löwis11437992002-04-12 09:54:03 +000016058 echo "$as_me: failed program was:" >&5
16059cat conftest.$ac_ext >&5
16060ac_cv_type_socklen_t=no
Guido van Rossum95713eb2000-05-18 20:53:31 +000016061fi
Martin v. Löwis11437992002-04-12 09:54:03 +000016062rm -f conftest.$ac_objext conftest.$ac_ext
16063fi
16064echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16065echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
16066if test $ac_cv_type_socklen_t = yes; then
16067 :
16068else
Guido van Rossum95713eb2000-05-18 20:53:31 +000016069
Martin v. Löwis11437992002-04-12 09:54:03 +000016070cat >>confdefs.h <<_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000016071#define socklen_t int
Martin v. Löwis11437992002-04-12 09:54:03 +000016072_ACEOF
Guido van Rossum95713eb2000-05-18 20:53:31 +000016073
16074fi
16075
Michael W. Hudson54241132001-12-07 15:38:26 +000016076
Neil Schemenauerd32c2492001-01-24 17:25:28 +000016077#AC_MSG_CHECKING(for Modules/Setup)
16078#if test ! -f Modules/Setup ; then
16079# if test ! -d Modules ; then
16080# mkdir Modules
16081# fi
16082# cp "$srcdir/Modules/Setup.dist" Modules/Setup
16083# AC_MSG_RESULT(creating)
16084#else
16085# AC_MSG_RESULT(already exists)
16086#fi
16087
Michael W. Hudson54241132001-12-07 15:38:26 +000016088
16089
Martin v. Löwis06f15bb2001-12-02 13:02:32 +000016090for h in `(cd $srcdir;echo Python/thread_*.h)`
16091do
16092 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16093done
16094
Michael W. Hudson54241132001-12-07 15:38:26 +000016095
Jack Jansen0b06be72002-06-21 14:48:38 +000016096SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python"
Martin v. Löwis11437992002-04-12 09:54:03 +000016097echo "$as_me:$LINENO: checking for build directories" >&5
16098echo $ECHO_N "checking for build directories... $ECHO_C" >&6
Neil Schemenauerd32c2492001-01-24 17:25:28 +000016099for dir in $SRCDIRS; do
16100 if test ! -d $dir; then
16101 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +000016102 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +000016103done
Martin v. Löwis11437992002-04-12 09:54:03 +000016104echo "$as_me:$LINENO: result: done" >&5
16105echo "${ECHO_T}done" >&6
Fred Drake036144d2000-10-26 17:09:35 +000016106
Guido van Rossum627b2d71993-12-24 10:39:16 +000016107# generate output files
Martin v. Löwis11437992002-04-12 09:54:03 +000016108ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
16109cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016110# This file is a shell script that caches the results of configure
16111# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:03 +000016112# scripts and configure runs, see configure's option --config-cache.
16113# It is not useful on other systems. If it contains results you don't
16114# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016115#
Martin v. Löwis11437992002-04-12 09:54:03 +000016116# config.status only pays attention to the cache file if you give it
16117# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016118#
Martin v. Löwis11437992002-04-12 09:54:03 +000016119# `ac_cv_env_foo' variables (set or unset) will be overriden when
16120# loading this file, other *unset* `ac_cv_foo' will be assigned the
16121# following values.
16122
16123_ACEOF
16124
Guido van Rossumf78abae1997-01-21 22:02:36 +000016125# The following way of writing the cache mishandles newlines in values,
16126# but we know of no workaround that is simple, portable, and efficient.
16127# So, don't put newlines in cache variables' values.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016128# Ultrix sh set writes to stderr and can't be redirected directly,
16129# and sets the high bit in the cache file unless we assign to the vars.
Martin v. Löwis11437992002-04-12 09:54:03 +000016130{
16131 (set) 2>&1 |
16132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16133 *ac_space=\ *)
16134 # `set' does not quote correctly, so add quotes (double-quote
16135 # substitution turns \\\\ into \\, and sed turns \\ into \).
16136 sed -n \
16137 "s/'/'\\\\''/g;
16138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16139 ;;
16140 *)
16141 # `set' quotes correctly as required by POSIX, so do not add quotes.
16142 sed -n \
16143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16144 ;;
16145 esac;
16146} |
16147 sed '
16148 t clear
16149 : clear
16150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16151 t end
16152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16153 : end' >>confcache
16154if cmp -s $cache_file confcache; then :; else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016155 if test -w $cache_file; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16157 cat confcache >$cache_file
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016158 else
16159 echo "not updating unwritable cache $cache_file"
16160 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016161fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +000016162rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +000016163
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016164test "x$prefix" = xNONE && prefix=$ac_default_prefix
16165# Let make expand exec_prefix.
16166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +000016167
Martin v. Löwis11437992002-04-12 09:54:03 +000016168# VPATH may cause trouble with some makes, so we remove $(srcdir),
16169# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16170# trailing colons and then remove the whole line if VPATH becomes empty
16171# (actually we leave an empty line to preserve line numbers).
Guido van Rossum7f43da71994-08-01 12:15:30 +000016172if test "x$srcdir" = x.; then
Martin v. Löwis11437992002-04-12 09:54:03 +000016173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16174s/:*\$(srcdir):*/:/;
16175s/:*\${srcdir}:*/:/;
16176s/:*@srcdir@:*/:/;
16177s/^\([^=]*=[ ]*\):*/\1/;
16178s/:*$//;
16179s/^[^=]*=[ ]*$//;
16180}'
Guido van Rossum7f43da71994-08-01 12:15:30 +000016181fi
16182
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016183DEFS=-DHAVE_CONFIG_H
16184
Martin v. Löwis11437992002-04-12 09:54:03 +000016185
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016186: ${CONFIG_STATUS=./config.status}
Martin v. Löwis11437992002-04-12 09:54:03 +000016187ac_clean_files_save=$ac_clean_files
16188ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16189{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16190echo "$as_me: creating $CONFIG_STATUS" >&6;}
16191cat >$CONFIG_STATUS <<_ACEOF
16192#! $SHELL
16193# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:16 +000016194# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016195# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:03 +000016196# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +000016197
Martin v. Löwis11437992002-04-12 09:54:03 +000016198debug=false
16199SHELL=\${CONFIG_SHELL-$SHELL}
16200_ACEOF
Jack Jansendd19cf82001-12-06 22:36:17 +000016201
Martin v. Löwis11437992002-04-12 09:54:03 +000016202cat >>$CONFIG_STATUS <<\_ACEOF
Jack Jansendd19cf82001-12-06 22:36:17 +000016203
Martin v. Löwis11437992002-04-12 09:54:03 +000016204## --------------------- ##
16205## M4sh Initialization. ##
16206## --------------------- ##
Jack Jansendd19cf82001-12-06 22:36:17 +000016207
Martin v. Löwis11437992002-04-12 09:54:03 +000016208# Be Bourne compatible
16209if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16210 emulate sh
16211 NULLCMD=:
16212elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16213 set -o posix
Michael W. Hudson54241132001-12-07 15:38:26 +000016214fi
Michael W. Hudson54241132001-12-07 15:38:26 +000016215
Martin v. Löwis11437992002-04-12 09:54:03 +000016216# NLS nuisances.
16217# Support unset when possible.
16218if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16219 as_unset=unset
16220else
16221 as_unset=false
16222fi
Michael W. Hudson54241132001-12-07 15:38:26 +000016223
Martin v. Löwis11437992002-04-12 09:54:03 +000016224(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16225 { $as_unset LANG || test "${LANG+set}" != set; } ||
16226 { LANG=C; export LANG; }
16227(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16228 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16229 { LC_ALL=C; export LC_ALL; }
16230(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16231 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16232 { LC_TIME=C; export LC_TIME; }
16233(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16234 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16235 { LC_CTYPE=C; export LC_CTYPE; }
16236(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16237 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16238 { LANGUAGE=C; export LANGUAGE; }
16239(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16240 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16241 { LC_COLLATE=C; export LC_COLLATE; }
16242(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16243 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16244 { LC_NUMERIC=C; export LC_NUMERIC; }
16245(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16246 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16247 { LC_MESSAGES=C; export LC_MESSAGES; }
16248
16249
16250# Name of the executable.
16251as_me=`(basename "$0") 2>/dev/null ||
16252$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16253 X"$0" : 'X\(//\)$' \| \
16254 X"$0" : 'X\(/\)$' \| \
16255 . : '\(.\)' 2>/dev/null ||
16256echo X/"$0" |
16257 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16258 /^X\/\(\/\/\)$/{ s//\1/; q; }
16259 /^X\/\(\/\).*/{ s//\1/; q; }
16260 s/.*/./; q'`
16261
16262# PATH needs CR, and LINENO needs CR and PATH.
16263# Avoid depending upon Character Ranges.
16264as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16266as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16267as_cr_digits='0123456789'
16268as_cr_alnum=$as_cr_Letters$as_cr_digits
16269
16270# The user is always right.
16271if test "${PATH_SEPARATOR+set}" != set; then
16272 echo "#! /bin/sh" >conftest.sh
16273 echo "exit 0" >>conftest.sh
16274 chmod +x conftest.sh
16275 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16276 PATH_SEPARATOR=';'
16277 else
16278 PATH_SEPARATOR=:
16279 fi
16280 rm -f conftest.sh
16281fi
16282
16283
16284 as_lineno_1=$LINENO
16285 as_lineno_2=$LINENO
16286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16287 test "x$as_lineno_1" != "x$as_lineno_2" &&
16288 test "x$as_lineno_3" = "x$as_lineno_2" || {
16289 # Find who we are. Look in the path if we contain no path at all
16290 # relative or not.
16291 case $0 in
16292 *[\\/]* ) as_myself=$0 ;;
16293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294for as_dir in $PATH
16295do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
16298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16299done
16300
16301 ;;
16302 esac
16303 # We did not find ourselves, most probably we were run as `sh COMMAND'
16304 # in which case we are not to be found in the path.
16305 if test "x$as_myself" = x; then
16306 as_myself=$0
16307 fi
16308 if test ! -f "$as_myself"; then
16309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16310echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16311 { (exit 1); exit 1; }; }
16312 fi
16313 case $CONFIG_SHELL in
16314 '')
16315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16317do
16318 IFS=$as_save_IFS
16319 test -z "$as_dir" && as_dir=.
16320 for as_base in sh bash ksh sh5; do
16321 case $as_dir in
16322 /*)
16323 if ("$as_dir/$as_base" -c '
16324 as_lineno_1=$LINENO
16325 as_lineno_2=$LINENO
16326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16327 test "x$as_lineno_1" != "x$as_lineno_2" &&
16328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16329 CONFIG_SHELL=$as_dir/$as_base
16330 export CONFIG_SHELL
16331 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16332 fi;;
16333 esac
16334 done
16335done
16336;;
Jack Jansendd19cf82001-12-06 22:36:17 +000016337 esac
16338
Martin v. Löwis11437992002-04-12 09:54:03 +000016339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16340 # uniformly replaced by the line number. The first 'sed' inserts a
16341 # line-number line before each line; the second 'sed' does the real
16342 # work. The second script uses 'N' to pair each line-number line
16343 # with the numbered line, and appends trailing '-' during
16344 # substitution so that $LINENO is not a special case at line end.
16345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16346 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16347 sed '=' <$as_myself |
16348 sed '
16349 N
16350 s,$,-,
16351 : loop
16352 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16353 t loop
16354 s,-$,,
16355 s,^['$as_cr_digits']*\n,,
16356 ' >$as_me.lineno &&
16357 chmod +x $as_me.lineno ||
16358 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16359echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16360 { (exit 1); exit 1; }; }
Michael W. Hudson54241132001-12-07 15:38:26 +000016361
Martin v. Löwis11437992002-04-12 09:54:03 +000016362 # Don't try to exec as it changes $[0], causing all sort of problems
16363 # (the dirname of $[0] is not the place where we might find the
16364 # original and so on. Autoconf is especially sensible to this).
16365 . ./$as_me.lineno
16366 # Exit status is that of the last command.
16367 exit
16368}
16369
16370
16371case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16372 *c*,-n*) ECHO_N= ECHO_C='
16373' ECHO_T=' ' ;;
16374 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16375 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16376esac
16377
16378if expr a : '\(a\)' >/dev/null 2>&1; then
16379 as_expr=expr
16380else
16381 as_expr=false
16382fi
16383
16384rm -f conf$$ conf$$.exe conf$$.file
16385echo >conf$$.file
16386if ln -s conf$$.file conf$$ 2>/dev/null; then
16387 # We could just check for DJGPP; but this test a) works b) is more generic
16388 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16389 if test -f conf$$.exe; then
16390 # Don't use ln at all; we don't have any links
16391 as_ln_s='cp -p'
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016392 else
Martin v. Löwis11437992002-04-12 09:54:03 +000016393 as_ln_s='ln -s'
16394 fi
16395elif ln conf$$.file conf$$ 2>/dev/null; then
16396 as_ln_s=ln
16397else
16398 as_ln_s='cp -p'
16399fi
16400rm -f conf$$ conf$$.exe conf$$.file
16401
16402as_executable_p="test -f"
16403
16404# Sed expression to map a string onto a valid CPP name.
16405as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16406
16407# Sed expression to map a string onto a valid variable name.
16408as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16409
16410
16411# IFS
16412# We need space, tab and new line, in precisely that order.
16413as_nl='
16414'
16415IFS=" $as_nl"
16416
16417# CDPATH.
16418$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16419
16420exec 6>&1
16421
16422# Open the log real soon, to keep \$[0] and so on meaningful, and to
16423# report actual input values of CONFIG_FILES etc. instead of their
16424# values after options handling. Logging --version etc. is OK.
16425exec 5>>config.log
16426{
16427 echo
16428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16429## Running $as_me. ##
16430_ASBOX
16431} >&5
16432cat >&5 <<_CSEOF
16433
16434This file was extended by $as_me, which was
16435generated by GNU Autoconf 2.53. Invocation command line was
16436
16437 CONFIG_FILES = $CONFIG_FILES
16438 CONFIG_HEADERS = $CONFIG_HEADERS
16439 CONFIG_LINKS = $CONFIG_LINKS
16440 CONFIG_COMMANDS = $CONFIG_COMMANDS
16441 $ $0 $@
16442
16443_CSEOF
16444echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16445echo >&5
16446_ACEOF
16447
16448# Files that config.status was made for.
16449if test -n "$ac_config_files"; then
16450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16451fi
16452
16453if test -n "$ac_config_headers"; then
16454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16455fi
16456
16457if test -n "$ac_config_links"; then
16458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16459fi
16460
16461if test -n "$ac_config_commands"; then
16462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16463fi
16464
16465cat >>$CONFIG_STATUS <<\_ACEOF
16466
16467ac_cs_usage="\
16468\`$as_me' instantiates files from templates according to the
16469current configuration.
16470
16471Usage: $0 [OPTIONS] [FILE]...
16472
16473 -h, --help print this help, then exit
16474 -V, --version print version number, then exit
16475 -d, --debug don't remove temporary files
16476 --recheck update $as_me by reconfiguring in the same conditions
16477 --file=FILE[:TEMPLATE]
16478 instantiate the configuration file FILE
16479 --header=FILE[:TEMPLATE]
16480 instantiate the configuration header FILE
16481
16482Configuration files:
16483$config_files
16484
16485Configuration headers:
16486$config_headers
16487
16488Report bugs to <bug-autoconf@gnu.org>."
16489_ACEOF
16490
16491cat >>$CONFIG_STATUS <<_ACEOF
16492ac_cs_version="\\
16493config.status
16494configured by $0, generated by GNU Autoconf 2.53,
16495 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16496
16497Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16498Free Software Foundation, Inc.
16499This config.status script is free software; the Free Software Foundation
16500gives unlimited permission to copy, distribute and modify it."
16501srcdir=$srcdir
16502INSTALL="$INSTALL"
16503_ACEOF
16504
16505cat >>$CONFIG_STATUS <<\_ACEOF
16506# If no file are specified by the user, then we need to provide default
16507# value. By we need to know if files were specified by the user.
16508ac_need_defaults=:
16509while test $# != 0
16510do
16511 case $1 in
16512 --*=*)
16513 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16514 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16515 shift
16516 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16517 shift
16518 ;;
16519 -*);;
16520 *) # This is not an option, so the user has probably given explicit
16521 # arguments.
16522 ac_need_defaults=false;;
16523 esac
16524
16525 case $1 in
16526 # Handling of the options.
16527_ACEOF
16528cat >>$CONFIG_STATUS <<_ACEOF
16529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16530 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16531 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16532_ACEOF
16533cat >>$CONFIG_STATUS <<\_ACEOF
16534 --version | --vers* | -V )
16535 echo "$ac_cs_version"; exit 0 ;;
16536 --he | --h)
16537 # Conflict between --help and --header
16538 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16539Try \`$0 --help' for more information." >&5
16540echo "$as_me: error: ambiguous option: $1
16541Try \`$0 --help' for more information." >&2;}
16542 { (exit 1); exit 1; }; };;
16543 --help | --hel | -h )
16544 echo "$ac_cs_usage"; exit 0 ;;
16545 --debug | --d* | -d )
16546 debug=: ;;
16547 --file | --fil | --fi | --f )
16548 shift
16549 CONFIG_FILES="$CONFIG_FILES $1"
16550 ac_need_defaults=false;;
16551 --header | --heade | --head | --hea )
16552 shift
16553 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16554 ac_need_defaults=false;;
16555
16556 # This is an error.
16557 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16558Try \`$0 --help' for more information." >&5
16559echo "$as_me: error: unrecognized option: $1
16560Try \`$0 --help' for more information." >&2;}
16561 { (exit 1); exit 1; }; } ;;
16562
16563 *) ac_config_targets="$ac_config_targets $1" ;;
16564
16565 esac
16566 shift
16567done
16568
16569_ACEOF
16570
16571
16572
16573
16574
16575cat >>$CONFIG_STATUS <<\_ACEOF
16576for ac_config_target in $ac_config_targets
16577do
16578 case "$ac_config_target" in
16579 # Handling of arguments.
16580 "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
16581 "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
16582 "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
16583 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16584echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16585 { (exit 1); exit 1; }; };;
16586 esac
16587done
16588
16589# If the user did not use the arguments to specify the items to instantiate,
16590# then the envvar interface is used. Set only those that are not.
16591# We use the long form for the default assignment because of an extremely
16592# bizarre bug on SunOS 4.1.3.
16593if $ac_need_defaults; then
16594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16596fi
16597
16598# Create a temporary directory, and hook for its removal unless debugging.
16599$debug ||
16600{
16601 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16602 trap '{ (exit 1); exit 1; }' 1 2 13 15
16603}
16604
16605# Create a (secure) tmp directory for tmp files.
16606: ${TMPDIR=/tmp}
16607{
16608 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16609 test -n "$tmp" && test -d "$tmp"
16610} ||
16611{
16612 tmp=$TMPDIR/cs$$-$RANDOM
16613 (umask 077 && mkdir $tmp)
16614} ||
16615{
16616 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16617 { (exit 1); exit 1; }
16618}
16619
16620_ACEOF
16621
16622cat >>$CONFIG_STATUS <<_ACEOF
16623
16624#
16625# CONFIG_FILES section.
16626#
16627
16628# No need to generate the scripts if there are no CONFIG_FILES.
16629# This happens for instance when ./config.status config.h
16630if test -n "\$CONFIG_FILES"; then
16631 # Protect against being on the right side of a sed subst in config.status.
16632 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16633 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16634s,@SHELL@,$SHELL,;t t
16635s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16636s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16637s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16638s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16639s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16640s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16641s,@exec_prefix@,$exec_prefix,;t t
16642s,@prefix@,$prefix,;t t
16643s,@program_transform_name@,$program_transform_name,;t t
16644s,@bindir@,$bindir,;t t
16645s,@sbindir@,$sbindir,;t t
16646s,@libexecdir@,$libexecdir,;t t
16647s,@datadir@,$datadir,;t t
16648s,@sysconfdir@,$sysconfdir,;t t
16649s,@sharedstatedir@,$sharedstatedir,;t t
16650s,@localstatedir@,$localstatedir,;t t
16651s,@libdir@,$libdir,;t t
16652s,@includedir@,$includedir,;t t
16653s,@oldincludedir@,$oldincludedir,;t t
16654s,@infodir@,$infodir,;t t
16655s,@mandir@,$mandir,;t t
16656s,@build_alias@,$build_alias,;t t
16657s,@host_alias@,$host_alias,;t t
16658s,@target_alias@,$target_alias,;t t
16659s,@DEFS@,$DEFS,;t t
16660s,@ECHO_C@,$ECHO_C,;t t
16661s,@ECHO_N@,$ECHO_N,;t t
16662s,@ECHO_T@,$ECHO_T,;t t
16663s,@LIBS@,$LIBS,;t t
16664s,@VERSION@,$VERSION,;t t
16665s,@SOVERSION@,$SOVERSION,;t t
16666s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t
16667s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t
16668s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t
16669s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t
16670s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t
16671s,@MACHDEP@,$MACHDEP,;t t
16672s,@SGI_ABI@,$SGI_ABI,;t t
16673s,@CXX@,$CXX,;t t
16674s,@MAINOBJ@,$MAINOBJ,;t t
16675s,@EXEEXT@,$EXEEXT,;t t
16676s,@CC@,$CC,;t t
16677s,@CFLAGS@,$CFLAGS,;t t
16678s,@LDFLAGS@,$LDFLAGS,;t t
16679s,@CPPFLAGS@,$CPPFLAGS,;t t
16680s,@ac_ct_CC@,$ac_ct_CC,;t t
16681s,@OBJEXT@,$OBJEXT,;t t
16682s,@CPP@,$CPP,;t t
16683s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t
16684s,@LIBRARY@,$LIBRARY,;t t
16685s,@LDLIBRARY@,$LDLIBRARY,;t t
16686s,@DLLLIBRARY@,$DLLLIBRARY,;t t
16687s,@BLDLIBRARY@,$BLDLIBRARY,;t t
16688s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t
16689s,@INSTSONAME@,$INSTSONAME,;t t
16690s,@RUNSHARED@,$RUNSHARED,;t t
16691s,@LINKCC@,$LINKCC,;t t
16692s,@RANLIB@,$RANLIB,;t t
16693s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16694s,@AR@,$AR,;t t
16695s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16696s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16697s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16698s,@LN@,$LN,;t t
16699s,@OPT@,$OPT,;t t
16700s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t
16701s,@SO@,$SO,;t t
16702s,@LDSHARED@,$LDSHARED,;t t
16703s,@BLDSHARED@,$BLDSHARED,;t t
16704s,@CCSHARED@,$CCSHARED,;t t
16705s,@LINKFORSHARED@,$LINKFORSHARED,;t t
16706s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t
Martin v. Löwisf90ae202002-06-11 06:22:31 +000016707s,@SHLIBS@,$SHLIBS,;t t
Martin v. Löwis11437992002-04-12 09:54:03 +000016708s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t
16709s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t
16710s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t
16711s,@LDLAST@,$LDLAST,;t t
16712s,@THREADOBJ@,$THREADOBJ,;t t
16713s,@DLINCLDIR@,$DLINCLDIR,;t t
16714s,@DYNLOADFILE@,$DYNLOADFILE,;t t
16715s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t
16716s,@LIBOBJS@,$LIBOBJS,;t t
16717s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t
16718s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t
16719s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t
16720s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t
16721s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t
16722s,@LIBM@,$LIBM,;t t
16723s,@LIBC@,$LIBC,;t t
16724s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t
16725s,@THREADHEADERS@,$THREADHEADERS,;t t
16726s,@SRCDIRS@,$SRCDIRS,;t t
16727CEOF
16728
16729_ACEOF
16730
16731 cat >>$CONFIG_STATUS <<\_ACEOF
16732 # Split the substitutions into bite-sized pieces for seds with
16733 # small command number limits, like on Digital OSF/1 and HP-UX.
16734 ac_max_sed_lines=48
16735 ac_sed_frag=1 # Number of current file.
16736 ac_beg=1 # First line for current file.
16737 ac_end=$ac_max_sed_lines # Line after last line for current file.
16738 ac_more_lines=:
16739 ac_sed_cmds=
16740 while $ac_more_lines; do
16741 if test $ac_beg -gt 1; then
16742 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16743 else
16744 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16745 fi
16746 if test ! -s $tmp/subs.frag; then
16747 ac_more_lines=false
16748 else
16749 # The purpose of the label and of the branching condition is to
16750 # speed up the sed processing (if there are no `@' at all, there
16751 # is no need to browse any of the substitutions).
16752 # These are the two extra sed commands mentioned above.
16753 (echo ':t
16754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16755 if test -z "$ac_sed_cmds"; then
16756 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16757 else
16758 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16759 fi
16760 ac_sed_frag=`expr $ac_sed_frag + 1`
16761 ac_beg=$ac_end
16762 ac_end=`expr $ac_end + $ac_max_sed_lines`
16763 fi
16764 done
16765 if test -z "$ac_sed_cmds"; then
16766 ac_sed_cmds=cat
16767 fi
16768fi # test -n "$CONFIG_FILES"
16769
16770_ACEOF
16771cat >>$CONFIG_STATUS <<\_ACEOF
16772for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16774 case $ac_file in
16775 - | *:- | *:-:* ) # input from stdin
16776 cat >$tmp/stdin
16777 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16779 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16780 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16781 * ) ac_file_in=$ac_file.in ;;
16782 esac
16783
16784 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16785 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16786$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16787 X"$ac_file" : 'X\(//\)[^/]' \| \
16788 X"$ac_file" : 'X\(//\)$' \| \
16789 X"$ac_file" : 'X\(/\)' \| \
16790 . : '\(.\)' 2>/dev/null ||
16791echo X"$ac_file" |
16792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16794 /^X\(\/\/\)$/{ s//\1/; q; }
16795 /^X\(\/\).*/{ s//\1/; q; }
16796 s/.*/./; q'`
16797 { case "$ac_dir" in
16798 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16799 *) as_incr_dir=.;;
16800esac
16801as_dummy="$ac_dir"
16802for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16803 case $as_mkdir_dir in
16804 # Skip DOS drivespec
16805 ?:) as_incr_dir=$as_mkdir_dir ;;
16806 *)
16807 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16808 test -d "$as_incr_dir" ||
16809 mkdir "$as_incr_dir" ||
16810 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16811echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16812 { (exit 1); exit 1; }; }
16813 ;;
16814 esac
16815done; }
16816
16817 ac_builddir=.
16818
16819if test "$ac_dir" != .; then
16820 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16821 # A "../" for each directory in $ac_dir_suffix.
16822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16823else
16824 ac_dir_suffix= ac_top_builddir=
16825fi
16826
16827case $srcdir in
16828 .) # No --srcdir option. We are building in place.
16829 ac_srcdir=.
16830 if test -z "$ac_top_builddir"; then
16831 ac_top_srcdir=.
16832 else
16833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16834 fi ;;
16835 [\\/]* | ?:[\\/]* ) # Absolute path.
16836 ac_srcdir=$srcdir$ac_dir_suffix;
16837 ac_top_srcdir=$srcdir ;;
16838 *) # Relative path.
16839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16841esac
16842# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16843# absolute.
16844ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Martin v. Löwis19ff4462002-10-07 17:45:56 +000016845ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Martin v. Löwis11437992002-04-12 09:54:03 +000016846ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16847ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16848
16849
16850 case $INSTALL in
16851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16852 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16853 esac
16854
16855 if test x"$ac_file" != x-; then
16856 { echo "$as_me:$LINENO: creating $ac_file" >&5
16857echo "$as_me: creating $ac_file" >&6;}
16858 rm -f "$ac_file"
16859 fi
16860 # Let's still pretend it is `configure' which instantiates (i.e., don't
16861 # use $as_me), people would be surprised to read:
16862 # /* config.h. Generated by config.status. */
16863 if test x"$ac_file" = x-; then
16864 configure_input=
16865 else
16866 configure_input="$ac_file. "
16867 fi
16868 configure_input=$configure_input"Generated from `echo $ac_file_in |
16869 sed 's,.*/,,'` by configure."
16870
16871 # First look for the input files in the build tree, otherwise in the
16872 # src tree.
16873 ac_file_inputs=`IFS=:
16874 for f in $ac_file_in; do
16875 case $f in
16876 -) echo $tmp/stdin ;;
16877 [\\/$]*)
16878 # Absolute (can't be DOS-style, as IFS=:)
16879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16880echo "$as_me: error: cannot find input file: $f" >&2;}
16881 { (exit 1); exit 1; }; }
16882 echo $f;;
16883 *) # Relative
16884 if test -f "$f"; then
16885 # Build tree
16886 echo $f
16887 elif test -f "$srcdir/$f"; then
16888 # Source tree
16889 echo $srcdir/$f
16890 else
16891 # /dev/null tree
16892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16893echo "$as_me: error: cannot find input file: $f" >&2;}
16894 { (exit 1); exit 1; }; }
16895 fi;;
16896 esac
16897 done` || { (exit 1); exit 1; }
16898_ACEOF
16899cat >>$CONFIG_STATUS <<_ACEOF
16900 sed "$ac_vpsub
16901$extrasub
16902_ACEOF
16903cat >>$CONFIG_STATUS <<\_ACEOF
16904:t
16905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16906s,@configure_input@,$configure_input,;t t
16907s,@srcdir@,$ac_srcdir,;t t
16908s,@abs_srcdir@,$ac_abs_srcdir,;t t
16909s,@top_srcdir@,$ac_top_srcdir,;t t
16910s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16911s,@builddir@,$ac_builddir,;t t
16912s,@abs_builddir@,$ac_abs_builddir,;t t
16913s,@top_builddir@,$ac_top_builddir,;t t
16914s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16915s,@INSTALL@,$ac_INSTALL,;t t
16916" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16917 rm -f $tmp/stdin
16918 if test x"$ac_file" != x-; then
16919 mv $tmp/out $ac_file
16920 else
16921 cat $tmp/out
16922 rm -f $tmp/out
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016923 fi
16924
Martin v. Löwis11437992002-04-12 09:54:03 +000016925done
16926_ACEOF
16927cat >>$CONFIG_STATUS <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016928
Martin v. Löwis11437992002-04-12 09:54:03 +000016929#
16930# CONFIG_HEADER section.
16931#
Guido van Rossum627b2d71993-12-24 10:39:16 +000016932
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016933# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16934# NAME is the cpp macro being defined and VALUE is the value it is being given.
Guido van Rossum7f43da71994-08-01 12:15:30 +000016935#
16936# ac_d sets the value in "#define NAME VALUE" lines.
Martin v. Löwis11437992002-04-12 09:54:03 +000016937ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16938ac_dB='[ ].*$,\1#\2'
16939ac_dC=' '
16940ac_dD=',;t'
16941# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16942ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16943ac_uB='$,\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +000016944ac_uC=' '
Martin v. Löwis11437992002-04-12 09:54:03 +000016945ac_uD=',;t'
Guido van Rossum7f43da71994-08-01 12:15:30 +000016946
Martin v. Löwis11437992002-04-12 09:54:03 +000016947for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Guido van Rossumf78abae1997-01-21 22:02:36 +000016948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Martin v. Löwis11437992002-04-12 09:54:03 +000016949 case $ac_file in
16950 - | *:- | *:-:* ) # input from stdin
16951 cat >$tmp/stdin
16952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16956 * ) ac_file_in=$ac_file.in ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016957 esac
16958
Martin v. Löwis11437992002-04-12 09:54:03 +000016959 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16960echo "$as_me: creating $ac_file" >&6;}
Guido van Rossum7f43da71994-08-01 12:15:30 +000016961
Martin v. Löwis11437992002-04-12 09:54:03 +000016962 # First look for the input files in the build tree, otherwise in the
16963 # src tree.
16964 ac_file_inputs=`IFS=:
16965 for f in $ac_file_in; do
16966 case $f in
16967 -) echo $tmp/stdin ;;
16968 [\\/$]*)
16969 # Absolute (can't be DOS-style, as IFS=:)
16970 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16971echo "$as_me: error: cannot find input file: $f" >&2;}
16972 { (exit 1); exit 1; }; }
16973 echo $f;;
16974 *) # Relative
16975 if test -f "$f"; then
16976 # Build tree
16977 echo $f
16978 elif test -f "$srcdir/$f"; then
16979 # Source tree
16980 echo $srcdir/$f
16981 else
16982 # /dev/null tree
16983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16984echo "$as_me: error: cannot find input file: $f" >&2;}
16985 { (exit 1); exit 1; }; }
16986 fi;;
16987 esac
16988 done` || { (exit 1); exit 1; }
16989 # Remove the trailing spaces.
16990 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016991
Martin v. Löwis11437992002-04-12 09:54:03 +000016992_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000016993
Martin v. Löwis11437992002-04-12 09:54:03 +000016994# Transform confdefs.h into two sed scripts, `conftest.defines' and
16995# `conftest.undefs', that substitutes the proper values into
16996# config.h.in to produce config.h. The first handles `#define'
16997# templates, and the second `#undef' templates.
16998# And first: Protect against being on the right side of a sed subst in
16999# config.status. Protect against being in an unquoted here document
17000# in config.status.
17001rm -f conftest.defines conftest.undefs
17002# Using a here document instead of a string reduces the quoting nightmare.
17003# Putting comments in sed scripts is not portable.
17004#
17005# `end' is used to avoid that the second main sed command (meant for
17006# 0-ary CPP macros) applies to n-ary macro definitions.
17007# See the Autoconf documentation for `clear'.
17008cat >confdef2sed.sed <<\_ACEOF
17009s/[\\&,]/\\&/g
17010s,[\\$`],\\&,g
17011t clear
17012: clear
17013s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17014t end
17015s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17016: end
17017_ACEOF
17018# If some macros were called several times there might be several times
17019# the same #defines, which is useless. Nevertheless, we may not want to
17020# sort them, since we want the *last* AC-DEFINE to be honored.
17021uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17022sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17023rm -f confdef2sed.sed
Guido van Rossum76be6ed1995-01-02 18:33:54 +000017024
17025# This sed command replaces #undef with comments. This is necessary, for
17026# example, in the case of _POSIX_SOURCE, which is predefined and required
17027# on some systems where configure will not decide to define it.
Martin v. Löwis11437992002-04-12 09:54:03 +000017028cat >>conftest.undefs <<\_ACEOF
17029s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17030_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000017031
Martin v. Löwis11437992002-04-12 09:54:03 +000017032# Break up conftest.defines because some shells have a limit on the size
17033# of here documents, and old seds have small limits too (100 cmds).
17034echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17035echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17036echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17037echo ' :' >>$CONFIG_STATUS
Jack Jansendd19cf82001-12-06 22:36:17 +000017038rm -f conftest.tail
Martin v. Löwis11437992002-04-12 09:54:03 +000017039while grep . conftest.defines >/dev/null
Jack Jansendd19cf82001-12-06 22:36:17 +000017040do
Martin v. Löwis11437992002-04-12 09:54:03 +000017041 # Write a limited-size here document to $tmp/defines.sed.
17042 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17043 # Speed up: don't consider the non `#define' lines.
17044 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17045 # Work around the forget-to-reset-the-flag bug.
17046 echo 't clr' >>$CONFIG_STATUS
17047 echo ': clr' >>$CONFIG_STATUS
17048 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Jack Jansendd19cf82001-12-06 22:36:17 +000017049 echo 'CEOF
Martin v. Löwis11437992002-04-12 09:54:03 +000017050 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17051 rm -f $tmp/in
17052 mv $tmp/out $tmp/in
17053' >>$CONFIG_STATUS
17054 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17055 rm -f conftest.defines
17056 mv conftest.tail conftest.defines
Jack Jansendd19cf82001-12-06 22:36:17 +000017057done
Martin v. Löwis11437992002-04-12 09:54:03 +000017058rm -f conftest.defines
17059echo ' fi # egrep' >>$CONFIG_STATUS
17060echo >>$CONFIG_STATUS
Jack Jansendd19cf82001-12-06 22:36:17 +000017061
Martin v. Löwis11437992002-04-12 09:54:03 +000017062# Break up conftest.undefs because some shells have a limit on the size
17063# of here documents, and old seds have small limits too (100 cmds).
17064echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17065rm -f conftest.tail
17066while grep . conftest.undefs >/dev/null
17067do
17068 # Write a limited-size here document to $tmp/undefs.sed.
17069 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17070 # Speed up: don't consider the non `#undef'
17071 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17072 # Work around the forget-to-reset-the-flag bug.
17073 echo 't clr' >>$CONFIG_STATUS
17074 echo ': clr' >>$CONFIG_STATUS
17075 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17076 echo 'CEOF
17077 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17078 rm -f $tmp/in
17079 mv $tmp/out $tmp/in
17080' >>$CONFIG_STATUS
17081 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17082 rm -f conftest.undefs
17083 mv conftest.tail conftest.undefs
17084done
17085rm -f conftest.undefs
17086
17087cat >>$CONFIG_STATUS <<\_ACEOF
17088 # Let's still pretend it is `configure' which instantiates (i.e., don't
17089 # use $as_me), people would be surprised to read:
17090 # /* config.h. Generated by config.status. */
17091 if test x"$ac_file" = x-; then
17092 echo "/* Generated by configure. */" >$tmp/config.h
Guido van Rossum7f43da71994-08-01 12:15:30 +000017093 else
Martin v. Löwis11437992002-04-12 09:54:03 +000017094 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Jack Jansendd19cf82001-12-06 22:36:17 +000017095 fi
Martin v. Löwis11437992002-04-12 09:54:03 +000017096 cat $tmp/in >>$tmp/config.h
17097 rm -f $tmp/in
17098 if test x"$ac_file" != x-; then
17099 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17100 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17101echo "$as_me: $ac_file is unchanged" >&6;}
17102 else
17103 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17105 X"$ac_file" : 'X\(//\)[^/]' \| \
17106 X"$ac_file" : 'X\(//\)$' \| \
17107 X"$ac_file" : 'X\(/\)' \| \
17108 . : '\(.\)' 2>/dev/null ||
17109echo X"$ac_file" |
17110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17112 /^X\(\/\/\)$/{ s//\1/; q; }
17113 /^X\(\/\).*/{ s//\1/; q; }
17114 s/.*/./; q'`
17115 { case "$ac_dir" in
17116 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17117 *) as_incr_dir=.;;
17118esac
17119as_dummy="$ac_dir"
17120for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17121 case $as_mkdir_dir in
17122 # Skip DOS drivespec
17123 ?:) as_incr_dir=$as_mkdir_dir ;;
17124 *)
17125 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17126 test -d "$as_incr_dir" ||
17127 mkdir "$as_incr_dir" ||
17128 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17129echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17130 { (exit 1); exit 1; }; }
17131 ;;
17132 esac
17133done; }
Michael W. Hudson54241132001-12-07 15:38:26 +000017134
Martin v. Löwis11437992002-04-12 09:54:03 +000017135 rm -f $ac_file
17136 mv $tmp/config.h $ac_file
17137 fi
17138 else
17139 cat $tmp/config.h
17140 rm -f $tmp/config.h
17141 fi
17142done
17143_ACEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +000017144
Martin v. Löwis11437992002-04-12 09:54:03 +000017145cat >>$CONFIG_STATUS <<\_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:16 +000017146
Martin v. Löwis11437992002-04-12 09:54:03 +000017147{ (exit 0); exit 0; }
17148_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +000017149chmod +x $CONFIG_STATUS
Martin v. Löwis11437992002-04-12 09:54:03 +000017150ac_clean_files=$ac_clean_files_save
17151
17152
17153# configure is writing to config.log, and then calls config.status.
17154# config.status does its own redirection, appending to config.log.
17155# Unfortunately, on DOS this fails, as config.log is still kept open
17156# by configure, so config.status won't be able to write to it; its
17157# output is simply discarded. So we exec the FD to /dev/null,
17158# effectively closing config.log, so it can be properly (re)opened and
17159# appended to by config.status. When coming back to configure, we
17160# need to make the FD available again.
17161if test "$no_create" != yes; then
17162 ac_cs_success=:
17163 exec 5>/dev/null
17164 $SHELL $CONFIG_STATUS || ac_cs_success=false
17165 exec 5>>config.log
17166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17167 # would make configure fail if this is the last instruction.
17168 $ac_cs_success || { (exit 1); exit 1; }
17169fi
Guido van Rossum627b2d71993-12-24 10:39:16 +000017170
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +000017171
17172echo "creating Setup"
17173if test ! -f Modules/Setup
17174then
17175 cp $srcdir/Modules/Setup.dist Modules/Setup
17176fi
17177
17178echo "creating Setup.local"
17179if test ! -f Modules/Setup.local
17180then
17181 echo "# Edit this file for local setup changes" >Modules/Setup.local
17182fi
17183
17184echo "creating Makefile"
17185$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
17186 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +000017187 Modules/Setup.local Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:49 +000017188mv config.c Modules