blob: ed2f7e8a0810e4b986e549764448210177940456 [file] [log] [blame]
Guido van Rossum7f43da71994-08-01 12:15:30 +00001#!/bin/sh
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002
Guido van Rossumda88dad1995-01-26 00:46:29 +00003# From configure.in Revision: 1.18
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004
Guido van Rossum627b2d71993-12-24 10:39:16 +00005# Guess values for system-dependent variables and create Makefiles.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006# Generated automatically using autoconf version 2.0
7# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Guido van Rossum627b2d71993-12-24 10:39:16 +000011
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012# Defaults:
13ac_help=
14ac_default_prefix=/usr/local
15# Any additions from configure.in:
16ac_help="$ac_help
17--without-gcc never use gcc"
18ac_help="$ac_help
19--with-readline=DIRECTORY GNU readline"
20ac_help="$ac_help
21--with-thread[=DIRECTORY] make interpreter thread-safe"
22ac_help="$ac_help
23--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
24ac_help="$ac_help
25--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
26ac_help="$ac_help
27--with-libm=STRING math library"
28ac_help="$ac_help
29--with-libc=STRING C library"
Guido van Rossum627b2d71993-12-24 10:39:16 +000030
Guido van Rossum76be6ed1995-01-02 18:33:54 +000031# Omit some internal or obsolete options to make the list less imposing.
Guido van Rossum7f43da71994-08-01 12:15:30 +000032ac_usage="Usage: configure [options] [host]
33Options: [defaults in brackets after descriptions]
Guido van Rossum76be6ed1995-01-02 18:33:54 +000034Configuration:
35 --cache-file=FILE cache test results in FILE
36 --help print this message
37 --no-create do not create output files
38 --quiet, --silent do not print \`checking...' messages
39 --version print the version of autoconf that created configure
40Directory and file names:
41 --prefix=PREFIX install architecture-independent files in PREFIX
42 [$ac_default_prefix]
43 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
44 [same as prefix]
45 --srcdir=DIR find the sources in DIR [configure dir or ..]
46 --program-prefix=PREFIX prepend PREFIX to installed program names
47 --program-suffix=SUFFIX append SUFFIX to installed program names
48 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
49Host type:
50 --build=BUILD configure for building on BUILD [BUILD=HOST]
51 --host=HOST configure for HOST [guessed]
52 --target=TARGET configure for TARGET [TARGET=HOST]
53Features and packages:
54 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
55 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
56 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
57 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
58 --x-includes=DIR X include files are in DIR
59 --x-libraries=DIR X library files are in DIR
60--enable and --with options recognized:$ac_help"
Guido van Rossum7f43da71994-08-01 12:15:30 +000061
62# Initialize some variables set by options.
63# The variables have the same names as the options, with
64# dashes changed to underlines.
65build=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000066cache_file=./config.cache
67exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +000068host=NONE
69no_create=
70nonopt=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000071no_recursion=
72prefix=NONE
73program_prefix=NONE
74program_suffix=NONE
75program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +000076silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000077site=
Guido van Rossum7f43da71994-08-01 12:15:30 +000078srcdir=
79target=NONE
80verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000081x_includes=NONE
82x_libraries=NONE
83
84# Initialize some other variables.
85subdirs=
Guido van Rossum7f43da71994-08-01 12:15:30 +000086
87ac_prev=
88for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +000089do
Guido van Rossum627b2d71993-12-24 10:39:16 +000090
Guido van Rossum7f43da71994-08-01 12:15:30 +000091 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
94 ac_prev=
95 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +000096 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +000097
Guido van Rossum7f43da71994-08-01 12:15:30 +000098 case "$ac_option" in
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 *) ac_optarg= ;;
101 esac
102
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000103 # Accept the important Cygnus configure options, so we can diagnose typos.
104
Guido van Rossum7f43da71994-08-01 12:15:30 +0000105 case "$ac_option" in
106
107 -build | --build | --buil | --bui | --bu | --b)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
110 build="$ac_optarg" ;;
111
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
118
Guido van Rossum7f43da71994-08-01 12:15:30 +0000119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000121 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000124 fi
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
127
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000130 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000133 fi
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 case "$ac_option" in
136 *=*) ;;
137 *) ac_optarg=yes ;;
138 esac
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
140
Guido van Rossum7f43da71994-08-01 12:15:30 +0000141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
149
150 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000151 # Obsolete; use --with-gas.
152 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000153
154 -help | --help | --hel | --he)
155 cat << EOF
156$ac_usage
157EOF
158 exit 0 ;;
159
160 -host | --host | --hos | --ho)
161 ac_prev=host ;;
162 -host=* | --host=* | --hos=* | --ho=*)
163 host="$ac_optarg" ;;
164
165 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000166 # Obsolete; use --without-fp.
167 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000168
169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
170 | --no-cr | --no-c)
171 no_create=yes ;;
172
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
175 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000176
177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
178 ac_prev=prefix ;;
179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
180 prefix="$ac_optarg" ;;
181
182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
183 | --program-pre | --program-pr | --program-p)
184 ac_prev=program_prefix ;;
185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
187 program_prefix="$ac_optarg" ;;
188
189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
190 | --program-suf | --program-su | --program-s)
191 ac_prev=program_suffix ;;
192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
194 program_suffix="$ac_optarg" ;;
195
196 -program-transform-name | --program-transform-name \
197 | --program-transform-nam | --program-transform-na \
198 | --program-transform-n | --program-transform- \
199 | --program-transform | --program-transfor \
200 | --program-transfo | --program-transf \
201 | --program-trans | --program-tran \
202 | --progr-tra | --program-tr | --program-t)
203 ac_prev=program_transform_name ;;
204 -program-transform-name=* | --program-transform-name=* \
205 | --program-transform-nam=* | --program-transform-na=* \
206 | --program-transform-n=* | --program-transform-=* \
207 | --program-transform=* | --program-transfor=* \
208 | --program-transfo=* | --program-transf=* \
209 | --program-trans=* | --program-tran=* \
210 | --progr-tra=* | --program-tr=* | --program-t=*)
211 program_transform_name="$ac_optarg" ;;
212
213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
214 | -silent | --silent | --silen | --sile | --sil)
215 silent=yes ;;
216
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000217 -site | --site | --sit)
218 ac_prev=site ;;
219 -site=* | --site=* | --sit=*)
220 site="$ac_optarg" ;;
221
Guido van Rossum7f43da71994-08-01 12:15:30 +0000222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
223 ac_prev=srcdir ;;
224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
225 srcdir="$ac_optarg" ;;
226
227 -target | --target | --targe | --targ | --tar | --ta | --t)
228 ac_prev=target ;;
229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
230 target="$ac_optarg" ;;
231
232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
233 verbose=yes ;;
234
235 -version | --version | --versio | --versi | --vers)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000236 echo "configure generated by autoconf version 2.0"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000237 exit 0 ;;
238
239 -with-* | --with-*)
240 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000241 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000242 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000244 fi
245 ac_package=`echo $ac_package| sed 's/-/_/g'`
246 case "$ac_option" in
247 *=*) ;;
248 *) ac_optarg=yes ;;
249 esac
250 eval "with_${ac_package}='$ac_optarg'" ;;
251
252 -without-* | --without-*)
253 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000254 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000255 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000256 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000257 fi
258 ac_package=`echo $ac_package| sed 's/-/_/g'`
259 eval "with_${ac_package}=no" ;;
260
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000261 --x)
262 # Obsolete; use --with-x.
263 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000264
265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
266 | --x-incl | --x-inc | --x-in | --x-i)
267 ac_prev=x_includes ;;
268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
270 x_includes="$ac_optarg" ;;
271
272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
274 ac_prev=x_libraries ;;
275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
277 x_libraries="$ac_optarg" ;;
278
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000279 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000280 ;;
281
282 *)
Guido van Rossum0a516c91994-09-12 10:58:40 +0000283 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000284 echo "configure: warning: $ac_option: invalid host type" 1>&2
Guido van Rossum7f43da71994-08-01 12:15:30 +0000285 fi
Guido van Rossum0a516c91994-09-12 10:58:40 +0000286 if test "x$nonopt" != xNONE; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000287 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000288 fi
289 nonopt="$ac_option"
290 ;;
291
292 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +0000293done
294
Guido van Rossum7f43da71994-08-01 12:15:30 +0000295if test -n "$ac_prev"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000296 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000297fi
298
299trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
Guido van Rossum7f43da71994-08-01 12:15:30 +0000300
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000301# File descriptor usage:
302# 0 unused; standard input
303# 1 file creation
304# 2 errors and warnings
305# 3 unused; some systems may open it to /dev/tty
306# 4 checking for... messages and results
307# 5 compiler messages saved in config.log
308if test "$silent" = yes; then
309 exec 4>/dev/null
310else
311 exec 4>&1
312fi
313exec 5>./config.log
314
315echo "\
316This file contains any messages produced by compilers while
317running configure, to aid debugging if configure makes a mistake.
318" 1>&5
319
320# Strip out --no-create and --no-recursion so they do not pile up.
321# Also quote any args containing shell metacharacters.
322ac_configure_args=
323for ac_arg
324do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000325 case "$ac_arg" in
326 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 | --no-cr | --no-c) ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
331 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
332 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000333 esac
334done
Guido van Rossum627b2d71993-12-24 10:39:16 +0000335
336# NLS nuisances.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000337# Only set LANG and LC_ALL to C if already set.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000338# These must not be set unconditionally because not all systems understand
339# e.g. LANG=C (notably SCO).
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000340if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
341if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000342
Guido van Rossum7f43da71994-08-01 12:15:30 +0000343# confdefs.h avoids OS command line length limits that DEFS can exceed.
344rm -rf conftest* confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
346echo > confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000347
348# A filename unique to this package, relative to the directory that
349# configure is in, which we can look for to find out if srcdir is correct.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000350ac_unique_file=Include/object.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000351
352# Find the source files, if location was not specified.
353if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +0000354 ac_srcdir_defaulted=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000355 # Try the directory containing this script, then its parent.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000356 ac_prog=$0
357 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
358 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
359 srcdir=$ac_confdir
360 if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000361 srcdir=..
362 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000363else
364 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000365fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000366if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000367 if test "$ac_srcdir_defaulted" = yes; then
368 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000369 else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000370 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000371 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000372fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000373srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
374
375# Prefer explicitly selected file to automatically selected ones.
376if test -z "$CONFIG_SITE"; then
377 if test "x$prefix" != xNONE; then
378 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
379 else
380 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
381 fi
382fi
383for ac_site_file in $CONFIG_SITE; do
384 if test -r "$ac_site_file"; then
385 echo "loading site script $ac_site_file"
386 . "$ac_site_file"
387 fi
388done
389
390if test -r "$cache_file"; then
391 echo "loading cache $cache_file"
392 . $cache_file
393else
394 echo "creating cache $cache_file"
395 > $cache_file
396fi
397
Guido van Rossum7f43da71994-08-01 12:15:30 +0000398ac_ext=c
Guido van Rossum0a516c91994-09-12 10:58:40 +0000399# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000400ac_cpp='$CPP $CPPFLAGS'
401ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
402ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
403
404if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
405 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
406 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
407 ac_n= ac_c='
408' ac_t=' '
409 else
410 ac_n=-n ac_c= ac_t=
411 fi
412else
413 ac_n= ac_c='\c' ac_t=
414fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000415
Guido van Rossum0a516c91994-09-12 10:58:40 +0000416
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000417
Guido van Rossum627b2d71993-12-24 10:39:16 +0000418
419# checks for alternative programs
Guido van Rossumda88dad1995-01-26 00:46:29 +0000420echo $ac_n "checking for --without-gcc""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000421# Check whether --with-gcc or --without-gcc was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000422withval="$with_gcc"
423if test -n "$withval"; then
424
425 case $withval in
Guido van Rossumda88dad1995-01-26 00:46:29 +0000426 no) CC=cc
427 without_gcc=yes;;
428 yes) CC=gcc
429 without_gcc=no;;
430 *) CC=$withval
431 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000432 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +0000433else
434 without_gcc=no
Guido van Rossum7f43da71994-08-01 12:15:30 +0000435fi
436
Guido van Rossumda88dad1995-01-26 00:46:29 +0000437echo "$ac_t""$without_gcc" 1>&4
438
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000439# Extract the first word of "gcc", so it can be a program name with args.
440set dummy gcc; ac_word=$2
441echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
442if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
443 echo $ac_n "(cached) $ac_c" 1>&4
444else
445 if test -n "$CC"; then
446 ac_cv_prog_CC="$CC" # Let the user override the test.
447else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
449 for ac_dir in $PATH; do
450 test -z "$ac_dir" && ac_dir=.
451 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000452 ac_cv_prog_CC="gcc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000453 break
454 fi
455 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000456 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000457 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000458fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000459fi
460CC="$ac_cv_prog_CC"
461if test -n "$CC"; then
462 echo "$ac_t""$CC" 1>&4
463else
464 echo "$ac_t""no" 1>&4
465fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000466
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000467
468echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
469if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
470 echo $ac_n "(cached) $ac_c" 1>&4
471else
472 cat > conftest.c <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000473#ifdef __GNUC__
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000474 yes;
Guido van Rossum627b2d71993-12-24 10:39:16 +0000475#endif
476EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000477if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
478 ac_cv_prog_gcc=yes
479else
480 ac_cv_prog_gcc=no
481fi
482fi
483echo "$ac_t""$ac_cv_prog_gcc" 1>&4
484if test $ac_cv_prog_gcc = yes; then
485 GCC=yes
486 if test "${CFLAGS+set}" != set; then
487 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
488if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&4
490else
491 echo 'void f(){}' > conftest.c
492if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
493 ac_cv_prog_gcc_g=yes
494else
495 ac_cv_prog_gcc_g=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000496fi
497rm -f conftest*
498
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000499fi
500 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
501 if test $ac_cv_prog_gcc_g = yes; then
502 CFLAGS="-g -O"
503 else
504 CFLAGS="-O"
505 fi
506 fi
507else
508 GCC=
509 test "${CFLAGS+set}" = set || CFLAGS="-g"
510fi
511
512# Extract the first word of "ranlib", so it can be a program name with args.
513set dummy ranlib; ac_word=$2
514echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
515if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
516 echo $ac_n "(cached) $ac_c" 1>&4
517else
518 if test -n "$RANLIB"; then
519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
520else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
522 for ac_dir in $PATH; do
523 test -z "$ac_dir" && ac_dir=.
524 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000525 ac_cv_prog_RANLIB="ranlib"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000526 break
527 fi
528 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000529 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000530 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000531fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000532fi
533RANLIB="$ac_cv_prog_RANLIB"
534if test -n "$RANLIB"; then
535 echo "$ac_t""$RANLIB" 1>&4
536else
537 echo "$ac_t""no" 1>&4
538fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000539
540
Guido van Rossum7f43da71994-08-01 12:15:30 +0000541for ac_prog in ar aal
542do
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000543# Extract the first word of "$ac_prog", so it can be a program name with args.
544set dummy $ac_prog; ac_word=$2
545echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
546if eval "test \"`echo '${'ac_cv_prog_AR'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&4
548else
549 if test -n "$AR"; then
550 ac_cv_prog_AR="$AR" # Let the user override the test.
551else
Guido van Rossum7f43da71994-08-01 12:15:30 +0000552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
553 for ac_dir in $PATH; do
554 test -z "$ac_dir" && ac_dir=.
555 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000556 ac_cv_prog_AR="$ac_prog"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000557 break
558 fi
559 done
560 IFS="$ac_save_ifs"
561fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000562fi
563AR="$ac_cv_prog_AR"
564if test -n "$AR"; then
565 echo "$ac_t""$AR" 1>&4
566else
567 echo "$ac_t""no" 1>&4
568fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000569
570test -n "$AR" && break
571done
572test -n "$AR" || AR="ar"
573
574
Guido van Rossumda88dad1995-01-26 00:46:29 +0000575
576
Guido van Rossumb1ba03f1994-08-19 15:34:50 +0000577# Install just never works :-(
578if test -z "$INSTALL"
Guido van Rossumda88dad1995-01-26 00:46:29 +0000579then
580 INSTALL=cp
581 INSTALL_PROGRAM=cp
582 INSTALL_DATA=cp
583else
584 INSTALL_PROGRAM="$INSTALL"
585 INSTALL_DATA="$INSTALL -m 644"
Guido van Rossumb1ba03f1994-08-19 15:34:50 +0000586fi
587
588# Optimizer/debugger flags passed between Makefiles
589if test -z "$OPT"
590then OPT=-O
591fi
592
Guido van Rossum627b2d71993-12-24 10:39:16 +0000593# checks for UNIX variants that set C preprocessor variables
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000594echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
595# On Suns, sometimes $CPP names a directory.
596if test -n "$CPP" && test -d "$CPP"; then
597 CPP=
598fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000599if test -z "$CPP"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000600if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&4
602else
603 # This must be in double quotes, not single quotes, because CPP may get
604 # substituted into the Makefile and "${CC-cc}" will confuse make.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000605 CPP="${CC-cc} -E"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000606 # On the NeXT, cc -E runs the code through the compiler's parser,
607 # not just through cpp.
608 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000609#line 610 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000610#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000611#include <assert.h>
Guido van Rossum627b2d71993-12-24 10:39:16 +0000612Syntax Error
613EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000614eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
615ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000616if test -z "$ac_err"; then
617 :
618else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000619 echo "$ac_err" >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +0000620 rm -rf conftest*
621 CPP="${CC-cc} -E -traditional-cpp"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000622 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000623#line 624 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000624#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000625#include <assert.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +0000626Syntax Error
627EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000628eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
629ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000630if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000631 :
632else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000633 echo "$ac_err" >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +0000634 rm -rf conftest*
635 CPP=/lib/cpp
636fi
637rm -f conftest*
638fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000639rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000640 ac_cv_prog_CPP="$CPP"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000641fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000642fi
643CPP="$ac_cv_prog_CPP"
644echo "$ac_t""$CPP" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000645
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000646echo $ac_n "checking for AIX""... $ac_c" 1>&4
647cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000648#line 649 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000649#include "confdefs.h"
650#ifdef _AIX
651 yes
652#endif
653
654EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
656 egrep "yes" >/dev/null 2>&1; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000657 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000658 echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
659#define _ALL_SOURCE 1
660EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000661
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000662else
663 rm -rf conftest*
664 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000665fi
666rm -f conftest*
667
668
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000669echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000670if test -d /etc/conf/kconfig.d &&
671 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
672then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000673 echo "$ac_t""yes" 1>&4
674 ISC=yes # If later tests want to check for ISC.
675 cat >> confdefs.h <<\EOF
676#define _POSIX_SOURCE 1
677EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000678
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000679 if test "$GCC" = yes; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000680 CC="$CC -posix"
681 else
682 CC="$CC -Xp"
683 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000684else
685 echo "$ac_t""no" 1>&4
686 ISC=
Guido van Rossum627b2d71993-12-24 10:39:16 +0000687fi
688
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000689ac_safe=`echo "minix/config.h" | tr './\055' '___'`
690echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
691if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&4
693else
694 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000695#line 696 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000696#include "confdefs.h"
697#include <minix/config.h>
698EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000699eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
700ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000701if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000702 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000703 eval "ac_cv_header_$ac_safe=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000704else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000705 echo "$ac_err" >&5
706 rm -rf conftest*
707 eval "ac_cv_header_$ac_safe=no"
708fi
709rm -f conftest*
710fi
711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
712 echo "$ac_t""yes" 1>&4
713 MINIX=yes
714else
715 echo "$ac_t""no" 1>&4
716MINIX=
Guido van Rossum627b2d71993-12-24 10:39:16 +0000717fi
718
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000719if test "$MINIX" = yes; then
720 cat >> confdefs.h <<\EOF
721#define _POSIX_SOURCE 1
722EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000723
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000724 cat >> confdefs.h <<\EOF
725#define _POSIX_1_SOURCE 2
726EOF
727
728 cat >> confdefs.h <<\EOF
729#define _MINIX 1
730EOF
731
732fi
733
Guido van Rossumda88dad1995-01-26 00:46:29 +0000734
735was_it_defined=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000736# If we cannot run a trivial program, we must be cross compiling.
737echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
738if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&4
740else
741 if test "$cross_compiling" = yes; then
742 ac_cv_cross=yes
743else
744cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000745#line 746 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000746#include "confdefs.h"
747main(){return(0);}
748EOF
749eval $ac_link
750if test -s conftest && (./conftest; exit) 2>/dev/null; then
751 ac_cv_c_cross=no
752else
753 ac_cv_c_cross=yes
754fi
755fi
756rm -fr conftest*
757fi
758cross_compiling=$ac_cv_c_cross
759echo "$ac_t""$ac_cv_c_cross" 1>&4
760
761if test "$cross_compiling" = yes; then
762 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
763else
764cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000765#line 766 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000766#include "confdefs.h"
767
768#ifdef _NEXT_SOURCE
769main() { exit(0); }
770#endif
771
772EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000773eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +0000774if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000775 cat >> confdefs.h <<\EOF
776#define _POSIX_SOURCE 1
777EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000778 was_it_defined=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000779fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000780fi
781rm -fr conftest*
Guido van Rossumda88dad1995-01-26 00:46:29 +0000782echo $ac_n "checking for NeXT""... $ac_c" 1>&4
783echo "$ac_t""$was_it_defined" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000784
785# checks for header files
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000786echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
787if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
788 echo $ac_n "(cached) $ac_c" 1>&4
789else
790 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000791#line 792 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000792#include "confdefs.h"
793#include <stdlib.h>
794#include <stdarg.h>
795#include <string.h>
796#include <float.h>
797EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000798eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
799ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000800if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000801 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000802 ac_cv_header_stdc=yes
803else
804 echo "$ac_err" >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +0000805 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000806 ac_cv_header_stdc=no
807fi
808rm -f conftest*
809
810if test $ac_cv_header_stdc = yes; then
811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
812cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000813#line 814 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000814#include "confdefs.h"
815#include <string.h>
816EOF
817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
818 egrep "memchr" >/dev/null 2>&1; then
819 :
820else
821 rm -rf conftest*
822 ac_cv_header_stdc=no
823fi
824rm -f conftest*
825
826fi
827
828if test $ac_cv_header_stdc = yes; then
829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
830cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000831#line 832 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000832#include "confdefs.h"
833#include <stdlib.h>
834EOF
835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
836 egrep "free" >/dev/null 2>&1; then
837 :
838else
839 rm -rf conftest*
840 ac_cv_header_stdc=no
841fi
842rm -f conftest*
843
844fi
845
846if test $ac_cv_header_stdc = yes; then
847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
848if test "$cross_compiling" = yes; then
849 ac_cv_header_stdc=no
850else
851cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000852#line 853 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000853#include "confdefs.h"
854#include <ctype.h>
855#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
856#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000857#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Guido van Rossum627b2d71993-12-24 10:39:16 +0000858int main () { int i; for (i = 0; i < 256; i++)
859if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
860exit (0); }
861
862EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000863eval $ac_link
Guido van Rossum627b2d71993-12-24 10:39:16 +0000864if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000865 :
866else
867 ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000868fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000869fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000870rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000871fi
872fi
873echo "$ac_t""$ac_cv_header_stdc" 1>&4
874if test $ac_cv_header_stdc = yes; then
875 cat >> confdefs.h <<\EOF
876#define STDC_HEADERS 1
877EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +0000878
879fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000880
Guido van Rossum8eee56f1994-10-20 22:18:37 +0000881for ac_hdr in dlfcn.h fcntl.h limits.h signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000882do
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000883ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
884echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
885if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&4
887else
888 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000889#line 890 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000890#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000891#include <$ac_hdr>
Guido van Rossum627b2d71993-12-24 10:39:16 +0000892EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000893eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894ac_err=`grep -v '^ *+' conftest.out`
Guido van Rossum7f43da71994-08-01 12:15:30 +0000895if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000896 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000897 eval "ac_cv_header_$ac_safe=yes"
898else
899 echo "$ac_err" >&5
900 rm -rf conftest*
901 eval "ac_cv_header_$ac_safe=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000902fi
903rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000904fi
905if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
906 echo "$ac_t""yes" 1>&4
907 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
908 cat >> confdefs.h <<EOF
909#define $ac_tr_hdr 1
910EOF
911
912else
913 echo "$ac_t""no" 1>&4
914fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000915done
916
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000917ac_header_dirent=no
918for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
919do
920ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
921echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
922if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +0000924else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000925 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000926#line 927 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000927#include "confdefs.h"
928#include <sys/types.h>
929#include <$ac_hdr>
930int main() { return 0; }
931int t() {
932DIR *dirp = 0;
933; return 0; }
934EOF
935if eval $ac_compile; then
936 rm -rf conftest*
937 eval "ac_cv_header_dirent_$ac_safe=yes"
938else
939 rm -rf conftest*
940 eval "ac_cv_header_dirent_$ac_safe=no"
941fi
942rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +0000943
944fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000945if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
946 echo "$ac_t""yes" 1>&4
947 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
948 cat >> confdefs.h <<EOF
949#define $ac_tr_hdr 1
950EOF
951 ac_header_dirent=$ac_hdr; break
952else
953 echo "$ac_t""no" 1>&4
954fi
955done
956# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
957if test $ac_header_dirent = dirent.h; then
958echo $ac_n "checking for -ldir""... $ac_c" 1>&4
959if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&4
961else
962 ac_save_LIBS="$LIBS"
963LIBS="$LIBS -ldir "
964cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000965#line 966 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000966#include "confdefs.h"
967
968int main() { return 0; }
969int t() {
970opendir()
971; return 0; }
972EOF
973if eval $ac_link; then
974 rm -rf conftest*
975 eval "ac_cv_lib_dir=yes"
976else
977 rm -rf conftest*
978 eval "ac_cv_lib_dir=no"
979fi
980rm -f conftest*
981LIBS="$ac_save_LIBS"
982
983fi
984if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
985 echo "$ac_t""yes" 1>&4
986 LIBS="$LIBS -ldir"
987else
988 echo "$ac_t""no" 1>&4
989fi
990
991else
992echo $ac_n "checking for -lx""... $ac_c" 1>&4
993if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&4
995else
996 ac_save_LIBS="$LIBS"
997LIBS="$LIBS -lx "
998cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +0000999#line 1000 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001000#include "confdefs.h"
1001
1002int main() { return 0; }
1003int t() {
1004opendir()
1005; return 0; }
1006EOF
1007if eval $ac_link; then
1008 rm -rf conftest*
1009 eval "ac_cv_lib_x=yes"
1010else
1011 rm -rf conftest*
1012 eval "ac_cv_lib_x=no"
1013fi
1014rm -f conftest*
1015LIBS="$ac_save_LIBS"
1016
1017fi
1018if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
1019 echo "$ac_t""yes" 1>&4
1020 LIBS="$LIBS -lx"
1021else
1022 echo "$ac_t""no" 1>&4
1023fi
1024
1025fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001026
1027
1028# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00001029was_it_defined=no
1030echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001031cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001032#line 1033 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001033#include "confdefs.h"
1034#include <time.h>
1035EOF
1036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1037 egrep "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00001038 rm -rf conftest*
1039 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001040else
1041 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001042 cat >> confdefs.h <<\EOF
1043#define clock_t long
1044EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001045
1046fi
1047rm -f conftest*
1048
Guido van Rossumda88dad1995-01-26 00:46:29 +00001049echo "$ac_t""$was_it_defined" 1>&4
1050
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001051echo $ac_n "checking for mode_t""... $ac_c" 1>&4
1052if eval "test \"`echo '${'ac_cv_type_mode_t'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&4
1054else
1055 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001056#line 1057 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001057#include "confdefs.h"
1058#include <sys/types.h>
1059#if STDC_HEADERS
1060#include <stdlib.h>
1061#endif
1062EOF
1063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1064 egrep "mode_t" >/dev/null 2>&1; then
1065 rm -rf conftest*
1066 ac_cv_type_mode_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001067else
1068 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001069 ac_cv_type_mode_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001070fi
1071rm -f conftest*
1072
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001073fi
1074echo "$ac_t""$ac_cv_type_mode_t" 1>&4
1075if test $ac_cv_type_mode_t = no; then
1076 cat >> confdefs.h <<\EOF
1077#define mode_t int
1078EOF
1079
1080fi
1081
1082echo $ac_n "checking for off_t""... $ac_c" 1>&4
1083if eval "test \"`echo '${'ac_cv_type_off_t'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&4
1085else
1086 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001087#line 1088 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001088#include "confdefs.h"
1089#include <sys/types.h>
1090#if STDC_HEADERS
1091#include <stdlib.h>
1092#endif
1093EOF
1094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1095 egrep "off_t" >/dev/null 2>&1; then
1096 rm -rf conftest*
1097 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001098else
1099 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001100 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001101fi
1102rm -f conftest*
1103
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001104fi
1105echo "$ac_t""$ac_cv_type_off_t" 1>&4
1106if test $ac_cv_type_off_t = no; then
1107 cat >> confdefs.h <<\EOF
1108#define off_t long
1109EOF
1110
1111fi
1112
1113echo $ac_n "checking for pid_t""... $ac_c" 1>&4
1114if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&4
1116else
1117 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001118#line 1119 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001119#include "confdefs.h"
1120#include <sys/types.h>
1121#if STDC_HEADERS
1122#include <stdlib.h>
1123#endif
1124EOF
1125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1126 egrep "pid_t" >/dev/null 2>&1; then
1127 rm -rf conftest*
1128 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001129else
1130 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001131 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001132fi
1133rm -f conftest*
1134
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001135fi
1136echo "$ac_t""$ac_cv_type_pid_t" 1>&4
1137if test $ac_cv_type_pid_t = no; then
1138 cat >> confdefs.h <<\EOF
1139#define pid_t int
1140EOF
1141
1142fi
1143
1144echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
1145if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&4
1147else
1148 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001149#line 1150 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001150#include "confdefs.h"
1151#include <sys/types.h>
1152#include <signal.h>
1153#ifdef signal
1154#undef signal
1155#endif
1156extern void (*signal ()) ();
Guido van Rossum7f43da71994-08-01 12:15:30 +00001157int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001158int t() {
1159int i;
1160; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001161EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001162if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001163 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001164 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00001165else
1166 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001167 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00001168fi
1169rm -f conftest*
1170
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001171fi
1172echo "$ac_t""$ac_cv_type_signal" 1>&4
1173cat >> confdefs.h <<EOF
1174#define RETSIGTYPE $ac_cv_type_signal
1175EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001176
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001177
1178echo $ac_n "checking for size_t""... $ac_c" 1>&4
1179if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&4
1181else
1182 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001183#line 1184 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001184#include "confdefs.h"
1185#include <sys/types.h>
1186#if STDC_HEADERS
1187#include <stdlib.h>
1188#endif
1189EOF
1190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1191 egrep "size_t" >/dev/null 2>&1; then
1192 rm -rf conftest*
1193 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001194else
1195 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001196 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001197fi
1198rm -f conftest*
1199
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001200fi
1201echo "$ac_t""$ac_cv_type_size_t" 1>&4
1202if test $ac_cv_type_size_t = no; then
1203 cat >> confdefs.h <<\EOF
1204#define size_t unsigned
1205EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001206
1207fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001208
1209echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
1210if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&4
1212else
1213 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001214#line 1215 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001215#include "confdefs.h"
1216#include <sys/types.h>
1217EOF
1218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1219 egrep "uid_t" >/dev/null 2>&1; then
1220 rm -rf conftest*
1221 ac_cv_type_uid_t=yes
1222else
1223 rm -rf conftest*
1224 ac_cv_type_uid_t=no
1225fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001226rm -f conftest*
1227
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001228fi
1229echo "$ac_t""$ac_cv_type_uid_t" 1>&4
1230if test $ac_cv_type_uid_t = no; then
1231 cat >> confdefs.h <<\EOF
1232#define uid_t int
1233EOF
1234
1235 cat >> confdefs.h <<\EOF
1236#define gid_t int
1237EOF
1238
1239fi
1240
Guido van Rossum627b2d71993-12-24 10:39:16 +00001241
Guido van Rossum0a516c91994-09-12 10:58:40 +00001242# Set name for machine-dependent library files
1243
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001244echo $ac_n "checking MACHDEP""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001245if test -z "$MACHDEP"
1246then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001247 ac_sys_system=`uname -s | tr -d ' ' | tr '[A-Z]' '[a-z]'`
1248 ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'`
1249 MACHDEP="$ac_sys_system$ac_sys_release"
Guido van Rossum0a516c91994-09-12 10:58:40 +00001250 case MACHDEP in
1251 '') MACHDEP=unknown;;
1252 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001253fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001254echo "$ac_t""$MACHDEP" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001255
1256# Set info about shared libraries.
1257# XXX This should try things out instead of testing uname!
1258
1259
1260
1261
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001262ac_sys_system=`uname -s`
1263ac_sys_release=`uname -r`
Guido van Rossum0a516c91994-09-12 10:58:40 +00001264# SO is the extension of shared libraries `(including the dot!)
1265# -- usually .so, .sl on HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001266echo $ac_n "checking SO""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001267if test -z "$SO"
1268then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001269 case $ac_sys_system in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001270 hp*|HP*) SO=.sl;;
1271 *) SO=.so;;
1272 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001273fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001274echo "$ac_t""$SO" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001275# LDSHARED is the ld *command* used to create shared library
1276# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001277echo $ac_n "checking LDSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001278if test -z "$LDSHARED"
1279then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001280 case $ac_sys_system/$ac_sys_release in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001281 IRIX*) LDSHARED="ld -shared";;
1282 SunOS/4*) LDSHARED="ld";;
1283 SunOS/5*) LDSHARED="ld -G";;
1284 hp*|HP*) LDSHARED="ld -b";;
Guido van Rossumda88dad1995-01-26 00:46:29 +00001285 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
1286 DYNIX/ptx*) LDSHARED="ld -G";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00001287 *) LDSHARED="ld";;
1288 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001289fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001290echo "$ac_t""$LDSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001291# CCSHARED are the C *flags* used to create objects to go into a shared
1292# library -- this is only needed for HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001293echo $ac_n "checking CCSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001294if test -z "$CCSHARED"
1295then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001296 case $ac_sys_system in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001297 hp*|HP*) CCSHARED="+z";;
1298 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001299fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001300echo "$ac_t""$CCSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001301# LINKFORSHARED are the flags passed to the $(CC) command that links
1302# the python executable -- this is only needed for HP-UX
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001303echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001304if test -z "$LINKFORSHARED"
1305then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001306 case $ac_sys_system in
Guido van Rossum0a516c91994-09-12 10:58:40 +00001307 hp*|HP*) LINKFORSHARED="-Wl,-E";;
1308 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00001309fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001310echo "$ac_t""$LINKFORSHARED" 1>&4
Guido van Rossum0a516c91994-09-12 10:58:40 +00001311
Guido van Rossum627b2d71993-12-24 10:39:16 +00001312# checks for libraries
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001313echo $ac_n "checking for -ldl""... $ac_c" 1>&4
1314if eval "test \"`echo '${'ac_cv_lib_dl'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&4
1316else
1317 ac_save_LIBS="$LIBS"
1318LIBS="$LIBS -ldl "
1319cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001320#line 1321 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001321#include "confdefs.h"
1322
Guido van Rossum7f43da71994-08-01 12:15:30 +00001323int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001324int t() {
1325dlopen()
1326; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001327EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001328if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001329 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001330 eval "ac_cv_lib_dl=yes"
1331else
1332 rm -rf conftest*
1333 eval "ac_cv_lib_dl=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001334fi
1335rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001336LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001337
Guido van Rossum627b2d71993-12-24 10:39:16 +00001338fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001339if eval "test \"`echo '$ac_cv_lib_'dl`\" = yes"; then
1340 echo "$ac_t""yes" 1>&4
1341 ac_tr_lib=HAVE_LIB`echo dl | tr '[a-z]' '[A-Z]'`
1342 cat >> confdefs.h <<EOF
1343#define $ac_tr_lib 1
1344EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001345
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001346 LIBS="$LIBS -ldl"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001347
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001348else
1349 echo "$ac_t""no" 1>&4
1350fi
1351 # Dynamic linking for SunOS/Solaris and SYSV
1352echo $ac_n "checking for -ldld""... $ac_c" 1>&4
1353if eval "test \"`echo '${'ac_cv_lib_dld'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&4
1355else
1356 ac_save_LIBS="$LIBS"
1357LIBS="$LIBS -ldld "
1358cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001359#line 1360 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001360#include "confdefs.h"
1361
Guido van Rossum7f43da71994-08-01 12:15:30 +00001362int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001363int t() {
1364shl_load()
1365; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001366EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001367if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001368 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001369 eval "ac_cv_lib_dld=yes"
1370else
1371 rm -rf conftest*
1372 eval "ac_cv_lib_dld=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001373fi
1374rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001375LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001376
Guido van Rossum627b2d71993-12-24 10:39:16 +00001377fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001378if eval "test \"`echo '$ac_cv_lib_'dld`\" = yes"; then
1379 echo "$ac_t""yes" 1>&4
1380 ac_tr_lib=HAVE_LIB`echo dld | tr '[a-z]' '[A-Z]'`
1381 cat >> confdefs.h <<EOF
1382#define $ac_tr_lib 1
1383EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001384
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001385 LIBS="$LIBS -ldld"
1386
1387else
1388 echo "$ac_t""no" 1>&4
1389fi
1390 # Dynamic linking for HP-UX
1391echo $ac_n "checking for -lsun""... $ac_c" 1>&4
1392if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&4
1394else
1395 ac_save_LIBS="$LIBS"
1396LIBS="$LIBS -lsun "
1397cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001398#line 1399 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001399#include "confdefs.h"
1400
1401int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001402int t() {
1403getpwnam()
1404; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001405EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001406if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001407 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001408 eval "ac_cv_lib_sun=yes"
1409else
1410 rm -rf conftest*
1411 eval "ac_cv_lib_sun=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001412fi
1413rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001414LIBS="$ac_save_LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001415
Guido van Rossum7f43da71994-08-01 12:15:30 +00001416fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001417if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
1418 echo "$ac_t""yes" 1>&4
1419 ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'`
1420 cat >> confdefs.h <<EOF
1421#define $ac_tr_lib 1
1422EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001423
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001424 LIBS="$LIBS -lsun"
1425
1426else
1427 echo "$ac_t""no" 1>&4
1428fi
1429 # NIS (== YP) interface for IRIX 4
Guido van Rossumda88dad1995-01-26 00:46:29 +00001430# The following three (nsl,inet,socket) are needed on Sequent;
1431# the order of checking must be this. Most SVR4 platforms will
1432# need -lsocket and -lnsl. However on SGI IRIX 5, these exist but
1433# broken. I see no elegant solution (probably CHECK_LIB should be
1434# fixed to only add the library if the given entry point is not
1435# satisfied without it).
1436if test "`uname -s`" != IRIX
1437then
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001438echo $ac_n "checking for -lnsl""... $ac_c" 1>&4
1439if eval "test \"`echo '${'ac_cv_lib_nsl'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&4
1441else
1442 ac_save_LIBS="$LIBS"
1443LIBS="$LIBS -lnsl "
1444cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001445#line 1446 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001446#include "confdefs.h"
1447
1448int main() { return 0; }
1449int t() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001450t_open()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001451; return 0; }
1452EOF
1453if eval $ac_link; then
1454 rm -rf conftest*
1455 eval "ac_cv_lib_nsl=yes"
1456else
1457 rm -rf conftest*
1458 eval "ac_cv_lib_nsl=no"
1459fi
1460rm -f conftest*
1461LIBS="$ac_save_LIBS"
1462
1463fi
1464if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1465 echo "$ac_t""yes" 1>&4
1466 LIBS="-lnsl $LIBS"
1467else
1468 echo "$ac_t""no" 1>&4
1469fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001470 # SVR4
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001471echo $ac_n "checking for -linet""... $ac_c" 1>&4
1472if eval "test \"`echo '${'ac_cv_lib_inet'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&4
1474else
1475 ac_save_LIBS="$LIBS"
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001476LIBS="$LIBS -linet -lnsl"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001477cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001478#line 1479 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001479#include "confdefs.h"
1480
1481int main() { return 0; }
1482int t() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001483gethostbyname()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001484; return 0; }
1485EOF
1486if eval $ac_link; then
1487 rm -rf conftest*
1488 eval "ac_cv_lib_inet=yes"
1489else
1490 rm -rf conftest*
1491 eval "ac_cv_lib_inet=no"
1492fi
1493rm -f conftest*
1494LIBS="$ac_save_LIBS"
1495
1496fi
1497if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then
1498 echo "$ac_t""yes" 1>&4
1499 LIBS="-linet $LIBS"
1500else
1501 echo "$ac_t""no" 1>&4
1502fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001503 # Sequent
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001504echo $ac_n "checking for -lsocket""... $ac_c" 1>&4
1505if eval "test \"`echo '${'ac_cv_lib_socket'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&4
1507else
1508 ac_save_LIBS="$LIBS"
Guido van Rossum0ddb0281995-01-17 16:46:14 +00001509LIBS="$LIBS -lsocket $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001510cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001511#line 1512 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001512#include "confdefs.h"
1513
1514int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001515int t() {
1516socket()
1517; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001518EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001519if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001520 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001521 eval "ac_cv_lib_socket=yes"
1522else
1523 rm -rf conftest*
1524 eval "ac_cv_lib_socket=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001525fi
1526rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001527LIBS="$ac_save_LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001528
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001529fi
1530if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1531 echo "$ac_t""yes" 1>&4
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001532 LIBS="-lsocket $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001533else
1534 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001535fi
Guido van Rossum79dddcb1995-01-12 12:25:42 +00001536 # SVR4 sockets
Guido van Rossumda88dad1995-01-26 00:46:29 +00001537fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001538
Guido van Rossumda88dad1995-01-26 00:46:29 +00001539echo $ac_n "checking for --with-readline""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001540# Check whether --with-readline or --without-readline was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001541withval="$with_readline"
1542if test -n "$withval"; then
1543
Guido van Rossumda88dad1995-01-26 00:46:29 +00001544echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001545cat >> confdefs.h <<\EOF
1546#define WITH_READLINE 1
1547EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001548
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001549if test ! -d "$withval"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001550then { echo "configure: error: proper usage is --with-readline=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001551fi
1552termcap=
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001553echo $ac_n "checking for -ltermcap""... $ac_c" 1>&4
1554if eval "test \"`echo '${'ac_cv_lib_termcap'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&4
1556else
1557 ac_save_LIBS="$LIBS"
1558LIBS="$LIBS -ltermcap "
1559cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001560#line 1561 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001561#include "confdefs.h"
1562
Guido van Rossum7f43da71994-08-01 12:15:30 +00001563int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001564int t() {
1565tgetent()
1566; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001567EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001568if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001569 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001570 eval "ac_cv_lib_termcap=yes"
1571else
1572 rm -rf conftest*
1573 eval "ac_cv_lib_termcap=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001574fi
1575rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001576LIBS="$ac_save_LIBS"
1577
1578fi
1579if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then
1580 echo "$ac_t""yes" 1>&4
1581 termcap=termcap
Guido van Rossum7f43da71994-08-01 12:15:30 +00001582else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001583 echo "$ac_t""no" 1>&4
1584
1585echo $ac_n "checking for -ltermlib""... $ac_c" 1>&4
1586if eval "test \"`echo '${'ac_cv_lib_termlib'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&4
1588else
1589 ac_save_LIBS="$LIBS"
1590LIBS="$LIBS -ltermlib "
1591cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001592#line 1593 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001593#include "confdefs.h"
1594
1595int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001596int t() {
1597tgetent()
1598; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001599EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001600if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001601 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001602 eval "ac_cv_lib_termlib=yes"
1603else
1604 rm -rf conftest*
1605 eval "ac_cv_lib_termlib=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001606fi
1607rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001608LIBS="$ac_save_LIBS"
1609
1610fi
1611if eval "test \"`echo '$ac_cv_lib_'termlib`\" = yes"; then
1612 echo "$ac_t""yes" 1>&4
1613 termcap=termlib
Guido van Rossum7f43da71994-08-01 12:15:30 +00001614else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001615 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001616fi
1617
1618fi
1619
1620if test ! -z "$termcap"
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001621then LIBS="$LIBS $withval/libreadline.a"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001622 # Avoid possible conflict between shared libraries termcap and gl
1623 # on IRIX 5: both contain a routine called clear.
1624 if test -f /usr/lib/lib$termcap.a
1625 then LIBS="$LIBS /usr/lib/lib$termcap.a"
1626 else LIBS="$LIBS -l$termcap"
1627 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001628else { echo "configure: error: no working termcap/termlib" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001629fi
Guido van Rossumda88dad1995-01-26 00:46:29 +00001630else
1631 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001632fi
1633
1634
Guido van Rossumda88dad1995-01-26 00:46:29 +00001635echo $ac_n "checking for --with-thread""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001636# Check whether --with-thread or --without-thread was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001637withval="$with_thread"
1638if test -n "$withval"; then
1639
Guido van Rossumda88dad1995-01-26 00:46:29 +00001640echo "$ac_t""$withval" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001641if test -d "$withval"
1642then LIBS="$LIBS -L$withval"
1643fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001644echo $ac_n "checking for -lpthreads""... $ac_c" 1>&4
1645if eval "test \"`echo '${'ac_cv_lib_pthreads'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&4
1647else
1648 ac_save_LIBS="$LIBS"
1649LIBS="$LIBS -lpthreads "
1650cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001651#line 1652 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001652#include "confdefs.h"
1653
1654int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001655int t() {
1656pthread_create()
1657; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001658EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001659if eval $ac_link; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00001660 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001661 eval "ac_cv_lib_pthreads=yes"
1662else
1663 rm -rf conftest*
1664 eval "ac_cv_lib_pthreads=no"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001665fi
1666rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001667LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001668
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001669fi
1670if eval "test \"`echo '$ac_cv_lib_'pthreads`\" = yes"; then
1671 echo "$ac_t""yes" 1>&4
1672 cat >> confdefs.h <<\EOF
1673#define WITH_THREAD 1
1674EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001675
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001676cat >> confdefs.h <<\EOF
1677#define _POSIX_THREADS 1
1678EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001679
1680LIBS="$LIBS -lpthreads"
1681LIBOBJS="$LIBOBJS thread.o"
1682else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001683 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001684fi
1685
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001686echo $ac_n "checking for -lmpc""... $ac_c" 1>&4
1687if eval "test \"`echo '${'ac_cv_lib_mpc'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&4
1689else
1690 ac_save_LIBS="$LIBS"
1691LIBS="$LIBS -lmpc "
1692cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001693#line 1694 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001694#include "confdefs.h"
1695
Guido van Rossum7f43da71994-08-01 12:15:30 +00001696int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001697int t() {
1698usconfig()
1699; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001700EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001701if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001702 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001703 eval "ac_cv_lib_mpc=yes"
1704else
1705 rm -rf conftest*
1706 eval "ac_cv_lib_mpc=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001707fi
1708rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001709LIBS="$ac_save_LIBS"
1710
1711fi
1712if eval "test \"`echo '$ac_cv_lib_'mpc`\" = yes"; then
1713 echo "$ac_t""yes" 1>&4
1714 cat >> confdefs.h <<\EOF
1715#define WITH_THREAD 1
1716EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001717
Guido van Rossum7f43da71994-08-01 12:15:30 +00001718LIBS="$LIBS -lmpc"
1719LIBOBJS="$LIBOBJS thread.o"
1720else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001721 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001722fi
1723
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001724echo $ac_n "checking for -lthread""... $ac_c" 1>&4
1725if eval "test \"`echo '${'ac_cv_lib_thread'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&4
1727else
1728 ac_save_LIBS="$LIBS"
1729LIBS="$LIBS -lthread "
1730cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001731#line 1732 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001732#include "confdefs.h"
1733
Guido van Rossum7f43da71994-08-01 12:15:30 +00001734int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001735int t() {
1736thr_create()
1737; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001738EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001739if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001740 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001741 eval "ac_cv_lib_thread=yes"
1742else
1743 rm -rf conftest*
1744 eval "ac_cv_lib_thread=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001745fi
1746rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001747LIBS="$ac_save_LIBS"
1748
1749fi
1750if eval "test \"`echo '$ac_cv_lib_'thread`\" = yes"; then
1751 echo "$ac_t""yes" 1>&4
1752 cat >> confdefs.h <<\EOF
1753#define WITH_THREAD 1
1754EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001755
Guido van Rossum7f43da71994-08-01 12:15:30 +00001756LIBS="$LIBS -lthread"
1757LIBOBJS="$LIBOBJS thread.o"
1758else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001759 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001760fi
1761
Guido van Rossum7f43da71994-08-01 12:15:30 +00001762
Guido van Rossumda88dad1995-01-26 00:46:29 +00001763else
1764 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001765fi
1766
Guido van Rossum7f43da71994-08-01 12:15:30 +00001767
1768# -I${DLINCLDIR} is added to the compile rule for import.o
1769
1770DLINCLDIR=/
1771
Guido van Rossumda88dad1995-01-26 00:46:29 +00001772echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001773# Check whether --with-sgi-dl or --without-sgi-dl was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001774withval="$with_sgi_dl"
1775if test -n "$withval"; then
1776
Guido van Rossumda88dad1995-01-26 00:46:29 +00001777echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001778cat >> confdefs.h <<\EOF
1779#define WITH_SGI_DL 1
1780EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001781
1782dldir=$withval
1783if test -d "$dldir"
1784then LIBS="$LIBS -L$dldir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001785else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001786fi
1787DLINCLDIR=${dldir}
1788LIBS="$LIBS -ldl -lmld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00001789else
1790 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001791fi
1792
1793
Guido van Rossumda88dad1995-01-26 00:46:29 +00001794echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001795# Check whether --with-dl-dld or --without-dl-dld was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00001796withval="$with_dl_dld"
1797if test -n "$withval"; then
1798
Guido van Rossumda88dad1995-01-26 00:46:29 +00001799echo "$ac_t""$withval" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001800cat >> confdefs.h <<\EOF
1801#define WITH_DL_DLD 1
1802EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001803
1804dldir=`echo "$withval" | sed 's/,.*//'`
1805dlddir=`echo "$withval" | sed 's/.*,//'`
1806if test -d "$dldir" -a -d "$dlddir"
1807then LIBS="$LIBS -L$dldir -L$dlddir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001808else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00001809fi
1810DLINCLDIR=${dldir}
1811LIBS="$LIBS -ldl -ldld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00001812else
1813 echo "$ac_t""no" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00001814fi
1815
1816
Guido van Rossum627b2d71993-12-24 10:39:16 +00001817# checks for library functions
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001818for ac_func in chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt symlink tcgetpgrp tcsetpgrp times truncate uname waitpid
Guido van Rossum627b2d71993-12-24 10:39:16 +00001819do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001820echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1821if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&4
1823else
1824 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001825#line 1826 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001826#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001827#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001828int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001829int t() {
1830
Guido van Rossum627b2d71993-12-24 10:39:16 +00001831/* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00001835choke me
1836#else
1837/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001838char $ac_func(); $ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001839#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001840
Guido van Rossum7f43da71994-08-01 12:15:30 +00001841; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001842EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001843if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001844 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001845 eval "ac_cv_func_$ac_func=yes"
1846else
1847 rm -rf conftest*
1848 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001849fi
1850rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001851
1852fi
1853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1854 echo "$ac_t""yes" 1>&4
1855 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
1856 cat >> confdefs.h <<EOF
1857#define $ac_tr_func 1
1858EOF
1859
1860else
1861 echo "$ac_t""no" 1>&4
1862fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001863done
1864
Guido van Rossum7f43da71994-08-01 12:15:30 +00001865for ac_func in dup2 getcwd strerror memmove
Guido van Rossum627b2d71993-12-24 10:39:16 +00001866do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001867echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1868if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&4
1870else
1871 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001872#line 1873 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001873#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001874#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001875int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001876int t() {
1877
Guido van Rossum627b2d71993-12-24 10:39:16 +00001878/* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001881#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00001882choke me
1883#else
1884/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001885char $ac_func(); $ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001886#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001887
Guido van Rossum7f43da71994-08-01 12:15:30 +00001888; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001889EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001890if eval $ac_link; then
1891 rm -rf conftest*
1892 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001893else
1894 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001895 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001896fi
1897rm -f conftest*
1898
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001899fi
1900if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1901 echo "$ac_t""yes" 1>&4
1902 :
1903else
1904 echo "$ac_t""no" 1>&4
1905LIBOBJS="$LIBOBJS ${ac_func}.o"
1906fi
1907
Guido van Rossum627b2d71993-12-24 10:39:16 +00001908done
1909
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001910echo $ac_n "checking for getpgrp""... $ac_c" 1>&4
1911if eval "test \"`echo '${'ac_cv_func_getpgrp'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&4
1913else
1914 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001915#line 1916 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001916#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001917#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum7f43da71994-08-01 12:15:30 +00001918int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001919int t() {
1920
Guido van Rossum627b2d71993-12-24 10:39:16 +00001921/* The GNU C library defines this for functions which it implements
1922 to always fail with ENOSYS. Some functions are actually named
1923 something starting with __ and the normal name is an alias. */
1924#if defined (__stub_getpgrp) || defined (__stub___getpgrp)
1925choke me
1926#else
1927/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001928char getpgrp(); getpgrp();
Guido van Rossum627b2d71993-12-24 10:39:16 +00001929#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001930
1931; return 0; }
1932EOF
1933if eval $ac_link; then
1934 rm -rf conftest*
1935 eval "ac_cv_func_getpgrp=yes"
1936else
1937 rm -rf conftest*
1938 eval "ac_cv_func_getpgrp=no"
1939fi
1940rm -f conftest*
1941
1942fi
1943if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
1944 echo "$ac_t""yes" 1>&4
1945 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001946#line 1947 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001947#include "confdefs.h"
1948#include <unistd.h>
1949int main() { return 0; }
1950int t() {
1951getpgrp(0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00001952; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00001953EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00001954if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001955 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001956 cat >> confdefs.h <<\EOF
1957#define GETPGRP_HAVE_ARG 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00001958EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001959
1960fi
1961rm -f conftest*
1962
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001963else
1964 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00001965fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001966
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001967echo $ac_n "checking for setpgrp""... $ac_c" 1>&4
1968if eval "test \"`echo '${'ac_cv_func_setpgrp'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&4
1970else
1971 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00001972#line 1973 "configure"
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001973#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001974#include <ctype.h> /* Arbitrary system header to define __stub macros. */
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001975int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001976int t() {
1977
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001978/* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981#if defined (__stub_setpgrp) || defined (__stub___setpgrp)
1982choke me
1983#else
1984/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001985char setpgrp(); setpgrp();
Guido van Rossum8eee56f1994-10-20 22:18:37 +00001986#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001987
1988; return 0; }
1989EOF
1990if eval $ac_link; then
1991 rm -rf conftest*
1992 eval "ac_cv_func_setpgrp=yes"
1993else
1994 rm -rf conftest*
1995 eval "ac_cv_func_setpgrp=no"
1996fi
1997rm -f conftest*
1998
1999fi
2000if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
2001 echo "$ac_t""yes" 1>&4
2002 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002003#line 2004 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002004#include "confdefs.h"
2005#include <unistd.h>
2006int main() { return 0; }
2007int t() {
2008setpgrp(0,0);
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002009; return 0; }
2010EOF
2011if eval $ac_compile; then
2012 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002013 cat >> confdefs.h <<\EOF
2014#define SETPGRP_HAVE_ARG 1
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002015EOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002016
2017fi
2018rm -f conftest*
2019
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002020else
2021 echo "$ac_t""no" 1>&4
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002022fi
Guido van Rossum8eee56f1994-10-20 22:18:37 +00002023
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002024echo $ac_n "checking for gettimeofday""... $ac_c" 1>&4
2025if eval "test \"`echo '${'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&4
2027else
2028 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002029#line 2030 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002030#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002031#include <ctype.h> /* Arbitrary system header to define __stub macros. */
2032int main() { return 0; }
2033int t() {
2034
2035/* The GNU C library defines this for functions which it implements
2036 to always fail with ENOSYS. Some functions are actually named
2037 something starting with __ and the normal name is an alias. */
2038#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
2039choke me
2040#else
2041/* Override any gcc2 internal prototype to avoid an error. */
2042char gettimeofday(); gettimeofday();
2043#endif
2044
2045; return 0; }
2046EOF
2047if eval $ac_link; then
2048 rm -rf conftest*
2049 eval "ac_cv_func_gettimeofday=yes"
2050else
2051 rm -rf conftest*
2052 eval "ac_cv_func_gettimeofday=no"
2053fi
2054rm -f conftest*
2055
2056fi
2057if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
2058 echo "$ac_t""yes" 1>&4
2059 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002060#line 2061 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002061#include "confdefs.h"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002062#include <sys/time.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002063int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002064int t() {
2065gettimeofday((struct timeval*)0,(struct timezone*)0);
2066; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002067EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002068if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002069 :
2070else
2071 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002072 cat >> confdefs.h <<\EOF
2073#define GETTIMEOFDAY_NO_TZ 1
2074EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002075
2076fi
2077rm -f conftest*
2078
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002079else
2080 echo "$ac_t""no" 1>&4
2081fi
2082
2083
2084# checks for structures
2085echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&4
2086if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&4
2088else
2089 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002090#line 2091 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002091#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002092#include <sys/types.h>
2093#include <sys/time.h>
2094#include <time.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002095int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002096int t() {
2097struct tm *tp;
2098; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002099EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002100if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002101 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002102 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002103else
2104 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002105 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002106fi
2107rm -f conftest*
2108
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002109fi
2110echo "$ac_t""$ac_cv_header_time" 1>&4
2111if test $ac_cv_header_time = yes; then
2112 cat >> confdefs.h <<\EOF
2113#define TIME_WITH_SYS_TIME 1
2114EOF
2115
2116fi
2117
2118echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
2119if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&4
2121else
2122 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002123#line 2124 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002124#include "confdefs.h"
2125#include <sys/types.h>
2126#include <time.h>
2127int main() { return 0; }
2128int t() {
2129struct tm *tp; tp->tm_sec;
2130; return 0; }
2131EOF
2132if eval $ac_compile; then
2133 rm -rf conftest*
2134 ac_cv_struct_tm=time.h
2135else
2136 rm -rf conftest*
2137 ac_cv_struct_tm=sys/time.h
2138fi
2139rm -f conftest*
2140
2141fi
2142echo "$ac_t""$ac_cv_struct_tm" 1>&4
2143if test $ac_cv_struct_tm = sys/time.h; then
2144 cat >> confdefs.h <<\EOF
2145#define TM_IN_SYS_TIME 1
2146EOF
2147
2148fi
2149
2150echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
2151if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&4
2153else
2154 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002155#line 2156 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002156#include "confdefs.h"
2157#include <sys/types.h>
2158#include <$ac_cv_struct_tm>
2159int main() { return 0; }
2160int t() {
2161struct tm tm; tm.tm_zone;
2162; return 0; }
2163EOF
2164if eval $ac_compile; then
2165 rm -rf conftest*
2166 ac_cv_struct_tm_zone=yes
2167else
2168 rm -rf conftest*
2169 ac_cv_struct_tm_zone=no
2170fi
2171rm -f conftest*
2172
2173fi
2174echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
2175if test "$ac_cv_struct_tm_zone" = yes; then
2176 cat >> confdefs.h <<\EOF
2177#define HAVE_TM_ZONE 1
2178EOF
2179
2180else
2181 echo $ac_n "checking for tzname""... $ac_c" 1>&4
2182if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&4
2184else
2185 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002186#line 2187 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002187#include "confdefs.h"
2188#include <time.h>
2189#ifndef tzname /* For SGI. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002190extern char *tzname[]; /* RS6000 and others reject char **tzname. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00002191#endif
Guido van Rossum7f43da71994-08-01 12:15:30 +00002192int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002193int t() {
2194atoi(*tzname);
2195; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002196EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002197if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002198 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002199 ac_cv_var_tzname=yes
2200else
2201 rm -rf conftest*
2202 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002203fi
2204rm -f conftest*
2205
2206fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002207 echo "$ac_t""$ac_cv_var_tzname" 1>&4
2208 if test $ac_cv_var_tzname = yes; then
2209 cat >> confdefs.h <<\EOF
2210#define HAVE_TZNAME 1
2211EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002212
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002213 fi
2214fi
2215
2216
2217echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&4
2218if eval "test \"`echo '${'ac_cv_header_time_altzone'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&4
2220else
2221 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002222#line 2223 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002223#include "confdefs.h"
2224#include <time.h>
2225int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002226int t() {
2227return altzone;
2228; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002229EOF
2230if eval $ac_compile; then
2231 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002232 ac_cv_header_time_altzone=yes
2233else
2234 rm -rf conftest*
2235 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +00002236fi
2237rm -f conftest*
2238
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002239fi
2240
2241echo "$ac_t""$ac_cv_header_time_altzone" 1>&4
2242if test $ac_cv_header_time_altzone = yes; then
2243 cat >> confdefs.h <<\EOF
2244#define HAVE_ALTZONE 1
2245EOF
2246
2247fi
2248
Guido van Rossumda88dad1995-01-26 00:46:29 +00002249was_it_defined=no
2250echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002251cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002252#line 2253 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002253#include "confdefs.h"
2254
2255#include <sys/types.h>
2256#include <sys/select.h>
2257#include <sys/time.h>
2258
2259int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002260int t() {
2261;
2262; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002263EOF
2264if eval $ac_compile; then
2265 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002266 cat >> confdefs.h <<\EOF
2267#define SYS_SELECT_WITH_SYS_TIME 1
2268EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002269 was_it_defined=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002270fi
2271rm -f conftest*
2272
Guido van Rossumda88dad1995-01-26 00:46:29 +00002273echo "$ac_t""$was_it_defined" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002274
2275# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +00002276
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002277echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&4
2278if eval "test \"`echo '${'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&4
2280else
2281 if test "$GCC" = yes; then
2282 # GCC predefines this symbol on systems where it applies.
2283cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002284#line 2285 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002285#include "confdefs.h"
2286#ifdef __CHAR_UNSIGNED__
2287 yes
2288#endif
2289
2290EOF
2291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2292 egrep "yes" >/dev/null 2>&1; then
2293 rm -rf conftest*
2294 ac_cv_c_char_unsigned=yes
2295else
2296 rm -rf conftest*
2297 ac_cv_c_char_unsigned=no
2298fi
2299rm -f conftest*
2300
2301else
2302if test "$cross_compiling" = yes; then
2303 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2304else
2305cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002306#line 2307 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002307#include "confdefs.h"
2308/* volatile prevents gcc2 from optimizing the test away on sparcs. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002309#if !defined(__STDC__) || __STDC__ != 1
Guido van Rossum7f43da71994-08-01 12:15:30 +00002310#define volatile
2311#endif
2312main() {
Guido van Rossum7f43da71994-08-01 12:15:30 +00002313 volatile char c = 255; exit(c < 0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00002314}
2315EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002316eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +00002317if test -s conftest && (./conftest; exit) 2>/dev/null; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002318 ac_cv_c_char_unsigned=yes
2319else
2320 ac_cv_c_char_unsigned=no
2321fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002322fi
2323rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002324fi
2325fi
2326echo "$ac_t""$ac_cv_c_char_unsigned" 1>&4
2327if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2328 cat >> confdefs.h <<\EOF
2329#define __CHAR_UNSIGNED__ 1
2330EOF
2331
2332fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002333
2334
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002335echo $ac_n "checking for working const""... $ac_c" 1>&4
2336if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&4
2338else
2339 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002340#line 2341 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002341#include "confdefs.h"
2342
2343int main() { return 0; }
2344int t() {
2345
2346/* Ultrix mips cc rejects this. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00002347typedef int charset[2]; const charset x;
2348/* SunOS 4.1.1 cc rejects this. */
2349char const *const *ccp;
2350char **p;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002351/* NEC SVR4.0.2 mips cc rejects this. */
2352struct point {int x, y;};
2353static struct point const zero;
Guido van Rossum627b2d71993-12-24 10:39:16 +00002354/* AIX XL C 1.02.0.0 rejects this.
2355 It does not let you subtract one const X* pointer from another in an arm
2356 of an if-expression whose if-part is not a constant expression */
2357const char *g = "string";
2358ccp = &g + (g ? g-g : 0);
2359/* HPUX 7.0 cc rejects these. */
2360++ccp;
2361p = (char**) ccp;
2362ccp = (char const *const *) p;
2363{ /* SCO 3.2v4 cc rejects this. */
2364 char *t;
2365 char const *s = 0 ? (char *) 0 : (char const *) 0;
2366
2367 *t++ = 0;
2368}
2369{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002370 int x[] = {25, 17};
Guido van Rossum627b2d71993-12-24 10:39:16 +00002371 const int *foo = &x[0];
2372 ++foo;
2373}
2374{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2375 typedef const int *iptr;
2376 iptr p = 0;
2377 ++p;
2378}
2379{ /* AIX XL C 1.02.0.0 rejects this saying
2380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2381 struct s { int j; const int *ap[3]; };
2382 struct s *b; b->j = 5;
2383}
2384{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2385 const int foo = 10;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002386}
2387
2388; return 0; }
2389EOF
2390if eval $ac_compile; then
2391 rm -rf conftest*
2392 ac_cv_c_const=yes
2393else
2394 rm -rf conftest*
2395 ac_cv_c_const=no
2396fi
2397rm -f conftest*
2398
2399fi
2400echo "$ac_t""$ac_cv_c_const" 1>&4
2401if test $ac_cv_c_const = no; then
2402 cat >> confdefs.h <<\EOF
2403#define const
2404EOF
2405
2406fi
2407
2408
Guido van Rossumda88dad1995-01-26 00:46:29 +00002409works=no
2410echo $ac_n "checking for working volatile""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002411cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002412#line 2413 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002413#include "confdefs.h"
2414
Guido van Rossum7f43da71994-08-01 12:15:30 +00002415int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002416int t() {
2417volatile int x; x = 0;
2418; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002419EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002420if eval $ac_compile; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00002421 rm -rf conftest*
2422 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002423else
2424 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002425 cat >> confdefs.h <<\EOF
2426#define volatile
2427EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002428
2429fi
2430rm -f conftest*
2431
Guido van Rossumda88dad1995-01-26 00:46:29 +00002432echo "$ac_t""$works" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002433
Guido van Rossumda88dad1995-01-26 00:46:29 +00002434works=no
2435echo $ac_n "checking for working signed char""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002436cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002437#line 2438 "configure"
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002438#include "confdefs.h"
2439
2440int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002441int t() {
2442signed char c;
2443; return 0; }
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002444EOF
2445if eval $ac_compile; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00002446 rm -rf conftest*
2447 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +00002448else
2449 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002450 cat >> confdefs.h <<\EOF
2451#define signed
Guido van Rossum627b2d71993-12-24 10:39:16 +00002452EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002453
2454fi
2455rm -f conftest*
2456
Guido van Rossumda88dad1995-01-26 00:46:29 +00002457echo "$ac_t""$works" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002458
Guido van Rossumda88dad1995-01-26 00:46:29 +00002459have_prototypes=no
2460echo $ac_n "checking for prototypes""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002461cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002462#line 2463 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002463#include "confdefs.h"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002464int foo(int x) { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002465int main() { return 0; }
2466int t() {
2467return foo(10);
2468; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002469EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002470if eval $ac_compile; then
2471 rm -rf conftest*
2472 cat >> confdefs.h <<\EOF
2473#define HAVE_PROTOTYPES 1
2474EOF
2475 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002476fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002477rm -f conftest*
Guido van Rossum7f43da71994-08-01 12:15:30 +00002478
Guido van Rossumda88dad1995-01-26 00:46:29 +00002479echo "$ac_t""$have_prototypes" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002480
Guido van Rossumda88dad1995-01-26 00:46:29 +00002481works=no
2482echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002483cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002484#line 2485 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002485#include "confdefs.h"
2486
2487#include <stdarg.h>
2488int foo(int x, ...) { return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002489
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002490int main() { return 0; }
2491int t() {
2492return foo(10, 11, 12);
2493; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002494EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002495if eval $ac_compile; then
2496 rm -rf conftest*
2497 cat >> confdefs.h <<\EOF
2498#define HAVE_STDARG_PROTOTYPES 1
2499EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002500 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002501fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002502rm -f conftest*
2503
Guido van Rossumda88dad1995-01-26 00:46:29 +00002504echo "$ac_t""$works" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002505
Guido van Rossumda88dad1995-01-26 00:46:29 +00002506if test "$have_prototypes" = yes; then
2507bad_prototypes=no
2508echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002509cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002510#line 2511 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002511#include "confdefs.h"
2512#include <unistd.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00002513int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002514int t() {
2515char **t;execve("@",t,t);
2516; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002517EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002518if eval $ac_compile; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002519 :
2520else
2521 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002522 cat >> confdefs.h <<\EOF
2523#define BAD_EXEC_PROTOTYPES 1
2524EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002525 bad_prototypes=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002526fi
2527rm -f conftest*
2528
Guido van Rossumda88dad1995-01-26 00:46:29 +00002529echo "$ac_t""$bad_prototypes" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002530fi
2531
Guido van Rossumda88dad1995-01-26 00:46:29 +00002532bad_forward=no
2533echo $ac_n "checking for bad static forward""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002534if test "$cross_compiling" = yes; then
2535 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2536else
2537cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002538#line 2539 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002539#include "confdefs.h"
2540
2541struct s { int a; int b; };
2542static struct s foo;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002543int foobar() {
2544 static int random;
2545 random = (int) &foo;
2546 return random;
2547}
Guido van Rossum7f43da71994-08-01 12:15:30 +00002548static struct s foo = { 1, 2 };
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002549main() {
2550 exit(!((int)&foo == foobar()));
2551}
Guido van Rossum7f43da71994-08-01 12:15:30 +00002552
2553EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002554eval $ac_link
Guido van Rossum7f43da71994-08-01 12:15:30 +00002555if test -s conftest && (./conftest; exit) 2>/dev/null; then
2556 :
2557else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002558 cat >> confdefs.h <<\EOF
2559#define BAD_STATIC_FORWARD 1
2560EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002561 bad_forward=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002562fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002563fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00002564rm -fr conftest*
Guido van Rossumda88dad1995-01-26 00:46:29 +00002565echo "$ac_t""$bad_forward" 1>&4
Guido van Rossum7f43da71994-08-01 12:15:30 +00002566
Guido van Rossumda88dad1995-01-26 00:46:29 +00002567va_list_is_array=no
2568echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002569cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002570#line 2571 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002571#include "confdefs.h"
2572
2573#ifdef HAVE_STDARG_PROTOTYPES
2574#include <stdarg.h>
2575#else
2576#include <varargs.h>
2577#endif
2578
2579int main() { return 0; }
2580int t() {
2581va_list list1, list2; list1 = list2;
2582; return 0; }
2583EOF
2584if eval $ac_compile; then
2585 :
2586else
2587 rm -rf conftest*
2588 cat >> confdefs.h <<\EOF
2589#define VA_LIST_IS_ARRAY 1
2590EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002591 va_list_is_array=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002592fi
2593rm -f conftest*
2594
Guido van Rossumda88dad1995-01-26 00:46:29 +00002595echo "$ac_t""$va_list_is_array" 1>&4
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002596
Guido van Rossum627b2d71993-12-24 10:39:16 +00002597# checks for system services
2598# (none yet)
2599
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002600# Linux requires this for correct f.p. operations
2601echo $ac_n "checking for -lieee""... $ac_c" 1>&4
2602if eval "test \"`echo '${'ac_cv_lib_ieee'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&4
2604else
2605 ac_save_LIBS="$LIBS"
2606LIBS="$LIBS -lieee "
2607cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002608#line 2609 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002609#include "confdefs.h"
2610
Guido van Rossum7f43da71994-08-01 12:15:30 +00002611int main() { return 0; }
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002612int t() {
2613__fpu_control()
2614; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002615EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002616if eval $ac_link; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002617 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002618 eval "ac_cv_lib_ieee=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002619else
Guido van Rossum627b2d71993-12-24 10:39:16 +00002620 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002621 eval "ac_cv_lib_ieee=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002622fi
2623rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002624LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002625
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002626fi
2627if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then
2628 echo "$ac_t""yes" 1>&4
2629 ac_tr_lib=HAVE_LIB`echo ieee | tr '[a-z]' '[A-Z]'`
2630 cat >> confdefs.h <<EOF
2631#define $ac_tr_lib 1
2632EOF
2633
2634 LIBS="$LIBS -lieee"
2635
2636else
2637 echo "$ac_t""no" 1>&4
Guido van Rossum627b2d71993-12-24 10:39:16 +00002638fi
2639
2640
Guido van Rossum7f43da71994-08-01 12:15:30 +00002641# check for --with-libm=...
2642
2643LIBM=-lm
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002644# Check whether --with-libm or --without-libm was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002645withval="$with_libm"
2646if test -n "$withval"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002647
2648if test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002649then LIBM=$withval
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002650else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002651fi
2652fi
2653
2654
2655# check for --with-libc=...
2656
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002657# Check whether --with-libc or --without-libc was given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002658withval="$with_libc"
2659if test -n "$withval"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002660
2661if test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00002662then LIBC=$withval
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002663else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00002664fi
2665fi
2666
2667
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00002668# check for hypot() in math library
2669LIBS_SAVE=$LIBS
2670LIBS="$LIBS $LIBM"
2671for ac_func in hypot
2672do
2673echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
2674if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&4
2676else
2677 cat > conftest.$ac_ext <<EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00002678#line 2679 "configure"
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00002679#include "confdefs.h"
2680#include <ctype.h> /* Arbitrary system header to define __stub macros. */
2681int main() { return 0; }
2682int t() {
2683
2684/* The GNU C library defines this for functions which it implements
2685 to always fail with ENOSYS. Some functions are actually named
2686 something starting with __ and the normal name is an alias. */
2687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2688choke me
2689#else
2690/* Override any gcc2 internal prototype to avoid an error. */
2691char $ac_func(); $ac_func();
2692#endif
2693
2694; return 0; }
2695EOF
2696if eval $ac_link; then
2697 rm -rf conftest*
2698 eval "ac_cv_func_$ac_func=yes"
2699else
2700 rm -rf conftest*
2701 eval "ac_cv_func_$ac_func=no"
2702fi
2703rm -f conftest*
2704
2705fi
2706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2707 echo "$ac_t""yes" 1>&4
2708 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
2709 cat >> confdefs.h <<EOF
2710#define $ac_tr_func 1
2711EOF
2712
2713else
2714 echo "$ac_t""no" 1>&4
2715fi
2716done
2717
2718LIBS=$LIBS_SAVE
2719
Guido van Rossumda88dad1995-01-26 00:46:29 +00002720# check for getopt
2721echo $ac_n "checking for genuine getopt""... $ac_c" 1>&4
2722if eval "test \"`echo '${'ac_cv_func_getopt'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&4
2724else
2725 if test "$cross_compiling" = yes; then
2726 ac_cv_func_getopt=no
2727else
2728cat > conftest.$ac_ext <<EOF
2729#line 2730 "configure"
2730#include "confdefs.h"
2731#include <stdio.h>
2732extern int optind, opterr, getopt();
2733extern char* optarg;
2734int main() {
2735 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
2736 opterr = 0;
2737 if (getopt(3, av, "f:") == 'f') { exit(1); }
2738 exit(0);
2739}
2740EOF
2741eval $ac_link
2742if test -s conftest && (./conftest; exit) 2>/dev/null; then
2743 ac_cv_func_getopt=yes
2744else
2745 ac_cv_func_getopt=no
2746fi
2747fi
2748rm -fr conftest*
2749fi
2750echo "$ac_t""$ac_cv_func_getopt" 1>&4
2751test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
2752
Guido van Rossum627b2d71993-12-24 10:39:16 +00002753# generate output files
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002754trap '' 1 2 15
2755if test -w $cache_file; then
2756echo "updating cache $cache_file"
2757cat > $cache_file <<\EOF
2758# This file is a shell script that caches the results of configure
2759# tests run on this system so they can be shared between configure
2760# scripts and configure runs. It is not useful on other systems.
2761# If it contains results you don't want to keep, you may remove or edit it.
2762#
2763# By default, configure uses ./config.cache as the cache file,
2764# creating it if it does not exist already. You can give configure
2765# the --cache-file=FILE option to use a different cache file; that is
2766# what configure does when it calls configure scripts in
2767# subdirectories, so they share the cache.
2768# Giving --cache-file=/dev/null disables caching, for debugging configure.
2769# config.status only pays attention to the cache file if you give it the
2770# --recheck option to rerun configure.
2771#
2772EOF
2773# Ultrix sh set writes to stderr and can't be redirected directly.
2774(set) 2>&1 |
2775 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
2776 >> $cache_file
2777else
2778echo "not updating unwritable cache $cache_file"
2779fi
Guido van Rossum0a516c91994-09-12 10:58:40 +00002780
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002781trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2782
2783test "x$prefix" = xNONE && prefix=$ac_default_prefix
2784# Let make expand exec_prefix.
2785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +00002786
Guido van Rossum7f43da71994-08-01 12:15:30 +00002787# Any assignment to VPATH causes Sun make to only execute
2788# the first set of double-colon rules, so remove it if not needed.
2789# If there is a colon in the path, we need to keep it.
2790if test "x$srcdir" = x.; then
2791 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2792fi
2793
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002794trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
Guido van Rossum627b2d71993-12-24 10:39:16 +00002795
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002796DEFS=-DHAVE_CONFIG_H
2797
2798# Without the "./", some shells look in PATH for config.status.
2799: ${CONFIG_STATUS=./config.status}
2800
2801echo creating $CONFIG_STATUS
2802rm -f $CONFIG_STATUS
2803cat > $CONFIG_STATUS <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002804#!/bin/sh
2805# Generated automatically by configure.
2806# Run this file to recreate the current configuration.
2807# This directory was configured as follows,
2808# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2809#
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002810# $0 $ac_configure_args
2811#
2812# Compiler output produced by configure, useful for debugging
2813# configure, is in ./config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +00002814
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002815ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002816for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +00002817do
Guido van Rossum7f43da71994-08-01 12:15:30 +00002818 case "\$ac_option" in
2819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002820 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2821 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00002822 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002823 echo "$CONFIG_STATUS generated by autoconf version 2.0"
Guido van Rossum7f43da71994-08-01 12:15:30 +00002824 exit 0 ;;
2825 -help | --help | --hel | --he | --h)
2826 echo "\$ac_cs_usage"; exit 0 ;;
2827 *) echo "\$ac_cs_usage"; exit 1 ;;
Guido van Rossum627b2d71993-12-24 10:39:16 +00002828 esac
2829done
2830
Guido van Rossum7f43da71994-08-01 12:15:30 +00002831ac_given_srcdir=$srcdir
Guido van Rossum627b2d71993-12-24 10:39:16 +00002832
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002833trap 'rm -fr Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre config.h conftest*; exit 1' 1 2 15
Guido van Rossum7f43da71994-08-01 12:15:30 +00002834
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002835# Protect against being on the right side of a sed subst in config.status.
2836sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2837 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00002838$ac_vpsub
Guido van Rossum627b2d71993-12-24 10:39:16 +00002839$extrasub
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002840s%@CFLAGS@%$CFLAGS%g
2841s%@CPPFLAGS@%$CPPFLAGS%g
2842s%@CXXFLAGS@%$CXXFLAGS%g
2843s%@DEFS@%$DEFS%g
2844s%@LDFLAGS@%$LDFLAGS%g
2845s%@LIBS@%$LIBS%g
2846s%@exec_prefix@%$exec_prefix%g
2847s%@prefix@%$prefix%g
2848s%@program_transform_name@%$program_transform_name%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002849s%@CC@%$CC%g
2850s%@RANLIB@%$RANLIB%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002851s%@AR@%$AR%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00002852s%@INSTALL@%$INSTALL%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00002853s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2854s%@INSTALL_DATA@%$INSTALL_DATA%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00002855s%@OPT@%$OPT%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002856s%@CPP@%$CPP%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00002857s%@MACHDEP@%$MACHDEP%g
2858s%@SO@%$SO%g
2859s%@LDSHARED@%$LDSHARED%g
2860s%@CCSHARED@%$CCSHARED%g
2861s%@LINKFORSHARED@%$LINKFORSHARED%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002862s%@DLINCLDIR@%$DLINCLDIR%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002863s%@LIBOBJS@%$LIBOBJS%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002864s%@LIBM@%$LIBM%g
2865s%@LIBC@%$LIBC%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002866
2867CEOF
2868EOF
2869cat >> $CONFIG_STATUS <<EOF
2870
2871CONFIG_FILES=\${CONFIG_FILES-"Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre"}
2872EOF
2873cat >> $CONFIG_STATUS <<\EOF
2874for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2875 # Support "outfile[:infile]", defaulting infile="outfile.in".
2876 case "$ac_file" in
2877 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2878 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2879 *) ac_file_in="${ac_file}.in" ;;
2880 esac
2881
2882 # Adjust relative srcdir, etc. for subdirectories.
2883
2884 # Remove last slash and all that follows it. Not all systems have dirname.
2885 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2886 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2887 # The file is in a subdirectory.
2888 test ! -d "$ac_dir" && mkdir "$ac_dir"
2889 ac_dir_suffix="/$ac_dir"
2890 # A "../" for each directory in $ac_dir_suffix.
2891 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2892 else
2893 ac_dir_suffix= ac_dots=
2894 fi
2895
2896 case "$ac_given_srcdir" in
2897 .) srcdir=.
2898 if test -z "$ac_dots"; then top_srcdir=.
2899 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2900 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2901 *) # Relative path.
2902 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2903 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2904 esac
2905
2906 echo creating "$ac_file"
2907 rm -f "$ac_file"
2908 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2909 case "$ac_file" in
2910 *Makefile*) ac_comsub="1i\\
2911# $configure_input" ;;
2912 *) ac_comsub= ;;
2913 esac
2914 sed -e "$ac_comsub
2915s%@configure_input@%$configure_input%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00002916s%@srcdir@%$srcdir%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00002917s%@top_srcdir@%$top_srcdir%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002918" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
Guido van Rossum627b2d71993-12-24 10:39:16 +00002919fi; done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002920rm -f conftest.subs
Guido van Rossum627b2d71993-12-24 10:39:16 +00002921
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002922# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2923# NAME is the cpp macro being defined and VALUE is the value it is being given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00002924#
2925# ac_d sets the value in "#define NAME VALUE" lines.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002926ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2927ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002928ac_dC='\3'
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002929ac_dD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002930# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002931ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2932ac_uB='\([ ]\)%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002933ac_uC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002934ac_uD='\4%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002935# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002936ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2937ac_eB='$%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002938ac_eC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002939ac_eD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00002940
2941CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002942for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2943 # Support "outfile[:infile]", defaulting infile="outfile.in".
2944 case "$ac_file" in
2945 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2946 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2947 *) ac_file_in="${ac_file}.in" ;;
2948 esac
2949
Guido van Rossum7f43da71994-08-01 12:15:30 +00002950 echo creating $ac_file
2951
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002952 rm -f conftest.frag conftest.in conftest.out
2953 cp $ac_given_srcdir/$ac_file_in conftest.in
2954
2955EOF
2956
2957# Transform confdefs.h into a sed script conftest.vals that substitutes
2958# the proper values into config.h.in to produce config.h. And first:
2959# Protect against being on the right side of a sed subst in config.status.
2960# Protect against being in an unquoted here document in config.status.
2961rm -f conftest.vals
2962cat > conftest.hdr <<\EOF
2963s/[\\&%]/\\&/g
2964s%[\\$`]%\\&%g
2965s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2966s%ac_d%ac_u%gp
2967s%ac_u%ac_e%gp
2968EOF
2969sed -n -f conftest.hdr confdefs.h > conftest.vals
2970rm -f conftest.hdr
2971
2972# This sed command replaces #undef with comments. This is necessary, for
2973# example, in the case of _POSIX_SOURCE, which is predefined and required
2974# on some systems where configure will not decide to define it.
2975cat >> conftest.vals <<\EOF
2976s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2977EOF
2978
2979# Break up conftest.vals because some shells have a limit on
2980# the size of here documents, and old seds have small limits too.
2981# Maximum number of lines to put in a single here document.
2982ac_max_here_lines=12
2983
2984rm -f conftest.tail
2985while :
2986do
2987 ac_lines=`grep -c . conftest.vals`
2988 # grep -c gives empty output for an empty file on some AIX systems.
2989 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2990 # Write a limited-size here document to conftest.frag.
2991 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2992 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2993 echo 'CEOF
2994 sed -f conftest.frag conftest.in > conftest.out
2995 rm -f conftest.in
2996 mv conftest.out conftest.in
2997' >> $CONFIG_STATUS
2998 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2999 rm -f conftest.vals
3000 mv conftest.tail conftest.vals
3001done
3002rm -f conftest.vals
3003
3004cat >> $CONFIG_STATUS <<\EOF
3005 rm -f conftest.frag conftest.h
Guido van Rossum7f43da71994-08-01 12:15:30 +00003006 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003007 cat conftest.in >> conftest.h
3008 rm -f conftest.in
Guido van Rossum7f43da71994-08-01 12:15:30 +00003009 if cmp -s $ac_file conftest.h 2>/dev/null; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00003010 echo "$ac_file is unchanged"
3011 rm -f conftest.h
3012 else
3013 rm -f $ac_file
3014 mv conftest.h $ac_file
3015 fi
3016fi; done
3017
3018
Guido van Rossum627b2d71993-12-24 10:39:16 +00003019
3020exit 0
3021EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003022chmod +x $CONFIG_STATUS
3023rm -fr confdefs* $ac_clean_files
3024test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
Guido van Rossum627b2d71993-12-24 10:39:16 +00003025