blob: f56a9c5b8a30d22d4f23d016f50b71cf8f73f642 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:281#! /bin/sh
Guido van Rossum627b2d71993-12-24 10:39:162# Guess values for system-dependent variables and create Makefiles.
Ned Deily4829bc62016-09-12 21:29:043# Generated by GNU Autoconf 2.69 for python 3.7.
Guido van Rossum76be6ed1995-01-02 18:33:544#
Ned Deily61e371a2022-09-06 06:57:175# Report bugs to <https://github.com/python/cpython/issues/>.
Martin v. Löwis1d459062005-03-14 21:23:336#
Matthias Kloseb9621712010-04-24 17:59:497#
Ross Lagerwall1b863eb2012-10-29 17:31:548# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Matthias Kloseb9621712010-04-24 17:59:499#
10#
Guido van Rossum76be6ed1995-01-02 18:33:5411# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Matthias Kloseb9621712010-04-24 17:59:4913## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Martin v. Löwis11437992002-04-12 09:54:0316
Thomas Wouters47b49bf2007-08-30 22:15:3317# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:4919if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0320 emulate sh
21 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:4922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0423 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:3325 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:4126else
Matthias Kloseb9621712010-04-24 17:59:4927 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3332esac
Martin v. Löwis11437992002-04-12 09:54:0333fi
Thomas Wouters89f507f2006-12-13 04:49:3034
35
Matthias Kloseb9621712010-04-24 17:59:4936as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Martin v. Löwis11437992002-04-12 09:54:0373
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:4976 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Thomas Wouters47b49bf2007-08-30 22:15:3381fi
Martin v. Löwis11437992002-04-12 09:54:0382
Thomas Wouters47b49bf2007-08-30 22:15:3383
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Thomas Wouters47b49bf2007-08-30 22:15:3389IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 11:06:0992as_myself=
Matthias Kloseb9621712010-04-24 17:59:4993case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:3394 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0396for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:49100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Thomas Wouters47b49bf2007-08-30 22:15:33102IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:03103
Thomas Wouters47b49bf2007-08-30 22:15:33104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Matthias Kloseb9621712010-04-24 17:59:49112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:33114fi
115
Matthias Kloseb9621712010-04-24 17:59:49116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Thomas Wouters47b49bf2007-08-30 22:15:33123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:49129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:33133
Matthias Kloseb9621712010-04-24 17:59:49134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Ross Lagerwall1b863eb2012-10-29 17:31:54137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
Matthias Kloseb9621712010-04-24 17:59:49162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
Ross Lagerwall1b863eb2012-10-29 17:31:54195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Matthias Kloseb9621712010-04-24 17:59:49197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
Ross Lagerwall1b863eb2012-10-29 17:31:54241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
Matthias Kloseb9621712010-04-24 17:59:49260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
Ned Deily61e371a2022-09-06 06:57:17270$0: https://github.com/python/cpython/issues/ about your system, including
Matthias Kloseb9621712010-04-24 17:59:49271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 05:30:30358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:49359
360
361} # as_fn_mkdir_p
Ross Lagerwall1b863eb2012-10-29 17:31:54362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
Matthias Kloseb9621712010-04-24 17:59:49370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
Ross Lagerwallb0ae53d2011-06-10 05:30:30406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:49408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Ross Lagerwallb0ae53d2011-06-10 05:30:30410# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:49411as_fn_error ()
412{
Ross Lagerwallb0ae53d2011-06-10 05:30:30413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Kloseb9621712010-04-24 17:59:49417 fi
Ross Lagerwallb0ae53d2011-06-10 05:30:30418 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:49419 as_fn_exit $as_status
420} # as_fn_error
421
Thomas Wouters47b49bf2007-08-30 22:15:33422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
Matthias Kloseb9621712010-04-24 17:59:49435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
Thomas Wouters47b49bf2007-08-30 22:15:33440
Thomas Wouters47b49bf2007-08-30 22:15:33441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:49445$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:33446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
Matthias Kloseb9621712010-04-24 17:59:49460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
Thomas Wouters47b49bf2007-08-30 22:15:33466
467
Matthias Kloseb9621712010-04-24 17:59:49468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Thomas Wouters47b49bf2007-08-30 22:15:33473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
Martin v. Löwis11437992002-04-12 09:54:03477 sed '
Thomas Wouters47b49bf2007-08-30 22:15:33478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
Martin v. Löwis11437992002-04-12 09:54:03482 N
Thomas Wouters47b49bf2007-08-30 22:15:33483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Martin v. Löwis11437992002-04-12 09:54:03485 t loop
Thomas Wouters47b49bf2007-08-30 22:15:33486 s/-\n.*//
Martin v. Löwis11437992002-04-12 09:54:03487 ' >$as_me.lineno &&
Thomas Wouters47b49bf2007-08-30 22:15:33488 chmod +x "$as_me.lineno" ||
Matthias Kloseb9621712010-04-24 17:59:49489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Martin v. Löwis11437992002-04-12 09:54:03490
Ross Lagerwall1b863eb2012-10-29 17:31:54491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
Martin v. Löwis11437992002-04-12 09:54:03495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
Thomas Wouters47b49bf2007-08-30 22:15:33497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
Martin v. Löwis11437992002-04-12 09:54:03499 # Exit status is that of the last command.
500 exit
501}
502
Thomas Wouters47b49bf2007-08-30 22:15:33503ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:49504case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:33505-n*)
Matthias Kloseb9621712010-04-24 17:59:49506 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:33507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:49508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:33511 esac;;
512*)
513 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:03514esac
Ronald Oussoren74f29b42009-09-20 20:09:26515
Martin v. Löwis11437992002-04-12 09:54:03516rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:33517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:49521 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:33522fi
Matthias Kloseb9621712010-04-24 17:59:49523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ross Lagerwall1b863eb2012-10-29 17:31:54529 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:49530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:54531 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
Ross Lagerwall1b863eb2012-10-29 17:31:54535 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:49536 fi
Martin v. Löwis11437992002-04-12 09:54:03537else
Ross Lagerwall1b863eb2012-10-29 17:31:54538 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:03539fi
Thomas Wouters47b49bf2007-08-30 22:15:33540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:03542
Skip Montanaro6dead952003-09-25 14:50:04543if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:49544 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:04545else
Skip Montanarof0d5f792004-08-15 14:08:23546 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:04547 as_mkdir_p=false
548fi
549
Ross Lagerwall1b863eb2012-10-29 17:31:54550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:03552
553# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:23554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03555
556# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:23557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:03558
559
Matthias Kloseb9621712010-04-24 17:59:49560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
Martin v. Löwis11437992002-04-12 09:54:03562
563# Name of the host.
Ross Lagerwallb0ae53d2011-06-10 05:30:30564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Martin v. Löwis11437992002-04-12 09:54:03565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
Martin v. Löwis11437992002-04-12 09:54:03568#
569# Initializations.
570#
Guido van Rossum76be6ed1995-01-02 18:33:54571ac_default_prefix=/usr/local
Thomas Wouters47b49bf2007-08-30 22:15:33572ac_clean_files=
Skip Montanaro6dead952003-09-25 14:50:04573ac_config_libobj_dir=.
Thomas Wouters47b49bf2007-08-30 22:15:33574LIBOBJS=
Martin v. Löwis11437992002-04-12 09:54:03575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
Martin v. Löwis11437992002-04-12 09:54:03579
Martin v. Löwis11437992002-04-12 09:54:03580# Identity of this package.
Martin v. Löwis88afe662002-10-26 13:47:44581PACKAGE_NAME='python'
582PACKAGE_TARNAME='python'
Ned Deily4829bc62016-09-12 21:29:04583PACKAGE_VERSION='3.7'
584PACKAGE_STRING='python 3.7'
Ned Deily61e371a2022-09-06 06:57:17585PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/'
Matthias Kloseb9621712010-04-24 17:59:49586PACKAGE_URL=''
Martin v. Löwis11437992002-04-12 09:54:03587
588ac_unique_file="Include/object.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
Thomas Wouters47b49bf2007-08-30 22:15:33592#ifdef HAVE_SYS_TYPES_H
Martin v. Löwis11437992002-04-12 09:54:03593# include <sys/types.h>
594#endif
Thomas Wouters47b49bf2007-08-30 22:15:33595#ifdef HAVE_SYS_STAT_H
Martin v. Löwis11437992002-04-12 09:54:03596# include <sys/stat.h>
597#endif
Thomas Wouters47b49bf2007-08-30 22:15:33598#ifdef STDC_HEADERS
Martin v. Löwis11437992002-04-12 09:54:03599# include <stdlib.h>
600# include <stddef.h>
601#else
Thomas Wouters47b49bf2007-08-30 22:15:33602# ifdef HAVE_STDLIB_H
Martin v. Löwis11437992002-04-12 09:54:03603# include <stdlib.h>
604# endif
605#endif
Thomas Wouters47b49bf2007-08-30 22:15:33606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Martin v. Löwis11437992002-04-12 09:54:03608# include <memory.h>
609# endif
610# include <string.h>
611#endif
Thomas Wouters47b49bf2007-08-30 22:15:33612#ifdef HAVE_STRINGS_H
Martin v. Löwis11437992002-04-12 09:54:03613# include <strings.h>
614#endif
Thomas Wouters47b49bf2007-08-30 22:15:33615#ifdef HAVE_INTTYPES_H
Martin v. Löwis11437992002-04-12 09:54:03616# include <inttypes.h>
Thomas Wouters477c8d52006-05-27 19:21:47617#endif
Thomas Wouters47b49bf2007-08-30 22:15:33618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
Martin v. Löwis11437992002-04-12 09:54:03622# include <unistd.h>
623#endif"
624
Matthias Kloseb9621712010-04-24 17:59:49625ac_subst_vars='LTLIBOBJS
Christian Heimesff5be6e2018-01-20 12:19:21626OPENSSL_LDFLAGS
627OPENSSL_LIBS
628OPENSSL_INCLUDES
Ned Deily322f5ba2013-11-22 07:01:59629ENSUREPIP
Ronald Oussoren74f29b42009-09-20 20:09:26630SRCDIRS
Matthias Kloseb9621712010-04-24 17:59:49631THREADHEADERS
doko@python.org87421192013-01-26 10:39:31632LIBPL
633PY_ENABLE_SHARED
doko@ubuntu.comd5537d02013-03-21 20:21:49634EXT_SUFFIX
Barry Warsaw35f3a2c2010-09-03 18:30:30635SOABI
Matthias Kloseb9621712010-04-24 17:59:49636LIBC
637LIBM
638HAVE_GETHOSTBYNAME
639HAVE_GETHOSTBYNAME_R
640HAVE_GETHOSTBYNAME_R_3_ARG
641HAVE_GETHOSTBYNAME_R_5_ARG
642HAVE_GETHOSTBYNAME_R_6_ARG
643LIBOBJS
644TRUE
645MACHDEP_OBJS
646DYNLOADFILE
647DLINCLDIR
Łukasz Langaa785c872016-09-10 00:37:37648DTRACE_OBJS
649DTRACE_HEADERS
650DFLAGS
651DTRACE
Matthias Kloseb9621712010-04-24 17:59:49652LDLAST
Ned Deilyd819b932013-09-06 08:07:05653TCLTK_LIBS
654TCLTK_INCLUDES
Matthias Kloseb9621712010-04-24 17:59:49655LIBFFI_INCLUDEDIR
Victor Stinner8291b5e2015-03-20 15:03:14656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
Matthias Kloseb9621712010-04-24 17:59:49659SHLIBS
660CFLAGSFORSHARED
661LINKFORSHARED
662CCSHARED
663BLDSHARED
664LDCXXSHARED
665LDSHARED
doko@ubuntu.comd5537d02013-03-21 20:21:49666SHLIB_SUFFIX
Matthias Kloseb9621712010-04-24 17:59:49667LIBTOOL_CRUFT
668OTHER_LIBTOOL_OPT
669UNIVERSAL_ARCH_FLAGS
Victor Stinner0198f522018-12-20 15:03:01670LDFLAGS_NODIST
Benjamin Petersonacb8c522014-08-10 03:01:49671CFLAGS_NODIST
Matthias Kloseb9621712010-04-24 17:59:49672BASECFLAGS
Victor Stinner826f83f2017-04-28 13:07:10673CFLAGS_ALIASING
Matthias Kloseb9621712010-04-24 17:59:49674OPT
Brett Cannon7188a3e2015-09-18 22:13:44675LLVM_PROF_FOUND
Gregory P. Smith799520c2016-09-07 23:10:00676LLVM_PROFDATA
Brett Cannon7188a3e2015-09-18 22:13:44677LLVM_PROF_ERR
678LLVM_PROF_FILE
679LLVM_PROF_MERGER
680PGO_PROF_USE_FLAG
681PGO_PROF_GEN_FLAG
Miss Islington (bot)69a3f152018-10-25 00:32:04682LLVM_AR_FOUND
Miss Islington (bot)69a3f152018-10-25 00:32:04683LLVM_AR
Brett Cannon63d98bc2016-09-07 00:12:40684DEF_MAKE_RULE
685DEF_MAKE_ALL_RULE
Barry Warsaw8cf4eae2010-10-16 01:04:07686ABIFLAGS
Matthias Kloseb9621712010-04-24 17:59:49687LN
Matthias Klose93a0ef12012-03-15 17:08:34688MKDIR_P
Matthias Kloseb9621712010-04-24 17:59:49689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
doko@ubuntu.com58844492012-06-30 16:25:32692ac_ct_READELF
693READELF
Matthias Kloseb9621712010-04-24 17:59:49694ARFLAGS
doko@ubuntu.com51f65942012-06-30 12:42:46695ac_ct_AR
Matthias Kloseb9621712010-04-24 17:59:49696AR
Matthias Kloseb9621712010-04-24 17:59:49697GNULD
698LINKCC
Barry Warsaw8cf4eae2010-10-16 01:04:07699LDVERSION
Matthias Kloseb9621712010-04-24 17:59:49700RUNSHARED
701INSTSONAME
702LDLIBRARYDIR
Martin v. Löwisd1fc34d2010-12-30 14:55:47703PY3LIBRARY
Matthias Kloseb9621712010-04-24 17:59:49704BLDLIBRARY
705DLLLIBRARY
706LDLIBRARY
707LIBRARY
708BUILDEXEEXT
709EGREP
Martin v. Löwis48e14d32011-05-09 05:37:45710NO_AS_NEEDED
doko@ubuntu.com55532312016-06-14 06:55:19711MULTIARCH_CPPFLAGS
doko@ubuntu.comd3899c12015-04-15 18:23:14712PLATFORM_TRIPLET
713MULTIARCH
doko@ubuntu.com51f65942012-06-30 12:42:46714ac_ct_CXX
Matthias Kloseb9621712010-04-24 17:59:49715MAINCC
716CXX
Łukasz Langaa785c872016-09-10 00:37:37717SED
doko@ubuntu.comd3899c12015-04-15 18:23:14718GREP
719CPP
Matthias Kloseb9621712010-04-24 17:59:49720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727EXPORT_MACOSX_DEPLOYMENT_TARGET
728CONFIGURE_MACOSX_DEPLOYMENT_TARGET
doko@ubuntu.com1abe1c52012-06-30 18:42:45729_PYTHON_HOST_PLATFORM
Matthias Kloseb9621712010-04-24 17:59:49730MACHDEP
Ronald Oussoren86b33c82010-04-30 11:41:56731FRAMEWORKINSTALLAPPSPREFIX
Matthias Kloseb9621712010-04-24 17:59:49732FRAMEWORKUNIXTOOLSPREFIX
Ned Deilyb8f944f2013-11-22 06:42:25733FRAMEWORKPYTHONW
Matthias Kloseb9621712010-04-24 17:59:49734FRAMEWORKALTINSTALLLAST
735FRAMEWORKALTINSTALLFIRST
736FRAMEWORKINSTALLLAST
737FRAMEWORKINSTALLFIRST
738PYTHONFRAMEWORKINSTALLDIR
739PYTHONFRAMEWORKPREFIX
740PYTHONFRAMEWORKDIR
741PYTHONFRAMEWORKIDENTIFIER
742PYTHONFRAMEWORK
743LIPO_32BIT_FLAGS
744ARCH_RUN_32BIT
745UNIVERSALSDK
746CONFIG_ARGS
747SOVERSION
748VERSION
doko@ubuntu.com1abe1c52012-06-30 18:42:45749PYTHON_FOR_BUILD
Victor Stinnera5c62a82017-05-03 16:21:48750PYTHON_FOR_REGEN
Matthias Kloseca2f6ec2012-03-15 20:30:11751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
Ned Deily5c4b0d02017-03-04 05:19:55759HAS_GIT
760GITBRANCH
761GITTAG
762GITVERSION
Trent Nelson4d4ec652012-10-16 12:51:24763BASECPPFLAGS
Matthias Kloseb9621712010-04-24 17:59:49764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
Skip Montanaro6dead952003-09-25 14:50:04802ac_subst_files=''
Matthias Kloseb9621712010-04-24 17:59:49803ac_user_opts='
804enable_option_checking
805enable_universalsdk
806with_universal_archs
807with_framework_name
808enable_framework
809with_gcc
Zachary Ware5af85642015-12-21 18:09:17810with_icc
Matthias Kloseb9621712010-04-24 17:59:49811with_cxx_main
812with_suffix
813enable_shared
814enable_profiling
815with_pydebug
T. Woutersddbfa2c2017-05-22 23:30:49816with_assertions
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:42817enable_optimizations
Gregory P. Smithd82da9f2016-04-15 23:57:04818with_lto
Christian Heimes985ecdc2013-11-20 10:46:18819with_hash_algorithm
Charles-François Natalid30b0222014-05-08 22:08:51820with_address_sanitizer
Gregory P. Smith5f4d05d2018-11-12 21:48:24821with_memory_sanitizer
822with_undefined_behavior_sanitizer
Matthias Kloseb9621712010-04-24 17:59:49823with_libs
824with_system_expat
825with_system_ffi
Stefan Krah60187b52012-03-23 18:06:27826with_system_libmpdec
Stefan Krahc4ca1f82020-02-29 22:10:26827with_decimal_contextvar
Benjamin Peterson076ed002010-10-31 17:11:02828enable_loadable_sqlite_extensions
Ned Deilyd819b932013-09-06 08:07:05829with_tcltk_includes
830with_tcltk_libs
Matthias Kloseb9621712010-04-24 17:59:49831with_dbmliborder
Matthias Kloseb9621712010-04-24 17:59:49832enable_ipv6
833with_doc_strings
Matthias Kloseb9621712010-04-24 17:59:49834with_pymalloc
Nick Coghlan6ea41862017-06-11 03:16:15835with_c_locale_coercion
Matthias Kloseb9621712010-04-24 17:59:49836with_valgrind
Łukasz Langaa785c872016-09-10 00:37:37837with_dtrace
Matthias Kloseb9621712010-04-24 17:59:49838with_libm
839with_libc
840enable_big_digits
Matthias Kloseb9621712010-04-24 17:59:49841with_computed_gotos
Ned Deily322f5ba2013-11-22 07:01:59842with_ensurepip
Christian Heimesff5be6e2018-01-20 12:19:21843with_openssl
Christian Heimes892d66e2018-01-29 13:10:18844with_ssl_default_suites
Matthias Kloseb9621712010-04-24 17:59:49845'
Thomas Wouters47b49bf2007-08-30 22:15:33846 ac_precious_vars='build_alias
847host_alias
848target_alias
doko@python.orgeab42bf2013-01-26 17:57:19849MACHDEP
Thomas Wouters47b49bf2007-08-30 22:15:33850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
Victor Stinner8291b5e2015-03-20 15:03:14855CPP
856PKG_CONFIG
857PKG_CONFIG_PATH
858PKG_CONFIG_LIBDIR'
Thomas Wouters47b49bf2007-08-30 22:15:33859
Guido van Rossum627b2d71993-12-24 10:39:16860
Guido van Rossum7f43da71994-08-01 12:15:30861# Initialize some variables set by options.
Martin v. Löwis11437992002-04-12 09:54:03862ac_init_help=
863ac_init_version=false
Matthias Kloseb9621712010-04-24 17:59:49864ac_unrecognized_opts=
865ac_unrecognized_sep=
Guido van Rossum7f43da71994-08-01 12:15:30866# The variables have the same names as the options, with
867# dashes changed to underlines.
Martin v. Löwis11437992002-04-12 09:54:03868cache_file=/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54869exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30870no_create=
Guido van Rossum76be6ed1995-01-02 18:33:54871no_recursion=
872prefix=NONE
873program_prefix=NONE
874program_suffix=NONE
875program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30876silent=
Guido van Rossum76be6ed1995-01-02 18:33:54877site=
Guido van Rossum7f43da71994-08-01 12:15:30878srcdir=
Guido van Rossum7f43da71994-08-01 12:15:30879verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54880x_includes=NONE
881x_libraries=NONE
Martin v. Löwis11437992002-04-12 09:54:03882
883# Installation directory options.
884# These are left unexpanded so users can "make install exec_prefix=/foo"
885# and all the variables that are supposed to be based on exec_prefix
886# by default will actually change.
887# Use braces instead of parens because sh, perl, etc. also accept them.
Thomas Wouters47b49bf2007-08-30 22:15:33888# (The list follows the same order as the GNU Coding Standards.)
Guido van Rossum48bdbfc1996-05-28 22:53:48889bindir='${exec_prefix}/bin'
890sbindir='${exec_prefix}/sbin'
891libexecdir='${exec_prefix}/libexec'
Thomas Wouters47b49bf2007-08-30 22:15:33892datarootdir='${prefix}/share'
893datadir='${datarootdir}'
Guido van Rossum48bdbfc1996-05-28 22:53:48894sysconfdir='${prefix}/etc'
895sharedstatedir='${prefix}/com'
896localstatedir='${prefix}/var'
Guido van Rossum48bdbfc1996-05-28 22:53:48897includedir='${prefix}/include'
898oldincludedir='/usr/include'
Thomas Wouters47b49bf2007-08-30 22:15:33899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54908
Guido van Rossum7f43da71994-08-01 12:15:30909ac_prev=
Thomas Wouters47b49bf2007-08-30 22:15:33910ac_dashdash=
Guido van Rossum7f43da71994-08-01 12:15:30911for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16912do
Guido van Rossum7f43da71994-08-01 12:15:30913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
Thomas Wouters47b49bf2007-08-30 22:15:33915 eval $ac_prev=\$ac_option
Guido van Rossum7f43da71994-08-01 12:15:30916 ac_prev=
917 continue
Guido van Rossum627b2d71993-12-24 10:39:16918 fi
Guido van Rossum7f43da71994-08-01 12:15:30919
Thomas Wouters47b49bf2007-08-30 22:15:33920 case $ac_option in
Ross Lagerwallb0ae53d2011-06-10 05:30:30921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
Thomas Wouters47b49bf2007-08-30 22:15:33924 esac
Guido van Rossum7f43da71994-08-01 12:15:30925
Guido van Rossum76be6ed1995-01-02 18:33:54926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
Thomas Wouters47b49bf2007-08-30 22:15:33928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30931
Guido van Rossum48bdbfc1996-05-28 22:53:48932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Martin v. Löwis11437992002-04-12 09:54:03935 bindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48936
937 -build | --build | --buil | --bui | --bu)
Martin v. Löwis11437992002-04-12 09:54:03938 ac_prev=build_alias ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Martin v. Löwis11437992002-04-12 09:54:03940 build_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30941
Guido van Rossum76be6ed1995-01-02 18:33:54942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Martin v. Löwis11437992002-04-12 09:54:03947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
Guido van Rossum76be6ed1995-01-02 18:33:54951
Thomas Wouters47b49bf2007-08-30 22:15:33952 -datadir | --datadir | --datadi | --datad)
Guido van Rossum48bdbfc1996-05-28 22:53:48953 ac_prev=datadir ;;
Thomas Wouters47b49bf2007-08-30 22:15:33954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Martin v. Löwis11437992002-04-12 09:54:03955 datadir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48956
Thomas Wouters47b49bf2007-08-30 22:15:33957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
Guido van Rossum7f43da71994-08-01 12:15:30964 -disable-* | --disable-*)
Matthias Kloseb9621712010-04-24 17:59:49965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54966 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30968 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973"enable_$ac_useropt"
974"*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
Thomas Wouters47b49bf2007-08-30 22:15:33979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:30989
990 -enable-* | --enable-*)
Matthias Kloseb9621712010-04-24 17:59:49991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:54992 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:49993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:30994 as_fn_error $? "invalid feature name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:49995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"enable_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301005
Guido van Rossum7f43da71994-08-01 12:15:301006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
Martin v. Löwis11437992002-04-12 09:54:031013 exec_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301014
1015 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:541016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301018
Martin v. Löwis11437992002-04-12 09:54:031019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
Guido van Rossum7f43da71994-08-01 12:15:301025
1026 -host | --host | --hos | --ho)
Martin v. Löwis11437992002-04-12 09:54:031027 ac_prev=host_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301028 -host=* | --host=* | --hos=* | --ho=*)
Martin v. Löwis11437992002-04-12 09:54:031029 host_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301030
Thomas Wouters47b49bf2007-08-30 22:15:331031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
Guido van Rossum48bdbfc1996-05-28 22:53:481037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
Martin v. Löwis11437992002-04-12 09:54:031042 includedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Martin v. Löwis11437992002-04-12 09:54:031047 infodir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Martin v. Löwis11437992002-04-12 09:54:031052 libdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
Martin v. Löwis11437992002-04-12 09:54:031059 libexecdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481060
Thomas Wouters47b49bf2007-08-30 22:15:331061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
Guido van Rossum48bdbfc1996-05-28 22:53:481066 -localstatedir | --localstatedir | --localstatedi | --localstated \
Thomas Wouters47b49bf2007-08-30 22:15:331067 | --localstate | --localstat | --localsta | --localst | --locals)
Guido van Rossum48bdbfc1996-05-28 22:53:481068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Thomas Wouters47b49bf2007-08-30 22:15:331070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Martin v. Löwis11437992002-04-12 09:54:031071 localstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Martin v. Löwis11437992002-04-12 09:54:031076 mandir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481077
Guido van Rossum7f43da71994-08-01 12:15:301078 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:541079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Martin v. Löwis11437992002-04-12 09:54:031083 | --no-cr | --no-c | -n)
Guido van Rossum7f43da71994-08-01 12:15:301084 no_create=yes ;;
1085
Guido van Rossum76be6ed1995-01-02 18:33:541086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301089
Guido van Rossum48bdbfc1996-05-28 22:53:481090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Martin v. Löwis11437992002-04-12 09:54:031097 oldincludedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481098
Guido van Rossum7f43da71994-08-01 12:15:301099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Martin v. Löwis11437992002-04-12 09:54:031102 prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Martin v. Löwis11437992002-04-12 09:54:031109 program_prefix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Martin v. Löwis11437992002-04-12 09:54:031116 program_suffix=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
Martin v. Löwis11437992002-04-12 09:54:031133 program_transform_name=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301134
Thomas Wouters47b49bf2007-08-30 22:15:331135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
Guido van Rossum7f43da71994-08-01 12:15:301145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
Guido van Rossum48bdbfc1996-05-28 22:53:481149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
Martin v. Löwis11437992002-04-12 09:54:031153 sbindir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
Martin v. Löwis11437992002-04-12 09:54:031164 sharedstatedir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481165
Guido van Rossum76be6ed1995-01-02 18:33:541166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
Martin v. Löwis11437992002-04-12 09:54:031169 site=$ac_optarg ;;
Guido van Rossum76be6ed1995-01-02 18:33:541170
Guido van Rossum7f43da71994-08-01 12:15:301171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Martin v. Löwis11437992002-04-12 09:54:031174 srcdir=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301175
Guido van Rossum48bdbfc1996-05-28 22:53:481176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Martin v. Löwis11437992002-04-12 09:54:031181 sysconfdir=$ac_optarg ;;
Guido van Rossum48bdbfc1996-05-28 22:53:481182
Guido van Rossum7f43da71994-08-01 12:15:301183 -target | --target | --targe | --targ | --tar | --ta | --t)
Martin v. Löwis11437992002-04-12 09:54:031184 ac_prev=target_alias ;;
Guido van Rossum7f43da71994-08-01 12:15:301185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Martin v. Löwis11437992002-04-12 09:54:031186 target_alias=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
Martin v. Löwis11437992002-04-12 09:54:031191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
Guido van Rossum7f43da71994-08-01 12:15:301193
1194 -with-* | --with-*)
Matthias Kloseb9621712010-04-24 17:59:491195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541196 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301198 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301209
1210 -without-* | --without-*)
Matthias Kloseb9621712010-04-24 17:59:491211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Guido van Rossum76be6ed1995-01-02 18:33:541212 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Ross Lagerwallb0ae53d2011-06-10 05:30:301214 as_fn_error $? "invalid package name: $ac_useropt"
Matthias Kloseb9621712010-04-24 17:59:491215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219"with_$ac_useropt"
1220"*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
Guido van Rossum7f43da71994-08-01 12:15:301225
Guido van Rossum76be6ed1995-01-02 18:33:541226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:301229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Martin v. Löwis11437992002-04-12 09:54:031235 x_includes=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Martin v. Löwis11437992002-04-12 09:54:031242 x_libraries=$ac_optarg ;;
Guido van Rossum7f43da71994-08-01 12:15:301243
Ross Lagerwallb0ae53d2011-06-10 05:30:301244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245Try \`$0 --help' for more information"
Guido van Rossum7f43da71994-08-01 12:15:301246 ;;
1247
Martin v. Löwis11437992002-04-12 09:54:031248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
Matthias Kloseb9621712010-04-24 17:59:491251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
Ross Lagerwallb0ae53d2011-06-10 05:30:301253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Matthias Kloseb9621712010-04-24 17:59:491254 esac
Thomas Wouters47b49bf2007-08-30 22:15:331255 eval $ac_envvar=\$ac_optarg
Martin v. Löwis11437992002-04-12 09:54:031256 export $ac_envvar ;;
1257
Guido van Rossum48bdbfc1996-05-28 22:53:481258 *)
Martin v. Löwis11437992002-04-12 09:54:031259 # FIXME: should be removed in autoconf 3.0.
Matthias Kloseb9621712010-04-24 17:59:491260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Martin v. Löwis11437992002-04-12 09:54:031261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Matthias Kloseb9621712010-04-24 17:59:491262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Victor Stinnere0be4232011-10-25 11:06:091263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Guido van Rossum7f43da71994-08-01 12:15:301264 ;;
1265
1266 esac
Guido van Rossum627b2d71993-12-24 10:39:161267done
1268
Guido van Rossum7f43da71994-08-01 12:15:301269if test -n "$ac_prev"; then
Martin v. Löwis11437992002-04-12 09:54:031270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ross Lagerwallb0ae53d2011-06-10 05:30:301271 as_fn_error $? "missing argument to $ac_option"
Guido van Rossum7f43da71994-08-01 12:15:301272fi
1273
Matthias Kloseb9621712010-04-24 17:59:491274if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:301277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Matthias Kloseb9621712010-04-24 17:59:491278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280fi
1281
1282# Check all directory arguments for consistency.
Thomas Wouters47b49bf2007-08-30 22:15:331283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Victor Stinner54030062019-04-13 00:50:311286 libdir localedir mandir
Guido van Rossum76be6ed1995-01-02 18:33:541287do
Thomas Wouters47b49bf2007-08-30 22:15:331288 eval ac_val=\$$ac_var
Matthias Kloseb9621712010-04-24 17:59:491289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
Martin v. Löwis11437992002-04-12 09:54:031296 case $ac_val in
Thomas Wouters47b49bf2007-08-30 22:15:331297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Guido van Rossum7f43da71994-08-01 12:15:301299 esac
Ross Lagerwallb0ae53d2011-06-10 05:30:301300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Martin v. Löwis11437992002-04-12 09:54:031301done
Guido van Rossum627b2d71993-12-24 10:39:161302
Martin v. Löwis11437992002-04-12 09:54:031303# There might be people who depend on the old broken behavior: `$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
Guido van Rossum627b2d71993-12-24 10:39:161309
Martin v. Löwis11437992002-04-12 09:54:031310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
Martin v. Löwis11437992002-04-12 09:54:031314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317fi
1318
1319ac_tool_prefix=
1320test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322test "$silent" = yes && exec 6>/dev/null
1323
Guido van Rossum627b2d71993-12-24 10:39:161324
Thomas Wouters47b49bf2007-08-30 22:15:331325ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326ac_ls_di=`ls -di .` &&
1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301328 as_fn_error $? "working directory cannot be determined"
Thomas Wouters47b49bf2007-08-30 22:15:331329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ross Lagerwallb0ae53d2011-06-10 05:30:301330 as_fn_error $? "pwd does not report name of working directory"
Thomas Wouters47b49bf2007-08-30 22:15:331331
1332
Guido van Rossum627b2d71993-12-24 10:39:161333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:301335 ac_srcdir_defaulted=yes
Thomas Wouters47b49bf2007-08-30 22:15:331336 # Try the directory containing this script, then the parent directory.
Matthias Kloseb9621712010-04-24 17:59:491337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342$as_echo X"$as_myself" |
Thomas Wouters47b49bf2007-08-30 22:15:331343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
Guido van Rossum7f43da71994-08-01 12:15:301360 srcdir=$ac_confdir
Thomas Wouters47b49bf2007-08-30 22:15:331361 if test ! -r "$srcdir/$ac_unique_file"; then
Guido van Rossum627b2d71993-12-24 10:39:161362 srcdir=..
1363 fi
Guido van Rossum76be6ed1995-01-02 18:33:541364else
1365 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:161366fi
Thomas Wouters47b49bf2007-08-30 22:15:331367if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ross Lagerwallb0ae53d2011-06-10 05:30:301369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Thomas Wouters477c8d52006-05-27 19:21:471370fi
Thomas Wouters47b49bf2007-08-30 22:15:331371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372ac_abs_confdir=`(
Ross Lagerwallb0ae53d2011-06-10 05:30:301373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Thomas Wouters47b49bf2007-08-30 22:15:331374 pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
Guido van Rossum76be6ed1995-01-02 18:33:541391
Martin v. Löwis11437992002-04-12 09:54:031392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
Ned Deily4829bc62016-09-12 21:29:041399\`configure' configures python 3.7 to adapt to many kinds of systems.
Martin v. Löwis11437992002-04-12 09:54:031400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
Ross Lagerwallb0ae53d2011-06-10 05:30:301413 -q, --quiet, --silent do not print \`checking ...' messages
Martin v. Löwis11437992002-04-12 09:54:031414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
Martin v. Löwis11437992002-04-12 09:54:031419Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
Matthias Kloseb9621712010-04-24 17:59:491421 [$ac_default_prefix]
Martin v. Löwis11437992002-04-12 09:54:031422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Matthias Kloseb9621712010-04-24 17:59:491423 [PREFIX]
Martin v. Löwis11437992002-04-12 09:54:031424
1425By default, \`make install' will install all the files in
1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428for instance \`--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
Matthias Kloseb9621712010-04-24 17:59:491433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
Martin v. Löwis11437992002-04-12 09:54:031452_ACEOF
1453
1454 cat <<\_ACEOF
Matthias Kloseca2f6ec2012-03-15 20:30:111455
1456System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Martin v. Löwis11437992002-04-12 09:54:031459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
Martin v. Löwis88afe662002-10-26 13:47:441463 case $ac_init_help in
Ned Deily4829bc62016-09-12 21:29:041464 short | recursive ) echo "Configuration of python 3.7:";;
Martin v. Löwis88afe662002-10-26 13:47:441465 esac
Martin v. Löwis11437992002-04-12 09:54:031466 cat <<\_ACEOF
1467
1468Optional Features:
Matthias Kloseb9621712010-04-24 17:59:491469 --disable-option-checking ignore unrecognized --enable/--with options
Martin v. Löwis11437992002-04-12 09:54:031470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Christian Heimes68f5fbe2008-02-14 08:27:371472 --enable-universalsdk[=SDKDIR]
Ned Deilycbfb9a52012-06-23 23:02:191473 Build fat binary against Mac OS X SDK
Martin v. Löwis3e2c6322002-10-29 10:07:431474 --enable-framework[=INSTALLDIR]
1475 Build (MacOSX|Darwin) framework
1476 --enable-shared disable/enable building shared python library
Skip Montanaro56f6a4f2004-06-18 02:47:221477 --enable-profiling enable C-level code profiling
Brett Cannonb4e5fee2017-06-09 20:56:571478 --enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1479 Disabled by default.
Benjamin Peterson076ed002010-10-31 17:11:021480 --enable-loadable-sqlite-extensions
1481 support loadable extensions in _sqlite module
Martin v. Löwis3e2c6322002-10-29 10:07:431482 --enable-ipv6 Enable ipv6 (with ipv4) support
1483 --disable-ipv6 Disable ipv6 support
Mark Dickinsonbd792642009-03-18 20:06:121484 --enable-big-digits[=BITS]
Matthias Kloseb9621712010-04-24 17:59:491485 use big digits for Python longs [[BITS=30]]
Martin v. Löwis11437992002-04-12 09:54:031486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Benjamin Peterson14ae9592008-07-16 02:20:151490 --with-universal-archs=ARCH
1491 select architectures for universal build ("32-bit",
Ned Deily8c9bb722018-01-30 12:42:141492 "64-bit", "3-way", "intel", "intel-32", "intel-64",
1493 or "all")
Christian Heimes81ee3ef2008-05-04 22:42:011494 --with-framework-name=FRAMEWORK
1495 specify an alternate name of the framework built
1496 with --enable-framework
Martin v. Löwis3e2c6322002-10-29 10:07:431497 --without-gcc never use gcc
Zachary Ware5af85642015-12-21 18:09:171498 --with-icc build with icc
Thomas Wouters49fd7fa2006-04-21 10:40:581499 --with-cxx-main=<compiler>
1500 compile main() and link python executable with C++
1501 compiler
Martin v. Löwis3e2c6322002-10-29 10:07:431502 --with-suffix=.exe set executable suffix
1503 --with-pydebug build with Py_DEBUG defined
T. Woutersddbfa2c2017-05-22 23:30:491504 --with-assertions build with C assertions enabled
octaviansoldea4c814012017-09-08 19:14:331505 --with-lto Enable Link Time Optimization in any build. Disabled
1506 by default.
Christian Heimes985ecdc2013-11-20 10:46:181507 --with-hash-algorithm=[fnv|siphash24]
1508 select hash algorithm
Charles-François Natalid30b0222014-05-08 22:08:511509 --with-address-sanitizer
Gregory P. Smith5f4d05d2018-11-12 21:48:241510 enable AddressSanitizer (asan)
1511 --with-memory-sanitizer enable MemorySanitizer (msan)
1512 --with-undefined-behavior-sanitizer
1513 enable UndefinedBehaviorSanitizer (ubsan)
Martin v. Löwis3e2c6322002-10-29 10:07:431514 --with-libs='lib1 ...' link against additional libs
Benjamin Petersonb2d90462009-12-31 03:23:101515 --with-system-expat build pyexpat module using an installed expat
1516 library
Thomas Wouters49fd7fa2006-04-21 10:40:581517 --with-system-ffi build _ctypes module using an installed ffi library
Stefan Krah60187b52012-03-23 18:06:271518 --with-system-libmpdec build _decimal module using an installed libmpdec
1519 library
Stefan Krahc4ca1f82020-02-29 22:10:261520 --with-decimal-contextvar
1521 build _decimal module using a coroutine-local rather
1522 than a thread-local context (default is yes)
Ned Deilyd819b932013-09-06 08:07:051523 --with-tcltk-includes='-I...'
1524 override search for Tcl and Tk include files
1525 --with-tcltk-libs='-L...'
1526 override search for Tcl and Tk libs
Matthias Klose55708cc2009-04-30 08:06:491527 --with-dbmliborder=db1:db2:...
1528 order to check db backends for dbm. Valid value is a
1529 colon separated string with the backend names
1530 `ndbm', `gdbm' and `bdb'.
Martin v. Löwis3e2c6322002-10-29 10:07:431531 --with(out)-doc-strings disable/enable documentation strings
1532 --with(out)-pymalloc disable/enable specialized mallocs
Nick Coghlan6ea41862017-06-11 03:16:151533 --with(out)-c-locale-coercion
1534 disable/enable C locale coercion to a UTF-8 based
1535 locale
Benjamin Peterson05159c42009-12-03 03:01:271536 --with-valgrind Enable Valgrind support
Łukasz Langaa785c872016-09-10 00:37:371537 --with(out)-dtrace disable/enable DTrace support
Martin v. Löwis3e2c6322002-10-29 10:07:431538 --with-libm=STRING math library
1539 --with-libc=STRING C library
Antoine Pitrou042b1282010-08-13 21:15:581540 --with(out)-computed-gotos
1541 Use computed gotos in evaluation loop (enabled by
1542 default on supported compilers)
Ned Deily322f5ba2013-11-22 07:01:591543 --with(out)-ensurepip=[=upgrade]
1544 "install" or "upgrade" using bundled pip
Christian Heimesff5be6e2018-01-20 12:19:211545 --with-openssl=DIR root of the OpenSSL directory
Christian Heimes892d66e2018-01-29 13:10:181546 --with-ssl-default-suites=[python|openssl|STRING]
1547 Override default cipher suites string, python: use
1548 Python's preferred selection (default), openssl:
1549 leave OpenSSL's defaults untouched, STRING: use a
1550 custom string, PROTOCOL_SSLv2 ignores the setting
Martin v. Löwis11437992002-04-12 09:54:031551
1552Some influential environment variables:
doko@python.orgeab42bf2013-01-26 17:57:191553 MACHDEP name for machine-dependent library files
Martin v. Löwis11437992002-04-12 09:54:031554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
Thomas Wouters47b49bf2007-08-30 22:15:331558 LIBS libraries to pass to the linker, e.g. -l<library>
Matthias Kloseb9621712010-04-24 17:59:491559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Thomas Wouters47b49bf2007-08-30 22:15:331560 you have headers in a nonstandard directory <include dir>
Martin v. Löwis11437992002-04-12 09:54:031561 CPP C preprocessor
Victor Stinner8291b5e2015-03-20 15:03:141562 PKG_CONFIG path to pkg-config utility
1563 PKG_CONFIG_PATH
1564 directories to add to pkg-config's search path
1565 PKG_CONFIG_LIBDIR
1566 path overriding pkg-config's built-in search path
Martin v. Löwis11437992002-04-12 09:54:031567
1568Use these variables to override the choices made by `configure' or to help
1569it to find libraries and programs with nonstandard names/locations.
1570
Ned Deily61e371a2022-09-06 06:57:171571Report bugs to <https://github.com/python/cpython/issues/>.
Martin v. Löwis11437992002-04-12 09:54:031572_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331573ac_status=$?
Martin v. Löwis11437992002-04-12 09:54:031574fi
1575
1576if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
Martin v. Löwis11437992002-04-12 09:54:031578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Matthias Kloseb9621712010-04-24 17:59:491579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
Martin v. Löwis11437992002-04-12 09:54:031582 ac_builddir=.
1583
Thomas Wouters47b49bf2007-08-30 22:15:331584case "$ac_dir" in
1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586*)
Matthias Kloseb9621712010-04-24 17:59:491587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:331588 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:491589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:331590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594esac
1595ac_abs_top_builddir=$ac_pwd
1596ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597# for backward compatibility:
1598ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:031599
1600case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:331601 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:031602 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:331603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:031606 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:331607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:031613esac
Thomas Wouters47b49bf2007-08-30 22:15:331614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:231615
Thomas Wouters47b49bf2007-08-30 22:15:331616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure" --help=recursive
Martin v. Löwis11437992002-04-12 09:54:031624 else
Matthias Kloseb9621712010-04-24 17:59:491625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Thomas Wouters47b49bf2007-08-30 22:15:331626 fi || ac_status=$?
1627 cd "$ac_pwd" || { ac_status=$?; break; }
Martin v. Löwis11437992002-04-12 09:54:031628 done
1629fi
1630
Thomas Wouters47b49bf2007-08-30 22:15:331631test -n "$ac_init_help" && exit $ac_status
Martin v. Löwis11437992002-04-12 09:54:031632if $ac_init_version; then
1633 cat <<\_ACEOF
Ned Deily4829bc62016-09-12 21:29:041634python configure 3.7
Ross Lagerwall1b863eb2012-10-29 17:31:541635generated by GNU Autoconf 2.69
Martin v. Löwis11437992002-04-12 09:54:031636
Ross Lagerwall1b863eb2012-10-29 17:31:541637Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:031638This configure script is free software; the Free Software Foundation
1639gives unlimited permission to copy, distribute and modify it.
1640_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:331641 exit
Martin v. Löwis11437992002-04-12 09:54:031642fi
Matthias Kloseb9621712010-04-24 17:59:491643
1644## ------------------------ ##
1645## Autoconf initialization. ##
1646## ------------------------ ##
1647
1648# ac_fn_c_try_compile LINENO
1649# --------------------------
1650# Try to compile conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_compile ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
Victor Stinnere0be4232011-10-25 11:06:091681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491682 as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_compile
1685
doko@ubuntu.comd3899c12015-04-15 18:23:141686# ac_fn_c_try_cpp LINENO
1687# ----------------------
1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_cpp ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_cpp
1722
Matthias Kloseb9621712010-04-24 17:59:491723# ac_fn_c_try_link LINENO
1724# -----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_link ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
Ross Lagerwall1b863eb2012-10-29 17:31:541750 test -x conftest$ac_exeext
Matthias Kloseb9621712010-04-24 17:59:491751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491765 as_fn_set_status $ac_retval
1766
1767} # ac_fn_c_try_link
1768
Matthias Kloseb9621712010-04-24 17:59:491769# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772# the include files in INCLUDES and setting the cache variable VAR
1773# accordingly.
1774ac_fn_c_check_header_mongrel ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Victor Stinnere0be4232011-10-25 11:06:091777 if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091780if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491781 $as_echo_n "(cached) " >&6
1782fi
1783eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786else
1787 # Is the header compilable?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789$as_echo_n "checking $2 usability... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797else
1798 ac_header_compiler=no
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802$as_echo "$ac_header_compiler" >&6; }
1803
1804# Is the header present?
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806$as_echo_n "checking $2 presence... " >&6; }
1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813else
1814 ac_header_preproc=no
1815fi
Ross Lagerwallb0ae53d2011-06-10 05:30:301816rm -f conftest.err conftest.i conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:491817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818$as_echo "$ac_header_preproc" >&6; }
1819
1820# So? What about this header?
1821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ;;
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Benjamin Petersonc2fcbf42016-08-04 05:01:321839( $as_echo "## --------------------------------------- ##
Ned Deily61e371a2022-09-06 06:57:171840## Report this to https://github.com/python/cpython/issues/ ##
Benjamin Petersonc2fcbf42016-08-04 05:01:321841## --------------------------------------- ##"
Matthias Kloseb9621712010-04-24 17:59:491842 ) | sed "s/^/$as_me: WARNING: /" >&2
1843 ;;
1844esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091847if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=\$ac_header_compiler"
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855fi
Victor Stinnere0be4232011-10-25 11:06:091856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491857
1858} # ac_fn_c_check_header_mongrel
1859
1860# ac_fn_c_try_run LINENO
1861# ----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863# that executables *can* be run.
1864ac_fn_c_try_run ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Victor Stinnere0be4232011-10-25 11:06:091897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491898 as_fn_set_status $ac_retval
1899
1900} # ac_fn_c_try_run
1901
1902# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903# -------------------------------------------------------
1904# Tests whether HEADER exists and can be compiled using the include files in
1905# INCLUDES, setting the cache variable VAR accordingly.
1906ac_fn_c_check_header_compile ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091911if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491912 $as_echo_n "(cached) " >&6
1913else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h. */
1916$4
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$3=yes"
1921else
1922 eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:091929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491930
1931} # ac_fn_c_check_header_compile
1932
Matthias Kloseb9621712010-04-24 17:59:491933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934# -------------------------------------------
1935# Tests whether TYPE exists after having included INCLUDES, setting cache
1936# variable VAR accordingly.
1937ac_fn_c_check_type ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:091942if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:491943 $as_echo_n "(cached) " >&6
1944else
1945 eval "$3=no"
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952if (sizeof ($2))
1953 return 0;
1954 ;
1955 return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
1963main ()
1964{
1965if (sizeof (($2)))
1966 return 0;
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972
1973else
1974 eval "$3=yes"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:091983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:491984
1985} # ac_fn_c_check_type
1986
Matthias Kloseb9621712010-04-24 17:59:491987# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988# --------------------------------------------
1989# Tries to find the compile-time value of EXPR in a program that includes
1990# INCLUDES, setting VAR accordingly. Returns whether the value could be
1991# computed
1992ac_fn_c_compute_int ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if test "$cross_compiling" = yes; then
1996 # Depending upon the size, compute the lo and hi bounds.
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000int
2001main ()
2002{
2003static int test_array [1 - 2 * !(($2) >= 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542004test_array [0] = 0;
2005return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492006
2007 ;
2008 return 0;
2009}
2010_ACEOF
2011if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_lo=0 ac_mid=0
2013 while :; do
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542021test_array [0] = 0;
2022return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492023
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2030else
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2033 ac_lo= ac_hi=
2034 break
2035 fi
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 done
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:542048test_array [0] = 0;
2049return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492050
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=-1 ac_mid=-1
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061int
2062main ()
2063{
2064static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542065test_array [0] = 0;
2066return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492067
2068 ;
2069 return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=$ac_mid; break
2074else
2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076 if test $ac_mid -le $ac_hi; then
2077 ac_lo= ac_hi=
2078 break
2079 fi
2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 done
2084else
2085 ac_lo= ac_hi=
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090# Binary search between lo and hi bounds.
2091while test "x$ac_lo" != "x$ac_hi"; do
2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h. */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Ross Lagerwall1b863eb2012-10-29 17:31:542100test_array [0] = 0;
2101return test_array [0];
Matthias Kloseb9621712010-04-24 17:59:492102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid
2109else
2110 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113done
2114case $ac_lo in #((
2115?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116'') ac_retval=1 ;;
2117esac
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122static long int longval () { return $2; }
2123static unsigned long int ulongval () { return $2; }
2124#include <stdio.h>
2125#include <stdlib.h>
2126int
2127main ()
2128{
2129
2130 FILE *f = fopen ("conftest.val", "w");
2131 if (! f)
2132 return 1;
2133 if (($2) < 0)
2134 {
2135 long int i = longval ();
2136 if (i != ($2))
2137 return 1;
2138 fprintf (f, "%ld", i);
2139 }
2140 else
2141 {
2142 unsigned long int i = ulongval ();
2143 if (i != ($2))
2144 return 1;
2145 fprintf (f, "%lu", i);
2146 }
2147 /* Do not output a trailing newline, as this causes \r\n confusion
2148 on some platforms. */
2149 return ferror (f) || fclose (f) != 0;
2150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_run "$LINENO"; then :
2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157else
2158 ac_retval=1
2159fi
2160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2161 conftest.$ac_objext conftest.beam conftest.$ac_ext
2162rm -f conftest.val
2163
2164 fi
Victor Stinnere0be4232011-10-25 11:06:092165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492166 as_fn_set_status $ac_retval
2167
2168} # ac_fn_c_compute_int
2169
2170# ac_fn_c_check_func LINENO FUNC VAR
2171# ----------------------------------
2172# Tests whether FUNC exists, setting the cache variable VAR accordingly
2173ac_fn_c_check_func ()
2174{
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177$as_echo_n "checking for $2... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092178if eval \${$3+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492179 $as_echo_n "(cached) " >&6
2180else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2185#define $2 innocuous_$2
2186
2187/* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $2 (); below.
2189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2190 <limits.h> exists even on freestanding compilers. */
2191
2192#ifdef __STDC__
2193# include <limits.h>
2194#else
2195# include <assert.h>
2196#endif
2197
2198#undef $2
2199
2200/* Override any GCC internal prototype to avoid an error.
2201 Use char because int might match the return type of a GCC
2202 builtin and then its argument prototype would still apply. */
2203#ifdef __cplusplus
2204extern "C"
2205#endif
2206char $2 ();
2207/* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210#if defined __stub_$2 || defined __stub___$2
2211choke me
2212#endif
2213
2214int
2215main ()
2216{
2217return $2 ();
2218 ;
2219 return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_link "$LINENO"; then :
2223 eval "$3=yes"
2224else
2225 eval "$3=no"
2226fi
2227rm -f core conftest.err conftest.$ac_objext \
2228 conftest$ac_exeext conftest.$ac_ext
2229fi
2230eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492234
2235} # ac_fn_c_check_func
2236
Gregory P. Smithdf300d52012-01-22 02:20:152237# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2238# ---------------------------------------------
2239# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2240# accordingly.
2241ac_fn_c_check_decl ()
2242{
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 as_decl_name=`echo $2|sed 's/ *(.*//'`
2245 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2247$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2248if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h. */
2253$4
2254int
2255main ()
2256{
2257#ifndef $as_decl_name
2258#ifdef __cplusplus
2259 (void) $as_decl_use;
2260#else
2261 (void) $as_decl_name;
2262#endif
2263#endif
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270 eval "$3=yes"
2271else
2272 eval "$3=no"
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281} # ac_fn_c_check_decl
2282
Matthias Kloseb9621712010-04-24 17:59:492283# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2284# ----------------------------------------------------
2285# Tries to find if the field MEMBER exists in type AGGR, after including
2286# INCLUDES, setting cache variable VAR accordingly.
2287ac_fn_c_check_member ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2291$as_echo_n "checking for $2.$3... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:092292if eval \${$4+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:492293 $as_echo_n "(cached) " >&6
2294else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h. */
2297$5
2298int
2299main ()
2300{
2301static $2 ac_aggr;
2302if (ac_aggr.$3)
2303return 0;
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$4=yes"
2310else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h. */
2313$5
2314int
2315main ()
2316{
2317static $2 ac_aggr;
2318if (sizeof ac_aggr.$3)
2319return 0;
2320 ;
2321 return 0;
2322}
2323_ACEOF
2324if ac_fn_c_try_compile "$LINENO"; then :
2325 eval "$4=yes"
2326else
2327 eval "$4=no"
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332fi
2333eval ac_res=\$$4
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335$as_echo "$ac_res" >&6; }
Victor Stinnere0be4232011-10-25 11:06:092336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Matthias Kloseb9621712010-04-24 17:59:492337
2338} # ac_fn_c_check_member
Thomas Wouters47b49bf2007-08-30 22:15:332339cat >config.log <<_ACEOF
Martin v. Löwis11437992002-04-12 09:54:032340This file contains any messages produced by compilers while
2341running configure, to aid debugging if configure makes a mistake.
2342
Ned Deily4829bc62016-09-12 21:29:042343It was created by python $as_me 3.7, which was
Ross Lagerwall1b863eb2012-10-29 17:31:542344generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:032345
2346 $ $0 $@
2347
2348_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:332349exec 5>>config.log
Martin v. Löwis11437992002-04-12 09:54:032350{
2351cat <<_ASUNAME
2352## --------- ##
2353## Platform. ##
2354## --------- ##
2355
2356hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361
2362/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2364
2365/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Thomas Wouters47b49bf2007-08-30 22:15:332368/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Martin v. Löwis11437992002-04-12 09:54:032369/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2372
2373_ASUNAME
2374
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:492380 $as_echo "PATH: $as_dir"
2381 done
Thomas Wouters47b49bf2007-08-30 22:15:332382IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:032383
2384} >&5
2385
2386cat >&5 <<_ACEOF
2387
2388
2389## ----------- ##
2390## Core tests. ##
2391## ----------- ##
2392
2393_ACEOF
2394
2395
2396# Keep a trace of the command line.
2397# Strip out --no-create and --no-recursion so they do not pile up.
Skip Montanaro6dead952003-09-25 14:50:042398# Strip out --silent because we don't want to record it for future runs.
Martin v. Löwis11437992002-04-12 09:54:032399# Also quote any args containing shell meta-characters.
Skip Montanaro6dead952003-09-25 14:50:042400# Make two passes to allow for proper duplicate-argument suppression.
Martin v. Löwis11437992002-04-12 09:54:032401ac_configure_args=
Skip Montanaro6dead952003-09-25 14:50:042402ac_configure_args0=
2403ac_configure_args1=
Skip Montanaro6dead952003-09-25 14:50:042404ac_must_keep_next=false
2405for ac_pass in 1 2
Martin v. Löwis11437992002-04-12 09:54:032406do
Skip Montanaro6dead952003-09-25 14:50:042407 for ac_arg
2408 do
2409 case $ac_arg in
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2413 continue ;;
Thomas Wouters47b49bf2007-08-30 22:15:332414 *\'*)
Matthias Kloseb9621712010-04-24 17:59:492415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Skip Montanaro6dead952003-09-25 14:50:042416 esac
2417 case $ac_pass in
Matthias Kloseb9621712010-04-24 17:59:492418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Skip Montanaro6dead952003-09-25 14:50:042419 2)
Matthias Kloseb9621712010-04-24 17:59:492420 as_fn_append ac_configure_args1 " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042421 if test $ac_must_keep_next = true; then
Skip Montanarof0d5f792004-08-15 14:08:232422 ac_must_keep_next=false # Got value, back to normal.
Skip Montanaro6dead952003-09-25 14:50:042423 else
Skip Montanarof0d5f792004-08-15 14:08:232424 case $ac_arg in
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431 esac
2432 ;;
2433 -* ) ac_must_keep_next=true ;;
2434 esac
Skip Montanaro6dead952003-09-25 14:50:042435 fi
Matthias Kloseb9621712010-04-24 17:59:492436 as_fn_append ac_configure_args " '$ac_arg'"
Skip Montanaro6dead952003-09-25 14:50:042437 ;;
2438 esac
2439 done
Martin v. Löwis11437992002-04-12 09:54:032440done
Matthias Kloseb9621712010-04-24 17:59:492441{ ac_configure_args0=; unset ac_configure_args0;}
2442{ ac_configure_args1=; unset ac_configure_args1;}
Martin v. Löwis11437992002-04-12 09:54:032443
2444# When interrupted or exit'd, cleanup temporary files, and complete
2445# config.log. We remove comments because anyway the quotes in there
2446# would cause problems or look ugly.
Thomas Wouters47b49bf2007-08-30 22:15:332447# WARNING: Use '\'' to represent an apostrophe within the trap.
2448# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Martin v. Löwis11437992002-04-12 09:54:032449trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2451 {
2452 echo
Skip Montanaro6dead952003-09-25 14:50:042453
Ross Lagerwallb0ae53d2011-06-10 05:30:302454 $as_echo "## ---------------- ##
Martin v. Löwis11437992002-04-12 09:54:032455## Cache variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302456## ---------------- ##"
Martin v. Löwis11437992002-04-12 09:54:032457 echo
2458 # The following way of writing the cache mishandles newlines in values,
Thomas Wouters47b49bf2007-08-30 22:15:332459(
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in #(
2463 *${as_nl}*)
2464 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:492465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332467 esac
2468 case $ac_var in #(
2469 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:492470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:332472 esac ;;
2473 esac
2474 done
Martin v. Löwis11437992002-04-12 09:54:032475 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:332476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
Martin v. Löwis11437992002-04-12 09:54:032478 sed -n \
Thomas Wouters47b49bf2007-08-30 22:15:332479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481 ;; #(
Skip Montanaroeb33e5a2007-08-17 12:57:412482 *)
Thomas Wouters47b49bf2007-08-30 22:15:332483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Skip Montanaroeb33e5a2007-08-17 12:57:412484 ;;
Thomas Wouters47b49bf2007-08-30 22:15:332485 esac |
2486 sort
2487)
Martin v. Löwis11437992002-04-12 09:54:032488 echo
Skip Montanaro6dead952003-09-25 14:50:042489
Ross Lagerwallb0ae53d2011-06-10 05:30:302490 $as_echo "## ----------------- ##
Skip Montanaro6dead952003-09-25 14:50:042491## Output variables. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302492## ----------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042493 echo
2494 for ac_var in $ac_subst_vars
2495 do
Thomas Wouters47b49bf2007-08-30 22:15:332496 eval ac_val=\$$ac_var
2497 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332499 esac
Matthias Kloseb9621712010-04-24 17:59:492500 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042501 done | sort
2502 echo
2503
2504 if test -n "$ac_subst_files"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302505 $as_echo "## ------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332506## File substitutions. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302507## ------------------- ##"
Skip Montanaro6dead952003-09-25 14:50:042508 echo
2509 for ac_var in $ac_subst_files
2510 do
Thomas Wouters47b49bf2007-08-30 22:15:332511 eval ac_val=\$$ac_var
2512 case $ac_val in
Matthias Kloseb9621712010-04-24 17:59:492513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Thomas Wouters47b49bf2007-08-30 22:15:332514 esac
Matthias Kloseb9621712010-04-24 17:59:492515 $as_echo "$ac_var='\''$ac_val'\''"
Skip Montanaro6dead952003-09-25 14:50:042516 done | sort
2517 echo
2518 fi
2519
Martin v. Löwis11437992002-04-12 09:54:032520 if test -s confdefs.h; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302521 $as_echo "## ----------- ##
Martin v. Löwis11437992002-04-12 09:54:032522## confdefs.h. ##
Ross Lagerwallb0ae53d2011-06-10 05:30:302523## ----------- ##"
Martin v. Löwis11437992002-04-12 09:54:032524 echo
Thomas Wouters47b49bf2007-08-30 22:15:332525 cat confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032526 echo
2527 fi
2528 test "$ac_signal" != 0 &&
Matthias Kloseb9621712010-04-24 17:59:492529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
Martin v. Löwis11437992002-04-12 09:54:032531 } >&5
Thomas Wouters47b49bf2007-08-30 22:15:332532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Martin v. Löwis11437992002-04-12 09:54:032534 exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:332535' 0
Martin v. Löwis11437992002-04-12 09:54:032536for ac_signal in 1 2 13 15; do
Matthias Kloseb9621712010-04-24 17:59:492537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Martin v. Löwis11437992002-04-12 09:54:032538done
2539ac_signal=0
2540
2541# confdefs.h avoids OS command line length limits that DEFS can exceed.
Thomas Wouters47b49bf2007-08-30 22:15:332542rm -f -r conftest* confdefs.h
Martin v. Löwis11437992002-04-12 09:54:032543
Matthias Kloseb9621712010-04-24 17:59:492544$as_echo "/* confdefs.h */" > confdefs.h
2545
Martin v. Löwis11437992002-04-12 09:54:032546# Predefined preprocessor variables.
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_NAME "$PACKAGE_NAME"
2550_ACEOF
2551
Martin v. Löwis11437992002-04-12 09:54:032552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554_ACEOF
2555
Martin v. Löwis11437992002-04-12 09:54:032556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_VERSION "$PACKAGE_VERSION"
2558_ACEOF
2559
Martin v. Löwis11437992002-04-12 09:54:032560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_STRING "$PACKAGE_STRING"
2562_ACEOF
2563
Martin v. Löwis11437992002-04-12 09:54:032564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566_ACEOF
2567
Matthias Kloseb9621712010-04-24 17:59:492568cat >>confdefs.h <<_ACEOF
2569#define PACKAGE_URL "$PACKAGE_URL"
2570_ACEOF
2571
Martin v. Löwis11437992002-04-12 09:54:032572
2573# Let the site file select an alternate cache file if it wants to.
Matthias Kloseb9621712010-04-24 17:59:492574# Prefer an explicitly selected file to automatically selected ones.
2575ac_site_file1=NONE
2576ac_site_file2=NONE
Thomas Wouters47b49bf2007-08-30 22:15:332577if test -n "$CONFIG_SITE"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:302578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1=./$CONFIG_SITE;;
2581 */*) ac_site_file1=$CONFIG_SITE;;
2582 *) ac_site_file1=./$CONFIG_SITE;;
2583 esac
Thomas Wouters47b49bf2007-08-30 22:15:332584elif test "x$prefix" != xNONE; then
Matthias Kloseb9621712010-04-24 17:59:492585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
Thomas Wouters47b49bf2007-08-30 22:15:332587else
Matthias Kloseb9621712010-04-24 17:59:492588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
Guido van Rossum76be6ed1995-01-02 18:33:542590fi
Matthias Kloseb9621712010-04-24 17:59:492591for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Thomas Wouters47b49bf2007-08-30 22:15:332592do
Matthias Kloseb9621712010-04-24 17:59:492593 test "x$ac_site_file" = xNONE && continue
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032597 sed 's/^/| /' "$ac_site_file" >&5
Ross Lagerwallb0ae53d2011-06-10 05:30:302598 . "$ac_site_file" \
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601as_fn_error $? "failed to load site script $ac_site_file
Victor Stinnere0be4232011-10-25 11:06:092602See \`config.log' for more details" "$LINENO" 5; }
Guido van Rossum76be6ed1995-01-02 18:33:542603 fi
2604done
2605
2606if test -r "$cache_file"; then
Matthias Kloseb9621712010-04-24 17:59:492607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611$as_echo "$as_me: loading cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032612 case $cache_file in
Thomas Wouters47b49bf2007-08-30 22:15:332613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
Martin v. Löwis11437992002-04-12 09:54:032615 esac
2616 fi
Guido van Rossum76be6ed1995-01-02 18:33:542617else
Matthias Kloseb9621712010-04-24 17:59:492618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619$as_echo "$as_me: creating cache $cache_file" >&6;}
Martin v. Löwis11437992002-04-12 09:54:032620 >$cache_file
2621fi
2622
2623# Check that the precious variables saved in the cache have kept the same
2624# value.
2625ac_cache_corrupted=false
Thomas Wouters47b49bf2007-08-30 22:15:332626for ac_var in $ac_precious_vars; do
Martin v. Löwis11437992002-04-12 09:54:032627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
Thomas Wouters47b49bf2007-08-30 22:15:332629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
Martin v. Löwis11437992002-04-12 09:54:032631 case $ac_old_set,$ac_new_set in
2632 set,)
Matthias Kloseb9621712010-04-24 17:59:492633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032635 ac_cache_corrupted=: ;;
2636 ,set)
Matthias Kloseb9621712010-04-24 17:59:492637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032639 ac_cache_corrupted=: ;;
2640 ,);;
2641 *)
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
Matthias Kloseb9621712010-04-24 17:59:492643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x $ac_old_val`
2645 ac_new_val_w=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted=:
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2654 fi
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Martin v. Löwis11437992002-04-12 09:54:032659 fi;;
2660 esac
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2663 case $ac_new_val in
Matthias Kloseb9621712010-04-24 17:59:492664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Martin v. Löwis11437992002-04-12 09:54:032665 *) ac_arg=$ac_var=$ac_new_val ;;
2666 esac
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Matthias Kloseb9621712010-04-24 17:59:492669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Martin v. Löwis11437992002-04-12 09:54:032670 esac
2671 fi
2672done
2673if $ac_cache_corrupted; then
Matthias Kloseb9621712010-04-24 17:59:492674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:302678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:542679fi
Matthias Kloseb9621712010-04-24 17:59:492680## -------------------- ##
2681## Main body of script. ##
2682## -------------------- ##
Thomas Wouters47b49bf2007-08-30 22:15:332683
Guido van Rossum7f43da71994-08-01 12:15:302684ac_ext=c
Guido van Rossum76be6ed1995-01-02 18:33:542685ac_cpp='$CPP $CPPFLAGS'
Martin v. Löwis11437992002-04-12 09:54:032686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:542689
Guido van Rossum627b2d71993-12-24 10:39:162690
Michael W. Hudson54241132001-12-07 15:38:262691
Trent Nelson4d4ec652012-10-16 12:51:242692
Christian Heimesff5be6e2018-01-20 12:19:212693
2694
Martin Panterc5ee3ca2016-09-12 01:32:032695if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
Trent Nelson4d4ec652012-10-16 12:51:242696 # If we're building out-of-tree, we need to make sure the following
2697 # resources get picked up before their $srcdir counterparts.
2698 # Objects/ -> typeslots.inc
2699 # Include/ -> Python-ast.h, graminit.h
2700 # Python/ -> importlib.h
2701 # (A side effect of this is that these resources will automatically be
2702 # regenerated when building out-of-tree, regardless of whether or not
2703 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2704 # off.)
2705 BASECPPFLAGS="-IObjects -IInclude -IPython"
2706else
2707 BASECPPFLAGS=""
2708fi
2709
Benjamin Peterson8c6f88e2011-06-01 01:52:172710
2711
2712
2713
Victor Stinner9ed34a82017-05-02 20:35:582714if test -e $srcdir/.git
Benjamin Peterson8c6f88e2011-06-01 01:52:172715then
Ned Deily5c4b0d02017-03-04 05:19:552716# Extract the first word of "git", so it can be a program name with args.
2717set dummy git; ac_word=$2
Benjamin Peterson8c6f88e2011-06-01 01:52:172718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
Ned Deily5c4b0d02017-03-04 05:19:552720if ${ac_cv_prog_HAS_GIT+:} false; then :
Benjamin Peterson8c6f88e2011-06-01 01:52:172721 $as_echo_n "(cached) " >&6
2722else
Ned Deily5c4b0d02017-03-04 05:19:552723 if test -n "$HAS_GIT"; then
2724 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
Benjamin Peterson8c6f88e2011-06-01 01:52:172725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:572732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deily5c4b0d02017-03-04 05:19:552733 ac_cv_prog_HAS_GIT="found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737done
2738 done
2739IFS=$as_save_IFS
2740
Ned Deily5c4b0d02017-03-04 05:19:552741 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
Benjamin Peterson8c6f88e2011-06-01 01:52:172742fi
2743fi
Ned Deily5c4b0d02017-03-04 05:19:552744HAS_GIT=$ac_cv_prog_HAS_GIT
2745if test -n "$HAS_GIT"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2747$as_echo "$HAS_GIT" >&6; }
Benjamin Peterson8c6f88e2011-06-01 01:52:172748else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754else
Ned Deily5c4b0d02017-03-04 05:19:552755HAS_GIT=no-repository
Benjamin Peterson8c6f88e2011-06-01 01:52:172756fi
Ned Deily5c4b0d02017-03-04 05:19:552757if test $HAS_GIT = found
Benjamin Peterson8c6f88e2011-06-01 01:52:172758then
Miss Islington (bot)2011dd72018-08-20 14:48:312759 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2760 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2761 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
Benjamin Peterson8c6f88e2011-06-01 01:52:172762else
Ned Deily5c4b0d02017-03-04 05:19:552763 GITVERSION=""
2764 GITTAG=""
2765 GITBRANCH=""
Benjamin Peterson8c6f88e2011-06-01 01:52:172766fi
2767
2768
Thomas Wouters47b49bf2007-08-30 22:15:332769ac_config_headers="$ac_config_headers pyconfig.h"
Martin v. Löwis11437992002-04-12 09:54:032770
2771
Matthias Kloseca2f6ec2012-03-15 20:30:112772ac_aux_dir=
2773for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2774 if test -f "$ac_dir/install-sh"; then
2775 ac_aux_dir=$ac_dir
2776 ac_install_sh="$ac_aux_dir/install-sh -c"
2777 break
2778 elif test -f "$ac_dir/install.sh"; then
2779 ac_aux_dir=$ac_dir
2780 ac_install_sh="$ac_aux_dir/install.sh -c"
2781 break
2782 elif test -f "$ac_dir/shtool"; then
2783 ac_aux_dir=$ac_dir
2784 ac_install_sh="$ac_aux_dir/shtool install -c"
2785 break
2786 fi
2787done
2788if test -z "$ac_aux_dir"; then
2789 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2790fi
2791
2792# These three variables are undocumented and unsupported,
2793# and are intended to be withdrawn in a future Autoconf release.
2794# They can cause serious problems if a builder's source tree is in a directory
2795# whose full name contains unusual characters.
2796ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2797ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2798ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2799
2800
2801# Make sure we can run config.sub.
2802$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2803 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2806$as_echo_n "checking build system type... " >&6; }
2807if ${ac_cv_build+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809else
2810 ac_build_alias=$build_alias
2811test "x$ac_build_alias" = x &&
2812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2813test "x$ac_build_alias" = x &&
2814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2815ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2817
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2820$as_echo "$ac_cv_build" >&6; }
2821case $ac_cv_build in
2822*-*-*) ;;
2823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2824esac
2825build=$ac_cv_build
2826ac_save_IFS=$IFS; IFS='-'
2827set x $ac_cv_build
2828shift
2829build_cpu=$1
2830build_vendor=$2
2831shift; shift
2832# Remember, the first character of IFS is used to create $*,
2833# except with old shells:
2834build_os=$*
2835IFS=$ac_save_IFS
2836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2837
2838
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2840$as_echo_n "checking host system type... " >&6; }
2841if ${ac_cv_host+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843else
2844 if test "x$host_alias" = x; then
2845 ac_cv_host=$ac_cv_build
2846else
2847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2849fi
2850
2851fi
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2853$as_echo "$ac_cv_host" >&6; }
2854case $ac_cv_host in
2855*-*-*) ;;
2856*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2857esac
2858host=$ac_cv_host
2859ac_save_IFS=$IFS; IFS='-'
2860set x $ac_cv_host
2861shift
2862host_cpu=$1
2863host_vendor=$2
2864shift; shift
2865# Remember, the first character of IFS is used to create $*,
2866# except with old shells:
2867host_os=$*
2868IFS=$ac_save_IFS
2869case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2870
2871
2872
doko@python.orga10e4a92013-01-25 17:45:122873
2874
Ned Deilyfcbc2462014-08-22 20:32:492875# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2876rm -f pybuilddir.txt
2877
Xavier de Gayefd0d5932016-07-26 10:48:082878for ac_prog in python$PACKAGE_VERSION python3 python
2879do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881set dummy $ac_prog; ac_word=$2
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnera5c62a82017-05-03 16:21:482884if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then :
Xavier de Gayefd0d5932016-07-26 10:48:082885 $as_echo_n "(cached) " >&6
2886else
Victor Stinnera5c62a82017-05-03 16:21:482887 if test -n "$PYTHON_FOR_REGEN"; then
2888 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
Xavier de Gayefd0d5932016-07-26 10:48:082889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Victor Stinnera5c62a82017-05-03 16:21:482897 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
Xavier de Gayefd0d5932016-07-26 10:48:082898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902 done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
Victor Stinnera5c62a82017-05-03 16:21:482907PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
2908if test -n "$PYTHON_FOR_REGEN"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2910$as_echo "$PYTHON_FOR_REGEN" >&6; }
Xavier de Gayefd0d5932016-07-26 10:48:082911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
Victor Stinnera5c62a82017-05-03 16:21:482917 test -n "$PYTHON_FOR_REGEN" && break
Xavier de Gayefd0d5932016-07-26 10:48:082918done
Victor Stinnera5c62a82017-05-03 16:21:482919test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
Xavier de Gayefd0d5932016-07-26 10:48:082920
Xavier de Gayefd0d5932016-07-26 10:48:082921
2922
doko@ubuntu.com1abe1c52012-06-30 18:42:452923if test "$cross_compiling" = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2925$as_echo_n "checking for python interpreter for cross build... " >&6; }
2926 if test -z "$PYTHON_FOR_BUILD"; then
2927 for interp in python$PACKAGE_VERSION python3 python; do
2928 which $interp >/dev/null 2>&1 || continue
Xavier de Gaye4afd1432016-07-07 16:00:222929 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
doko@ubuntu.com1abe1c52012-06-30 18:42:452930 break
2931 fi
2932 interp=
2933 done
2934 if test x$interp = x; then
2935 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2938$as_echo "$interp" >&6; }
Xavier de Gaye92dec542016-09-11 20:22:242939 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp
doko@ubuntu.com1abe1c52012-06-30 18:42:452940 fi
Christian Heimes954ac032012-12-12 12:10:212941elif test "$cross_compiling" = maybe; then
2942 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
doko@ubuntu.com1abe1c52012-06-30 18:42:452943else
2944 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2945fi
2946
2947
Martin v. Löwis11437992002-04-12 09:54:032948
Benjamin Petersond23f8222009-04-05 19:13:162949if test "$prefix" != "/"; then
2950 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2951fi
2952
2953
Martin v. Löwis11437992002-04-12 09:54:032954
2955
Martin v. Löwis8316feb2003-06-14 07:48:072956# We don't use PACKAGE_ variables, and they cause conflicts
2957# with other autoconf-based packages that include Python.h
2958grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2959rm confdefs.h
2960mv confdefs.h.new confdefs.h
2961
Martin v. Löwisbddf5a52002-11-11 13:37:282962
Ned Deily4829bc62016-09-12 21:29:042963VERSION=3.7
Guido van Rossum1fd74a71997-07-19 19:36:022964
Benjamin Petersond7f73e92010-09-05 00:09:072965# Version number of Python's own shared library file.
Martin v. Löwis1142de32002-03-29 16:28:312966
2967SOVERSION=1.0
2968
Martin v. Löwis6f18a3c2002-07-20 08:51:522969# The later defininition of _XOPEN_SOURCE disables certain features
2970# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2971
Matthias Kloseb9621712010-04-24 17:59:492972$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Martin v. Löwis6f18a3c2002-07-20 08:51:522973
2974
Martin v. Löwisbcd93962003-05-03 10:32:182975# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2976# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2977# them.
2978
Matthias Kloseb9621712010-04-24 17:59:492979$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
Martin v. Löwisbcd93962003-05-03 10:32:182980
2981
Andrew MacIntyreabccf412003-07-02 13:53:252982# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2983# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2984# them.
2985
Matthias Kloseb9621712010-04-24 17:59:492986$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
Andrew MacIntyreabccf412003-07-02 13:53:252987
2988
Martin v. Löwisd6320502004-08-12 13:45:082989# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
Benjamin Peterson14ae9592008-07-16 02:20:152990# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2991# them.
2992
Matthias Kloseb9621712010-04-24 17:59:492993$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
Benjamin Peterson14ae9592008-07-16 02:20:152994
2995
2996
Martin v. Löwis35195ad2002-11-11 13:26:512997define_xopen_source=yes
Martin v. Löwis6f18a3c2002-07-20 08:51:522998
Neil Schemenauer4edbc2a2001-03-22 00:34:032999# Arguments passed to configure.
3000
3001CONFIG_ARGS="$ac_configure_args"
3002
Matthias Kloseb9621712010-04-24 17:59:493003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3004$as_echo_n "checking for --enable-universalsdk... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:333005# Check whether --enable-universalsdk was given.
Matthias Kloseb9621712010-04-24 17:59:493006if test "${enable_universalsdk+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333007 enableval=$enable_universalsdk;
Thomas Wouters477c8d52006-05-27 19:21:473008 case $enableval in
3009 yes)
Miss Islington (bot)1d3395f2018-06-04 05:41:123010 # Locate the best usable SDK, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193011 # information
3012 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
Ned Deily87adb6e2013-10-19 04:09:563013 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
Ronald Oussoren8af24c12010-02-07 12:03:423014 then
Ned Deilycbfb9a52012-06-23 23:02:193015 enableval=/Developer/SDKs/MacOSX10.4u.sdk
3016 if test ! -d "${enableval}"
3017 then
3018 enableval=/
3019 fi
Ronald Oussoren8af24c12010-02-07 12:03:423020 fi
Thomas Wouters477c8d52006-05-27 19:21:473021 ;;
3022 esac
3023 case $enableval in
3024 no)
3025 UNIVERSALSDK=
3026 enable_universalsdk=
3027 ;;
3028 *)
3029 UNIVERSALSDK=$enableval
Ronald Oussoren8af24c12010-02-07 12:03:423030 if test ! -d "${UNIVERSALSDK}"
3031 then
Ross Lagerwallb0ae53d2011-06-10 05:30:303032 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
Ronald Oussoren8af24c12010-02-07 12:03:423033 fi
Thomas Wouters477c8d52006-05-27 19:21:473034 ;;
3035 esac
Martin v. Löwis11437992002-04-12 09:54:033036
Ronald Oussoren8af24c12010-02-07 12:03:423037
Thomas Wouters477c8d52006-05-27 19:21:473038else
3039
3040 UNIVERSALSDK=
3041 enable_universalsdk=
3042
Thomas Wouters47b49bf2007-08-30 22:15:333043fi
Thomas Wouters477c8d52006-05-27 19:21:473044
Ronald Oussoren8af24c12010-02-07 12:03:423045if test -n "${UNIVERSALSDK}"
3046then
Matthias Kloseb9621712010-04-24 17:59:493047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3048$as_echo "${UNIVERSALSDK}" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423049else
Matthias Kloseb9621712010-04-24 17:59:493050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
Ronald Oussoren8af24c12010-02-07 12:03:423052fi
Thomas Wouters477c8d52006-05-27 19:21:473053
Thomas Wouters47b49bf2007-08-30 22:15:333054
Benjamin Peterson6794aa32008-07-16 20:33:373055
Ned Deily87adb6e2013-10-19 04:09:563056ARCH_RUN_32BIT=""
Benjamin Peterson6794aa32008-07-16 20:33:373057
Ned Deilycbfb9a52012-06-23 23:02:193058# For backward compatibility reasons we prefer to select '32-bit' if available,
3059# otherwise use 'intel'
Benjamin Peterson14ae9592008-07-16 02:20:153060UNIVERSAL_ARCHS="32-bit"
Ned Deilycbfb9a52012-06-23 23:02:193061if test "`uname -s`" = "Darwin"
3062then
3063 if test -n "${UNIVERSALSDK}"
3064 then
Ned Deily87adb6e2013-10-19 04:09:563065 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
Ned Deilycbfb9a52012-06-23 23:02:193066 then
3067 UNIVERSAL_ARCHS="intel"
3068 fi
3069 fi
3070fi
3071
Ronald Oussoren6f6c5622009-12-24 14:03:193072
Matthias Kloseb9621712010-04-24 17:59:493073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3074$as_echo_n "checking for --with-universal-archs... " >&6; }
Benjamin Peterson14ae9592008-07-16 02:20:153075
3076# Check whether --with-universal-archs was given.
Matthias Kloseb9621712010-04-24 17:59:493077if test "${with_universal_archs+set}" = set; then :
Benjamin Peterson14ae9592008-07-16 02:20:153078 withval=$with_universal_archs;
Benjamin Peterson14ae9592008-07-16 02:20:153079 UNIVERSAL_ARCHS="$withval"
3080
Benjamin Peterson14ae9592008-07-16 02:20:153081fi
3082
Ned Deily87adb6e2013-10-19 04:09:563083if test -n "${UNIVERSALSDK}"
3084then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3086$as_echo "${UNIVERSAL_ARCHS}" >&6; }
3087else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
Benjamin Peterson14ae9592008-07-16 02:20:153091
Christian Heimes81ee3ef2008-05-04 22:42:013092
3093# Check whether --with-framework-name was given.
Matthias Kloseb9621712010-04-24 17:59:493094if test "${with_framework_name+set}" = set; then :
Christian Heimes81ee3ef2008-05-04 22:42:013095 withval=$with_framework_name;
3096 PYTHONFRAMEWORK=${withval}
3097 PYTHONFRAMEWORKDIR=${withval}.framework
3098 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3099
3100else
3101
3102 PYTHONFRAMEWORK=Python
3103 PYTHONFRAMEWORKDIR=Python.framework
3104 PYTHONFRAMEWORKIDENTIFIER=org.python.python
3105
3106fi
3107
Thomas Wouters47b49bf2007-08-30 22:15:333108# Check whether --enable-framework was given.
Matthias Kloseb9621712010-04-24 17:59:493109if test "${enable_framework+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333110 enableval=$enable_framework;
Jack Jansene578a632001-08-15 01:27:143111 case $enableval in
Martin v. Löwis11437992002-04-12 09:54:033112 yes)
Jack Jansene578a632001-08-15 01:27:143113 enableval=/Library/Frameworks
Jack Jansen127e56e2001-09-11 14:41:543114 esac
3115 case $enableval in
3116 no)
3117 PYTHONFRAMEWORK=
3118 PYTHONFRAMEWORKDIR=no-framework
3119 PYTHONFRAMEWORKPREFIX=
3120 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473121 FRAMEWORKINSTALLFIRST=
3122 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453123 FRAMEWORKALTINSTALLFIRST=
3124 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253125 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453126 if test "x${prefix}" = "xNONE"; then
3127 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3128 else
3129 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3130 fi
Jack Jansen127e56e2001-09-11 14:41:543131 enable_framework=
Jack Jansene578a632001-08-15 01:27:143132 ;;
3133 *)
Ronald Oussoren86b33c82010-04-30 11:41:563134 PYTHONFRAMEWORKPREFIX="${enableval}"
Jack Jansen127e56e2001-09-11 14:41:543135 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
Thomas Wouters477c8d52006-05-27 19:21:473136 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
Ronald Oussorenf6ccbf62009-06-02 10:55:563137 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
Ronald Oussoren6f6c5622009-12-24 14:03:193138 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
3139 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
Ned Deilyb8f944f2013-11-22 06:42:253140 FRAMEWORKPYTHONW="frameworkpythonw"
Ronald Oussoren86b33c82010-04-30 11:41:563141 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
Benjamin Peterson14ae9592008-07-16 02:20:153142
Thomas Wouters73e5a5b2006-06-08 15:35:453143 if test "x${prefix}" = "xNONE" ; then
3144 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
Ronald Oussoren86b33c82010-04-30 11:41:563145
Thomas Wouters73e5a5b2006-06-08 15:35:453146 else
3147 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3148 fi
Ronald Oussoren86b33c82010-04-30 11:41:563149
3150 case "${enableval}" in
3151 /System*)
3152 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3153 if test "${prefix}" = "NONE" ; then
3154 # See below
3155 FRAMEWORKUNIXTOOLSPREFIX="/usr"
3156 fi
3157 ;;
3158
3159 /Library*)
3160 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3161 ;;
3162
3163 */Library/Frameworks)
3164 MDIR="`dirname "${enableval}"`"
3165 MDIR="`dirname "${MDIR}"`"
3166 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
3167
3168 if test "${prefix}" = "NONE"; then
3169 # User hasn't specified the
3170 # --prefix option, but wants to install
3171 # the framework in a non-default location,
3172 # ensure that the compatibility links get
3173 # installed relative to that prefix as well
3174 # instead of in /usr/local.
3175 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
3176 fi
3177 ;;
3178
3179 *)
3180 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
3181 ;;
3182 esac
3183
Jack Jansen127e56e2001-09-11 14:41:543184 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
Thomas Wouters477c8d52006-05-27 19:21:473185
Christian Heimes81ee3ef2008-05-04 22:42:013186 # Add files for Mac specific code to the list of output
Thomas Wouters477c8d52006-05-27 19:21:473187 # files:
Thomas Wouters47b49bf2007-08-30 22:15:333188 ac_config_files="$ac_config_files Mac/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473189
Thomas Wouters47b49bf2007-08-30 22:15:333190 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
Thomas Wouters477c8d52006-05-27 19:21:473191
Christian Heimes81ee3ef2008-05-04 22:42:013192 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
3193
3194 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
3195
Jack Jansene578a632001-08-15 01:27:143196 esac
Martin v. Löwis11437992002-04-12 09:54:033197
Guido van Rossum563e7081996-09-10 18:20:483198else
Martin v. Löwis11437992002-04-12 09:54:033199
Jack Jansene578a632001-08-15 01:27:143200 PYTHONFRAMEWORK=
Jack Jansen127e56e2001-09-11 14:41:543201 PYTHONFRAMEWORKDIR=no-framework
Jack Jansene578a632001-08-15 01:27:143202 PYTHONFRAMEWORKPREFIX=
3203 PYTHONFRAMEWORKINSTALLDIR=
Thomas Wouters477c8d52006-05-27 19:21:473204 FRAMEWORKINSTALLFIRST=
3205 FRAMEWORKINSTALLLAST=
Thomas Wouters73e5a5b2006-06-08 15:35:453206 FRAMEWORKALTINSTALLFIRST=
3207 FRAMEWORKALTINSTALLLAST=
Ned Deilyb8f944f2013-11-22 06:42:253208 FRAMEWORKPYTHONW=
Thomas Wouters73e5a5b2006-06-08 15:35:453209 if test "x${prefix}" = "xNONE" ; then
3210 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
3211 else
3212 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
3213 fi
Jack Jansene578a632001-08-15 01:27:143214 enable_framework=
Guido van Rossum7b3853f1996-07-30 18:09:353215
Benjamin Peterson14ae9592008-07-16 02:20:153216
Thomas Wouters47b49bf2007-08-30 22:15:333217fi
3218
Thomas Wouters477c8d52006-05-27 19:21:473219
3220
Michael W. Hudson54241132001-12-07 15:38:263221
3222
3223
3224
Jack Jansene578a632001-08-15 01:27:143225
Thomas Wouters73e5a5b2006-06-08 15:35:453226
3227
3228
Christian Heimes81ee3ef2008-05-04 22:42:013229
Ronald Oussoren86b33c82010-04-30 11:41:563230
Ned Deilyb8f944f2013-11-22 06:42:253231
INADA Naokia8f8d5b2017-06-28 15:31:533232
3233cat >>confdefs.h <<_ACEOF
INADA Naoki6b42eb12017-06-29 06:31:383234#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}"
INADA Naokia8f8d5b2017-06-28 15:31:533235_ACEOF
3236
3237
Jack Jansene578a632001-08-15 01:27:143238##AC_ARG_WITH(dyld,
Matthias Klose2b8733f2010-04-25 18:34:363239## AS_HELP_STRING([--with-dyld],
Matthias Klosec80c93f2010-04-24 17:04:353240## [Use (OpenStep|Rhapsody) dynamic linker]))
Jack Jansene578a632001-08-15 01:27:143241##
Guido van Rossum7b3853f1996-07-30 18:09:353242# Set name for machine-dependent library files
3243
Matthias Kloseb9621712010-04-24 17:59:493244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3245$as_echo_n "checking MACHDEP... " >&6; }
Guido van Rossum7b3853f1996-07-30 18:09:353246if test -z "$MACHDEP"
3247then
Matthias Klosedf2aecb2012-03-15 21:19:283248 # avoid using uname for cross builds
3249 if test "$cross_compiling" = yes; then
doko@python.org44bbbda2013-01-25 13:44:003250 # ac_sys_system and ac_sys_release are used for setting
3251 # a lot of different things including 'define_xopen_source'
3252 # in the case statement below.
Matthias Klosedf2aecb2012-03-15 21:19:283253 case "$host" in
Xavier de Gaye2a352b62017-01-04 20:51:163254 *-*-linux-android*)
3255 ac_sys_system=Linux-android
3256 ;;
Matthias Klosedf2aecb2012-03-15 21:19:283257 *-*-linux*)
3258 ac_sys_system=Linux
3259 ;;
3260 *-*-cygwin*)
3261 ac_sys_system=Cygwin
3262 ;;
3263 *)
3264 # for now, limit cross builds to known configurations
3265 MACHDEP="unknown"
3266 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3267 esac
3268 ac_sys_release=
3269 else
Guido van Rossum563e7081996-09-10 18:20:483270 ac_sys_system=`uname -s`
Benjamin Peterson8719ad52009-09-11 22:24:023271 if test "$ac_sys_system" = "AIX" \
Martin v. Löwis21ee4092002-09-30 16:19:483272 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
Guido van Rossum563e7081996-09-10 18:20:483273 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:353274 else
Guido van Rossum563e7081996-09-10 18:20:483275 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:353276 fi
Matthias Klosedf2aecb2012-03-15 21:19:283277 fi
3278 ac_md_system=`echo $ac_sys_system |
3279 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3280 ac_md_release=`echo $ac_sys_release |
3281 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3282 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:483283
Matthias Klosedf2aecb2012-03-15 21:19:283284 case $MACHDEP in
Victor Stinner7209ff22011-08-20 22:00:163285 linux*) MACHDEP="linux";;
Andrew M. Kuchling5a3e4cb2001-07-20 19:29:043286 cygwin*) MACHDEP="cygwin";;
Jack Jansen8a97f4a2001-12-05 23:27:323287 darwin*) MACHDEP="darwin";;
Guido van Rossumb97ef171997-09-28 05:44:033288 '') MACHDEP="unknown";;
Matthias Klosedf2aecb2012-03-15 21:19:283289 esac
Guido van Rossum7b3853f1996-07-30 18:09:353290fi
Guido van Rossum91922671997-10-09 20:24:133291
doko@ubuntu.com1abe1c52012-06-30 18:42:453292
3293if test "$cross_compiling" = yes; then
3294 case "$host" in
3295 *-*-linux*)
3296 case "$host_cpu" in
3297 arm*)
3298 _host_cpu=arm
3299 ;;
3300 *)
3301 _host_cpu=$host_cpu
3302 esac
3303 ;;
3304 *-*-cygwin*)
3305 _host_cpu=
3306 ;;
3307 *)
3308 # for now, limit cross builds to known configurations
3309 MACHDEP="unknown"
3310 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3311 esac
3312 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3313fi
3314
Martin v. Löwis35195ad2002-11-11 13:26:513315# Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3316# disable features if it is defined, without any means to access these
3317# features as extensions. For these systems, we skip the definition of
3318# _XOPEN_SOURCE. Before adding a system to the list to gain access to
3319# some feature, make sure there is no alternative way to access this
3320# feature. Also, when using wildcards, make sure you have verified the
3321# need for not defining _XOPEN_SOURCE on all systems matching the
3322# wildcard, and that the wildcard does not include future systems
3323# (which may remove their limitations).
3324case $ac_sys_system/$ac_sys_release in
3325 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3326 # even though select is a POSIX function. Reported by J. Ribbens.
Martin v. Löwis76bafc62003-10-03 13:47:443327 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
Martin v. Löwis19ed3c82010-02-15 21:45:063328 # In addition, Stefan Krah confirms that issue #1244610 exists through
3329 # OpenBSD 4.6, but is fixed in 4.7.
Charles-François Natali54ef40b2011-07-22 21:52:023330 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
Christian Heimes5b5e81c2007-12-31 16:14:333331 define_xopen_source=no
3332 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3333 # also defined. This can be overridden by defining _BSD_SOURCE
3334 # As this has a different meaning on Linux, only define it on OpenBSD
3335
Matthias Kloseb9621712010-04-24 17:59:493336$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Christian Heimes5b5e81c2007-12-31 16:14:333337
3338 ;;
Charles-François Natali54ef40b2011-07-22 21:52:023339 OpenBSD/*)
Martin v. Löwis7671efc2010-02-15 08:35:163340 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3341 # also defined. This can be overridden by defining _BSD_SOURCE
3342 # As this has a different meaning on Linux, only define it on OpenBSD
3343
Matthias Kloseb9621712010-04-24 17:59:493344$as_echo "#define _BSD_SOURCE 1" >>confdefs.h
Martin v. Löwis7671efc2010-02-15 08:35:163345
3346 ;;
Thomas Wouters89f507f2006-12-13 04:49:303347 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3348 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3349 # Marc Recht
Benjamin Petersonf608c612008-11-16 18:33:533350 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
Martin v. Löwis35195ad2002-11-11 13:26:513351 define_xopen_source=no;;
Martin v. Löwis1a415762010-05-28 15:44:203352 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3353 # request to enable features supported by the standard as a request
3354 # to disable features not supported by the standard. The best way
3355 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3356 # entirely and define __EXTENSIONS__ instead.
3357 SunOS/*)
Martin v. Löwisa9d71422003-03-28 18:43:313358 define_xopen_source=no;;
Martin v. Löwisc2409b42003-05-11 05:53:413359 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3360 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
Jack Jansen6b08a402004-06-03 12:41:453361 # Reconfirmed for 7.1.4 by Martin v. Loewis.
Martin v. Löwis253d1f42004-05-07 19:14:143362 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
Martin v. Löwisc2409b42003-05-11 05:53:413363 define_xopen_source=no;;
3364 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
Martin v. Löwis53e73c32003-05-05 05:13:183365 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
Martin v. Löwisc2409b42003-05-11 05:53:413366 SCO_SV/3.2)
Martin v. Löwis53e73c32003-05-05 05:13:183367 define_xopen_source=no;;
Martin v. Löwisb37509b2008-11-04 20:45:293368 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3369 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3370 # identifies itself as Darwin/7.*
3371 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3372 # disables platform specific features beyond repair.
3373 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3374 # has no effect, don't bother defining them
3375 Darwin/[6789].*)
Anthony Baxter6169c6b2003-10-04 07:46:233376 define_xopen_source=no;;
Miss Islington (bot)cfbc7592020-06-25 15:15:523377 Darwin/[12][0-9].*)
Ronald Oussorenb8f11a62010-03-08 07:02:033378 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393379 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3380 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3381 # or has another value. By not (re)defining it, the defaults come in place.
Martin v. Löwisc19c5a62003-11-18 20:00:443382 AIX/4)
3383 define_xopen_source=no;;
Trent Mickc5625ba2004-08-25 23:59:393384 AIX/5)
3385 if test `uname -r` -eq 1; then
3386 define_xopen_source=no
3387 fi
3388 ;;
Benjamin Petersonde9c8692008-07-01 18:23:093389 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3390 # defining NI_NUMERICHOST.
3391 QNX/6.3.2)
3392 define_xopen_source=no
3393 ;;
Bob Ippolito7026a0a2005-03-28 23:23:473394
Martin v. Löwis35195ad2002-11-11 13:26:513395esac
3396
3397if test $define_xopen_source = yes
3398then
Victor Stinner14d098d2011-09-07 20:29:433399 # X/Open 7, incorporating POSIX.1-2008
Martin v. Löwis678fc1e2002-11-12 06:04:393400
Victor Stinner14d098d2011-09-07 20:29:433401$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
Martin v. Löwis35195ad2002-11-11 13:26:513402
Martin v. Löwis678fc1e2002-11-12 06:04:393403
3404 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3405 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3406 # several APIs are not declared. Since this is also needed in some
3407 # cases for HP-UX, we define it globally.
Martin v. Löwis678fc1e2002-11-12 06:04:393408
Matthias Kloseb9621712010-04-24 17:59:493409$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393410
3411
Bob Ippolito7026a0a2005-03-28 23:23:473412
Victor Stinnerd169fdc2011-09-07 22:56:173413$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
Martin v. Löwis678fc1e2002-11-12 06:04:393414
Martin v. Löwis35195ad2002-11-11 13:26:513415fi
3416
Christian Heimes647cd872013-12-07 22:39:333417# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3418case $ac_sys_system in
Christian Heimesb02bcae2013-12-08 14:21:083419 hp*|HP*)
3420 define_stdc_a1=yes;;
3421 *)
3422 define_stdc_a1=no;;
3423esac
3424
3425if test $define_stdc_a1 = yes
3426then
Christian Heimes647cd872013-12-07 22:39:333427
3428$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
3429
Christian Heimesb02bcae2013-12-08 14:21:083430fi
Christian Heimes647cd872013-12-07 22:39:333431
Jack Jansen6b08a402004-06-03 12:41:453432# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3433# it may influence the way we can build extensions, so distutils
3434# needs to check it
3435
Thomas Wouters477c8d52006-05-27 19:21:473436
Jack Jansen6b08a402004-06-03 12:41:453437CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
Thomas Wouters477c8d52006-05-27 19:21:473438EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
Jack Jansen6b08a402004-06-03 12:41:453439
Guido van Rossum627b2d71993-12-24 10:39:163440# checks for alternative programs
Skip Montanarodecc6a42003-01-01 20:07:493441
3442# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3443# for debug/optimization stuff. BASECFLAGS is for flags that are required
3444# just to get things to compile and link. Users are free to override OPT
3445# when running configure or make. The build should not break if they do.
3446# BASECFLAGS should generally not be messed with, however.
3447
3448# XXX shouldn't some/most/all of this code be merged with the stuff later
3449# on that fiddles with OPT and BASECFLAGS?
Matthias Kloseb9621712010-04-24 17:59:493450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3451$as_echo_n "checking for --without-gcc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:033452
Thomas Wouters47b49bf2007-08-30 22:15:333453# Check whether --with-gcc was given.
Matthias Kloseb9621712010-04-24 17:59:493454if test "${with_gcc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:333455 withval=$with_gcc;
Guido van Rossum7f43da71994-08-01 12:15:303456 case $withval in
Antoine Pitroub52ec782009-01-25 16:34:233457 no) CC=${CC:-cc}
Guido van Rossumda88dad1995-01-26 00:46:293458 without_gcc=yes;;
3459 yes) CC=gcc
3460 without_gcc=no;;
3461 *) CC=$withval
3462 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:303463 esac
Guido van Rossumda88dad1995-01-26 00:46:293464else
Martin v. Löwis11437992002-04-12 09:54:033465
Guido van Rossum7b3853f1996-07-30 18:09:353466 case $ac_sys_system in
Antoine Pitrouf6350d22010-09-21 15:19:143467 AIX*) CC=${CC:-xlc_r}
Neil Schemenauer4a7bbcb2001-02-16 03:37:543468 without_gcc=;;
Martin v. Löwis130fb172001-07-19 11:00:413469 *) without_gcc=no;;
Guido van Rossume77438c1995-09-13 18:59:593470 esac
Thomas Wouters47b49bf2007-08-30 22:15:333471fi
3472
Matthias Kloseb9621712010-04-24 17:59:493473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3474$as_echo "$without_gcc" >&6; }
Michael W. Hudson54241132001-12-07 15:38:263475
Zachary Ware5af85642015-12-21 18:09:173476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5
3477$as_echo_n "checking for --with-icc... " >&6; }
3478
3479# Check whether --with-icc was given.
3480if test "${with_icc+set}" = set; then :
3481 withval=$with_icc;
3482 case $withval in
3483 no) CC=${CC:-cc}
3484 with_icc=no;;
3485 yes) CC=icc
3486 CXX=icpc
3487 with_icc=yes;;
3488 *) CC=$withval
3489 with_icc=$withval;;
3490 esac
3491else
3492
3493 with_icc=no
3494fi
3495
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5
3497$as_echo "$with_icc" >&6; }
3498
Guido van Rossum8b131c51995-03-09 14:10:133499# If the user switches compilers, we can't believe the cache
3500if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3501then
Ross Lagerwallb0ae53d2011-06-10 05:30:303502 as_fn_error $? "cached CC is different -- throw away $cache_file
Matthias Kloseb9621712010-04-24 17:59:493503(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
Guido van Rossum8b131c51995-03-09 14:10:133504fi
3505
Jeffrey Yasskind4fcdb12010-07-09 16:30:583506# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3507# when the compiler supports them, but we don't always want -O2, and
3508# we set -g later.
3509if test -z "$CFLAGS"; then
3510 CFLAGS=
3511fi
Ned Deilycbfb9a52012-06-23 23:02:193512
3513if test "$ac_sys_system" = "Darwin"
3514then
3515 # Compiler selection on MacOSX is more complicated than
Miss Islington (bot)1d3395f2018-06-04 05:41:123516 # AC_PROG_CC can handle, see Mac/README for more
Ned Deilycbfb9a52012-06-23 23:02:193517 # information
3518 if test -z "${CC}"
3519 then
3520 found_gcc=
3521 found_clang=
3522 as_save_IFS=$IFS; IFS=:
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
Ned Deily14aa00b2017-10-09 17:53:273526 if test -x "${as_dir}/gcc"; then
Ned Deilycbfb9a52012-06-23 23:02:193527 if test -z "${found_gcc}"; then
Ned Deily14aa00b2017-10-09 17:53:273528 found_gcc="${as_dir}/gcc"
Ned Deilycbfb9a52012-06-23 23:02:193529 fi
3530 fi
Ned Deily14aa00b2017-10-09 17:53:273531 if test -x "${as_dir}/clang"; then
Ned Deilycbfb9a52012-06-23 23:02:193532 if test -z "${found_clang}"; then
Ned Deily14aa00b2017-10-09 17:53:273533 found_clang="${as_dir}/clang"
Ned Deilycbfb9a52012-06-23 23:02:193534 fi
3535 fi
3536 done
3537 IFS=$as_save_IFS
3538
3539 if test -n "$found_gcc" -a -n "$found_clang"
3540 then
3541 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3542 then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3544$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3545 CC="$found_clang"
3546 CXX="$found_clang++"
3547 fi
3548
3549
3550 elif test -z "$found_gcc" -a -n "$found_clang"
3551 then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3553$as_echo "$as_me: No GCC found, use CLANG" >&6;}
3554 CC="$found_clang"
3555 CXX="$found_clang++"
3556
3557 elif test -z "$found_gcc" -a -z "$found_clang"
3558 then
3559 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3560 if test -n "${found_clang}"
3561 then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3563$as_echo "$as_me: Using clang from Xcode.app" >&6;}
3564 CC="${found_clang}"
3565 CXX="`/usr/bin/xcrun -find clang++`"
3566
3567 # else: use default behaviour
3568 fi
3569 fi
3570 fi
3571fi
Martin v. Löwis11437992002-04-12 09:54:033572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3579set dummy ${ac_tool_prefix}gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093582if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493583 $as_echo_n "(cached) " >&6
Guido van Rossum48bdbfc1996-05-28 22:53:483584else
3585 if test -n "$CC"; then
3586 ac_cv_prog_CC="$CC" # Let the user override the test.
3587else
Martin v. Löwis11437992002-04-12 09:54:033588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493593 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Matthias Kloseb9621712010-04-24 17:59:493596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033597 break 2
3598 fi
3599done
Matthias Kloseb9621712010-04-24 17:59:493600 done
Thomas Wouters47b49bf2007-08-30 22:15:333601IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033602
Jack Jansendd19cf82001-12-06 22:36:173603fi
3604fi
Martin v. Löwis11437992002-04-12 09:54:033605CC=$ac_cv_prog_CC
Jack Jansendd19cf82001-12-06 22:36:173606if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608$as_echo "$CC" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173609else
Matthias Kloseb9621712010-04-24 17:59:493610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033612fi
3613
Thomas Wouters47b49bf2007-08-30 22:15:333614
Martin v. Löwis11437992002-04-12 09:54:033615fi
3616if test -z "$ac_cv_prog_CC"; then
3617 ac_ct_CC=$CC
3618 # Extract the first word of "gcc", so it can be a program name with args.
3619set dummy gcc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093622if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493623 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033624else
3625 if test -n "$ac_ct_CC"; then
3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3627else
3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH
3630do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493633 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033635 ac_cv_prog_ac_ct_CC="gcc"
Matthias Kloseb9621712010-04-24 17:59:493636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033637 break 2
3638 fi
3639done
Matthias Kloseb9621712010-04-24 17:59:493640 done
Thomas Wouters47b49bf2007-08-30 22:15:333641IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033642
3643fi
3644fi
3645ac_ct_CC=$ac_cv_prog_ac_ct_CC
3646if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3648$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033649else
Matthias Kloseb9621712010-04-24 17:59:493650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033652fi
3653
Thomas Wouters47b49bf2007-08-30 22:15:333654 if test "x$ac_ct_CC" = x; then
3655 CC=""
3656 else
3657 case $cross_compiling:$ac_tool_warned in
3658yes:)
Matthias Kloseb9621712010-04-24 17:59:493659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333661ac_tool_warned=yes ;;
3662esac
3663 CC=$ac_ct_CC
3664 fi
Martin v. Löwis11437992002-04-12 09:54:033665else
3666 CC="$ac_cv_prog_CC"
Jack Jansendd19cf82001-12-06 22:36:173667fi
3668
Jack Jansendd19cf82001-12-06 22:36:173669if test -z "$CC"; then
Thomas Wouters47b49bf2007-08-30 22:15:333670 if test -n "$ac_tool_prefix"; then
3671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Martin v. Löwis11437992002-04-12 09:54:033672set dummy ${ac_tool_prefix}cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093675if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493676 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:173677else
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680else
Martin v. Löwis11437992002-04-12 09:54:033681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682for as_dir in $PATH
3683do
3684 IFS=$as_save_IFS
3685 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493686 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033688 ac_cv_prog_CC="${ac_tool_prefix}cc"
Matthias Kloseb9621712010-04-24 17:59:493689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033690 break 2
3691 fi
3692done
Matthias Kloseb9621712010-04-24 17:59:493693 done
Thomas Wouters47b49bf2007-08-30 22:15:333694IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033695
3696fi
3697fi
3698CC=$ac_cv_prog_CC
3699if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3701$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033702else
Matthias Kloseb9621712010-04-24 17:59:493703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033705fi
3706
Thomas Wouters47b49bf2007-08-30 22:15:333707
Martin v. Löwis11437992002-04-12 09:54:033708 fi
Martin v. Löwis11437992002-04-12 09:54:033709fi
3710if test -z "$CC"; then
3711 # Extract the first word of "cc", so it can be a program name with args.
3712set dummy cc; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093715if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493716 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033717else
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720else
Guido van Rossum48bdbfc1996-05-28 22:53:483721 ac_prog_rejected=no
Martin v. Löwis11437992002-04-12 09:54:033722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493727 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3730 ac_prog_rejected=yes
3731 continue
3732 fi
3733 ac_cv_prog_CC="cc"
Matthias Kloseb9621712010-04-24 17:59:493734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033735 break 2
3736 fi
3737done
Matthias Kloseb9621712010-04-24 17:59:493738 done
Thomas Wouters47b49bf2007-08-30 22:15:333739IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033740
Guido van Rossum48bdbfc1996-05-28 22:53:483741if test $ac_prog_rejected = yes; then
3742 # We found a bogon in the path, so make sure we never use it.
3743 set dummy $ac_cv_prog_CC
3744 shift
Martin v. Löwis11437992002-04-12 09:54:033745 if test $# != 0; then
Guido van Rossum48bdbfc1996-05-28 22:53:483746 # We chose a different compiler from the bogus one.
3747 # However, it has the same basename, so the bogon will be chosen
3748 # first if we set CC to just the basename; use the full file name.
3749 shift
Skip Montanaro6dead952003-09-25 14:50:043750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Guido van Rossum48bdbfc1996-05-28 22:53:483751 fi
3752fi
3753fi
3754fi
Martin v. Löwis11437992002-04-12 09:54:033755CC=$ac_cv_prog_CC
Guido van Rossum48bdbfc1996-05-28 22:53:483756if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758$as_echo "$CC" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483759else
Matthias Kloseb9621712010-04-24 17:59:493760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761$as_echo "no" >&6; }
Guido van Rossum48bdbfc1996-05-28 22:53:483762fi
3763
Thomas Wouters47b49bf2007-08-30 22:15:333764
Martin v. Löwis11437992002-04-12 09:54:033765fi
3766if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
Thomas Wouters47b49bf2007-08-30 22:15:333768 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033769 do
3770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093774if ${ac_cv_prog_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493775 $as_echo_n "(cached) " >&6
Guido van Rossume6c2cf11999-01-08 21:08:333776else
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779else
Martin v. Löwis11437992002-04-12 09:54:033780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493785 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033789 break 2
Guido van Rossumf78abae1997-01-21 22:02:363790 fi
Martin v. Löwis11437992002-04-12 09:54:033791done
Matthias Kloseb9621712010-04-24 17:59:493792 done
Thomas Wouters47b49bf2007-08-30 22:15:333793IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:033794
3795fi
3796fi
3797CC=$ac_cv_prog_CC
3798if test -n "$CC"; then
Matthias Kloseb9621712010-04-24 17:59:493799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800$as_echo "$CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033801else
Matthias Kloseb9621712010-04-24 17:59:493802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
Jack Jansendd19cf82001-12-06 22:36:173804fi
3805
Thomas Wouters47b49bf2007-08-30 22:15:333806
Martin v. Löwis11437992002-04-12 09:54:033807 test -n "$CC" && break
3808 done
3809fi
3810if test -z "$CC"; then
3811 ac_ct_CC=$CC
Thomas Wouters47b49bf2007-08-30 22:15:333812 for ac_prog in cl.exe
Martin v. Löwis11437992002-04-12 09:54:033813do
3814 # Extract the first word of "$ac_prog", so it can be a program name with args.
3815set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:493816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:093818if ${ac_cv_prog_ac_ct_CC+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:493819 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:033820else
3821 if test -n "$ac_ct_CC"; then
3822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:493829 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:543830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis11437992002-04-12 09:54:033831 ac_cv_prog_ac_ct_CC="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:493832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis11437992002-04-12 09:54:033833 break 2
3834 fi
3835done
Matthias Kloseb9621712010-04-24 17:59:493836 done
Thomas Wouters47b49bf2007-08-30 22:15:333837IFS=$as_save_IFS
Jack Jansendd19cf82001-12-06 22:36:173838
Martin v. Löwis11437992002-04-12 09:54:033839fi
3840fi
3841ac_ct_CC=$ac_cv_prog_ac_ct_CC
3842if test -n "$ac_ct_CC"; then
Matthias Kloseb9621712010-04-24 17:59:493843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3844$as_echo "$ac_ct_CC" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033845else
Matthias Kloseb9621712010-04-24 17:59:493846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:033848fi
Michael W. Hudson54241132001-12-07 15:38:263849
Thomas Wouters47b49bf2007-08-30 22:15:333850
Martin v. Löwis11437992002-04-12 09:54:033851 test -n "$ac_ct_CC" && break
3852done
Michael W. Hudson54241132001-12-07 15:38:263853
Thomas Wouters47b49bf2007-08-30 22:15:333854 if test "x$ac_ct_CC" = x; then
3855 CC=""
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858yes:)
Matthias Kloseb9621712010-04-24 17:59:493859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:333861ac_tool_warned=yes ;;
3862esac
3863 CC=$ac_ct_CC
3864 fi
Martin v. Löwis11437992002-04-12 09:54:033865fi
3866
3867fi
3868
3869
Matthias Kloseb9621712010-04-24 17:59:493870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:303872as_fn_error $? "no acceptable C compiler found in \$PATH
Victor Stinnere0be4232011-10-25 11:06:093873See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:033874
3875# Provide some information about the compiler.
Matthias Kloseb9621712010-04-24 17:59:493876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3877set X $ac_compile
3878ac_compiler=$2
3879for ac_option in --version -v -V -qversion; do
3880 { { ac_try="$ac_compiler $ac_option >&5"
Thomas Wouters47b49bf2007-08-30 22:15:333881case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
Matthias Kloseb9621712010-04-24 17:59:493885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886$as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Martin v. Löwis11437992002-04-12 09:54:033888 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493889 if test -s conftest.err; then
3890 sed '10a\
3891... rest of stderr output deleted ...
3892 10q' conftest.err >conftest.er1
3893 cat conftest.er1 >&5
3894 fi
3895 rm -f conftest.er1 conftest.err
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }
3898done
Martin v. Löwis11437992002-04-12 09:54:033899
Matthias Kloseb9621712010-04-24 17:59:493900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:043901/* end confdefs.h. */
Jack Jansendd19cf82001-12-06 22:36:173902
Martin v. Löwis11437992002-04-12 09:54:033903int
3904main ()
3905{
3906
3907 ;
3908 return 0;
3909}
3910_ACEOF
3911ac_clean_files_save=$ac_clean_files
Matthias Kloseb9621712010-04-24 17:59:493912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Martin v. Löwis11437992002-04-12 09:54:033913# Try to create an executable without -o first, disregard a.out.
3914# It will help us diagnose broken compilers, and finding out an intuition
3915# of exeext.
Matthias Kloseb9621712010-04-24 17:59:493916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3917$as_echo_n "checking whether the C compiler works... " >&6; }
3918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3919
3920# The possible output files:
3921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3922
Thomas Wouters47b49bf2007-08-30 22:15:333923ac_rmfiles=
3924for ac_file in $ac_files
3925do
3926 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters47b49bf2007-08-30 22:15:333928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3929 esac
3930done
3931rm -f $ac_rmfiles
3932
Matthias Kloseb9621712010-04-24 17:59:493933if { { ac_try="$ac_link_default"
Thomas Wouters47b49bf2007-08-30 22:15:333934case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937esac
Matthias Kloseb9621712010-04-24 17:59:493938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:333940 (eval "$ac_link_default") 2>&5
Martin v. Löwis11437992002-04-12 09:54:033941 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:493942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:333944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3946# in a Makefile. We should not override ac_cv_exeext if it was cached,
3947# so that the user can short-circuit this test for compilers unknown to
3948# Autoconf.
3949for ac_file in $ac_files ''
Skip Montanaro6dead952003-09-25 14:50:043950do
3951 test -f "$ac_file" || continue
Martin v. Löwis11437992002-04-12 09:54:033952 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:493953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Thomas Wouters1ba5b3b2006-06-08 14:52:473954 ;;
3955 [ab].out )
3956 # We found the default executable, but exeext='' is most
3957 # certainly right.
3958 break;;
3959 *.* )
Matthias Kloseb9621712010-04-24 17:59:493960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Thomas Wouters47b49bf2007-08-30 22:15:333961 then :; else
3962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963 fi
3964 # We set ac_cv_exeext here because the later test for it is not
3965 # safe: cross compilers may not add the suffix if given an `-o'
3966 # argument, so we may need to know it at that point already.
3967 # Even if this section looks crufty: it has the advantage of
3968 # actually working.
Thomas Wouters1ba5b3b2006-06-08 14:52:473969 break;;
3970 * )
3971 break;;
Martin v. Löwis11437992002-04-12 09:54:033972 esac
3973done
Thomas Wouters47b49bf2007-08-30 22:15:333974test "$ac_cv_exeext" = no && ac_cv_exeext=
3975
Guido van Rossume6c2cf11999-01-08 21:08:333976else
Thomas Wouters47b49bf2007-08-30 22:15:333977 ac_file=''
3978fi
Matthias Kloseb9621712010-04-24 17:59:493979if test -z "$ac_file"; then :
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982$as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:043983sed 's/^/| /' conftest.$ac_ext >&5
3984
Matthias Kloseb9621712010-04-24 17:59:493985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:303987as_fn_error 77 "C compiler cannot create executables
Victor Stinnere0be4232011-10-25 11:06:093988See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:493989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; }
Michael W. Hudson54241132001-12-07 15:38:263992fi
Matthias Kloseb9621712010-04-24 17:59:493993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3994$as_echo_n "checking for C compiler default output file name... " >&6; }
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3996$as_echo "$ac_file" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:473997ac_exeext=$ac_cv_exeext
Thomas Wouters1ba5b3b2006-06-08 14:52:473998
Matthias Kloseb9621712010-04-24 17:59:493999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Thomas Wouters1ba5b3b2006-06-08 14:52:474000ac_clean_files=$ac_clean_files_save
Matthias Kloseb9621712010-04-24 17:59:494001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4002$as_echo_n "checking for suffix of executables... " >&6; }
4003if { { ac_try="$ac_link"
Thomas Wouters47b49bf2007-08-30 22:15:334004case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
Matthias Kloseb9621712010-04-24 17:59:494008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:334010 (eval "$ac_link") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034011 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
Thomas Wouters1ba5b3b2006-06-08 14:52:474014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4016# work properly (i.e., refer to `conftest.exe'), while it won't with
4017# `rm'.
4018for ac_file in conftest.exe conftest conftest.*; do
4019 test -f "$ac_file" || continue
4020 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Thomas Wouters1ba5b3b2006-06-08 14:52:474022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 break;;
4024 * ) break;;
4025 esac
4026done
Guido van Rossum76be6ed1995-01-02 18:33:544027else
Matthias Kloseb9621712010-04-24 17:59:494028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304030as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Victor Stinnere0be4232011-10-25 11:06:094031See \`config.log' for more details" "$LINENO" 5; }
Michael W. Hudson54241132001-12-07 15:38:264032fi
Matthias Kloseb9621712010-04-24 17:59:494033rm -f conftest conftest$ac_cv_exeext
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4035$as_echo "$ac_cv_exeext" >&6; }
Thomas Wouters1ba5b3b2006-06-08 14:52:474036
4037rm -f conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034038EXEEXT=$ac_cv_exeext
4039ac_exeext=$EXEEXT
Matthias Kloseb9621712010-04-24 17:59:494040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h. */
4042#include <stdio.h>
4043int
4044main ()
4045{
4046FILE *f = fopen ("conftest.out", "w");
4047 return ferror (f) || fclose (f) != 0;
4048
4049 ;
4050 return 0;
4051}
Thomas Wouters1ba5b3b2006-06-08 14:52:474052_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494053ac_clean_files="$ac_clean_files conftest.out"
4054# Check that the compiler produces executables we can run. If not, either
4055# the compiler is broken, or we cross compile.
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4057$as_echo_n "checking whether we are cross compiling... " >&6; }
4058if test "$cross_compiling" != yes; then
4059 { { ac_try="$ac_link"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_link") 2>&5
4067 ac_status=$?
4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }
4070 if { ac_try='./conftest$ac_cv_exeext'
4071 { { case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076$as_echo "$ac_try_echo"; } >&5
4077 (eval "$ac_try") 2>&5
4078 ac_status=$?
4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }; }; then
4081 cross_compiling=no
4082 else
4083 if test "$cross_compiling" = maybe; then
4084 cross_compiling=yes
4085 else
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304088as_fn_error $? "cannot run C compiled programs.
Matthias Kloseb9621712010-04-24 17:59:494089If you meant to cross compile, use \`--host'.
Victor Stinnere0be4232011-10-25 11:06:094090See \`config.log' for more details" "$LINENO" 5; }
Matthias Kloseb9621712010-04-24 17:59:494091 fi
4092 fi
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4095$as_echo "$cross_compiling" >&6; }
4096
4097rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4098ac_clean_files=$ac_clean_files_save
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4100$as_echo_n "checking for suffix of object files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094101if ${ac_cv_objext+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494102 $as_echo_n "(cached) " >&6
4103else
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters1ba5b3b2006-06-08 14:52:474105/* end confdefs.h. */
4106
4107int
4108main ()
4109{
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.o conftest.obj
Matthias Kloseb9621712010-04-24 17:59:494116if { { ac_try="$ac_compile"
Thomas Wouters47b49bf2007-08-30 22:15:334117case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120esac
Matthias Kloseb9621712010-04-24 17:59:494121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122$as_echo "$ac_try_echo"; } >&5
Thomas Wouters47b49bf2007-08-30 22:15:334123 (eval "$ac_compile") 2>&5
Martin v. Löwis11437992002-04-12 09:54:034124 ac_status=$?
Matthias Kloseb9621712010-04-24 17:59:494125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }; then :
Thomas Wouters47b49bf2007-08-30 22:15:334127 for ac_file in conftest.o conftest.obj conftest.*; do
4128 test -f "$ac_file" || continue;
Martin v. Löwis11437992002-04-12 09:54:034129 case $ac_file in
Matthias Kloseb9621712010-04-24 17:59:494130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Martin v. Löwis11437992002-04-12 09:54:034131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4132 break;;
4133 esac
4134done
4135else
Matthias Kloseb9621712010-04-24 17:59:494136 $as_echo "$as_me: failed program was:" >&5
Skip Montanaro6dead952003-09-25 14:50:044137sed 's/^/| /' conftest.$ac_ext >&5
4138
Matthias Kloseb9621712010-04-24 17:59:494139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:304141as_fn_error $? "cannot compute suffix of object files: cannot compile
Victor Stinnere0be4232011-10-25 11:06:094142See \`config.log' for more details" "$LINENO" 5; }
Martin v. Löwis11437992002-04-12 09:54:034143fi
Thomas Wouters1ba5b3b2006-06-08 14:52:474144rm -f conftest.$ac_cv_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034145fi
Matthias Kloseb9621712010-04-24 17:59:494146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4147$as_echo "$ac_cv_objext" >&6; }
Martin v. Löwis11437992002-04-12 09:54:034148OBJEXT=$ac_cv_objext
4149ac_objext=$OBJEXT
Matthias Kloseb9621712010-04-24 17:59:494150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094152if ${ac_cv_c_compiler_gnu+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494153 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034154else
Matthias Kloseb9621712010-04-24 17:59:494155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044156/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034157
Martin v. Löwis11437992002-04-12 09:54:034158int
4159main ()
4160{
4161#ifndef __GNUC__
4162 choke me
4163#endif
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494169if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:034170 ac_compiler_gnu=yes
4171else
Matthias Kloseb9621712010-04-24 17:59:494172 ac_compiler_gnu=no
Martin v. Löwis11437992002-04-12 09:54:034173fi
Thomas Wouters47b49bf2007-08-30 22:15:334174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:034175ac_cv_c_compiler_gnu=$ac_compiler_gnu
4176
4177fi
Matthias Kloseb9621712010-04-24 17:59:494178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4179$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4180if test $ac_compiler_gnu = yes; then
4181 GCC=yes
4182else
4183 GCC=
4184fi
Martin v. Löwis11437992002-04-12 09:54:034185ac_test_CFLAGS=${CFLAGS+set}
4186ac_save_CFLAGS=$CFLAGS
Matthias Kloseb9621712010-04-24 17:59:494187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4188$as_echo_n "checking whether $CC accepts -g... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094189if ${ac_cv_prog_cc_g+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494190 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:034191else
Thomas Wouters47b49bf2007-08-30 22:15:334192 ac_save_c_werror_flag=$ac_c_werror_flag
4193 ac_c_werror_flag=yes
4194 ac_cv_prog_cc_g=no
4195 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044197/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:034198
Martin v. Löwis11437992002-04-12 09:54:034199int
4200main ()
4201{
4202
4203 ;
4204 return 0;
4205}
4206_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494207if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumf78abae1997-01-21 22:02:364208 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:544209else
Matthias Kloseb9621712010-04-24 17:59:494210 CFLAGS=""
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334212/* end confdefs.h. */
4213
4214int
4215main ()
4216{
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494222if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334223
Matthias Kloseb9621712010-04-24 17:59:494224else
4225 ac_c_werror_flag=$ac_save_c_werror_flag
Thomas Wouters47b49bf2007-08-30 22:15:334226 CFLAGS="-g"
Matthias Kloseb9621712010-04-24 17:59:494227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:334228/* end confdefs.h. */
4229
4230int
4231main ()
4232{
4233
4234 ;
4235 return 0;
4236}
4237_ACEOF
Matthias Kloseb9621712010-04-24 17:59:494238if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334239 ac_cv_prog_cc_g=yes
Guido van Rossum627b2d71993-12-24 10:39:164240fi
Thomas Wouters47b49bf2007-08-30 22:15:334241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:544242fi
Thomas Wouters47b49bf2007-08-30 22:15:334243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
Thomas Wouters47b49bf2007-08-30 22:15:334245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_c_werror_flag=$ac_save_c_werror_flag
4247fi
Matthias Kloseb9621712010-04-24 17:59:494248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4249$as_echo "$ac_cv_prog_cc_g" >&6; }
Guido van Rossume6c2cf11999-01-08 21:08:334250if test "$ac_test_CFLAGS" = set; then
Martin v. Löwis11437992002-04-12 09:54:034251 CFLAGS=$ac_save_CFLAGS
Guido van Rossume6c2cf11999-01-08 21:08:334252elif test $ac_cv_prog_cc_g = yes; then
4253 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:364254 CFLAGS="-g -O2"
4255 else
Guido van Rossume6c2cf11999-01-08 21:08:334256 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:544257 fi
4258else
Guido van Rossume6c2cf11999-01-08 21:08:334259 if test "$GCC" = yes; then
4260 CFLAGS="-O2"
4261 else
4262 CFLAGS=
4263 fi
Guido van Rossum76be6ed1995-01-02 18:33:544264fi
Matthias Kloseb9621712010-04-24 17:59:494265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094267if ${ac_cv_prog_cc_c89+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494268 $as_echo_n "(cached) " >&6
Skip Montanaro6dead952003-09-25 14:50:044269else
Thomas Wouters47b49bf2007-08-30 22:15:334270 ac_cv_prog_cc_c89=no
Skip Montanaro6dead952003-09-25 14:50:044271ac_save_CC=$CC
Matthias Kloseb9621712010-04-24 17:59:494272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044273/* end confdefs.h. */
4274#include <stdarg.h>
4275#include <stdio.h>
Ross Lagerwall1b863eb2012-10-29 17:31:544276struct stat;
Skip Montanaro6dead952003-09-25 14:50:044277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4278struct buf { int x; };
4279FILE * (*rcsopen) (struct buf *, struct stat *, int);
4280static char *e (p, i)
4281 char **p;
4282 int i;
4283{
4284 return p[i];
4285}
4286static char *f (char * (*g) (char **, int), char **p, ...)
4287{
4288 char *s;
4289 va_list v;
4290 va_start (v,p);
4291 s = g (p, va_arg (v,int));
4292 va_end (v);
4293 return s;
4294}
Skip Montanarof0d5f792004-08-15 14:08:234295
4296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4297 function prototypes and stuff, but not '\xHH' hex character constants.
4298 These don't provoke an error unfortunately, instead are silently treated
Thomas Wouters47b49bf2007-08-30 22:15:334299 as 'x'. The following induces an error, until -std is added to get
Skip Montanarof0d5f792004-08-15 14:08:234300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4301 array size at least. It's necessary to write '\x00'==0 to get something
Thomas Wouters47b49bf2007-08-30 22:15:334302 that's true only with -std. */
Skip Montanarof0d5f792004-08-15 14:08:234303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4304
Thomas Wouters47b49bf2007-08-30 22:15:334305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4306 inside strings and character constants. */
4307#define FOO(x) 'x'
4308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4309
Skip Montanaro6dead952003-09-25 14:50:044310int test (int i, double x);
4311struct s1 {int (*f) (int a);};
4312struct s2 {int (*f) (double a);};
4313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4314int argc;
4315char **argv;
4316int
4317main ()
4318{
4319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4320 ;
4321 return 0;
4322}
4323_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:334324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Skip Montanaro6dead952003-09-25 14:50:044326do
4327 CC="$ac_save_CC $ac_arg"
Matthias Kloseb9621712010-04-24 17:59:494328 if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:334329 ac_cv_prog_cc_c89=$ac_arg
Skip Montanaro6dead952003-09-25 14:50:044330fi
Thomas Wouters47b49bf2007-08-30 22:15:334331rm -f core conftest.err conftest.$ac_objext
4332 test "x$ac_cv_prog_cc_c89" != "xno" && break
Skip Montanaro6dead952003-09-25 14:50:044333done
Thomas Wouters47b49bf2007-08-30 22:15:334334rm -f conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:044335CC=$ac_save_CC
4336
4337fi
Thomas Wouters47b49bf2007-08-30 22:15:334338# AC_CACHE_VAL
4339case "x$ac_cv_prog_cc_c89" in
4340 x)
Matthias Kloseb9621712010-04-24 17:59:494341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4342$as_echo "none needed" >&6; } ;;
Thomas Wouters47b49bf2007-08-30 22:15:334343 xno)
Matthias Kloseb9621712010-04-24 17:59:494344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4345$as_echo "unsupported" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044346 *)
Thomas Wouters47b49bf2007-08-30 22:15:334347 CC="$CC $ac_cv_prog_cc_c89"
Matthias Kloseb9621712010-04-24 17:59:494348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4349$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Skip Montanaro6dead952003-09-25 14:50:044350esac
Matthias Kloseb9621712010-04-24 17:59:494351if test "x$ac_cv_prog_cc_c89" != xno; then :
Skip Montanaro6dead952003-09-25 14:50:044352
Matthias Kloseb9621712010-04-24 17:59:494353fi
Skip Montanaro6dead952003-09-25 14:50:044354
Martin v. Löwis11437992002-04-12 09:54:034355ac_ext=c
4356ac_cpp='$CPP $CPPFLAGS'
4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359ac_compiler_gnu=$ac_cv_c_compiler_gnu
Guido van Rossum76be6ed1995-01-02 18:33:544360
doko@ubuntu.comd3899c12015-04-15 18:23:144361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4367$as_echo_n "checking how to run the C preprocessor... " >&6; }
4368# On Suns, sometimes $CPP names a directory.
4369if test -n "$CPP" && test -d "$CPP"; then
4370 CPP=
4371fi
4372if test -z "$CPP"; then
4373 if ${ac_cv_prog_CPP+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375else
4376 # Double quotes because CPP needs to be expanded
4377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4378 do
4379 ac_preproc_ok=false
4380for ac_c_preproc_warn_flag in '' yes
4381do
4382 # Use a header file that comes with gcc, so configuring glibc
4383 # with a fresh cross-compiler works.
4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4385 # <limits.h> exists even on freestanding compilers.
4386 # On the NeXT, cc -E runs the code through the compiler's parser,
4387 # not just through cpp. "Syntax error" is here to catch this case.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
4390#ifdef __STDC__
4391# include <limits.h>
4392#else
4393# include <assert.h>
4394#endif
4395 Syntax error
4396_ACEOF
4397if ac_fn_c_try_cpp "$LINENO"; then :
4398
4399else
4400 # Broken: fails on valid input.
4401continue
4402fi
4403rm -f conftest.err conftest.i conftest.$ac_ext
4404
4405 # OK, works on sane cases. Now check whether nonexistent headers
4406 # can be detected and how.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h. */
4409#include <ac_nonexistent.h>
4410_ACEOF
4411if ac_fn_c_try_cpp "$LINENO"; then :
4412 # Broken: success on invalid input.
4413continue
4414else
4415 # Passes both tests.
4416ac_preproc_ok=:
4417break
4418fi
4419rm -f conftest.err conftest.i conftest.$ac_ext
4420
4421done
4422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4423rm -f conftest.i conftest.err conftest.$ac_ext
4424if $ac_preproc_ok; then :
4425 break
4426fi
4427
4428 done
4429 ac_cv_prog_CPP=$CPP
4430
4431fi
4432 CPP=$ac_cv_prog_CPP
4433else
4434 ac_cv_prog_CPP=$CPP
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4437$as_echo "$CPP" >&6; }
4438ac_preproc_ok=false
4439for ac_c_preproc_warn_flag in '' yes
4440do
4441 # Use a header file that comes with gcc, so configuring glibc
4442 # with a fresh cross-compiler works.
4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 # <limits.h> exists even on freestanding compilers.
4445 # On the NeXT, cc -E runs the code through the compiler's parser,
4446 # not just through cpp. "Syntax error" is here to catch this case.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h. */
4449#ifdef __STDC__
4450# include <limits.h>
4451#else
4452# include <assert.h>
4453#endif
4454 Syntax error
4455_ACEOF
4456if ac_fn_c_try_cpp "$LINENO"; then :
4457
4458else
4459 # Broken: fails on valid input.
4460continue
4461fi
4462rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464 # OK, works on sane cases. Now check whether nonexistent headers
4465 # can be detected and how.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
4468#include <ac_nonexistent.h>
4469_ACEOF
4470if ac_fn_c_try_cpp "$LINENO"; then :
4471 # Broken: success on invalid input.
4472continue
4473else
4474 # Passes both tests.
4475ac_preproc_ok=:
4476break
4477fi
4478rm -f conftest.err conftest.i conftest.$ac_ext
4479
4480done
4481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4482rm -f conftest.i conftest.err conftest.$ac_ext
4483if $ac_preproc_ok; then :
4484
4485else
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4489See \`config.log' for more details" "$LINENO" 5; }
4490fi
4491
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4499$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4500if ${ac_cv_path_GREP+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502else
4503 if test -z "$GREP"; then
4504 ac_path_GREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in grep ggrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4514 as_fn_executable_p "$ac_path_GREP" || continue
4515# Check for GNU ac_path_GREP and select it if it is found.
4516 # Check for GNU $ac_path_GREP
4517case `"$ac_path_GREP" --version 2>&1` in
4518*GNU*)
4519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4520*)
4521 ac_count=0
4522 $as_echo_n 0123456789 >"conftest.in"
4523 while :
4524 do
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'GREP' >> "conftest.nl"
4529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_GREP="$ac_path_GREP"
4535 ac_path_GREP_max=$ac_count
4536 fi
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4539 done
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541esac
4542
4543 $ac_path_GREP_found && break 3
4544 done
4545 done
4546 done
4547IFS=$as_save_IFS
4548 if test -z "$ac_cv_path_GREP"; then
4549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4550 fi
4551else
4552 ac_cv_path_GREP=$GREP
4553fi
4554
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4557$as_echo "$ac_cv_path_GREP" >&6; }
4558 GREP="$ac_cv_path_GREP"
4559
4560
Łukasz Langaa785c872016-09-10 00:37:374561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4562$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4563if ${ac_cv_path_SED+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565else
4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4567 for ac_i in 1 2 3 4 5 6 7; do
4568 ac_script="$ac_script$as_nl$ac_script"
4569 done
4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4571 { ac_script=; unset ac_script;}
4572 if test -z "$SED"; then
4573 ac_path_SED_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in sed gsed; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4583 as_fn_executable_p "$ac_path_SED" || continue
4584# Check for GNU ac_path_SED and select it if it is found.
4585 # Check for GNU $ac_path_SED
4586case `"$ac_path_SED" --version 2>&1` in
4587*GNU*)
4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4589*)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo '' >> "conftest.nl"
4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_SED_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_SED="$ac_path_SED"
4604 ac_path_SED_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610esac
4611
4612 $ac_path_SED_found && break 3
4613 done
4614 done
4615 done
4616IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_SED"; then
4618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4619 fi
4620else
4621 ac_cv_path_SED=$SED
4622fi
4623
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4626$as_echo "$ac_cv_path_SED" >&6; }
4627 SED="$ac_cv_path_SED"
4628 rm -f conftest.sed
4629
Martin v. Löwis1d5ecb72001-08-09 10:29:444630
Thomas Wouters49fd7fa2006-04-21 10:40:584631
4632
Matthias Kloseb9621712010-04-24 17:59:494633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4634$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584635
Thomas Wouters47b49bf2007-08-30 22:15:334636# Check whether --with-cxx_main was given.
Matthias Kloseb9621712010-04-24 17:59:494637if test "${with_cxx_main+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:334638 withval=$with_cxx_main;
Thomas Wouters49fd7fa2006-04-21 10:40:584639
4640 case $withval in
4641 no) with_cxx_main=no
4642 MAINCC='$(CC)';;
4643 yes) with_cxx_main=yes
4644 MAINCC='$(CXX)';;
4645 *) with_cxx_main=yes
4646 MAINCC=$withval
4647 if test -z "$CXX"
4648 then
4649 CXX=$withval
4650 fi;;
4651 esac
4652else
4653
4654 with_cxx_main=no
4655 MAINCC='$(CC)'
4656
Thomas Wouters47b49bf2007-08-30 22:15:334657fi
4658
Matthias Kloseb9621712010-04-24 17:59:494659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4660$as_echo "$with_cxx_main" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:584661
4662preset_cxx="$CXX"
4663if test -z "$CXX"
4664then
4665 case "$CC" in
doko@ubuntu.com51f65942012-06-30 12:42:464666 gcc) if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4668set dummy ${ac_tool_prefix}g++; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if ${ac_cv_path_CXX+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 case $CXX in
4675 [\\/]* | ?:[\\/]*)
4676 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4677 ;;
4678 *)
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in notfound
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464686 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4689 fi
4690done
4691 done
4692IFS=$as_save_IFS
4693
4694 ;;
4695esac
4696fi
4697CXX=$ac_cv_path_CXX
4698if test -n "$CXX"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4700$as_echo "$CXX" >&6; }
4701else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703$as_echo "no" >&6; }
4704fi
4705
4706
4707fi
4708if test -z "$ac_cv_path_CXX"; then
4709 ac_pt_CXX=$CXX
4710 # Extract the first word of "g++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584711set dummy g++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464714if ${ac_cv_path_ac_pt_CXX+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716else
4717 case $ac_pt_CXX in
4718 [\\/]* | ?:[\\/]*)
4719 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4720 ;;
4721 *)
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in notfound
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464729 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734 done
4735IFS=$as_save_IFS
4736
4737 ;;
4738esac
4739fi
4740ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4741if test -n "$ac_pt_CXX"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4743$as_echo "$ac_pt_CXX" >&6; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749 if test "x$ac_pt_CXX" = x; then
4750 CXX="g++"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753yes:)
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756ac_tool_warned=yes ;;
4757esac
4758 CXX=$ac_pt_CXX
4759 fi
4760else
4761 CXX="$ac_cv_path_CXX"
4762fi
4763 ;;
4764 cc) if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
4766set dummy ${ac_tool_prefix}c++; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:094769if ${ac_cv_path_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494770 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584771else
4772 case $CXX in
4773 [\\/]* | ?:[\\/]*)
4774 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4775 ;;
4776 *)
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in notfound
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494782 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:544783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Thomas Wouters49fd7fa2006-04-21 10:40:584784 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584786 break 2
4787 fi
4788done
Matthias Kloseb9621712010-04-24 17:59:494789 done
Thomas Wouters47b49bf2007-08-30 22:15:334790IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584791
Thomas Wouters49fd7fa2006-04-21 10:40:584792 ;;
4793esac
4794fi
4795CXX=$ac_cv_path_CXX
Skip Montanaroeb33e5a2007-08-17 12:57:414796if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:494797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4798$as_echo "$CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414799else
Matthias Kloseb9621712010-04-24 17:59:494800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414802fi
Thomas Wouters47b49bf2007-08-30 22:15:334803
doko@ubuntu.com51f65942012-06-30 12:42:464804
4805fi
4806if test -z "$ac_cv_path_CXX"; then
4807 ac_pt_CXX=$CXX
4808 # Extract the first word of "c++", so it can be a program name with args.
Thomas Wouters49fd7fa2006-04-21 10:40:584809set dummy c++; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:494810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
doko@ubuntu.com51f65942012-06-30 12:42:464812if ${ac_cv_path_ac_pt_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:494813 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:584814else
doko@ubuntu.com51f65942012-06-30 12:42:464815 case $ac_pt_CXX in
Thomas Wouters49fd7fa2006-04-21 10:40:584816 [\\/]* | ?:[\\/]*)
doko@ubuntu.com51f65942012-06-30 12:42:464817 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
Thomas Wouters49fd7fa2006-04-21 10:40:584818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in notfound
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:494825 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464827 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
Matthias Kloseb9621712010-04-24 17:59:494828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:584829 break 2
4830 fi
4831done
Matthias Kloseb9621712010-04-24 17:59:494832 done
Thomas Wouters47b49bf2007-08-30 22:15:334833IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:584834
Thomas Wouters49fd7fa2006-04-21 10:40:584835 ;;
4836esac
4837fi
doko@ubuntu.com51f65942012-06-30 12:42:464838ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4839if test -n "$ac_pt_CXX"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4841$as_echo "$ac_pt_CXX" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414842else
Matthias Kloseb9621712010-04-24 17:59:494843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
Skip Montanaroeb33e5a2007-08-17 12:57:414845fi
Thomas Wouters47b49bf2007-08-30 22:15:334846
doko@ubuntu.com51f65942012-06-30 12:42:464847 if test "x$ac_pt_CXX" = x; then
4848 CXX="c++"
4849 else
4850 case $cross_compiling:$ac_tool_warned in
4851yes:)
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4854ac_tool_warned=yes ;;
4855esac
4856 CXX=$ac_pt_CXX
4857 fi
4858else
4859 CXX="$ac_cv_path_CXX"
4860fi
Thomas Wouters49fd7fa2006-04-21 10:40:584861 ;;
doko@ubuntu.com51f65942012-06-30 12:42:464862 clang|*/clang) if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
4864set dummy ${ac_tool_prefix}clang++; ac_word=$2
Ned Deilycbfb9a52012-06-23 23:02:194865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866$as_echo_n "checking for $ac_word... " >&6; }
4867if ${ac_cv_path_CXX+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869else
4870 case $CXX in
4871 [\\/]* | ?:[\\/]*)
4872 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4873 ;;
4874 *)
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in notfound
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ned Deilycbfb9a52012-06-23 23:02:194882 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886done
4887 done
4888IFS=$as_save_IFS
4889
Ned Deilycbfb9a52012-06-23 23:02:194890 ;;
4891esac
4892fi
4893CXX=$ac_cv_path_CXX
4894if test -n "$CXX"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4896$as_echo "$CXX" >&6; }
4897else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900fi
4901
doko@ubuntu.com51f65942012-06-30 12:42:464902
4903fi
4904if test -z "$ac_cv_path_CXX"; then
4905 ac_pt_CXX=$CXX
4906 # Extract the first word of "clang++", so it can be a program name with args.
4907set dummy clang++; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if ${ac_cv_path_ac_pt_CXX+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912else
4913 case $ac_pt_CXX in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in notfound
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:574924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:464925 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930 done
4931IFS=$as_save_IFS
4932
4933 ;;
4934esac
4935fi
4936ac_pt_CXX=$ac_cv_path_ac_pt_CXX
4937if test -n "$ac_pt_CXX"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4939$as_echo "$ac_pt_CXX" >&6; }
4940else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945 if test "x$ac_pt_CXX" = x; then
4946 CXX="clang++"
4947 else
4948 case $cross_compiling:$ac_tool_warned in
4949yes:)
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952ac_tool_warned=yes ;;
4953esac
4954 CXX=$ac_pt_CXX
4955 fi
4956else
4957 CXX="$ac_cv_path_CXX"
4958fi
Ned Deilycbfb9a52012-06-23 23:02:194959 ;;
Zachary Ware5af85642015-12-21 18:09:174960 icc|*/icc) if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
4962set dummy ${ac_tool_prefix}icpc; ac_word=$2
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964$as_echo_n "checking for $ac_word... " >&6; }
4965if ${ac_cv_path_CXX+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967else
4968 case $CXX in
4969 [\\/]* | ?:[\\/]*)
4970 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4971 ;;
4972 *)
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in notfound
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985 done
4986IFS=$as_save_IFS
4987
4988 ;;
4989esac
4990fi
4991CXX=$ac_cv_path_CXX
4992if test -n "$CXX"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4994$as_echo "$CXX" >&6; }
4995else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
4998fi
4999
5000
5001fi
5002if test -z "$ac_cv_path_CXX"; then
5003 ac_pt_CXX=$CXX
5004 # Extract the first word of "icpc", so it can be a program name with args.
5005set dummy icpc; ac_word=$2
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007$as_echo_n "checking for $ac_word... " >&6; }
5008if ${ac_cv_path_ac_pt_CXX+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 case $ac_pt_CXX in
5012 [\\/]* | ?:[\\/]*)
5013 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
5014 ;;
5015 *)
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in notfound
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027done
5028 done
5029IFS=$as_save_IFS
5030
5031 ;;
5032esac
5033fi
5034ac_pt_CXX=$ac_cv_path_ac_pt_CXX
5035if test -n "$ac_pt_CXX"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5037$as_echo "$ac_pt_CXX" >&6; }
5038else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042
5043 if test "x$ac_pt_CXX" = x; then
5044 CXX="icpc"
5045 else
5046 case $cross_compiling:$ac_tool_warned in
5047yes:)
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5050ac_tool_warned=yes ;;
5051esac
5052 CXX=$ac_pt_CXX
5053 fi
5054else
5055 CXX="$ac_cv_path_CXX"
5056fi
5057 ;;
Thomas Wouters49fd7fa2006-04-21 10:40:585058 esac
5059 if test "$CXX" = "notfound"
5060 then
5061 CXX=""
5062 fi
5063fi
5064if test -z "$CXX"
5065then
doko@ubuntu.com51f65942012-06-30 12:42:465066 if test -n "$ac_tool_prefix"; then
5067 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5068 do
5069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:495071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095073if ${ac_cv_prog_CXX+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495074 $as_echo_n "(cached) " >&6
Thomas Wouters49fd7fa2006-04-21 10:40:585075else
5076 if test -n "$CXX"; then
5077 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5078else
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495084 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:545085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465086 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:495087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Thomas Wouters49fd7fa2006-04-21 10:40:585088 break 2
5089 fi
5090done
Matthias Kloseb9621712010-04-24 17:59:495091 done
Thomas Wouters47b49bf2007-08-30 22:15:335092IFS=$as_save_IFS
Thomas Wouters49fd7fa2006-04-21 10:40:585093
5094fi
5095fi
5096CXX=$ac_cv_prog_CXX
5097if test -n "$CXX"; then
Matthias Kloseb9621712010-04-24 17:59:495098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5099$as_echo "$CXX" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585100else
Matthias Kloseb9621712010-04-24 17:59:495101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
Thomas Wouters49fd7fa2006-04-21 10:40:585103fi
5104
Thomas Wouters47b49bf2007-08-30 22:15:335105
doko@ubuntu.com51f65942012-06-30 12:42:465106 test -n "$CXX" && break
5107 done
5108fi
5109if test -z "$CXX"; then
5110 ac_ct_CXX=$CXX
5111 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5112do
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114set dummy $ac_prog; ac_word=$2
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116$as_echo_n "checking for $ac_word... " >&6; }
5117if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 if test -n "$ac_ct_CXX"; then
5121 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:575129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465130 ac_cv_prog_ac_ct_CXX="$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
Thomas Wouters49fd7fa2006-04-21 10:40:585134done
doko@ubuntu.com51f65942012-06-30 12:42:465135 done
5136IFS=$as_save_IFS
5137
5138fi
5139fi
5140ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5141if test -n "$ac_ct_CXX"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5143$as_echo "$ac_ct_CXX" >&6; }
5144else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
5147fi
5148
5149
5150 test -n "$ac_ct_CXX" && break
5151done
5152
5153 if test "x$ac_ct_CXX" = x; then
5154 CXX="notfound"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157yes:)
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160ac_tool_warned=yes ;;
5161esac
5162 CXX=$ac_ct_CXX
5163 fi
5164fi
Thomas Wouters49fd7fa2006-04-21 10:40:585165
5166 if test "$CXX" = "notfound"
5167 then
5168 CXX=""
5169 fi
5170fi
5171if test "$preset_cxx" != "$CXX"
5172then
Christian Heimesfe32aec2013-11-20 00:18:265173 { $as_echo "$as_me:${as_lineno-$LINENO}:
Thomas Wouters49fd7fa2006-04-21 10:40:585174
5175 By default, distutils will build C++ extension modules with \"$CXX\".
5176 If this is not intended, then set CXX on the configure command line.
5177 " >&5
Christian Heimesfe32aec2013-11-20 00:18:265178$as_echo "$as_me:
Thomas Wouters49fd7fa2006-04-21 10:40:585179
5180 By default, distutils will build C++ extension modules with \"$CXX\".
5181 If this is not intended, then set CXX on the configure command line.
Christian Heimesfe32aec2013-11-20 00:18:265182 " >&6;}
Thomas Wouters49fd7fa2006-04-21 10:40:585183fi
5184
5185
doko@ubuntu.comd3899c12015-04-15 18:23:145186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
5187$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5188cat >> conftest.c <<EOF
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055189#undef bfin
5190#undef cris
5191#undef fr30
doko@ubuntu.comd3899c12015-04-15 18:23:145192#undef linux
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055193#undef hppa
5194#undef hpux
doko@ubuntu.comd3899c12015-04-15 18:23:145195#undef i386
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055196#undef mips
doko@ubuntu.com9abe0492015-04-15 21:31:025197#undef powerpc
doko@ubuntu.com5cc9c4f2015-04-19 12:44:055198#undef sparc
doko@ubuntu.comd3899c12015-04-15 18:23:145199#undef unix
doko@ubuntu.com5c38cb22016-09-01 20:05:205200#if defined(__ANDROID__)
Xavier de Gaye32cf1ac2016-12-10 16:31:285201 # Android is not a multiarch system.
doko@ubuntu.com5c38cb22016-09-01 20:05:205202#elif defined(__linux__)
doko@ubuntu.comd3899c12015-04-15 18:23:145203# if defined(__x86_64__) && defined(__LP64__)
5204 x86_64-linux-gnu
5205# elif defined(__x86_64__) && defined(__ILP32__)
5206 x86_64-linux-gnux32
5207# elif defined(__i386__)
5208 i386-linux-gnu
5209# elif defined(__aarch64__) && defined(__AARCH64EL__)
5210# if defined(__ILP32__)
5211 aarch64_ilp32-linux-gnu
5212# else
5213 aarch64-linux-gnu
5214# endif
5215# elif defined(__aarch64__) && defined(__AARCH64EB__)
5216# if defined(__ILP32__)
5217 aarch64_be_ilp32-linux-gnu
5218# else
5219 aarch64_be-linux-gnu
5220# endif
5221# elif defined(__alpha__)
5222 alpha-linux-gnu
5223# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP)
5224# if defined(__ARMEL__)
5225 arm-linux-gnueabihf
5226# else
5227 armeb-linux-gnueabihf
5228# endif
5229# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP)
5230# if defined(__ARMEL__)
5231 arm-linux-gnueabi
5232# else
5233 armeb-linux-gnueabi
5234# endif
5235# elif defined(__hppa__)
5236 hppa-linux-gnu
5237# elif defined(__ia64__)
5238 ia64-linux-gnu
5239# elif defined(__m68k__) && !defined(__mcoldfire__)
5240 m68k-linux-gnu
Miss Islington (bot)0596f312018-05-01 14:40:175241# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL)
5242# if _MIPS_SIM == _ABIO32
5243 mipsisa32r6el-linux-gnu
5244# elif _MIPS_SIM == _ABIN32
5245 mipsisa64r6el-linux-gnuabin32
5246# elif _MIPS_SIM == _ABI64
5247 mipsisa64r6el-linux-gnuabi64
5248# else
5249# error unknown platform triplet
5250# endif
5251# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6)
5252# if _MIPS_SIM == _ABIO32
5253 mipsisa32r6-linux-gnu
5254# elif _MIPS_SIM == _ABIN32
5255 mipsisa64r6-linux-gnuabin32
5256# elif _MIPS_SIM == _ABI64
5257 mipsisa64r6-linux-gnuabi64
5258# else
5259# error unknown platform triplet
5260# endif
doko@ubuntu.comd3899c12015-04-15 18:23:145261# elif defined(__mips_hard_float) && defined(_MIPSEL)
5262# if _MIPS_SIM == _ABIO32
5263 mipsel-linux-gnu
5264# elif _MIPS_SIM == _ABIN32
5265 mips64el-linux-gnuabin32
5266# elif _MIPS_SIM == _ABI64
5267 mips64el-linux-gnuabi64
5268# else
5269# error unknown platform triplet
5270# endif
5271# elif defined(__mips_hard_float)
5272# if _MIPS_SIM == _ABIO32
5273 mips-linux-gnu
5274# elif _MIPS_SIM == _ABIN32
5275 mips64-linux-gnuabin32
5276# elif _MIPS_SIM == _ABI64
5277 mips64-linux-gnuabi64
5278# else
5279# error unknown platform triplet
5280# endif
5281# elif defined(__or1k__)
5282 or1k-linux-gnu
5283# elif defined(__powerpc__) && defined(__SPE__)
5284 powerpc-linux-gnuspe
5285# elif defined(__powerpc64__)
5286# if defined(__LITTLE_ENDIAN__)
5287 powerpc64le-linux-gnu
5288# else
5289 powerpc64-linux-gnu
5290# endif
5291# elif defined(__powerpc__)
5292 powerpc-linux-gnu
5293# elif defined(__s390x__)
5294 s390x-linux-gnu
5295# elif defined(__s390__)
5296 s390-linux-gnu
5297# elif defined(__sh__) && defined(__LITTLE_ENDIAN__)
5298 sh4-linux-gnu
5299# elif defined(__sparc__) && defined(__arch64__)
5300 sparc64-linux-gnu
5301# elif defined(__sparc__)
5302 sparc-linux-gnu
Miss Islington (bot)0596f312018-05-01 14:40:175303# elif defined(__riscv)
5304# if __riscv_xlen == 32
5305 riscv32-linux-gnu
5306# elif __riscv_xlen == 64
5307 riscv64-linux-gnu
5308# else
5309# error unknown platform triplet
5310# endif
doko@ubuntu.comd3899c12015-04-15 18:23:145311# else
5312# error unknown platform triplet
5313# endif
5314#elif defined(__FreeBSD_kernel__)
5315# if defined(__LP64__)
5316 x86_64-kfreebsd-gnu
5317# elif defined(__i386__)
5318 i386-kfreebsd-gnu
5319# else
5320# error unknown platform triplet
5321# endif
5322#elif defined(__gnu_hurd__)
5323 i386-gnu
Ned Deily3b812482015-04-16 00:11:475324#elif defined(__APPLE__)
5325 darwin
doko@ubuntu.comd3899c12015-04-15 18:23:145326#else
5327# error unknown platform triplet
5328#endif
5329
5330EOF
5331
Xavier de Gaye3a32bdf2016-07-30 09:28:355332if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
doko@ubuntu.comd3899c12015-04-15 18:23:145333 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5335$as_echo "$PLATFORM_TRIPLET" >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5338$as_echo "none" >&6; }
5339fi
5340rm -f conftest.c conftest.out
5341
Ned Deily720bb452022-03-15 07:18:395342if test x$PLATFORM_TRIPLET != xdarwin; then
5343 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5344fi
5345
5346
doko@ubuntu.comd3899c12015-04-15 18:23:145347if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
5348 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
5349 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
5350 fi
doko@ubuntu.com75b1cb12016-08-29 18:03:255351elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
5352 MULTIARCH=$PLATFORM_TRIPLET
doko@ubuntu.comd3899c12015-04-15 18:23:145353fi
doko@ubuntu.comd3899c12015-04-15 18:23:145354
doko@ubuntu.com55532312016-06-14 06:55:195355if test x$MULTIARCH != x; then
5356 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5357fi
doko@ubuntu.comd3899c12015-04-15 18:23:145358
5359
Martin v. Löwis48e14d32011-05-09 05:37:455360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5361$as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5362save_LDFLAGS="$LDFLAGS"
5363LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
Martin v. Löwis11437992002-04-12 09:54:035364
Martin v. Löwis48e14d32011-05-09 05:37:455365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h. */
5367
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_link "$LINENO"; then :
5377 NO_AS_NEEDED="-Wl,--no-as-needed"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5379$as_echo "yes" >&6; }
5380else
5381 NO_AS_NEEDED=""
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384fi
5385rm -f core conftest.err conftest.$ac_objext \
5386 conftest$ac_exeext conftest.$ac_ext
5387LDFLAGS="$save_LDFLAGS"
5388
5389
5390
5391# checks for UNIX variants that set C preprocessor variables
Thomas Wouters47b49bf2007-08-30 22:15:335392
Matthias Kloseb9621712010-04-24 17:59:495393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5394$as_echo_n "checking for egrep... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095395if ${ac_cv_path_EGREP+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495396 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:335397else
5398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5399 then ac_cv_path_EGREP="$GREP -E"
5400 else
Matthias Kloseb9621712010-04-24 17:59:495401 if test -z "$EGREP"; then
Thomas Wouters47b49bf2007-08-30 22:15:335402 ac_path_EGREP_found=false
Matthias Kloseb9621712010-04-24 17:59:495403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Thomas Wouters47b49bf2007-08-30 22:15:335405for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495409 for ac_prog in egrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Ross Lagerwall1b863eb2012-10-29 17:31:545412 as_fn_executable_p "$ac_path_EGREP" || continue
Matthias Kloseb9621712010-04-24 17:59:495413# Check for GNU ac_path_EGREP and select it if it is found.
Thomas Wouters47b49bf2007-08-30 22:15:335414 # Check for GNU $ac_path_EGREP
5415case `"$ac_path_EGREP" --version 2>&1` in
5416*GNU*)
5417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5418*)
5419 ac_count=0
Matthias Kloseb9621712010-04-24 17:59:495420 $as_echo_n 0123456789 >"conftest.in"
Thomas Wouters47b49bf2007-08-30 22:15:335421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
Matthias Kloseb9621712010-04-24 17:59:495426 $as_echo 'EGREP' >> "conftest.nl"
Thomas Wouters47b49bf2007-08-30 22:15:335427 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Matthias Kloseb9621712010-04-24 17:59:495429 as_fn_arith $ac_count + 1 && ac_count=$as_val
Thomas Wouters47b49bf2007-08-30 22:15:335430 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_EGREP="$ac_path_EGREP"
5433 ac_path_EGREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439esac
5440
Matthias Kloseb9621712010-04-24 17:59:495441 $ac_path_EGREP_found && break 3
5442 done
Thomas Wouters47b49bf2007-08-30 22:15:335443 done
Matthias Kloseb9621712010-04-24 17:59:495444 done
Thomas Wouters47b49bf2007-08-30 22:15:335445IFS=$as_save_IFS
Matthias Kloseb9621712010-04-24 17:59:495446 if test -z "$ac_cv_path_EGREP"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:305447 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:495448 fi
Thomas Wouters47b49bf2007-08-30 22:15:335449else
5450 ac_cv_path_EGREP=$EGREP
5451fi
5452
Thomas Wouters47b49bf2007-08-30 22:15:335453 fi
5454fi
Matthias Kloseb9621712010-04-24 17:59:495455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5456$as_echo "$ac_cv_path_EGREP" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:335457 EGREP="$ac_cv_path_EGREP"
Skip Montanaro6dead952003-09-25 14:50:045458
5459
Matthias Kloseb9621712010-04-24 17:59:495460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5461$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095462if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495463 $as_echo_n "(cached) " >&6
5464else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Peterson8719ad52009-09-11 22:24:025466/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:495467#include <stdlib.h>
5468#include <stdarg.h>
5469#include <string.h>
5470#include <float.h>
5471
5472int
5473main ()
5474{
5475
5476 ;
5477 return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_header_stdc=yes
5482else
5483 ac_cv_header_stdc=no
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
5487if test $ac_cv_header_stdc = yes; then
5488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491#include <string.h>
Benjamin Peterson8719ad52009-09-11 22:24:025492
Benjamin Peterson8719ad52009-09-11 22:24:025493_ACEOF
Ronald Oussoren74f29b42009-09-20 20:09:265494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:495495 $EGREP "memchr" >/dev/null 2>&1; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535496
Ronald Oussoren74f29b42009-09-20 20:09:265497else
Matthias Kloseb9621712010-04-24 17:59:495498 ac_cv_header_stdc=no
Ronald Oussoren74f29b42009-09-20 20:09:265499fi
Matthias Klosec80c93f2010-04-24 17:04:355500rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:535501
Matthias Kloseb9621712010-04-24 17:59:495502fi
5503
5504if test $ac_cv_header_stdc = yes; then
5505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h. */
5508#include <stdlib.h>
5509
5510_ACEOF
5511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 $EGREP "free" >/dev/null 2>&1; then :
5513
5514else
5515 ac_cv_header_stdc=no
5516fi
5517rm -f conftest*
5518
5519fi
5520
5521if test $ac_cv_header_stdc = yes; then
5522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5523 if test "$cross_compiling" = yes; then :
5524 :
5525else
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h. */
5528#include <ctype.h>
5529#include <stdlib.h>
5530#if ((' ' & 0x0FF) == 0x020)
5531# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5532# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5533#else
5534# define ISLOWER(c) \
5535 (('a' <= (c) && (c) <= 'i') \
5536 || ('j' <= (c) && (c) <= 'r') \
5537 || ('s' <= (c) && (c) <= 'z'))
5538# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5539#endif
5540
5541#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5542int
5543main ()
5544{
5545 int i;
5546 for (i = 0; i < 256; i++)
5547 if (XOR (islower (i), ISLOWER (i))
5548 || toupper (i) != TOUPPER (i))
5549 return 2;
5550 return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_run "$LINENO"; then :
5554
5555else
5556 ac_cv_header_stdc=no
5557fi
5558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5559 conftest.$ac_objext conftest.beam conftest.$ac_ext
5560fi
5561
5562fi
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5565$as_echo "$ac_cv_header_stdc" >&6; }
5566if test $ac_cv_header_stdc = yes; then
5567
5568$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5569
5570fi
5571
5572# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5573for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5574 inttypes.h stdint.h unistd.h
5575do :
5576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5577ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5578"
Ross Lagerwallb0ae53d2011-06-10 05:30:305579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Matthias Kloseb9621712010-04-24 17:59:495580 cat >>confdefs.h <<_ACEOF
5581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582_ACEOF
5583
5584fi
5585
5586done
5587
5588
5589
5590 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:095591if test "x$ac_cv_header_minix_config_h" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:495592 MINIX=yes
5593else
5594 MINIX=
5595fi
5596
5597
5598 if test "$MINIX" = yes; then
5599
5600$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5601
5602
5603$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5604
5605
5606$as_echo "#define _MINIX 1" >>confdefs.h
5607
5608 fi
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5612$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095613if ${ac_cv_safe_to_define___extensions__+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495614 $as_echo_n "(cached) " >&6
5615else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618
Ross Lagerwall1b863eb2012-10-29 17:31:545619# define __EXTENSIONS__ 1
5620 $ac_includes_default
Matthias Kloseb9621712010-04-24 17:59:495621int
5622main ()
5623{
5624
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"; then :
5630 ac_cv_safe_to_define___extensions__=yes
5631else
5632 ac_cv_safe_to_define___extensions__=no
5633fi
5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5637$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5638 test $ac_cv_safe_to_define___extensions__ = yes &&
5639 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5640
5641 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5642
5643 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5644
5645 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5646
5647 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5648
5649
Alexandre Vassalotti302825b2009-07-17 07:49:535650
Xavier de Gaye95750b12016-07-09 09:05:425651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5652$as_echo_n "checking for the Android API level... " >&6; }
5653cat >> conftest.c <<EOF
5654#ifdef __ANDROID__
Xavier de Gaye2a352b62017-01-04 20:51:165655android_api = __ANDROID_API__
5656arm_arch = __ARM_ARCH
Xavier de Gaye95750b12016-07-09 09:05:425657#else
5658#error not Android
5659#endif
5660EOF
5661
5662if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
Xavier de Gaye2a352b62017-01-04 20:51:165663 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
5664 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
Xavier de Gaye95750b12016-07-09 09:05:425665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
5666$as_echo "$ANDROID_API_LEVEL" >&6; }
xdegayec06c22e2017-11-23 10:44:385667 if test -z "$ANDROID_API_LEVEL"; then
5668 echo 'Fatal: you must define __ANDROID_API__'
5669 exit 1
5670 fi
Xavier de Gaye95750b12016-07-09 09:05:425671
5672cat >>confdefs.h <<_ACEOF
5673#define ANDROID_API_LEVEL $ANDROID_API_LEVEL
5674_ACEOF
5675
Xavier de Gaye2a352b62017-01-04 20:51:165676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5678$as_echo_n "checking for the Android arm ABI... " >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5680$as_echo "$_arm_arch" >&6; }
5681 if test "$_arm_arch" = 7; then
5682 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5683 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5684 fi
Xavier de Gaye95750b12016-07-09 09:05:425685else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5687$as_echo "not Android" >&6; }
5688fi
5689rm -f conftest.c conftest.out
5690
Alexandre Vassalotti302825b2009-07-17 07:49:535691# Check for unsupported systems
5692case $ac_sys_system/$ac_sys_release in
5693atheos*|Linux*/1*)
5694 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5695 echo See README for details.
5696 exit 1;;
5697esac
5698
5699
Matthias Kloseb9621712010-04-24 17:59:495700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5701$as_echo_n "checking for --with-suffix... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535702
5703# Check whether --with-suffix was given.
Matthias Kloseb9621712010-04-24 17:59:495704if test "${with_suffix+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535705 withval=$with_suffix;
5706 case $withval in
5707 no) EXEEXT=;;
5708 yes) EXEEXT=.exe;;
5709 *) EXEEXT=$withval;;
5710 esac
5711fi
5712
Matthias Kloseb9621712010-04-24 17:59:495713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5714$as_echo "$EXEEXT" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535715
5716# Test whether we're running on a non-case-sensitive system, in which
5717# case we give a warning if no ext is given
5718
Matthias Kloseb9621712010-04-24 17:59:495719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5720$as_echo_n "checking for case-insensitive build directory... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535721if test ! -d CaseSensitiveTestDir; then
5722mkdir CaseSensitiveTestDir
5723fi
5724
5725if test -d casesensitivetestdir
5726then
Matthias Kloseb9621712010-04-24 17:59:495727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728$as_echo "yes" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535729 BUILDEXEEXT=.exe
5730else
Matthias Kloseb9621712010-04-24 17:59:495731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535733 BUILDEXEEXT=$EXEEXT
5734fi
5735rmdir CaseSensitiveTestDir
5736
Alexandre Vassalotti302825b2009-07-17 07:49:535737case $ac_sys_system in
5738hp*|HP*)
5739 case $CC in
5740 cc|*/cc) CC="$CC -Ae";;
5741 esac;;
Alexandre Vassalotti302825b2009-07-17 07:49:535742esac
5743
Alexandre Vassalotti302825b2009-07-17 07:49:535744
Matthias Kloseb9621712010-04-24 17:59:495745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5746$as_echo_n "checking LIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535747if test -z "$LIBRARY"
5748then
Barry Warsawf040d7d2010-10-18 17:09:075749 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
Alexandre Vassalotti302825b2009-07-17 07:49:535750fi
Matthias Kloseb9621712010-04-24 17:59:495751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5752$as_echo "$LIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535753
5754# LDLIBRARY is the name of the library to link against (as opposed to the
5755# name of the library into which to insert object files). BLDLIBRARY is also
5756# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
5757# is blank as the main program is not linked directly against LDLIBRARY.
5758# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
5759# systems without shared libraries, LDLIBRARY is the same as LIBRARY
5760# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
5761# DLLLIBRARY is the shared (i.e., DLL) library.
5762#
5763# RUNSHARED is used to run shared python without installed libraries
5764#
5765# INSTSONAME is the name of the shared library that will be use to install
5766# on the system - some systems like version suffix, others don't
Barry Warsaw8cf4eae2010-10-16 01:04:075767#
5768# LDVERSION is the shared library version number, normally the Python version
5769# with the ABI build flags appended.
5770
Alexandre Vassalotti302825b2009-07-17 07:49:535771
5772
5773
5774
5775
5776
Martin v. Löwisd1fc34d2010-12-30 14:55:475777
Alexandre Vassalotti302825b2009-07-17 07:49:535778LDLIBRARY="$LIBRARY"
5779BLDLIBRARY='$(LDLIBRARY)'
5780INSTSONAME='$(LDLIBRARY)'
5781DLLLIBRARY=''
5782LDLIBRARYDIR=''
5783RUNSHARED=''
Barry Warsaw14d98ac2010-11-24 19:43:475784LDVERSION="$VERSION"
Alexandre Vassalotti302825b2009-07-17 07:49:535785
5786# LINKCC is the command that links the python executable -- default is $(CC).
5787# If CXX is set, and if it is needed to link a main function that was
5788# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
5789# python might then depend on the C++ runtime
5790# This is altered for AIX in order to build the export list before
5791# linking.
5792
Matthias Kloseb9621712010-04-24 17:59:495793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5794$as_echo_n "checking LINKCC... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535795if test -z "$LINKCC"
5796then
5797 LINKCC='$(PURIFY) $(MAINCC)'
5798 case $ac_sys_system in
5799 AIX*)
5800 exp_extra="\"\""
5801 if test $ac_sys_release -ge 5 -o \
5802 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5803 exp_extra="."
5804 fi
5805 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
Alexandre Vassalotti302825b2009-07-17 07:49:535806 QNX*)
5807 # qcc must be used because the other compilers do not
5808 # support -N.
5809 LINKCC=qcc;;
5810 esac
5811fi
Matthias Kloseb9621712010-04-24 17:59:495812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5813$as_echo "$LINKCC" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535814
5815# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
5816# make sure we default having it set to "no": this is used by
5817# distutils.unixccompiler to know if it should add --enable-new-dtags
5818# to linker command lines, and failing to detect GNU ld simply results
5819# in the same bahaviour as before.
5820
Matthias Kloseb9621712010-04-24 17:59:495821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5822$as_echo_n "checking for GNU ld... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535823ac_prog=ld
5824if test "$GCC" = yes; then
5825 ac_prog=`$CC -print-prog-name=ld`
5826fi
5827case `"$ac_prog" -V 2>&1 < /dev/null` in
5828 *GNU*)
5829 GNULD=yes;;
5830 *)
5831 GNULD=no;;
5832esac
Matthias Kloseb9621712010-04-24 17:59:495833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5834$as_echo "$GNULD" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535835
Matthias Kloseb9621712010-04-24 17:59:495836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5837$as_echo_n "checking for --enable-shared... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535838# Check whether --enable-shared was given.
Matthias Kloseb9621712010-04-24 17:59:495839if test "${enable_shared+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:535840 enableval=$enable_shared;
5841fi
5842
5843
5844if test -z "$enable_shared"
5845then
5846 case $ac_sys_system in
Antoine Pitrou6103ab12009-10-24 20:11:215847 CYGWIN*)
Alexandre Vassalotti302825b2009-07-17 07:49:535848 enable_shared="yes";;
5849 *)
5850 enable_shared="no";;
5851 esac
5852fi
Matthias Kloseb9621712010-04-24 17:59:495853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5854$as_echo "$enable_shared" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535855
Matthias Kloseb9621712010-04-24 17:59:495856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5857$as_echo_n "checking for --enable-profiling... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535858# Check whether --enable-profiling was given.
Matthias Kloseb9621712010-04-24 17:59:495859if test "${enable_profiling+set}" = set; then :
doko@ubuntu.comba015832012-06-30 14:52:055860 enableval=$enable_profiling;
5861fi
5862
5863if test "x$enable_profiling" = xyes; then
5864 ac_save_cc="$CC"
Benjamin Peterson615ea1a2013-03-26 12:55:375865 CC="$CC -pg"
Matthias Kloseb9621712010-04-24 17:59:495866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:535867/* end confdefs.h. */
5868int main() { return 0; }
5869_ACEOF
doko@ubuntu.comba015832012-06-30 14:52:055870if ac_fn_c_try_link "$LINENO"; then :
5871
Alexandre Vassalotti302825b2009-07-17 07:49:535872else
doko@ubuntu.comba015832012-06-30 14:52:055873 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535874fi
doko@ubuntu.comba015832012-06-30 14:52:055875rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 CC="$ac_save_cc"
5878else
5879 enable_profiling=no
Alexandre Vassalotti302825b2009-07-17 07:49:535880fi
doko@ubuntu.comba015832012-06-30 14:52:055881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5882$as_echo "$enable_profiling" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535883
doko@ubuntu.comba015832012-06-30 14:52:055884if test "x$enable_profiling" = xyes; then
5885 BASECFLAGS="-pg $BASECFLAGS"
5886 LDFLAGS="-pg $LDFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:535887fi
5888
Matthias Kloseb9621712010-04-24 17:59:495889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5890$as_echo_n "checking LDLIBRARY... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535891
5892# MacOSX framework builds need more magic. LDLIBRARY is the dynamic
5893# library that we build, but we do not want to link against it (we
5894# will find it with a -framework option). For this reason there is an
5895# extra variable BLDLIBRARY against which Python and the extension
5896# modules are linked, BLDLIBRARY. This is normally the same as
5897# LDLIBRARY, but empty for MacOSX framework builds.
5898if test "$enable_framework"
5899then
5900 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
doko@ubuntu.come5de66e2014-05-07 10:57:445901 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535902 BLDLIBRARY=''
5903else
5904 BLDLIBRARY='$(LDLIBRARY)'
5905fi
5906
5907# Other platforms follow
5908if test $enable_shared = "yes"; then
doko@python.org87421192013-01-26 10:39:315909 PY_ENABLE_SHARED=1
Alexandre Vassalotti302825b2009-07-17 07:49:535910
Matthias Kloseb9621712010-04-24 17:59:495911$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:535912
5913 case $ac_sys_system in
5914 CYGWIN*)
Barry Warsaw8cf4eae2010-10-16 01:04:075915 LDLIBRARY='libpython$(LDVERSION).dll.a'
5916 DLLLIBRARY='libpython$(LDVERSION).dll'
Alexandre Vassalotti302825b2009-07-17 07:49:535917 ;;
5918 SunOS*)
Barry Warsaw8cf4eae2010-10-16 01:04:075919 LDLIBRARY='libpython$(LDVERSION).so'
5920 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445921 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535922 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525923 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475924 then
5925 PY3LIBRARY=libpython3.so
5926 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535927 ;;
Charles-François Natali749400a2011-07-24 20:41:185928 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
Barry Warsaw8cf4eae2010-10-16 01:04:075929 LDLIBRARY='libpython$(LDVERSION).so'
5930 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445931 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535932 INSTSONAME="$LDLIBRARY".$SOVERSION
Martin v. Löwis9b142aa2011-02-05 20:26:525933 if test "$with_pydebug" != yes
Martin v. Löwisd1fc34d2010-12-30 14:55:475934 then
5935 PY3LIBRARY=libpython3.so
5936 fi
Alexandre Vassalotti302825b2009-07-17 07:49:535937 ;;
5938 hp*|HP*)
5939 case `uname -m` in
5940 ia64)
Barry Warsaw8cf4eae2010-10-16 01:04:075941 LDLIBRARY='libpython$(LDVERSION).so'
Alexandre Vassalotti302825b2009-07-17 07:49:535942 ;;
5943 *)
Barry Warsaw8cf4eae2010-10-16 01:04:075944 LDLIBRARY='libpython$(LDVERSION).sl'
Alexandre Vassalotti302825b2009-07-17 07:49:535945 ;;
5946 esac
Barry Warsaw8cf4eae2010-10-16 01:04:075947 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445948 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535949 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:535950 Darwin*)
Barry Warsaw8cf4eae2010-10-16 01:04:075951 LDLIBRARY='libpython$(LDVERSION).dylib'
5952 BLDLIBRARY='-L. -lpython$(LDVERSION)'
doko@ubuntu.come5de66e2014-05-07 10:57:445953 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
Alexandre Vassalotti302825b2009-07-17 07:49:535954 ;;
Antoine Pitrou8e6b4072010-09-10 19:44:445955 AIX*)
Barry Warsaw8cf4eae2010-10-16 01:04:075956 LDLIBRARY='libpython$(LDVERSION).so'
doko@ubuntu.come5de66e2014-05-07 10:57:445957 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
Antoine Pitrou8e6b4072010-09-10 19:44:445958 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:535959
5960 esac
5961else # shared is disabled
doko@python.org87421192013-01-26 10:39:315962 PY_ENABLE_SHARED=0
Alexandre Vassalotti302825b2009-07-17 07:49:535963 case $ac_sys_system in
5964 CYGWIN*)
5965 BLDLIBRARY='$(LIBRARY)'
Barry Warsaw8cf4eae2010-10-16 01:04:075966 LDLIBRARY='libpython$(LDVERSION).dll.a'
Alexandre Vassalotti302825b2009-07-17 07:49:535967 ;;
5968 esac
5969fi
5970
doko@ubuntu.com1abe1c52012-06-30 18:42:455971if test "$cross_compiling" = yes; then
5972 RUNSHARED=
5973fi
5974
Matthias Kloseb9621712010-04-24 17:59:495975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5976$as_echo "$LDLIBRARY" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:535977
Alexandre Vassalotti302825b2009-07-17 07:49:535978
doko@ubuntu.com51f65942012-06-30 12:42:465979if test -n "$ac_tool_prefix"; then
5980 for ac_prog in ar aal
5981 do
5982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:495984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:095986if ${ac_cv_prog_AR+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:495987 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:535988else
5989 if test -n "$AR"; then
5990 ac_cv_prog_AR="$AR" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:495997 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:545998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:465999 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:496000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Vassalotti302825b2009-07-17 07:49:536001 break 2
6002 fi
6003done
Matthias Kloseb9621712010-04-24 17:59:496004 done
Alexandre Vassalotti302825b2009-07-17 07:49:536005IFS=$as_save_IFS
6006
6007fi
6008fi
6009AR=$ac_cv_prog_AR
6010if test -n "$AR"; then
Matthias Kloseb9621712010-04-24 17:59:496011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012$as_echo "$AR" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536013else
Matthias Kloseb9621712010-04-24 17:59:496014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536016fi
6017
6018
doko@ubuntu.com51f65942012-06-30 12:42:466019 test -n "$AR" && break
6020 done
6021fi
6022if test -z "$AR"; then
6023 ac_ct_AR=$AR
6024 for ac_prog in ar aal
6025do
6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
6027set dummy $ac_prog; ac_word=$2
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if ${ac_cv_prog_ac_ct_AR+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032else
6033 if test -n "$ac_ct_AR"; then
6034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall646eb1e2012-10-29 17:35:576042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com51f65942012-06-30 12:42:466043 ac_cv_prog_ac_ct_AR="$ac_prog"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536047done
doko@ubuntu.com51f65942012-06-30 12:42:466048 done
6049IFS=$as_save_IFS
6050
6051fi
6052fi
6053ac_ct_AR=$ac_cv_prog_ac_ct_AR
6054if test -n "$ac_ct_AR"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6056$as_echo "$ac_ct_AR" >&6; }
6057else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059$as_echo "no" >&6; }
6060fi
6061
6062
6063 test -n "$ac_ct_AR" && break
6064done
6065
6066 if test "x$ac_ct_AR" = x; then
6067 AR="ar"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070yes:)
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073ac_tool_warned=yes ;;
6074esac
6075 AR=$ac_ct_AR
6076 fi
6077fi
Alexandre Vassalotti302825b2009-07-17 07:49:536078
6079
6080# tweak ARFLAGS only if the user didn't set it on the command line
6081
6082if test -z "$ARFLAGS"
6083then
Benjamin Petersond15108a2017-09-29 15:42:416084 ARFLAGS="rcs"
Alexandre Vassalotti302825b2009-07-17 07:49:536085fi
6086
doko@ubuntu.com58844492012-06-30 16:25:326087if test -n "$ac_tool_prefix"; then
6088 for ac_prog in readelf
6089 do
6090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if ${ac_cv_prog_READELF+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$READELF"; then
6098 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326107 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112 done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117READELF=$ac_cv_prog_READELF
6118if test -n "$READELF"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6120$as_echo "$READELF" >&6; }
6121else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127 test -n "$READELF" && break
6128 done
6129fi
6130if test -z "$READELF"; then
6131 ac_ct_READELF=$READELF
6132 for ac_prog in readelf
6133do
6134 # Extract the first word of "$ac_prog", so it can be a program name with args.
6135set dummy $ac_prog; ac_word=$2
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137$as_echo_n "checking for $ac_word... " >&6; }
6138if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141 if test -n "$ac_ct_READELF"; then
6142 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
doko@ubuntu.com58844492012-06-30 16:25:326151 ac_cv_prog_ac_ct_READELF="$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156 done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6162if test -n "$ac_ct_READELF"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6164$as_echo "$ac_ct_READELF" >&6; }
6165else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167$as_echo "no" >&6; }
6168fi
6169
6170
6171 test -n "$ac_ct_READELF" && break
6172done
6173
6174 if test "x$ac_ct_READELF" = x; then
6175 READELF=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 READELF=$ac_ct_READELF
6184 fi
6185fi
6186
6187if test "$cross_compiling" = yes; then
6188 case "$READELF" in
6189 readelf|:)
6190 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6191 ;;
6192 esac
6193fi
6194
6195
Alexandre Vassalotti302825b2009-07-17 07:49:536196
Alexandre Vassalotti302825b2009-07-17 07:49:536197case $MACHDEP in
Benjamin Peterson288d1da2017-09-29 05:44:276198hp*|HP*)
6199 # install -d does not work on HP-UX
Alexandre Vassalotti302825b2009-07-17 07:49:536200 if test -z "$INSTALL"
6201 then
6202 INSTALL="${srcdir}/install-sh -c"
6203 fi
6204esac
Alexandre Vassalotti302825b2009-07-17 07:49:536205# Find a good install program. We prefer a C program (faster),
6206# so one script is as good as another. But avoid the broken or
6207# incompatible versions:
6208# SysV /etc/install, /usr/sbin/install
6209# SunOS /usr/etc/install
6210# IRIX /sbin/install
6211# AIX /bin/install
6212# AmigaOS /C/install, which installs bootblocks on floppy discs
6213# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6214# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6215# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6216# OS/2's system install, which has a completely different semantic
6217# ./install, which can be erroneously created by make from ./install.sh.
Matthias Kloseb9621712010-04-24 17:59:496218# Reject install programs that cannot install multiple files.
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6220$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536221if test -z "$INSTALL"; then
Victor Stinnere0be4232011-10-25 11:06:096222if ${ac_cv_path_install+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496223 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:536224else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:496230 # Account for people who put trailing slashes in PATH elements.
6231case $as_dir/ in #((
6232 ./ | .// | /[cC]/* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Matthias Kloseb9621712010-04-24 17:59:496234 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Vassalotti302825b2009-07-17 07:49:536235 /usr/ucb/* ) ;;
6236 *)
6237 # OSF1 and SCO ODT 3.0 have their own names for install.
6238 # Don't use installbsd from OSF since it installs stuff as root
6239 # by default.
6240 for ac_prog in ginstall scoinst install; do
6241 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546242 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Alexandre Vassalotti302825b2009-07-17 07:49:536243 if test $ac_prog = install &&
6244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6245 # AIX install. It has an incompatible calling convention.
6246 :
6247 elif test $ac_prog = install &&
6248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6249 # program-specific install script used by HP pwplus--don't use.
6250 :
6251 else
Matthias Kloseb9621712010-04-24 17:59:496252 rm -rf conftest.one conftest.two conftest.dir
6253 echo one > conftest.one
6254 echo two > conftest.two
6255 mkdir conftest.dir
6256 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6257 test -s conftest.one && test -s conftest.two &&
6258 test -s conftest.dir/conftest.one &&
6259 test -s conftest.dir/conftest.two
6260 then
6261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6262 break 3
6263 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536264 fi
6265 fi
6266 done
6267 done
6268 ;;
6269esac
Matthias Kloseb9621712010-04-24 17:59:496270
6271 done
Alexandre Vassalotti302825b2009-07-17 07:49:536272IFS=$as_save_IFS
6273
Matthias Kloseb9621712010-04-24 17:59:496274rm -rf conftest.one conftest.two conftest.dir
Alexandre Vassalotti302825b2009-07-17 07:49:536275
6276fi
6277 if test "${ac_cv_path_install+set}" = set; then
6278 INSTALL=$ac_cv_path_install
6279 else
6280 # As a last resort, use the slow shell script. Don't cache a
6281 # value for INSTALL within a source directory, because that will
6282 # break other packages using the cache if that directory is
6283 # removed, or if the value is a relative name.
6284 INSTALL=$ac_install_sh
6285 fi
6286fi
Matthias Kloseb9621712010-04-24 17:59:496287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6288$as_echo "$INSTALL" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536289
6290# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6291# It thinks the first close brace ends the variable substitution.
6292test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6293
6294test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6295
6296test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6297
Matthias Klose93a0ef12012-03-15 17:08:346298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6299$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6300if test -z "$MKDIR_P"; then
6301 if ${ac_cv_path_mkdir+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_prog in mkdir gmkdir; do
6310 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:546311 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Matthias Klose93a0ef12012-03-15 17:08:346312 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6313 'mkdir (GNU coreutils) '* | \
6314 'mkdir (coreutils) '* | \
6315 'mkdir (fileutils) '4.1*)
6316 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6317 break 3;;
6318 esac
6319 done
6320 done
6321 done
6322IFS=$as_save_IFS
6323
6324fi
6325
6326 test -d ./--version && rmdir ./--version
6327 if test "${ac_cv_path_mkdir+set}" = set; then
6328 MKDIR_P="$ac_cv_path_mkdir -p"
6329 else
6330 # As a last resort, use the slow shell script. Don't cache a
6331 # value for MKDIR_P within a source directory, because that will
6332 # break other packages using the cache if that directory is
6333 # removed, or if the value is a relative name.
6334 MKDIR_P="$ac_install_sh -d"
6335 fi
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6338$as_echo "$MKDIR_P" >&6; }
6339
Alexandre Vassalotti302825b2009-07-17 07:49:536340
6341# Not every filesystem supports hard links
6342
6343if test -z "$LN" ; then
6344 case $ac_sys_system in
6345 CYGWIN*) LN="ln -s";;
Alexandre Vassalotti302825b2009-07-17 07:49:536346 *) LN=ln;;
6347 esac
6348fi
6349
Barry Warsaw35f3a2c2010-09-03 18:30:306350# For calculating the .so ABI tag.
Barry Warsaw8cf4eae2010-10-16 01:04:076351
6352ABIFLAGS=""
Barry Warsaw35f3a2c2010-09-03 18:30:306353
Alexandre Vassalotti302825b2009-07-17 07:49:536354# Check for --with-pydebug
Matthias Kloseb9621712010-04-24 17:59:496355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6356$as_echo_n "checking for --with-pydebug... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536357
6358# Check whether --with-pydebug was given.
Matthias Kloseb9621712010-04-24 17:59:496359if test "${with_pydebug+set}" = set; then :
Alexandre Vassalotti302825b2009-07-17 07:49:536360 withval=$with_pydebug;
6361if test "$withval" != no
6362then
6363
Matthias Kloseb9621712010-04-24 17:59:496364$as_echo "#define Py_DEBUG 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:536365
Matthias Kloseb9621712010-04-24 17:59:496366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367$as_echo "yes" >&6; };
Alexandre Vassalotti302825b2009-07-17 07:49:536368 Py_DEBUG='true'
Barry Warsaw8cf4eae2010-10-16 01:04:076369 ABIFLAGS="${ABIFLAGS}d"
Matthias Kloseb9621712010-04-24 17:59:496370else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371$as_echo "no" >&6; }; Py_DEBUG='false'
Alexandre Vassalotti302825b2009-07-17 07:49:536372fi
6373else
Matthias Kloseb9621712010-04-24 17:59:496374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375$as_echo "no" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536376fi
6377
6378
T. Woutersddbfa2c2017-05-22 23:30:496379# Check for --with-assertions. Py_DEBUG implies assertions, but also changes
6380# the ABI. This allows enabling assertions without changing the ABI.
6381assertions='false'
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6383$as_echo_n "checking for --with-assertions... " >&6; }
6384
6385# Check whether --with-assertions was given.
6386if test "${with_assertions+set}" = set; then :
6387 withval=$with_assertions;
6388if test "$withval" != no
6389then
6390 assertions='true'
6391fi
6392fi
6393
6394if test "$assertions" = 'true'; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6396$as_echo "yes" >&6; }
6397elif test "$Py_DEBUG" = 'true'; then
6398 assertions='true'
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6400$as_echo "implied by --with-pydebug" >&6; }
6401else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
Brett Cannon63d98bc2016-09-07 00:12:406406# Enable optimization flags
6407
6408
6409Py_OPT='false'
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6411$as_echo_n "checking for --enable-optimizations... " >&6; }
6412# Check whether --enable-optimizations was given.
6413if test "${enable_optimizations+set}" = set; then :
6414 enableval=$enable_optimizations;
Alex Wang8cea5922017-03-28 12:50:516415if test "$enableval" != no
Brett Cannon63d98bc2016-09-07 00:12:406416then
6417 Py_OPT='true'
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6419$as_echo "yes" >&6; };
6420else
6421 Py_OPT='false'
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; };
6424fi
6425else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
6428fi
6429
6430if test "$Py_OPT" = 'true' ; then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)14c7f712016-09-08 22:38:466431 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
6432 # compile working code using it and both test_distutils and test_gdb are
Brett Cannon1d8f7552016-11-03 23:20:006433 # broken when you do manage to get a toolchain that works with it. People
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)14c7f712016-09-08 22:38:466434 # who want LTO need to use --with-lto themselves.
Brett Cannon63d98bc2016-09-07 00:12:406435 DEF_MAKE_ALL_RULE="profile-opt"
Gregory P. Smith799520c2016-09-07 23:10:006436 REQUIRE_PGO="yes"
Brett Cannon63d98bc2016-09-07 00:12:406437 DEF_MAKE_RULE="build_all"
6438else
6439 DEF_MAKE_ALL_RULE="build_all"
Gregory P. Smith799520c2016-09-07 23:10:006440 REQUIRE_PGO="no"
Brett Cannon63d98bc2016-09-07 00:12:406441 DEF_MAKE_RULE="all"
6442fi
6443
Miss Islington (bot)69a3f152018-10-25 00:32:046444# Make llvm-relatec checks work on systems where llvm tools are not installed with their
6445# normal names in the default $PATH (ie: Ubuntu). They exist under the
6446# non-suffixed name in their versioned llvm directory.
6447
6448llvm_bin_dir=''
6449llvm_path="${PATH}"
6450if test "${CC}" = "clang"
6451then
6452 clang_bin=`which clang`
6453 # Some systems install clang elsewhere as a symlink to the real path
6454 # which is where the related llvm tools are located.
6455 if test -L "${clang_bin}"
6456 then
6457 clang_dir=`dirname "${clang_bin}"`
6458 clang_bin=`readlink "${clang_bin}"`
6459 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
6460 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
6461 fi
6462fi
6463
Gregory P. Smithd82da9f2016-04-15 23:57:046464# Enable LTO flags
Gregory P. Smithd82da9f2016-04-15 23:57:046465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6466$as_echo_n "checking for --with-lto... " >&6; }
6467
6468# Check whether --with-lto was given.
6469if test "${with_lto+set}" = set; then :
6470 withval=$with_lto;
6471if test "$withval" != no
6472then
6473 Py_LTO='true'
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475$as_echo "yes" >&6; };
6476else
6477 Py_LTO='false'
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; };
6480fi
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486if test "$Py_LTO" = 'true' ; then
6487 case $CC in
6488 *clang*)
Miss Islington (bot)1bb9dd32018-06-22 07:10:206489
Miss Islington (bot)0a5a1a12019-09-13 14:51:156490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6492set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
Miss Islington (bot)69a3f152018-10-25 00:32:046493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
6495if ${ac_cv_path_LLVM_AR+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497else
6498 case $LLVM_AR in
6499 [\\/]* | ?:[\\/]*)
6500 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
6501 ;;
6502 *)
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in ${llvm_path}
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515 done
6516IFS=$as_save_IFS
6517
6518 ;;
6519esac
6520fi
6521LLVM_AR=$ac_cv_path_LLVM_AR
6522if test -n "$LLVM_AR"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6524$as_echo "$LLVM_AR" >&6; }
6525else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
Miss Islington (bot)0a5a1a12019-09-13 14:51:156531fi
Miss Islington (bot)69a3f152018-10-25 00:32:046532if test -z "$ac_cv_path_LLVM_AR"; then
Miss Islington (bot)0a5a1a12019-09-13 14:51:156533 ac_pt_LLVM_AR=$LLVM_AR
6534 # Extract the first word of "llvm-ar", so it can be a program name with args.
Miss Islington (bot)69a3f152018-10-25 00:32:046535set dummy llvm-ar; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540else
6541 case $ac_pt_LLVM_AR in
6542 [\\/]* | ?:[\\/]*)
6543 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in ${llvm_path}
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
Miss Islington (bot)69a3f152018-10-25 00:32:046561 ;;
6562esac
6563fi
6564ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
6565if test -n "$ac_pt_LLVM_AR"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6567$as_echo "$ac_pt_LLVM_AR" >&6; }
6568else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
Miss Islington (bot)0a5a1a12019-09-13 14:51:156573 if test "x$ac_pt_LLVM_AR" = x; then
Miss Islington (bot)69a3f152018-10-25 00:32:046574 LLVM_AR="''"
Miss Islington (bot)0a5a1a12019-09-13 14:51:156575 else
6576 case $cross_compiling:$ac_tool_warned in
6577yes:)
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582 LLVM_AR=$ac_pt_LLVM_AR
Miss Islington (bot)69a3f152018-10-25 00:32:046583 fi
6584else
6585 LLVM_AR="$ac_cv_path_LLVM_AR"
6586fi
6587
6588
6589 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6590 then
6591 LLVM_AR_FOUND="found"
6592 else
6593 LLVM_AR_FOUND="not-found"
6594 fi
6595 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6596 then
6597 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
6598 if test -n "${found_llvm_ar}"
6599 then
6600 LLVM_AR='/usr/bin/xcrun llvm-ar'
6601 LLVM_AR_FOUND=found
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6603$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6604 fi
6605 fi
6606 if test $LLVM_AR_FOUND = not-found
6607 then
6608 LLVM_PROFR_ERR=yes
6609 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
6610 else
6611 LLVM_AR_ERR=no
6612 fi
6613 AR="${LLVM_AR}"
6614 case $ac_sys_system in
6615 Darwin*)
6616 # Any changes made here should be reflected in the GCC+Darwin case below
6617 LTOFLAGS="-flto -Wl,-export_dynamic"
6618 ;;
6619 *)
6620 LTOFLAGS="-flto"
6621 ;;
6622 esac
6623 ;;
6624 *gcc*)
6625 case $ac_sys_system in
6626 Darwin*)
6627 LTOFLAGS="-flto -Wl,-export_dynamic"
6628 ;;
6629 *)
6630 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6631 ;;
6632 esac
6633 ;;
6634 esac
6635
6636 if test "$ac_cv_prog_cc_g" = "yes"
6637 then
6638 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6639 # to get debug symbols.
6640 LTOFLAGS="$LTOFLAGS -g"
6641 fi
6642
Miss Islington (bot)17514232018-12-04 15:06:166643 CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS"
Victor Stinner0198f522018-12-20 15:03:016644 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
Miss Islington (bot)69a3f152018-10-25 00:32:046645fi
6646
6647# Enable PGO flags.
6648
6649
6650
6651
6652
6653
Miss Islington (bot)0a5a1a12019-09-13 14:51:156654if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
Gregory P. Smith799520c2016-09-07 23:10:006657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if ${ac_cv_path_LLVM_PROFDATA+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661else
6662 case $LLVM_PROFDATA in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in ${llvm_path}
Brett Cannon7188a3e2015-09-18 22:13:446669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Gregory P. Smith799520c2016-09-07 23:10:006674 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
Brett Cannon7188a3e2015-09-18 22:13:446675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679 done
6680IFS=$as_save_IFS
6681
Gregory P. Smith799520c2016-09-07 23:10:006682 ;;
6683esac
Brett Cannon7188a3e2015-09-18 22:13:446684fi
Gregory P. Smith799520c2016-09-07 23:10:006685LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
6686if test -n "$LLVM_PROFDATA"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6688$as_echo "$LLVM_PROFDATA" >&6; }
Brett Cannon7188a3e2015-09-18 22:13:446689else
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691$as_echo "no" >&6; }
6692fi
6693
6694
Miss Islington (bot)0a5a1a12019-09-13 14:51:156695fi
Gregory P. Smith799520c2016-09-07 23:10:006696if test -z "$ac_cv_path_LLVM_PROFDATA"; then
Miss Islington (bot)0a5a1a12019-09-13 14:51:156697 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
6698 # Extract the first word of "llvm-profdata", so it can be a program name with args.
Gregory P. Smith799520c2016-09-07 23:10:006699set dummy llvm-profdata; ac_word=$2
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701$as_echo_n "checking for $ac_word... " >&6; }
6702if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704else
6705 case $ac_pt_LLVM_PROFDATA in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in ${llvm_path}
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722 done
6723IFS=$as_save_IFS
6724
Gregory P. Smith799520c2016-09-07 23:10:006725 ;;
6726esac
6727fi
6728ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
6729if test -n "$ac_pt_LLVM_PROFDATA"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6731$as_echo "$ac_pt_LLVM_PROFDATA" >&6; }
6732else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
Miss Islington (bot)0a5a1a12019-09-13 14:51:156737 if test "x$ac_pt_LLVM_PROFDATA" = x; then
Gregory P. Smith799520c2016-09-07 23:10:006738 LLVM_PROFDATA="''"
Miss Islington (bot)0a5a1a12019-09-13 14:51:156739 else
6740 case $cross_compiling:$ac_tool_warned in
6741yes:)
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
Gregory P. Smith799520c2016-09-07 23:10:006747 fi
6748else
6749 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
6750fi
6751
6752
6753if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6754then
6755 LLVM_PROF_FOUND="found"
6756else
6757 LLVM_PROF_FOUND="not-found"
6758fi
6759if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6760then
6761 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6762 if test -n "${found_llvm_profdata}"
6763 then
6764 # llvm-profdata isn't directly in $PATH in some cases.
6765 # https://apple.stackexchange.com/questions/197053/
6766 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6767 LLVM_PROF_FOUND=found
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6769$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6770 fi
6771fi
Brett Cannon7188a3e2015-09-18 22:13:446772LLVM_PROF_ERR=no
6773case $CC in
6774 *clang*)
6775 # Any changes made here should be reflected in the GCC+Darwin case below
6776 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6777 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006778 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446779 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6780 if test $LLVM_PROF_FOUND = not-found
6781 then
6782 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006783 if test "${REQUIRE_PGO}" = "yes"
6784 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426785 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith799520c2016-09-07 23:10:006786 fi
Brett Cannon7188a3e2015-09-18 22:13:446787 fi
6788 ;;
6789 *gcc*)
6790 case $ac_sys_system in
6791 Darwin*)
6792 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6793 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
Gregory P. Smith799520c2016-09-07 23:10:006794 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
Brett Cannon7188a3e2015-09-18 22:13:446795 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
Gregory P. Smith799520c2016-09-07 23:10:006796 if test "${LLVM_PROF_FOUND}" = "not-found"
Brett Cannon7188a3e2015-09-18 22:13:446797 then
6798 LLVM_PROF_ERR=yes
Gregory P. Smith799520c2016-09-07 23:10:006799 if test "${REQUIRE_PGO}" = "yes"
6800 then
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:426801 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
Gregory P. Smith799520c2016-09-07 23:10:006802 fi
Brett Cannon7188a3e2015-09-18 22:13:446803 fi
6804 ;;
6805 *)
6806 PGO_PROF_GEN_FLAG="-fprofile-generate"
6807 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6808 LLVM_PROF_MERGER="true"
6809 LLVM_PROF_FILE=""
6810 ;;
6811 esac
6812 ;;
Zachary Ware5af85642015-12-21 18:09:176813 *icc*)
6814 PGO_PROF_GEN_FLAG="-prof-gen"
6815 PGO_PROF_USE_FLAG="-prof-use"
6816 LLVM_PROF_MERGER="true"
6817 LLVM_PROF_FILE=""
6818 ;;
Brett Cannon7188a3e2015-09-18 22:13:446819esac
6820
Alexandre Vassalotti302825b2009-07-17 07:49:536821# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6822# merged with this chunk of code?
6823
6824# Optimizer/debugger flags
6825# ------------------------
6826# (The following bit of code is complicated enough - please keep things
6827# indented properly. Just pretend you're editing Python code. ;-)
6828
6829# There are two parallel sets of case statements below, one that checks to
6830# see if OPT was set and one that does BASECFLAGS setting based upon
6831# compiler and platform. BASECFLAGS tweaks need to be made even if the
6832# user set OPT.
6833
6834# tweak OPT based on compiler and platform, only if the user didn't set
6835# it on the command line
6836
Victor Stinner9ed34a82017-05-02 20:35:586837
Benjamin Peterson65b4ec52010-03-23 21:02:346838if test "${OPT-unset}" = "unset"
Alexandre Vassalotti302825b2009-07-17 07:49:536839then
6840 case $GCC in
6841 yes)
Alexandre Vassalotti302825b2009-07-17 07:49:536842 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6843 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6844 WRAP="-fwrapv"
6845 fi
Stefan Krah962055d2011-09-14 13:14:086846
Stefan Krahaf04ff22011-12-08 21:20:316847 case $CC in
Victor Stinner28205b22017-04-21 09:24:346848 *clang*)
Victor Stinner35f3d242017-04-21 10:35:246849 cc_is_clang=1
Victor Stinner28205b22017-04-21 09:24:346850 ;;
Victor Stinner35f3d242017-04-21 10:35:246851 *)
6852 if $CC --version 2>&1 | grep -q clang
6853 then
6854 cc_is_clang=1
6855 else
6856 cc_is_clang=
6857 fi
Stefan Krahaf04ff22011-12-08 21:20:316858 esac
Stefan Krah962055d2011-09-14 13:14:086859
Victor Stinner35f3d242017-04-21 10:35:246860 if test -n "${cc_is_clang}"
6861 then
6862 # Clang also needs -fwrapv
6863 WRAP="-fwrapv"
Victor Stinner9ed34a82017-05-02 20:35:586864 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6865 # see Makefile.pre.in for more information
Victor Stinner826f83f2017-04-28 13:07:106866 CFLAGS_ALIASING="-fno-strict-aliasing"
Victor Stinner35f3d242017-04-21 10:35:246867 fi
6868
Alexandre Vassalotti302825b2009-07-17 07:49:536869 case $ac_cv_prog_cc_g in
6870 yes)
6871 if test "$Py_DEBUG" = 'true' ; then
6872 # Optimization messes up debuggers, so turn it off for
6873 # debug builds.
Antoine Pitrou3d6c7842015-02-11 18:39:166874 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
Victor Stinner28205b22017-04-21 09:24:346875 OPT="-g -Og -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166876 else
Victor Stinner28205b22017-04-21 09:24:346877 OPT="-g -O0 -Wall"
Antoine Pitrou3d6c7842015-02-11 18:39:166878 fi
Alexandre Vassalotti302825b2009-07-17 07:49:536879 else
Victor Stinner28205b22017-04-21 09:24:346880 OPT="-g $WRAP -O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536881 fi
6882 ;;
6883 *)
Victor Stinner28205b22017-04-21 09:24:346884 OPT="-O3 -Wall"
Alexandre Vassalotti302825b2009-07-17 07:49:536885 ;;
6886 esac
Victor Stinner28205b22017-04-21 09:24:346887
Alexandre Vassalotti302825b2009-07-17 07:49:536888 case $ac_sys_system in
6889 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6890 ;;
6891 esac
6892 ;;
6893
6894 *)
6895 OPT="-O"
6896 ;;
6897 esac
Alexandre Vassalotti302825b2009-07-17 07:49:536898fi
6899
6900
6901
Benjamin Petersonacb8c522014-08-10 03:01:496902
Victor Stinner0198f522018-12-20 15:03:016903
Alexandre Vassalotti302825b2009-07-17 07:49:536904# The -arch flags for universal builds on OSX
6905UNIVERSAL_ARCH_FLAGS=
6906
6907
6908# tweak BASECFLAGS based on compiler and platform
6909case $GCC in
6910yes)
Benjamin Peterson050af5d2016-09-11 00:53:136911 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
Benjamin Petersond1702562016-09-07 19:00:066912
Serhiy Storchakaea80ffb2016-09-11 18:56:326913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
6914$as_echo_n "checking for -Wextra... " >&6; }
6915 ac_save_cc="$CC"
6916 CC="$CC -Wextra -Werror"
6917 if ${ac_cv_extra_warnings+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919else
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h. */
6922
6923
6924int
6925main ()
6926{
6927
6928 ;
6929 return 0;
6930}
6931
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934
6935 ac_cv_extra_warnings=yes
6936
6937else
6938
6939 ac_cv_extra_warnings=no
6940
6941fi
6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943fi
6944
6945 CC="$ac_save_cc"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
6947$as_echo "$ac_cv_extra_warnings" >&6; }
6948
6949 if test $ac_cv_extra_warnings = yes
6950 then
6951 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
6952 fi
6953
Benjamin Petersone6c9d242010-03-30 17:34:476954 # Python doesn't violate C99 aliasing rules, but older versions of
6955 # GCC produce warnings for legal Python code. Enable
6956 # -fno-strict-aliasing on versions of GCC that support but produce
6957 # warnings. See Issue3326
Matthias Kloseb9621712010-04-24 17:59:496958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
6959$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:536960 ac_save_cc="$CC"
6961 CC="$CC -fno-strict-aliasing"
Benjamin Petersone6c9d242010-03-30 17:34:476962 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:096963 if ${ac_cv_no_strict_aliasing+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:496964 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:376965else
Matthias Kloseb9621712010-04-24 17:59:496966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:536967/* end confdefs.h. */
Gregory P. Smithe0450c62009-11-01 21:11:366968
Matthias Kloseb159a552010-04-25 21:00:446969
Gregory P. Smithe0450c62009-11-01 21:11:366970int
6971main ()
6972{
Mark Dickinson8c2b6f12010-05-11 09:23:076973
Gregory P. Smithe0450c62009-11-01 21:11:366974 ;
6975 return 0;
6976}
Matthias Kloseb159a552010-04-25 21:00:446977
Alexandre Vassalotti302825b2009-07-17 07:49:536978_ACEOF
Matthias Kloseb9621712010-04-24 17:59:496979if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:446980
6981 CC="$ac_save_cc -fstrict-aliasing"
6982 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Benjamin Petersone6c9d242010-03-30 17:34:476984/* end confdefs.h. */
6985
Mark Dickinson8c2b6f12010-05-11 09:23:076986 void f(int **x) {}
Benjamin Petersone6c9d242010-03-30 17:34:476987int
6988main ()
6989{
Mark Dickinson8c2b6f12010-05-11 09:23:076990double *x; f((int **) &x);
Benjamin Petersone6c9d242010-03-30 17:34:476991 ;
6992 return 0;
6993}
Matthias Kloseb159a552010-04-25 21:00:446994
Benjamin Petersone6c9d242010-03-30 17:34:476995_ACEOF
Matthias Kloseb9621712010-04-24 17:59:496996if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:446997
6998 ac_cv_no_strict_aliasing=no
6999
Alexandre Vassalotti302825b2009-07-17 07:49:537000else
Matthias Kloseb159a552010-04-25 21:00:447001
7002 ac_cv_no_strict_aliasing=yes
7003
Benjamin Petersone6c9d242010-03-30 17:34:477004fi
Benjamin Petersone6c9d242010-03-30 17:34:477005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:447006
Benjamin Petersone6c9d242010-03-30 17:34:477007else
Matthias Kloseb159a552010-04-25 21:00:447008
7009 ac_cv_no_strict_aliasing=no
7010
Alexandre Vassalotti302825b2009-07-17 07:49:537011fi
Gregory P. Smithe0450c62009-11-01 21:11:367012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Vassalottib0a61d72009-07-17 23:19:377013fi
7014
Benjamin Petersone6c9d242010-03-30 17:34:477015 CFLAGS="$save_CFLAGS"
Alexandre Vassalotti302825b2009-07-17 07:49:537016 CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:497017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7018$as_echo "$ac_cv_no_strict_aliasing" >&6; }
Benjamin Petersone6c9d242010-03-30 17:34:477019 if test $ac_cv_no_strict_aliasing = yes
Alexandre Vassalotti302825b2009-07-17 07:49:537020 then
7021 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7022 fi
7023
Zachary Ware5af85642015-12-21 18:09:177024 # ICC doesn't recognize the option, but only emits a warning
7025 ## XXX does it emit an unused result warning and can it be disabled?
7026 case "$CC" in
7027 *icc*)
7028 ac_cv_disable_unused_result_warning=no
7029 ;;
7030 *)
Benjamin Peterson7ddbf102011-09-23 17:23:227031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7032$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; }
7033 ac_save_cc="$CC"
7034 CC="$CC -Wunused-result -Werror"
7035 save_CFLAGS="$CFLAGS"
Victor Stinnere0be4232011-10-25 11:06:097036 if ${ac_cv_disable_unused_result_warning+:} false; then :
Benjamin Peterson7ddbf102011-09-23 17:23:227037 $as_echo_n "(cached) " >&6
7038else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h. */
7041
7042
7043int
7044main ()
7045{
7046
7047 ;
7048 return 0;
7049}
7050
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"; then :
7053
7054 ac_cv_disable_unused_result_warning=yes
7055
7056else
7057
7058 ac_cv_disable_unused_result_warning=no
7059
7060fi
7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062fi
7063
7064 CFLAGS="$save_CFLAGS"
7065 CC="$ac_save_cc"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7067$as_echo "$ac_cv_disable_unused_result_warning" >&6; }
Zachary Ware5af85642015-12-21 18:09:177068 ;;
7069 esac
Benjamin Peterson7ddbf102011-09-23 17:23:227070
7071 if test $ac_cv_disable_unused_result_warning = yes
7072 then
7073 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
Serhiy Storchakaea80ffb2016-09-11 18:56:327074 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7075 fi
7076
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5
7078$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; }
7079 ac_save_cc="$CC"
7080 CC="$CC -Wunused-parameter -Werror"
7081 if ${ac_cv_disable_unused_parameter_warning+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083else
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h. */
7086
7087
7088int
7089main ()
7090{
7091
7092 ;
7093 return 0;
7094}
7095
7096_ACEOF
7097if ac_fn_c_try_compile "$LINENO"; then :
7098
7099 ac_cv_disable_unused_parameter_warning=yes
7100
7101else
7102
7103 ac_cv_disable_unused_parameter_warning=no
7104
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107fi
7108
7109 CC="$ac_save_cc"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7111$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; }
7112
7113 if test $ac_cv_disable_unused_parameter_warning = yes
7114 then
7115 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7116 fi
7117
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5
7119$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; }
7120 ac_save_cc="$CC"
7121 CC="$CC -Wmissing-field-initializers -Werror"
7122 if ${ac_cv_disable_missing_field_initializers+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124else
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h. */
7127
7128
7129int
7130main ()
7131{
7132
7133 ;
7134 return 0;
7135}
7136
7137_ACEOF
7138if ac_fn_c_try_compile "$LINENO"; then :
7139
7140 ac_cv_disable_missing_field_initializers=yes
7141
7142else
7143
7144 ac_cv_disable_missing_field_initializers=no
7145
7146fi
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148fi
7149
7150 CC="$ac_save_cc"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7152$as_echo "$ac_cv_disable_missing_field_initializers" >&6; }
7153
7154 if test $ac_cv_disable_missing_field_initializers = yes
7155 then
7156 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
Benjamin Peterson7ddbf102011-09-23 17:23:227157 fi
7158
Serhiy Storchakaef91dde2018-05-25 10:16:517159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5
7160$as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; }
7161 ac_save_cc="$CC"
7162 CC="$CC -Wcast-function-type -Werror"
7163 if ${ac_cv_disable_cast_function_type+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165else
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h. */
7168
7169
7170int
7171main ()
7172{
7173
7174 ;
7175 return 0;
7176}
7177
7178_ACEOF
7179if ac_fn_c_try_compile "$LINENO"; then :
7180
7181 ac_cv_disable_cast_function_type=yes
7182
7183else
7184
7185 ac_cv_disable_cast_function_type=no
7186
7187fi
7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189fi
7190
7191 CC="$ac_save_cc"
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5
7193$as_echo "$ac_cv_disable_cast_function_type" >&6; }
7194
7195 if test $ac_cv_disable_cast_function_type = yes
7196 then
7197 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type"
7198 fi
7199
Charles-François Natali7f9cc932014-08-01 20:57:497200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5
7201$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; }
7202 ac_save_cc="$CC"
7203 CC="$CC -Wsign-compare"
7204 save_CFLAGS="$CFLAGS"
7205 if ${ac_cv_enable_sign_compare_warning+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h. */
7210
7211
7212int
7213main ()
7214{
7215
7216 ;
7217 return 0;
7218}
7219
7220_ACEOF
7221if ac_fn_c_try_compile "$LINENO"; then :
7222
7223 ac_cv_enable_sign_compare_warning=yes
7224
7225else
7226
7227 ac_cv_enable_sign_compare_warning=no
7228
7229fi
7230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231fi
7232
7233 CFLAGS="$save_CFLAGS"
7234 CC="$ac_save_cc"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7236$as_echo "$ac_cv_enable_sign_compare_warning" >&6; }
7237
7238 if test $ac_cv_enable_sign_compare_warning = yes
7239 then
7240 BASECFLAGS="$BASECFLAGS -Wsign-compare"
7241 fi
7242
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5
7244$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; }
7245 ac_save_cc="$CC"
7246 CC="$CC -Wunreachable-code"
7247 save_CFLAGS="$CFLAGS"
7248 if ${ac_cv_enable_unreachable_code_warning+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250else
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h. */
7253
7254
7255int
7256main ()
7257{
7258
7259 ;
7260 return 0;
7261}
7262
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"; then :
7265
7266 ac_cv_enable_unreachable_code_warning=yes
7267
7268else
7269
7270 ac_cv_enable_unreachable_code_warning=no
7271
7272fi
7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274fi
7275
7276 CFLAGS="$save_CFLAGS"
7277 CC="$ac_save_cc"
Charles-François Natali7f9cc932014-08-01 20:57:497278
7279 # Don't enable unreachable code warning in debug mode, since it usually
7280 # results in non-standard code paths.
Ned Deilybec699e2016-03-08 05:28:377281 # Issue #24324: Unfortunately, the unreachable code warning does not work
7282 # correctly on gcc and has been silently removed from the compiler.
7283 # It is supported on clang but on OS X systems gcc may be an alias
7284 # for clang. Try to determine if the compiler is not really gcc and,
7285 # if so, only then enable the warning.
7286 if test $ac_cv_enable_unreachable_code_warning = yes && \
7287 test "$Py_DEBUG" != "true" && \
7288 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
Charles-François Natali7f9cc932014-08-01 20:57:497289 then
7290 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
Ned Deilybec699e2016-03-08 05:28:377291 else
7292 ac_cv_enable_unreachable_code_warning=no
Charles-François Natali7f9cc932014-08-01 20:57:497293 fi
Ned Deilybec699e2016-03-08 05:28:377294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7295$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; }
Charles-François Natali7f9cc932014-08-01 20:57:497296
Miss Islington (bot)d6e789c2018-06-06 00:12:067297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5
7298$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7299 ac_save_cc="$CC"
7300 CC="$CC -Werror -Wstrict-prototypes"
7301 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303else
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h. */
7306
7307
7308int
7309main ()
7310{
7311
7312 ;
7313 return 0;
7314}
7315
7316_ACEOF
7317if ac_fn_c_try_compile "$LINENO"; then :
7318
7319 ac_cv_enable_strict_prototypes_warning=yes
7320
7321else
7322
7323 ac_cv_enable_strict_prototypes_warning=no
7324
7325fi
7326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327fi
7328
7329 CC="$ac_save_cc"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7331$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; }
7332
7333 if test $ac_cv_enable_strict_prototypes_warning = yes
7334 then
7335 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7336 fi
7337
Victor Stinner193ee0a2017-02-06 13:24:007338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
7339$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; }
7340 ac_save_cc="$CC"
7341 CC="$CC -Werror=implicit-function-declaration"
7342 if ${ac_cv_enable_implicit_function_declaration_error+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344else
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h. */
7347
7348
7349int
7350main ()
7351{
7352
7353 ;
7354 return 0;
7355}
7356
7357_ACEOF
7358if ac_fn_c_try_compile "$LINENO"; then :
7359
7360 ac_cv_enable_implicit_function_declaration_error=yes
7361
7362else
7363
7364 ac_cv_enable_implicit_function_declaration_error=no
7365
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368fi
7369
7370 CC="$ac_save_cc"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
7372$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; }
7373
7374 if test $ac_cv_enable_implicit_function_declaration_error = yes
7375 then
7376 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7377 fi
7378
Alexandre Vassalotti302825b2009-07-17 07:49:537379 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7380 # support. Without this, treatment of subnormals doesn't follow
7381 # the standard.
Matthias Klosedf2aecb2012-03-15 21:19:287382 case $host in
Alexandre Vassalotti302825b2009-07-17 07:49:537383 alpha*)
7384 BASECFLAGS="$BASECFLAGS -mieee"
7385 ;;
7386 esac
7387
7388 case $ac_sys_system in
7389 SCO_SV*)
7390 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7391 ;;
Ned Deily87adb6e2013-10-19 04:09:567392
7393 # is there any other compiler on Darwin besides gcc?
7394 Darwin*)
7395 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7396 # used to be here, but non-Apple gcc doesn't accept them.
7397 if test "${CC}" = gcc
7398 then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
Matthias Kloseb9621712010-04-24 17:59:497400$as_echo_n "checking which compiler should be used... " >&6; }
Ned Deily87adb6e2013-10-19 04:09:567401 case "${UNIVERSALSDK}" in
7402 */MacOSX10.4u.sdk)
7403 # Build using 10.4 SDK, force usage of gcc when the
7404 # compiler is gcc, otherwise the user will get very
7405 # confusing error messages when building on OSX 10.6
7406 CC=gcc-4.0
7407 CPP=cpp-4.0
7408 ;;
7409 esac
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Matthias Kloseb9621712010-04-24 17:59:497411$as_echo "$CC" >&6; }
Ned Deily87adb6e2013-10-19 04:09:567412 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537413
Ned Deily87adb6e2013-10-19 04:09:567414 if test "${enable_universalsdk}"
7415 then
7416 case "$UNIVERSAL_ARCHS" in
7417 32-bit)
7418 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7419 LIPO_32BIT_FLAGS=""
7420 ARCH_RUN_32BIT=""
7421 ;;
7422 64-bit)
7423 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7424 LIPO_32BIT_FLAGS=""
7425 ARCH_RUN_32BIT="true"
7426 ;;
7427 all)
7428 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7429 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7430 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7431 ;;
7432 intel)
7433 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7434 LIPO_32BIT_FLAGS="-extract i386"
7435 ARCH_RUN_32BIT="/usr/bin/arch -i386"
7436 ;;
7437 intel-32)
7438 UNIVERSAL_ARCH_FLAGS="-arch i386"
7439 LIPO_32BIT_FLAGS=""
7440 ARCH_RUN_32BIT=""
7441 ;;
Ned Deily8c9bb722018-01-30 12:42:147442 intel-64)
7443 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7444 LIPO_32BIT_FLAGS=""
7445 ARCH_RUN_32BIT="true"
7446 ;;
Ned Deily87adb6e2013-10-19 04:09:567447 3-way)
7448 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7449 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7450 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7451 ;;
7452 *)
7453 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7454 ;;
7455 esac
Alexandre Vassalotti302825b2009-07-17 07:49:537456
Ned Deily87adb6e2013-10-19 04:09:567457 if test "${UNIVERSALSDK}" != "/"
7458 then
Ned Deily8c9bb722018-01-30 12:42:147459 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7460 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567461 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
Ned Deily8c9bb722018-01-30 12:42:147462 else
7463 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
7464 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
Ned Deily87adb6e2013-10-19 04:09:567465 fi
7466 fi
Alexandre Vassalotti302825b2009-07-17 07:49:537467
Ned Deily87adb6e2013-10-19 04:09:567468 # Calculate an appropriate deployment target for this build:
7469 # The deployment target value is used explicitly to enable certain
7470 # features are enabled (such as builtin libedit support for readline)
Raymond Hettinger15f44ab2016-08-30 17:47:497471 # through the use of Apple's Availability Macros and is used as a
Ned Deily87adb6e2013-10-19 04:09:567472 # component of the string returned by distutils.get_platform().
7473 #
7474 # Use the value from:
7475 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
7476 # 2. the operating system version of the build machine if >= 10.6
7477 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
7478 # below to pick either 10.3, 10.4, or 10.5 as the target.
7479 # 4. If we are running on OS X 10.2 or earlier, good luck!
Alexandre Vassalotti302825b2009-07-17 07:49:537480
Ned Deily87adb6e2013-10-19 04:09:567481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7482$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
Ned Deily36820b62014-06-25 20:44:227483 cur_target_major=`sw_vers -productVersion | \
7484 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7485 cur_target_minor=`sw_vers -productVersion | \
7486 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7487 cur_target="${cur_target_major}.${cur_target_minor}"
7488 if test ${cur_target_major} -eq 10 && \
7489 test ${cur_target_minor} -ge 3 && \
7490 test ${cur_target_minor} -le 5
Ned Deily87adb6e2013-10-19 04:09:567491 then
Ned Deily36820b62014-06-25 20:44:227492 # OS X 10.3 through 10.5
Ned Deily87adb6e2013-10-19 04:09:567493 cur_target=10.3
7494 if test ${enable_universalsdk}
7495 then
7496 case "$UNIVERSAL_ARCHS" in
7497 all|3-way|intel|64-bit)
7498 # These configurations were first supported in 10.5
7499 cur_target='10.5'
7500 ;;
7501 esac
7502 else
7503 if test `/usr/bin/arch` = "i386"
7504 then
7505 # 10.4 was the first release to support Intel archs
7506 cur_target="10.4"
7507 fi
7508 fi
7509 fi
7510 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
Ronald Oussoren3c064c12009-09-08 07:12:427511
Ned Deily87adb6e2013-10-19 04:09:567512 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
7513 # environment with a value that is the same as what we'll use
7514 # in the Makefile to ensure that we'll get the same compiler
7515 # environment during configure and build time.
7516 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
7517 export MACOSX_DEPLOYMENT_TARGET
7518 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7520$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
Ronald Oussoren3c064c12009-09-08 07:12:427521
Ned Deily87adb6e2013-10-19 04:09:567522 # end of Darwin* tests
7523 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537524 esac
7525 ;;
7526
7527*)
7528 case $ac_sys_system in
7529 OpenUNIX*|UnixWare*)
7530 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7531 ;;
Alexandre Vassalotti302825b2009-07-17 07:49:537532 SCO_SV*)
7533 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7534 ;;
7535 esac
7536 ;;
7537esac
7538
Zachary Ware5af85642015-12-21 18:09:177539# ICC needs -fp-model strict or floats behave badly
7540case "$CC" in
7541*icc*)
7542 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7543 ;;
7544esac
7545
T. Woutersddbfa2c2017-05-22 23:30:497546if test "$assertions" = 'true'; then
Alexandre Vassalotti302825b2009-07-17 07:49:537547 :
7548else
7549 OPT="-DNDEBUG $OPT"
7550fi
7551
7552if test "$ac_arch_flags"
7553then
7554 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
7555fi
7556
Alexandre Vassalotti302825b2009-07-17 07:49:537557# On some compilers, pthreads are available without further options
7558# (e.g. MacOS X). On some of these systems, the compiler will not
7559# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
7560# So we have to see first whether pthreads are available without
7561# options before we can check whether -Kpthread improves anything.
Matthias Kloseb9621712010-04-24 17:59:497562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
7563$as_echo_n "checking whether pthreads are available without options... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097564if ${ac_cv_pthread_is_default+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497565 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537566else
Matthias Kloseb9621712010-04-24 17:59:497567 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537568 ac_cv_pthread_is_default=no
7569else
Matthias Kloseb9621712010-04-24 17:59:497570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537571/* end confdefs.h. */
7572
Stefan Krah7dba5942012-11-22 21:49:117573#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537574#include <pthread.h>
7575
7576void* routine(void* p){return NULL;}
7577
7578int main(){
7579 pthread_t p;
7580 if(pthread_create(&p,NULL,routine,NULL)!=0)
7581 return 1;
7582 (void)pthread_detach(p);
7583 return 0;
7584}
7585
7586_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497587if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537588
7589 ac_cv_pthread_is_default=yes
7590 ac_cv_kthread=no
7591 ac_cv_pthread=no
7592
7593else
Matthias Kloseb9621712010-04-24 17:59:497594 ac_cv_pthread_is_default=no
Alexandre Vassalotti302825b2009-07-17 07:49:537595fi
Matthias Kloseb9621712010-04-24 17:59:497596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7597 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537598fi
7599
7600
Alexandre Vassalotti302825b2009-07-17 07:49:537601fi
7602
Matthias Kloseb9621712010-04-24 17:59:497603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7604$as_echo "$ac_cv_pthread_is_default" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537605
7606
7607if test $ac_cv_pthread_is_default = yes
7608then
7609 ac_cv_kpthread=no
7610else
7611# -Kpthread, if available, provides the right #defines
7612# and linker options to make pthread_create available
7613# Some compilers won't report that they do not support -Kpthread,
7614# so we need to run a program to see whether it really made the
7615# function available.
Matthias Kloseb9621712010-04-24 17:59:497616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7617$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097618if ${ac_cv_kpthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497619 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537620else
7621 ac_save_cc="$CC"
7622CC="$CC -Kpthread"
Matthias Kloseb9621712010-04-24 17:59:497623if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537624 ac_cv_kpthread=no
7625else
Matthias Kloseb9621712010-04-24 17:59:497626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537627/* end confdefs.h. */
7628
Stefan Krah7dba5942012-11-22 21:49:117629#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537630#include <pthread.h>
7631
7632void* routine(void* p){return NULL;}
7633
7634int main(){
7635 pthread_t p;
7636 if(pthread_create(&p,NULL,routine,NULL)!=0)
7637 return 1;
7638 (void)pthread_detach(p);
7639 return 0;
7640}
7641
7642_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497643if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537644 ac_cv_kpthread=yes
7645else
Matthias Kloseb9621712010-04-24 17:59:497646 ac_cv_kpthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537647fi
Matthias Kloseb9621712010-04-24 17:59:497648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7649 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537650fi
7651
Alexandre Vassalotti302825b2009-07-17 07:49:537652CC="$ac_save_cc"
7653fi
7654
Matthias Kloseb9621712010-04-24 17:59:497655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7656$as_echo "$ac_cv_kpthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537657fi
7658
7659if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7660then
7661# -Kthread, if available, provides the right #defines
7662# and linker options to make pthread_create available
7663# Some compilers won't report that they do not support -Kthread,
7664# so we need to run a program to see whether it really made the
7665# function available.
Matthias Kloseb9621712010-04-24 17:59:497666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7667$as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097668if ${ac_cv_kthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497669 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537670else
7671 ac_save_cc="$CC"
7672CC="$CC -Kthread"
Matthias Kloseb9621712010-04-24 17:59:497673if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537674 ac_cv_kthread=no
7675else
Matthias Kloseb9621712010-04-24 17:59:497676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537677/* end confdefs.h. */
7678
Stefan Krah7dba5942012-11-22 21:49:117679#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537680#include <pthread.h>
7681
7682void* routine(void* p){return NULL;}
7683
7684int main(){
7685 pthread_t p;
7686 if(pthread_create(&p,NULL,routine,NULL)!=0)
7687 return 1;
7688 (void)pthread_detach(p);
7689 return 0;
7690}
7691
7692_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497693if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537694 ac_cv_kthread=yes
7695else
Matthias Kloseb9621712010-04-24 17:59:497696 ac_cv_kthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537697fi
Matthias Kloseb9621712010-04-24 17:59:497698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7699 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537700fi
7701
Alexandre Vassalotti302825b2009-07-17 07:49:537702CC="$ac_save_cc"
7703fi
7704
Matthias Kloseb9621712010-04-24 17:59:497705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7706$as_echo "$ac_cv_kthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537707fi
7708
7709if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7710then
7711# -pthread, if available, provides the right #defines
7712# and linker options to make pthread_create available
7713# Some compilers won't report that they do not support -pthread,
7714# so we need to run a program to see whether it really made the
7715# function available.
Matthias Kloseb9621712010-04-24 17:59:497716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7717$as_echo_n "checking whether $CC accepts -pthread... " >&6; }
doko@python.org7981f202013-01-25 14:33:257718if ${ac_cv_pthread+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497719 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537720else
7721 ac_save_cc="$CC"
7722CC="$CC -pthread"
Matthias Kloseb9621712010-04-24 17:59:497723if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537724 ac_cv_pthread=no
7725else
Matthias Kloseb9621712010-04-24 17:59:497726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537727/* end confdefs.h. */
7728
Stefan Krah7dba5942012-11-22 21:49:117729#include <stdio.h>
Alexandre Vassalotti302825b2009-07-17 07:49:537730#include <pthread.h>
7731
7732void* routine(void* p){return NULL;}
7733
7734int main(){
7735 pthread_t p;
7736 if(pthread_create(&p,NULL,routine,NULL)!=0)
7737 return 1;
7738 (void)pthread_detach(p);
7739 return 0;
7740}
7741
7742_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497743if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537744 ac_cv_pthread=yes
7745else
Matthias Kloseb9621712010-04-24 17:59:497746 ac_cv_pthread=no
Alexandre Vassalotti302825b2009-07-17 07:49:537747fi
Matthias Kloseb9621712010-04-24 17:59:497748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537750fi
7751
Alexandre Vassalotti302825b2009-07-17 07:49:537752CC="$ac_save_cc"
7753fi
7754
Matthias Kloseb9621712010-04-24 17:59:497755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7756$as_echo "$ac_cv_pthread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537757fi
7758
7759# If we have set a CC compiler flag for thread support then
7760# check if it works for CXX, too.
7761ac_cv_cxx_thread=no
7762if test ! -z "$CXX"
7763then
Matthias Kloseb9621712010-04-24 17:59:497764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
7765$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537766ac_save_cxx="$CXX"
7767
7768if test "$ac_cv_kpthread" = "yes"
7769then
7770 CXX="$CXX -Kpthread"
7771 ac_cv_cxx_thread=yes
7772elif test "$ac_cv_kthread" = "yes"
7773then
7774 CXX="$CXX -Kthread"
7775 ac_cv_cxx_thread=yes
7776elif test "$ac_cv_pthread" = "yes"
7777then
7778 CXX="$CXX -pthread"
7779 ac_cv_cxx_thread=yes
7780fi
7781
7782if test $ac_cv_cxx_thread = yes
7783then
7784 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
7785 $CXX -c conftest.$ac_ext 2>&5
7786 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7787 && test -s conftest$ac_exeext && ./conftest$ac_exeext
7788 then
7789 ac_cv_cxx_thread=yes
7790 else
7791 ac_cv_cxx_thread=no
7792 fi
7793 rm -fr conftest*
7794fi
Matthias Kloseb9621712010-04-24 17:59:497795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7796$as_echo "$ac_cv_cxx_thread" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537797fi
7798CXX="$ac_save_cxx"
7799
7800
7801# checks for header files
Matthias Kloseb9621712010-04-24 17:59:497802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7803$as_echo_n "checking for ANSI C header files... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097804if ${ac_cv_header_stdc+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497805 $as_echo_n "(cached) " >&6
Alexandre Vassalotti302825b2009-07-17 07:49:537806else
Matthias Kloseb9621712010-04-24 17:59:497807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537808/* end confdefs.h. */
7809#include <stdlib.h>
7810#include <stdarg.h>
7811#include <string.h>
7812#include <float.h>
7813
7814int
7815main ()
7816{
7817
7818 ;
7819 return 0;
7820}
7821_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497822if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537823 ac_cv_header_stdc=yes
7824else
Matthias Kloseb9621712010-04-24 17:59:497825 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537826fi
Alexandre Vassalotti302825b2009-07-17 07:49:537827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828
7829if test $ac_cv_header_stdc = yes; then
7830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537832/* end confdefs.h. */
7833#include <string.h>
7834
7835_ACEOF
7836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497837 $EGREP "memchr" >/dev/null 2>&1; then :
7838
Alexandre Vassalotti302825b2009-07-17 07:49:537839else
7840 ac_cv_header_stdc=no
7841fi
Matthias Klosec80c93f2010-04-24 17:04:357842rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537843
7844fi
7845
7846if test $ac_cv_header_stdc = yes; then
7847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Matthias Kloseb9621712010-04-24 17:59:497848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537849/* end confdefs.h. */
7850#include <stdlib.h>
7851
7852_ACEOF
7853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:497854 $EGREP "free" >/dev/null 2>&1; then :
7855
Alexandre Vassalotti302825b2009-07-17 07:49:537856else
7857 ac_cv_header_stdc=no
7858fi
Matthias Klosec80c93f2010-04-24 17:04:357859rm -f conftest*
Alexandre Vassalotti302825b2009-07-17 07:49:537860
7861fi
7862
7863if test $ac_cv_header_stdc = yes; then
7864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Matthias Kloseb9621712010-04-24 17:59:497865 if test "$cross_compiling" = yes; then :
Alexandre Vassalotti302825b2009-07-17 07:49:537866 :
7867else
Matthias Kloseb9621712010-04-24 17:59:497868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537869/* end confdefs.h. */
7870#include <ctype.h>
7871#include <stdlib.h>
7872#if ((' ' & 0x0FF) == 0x020)
7873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7875#else
7876# define ISLOWER(c) \
7877 (('a' <= (c) && (c) <= 'i') \
7878 || ('j' <= (c) && (c) <= 'r') \
7879 || ('s' <= (c) && (c) <= 'z'))
7880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7881#endif
7882
7883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7884int
7885main ()
7886{
7887 int i;
7888 for (i = 0; i < 256; i++)
7889 if (XOR (islower (i), ISLOWER (i))
7890 || toupper (i) != TOUPPER (i))
7891 return 2;
7892 return 0;
7893}
7894_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497895if ac_fn_c_try_run "$LINENO"; then :
7896
Alexandre Vassalotti302825b2009-07-17 07:49:537897else
Matthias Kloseb9621712010-04-24 17:59:497898 ac_cv_header_stdc=no
Alexandre Vassalotti302825b2009-07-17 07:49:537899fi
Matthias Kloseb9621712010-04-24 17:59:497900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7901 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:537902fi
7903
Alexandre Vassalotti302825b2009-07-17 07:49:537904fi
7905fi
Matthias Kloseb9621712010-04-24 17:59:497906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7907$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Vassalotti302825b2009-07-17 07:49:537908if test $ac_cv_header_stdc = yes; then
7909
Matthias Kloseb9621712010-04-24 17:59:497910$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Vassalotti302825b2009-07-17 07:49:537911
7912fi
7913
stratakise768c862018-01-23 15:11:247914for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
Thomas Wouters0e3f5912006-08-11 14:57:127915fcntl.h grp.h \
doko@ubuntu.com1a4f5612014-04-17 18:13:447916ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
Benjamin Peterson4fe55102016-09-06 18:58:017917sched.h shadow.h signal.h stropts.h termios.h \
Martin v. Löwis14e73b12003-01-01 09:51:127918unistd.h utime.h \
Jesus Cead8b9ae62011-11-14 18:07:417919poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
Antoine Pitroubcf2b592012-02-08 22:28:367920sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
Martin v. Löwis9d6c6692012-02-03 16:44:587921sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
Benjamin Petersonfb2ae152016-12-20 07:54:257922sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
Martin v. Löwis9d6c6692012-02-03 16:44:587923sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
Georg Brandl941f9562011-02-25 15:21:477924sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
Gregory P. Smith3b1f2c32011-05-15 19:18:237925libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
Benjamin Peterson93b2dee2016-09-09 17:22:457926linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \
Christian Heimes75b96182017-09-05 13:53:097927sys/endian.h sys/sysmacros.h
Matthias Kloseb9621712010-04-24 17:59:497928do :
7929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7930ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Ross Lagerwallb0ae53d2011-06-10 05:30:307931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037932 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037934_ACEOF
7935
7936fi
7937
Guido van Rossum627b2d71993-12-24 10:39:167938done
7939
Guido van Rossum76be6ed1995-01-02 18:33:547940ac_header_dirent=no
Martin v. Löwis11437992002-04-12 09:54:037941for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Matthias Kloseb9621712010-04-24 17:59:497942 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7944$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097945if eval \${$as_ac_Header+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497946 $as_echo_n "(cached) " >&6
Guido van Rossum627b2d71993-12-24 10:39:167947else
Matthias Kloseb9621712010-04-24 17:59:497948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047949/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:547950#include <sys/types.h>
7951#include <$ac_hdr>
Martin v. Löwis11437992002-04-12 09:54:037952
Martin v. Löwis11437992002-04-12 09:54:037953int
7954main ()
7955{
7956if ((DIR *) 0)
7957return 0;
7958 ;
7959 return 0;
7960}
7961_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497962if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:037963 eval "$as_ac_Header=yes"
Michael W. Hudson54241132001-12-07 15:38:267964else
Matthias Kloseb9621712010-04-24 17:59:497965 eval "$as_ac_Header=no"
Guido van Rossum76be6ed1995-01-02 18:33:547966fi
Thomas Wouters47b49bf2007-08-30 22:15:337967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:267968fi
Matthias Kloseb9621712010-04-24 17:59:497969eval ac_res=\$$as_ac_Header
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7971$as_echo "$ac_res" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:307972if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:037973 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:497974#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:037975_ACEOF
7976
7977ac_header_dirent=$ac_hdr; break
Michael W. Hudson54241132001-12-07 15:38:267978fi
Martin v. Löwis11437992002-04-12 09:54:037979
Guido van Rossum76be6ed1995-01-02 18:33:547980done
7981# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7982if test $ac_header_dirent = dirent.h; then
Matthias Kloseb9621712010-04-24 17:59:497983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7984$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:097985if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:497986 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:547987else
Martin v. Löwis11437992002-04-12 09:54:037988 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:497989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:047990/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:037991
Thomas Wouters47b49bf2007-08-30 22:15:337992/* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:037995#ifdef __cplusplus
7996extern "C"
7997#endif
Martin v. Löwis11437992002-04-12 09:54:037998char opendir ();
Martin v. Löwis11437992002-04-12 09:54:037999int
8000main ()
8001{
Thomas Wouters47b49bf2007-08-30 22:15:338002return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038003 ;
8004 return 0;
8005}
8006_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338007for ac_lib in '' dir; do
8008 if test -z "$ac_lib"; then
8009 ac_res="none required"
8010 else
8011 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338013 fi
Matthias Kloseb9621712010-04-24 17:59:498014 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338015 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478016fi
Matthias Kloseb9621712010-04-24 17:59:498017rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098019 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338020 break
Skip Montanaroeb33e5a2007-08-17 12:57:418021fi
Thomas Wouters47b49bf2007-08-30 22:15:338022done
Victor Stinnere0be4232011-10-25 11:06:098023if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498024
Thomas Wouters47b49bf2007-08-30 22:15:338025else
8026 ac_cv_search_opendir=no
8027fi
8028rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038029LIBS=$ac_func_search_save_LIBS
8030fi
Matthias Kloseb9621712010-04-24 17:59:498031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8032$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338033ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498034if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Michael W. Hudson54241132001-12-07 15:38:268036
Guido van Rossum76be6ed1995-01-02 18:33:548037fi
Martin v. Löwis11437992002-04-12 09:54:038038
Michael W. Hudson54241132001-12-07 15:38:268039else
Matthias Kloseb9621712010-04-24 17:59:498040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8041$as_echo_n "checking for library containing opendir... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098042if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498043 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038044else
8045 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:498046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048047/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:038048
Thomas Wouters47b49bf2007-08-30 22:15:338049/* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:038052#ifdef __cplusplus
8053extern "C"
8054#endif
Martin v. Löwis11437992002-04-12 09:54:038055char opendir ();
Martin v. Löwis11437992002-04-12 09:54:038056int
8057main ()
8058{
Thomas Wouters47b49bf2007-08-30 22:15:338059return opendir ();
Martin v. Löwis11437992002-04-12 09:54:038060 ;
8061 return 0;
8062}
8063_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338064for ac_lib in '' x; do
8065 if test -z "$ac_lib"; then
8066 ac_res="none required"
8067 else
8068 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:418069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:338070 fi
Matthias Kloseb9621712010-04-24 17:59:498071 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:338072 ac_cv_search_opendir=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:478073fi
Matthias Kloseb9621712010-04-24 17:59:498074rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:098076 if ${ac_cv_search_opendir+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:338077 break
Skip Montanaroeb33e5a2007-08-17 12:57:418078fi
Thomas Wouters47b49bf2007-08-30 22:15:338079done
Victor Stinnere0be4232011-10-25 11:06:098080if ${ac_cv_search_opendir+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498081
Thomas Wouters47b49bf2007-08-30 22:15:338082else
8083 ac_cv_search_opendir=no
8084fi
8085rm conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:038086LIBS=$ac_func_search_save_LIBS
8087fi
Matthias Kloseb9621712010-04-24 17:59:498088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8089$as_echo "$ac_cv_search_opendir" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338090ac_res=$ac_cv_search_opendir
Matthias Kloseb9621712010-04-24 17:59:498091if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:338092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis11437992002-04-12 09:54:038093
Guido van Rossum76be6ed1995-01-02 18:33:548094fi
8095
8096fi
Guido van Rossum627b2d71993-12-24 10:39:168097
Matthias Kloseb9621712010-04-24 17:59:498098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8099$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098100if ${ac_cv_header_sys_types_h_makedev+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498101 $as_echo_n "(cached) " >&6
Martin v. Löwisdbe3f762002-10-10 14:27:308102else
Matthias Kloseb9621712010-04-24 17:59:498103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048104/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:308105#include <sys/types.h>
Martin v. Löwisdbe3f762002-10-10 14:27:308106int
8107main ()
8108{
8109return makedev(0, 0);
8110 ;
8111 return 0;
8112}
8113_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498114if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:308115 ac_cv_header_sys_types_h_makedev=yes
8116else
Matthias Kloseb9621712010-04-24 17:59:498117 ac_cv_header_sys_types_h_makedev=no
Martin v. Löwisdbe3f762002-10-10 14:27:308118fi
Matthias Kloseb9621712010-04-24 17:59:498119rm -f core conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisdbe3f762002-10-10 14:27:308121
8122fi
Matthias Kloseb9621712010-04-24 17:59:498123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8124$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:308125
8126if test $ac_cv_header_sys_types_h_makedev = no; then
Matthias Kloseb9621712010-04-24 17:59:498127ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098128if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048129
Matthias Kloseb9621712010-04-24 17:59:498130$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308131
8132fi
8133
8134
8135
8136 if test $ac_cv_header_sys_mkdev_h = no; then
Matthias Kloseb9621712010-04-24 17:59:498137 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098138if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048139
Matthias Kloseb9621712010-04-24 17:59:498140$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:308141
8142fi
8143
8144
8145 fi
8146fi
8147
Michael W. Hudson54241132001-12-07 15:38:268148
Benjamin Peterson93b2dee2016-09-09 17:22:458149# bluetooth/bluetooth.h has been known to not compile with -std=c99.
8150# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
8151SAVE_CFLAGS=$CFLAGS
8152CFLAGS="-std=c99 $CFLAGS"
8153for ac_header in bluetooth/bluetooth.h
8154do :
8155 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8156if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8157 cat >>confdefs.h <<_ACEOF
8158#define HAVE_BLUETOOTH_BLUETOOTH_H 1
8159_ACEOF
8160
8161fi
8162
8163done
8164
8165CFLAGS=$SAVE_CFLAGS
8166
Gregory P. Smith3b1f2c32011-05-15 19:18:238167# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
8168for ac_header in net/if.h
8169do :
8170 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
8171#ifdef STDC_HEADERS
8172# include <stdlib.h>
8173# include <stddef.h>
8174#else
8175# ifdef HAVE_STDLIB_H
8176# include <stdlib.h>
8177# endif
8178#endif
8179#ifdef HAVE_SYS_SOCKET_H
8180# include <sys/socket.h>
8181#endif
8182
8183"
Victor Stinnere0be4232011-10-25 11:06:098184if test "x$ac_cv_header_net_if_h" = xyes; then :
Gregory P. Smith3b1f2c32011-05-15 19:18:238185 cat >>confdefs.h <<_ACEOF
8186#define HAVE_NET_IF_H 1
8187_ACEOF
8188
8189fi
8190
8191done
8192
8193
Martin v. Löwis11017b12006-01-14 18:12:578194# On Linux, netlink.h requires asm/types.h
Martin v. Löwis11017b12006-01-14 18:12:578195for ac_header in linux/netlink.h
Matthias Kloseb9621712010-04-24 17:59:498196do :
8197 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
Martin v. Löwis11017b12006-01-14 18:12:578198#ifdef HAVE_ASM_TYPES_H
8199#include <asm/types.h>
8200#endif
8201#ifdef HAVE_SYS_SOCKET_H
8202#include <sys/socket.h>
8203#endif
8204
Matthias Kloseb9621712010-04-24 17:59:498205"
Victor Stinnere0be4232011-10-25 11:06:098206if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
Martin v. Löwis11017b12006-01-14 18:12:578207 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498208#define HAVE_LINUX_NETLINK_H 1
Martin v. Löwis11017b12006-01-14 18:12:578209_ACEOF
8210
8211fi
8212
8213done
8214
8215
caaveryeffc12f2017-09-06 22:18:108216for ac_header in linux/vm_sockets.h
8217do :
8218 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
8219#ifdef HAVE_SYS_SOCKET_H
8220#include <sys/socket.h>
8221#endif
8222
8223"
8224if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then :
8225 cat >>confdefs.h <<_ACEOF
8226#define HAVE_LINUX_VM_SOCKETS_H 1
8227_ACEOF
8228
8229fi
8230
8231done
8232
8233
Charles-François Natali47413c12011-10-06 17:47:448234# On Linux, can.h and can/raw.h require sys/socket.h
Charles-François Natali773e42d2013-02-05 18:42:018235for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
Charles-François Natali47413c12011-10-06 17:47:448236do :
8237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8239#ifdef HAVE_SYS_SOCKET_H
8240#include <sys/socket.h>
8241#endif
8242
8243"
8244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8245 cat >>confdefs.h <<_ACEOF
8246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247_ACEOF
8248
8249fi
8250
8251done
8252
8253
Guido van Rossum627b2d71993-12-24 10:39:168254# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:298255was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:498256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8257$as_echo_n "checking for clock_t in time.h... " >&6; }
8258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048259/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548260#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:038261
8262_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498264 $EGREP "clock_t" >/dev/null 2>&1; then :
Guido van Rossumda88dad1995-01-26 00:46:298265 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:168266else
Martin v. Löwis11437992002-04-12 09:54:038267
8268
Matthias Kloseb9621712010-04-24 17:59:498269$as_echo "#define clock_t long" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:168270
Martin v. Löwisc45929e2002-04-06 10:10:498271
Guido van Rossum627b2d71993-12-24 10:39:168272fi
Matthias Klosec80c93f2010-04-24 17:04:358273rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168274
Matthias Kloseb9621712010-04-24 17:59:498275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8276$as_echo "$was_it_defined" >&6; }
Guido van Rossumda88dad1995-01-26 00:46:298277
Matthias Kloseb9621712010-04-24 17:59:498278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8279$as_echo_n "checking for makedev... " >&6; }
8280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048281/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:448282
Jesus Cea740f53a2010-04-28 11:35:308283#if defined(MAJOR_IN_MKDEV)
8284#include <sys/mkdev.h>
8285#elif defined(MAJOR_IN_SYSMACROS)
8286#include <sys/sysmacros.h>
8287#else
8288#include <sys/types.h>
8289#endif
8290
Neal Norwitz11690112002-07-30 01:08:288291int
8292main ()
8293{
Jesus Cea740f53a2010-04-28 11:35:308294
8295 makedev(0, 0)
Neal Norwitz11690112002-07-30 01:08:288296 ;
8297 return 0;
8298}
Matthias Kloseb159a552010-04-25 21:00:448299
Neal Norwitz11690112002-07-30 01:08:288300_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498301if ac_fn_c_try_link "$LINENO"; then :
Neal Norwitz11690112002-07-30 01:08:288302 ac_cv_has_makedev=yes
8303else
Matthias Kloseb9621712010-04-24 17:59:498304 ac_cv_has_makedev=no
Neal Norwitz11690112002-07-30 01:08:288305fi
Matthias Kloseb9621712010-04-24 17:59:498306rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8309$as_echo "$ac_cv_has_makedev" >&6; }
Neal Norwitz11690112002-07-30 01:08:288310if test "$ac_cv_has_makedev" = "yes"; then
8311
Matthias Kloseb9621712010-04-24 17:59:498312$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
Neal Norwitz11690112002-07-30 01:08:288313
8314fi
8315
Christian Heimes985ecdc2013-11-20 10:46:188316# byte swapping
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8318$as_echo_n "checking for le64toh... " >&6; }
8319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h. */
8321
8322#ifdef HAVE_ENDIAN_H
8323#include <endian.h>
8324#elif defined(HAVE_SYS_ENDIAN_H)
8325#include <sys/endian.h>
8326#endif
8327
8328int
8329main ()
8330{
8331
8332 le64toh(1)
8333 ;
8334 return 0;
8335}
8336
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"; then :
8339 ac_cv_has_le64toh=yes
8340else
8341 ac_cv_has_le64toh=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8346$as_echo "$ac_cv_has_le64toh" >&6; }
8347if test "$ac_cv_has_le64toh" = "yes"; then
8348
8349$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
8350
8351fi
8352
Martin v. Löwis399a6892002-10-04 10:22:028353use_lfs=yes
doko@ubuntu.com006a56c2016-06-14 08:15:258354# Don't use largefile support for GNU/Hurd
8355case $ac_sys_system in GNU*)
8356 use_lfs=no
8357esac
8358
Martin v. Löwis399a6892002-10-04 10:22:028359if test "$use_lfs" = "yes"; then
Guido van Rossum810cc512001-09-09 23:51:398360# Two defines needed to enable largefile support on various platforms
8361# These may affect some typedefs
Georg Brandl216e4042011-02-19 08:58:238362case $ac_sys_system/$ac_sys_release in
8363AIX*)
8364
8365$as_echo "#define _LARGE_FILES 1" >>confdefs.h
8366
8367 ;;
8368esac
Guido van Rossum810cc512001-09-09 23:51:398369
Matthias Kloseb9621712010-04-24 17:59:498370$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038371
8372
Matthias Kloseb9621712010-04-24 17:59:498373$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
Guido van Rossum810cc512001-09-09 23:51:398374
Martin v. Löwis399a6892002-10-04 10:22:028375fi
Michael W. Hudson54241132001-12-07 15:38:268376
Guido van Rossum84e7b241996-08-19 21:59:008377# Add some code to confdefs.h so that the test for off_t works on SCO
8378cat >> confdefs.h <<\EOF
8379#if defined(SCO_DS)
8380#undef _OFF_T
8381#endif
8382EOF
8383
Guido van Rossumef2255b2000-03-10 22:30:298384# Type availability checks
Matthias Kloseb9621712010-04-24 17:59:498385ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098386if test "x$ac_cv_type_mode_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048387
Guido van Rossum76be6ed1995-01-02 18:33:548388else
Martin v. Löwis11437992002-04-12 09:54:038389
8390cat >>confdefs.h <<_ACEOF
8391#define mode_t int
8392_ACEOF
8393
8394fi
8395
Matthias Kloseb9621712010-04-24 17:59:498396ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098397if test "x$ac_cv_type_off_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048398
Guido van Rossum76be6ed1995-01-02 18:33:548399else
Martin v. Löwis11437992002-04-12 09:54:038400
8401cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338402#define off_t long int
Martin v. Löwis11437992002-04-12 09:54:038403_ACEOF
8404
8405fi
8406
Matthias Kloseb9621712010-04-24 17:59:498407ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098408if test "x$ac_cv_type_pid_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048409
Guido van Rossum76be6ed1995-01-02 18:33:548410else
Martin v. Löwis11437992002-04-12 09:54:038411
8412cat >>confdefs.h <<_ACEOF
8413#define pid_t int
8414_ACEOF
8415
8416fi
8417
Guido van Rossum48bdbfc1996-05-28 22:53:488418
Martin v. Löwis11437992002-04-12 09:54:038419cat >>confdefs.h <<_ACEOF
Matthias Klosebada4c32010-04-25 21:18:488420#define RETSIGTYPE void
Martin v. Löwis11437992002-04-12 09:54:038421_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:168422
Matthias Kloseb9621712010-04-24 17:59:498423ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098424if test "x$ac_cv_type_size_t" = xyes; then :
Skip Montanaro6dead952003-09-25 14:50:048425
Guido van Rossum76be6ed1995-01-02 18:33:548426else
Martin v. Löwis11437992002-04-12 09:54:038427
8428cat >>confdefs.h <<_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:338429#define size_t unsigned int
Martin v. Löwis11437992002-04-12 09:54:038430_ACEOF
8431
8432fi
8433
Matthias Kloseb9621712010-04-24 17:59:498434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8435$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098436if ${ac_cv_type_uid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498437 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038438else
Matthias Kloseb9621712010-04-24 17:59:498439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:048440/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:548441#include <sys/types.h>
Martin v. Löwis11437992002-04-12 09:54:038442
8443_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:548444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:498445 $EGREP "uid_t" >/dev/null 2>&1; then :
Guido van Rossum76be6ed1995-01-02 18:33:548446 ac_cv_type_uid_t=yes
8447else
Guido van Rossum76be6ed1995-01-02 18:33:548448 ac_cv_type_uid_t=no
8449fi
Matthias Klosec80c93f2010-04-24 17:04:358450rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:168451
Guido van Rossum76be6ed1995-01-02 18:33:548452fi
Matthias Kloseb9621712010-04-24 17:59:498453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8454$as_echo "$ac_cv_type_uid_t" >&6; }
Michael W. Hudson54241132001-12-07 15:38:268455if test $ac_cv_type_uid_t = no; then
Guido van Rossum76be6ed1995-01-02 18:33:548456
Matthias Kloseb9621712010-04-24 17:59:498457$as_echo "#define uid_t int" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038458
8459
Matthias Kloseb9621712010-04-24 17:59:498460$as_echo "#define gid_t int" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:548461
8462fi
8463
Mark Dickinson983bc162012-12-02 12:11:388464
Matthias Kloseb9621712010-04-24 17:59:498465ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:098466if test "x$ac_cv_type_ssize_t" = xyes; then :
Thomas Wouters47b49bf2007-08-30 22:15:338467
Matthias Kloseb9621712010-04-24 17:59:498468$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
Martin v. Löwis18e16552006-02-15 17:27:458469
8470fi
8471
Stefan Krah1919b7e2012-03-21 17:25:238472ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
8473if test "x$ac_cv_type___uint128_t" = xyes; then :
8474
8475$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
8476
8477fi
8478
Jack Jansendd19cf82001-12-06 22:36:178479
Michael W. Hudson54241132001-12-07 15:38:268480# Sizes of various common basic types
Skip Montanarob9820a32004-01-17 00:16:128481# ANSI C requires sizeof(char) == 1, so no need to check it
Thomas Wouters47b49bf2007-08-30 22:15:338482# The cast to long int works around a bug in the HP C Compiler
8483# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8484# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8485# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8487$as_echo_n "checking size of int... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098488if ${ac_cv_sizeof_int+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498489 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038490else
Matthias Kloseb9621712010-04-24 17:59:498491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038492
Martin v. Löwis11437992002-04-12 09:54:038493else
Matthias Kloseb9621712010-04-24 17:59:498494 if test "$ac_cv_type_int" = yes; then
8495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308497as_fn_error 77 "cannot compute sizeof (int)
Victor Stinnere0be4232011-10-25 11:06:098498See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338499 else
8500 ac_cv_sizeof_int=0
8501 fi
Martin v. Löwis11437992002-04-12 09:54:038502fi
Matthias Kloseb9621712010-04-24 17:59:498503
Martin v. Löwis11437992002-04-12 09:54:038504fi
Matthias Kloseb9621712010-04-24 17:59:498505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8506$as_echo "$ac_cv_sizeof_int" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338507
8508
8509
Martin v. Löwis11437992002-04-12 09:54:038510cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168511#define SIZEOF_INT $ac_cv_sizeof_int
Martin v. Löwis11437992002-04-12 09:54:038512_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168513
8514
Thomas Wouters47b49bf2007-08-30 22:15:338515# The cast to long int works around a bug in the HP C Compiler
8516# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8517# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8518# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8520$as_echo_n "checking size of long... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098521if ${ac_cv_sizeof_long+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498522 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038523else
Matthias Kloseb9621712010-04-24 17:59:498524 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038525
Martin v. Löwis11437992002-04-12 09:54:038526else
Matthias Kloseb9621712010-04-24 17:59:498527 if test "$ac_cv_type_long" = yes; then
8528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308530as_fn_error 77 "cannot compute sizeof (long)
Victor Stinnere0be4232011-10-25 11:06:098531See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338532 else
8533 ac_cv_sizeof_long=0
8534 fi
Martin v. Löwis11437992002-04-12 09:54:038535fi
Matthias Kloseb9621712010-04-24 17:59:498536
Martin v. Löwis11437992002-04-12 09:54:038537fi
Matthias Kloseb9621712010-04-24 17:59:498538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8539$as_echo "$ac_cv_sizeof_long" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338540
8541
8542
Martin v. Löwis11437992002-04-12 09:54:038543cat >>confdefs.h <<_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168544#define SIZEOF_LONG $ac_cv_sizeof_long
Martin v. Löwis11437992002-04-12 09:54:038545_ACEOF
Guido van Rossumccaf3b61996-12-06 21:19:168546
8547
Thomas Wouters47b49bf2007-08-30 22:15:338548# The cast to long int works around a bug in the HP C Compiler
8549# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8550# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8551# This bug is HP SR number 8606223364.
Benjamin Petersoned4aa832016-09-06 00:44:188552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8553$as_echo_n "checking size of long long... " >&6; }
8554if ${ac_cv_sizeof_long_long+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556else
8557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
8558
8559else
8560 if test "$ac_cv_type_long_long" = yes; then
8561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8563as_fn_error 77 "cannot compute sizeof (long long)
8564See \`config.log' for more details" "$LINENO" 5; }
8565 else
8566 ac_cv_sizeof_long_long=0
8567 fi
8568fi
8569
8570fi
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8572$as_echo "$ac_cv_sizeof_long_long" >&6; }
8573
8574
8575
8576cat >>confdefs.h <<_ACEOF
8577#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8578_ACEOF
8579
8580
8581# The cast to long int works around a bug in the HP C Compiler
8582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8584# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8586$as_echo_n "checking size of void *... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098587if ${ac_cv_sizeof_void_p+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498588 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038589else
Matthias Kloseb9621712010-04-24 17:59:498590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038591
Martin v. Löwis11437992002-04-12 09:54:038592else
Matthias Kloseb9621712010-04-24 17:59:498593 if test "$ac_cv_type_void_p" = yes; then
8594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308596as_fn_error 77 "cannot compute sizeof (void *)
Victor Stinnere0be4232011-10-25 11:06:098597See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338598 else
8599 ac_cv_sizeof_void_p=0
8600 fi
Martin v. Löwis11437992002-04-12 09:54:038601fi
Matthias Kloseb9621712010-04-24 17:59:498602
Martin v. Löwis11437992002-04-12 09:54:038603fi
Matthias Kloseb9621712010-04-24 17:59:498604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8605$as_echo "$ac_cv_sizeof_void_p" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338606
8607
8608
Martin v. Löwis11437992002-04-12 09:54:038609cat >>confdefs.h <<_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158610#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
Martin v. Löwis11437992002-04-12 09:54:038611_ACEOF
Guido van Rossumad678af1998-10-02 14:42:158612
8613
Thomas Wouters47b49bf2007-08-30 22:15:338614# The cast to long int works around a bug in the HP C Compiler
8615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8617# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8619$as_echo_n "checking size of short... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098620if ${ac_cv_sizeof_short+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498621 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038622else
Matthias Kloseb9621712010-04-24 17:59:498623 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038624
Martin v. Löwis11437992002-04-12 09:54:038625else
Matthias Kloseb9621712010-04-24 17:59:498626 if test "$ac_cv_type_short" = yes; then
8627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308629as_fn_error 77 "cannot compute sizeof (short)
Victor Stinnere0be4232011-10-25 11:06:098630See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338631 else
8632 ac_cv_sizeof_short=0
8633 fi
Martin v. Löwis11437992002-04-12 09:54:038634fi
Matthias Kloseb9621712010-04-24 17:59:498635
Martin v. Löwis11437992002-04-12 09:54:038636fi
Matthias Kloseb9621712010-04-24 17:59:498637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8638$as_echo "$ac_cv_sizeof_short" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338639
8640
8641
Martin v. Löwis11437992002-04-12 09:54:038642cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298643#define SIZEOF_SHORT $ac_cv_sizeof_short
Martin v. Löwis11437992002-04-12 09:54:038644_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298645
8646
Thomas Wouters47b49bf2007-08-30 22:15:338647# The cast to long int works around a bug in the HP C Compiler
8648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8650# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8652$as_echo_n "checking size of float... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098653if ${ac_cv_sizeof_float+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498654 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038655else
Matthias Kloseb9621712010-04-24 17:59:498656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038657
Martin v. Löwis11437992002-04-12 09:54:038658else
Matthias Kloseb9621712010-04-24 17:59:498659 if test "$ac_cv_type_float" = yes; then
8660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308662as_fn_error 77 "cannot compute sizeof (float)
Victor Stinnere0be4232011-10-25 11:06:098663See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338664 else
8665 ac_cv_sizeof_float=0
8666 fi
Martin v. Löwis11437992002-04-12 09:54:038667fi
Matthias Kloseb9621712010-04-24 17:59:498668
Martin v. Löwis11437992002-04-12 09:54:038669fi
Matthias Kloseb9621712010-04-24 17:59:498670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8671$as_echo "$ac_cv_sizeof_float" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338672
8673
8674
Martin v. Löwis11437992002-04-12 09:54:038675cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298676#define SIZEOF_FLOAT $ac_cv_sizeof_float
Martin v. Löwis11437992002-04-12 09:54:038677_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298678
8679
Thomas Wouters47b49bf2007-08-30 22:15:338680# The cast to long int works around a bug in the HP C Compiler
8681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8683# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8685$as_echo_n "checking size of double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098686if ${ac_cv_sizeof_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498687 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038688else
Matthias Kloseb9621712010-04-24 17:59:498689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038690
Martin v. Löwis11437992002-04-12 09:54:038691else
Matthias Kloseb9621712010-04-24 17:59:498692 if test "$ac_cv_type_double" = yes; then
8693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308695as_fn_error 77 "cannot compute sizeof (double)
Victor Stinnere0be4232011-10-25 11:06:098696See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338697 else
8698 ac_cv_sizeof_double=0
8699 fi
Martin v. Löwis11437992002-04-12 09:54:038700fi
Matthias Kloseb9621712010-04-24 17:59:498701
Martin v. Löwis11437992002-04-12 09:54:038702fi
Matthias Kloseb9621712010-04-24 17:59:498703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8704$as_echo "$ac_cv_sizeof_double" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338705
8706
8707
Martin v. Löwis11437992002-04-12 09:54:038708cat >>confdefs.h <<_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298709#define SIZEOF_DOUBLE $ac_cv_sizeof_double
Martin v. Löwis11437992002-04-12 09:54:038710_ACEOF
Guido van Rossumef2255b2000-03-10 22:30:298711
8712
Thomas Wouters47b49bf2007-08-30 22:15:338713# The cast to long int works around a bug in the HP C Compiler
8714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8716# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8718$as_echo_n "checking size of fpos_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098719if ${ac_cv_sizeof_fpos_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498720 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:038721else
Matthias Kloseb9621712010-04-24 17:59:498722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
Martin v. Löwis11437992002-04-12 09:54:038723
Martin v. Löwis11437992002-04-12 09:54:038724else
Matthias Kloseb9621712010-04-24 17:59:498725 if test "$ac_cv_type_fpos_t" = yes; then
8726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308728as_fn_error 77 "cannot compute sizeof (fpos_t)
Victor Stinnere0be4232011-10-25 11:06:098729See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338730 else
8731 ac_cv_sizeof_fpos_t=0
8732 fi
Martin v. Löwis11437992002-04-12 09:54:038733fi
Matthias Kloseb9621712010-04-24 17:59:498734
Martin v. Löwis11437992002-04-12 09:54:038735fi
Matthias Kloseb9621712010-04-24 17:59:498736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8737$as_echo "$ac_cv_sizeof_fpos_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338738
8739
8740
Martin v. Löwis11437992002-04-12 09:54:038741cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538742#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
Martin v. Löwis11437992002-04-12 09:54:038743_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:538744
Michael W. Hudson54241132001-12-07 15:38:268745
Thomas Wouters47b49bf2007-08-30 22:15:338746# The cast to long int works around a bug in the HP C Compiler
8747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8749# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8751$as_echo_n "checking size of size_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098752if ${ac_cv_sizeof_size_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498753 $as_echo_n "(cached) " >&6
Martin v. Löwis18e16552006-02-15 17:27:458754else
Matthias Kloseb9621712010-04-24 17:59:498755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
Martin v. Löwis18e16552006-02-15 17:27:458756
Martin v. Löwis18e16552006-02-15 17:27:458757else
Matthias Kloseb9621712010-04-24 17:59:498758 if test "$ac_cv_type_size_t" = yes; then
8759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308761as_fn_error 77 "cannot compute sizeof (size_t)
Victor Stinnere0be4232011-10-25 11:06:098762See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338763 else
8764 ac_cv_sizeof_size_t=0
8765 fi
Martin v. Löwis18e16552006-02-15 17:27:458766fi
Matthias Kloseb9621712010-04-24 17:59:498767
Martin v. Löwis18e16552006-02-15 17:27:458768fi
Matthias Kloseb9621712010-04-24 17:59:498769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8770$as_echo "$ac_cv_sizeof_size_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338771
8772
8773
Martin v. Löwis18e16552006-02-15 17:27:458774cat >>confdefs.h <<_ACEOF
8775#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8776_ACEOF
8777
8778
Christian Heimes400adb02008-02-01 08:12:038779# The cast to long int works around a bug in the HP C Compiler
8780# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8781# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8782# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8784$as_echo_n "checking size of pid_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098785if ${ac_cv_sizeof_pid_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498786 $as_echo_n "(cached) " >&6
Christian Heimes400adb02008-02-01 08:12:038787else
Matthias Kloseb9621712010-04-24 17:59:498788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
Christian Heimes400adb02008-02-01 08:12:038789
Christian Heimes400adb02008-02-01 08:12:038790else
Matthias Kloseb9621712010-04-24 17:59:498791 if test "$ac_cv_type_pid_t" = yes; then
8792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308794as_fn_error 77 "cannot compute sizeof (pid_t)
Victor Stinnere0be4232011-10-25 11:06:098795See \`config.log' for more details" "$LINENO" 5; }
Christian Heimes400adb02008-02-01 08:12:038796 else
8797 ac_cv_sizeof_pid_t=0
8798 fi
8799fi
Matthias Kloseb9621712010-04-24 17:59:498800
Christian Heimes400adb02008-02-01 08:12:038801fi
Matthias Kloseb9621712010-04-24 17:59:498802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8803$as_echo "$ac_cv_sizeof_pid_t" >&6; }
Christian Heimes400adb02008-02-01 08:12:038804
8805
8806
8807cat >>confdefs.h <<_ACEOF
8808#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
8809_ACEOF
8810
8811
Benjamin Petersondf6ff7b2016-09-06 20:53:148812# The cast to long int works around a bug in the HP C Compiler
8813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8815# This bug is HP SR number 8606223364.
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8817$as_echo_n "checking size of uintptr_t... " >&6; }
8818if ${ac_cv_sizeof_uintptr_t+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820else
8821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
8822
8823else
8824 if test "$ac_cv_type_uintptr_t" = yes; then
8825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8827as_fn_error 77 "cannot compute sizeof (uintptr_t)
8828See \`config.log' for more details" "$LINENO" 5; }
8829 else
8830 ac_cv_sizeof_uintptr_t=0
8831 fi
8832fi
8833
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8836$as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
8837
8838
8839
8840cat >>confdefs.h <<_ACEOF
8841#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
8842_ACEOF
8843
8844
Michael W. Hudson54241132001-12-07 15:38:268845
Matthias Kloseb9621712010-04-24 17:59:498846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
8847$as_echo_n "checking for long double support... " >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378848have_long_double=no
Matthias Kloseb9621712010-04-24 17:59:498849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Travis E. Oliphant9b307842007-10-12 22:06:378850/* end confdefs.h. */
8851
8852int
8853main ()
8854{
8855long double x; x = (long double)0;
8856 ;
8857 return 0;
8858}
8859_ACEOF
Matthias Kloseb9621712010-04-24 17:59:498860if ac_fn_c_try_compile "$LINENO"; then :
Travis E. Oliphant9b307842007-10-12 22:06:378861
8862
Matthias Kloseb9621712010-04-24 17:59:498863$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Travis E. Oliphant9b307842007-10-12 22:06:378864
8865 have_long_double=yes
8866
Travis E. Oliphant9b307842007-10-12 22:06:378867fi
Travis E. Oliphant9b307842007-10-12 22:06:378868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:498869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
8870$as_echo "$have_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378871if test "$have_long_double" = yes ; then
Travis E. Oliphant9b307842007-10-12 22:06:378872# The cast to long int works around a bug in the HP C Compiler
8873# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8874# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8875# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8877$as_echo_n "checking size of long double... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098878if ${ac_cv_sizeof_long_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498879 $as_echo_n "(cached) " >&6
Travis E. Oliphant9b307842007-10-12 22:06:378880else
Matthias Kloseb9621712010-04-24 17:59:498881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
Travis E. Oliphant9b307842007-10-12 22:06:378882
Travis E. Oliphant9b307842007-10-12 22:06:378883else
Matthias Kloseb9621712010-04-24 17:59:498884 if test "$ac_cv_type_long_double" = yes; then
8885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308887as_fn_error 77 "cannot compute sizeof (long double)
Victor Stinnere0be4232011-10-25 11:06:098888See \`config.log' for more details" "$LINENO" 5; }
Travis E. Oliphant9b307842007-10-12 22:06:378889 else
8890 ac_cv_sizeof_long_double=0
8891 fi
8892fi
Matthias Kloseb9621712010-04-24 17:59:498893
Travis E. Oliphant9b307842007-10-12 22:06:378894fi
Matthias Kloseb9621712010-04-24 17:59:498895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8896$as_echo "$ac_cv_sizeof_long_double" >&6; }
Travis E. Oliphant9b307842007-10-12 22:06:378897
8898
8899
8900cat >>confdefs.h <<_ACEOF
8901#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8902_ACEOF
8903
8904
8905fi
8906
Thomas Wouters47b49bf2007-08-30 22:15:338907# The cast to long int works around a bug in the HP C Compiler
8908# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8909# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8910# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8912$as_echo_n "checking size of _Bool... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098913if ${ac_cv_sizeof__Bool+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498914 $as_echo_n "(cached) " >&6
Thomas Woutersb2137042007-02-01 18:02:278915else
Matthias Kloseb9621712010-04-24 17:59:498916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
Thomas Woutersb2137042007-02-01 18:02:278917
Thomas Woutersb2137042007-02-01 18:02:278918else
Matthias Kloseb9621712010-04-24 17:59:498919 if test "$ac_cv_type__Bool" = yes; then
8920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308922as_fn_error 77 "cannot compute sizeof (_Bool)
Victor Stinnere0be4232011-10-25 11:06:098923See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:338924 else
8925 ac_cv_sizeof__Bool=0
8926 fi
Thomas Woutersb2137042007-02-01 18:02:278927fi
Matthias Kloseb9621712010-04-24 17:59:498928
Thomas Woutersb2137042007-02-01 18:02:278929fi
Matthias Kloseb9621712010-04-24 17:59:498930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8931$as_echo "$ac_cv_sizeof__Bool" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:338932
8933
8934
Thomas Woutersb2137042007-02-01 18:02:278935cat >>confdefs.h <<_ACEOF
8936#define SIZEOF__BOOL $ac_cv_sizeof__Bool
8937_ACEOF
8938
8939
Thomas Woutersb2137042007-02-01 18:02:278940
Alexandre Vassalottib0a61d72009-07-17 23:19:378941# The cast to long int works around a bug in the HP C Compiler
8942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8944# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8946$as_echo_n "checking size of off_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:098947if ${ac_cv_sizeof_off_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:498948 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:378949else
Matthias Kloseb9621712010-04-24 17:59:498950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:378951#ifdef HAVE_SYS_TYPES_H
8952#include <sys/types.h>
8953#endif
8954
Matthias Kloseb9621712010-04-24 17:59:498955"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:378956
Alexandre Vassalottib0a61d72009-07-17 23:19:378957else
Matthias Kloseb9621712010-04-24 17:59:498958 if test "$ac_cv_type_off_t" = yes; then
8959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:308961as_fn_error 77 "cannot compute sizeof (off_t)
Victor Stinnere0be4232011-10-25 11:06:098962See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:378963 else
8964 ac_cv_sizeof_off_t=0
8965 fi
Guido van Rossumf98e2a71999-01-06 18:53:348966fi
Matthias Kloseb9621712010-04-24 17:59:498967
Guido van Rossumf98e2a71999-01-06 18:53:348968fi
Matthias Kloseb9621712010-04-24 17:59:498969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8970$as_echo "$ac_cv_sizeof_off_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:038971
Alexandre Vassalottib0a61d72009-07-17 23:19:378972
8973
Martin v. Löwis11437992002-04-12 09:54:038974cat >>confdefs.h <<_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:348975#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
Martin v. Löwis11437992002-04-12 09:54:038976_ACEOF
Guido van Rossumf98e2a71999-01-06 18:53:348977
Michael W. Hudson54241132001-12-07 15:38:268978
Alexandre Vassalottib0a61d72009-07-17 23:19:378979
Matthias Kloseb9621712010-04-24 17:59:498980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8981$as_echo_n "checking whether to enable large file support... " >&6; }
Mark Dickinson2df5d282009-12-31 21:22:508982if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
Guido van Rossum96f2eb91999-04-10 16:02:188983 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:348984
Matthias Kloseb9621712010-04-24 17:59:498985$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:038986
Matthias Kloseb9621712010-04-24 17:59:498987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988$as_echo "yes" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:348989else
Matthias Kloseb9621712010-04-24 17:59:498990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991$as_echo "no" >&6; }
Guido van Rossumf98e2a71999-01-06 18:53:348992fi
8993
Alexandre Vassalottib0a61d72009-07-17 23:19:378994# The cast to long int works around a bug in the HP C Compiler
8995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8997# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:498998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8999$as_echo_n "checking size of time_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099000if ${ac_cv_sizeof_time_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499001 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379002else
Matthias Kloseb9621712010-04-24 17:59:499003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379004#ifdef HAVE_SYS_TYPES_H
9005#include <sys/types.h>
9006#endif
9007#ifdef HAVE_TIME_H
9008#include <time.h>
9009#endif
9010
Matthias Kloseb9621712010-04-24 17:59:499011"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379012
Alexandre Vassalottib0a61d72009-07-17 23:19:379013else
Matthias Kloseb9621712010-04-24 17:59:499014 if test "$ac_cv_type_time_t" = yes; then
9015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309017as_fn_error 77 "cannot compute sizeof (time_t)
Victor Stinnere0be4232011-10-25 11:06:099018See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379019 else
9020 ac_cv_sizeof_time_t=0
9021 fi
Guido van Rossumb9a22a12000-06-30 02:48:539022fi
Matthias Kloseb9621712010-04-24 17:59:499023
Guido van Rossumb9a22a12000-06-30 02:48:539024fi
Matthias Kloseb9621712010-04-24 17:59:499025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9026$as_echo "$ac_cv_sizeof_time_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039027
Alexandre Vassalottib0a61d72009-07-17 23:19:379028
9029
Martin v. Löwis11437992002-04-12 09:54:039030cat >>confdefs.h <<_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539031#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
Martin v. Löwis11437992002-04-12 09:54:039032_ACEOF
Guido van Rossumb9a22a12000-06-30 02:48:539033
Michael W. Hudson54241132001-12-07 15:38:269034
9035
Trent Mick635f6fb2000-08-23 21:33:059036# if have pthread_t then define SIZEOF_PTHREAD_T
Martin v. Löwis123cbd22001-07-19 14:21:109037ac_save_cc="$CC"
9038if test "$ac_cv_kpthread" = "yes"
9039then CC="$CC -Kpthread"
Martin v. Löwis5f433f02003-05-05 05:05:309040elif test "$ac_cv_kthread" = "yes"
9041then CC="$CC -Kthread"
Martin v. Löwis4ee6eef2003-05-26 05:37:519042elif test "$ac_cv_pthread" = "yes"
9043then CC="$CC -pthread"
Martin v. Löwis123cbd22001-07-19 14:21:109044fi
Alexandre Vassalottib0a61d72009-07-17 23:19:379045
Matthias Kloseb9621712010-04-24 17:59:499046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9047$as_echo_n "checking for pthread_t... " >&6; }
Trent Mick635f6fb2000-08-23 21:33:059048have_pthread_t=no
Matthias Kloseb9621712010-04-24 17:59:499049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049050/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:449051
9052 #include <pthread.h>
Martin v. Löwis11437992002-04-12 09:54:039053int
9054main ()
9055{
Guido van Rossum12580492000-09-24 16:47:199056pthread_t x; x = *(pthread_t*)0;
Martin v. Löwis11437992002-04-12 09:54:039057 ;
9058 return 0;
9059}
Matthias Kloseb159a552010-04-25 21:00:449060
Martin v. Löwis11437992002-04-12 09:54:039061_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499062if ac_fn_c_try_compile "$LINENO"; then :
Trent Mick635f6fb2000-08-23 21:33:059063 have_pthread_t=yes
Trent Mick635f6fb2000-08-23 21:33:059064fi
Thomas Wouters47b49bf2007-08-30 22:15:339065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:499066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9067$as_echo "$have_pthread_t" >&6; }
Trent Mick635f6fb2000-08-23 21:33:059068if test "$have_pthread_t" = yes ; then
Matthias Kloseb9621712010-04-24 17:59:499069 # The cast to long int works around a bug in the HP C Compiler
Alexandre Vassalottib0a61d72009-07-17 23:19:379070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9072# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:499073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9074$as_echo_n "checking size of pthread_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099075if ${ac_cv_sizeof_pthread_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499076 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:379077else
Matthias Kloseb9621712010-04-24 17:59:499078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
Alexandre Vassalottib0a61d72009-07-17 23:19:379079#ifdef HAVE_PTHREAD_H
9080#include <pthread.h>
9081#endif
9082
Matthias Kloseb9621712010-04-24 17:59:499083"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:379084
Alexandre Vassalottib0a61d72009-07-17 23:19:379085else
Matthias Kloseb9621712010-04-24 17:59:499086 if test "$ac_cv_type_pthread_t" = yes; then
9087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:309089as_fn_error 77 "cannot compute sizeof (pthread_t)
Victor Stinnere0be4232011-10-25 11:06:099090See \`config.log' for more details" "$LINENO" 5; }
Alexandre Vassalottib0a61d72009-07-17 23:19:379091 else
9092 ac_cv_sizeof_pthread_t=0
9093 fi
Trent Mick635f6fb2000-08-23 21:33:059094fi
Matthias Kloseb9621712010-04-24 17:59:499095
Trent Mick635f6fb2000-08-23 21:33:059096fi
Matthias Kloseb9621712010-04-24 17:59:499097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9098$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
Martin v. Löwis11437992002-04-12 09:54:039099
Alexandre Vassalottib0a61d72009-07-17 23:19:379100
9101
Martin v. Löwis11437992002-04-12 09:54:039102cat >>confdefs.h <<_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059103#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
Martin v. Löwis11437992002-04-12 09:54:039104_ACEOF
Trent Mick635f6fb2000-08-23 21:33:059105
Alexandre Vassalottib0a61d72009-07-17 23:19:379106
Trent Mick635f6fb2000-08-23 21:33:059107fi
Masayuki Yamamoto731e1892017-10-06 10:41:349108
9109# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
9110# This checking will be unnecessary after removing deprecated TLS API.
9111# The cast to long int works around a bug in the HP C Compiler
9112# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9113# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9114# This bug is HP SR number 8606223364.
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
9116$as_echo_n "checking size of pthread_key_t... " >&6; }
9117if ${ac_cv_sizeof_pthread_key_t+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119else
9120 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
9121"; then :
9122
9123else
9124 if test "$ac_cv_type_pthread_key_t" = yes; then
9125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9127as_fn_error 77 "cannot compute sizeof (pthread_key_t)
9128See \`config.log' for more details" "$LINENO" 5; }
9129 else
9130 ac_cv_sizeof_pthread_key_t=0
9131 fi
9132fi
9133
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
9136$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; }
9137
9138
9139
9140cat >>confdefs.h <<_ACEOF
9141#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t
9142_ACEOF
9143
9144
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
9146$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; }
9147if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h. */
9150#include <pthread.h>
9151int
9152main ()
9153{
9154pthread_key_t k; k * 1;
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_compile "$LINENO"; then :
9160 ac_pthread_key_t_is_arithmetic_type=yes
9161else
9162 ac_pthread_key_t_is_arithmetic_type=no
9163
9164fi
9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
9167$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; }
9168 if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then
9169
9170$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
9171
9172 fi
9173else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175$as_echo "no" >&6; }
9176fi
Martin v. Löwis123cbd22001-07-19 14:21:109177CC="$ac_save_cc"
Trent Mick635f6fb2000-08-23 21:33:059178
Michael W. Hudson54241132001-12-07 15:38:269179
Guido van Rossum54ecc3d1999-01-27 17:53:119180case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589181 Darwin/[01567]\..*)
Bob Ippolito7026a0a2005-03-28 23:23:479182 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9183 ;;
9184 Darwin/*)
9185 OTHER_LIBTOOL_OPT=""
9186 ;;
9187esac
9188
9189
Ronald Oussoren5bbab3e2009-09-06 11:01:159190
Bob Ippolito7026a0a2005-03-28 23:23:479191case $ac_sys_system/$ac_sys_release in
Thomas Wouters49fd7fa2006-04-21 10:40:589192 Darwin/[01567]\..*)
Thomas Wouters477c8d52006-05-27 19:21:479193 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9194 if test "${enable_universalsdk}"; then
9195 :
9196 else
Ronald Oussorene3da75a2010-02-11 13:38:589197 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
Thomas Wouters477c8d52006-05-27 19:21:479198 fi
Jack Jansenb36687a2004-07-16 08:43:479199 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129200 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum5839e582000-10-09 19:52:359201 Darwin/*)
Ronald Oussoren9812a6c2010-02-07 11:53:189202 gcc_version=`gcc -dumpversion`
Bob Ippolito7026a0a2005-03-28 23:23:479203 if test ${gcc_version} '<' 4.0
9204 then
9205 LIBTOOL_CRUFT="-lcc_dynamic"
9206 else
9207 LIBTOOL_CRUFT=""
9208 fi
Matthias Kloseb9621712010-04-24 17:59:499209 if test "$cross_compiling" = yes; then :
Ronald Oussoren3c064c12009-09-08 07:12:429210 ac_osx_32bit=yes
Ronald Oussoren5bbab3e2009-09-06 11:01:159211else
Matthias Kloseb9621712010-04-24 17:59:499212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159213/* end confdefs.h. */
Ronald Oussoren3c064c12009-09-08 07:12:429214
Ronald Oussoren5bbab3e2009-09-06 11:01:159215 #include <unistd.h>
9216 int main(int argc, char*argv[])
9217 {
9218 if (sizeof(long) == 4) {
9219 return 0;
9220 } else {
9221 return 1;
9222 }
Ronald Oussoren3c064c12009-09-08 07:12:429223 }
9224
Ronald Oussoren5bbab3e2009-09-06 11:01:159225_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499226if ac_fn_c_try_run "$LINENO"; then :
Ronald Oussoren5bbab3e2009-09-06 11:01:159227 ac_osx_32bit=yes
9228else
Matthias Kloseb9621712010-04-24 17:59:499229 ac_osx_32bit=no
Ronald Oussoren5bbab3e2009-09-06 11:01:159230fi
Matthias Kloseb9621712010-04-24 17:59:499231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9232 conftest.$ac_objext conftest.beam conftest.$ac_ext
Ronald Oussoren5bbab3e2009-09-06 11:01:159233fi
9234
9235
Ronald Oussoren5bbab3e2009-09-06 11:01:159236 if test "${ac_osx_32bit}" = "yes"; then
Ronald Oussorene3da75a2010-02-11 13:38:589237 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159238 i386)
9239 MACOSX_DEFAULT_ARCH="i386"
9240 ;;
9241 ppc)
9242 MACOSX_DEFAULT_ARCH="ppc"
9243 ;;
9244 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:309245 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159246 ;;
9247 esac
9248 else
Ronald Oussorene3da75a2010-02-11 13:38:589249 case `/usr/bin/arch` in
Ronald Oussoren5bbab3e2009-09-06 11:01:159250 i386)
9251 MACOSX_DEFAULT_ARCH="x86_64"
9252 ;;
9253 ppc)
9254 MACOSX_DEFAULT_ARCH="ppc64"
9255 ;;
Ned Deilya0ad8292020-08-15 03:48:149256 arm64)
9257 MACOSX_DEFAULT_ARCH="arm64"
9258 ;;
Ronald Oussoren5bbab3e2009-09-06 11:01:159259 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:309260 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
Ronald Oussoren5bbab3e2009-09-06 11:01:159261 ;;
9262 esac
9263
Ronald Oussoren5bbab3e2009-09-06 11:01:159264 fi
9265
9266 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
Jack Jansenb36687a2004-07-16 08:43:479267 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149268 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
Guido van Rossum54ecc3d1999-01-27 17:53:119269esac
Matthias Kloseb9621712010-04-24 17:59:499270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9271$as_echo_n "checking for --enable-framework... " >&6; }
Jack Jansene578a632001-08-15 01:27:149272if test "$enable_framework"
Guido van Rossum54ecc3d1999-01-27 17:53:119273then
Skip Montanarodecc6a42003-01-01 20:07:499274 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
Martin v. Löwis11437992002-04-12 09:54:039275 # -F. is needed to allow linking to the framework while
Jack Jansene578a632001-08-15 01:27:149276 # in the build location.
Guido van Rossum54ecc3d1999-01-27 17:53:119277
Matthias Kloseb9621712010-04-24 17:59:499278$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039279
Matthias Kloseb9621712010-04-24 17:59:499280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281$as_echo "yes" >&6; }
Ronald Oussoren99aab652009-06-08 21:22:579282 if test $enable_shared = "yes"
9283 then
Ross Lagerwallb0ae53d2011-06-10 05:30:309284 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
Ronald Oussoren99aab652009-06-08 21:22:579285 fi
Guido van Rossum54ecc3d1999-01-27 17:53:119286else
Matthias Kloseb9621712010-04-24 17:59:499287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288$as_echo "no" >&6; }
Guido van Rossum54ecc3d1999-01-27 17:53:119289fi
9290
Matthias Kloseb9621712010-04-24 17:59:499291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9292$as_echo_n "checking for dyld... " >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149293case $ac_sys_system/$ac_sys_release in
9294 Darwin/*)
Guido van Rossum54ecc3d1999-01-27 17:53:119295
Matthias Kloseb9621712010-04-24 17:59:499296$as_echo "#define WITH_DYLD 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039297
Matthias Kloseb9621712010-04-24 17:59:499298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9299$as_echo "always on for Darwin" >&6; }
Jack Jansen9a66b6d2001-08-08 13:56:149300 ;;
9301 *)
Matthias Kloseb9621712010-04-24 17:59:499302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
Jack Jansene578a632001-08-15 01:27:149304 ;;
Jack Jansen9a66b6d2001-08-08 13:56:149305esac
Guido van Rossum54ecc3d1999-01-27 17:53:119306
Guido van Rossum0a516c91994-09-12 10:58:409307# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:409308
Michael W. Hudson54241132001-12-07 15:38:269309
9310
9311
9312
Benjamin Peterson99f03762010-04-11 22:15:289313
Thomas Wouters477c8d52006-05-27 19:21:479314
doko@ubuntu.comd5537d02013-03-21 20:21:499315# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
9316# -- usually .so, .sl on HP-UX, .dll on Cygwin
9317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9318$as_echo_n "checking the extension of shared libraries... " >&6; }
9319if test -z "$SHLIB_SUFFIX"; then
9320 case $ac_sys_system in
9321 hp*|HP*)
9322 case `uname -m` in
9323 ia64) SHLIB_SUFFIX=.so;;
9324 *) SHLIB_SUFFIX=.sl;;
9325 esac
9326 ;;
9327 CYGWIN*) SHLIB_SUFFIX=.dll;;
9328 *) SHLIB_SUFFIX=.so;;
9329 esac
9330fi
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9332$as_echo "$SHLIB_SUFFIX" >&6; }
Thomas Wouters477c8d52006-05-27 19:21:479333
Guido van Rossum0a516c91994-09-12 10:58:409334# LDSHARED is the ld *command* used to create shared library
Benjamin Peterson06930632017-09-04 23:36:059335# -- "cc -G" on SunOS 5.x.
Guido van Rossum54ecc3d1999-01-27 17:53:119336# (Shared libraries in this instance are shared modules to be loaded into
9337# Python, as opposed to building Python itself as a shared library.)
Matthias Kloseb9621712010-04-24 17:59:499338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9339$as_echo_n "checking LDSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409340if test -z "$LDSHARED"
9341then
Guido van Rossum76be6ed1995-01-02 18:33:549342 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549343 AIX*)
Martin Panter395733d2016-11-20 07:56:379344 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
Martin Panter5de141f2016-08-27 04:00:199345 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
Neil Schemenauer4a7bbcb2001-02-16 03:37:549346 ;;
Martin v. Löwis11437992002-04-12 09:54:039347 SunOS/5*)
Benjamin Peterson99f03762010-04-11 22:15:289348 if test "$GCC" = "yes" ; then
9349 LDSHARED='$(CC) -shared'
9350 LDCXXSHARED='$(CXX) -shared'
9351 else
9352 LDSHARED='$(CC) -G'
9353 LDCXXSHARED='$(CXX) -G'
Greg Ward57c9a6632000-05-26 12:22:549354 fi ;;
Thomas Hellerf44b9a12008-04-04 10:18:239355 hp*|HP*)
Benjamin Peterson99f03762010-04-11 22:15:289356 if test "$GCC" = "yes" ; then
9357 LDSHARED='$(CC) -shared'
9358 LDCXXSHARED='$(CXX) -shared'
9359 else
Rob Boehne9d25bd12017-12-06 17:58:179360 LDSHARED='$(CC) -b'
Benjamin Peterson62ed6be2017-12-22 05:43:099361 LDCXXSHARED='$(CXX) -b'
Thomas Hellerf44b9a12008-04-04 10:18:239362 fi ;;
Jack Jansen418c3b12001-11-14 10:59:579363 Darwin/1.3*)
Antoine Pitroud4958c22010-10-13 17:01:109364 LDSHARED='$(CC) -bundle'
9365 LDCXXSHARED='$(CXX) -bundle'
Jack Jansena3891ea2001-09-07 14:25:129366 if test "$enable_framework" ; then
9367 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229368 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9369 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289370 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansena3891ea2001-09-07 14:25:129371 else
9372 # No framework. Ignore undefined symbols, assuming they come from Python
Jack Jansen418c3b12001-11-14 10:59:579373 LDSHARED="$LDSHARED -undefined suppress"
Benjamin Peterson99f03762010-04-11 22:15:289374 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
Jack Jansena3891ea2001-09-07 14:25:129375 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459376 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
Antoine Pitroud4958c22010-10-13 17:01:109377 LDSHARED='$(CC) -bundle'
9378 LDCXXSHARED='$(CXX) -bundle'
Jack Jansene578a632001-08-15 01:27:149379 if test "$enable_framework" ; then
9380 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229381 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9382 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289383 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149384 else
Michael W. Hudson594bc802002-03-07 09:59:159385 # No framework, use the Python app as bundle-loader
9386 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
Jack Jansenc28fc372003-02-25 13:14:439387 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289388 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Guido van Rossum54ecc3d1999-01-27 17:53:119389 fi ;;
Jack Jansen6b08a402004-06-03 12:41:459390 Darwin/*)
9391 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9392 # This allows an extension to be used in any Python
Thomas Wouters89d996e2007-09-08 17:39:289393
Ned Deily36820b62014-06-25 20:44:229394 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9395 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9396 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
9397 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9398 if test ${dep_target_major} -eq 10 && \
9399 test ${dep_target_minor} -le 2
Jack Jansen6b08a402004-06-03 12:41:459400 then
Ned Deily36820b62014-06-25 20:44:229401 # building for OS X 10.0 through 10.2
Antoine Pitroud4958c22010-10-13 17:01:109402 LDSHARED='$(CC) -bundle'
9403 LDCXXSHARED='$(CXX) -bundle'
Jack Jansen6b08a402004-06-03 12:41:459404 if test "$enable_framework" ; then
9405 # Link against the framework. All externals should be defined.
Jack Jansenda49e192005-01-07 13:08:229406 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
9407 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Benjamin Peterson99f03762010-04-11 22:15:289408 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansen6b08a402004-06-03 12:41:459409 else
9410 # No framework, use the Python app as bundle-loader
9411 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9412 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Benjamin Peterson99f03762010-04-11 22:15:289413 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
Jack Jansen6b08a402004-06-03 12:41:459414 fi
Ned Deily36820b62014-06-25 20:44:229415 else
9416 # building for OS X 10.3 and later
9417 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9418 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9419 BLDSHARED="$LDSHARED"
Jack Jansen6b08a402004-06-03 12:41:459420 fi
9421 ;;
Benjamin Peterson99f03762010-04-11 22:15:289422 Linux*|GNU*|QNX*)
9423 LDSHARED='$(CC) -shared'
9424 LDCXXSHARED='$(CXX) -shared';;
Thomas Wouters1ba5b3b2006-06-08 14:52:479425 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:359426 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:499427 then
Antoine Pitroud4958c22010-10-13 17:01:109428 LDSHARED='$(CC) -shared'
9429 LDCXXSHARED='$(CXX) -shared'
Guido van Rossum0286ae82000-08-29 15:06:499430 else
Antoine Pitroud4958c22010-10-13 17:01:109431 LDSHARED="ld -Bshareable"
Guido van Rossum0286ae82000-08-29 15:06:499432 fi;;
Thomas Wouters1ba5b3b2006-06-08 14:52:479433 OpenBSD*)
9434 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9435 then
Antoine Pitroud4958c22010-10-13 17:01:109436 LDSHARED='$(CC) -shared $(CCSHARED)'
9437 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479438 else
9439 case `uname -r` in
9440 [01].* | 2.[0-7] | 2.[0-7].*)
9441 LDSHARED="ld -Bshareable ${LDFLAGS}"
9442 ;;
9443 *)
Antoine Pitroud4958c22010-10-13 17:01:109444 LDSHARED='$(CC) -shared $(CCSHARED)'
9445 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
Thomas Wouters1ba5b3b2006-06-08 14:52:479446 ;;
9447 esac
9448 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289449 NetBSD*|DragonFly*)
Antoine Pitrouece919e2011-01-02 20:45:219450 LDSHARED='$(CC) -shared'
9451 LDCXXSHARED='$(CXX) -shared';;
Martin v. Löwis25ae43b2001-10-07 08:39:189452 OpenUNIX*|UnixWare*)
Benjamin Peterson99f03762010-04-11 22:15:289453 if test "$GCC" = "yes" ; then
9454 LDSHARED='$(CC) -shared'
9455 LDCXXSHARED='$(CXX) -shared'
9456 else
9457 LDSHARED='$(CC) -G'
9458 LDCXXSHARED='$(CXX) -G'
Martin v. Löwisbec19582001-03-21 15:57:549459 fi;;
Benjamin Peterson99f03762010-04-11 22:15:289460 SCO_SV*)
9461 LDSHARED='$(CC) -Wl,-G,-Bexport'
9462 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9463 CYGWIN*)
9464 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9465 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:409466 *) LDSHARED="ld";;
9467 esac
Guido van Rossum0a516c91994-09-12 10:58:409468fi
Matthias Kloseb9621712010-04-24 17:59:499469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9470$as_echo "$LDSHARED" >&6; }
Benjamin Peterson99f03762010-04-11 22:15:289471LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
Neil Schemenauer4a7bbcb2001-02-16 03:37:549472BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:409473# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:119474# library (module) -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9476$as_echo_n "checking CCSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409477if test -z "$CCSHARED"
9478then
Guido van Rossum07397971997-04-29 21:49:509479 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:499480 SunOS*) if test "$GCC" = yes;
Skip Montanaroeb33e5a2007-08-17 12:57:419481 then CCSHARED="-fPIC";
9482 elif test `uname -p` = sparc;
9483 then CCSHARED="-xcode=pic32";
9484 else CCSHARED="-Kpic";
9485 fi;;
Guido van Rossumaf07a441995-02-13 19:45:279486 hp*|HP*) if test "$GCC" = yes;
Martin v. Löwis703ad702001-09-05 08:36:529487 then CCSHARED="-fPIC";
Guido van Rossumaf07a441995-02-13 19:45:279488 else CCSHARED="+z";
9489 fi;;
Xavier de Gaye2a352b62017-01-04 20:51:169490 Linux-android*) ;;
Martin v. Löwisa6e97582002-01-01 18:41:339491 Linux*|GNU*) CCSHARED="-fPIC";;
Martin v. Löwis86d66262006-02-17 08:40:119492 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
Martin v. Löwis25ae43b2001-10-07 08:39:189493 OpenUNIX*|UnixWare*)
Martin v. Löwisbec19582001-03-21 15:57:549494 if test "$GCC" = "yes"
9495 then CCSHARED="-fPIC"
Martin v. Löwis130fb172001-07-19 11:00:419496 else CCSHARED="-KPIC"
Martin v. Löwisbec19582001-03-21 15:57:549497 fi;;
Martin v. Löwis21ee4092002-09-30 16:19:489498 SCO_SV*)
9499 if test "$GCC" = "yes"
9500 then CCSHARED="-fPIC"
9501 else CCSHARED="-Kpic -belf"
9502 fi;;
Guido van Rossum0a516c91994-09-12 10:58:409503 esac
Guido van Rossum0a516c91994-09-12 10:58:409504fi
Matthias Kloseb9621712010-04-24 17:59:499505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9506$as_echo "$CCSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409507# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:289508# the python executable -- this is only needed for a few systems
Matthias Kloseb9621712010-04-24 17:59:499509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9510$as_echo_n "checking LINKFORSHARED... " >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409511if test -z "$LINKFORSHARED"
9512then
Guido van Rossum07397971997-04-29 21:49:509513 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:549514 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:169515 hp*|HP*)
Martin v. Löwis1142de32002-03-29 16:28:319516 LINKFORSHARED="-Wl,-E -Wl,+s";;
9517# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Xavier de Gaye2a352b62017-01-04 20:51:169518 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
Martin v. Löwisa6e97582002-01-01 18:41:339519 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:119520 # -u libsys_s pulls in all symbols in libsys
Martin v. Löwis11437992002-04-12 09:54:039521 Darwin/*)
Benjamin Peterson9c80cac2009-05-23 16:34:239522 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
Miss Islington (bot)bf82cd32019-07-02 07:38:369523
9524 # Issue #18075: the default maximum stack size (8MBytes) is too
9525 # small for the default recursion limit. Increase the stack size
9526 # to ensure that tests don't crash
9527 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9528
Jack Jansene578a632001-08-15 01:27:149529 if test "$enable_framework"
9530 then
Jack Jansenda49e192005-01-07 13:08:229531 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
Jack Jansene578a632001-08-15 01:27:149532 fi
Anthony Baxtereef2d3b2004-11-06 04:45:339533 LINKFORSHARED="$LINKFORSHARED";;
Martin v. Löwis25ae43b2001-10-07 08:39:189534 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
Martin v. Löwis21ee4092002-09-30 16:19:489535 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:469536 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Martin v. Löwis86d66262006-02-17 08:40:119537 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
Guido van Rossumdf693651999-01-07 21:50:419538 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9539 then
9540 LINKFORSHARED="-Wl,--export-dynamic"
9541 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:099542 SunOS/5*) case $CC in
9543 *gcc*)
Martin v. Löwisa4548572002-04-18 14:51:369544 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:199545 then
9546 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:099547 fi;;
9548 esac;;
Jason Tishler30765592003-09-04 11:04:069549 CYGWIN*)
9550 if test $enable_shared = "no"
9551 then
9552 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9553 fi;;
Benjamin Petersonde9c8692008-07-01 18:23:099554 QNX*)
9555 # -Wl,-E causes the symbols to be added to the dynamic
9556 # symbol table so that they can be found when a module
9557 # is loaded. -N 2048K causes the stack size to be set
9558 # to 2048 kilobytes so that the stack doesn't overflow
9559 # when running test_compile.py.
9560 LINKFORSHARED='-Wl,-E -N 2048K';;
Guido van Rossum0a516c91994-09-12 10:58:409561 esac
Guido van Rossum0a516c91994-09-12 10:58:409562fi
Matthias Kloseb9621712010-04-24 17:59:499563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9564$as_echo "$LINKFORSHARED" >&6; }
Guido van Rossum0a516c91994-09-12 10:58:409565
Michael W. Hudson54241132001-12-07 15:38:269566
Benjamin Peterson8f95cc22008-07-16 02:23:259567
Matthias Kloseb9621712010-04-24 17:59:499568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9569$as_echo_n "checking CFLAGSFORSHARED... " >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209570if test ! "$LIBRARY" = "$LDLIBRARY"
9571then
Neil Schemenauer0c6141f2001-01-27 21:40:549572 case $ac_sys_system in
9573 CYGWIN*)
9574 # Cygwin needs CCSHARED when building extension DLLs
9575 # but not when building the interpreter DLL.
9576 CFLAGSFORSHARED='';;
9577 *)
9578 CFLAGSFORSHARED='$(CCSHARED)'
9579 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:209580fi
Matthias Kloseb9621712010-04-24 17:59:499581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9582$as_echo "$CFLAGSFORSHARED" >&6; }
Neil Schemenauer3ecf0aa2001-01-26 16:15:209583
Martin v. Löwisf90ae202002-06-11 06:22:319584# SHLIBS are libraries (except -lc and -lm) to link to the python shared
9585# library (with --enable-shared).
9586# For platforms on which shared libraries are not allowed to have unresolved
Martin v. Löwisd6359c52002-08-04 12:38:509587# symbols, this must be set to $(LIBS) (expanded by make). We do this even
9588# if it is not required, since it creates a dependency of the shared library
9589# to LIBS. This, in turn, means that applications linking the shared libpython
9590# don't need to link LIBS explicitly. The default should be only changed
9591# on systems where this approach causes problems.
Martin v. Löwisf90ae202002-06-11 06:22:319592
Matthias Kloseb9621712010-04-24 17:59:499593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9594$as_echo_n "checking SHLIBS... " >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319595case "$ac_sys_system" in
Martin v. Löwisf90ae202002-06-11 06:22:319596 *)
Martin v. Löwisd6359c52002-08-04 12:38:509597 SHLIBS='$(LIBS)';;
Martin v. Löwisf90ae202002-06-11 06:22:319598esac
Matthias Kloseb9621712010-04-24 17:59:499599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9600$as_echo "$SHLIBS" >&6; }
Martin v. Löwisf90ae202002-06-11 06:22:319601
9602
Guido van Rossum627b2d71993-12-24 10:39:169603# checks for libraries
Georg Brandl941f9562011-02-25 15:21:479604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9605$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099606if ${ac_cv_lib_sendfile_sendfile+:} false; then :
Georg Brandl941f9562011-02-25 15:21:479607 $as_echo_n "(cached) " >&6
9608else
9609 ac_check_lib_save_LIBS=$LIBS
9610LIBS="-lsendfile $LIBS"
9611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h. */
9613
9614/* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617#ifdef __cplusplus
9618extern "C"
9619#endif
9620char sendfile ();
9621int
9622main ()
9623{
9624return sendfile ();
9625 ;
9626 return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630 ac_cv_lib_sendfile_sendfile=yes
9631else
9632 ac_cv_lib_sendfile_sendfile=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636LIBS=$ac_check_lib_save_LIBS
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9639$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099640if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
Georg Brandl941f9562011-02-25 15:21:479641 cat >>confdefs.h <<_ACEOF
9642#define HAVE_LIBSENDFILE 1
9643_ACEOF
9644
9645 LIBS="-lsendfile $LIBS"
9646
9647fi
9648
Matthias Kloseb9621712010-04-24 17:59:499649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9650$as_echo_n "checking for dlopen in -ldl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099651if ${ac_cv_lib_dl_dlopen+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499652 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549653else
Martin v. Löwis11437992002-04-12 09:54:039654 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289655LIBS="-ldl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049657/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039658
Thomas Wouters47b49bf2007-08-30 22:15:339659/* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039662#ifdef __cplusplus
9663extern "C"
9664#endif
Martin v. Löwis11437992002-04-12 09:54:039665char dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039666int
9667main ()
9668{
Thomas Wouters47b49bf2007-08-30 22:15:339669return dlopen ();
Martin v. Löwis11437992002-04-12 09:54:039670 ;
9671 return 0;
9672}
9673_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499674if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039675 ac_cv_lib_dl_dlopen=yes
Guido van Rossum76be6ed1995-01-02 18:33:549676else
Matthias Kloseb9621712010-04-24 17:59:499677 ac_cv_lib_dl_dlopen=no
Guido van Rossum627b2d71993-12-24 10:39:169678fi
Matthias Kloseb9621712010-04-24 17:59:499679rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039681LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169682fi
Matthias Kloseb9621712010-04-24 17:59:499683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9684$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099685if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039686 cat >>confdefs.h <<_ACEOF
9687#define HAVE_LIBDL 1
9688_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169689
Guido van Rossum8ddd0ad1995-06-14 23:10:289690 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:309691
Guido van Rossum76be6ed1995-01-02 18:33:549692fi
9693 # Dynamic linking for SunOS/Solaris and SYSV
Matthias Kloseb9621712010-04-24 17:59:499694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9695$as_echo_n "checking for shl_load in -ldld... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099696if ${ac_cv_lib_dld_shl_load+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499697 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:549698else
Martin v. Löwis11437992002-04-12 09:54:039699 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:289700LIBS="-ldld $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049702/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039703
Thomas Wouters47b49bf2007-08-30 22:15:339704/* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039707#ifdef __cplusplus
9708extern "C"
9709#endif
Martin v. Löwis11437992002-04-12 09:54:039710char shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039711int
9712main ()
9713{
Thomas Wouters47b49bf2007-08-30 22:15:339714return shl_load ();
Martin v. Löwis11437992002-04-12 09:54:039715 ;
9716 return 0;
9717}
9718_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499719if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:039720 ac_cv_lib_dld_shl_load=yes
Guido van Rossum76be6ed1995-01-02 18:33:549721else
Matthias Kloseb9621712010-04-24 17:59:499722 ac_cv_lib_dld_shl_load=no
Guido van Rossum627b2d71993-12-24 10:39:169723fi
Matthias Kloseb9621712010-04-24 17:59:499724rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:039726LIBS=$ac_check_lib_save_LIBS
Guido van Rossum627b2d71993-12-24 10:39:169727fi
Matthias Kloseb9621712010-04-24 17:59:499728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9729$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099730if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:039731 cat >>confdefs.h <<_ACEOF
9732#define HAVE_LIBDLD 1
9733_ACEOF
Guido van Rossum627b2d71993-12-24 10:39:169734
Guido van Rossum8ddd0ad1995-06-14 23:10:289735 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:549736
Guido van Rossum76be6ed1995-01-02 18:33:549737fi
9738 # Dynamic linking for HP-UX
Martin v. Löwis519adae2003-09-20 10:47:479739
Michael Felt0d3ccb42017-12-30 21:39:209740# checks for uuid.h location
9741for ac_header in uuid/uuid.h uuid.h
9742do :
9743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9744ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9746 cat >>confdefs.h <<_ACEOF
9747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9748_ACEOF
9749
9750fi
9751
9752done
9753
9754
Berker Peksag9a10ff42017-11-08 20:09:169755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
9756$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
9757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h. */
9759#include <uuid/uuid.h>
9760int
9761main ()
9762{
9763
9764#ifndef uuid_generate_time_safe
Berker Peksag0e163d22017-11-08 21:43:149765void *x = uuid_generate_time_safe
Berker Peksag9a10ff42017-11-08 20:09:169766#endif
9767
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"; then :
9773
9774$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
9775
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9777$as_echo "yes" >&6; }
9778else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780$as_echo "no" >&6; }
9781
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784
Michael Felt0d3ccb42017-12-30 21:39:209785# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
David Carlierb4ebaa72018-01-09 19:38:079786# FreeBSD and OpenBSD provides support as well
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
9788$as_echo_n "checking for uuid_create... " >&6; }
Michael Felt0d3ccb42017-12-30 21:39:209789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h. */
9791#include <uuid.h>
9792int
9793main ()
9794{
9795
9796#ifndef uuid_create
9797void *x = uuid_create
9798#endif
9799
9800 ;
9801 return 0;
9802}
9803_ACEOF
9804if ac_fn_c_try_compile "$LINENO"; then :
9805
9806$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809$as_echo "yes" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816
Miss Islington (bot)5734f412018-05-24 23:22:599817# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
9818# stream in big-endian byte-order
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
9820$as_echo_n "checking for uuid_enc_be... " >&6; }
9821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h. */
9823#include <uuid.h>
9824int
9825main ()
9826{
9827
9828#ifndef uuid_enc_be
Michael Felt20cd5c62018-06-09 21:59:029829void *x = uuid_enc_be
Miss Islington (bot)5734f412018-05-24 23:22:599830#endif
9831
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"; then :
9837
9838$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h
9839
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9841$as_echo "yes" >&6; }
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848
Serhiy Storchaka9e78dc22017-11-11 17:18:289849# 'Real Time' functions on Solaris
9850# posix4 on Solaris 2.6
9851# pthread (first!) on Linux
Berker Peksag7e666ee2017-11-06 16:06:059852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
Matthias Kloseb9621712010-04-24 17:59:499853$as_echo_n "checking for library containing sem_init... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099854if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499855 $as_echo_n "(cached) " >&6
Martin v. Löwis41933dd2002-03-21 15:10:589856else
Martin v. Löwis82c19a72002-10-06 11:48:099857 ac_func_search_save_LIBS=$LIBS
Matthias Kloseb9621712010-04-24 17:59:499858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049859/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:039860
Thomas Wouters47b49bf2007-08-30 22:15:339861/* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:039864#ifdef __cplusplus
9865extern "C"
9866#endif
Martin v. Löwis11437992002-04-12 09:54:039867char sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039868int
9869main ()
9870{
Thomas Wouters47b49bf2007-08-30 22:15:339871return sem_init ();
Martin v. Löwis11437992002-04-12 09:54:039872 ;
9873 return 0;
9874}
9875_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:339876for ac_lib in '' pthread rt posix4; do
9877 if test -z "$ac_lib"; then
9878 ac_res="none required"
9879 else
9880 ac_res=-l$ac_lib
Skip Montanaroeb33e5a2007-08-17 12:57:419881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Thomas Wouters47b49bf2007-08-30 22:15:339882 fi
Matthias Kloseb9621712010-04-24 17:59:499883 if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters47b49bf2007-08-30 22:15:339884 ac_cv_search_sem_init=$ac_res
Thomas Wouters477c8d52006-05-27 19:21:479885fi
Matthias Kloseb9621712010-04-24 17:59:499886rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext
Victor Stinnere0be4232011-10-25 11:06:099888 if ${ac_cv_search_sem_init+:} false; then :
Thomas Wouters47b49bf2007-08-30 22:15:339889 break
Skip Montanaroeb33e5a2007-08-17 12:57:419890fi
Thomas Wouters47b49bf2007-08-30 22:15:339891done
Victor Stinnere0be4232011-10-25 11:06:099892if ${ac_cv_search_sem_init+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499893
Thomas Wouters47b49bf2007-08-30 22:15:339894else
9895 ac_cv_search_sem_init=no
9896fi
9897rm conftest.$ac_ext
Martin v. Löwis82c19a72002-10-06 11:48:099898LIBS=$ac_func_search_save_LIBS
9899fi
Matthias Kloseb9621712010-04-24 17:59:499900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9901$as_echo "$ac_cv_search_sem_init" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:339902ac_res=$ac_cv_search_sem_init
Matthias Kloseb9621712010-04-24 17:59:499903if test "$ac_res" != no; then :
Thomas Wouters47b49bf2007-08-30 22:15:339904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Martin v. Löwis41933dd2002-03-21 15:10:589905
Martin v. Löwis41933dd2002-03-21 15:10:589906fi
Serhiy Storchaka9e78dc22017-11-11 17:18:289907
Martin v. Löwis519adae2003-09-20 10:47:479908
Martin v. Löwis19d17342003-06-14 21:03:059909# check if we need libintl for locale functions
Matthias Kloseb9621712010-04-24 17:59:499910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9911$as_echo_n "checking for textdomain in -lintl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:099912if ${ac_cv_lib_intl_textdomain+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:499913 $as_echo_n "(cached) " >&6
Martin v. Löwis19d17342003-06-14 21:03:059914else
9915 ac_check_lib_save_LIBS=$LIBS
9916LIBS="-lintl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:499917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049918/* end confdefs.h. */
Martin v. Löwis19d17342003-06-14 21:03:059919
Thomas Wouters47b49bf2007-08-30 22:15:339920/* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
Martin v. Löwis19d17342003-06-14 21:03:059923#ifdef __cplusplus
9924extern "C"
9925#endif
Martin v. Löwis19d17342003-06-14 21:03:059926char textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059927int
9928main ()
9929{
Thomas Wouters47b49bf2007-08-30 22:15:339930return textdomain ();
Martin v. Löwis19d17342003-06-14 21:03:059931 ;
9932 return 0;
9933}
9934_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499935if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis19d17342003-06-14 21:03:059936 ac_cv_lib_intl_textdomain=yes
9937else
Matthias Kloseb9621712010-04-24 17:59:499938 ac_cv_lib_intl_textdomain=no
Martin v. Löwis19d17342003-06-14 21:03:059939fi
Matthias Kloseb9621712010-04-24 17:59:499940rm -f core conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis19d17342003-06-14 21:03:059942LIBS=$ac_check_lib_save_LIBS
9943fi
Matthias Kloseb9621712010-04-24 17:59:499944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9945$as_echo "$ac_cv_lib_intl_textdomain" >&6; }
Victor Stinnere0be4232011-10-25 11:06:099946if test "x$ac_cv_lib_intl_textdomain" = xyes; then :
Martin v. Löwis19d17342003-06-14 21:03:059947
Matthias Kloseb9621712010-04-24 17:59:499948$as_echo "#define WITH_LIBINTL 1" >>confdefs.h
Martin v. Löwis19d17342003-06-14 21:03:059949
Brett Cannonc6d936e2009-06-07 20:09:539950 LIBS="-lintl $LIBS"
Martin v. Löwis19d17342003-06-14 21:03:059951fi
9952
Guido van Rossum0eefa3f1999-11-16 15:57:379953
9954# checks for system dependent C++ extensions support
9955case "$ac_sys_system" in
Matthias Kloseb9621712010-04-24 17:59:499956 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9957$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:049959/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:449960
Georg Brandl59e87bd2011-02-15 19:48:599961 #include <load.h>
Martin v. Löwis11437992002-04-12 09:54:039962int
9963main ()
9964{
Guido van Rossum0eefa3f1999-11-16 15:57:379965loadAndInit("", 0, "")
Martin v. Löwis11437992002-04-12 09:54:039966 ;
9967 return 0;
9968}
Matthias Kloseb159a552010-04-25 21:00:449969
Martin v. Löwis11437992002-04-12 09:54:039970_ACEOF
Matthias Kloseb9621712010-04-24 17:59:499971if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum0eefa3f1999-11-16 15:57:379972
Matthias Kloseb159a552010-04-25 21:00:449973
Matthias Kloseb9621712010-04-24 17:59:499974$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:039975
Matthias Kloseb159a552010-04-25 21:00:449976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:499977$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:449978
Guido van Rossum0eefa3f1999-11-16 15:57:379979else
Matthias Kloseb159a552010-04-25 21:00:449980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:499982$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:449983
Guido van Rossum0eefa3f1999-11-16 15:57:379984fi
Matthias Kloseb9621712010-04-24 17:59:499985rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext;;
Guido van Rossum0eefa3f1999-11-16 15:57:379987 *) ;;
9988esac
9989
Christian Heimes985ecdc2013-11-20 10:46:189990# check for systems that require aligned memory access
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
9992$as_echo_n "checking aligned memory access is required... " >&6; }
Benjamin Petersone4f961b2017-04-14 16:36:459993if ${ac_cv_aligned_required+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995else
9996 if test "$cross_compiling" = yes; then :
9997 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:189998else
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h. */
10001
10002int main()
10003{
10004 char s[16];
10005 int i, *p1, *p2;
10006 for (i=0; i < 16; i++)
10007 s[i] = i;
10008 p1 = (int*)(s+1);
10009 p2 = (int*)(s+2);
10010 if (*p1 == *p2)
10011 return 1;
10012 return 0;
10013}
Christian Heimes985ecdc2013-11-20 10:46:1810014_ACEOF
10015if ac_fn_c_try_run "$LINENO"; then :
Benjamin Petersone4f961b2017-04-14 16:36:4510016 ac_cv_aligned_required=no
Christian Heimes985ecdc2013-11-20 10:46:1810017else
Benjamin Petersone4f961b2017-04-14 16:36:4510018 ac_cv_aligned_required=yes
Christian Heimes985ecdc2013-11-20 10:46:1810019fi
10020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10021 conftest.$ac_objext conftest.beam conftest.$ac_ext
10022fi
10023
10024
Benjamin Petersone4f961b2017-04-14 16:36:4510025fi
10026
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
10028$as_echo "$ac_cv_aligned_required" >&6; }
10029if test "$ac_cv_aligned_required" = yes ; then
Christian Heimes985ecdc2013-11-20 10:46:1810030
10031$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
10032
10033fi
Christian Heimes985ecdc2013-11-20 10:46:1810034
10035# str, bytes and memoryview hash algorithm
10036
10037
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
10039$as_echo_n "checking for --with-hash-algorithm... " >&6; }
10040
10041# Check whether --with-hash_algorithm was given.
10042if test "${with_hash_algorithm+set}" = set; then :
10043 withval=$with_hash_algorithm;
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10045$as_echo "$withval" >&6; }
10046case "$withval" in
10047 siphash24)
10048 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h
10049
10050 ;;
10051 fnv)
10052 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h
10053
10054 ;;
10055 *)
10056 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
10057 ;;
10058esac
10059
10060else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
10062$as_echo "default" >&6; }
10063fi
10064
10065
Charles-François Natalid30b0222014-05-08 22:08:5110066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
10067$as_echo_n "checking for --with-address-sanitizer... " >&6; }
10068
10069# Check whether --with-address_sanitizer was given.
10070if test "${with_address_sanitizer+set}" = set; then :
10071 withval=$with_address_sanitizer;
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10073$as_echo "$withval" >&6; }
10074BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
10075LDFLAGS="-fsanitize=address $LDFLAGS"
Gregory P. Smith5f4d05d2018-11-12 21:48:2410076# ASan works by controlling memory allocation, our own malloc interferes.
10077with_pymalloc="no"
10078
10079else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084
10085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
10086$as_echo_n "checking for --with-memory-sanitizer... " >&6; }
10087
10088# Check whether --with-memory_sanitizer was given.
10089if test "${with_memory_sanitizer+set}" = set; then :
10090 withval=$with_memory_sanitizer;
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10092$as_echo "$withval" >&6; }
10093BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
10094LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
10095# MSan works by controlling memory allocation, our own malloc interferes.
10096with_pymalloc="no"
10097
10098else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
10105$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
10106
10107# Check whether --with-undefined_behavior_sanitizer was given.
10108if test "${with_undefined_behavior_sanitizer+set}" = set; then :
10109 withval=$with_undefined_behavior_sanitizer;
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10111$as_echo "$withval" >&6; }
10112BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
10113LDFLAGS="-fsanitize=undefined $LDFLAGS"
Charles-François Natalid30b0222014-05-08 22:08:5110114
10115else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117$as_echo "no" >&6; }
10118fi
10119
10120
Guido van Rossum70c7f481998-03-26 18:44:1010121# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
Matthias Kloseb9621712010-04-24 17:59:4910122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10123$as_echo_n "checking for t_open in -lnsl... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910124if ${ac_cv_lib_nsl_t_open+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910125 $as_echo_n "(cached) " >&6
Guido van Rossum79dddcb1995-01-12 12:25:4210126else
Martin v. Löwis11437992002-04-12 09:54:0310127 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810128LIBS="-lnsl $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410130/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310131
Thomas Wouters47b49bf2007-08-30 22:15:3310132/* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310135#ifdef __cplusplus
10136extern "C"
10137#endif
Martin v. Löwis11437992002-04-12 09:54:0310138char t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310139int
10140main ()
10141{
Thomas Wouters47b49bf2007-08-30 22:15:3310142return t_open ();
Martin v. Löwis11437992002-04-12 09:54:0310143 ;
10144 return 0;
10145}
10146_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910147if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310148 ac_cv_lib_nsl_t_open=yes
Guido van Rossum79dddcb1995-01-12 12:25:4210149else
Matthias Kloseb9621712010-04-24 17:59:4910150 ac_cv_lib_nsl_t_open=no
Guido van Rossum79dddcb1995-01-12 12:25:4210151fi
Matthias Kloseb9621712010-04-24 17:59:4910152rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310154LIBS=$ac_check_lib_save_LIBS
Guido van Rossum79dddcb1995-01-12 12:25:4210155fi
Matthias Kloseb9621712010-04-24 17:59:4910156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10157$as_echo "$ac_cv_lib_nsl_t_open" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910158if test "x$ac_cv_lib_nsl_t_open" = xyes; then :
Guido van Rossum79dddcb1995-01-12 12:25:4210159 LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:4210160fi
Guido van Rossum0ddb0281995-01-17 16:46:1410161 # SVR4
Matthias Kloseb9621712010-04-24 17:59:4910162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10163$as_echo_n "checking for socket in -lsocket... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910164if ${ac_cv_lib_socket_socket+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910165 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410166else
Martin v. Löwis11437992002-04-12 09:54:0310167 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810168LIBS="-lsocket $LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410170/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310171
Thomas Wouters47b49bf2007-08-30 22:15:3310172/* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310175#ifdef __cplusplus
10176extern "C"
10177#endif
Martin v. Löwis11437992002-04-12 09:54:0310178char socket ();
Martin v. Löwis11437992002-04-12 09:54:0310179int
10180main ()
10181{
Thomas Wouters47b49bf2007-08-30 22:15:3310182return socket ();
Martin v. Löwis11437992002-04-12 09:54:0310183 ;
10184 return 0;
10185}
10186_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910187if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310188 ac_cv_lib_socket_socket=yes
Guido van Rossumec95c7b1998-08-04 17:59:5610189else
Matthias Kloseb9621712010-04-24 17:59:4910190 ac_cv_lib_socket_socket=no
Guido van Rossumec95c7b1998-08-04 17:59:5610191fi
Matthias Kloseb9621712010-04-24 17:59:4910192rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310194LIBS=$ac_check_lib_save_LIBS
Guido van Rossumec95c7b1998-08-04 17:59:5610195fi
Matthias Kloseb9621712010-04-24 17:59:4910196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10197$as_echo "$ac_cv_lib_socket_socket" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910198if test "x$ac_cv_lib_socket_socket" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:1510199 LIBS="-lsocket $LIBS"
Guido van Rossumad678af1998-10-02 14:42:1510200fi
10201 # SVR4 sockets
Skip Montanarob9949db2004-01-17 04:04:1310202
Matthias Kloseb9621712010-04-24 17:59:4910203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10204$as_echo_n "checking for --with-libs... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0310205
Thomas Wouters47b49bf2007-08-30 22:15:3310206# Check whether --with-libs was given.
Matthias Kloseb9621712010-04-24 17:59:4910207if test "${with_libs+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310208 withval=$with_libs;
Matthias Kloseb9621712010-04-24 17:59:4910209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10210$as_echo "$withval" >&6; }
Guido van Rossuma68acba1996-07-31 17:36:3910211LIBS="$withval $LIBS"
10212
10213else
Matthias Kloseb9621712010-04-24 17:59:4910214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3310216fi
10217
Guido van Rossum7f43da71994-08-01 12:15:3010218
Victor Stinner8291b5e2015-03-20 15:03:1410219
10220
10221
10222
10223
10224
Benjamin Peterson62ed6be2017-12-22 05:43:0910225
Victor Stinner8291b5e2015-03-20 15:03:1410226if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10227 if test -n "$ac_tool_prefix"; then
10228 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10229set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231$as_echo_n "checking for $ac_word... " >&6; }
10232if ${ac_cv_path_PKG_CONFIG+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234else
10235 case $PKG_CONFIG in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10238 ;;
10239 *)
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251done
10252 done
10253IFS=$as_save_IFS
10254
10255 ;;
10256esac
10257fi
10258PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10259if test -n "$PKG_CONFIG"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10261$as_echo "$PKG_CONFIG" >&6; }
10262else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264$as_echo "no" >&6; }
10265fi
10266
10267
10268fi
10269if test -z "$ac_cv_path_PKG_CONFIG"; then
10270 ac_pt_PKG_CONFIG=$PKG_CONFIG
10271 # Extract the first word of "pkg-config", so it can be a program name with args.
10272set dummy pkg-config; ac_word=$2
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274$as_echo_n "checking for $ac_word... " >&6; }
10275if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 case $ac_pt_PKG_CONFIG in
10279 [\\/]* | ?:[\\/]*)
10280 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10281 ;;
10282 *)
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $PATH
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295 done
10296IFS=$as_save_IFS
10297
10298 ;;
10299esac
10300fi
10301ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10302if test -n "$ac_pt_PKG_CONFIG"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10304$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10305else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
10308fi
10309
10310 if test "x$ac_pt_PKG_CONFIG" = x; then
10311 PKG_CONFIG=""
10312 else
10313 case $cross_compiling:$ac_tool_warned in
10314yes:)
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10317ac_tool_warned=yes ;;
10318esac
10319 PKG_CONFIG=$ac_pt_PKG_CONFIG
10320 fi
10321else
10322 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10323fi
10324
10325fi
10326if test -n "$PKG_CONFIG"; then
10327 _pkg_min_version=0.9.0
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10329$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10330 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10332$as_echo "yes" >&6; }
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
10336 PKG_CONFIG=""
10337 fi
10338fi
Benjamin Peterson0f64b0b2010-03-09 21:49:5210339
10340# Check for use of the system expat library
Matthias Kloseb9621712010-04-24 17:59:4910341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10342$as_echo_n "checking for --with-system-expat... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210343
10344# Check whether --with-system_expat was given.
Matthias Kloseb9621712010-04-24 17:59:4910345if test "${with_system_expat+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210346 withval=$with_system_expat;
Benjamin Peterson79263252010-10-31 16:50:4410347else
10348 with_system_expat="no"
Benjamin Peterson0f64b0b2010-03-09 21:49:5210349fi
10350
10351
Matthias Kloseb9621712010-04-24 17:59:4910352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10353$as_echo "$with_system_expat" >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210354
10355# Check for use of the system libffi library
Matthias Kloseb9621712010-04-24 17:59:4910356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10357$as_echo_n "checking for --with-system-ffi... " >&6; }
Benjamin Peterson0f64b0b2010-03-09 21:49:5210358
10359# Check whether --with-system_ffi was given.
Matthias Kloseb9621712010-04-24 17:59:4910360if test "${with_system_ffi+set}" = set; then :
Benjamin Peterson0f64b0b2010-03-09 21:49:5210361 withval=$with_system_ffi;
10362fi
10363
10364
Zachary Waref40d4dd2016-09-17 06:25:2410365if test "$ac_sys_system" = "Darwin"
10366then
10367 case "$with_system_ffi" in
10368 "")
10369 with_system_ffi="no"
10370 ;;
10371 yes|no)
10372 ;;
10373 *)
10374 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10375 ;;
10376 esac
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10378$as_echo "$with_system_ffi" >&6; }
10379else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381$as_echo "yes" >&6; }
10382 if test "$with_system_ffi" != ""
10383 then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
10385$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
10386 fi
10387 with_system_ffi="yes"
10388fi
Zachary Ware935043d2016-09-10 00:01:2110389
Benjamin Peterson0f64b0b2010-03-09 21:49:5210390if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
Benjamin Petersond78735d2010-01-01 16:04:2310391 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10392else
10393 LIBFFI_INCLUDEDIR=""
10394fi
10395
10396
Stefan Krah60187b52012-03-23 18:06:2710397# Check for use of the system libmpdec library
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10399$as_echo_n "checking for --with-system-libmpdec... " >&6; }
10400
10401# Check whether --with-system_libmpdec was given.
10402if test "${with_system_libmpdec+set}" = set; then :
10403 withval=$with_system_libmpdec;
10404else
10405 with_system_libmpdec="no"
10406fi
10407
10408
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10410$as_echo "$with_system_libmpdec" >&6; }
10411
Stefan Krahc4ca1f82020-02-29 22:10:2610412# Check whether _decimal should use a coroutine-local or thread-local context
10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
10414$as_echo_n "checking for --with-decimal-contextvar... " >&6; }
10415
10416# Check whether --with-decimal_contextvar was given.
10417if test "${with_decimal_contextvar+set}" = set; then :
10418 withval=$with_decimal_contextvar;
10419else
10420 with_decimal_contextvar="yes"
10421fi
10422
10423
10424if test "$with_decimal_contextvar" != "no"
10425then
10426
10427$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
10428
10429fi
10430
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
10432$as_echo "$with_decimal_contextvar" >&6; }
10433
Benjamin Peterson076ed002010-10-31 17:11:0210434# Check for support for loadable sqlite extensions
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10436$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10437# Check whether --enable-loadable-sqlite-extensions was given.
10438if test "${enable_loadable_sqlite_extensions+set}" = set; then :
10439 enableval=$enable_loadable_sqlite_extensions;
10440else
10441 enable_loadable_sqlite_extensions="no"
10442fi
10443
10444
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10446$as_echo "$enable_loadable_sqlite_extensions" >&6; }
10447
Ned Deilyd819b932013-09-06 08:07:0510448# Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10449
10450
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10452$as_echo_n "checking for --with-tcltk-includes... " >&6; }
10453
10454# Check whether --with-tcltk-includes was given.
10455if test "${with_tcltk_includes+set}" = set; then :
10456 withval=$with_tcltk_includes;
10457else
10458 with_tcltk_includes="default"
10459fi
10460
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10462$as_echo "$with_tcltk_includes" >&6; }
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10464$as_echo_n "checking for --with-tcltk-libs... " >&6; }
10465
10466# Check whether --with-tcltk-libs was given.
10467if test "${with_tcltk_libs+set}" = set; then :
10468 withval=$with_tcltk_libs;
10469else
10470 with_tcltk_libs="default"
10471fi
10472
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10474$as_echo "$with_tcltk_libs" >&6; }
10475if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault
10476then
10477 if test "x$with_tcltk_includes" != "x$with_tcltk_libs"
10478 then
10479 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
10480 fi
10481 TCLTK_INCLUDES=""
10482 TCLTK_LIBS=""
10483else
10484 TCLTK_INCLUDES="$with_tcltk_includes"
10485 TCLTK_LIBS="$with_tcltk_libs"
10486fi
10487
Matthias Klose55708cc2009-04-30 08:06:4910488# Check for --with-dbmliborder
Matthias Kloseb9621712010-04-24 17:59:4910489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10490$as_echo_n "checking for --with-dbmliborder... " >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910491
10492# Check whether --with-dbmliborder was given.
Matthias Kloseb9621712010-04-24 17:59:4910493if test "${with_dbmliborder+set}" = set; then :
Matthias Klose55708cc2009-04-30 08:06:4910494 withval=$with_dbmliborder;
10495if test x$with_dbmliborder = xyes
10496then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010497as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910498else
10499 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10500 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
10501 then
Ross Lagerwallb0ae53d2011-06-10 05:30:3010502 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
Matthias Klose55708cc2009-04-30 08:06:4910503 fi
10504 done
10505fi
10506fi
10507
Matthias Kloseb9621712010-04-24 17:59:4910508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10509$as_echo "$with_dbmliborder" >&6; }
Matthias Klose55708cc2009-04-30 08:06:4910510
Thomas Wouters47b49bf2007-08-30 22:15:3310511
Martin v. Löwis11437992002-04-12 09:54:0310512
10513# Templates for things AC_DEFINEd more than once.
10514# For a single AC_DEFINE, no template is needed.
Guido van Rossumec2f0731997-01-22 20:54:0110515
10516
Antoine Pitroua6a4dc82017-09-07 16:56:2410517if test "$ac_cv_pthread_is_default" = yes
Barry Warsawc0d24d8b2000-06-29 16:12:0010518then
Martin v. Löwisa5f73f92001-10-15 08:06:2910519 # Defining _REENTRANT on system with POSIX threads should not hurt.
Matthias Kloseb9621712010-04-24 17:59:4910520 $as_echo "#define _REENTRANT 1" >>confdefs.h
Martin v. Löwisa5f73f92001-10-15 08:06:2910521
10522 posix_threads=yes
Miss Islington (bot)6112b912019-09-28 02:21:2410523 if test "$ac_sys_system" = "SunOS"; then
10524 CFLAGS="$CFLAGS -D_REENTRANT"
10525 fi
Martin v. Löwis130fb172001-07-19 11:00:4110526elif test "$ac_cv_kpthread" = "yes"
10527then
10528 CC="$CC -Kpthread"
Martin v. Löwis519adae2003-09-20 10:47:4710529 if test "$ac_cv_cxx_thread" = "yes"; then
10530 CXX="$CXX -Kpthread"
10531 fi
Guido van Rossumd0b69ec2001-09-10 14:10:5410532 posix_threads=yes
Martin v. Löwis5f433f02003-05-05 05:05:3010533elif test "$ac_cv_kthread" = "yes"
10534then
10535 CC="$CC -Kthread"
Martin v. Löwis519adae2003-09-20 10:47:4710536 if test "$ac_cv_cxx_thread" = "yes"; then
10537 CXX="$CXX -Kthread"
10538 fi
Martin v. Löwis5f433f02003-05-05 05:05:3010539 posix_threads=yes
Martin v. Löwis4ee6eef2003-05-26 05:37:5110540elif test "$ac_cv_pthread" = "yes"
10541then
10542 CC="$CC -pthread"
Martin v. Löwis519adae2003-09-20 10:47:4710543 if test "$ac_cv_cxx_thread" = "yes"; then
10544 CXX="$CXX -pthread"
10545 fi
Martin v. Löwis4ee6eef2003-05-26 05:37:5110546 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110547else
Martin v. Löwis130fb172001-07-19 11:00:4110548 if test ! -z "$withval" -a -d "$withval"
10549 then LDFLAGS="$LDFLAGS -L$withval"
10550 fi
Martin v. Löwis69c0ff32001-10-15 14:34:4210551
10552 # According to the POSIX spec, a pthreads implementation must
Matthias Klosea2542be2004-08-16 11:35:5110553 # define _POSIX_THREADS in unistd.h. Some apparently don't
10554 # (e.g. gnu pth with pthread emulation)
Matthias Kloseb9621712010-04-24 17:59:4910555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10556$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410558/* end confdefs.h. */
Neal Norwitz6eb37f02003-02-23 23:28:1510559
Martin v. Löwis69c0ff32001-10-15 14:34:4210560#include <unistd.h>
Neal Norwitz6eb37f02003-02-23 23:28:1510561#ifdef _POSIX_THREADS
10562yes
10563#endif
Martin v. Löwis11437992002-04-12 09:54:0310564
10565_ACEOF
Martin v. Löwis69c0ff32001-10-15 14:34:4210566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4910567 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis69c0ff32001-10-15 14:34:4210568 unistd_defines_pthreads=yes
10569else
Martin v. Löwis69c0ff32001-10-15 14:34:4210570 unistd_defines_pthreads=no
10571fi
Matthias Klosec80c93f2010-04-24 17:04:3510572rm -f conftest*
Martin v. Löwis69c0ff32001-10-15 14:34:4210573
Matthias Kloseb9621712010-04-24 17:59:4910574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10575$as_echo "$unistd_defines_pthreads" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:4210576
Matthias Kloseb9621712010-04-24 17:59:4910577 $as_echo "#define _REENTRANT 1" >>confdefs.h
Guido van Rossum9caf77a1996-08-01 00:52:2610578
Martin v. Löwis8158b5a2001-10-08 13:17:2810579 # Just looking for pthread_create in libpthread is not enough:
10580 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
10581 # So we really have to include pthread.h, and then link.
10582 _libs=$LIBS
10583 LIBS="$LIBS -lpthread"
Matthias Kloseb9621712010-04-24 17:59:4910584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10585$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410587/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110588
10589#include <stdio.h>
Martin v. Löwis8158b5a2001-10-08 13:17:2810590#include <pthread.h>
Guido van Rossum02a1c402000-02-25 19:26:3110591
Martin v. Löwis8158b5a2001-10-08 13:17:2810592void * start_routine (void *arg) { exit (0); }
Martin v. Löwis11437992002-04-12 09:54:0310593int
10594main ()
10595{
Martin v. Löwis8158b5a2001-10-08 13:17:2810596
10597pthread_create (NULL, NULL, start_routine, NULL)
Martin v. Löwis11437992002-04-12 09:54:0310598 ;
10599 return 0;
10600}
10601_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910602if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310603
Matthias Kloseb9621712010-04-24 17:59:4910604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605$as_echo "yes" >&6; }
Martin v. Löwis69c0ff32001-10-15 14:34:4210606 posix_threads=yes
Antoine Pitroua6a4dc82017-09-07 16:56:2410607
Guido van Rossum02a1c402000-02-25 19:26:3110608else
Martin v. Löwis11437992002-04-12 09:54:0310609
Martin v. Löwis8158b5a2001-10-08 13:17:2810610 LIBS=$_libs
Matthias Kloseb9621712010-04-24 17:59:4910611 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
Victor Stinnere0be4232011-10-25 11:06:0910612if test "x$ac_cv_func_pthread_detach" = xyes; then :
Guido van Rossumad678af1998-10-02 14:42:1510613
Martin v. Löwis69c0ff32001-10-15 14:34:4210614 posix_threads=yes
Antoine Pitroua6a4dc82017-09-07 16:56:2410615
Guido van Rossumad678af1998-10-02 14:42:1510616else
Guido van Rossumad678af1998-10-02 14:42:1510617
Matthias Kloseb9621712010-04-24 17:59:4910618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10619$as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910620if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910621 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410622else
Martin v. Löwis11437992002-04-12 09:54:0310623 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810624LIBS="-lpthreads $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410626/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310627
Thomas Wouters47b49bf2007-08-30 22:15:3310628/* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310631#ifdef __cplusplus
10632extern "C"
10633#endif
Martin v. Löwis11437992002-04-12 09:54:0310634char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310635int
10636main ()
10637{
Thomas Wouters47b49bf2007-08-30 22:15:3310638return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310639 ;
10640 return 0;
10641}
10642_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910643if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310644 ac_cv_lib_pthreads_pthread_create=yes
Greg Steinadf63d62000-07-05 10:38:0910645else
Matthias Kloseb9621712010-04-24 17:59:4910646 ac_cv_lib_pthreads_pthread_create=no
Greg Steinadf63d62000-07-05 10:38:0910647fi
Matthias Kloseb9621712010-04-24 17:59:4910648rm -f core conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310650LIBS=$ac_check_lib_save_LIBS
Greg Steinadf63d62000-07-05 10:38:0910651fi
Matthias Kloseb9621712010-04-24 17:59:4910652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10653$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910654if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
Greg Steinadf63d62000-07-05 10:38:0910655
Guido van Rossumd0b69ec2001-09-10 14:10:5410656 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110657 LIBS="$LIBS -lpthreads"
Antoine Pitroua6a4dc82017-09-07 16:56:2410658
Greg Steinadf63d62000-07-05 10:38:0910659else
Greg Steinadf63d62000-07-05 10:38:0910660
Matthias Kloseb9621712010-04-24 17:59:4910661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10662$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910663if ${ac_cv_lib_c_r_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910664 $as_echo_n "(cached) " >&6
Greg Steinadf63d62000-07-05 10:38:0910665else
Martin v. Löwis11437992002-04-12 09:54:0310666 ac_check_lib_save_LIBS=$LIBS
Greg Steinadf63d62000-07-05 10:38:0910667LIBS="-lc_r $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410669/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310670
Thomas Wouters47b49bf2007-08-30 22:15:3310671/* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310674#ifdef __cplusplus
10675extern "C"
10676#endif
Martin v. Löwis11437992002-04-12 09:54:0310677char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310678int
10679main ()
10680{
Thomas Wouters47b49bf2007-08-30 22:15:3310681return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310682 ;
10683 return 0;
10684}
10685_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910686if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310687 ac_cv_lib_c_r_pthread_create=yes
Guido van Rossum49545951997-12-02 19:28:2910688else
Matthias Kloseb9621712010-04-24 17:59:4910689 ac_cv_lib_c_r_pthread_create=no
Guido van Rossum49545951997-12-02 19:28:2910690fi
Matthias Kloseb9621712010-04-24 17:59:4910691rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310693LIBS=$ac_check_lib_save_LIBS
Guido van Rossum49545951997-12-02 19:28:2910694fi
Matthias Kloseb9621712010-04-24 17:59:4910695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10696$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910697if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
Guido van Rossum49545951997-12-02 19:28:2910698
Guido van Rossumd0b69ec2001-09-10 14:10:5410699 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110700 LIBS="$LIBS -lc_r"
Antoine Pitroua6a4dc82017-09-07 16:56:2410701
Guido van Rossum07bd90e2000-05-08 13:41:3810702else
Guido van Rossum07bd90e2000-05-08 13:41:3810703
Matthias Kloseb9621712010-04-24 17:59:4910704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10705$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910706if ${ac_cv_lib_pthread___pthread_create_system+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910707 $as_echo_n "(cached) " >&6
Guido van Rossum8d6e8af2000-10-30 17:45:0710708else
Martin v. Löwis11437992002-04-12 09:54:0310709 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710710LIBS="-lpthread $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410712/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310713
Thomas Wouters47b49bf2007-08-30 22:15:3310714/* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310717#ifdef __cplusplus
10718extern "C"
10719#endif
Martin v. Löwis11437992002-04-12 09:54:0310720char __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310721int
10722main ()
10723{
Thomas Wouters47b49bf2007-08-30 22:15:3310724return __pthread_create_system ();
Martin v. Löwis11437992002-04-12 09:54:0310725 ;
10726 return 0;
10727}
10728_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910729if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310730 ac_cv_lib_pthread___pthread_create_system=yes
Guido van Rossum8d6e8af2000-10-30 17:45:0710731else
Matthias Kloseb9621712010-04-24 17:59:4910732 ac_cv_lib_pthread___pthread_create_system=no
Guido van Rossum8d6e8af2000-10-30 17:45:0710733fi
Matthias Kloseb9621712010-04-24 17:59:4910734rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310736LIBS=$ac_check_lib_save_LIBS
Guido van Rossum8d6e8af2000-10-30 17:45:0710737fi
Matthias Kloseb9621712010-04-24 17:59:4910738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10739$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910740if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then :
Guido van Rossum8d6e8af2000-10-30 17:45:0710741
Guido van Rossumd0b69ec2001-09-10 14:10:5410742 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110743 LIBS="$LIBS -lpthread"
Antoine Pitroua6a4dc82017-09-07 16:56:2410744
Guido van Rossum8d6e8af2000-10-30 17:45:0710745else
Guido van Rossum8d6e8af2000-10-30 17:45:0710746
Matthias Kloseb9621712010-04-24 17:59:4910747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10748$as_echo_n "checking for pthread_create in -lcma... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910749if ${ac_cv_lib_cma_pthread_create+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910750 $as_echo_n "(cached) " >&6
Guido van Rossumb93a8621998-05-07 13:27:3210751else
Martin v. Löwis11437992002-04-12 09:54:0310752 ac_check_lib_save_LIBS=$LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210753LIBS="-lcma $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410755/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310756
Thomas Wouters47b49bf2007-08-30 22:15:3310757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310760#ifdef __cplusplus
10761extern "C"
10762#endif
Martin v. Löwis11437992002-04-12 09:54:0310763char pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310764int
10765main ()
10766{
Thomas Wouters47b49bf2007-08-30 22:15:3310767return pthread_create ();
Martin v. Löwis11437992002-04-12 09:54:0310768 ;
10769 return 0;
10770}
10771_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910772if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310773 ac_cv_lib_cma_pthread_create=yes
Guido van Rossumb93a8621998-05-07 13:27:3210774else
Matthias Kloseb9621712010-04-24 17:59:4910775 ac_cv_lib_cma_pthread_create=no
Guido van Rossumb93a8621998-05-07 13:27:3210776fi
Matthias Kloseb9621712010-04-24 17:59:4910777rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310779LIBS=$ac_check_lib_save_LIBS
Guido van Rossumb93a8621998-05-07 13:27:3210780fi
Matthias Kloseb9621712010-04-24 17:59:4910781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10782$as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910783if test "x$ac_cv_lib_cma_pthread_create" = xyes; then :
Guido van Rossumb93a8621998-05-07 13:27:3210784
Guido van Rossumd0b69ec2001-09-10 14:10:5410785 posix_threads=yes
Martin v. Löwis130fb172001-07-19 11:00:4110786 LIBS="$LIBS -lcma"
Antoine Pitroua6a4dc82017-09-07 16:56:2410787
Guido van Rossumb93a8621998-05-07 13:27:3210788else
Thomas Wouters0db2b2b2000-08-26 11:33:4310789
Antoine Pitroua6a4dc82017-09-07 16:56:2410790 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
10791
Guido van Rossum2d38f911996-06-26 19:47:0110792fi
10793
Guido van Rossum627b2d71993-12-24 10:39:1610794
Guido van Rossum7b3853f1996-07-30 18:09:3510795fi
10796
Guido van Rossum0be3e491997-05-22 20:33:3310797fi
10798
Guido van Rossum49545951997-12-02 19:28:2910799fi
10800
Guido van Rossumb93a8621998-05-07 13:27:3210801fi
10802
Martin v. Löwisf90ae202002-06-11 06:22:3110803fi
Matthias Kloseb9621712010-04-24 17:59:4910804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2610806
Matthias Kloseb9621712010-04-24 17:59:4910807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10808$as_echo_n "checking for usconfig in -lmpc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910809if ${ac_cv_lib_mpc_usconfig+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910810 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5410811else
Martin v. Löwis11437992002-04-12 09:54:0310812 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2810813LIBS="-lmpc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4910814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410815/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0310816
Thomas Wouters47b49bf2007-08-30 22:15:3310817/* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0310820#ifdef __cplusplus
10821extern "C"
10822#endif
Martin v. Löwis11437992002-04-12 09:54:0310823char usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310824int
10825main ()
10826{
Thomas Wouters47b49bf2007-08-30 22:15:3310827return usconfig ();
Martin v. Löwis11437992002-04-12 09:54:0310828 ;
10829 return 0;
10830}
10831_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910832if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0310833 ac_cv_lib_mpc_usconfig=yes
Guido van Rossum76be6ed1995-01-02 18:33:5410834else
Matthias Kloseb9621712010-04-24 17:59:4910835 ac_cv_lib_mpc_usconfig=no
Guido van Rossum627b2d71993-12-24 10:39:1610836fi
Matthias Kloseb9621712010-04-24 17:59:4910837rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0310839LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5410840fi
Matthias Kloseb9621712010-04-24 17:59:4910841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10842$as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910843if test "x$ac_cv_lib_mpc_usconfig" = xyes; then :
Guido van Rossum627b2d71993-12-24 10:39:1610844
Martin v. Löwis130fb172001-07-19 11:00:4110845 LIBS="$LIBS -lmpc"
Antoine Pitroua6a4dc82017-09-07 16:56:2410846
Guido van Rossum627b2d71993-12-24 10:39:1610847fi
10848
Martin v. Löwis3d2b5492002-03-15 13:48:2110849
Martin v. Löwis4ee6eef2003-05-26 05:37:5110850fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410851
Martin v. Löwis4ee6eef2003-05-26 05:37:5110852if test "$posix_threads" = "yes"; then
10853 if test "$unistd_defines_pthreads" = "no"; then
Martin v. Löwisa7a76d32002-10-04 07:21:2410854
Matthias Kloseb9621712010-04-24 17:59:4910855$as_echo "#define _POSIX_THREADS 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110856
10857 fi
10858
10859 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
10860 case $ac_sys_system/$ac_sys_release in
Charles-François Natali996f6062011-07-21 17:45:3110861 SunOS/5.6)
Matthias Kloseb9621712010-04-24 17:59:4910862$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
Martin v. Löwisa7a76d32002-10-04 07:21:2410863
Martin v. Löwis4ee6eef2003-05-26 05:37:5110864 ;;
10865 SunOS/5.8)
Matthias Kloseb9621712010-04-24 17:59:4910866$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110867
10868 ;;
Charles-François Natali996f6062011-07-21 17:45:3110869 AIX/*)
Matthias Kloseb9621712010-04-24 17:59:4910870$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
Christian Heimes7b3ce6a2008-01-31 14:31:4510871
10872 ;;
Martin v. Löwis4ee6eef2003-05-26 05:37:5110873 esac
10874
Matthias Kloseb9621712010-04-24 17:59:4910875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10876$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0910877 if ${ac_cv_pthread_system_supported+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4910878 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5110879else
Matthias Kloseb9621712010-04-24 17:59:4910880 if test "$cross_compiling" = yes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110881 ac_cv_pthread_system_supported=no
10882else
Matthias Kloseb9621712010-04-24 17:59:4910883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410884/* end confdefs.h. */
Stefan Krah7dba5942012-11-22 21:49:1110885
10886 #include <stdio.h>
10887 #include <pthread.h>
Martin v. Löwis4ee6eef2003-05-26 05:37:5110888 void *foo(void *parm) {
10889 return NULL;
10890 }
10891 main() {
10892 pthread_attr_t attr;
10893 pthread_t id;
10894 if (pthread_attr_init(&attr)) exit(-1);
10895 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10896 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10897 exit(0);
10898 }
10899_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910900if ac_fn_c_try_run "$LINENO"; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110901 ac_cv_pthread_system_supported=yes
10902else
Matthias Kloseb9621712010-04-24 17:59:4910903 ac_cv_pthread_system_supported=no
Martin v. Löwis4ee6eef2003-05-26 05:37:5110904fi
Matthias Kloseb9621712010-04-24 17:59:4910905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10906 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis4ee6eef2003-05-26 05:37:5110907fi
Martin v. Löwisa7a76d32002-10-04 07:21:2410908
Thomas Wouters47b49bf2007-08-30 22:15:3310909
Guido van Rossum627b2d71993-12-24 10:39:1610910fi
10911
Matthias Kloseb9621712010-04-24 17:59:4910912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10913$as_echo "$ac_cv_pthread_system_supported" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5110914 if test "$ac_cv_pthread_system_supported" = "yes"; then
10915
Matthias Kloseb9621712010-04-24 17:59:4910916$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
Martin v. Löwis4ee6eef2003-05-26 05:37:5110917
10918 fi
Matthias Kloseb9621712010-04-24 17:59:4910919 for ac_func in pthread_sigmask
10920do :
10921 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
Victor Stinnere0be4232011-10-25 11:06:0910922if test "x$ac_cv_func_pthread_sigmask" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5110923 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4910924#define HAVE_PTHREAD_SIGMASK 1
Martin v. Löwis4ee6eef2003-05-26 05:37:5110925_ACEOF
Jason Tishlerfac083d2003-07-22 15:20:4910926 case $ac_sys_system in
10927 CYGWIN*)
Martin v. Löwis4ee6eef2003-05-26 05:37:5110928
Matthias Kloseb9621712010-04-24 17:59:4910929$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
Jason Tishlerfac083d2003-07-22 15:20:4910930
10931 ;;
10932 esac
Martin v. Löwis4ee6eef2003-05-26 05:37:5110933fi
10934done
10935
pdoxe14679c2017-10-05 07:01:5610936 for ac_func in pthread_getcpuclockid
10937do :
10938 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
10939if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then :
10940 cat >>confdefs.h <<_ACEOF
10941#define HAVE_PTHREAD_GETCPUCLOCKID 1
10942_ACEOF
10943
10944fi
10945done
10946
Martin v. Löwis4ee6eef2003-05-26 05:37:5110947fi
10948
10949
Martin v. Löwisa2ac6022001-08-09 11:40:1410950# Check for enable-ipv6
Martin v. Löwis11437992002-04-12 09:54:0310951
Matthias Kloseb9621712010-04-24 17:59:4910952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10953$as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3310954# Check whether --enable-ipv6 was given.
Matthias Kloseb9621712010-04-24 17:59:4910955if test "${enable_ipv6+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3310956 enableval=$enable_ipv6; case "$enableval" in
Martin v. Löwisa2ac6022001-08-09 11:40:1410957 no)
Matthias Kloseb9621712010-04-24 17:59:4910958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410960 ipv6=no
10961 ;;
Matthias Kloseb9621712010-04-24 17:59:4910962 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963$as_echo "yes" >&6; }
10964 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa2ac6022001-08-09 11:40:1410965
10966 ipv6=yes
10967 ;;
Martin v. Löwis11437992002-04-12 09:54:0310968 esac
Martin v. Löwisa2ac6022001-08-09 11:40:1410969else
Martin v. Löwis11437992002-04-12 09:54:0310970
Matthias Kloseb9621712010-04-24 17:59:4910971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0410972/* end confdefs.h. */
Martin v. Löwisa2ac6022001-08-09 11:40:1410973 /* AF_INET6 available check */
10974#include <sys/types.h>
10975#include <sys/socket.h>
Charles-François Natalif6fd7942013-01-08 18:49:4210976int
10977main ()
Martin v. Löwisa2ac6022001-08-09 11:40:1410978{
Charles-François Natalif6fd7942013-01-08 18:49:4210979int domain = AF_INET6;
10980 ;
10981 return 0;
Martin v. Löwisa2ac6022001-08-09 11:40:1410982}
Martin v. Löwis11437992002-04-12 09:54:0310983_ACEOF
Charles-François Natalif6fd7942013-01-08 18:49:4210984if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4410985
Matthias Kloseb9621712010-04-24 17:59:4910986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10987$as_echo "yes" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410988 ipv6=yes
Matthias Kloseb159a552010-04-25 21:00:4410989
Martin v. Löwisa2ac6022001-08-09 11:40:1410990else
Matthias Kloseb159a552010-04-25 21:00:4410991
Matthias Kloseb9621712010-04-24 17:59:4910992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1410994 ipv6=no
Matthias Kloseb159a552010-04-25 21:00:4410995
Martin v. Löwisa2ac6022001-08-09 11:40:1410996fi
Charles-François Natalif6fd7942013-01-08 18:49:4210997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3310998
Martin v. Löwisa5f8bb52001-09-05 08:22:3410999if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
11001$as_echo_n "checking if RFC2553 API is available... " >&6; }
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411003/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4411004
11005 #include <sys/types.h>
Martin v. Löwisa5f8bb52001-09-05 08:22:3411006#include <netinet/in.h>
Martin v. Löwis11437992002-04-12 09:54:0311007int
11008main ()
11009{
Martin v. Löwisa5f8bb52001-09-05 08:22:3411010struct sockaddr_in6 x;
Matthias Kloseb159a552010-04-25 21:00:4411011 x.sin6_scope_id;
Martin v. Löwis11437992002-04-12 09:54:0311012 ;
11013 return 0;
11014}
Matthias Kloseb159a552010-04-25 21:00:4411015
Martin v. Löwis11437992002-04-12 09:54:0311016_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911017if ac_fn_c_try_compile "$LINENO"; then :
Matthias Kloseb159a552010-04-25 21:00:4411018
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911020$as_echo "yes" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4411021 ipv6=yes
11022
Martin v. Löwisa5f8bb52001-09-05 08:22:3411023else
Matthias Kloseb159a552010-04-25 21:00:4411024
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Matthias Kloseb9621712010-04-24 17:59:4911026$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4411027 ipv6=no
11028
Martin v. Löwisa5f8bb52001-09-05 08:22:3411029fi
Thomas Wouters47b49bf2007-08-30 22:15:3311030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisa5f8bb52001-09-05 08:22:3411031fi
11032
11033if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911034 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
Martin v. Löwisa5f8bb52001-09-05 08:22:3411035
11036fi
11037
Thomas Wouters47b49bf2007-08-30 22:15:3311038fi
11039
Martin v. Löwisa2ac6022001-08-09 11:40:1411040
11041ipv6type=unknown
11042ipv6lib=none
11043ipv6trylibc=no
11044
11045if test "$ipv6" = "yes"; then
Matthias Kloseb9621712010-04-24 17:59:4911046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
11047$as_echo_n "checking ipv6 stack type... " >&6; }
Guido van Rossumb8552162001-09-05 14:58:1111048 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11049 do
Martin v. Löwisa2ac6022001-08-09 11:40:1411050 case $i in
11051 inria)
Matthias Kloseb9621712010-04-24 17:59:4911052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411053/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911054
Martin v. Löwisa2ac6022001-08-09 11:40:1411055#include <netinet/in.h>
11056#ifdef IPV6_INRIA_VERSION
11057yes
11058#endif
Martin v. Löwis11437992002-04-12 09:54:0311059_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911061 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwis44ddbde2001-12-02 10:15:3711062 ipv6type=$i
Martin v. Löwisa2ac6022001-08-09 11:40:1411063fi
Matthias Klosec80c93f2010-04-24 17:04:3511064rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411065
11066 ;;
11067 kame)
Matthias Kloseb9621712010-04-24 17:59:4911068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411069/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911070
Martin v. Löwisa2ac6022001-08-09 11:40:1411071#include <netinet/in.h>
11072#ifdef __KAME__
11073yes
11074#endif
Martin v. Löwis11437992002-04-12 09:54:0311075_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911077 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411078 ipv6type=$i;
11079 ipv6lib=inet6
11080 ipv6libdir=/usr/local/v6/lib
11081 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411082fi
Matthias Klosec80c93f2010-04-24 17:04:3511083rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411084
11085 ;;
11086 linux-glibc)
Matthias Kloseb9621712010-04-24 17:59:4911087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411088/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911089
Martin v. Löwisa2ac6022001-08-09 11:40:1411090#include <features.h>
11091#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
11092yes
11093#endif
Martin v. Löwis11437992002-04-12 09:54:0311094_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911096 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411097 ipv6type=$i;
11098 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411099fi
Matthias Klosec80c93f2010-04-24 17:04:3511100rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411101
11102 ;;
11103 linux-inet6)
11104 if test -d /usr/inet6; then
11105 ipv6type=$i
11106 ipv6lib=inet6
11107 ipv6libdir=/usr/inet6/lib
Skip Montanarodecc6a42003-01-01 20:07:4911108 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411109 fi
11110 ;;
11111 solaris)
11112 if test -f /etc/netconfig; then
Antoine Pitrouf3fcd9f2011-01-03 18:53:5011113 if $GREP -q tcp6 /etc/netconfig; then
Martin v. Löwisa2ac6022001-08-09 11:40:1411114 ipv6type=$i
11115 ipv6trylibc=yes
Martin v. Löwisa2ac6022001-08-09 11:40:1411116 fi
11117 fi
11118 ;;
11119 toshiba)
Matthias Kloseb9621712010-04-24 17:59:4911120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411121/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911122
Martin v. Löwisa2ac6022001-08-09 11:40:1411123#include <sys/param.h>
11124#ifdef _TOSHIBA_INET6
11125yes
11126#endif
Martin v. Löwis11437992002-04-12 09:54:0311127_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911129 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411130 ipv6type=$i;
11131 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711132 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411133fi
Matthias Klosec80c93f2010-04-24 17:04:3511134rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411135
11136 ;;
11137 v6d)
Matthias Kloseb9621712010-04-24 17:59:4911138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411139/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911140
Martin v. Löwisa2ac6022001-08-09 11:40:1411141#include </usr/local/v6/include/sys/v6config.h>
11142#ifdef __V6D__
11143yes
11144#endif
Martin v. Löwis11437992002-04-12 09:54:0311145_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911147 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411148 ipv6type=$i;
11149 ipv6lib=v6;
11150 ipv6libdir=/usr/local/v6/lib;
Skip Montanarodecc6a42003-01-01 20:07:4911151 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
Martin v. Löwisa2ac6022001-08-09 11:40:1411152fi
Matthias Klosec80c93f2010-04-24 17:04:3511153rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411154
11155 ;;
11156 zeta)
Matthias Kloseb9621712010-04-24 17:59:4911157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411158/* end confdefs.h. */
Martin v. Löwisa5f73f92001-10-15 08:06:2911159
Martin v. Löwisa2ac6022001-08-09 11:40:1411160#include <sys/param.h>
11161#ifdef _ZETA_MINAMI_INET6
11162yes
11163#endif
Martin v. Löwis11437992002-04-12 09:54:0311164_ACEOF
Martin v. Löwisa2ac6022001-08-09 11:40:1411165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4911166 $EGREP "yes" >/dev/null 2>&1; then :
Martin v. Löwisa2ac6022001-08-09 11:40:1411167 ipv6type=$i;
11168 ipv6lib=inet6;
Martin v. Löwis44ddbde2001-12-02 10:15:3711169 ipv6libdir=/usr/local/v6/lib
Martin v. Löwisa2ac6022001-08-09 11:40:1411170fi
Matthias Klosec80c93f2010-04-24 17:04:3511171rm -f conftest*
Martin v. Löwisa2ac6022001-08-09 11:40:1411172
11173 ;;
11174 esac
11175 if test "$ipv6type" != "unknown"; then
11176 break
11177 fi
11178 done
Matthias Kloseb9621712010-04-24 17:59:4911179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11180$as_echo "$ipv6type" >&6; }
Martin v. Löwisa2ac6022001-08-09 11:40:1411181fi
11182
11183if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11184 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11185 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11186 echo "using lib$ipv6lib"
11187 else
11188 if test $ipv6trylibc = "yes"; then
11189 echo "using libc"
11190 else
11191 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11192 echo "You need to fetch lib$ipv6lib.a from appropriate"
11193 echo 'ipv6 kit and compile beforehand.'
11194 exit 1
11195 fi
11196 fi
11197fi
11198
Larry Hastingsa6cc5512015-04-13 21:48:4011199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11200$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202/* end confdefs.h. */
11203 /* CAN_RAW_FD_FRAMES available check */
11204#include <linux/can/raw.h>
11205int
11206main ()
11207{
11208int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
11209 ;
11210 return 0;
11211}
11212_ACEOF
11213if ac_fn_c_try_compile "$LINENO"; then :
11214
11215
11216$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219$as_echo "yes" >&6; }
11220
11221else
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
11225
11226fi
11227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228
Martin v. Löwisa3fb4f72002-06-09 13:33:5411229# Check for --with-doc-strings
Matthias Kloseb9621712010-04-24 17:59:4911230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11231$as_echo_n "checking for --with-doc-strings... " >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411232
Thomas Wouters47b49bf2007-08-30 22:15:3311233# Check whether --with-doc-strings was given.
Matthias Kloseb9621712010-04-24 17:59:4911234if test "${with_doc_strings+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311235 withval=$with_doc_strings;
11236fi
Martin v. Löwisa3fb4f72002-06-09 13:33:5411237
Martin v. Löwisa3fb4f72002-06-09 13:33:5411238
11239if test -z "$with_doc_strings"
11240then with_doc_strings="yes"
11241fi
11242if test "$with_doc_strings" != "no"
11243then
11244
Matthias Kloseb9621712010-04-24 17:59:4911245$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
Martin v. Löwisa3fb4f72002-06-09 13:33:5411246
11247fi
Matthias Kloseb9621712010-04-24 17:59:4911248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11249$as_echo "$with_doc_strings" >&6; }
Martin v. Löwisa3fb4f72002-06-09 13:33:5411250
Martin v. Löwisf30d60e2004-06-08 08:17:4411251# Check for Python-specific malloc support
Matthias Kloseb9621712010-04-24 17:59:4911252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11253$as_echo_n "checking for --with-pymalloc... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0311254
Thomas Wouters47b49bf2007-08-30 22:15:3311255# Check whether --with-pymalloc was given.
Matthias Kloseb9621712010-04-24 17:59:4911256if test "${with_pymalloc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3311257 withval=$with_pymalloc;
11258fi
Michael W. Hudson54241132001-12-07 15:38:2611259
Neil Schemenauera35c6882001-02-27 04:45:0511260
Neil Schemenauer16c22972002-03-22 15:34:4911261if test -z "$with_pymalloc"
Barry Warsaw35f3a2c2010-09-03 18:30:3011262then
11263 with_pymalloc="yes"
Neil Schemenauer16c22972002-03-22 15:34:4911264fi
11265if test "$with_pymalloc" != "no"
11266then
Martin v. Löwis11437992002-04-12 09:54:0311267
Matthias Kloseb9621712010-04-24 17:59:4911268$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
Neil Schemenauer16c22972002-03-22 15:34:4911269
doko@ubuntu.com9c7817e2012-06-30 15:05:1311270 ABIFLAGS="${ABIFLAGS}m"
Neil Schemenauer16c22972002-03-22 15:34:4911271fi
Matthias Kloseb9621712010-04-24 17:59:4911272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11273$as_echo "$with_pymalloc" >&6; }
Neil Schemenauer16c22972002-03-22 15:34:4911274
Nick Coghlan6ea41862017-06-11 03:16:1511275# Check for --with-c-locale-coercion
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
11277$as_echo_n "checking for --with-c-locale-coercion... " >&6; }
11278
11279# Check whether --with-c-locale-coercion was given.
11280if test "${with_c_locale_coercion+set}" = set; then :
11281 withval=$with_c_locale_coercion;
11282fi
11283
11284
11285if test -z "$with_c_locale_coercion"
11286then
11287 with_c_locale_coercion="yes"
11288fi
11289if test "$with_c_locale_coercion" != "no"
11290then
11291
11292$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
11293
11294fi
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
11296$as_echo "$with_c_locale_coercion" >&6; }
11297
Benjamin Peterson05159c42009-12-03 03:01:2711298# Check for Valgrind support
Matthias Kloseb9621712010-04-24 17:59:4911299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11300$as_echo_n "checking for --with-valgrind... " >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711301
11302# Check whether --with-valgrind was given.
Matthias Kloseb9621712010-04-24 17:59:4911303if test "${with_valgrind+set}" = set; then :
Benjamin Peterson05159c42009-12-03 03:01:2711304 withval=$with_valgrind;
11305else
11306 with_valgrind=no
11307fi
11308
Matthias Kloseb9621712010-04-24 17:59:4911309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11310$as_echo "$with_valgrind" >&6; }
Benjamin Peterson05159c42009-12-03 03:01:2711311if test "$with_valgrind" != no; then
Matthias Kloseb9621712010-04-24 17:59:4911312 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0911313if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
Benjamin Peterson05159c42009-12-03 03:01:2711314
Matthias Kloseb9621712010-04-24 17:59:4911315$as_echo "#define WITH_VALGRIND 1" >>confdefs.h
Benjamin Peterson05159c42009-12-03 03:01:2711316
11317else
Ross Lagerwallb0ae53d2011-06-10 05:30:3011318 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
Benjamin Peterson05159c42009-12-03 03:01:2711319
11320fi
11321
11322
Jeffrey Yasskin39370832010-05-03 19:29:3411323 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
Benjamin Peterson05159c42009-12-03 03:01:2711324fi
11325
Łukasz Langaa785c872016-09-10 00:37:3711326# Check for DTrace support
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11328$as_echo_n "checking for --with-dtrace... " >&6; }
11329
11330# Check whether --with-dtrace was given.
11331if test "${with_dtrace+set}" = set; then :
11332 withval=$with_dtrace;
11333else
11334 with_dtrace=no
11335fi
11336
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11338$as_echo "$with_dtrace" >&6; }
11339
11340
11341
11342
11343
11344DTRACE=
11345DFLAGS=
11346DTRACE_HEADERS=
11347DTRACE_OBJS=
11348
11349if test "$with_dtrace" = "yes"
11350then
11351 # Extract the first word of "dtrace", so it can be a program name with args.
11352set dummy dtrace; ac_word=$2
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
11355if ${ac_cv_path_DTRACE+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357else
11358 case $DTRACE in
11359 [\\/]* | ?:[\\/]*)
11360 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
11361 ;;
11362 *)
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374done
11375 done
11376IFS=$as_save_IFS
11377
11378 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11379 ;;
11380esac
11381fi
11382DTRACE=$ac_cv_path_DTRACE
11383if test -n "$DTRACE"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11385$as_echo "$DTRACE" >&6; }
11386else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388$as_echo "no" >&6; }
11389fi
11390
11391
11392 if test "$DTRACE" = "not found"; then
11393 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
11394 fi
11395
11396$as_echo "#define WITH_DTRACE 1" >>confdefs.h
11397
11398 DTRACE_HEADERS="Include/pydtrace_probes.h"
11399
11400 # On OS X, DTrace providers do not need to be explicitly compiled and
11401 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
11402 # generation flag '-G'. We check for presence of this flag, rather than
11403 # hardcoding support by OS, in the interest of robustness.
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11405$as_echo_n "checking whether DTrace probes require linking... " >&6; }
11406if ${ac_cv_dtrace_link+:} false; then :
11407 $as_echo_n "(cached) " >&6
11408else
11409 ac_cv_dtrace_link=no
11410 echo 'BEGIN' > conftest.d
11411 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11412 ac_cv_dtrace_link=yes
11413
11414fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11416$as_echo "$ac_cv_dtrace_link" >&6; }
11417 if test "$ac_cv_dtrace_link" = "yes"; then
11418 DTRACE_OBJS="Python/pydtrace.o"
11419 fi
11420fi
11421
Guido van Rossum48bdbfc1996-05-28 22:53:4811422# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:3011423
Guido van Rossum98935bf2001-09-05 19:13:1611424DLINCLDIR=.
Guido van Rossum7f43da71994-08-01 12:15:3011425
Guido van Rossume97ee181999-12-20 21:27:2211426# the dlopen() function means we might want to use dynload_shlib.o. some
11427# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:5111428for ac_func in dlopen
Matthias Kloseb9621712010-04-24 17:59:4911429do :
11430 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Victor Stinnere0be4232011-10-25 11:06:0911431if test "x$ac_cv_func_dlopen" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0311432 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911433#define HAVE_DLOPEN 1
Martin v. Löwis11437992002-04-12 09:54:0311434_ACEOF
Guido van Rossume97ee181999-12-20 21:27:2211435
Guido van Rossume97ee181999-12-20 21:27:2211436fi
Thomas Wouters3a584202000-08-05 23:28:5111437done
Guido van Rossume97ee181999-12-20 21:27:2211438
Michael W. Hudson54241132001-12-07 15:38:2611439
Guido van Rossume97ee181999-12-20 21:27:2211440# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11441# loading of modules.
11442
Matthias Kloseb9621712010-04-24 17:59:4911443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11444$as_echo_n "checking DYNLOADFILE... " >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211445if test -z "$DYNLOADFILE"
11446then
11447 case $ac_sys_system/$ac_sys_release in
Martin v. Löwisc19c5a62003-11-18 20:00:4411448 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
11449 if test "$ac_cv_func_dlopen" = yes
11450 then DYNLOADFILE="dynload_shlib.o"
11451 else DYNLOADFILE="dynload_aix.o"
11452 fi
11453 ;;
Guido van Rossume97ee181999-12-20 21:27:2211454 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Guido van Rossume97ee181999-12-20 21:27:2211455 *)
11456 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
11457 # out any dynamic loading
11458 if test "$ac_cv_func_dlopen" = yes
11459 then DYNLOADFILE="dynload_shlib.o"
11460 else DYNLOADFILE="dynload_stub.o"
11461 fi
11462 ;;
11463 esac
11464fi
Matthias Kloseb9621712010-04-24 17:59:4911465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11466$as_echo "$DYNLOADFILE" >&6; }
Guido van Rossume97ee181999-12-20 21:27:2211467if test "$DYNLOADFILE" != "dynload_stub.o"
11468then
Martin v. Löwis11437992002-04-12 09:54:0311469
Matthias Kloseb9621712010-04-24 17:59:4911470$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
Guido van Rossume97ee181999-12-20 21:27:2211471
11472fi
11473
Neil Schemenauer4e425612001-06-19 15:44:1511474# MACHDEP_OBJS can be set to platform-specific object files needed by Python
11475
Michael W. Hudson54241132001-12-07 15:38:2611476
Matthias Kloseb9621712010-04-24 17:59:4911477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11478$as_echo_n "checking MACHDEP_OBJS... " >&6; }
Neil Schemenauer4e425612001-06-19 15:44:1511479if test -z "$MACHDEP_OBJS"
11480then
Jack Jansene578a632001-08-15 01:27:1411481 MACHDEP_OBJS=$extra_machdep_objs
11482else
11483 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
Neil Schemenauer4e425612001-06-19 15:44:1511484fi
doko@ubuntu.com9c7817e2012-06-30 15:05:1311485if test -z "$MACHDEP_OBJS"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11487$as_echo "none" >&6; }
11488else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11490$as_echo "$MACHDEP_OBJS" >&6; }
11491fi
Neil Schemenauer4e425612001-06-19 15:44:1511492
Guido van Rossum627b2d71993-12-24 10:39:1611493# checks for library functions
Antoine Pitroub1c54962010-10-14 15:05:3811494for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
Victor Stinnerdaf45552013-08-27 22:53:5911495 clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \
Ross Lagerwall7807c352011-03-17 18:20:3011496 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
Victor Stinner4d6a3d62014-12-21 00:16:3811497 futimens futimes gai_strerror getentropy \
Ross Lagerwallb0ae53d2011-06-10 05:30:3011498 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
Martin v. Löwis7aed61a2009-11-27 14:09:4911499 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
xdegaye5ad7ef82017-11-23 10:13:2211500 if_nameindex \
Miss Islington (bot)35c94c72018-09-13 05:33:0211501 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \
Antoine Pitrouf0effe62011-11-26 00:11:0211502 memrchr mbrtowc mkdirat mkfifo \
Charles-François Natalidaafdd52011-05-29 18:07:4011503 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \
Pablo Galindo6c6ddf92018-01-29 01:56:1011504 posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \
Pablo Galindo4defba32018-01-27 16:16:3711505 pthread_init pthread_kill putenv pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \
Benjamin Petersona2344852017-09-04 17:21:4211506 sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
Antoine Pitrou061cfb52011-02-28 22:25:2211507 setgid sethostname \
Giampaolo Rodolà18e8bcb2011-02-25 20:57:5411508 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \
Charles-François Nataliea0d5fc2011-09-06 17:03:3511509 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
11510 sched_rr_get_interval \
Ross Lagerwallbc808222011-06-25 10:13:4011511 sigaction sigaltstack siginterrupt sigpending sigrelse \
11512 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
Michael W. Hudson34f20ea2002-05-27 15:08:2411513 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Ross Lagerwall7807c352011-03-17 18:20:3011514 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
Victor Stinnercd777ea2013-04-08 20:43:4411515 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty
Matthias Kloseb9621712010-04-24 17:59:4911516do :
11517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3011519if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0311520 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911521#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0311522_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3811523
Guido van Rossumd0b69ec2001-09-10 14:10:5411524fi
11525done
11526
Michael W. Hudson54241132001-12-07 15:38:2611527
Miss Islington (bot)98344a42018-09-12 23:36:0511528# Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11529# links. Some libc implementations have a stub lchmod implementation that always
11530# returns an error.
11531if test "$MACHDEP" != linux; then
Miss Islington (bot)35c94c72018-09-13 05:33:0211532 for ac_func in lchmod
11533do :
Miss Islington (bot)98344a42018-09-12 23:36:0511534 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
11535if test "x$ac_cv_func_lchmod" = xyes; then :
Miss Islington (bot)35c94c72018-09-13 05:33:0211536 cat >>confdefs.h <<_ACEOF
11537#define HAVE_LCHMOD 1
11538_ACEOF
Miss Islington (bot)98344a42018-09-12 23:36:0511539
11540fi
Miss Islington (bot)35c94c72018-09-13 05:33:0211541done
Miss Islington (bot)98344a42018-09-12 23:36:0511542
11543fi
11544
Gregory P. Smithdf300d52012-01-22 02:20:1511545ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11546 #include <dirent.h>
11547"
11548if test "x$ac_cv_have_decl_dirfd" = xyes; then :
11549
11550$as_echo "#define HAVE_DIRFD 1" >>confdefs.h
11551
11552fi
11553
11554
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511555# For some functions, having a definition is not sufficient, since
11556# we want to take their address.
Matthias Kloseb9621712010-04-24 17:59:4911557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11558$as_echo_n "checking for chroot... " >&6; }
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411560/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511561#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511562int
11563main ()
11564{
11565void *x=chroot
11566 ;
11567 return 0;
11568}
11569_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911570if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511571
Matthias Kloseb9621712010-04-24 17:59:4911572$as_echo "#define HAVE_CHROOT 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511573
Matthias Kloseb159a552010-04-25 21:00:4411574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911575$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511576else
Matthias Kloseb9621712010-04-24 17:59:4911577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511579
11580fi
Thomas Wouters47b49bf2007-08-30 22:15:3311581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11583$as_echo_n "checking for link... " >&6; }
11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411585/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511586#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511587int
11588main ()
11589{
11590void *x=link
11591 ;
11592 return 0;
11593}
11594_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911595if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511596
Matthias Kloseb9621712010-04-24 17:59:4911597$as_echo "#define HAVE_LINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511598
Matthias Kloseb159a552010-04-25 21:00:4411599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911600$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511601else
Matthias Kloseb9621712010-04-24 17:59:4911602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511604
11605fi
Thomas Wouters47b49bf2007-08-30 22:15:3311606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11608$as_echo_n "checking for symlink... " >&6; }
11609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411610/* end confdefs.h. */
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511611#include <unistd.h>
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511612int
11613main ()
11614{
11615void *x=symlink
11616 ;
11617 return 0;
11618}
11619_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911620if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511621
Matthias Kloseb9621712010-04-24 17:59:4911622$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511623
Matthias Kloseb159a552010-04-25 21:00:4411624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911625$as_echo "yes" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511626else
Matthias Kloseb9621712010-04-24 17:59:4911627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511629
11630fi
Thomas Wouters47b49bf2007-08-30 22:15:3311631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11633$as_echo_n "checking for fchdir... " >&6; }
11634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411635/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011636#include <unistd.h>
11637int
11638main ()
11639{
11640void *x=fchdir
11641 ;
11642 return 0;
11643}
11644_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911645if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011646
Matthias Kloseb9621712010-04-24 17:59:4911647$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011648
Matthias Kloseb159a552010-04-25 21:00:4411649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911650$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011651else
Matthias Kloseb9621712010-04-24 17:59:4911652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011654
11655fi
Thomas Wouters47b49bf2007-08-30 22:15:3311656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11658$as_echo_n "checking for fsync... " >&6; }
11659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411660/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011661#include <unistd.h>
11662int
11663main ()
11664{
11665void *x=fsync
11666 ;
11667 return 0;
11668}
11669_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911670if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011671
Matthias Kloseb9621712010-04-24 17:59:4911672$as_echo "#define HAVE_FSYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011673
Matthias Kloseb159a552010-04-25 21:00:4411674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911675$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011676else
Matthias Kloseb9621712010-04-24 17:59:4911677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011679
11680fi
Thomas Wouters47b49bf2007-08-30 22:15:3311681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11683$as_echo_n "checking for fdatasync... " >&6; }
11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411685/* end confdefs.h. */
Martin v. Löwisa64988c2003-09-20 15:30:2011686#include <unistd.h>
11687int
11688main ()
11689{
11690void *x=fdatasync
11691 ;
11692 return 0;
11693}
11694_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911695if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa64988c2003-09-20 15:30:2011696
Matthias Kloseb9621712010-04-24 17:59:4911697$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
Martin v. Löwisa64988c2003-09-20 15:30:2011698
Matthias Kloseb159a552010-04-25 21:00:4411699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911700$as_echo "yes" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011701else
Matthias Kloseb9621712010-04-24 17:59:4911702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
Martin v. Löwisa64988c2003-09-20 15:30:2011704
11705fi
Thomas Wouters47b49bf2007-08-30 22:15:3311706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11708$as_echo_n "checking for epoll... " >&6; }
11709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511710/* end confdefs.h. */
11711#include <sys/epoll.h>
11712int
11713main ()
11714{
11715void *x=epoll_create
11716 ;
11717 return 0;
11718}
11719_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911720if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisc8ad7cc2002-11-11 13:23:4511721
Matthias Kloseb9621712010-04-24 17:59:4911722$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511723
Matthias Kloseb159a552010-04-25 21:00:4411724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911725$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511726else
Matthias Kloseb9621712010-04-24 17:59:4911727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511729
11730fi
Christian Heimes4fbc72b2008-03-22 00:47:3511731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Benjamin Peterson95c16622011-12-27 21:36:3211732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11733$as_echo_n "checking for epoll_create1... " >&6; }
11734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h. */
11736#include <sys/epoll.h>
11737int
11738main ()
11739{
11740void *x=epoll_create1
11741 ;
11742 return 0;
11743}
11744_ACEOF
11745if ac_fn_c_try_compile "$LINENO"; then :
11746
11747$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750$as_echo "yes" >&6; }
11751else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
11754
11755fi
11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4911757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11758$as_echo_n "checking for kqueue... " >&6; }
11759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes4fbc72b2008-03-22 00:47:3511760/* end confdefs.h. */
11761
11762#include <sys/types.h>
11763#include <sys/event.h>
11764
11765int
11766main ()
11767{
11768int x=kqueue()
11769 ;
11770 return 0;
11771}
11772_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911773if ac_fn_c_try_compile "$LINENO"; then :
Christian Heimes4fbc72b2008-03-22 00:47:3511774
Matthias Kloseb9621712010-04-24 17:59:4911775$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
Christian Heimes4fbc72b2008-03-22 00:47:3511776
Matthias Kloseb159a552010-04-25 21:00:4411777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911778$as_echo "yes" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511779else
Matthias Kloseb9621712010-04-24 17:59:4911780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
Christian Heimes4fbc72b2008-03-22 00:47:3511782
11783fi
Christian Heimes4fbc72b2008-03-22 00:47:3511784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Christian Heimesb7bd5df2013-10-22 09:21:5411785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11786$as_echo_n "checking for prlimit... " >&6; }
11787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h. */
11789
11790#include <sys/time.h>
11791#include <sys/resource.h>
11792
11793int
11794main ()
11795{
11796void *x=prlimit
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801if ac_fn_c_try_compile "$LINENO"; then :
11802
11803$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806$as_echo "yes" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810
11811fi
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813
Martin v. Löwisd5843682002-11-21 20:41:2811814# On some systems (eg. FreeBSD 5), we would find a definition of the
11815# functions ctermid_r, setgroups in the library, but no prototype
11816# (e.g. because we use _XOPEN_SOURCE). See whether we can take their
11817# address to avoid compiler warnings and potential miscompilations
11818# because of the missing prototypes.
11819
Matthias Kloseb9621712010-04-24 17:59:4911820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11821$as_echo_n "checking for ctermid_r... " >&6; }
11822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411823/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2811824
Martin v. Löwisd5843682002-11-21 20:41:2811825#include <stdio.h>
11826
Martin v. Löwisd5843682002-11-21 20:41:2811827int
11828main ()
11829{
11830void* p = ctermid_r
11831 ;
11832 return 0;
11833}
11834_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911835if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2811836
Matthias Kloseb9621712010-04-24 17:59:4911837$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2811838
Matthias Kloseb159a552010-04-25 21:00:4411839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911840$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811841else
Matthias Kloseb9621712010-04-24 17:59:4911842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2811844
11845fi
Thomas Wouters47b49bf2007-08-30 22:15:3311846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847
Antoine Pitroua4e4ae22010-09-10 18:39:0011848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11849$as_echo_n "checking for flock declaration... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911850if ${ac_cv_flock_decl+:} false; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011851 $as_echo_n "(cached) " >&6
11852else
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411854/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911855#include <sys/file.h>
Martin v. Löwisf26d63b2003-03-30 17:23:4911856int
11857main ()
11858{
11859void* p = flock
Antoine Pitroua4e4ae22010-09-10 18:39:0011860
Martin v. Löwisf26d63b2003-03-30 17:23:4911861 ;
11862 return 0;
11863}
11864_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911865if ac_fn_c_try_compile "$LINENO"; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011866 ac_cv_flock_decl=yes
11867else
11868 ac_cv_flock_decl=no
Martin v. Löwisf26d63b2003-03-30 17:23:4911869
11870fi
Thomas Wouters47b49bf2007-08-30 22:15:3311871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Antoine Pitroua3000072010-09-07 14:52:4211872
Antoine Pitroua4e4ae22010-09-10 18:39:0011873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11875$as_echo "$ac_cv_flock_decl" >&6; }
11876if test "x${ac_cv_flock_decl}" = xyes; then
11877 for ac_func in flock
11878do :
11879 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
Victor Stinnere0be4232011-10-25 11:06:0911880if test "x$ac_cv_func_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011881 cat >>confdefs.h <<_ACEOF
11882#define HAVE_FLOCK 1
Antoine Pitroua3000072010-09-07 14:52:4211883_ACEOF
Antoine Pitroua4e4ae22010-09-10 18:39:0011884
Antoine Pitroua3000072010-09-07 14:52:4211885else
Antoine Pitroua4e4ae22010-09-10 18:39:0011886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
Antoine Pitroua3000072010-09-07 14:52:4211887$as_echo_n "checking for flock in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911888if ${ac_cv_lib_bsd_flock+:} false; then :
Antoine Pitroua3000072010-09-07 14:52:4211889 $as_echo_n "(cached) " >&6
11890else
11891 ac_check_lib_save_LIBS=$LIBS
11892LIBS="-lbsd $LIBS"
11893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894/* end confdefs.h. */
11895
11896/* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899#ifdef __cplusplus
11900extern "C"
11901#endif
11902char flock ();
11903int
11904main ()
11905{
11906return flock ();
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911if ac_fn_c_try_link "$LINENO"; then :
11912 ac_cv_lib_bsd_flock=yes
11913else
11914 ac_cv_lib_bsd_flock=no
11915fi
11916rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918LIBS=$ac_check_lib_save_LIBS
11919fi
11920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11921$as_echo "$ac_cv_lib_bsd_flock" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911922if test "x$ac_cv_lib_bsd_flock" = xyes; then :
Antoine Pitroua4e4ae22010-09-10 18:39:0011923 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
Antoine Pitroua3000072010-09-07 14:52:4211924
11925
11926$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
11927
11928
11929fi
11930
11931
11932fi
Antoine Pitroua4e4ae22010-09-10 18:39:0011933done
11934
Antoine Pitroua3000072010-09-07 14:52:4211935fi
Thomas Wouters47b49bf2007-08-30 22:15:3311936
Matthias Kloseb9621712010-04-24 17:59:4911937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11938$as_echo_n "checking for getpagesize... " >&6; }
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0411940/* end confdefs.h. */
Martin v. Löwisf26d63b2003-03-30 17:23:4911941
Martin v. Löwisf26d63b2003-03-30 17:23:4911942#include <unistd.h>
11943
Martin v. Löwisf26d63b2003-03-30 17:23:4911944int
11945main ()
11946{
11947void* p = getpagesize
11948 ;
11949 return 0;
11950}
11951_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4911952if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisf26d63b2003-03-30 17:23:4911953
Matthias Kloseb9621712010-04-24 17:59:4911954$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
Martin v. Löwisf26d63b2003-03-30 17:23:4911955
Matthias Kloseb159a552010-04-25 21:00:4411956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4911957$as_echo "yes" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911958else
Matthias Kloseb9621712010-04-24 17:59:4911959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
Martin v. Löwisf26d63b2003-03-30 17:23:4911961
11962fi
Thomas Wouters47b49bf2007-08-30 22:15:3311963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisf26d63b2003-03-30 17:23:4911964
Victor Stinner984890f2011-11-24 12:53:3811965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
11966$as_echo_n "checking for broken unsetenv... " >&6; }
11967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968/* end confdefs.h. */
11969
11970#include <stdlib.h>
11971
11972int
11973main ()
11974{
11975int res = unsetenv("DUMMY")
11976 ;
11977 return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_compile "$LINENO"; then :
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
11983else
11984
11985$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988$as_echo "yes" >&6; }
11989
11990fi
11991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992
Martin v. Löwis4ee6eef2003-05-26 05:37:5111993for ac_prog in true
11994do
11995 # Extract the first word of "$ac_prog", so it can be a program name with args.
11996set dummy $ac_prog; ac_word=$2
Matthias Kloseb9621712010-04-24 17:59:4911997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0911999if ${ac_cv_prog_TRUE+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912000 $as_echo_n "(cached) " >&6
Martin v. Löwis4ee6eef2003-05-26 05:37:5112001else
12002 if test -n "$TRUE"; then
12003 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
12004else
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4912010 for ac_exec_ext in '' $ac_executable_extensions; do
Ross Lagerwall1b863eb2012-10-29 17:31:5412011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Martin v. Löwis4ee6eef2003-05-26 05:37:5112012 ac_cv_prog_TRUE="$ac_prog"
Matthias Kloseb9621712010-04-24 17:59:4912013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Martin v. Löwis4ee6eef2003-05-26 05:37:5112014 break 2
12015 fi
12016done
Matthias Kloseb9621712010-04-24 17:59:4912017 done
Thomas Wouters47b49bf2007-08-30 22:15:3312018IFS=$as_save_IFS
Martin v. Löwis4ee6eef2003-05-26 05:37:5112019
12020fi
12021fi
12022TRUE=$ac_cv_prog_TRUE
12023if test -n "$TRUE"; then
Matthias Kloseb9621712010-04-24 17:59:4912024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
12025$as_echo "$TRUE" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5112026else
Matthias Kloseb9621712010-04-24 17:59:4912027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
Martin v. Löwis4ee6eef2003-05-26 05:37:5112029fi
12030
Thomas Wouters47b49bf2007-08-30 22:15:3312031
Martin v. Löwis4ee6eef2003-05-26 05:37:5112032 test -n "$TRUE" && break
12033done
12034test -n "$TRUE" || TRUE="/bin/true"
12035
12036
Matthias Kloseb9621712010-04-24 17:59:4912037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12038$as_echo_n "checking for inet_aton in -lc... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912039if ${ac_cv_lib_c_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912040 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4812041else
12042 ac_check_lib_save_LIBS=$LIBS
12043LIBS="-lc $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412045/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4812046
Thomas Wouters47b49bf2007-08-30 22:15:3312047/* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4812050#ifdef __cplusplus
12051extern "C"
12052#endif
Martin v. Löwis95c419b2003-05-03 12:10:4812053char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812054int
12055main ()
12056{
Thomas Wouters47b49bf2007-08-30 22:15:3312057return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812058 ;
12059 return 0;
12060}
12061_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912062if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812063 ac_cv_lib_c_inet_aton=yes
12064else
Matthias Kloseb9621712010-04-24 17:59:4912065 ac_cv_lib_c_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4812066fi
Matthias Kloseb9621712010-04-24 17:59:4912067rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4812069LIBS=$ac_check_lib_save_LIBS
12070fi
Matthias Kloseb9621712010-04-24 17:59:4912071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12072$as_echo "$ac_cv_lib_c_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912073if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
Martin v. Löwis4ee6eef2003-05-26 05:37:5112074 $ac_cv_prog_TRUE
Martin v. Löwis95c419b2003-05-03 12:10:4812075else
Matthias Kloseb9621712010-04-24 17:59:4912076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12077$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912078if ${ac_cv_lib_resolv_inet_aton+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912079 $as_echo_n "(cached) " >&6
Martin v. Löwis95c419b2003-05-03 12:10:4812080else
12081 ac_check_lib_save_LIBS=$LIBS
12082LIBS="-lresolv $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412084/* end confdefs.h. */
Martin v. Löwis95c419b2003-05-03 12:10:4812085
Thomas Wouters47b49bf2007-08-30 22:15:3312086/* Override any GCC internal prototype to avoid an error.
12087 Use char because int might match the return type of a GCC
12088 builtin and then its argument prototype would still apply. */
Martin v. Löwis95c419b2003-05-03 12:10:4812089#ifdef __cplusplus
12090extern "C"
12091#endif
Martin v. Löwis95c419b2003-05-03 12:10:4812092char inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812093int
12094main ()
12095{
Thomas Wouters47b49bf2007-08-30 22:15:3312096return inet_aton ();
Martin v. Löwis95c419b2003-05-03 12:10:4812097 ;
12098 return 0;
12099}
12100_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912101if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812102 ac_cv_lib_resolv_inet_aton=yes
12103else
Matthias Kloseb9621712010-04-24 17:59:4912104 ac_cv_lib_resolv_inet_aton=no
Martin v. Löwis95c419b2003-05-03 12:10:4812105fi
Matthias Kloseb9621712010-04-24 17:59:4912106rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis95c419b2003-05-03 12:10:4812108LIBS=$ac_check_lib_save_LIBS
12109fi
Matthias Kloseb9621712010-04-24 17:59:4912110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12111$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912112if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
Martin v. Löwis95c419b2003-05-03 12:10:4812113 cat >>confdefs.h <<_ACEOF
12114#define HAVE_LIBRESOLV 1
12115_ACEOF
12116
12117 LIBS="-lresolv $LIBS"
12118
12119fi
12120
12121
12122fi
12123
12124
Christian Heimesd0764e22007-12-04 15:00:3312125# On Tru64, chflags seems to be present, but calling it will
12126# exit Python
Matthias Kloseb9621712010-04-24 17:59:4912127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12128$as_echo_n "checking for chflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912129if ${ac_cv_have_chflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912130 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712131else
Matthias Kloseb9621712010-04-24 17:59:4912132 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312133 ac_cv_have_chflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312134else
Matthias Kloseb9621712010-04-24 17:59:4912135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312136/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812137
Christian Heimesd0764e22007-12-04 15:00:3312138#include <sys/stat.h>
12139#include <unistd.h>
12140int main(int argc, char*argv[])
12141{
12142 if(chflags(argv[0], 0) != 0)
12143 return 1;
12144 return 0;
12145}
Ned Deily3eb67d52011-06-28 07:00:2812146
Christian Heimesd0764e22007-12-04 15:00:3312147_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912148if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712149 ac_cv_have_chflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212150else
Matthias Kloseb9621712010-04-24 17:59:4912151 ac_cv_have_chflags=no
Alexandre Vassalotti19142282009-07-17 23:11:5212152fi
Matthias Kloseb9621712010-04-24 17:59:4912153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12154 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5312155fi
12156
Alexandre Vassalotti19142282009-07-17 23:11:5212157
Alexandre Vassalottib0a61d72009-07-17 23:19:3712158fi
Matthias Kloseb9621712010-04-24 17:59:4912159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12160$as_echo "$ac_cv_have_chflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312161if test "$ac_cv_have_chflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912162 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
Victor Stinnere0be4232011-10-25 11:06:0912163if test "x$ac_cv_func_chflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312164 ac_cv_have_chflags="yes"
12165else
12166 ac_cv_have_chflags="no"
12167fi
12168
12169fi
12170if test "$ac_cv_have_chflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712171
Matthias Kloseb9621712010-04-24 17:59:4912172$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712173
12174fi
12175
Matthias Kloseb9621712010-04-24 17:59:4912176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12177$as_echo_n "checking for lchflags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912178if ${ac_cv_have_lchflags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912179 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3712180else
Matthias Kloseb9621712010-04-24 17:59:4912181 if test "$cross_compiling" = yes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312182 ac_cv_have_lchflags=cross
Christian Heimesd0764e22007-12-04 15:00:3312183else
Matthias Kloseb9621712010-04-24 17:59:4912184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimesd0764e22007-12-04 15:00:3312185/* end confdefs.h. */
Ned Deily3eb67d52011-06-28 07:00:2812186
Christian Heimesd0764e22007-12-04 15:00:3312187#include <sys/stat.h>
12188#include <unistd.h>
12189int main(int argc, char*argv[])
12190{
12191 if(lchflags(argv[0], 0) != 0)
12192 return 1;
12193 return 0;
12194}
Ned Deily3eb67d52011-06-28 07:00:2812195
Christian Heimesd0764e22007-12-04 15:00:3312196_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912197if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3712198 ac_cv_have_lchflags=yes
Alexandre Vassalotti19142282009-07-17 23:11:5212199else
Matthias Kloseb9621712010-04-24 17:59:4912200 ac_cv_have_lchflags=no
Christian Heimesd0764e22007-12-04 15:00:3312201fi
Matthias Kloseb9621712010-04-24 17:59:4912202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12203 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti19142282009-07-17 23:11:5212204fi
12205
12206
Alexandre Vassalottib0a61d72009-07-17 23:19:3712207fi
Matthias Kloseb9621712010-04-24 17:59:4912208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12209$as_echo "$ac_cv_have_lchflags" >&6; }
Benjamin Petersoned68afa2010-01-30 19:36:4312210if test "$ac_cv_have_lchflags" = cross ; then
Matthias Kloseb9621712010-04-24 17:59:4912211 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
Victor Stinnere0be4232011-10-25 11:06:0912212if test "x$ac_cv_func_lchflags" = xyes; then :
Benjamin Petersoned68afa2010-01-30 19:36:4312213 ac_cv_have_lchflags="yes"
12214else
12215 ac_cv_have_lchflags="no"
12216fi
12217
12218fi
12219if test "$ac_cv_have_lchflags" = yes ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3712220
Matthias Kloseb9621712010-04-24 17:59:4912221$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3712222
12223fi
12224
Thomas Wouters0e3f5912006-08-11 14:57:1212225case $ac_sys_system/$ac_sys_release in
12226Darwin/*)
12227 _CUR_CFLAGS="${CFLAGS}"
12228 _CUR_LDFLAGS="${LDFLAGS}"
12229 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12230 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12231 ;;
12232esac
12233
Matthias Kloseb9621712010-04-24 17:59:4912234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12235$as_echo_n "checking for inflateCopy in -lz... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912236if ${ac_cv_lib_z_inflateCopy+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912237 $as_echo_n "(cached) " >&6
Thomas Wouters0e3f5912006-08-11 14:57:1212238else
12239 ac_check_lib_save_LIBS=$LIBS
12240LIBS="-lz $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212242/* end confdefs.h. */
12243
Thomas Wouters47b49bf2007-08-30 22:15:3312244/* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
Thomas Wouters0e3f5912006-08-11 14:57:1212247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char inflateCopy ();
12251int
12252main ()
12253{
Thomas Wouters47b49bf2007-08-30 22:15:3312254return inflateCopy ();
Thomas Wouters0e3f5912006-08-11 14:57:1212255 ;
12256 return 0;
12257}
12258_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912259if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212260 ac_cv_lib_z_inflateCopy=yes
12261else
Matthias Kloseb9621712010-04-24 17:59:4912262 ac_cv_lib_z_inflateCopy=no
Thomas Wouters0e3f5912006-08-11 14:57:1212263fi
Matthias Kloseb9621712010-04-24 17:59:4912264rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1212266LIBS=$ac_check_lib_save_LIBS
12267fi
Matthias Kloseb9621712010-04-24 17:59:4912268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12269$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912270if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
Thomas Wouters0e3f5912006-08-11 14:57:1212271
Matthias Kloseb9621712010-04-24 17:59:4912272$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1212273
12274fi
12275
12276
12277case $ac_sys_system/$ac_sys_release in
12278Darwin/*)
12279 CFLAGS="${_CUR_CFLAGS}"
12280 LDFLAGS="${_CUR_LDFLAGS}"
12281 ;;
12282esac
12283
Matthias Kloseb9621712010-04-24 17:59:4912284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12285$as_echo_n "checking for hstrerror... " >&6; }
12286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412287/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512288
Martin v. Löwise9416172003-05-03 10:12:4512289#include <netdb.h>
12290
Martin v. Löwise9416172003-05-03 10:12:4512291int
12292main ()
12293{
Martin v. Löwis95c419b2003-05-03 12:10:4812294void* p = hstrerror; hstrerror(0)
Martin v. Löwise9416172003-05-03 10:12:4512295 ;
12296 return 0;
12297}
12298_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912299if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512300
Matthias Kloseb9621712010-04-24 17:59:4912301$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512302
Matthias Kloseb159a552010-04-25 21:00:4412303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912304$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512305else
Matthias Kloseb9621712010-04-24 17:59:4912306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512308
12309fi
Matthias Kloseb9621712010-04-24 17:59:4912310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312312
Matthias Kloseb9621712010-04-24 17:59:4912313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12314$as_echo_n "checking for inet_aton... " >&6; }
12315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412316/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512317
Martin v. Löwis86d66262006-02-17 08:40:1112318#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512319#include <sys/socket.h>
12320#include <netinet/in.h>
12321#include <arpa/inet.h>
12322
Martin v. Löwise9416172003-05-03 10:12:4512323int
12324main ()
12325{
Martin v. Löwis95c419b2003-05-03 12:10:4812326void* p = inet_aton;inet_aton(0,0)
Martin v. Löwise9416172003-05-03 10:12:4512327 ;
12328 return 0;
12329}
12330_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912331if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512332
Matthias Kloseb9621712010-04-24 17:59:4912333$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512334
Matthias Kloseb159a552010-04-25 21:00:4412335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912336$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512337else
Matthias Kloseb9621712010-04-24 17:59:4912338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512340
12341fi
Matthias Kloseb9621712010-04-24 17:59:4912342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters47b49bf2007-08-30 22:15:3312344
Matthias Kloseb9621712010-04-24 17:59:4912345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12346$as_echo_n "checking for inet_pton... " >&6; }
12347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412348/* end confdefs.h. */
Martin v. Löwise9416172003-05-03 10:12:4512349
Martin v. Löwisf2e488d2003-05-05 22:00:1112350#include <sys/types.h>
Martin v. Löwise9416172003-05-03 10:12:4512351#include <sys/socket.h>
12352#include <netinet/in.h>
12353#include <arpa/inet.h>
12354
Martin v. Löwise9416172003-05-03 10:12:4512355int
12356main ()
12357{
12358void* p = inet_pton
12359 ;
12360 return 0;
12361}
12362_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912363if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwise9416172003-05-03 10:12:4512364
Matthias Kloseb9621712010-04-24 17:59:4912365$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
Martin v. Löwise9416172003-05-03 10:12:4512366
Matthias Kloseb159a552010-04-25 21:00:4412367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912368$as_echo "yes" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512369else
Matthias Kloseb9621712010-04-24 17:59:4912370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
Martin v. Löwise9416172003-05-03 10:12:4512372
12373fi
Thomas Wouters47b49bf2007-08-30 22:15:3312374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwise9416172003-05-03 10:12:4512375
Martin v. Löwisd6640d42003-07-06 09:29:5212376# On some systems, setgroups is in unistd.h, on others, in grp.h
Matthias Kloseb9621712010-04-24 17:59:4912377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12378$as_echo_n "checking for setgroups... " >&6; }
12379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412380/* end confdefs.h. */
Martin v. Löwisd5843682002-11-21 20:41:2812381
Martin v. Löwisf2e488d2003-05-05 22:00:1112382#include <unistd.h>
Martin v. Löwisd6640d42003-07-06 09:29:5212383#ifdef HAVE_GRP_H
12384#include <grp.h>
12385#endif
Martin v. Löwisd5843682002-11-21 20:41:2812386
Martin v. Löwisd5843682002-11-21 20:41:2812387int
12388main ()
12389{
12390void* p = setgroups
12391 ;
12392 return 0;
12393}
12394_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912395if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd5843682002-11-21 20:41:2812396
Matthias Kloseb9621712010-04-24 17:59:4912397$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
Martin v. Löwisd5843682002-11-21 20:41:2812398
Matthias Kloseb159a552010-04-25 21:00:4412399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4912400$as_echo "yes" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812401else
Matthias Kloseb9621712010-04-24 17:59:4912402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
Martin v. Löwisd5843682002-11-21 20:41:2812404
12405fi
Thomas Wouters47b49bf2007-08-30 22:15:3312406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd5843682002-11-21 20:41:2812407
Guido van Rossumd0b69ec2001-09-10 14:10:5412408# check for openpty and forkpty
12409
12410for ac_func in openpty
Matthias Kloseb9621712010-04-24 17:59:4912411do :
12412 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
Victor Stinnere0be4232011-10-25 11:06:0912413if test "x$ac_cv_func_openpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312414 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912415#define HAVE_OPENPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312416_ACEOF
Guido van Rossumd0b69ec2001-09-10 14:10:5412417
Guido van Rossumd0b69ec2001-09-10 14:10:5412418else
Matthias Kloseb9621712010-04-24 17:59:4912419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12420$as_echo_n "checking for openpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912421if ${ac_cv_lib_util_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912422 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812423else
Martin v. Löwis11437992002-04-12 09:54:0312424 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812425LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412427/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312428
Thomas Wouters47b49bf2007-08-30 22:15:3312429/* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312432#ifdef __cplusplus
12433extern "C"
12434#endif
Martin v. Löwis11437992002-04-12 09:54:0312435char openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312436int
12437main ()
12438{
Thomas Wouters47b49bf2007-08-30 22:15:3312439return openpty ();
Martin v. Löwis11437992002-04-12 09:54:0312440 ;
12441 return 0;
12442}
12443_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912444if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312445 ac_cv_lib_util_openpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812446else
Matthias Kloseb9621712010-04-24 17:59:4912447 ac_cv_lib_util_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812448fi
Matthias Kloseb9621712010-04-24 17:59:4912449rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312451LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812452fi
Matthias Kloseb9621712010-04-24 17:59:4912453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12454$as_echo "$ac_cv_lib_util_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912455if test "x$ac_cv_lib_util_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912456 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812457 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312458else
Matthias Kloseb9621712010-04-24 17:59:4912459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12460$as_echo_n "checking for openpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912461if ${ac_cv_lib_bsd_openpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912462 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312463else
12464 ac_check_lib_save_LIBS=$LIBS
12465LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312467/* end confdefs.h. */
12468
Thomas Wouters47b49bf2007-08-30 22:15:3312469/* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312472#ifdef __cplusplus
12473extern "C"
12474#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312475char openpty ();
12476int
12477main ()
12478{
Thomas Wouters47b49bf2007-08-30 22:15:3312479return openpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312480 ;
12481 return 0;
12482}
12483_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912484if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312485 ac_cv_lib_bsd_openpty=yes
12486else
Matthias Kloseb9621712010-04-24 17:59:4912487 ac_cv_lib_bsd_openpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812488fi
Matthias Kloseb9621712010-04-24 17:59:4912489rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312491LIBS=$ac_check_lib_save_LIBS
12492fi
Matthias Kloseb9621712010-04-24 17:59:4912493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12494$as_echo "$ac_cv_lib_bsd_openpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912495if test "x$ac_cv_lib_bsd_openpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912496 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312497 LIBS="$LIBS -lbsd"
12498fi
12499
12500
12501fi
12502
Fred Drake8cef4cf2000-06-28 16:40:3812503
12504fi
12505done
12506
12507for ac_func in forkpty
Matthias Kloseb9621712010-04-24 17:59:4912508do :
12509 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
Victor Stinnere0be4232011-10-25 11:06:0912510if test "x$ac_cv_func_forkpty" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312511 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912512#define HAVE_FORKPTY 1
Martin v. Löwis11437992002-04-12 09:54:0312513_ACEOF
Fred Drake8cef4cf2000-06-28 16:40:3812514
Fred Drake8cef4cf2000-06-28 16:40:3812515else
Matthias Kloseb9621712010-04-24 17:59:4912516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12517$as_echo_n "checking for forkpty in -lutil... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912518if ${ac_cv_lib_util_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912519 $as_echo_n "(cached) " >&6
Fred Drake8cef4cf2000-06-28 16:40:3812520else
Martin v. Löwis11437992002-04-12 09:54:0312521 ac_check_lib_save_LIBS=$LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812522LIBS="-lutil $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412524/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0312525
Thomas Wouters47b49bf2007-08-30 22:15:3312526/* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0312529#ifdef __cplusplus
12530extern "C"
12531#endif
Martin v. Löwis11437992002-04-12 09:54:0312532char forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312533int
12534main ()
12535{
Thomas Wouters47b49bf2007-08-30 22:15:3312536return forkpty ();
Martin v. Löwis11437992002-04-12 09:54:0312537 ;
12538 return 0;
12539}
12540_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912541if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312542 ac_cv_lib_util_forkpty=yes
Fred Drake8cef4cf2000-06-28 16:40:3812543else
Matthias Kloseb9621712010-04-24 17:59:4912544 ac_cv_lib_util_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812545fi
Matthias Kloseb9621712010-04-24 17:59:4912546rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0312548LIBS=$ac_check_lib_save_LIBS
Fred Drake8cef4cf2000-06-28 16:40:3812549fi
Matthias Kloseb9621712010-04-24 17:59:4912550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12551$as_echo "$ac_cv_lib_util_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912552if test "x$ac_cv_lib_util_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912553 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Fred Drake8cef4cf2000-06-28 16:40:3812554 LIBS="$LIBS -lutil"
Martin v. Löwisfd9a72a2006-01-08 10:07:3312555else
Matthias Kloseb9621712010-04-24 17:59:4912556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12557$as_echo_n "checking for forkpty in -lbsd... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912558if ${ac_cv_lib_bsd_forkpty+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4912559 $as_echo_n "(cached) " >&6
Martin v. Löwisfd9a72a2006-01-08 10:07:3312560else
12561 ac_check_lib_save_LIBS=$LIBS
12562LIBS="-lbsd $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4912563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312564/* end confdefs.h. */
12565
Thomas Wouters47b49bf2007-08-30 22:15:3312566/* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
Martin v. Löwisfd9a72a2006-01-08 10:07:3312569#ifdef __cplusplus
12570extern "C"
12571#endif
Martin v. Löwisfd9a72a2006-01-08 10:07:3312572char forkpty ();
12573int
12574main ()
12575{
Thomas Wouters47b49bf2007-08-30 22:15:3312576return forkpty ();
Martin v. Löwisfd9a72a2006-01-08 10:07:3312577 ;
12578 return 0;
12579}
12580_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912581if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisfd9a72a2006-01-08 10:07:3312582 ac_cv_lib_bsd_forkpty=yes
12583else
Matthias Kloseb9621712010-04-24 17:59:4912584 ac_cv_lib_bsd_forkpty=no
Fred Drake8cef4cf2000-06-28 16:40:3812585fi
Matthias Kloseb9621712010-04-24 17:59:4912586rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwisfd9a72a2006-01-08 10:07:3312588LIBS=$ac_check_lib_save_LIBS
12589fi
Matthias Kloseb9621712010-04-24 17:59:4912590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12591$as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0912592if test "x$ac_cv_lib_bsd_forkpty" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4912593 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
Martin v. Löwisfd9a72a2006-01-08 10:07:3312594 LIBS="$LIBS -lbsd"
12595fi
12596
12597
12598fi
12599
Fred Drake8cef4cf2000-06-28 16:40:3812600
12601fi
12602done
12603
Jack Jansendd19cf82001-12-06 22:36:1712604
Michael W. Hudson54241132001-12-07 15:38:2612605# check for long file support functions
Fred Drake8cef4cf2000-06-28 16:40:3812606for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
Matthias Kloseb9621712010-04-24 17:59:4912607do :
12608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12609ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3012610if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Martin v. Löwis11437992002-04-12 09:54:0312611 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912612#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Martin v. Löwis11437992002-04-12 09:54:0312613_ACEOF
Michael W. Hudson54241132001-12-07 15:38:2612614
Guido van Rossum76be6ed1995-01-02 18:33:5412615fi
Guido van Rossum627b2d71993-12-24 10:39:1612616done
12617
Michael W. Hudson54241132001-12-07 15:38:2612618
Ross Lagerwallb0ae53d2011-06-10 05:30:3012619ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
Victor Stinnere0be4232011-10-25 11:06:0912620if test "x$ac_cv_func_dup2" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012621 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
Martin v. Löwis1142de32002-03-29 16:28:3112622
Martin v. Löwis1142de32002-03-29 16:28:3112623else
Thomas Wouters47b49bf2007-08-30 22:15:3312624 case " $LIBOBJS " in
Ross Lagerwallb0ae53d2011-06-10 05:30:3012625 *" dup2.$ac_objext "* ) ;;
12626 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
Thomas Wouters47b49bf2007-08-30 22:15:3312627 ;;
Skip Montanarof0d5f792004-08-15 14:08:2312628esac
12629
Martin v. Löwis1142de32002-03-29 16:28:3112630fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3012631
Ross Lagerwallb0ae53d2011-06-10 05:30:3012632ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
Victor Stinnere0be4232011-10-25 11:06:0912633if test "x$ac_cv_func_strdup" = xyes; then :
Ross Lagerwallb0ae53d2011-06-10 05:30:3012634 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12635
12636else
12637 case " $LIBOBJS " in
12638 *" strdup.$ac_objext "* ) ;;
12639 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12640 ;;
12641esac
12642
12643fi
Martin v. Löwis1142de32002-03-29 16:28:3112644
12645
12646for ac_func in getpgrp
Matthias Kloseb9621712010-04-24 17:59:4912647do :
12648 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912649if test "x$ac_cv_func_getpgrp" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312650 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912651#define HAVE_GETPGRP 1
Martin v. Löwis11437992002-04-12 09:54:0312652_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412654/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5412655#include <unistd.h>
Martin v. Löwis11437992002-04-12 09:54:0312656int
12657main ()
12658{
Guido van Rossum76be6ed1995-01-02 18:33:5412659getpgrp(0);
Martin v. Löwis11437992002-04-12 09:54:0312660 ;
12661 return 0;
12662}
12663_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912664if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312665
Matthias Kloseb9621712010-04-24 17:59:4912666$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412667
Guido van Rossum627b2d71993-12-24 10:39:1612668fi
Thomas Wouters47b49bf2007-08-30 22:15:3312669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912670
Guido van Rossum627b2d71993-12-24 10:39:1612671fi
Thomas Wouters3a584202000-08-05 23:28:5112672done
Guido van Rossum627b2d71993-12-24 10:39:1612673
Jack Jansen150753c2003-03-29 22:07:4712674for ac_func in setpgrp
Matthias Kloseb9621712010-04-24 17:59:4912675do :
12676 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
Victor Stinnere0be4232011-10-25 11:06:0912677if test "x$ac_cv_func_setpgrp" = xyes; then :
Jack Jansen150753c2003-03-29 22:07:4712678 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912679#define HAVE_SETPGRP 1
Jack Jansen150753c2003-03-29 22:07:4712680_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412682/* end confdefs.h. */
Jack Jansen150753c2003-03-29 22:07:4712683#include <unistd.h>
Jack Jansen150753c2003-03-29 22:07:4712684int
12685main ()
12686{
12687setpgrp(0,0);
12688 ;
12689 return 0;
12690}
12691_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912692if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0312693
Matthias Kloseb9621712010-04-24 17:59:4912694$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
Skip Montanaro6dead952003-09-25 14:50:0412695
Guido van Rossum8eee56f1994-10-20 22:18:3712696fi
Thomas Wouters47b49bf2007-08-30 22:15:3312697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jack Jansen150753c2003-03-29 22:07:4712698
12699fi
12700done
Guido van Rossum8eee56f1994-10-20 22:18:3712701
Thomas Wouters3a584202000-08-05 23:28:5112702for ac_func in gettimeofday
Matthias Kloseb9621712010-04-24 17:59:4912703do :
12704 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
Victor Stinnere0be4232011-10-25 11:06:0912705if test "x$ac_cv_func_gettimeofday" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0312706 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912707#define HAVE_GETTIMEOFDAY 1
Martin v. Löwis11437992002-04-12 09:54:0312708_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0412710/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1612711#include <sys/time.h>
Martin v. Löwis11437992002-04-12 09:54:0312712int
12713main ()
12714{
Guido van Rossum76be6ed1995-01-02 18:33:5412715gettimeofday((struct timeval*)0,(struct timezone*)0);
Martin v. Löwis11437992002-04-12 09:54:0312716 ;
12717 return 0;
12718}
12719_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4912720if ac_fn_c_try_compile "$LINENO"; then :
12721
Guido van Rossum627b2d71993-12-24 10:39:1612722else
Skip Montanaro6dead952003-09-25 14:50:0412723
Matthias Kloseb9621712010-04-24 17:59:4912724$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1612725
Martin v. Löwis11437992002-04-12 09:54:0312726
Guido van Rossum627b2d71993-12-24 10:39:1612727fi
Thomas Wouters47b49bf2007-08-30 22:15:3312728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisc45929e2002-04-06 10:10:4912729
Guido van Rossum76be6ed1995-01-02 18:33:5412730fi
Thomas Wouters3a584202000-08-05 23:28:5112731done
Guido van Rossum76be6ed1995-01-02 18:33:5412732
Michael W. Hudson54241132001-12-07 15:38:2612733
Miss Islington (bot)a144fee2018-12-31 01:59:5212734# We search for both crypt and crypt_r as one or the other may be defined
12735# This gets us our -lcrypt in LIBS when required on the target platform.
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12737$as_echo_n "checking for library containing crypt... " >&6; }
12738if ${ac_cv_search_crypt+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740else
12741 ac_func_search_save_LIBS=$LIBS
12742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743/* end confdefs.h. */
12744
12745/* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12748#ifdef __cplusplus
12749extern "C"
12750#endif
12751char crypt ();
12752int
12753main ()
12754{
12755return crypt ();
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760for ac_lib in '' crypt; do
12761 if test -z "$ac_lib"; then
12762 ac_res="none required"
12763 else
12764 ac_res=-l$ac_lib
12765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12766 fi
12767 if ac_fn_c_try_link "$LINENO"; then :
12768 ac_cv_search_crypt=$ac_res
12769fi
12770rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext
12772 if ${ac_cv_search_crypt+:} false; then :
12773 break
12774fi
12775done
12776if ${ac_cv_search_crypt+:} false; then :
12777
12778else
12779 ac_cv_search_crypt=no
12780fi
12781rm conftest.$ac_ext
12782LIBS=$ac_func_search_save_LIBS
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12785$as_echo "$ac_cv_search_crypt" >&6; }
12786ac_res=$ac_cv_search_crypt
12787if test "$ac_res" != no; then :
12788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12789
12790fi
12791
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
12793$as_echo_n "checking for library containing crypt_r... " >&6; }
12794if ${ac_cv_search_crypt_r+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796else
12797 ac_func_search_save_LIBS=$LIBS
12798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h. */
12800
12801/* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804#ifdef __cplusplus
12805extern "C"
12806#endif
12807char crypt_r ();
12808int
12809main ()
12810{
12811return crypt_r ();
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816for ac_lib in '' crypt; do
12817 if test -z "$ac_lib"; then
12818 ac_res="none required"
12819 else
12820 ac_res=-l$ac_lib
12821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12822 fi
12823 if ac_fn_c_try_link "$LINENO"; then :
12824 ac_cv_search_crypt_r=$ac_res
12825fi
12826rm -f core conftest.err conftest.$ac_objext \
12827 conftest$ac_exeext
12828 if ${ac_cv_search_crypt_r+:} false; then :
12829 break
12830fi
12831done
12832if ${ac_cv_search_crypt_r+:} false; then :
12833
12834else
12835 ac_cv_search_crypt_r=no
12836fi
12837rm conftest.$ac_ext
12838LIBS=$ac_func_search_save_LIBS
12839fi
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
12841$as_echo "$ac_cv_search_crypt_r" >&6; }
12842ac_res=$ac_cv_search_crypt_r
12843if test "$ac_res" != no; then :
12844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12845
12846fi
12847
12848
12849ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
12850if test "x$ac_cv_func_crypt_r" = xyes; then :
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852/* end confdefs.h. */
12853
12854#define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */
12855#include <crypt.h>
12856
12857int
12858main ()
12859{
12860
12861struct crypt_data d;
12862char *r = crypt_r("", "", &d);
12863
12864 ;
12865 return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_compile "$LINENO"; then :
12869
12870$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
12871
12872fi
12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874
12875fi
12876
12877
Victor Stinnere0be4232011-10-25 11:06:0912878for ac_func in clock_gettime
12879do :
12880 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12881if test "x$ac_cv_func_clock_gettime" = xyes; then :
12882 cat >>confdefs.h <<_ACEOF
12883#define HAVE_CLOCK_GETTIME 1
12884_ACEOF
12885
12886else
12887
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12889$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12890if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892else
12893 ac_check_lib_save_LIBS=$LIBS
12894LIBS="-lrt $LIBS"
12895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896/* end confdefs.h. */
12897
12898/* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901#ifdef __cplusplus
12902extern "C"
12903#endif
12904char clock_gettime ();
12905int
12906main ()
12907{
12908return clock_gettime ();
12909 ;
12910 return 0;
12911}
12912_ACEOF
12913if ac_fn_c_try_link "$LINENO"; then :
12914 ac_cv_lib_rt_clock_gettime=yes
12915else
12916 ac_cv_lib_rt_clock_gettime=no
12917fi
12918rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920LIBS=$ac_check_lib_save_LIBS
12921fi
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12923$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12924if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12925
Victor Stinner7efb8332014-08-29 13:41:0812926 LIBS="$LIBS -lrt"
Victor Stinnere0be4232011-10-25 11:06:0912927 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12928
12929
12930$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h
12931
12932
12933fi
12934
12935
12936fi
12937done
12938
12939
12940for ac_func in clock_getres
12941do :
12942 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
12943if test "x$ac_cv_func_clock_getres" = xyes; then :
12944 cat >>confdefs.h <<_ACEOF
12945#define HAVE_CLOCK_GETRES 1
12946_ACEOF
12947
12948else
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
12951$as_echo_n "checking for clock_getres in -lrt... " >&6; }
12952if ${ac_cv_lib_rt_clock_getres+:} false; then :
12953 $as_echo_n "(cached) " >&6
12954else
12955 ac_check_lib_save_LIBS=$LIBS
12956LIBS="-lrt $LIBS"
12957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958/* end confdefs.h. */
12959
12960/* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963#ifdef __cplusplus
12964extern "C"
12965#endif
12966char clock_getres ();
12967int
12968main ()
12969{
12970return clock_getres ();
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975if ac_fn_c_try_link "$LINENO"; then :
12976 ac_cv_lib_rt_clock_getres=yes
12977else
12978 ac_cv_lib_rt_clock_getres=no
12979fi
12980rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982LIBS=$ac_check_lib_save_LIBS
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
12985$as_echo "$ac_cv_lib_rt_clock_getres" >&6; }
12986if test "x$ac_cv_lib_rt_clock_getres" = xyes; then :
12987
12988 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
12989
12990
12991fi
12992
12993
12994fi
12995done
12996
12997
Benjamin Peterson37098cd2016-09-14 05:55:0912998for ac_func in clock_settime
12999do :
13000 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
13001if test "x$ac_cv_func_clock_settime" = xyes; then :
13002 cat >>confdefs.h <<_ACEOF
13003#define HAVE_CLOCK_SETTIME 1
13004_ACEOF
13005
13006else
13007
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
13009$as_echo_n "checking for clock_settime in -lrt... " >&6; }
13010if ${ac_cv_lib_rt_clock_settime+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012else
13013 ac_check_lib_save_LIBS=$LIBS
13014LIBS="-lrt $LIBS"
13015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016/* end confdefs.h. */
13017
13018/* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021#ifdef __cplusplus
13022extern "C"
13023#endif
13024char clock_settime ();
13025int
13026main ()
13027{
13028return clock_settime ();
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033if ac_fn_c_try_link "$LINENO"; then :
13034 ac_cv_lib_rt_clock_settime=yes
13035else
13036 ac_cv_lib_rt_clock_settime=no
13037fi
13038rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040LIBS=$ac_check_lib_save_LIBS
13041fi
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
13043$as_echo "$ac_cv_lib_rt_clock_settime" >&6; }
13044if test "x$ac_cv_lib_rt_clock_settime" = xyes; then :
13045
13046 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
13047
13048
13049fi
13050
13051
13052fi
13053done
13054
13055
Matthias Kloseb9621712010-04-24 17:59:4913056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
13057$as_echo_n "checking for major... " >&6; }
13058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413059/* end confdefs.h. */
Martin v. Löwisdbe3f762002-10-10 14:27:3013060
Neal Norwitz6eb37f02003-02-23 23:28:1513061#if defined(MAJOR_IN_MKDEV)
13062#include <sys/mkdev.h>
13063#elif defined(MAJOR_IN_SYSMACROS)
13064#include <sys/sysmacros.h>
13065#else
13066#include <sys/types.h>
13067#endif
Martin v. Löwisdbe3f762002-10-10 14:27:3013068
Martin v. Löwisdbe3f762002-10-10 14:27:3013069int
13070main ()
13071{
13072
13073 makedev(major(0),minor(0));
13074
13075 ;
13076 return 0;
13077}
13078_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913079if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwisdbe3f762002-10-10 14:27:3013080
13081
Matthias Kloseb9621712010-04-24 17:59:4913082$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
Martin v. Löwisdbe3f762002-10-10 14:27:3013083
Matthias Kloseb9621712010-04-24 17:59:4913084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13085$as_echo "yes" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3013086
13087else
Skip Montanaro6dead952003-09-25 14:50:0413088
Matthias Kloseb9621712010-04-24 17:59:4913089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
Martin v. Löwisdbe3f762002-10-10 14:27:3013091
13092fi
Matthias Kloseb9621712010-04-24 17:59:4913093rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2613095
Martin v. Löwis861a65b2001-10-24 14:36:0013096# On OSF/1 V5.1, getaddrinfo is available, but a define
Martin v. Löwis11437992002-04-12 09:54:0313097# for [no]getaddrinfo in netdb.h.
Matthias Kloseb9621712010-04-24 17:59:4913098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13099$as_echo_n "checking for getaddrinfo... " >&6; }
13100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413101/* end confdefs.h. */
Martin v. Löwis861a65b2001-10-24 14:36:0013102
Martin v. Löwisc010b6d2001-11-09 17:50:5213103#include <sys/types.h>
Martin v. Löwis861a65b2001-10-24 14:36:0013104#include <sys/socket.h>
13105#include <netdb.h>
Martin v. Löwisc010b6d2001-11-09 17:50:5213106#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1313107
Martin v. Löwis11437992002-04-12 09:54:0313108int
13109main ()
13110{
Martin v. Löwis861a65b2001-10-24 14:36:0013111getaddrinfo(NULL, NULL, NULL, NULL);
Martin v. Löwis11437992002-04-12 09:54:0313112 ;
13113 return 0;
13114}
13115_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913116if ac_fn_c_try_link "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3713117 have_getaddrinfo=yes
13118else
Matthias Kloseb9621712010-04-24 17:59:4913119 have_getaddrinfo=no
Alexandre Vassalottib0a61d72009-07-17 23:19:3713120fi
Matthias Kloseb9621712010-04-24 17:59:4913121rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
13124$as_echo "$have_getaddrinfo" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3713125if test $have_getaddrinfo = yes
13126then
Matthias Kloseb9621712010-04-24 17:59:4913127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
13128$as_echo_n "checking getaddrinfo bug... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913129 if ${ac_cv_buggy_getaddrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913130 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3713131else
Matthias Kloseb9621712010-04-24 17:59:4913132 if test "$cross_compiling" = yes; then :
Matthias Klose96350132012-03-15 19:42:2313133
13134if test "${enable_ipv6+set}" = set; then
13135 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13136else
Alexandre Vassalottib0a61d72009-07-17 23:19:3713137 ac_cv_buggy_getaddrinfo=yes
Matthias Klose96350132012-03-15 19:42:2313138fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313139else
Matthias Kloseb9621712010-04-24 17:59:4913140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413141/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313142
Stefan Krah19c21392012-11-22 22:47:3213143#include <stdio.h>
Martin v. Löwis01dfdb32001-06-23 16:30:1313144#include <sys/types.h>
13145#include <netdb.h>
13146#include <string.h>
13147#include <sys/socket.h>
13148#include <netinet/in.h>
13149
Alexandre Vassalottib0a61d72009-07-17 23:19:3713150int main()
Martin v. Löwis01dfdb32001-06-23 16:30:1313151{
13152 int passive, gaierr, inet4 = 0, inet6 = 0;
13153 struct addrinfo hints, *ai, *aitop;
13154 char straddr[INET6_ADDRSTRLEN], strport[16];
13155
13156 for (passive = 0; passive <= 1; passive++) {
13157 memset(&hints, 0, sizeof(hints));
13158 hints.ai_family = AF_UNSPEC;
13159 hints.ai_flags = passive ? AI_PASSIVE : 0;
13160 hints.ai_socktype = SOCK_STREAM;
Hye-Shik Chang54f94392004-04-14 07:55:3113161 hints.ai_protocol = IPPROTO_TCP;
Martin v. Löwis01dfdb32001-06-23 16:30:1313162 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
13163 (void)gai_strerror(gaierr);
13164 goto bad;
13165 }
13166 for (ai = aitop; ai; ai = ai->ai_next) {
13167 if (ai->ai_addr == NULL ||
13168 ai->ai_addrlen == 0 ||
13169 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13170 straddr, sizeof(straddr), strport, sizeof(strport),
13171 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
13172 goto bad;
13173 }
13174 switch (ai->ai_family) {
13175 case AF_INET:
13176 if (strcmp(strport, "54321") != 0) {
13177 goto bad;
13178 }
13179 if (passive) {
13180 if (strcmp(straddr, "0.0.0.0") != 0) {
13181 goto bad;
13182 }
13183 } else {
13184 if (strcmp(straddr, "127.0.0.1") != 0) {
13185 goto bad;
13186 }
13187 }
13188 inet4++;
13189 break;
13190 case AF_INET6:
13191 if (strcmp(strport, "54321") != 0) {
13192 goto bad;
13193 }
13194 if (passive) {
13195 if (strcmp(straddr, "::") != 0) {
13196 goto bad;
13197 }
13198 } else {
13199 if (strcmp(straddr, "::1") != 0) {
13200 goto bad;
13201 }
13202 }
13203 inet6++;
13204 break;
13205 case AF_UNSPEC:
13206 goto bad;
13207 break;
13208 default:
13209 /* another family support? */
13210 break;
13211 }
13212 }
Benjamin Peterson01c340d2016-09-06 22:54:2413213 freeaddrinfo(aitop);
13214 aitop = NULL;
Martin v. Löwis01dfdb32001-06-23 16:30:1313215 }
13216
13217 if (!(inet4 == 0 || inet4 == 2))
13218 goto bad;
13219 if (!(inet6 == 0 || inet6 == 2))
13220 goto bad;
13221
13222 if (aitop)
13223 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713224 return 0;
Martin v. Löwis01dfdb32001-06-23 16:30:1313225
13226 bad:
13227 if (aitop)
13228 freeaddrinfo(aitop);
Alexandre Vassalottib0a61d72009-07-17 23:19:3713229 return 1;
Martin v. Löwis01dfdb32001-06-23 16:30:1313230}
13231
Martin v. Löwis11437992002-04-12 09:54:0313232_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913233if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3713234 ac_cv_buggy_getaddrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313235else
Matthias Kloseb9621712010-04-24 17:59:4913236 ac_cv_buggy_getaddrinfo=yes
Martin v. Löwis01dfdb32001-06-23 16:30:1313237fi
Matthias Kloseb9621712010-04-24 17:59:4913238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13239 conftest.$ac_objext conftest.beam conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1313240fi
Thomas Wouters47b49bf2007-08-30 22:15:3313241
Alexandre Vassalottib0a61d72009-07-17 23:19:3713242fi
Martin v. Löwis01dfdb32001-06-23 16:30:1313243
Martin v. Löwis861a65b2001-10-24 14:36:0013244fi
Thomas Wouters47b49bf2007-08-30 22:15:3313245
Benjamin Petersond4694ed2010-11-01 01:44:3013246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13247$as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
13248
doko@ubuntu.com9c7817e2012-06-30 15:05:1313249if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
Alexandre Vassalottib0a61d72009-07-17 23:19:3713250then
13251 if test $ipv6 = yes
13252 then
Martin v. Löwis01dfdb32001-06-23 16:30:1313253 echo 'Fatal: You must get working getaddrinfo() function.'
13254 echo ' or you can specify "--disable-ipv6"'.
13255 exit 1
13256 fi
Martin v. Löwis861a65b2001-10-24 14:36:0013257else
Martin v. Löwis11437992002-04-12 09:54:0313258
Matthias Kloseb9621712010-04-24 17:59:4913259$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
Martin v. Löwis861a65b2001-10-24 14:36:0013260
Martin v. Löwis01dfdb32001-06-23 16:30:1313261fi
Benjamin Petersond4694ed2010-11-01 01:44:3013262
Jack Jansen9a66b6d2001-08-08 13:56:1413263for ac_func in getnameinfo
Matthias Kloseb9621712010-04-24 17:59:4913264do :
13265 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
Victor Stinnere0be4232011-10-25 11:06:0913266if test "x$ac_cv_func_getnameinfo" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313267 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913268#define HAVE_GETNAMEINFO 1
Martin v. Löwis11437992002-04-12 09:54:0313269_ACEOF
Martin v. Löwis01dfdb32001-06-23 16:30:1313270
Martin v. Löwis01dfdb32001-06-23 16:30:1313271fi
13272done
13273
Michael W. Hudson54241132001-12-07 15:38:2613274
Guido van Rossum76be6ed1995-01-02 18:33:5413275# checks for structures
Matthias Kloseb9621712010-04-24 17:59:4913276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13277$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913278if ${ac_cv_header_time+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913279 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413280else
Matthias Kloseb9621712010-04-24 17:59:4913281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413282/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413283#include <sys/types.h>
13284#include <sys/time.h>
13285#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313286
Martin v. Löwis11437992002-04-12 09:54:0313287int
13288main ()
13289{
13290if ((struct tm *) 0)
13291return 0;
13292 ;
13293 return 0;
13294}
13295_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913296if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413297 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:1613298else
Matthias Kloseb9621712010-04-24 17:59:4913299 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:1613300fi
Thomas Wouters47b49bf2007-08-30 22:15:3313301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413302fi
Matthias Kloseb9621712010-04-24 17:59:4913303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13304$as_echo "$ac_cv_header_time" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613305if test $ac_cv_header_time = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313306
Matthias Kloseb9621712010-04-24 17:59:4913307$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413308
13309fi
13310
Matthias Kloseb9621712010-04-24 17:59:4913311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13312$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913313if ${ac_cv_struct_tm+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913314 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413315else
Matthias Kloseb9621712010-04-24 17:59:4913316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413317/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413318#include <sys/types.h>
13319#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313320
Martin v. Löwis11437992002-04-12 09:54:0313321int
13322main ()
13323{
Thomas Wouters47b49bf2007-08-30 22:15:3313324struct tm tm;
13325 int *p = &tm.tm_sec;
Matthias Kloseb9621712010-04-24 17:59:4913326 return !p;
Martin v. Löwis11437992002-04-12 09:54:0313327 ;
13328 return 0;
13329}
13330_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913331if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413332 ac_cv_struct_tm=time.h
13333else
Matthias Kloseb9621712010-04-24 17:59:4913334 ac_cv_struct_tm=sys/time.h
Guido van Rossum76be6ed1995-01-02 18:33:5413335fi
Thomas Wouters47b49bf2007-08-30 22:15:3313336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413337fi
Matthias Kloseb9621712010-04-24 17:59:4913338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13339$as_echo "$ac_cv_struct_tm" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613340if test $ac_cv_struct_tm = sys/time.h; then
Martin v. Löwis11437992002-04-12 09:54:0313341
Matthias Kloseb9621712010-04-24 17:59:4913342$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413343
13344fi
13345
Matthias Kloseb9621712010-04-24 17:59:4913346ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
Guido van Rossum76be6ed1995-01-02 18:33:5413347#include <$ac_cv_struct_tm>
Martin v. Löwis11437992002-04-12 09:54:0313348
Matthias Kloseb9621712010-04-24 17:59:4913349"
Victor Stinnere0be4232011-10-25 11:06:0913350if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313351
13352cat >>confdefs.h <<_ACEOF
13353#define HAVE_STRUCT_TM_TM_ZONE 1
13354_ACEOF
13355
13356
Guido van Rossum76be6ed1995-01-02 18:33:5413357fi
Guido van Rossum48bdbfc1996-05-28 22:53:4813358
Martin v. Löwis11437992002-04-12 09:54:0313359if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13360
Matthias Kloseb9621712010-04-24 17:59:4913361$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413362
13363else
Matthias Kloseb9621712010-04-24 17:59:4913364 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13365"
Victor Stinnere0be4232011-10-25 11:06:0913366if test "x$ac_cv_have_decl_tzname" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4913367 ac_have_decl=1
Thomas Wouters47b49bf2007-08-30 22:15:3313368else
Matthias Kloseb9621712010-04-24 17:59:4913369 ac_have_decl=0
Thomas Wouters47b49bf2007-08-30 22:15:3313370fi
13371
Thomas Wouters47b49bf2007-08-30 22:15:3313372cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913373#define HAVE_DECL_TZNAME $ac_have_decl
Thomas Wouters47b49bf2007-08-30 22:15:3313374_ACEOF
13375
Matthias Kloseb9621712010-04-24 17:59:4913376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13377$as_echo_n "checking for tzname... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913378if ${ac_cv_var_tzname+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913379 $as_echo_n "(cached) " >&6
Thomas Wouters47b49bf2007-08-30 22:15:3313380else
Matthias Kloseb9621712010-04-24 17:59:4913381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413382/* end confdefs.h. */
Guido van Rossum627b2d71993-12-24 10:39:1613383#include <time.h>
Thomas Wouters47b49bf2007-08-30 22:15:3313384#if !HAVE_DECL_TZNAME
13385extern char *tzname[];
Guido van Rossum627b2d71993-12-24 10:39:1613386#endif
Martin v. Löwis11437992002-04-12 09:54:0313387
Martin v. Löwis11437992002-04-12 09:54:0313388int
13389main ()
13390{
Thomas Wouters47b49bf2007-08-30 22:15:3313391return tzname[0][0];
Martin v. Löwis11437992002-04-12 09:54:0313392 ;
13393 return 0;
13394}
13395_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913396if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413397 ac_cv_var_tzname=yes
13398else
Matthias Kloseb9621712010-04-24 17:59:4913399 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:1613400fi
Matthias Kloseb9621712010-04-24 17:59:4913401rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
Guido van Rossum627b2d71993-12-24 10:39:1613403fi
Matthias Kloseb9621712010-04-24 17:59:4913404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13405$as_echo "$ac_cv_var_tzname" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2613406 if test $ac_cv_var_tzname = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313407
Matthias Kloseb9621712010-04-24 17:59:4913408$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:1613409
Guido van Rossum76be6ed1995-01-02 18:33:5413410 fi
13411fi
13412
Matthias Kloseb9621712010-04-24 17:59:4913413ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913414if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313415
13416cat >>confdefs.h <<_ACEOF
13417#define HAVE_STRUCT_STAT_ST_RDEV 1
13418_ACEOF
13419
13420
Guido van Rossum98bf58f2001-10-18 20:34:2513421fi
13422
Matthias Kloseb9621712010-04-24 17:59:4913423ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913424if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713425
Martin v. Löwis11437992002-04-12 09:54:0313426cat >>confdefs.h <<_ACEOF
13427#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13428_ACEOF
13429
13430
Guido van Rossum98bf58f2001-10-18 20:34:2513431fi
13432
Matthias Kloseb9621712010-04-24 17:59:4913433ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913434if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
Hye-Shik Chang5f937a72005-06-02 13:09:3013435
13436cat >>confdefs.h <<_ACEOF
13437#define HAVE_STRUCT_STAT_ST_FLAGS 1
13438_ACEOF
13439
13440
13441fi
13442
Matthias Kloseb9621712010-04-24 17:59:4913443ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913444if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913445
13446cat >>confdefs.h <<_ACEOF
13447#define HAVE_STRUCT_STAT_ST_GEN 1
13448_ACEOF
13449
13450
13451fi
13452
Matthias Kloseb9621712010-04-24 17:59:4913453ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913454if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5913455
13456cat >>confdefs.h <<_ACEOF
13457#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
13458_ACEOF
13459
13460
13461fi
13462
Matthias Kloseb9621712010-04-24 17:59:4913463ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0913464if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Jack Jansendd19cf82001-12-06 22:36:1713465
Martin v. Löwis11437992002-04-12 09:54:0313466cat >>confdefs.h <<_ACEOF
13467#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13468_ACEOF
13469
13470
Guido van Rossum98bf58f2001-10-18 20:34:2513471fi
13472
Stefan Krah267b6392016-04-25 23:09:1813473ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
13474 #include <sys/types.h>
13475 #include <pwd.h>
13476
13477"
13478if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
13479
13480cat >>confdefs.h <<_ACEOF
13481#define HAVE_STRUCT_PASSWD_PW_GECOS 1
13482_ACEOF
13483
13484
13485fi
13486ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
13487 #include <sys/types.h>
13488 #include <pwd.h>
13489
13490"
13491if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
13492
13493cat >>confdefs.h <<_ACEOF
13494#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
13495_ACEOF
13496
13497
13498fi
13499
Zachary Ware6a6967e2016-10-01 05:47:2713500# Issue #21085: In Cygwin, siginfo_t does not have si_band field.
13501ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
13502"
13503if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
13504
13505cat >>confdefs.h <<_ACEOF
13506#define HAVE_SIGINFO_T_SI_BAND 1
13507_ACEOF
13508
13509
13510fi
13511
Michael W. Hudson54241132001-12-07 15:38:2613512
Matthias Kloseb9621712010-04-24 17:59:4913513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13514$as_echo_n "checking for time.h that defines altzone... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913515if ${ac_cv_header_time_altzone+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913516 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5413517else
Matthias Kloseb159a552010-04-25 21:00:4413518
Matthias Kloseb9621712010-04-24 17:59:4913519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413520/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013521#include <time.h>
Martin v. Löwis11437992002-04-12 09:54:0313522int
13523main ()
13524{
Guido van Rossum76be6ed1995-01-02 18:33:5413525return altzone;
Martin v. Löwis11437992002-04-12 09:54:0313526 ;
13527 return 0;
13528}
13529_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913530if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413531 ac_cv_header_time_altzone=yes
13532else
Matthias Kloseb9621712010-04-24 17:59:4913533 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:3013534fi
Thomas Wouters47b49bf2007-08-30 22:15:3313535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb159a552010-04-25 21:00:4413536
Thomas Wouters47b49bf2007-08-30 22:15:3313537fi
13538
Matthias Kloseb9621712010-04-24 17:59:4913539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13540$as_echo "$ac_cv_header_time_altzone" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413541if test $ac_cv_header_time_altzone = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313542
Matthias Kloseb9621712010-04-24 17:59:4913543$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413544
13545fi
13546
Guido van Rossumda88dad1995-01-26 00:46:2913547was_it_defined=no
Matthias Kloseb9621712010-04-24 17:59:4913548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13549$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413551/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013552
13553#include <sys/types.h>
13554#include <sys/select.h>
13555#include <sys/time.h>
13556
Martin v. Löwis11437992002-04-12 09:54:0313557int
13558main ()
13559{
Guido van Rossum76be6ed1995-01-02 18:33:5413560;
Martin v. Löwis11437992002-04-12 09:54:0313561 ;
13562 return 0;
13563}
13564_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913565if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313566
13567
Matthias Kloseb9621712010-04-24 17:59:4913568$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313569
Martin v. Löwisc45929e2002-04-06 10:10:4913570 was_it_defined=yes
13571
Thomas Wouters47b49bf2007-08-30 22:15:3313572fi
Thomas Wouters47b49bf2007-08-30 22:15:3313573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13575$as_echo "$was_it_defined" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3313576
Matthias Kloseb9621712010-04-24 17:59:4913577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13578$as_echo_n "checking for addrinfo... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913579if ${ac_cv_struct_addrinfo+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913580 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313581else
Matthias Kloseb9621712010-04-24 17:59:4913582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413583/* end confdefs.h. */
Matthias Kloseb159a552010-04-25 21:00:4413584#include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313585int
13586main ()
13587{
Martin v. Löwis01dfdb32001-06-23 16:30:1313588struct addrinfo a
Martin v. Löwis11437992002-04-12 09:54:0313589 ;
13590 return 0;
13591}
13592_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913593if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313594 ac_cv_struct_addrinfo=yes
13595else
Matthias Kloseb9621712010-04-24 17:59:4913596 ac_cv_struct_addrinfo=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313597fi
Thomas Wouters47b49bf2007-08-30 22:15:3313598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599fi
13600
Matthias Kloseb9621712010-04-24 17:59:4913601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13602$as_echo "$ac_cv_struct_addrinfo" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313603if test $ac_cv_struct_addrinfo = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313604
Matthias Kloseb9621712010-04-24 17:59:4913605$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313606
13607fi
13608
Matthias Kloseb9621712010-04-24 17:59:4913609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13610$as_echo_n "checking for sockaddr_storage... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913611if ${ac_cv_struct_sockaddr_storage+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913612 $as_echo_n "(cached) " >&6
Martin v. Löwis01dfdb32001-06-23 16:30:1313613else
Matthias Kloseb9621712010-04-24 17:59:4913614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413615/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313616
13617# include <sys/types.h>
13618# include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0313619int
13620main ()
13621{
Martin v. Löwis01dfdb32001-06-23 16:30:1313622struct sockaddr_storage s
Martin v. Löwis11437992002-04-12 09:54:0313623 ;
13624 return 0;
13625}
13626_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913627if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis01dfdb32001-06-23 16:30:1313628 ac_cv_struct_sockaddr_storage=yes
13629else
Matthias Kloseb9621712010-04-24 17:59:4913630 ac_cv_struct_sockaddr_storage=no
Martin v. Löwis01dfdb32001-06-23 16:30:1313631fi
Thomas Wouters47b49bf2007-08-30 22:15:3313632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633fi
13634
Matthias Kloseb9621712010-04-24 17:59:4913635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13636$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
Martin v. Löwis01dfdb32001-06-23 16:30:1313637if test $ac_cv_struct_sockaddr_storage = yes; then
Martin v. Löwis11437992002-04-12 09:54:0313638
Matthias Kloseb9621712010-04-24 17:59:4913639$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313640
13641fi
13642
Christian Heimesdffa3942016-09-05 21:54:4113643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
13644$as_echo_n "checking for sockaddr_alg... " >&6; }
13645if ${ac_cv_struct_sockaddr_alg+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647else
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h. */
13650
13651# include <sys/types.h>
13652# include <sys/socket.h>
13653# include <linux/if_alg.h>
13654int
13655main ()
13656{
13657struct sockaddr_alg s
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662if ac_fn_c_try_compile "$LINENO"; then :
13663 ac_cv_struct_sockaddr_alg=yes
13664else
13665 ac_cv_struct_sockaddr_alg=no
13666fi
13667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668fi
13669
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
13671$as_echo "$ac_cv_struct_sockaddr_alg" >&6; }
13672if test $ac_cv_struct_sockaddr_alg = yes; then
13673
13674$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
13675
13676fi
13677
Guido van Rossum627b2d71993-12-24 10:39:1613678# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:3013679
Matthias Kloseb9621712010-04-24 17:59:4913680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13681$as_echo_n "checking whether char is unsigned... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913682if ${ac_cv_c_char_unsigned+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913683 $as_echo_n "(cached) " >&6
Jack Jansendd19cf82001-12-06 22:36:1713684else
Matthias Kloseb9621712010-04-24 17:59:4913685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413686/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0313687$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0313688int
13689main ()
13690{
13691static int test_array [1 - 2 * !(((char) -1) < 0)];
Ross Lagerwall1b863eb2012-10-29 17:31:5413692test_array [0] = 0;
13693return test_array [0];
Martin v. Löwis11437992002-04-12 09:54:0313694
13695 ;
13696 return 0;
Michael W. Hudson54241132001-12-07 15:38:2613697}
Martin v. Löwis11437992002-04-12 09:54:0313698_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913699if ac_fn_c_try_compile "$LINENO"; then :
Michael W. Hudson54241132001-12-07 15:38:2613700 ac_cv_c_char_unsigned=no
Martin v. Löwis11437992002-04-12 09:54:0313701else
Matthias Kloseb9621712010-04-24 17:59:4913702 ac_cv_c_char_unsigned=yes
Guido van Rossum76be6ed1995-01-02 18:33:5413703fi
Thomas Wouters47b49bf2007-08-30 22:15:3313704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Michael W. Hudson54241132001-12-07 15:38:2613705fi
Matthias Kloseb9621712010-04-24 17:59:4913706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13707$as_echo "$ac_cv_c_char_unsigned" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413708if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
Matthias Kloseb9621712010-04-24 17:59:4913709 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413710
13711fi
Guido van Rossum7f43da71994-08-01 12:15:3013712
Matthias Kloseb9621712010-04-24 17:59:4913713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13714$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0913715if ${ac_cv_c_const+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4913716 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0313717else
Matthias Kloseb9621712010-04-24 17:59:4913718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413719/* end confdefs.h. */
Guido van Rossum76be6ed1995-01-02 18:33:5413720
Martin v. Löwis11437992002-04-12 09:54:0313721int
13722main ()
13723{
Ross Lagerwall1b863eb2012-10-29 17:31:5413724
Martin v. Löwis11437992002-04-12 09:54:0313725#ifndef __cplusplus
Ross Lagerwall1b863eb2012-10-29 17:31:5413726 /* Ultrix mips cc rejects this sort of thing. */
Martin v. Löwis11437992002-04-12 09:54:0313727 typedef int charset[2];
Ross Lagerwall1b863eb2012-10-29 17:31:5413728 const charset cs = { 0, 0 };
Martin v. Löwis11437992002-04-12 09:54:0313729 /* SunOS 4.1.1 cc rejects this. */
Thomas Wouters47b49bf2007-08-30 22:15:3313730 char const *const *pcpcc;
13731 char **ppc;
Martin v. Löwis11437992002-04-12 09:54:0313732 /* NEC SVR4.0.2 mips cc rejects this. */
13733 struct point {int x, y;};
13734 static struct point const zero = {0,0};
13735 /* AIX XL C 1.02.0.0 rejects this.
13736 It does not let you subtract one const X* pointer from another in
13737 an arm of an if-expression whose if-part is not a constant
13738 expression */
13739 const char *g = "string";
Thomas Wouters47b49bf2007-08-30 22:15:3313740 pcpcc = &g + (g ? g-g : 0);
Martin v. Löwis11437992002-04-12 09:54:0313741 /* HPUX 7.0 cc rejects these. */
Thomas Wouters47b49bf2007-08-30 22:15:3313742 ++pcpcc;
13743 ppc = (char**) pcpcc;
13744 pcpcc = (char const *const *) ppc;
Ross Lagerwall1b863eb2012-10-29 17:31:5413745 { /* SCO 3.2v4 cc rejects this sort of thing. */
13746 char tx;
13747 char *t = &tx;
Martin v. Löwis11437992002-04-12 09:54:0313748 char const *s = 0 ? (char *) 0 : (char const *) 0;
Guido van Rossum76be6ed1995-01-02 18:33:5413749
Martin v. Löwis11437992002-04-12 09:54:0313750 *t++ = 0;
Thomas Wouters47b49bf2007-08-30 22:15:3313751 if (s) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313752 }
13753 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13754 int x[] = {25, 17};
13755 const int *foo = &x[0];
13756 ++foo;
13757 }
13758 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13759 typedef const int *iptr;
13760 iptr p = 0;
13761 ++p;
13762 }
Ross Lagerwall1b863eb2012-10-29 17:31:5413763 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Martin v. Löwis11437992002-04-12 09:54:0313764 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Ross Lagerwall1b863eb2012-10-29 17:31:5413765 struct s { int j; const int *ap[3]; } bx;
13766 struct s *b = &bx; b->j = 5;
Martin v. Löwis11437992002-04-12 09:54:0313767 }
13768 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13769 const int foo = 10;
Thomas Wouters47b49bf2007-08-30 22:15:3313770 if (!foo) return 0;
Martin v. Löwis11437992002-04-12 09:54:0313771 }
Thomas Wouters47b49bf2007-08-30 22:15:3313772 return !cs[0] && !zero.x;
Martin v. Löwis11437992002-04-12 09:54:0313773#endif
Guido van Rossum627b2d71993-12-24 10:39:1613774
Martin v. Löwis11437992002-04-12 09:54:0313775 ;
13776 return 0;
Guido van Rossum627b2d71993-12-24 10:39:1613777}
Martin v. Löwis11437992002-04-12 09:54:0313778_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913779if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossum76be6ed1995-01-02 18:33:5413780 ac_cv_c_const=yes
13781else
Matthias Kloseb9621712010-04-24 17:59:4913782 ac_cv_c_const=no
Guido van Rossum76be6ed1995-01-02 18:33:5413783fi
Thomas Wouters47b49bf2007-08-30 22:15:3313784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossum76be6ed1995-01-02 18:33:5413785fi
Matthias Kloseb9621712010-04-24 17:59:4913786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13787$as_echo "$ac_cv_c_const" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413788if test $ac_cv_c_const = no; then
Martin v. Löwis11437992002-04-12 09:54:0313789
Matthias Kloseb9621712010-04-24 17:59:4913790$as_echo "#define const /**/" >>confdefs.h
Guido van Rossum76be6ed1995-01-02 18:33:5413791
13792fi
13793
Michael W. Hudson54241132001-12-07 15:38:2613794
Guido van Rossumda88dad1995-01-26 00:46:2913795works=no
Matthias Kloseb9621712010-04-24 17:59:4913796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13797$as_echo_n "checking for working signed char... " >&6; }
13798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413799/* end confdefs.h. */
Guido van Rossumdabb11b1994-10-11 15:04:2713800
Martin v. Löwis11437992002-04-12 09:54:0313801int
13802main ()
13803{
Guido van Rossum76be6ed1995-01-02 18:33:5413804signed char c;
Martin v. Löwis11437992002-04-12 09:54:0313805 ;
13806 return 0;
13807}
13808_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913809if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumda88dad1995-01-26 00:46:2913810 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:2713811else
Skip Montanaro6dead952003-09-25 14:50:0413812
Matthias Kloseb9621712010-04-24 17:59:4913813$as_echo "#define signed /**/" >>confdefs.h
Guido van Rossum7f43da71994-08-01 12:15:3013814
Martin v. Löwisc45929e2002-04-06 10:10:4913815
Guido van Rossum7f43da71994-08-01 12:15:3013816fi
Thomas Wouters47b49bf2007-08-30 22:15:3313817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13819$as_echo "$works" >&6; }
Guido van Rossum7f43da71994-08-01 12:15:3013820
Guido van Rossumda88dad1995-01-26 00:46:2913821have_prototypes=no
Matthias Kloseb9621712010-04-24 17:59:4913822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13823$as_echo_n "checking for prototypes... " >&6; }
13824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413825/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013826int foo(int x) { return 0; }
Martin v. Löwis11437992002-04-12 09:54:0313827int
13828main ()
13829{
Guido van Rossum76be6ed1995-01-02 18:33:5413830return foo(10);
Martin v. Löwis11437992002-04-12 09:54:0313831 ;
13832 return 0;
13833}
13834_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913835if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313836
Matthias Kloseb9621712010-04-24 17:59:4913837$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313838
Matthias Kloseb159a552010-04-25 21:00:4413839 have_prototypes=yes
Guido van Rossum7f43da71994-08-01 12:15:3013840fi
Thomas Wouters47b49bf2007-08-30 22:15:3313841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13843$as_echo "$have_prototypes" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413844
Guido van Rossumda88dad1995-01-26 00:46:2913845works=no
Matthias Kloseb9621712010-04-24 17:59:4913846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13847$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413849/* end confdefs.h. */
Guido van Rossum7f43da71994-08-01 12:15:3013850
13851#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:5713852int foo(int x, ...) {
13853 va_list va;
13854 va_start(va, x);
13855 va_arg(va, int);
13856 va_arg(va, char *);
13857 va_arg(va, double);
13858 return 0;
13859}
Guido van Rossum7f43da71994-08-01 12:15:3013860
Martin v. Löwis11437992002-04-12 09:54:0313861int
13862main ()
13863{
Guido van Rossum90eea071996-08-30 20:58:5713864return foo(10, "", 3.14);
Martin v. Löwis11437992002-04-12 09:54:0313865 ;
13866 return 0;
13867}
13868_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913869if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313870
13871
Matthias Kloseb9621712010-04-24 17:59:4913872$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0313873
Martin v. Löwisc45929e2002-04-06 10:10:4913874 works=yes
13875
Guido van Rossum627b2d71993-12-24 10:39:1613876fi
Thomas Wouters47b49bf2007-08-30 22:15:3313877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4913878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13879$as_echo "$works" >&6; }
Guido van Rossum76be6ed1995-01-02 18:33:5413880
Martin v. Löwisd6320502004-08-12 13:45:0813881# check for socketpair
Matthias Kloseb9621712010-04-24 17:59:4913882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13883$as_echo_n "checking for socketpair... " >&6; }
13884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0813885/* end confdefs.h. */
13886
13887#include <sys/types.h>
13888#include <sys/socket.h>
13889
13890int
13891main ()
13892{
13893void *x=socketpair
13894 ;
13895 return 0;
13896}
13897_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913898if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisd6320502004-08-12 13:45:0813899
Matthias Kloseb9621712010-04-24 17:59:4913900$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
Martin v. Löwisd6320502004-08-12 13:45:0813901
Matthias Kloseb159a552010-04-25 21:00:4413902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4913903$as_echo "yes" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0813904else
Matthias Kloseb9621712010-04-24 17:59:4913905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
Martin v. Löwisd6320502004-08-12 13:45:0813907
13908fi
Thomas Wouters47b49bf2007-08-30 22:15:3313909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwisd6320502004-08-12 13:45:0813910
Martin v. Löwis01dfdb32001-06-23 16:30:1313911# check if sockaddr has sa_len member
Matthias Kloseb9621712010-04-24 17:59:4913912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
13913$as_echo_n "checking if sockaddr has sa_len member... " >&6; }
13914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413915/* end confdefs.h. */
Martin v. Löwis01dfdb32001-06-23 16:30:1313916#include <sys/types.h>
13917#include <sys/socket.h>
Martin v. Löwis11437992002-04-12 09:54:0313918int
13919main ()
13920{
Martin v. Löwis01dfdb32001-06-23 16:30:1313921struct sockaddr x;
13922x.sa_len = 0;
Martin v. Löwis11437992002-04-12 09:54:0313923 ;
13924 return 0;
13925}
13926_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913927if ac_fn_c_try_compile "$LINENO"; then :
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313930
Matthias Kloseb9621712010-04-24 17:59:4913931$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
Martin v. Löwis01dfdb32001-06-23 16:30:1313932
13933else
Matthias Kloseb9621712010-04-24 17:59:4913934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4413936
Martin v. Löwis01dfdb32001-06-23 16:30:1313937fi
Thomas Wouters47b49bf2007-08-30 22:15:3313938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis01dfdb32001-06-23 16:30:1313939
Guido van Rossuma96f0ba1999-03-22 21:49:5113940# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
Martin v. Löwis11437992002-04-12 09:54:0313941
13942
Matthias Kloseb9621712010-04-24 17:59:4913943ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
Victor Stinnere0be4232011-10-25 11:06:0913944if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0313945
Matthias Kloseb9621712010-04-24 17:59:4913946 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Martin v. Löwis4ddc78a2006-01-29 09:53:4413947
Matthias Kloseb9621712010-04-24 17:59:4913948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
13949$as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
Guido van Rossuma96f0ba1999-03-22 21:49:5113950 OLD_CFLAGS=$CFLAGS
13951 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4913952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413953/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5113954
13955# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313956
Martin v. Löwis11437992002-04-12 09:54:0313957int
13958main ()
13959{
Guido van Rossuma96f0ba1999-03-22 21:49:5113960
13961 char *name;
13962 struct hostent *he, *res;
13963 char buffer[2048];
13964 int buflen = 2048;
13965 int h_errnop;
13966
13967 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0313968
13969 ;
13970 return 0;
13971}
13972_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4913973if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0313974
Matthias Kloseb9621712010-04-24 17:59:4913975 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3313976
Martin v. Löwis11437992002-04-12 09:54:0313977
Matthias Kloseb9621712010-04-24 17:59:4913978$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5113979
Matthias Kloseb9621712010-04-24 17:59:4913980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13981$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0313982
Guido van Rossuma96f0ba1999-03-22 21:49:5113983else
Skip Montanaro6dead952003-09-25 14:50:0413984
Matthias Kloseb9621712010-04-24 17:59:4913985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986$as_echo "no" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
13988$as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0413990/* end confdefs.h. */
Guido van Rossuma96f0ba1999-03-22 21:49:5113991
Guido van Rossuma96f0ba1999-03-22 21:49:5113992# include <netdb.h>
Martin v. Löwis11437992002-04-12 09:54:0313993
Martin v. Löwis11437992002-04-12 09:54:0313994int
13995main ()
13996{
Guido van Rossuma96f0ba1999-03-22 21:49:5113997
13998 char *name;
13999 struct hostent *he;
Matthias Kloseb159a552010-04-25 21:00:4414000 char buffer[2048];
14001 int buflen = 2048;
14002 int h_errnop;
Guido van Rossuma96f0ba1999-03-22 21:49:5114003
Matthias Kloseb159a552010-04-25 21:00:4414004 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
Martin v. Löwis11437992002-04-12 09:54:0314005
14006 ;
14007 return 0;
14008}
14009_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914010if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314011
Matthias Kloseb9621712010-04-24 17:59:4914012 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
Guido van Rossum8db7d8b1999-03-23 16:40:3314013
Martin v. Löwis11437992002-04-12 09:54:0314014
Matthias Kloseb159a552010-04-25 21:00:4414015$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
Guido van Rossuma96f0ba1999-03-22 21:49:5114016
Matthias Kloseb9621712010-04-24 17:59:4914017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14018$as_echo "yes" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314019
Guido van Rossuma96f0ba1999-03-22 21:49:5114020else
Skip Montanaro6dead952003-09-25 14:50:0414021
Matthias Kloseb9621712010-04-24 17:59:4914022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023$as_echo "no" >&6; }
Matthias Kloseb159a552010-04-25 21:00:4414024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
14025$as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027/* end confdefs.h. */
14028
14029# include <netdb.h>
14030
14031int
14032main ()
14033{
14034
14035 char *name;
14036 struct hostent *he;
14037 struct hostent_data data;
14038
14039 (void) gethostbyname_r(name, he, &data);
14040
14041 ;
14042 return 0;
14043}
14044_ACEOF
14045if ac_fn_c_try_compile "$LINENO"; then :
14046
14047 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14048
14049
14050$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14053$as_echo "yes" >&6; }
14054
14055else
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058$as_echo "no" >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314059
Guido van Rossuma96f0ba1999-03-22 21:49:5114060fi
Thomas Wouters47b49bf2007-08-30 22:15:3314061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314062
Guido van Rossuma96f0ba1999-03-22 21:49:5114063fi
Thomas Wouters47b49bf2007-08-30 22:15:3314064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314065
Guido van Rossuma96f0ba1999-03-22 21:49:5114066fi
Thomas Wouters47b49bf2007-08-30 22:15:3314067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Guido van Rossuma96f0ba1999-03-22 21:49:5114068 CFLAGS=$OLD_CFLAGS
14069
14070else
Guido van Rossuma96f0ba1999-03-22 21:49:5114071
Matthias Kloseb9621712010-04-24 17:59:4914072 for ac_func in gethostbyname
14073do :
14074 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Victor Stinnere0be4232011-10-25 11:06:0914075if test "x$ac_cv_func_gethostbyname" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314076 cat >>confdefs.h <<_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914077#define HAVE_GETHOSTBYNAME 1
Martin v. Löwis11437992002-04-12 09:54:0314078_ACEOF
Guido van Rossuma96f0ba1999-03-22 21:49:5114079
Guido van Rossuma96f0ba1999-03-22 21:49:5114080fi
Thomas Wouters3a584202000-08-05 23:28:5114081done
Guido van Rossuma96f0ba1999-03-22 21:49:5114082
Michael W. Hudson54241132001-12-07 15:38:2614083
Guido van Rossuma96f0ba1999-03-22 21:49:5114084fi
14085
Michael W. Hudson54241132001-12-07 15:38:2614086
14087
14088
14089
14090
14091
Guido van Rossum627b2d71993-12-24 10:39:1614092# checks for system services
14093# (none yet)
14094
Guido van Rossum76be6ed1995-01-02 18:33:5414095# Linux requires this for correct f.p. operations
Matthias Kloseb9621712010-04-24 17:59:4914096ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
Victor Stinnere0be4232011-10-25 11:06:0914097if test "x$ac_cv_func___fpu_control" = xyes; then :
Matthias Kloseb9621712010-04-24 17:59:4914098
Jeremy Hyltonbe28f5b2000-07-27 21:03:0414099else
Matthias Kloseb9621712010-04-24 17:59:4914100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
14101$as_echo_n "checking for __fpu_control in -lieee... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914102if ${ac_cv_lib_ieee___fpu_control+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914103 $as_echo_n "(cached) " >&6
Guido van Rossum76be6ed1995-01-02 18:33:5414104else
Martin v. Löwis11437992002-04-12 09:54:0314105 ac_check_lib_save_LIBS=$LIBS
Guido van Rossum8ddd0ad1995-06-14 23:10:2814106LIBS="-lieee $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4914107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414108/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0314109
Thomas Wouters47b49bf2007-08-30 22:15:3314110/* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0314113#ifdef __cplusplus
14114extern "C"
14115#endif
Martin v. Löwis11437992002-04-12 09:54:0314116char __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314117int
14118main ()
14119{
Thomas Wouters47b49bf2007-08-30 22:15:3314120return __fpu_control ();
Martin v. Löwis11437992002-04-12 09:54:0314121 ;
14122 return 0;
14123}
14124_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914125if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0314126 ac_cv_lib_ieee___fpu_control=yes
Guido van Rossum627b2d71993-12-24 10:39:1614127else
Matthias Kloseb9621712010-04-24 17:59:4914128 ac_cv_lib_ieee___fpu_control=no
Guido van Rossum627b2d71993-12-24 10:39:1614129fi
Matthias Kloseb9621712010-04-24 17:59:4914130rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0314132LIBS=$ac_check_lib_save_LIBS
Guido van Rossum76be6ed1995-01-02 18:33:5414133fi
Matthias Kloseb9621712010-04-24 17:59:4914134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14135$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914136if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314137 cat >>confdefs.h <<_ACEOF
14138#define HAVE_LIBIEEE 1
14139_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5414140
Guido van Rossum8ddd0ad1995-06-14 23:10:2814141 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:5414142
Guido van Rossum627b2d71993-12-24 10:39:1614143fi
14144
Michael W. Hudson54241132001-12-07 15:38:2614145
Jeremy Hyltonbe28f5b2000-07-27 21:03:0414146fi
14147
Michael W. Hudson54241132001-12-07 15:38:2614148
Guido van Rossum7f43da71994-08-01 12:15:3014149# check for --with-libm=...
14150
Guido van Rossum563e7081996-09-10 18:20:4814151case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:0614152Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:4814153*) LIBM=-lm
14154esac
Matthias Kloseb9621712010-04-24 17:59:4914155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14156$as_echo_n "checking for --with-libm=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314157
Thomas Wouters47b49bf2007-08-30 22:15:3314158# Check whether --with-libm was given.
Matthias Kloseb9621712010-04-24 17:59:4914159if test "${with_libm+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314160 withval=$with_libm;
Guido van Rossum7f253911997-05-09 02:42:4814161if test "$withval" = no
14162then LIBM=
Matthias Kloseb9621712010-04-24 17:59:4914163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14164$as_echo "force LIBM empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814165elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014166then LIBM=$withval
Matthias Kloseb9621712010-04-24 17:59:4914167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14168$as_echo "set LIBM=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014169else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014170fi
Guido van Rossum7f253911997-05-09 02:42:4814171else
Matthias Kloseb9621712010-04-24 17:59:4914172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14173$as_echo "default LIBM=\"$LIBM\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314174fi
14175
Guido van Rossum7f43da71994-08-01 12:15:3014176
14177# check for --with-libc=...
14178
Matthias Kloseb9621712010-04-24 17:59:4914179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14180$as_echo_n "checking for --with-libc=STRING... " >&6; }
Martin v. Löwis11437992002-04-12 09:54:0314181
Thomas Wouters47b49bf2007-08-30 22:15:3314182# Check whether --with-libc was given.
Matthias Kloseb9621712010-04-24 17:59:4914183if test "${with_libc+set}" = set; then :
Thomas Wouters47b49bf2007-08-30 22:15:3314184 withval=$with_libc;
Guido van Rossum7f253911997-05-09 02:42:4814185if test "$withval" = no
14186then LIBC=
Matthias Kloseb9621712010-04-24 17:59:4914187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14188$as_echo "force LIBC empty" >&6; }
Guido van Rossum7f253911997-05-09 02:42:4814189elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:3014190then LIBC=$withval
Matthias Kloseb9621712010-04-24 17:59:4914191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14192$as_echo "set LIBC=\"$withval\"" >&6; }
Ross Lagerwallb0ae53d2011-06-10 05:30:3014193else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
Guido van Rossum7f43da71994-08-01 12:15:3014194fi
Guido van Rossum7f253911997-05-09 02:42:4814195else
Matthias Kloseb9621712010-04-24 17:59:4914196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14197$as_echo "default LIBC=\"$LIBC\"" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314198fi
14199
Guido van Rossum7f43da71994-08-01 12:15:3014200
Stefan Krah1919b7e2012-03-21 17:25:2314201# **************************************
14202# * Check for gcc x64 inline assembler *
14203# **************************************
14204
14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14206$as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h. */
14209
14210int
14211main ()
14212{
14213
14214 __asm__ __volatile__ ("movq %rcx, %rax");
14215
14216 ;
14217 return 0;
14218}
14219_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614220if ac_fn_c_try_link "$LINENO"; then :
Stefan Krah1919b7e2012-03-21 17:25:2314221 have_gcc_asm_for_x64=yes
14222else
14223 have_gcc_asm_for_x64=no
14224fi
Stefan Krahe31db2a2015-07-02 18:27:5614225rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
Stefan Krah1919b7e2012-03-21 17:25:2314227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14228$as_echo "$have_gcc_asm_for_x64" >&6; }
14229if test "$have_gcc_asm_for_x64" = yes
14230then
14231
14232$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
14233
14234fi
14235
Mark Dickinsonb08a53a2009-04-16 19:52:0914236# **************************************************
14237# * Check for various properties of floating point *
14238# **************************************************
Christian Heimes81ee3ef2008-05-04 22:42:0114239
Matthias Kloseb9621712010-04-24 17:59:4914240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
14241$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914242if ${ac_cv_little_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914243 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914244else
14245
Matthias Kloseb9621712010-04-24 17:59:4914246if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914247 ac_cv_little_endian_double=no
14248else
Matthias Kloseb9621712010-04-24 17:59:4914249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914250/* end confdefs.h. */
14251
14252#include <string.h>
14253int main() {
14254 double x = 9006104071832581.0;
14255 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
14256 return 0;
14257 else
14258 return 1;
14259}
14260
14261_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914262if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914263 ac_cv_little_endian_double=yes
14264else
Matthias Kloseb9621712010-04-24 17:59:4914265 ac_cv_little_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914266fi
Matthias Kloseb9621712010-04-24 17:59:4914267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14268 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914269fi
14270
Mark Dickinsonb08a53a2009-04-16 19:52:0914271fi
14272
Matthias Kloseb9621712010-04-24 17:59:4914273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
14274$as_echo "$ac_cv_little_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914275if test "$ac_cv_little_endian_double" = yes
14276then
14277
Matthias Kloseb9621712010-04-24 17:59:4914278$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914279
14280fi
14281
Matthias Kloseb9621712010-04-24 17:59:4914282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
14283$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914284if ${ac_cv_big_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914285 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914286else
14287
Matthias Kloseb9621712010-04-24 17:59:4914288if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914289 ac_cv_big_endian_double=no
14290else
Matthias Kloseb9621712010-04-24 17:59:4914291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914292/* end confdefs.h. */
14293
14294#include <string.h>
14295int main() {
14296 double x = 9006104071832581.0;
14297 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
14298 return 0;
14299 else
14300 return 1;
14301}
14302
14303_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914304if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914305 ac_cv_big_endian_double=yes
14306else
Matthias Kloseb9621712010-04-24 17:59:4914307 ac_cv_big_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914308fi
Matthias Kloseb9621712010-04-24 17:59:4914309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14310 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914311fi
14312
Mark Dickinsonb08a53a2009-04-16 19:52:0914313fi
14314
Matthias Kloseb9621712010-04-24 17:59:4914315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
14316$as_echo "$ac_cv_big_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914317if test "$ac_cv_big_endian_double" = yes
14318then
14319
Matthias Kloseb9621712010-04-24 17:59:4914320$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914321
14322fi
14323
14324# Some ARM platforms use a mixed-endian representation for doubles.
14325# While Python doesn't currently have full support for these platforms
14326# (see e.g., issue 1762561), we can at least make sure that float <-> string
14327# conversions work.
Matthias Kloseb9621712010-04-24 17:59:4914328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
14329$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914330if ${ac_cv_mixed_endian_double+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914331 $as_echo_n "(cached) " >&6
Mark Dickinsonb08a53a2009-04-16 19:52:0914332else
14333
Matthias Kloseb9621712010-04-24 17:59:4914334if test "$cross_compiling" = yes; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914335 ac_cv_mixed_endian_double=no
14336else
Matthias Kloseb9621712010-04-24 17:59:4914337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914338/* end confdefs.h. */
14339
14340#include <string.h>
14341int main() {
14342 double x = 9006104071832581.0;
14343 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
14344 return 0;
14345 else
14346 return 1;
14347}
14348
14349_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914350if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914351 ac_cv_mixed_endian_double=yes
14352else
Matthias Kloseb9621712010-04-24 17:59:4914353 ac_cv_mixed_endian_double=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914354fi
Matthias Kloseb9621712010-04-24 17:59:4914355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14356 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914357fi
14358
Mark Dickinsonb08a53a2009-04-16 19:52:0914359fi
14360
Matthias Kloseb9621712010-04-24 17:59:4914361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
14362$as_echo "$ac_cv_mixed_endian_double" >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914363if test "$ac_cv_mixed_endian_double" = yes
14364then
14365
Matthias Kloseb9621712010-04-24 17:59:4914366$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914367
14368fi
14369
Mark Dickinson7abf8d42009-04-18 20:17:5214370# The short float repr introduced in Python 3.1 requires the
Mark Dickinson10683072009-04-18 21:18:1914371# correctly-rounded string <-> double conversion functions from
Mark Dickinson7abf8d42009-04-18 20:17:5214372# Python/dtoa.c, which in turn require that the FPU uses 53-bit
Mark Dickinson10683072009-04-18 21:18:1914373# rounding; this is a problem on x86, where the x87 FPU has a default
Mark Dickinsonf4243f62009-11-15 13:47:2714374# rounding precision of 64 bits. For gcc/x86, we can fix this by
Mark Dickinson10683072009-04-18 21:18:1914375# using inline assembler to get and set the x87 FPU control word.
Mark Dickinsonf4243f62009-11-15 13:47:2714376
14377# This inline assembler syntax may also work for suncc and icc,
14378# so we try it on all platforms.
14379
Matthias Kloseb9621712010-04-24 17:59:4914380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
14381$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
14382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsonb08a53a2009-04-16 19:52:0914383/* end confdefs.h. */
14384
14385int
14386main ()
14387{
14388
Mark Dickinsonf4243f62009-11-15 13:47:2714389 unsigned short cw;
14390 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
14391 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
Mark Dickinsonb08a53a2009-04-16 19:52:0914392
14393 ;
14394 return 0;
14395}
14396_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614397if ac_fn_c_try_link "$LINENO"; then :
Mark Dickinsonb08a53a2009-04-16 19:52:0914398 have_gcc_asm_for_x87=yes
14399else
Matthias Kloseb9621712010-04-24 17:59:4914400 have_gcc_asm_for_x87=no
Mark Dickinsonb08a53a2009-04-16 19:52:0914401fi
Stefan Krahe31db2a2015-07-02 18:27:5614402rm -f core conftest.err conftest.$ac_objext \
14403 conftest$ac_exeext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14405$as_echo "$have_gcc_asm_for_x87" >&6; }
Mark Dickinsonf4243f62009-11-15 13:47:2714406if test "$have_gcc_asm_for_x87" = yes
14407then
Mark Dickinsonb08a53a2009-04-16 19:52:0914408
Matthias Kloseb9621712010-04-24 17:59:4914409$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
Mark Dickinsonb08a53a2009-04-16 19:52:0914410
Mark Dickinsonb08a53a2009-04-16 19:52:0914411fi
Martin v. Löwis11437992002-04-12 09:54:0314412
Benjamin Peterson8bdeb162014-04-17 04:00:3114413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
14414$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
14415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h. */
14417
14418int
14419main ()
14420{
14421
14422 unsigned int fpcr;
14423 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
14424 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
14425
14426 ;
14427 return 0;
14428}
14429_ACEOF
Stefan Krahe31db2a2015-07-02 18:27:5614430if ac_fn_c_try_link "$LINENO"; then :
Benjamin Peterson8bdeb162014-04-17 04:00:3114431 have_gcc_asm_for_mc68881=yes
14432else
14433 have_gcc_asm_for_mc68881=no
14434fi
Stefan Krahe31db2a2015-07-02 18:27:5614435rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
Benjamin Peterson8bdeb162014-04-17 04:00:3114437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14438$as_echo "$have_gcc_asm_for_mc68881" >&6; }
14439if test "$have_gcc_asm_for_mc68881" = yes
14440then
14441
14442$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
14443
14444fi
14445
Mark Dickinson3dc7c6a2009-01-04 15:09:0214446# Detect whether system arithmetic is subject to x87-style double
14447# rounding issues. The result of this test has little meaning on non
14448# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
14449# mode is round-to-nearest and double rounding issues are present, and
14450# 0 otherwise. See http://bugs.python.org/issue2937 for more info.
Matthias Kloseb9621712010-04-24 17:59:4914451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14452$as_echo_n "checking for x87-style double rounding... " >&6; }
Mark Dickinsonb08a53a2009-04-16 19:52:0914453# $BASECFLAGS may affect the result
14454ac_save_cc="$CC"
14455CC="$CC $BASECFLAGS"
Matthias Kloseb9621712010-04-24 17:59:4914456if test "$cross_compiling" = yes; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214457 ac_cv_x87_double_rounding=no
14458else
Matthias Kloseb9621712010-04-24 17:59:4914459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214460/* end confdefs.h. */
14461
14462#include <stdlib.h>
14463#include <math.h>
14464int main() {
14465 volatile double x, y, z;
14466 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14467 x = 0.99999999999999989; /* 1-2**-53 */
14468 y = 1./x;
14469 if (y != 1.)
14470 exit(0);
14471 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14472 x = 1e16;
14473 y = 2.99999;
14474 z = x + y;
14475 if (z != 1e16+4.)
14476 exit(0);
14477 /* both tests show evidence of double rounding */
14478 exit(1);
14479}
14480
14481_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914482if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinson3dc7c6a2009-01-04 15:09:0214483 ac_cv_x87_double_rounding=no
14484else
Matthias Kloseb9621712010-04-24 17:59:4914485 ac_cv_x87_double_rounding=yes
Mark Dickinson3dc7c6a2009-01-04 15:09:0214486fi
Matthias Kloseb9621712010-04-24 17:59:4914487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14488 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214489fi
14490
Mark Dickinsonb08a53a2009-04-16 19:52:0914491CC="$ac_save_cc"
Matthias Kloseb9621712010-04-24 17:59:4914492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14493$as_echo "$ac_cv_x87_double_rounding" >&6; }
Mark Dickinson3dc7c6a2009-01-04 15:09:0214494if test "$ac_cv_x87_double_rounding" = yes
14495then
14496
Matthias Kloseb9621712010-04-24 17:59:4914497$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
Mark Dickinson3dc7c6a2009-01-04 15:09:0214498
14499fi
14500
Mark Dickinsonb08a53a2009-04-16 19:52:0914501# ************************************
14502# * Check for mathematical functions *
14503# ************************************
14504
14505LIBS_SAVE=$LIBS
14506LIBS="$LIBS $LIBM"
14507
Mark Dickinsonec0d3552010-11-20 10:29:1214508for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14509do :
14510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014512if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214513 cat >>confdefs.h <<_ACEOF
14514#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14515_ACEOF
14516
14517fi
14518done
14519
Victor Stinner8f9f8d62011-05-09 10:45:4114520for ac_func in hypot lgamma log1p log2 round tgamma
Mark Dickinsonec0d3552010-11-20 10:29:1214521do :
14522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Ross Lagerwallb0ae53d2011-06-10 05:30:3014524if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214525 cat >>confdefs.h <<_ACEOF
14526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14527_ACEOF
14528
14529fi
14530done
14531
14532ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
14533"
Victor Stinnere0be4232011-10-25 11:06:0914534if test "x$ac_cv_have_decl_isinf" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214535 ac_have_decl=1
14536else
14537 ac_have_decl=0
14538fi
14539
14540cat >>confdefs.h <<_ACEOF
14541#define HAVE_DECL_ISINF $ac_have_decl
14542_ACEOF
14543ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
14544"
Victor Stinnere0be4232011-10-25 11:06:0914545if test "x$ac_cv_have_decl_isnan" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214546 ac_have_decl=1
14547else
14548 ac_have_decl=0
14549fi
14550
14551cat >>confdefs.h <<_ACEOF
14552#define HAVE_DECL_ISNAN $ac_have_decl
14553_ACEOF
14554ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
14555"
Victor Stinnere0be4232011-10-25 11:06:0914556if test "x$ac_cv_have_decl_isfinite" = xyes; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214557 ac_have_decl=1
14558else
14559 ac_have_decl=0
14560fi
14561
14562cat >>confdefs.h <<_ACEOF
14563#define HAVE_DECL_ISFINITE $ac_have_decl
14564_ACEOF
14565
14566
Christian Heimes81ee3ef2008-05-04 22:42:0114567# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
14568# -0. on some architectures.
Matthias Kloseb9621712010-04-24 17:59:4914569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
14570$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914571if ${ac_cv_tanh_preserves_zero_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914572 $as_echo_n "(cached) " >&6
Christian Heimes81ee3ef2008-05-04 22:42:0114573else
14574
Matthias Kloseb9621712010-04-24 17:59:4914575if test "$cross_compiling" = yes; then :
Christian Heimes81ee3ef2008-05-04 22:42:0114576 ac_cv_tanh_preserves_zero_sign=no
14577else
Matthias Kloseb9621712010-04-24 17:59:4914578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:0114579/* end confdefs.h. */
14580
14581#include <math.h>
14582#include <stdlib.h>
14583int main() {
14584 /* return 0 if either negative zeros don't exist
14585 on this platform or if negative zeros exist
14586 and tanh(-0.) == -0. */
14587 if (atan2(0., -1.) == atan2(-0., -1.) ||
14588 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
14589 else exit(1);
14590}
14591
14592_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914593if ac_fn_c_try_run "$LINENO"; then :
Christian Heimes81ee3ef2008-05-04 22:42:0114594 ac_cv_tanh_preserves_zero_sign=yes
14595else
Matthias Kloseb9621712010-04-24 17:59:4914596 ac_cv_tanh_preserves_zero_sign=no
Christian Heimes81ee3ef2008-05-04 22:42:0114597fi
Matthias Kloseb9621712010-04-24 17:59:4914598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14599 conftest.$ac_objext conftest.beam conftest.$ac_ext
Christian Heimes81ee3ef2008-05-04 22:42:0114600fi
14601
Christian Heimes81ee3ef2008-05-04 22:42:0114602fi
14603
Matthias Kloseb9621712010-04-24 17:59:4914604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
14605$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
Christian Heimes81ee3ef2008-05-04 22:42:0114606if test "$ac_cv_tanh_preserves_zero_sign" = yes
14607then
14608
Matthias Kloseb9621712010-04-24 17:59:4914609$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
Christian Heimes81ee3ef2008-05-04 22:42:0114610
14611fi
14612
Mark Dickinsonec0d3552010-11-20 10:29:1214613if test "$ac_cv_func_log1p" = yes
14614then
14615 # On some versions of AIX, log1p(-0.) returns 0. instead of
14616 # -0. See issue #9920.
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5
14618$as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914619 if ${ac_cv_log1p_drops_zero_sign+:} false; then :
Mark Dickinsonec0d3552010-11-20 10:29:1214620 $as_echo_n "(cached) " >&6
Mark Dickinson3dc7c6a2009-01-04 15:09:0214621else
Mark Dickinson3dc7c6a2009-01-04 15:09:0214622
Mark Dickinsonec0d3552010-11-20 10:29:1214623 if test "$cross_compiling" = yes; then :
14624 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:0214625else
Mark Dickinsonec0d3552010-11-20 10:29:1214626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h. */
Mark Dickinson3dc7c6a2009-01-04 15:09:0214628
Mark Dickinsonec0d3552010-11-20 10:29:1214629 #include <math.h>
14630 #include <stdlib.h>
14631 int main() {
14632 /* Fail if the signs of log1p(-0.) and -0. can be
14633 distinguished. */
14634 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.))
14635 return 0;
14636 else
14637 return 1;
14638 }
14639
Mark Dickinson3dc7c6a2009-01-04 15:09:0214640_ACEOF
Mark Dickinsonec0d3552010-11-20 10:29:1214641if ac_fn_c_try_run "$LINENO"; then :
14642 ac_cv_log1p_drops_zero_sign=no
Mark Dickinson3dc7c6a2009-01-04 15:09:0214643else
Mark Dickinsonec0d3552010-11-20 10:29:1214644 ac_cv_log1p_drops_zero_sign=yes
14645fi
14646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14647 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinson3dc7c6a2009-01-04 15:09:0214648fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214649
Mark Dickinsonec0d3552010-11-20 10:29:1214650fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214651
Mark Dickinsonec0d3552010-11-20 10:29:1214652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5
14653$as_echo "$ac_cv_log1p_drops_zero_sign" >&6; }
14654fi
14655if test "$ac_cv_log1p_drops_zero_sign" = yes
14656then
14657
14658$as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h
14659
14660fi
Mark Dickinson3dc7c6a2009-01-04 15:09:0214661
Guido van Rossumaf5b83e1995-01-04 19:02:3514662LIBS=$LIBS_SAVE
14663
Mark Dickinsona614f042009-11-28 12:48:4314664# For multiprocessing module, check that sem_open
14665# actually works. For FreeBSD versions <= 7.2,
14666# the kernel module that provides POSIX semaphores
14667# isn't loaded by default, so an attempt to call
14668# sem_open results in a 'Signal 12' error.
Matthias Kloseb9621712010-04-24 17:59:4914669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14670$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914671if ${ac_cv_posix_semaphores_enabled+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914672 $as_echo_n "(cached) " >&6
Mark Dickinsona614f042009-11-28 12:48:4314673else
Matthias Kloseb9621712010-04-24 17:59:4914674 if test "$cross_compiling" = yes; then :
Mark Dickinsona614f042009-11-28 12:48:4314675 ac_cv_posix_semaphores_enabled=yes
14676else
Matthias Kloseb9621712010-04-24 17:59:4914677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314678/* end confdefs.h. */
14679
14680#include <unistd.h>
14681#include <fcntl.h>
14682#include <stdio.h>
14683#include <semaphore.h>
14684#include <sys/stat.h>
14685
14686int main(void) {
14687 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
14688 if (a == SEM_FAILED) {
14689 perror("sem_open");
14690 return 1;
14691 }
14692 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714693 sem_unlink("/autoconf");
Mark Dickinsona614f042009-11-28 12:48:4314694 return 0;
14695}
14696
14697_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914698if ac_fn_c_try_run "$LINENO"; then :
Mark Dickinsona614f042009-11-28 12:48:4314699 ac_cv_posix_semaphores_enabled=yes
14700else
Matthias Kloseb9621712010-04-24 17:59:4914701 ac_cv_posix_semaphores_enabled=no
Mark Dickinsona614f042009-11-28 12:48:4314702fi
Matthias Kloseb9621712010-04-24 17:59:4914703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14704 conftest.$ac_objext conftest.beam conftest.$ac_ext
Mark Dickinsona614f042009-11-28 12:48:4314705fi
14706
14707
Mark Dickinsona614f042009-11-28 12:48:4314708fi
14709
Matthias Kloseb9621712010-04-24 17:59:4914710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14711$as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
Mark Dickinsona614f042009-11-28 12:48:4314712if test $ac_cv_posix_semaphores_enabled = no
14713then
14714
Matthias Kloseb9621712010-04-24 17:59:4914715$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
Mark Dickinsona614f042009-11-28 12:48:4314716
14717fi
14718
Mark Dickinson10683072009-04-18 21:18:1914719# Multiprocessing check for broken sem_getvalue
Matthias Kloseb9621712010-04-24 17:59:4914720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14721$as_echo_n "checking for broken sem_getvalue... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914722if ${ac_cv_broken_sem_getvalue+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914723 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3714724else
Matthias Kloseb9621712010-04-24 17:59:4914725 if test "$cross_compiling" = yes; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714726 ac_cv_broken_sem_getvalue=yes
Mark Dickinson10683072009-04-18 21:18:1914727else
Matthias Kloseb9621712010-04-24 17:59:4914728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mark Dickinson10683072009-04-18 21:18:1914729/* end confdefs.h. */
14730
14731#include <unistd.h>
14732#include <fcntl.h>
14733#include <stdio.h>
14734#include <semaphore.h>
14735#include <sys/stat.h>
14736
14737int main(void){
Mark Dickinsonba79b352009-12-13 21:10:5714738 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
Mark Dickinson10683072009-04-18 21:18:1914739 int count;
14740 int res;
14741 if(a==SEM_FAILED){
14742 perror("sem_open");
14743 return 1;
14744
14745 }
14746 res = sem_getvalue(a, &count);
14747 sem_close(a);
Mark Dickinsonba79b352009-12-13 21:10:5714748 sem_unlink("/autocftw");
Mark Dickinson10683072009-04-18 21:18:1914749 return res==-1 ? 1 : 0;
14750}
14751
Mark Dickinson10683072009-04-18 21:18:1914752_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914753if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3714754 ac_cv_broken_sem_getvalue=no
Mark Dickinson10683072009-04-18 21:18:1914755else
Matthias Kloseb9621712010-04-24 17:59:4914756 ac_cv_broken_sem_getvalue=yes
Alexandre Vassalotti19142282009-07-17 23:11:5214757fi
Matthias Kloseb9621712010-04-24 17:59:4914758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14759 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5314760fi
14761
Alexandre Vassalotti19142282009-07-17 23:11:5214762
Alexandre Vassalottib0a61d72009-07-17 23:19:3714763fi
14764
Matthias Kloseb9621712010-04-24 17:59:4914765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14766$as_echo "$ac_cv_broken_sem_getvalue" >&6; }
Alexandre Vassalottib0a61d72009-07-17 23:19:3714767if test $ac_cv_broken_sem_getvalue = yes
14768then
14769
Matthias Kloseb9621712010-04-24 17:59:4914770$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3714771
14772fi
14773
Serhiy Storchakac2f7d872016-05-04 06:44:4414774ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
14775"
14776if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then :
14777 ac_have_decl=1
14778else
14779 ac_have_decl=0
14780fi
14781
14782cat >>confdefs.h <<_ACEOF
14783#define HAVE_DECL_RTLD_LAZY $ac_have_decl
14784_ACEOF
14785ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
14786"
14787if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
14788 ac_have_decl=1
14789else
14790 ac_have_decl=0
14791fi
14792
14793cat >>confdefs.h <<_ACEOF
14794#define HAVE_DECL_RTLD_NOW $ac_have_decl
14795_ACEOF
14796ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
14797"
14798if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
14799 ac_have_decl=1
14800else
14801 ac_have_decl=0
14802fi
14803
14804cat >>confdefs.h <<_ACEOF
14805#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
14806_ACEOF
14807ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
14808"
14809if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then :
14810 ac_have_decl=1
14811else
14812 ac_have_decl=0
14813fi
14814
14815cat >>confdefs.h <<_ACEOF
14816#define HAVE_DECL_RTLD_LOCAL $ac_have_decl
14817_ACEOF
14818ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
14819"
14820if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then :
14821 ac_have_decl=1
14822else
14823 ac_have_decl=0
14824fi
14825
14826cat >>confdefs.h <<_ACEOF
14827#define HAVE_DECL_RTLD_NODELETE $ac_have_decl
14828_ACEOF
14829ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
14830"
14831if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then :
14832 ac_have_decl=1
14833else
14834 ac_have_decl=0
14835fi
14836
14837cat >>confdefs.h <<_ACEOF
14838#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl
14839_ACEOF
14840ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
14841"
14842if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then :
14843 ac_have_decl=1
14844else
14845 ac_have_decl=0
14846fi
14847
14848cat >>confdefs.h <<_ACEOF
14849#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl
14850_ACEOF
Michael Feltc5ae1692017-12-19 12:58:4914851ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
14852"
14853if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then :
14854 ac_have_decl=1
14855else
14856 ac_have_decl=0
14857fi
14858
14859cat >>confdefs.h <<_ACEOF
14860#define HAVE_DECL_RTLD_MEMBER $ac_have_decl
14861_ACEOF
Serhiy Storchakac2f7d872016-05-04 06:44:4414862
14863
Mark Dickinsonbd792642009-03-18 20:06:1214864# determine what size digit to use for Python's longs
Matthias Kloseb9621712010-04-24 17:59:4914865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14866$as_echo_n "checking digit size for Python's longs... " >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214867# Check whether --enable-big-digits was given.
Matthias Kloseb9621712010-04-24 17:59:4914868if test "${enable_big_digits+set}" = set; then :
Mark Dickinsonbd792642009-03-18 20:06:1214869 enableval=$enable_big_digits; case $enable_big_digits in
14870yes)
14871 enable_big_digits=30 ;;
14872no)
14873 enable_big_digits=15 ;;
1487415|30)
14875 ;;
14876*)
Victor Stinnere0be4232011-10-25 11:06:0914877 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
Mark Dickinsonbd792642009-03-18 20:06:1214878esac
Matthias Kloseb9621712010-04-24 17:59:4914879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14880$as_echo "$enable_big_digits" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214881
14882cat >>confdefs.h <<_ACEOF
14883#define PYLONG_BITS_IN_DIGIT $enable_big_digits
14884_ACEOF
14885
14886
14887else
Matthias Kloseb9621712010-04-24 17:59:4914888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14889$as_echo "no value specified" >&6; }
Mark Dickinsonbd792642009-03-18 20:06:1214890fi
14891
14892
Guido van Rossumef2255b2000-03-10 22:30:2914893# check for wchar.h
Matthias Kloseb9621712010-04-24 17:59:4914894ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
Victor Stinnere0be4232011-10-25 11:06:0914895if test "x$ac_cv_header_wchar_h" = xyes; then :
Martin v. Löwis11437992002-04-12 09:54:0314896
14897
Matthias Kloseb9621712010-04-24 17:59:4914898$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0314899
Martin v. Löwisc45929e2002-04-06 10:10:4914900 wchar_h="yes"
14901
Guido van Rossumef2255b2000-03-10 22:30:2914902else
Martin v. Löwis11437992002-04-12 09:54:0314903 wchar_h="no"
Guido van Rossumef2255b2000-03-10 22:30:2914904
14905fi
14906
Michael W. Hudson54241132001-12-07 15:38:2614907
Martin v. Löwis11437992002-04-12 09:54:0314908
Martin v. Löwis0ba70cc2001-06-26 22:22:3714909# determine wchar_t size
14910if test "$wchar_h" = yes
14911then
Matthias Kloseb9621712010-04-24 17:59:4914912 # The cast to long int works around a bug in the HP C Compiler
Thomas Wouters47b49bf2007-08-30 22:15:3314913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14915# This bug is HP SR number 8606223364.
Matthias Kloseb9621712010-04-24 17:59:4914916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14917$as_echo_n "checking size of wchar_t... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914918if ${ac_cv_sizeof_wchar_t+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914919 $as_echo_n "(cached) " >&6
Martin v. Löwis11437992002-04-12 09:54:0314920else
Matthias Kloseb9621712010-04-24 17:59:4914921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
14922"; then :
Martin v. Löwis11437992002-04-12 09:54:0314923
Martin v. Löwis11437992002-04-12 09:54:0314924else
Matthias Kloseb9621712010-04-24 17:59:4914925 if test "$ac_cv_type_wchar_t" = yes; then
14926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Ross Lagerwallb0ae53d2011-06-10 05:30:3014928as_fn_error 77 "cannot compute sizeof (wchar_t)
Victor Stinnere0be4232011-10-25 11:06:0914929See \`config.log' for more details" "$LINENO" 5; }
Thomas Wouters47b49bf2007-08-30 22:15:3314930 else
14931 ac_cv_sizeof_wchar_t=0
14932 fi
Martin v. Löwis11437992002-04-12 09:54:0314933fi
Matthias Kloseb9621712010-04-24 17:59:4914934
Martin v. Löwis11437992002-04-12 09:54:0314935fi
Matthias Kloseb9621712010-04-24 17:59:4914936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14937$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3314938
14939
14940
Martin v. Löwis11437992002-04-12 09:54:0314941cat >>confdefs.h <<_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714942#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
Martin v. Löwis11437992002-04-12 09:54:0314943_ACEOF
Martin v. Löwis0ba70cc2001-06-26 22:22:3714944
Michael W. Hudson54241132001-12-07 15:38:2614945
Martin v. Löwis0ba70cc2001-06-26 22:22:3714946fi
14947
Matthias Kloseb9621712010-04-24 17:59:4914948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14949$as_echo_n "checking for UCS-4 tcl... " >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414950have_ucs4_tcl=no
Matthias Kloseb9621712010-04-24 17:59:4914951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414952/* end confdefs.h. */
Martin v. Löwisfa3bdea2003-09-04 18:50:5414953
14954#include <tcl.h>
14955#if TCL_UTF_MAX != 6
14956# error "NOT UCS4_TCL"
14957#endif
14958int
14959main ()
14960{
14961
14962 ;
14963 return 0;
14964}
14965_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4914966if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisfa3bdea2003-09-04 18:50:5414967
14968
Matthias Kloseb9621712010-04-24 17:59:4914969$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
Martin v. Löwisfa3bdea2003-09-04 18:50:5414970
14971 have_ucs4_tcl=yes
14972
Martin v. Löwisfa3bdea2003-09-04 18:50:5414973fi
Thomas Wouters47b49bf2007-08-30 22:15:3314974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4914975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14976$as_echo "$have_ucs4_tcl" >&6; }
Martin v. Löwisfa3bdea2003-09-04 18:50:5414977
Skip Montanaro6dead952003-09-25 14:50:0414978# check whether wchar_t is signed or not
Marc-André Lemburgd7160f82003-09-22 11:14:4014979if test "$wchar_h" = yes
14980then
14981 # check whether wchar_t is signed or not
Matthias Kloseb9621712010-04-24 17:59:4914982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14983$as_echo_n "checking whether wchar_t is signed... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0914984 if ${ac_cv_wchar_t_signed+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4914985 $as_echo_n "(cached) " >&6
Marc-André Lemburgd7160f82003-09-22 11:14:4014986else
14987
Matthias Kloseb9621712010-04-24 17:59:4914988 if test "$cross_compiling" = yes; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4014989 ac_cv_wchar_t_signed=yes
14990else
Matthias Kloseb9621712010-04-24 17:59:4914991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0414992/* end confdefs.h. */
Marc-André Lemburgd7160f82003-09-22 11:14:4014993
14994 #include <wchar.h>
14995 int main()
14996 {
Thomas Wouters49fd7fa2006-04-21 10:40:5814997 /* Success: exit code 0 */
14998 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
Marc-André Lemburgd7160f82003-09-22 11:14:4014999 }
15000
15001_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915002if ac_fn_c_try_run "$LINENO"; then :
Marc-André Lemburgd7160f82003-09-22 11:14:4015003 ac_cv_wchar_t_signed=yes
15004else
Matthias Kloseb9621712010-04-24 17:59:4915005 ac_cv_wchar_t_signed=no
Marc-André Lemburgd7160f82003-09-22 11:14:4015006fi
Matthias Kloseb9621712010-04-24 17:59:4915007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15008 conftest.$ac_objext conftest.beam conftest.$ac_ext
Marc-André Lemburgd7160f82003-09-22 11:14:4015009fi
15010
Marc-André Lemburgd7160f82003-09-22 11:14:4015011fi
15012
Matthias Kloseb9621712010-04-24 17:59:4915013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
15014$as_echo "$ac_cv_wchar_t_signed" >&6; }
Thomas Wouters47b49bf2007-08-30 22:15:3315015fi
15016
Miss Islington (bot)4973f762018-08-24 16:36:3015017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
15018$as_echo_n "checking whether wchar_t is usable... " >&6; }
Georg Brandl52d168a2008-01-07 18:10:2415019# wchar_t is only usable if it maps to an unsigned type
Martin v. Löwisd63a3b82011-09-28 05:41:5415020if test "$ac_cv_sizeof_wchar_t" -ge 2 \
Matthias Klose7dbeed72004-12-24 08:22:1715021 -a "$ac_cv_wchar_t_signed" = "no"
Georg Brandl52d168a2008-01-07 18:10:2415022then
Martin v. Löwis0ba70cc2001-06-26 22:22:3715023
Matthias Kloseb9621712010-04-24 17:59:4915024$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
Martin v. Löwis11437992002-04-12 09:54:0315025
Miss Islington (bot)4973f762018-08-24 16:36:3015026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15027$as_echo "yes" >&6; }
Georg Brandl52d168a2008-01-07 18:10:2415028else
Miss Islington (bot)4973f762018-08-24 16:36:3015029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030$as_echo "no" >&6; }
Martin v. Löwis0ba70cc2001-06-26 22:22:3715031fi
Guido van Rossumef2255b2000-03-10 22:30:2915032
15033# check for endianness
Matthias Kloseb9621712010-04-24 17:59:4915034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15035$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915036if ${ac_cv_c_bigendian+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915037 $as_echo_n "(cached) " >&6
Guido van Rossumef2255b2000-03-10 22:30:2915038else
Matthias Kloseb9621712010-04-24 17:59:4915039 ac_cv_c_bigendian=unknown
15040 # See if we're dealing with a universal compiler.
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h. */
15043#ifndef __APPLE_CC__
15044 not a universal capable compiler
15045 #endif
15046 typedef int dummy;
15047
Skip Montanaro6dead952003-09-25 14:50:0415048_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915049if ac_fn_c_try_compile "$LINENO"; then :
15050
15051 # Check for potential -arch flags. It is not universal unless
15052 # there are at least two -arch flags with different values.
15053 ac_arch=
15054 ac_prev=
15055 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15056 if test -n "$ac_prev"; then
15057 case $ac_word in
15058 i?86 | x86_64 | ppc | ppc64)
15059 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15060 ac_arch=$ac_word
15061 else
15062 ac_cv_c_bigendian=universal
15063 break
15064 fi
15065 ;;
15066 esac
15067 ac_prev=
15068 elif test "x$ac_word" = "x-arch"; then
15069 ac_prev=arch
15070 fi
15071 done
15072fi
15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 if test $ac_cv_c_bigendian = unknown; then
15075 # See if sys/param.h defines the BYTE_ORDER macro.
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415077/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2915078#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4915079 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2915080
Martin v. Löwis11437992002-04-12 09:54:0315081int
15082main ()
15083{
Matthias Kloseb9621712010-04-24 17:59:4915084#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15085 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15086 && LITTLE_ENDIAN)
15087 bogus endian macros
15088 #endif
Martin v. Löwis11437992002-04-12 09:54:0315089
15090 ;
15091 return 0;
15092}
15093_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915094if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915095 # It does; now see whether it defined to BIG_ENDIAN or not.
Matthias Kloseb9621712010-04-24 17:59:4915096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415097/* end confdefs.h. */
Guido van Rossumef2255b2000-03-10 22:30:2915098#include <sys/types.h>
Matthias Kloseb9621712010-04-24 17:59:4915099 #include <sys/param.h>
Guido van Rossumef2255b2000-03-10 22:30:2915100
Martin v. Löwis11437992002-04-12 09:54:0315101int
15102main ()
15103{
Guido van Rossumef2255b2000-03-10 22:30:2915104#if BYTE_ORDER != BIG_ENDIAN
Matthias Kloseb9621712010-04-24 17:59:4915105 not big endian
15106 #endif
Martin v. Löwis11437992002-04-12 09:54:0315107
15108 ;
15109 return 0;
15110}
15111_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915112if ac_fn_c_try_compile "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915113 ac_cv_c_bigendian=yes
15114else
Matthias Kloseb9621712010-04-24 17:59:4915115 ac_cv_c_bigendian=no
Guido van Rossumef2255b2000-03-10 22:30:2915116fi
Thomas Wouters47b49bf2007-08-30 22:15:3315117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Matthias Kloseb9621712010-04-24 17:59:4915118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 fi
15121 if test $ac_cv_c_bigendian = unknown; then
15122 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415124/* end confdefs.h. */
Matthias Kloseb9621712010-04-24 17:59:4915125#include <limits.h>
15126
Martin v. Löwis11437992002-04-12 09:54:0315127int
15128main ()
15129{
Matthias Kloseb9621712010-04-24 17:59:4915130#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15131 bogus endian macros
15132 #endif
15133
Martin v. Löwis11437992002-04-12 09:54:0315134 ;
15135 return 0;
15136}
15137_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915138if ac_fn_c_try_compile "$LINENO"; then :
15139 # It does; now see whether it defined to _BIG_ENDIAN or not.
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141/* end confdefs.h. */
15142#include <limits.h>
15143
15144int
15145main ()
15146{
15147#ifndef _BIG_ENDIAN
15148 not big endian
15149 #endif
15150
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315156 ac_cv_c_bigendian=yes
Benjamin Peterson8719ad52009-09-11 22:24:0215157else
Matthias Kloseb9621712010-04-24 17:59:4915158 ac_cv_c_bigendian=no
Martin v. Löwis11437992002-04-12 09:54:0315159fi
Matthias Kloseb9621712010-04-24 17:59:4915160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 fi
15164 if test $ac_cv_c_bigendian = unknown; then
15165 # Compile a test program.
15166 if test "$cross_compiling" = yes; then :
15167 # Try to guess by grepping values from an object file.
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169/* end confdefs.h. */
15170short int ascii_mm[] =
15171 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15172 short int ascii_ii[] =
15173 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15174 int use_ascii (int i) {
15175 return ascii_mm[i] + ascii_ii[i];
15176 }
15177 short int ebcdic_ii[] =
15178 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15179 short int ebcdic_mm[] =
15180 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15181 int use_ebcdic (int i) {
15182 return ebcdic_mm[i] + ebcdic_ii[i];
15183 }
15184 extern int foo;
Thomas Wouters47b49bf2007-08-30 22:15:3315185
Matthias Kloseb9621712010-04-24 17:59:4915186int
15187main ()
15188{
15189return use_ascii (foo) == use_ebcdic (foo);
15190 ;
15191 return 0;
15192}
15193_ACEOF
15194if ac_fn_c_try_compile "$LINENO"; then :
15195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15196 ac_cv_c_bigendian=yes
15197 fi
15198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15199 if test "$ac_cv_c_bigendian" = unknown; then
15200 ac_cv_c_bigendian=no
15201 else
15202 # finding both strings is unlikely to happen, but who knows?
15203 ac_cv_c_bigendian=unknown
15204 fi
15205 fi
15206fi
Thomas Wouters47b49bf2007-08-30 22:15:3315207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315208else
Matthias Kloseb9621712010-04-24 17:59:4915209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415210/* end confdefs.h. */
Thomas Wouters47b49bf2007-08-30 22:15:3315211$ac_includes_default
Martin v. Löwis11437992002-04-12 09:54:0315212int
15213main ()
15214{
Thomas Wouters47b49bf2007-08-30 22:15:3315215
Matthias Kloseb9621712010-04-24 17:59:4915216 /* Are we little or big endian? From Harbison&Steele. */
15217 union
15218 {
15219 long int l;
15220 char c[sizeof (long int)];
15221 } u;
15222 u.l = 1;
15223 return u.c[sizeof (long int) - 1] == 1;
Thomas Wouters47b49bf2007-08-30 22:15:3315224
15225 ;
15226 return 0;
Guido van Rossumef2255b2000-03-10 22:30:2915227}
Martin v. Löwis11437992002-04-12 09:54:0315228_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915229if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumef2255b2000-03-10 22:30:2915230 ac_cv_c_bigendian=no
15231else
Matthias Kloseb9621712010-04-24 17:59:4915232 ac_cv_c_bigendian=yes
Guido van Rossumef2255b2000-03-10 22:30:2915233fi
Matthias Kloseb9621712010-04-24 17:59:4915234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15235 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumef2255b2000-03-10 22:30:2915236fi
Thomas Wouters47b49bf2007-08-30 22:15:3315237
Matthias Kloseb9621712010-04-24 17:59:4915238 fi
Martin v. Löwis11437992002-04-12 09:54:0315239fi
Matthias Kloseb9621712010-04-24 17:59:4915240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15241$as_echo "$ac_cv_c_bigendian" >&6; }
15242 case $ac_cv_c_bigendian in #(
15243 yes)
15244 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15245;; #(
15246 no)
15247 ;; #(
15248 universal)
Ronald Oussoren74f29b42009-09-20 20:09:2615249
Matthias Kloseb9621712010-04-24 17:59:4915250$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Benjamin Peterson8719ad52009-09-11 22:24:0215251
Matthias Kloseb9621712010-04-24 17:59:4915252 ;; #(
15253 *)
Ross Lagerwallb0ae53d2011-06-10 05:30:3015254 as_fn_error $? "unknown endianness
Victor Stinnere0be4232011-10-25 11:06:0915255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Matthias Kloseb9621712010-04-24 17:59:4915256 esac
Guido van Rossumef2255b2000-03-10 22:30:2915257
Michael W. Hudson54241132001-12-07 15:38:2615258
Barry Warsaw35f3a2c2010-09-03 18:30:3015259# ABI version string for Python extension modules. This appears between the
15260# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
15261# from the following attributes which affect the ABI of this Python build (in
15262# this order):
15263#
15264# * The Python implementation (always 'cpython-' for us)
15265# * The major and minor version numbers
15266# * --with-pydebug (adds a 'd')
15267# * --with-pymalloc (adds a 'm')
15268# * --with-wide-unicode (adds a 'u')
15269#
15270# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
Benjamin Petersond7f73e92010-09-05 00:09:0715271# would get a shared library ABI version tag of 'cpython-32dmu' and shared
15272# libraries would be named 'foo.cpython-32dmu.so'.
Barry Warsaw35f3a2c2010-09-03 18:30:3015273
Barry Warsaw8cf4eae2010-10-16 01:04:0715274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15275$as_echo_n "checking ABIFLAGS... " >&6; }
15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15277$as_echo "$ABIFLAGS" >&6; }
Barry Warsaw35f3a2c2010-09-03 18:30:3015278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15279$as_echo_n "checking SOABI... " >&6; }
doko@ubuntu.comd3899c12015-04-15 18:23:1415280SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
Barry Warsaw35f3a2c2010-09-03 18:30:3015281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15282$as_echo "$SOABI" >&6; }
15283
doko@ubuntu.comd5537d02013-03-21 20:21:4915284
15285case $ac_sys_system in
Ned Deily3b812482015-04-16 00:11:4715286 Linux*|GNU*|Darwin)
doko@ubuntu.comd5537d02013-03-21 20:21:4915287 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
15288 *)
15289 EXT_SUFFIX=${SHLIB_SUFFIX};;
15290esac
15291
Barry Warsaw8cf4eae2010-10-16 01:04:0715292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15293$as_echo_n "checking LDVERSION... " >&6; }
15294LDVERSION='$(VERSION)$(ABIFLAGS)'
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15296$as_echo "$LDVERSION" >&6; }
15297
doko@python.org87421192013-01-26 10:39:3115298
doko@ubuntu.com55532312016-06-14 06:55:1915299if test x$PLATFORM_TRIPLET = x; then
15300 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
15301else
15302 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15303fi
doko@python.org87421192013-01-26 10:39:3115304
15305
Vladimir Marangozov676aa882000-07-12 03:02:4315306# Check whether right shifting a negative integer extends the sign bit
15307# or fills with zeros (like the Cray J90, according to Tim Peters).
Matthias Kloseb9621712010-04-24 17:59:4915308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15309$as_echo_n "checking whether right shift extends the sign bit... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915310if ${ac_cv_rshift_extends_sign+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915311 $as_echo_n "(cached) " >&6
Vladimir Marangozova6180282000-07-12 05:05:0615312else
Martin v. Löwis11437992002-04-12 09:54:0315313
Matthias Kloseb9621712010-04-24 17:59:4915314if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415315 ac_cv_rshift_extends_sign=yes
Vladimir Marangozov676aa882000-07-12 03:02:4315316else
Matthias Kloseb9621712010-04-24 17:59:4915317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415318/* end confdefs.h. */
Vladimir Marangozov676aa882000-07-12 03:02:4315319
15320int main()
15321{
Vladimir Marangozova6180282000-07-12 05:05:0615322 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:4315323}
15324
Martin v. Löwis11437992002-04-12 09:54:0315325_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915326if ac_fn_c_try_run "$LINENO"; then :
Vladimir Marangozova6180282000-07-12 05:05:0615327 ac_cv_rshift_extends_sign=yes
15328else
Matthias Kloseb9621712010-04-24 17:59:4915329 ac_cv_rshift_extends_sign=no
Vladimir Marangozova6180282000-07-12 05:05:0615330fi
Matthias Kloseb9621712010-04-24 17:59:4915331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15332 conftest.$ac_objext conftest.beam conftest.$ac_ext
Vladimir Marangozova6180282000-07-12 05:05:0615333fi
15334
Thomas Wouters47b49bf2007-08-30 22:15:3315335fi
15336
Matthias Kloseb9621712010-04-24 17:59:4915337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15338$as_echo "$ac_cv_rshift_extends_sign" >&6; }
Vladimir Marangozova6180282000-07-12 05:05:0615339if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:4315340then
Martin v. Löwis11437992002-04-12 09:54:0315341
Matthias Kloseb9621712010-04-24 17:59:4915342$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
Vladimir Marangozov676aa882000-07-12 03:02:4315343
Vladimir Marangozov676aa882000-07-12 03:02:4315344fi
15345
Guido van Rossumcadfaec2001-01-05 14:45:4915346# check for getc_unlocked and related locking functions
Matthias Kloseb9621712010-04-24 17:59:4915347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15348$as_echo_n "checking for getc_unlocked() and friends... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915349if ${ac_cv_have_getc_unlocked+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915350 $as_echo_n "(cached) " >&6
Guido van Rossumcadfaec2001-01-05 14:45:4915351else
Martin v. Löwis11437992002-04-12 09:54:0315352
Matthias Kloseb9621712010-04-24 17:59:4915353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415354/* end confdefs.h. */
Guido van Rossumcadfaec2001-01-05 14:45:4915355#include <stdio.h>
Martin v. Löwis11437992002-04-12 09:54:0315356int
15357main ()
15358{
Guido van Rossumcadfaec2001-01-05 14:45:4915359
15360 FILE *f = fopen("/dev/null", "r");
15361 flockfile(f);
15362 getc_unlocked(f);
15363 funlockfile(f);
15364
Martin v. Löwis11437992002-04-12 09:54:0315365 ;
15366 return 0;
15367}
15368_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915369if ac_fn_c_try_link "$LINENO"; then :
Guido van Rossumcadfaec2001-01-05 14:45:4915370 ac_cv_have_getc_unlocked=yes
15371else
Matthias Kloseb9621712010-04-24 17:59:4915372 ac_cv_have_getc_unlocked=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
Guido van Rossumcadfaec2001-01-05 14:45:4915376fi
Thomas Wouters47b49bf2007-08-30 22:15:3315377
Matthias Kloseb9621712010-04-24 17:59:4915378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15379$as_echo "$ac_cv_have_getc_unlocked" >&6; }
Guido van Rossumcadfaec2001-01-05 14:45:4915380if test "$ac_cv_have_getc_unlocked" = yes
15381then
Martin v. Löwis11437992002-04-12 09:54:0315382
Matthias Kloseb9621712010-04-24 17:59:4915383$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
Guido van Rossumcadfaec2001-01-05 14:45:4915384
15385fi
Vladimir Marangozov676aa882000-07-12 03:02:4315386
Neal Norwitzfe8e3d92006-01-07 21:07:2015387# check where readline lives
Martin v. Löwis82bca632006-02-10 20:49:3015388# save the value of LIBS so we don't actually link Python with readline
15389LIBS_no_readline=$LIBS
Neal Norwitzfe8e3d92006-01-07 21:07:2015390
Gregory P. Smith18820942008-09-07 06:24:4915391# On some systems we need to link readline to a termcap compatible
15392# library. NOTE: Keep the precedence of listed libraries synchronised
15393# with setup.py.
15394py_cv_lib_readline=no
Matthias Kloseb9621712010-04-24 17:59:4915395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15396$as_echo_n "checking how to link readline libs... " >&6; }
doko@ubuntu.comf2967c72012-06-30 15:32:2315397for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
Gregory P. Smith18820942008-09-07 06:24:4915398 if test -z "$py_libtermcap"; then
15399 READLINE_LIBS="-lreadline"
15400 else
15401 READLINE_LIBS="-lreadline -l$py_libtermcap"
15402 fi
15403 LIBS="$READLINE_LIBS $LIBS_no_readline"
Matthias Kloseb9621712010-04-24 17:59:4915404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Neal Norwitzfe8e3d92006-01-07 21:07:2015405/* end confdefs.h. */
15406
Thomas Wouters47b49bf2007-08-30 22:15:3315407/* Override any GCC internal prototype to avoid an error.
15408 Use char because int might match the return type of a GCC
15409 builtin and then its argument prototype would still apply. */
Neal Norwitzfe8e3d92006-01-07 21:07:2015410#ifdef __cplusplus
15411extern "C"
15412#endif
Neal Norwitzfe8e3d92006-01-07 21:07:2015413char readline ();
15414int
15415main ()
15416{
Thomas Wouters47b49bf2007-08-30 22:15:3315417return readline ();
Neal Norwitzfe8e3d92006-01-07 21:07:2015418 ;
15419 return 0;
15420}
15421_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915422if ac_fn_c_try_link "$LINENO"; then :
Gregory P. Smith18820942008-09-07 06:24:4915423 py_cv_lib_readline=yes
Neal Norwitzfe8e3d92006-01-07 21:07:2015424fi
Matthias Kloseb9621712010-04-24 17:59:4915425rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
Gregory P. Smith18820942008-09-07 06:24:4915427 if test $py_cv_lib_readline = yes; then
15428 break
15429 fi
15430done
15431# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
15432#AC_SUBST([READLINE_LIBS])
Gregory P. Smith3856c372008-09-07 19:24:0015433if test $py_cv_lib_readline = no; then
Matthias Kloseb9621712010-04-24 17:59:4915434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15435$as_echo "none" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915436else
Matthias Kloseb9621712010-04-24 17:59:4915437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15438$as_echo "$READLINE_LIBS" >&6; }
Gregory P. Smith18820942008-09-07 06:24:4915439
Matthias Kloseb9621712010-04-24 17:59:4915440$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
Neal Norwitzfe8e3d92006-01-07 21:07:2015441
Neal Norwitzfe8e3d92006-01-07 21:07:2015442fi
15443
Guido van Rossumfaf5e4d2002-12-30 16:25:4115444# check for readline 2.2
Matthias Kloseb9621712010-04-24 17:59:4915445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415446/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115447#include <readline/readline.h>
15448_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915449if ac_fn_c_try_cpp "$LINENO"; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115450 have_readline=yes
15451else
Guido van Rossumfaf5e4d2002-12-30 16:25:4115452 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415453
Guido van Rossumfaf5e4d2002-12-30 16:25:4115454fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015455rm -f conftest.err conftest.i conftest.$ac_ext
Guido van Rossumfaf5e4d2002-12-30 16:25:4115456if test $have_readline = yes
15457then
Matthias Kloseb9621712010-04-24 17:59:4915458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415459/* end confdefs.h. */
Guido van Rossumfaf5e4d2002-12-30 16:25:4115460#include <readline/readline.h>
15461
15462_ACEOF
15463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915464 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
Guido van Rossumfaf5e4d2002-12-30 16:25:4115465
Matthias Kloseb9621712010-04-24 17:59:4915466$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
Guido van Rossumfaf5e4d2002-12-30 16:25:4115467
15468fi
Matthias Klosec80c93f2010-04-24 17:04:3515469rm -f conftest*
Guido van Rossumfaf5e4d2002-12-30 16:25:4115470
Matthias Kloseb9621712010-04-24 17:59:4915471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroud5131772009-10-26 19:22:1415472/* end confdefs.h. */
15473#include <readline/readline.h>
15474
15475_ACEOF
15476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915477 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
Antoine Pitroud5131772009-10-26 19:22:1415478
Matthias Kloseb9621712010-04-24 17:59:4915479$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
Antoine Pitroud5131772009-10-26 19:22:1415480
15481fi
Matthias Klosec80c93f2010-04-24 17:04:3515482rm -f conftest*
Antoine Pitroud5131772009-10-26 19:22:1415483
Guido van Rossumfaf5e4d2002-12-30 16:25:4115484fi
15485
Martin v. Löwis0daad592001-09-30 21:09:5915486# check for readline 4.0
Matthias Kloseb9621712010-04-24 17:59:4915487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15488$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915489if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915490 $as_echo_n "(cached) " >&6
Guido van Rossum353ae582001-07-10 16:45:3215491else
Martin v. Löwis11437992002-04-12 09:54:0315492 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915493LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415495/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315496
Thomas Wouters47b49bf2007-08-30 22:15:3315497/* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315500#ifdef __cplusplus
15501extern "C"
15502#endif
Martin v. Löwis11437992002-04-12 09:54:0315503char rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315504int
15505main ()
15506{
Thomas Wouters47b49bf2007-08-30 22:15:3315507return rl_pre_input_hook ();
Martin v. Löwis11437992002-04-12 09:54:0315508 ;
15509 return 0;
15510}
15511_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915512if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315513 ac_cv_lib_readline_rl_pre_input_hook=yes
Martin v. Löwis0daad592001-09-30 21:09:5915514else
Matthias Kloseb9621712010-04-24 17:59:4915515 ac_cv_lib_readline_rl_pre_input_hook=no
Martin v. Löwis0daad592001-09-30 21:09:5915516fi
Matthias Kloseb9621712010-04-24 17:59:4915517rm -f core conftest.err conftest.$ac_objext \
15518 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315519LIBS=$ac_check_lib_save_LIBS
15520fi
Matthias Kloseb9621712010-04-24 17:59:4915521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15522$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915523if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615524
Matthias Kloseb9621712010-04-24 17:59:4915525$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
Martin v. Löwis0daad592001-09-30 21:09:5915526
Martin v. Löwis0daad592001-09-30 21:09:5915527fi
15528
Michael W. Hudson54241132001-12-07 15:38:2615529
Thomas Wouters89d996e2007-09-08 17:39:2815530# also in 4.0
Matthias Kloseb9621712010-04-24 17:59:4915531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
15532$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915533if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915534 $as_echo_n "(cached) " >&6
Thomas Wouters89d996e2007-09-08 17:39:2815535else
15536 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915537LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815539/* end confdefs.h. */
15540
15541/* Override any GCC internal prototype to avoid an error.
15542 Use char because int might match the return type of a GCC
15543 builtin and then its argument prototype would still apply. */
15544#ifdef __cplusplus
15545extern "C"
15546#endif
15547char rl_completion_display_matches_hook ();
15548int
15549main ()
15550{
15551return rl_completion_display_matches_hook ();
15552 ;
15553 return 0;
15554}
15555_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915556if ac_fn_c_try_link "$LINENO"; then :
Thomas Wouters89d996e2007-09-08 17:39:2815557 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
15558else
Matthias Kloseb9621712010-04-24 17:59:4915559 ac_cv_lib_readline_rl_completion_display_matches_hook=no
Thomas Wouters89d996e2007-09-08 17:39:2815560fi
Matthias Kloseb9621712010-04-24 17:59:4915561rm -f core conftest.err conftest.$ac_objext \
15562 conftest$ac_exeext conftest.$ac_ext
Thomas Wouters89d996e2007-09-08 17:39:2815563LIBS=$ac_check_lib_save_LIBS
15564fi
Matthias Kloseb9621712010-04-24 17:59:4915565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
15566$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915567if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then :
Thomas Wouters89d996e2007-09-08 17:39:2815568
Matthias Kloseb9621712010-04-24 17:59:4915569$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
Thomas Wouters89d996e2007-09-08 17:39:2815570
15571fi
15572
15573
Martin Panter5dbbf1a2016-04-03 02:54:5815574# also in 4.0, but not in editline
15575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15576$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15577if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then :
15578 $as_echo_n "(cached) " >&6
15579else
15580 ac_check_lib_save_LIBS=$LIBS
15581LIBS="-lreadline $READLINE_LIBS $LIBS"
15582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583/* end confdefs.h. */
15584
15585/* Override any GCC internal prototype to avoid an error.
15586 Use char because int might match the return type of a GCC
15587 builtin and then its argument prototype would still apply. */
15588#ifdef __cplusplus
15589extern "C"
15590#endif
15591char rl_resize_terminal ();
15592int
15593main ()
15594{
15595return rl_resize_terminal ();
15596 ;
15597 return 0;
15598}
15599_ACEOF
15600if ac_fn_c_try_link "$LINENO"; then :
15601 ac_cv_lib_readline_rl_resize_terminal=yes
15602else
15603 ac_cv_lib_readline_rl_resize_terminal=no
15604fi
15605rm -f core conftest.err conftest.$ac_objext \
15606 conftest$ac_exeext conftest.$ac_ext
15607LIBS=$ac_check_lib_save_LIBS
15608fi
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15610$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; }
15611if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then :
15612
15613$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
15614
15615fi
15616
15617
Martin v. Löwis0daad592001-09-30 21:09:5915618# check for readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15620$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915621if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915622 $as_echo_n "(cached) " >&6
Martin v. Löwis0daad592001-09-30 21:09:5915623else
Martin v. Löwis11437992002-04-12 09:54:0315624 ac_check_lib_save_LIBS=$LIBS
Gregory P. Smith18820942008-09-07 06:24:4915625LIBS="-lreadline $READLINE_LIBS $LIBS"
Matthias Kloseb9621712010-04-24 17:59:4915626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415627/* end confdefs.h. */
Martin v. Löwis11437992002-04-12 09:54:0315628
Thomas Wouters47b49bf2007-08-30 22:15:3315629/* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
Martin v. Löwis11437992002-04-12 09:54:0315632#ifdef __cplusplus
15633extern "C"
15634#endif
Martin v. Löwis11437992002-04-12 09:54:0315635char rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315636int
15637main ()
15638{
Thomas Wouters47b49bf2007-08-30 22:15:3315639return rl_completion_matches ();
Martin v. Löwis11437992002-04-12 09:54:0315640 ;
15641 return 0;
15642}
15643_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915644if ac_fn_c_try_link "$LINENO"; then :
Martin v. Löwis11437992002-04-12 09:54:0315645 ac_cv_lib_readline_rl_completion_matches=yes
Guido van Rossum353ae582001-07-10 16:45:3215646else
Matthias Kloseb9621712010-04-24 17:59:4915647 ac_cv_lib_readline_rl_completion_matches=no
Guido van Rossum353ae582001-07-10 16:45:3215648fi
Matthias Kloseb9621712010-04-24 17:59:4915649rm -f core conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
Martin v. Löwis11437992002-04-12 09:54:0315651LIBS=$ac_check_lib_save_LIBS
15652fi
Matthias Kloseb9621712010-04-24 17:59:4915653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15654$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915655if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
Michael W. Hudson54241132001-12-07 15:38:2615656
Matthias Kloseb9621712010-04-24 17:59:4915657$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
Guido van Rossum353ae582001-07-10 16:45:3215658
Guido van Rossum353ae582001-07-10 16:45:3215659fi
15660
Jack Jansendd19cf82001-12-06 22:36:1715661
Michael W. Hudson30ea2f22004-07-07 17:44:1215662# also in readline 4.2
Matthias Kloseb9621712010-04-24 17:59:4915663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215664/* end confdefs.h. */
15665#include <readline/readline.h>
15666_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915667if ac_fn_c_try_cpp "$LINENO"; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215668 have_readline=yes
15669else
Michael W. Hudson30ea2f22004-07-07 17:44:1215670 have_readline=no
Matthias Kloseb159a552010-04-25 21:00:4415671
Michael W. Hudson30ea2f22004-07-07 17:44:1215672fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3015673rm -f conftest.err conftest.i conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215674if test $have_readline = yes
15675then
Matthias Kloseb9621712010-04-24 17:59:4915676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Michael W. Hudson30ea2f22004-07-07 17:44:1215677/* end confdefs.h. */
15678#include <readline/readline.h>
15679
15680_ACEOF
15681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Matthias Kloseb9621712010-04-24 17:59:4915682 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
Michael W. Hudson30ea2f22004-07-07 17:44:1215683
Matthias Kloseb9621712010-04-24 17:59:4915684$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
Michael W. Hudson30ea2f22004-07-07 17:44:1215685
15686fi
Matthias Klosec80c93f2010-04-24 17:04:3515687rm -f conftest*
Michael W. Hudson30ea2f22004-07-07 17:44:1215688
15689fi
15690
Benjamin Petersond1e22ba2014-11-26 20:35:1215691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15692$as_echo_n "checking for append_history in -lreadline... " >&6; }
15693if ${ac_cv_lib_readline_append_history+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695else
15696 ac_check_lib_save_LIBS=$LIBS
15697LIBS="-lreadline $READLINE_LIBS $LIBS"
15698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699/* end confdefs.h. */
15700
15701/* Override any GCC internal prototype to avoid an error.
15702 Use char because int might match the return type of a GCC
15703 builtin and then its argument prototype would still apply. */
15704#ifdef __cplusplus
15705extern "C"
15706#endif
15707char append_history ();
15708int
15709main ()
15710{
15711return append_history ();
15712 ;
15713 return 0;
15714}
15715_ACEOF
15716if ac_fn_c_try_link "$LINENO"; then :
15717 ac_cv_lib_readline_append_history=yes
15718else
15719 ac_cv_lib_readline_append_history=no
15720fi
15721rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15723LIBS=$ac_check_lib_save_LIBS
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15726$as_echo "$ac_cv_lib_readline_append_history" >&6; }
15727if test "x$ac_cv_lib_readline_append_history" = xyes; then :
15728
15729$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
15730
15731fi
15732
15733
Martin v. Löwis82bca632006-02-10 20:49:3015734# End of readline checks: restore LIBS
15735LIBS=$LIBS_no_readline
15736
Matthias Kloseb9621712010-04-24 17:59:4915737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15738$as_echo_n "checking for broken nice()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915739if ${ac_cv_broken_nice+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915740 $as_echo_n "(cached) " >&6
Michael W. Hudson54241132001-12-07 15:38:2615741else
Martin v. Löwis11437992002-04-12 09:54:0315742
Matthias Kloseb9621712010-04-24 17:59:4915743if test "$cross_compiling" = yes; then :
Guido van Rossum3065c942001-09-17 04:03:1415744 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115745else
Matthias Kloseb9621712010-04-24 17:59:4915746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415747/* end confdefs.h. */
Thomas Wouterse38b2f12001-07-11 22:35:3115748
Benjamin Peterson03958692019-02-26 05:59:3715749#include <stdlib.h>
15750#include <unistd.h>
Thomas Wouterse38b2f12001-07-11 22:35:3115751int main()
15752{
15753 int val1 = nice(1);
15754 if (val1 != -1 && val1 == nice(2))
15755 exit(0);
15756 exit(1);
15757}
15758
Martin v. Löwis11437992002-04-12 09:54:0315759_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915760if ac_fn_c_try_run "$LINENO"; then :
Thomas Wouterse38b2f12001-07-11 22:35:3115761 ac_cv_broken_nice=yes
15762else
Matthias Kloseb9621712010-04-24 17:59:4915763 ac_cv_broken_nice=no
Thomas Wouterse38b2f12001-07-11 22:35:3115764fi
Matthias Kloseb9621712010-04-24 17:59:4915765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15766 conftest.$ac_objext conftest.beam conftest.$ac_ext
Thomas Wouterse38b2f12001-07-11 22:35:3115767fi
15768
Thomas Wouters47b49bf2007-08-30 22:15:3315769fi
15770
Matthias Kloseb9621712010-04-24 17:59:4915771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15772$as_echo "$ac_cv_broken_nice" >&6; }
Thomas Wouterse38b2f12001-07-11 22:35:3115773if test "$ac_cv_broken_nice" = yes
15774then
Martin v. Löwis11437992002-04-12 09:54:0315775
Matthias Kloseb9621712010-04-24 17:59:4915776$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
Thomas Wouterse38b2f12001-07-11 22:35:3115777
15778fi
15779
Matthias Kloseb9621712010-04-24 17:59:4915780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15781$as_echo_n "checking for broken poll()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915782if ${ac_cv_broken_poll+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915783 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3715784else
Matthias Kloseb9621712010-04-24 17:59:4915785 if test "$cross_compiling" = yes; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215786 ac_cv_broken_poll=no
15787else
Matthias Kloseb9621712010-04-24 17:59:4915788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215789/* end confdefs.h. */
15790
15791#include <poll.h>
15792
Alexandre Vassalottib0a61d72009-07-17 23:19:3715793int main()
15794{
Nicholas Bastine62c5c82004-03-21 23:45:4215795 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
Alexandre Vassalottib0a61d72009-07-17 23:19:3715796 int poll_test;
Nicholas Bastine62c5c82004-03-21 23:45:4215797
15798 close (42);
15799
Alexandre Vassalottib0a61d72009-07-17 23:19:3715800 poll_test = poll(&poll_struct, 1, 0);
Nicholas Bastine62c5c82004-03-21 23:45:4215801 if (poll_test < 0)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715802 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215803 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
Alexandre Vassalottib0a61d72009-07-17 23:19:3715804 return 0;
Nicholas Bastine62c5c82004-03-21 23:45:4215805 else
Alexandre Vassalottib0a61d72009-07-17 23:19:3715806 return 1;
15807}
Nicholas Bastine62c5c82004-03-21 23:45:4215808
15809_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915810if ac_fn_c_try_run "$LINENO"; then :
Nicholas Bastine62c5c82004-03-21 23:45:4215811 ac_cv_broken_poll=yes
15812else
Matthias Kloseb9621712010-04-24 17:59:4915813 ac_cv_broken_poll=no
Nicholas Bastine62c5c82004-03-21 23:45:4215814fi
Matthias Kloseb9621712010-04-24 17:59:4915815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15816 conftest.$ac_objext conftest.beam conftest.$ac_ext
Nicholas Bastine62c5c82004-03-21 23:45:4215817fi
Thomas Wouters47b49bf2007-08-30 22:15:3315818
Alexandre Vassalottib0a61d72009-07-17 23:19:3715819fi
15820
Matthias Kloseb9621712010-04-24 17:59:4915821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15822$as_echo "$ac_cv_broken_poll" >&6; }
Nicholas Bastine62c5c82004-03-21 23:45:4215823if test "$ac_cv_broken_poll" = yes
15824then
15825
Matthias Kloseb9621712010-04-24 17:59:4915826$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
Nicholas Bastine62c5c82004-03-21 23:45:4215827
15828fi
15829
Martin v. Löwis1d459062005-03-14 21:23:3315830# check tzset(3) exists and works like we expect it to
Matthias Kloseb9621712010-04-24 17:59:4915831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15832$as_echo_n "checking for working tzset()... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915833if ${ac_cv_working_tzset+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915834 $as_echo_n "(cached) " >&6
Guido van Rossumd11b62e2003-03-14 21:51:3615835else
15836
Matthias Kloseb9621712010-04-24 17:59:4915837if test "$cross_compiling" = yes; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615838 ac_cv_working_tzset=no
15839else
Matthias Kloseb9621712010-04-24 17:59:4915840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415841/* end confdefs.h. */
Guido van Rossumd11b62e2003-03-14 21:51:3615842
15843#include <stdlib.h>
15844#include <time.h>
Brett Cannon18367812003-09-19 00:59:1615845#include <string.h>
Brett Cannon43802422005-02-10 20:48:0315846
15847#if HAVE_TZNAME
15848extern char *tzname[];
15849#endif
15850
Guido van Rossumd11b62e2003-03-14 21:51:3615851int main()
15852{
Brett Cannon18367812003-09-19 00:59:1615853 /* Note that we need to ensure that not only does tzset(3)
15854 do 'something' with localtime, but it works as documented
15855 in the library reference and as expected by the test suite.
Martin v. Löwis1d459062005-03-14 21:23:3315856 This includes making sure that tzname is set properly if
15857 tm->tm_zone does not exist since it is the alternative way
15858 of getting timezone info.
Brett Cannon18367812003-09-19 00:59:1615859
15860 Red Hat 6.2 doesn't understand the southern hemisphere
Martin v. Löwis1d459062005-03-14 21:23:3315861 after New Year's Day.
Brett Cannon18367812003-09-19 00:59:1615862 */
15863
Martin v. Löwis1d459062005-03-14 21:23:3315864 time_t groundhogday = 1044144000; /* GMT-based */
Brett Cannon18367812003-09-19 00:59:1615865 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
15866
Neal Norwitz7f2588c2003-04-11 15:35:5315867 putenv("TZ=UTC+0");
Guido van Rossumd11b62e2003-03-14 21:51:3615868 tzset();
Brett Cannon18367812003-09-19 00:59:1615869 if (localtime(&groundhogday)->tm_hour != 0)
15870 exit(1);
Brett Cannon43802422005-02-10 20:48:0315871#if HAVE_TZNAME
15872 /* For UTC, tzname[1] is sometimes "", sometimes " " */
15873 if (strcmp(tzname[0], "UTC") ||
15874 (tzname[1][0] != 0 && tzname[1][0] != ' '))
15875 exit(1);
15876#endif
Brett Cannon18367812003-09-19 00:59:1615877
Neal Norwitz7f2588c2003-04-11 15:35:5315878 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
Guido van Rossumd11b62e2003-03-14 21:51:3615879 tzset();
Brett Cannon18367812003-09-19 00:59:1615880 if (localtime(&groundhogday)->tm_hour != 19)
Guido van Rossumd11b62e2003-03-14 21:51:3615881 exit(1);
Brett Cannon43802422005-02-10 20:48:0315882#if HAVE_TZNAME
15883 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
15884 exit(1);
15885#endif
Brett Cannon18367812003-09-19 00:59:1615886
15887 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15888 tzset();
15889 if (localtime(&groundhogday)->tm_hour != 11)
15890 exit(1);
Brett Cannon43802422005-02-10 20:48:0315891#if HAVE_TZNAME
15892 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
15893 exit(1);
15894#endif
15895
15896#if HAVE_STRUCT_TM_TM_ZONE
Brett Cannon18367812003-09-19 00:59:1615897 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15898 exit(1);
15899 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15900 exit(1);
Brett Cannon43802422005-02-10 20:48:0315901#endif
Brett Cannon18367812003-09-19 00:59:1615902
Guido van Rossumd11b62e2003-03-14 21:51:3615903 exit(0);
15904}
15905
15906_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915907if ac_fn_c_try_run "$LINENO"; then :
Guido van Rossumd11b62e2003-03-14 21:51:3615908 ac_cv_working_tzset=yes
15909else
Matthias Kloseb9621712010-04-24 17:59:4915910 ac_cv_working_tzset=no
Guido van Rossumd11b62e2003-03-14 21:51:3615911fi
Matthias Kloseb9621712010-04-24 17:59:4915912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15913 conftest.$ac_objext conftest.beam conftest.$ac_ext
Guido van Rossumd11b62e2003-03-14 21:51:3615914fi
15915
Thomas Wouters47b49bf2007-08-30 22:15:3315916fi
15917
Matthias Kloseb9621712010-04-24 17:59:4915918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15919$as_echo "$ac_cv_working_tzset" >&6; }
Guido van Rossumd11b62e2003-03-14 21:51:3615920if test "$ac_cv_working_tzset" = yes
15921then
15922
Matthias Kloseb9621712010-04-24 17:59:4915923$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
Guido van Rossumd11b62e2003-03-14 21:51:3615924
15925fi
15926
Martin v. Löwis94717ed2002-09-09 14:24:1615927# Look for subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15929$as_echo_n "checking for tv_nsec in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915930if ${ac_cv_stat_tv_nsec+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915931 $as_echo_n "(cached) " >&6
Martin v. Löwis94717ed2002-09-09 14:24:1615932else
Matthias Kloseb9621712010-04-24 17:59:4915933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0415934/* end confdefs.h. */
Martin v. Löwis94717ed2002-09-09 14:24:1615935#include <sys/stat.h>
Martin v. Löwis94717ed2002-09-09 14:24:1615936int
15937main ()
15938{
15939
15940struct stat st;
15941st.st_mtim.tv_nsec = 1;
15942
15943 ;
15944 return 0;
15945}
15946_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915947if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisa32c9942002-09-09 16:17:4715948 ac_cv_stat_tv_nsec=yes
Martin v. Löwis94717ed2002-09-09 14:24:1615949else
Matthias Kloseb9621712010-04-24 17:59:4915950 ac_cv_stat_tv_nsec=no
Martin v. Löwis94717ed2002-09-09 14:24:1615951fi
Thomas Wouters47b49bf2007-08-30 22:15:3315952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953fi
15954
Matthias Kloseb9621712010-04-24 17:59:4915955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15956$as_echo "$ac_cv_stat_tv_nsec" >&6; }
Martin v. Löwis94717ed2002-09-09 14:24:1615957if test "$ac_cv_stat_tv_nsec" = yes
15958then
15959
Matthias Kloseb9621712010-04-24 17:59:4915960$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
Martin v. Löwis94717ed2002-09-09 14:24:1615961
15962fi
15963
Martin v. Löwisebd9d5b2005-08-09 15:00:5915964# Look for BSD style subsecond timestamps in struct stat
Matthias Kloseb9621712010-04-24 17:59:4915965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15966$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0915967if ${ac_cv_stat_tv_nsec2+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4915968 $as_echo_n "(cached) " >&6
Martin v. Löwisebd9d5b2005-08-09 15:00:5915969else
Matthias Kloseb9621712010-04-24 17:59:4915970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Martin v. Löwisebd9d5b2005-08-09 15:00:5915971/* end confdefs.h. */
15972#include <sys/stat.h>
15973int
15974main ()
15975{
15976
15977struct stat st;
15978st.st_mtimespec.tv_nsec = 1;
15979
15980 ;
15981 return 0;
15982}
15983_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4915984if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwisebd9d5b2005-08-09 15:00:5915985 ac_cv_stat_tv_nsec2=yes
15986else
Matthias Kloseb9621712010-04-24 17:59:4915987 ac_cv_stat_tv_nsec2=no
Martin v. Löwisebd9d5b2005-08-09 15:00:5915988fi
Thomas Wouters47b49bf2007-08-30 22:15:3315989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990fi
15991
Matthias Kloseb9621712010-04-24 17:59:4915992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15993$as_echo "$ac_cv_stat_tv_nsec2" >&6; }
Martin v. Löwisebd9d5b2005-08-09 15:00:5915994if test "$ac_cv_stat_tv_nsec2" = yes
15995then
15996
Matthias Kloseb9621712010-04-24 17:59:4915997$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
Martin v. Löwisebd9d5b2005-08-09 15:00:5915998
15999fi
16000
doko@ubuntu.com1a4f5612014-04-17 18:13:4416001# first curses header check
doko@ubuntu.com9dc823d2012-07-07 01:06:4216002ac_save_cppflags="$CPPFLAGS"
Xavier de Gayee13c3202016-12-13 15:04:1416003if test "$cross_compiling" = no; then
16004 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
16005fi
doko@ubuntu.com1a4f5612014-04-17 18:13:4416006
16007for ac_header in curses.h ncurses.h
16008do :
16009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16011if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16012 cat >>confdefs.h <<_ACEOF
16013#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16014_ACEOF
16015
16016fi
16017
16018done
16019
16020
16021# On Solaris, term.h requires curses.h
16022for ac_header in term.h
16023do :
16024 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
16025#ifdef HAVE_CURSES_H
16026#include <curses.h>
16027#endif
16028
16029"
16030if test "x$ac_cv_header_term_h" = xyes; then :
16031 cat >>confdefs.h <<_ACEOF
16032#define HAVE_TERM_H 1
16033_ACEOF
16034
16035fi
16036
16037done
16038
16039
Jack Jansen666b1e72001-10-31 12:11:4816040# On HP/UX 11.0, mvwdelch is a block with a return statement
Matthias Kloseb9621712010-04-24 17:59:4916041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
16042$as_echo_n "checking whether mvwdelch is an expression... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916043if ${ac_cv_mvwdelch_is_expression+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916044 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4816045else
Matthias Kloseb9621712010-04-24 17:59:4916046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0416047/* end confdefs.h. */
Jack Jansen666b1e72001-10-31 12:11:4816048#include <curses.h>
Martin v. Löwis11437992002-04-12 09:54:0316049int
16050main ()
16051{
Jack Jansen666b1e72001-10-31 12:11:4816052
16053 int rtn;
16054 rtn = mvwdelch(0,0,0);
16055
Martin v. Löwis11437992002-04-12 09:54:0316056 ;
16057 return 0;
16058}
16059_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916060if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4816061 ac_cv_mvwdelch_is_expression=yes
16062else
Matthias Kloseb9621712010-04-24 17:59:4916063 ac_cv_mvwdelch_is_expression=no
Jack Jansen666b1e72001-10-31 12:11:4816064fi
Thomas Wouters47b49bf2007-08-30 22:15:3316065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066fi
16067
Matthias Kloseb9621712010-04-24 17:59:4916068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
16069$as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
Jack Jansen666b1e72001-10-31 12:11:4816070
16071if test "$ac_cv_mvwdelch_is_expression" = yes
16072then
Martin v. Löwis11437992002-04-12 09:54:0316073
Matthias Kloseb9621712010-04-24 17:59:4916074$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816075
16076fi
16077
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616078# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
16079# structs since version 5.7. If the macro is defined as zero before including
16080# [n]curses.h, ncurses will expose fields of the structs regardless of the
16081# configuration.
Matthias Kloseb9621712010-04-24 17:59:4916082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16083$as_echo_n "checking whether WINDOW has _flags... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916084if ${ac_cv_window_has_flags+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916085 $as_echo_n "(cached) " >&6
Jack Jansen666b1e72001-10-31 12:11:4816086else
Matthias Kloseb9621712010-04-24 17:59:4916087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Skip Montanaro6dead952003-09-25 14:50:0416088/* end confdefs.h. */
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616089
16090 #define NCURSES_OPAQUE 0
16091 #include <curses.h>
16092
Martin v. Löwis11437992002-04-12 09:54:0316093int
16094main ()
16095{
Jack Jansen666b1e72001-10-31 12:11:4816096
16097 WINDOW *w;
16098 w->_flags = 0;
16099
Martin v. Löwis11437992002-04-12 09:54:0316100 ;
16101 return 0;
16102}
16103_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916104if ac_fn_c_try_compile "$LINENO"; then :
Jack Jansen666b1e72001-10-31 12:11:4816105 ac_cv_window_has_flags=yes
16106else
Matthias Kloseb9621712010-04-24 17:59:4916107 ac_cv_window_has_flags=no
Jack Jansen666b1e72001-10-31 12:11:4816108fi
Thomas Wouters47b49bf2007-08-30 22:15:3316109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110fi
16111
Matthias Kloseb9621712010-04-24 17:59:4916112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
16113$as_echo "$ac_cv_window_has_flags" >&6; }
Michael W. Hudson54241132001-12-07 15:38:2616114
Jack Jansen666b1e72001-10-31 12:11:4816115
16116if test "$ac_cv_window_has_flags" = yes
16117then
Martin v. Löwis11437992002-04-12 09:54:0316118
Matthias Kloseb9621712010-04-24 17:59:4916119$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
Jack Jansen666b1e72001-10-31 12:11:4816120
16121fi
16122
Masayuki Yamamoto8bc7d632017-11-01 12:05:2616123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16124$as_echo_n "checking for is_pad... " >&6; }
16125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h. */
16127#include <curses.h>
16128int
16129main ()
16130{
16131
16132#ifndef is_pad
16133void *x=is_pad
16134#endif
16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140if ac_fn_c_try_compile "$LINENO"; then :
16141
16142$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
16143
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16145$as_echo "yes" >&6; }
16146else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148$as_echo "no" >&6; }
16149
16150fi
16151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152
Matthias Kloseb9621712010-04-24 17:59:4916153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16154$as_echo_n "checking for is_term_resized... " >&6; }
16155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216156/* end confdefs.h. */
16157#include <curses.h>
16158int
16159main ()
16160{
16161void *x=is_term_resized
16162 ;
16163 return 0;
16164}
16165_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916166if ac_fn_c_try_compile "$LINENO"; then :
Martin v. Löwis24a880b2002-12-31 12:55:1516167
Matthias Kloseb9621712010-04-24 17:59:4916168$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216169
Matthias Kloseb159a552010-04-25 21:00:4416170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916171$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216172else
Matthias Kloseb9621712010-04-24 17:59:4916173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216175
16176fi
Thomas Wouters47b49bf2007-08-30 22:15:3316177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178
Matthias Kloseb9621712010-04-24 17:59:4916179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16180$as_echo_n "checking for resize_term... " >&6; }
16181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216182/* end confdefs.h. */
16183#include <curses.h>
16184int
16185main ()
16186{
16187void *x=resize_term
16188 ;
16189 return 0;
16190}
16191_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916192if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216193
Matthias Kloseb9621712010-04-24 17:59:4916194$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216195
Matthias Kloseb159a552010-04-25 21:00:4416196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916197$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216198else
Matthias Kloseb9621712010-04-24 17:59:4916199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216201
16202fi
Thomas Wouters47b49bf2007-08-30 22:15:3316203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204
Matthias Kloseb9621712010-04-24 17:59:4916205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16206$as_echo_n "checking for resizeterm... " >&6; }
16207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters0e3f5912006-08-11 14:57:1216208/* end confdefs.h. */
16209#include <curses.h>
16210int
16211main ()
16212{
16213void *x=resizeterm
16214 ;
16215 return 0;
16216}
16217_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916218if ac_fn_c_try_compile "$LINENO"; then :
Thomas Wouters0e3f5912006-08-11 14:57:1216219
Matthias Kloseb9621712010-04-24 17:59:4916220$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
Thomas Wouters0e3f5912006-08-11 14:57:1216221
Matthias Kloseb159a552010-04-25 21:00:4416222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Matthias Kloseb9621712010-04-24 17:59:4916223$as_echo "yes" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216224else
Matthias Kloseb9621712010-04-24 17:59:4916225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226$as_echo "no" >&6; }
Thomas Wouters0e3f5912006-08-11 14:57:1216227
16228fi
Thomas Wouters47b49bf2007-08-30 22:15:3316229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Serhiy Storchakabaac01e2017-10-31 11:56:4416230
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16232$as_echo_n "checking for immedok... " >&6; }
16233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234/* end confdefs.h. */
16235#include <curses.h>
16236int
16237main ()
16238{
16239
16240#ifndef immedok
16241void *x=immedok
16242#endif
16243
16244 ;
16245 return 0;
16246}
16247_ACEOF
16248if ac_fn_c_try_compile "$LINENO"; then :
16249
16250$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
16251
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16253$as_echo "yes" >&6; }
16254else
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256$as_echo "no" >&6; }
16257
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16262$as_echo_n "checking for syncok... " >&6; }
16263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264/* end confdefs.h. */
16265#include <curses.h>
16266int
16267main ()
16268{
16269
16270#ifndef syncok
16271void *x=syncok
16272#endif
16273
16274 ;
16275 return 0;
16276}
16277_ACEOF
16278if ac_fn_c_try_compile "$LINENO"; then :
16279
16280$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
16281
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16283$as_echo "yes" >&6; }
16284else
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286$as_echo "no" >&6; }
16287
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290
Serhiy Storchaka894ebd02017-11-01 12:34:2016291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16292$as_echo_n "checking for wchgat... " >&6; }
16293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h. */
16295#include <curses.h>
16296int
16297main ()
16298{
16299
16300#ifndef wchgat
16301void *x=wchgat
16302#endif
16303
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308if ac_fn_c_try_compile "$LINENO"; then :
16309
16310$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
16311
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16313$as_echo "yes" >&6; }
16314else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316$as_echo "no" >&6; }
16317
16318fi
16319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16320
Serhiy Storchakabaac01e2017-10-31 11:56:4416321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16322$as_echo_n "checking for filter... " >&6; }
16323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h. */
16325#include <curses.h>
16326int
16327main ()
16328{
16329
16330#ifndef filter
16331void *x=filter
16332#endif
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_compile "$LINENO"; then :
16339
16340$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h
16341
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16343$as_echo "yes" >&6; }
16344else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346$as_echo "no" >&6; }
16347
16348fi
16349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16350
16351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16352$as_echo_n "checking for has_key... " >&6; }
16353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354/* end confdefs.h. */
16355#include <curses.h>
16356int
16357main ()
16358{
16359
16360#ifndef has_key
16361void *x=has_key
16362#endif
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_compile "$LINENO"; then :
16369
16370$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
16371
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16373$as_echo "yes" >&6; }
16374else
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376$as_echo "no" >&6; }
16377
16378fi
16379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380
16381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16382$as_echo_n "checking for typeahead... " >&6; }
16383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h. */
16385#include <curses.h>
16386int
16387main ()
16388{
16389
16390#ifndef typeahead
16391void *x=typeahead
16392#endif
16393
16394 ;
16395 return 0;
16396}
16397_ACEOF
16398if ac_fn_c_try_compile "$LINENO"; then :
16399
16400$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16403$as_echo "yes" >&6; }
16404else
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406$as_echo "no" >&6; }
16407
16408fi
16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16412$as_echo_n "checking for use_env... " >&6; }
16413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414/* end confdefs.h. */
16415#include <curses.h>
16416int
16417main ()
16418{
16419
16420#ifndef use_env
16421void *x=use_env
16422#endif
16423
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428if ac_fn_c_try_compile "$LINENO"; then :
16429
16430$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
16431
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16433$as_echo "yes" >&6; }
16434else
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436$as_echo "no" >&6; }
16437
16438fi
16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
doko@ubuntu.com9dc823d2012-07-07 01:06:4216440# last curses configure check
16441CPPFLAGS=$ac_save_cppflags
Thomas Wouters47b49bf2007-08-30 22:15:3316442
doko@ubuntu.comb457b9b2012-06-30 17:28:1616443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16444$as_echo "$as_me: checking for device files" >&6;}
16445
16446if test "x$cross_compiling" = xyes; then
16447 if test "${ac_cv_file__dev_ptmx+set}" != set; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16449$as_echo_n "checking for /dev/ptmx... " >&6; }
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16451$as_echo "not set" >&6; }
16452 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16453 fi
16454 if test "${ac_cv_file__dev_ptc+set}" != set; then
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16456$as_echo_n "checking for /dev/ptc... " >&6; }
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16458$as_echo "not set" >&6; }
16459 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
16460 fi
16461fi
16462
Matthias Kloseb9621712010-04-24 17:59:4916463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16464$as_echo_n "checking for /dev/ptmx... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616465if ${ac_cv_file__dev_ptmx+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467else
16468 test "$cross_compiling" = yes &&
16469 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16470if test -r "/dev/ptmx"; then
16471 ac_cv_file__dev_ptmx=yes
16472else
16473 ac_cv_file__dev_ptmx=no
16474fi
16475fi
16476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16477$as_echo "$ac_cv_file__dev_ptmx" >&6; }
16478if test "x$ac_cv_file__dev_ptmx" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016479
doko@ubuntu.comb457b9b2012-06-30 17:28:1616480fi
16481
16482if test "x$ac_cv_file__dev_ptmx" = xyes; then
Martin v. Löwis24a880b2002-12-31 12:55:1516483
Matthias Kloseb9621712010-04-24 17:59:4916484$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
Martin v. Löwis24a880b2002-12-31 12:55:1516485
Martin v. Löwis24a880b2002-12-31 12:55:1516486fi
Matthias Kloseb9621712010-04-24 17:59:4916487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16488$as_echo_n "checking for /dev/ptc... " >&6; }
doko@ubuntu.comb457b9b2012-06-30 17:28:1616489if ${ac_cv_file__dev_ptc+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491else
16492 test "$cross_compiling" = yes &&
16493 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16494if test -r "/dev/ptc"; then
16495 ac_cv_file__dev_ptc=yes
16496else
16497 ac_cv_file__dev_ptc=no
16498fi
16499fi
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16501$as_echo "$ac_cv_file__dev_ptc" >&6; }
16502if test "x$ac_cv_file__dev_ptc" = xyes; then :
Thomas Wouters89f507f2006-12-13 04:49:3016503
doko@ubuntu.comb457b9b2012-06-30 17:28:1616504fi
16505
16506if test "x$ac_cv_file__dev_ptc" = xyes; then
Neal Norwitz865400f2003-03-21 01:42:5816507
Matthias Kloseb9621712010-04-24 17:59:4916508$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
Neal Norwitz865400f2003-03-21 01:42:5816509
Neal Norwitz865400f2003-03-21 01:42:5816510fi
16511
Ronald Oussoren3c1928a2009-11-19 17:15:3116512if test $ac_sys_system = Darwin
16513then
16514 LIBS="$LIBS -framework CoreFoundation"
16515fi
Mark Dickinson6ce4a9a2009-11-16 17:00:1116516
Matthias Kloseb9621712010-04-24 17:59:4916517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16518$as_echo_n "checking for %zd printf() format support... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916519if ${ac_cv_have_size_t_format+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916520 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716521else
Matthias Kloseb9621712010-04-24 17:59:4916522 if test "$cross_compiling" = yes; then :
Benjamin Peterson8f326b22009-12-13 02:10:3616523 ac_cv_have_size_t_format="cross -- assuming yes"
16524
Thomas Wouters477c8d52006-05-27 19:21:4716525else
Matthias Kloseb9621712010-04-24 17:59:4916526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Thomas Wouters477c8d52006-05-27 19:21:4716527/* end confdefs.h. */
Alexandre Vassalottib0a61d72009-07-17 23:19:3716528
Thomas Wouters477c8d52006-05-27 19:21:4716529#include <stdio.h>
16530#include <stddef.h>
16531#include <string.h>
16532
Christian Heimes2c181612007-12-17 20:04:1316533#ifdef HAVE_SYS_TYPES_H
16534#include <sys/types.h>
16535#endif
Thomas Wouters89f507f2006-12-13 04:49:3016536
16537#ifdef HAVE_SSIZE_T
16538typedef ssize_t Py_ssize_t;
16539#elif SIZEOF_VOID_P == SIZEOF_LONG
16540typedef long Py_ssize_t;
16541#else
16542typedef int Py_ssize_t;
16543#endif
Thomas Wouters477c8d52006-05-27 19:21:4716544
Christian Heimes2c181612007-12-17 20:04:1316545int main()
16546{
16547 char buffer[256];
16548
Thomas Wouters477c8d52006-05-27 19:21:4716549 if(sprintf(buffer, "%zd", (size_t)123) < 0)
16550 return 1;
16551
Thomas Wouters89f507f2006-12-13 04:49:3016552 if (strcmp(buffer, "123"))
16553 return 1;
16554
16555 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16556 return 1;
16557
16558 if (strcmp(buffer, "-123"))
Thomas Wouters477c8d52006-05-27 19:21:4716559 return 1;
16560
16561 return 0;
16562}
Alexandre Vassalottib0a61d72009-07-17 23:19:3716563
Thomas Wouters477c8d52006-05-27 19:21:4716564_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916565if ac_fn_c_try_run "$LINENO"; then :
Alexandre Vassalottib0a61d72009-07-17 23:19:3716566 ac_cv_have_size_t_format=yes
Alexandre Vassalotti19142282009-07-17 23:11:5216567else
Matthias Kloseb9621712010-04-24 17:59:4916568 ac_cv_have_size_t_format=no
Alexandre Vassalotti19142282009-07-17 23:11:5216569fi
Matthias Kloseb9621712010-04-24 17:59:4916570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16571 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Vassalotti302825b2009-07-17 07:49:5316572fi
16573
Alexandre Vassalottib0a61d72009-07-17 23:19:3716574fi
Matthias Kloseb9621712010-04-24 17:59:4916575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16576$as_echo "$ac_cv_have_size_t_format" >&6; }
Benjamin Peterson8f326b22009-12-13 02:10:3616577if test "$ac_cv_have_size_t_format" != no ; then
Alexandre Vassalottib0a61d72009-07-17 23:19:3716578
Matthias Kloseb9621712010-04-24 17:59:4916579$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
Alexandre Vassalottib0a61d72009-07-17 23:19:3716580
16581fi
16582
Matthias Kloseb9621712010-04-24 17:59:4916583ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
Martin v. Löwis01c04012002-11-11 14:58:4416584#ifdef HAVE_SYS_TYPES_H
16585#include <sys/types.h>
16586#endif
16587#ifdef HAVE_SYS_SOCKET_H
16588#include <sys/socket.h>
16589#endif
16590
Matthias Kloseb9621712010-04-24 17:59:4916591"
Victor Stinnere0be4232011-10-25 11:06:0916592if test "x$ac_cv_type_socklen_t" = xyes; then :
Martin v. Löwis01c04012002-11-11 14:58:4416593
Martin v. Löwis11437992002-04-12 09:54:0316594else
Guido van Rossum95713eb2000-05-18 20:53:3116595
Matthias Kloseb9621712010-04-24 17:59:4916596$as_echo "#define socklen_t int" >>confdefs.h
Guido van Rossum95713eb2000-05-18 20:53:3116597
16598fi
16599
Michael W. Hudson54241132001-12-07 15:38:2616600
Matthias Kloseb9621712010-04-24 17:59:4916601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16602$as_echo_n "checking for broken mbstowcs... " >&6; }
Victor Stinnere0be4232011-10-25 11:06:0916603if ${ac_cv_broken_mbstowcs+:} false; then :
Matthias Kloseb9621712010-04-24 17:59:4916604 $as_echo_n "(cached) " >&6
Alexandre Vassalottib0a61d72009-07-17 23:19:3716605else
Matthias Kloseb9621712010-04-24 17:59:4916606 if test "$cross_compiling" = yes; then :
Antoine Pitroufff95302008-09-03 18:58:5116607 ac_cv_broken_mbstowcs=no
16608else
Matthias Kloseb9621712010-04-24 17:59:4916609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116610/* end confdefs.h. */
16611
Stefan Krah19c21392012-11-22 22:47:3216612#include <stdio.h>
Antoine Pitroufff95302008-09-03 18:58:5116613#include<stdlib.h>
16614int main() {
16615 size_t len = -1;
16616 const char *str = "text";
16617 len = mbstowcs(NULL, str, 0);
16618 return (len != 4);
16619}
16620
16621_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4916622if ac_fn_c_try_run "$LINENO"; then :
Antoine Pitroufff95302008-09-03 18:58:5116623 ac_cv_broken_mbstowcs=no
16624else
Matthias Kloseb9621712010-04-24 17:59:4916625 ac_cv_broken_mbstowcs=yes
Antoine Pitroufff95302008-09-03 18:58:5116626fi
Matthias Kloseb9621712010-04-24 17:59:4916627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16628 conftest.$ac_objext conftest.beam conftest.$ac_ext
Antoine Pitroufff95302008-09-03 18:58:5116629fi
16630
Alexandre Vassalottib0a61d72009-07-17 23:19:3716631fi
16632
Matthias Kloseb9621712010-04-24 17:59:4916633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16634$as_echo "$ac_cv_broken_mbstowcs" >&6; }
Antoine Pitroufff95302008-09-03 18:58:5116635if test "$ac_cv_broken_mbstowcs" = yes
16636then
16637
Matthias Kloseb9621712010-04-24 17:59:4916638$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
Antoine Pitroufff95302008-09-03 18:58:5116639
16640fi
16641
Antoine Pitroub52ec782009-01-25 16:34:2316642# Check for --with-computed-gotos
Matthias Kloseb9621712010-04-24 17:59:4916643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16644$as_echo_n "checking for --with-computed-gotos... " >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316645
16646# Check whether --with-computed-gotos was given.
Matthias Kloseb9621712010-04-24 17:59:4916647if test "${with_computed_gotos+set}" = set; then :
Antoine Pitroub52ec782009-01-25 16:34:2316648 withval=$with_computed_gotos;
Antoine Pitrou042b1282010-08-13 21:15:5816649if test "$withval" = yes
Antoine Pitroub52ec782009-01-25 16:34:2316650then
16651
Matthias Kloseb9621712010-04-24 17:59:4916652$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
Antoine Pitroub52ec782009-01-25 16:34:2316653
Matthias Kloseb9621712010-04-24 17:59:4916654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16655$as_echo "yes" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316656fi
Antoine Pitrou042b1282010-08-13 21:15:5816657if test "$withval" = no
16658then
16659
16660$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
16661
Matthias Kloseb9621712010-04-24 17:59:4916662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663$as_echo "no" >&6; }
Antoine Pitroub52ec782009-01-25 16:34:2316664fi
16665
Antoine Pitrou042b1282010-08-13 21:15:5816666else
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16668$as_echo "no value specified" >&6; }
16669fi
16670
Antoine Pitroub52ec782009-01-25 16:34:2316671
Matthias Kloseb17289e2012-03-15 18:51:3416672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16673$as_echo_n "checking whether $CC supports computed gotos... " >&6; }
16674if ${ac_cv_computed_gotos+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676else
16677 if test "$cross_compiling" = yes; then :
16678 if test "${with_computed_gotos+set}" = set; then
16679 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16680 else
16681 ac_cv_computed_gotos=no
16682 fi
16683else
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685/* end confdefs.h. */
16686
16687int main(int argc, char **argv)
16688{
16689 static void *targets[1] = { &&LABEL1 };
16690 goto LABEL2;
16691LABEL1:
16692 return 0;
16693LABEL2:
16694 goto *targets[0];
16695 return 1;
16696}
16697
16698_ACEOF
16699if ac_fn_c_try_run "$LINENO"; then :
16700 ac_cv_computed_gotos=yes
16701else
16702 ac_cv_computed_gotos=no
16703fi
16704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16705 conftest.$ac_objext conftest.beam conftest.$ac_ext
16706fi
16707
16708fi
16709
16710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16711$as_echo "$ac_cv_computed_gotos" >&6; }
16712case "$ac_cv_computed_gotos" in yes*)
16713
16714$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
16715
16716esac
16717
Benjamin Petersond8d835b2010-10-15 23:14:4616718case $ac_sys_system in
16719AIX*)
16720
16721$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
16722 ;;
16723esac
Antoine Pitroub52ec782009-01-25 16:34:2316724
Michael W. Hudson54241132001-12-07 15:38:2616725
Mark Dickinsonb2153e92010-05-05 22:31:3616726
16727
Martin v. Löwis06f15bb2001-12-02 13:02:3216728for h in `(cd $srcdir;echo Python/thread_*.h)`
16729do
16730 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
16731done
16732
Michael W. Hudson54241132001-12-07 15:38:2616733
Victor Stinner54030062019-04-13 00:50:3116734SRCDIRS="Parser Objects Python Modules Modules/_io Programs"
Matthias Kloseb9621712010-04-24 17:59:4916735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16736$as_echo_n "checking for build directories... " >&6; }
Neil Schemenauerd32c2492001-01-24 17:25:2816737for dir in $SRCDIRS; do
16738 if test ! -d $dir; then
16739 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:5316740 fi
Neil Schemenauerd32c2492001-01-24 17:25:2816741done
Matthias Kloseb9621712010-04-24 17:59:4916742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16743$as_echo "done" >&6; }
Fred Drake036144d2000-10-26 17:09:3516744
Stefan Krah1919b7e2012-03-21 17:25:2316745# Availability of -O2:
16746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16747$as_echo_n "checking for -O2... " >&6; }
16748saved_cflags="$CFLAGS"
16749CFLAGS="-O2"
16750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751/* end confdefs.h. */
16752
16753int
16754main ()
16755{
16756
16757
16758 ;
16759 return 0;
16760}
16761_ACEOF
16762if ac_fn_c_try_compile "$LINENO"; then :
16763 have_O2=yes
16764else
16765 have_O2=no
16766fi
16767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16769$as_echo "$have_O2" >&6; }
16770CFLAGS="$saved_cflags"
16771
16772# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16773# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16775$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16776saved_cflags="$CFLAGS"
16777CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16778if test "$have_O2" = no; then
16779 CFLAGS=""
16780fi
16781if test "$cross_compiling" = yes; then :
16782 have_glibc_memmove_bug=undefined
16783else
16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16785/* end confdefs.h. */
16786
16787#include <stdio.h>
16788#include <stdlib.h>
16789#include <string.h>
16790void foo(void *p, void *q) { memmove(p, q, 19); }
16791int main() {
16792 char a[32] = "123456789000000000";
16793 foo(&a[9], a);
16794 if (strcmp(a, "123456789123456789000000000") != 0)
16795 return 1;
16796 foo(a, &a[9]);
16797 if (strcmp(a, "123456789000000000") != 0)
16798 return 1;
16799 return 0;
16800}
16801
16802_ACEOF
16803if ac_fn_c_try_run "$LINENO"; then :
16804 have_glibc_memmove_bug=no
16805else
16806 have_glibc_memmove_bug=yes
16807fi
16808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16809 conftest.$ac_objext conftest.beam conftest.$ac_ext
16810fi
16811
16812CFLAGS="$saved_cflags"
16813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16814$as_echo "$have_glibc_memmove_bug" >&6; }
16815if test "$have_glibc_memmove_bug" = yes; then
16816
16817$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
16818
16819fi
16820
16821if test "$have_gcc_asm_for_x87" = yes; then
16822 # Some versions of gcc miscompile inline asm:
16823 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16824 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16825 case $CC in
16826 *gcc*)
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16828$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16829 saved_cflags="$CFLAGS"
16830 CFLAGS="-O2"
16831 if test "$cross_compiling" = yes; then :
16832 have_ipa_pure_const_bug=undefined
16833else
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h. */
16836
16837 __attribute__((noinline)) int
16838 foo(int *p) {
16839 int r;
16840 asm ( "movl \$6, (%1)\n\t"
16841 "xorl %0, %0\n\t"
16842 : "=r" (r) : "r" (p) : "memory"
16843 );
16844 return r;
16845 }
16846 int main() {
16847 int p = 8;
16848 if ((foo(&p) ? : p) != 6)
16849 return 1;
16850 return 0;
16851 }
16852
16853_ACEOF
16854if ac_fn_c_try_run "$LINENO"; then :
16855 have_ipa_pure_const_bug=no
16856else
16857 have_ipa_pure_const_bug=yes
16858fi
16859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16860 conftest.$ac_objext conftest.beam conftest.$ac_ext
16861fi
16862
16863 CFLAGS="$saved_cflags"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16865$as_echo "$have_ipa_pure_const_bug" >&6; }
16866 if test "$have_ipa_pure_const_bug" = yes; then
16867
16868$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
16869
16870 fi
16871 ;;
16872 esac
16873fi
16874
Victor Stinner4f5366e2015-01-09 01:13:1916875# Check for stdatomic.h
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16877$as_echo_n "checking for stdatomic.h... " >&6; }
16878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879/* end confdefs.h. */
16880
16881
16882 #include <stdatomic.h>
Miss Skeleton (bot)b102e4f2019-10-22 20:17:2116883 atomic_int int_var;
16884 atomic_uintptr_t uintptr_var;
Victor Stinner4f5366e2015-01-09 01:13:1916885 int main() {
Miss Skeleton (bot)b102e4f2019-10-22 20:17:2116886 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
16887 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
16888 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
Victor Stinner4f5366e2015-01-09 01:13:1916889 return 0;
16890 }
16891
16892
16893_ACEOF
16894if ac_fn_c_try_link "$LINENO"; then :
16895 have_stdatomic_h=yes
16896else
16897 have_stdatomic_h=no
16898fi
16899rm -f core conftest.err conftest.$ac_objext \
16900 conftest$ac_exeext conftest.$ac_ext
16901
16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16903$as_echo "$have_stdatomic_h" >&6; }
16904
16905if test "$have_stdatomic_h" = yes; then
16906
16907$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h
16908
16909fi
16910
16911# Check for GCC >= 4.7 __atomic builtins
16912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16913$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915/* end confdefs.h. */
16916
16917
16918 volatile int val = 1;
16919 int main() {
16920 __atomic_load_n(&val, __ATOMIC_SEQ_CST);
16921 return 0;
16922 }
16923
16924
16925_ACEOF
16926if ac_fn_c_try_link "$LINENO"; then :
16927 have_builtin_atomic=yes
16928else
16929 have_builtin_atomic=no
16930fi
16931rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16935$as_echo "$have_builtin_atomic" >&6; }
16936
16937if test "$have_builtin_atomic" = yes; then
16938
16939$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
16940
16941fi
16942
Ned Deily322f5ba2013-11-22 07:01:5916943# ensurepip option
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16945$as_echo_n "checking for ensurepip... " >&6; }
16946
16947# Check whether --with-ensurepip was given.
16948if test "${with_ensurepip+set}" = set; then :
16949 withval=$with_ensurepip;
16950else
16951 with_ensurepip=upgrade
16952fi
16953
16954case $with_ensurepip in #(
16955 yes|upgrade) :
16956 ENSUREPIP=upgrade ;; #(
16957 install) :
16958 ENSUREPIP=install ;; #(
16959 no) :
16960 ENSUREPIP=no ;; #(
16961 *) :
16962 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16963esac
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16965$as_echo "$ENSUREPIP" >&6; }
16966
16967
Victor Stinner35a97c02015-03-08 01:59:0916968# check if the dirent structure of a d_type field and DT_UNKNOWN is defined
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16970$as_echo_n "checking if the dirent structure of a d_type field... " >&6; }
16971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972/* end confdefs.h. */
16973
16974
16975 #include <dirent.h>
16976
16977 int main() {
16978 struct dirent entry;
16979 return entry.d_type == DT_UNKNOWN;
16980 }
16981
16982
16983_ACEOF
16984if ac_fn_c_try_link "$LINENO"; then :
16985 have_dirent_d_type=yes
16986else
16987 have_dirent_d_type=no
16988fi
16989rm -f core conftest.err conftest.$ac_objext \
16990 conftest$ac_exeext conftest.$ac_ext
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16992$as_echo "$have_dirent_d_type" >&6; }
16993
16994if test "$have_dirent_d_type" = yes; then
16995
16996$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
16997
16998fi
16999
Victor Stinner9eb57c52015-03-19 21:21:4917000# check if the Linux getrandom() syscall is available
17001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
17002$as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h. */
17005
17006
Victor Stinner1b80b242016-04-12 20:34:5817007 #include <unistd.h>
Victor Stinner9eb57c52015-03-19 21:21:4917008 #include <sys/syscall.h>
Victor Stinnerdddf4842016-06-07 09:21:4217009 #include <linux/random.h>
Victor Stinner9eb57c52015-03-19 21:21:4917010
17011 int main() {
Victor Stinner9eb57c52015-03-19 21:21:4917012 char buffer[1];
Victor Stinner3abf44e2015-09-18 13:38:3717013 const size_t buflen = sizeof(buffer);
Victor Stinnerdddf4842016-06-07 09:21:4217014 const int flags = GRND_NONBLOCK;
17015 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
Victor Stinner3abf44e2015-09-18 13:38:3717016 (void)syscall(SYS_getrandom, buffer, buflen, flags);
Victor Stinner9eb57c52015-03-19 21:21:4917017 return 0;
17018 }
17019
17020
17021_ACEOF
17022if ac_fn_c_try_link "$LINENO"; then :
17023 have_getrandom_syscall=yes
17024else
17025 have_getrandom_syscall=no
17026fi
17027rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
17030$as_echo "$have_getrandom_syscall" >&6; }
17031
17032if test "$have_getrandom_syscall" = yes; then
17033
17034$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
17035
17036fi
17037
Victor Stinner3abf44e2015-09-18 13:38:3717038# check if the getrandom() function is available
17039# the test was written for the Solaris function of <sys/random.h>
17040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
17041$as_echo_n "checking for the getrandom() function... " >&6; }
17042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043/* end confdefs.h. */
17044
17045
17046 #include <sys/random.h>
17047
17048 int main() {
17049 char buffer[1];
17050 const size_t buflen = sizeof(buffer);
17051 const int flags = 0;
17052 /* ignore the result, Python checks for ENOSYS at runtime */
17053 (void)getrandom(buffer, buflen, flags);
17054 return 0;
17055 }
17056
17057
17058_ACEOF
17059if ac_fn_c_try_link "$LINENO"; then :
17060 have_getrandom=yes
17061else
17062 have_getrandom=no
17063fi
17064rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
17067$as_echo "$have_getrandom" >&6; }
17068
17069if test "$have_getrandom" = yes; then
17070
17071$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
17072
17073fi
17074
Christian Heimesff5be6e2018-01-20 12:19:2117075# Check for usable OpenSSL
17076
17077 found=false
17078
17079# Check whether --with-openssl was given.
17080if test "${with_openssl+set}" = set; then :
17081 withval=$with_openssl;
17082 case "$withval" in
17083 "" | y | ye | yes | n | no)
17084 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
17085 ;;
17086 *) ssldirs="$withval"
17087 ;;
17088 esac
17089
17090else
17091
17092 # if pkg-config is installed and openssl has installed a .pc file,
17093 # then use that information and don't search ssldirs
17094 if test -n "$ac_tool_prefix"; then
17095 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17096set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098$as_echo_n "checking for $ac_word... " >&6; }
17099if ${ac_cv_prog_PKG_CONFIG+:} false; then :
17100 $as_echo_n "(cached) " >&6
17101else
17102 if test -n "$PKG_CONFIG"; then
17103 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17104else
17105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106for as_dir in $PATH
17107do
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 break 2
17115 fi
17116done
17117 done
17118IFS=$as_save_IFS
17119
17120fi
17121fi
17122PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17123if test -n "$PKG_CONFIG"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17125$as_echo "$PKG_CONFIG" >&6; }
17126else
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
17129fi
17130
17131
17132fi
17133if test -z "$ac_cv_prog_PKG_CONFIG"; then
17134 ac_ct_PKG_CONFIG=$PKG_CONFIG
17135 # Extract the first word of "pkg-config", so it can be a program name with args.
17136set dummy pkg-config; ac_word=$2
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17138$as_echo_n "checking for $ac_word... " >&6; }
17139if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
17140 $as_echo_n "(cached) " >&6
17141else
17142 if test -n "$ac_ct_PKG_CONFIG"; then
17143 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17144else
17145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17146for as_dir in $PATH
17147do
17148 IFS=$as_save_IFS
17149 test -z "$as_dir" && as_dir=.
17150 for ac_exec_ext in '' $ac_executable_extensions; do
17151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17152 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17154 break 2
17155 fi
17156done
17157 done
17158IFS=$as_save_IFS
17159
17160fi
17161fi
17162ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17163if test -n "$ac_ct_PKG_CONFIG"; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17165$as_echo "$ac_ct_PKG_CONFIG" >&6; }
17166else
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17168$as_echo "no" >&6; }
17169fi
17170
17171 if test "x$ac_ct_PKG_CONFIG" = x; then
17172 PKG_CONFIG=""
17173 else
17174 case $cross_compiling:$ac_tool_warned in
17175yes:)
17176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17178ac_tool_warned=yes ;;
17179esac
17180 PKG_CONFIG=$ac_ct_PKG_CONFIG
17181 fi
17182else
17183 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17184fi
17185
17186 if test x"$PKG_CONFIG" != x""; then
17187 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17188 if test $? = 0; then
17189 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17190 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17191 found=true
17192 fi
17193 fi
17194
17195 # no such luck; use some default ssldirs
17196 if ! $found; then
17197 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
17198 fi
17199
17200
17201fi
17202
17203
17204
17205 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
17206 # an 'openssl' subdirectory
17207
17208 if ! $found; then
17209 OPENSSL_INCLUDES=
17210 for ssldir in $ssldirs; do
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17212$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17213 if test -f "$ssldir/include/openssl/ssl.h"; then
17214 OPENSSL_INCLUDES="-I$ssldir/include"
17215 OPENSSL_LDFLAGS="-L$ssldir/lib"
17216 OPENSSL_LIBS="-lssl -lcrypto"
17217 found=true
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17219$as_echo "yes" >&6; }
17220 break
17221 else
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17223$as_echo "no" >&6; }
17224 fi
17225 done
17226
17227 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
17228 # it will just work!
17229 fi
17230
17231 # try the preprocessor and linker with our new flags,
17232 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
17233
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
17235$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
17236 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
17237 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
17238
17239 save_LIBS="$LIBS"
17240 save_LDFLAGS="$LDFLAGS"
17241 save_CPPFLAGS="$CPPFLAGS"
17242 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17243 LIBS="$OPENSSL_LIBS $LIBS"
17244 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h. */
17247#include <openssl/ssl.h>
17248int
17249main ()
17250{
17251SSL_new(NULL)
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256if ac_fn_c_try_link "$LINENO"; then :
17257
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17259$as_echo "yes" >&6; }
17260 have_openssl=yes
17261
17262else
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265$as_echo "no" >&6; }
17266 have_openssl=no
17267
17268fi
17269rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271 CPPFLAGS="$save_CPPFLAGS"
17272 LDFLAGS="$save_LDFLAGS"
17273 LIBS="$save_LIBS"
17274
17275
17276
17277
17278
17279
17280if test "$have_openssl" = yes; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5
17282$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; }
17283
17284 save_LIBS="$LIBS"
17285 save_LDFLAGS="$LDFLAGS"
17286 save_CPPFLAGS="$CPPFLAGS"
17287 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17288 LIBS="$OPENSSL_LIBS $LIBS"
17289 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17290
17291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17292/* end confdefs.h. */
17293
17294 #include <openssl/x509_vfy.h>
17295
17296int
17297main ()
17298{
17299
17300 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
17301 X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
17302 X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1");
17303 X509_VERIFY_PARAM_set_hostflags(p, 0);
17304
17305 ;
17306 return 0;
17307}
17308
17309_ACEOF
17310if ac_fn_c_try_link "$LINENO"; then :
17311
17312 ac_cv_has_x509_verify_param_set1_host=yes
17313
17314else
17315
17316 ac_cv_has_x509_verify_param_set1_host=no
17317
17318fi
17319rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5
17322$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; }
17323 if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then
17324
17325$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
17326
17327 fi
17328
17329 CPPFLAGS="$save_CPPFLAGS"
17330 LDFLAGS="$save_LDFLAGS"
17331 LIBS="$save_LIBS"
17332fi
17333
Christian Heimes892d66e2018-01-29 13:10:1817334# ssl module default cipher suite string
17335
17336
17337
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
17339$as_echo_n "checking for --with-ssl-default-suites... " >&6; }
17340
17341# Check whether --with-ssl-default-suites was given.
17342if test "${with_ssl_default_suites+set}" = set; then :
17343 withval=$with_ssl_default_suites;
17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17345$as_echo "$withval" >&6; }
17346case "$withval" in
17347 python)
17348 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17349
17350 ;;
17351 openssl)
17352 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
17353
17354 ;;
17355 *)
17356 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
17357
17358 cat >>confdefs.h <<_ACEOF
17359#define PY_SSL_DEFAULT_CIPHER_STRING "$withval"
17360_ACEOF
17361
17362 ;;
17363esac
17364
17365else
17366
17367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
17368$as_echo "python" >&6; }
17369$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
17370
17371
17372fi
17373
17374
17375
Guido van Rossum627b2d71993-12-24 10:39:1617376# generate output files
Antoine Pitroua6a4dc82017-09-07 16:56:2417377ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh"
Martin v. Löwis88afe662002-10-26 13:47:4417378
Antoine Pitrou8e6b4072010-09-10 19:44:4417379ac_config_files="$ac_config_files Modules/ld_so_aix"
17380
Martin v. Löwis11437992002-04-12 09:54:0317381cat >confcache <<\_ACEOF
Guido van Rossum76be6ed1995-01-02 18:33:5417382# This file is a shell script that caches the results of configure
17383# tests run on this system so they can be shared between configure
Martin v. Löwis11437992002-04-12 09:54:0317384# scripts and configure runs, see configure's option --config-cache.
17385# It is not useful on other systems. If it contains results you don't
17386# want to keep, you may remove or edit it.
Guido van Rossum76be6ed1995-01-02 18:33:5417387#
Martin v. Löwis11437992002-04-12 09:54:0317388# config.status only pays attention to the cache file if you give it
17389# the --recheck option to rerun configure.
Guido van Rossum76be6ed1995-01-02 18:33:5417390#
Skip Montanaro6dead952003-09-25 14:50:0417391# `ac_cv_env_foo' variables (set or unset) will be overridden when
Martin v. Löwis11437992002-04-12 09:54:0317392# loading this file, other *unset* `ac_cv_foo' will be assigned the
17393# following values.
17394
17395_ACEOF
17396
Guido van Rossumf78abae1997-01-21 22:02:3617397# The following way of writing the cache mishandles newlines in values,
17398# but we know of no workaround that is simple, portable, and efficient.
Thomas Wouters47b49bf2007-08-30 22:15:3317399# So, we kill variables containing newlines.
Guido van Rossum8ddd0ad1995-06-14 23:10:2817400# Ultrix sh set writes to stderr and can't be redirected directly,
17401# and sets the high bit in the cache file unless we assign to the vars.
Thomas Wouters47b49bf2007-08-30 22:15:3317402(
17403 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17404 eval ac_val=\$$ac_var
17405 case $ac_val in #(
17406 *${as_nl}*)
17407 case $ac_var in #(
Matthias Kloseb9621712010-04-24 17:59:4917408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317410 esac
17411 case $ac_var in #(
17412 _ | IFS | as_nl) ;; #(
Matthias Kloseb9621712010-04-24 17:59:4917413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17414 *) { eval $ac_var=; unset $ac_var;} ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317415 esac ;;
17416 esac
17417 done
17418
Martin v. Löwis11437992002-04-12 09:54:0317419 (set) 2>&1 |
Thomas Wouters47b49bf2007-08-30 22:15:3317420 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17421 *${as_nl}ac_space=\ *)
Matthias Kloseb9621712010-04-24 17:59:4917422 # `set' does not quote correctly, so add quotes: double-quote
17423 # substitution turns \\\\ into \\, and sed turns \\ into \.
Martin v. Löwis11437992002-04-12 09:54:0317424 sed -n \
Skip Montanarof0d5f792004-08-15 14:08:2317425 "s/'/'\\\\''/g;
17426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Thomas Wouters47b49bf2007-08-30 22:15:3317427 ;; #(
Martin v. Löwis11437992002-04-12 09:54:0317428 *)
17429 # `set' quotes correctly as required by POSIX, so do not add quotes.
Thomas Wouters47b49bf2007-08-30 22:15:3317430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Martin v. Löwis11437992002-04-12 09:54:0317431 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317432 esac |
17433 sort
17434) |
Martin v. Löwis11437992002-04-12 09:54:0317435 sed '
Thomas Wouters47b49bf2007-08-30 22:15:3317436 /^ac_cv_env_/b end
Martin v. Löwis11437992002-04-12 09:54:0317437 t clear
Thomas Wouters47b49bf2007-08-30 22:15:3317438 :clear
Martin v. Löwis11437992002-04-12 09:54:0317439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17440 t end
Thomas Wouters47b49bf2007-08-30 22:15:3317441 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17442 :end' >>confcache
17443if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17444 if test -w "$cache_file"; then
Victor Stinnere0be4232011-10-25 11:06:0917445 if test "x$cache_file" != "x/dev/null"; then
Matthias Kloseb9621712010-04-24 17:59:4917446 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17447$as_echo "$as_me: updating cache $cache_file" >&6;}
Victor Stinnere0be4232011-10-25 11:06:0917448 if test ! -f "$cache_file" || test -h "$cache_file"; then
17449 cat confcache >"$cache_file"
17450 else
17451 case $cache_file in #(
17452 */* | ?:*)
17453 mv -f confcache "$cache_file"$$ &&
17454 mv -f "$cache_file"$$ "$cache_file" ;; #(
17455 *)
17456 mv -f confcache "$cache_file" ;;
17457 esac
17458 fi
17459 fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817460 else
Matthias Kloseb9621712010-04-24 17:59:4917461 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17462$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Guido van Rossum8ddd0ad1995-06-14 23:10:2817463 fi
Guido van Rossum76be6ed1995-01-02 18:33:5417464fi
Guido van Rossum8ddd0ad1995-06-14 23:10:2817465rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:4017466
Guido van Rossum76be6ed1995-01-02 18:33:5417467test "x$prefix" = xNONE && prefix=$ac_default_prefix
17468# Let make expand exec_prefix.
17469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:4017470
Guido van Rossum76be6ed1995-01-02 18:33:5417471DEFS=-DHAVE_CONFIG_H
17472
Skip Montanaro6dead952003-09-25 14:50:0417473ac_libobjs=
17474ac_ltlibobjs=
Ross Lagerwallb0ae53d2011-06-10 05:30:3017475U=
Skip Montanaro6dead952003-09-25 14:50:0417476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17477 # 1. Remove the extension, and $U if already installed.
Thomas Wouters47b49bf2007-08-30 22:15:3317478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Matthias Kloseb9621712010-04-24 17:59:4917479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Thomas Wouters47b49bf2007-08-30 22:15:3317480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17481 # will be set to the directory where LIBOBJS objects are built.
Matthias Kloseb9621712010-04-24 17:59:4917482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Skip Montanaro6dead952003-09-25 14:50:0417484done
17485LIBOBJS=$ac_libobjs
17486
17487LTLIBOBJS=$ac_ltlibobjs
17488
17489
Martin v. Löwis11437992002-04-12 09:54:0317490
Matthias Kloseb9621712010-04-24 17:59:4917491
Victor Stinnere0be4232011-10-25 11:06:0917492: "${CONFIG_STATUS=./config.status}"
Matthias Kloseb9621712010-04-24 17:59:4917493ac_write_fail=0
Martin v. Löwis11437992002-04-12 09:54:0317494ac_clean_files_save=$ac_clean_files
17495ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Matthias Kloseb9621712010-04-24 17:59:4917496{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17497$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17498as_write_fail=0
17499cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317500#! $SHELL
17501# Generated by $as_me.
Guido van Rossum627b2d71993-12-24 10:39:1617502# Run this file to recreate the current configuration.
Guido van Rossum76be6ed1995-01-02 18:33:5417503# Compiler output produced by configure, useful for debugging
Martin v. Löwis11437992002-04-12 09:54:0317504# configure, is in config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:1617505
Martin v. Löwis11437992002-04-12 09:54:0317506debug=false
Skip Montanaro6dead952003-09-25 14:50:0417507ac_cs_recheck=false
17508ac_cs_silent=false
Jack Jansendd19cf82001-12-06 22:36:1717509
Matthias Kloseb9621712010-04-24 17:59:4917510SHELL=\${CONFIG_SHELL-$SHELL}
17511export SHELL
17512_ASEOF
17513cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17514## -------------------- ##
17515## M4sh Initialization. ##
17516## -------------------- ##
Jack Jansendd19cf82001-12-06 22:36:1717517
Thomas Wouters47b49bf2007-08-30 22:15:3317518# Be more Bourne compatible
17519DUALCASE=1; export DUALCASE # for MKS sh
Matthias Kloseb9621712010-04-24 17:59:4917520if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Martin v. Löwis11437992002-04-12 09:54:0317521 emulate sh
17522 NULLCMD=:
Matthias Kloseb9621712010-04-24 17:59:4917523 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Skip Montanaro6dead952003-09-25 14:50:0417524 # is contrary to our usage. Disable this feature.
17525 alias -g '${1+"$@"}'='"$@"'
Thomas Wouters47b49bf2007-08-30 22:15:3317526 setopt NO_GLOB_SUBST
Skip Montanaroeb33e5a2007-08-17 12:57:4117527else
Matthias Kloseb9621712010-04-24 17:59:4917528 case `(set -o) 2>/dev/null` in #(
17529 *posix*) :
17530 set -o posix ;; #(
17531 *) :
17532 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317533esac
Michael W. Hudson54241132001-12-07 15:38:2617534fi
Thomas Wouters89f507f2006-12-13 04:49:3017535
17536
Matthias Kloseb9621712010-04-24 17:59:4917537as_nl='
17538'
17539export as_nl
17540# Printing a long string crashes Solaris 7 /usr/bin/printf.
17541as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17544# Prefer a ksh shell builtin over an external printf program on Solaris,
17545# but without wasting forks for bash or zsh.
17546if test -z "$BASH_VERSION$ZSH_VERSION" \
17547 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17548 as_echo='print -r --'
17549 as_echo_n='print -rn --'
17550elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17551 as_echo='printf %s\n'
17552 as_echo_n='printf %s'
17553else
17554 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17555 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17556 as_echo_n='/usr/ucb/echo -n'
17557 else
17558 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17559 as_echo_n_body='eval
17560 arg=$1;
17561 case $arg in #(
17562 *"$as_nl"*)
17563 expr "X$arg" : "X\\(.*\\)$as_nl";
17564 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17565 esac;
17566 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17567 '
17568 export as_echo_n_body
17569 as_echo_n='sh -c $as_echo_n_body as_echo'
17570 fi
17571 export as_echo_body
17572 as_echo='sh -c $as_echo_body as_echo'
17573fi
Martin v. Löwis11437992002-04-12 09:54:0317574
17575# The user is always right.
17576if test "${PATH_SEPARATOR+set}" != set; then
Matthias Kloseb9621712010-04-24 17:59:4917577 PATH_SEPARATOR=:
17578 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17579 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17580 PATH_SEPARATOR=';'
17581 }
Thomas Wouters47b49bf2007-08-30 22:15:3317582fi
Martin v. Löwis11437992002-04-12 09:54:0317583
Thomas Wouters47b49bf2007-08-30 22:15:3317584
17585# IFS
17586# We need space, tab and new line, in precisely that order. Quoting is
17587# there to prevent editors from complaining about space-tab.
17588# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17589# splitting by setting IFS to empty value.)
Thomas Wouters47b49bf2007-08-30 22:15:3317590IFS=" "" $as_nl"
17591
17592# Find who we are. Look in the path if we contain no directory separator.
Victor Stinnere0be4232011-10-25 11:06:0917593as_myself=
Matthias Kloseb9621712010-04-24 17:59:4917594case $0 in #((
Thomas Wouters47b49bf2007-08-30 22:15:3317595 *[\\/]* ) as_myself=$0 ;;
17596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Martin v. Löwis11437992002-04-12 09:54:0317597for as_dir in $PATH
17598do
17599 IFS=$as_save_IFS
17600 test -z "$as_dir" && as_dir=.
Matthias Kloseb9621712010-04-24 17:59:4917601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17602 done
Thomas Wouters47b49bf2007-08-30 22:15:3317603IFS=$as_save_IFS
Martin v. Löwis11437992002-04-12 09:54:0317604
Thomas Wouters47b49bf2007-08-30 22:15:3317605 ;;
17606esac
17607# We did not find ourselves, most probably we were run as `sh COMMAND'
17608# in which case we are not to be found in the path.
17609if test "x$as_myself" = x; then
17610 as_myself=$0
17611fi
17612if test ! -f "$as_myself"; then
Matthias Kloseb9621712010-04-24 17:59:4917613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17614 exit 1
Thomas Wouters47b49bf2007-08-30 22:15:3317615fi
17616
Matthias Kloseb9621712010-04-24 17:59:4917617# Unset variables that we do not need and which cause bugs (e.g. in
17618# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17619# suppresses any "Segmentation fault" message there. '((' could
17620# trigger a bug in pdksh 5.2.14.
17621for as_var in BASH_ENV ENV MAIL MAILPATH
17622do eval test x\${$as_var+set} = xset \
17623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Thomas Wouters47b49bf2007-08-30 22:15:3317624done
17625PS1='$ '
17626PS2='> '
17627PS4='+ '
17628
17629# NLS nuisances.
Matthias Kloseb9621712010-04-24 17:59:4917630LC_ALL=C
17631export LC_ALL
17632LANGUAGE=C
17633export LANGUAGE
Thomas Wouters47b49bf2007-08-30 22:15:3317634
Matthias Kloseb9621712010-04-24 17:59:4917635# CDPATH.
17636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17637
17638
Ross Lagerwallb0ae53d2011-06-10 05:30:3017639# as_fn_error STATUS ERROR [LINENO LOG_FD]
17640# ----------------------------------------
Matthias Kloseb9621712010-04-24 17:59:4917641# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17642# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Ross Lagerwallb0ae53d2011-06-10 05:30:3017643# script with STATUS, using 1 if that was 0.
Matthias Kloseb9621712010-04-24 17:59:4917644as_fn_error ()
17645{
Ross Lagerwallb0ae53d2011-06-10 05:30:3017646 as_status=$1; test $as_status -eq 0 && as_status=1
17647 if test "$4"; then
17648 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Matthias Kloseb9621712010-04-24 17:59:4917650 fi
Ross Lagerwallb0ae53d2011-06-10 05:30:3017651 $as_echo "$as_me: error: $2" >&2
Matthias Kloseb9621712010-04-24 17:59:4917652 as_fn_exit $as_status
17653} # as_fn_error
17654
17655
17656# as_fn_set_status STATUS
17657# -----------------------
17658# Set $? to STATUS, without forking.
17659as_fn_set_status ()
17660{
17661 return $1
17662} # as_fn_set_status
17663
17664# as_fn_exit STATUS
17665# -----------------
17666# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17667as_fn_exit ()
17668{
17669 set +e
17670 as_fn_set_status $1
17671 exit $1
17672} # as_fn_exit
17673
17674# as_fn_unset VAR
17675# ---------------
17676# Portably unset VAR.
17677as_fn_unset ()
17678{
17679 { eval $1=; unset $1;}
17680}
17681as_unset=as_fn_unset
17682# as_fn_append VAR VALUE
17683# ----------------------
17684# Append the text in VALUE to the end of the definition contained in VAR. Take
17685# advantage of any shell optimizations that allow amortized linear growth over
17686# repeated appends, instead of the typical quadratic growth present in naive
17687# implementations.
17688if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17689 eval 'as_fn_append ()
17690 {
17691 eval $1+=\$2
17692 }'
17693else
17694 as_fn_append ()
17695 {
17696 eval $1=\$$1\$2
17697 }
17698fi # as_fn_append
17699
17700# as_fn_arith ARG...
17701# ------------------
17702# Perform arithmetic evaluation on the ARGs, and store the result in the
17703# global $as_val. Take advantage of shells that can avoid forks. The arguments
17704# must be portable across $(()) and expr.
17705if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17706 eval 'as_fn_arith ()
17707 {
17708 as_val=$(( $* ))
17709 }'
17710else
17711 as_fn_arith ()
17712 {
17713 as_val=`expr "$@" || test $? -eq 1`
17714 }
17715fi # as_fn_arith
17716
17717
Thomas Wouters47b49bf2007-08-30 22:15:3317718if expr a : '\(a\)' >/dev/null 2>&1 &&
17719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17720 as_expr=expr
17721else
17722 as_expr=false
17723fi
17724
17725if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17726 as_basename=basename
17727else
17728 as_basename=false
17729fi
17730
Matthias Kloseb9621712010-04-24 17:59:4917731if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17732 as_dirname=dirname
17733else
17734 as_dirname=false
17735fi
Thomas Wouters47b49bf2007-08-30 22:15:3317736
Thomas Wouters47b49bf2007-08-30 22:15:3317737as_me=`$as_basename -- "$0" ||
17738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17739 X"$0" : 'X\(//\)$' \| \
17740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4917741$as_echo X/"$0" |
Thomas Wouters47b49bf2007-08-30 22:15:3317742 sed '/^.*\/\([^/][^/]*\)\/*$/{
17743 s//\1/
17744 q
17745 }
17746 /^X\/\(\/\/\)$/{
17747 s//\1/
17748 q
17749 }
17750 /^X\/\(\/\).*/{
17751 s//\1/
17752 q
17753 }
17754 s/.*/./; q'`
17755
Matthias Kloseb9621712010-04-24 17:59:4917756# Avoid depending upon Character Ranges.
17757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17760as_cr_digits='0123456789'
17761as_cr_alnum=$as_cr_Letters$as_cr_digits
Thomas Wouters47b49bf2007-08-30 22:15:3317762
17763ECHO_C= ECHO_N= ECHO_T=
Matthias Kloseb9621712010-04-24 17:59:4917764case `echo -n x` in #(((((
Thomas Wouters47b49bf2007-08-30 22:15:3317765-n*)
Matthias Kloseb9621712010-04-24 17:59:4917766 case `echo 'xy\c'` in
Thomas Wouters47b49bf2007-08-30 22:15:3317767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Matthias Kloseb9621712010-04-24 17:59:4917768 xy) ECHO_C='\c';;
17769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17770 ECHO_T=' ';;
Thomas Wouters47b49bf2007-08-30 22:15:3317771 esac;;
17772*)
17773 ECHO_N='-n';;
Martin v. Löwis11437992002-04-12 09:54:0317774esac
Ronald Oussoren74f29b42009-09-20 20:09:2617775
Martin v. Löwis11437992002-04-12 09:54:0317776rm -f conf$$ conf$$.exe conf$$.file
Thomas Wouters47b49bf2007-08-30 22:15:3317777if test -d conf$$.dir; then
17778 rm -f conf$$.dir/conf$$.file
17779else
17780 rm -f conf$$.dir
Matthias Kloseb9621712010-04-24 17:59:4917781 mkdir conf$$.dir 2>/dev/null
Thomas Wouters47b49bf2007-08-30 22:15:3317782fi
Matthias Kloseb9621712010-04-24 17:59:4917783if (echo >conf$$.file) 2>/dev/null; then
17784 if ln -s conf$$.file conf$$ 2>/dev/null; then
17785 as_ln_s='ln -s'
17786 # ... but there are two gotchas:
17787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Ross Lagerwall1b863eb2012-10-29 17:31:5417789 # In both cases, we have to default to `cp -pR'.
Matthias Kloseb9621712010-04-24 17:59:4917790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Ross Lagerwall1b863eb2012-10-29 17:31:5417791 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917792 elif ln conf$$.file conf$$ 2>/dev/null; then
17793 as_ln_s=ln
17794 else
Ross Lagerwall1b863eb2012-10-29 17:31:5417795 as_ln_s='cp -pR'
Matthias Kloseb9621712010-04-24 17:59:4917796 fi
Martin v. Löwis11437992002-04-12 09:54:0317797else
Ross Lagerwall1b863eb2012-10-29 17:31:5417798 as_ln_s='cp -pR'
Martin v. Löwis11437992002-04-12 09:54:0317799fi
Thomas Wouters47b49bf2007-08-30 22:15:3317800rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17801rmdir conf$$.dir 2>/dev/null
Martin v. Löwis11437992002-04-12 09:54:0317802
Matthias Kloseb9621712010-04-24 17:59:4917803
17804# as_fn_mkdir_p
17805# -------------
17806# Create "$as_dir" as a directory, including parents if necessary.
17807as_fn_mkdir_p ()
17808{
17809
17810 case $as_dir in #(
17811 -*) as_dir=./$as_dir;;
17812 esac
17813 test -d "$as_dir" || eval $as_mkdir_p || {
17814 as_dirs=
17815 while :; do
17816 case $as_dir in #(
17817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17818 *) as_qdir=$as_dir;;
17819 esac
17820 as_dirs="'$as_qdir' $as_dirs"
17821 as_dir=`$as_dirname -- "$as_dir" ||
17822$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823 X"$as_dir" : 'X\(//\)[^/]' \| \
17824 X"$as_dir" : 'X\(//\)$' \| \
17825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17826$as_echo X"$as_dir" |
17827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17828 s//\1/
17829 q
17830 }
17831 /^X\(\/\/\)[^/].*/{
17832 s//\1/
17833 q
17834 }
17835 /^X\(\/\/\)$/{
17836 s//\1/
17837 q
17838 }
17839 /^X\(\/\).*/{
17840 s//\1/
17841 q
17842 }
17843 s/.*/./; q'`
17844 test -d "$as_dir" && break
17845 done
17846 test -z "$as_dirs" || eval "mkdir $as_dirs"
Ross Lagerwallb0ae53d2011-06-10 05:30:3017847 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Matthias Kloseb9621712010-04-24 17:59:4917848
17849
17850} # as_fn_mkdir_p
Skip Montanaro6dead952003-09-25 14:50:0417851if mkdir -p . 2>/dev/null; then
Matthias Kloseb9621712010-04-24 17:59:4917852 as_mkdir_p='mkdir -p "$as_dir"'
Skip Montanaro6dead952003-09-25 14:50:0417853else
Skip Montanarof0d5f792004-08-15 14:08:2317854 test -d ./-p && rmdir ./-p
Skip Montanaro6dead952003-09-25 14:50:0417855 as_mkdir_p=false
17856fi
17857
Ross Lagerwall1b863eb2012-10-29 17:31:5417858
17859# as_fn_executable_p FILE
17860# -----------------------
17861# Test if FILE is an executable regular file.
17862as_fn_executable_p ()
17863{
17864 test -f "$1" && test -x "$1"
17865} # as_fn_executable_p
17866as_test_x='test -x'
17867as_executable_p=as_fn_executable_p
Martin v. Löwis11437992002-04-12 09:54:0317868
17869# Sed expression to map a string onto a valid CPP name.
Skip Montanarof0d5f792004-08-15 14:08:2317870as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0317871
17872# Sed expression to map a string onto a valid variable name.
Skip Montanarof0d5f792004-08-15 14:08:2317873as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Martin v. Löwis11437992002-04-12 09:54:0317874
17875
Martin v. Löwis11437992002-04-12 09:54:0317876exec 6>&1
Matthias Kloseb9621712010-04-24 17:59:4917877## ----------------------------------- ##
17878## Main body of $CONFIG_STATUS script. ##
17879## ----------------------------------- ##
17880_ASEOF
17881test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317882
Matthias Kloseb9621712010-04-24 17:59:4917883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884# Save the log message, to keep $0 and so on meaningful, and to
Martin v. Löwis11437992002-04-12 09:54:0317885# report actual input values of CONFIG_FILES etc. instead of their
Thomas Wouters47b49bf2007-08-30 22:15:3317886# values after options handling.
17887ac_log="
Ned Deily4829bc62016-09-12 21:29:0417888This file was extended by python $as_me 3.7, which was
Ross Lagerwall1b863eb2012-10-29 17:31:5417889generated by GNU Autoconf 2.69. Invocation command line was
Martin v. Löwis11437992002-04-12 09:54:0317890
17891 CONFIG_FILES = $CONFIG_FILES
17892 CONFIG_HEADERS = $CONFIG_HEADERS
17893 CONFIG_LINKS = $CONFIG_LINKS
17894 CONFIG_COMMANDS = $CONFIG_COMMANDS
17895 $ $0 $@
17896
Thomas Wouters47b49bf2007-08-30 22:15:3317897on `(hostname || uname -n) 2>/dev/null | sed 1q`
17898"
17899
Martin v. Löwis11437992002-04-12 09:54:0317900_ACEOF
17901
Matthias Kloseb9621712010-04-24 17:59:4917902case $ac_config_files in *"
17903"*) set x $ac_config_files; shift; ac_config_files=$*;;
17904esac
17905
17906case $ac_config_headers in *"
17907"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17908esac
17909
17910
17911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317912# Files that config.status was made for.
Charles-François Natali6613c182011-11-27 11:41:0617913config_files="$ac_config_files"
17914config_headers="$ac_config_headers"
Martin v. Löwis11437992002-04-12 09:54:0317915
Thomas Wouters47b49bf2007-08-30 22:15:3317916_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0317917
Matthias Kloseb9621712010-04-24 17:59:4917918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0317919ac_cs_usage="\
Matthias Kloseb9621712010-04-24 17:59:4917920\`$as_me' instantiates files and other configuration actions
17921from templates according to the current configuration. Unless the files
17922and actions are specified as TAGs, all are instantiated by default.
Martin v. Löwis11437992002-04-12 09:54:0317923
Matthias Kloseb9621712010-04-24 17:59:4917924Usage: $0 [OPTION]... [TAG]...
Martin v. Löwis11437992002-04-12 09:54:0317925
17926 -h, --help print this help, then exit
Thomas Wouters47b49bf2007-08-30 22:15:3317927 -V, --version print version number and configuration settings, then exit
Matthias Kloseb9621712010-04-24 17:59:4917928 --config print configuration, then exit
17929 -q, --quiet, --silent
17930 do not print progress messages
Martin v. Löwis11437992002-04-12 09:54:0317931 -d, --debug don't remove temporary files
17932 --recheck update $as_me by reconfiguring in the same conditions
Matthias Kloseb9621712010-04-24 17:59:4917933 --file=FILE[:TEMPLATE]
17934 instantiate the configuration file FILE
17935 --header=FILE[:TEMPLATE]
17936 instantiate the configuration header FILE
Martin v. Löwis11437992002-04-12 09:54:0317937
17938Configuration files:
17939$config_files
17940
17941Configuration headers:
17942$config_headers
17943
Ned Deily61e371a2022-09-06 06:57:1717944Report bugs to <https://github.com/python/cpython/issues/>."
Skip Montanaroeb33e5a2007-08-17 12:57:4117945
Thomas Wouters47b49bf2007-08-30 22:15:3317946_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4917947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17948ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Martin v. Löwis11437992002-04-12 09:54:0317949ac_cs_version="\\
Ned Deily4829bc62016-09-12 21:29:0417950python config.status 3.7
Ross Lagerwall1b863eb2012-10-29 17:31:5417951configured by $0, generated by GNU Autoconf 2.69,
Matthias Kloseb9621712010-04-24 17:59:4917952 with options \\"\$ac_cs_config\\"
Martin v. Löwis11437992002-04-12 09:54:0317953
Ross Lagerwall1b863eb2012-10-29 17:31:5417954Copyright (C) 2012 Free Software Foundation, Inc.
Martin v. Löwis11437992002-04-12 09:54:0317955This config.status script is free software; the Free Software Foundation
17956gives unlimited permission to copy, distribute and modify it."
Thomas Wouters47b49bf2007-08-30 22:15:3317957
17958ac_pwd='$ac_pwd'
17959srcdir='$srcdir'
17960INSTALL='$INSTALL'
Matthias Klose93a0ef12012-03-15 17:08:3417961MKDIR_P='$MKDIR_P'
Matthias Kloseb9621712010-04-24 17:59:4917962test -n "\$AWK" || AWK=awk
Martin v. Löwis11437992002-04-12 09:54:0317963_ACEOF
17964
Matthias Kloseb9621712010-04-24 17:59:4917965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17966# The default lists apply if the user does not specify any file.
Martin v. Löwis11437992002-04-12 09:54:0317967ac_need_defaults=:
17968while test $# != 0
17969do
17970 case $1 in
Ross Lagerwallb0ae53d2011-06-10 05:30:3017971 --*=?*)
Thomas Wouters47b49bf2007-08-30 22:15:3317972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Skip Montanaro6dead952003-09-25 14:50:0417974 ac_shift=:
Martin v. Löwis11437992002-04-12 09:54:0317975 ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3017976 --*=)
17977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17978 ac_optarg=
17979 ac_shift=:
17980 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317981 *)
Skip Montanaro6dead952003-09-25 14:50:0417982 ac_option=$1
17983 ac_optarg=$2
17984 ac_shift=shift
17985 ;;
Martin v. Löwis11437992002-04-12 09:54:0317986 esac
17987
Skip Montanaro6dead952003-09-25 14:50:0417988 case $ac_option in
Martin v. Löwis11437992002-04-12 09:54:0317989 # Handling of the options.
Skip Montanaro6dead952003-09-25 14:50:0417990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17991 ac_cs_recheck=: ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Matthias Kloseb9621712010-04-24 17:59:4917993 $as_echo "$ac_cs_version"; exit ;;
17994 --config | --confi | --conf | --con | --co | --c )
17995 $as_echo "$ac_cs_config"; exit ;;
Thomas Wouters47b49bf2007-08-30 22:15:3317996 --debug | --debu | --deb | --de | --d | -d )
Martin v. Löwis11437992002-04-12 09:54:0317997 debug=: ;;
17998 --file | --fil | --fi | --f )
Skip Montanaro6dead952003-09-25 14:50:0417999 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4918000 case $ac_optarg in
18001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Ross Lagerwallb0ae53d2011-06-10 05:30:3018002 '') as_fn_error $? "missing file argument" ;;
Matthias Kloseb9621712010-04-24 17:59:4918003 esac
18004 as_fn_append CONFIG_FILES " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0318005 ac_need_defaults=false;;
18006 --header | --heade | --head | --hea )
Skip Montanaro6dead952003-09-25 14:50:0418007 $ac_shift
Matthias Kloseb9621712010-04-24 17:59:4918008 case $ac_optarg in
18009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18010 esac
18011 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Martin v. Löwis11437992002-04-12 09:54:0318012 ac_need_defaults=false;;
Thomas Wouters47b49bf2007-08-30 22:15:3318013 --he | --h)
18014 # Conflict between --help and --header
Ross Lagerwallb0ae53d2011-06-10 05:30:3018015 as_fn_error $? "ambiguous option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4918016Try \`$0 --help' for more information.";;
Thomas Wouters47b49bf2007-08-30 22:15:3318017 --help | --hel | -h )
Matthias Kloseb9621712010-04-24 17:59:4918018 $as_echo "$ac_cs_usage"; exit ;;
Skip Montanaro6dead952003-09-25 14:50:0418019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18021 ac_cs_silent=: ;;
Martin v. Löwis11437992002-04-12 09:54:0318022
18023 # This is an error.
Ross Lagerwallb0ae53d2011-06-10 05:30:3018024 -*) as_fn_error $? "unrecognized option: \`$1'
Matthias Kloseb9621712010-04-24 17:59:4918025Try \`$0 --help' for more information." ;;
Martin v. Löwis11437992002-04-12 09:54:0318026
Matthias Kloseb9621712010-04-24 17:59:4918027 *) as_fn_append ac_config_targets " $1"
Thomas Wouters47b49bf2007-08-30 22:15:3318028 ac_need_defaults=false ;;
Martin v. Löwis11437992002-04-12 09:54:0318029
18030 esac
18031 shift
18032done
18033
Skip Montanaro6dead952003-09-25 14:50:0418034ac_configure_extra_args=
18035
18036if $ac_cs_silent; then
18037 exec 6>/dev/null
18038 ac_configure_extra_args="$ac_configure_extra_args --silent"
18039fi
18040
18041_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Skip Montanaro6dead952003-09-25 14:50:0418043if \$ac_cs_recheck; then
Ross Lagerwall1b863eb2012-10-29 17:31:5418044 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Matthias Kloseb9621712010-04-24 17:59:4918045 shift
18046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18047 CONFIG_SHELL='$SHELL'
Thomas Wouters47b49bf2007-08-30 22:15:3318048 export CONFIG_SHELL
Matthias Kloseb9621712010-04-24 17:59:4918049 exec "\$@"
Skip Montanaro6dead952003-09-25 14:50:0418050fi
18051
Martin v. Löwis11437992002-04-12 09:54:0318052_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318054exec 5>>config.log
18055{
18056 echo
18057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18058## Running $as_me. ##
18059_ASBOX
Matthias Kloseb9621712010-04-24 17:59:4918060 $as_echo "$ac_log"
Thomas Wouters47b49bf2007-08-30 22:15:3318061} >&5
Martin v. Löwis11437992002-04-12 09:54:0318062
Thomas Wouters47b49bf2007-08-30 22:15:3318063_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318065_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0318066
Matthias Kloseb9621712010-04-24 17:59:4918067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318068
18069# Handling of arguments.
Martin v. Löwis11437992002-04-12 09:54:0318070for ac_config_target in $ac_config_targets
18071do
Thomas Wouters47b49bf2007-08-30 22:15:3318072 case $ac_config_target in
18073 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
18074 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
18075 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
Christian Heimes81ee3ef2008-05-04 22:42:0118076 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
18077 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318078 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
Antoine Pitrou20327222009-05-24 20:39:1118079 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
doko@python.org87421192013-01-26 10:39:3118080 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
Antoine Pitrou8e6b4072010-09-10 19:44:4418081 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318082
Victor Stinnere0be4232011-10-25 11:06:0918083 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Martin v. Löwis11437992002-04-12 09:54:0318084 esac
18085done
18086
Thomas Wouters47b49bf2007-08-30 22:15:3318087
Martin v. Löwis11437992002-04-12 09:54:0318088# If the user did not use the arguments to specify the items to instantiate,
18089# then the envvar interface is used. Set only those that are not.
18090# We use the long form for the default assignment because of an extremely
18091# bizarre bug on SunOS 4.1.3.
18092if $ac_need_defaults; then
18093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18095fi
18096
Skip Montanaro6dead952003-09-25 14:50:0418097# Have a temporary directory for convenience. Make it in the build tree
Thomas Wouters47b49bf2007-08-30 22:15:3318098# simply because there is no reason against having it here, and in addition,
Skip Montanaro6dead952003-09-25 14:50:0418099# creating and moving files from /tmp can sometimes cause problems.
Thomas Wouters47b49bf2007-08-30 22:15:3318100# Hook for its removal unless debugging.
18101# Note that there is a small window in which the directory will not be cleaned:
18102# after its creation but before its name has been assigned to `$tmp'.
Martin v. Löwis11437992002-04-12 09:54:0318103$debug ||
18104{
Victor Stinnere0be4232011-10-25 11:06:0918105 tmp= ac_tmp=
Thomas Wouters47b49bf2007-08-30 22:15:3318106 trap 'exit_status=$?
Victor Stinnere0be4232011-10-25 11:06:0918107 : "${ac_tmp:=$tmp}"
18108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Thomas Wouters47b49bf2007-08-30 22:15:3318109' 0
Matthias Kloseb9621712010-04-24 17:59:4918110 trap 'as_fn_exit 1' 1 2 13 15
Martin v. Löwis11437992002-04-12 09:54:0318111}
Martin v. Löwis11437992002-04-12 09:54:0318112# Create a (secure) tmp directory for tmp files.
Skip Montanaro6dead952003-09-25 14:50:0418113
Martin v. Löwis11437992002-04-12 09:54:0318114{
Thomas Wouters47b49bf2007-08-30 22:15:3318115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Victor Stinnere0be4232011-10-25 11:06:0918116 test -d "$tmp"
Martin v. Löwis11437992002-04-12 09:54:0318117} ||
18118{
Thomas Wouters47b49bf2007-08-30 22:15:3318119 tmp=./conf$$-$RANDOM
18120 (umask 077 && mkdir "$tmp")
Ross Lagerwallb0ae53d2011-06-10 05:30:3018121} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0918122ac_tmp=$tmp
Martin v. Löwis11437992002-04-12 09:54:0318123
Matthias Kloseb9621712010-04-24 17:59:4918124# Set up the scripts for CONFIG_FILES section.
18125# No need to generate them if there are no CONFIG_FILES.
18126# This happens for instance with `./config.status config.h'.
Thomas Wouters47b49bf2007-08-30 22:15:3318127if test -n "$CONFIG_FILES"; then
Martin v. Löwis11437992002-04-12 09:54:0318128
Matthias Kloseb9621712010-04-24 17:59:4918129
18130ac_cr=`echo X | tr X '\015'`
18131# On cygwin, bash can eat \r inside `` if the user requested igncr.
18132# But we know of no other shell where ac_cr would be empty at this
18133# point, so we can use a bashism as a fallback.
18134if test "x$ac_cr" = x; then
18135 eval ac_cr=\$\'\\r\'
18136fi
18137ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18138if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018139 ac_cs_awk_cr='\\r'
Matthias Kloseb9621712010-04-24 17:59:4918140else
18141 ac_cs_awk_cr=$ac_cr
18142fi
18143
Victor Stinnere0be4232011-10-25 11:06:0918144echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Martin v. Löwis11437992002-04-12 09:54:0318145_ACEOF
18146
Thomas Wouters47b49bf2007-08-30 22:15:3318147
Matthias Kloseb9621712010-04-24 17:59:4918148{
18149 echo "cat >conf$$subs.awk <<_ACEOF" &&
18150 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18151 echo "_ACEOF"
18152} >conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18154ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Thomas Wouters47b49bf2007-08-30 22:15:3318155ac_delim='%!_!# '
18156for ac_last_try in false false false false false :; do
Matthias Kloseb9621712010-04-24 17:59:4918157 . ./conf$$subs.sh ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318159
Matthias Kloseb9621712010-04-24 17:59:4918160 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18161 if test $ac_delim_n = $ac_delim_num; then
Thomas Wouters47b49bf2007-08-30 22:15:3318162 break
18163 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318165 else
18166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Martin v. Löwis11437992002-04-12 09:54:0318167 fi
Thomas Wouters47b49bf2007-08-30 22:15:3318168done
Matthias Kloseb9621712010-04-24 17:59:4918169rm -f conf$$subs.sh
Thomas Wouters47b49bf2007-08-30 22:15:3318170
Matthias Kloseb9621712010-04-24 17:59:4918171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Victor Stinnere0be4232011-10-25 11:06:0918172cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Thomas Wouters47b49bf2007-08-30 22:15:3318173_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918174sed -n '
18175h
18176s/^/S["/; s/!.*/"]=/
18177p
18178g
18179s/^[^!]*!//
18180:repl
18181t repl
18182s/'"$ac_delim"'$//
18183t delim
18184:nl
18185h
18186s/\(.\{148\}\)..*/\1/
18187t more1
18188s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18189p
18190n
18191b repl
18192:more1
18193s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18194p
18195g
18196s/.\{148\}//
18197t nl
18198:delim
18199h
18200s/\(.\{148\}\)..*/\1/
18201t more2
18202s/["\\]/\\&/g; s/^/"/; s/$/"/
18203p
18204b
18205:more2
18206s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18207p
18208g
18209s/.\{148\}//
18210t delim
18211' <conf$$subs.awk | sed '
18212/^[^""]/{
18213 N
18214 s/\n//
18215}
18216' >>$CONFIG_STATUS || ac_write_fail=1
18217rm -f conf$$subs.awk
18218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18219_ACAWK
Victor Stinnere0be4232011-10-25 11:06:0918220cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Matthias Kloseb9621712010-04-24 17:59:4918221 for (key in S) S_is_set[key] = 1
18222 FS = ""
18223
18224}
18225{
18226 line = $ 0
18227 nfields = split(line, field, "@")
18228 substed = 0
18229 len = length(field[1])
18230 for (i = 2; i < nfields; i++) {
18231 key = field[i]
18232 keylen = length(key)
18233 if (S_is_set[key]) {
18234 value = S[key]
18235 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18236 len += length(value) + length(field[++i])
18237 substed = 1
18238 } else
18239 len += 1 + keylen
18240 }
18241
18242 print line
18243}
18244
18245_ACAWK
Thomas Wouters47b49bf2007-08-30 22:15:3318246_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18248if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18249 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18250else
18251 cat
Victor Stinnere0be4232011-10-25 11:06:0918252fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018253 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Ronald Oussoren74f29b42009-09-20 20:09:2618254_ACEOF
18255
Ross Lagerwallb0ae53d2011-06-10 05:30:3018256# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18257# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Thomas Wouters47b49bf2007-08-30 22:15:3318258# trailing colons and then remove the whole line if VPATH becomes empty
18259# (actually we leave an empty line to preserve line numbers).
18260if test "x$srcdir" = x.; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018261 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18262h
18263s///
18264s/^/:/
18265s/[ ]*$/:/
18266s/:\$(srcdir):/:/g
18267s/:\${srcdir}:/:/g
18268s/:@srcdir@:/:/g
18269s/^:*//
Thomas Wouters47b49bf2007-08-30 22:15:3318270s/:*$//
Ross Lagerwallb0ae53d2011-06-10 05:30:3018271x
18272s/\(=[ ]*\).*/\1/
18273G
18274s/\n//
Thomas Wouters47b49bf2007-08-30 22:15:3318275s/^[^=]*=[ ]*$//
18276}'
18277fi
18278
Matthias Kloseb9621712010-04-24 17:59:4918279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318280fi # test -n "$CONFIG_FILES"
18281
Matthias Kloseb9621712010-04-24 17:59:4918282# Set up the scripts for CONFIG_HEADERS section.
18283# No need to generate them if there are no CONFIG_HEADERS.
18284# This happens for instance with `./config.status Makefile'.
18285if test -n "$CONFIG_HEADERS"; then
Victor Stinnere0be4232011-10-25 11:06:0918286cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Matthias Kloseb9621712010-04-24 17:59:4918287BEGIN {
18288_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3318289
Matthias Kloseb9621712010-04-24 17:59:4918290# Transform confdefs.h into an awk script `defines.awk', embedded as
18291# here-document in config.status, that substitutes the proper values into
18292# config.h.in to produce config.h.
18293
18294# Create a delimiter string that does not exist in confdefs.h, to ease
18295# handling of long lines.
18296ac_delim='%!_!# '
18297for ac_last_try in false false :; do
Victor Stinnere0be4232011-10-25 11:06:0918298 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18299 if test -z "$ac_tt"; then
Matthias Kloseb9621712010-04-24 17:59:4918300 break
18301 elif $ac_last_try; then
Ross Lagerwallb0ae53d2011-06-10 05:30:3018302 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918303 else
18304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18305 fi
18306done
18307
18308# For the awk script, D is an array of macro values keyed by name,
18309# likewise P contains macro parameters if any. Preserve backslash
18310# newline sequences.
18311
18312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18313sed -n '
18314s/.\{148\}/&'"$ac_delim"'/g
18315t rset
18316:rset
18317s/^[ ]*#[ ]*define[ ][ ]*/ /
18318t def
18319d
18320:def
18321s/\\$//
18322t bsnl
18323s/["\\]/\\&/g
18324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18325D["\1"]=" \3"/p
18326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18327d
18328:bsnl
18329s/["\\]/\\&/g
18330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18331D["\1"]=" \3\\\\\\n"\\/p
18332t cont
18333s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18334t cont
18335d
18336:cont
18337n
18338s/.\{148\}/&'"$ac_delim"'/g
18339t clear
18340:clear
18341s/\\$//
18342t bsnlc
18343s/["\\]/\\&/g; s/^/"/; s/$/"/p
18344d
18345:bsnlc
18346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18347b cont
18348' <confdefs.h | sed '
18349s/'"$ac_delim"'/"\\\
18350"/g' >>$CONFIG_STATUS || ac_write_fail=1
18351
18352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18353 for (key in D) D_is_set[key] = 1
18354 FS = ""
18355}
18356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18357 line = \$ 0
18358 split(line, arg, " ")
18359 if (arg[1] == "#") {
18360 defundef = arg[2]
18361 mac1 = arg[3]
18362 } else {
18363 defundef = substr(arg[1], 2)
18364 mac1 = arg[2]
18365 }
18366 split(mac1, mac2, "(") #)
18367 macro = mac2[1]
18368 prefix = substr(line, 1, index(line, defundef) - 1)
18369 if (D_is_set[macro]) {
18370 # Preserve the white space surrounding the "#".
18371 print prefix "define", macro P[macro] D[macro]
18372 next
18373 } else {
18374 # Replace #undef with comments. This is necessary, for example,
18375 # in the case of _POSIX_SOURCE, which is predefined and required
18376 # on some systems where configure will not decide to define it.
18377 if (defundef == "undef") {
18378 print "/*", prefix defundef, macro, "*/"
18379 next
18380 }
18381 }
18382}
18383{ print }
18384_ACAWK
18385_ACEOF
18386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Ross Lagerwallb0ae53d2011-06-10 05:30:3018387 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918388fi # test -n "$CONFIG_HEADERS"
18389
18390
18391eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18392shift
18393for ac_tag
Thomas Wouters47b49bf2007-08-30 22:15:3318394do
18395 case $ac_tag in
18396 :[FHLC]) ac_mode=$ac_tag; continue;;
18397 esac
18398 case $ac_mode$ac_tag in
18399 :[FHL]*:*);;
Victor Stinnere0be4232011-10-25 11:06:0918400 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318401 :[FH]-) ac_tag=-:-;;
18402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18403 esac
18404 ac_save_IFS=$IFS
18405 IFS=:
18406 set x $ac_tag
18407 IFS=$ac_save_IFS
18408 shift
18409 ac_file=$1
18410 shift
18411
18412 case $ac_mode in
18413 :L) ac_source=$1;;
18414 :[FH])
18415 ac_file_inputs=
18416 for ac_f
18417 do
18418 case $ac_f in
Victor Stinnere0be4232011-10-25 11:06:0918419 -) ac_f="$ac_tmp/stdin";;
Thomas Wouters47b49bf2007-08-30 22:15:3318420 *) # Look for the file first in the build tree, then in the source tree
18421 # (if the path is not absolute). The absolute path cannot be DOS-style,
18422 # because $ac_f cannot contain `:'.
18423 test -f "$ac_f" ||
18424 case $ac_f in
18425 [\\/$]*) false;;
18426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18427 esac ||
Victor Stinnere0be4232011-10-25 11:06:0918428 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Thomas Wouters47b49bf2007-08-30 22:15:3318429 esac
Matthias Kloseb9621712010-04-24 17:59:4918430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18431 as_fn_append ac_file_inputs " '$ac_f'"
Thomas Wouters47b49bf2007-08-30 22:15:3318432 done
18433
18434 # Let's still pretend it is `configure' which instantiates (i.e., don't
18435 # use $as_me), people would be surprised to read:
18436 # /* config.h. Generated by config.status. */
Matthias Kloseb9621712010-04-24 17:59:4918437 configure_input='Generated from '`
18438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18439 `' by configure.'
Thomas Wouters47b49bf2007-08-30 22:15:3318440 if test x"$ac_file" != x-; then
18441 configure_input="$ac_file. $configure_input"
Matthias Kloseb9621712010-04-24 17:59:4918442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18443$as_echo "$as_me: creating $ac_file" >&6;}
Thomas Wouters47b49bf2007-08-30 22:15:3318444 fi
Matthias Kloseb9621712010-04-24 17:59:4918445 # Neutralize special characters interpreted by sed in replacement strings.
18446 case $configure_input in #(
18447 *\&* | *\|* | *\\* )
18448 ac_sed_conf_input=`$as_echo "$configure_input" |
18449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18450 *) ac_sed_conf_input=$configure_input;;
18451 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318452
18453 case $ac_tag in
Victor Stinnere0be4232011-10-25 11:06:0918454 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318456 esac
18457 ;;
Martin v. Löwis11437992002-04-12 09:54:0318458 esac
18459
Thomas Wouters47b49bf2007-08-30 22:15:3318460 ac_dir=`$as_dirname -- "$ac_file" ||
Martin v. Löwis11437992002-04-12 09:54:0318461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Skip Montanarof0d5f792004-08-15 14:08:2318462 X"$ac_file" : 'X\(//\)[^/]' \| \
18463 X"$ac_file" : 'X\(//\)$' \| \
Thomas Wouters47b49bf2007-08-30 22:15:3318464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Matthias Kloseb9621712010-04-24 17:59:4918465$as_echo X"$ac_file" |
Thomas Wouters47b49bf2007-08-30 22:15:3318466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18467 s//\1/
18468 q
18469 }
18470 /^X\(\/\/\)[^/].*/{
18471 s//\1/
18472 q
18473 }
18474 /^X\(\/\/\)$/{
18475 s//\1/
18476 q
18477 }
18478 /^X\(\/\).*/{
18479 s//\1/
18480 q
18481 }
18482 s/.*/./; q'`
Matthias Kloseb9621712010-04-24 17:59:4918483 as_dir="$ac_dir"; as_fn_mkdir_p
Martin v. Löwis11437992002-04-12 09:54:0318484 ac_builddir=.
18485
Thomas Wouters47b49bf2007-08-30 22:15:3318486case "$ac_dir" in
18487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18488*)
Matthias Kloseb9621712010-04-24 17:59:4918489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318490 # A ".." for each directory in $ac_dir_suffix.
Matthias Kloseb9621712010-04-24 17:59:4918491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Thomas Wouters47b49bf2007-08-30 22:15:3318492 case $ac_top_builddir_sub in
18493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18495 esac ;;
18496esac
18497ac_abs_top_builddir=$ac_pwd
18498ac_abs_builddir=$ac_pwd$ac_dir_suffix
18499# for backward compatibility:
18500ac_top_builddir=$ac_top_build_prefix
Martin v. Löwis11437992002-04-12 09:54:0318501
18502case $srcdir in
Thomas Wouters47b49bf2007-08-30 22:15:3318503 .) # We are building in place.
Martin v. Löwis11437992002-04-12 09:54:0318504 ac_srcdir=.
Thomas Wouters47b49bf2007-08-30 22:15:3318505 ac_top_srcdir=$ac_top_builddir_sub
18506 ac_abs_top_srcdir=$ac_pwd ;;
18507 [\\/]* | ?:[\\/]* ) # Absolute name.
Martin v. Löwis11437992002-04-12 09:54:0318508 ac_srcdir=$srcdir$ac_dir_suffix;
Thomas Wouters47b49bf2007-08-30 22:15:3318509 ac_top_srcdir=$srcdir
18510 ac_abs_top_srcdir=$srcdir ;;
18511 *) # Relative name.
18512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18513 ac_top_srcdir=$ac_top_build_prefix$srcdir
18514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Martin v. Löwis11437992002-04-12 09:54:0318515esac
Thomas Wouters47b49bf2007-08-30 22:15:3318516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Skip Montanarof0d5f792004-08-15 14:08:2318517
Martin v. Löwis11437992002-04-12 09:54:0318518
Thomas Wouters47b49bf2007-08-30 22:15:3318519 case $ac_mode in
18520 :F)
18521 #
18522 # CONFIG_FILE
18523 #
Martin v. Löwis11437992002-04-12 09:54:0318524
18525 case $INSTALL in
18526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Martin v. Löwis11437992002-04-12 09:54:0318528 esac
Matthias Klose93a0ef12012-03-15 17:08:3418529 ac_MKDIR_P=$MKDIR_P
18530 case $MKDIR_P in
18531 [\\/$]* | ?:[\\/]* ) ;;
18532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18533 esac
Thomas Wouters477c8d52006-05-27 19:21:4718534_ACEOF
Thomas Wouters47b49bf2007-08-30 22:15:3318535
Matthias Kloseb9621712010-04-24 17:59:4918536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318537# If the template does not know about datarootdir, expand it.
18538# FIXME: This hack should be removed a few years after 2.60.
18539ac_datarootdir_hack=; ac_datarootdir_seen=
Matthias Kloseb9621712010-04-24 17:59:4918540ac_sed_dataroot='
18541/datarootdir/ {
Thomas Wouters47b49bf2007-08-30 22:15:3318542 p
18543 q
18544}
18545/@datadir@/p
18546/@docdir@/p
18547/@infodir@/p
18548/@localedir@/p
Matthias Kloseb9621712010-04-24 17:59:4918549/@mandir@/p'
18550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Thomas Wouters47b49bf2007-08-30 22:15:3318551*datarootdir*) ac_datarootdir_seen=yes;;
18552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Matthias Kloseb9621712010-04-24 17:59:4918553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18554$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Thomas Wouters47b49bf2007-08-30 22:15:3318555_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Thomas Wouters47b49bf2007-08-30 22:15:3318557 ac_datarootdir_hack='
18558 s&@datadir@&$datadir&g
18559 s&@docdir@&$docdir&g
18560 s&@infodir@&$infodir&g
18561 s&@localedir@&$localedir&g
18562 s&@mandir@&$mandir&g
Matthias Kloseb9621712010-04-24 17:59:4918563 s&\\\${datarootdir}&$datarootdir&g' ;;
Thomas Wouters47b49bf2007-08-30 22:15:3318564esac
18565_ACEOF
18566
18567# Neutralize VPATH when `$srcdir' = `.'.
18568# Shell code in configure.ac might set extrasub.
18569# FIXME: do we really want to maintain this feature?
Matthias Kloseb9621712010-04-24 17:59:4918570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18571ac_sed_extra="$ac_vpsub
Martin v. Löwis11437992002-04-12 09:54:0318572$extrasub
18573_ACEOF
Matthias Kloseb9621712010-04-24 17:59:4918574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Martin v. Löwis11437992002-04-12 09:54:0318575:t
18576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Matthias Kloseb9621712010-04-24 17:59:4918577s|@configure_input@|$ac_sed_conf_input|;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318578s&@top_builddir@&$ac_top_builddir_sub&;t t
Matthias Kloseb9621712010-04-24 17:59:4918579s&@top_build_prefix@&$ac_top_build_prefix&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318580s&@srcdir@&$ac_srcdir&;t t
18581s&@abs_srcdir@&$ac_abs_srcdir&;t t
18582s&@top_srcdir@&$ac_top_srcdir&;t t
18583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18584s&@builddir@&$ac_builddir&;t t
18585s&@abs_builddir@&$ac_abs_builddir&;t t
18586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18587s&@INSTALL@&$ac_INSTALL&;t t
Matthias Klose93a0ef12012-03-15 17:08:3418588s&@MKDIR_P@&$ac_MKDIR_P&;t t
Thomas Wouters47b49bf2007-08-30 22:15:3318589$ac_datarootdir_hack
Matthias Kloseb9621712010-04-24 17:59:4918590"
Victor Stinnere0be4232011-10-25 11:06:0918591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18592 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Guido van Rossum76be6ed1995-01-02 18:33:5418593
Thomas Wouters47b49bf2007-08-30 22:15:3318594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Victor Stinnere0be4232011-10-25 11:06:0918595 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18597 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Matthias Kloseb9621712010-04-24 17:59:4918598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018599which seems to be undefined. Please make sure it is defined" >&5
Matthias Kloseb9621712010-04-24 17:59:4918600$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Ross Lagerwallb0ae53d2011-06-10 05:30:3018601which seems to be undefined. Please make sure it is defined" >&2;}
Thomas Wouters1ba5b3b2006-06-08 14:52:4718602
Victor Stinnere0be4232011-10-25 11:06:0918603 rm -f "$ac_tmp/stdin"
Martin v. Löwis11437992002-04-12 09:54:0318604 case $ac_file in
Victor Stinnere0be4232011-10-25 11:06:0918605 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18606 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Matthias Kloseb9621712010-04-24 17:59:4918607 esac \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Thomas Wouters47b49bf2007-08-30 22:15:3318609 ;;
18610 :H)
18611 #
18612 # CONFIG_HEADER
18613 #
Martin v. Löwis11437992002-04-12 09:54:0318614 if test x"$ac_file" != x-; then
Matthias Kloseb9621712010-04-24 17:59:4918615 {
18616 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18618 } >"$ac_tmp/config.h" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Victor Stinnere0be4232011-10-25 11:06:0918620 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Matthias Kloseb9621712010-04-24 17:59:4918621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18622$as_echo "$as_me: $ac_file is unchanged" >&6;}
Martin v. Löwis11437992002-04-12 09:54:0318623 else
Matthias Kloseb9621712010-04-24 17:59:4918624 rm -f "$ac_file"
Victor Stinnere0be4232011-10-25 11:06:0918625 mv "$ac_tmp/config.h" "$ac_file" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318627 fi
18628 else
Matthias Kloseb9621712010-04-24 17:59:4918629 $as_echo "/* $configure_input */" \
Victor Stinnere0be4232011-10-25 11:06:0918630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Ross Lagerwallb0ae53d2011-06-10 05:30:3018631 || as_fn_error $? "could not create -" "$LINENO" 5
Martin v. Löwis11437992002-04-12 09:54:0318632 fi
Thomas Wouters47b49bf2007-08-30 22:15:3318633 ;;
Guido van Rossum7f43da71994-08-01 12:15:3018634
Thomas Wouters47b49bf2007-08-30 22:15:3318635
18636 esac
18637
Antoine Pitrou8e6b4072010-09-10 19:44:4418638
18639 case $ac_file$ac_mode in
18640 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
18641
18642 esac
Thomas Wouters47b49bf2007-08-30 22:15:3318643done # for ac_tag
18644
Guido van Rossum627b2d71993-12-24 10:39:1618645
Matthias Kloseb9621712010-04-24 17:59:4918646as_fn_exit 0
Martin v. Löwis11437992002-04-12 09:54:0318647_ACEOF
Martin v. Löwis11437992002-04-12 09:54:0318648ac_clean_files=$ac_clean_files_save
18649
Matthias Kloseb9621712010-04-24 17:59:4918650test $ac_write_fail = 0 ||
Ross Lagerwallb0ae53d2011-06-10 05:30:3018651 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Matthias Kloseb9621712010-04-24 17:59:4918652
Martin v. Löwis11437992002-04-12 09:54:0318653
18654# configure is writing to config.log, and then calls config.status.
18655# config.status does its own redirection, appending to config.log.
18656# Unfortunately, on DOS this fails, as config.log is still kept open
18657# by configure, so config.status won't be able to write to it; its
18658# output is simply discarded. So we exec the FD to /dev/null,
18659# effectively closing config.log, so it can be properly (re)opened and
18660# appended to by config.status. When coming back to configure, we
18661# need to make the FD available again.
18662if test "$no_create" != yes; then
18663 ac_cs_success=:
Skip Montanaro6dead952003-09-25 14:50:0418664 ac_config_status_args=
18665 test "$silent" = yes &&
18666 ac_config_status_args="$ac_config_status_args --quiet"
Martin v. Löwis11437992002-04-12 09:54:0318667 exec 5>/dev/null
Skip Montanaro6dead952003-09-25 14:50:0418668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Martin v. Löwis11437992002-04-12 09:54:0318669 exec 5>>config.log
18670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18671 # would make configure fail if this is the last instruction.
Ross Lagerwallb0ae53d2011-06-10 05:30:3018672 $ac_cs_success || as_fn_exit 1
Matthias Kloseb9621712010-04-24 17:59:4918673fi
18674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18676$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Martin v. Löwis11437992002-04-12 09:54:0318677fi
Guido van Rossum627b2d71993-12-24 10:39:1618678
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018679
Christian Heimes75ed8902013-11-20 00:11:1818680echo "creating Modules/Setup" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018681if test ! -f Modules/Setup
18682then
18683 cp $srcdir/Modules/Setup.dist Modules/Setup
18684fi
18685
Christian Heimes75ed8902013-11-20 00:11:1818686echo "creating Modules/Setup.local" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018687if test ! -f Modules/Setup.local
18688then
18689 echo "# Edit this file for local setup changes" >Modules/Setup.local
18690fi
18691
Christian Heimes75ed8902013-11-20 00:11:1818692echo "creating Makefile" >&6
Neil Schemenauer3ecf0aa2001-01-26 16:15:2018693$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
Antoine Pitroua6a4dc82017-09-07 16:56:2418694 -s Modules \
Neil Schemenauerf8b71c52001-04-21 17:41:1618695 Modules/Setup.local Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:4918696mv config.c Modules
Brett Cannon63d98bc2016-09-07 00:12:4018697
18698if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
18699 echo "" >&6
18700 echo "" >&6
Brett Cannonb4e5fee2017-06-09 20:56:5718701 echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)1016b2f2016-11-20 21:07:4218702 echo "please run ./configure --enable-optimizations" >&6
Brett Cannon63d98bc2016-09-07 00:12:4018703 echo "" >&6
18704 echo "" >&6
18705fi
18706