]> git.ipfire.org Git - thirdparty/Python/cpython.git/blob - configure
gh-118335: Make REGEN_JIT_COMMAND empty if tier2 interpreter enabled (#118493)
[thirdparty/Python/cpython.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for python 3.13.
4 #
5 # Report bugs to <https://github.com/python/cpython/issues/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: https://github.com/python/cpython/issues/ about your
272 $0: system, including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='python'
613 PACKAGE_TARNAME='python'
614 PACKAGE_VERSION='3.13'
615 PACKAGE_STRING='python 3.13'
616 PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/'
617 PACKAGE_URL=''
618
619 ac_unique_file="Include/object.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='LTLIBOBJS
653 MODULE_BLOCK
654 MODULE_XXLIMITED_35_FALSE
655 MODULE_XXLIMITED_35_TRUE
656 MODULE_XXLIMITED_FALSE
657 MODULE_XXLIMITED_TRUE
658 MODULE__CTYPES_TEST_FALSE
659 MODULE__CTYPES_TEST_TRUE
660 MODULE__XXTESTFUZZ_FALSE
661 MODULE__XXTESTFUZZ_TRUE
662 MODULE_XXSUBTYPE_FALSE
663 MODULE_XXSUBTYPE_TRUE
664 MODULE__TESTEXTERNALINSPECTION_FALSE
665 MODULE__TESTEXTERNALINSPECTION_TRUE
666 MODULE__TESTSINGLEPHASE_FALSE
667 MODULE__TESTSINGLEPHASE_TRUE
668 MODULE__TESTMULTIPHASE_FALSE
669 MODULE__TESTMULTIPHASE_TRUE
670 MODULE__TESTIMPORTMULTIPLE_FALSE
671 MODULE__TESTIMPORTMULTIPLE_TRUE
672 MODULE__TESTBUFFER_FALSE
673 MODULE__TESTBUFFER_TRUE
674 MODULE__TESTINTERNALCAPI_FALSE
675 MODULE__TESTINTERNALCAPI_TRUE
676 MODULE__TESTLIMITEDCAPI_FALSE
677 MODULE__TESTLIMITEDCAPI_TRUE
678 MODULE__TESTCLINIC_LIMITED_FALSE
679 MODULE__TESTCLINIC_LIMITED_TRUE
680 MODULE__TESTCLINIC_FALSE
681 MODULE__TESTCLINIC_TRUE
682 MODULE__TESTCAPI_FALSE
683 MODULE__TESTCAPI_TRUE
684 MODULE__HASHLIB_FALSE
685 MODULE__HASHLIB_TRUE
686 MODULE__SSL_FALSE
687 MODULE__SSL_TRUE
688 MODULE__LZMA_FALSE
689 MODULE__LZMA_TRUE
690 MODULE__BZ2_FALSE
691 MODULE__BZ2_TRUE
692 MODULE_BINASCII_FALSE
693 MODULE_BINASCII_TRUE
694 MODULE_ZLIB_FALSE
695 MODULE_ZLIB_TRUE
696 MODULE__UUID_FALSE
697 MODULE__UUID_TRUE
698 MODULE__TKINTER_FALSE
699 MODULE__TKINTER_TRUE
700 MODULE__SQLITE3_FALSE
701 MODULE__SQLITE3_TRUE
702 MODULE_READLINE_FALSE
703 MODULE_READLINE_TRUE
704 MODULE__GDBM_FALSE
705 MODULE__GDBM_TRUE
706 MODULE__DBM_FALSE
707 MODULE__DBM_TRUE
708 MODULE__DECIMAL_FALSE
709 MODULE__DECIMAL_TRUE
710 MODULE__CURSES_PANEL_FALSE
711 MODULE__CURSES_PANEL_TRUE
712 MODULE__CURSES_FALSE
713 MODULE__CURSES_TRUE
714 MODULE__CTYPES_FALSE
715 MODULE__CTYPES_TRUE
716 MODULE__BLAKE2_FALSE
717 MODULE__BLAKE2_TRUE
718 MODULE__SHA3_FALSE
719 MODULE__SHA3_TRUE
720 MODULE__SHA2_FALSE
721 MODULE__SHA2_TRUE
722 MODULE__SHA1_FALSE
723 MODULE__SHA1_TRUE
724 MODULE__MD5_FALSE
725 MODULE__MD5_TRUE
726 MODULE_UNICODEDATA_FALSE
727 MODULE_UNICODEDATA_TRUE
728 MODULE__MULTIBYTECODEC_FALSE
729 MODULE__MULTIBYTECODEC_TRUE
730 MODULE__CODECS_TW_FALSE
731 MODULE__CODECS_TW_TRUE
732 MODULE__CODECS_KR_FALSE
733 MODULE__CODECS_KR_TRUE
734 MODULE__CODECS_JP_FALSE
735 MODULE__CODECS_JP_TRUE
736 MODULE__CODECS_ISO2022_FALSE
737 MODULE__CODECS_ISO2022_TRUE
738 MODULE__CODECS_HK_FALSE
739 MODULE__CODECS_HK_TRUE
740 MODULE__CODECS_CN_FALSE
741 MODULE__CODECS_CN_TRUE
742 MODULE__ELEMENTTREE_FALSE
743 MODULE__ELEMENTTREE_TRUE
744 MODULE_PYEXPAT_FALSE
745 MODULE_PYEXPAT_TRUE
746 MODULE_TERMIOS_FALSE
747 MODULE_TERMIOS_TRUE
748 MODULE_SYSLOG_FALSE
749 MODULE_SYSLOG_TRUE
750 MODULE__SCPROXY_FALSE
751 MODULE__SCPROXY_TRUE
752 MODULE_RESOURCE_FALSE
753 MODULE_RESOURCE_TRUE
754 MODULE_PWD_FALSE
755 MODULE_PWD_TRUE
756 MODULE_GRP_FALSE
757 MODULE_GRP_TRUE
758 MODULE__SOCKET_FALSE
759 MODULE__SOCKET_TRUE
760 MODULE_MMAP_FALSE
761 MODULE_MMAP_TRUE
762 MODULE_FCNTL_FALSE
763 MODULE_FCNTL_TRUE
764 MODULE__DATETIME_FALSE
765 MODULE__DATETIME_TRUE
766 MODULE_MATH_FALSE
767 MODULE_MATH_TRUE
768 MODULE_CMATH_FALSE
769 MODULE_CMATH_TRUE
770 MODULE__STATISTICS_FALSE
771 MODULE__STATISTICS_TRUE
772 MODULE__POSIXSHMEM_FALSE
773 MODULE__POSIXSHMEM_TRUE
774 MODULE__MULTIPROCESSING_FALSE
775 MODULE__MULTIPROCESSING_TRUE
776 MODULE__ZONEINFO_FALSE
777 MODULE__ZONEINFO_TRUE
778 MODULE__INTERPQUEUES_FALSE
779 MODULE__INTERPQUEUES_TRUE
780 MODULE__INTERPCHANNELS_FALSE
781 MODULE__INTERPCHANNELS_TRUE
782 MODULE__INTERPRETERS_FALSE
783 MODULE__INTERPRETERS_TRUE
784 MODULE__TYPING_FALSE
785 MODULE__TYPING_TRUE
786 MODULE__STRUCT_FALSE
787 MODULE__STRUCT_TRUE
788 MODULE_SELECT_FALSE
789 MODULE_SELECT_TRUE
790 MODULE__RANDOM_FALSE
791 MODULE__RANDOM_TRUE
792 MODULE__QUEUE_FALSE
793 MODULE__QUEUE_TRUE
794 MODULE__POSIXSUBPROCESS_FALSE
795 MODULE__POSIXSUBPROCESS_TRUE
796 MODULE__PICKLE_FALSE
797 MODULE__PICKLE_TRUE
798 MODULE__OPCODE_FALSE
799 MODULE__OPCODE_TRUE
800 MODULE__LSPROF_FALSE
801 MODULE__LSPROF_TRUE
802 MODULE__JSON_FALSE
803 MODULE__JSON_TRUE
804 MODULE__HEAPQ_FALSE
805 MODULE__HEAPQ_TRUE
806 MODULE__CSV_FALSE
807 MODULE__CSV_TRUE
808 MODULE__CONTEXTVARS_FALSE
809 MODULE__CONTEXTVARS_TRUE
810 MODULE__BISECT_FALSE
811 MODULE__BISECT_TRUE
812 MODULE__ASYNCIO_FALSE
813 MODULE__ASYNCIO_TRUE
814 MODULE_ARRAY_FALSE
815 MODULE_ARRAY_TRUE
816 MODULE_TIME_FALSE
817 MODULE_TIME_TRUE
818 MODULE__IO_FALSE
819 MODULE__IO_TRUE
820 MODULE_BUILDTYPE
821 TEST_MODULES
822 LIBB2_LIBS
823 LIBB2_CFLAGS
824 OPENSSL_LDFLAGS
825 OPENSSL_LIBS
826 OPENSSL_INCLUDES
827 ENSUREPIP
828 SRCDIRS
829 THREADHEADERS
830 PANEL_LIBS
831 PANEL_CFLAGS
832 CURSES_LIBS
833 CURSES_CFLAGS
834 LIBEDIT_LIBS
835 LIBEDIT_CFLAGS
836 LIBREADLINE_LIBS
837 LIBREADLINE_CFLAGS
838 WHEEL_PKG_DIR
839 LIBPL
840 PY_ENABLE_SHARED
841 PLATLIBDIR
842 BINLIBDEST
843 MODULE_LDFLAGS
844 MODULE_DEPS_SHARED
845 EXT_SUFFIX
846 ALT_SOABI
847 SOABI
848 LIBC
849 LIBM
850 HAVE_GETHOSTBYNAME
851 HAVE_GETHOSTBYNAME_R
852 HAVE_GETHOSTBYNAME_R_3_ARG
853 HAVE_GETHOSTBYNAME_R_5_ARG
854 HAVE_GETHOSTBYNAME_R_6_ARG
855 LIBOBJS
856 LIBLZMA_LIBS
857 LIBLZMA_CFLAGS
858 BZIP2_LIBS
859 BZIP2_CFLAGS
860 ZLIB_LIBS
861 ZLIB_CFLAGS
862 TRUE
863 MACHDEP_OBJS
864 DYNLOADFILE
865 DLINCLDIR
866 PLATFORM_OBJS
867 PLATFORM_HEADERS
868 DTRACE_OBJS
869 DTRACE_HEADERS
870 DFLAGS
871 DTRACE
872 INSTALL_MIMALLOC
873 MIMALLOC_HEADERS
874 GDBM_LIBS
875 GDBM_CFLAGS
876 X11_LIBS
877 X11_CFLAGS
878 TCLTK_LIBS
879 TCLTK_CFLAGS
880 LIBSQLITE3_LIBS
881 LIBSQLITE3_CFLAGS
882 LIBMPDEC_INTERNAL
883 LIBMPDEC_LIBS
884 LIBMPDEC_CFLAGS
885 MODULE__CTYPES_MALLOC_CLOSURE
886 LIBFFI_LIBS
887 LIBFFI_CFLAGS
888 LIBEXPAT_INTERNAL
889 LIBEXPAT_CFLAGS
890 TZPATH
891 LIBUUID_LIBS
892 LIBUUID_CFLAGS
893 PERF_TRAMPOLINE_OBJ
894 SHLIBS
895 CFLAGSFORSHARED
896 LINKFORSHARED
897 CCSHARED
898 BLDSHARED
899 LDCXXSHARED
900 LDSHARED
901 SHLIB_SUFFIX
902 DSYMUTIL_PATH
903 DSYMUTIL
904 UNIVERSAL_ARCH_FLAGS
905 WASM_STDLIB
906 WASM_ASSETS_DIR
907 LDFLAGS_NOLTO
908 LDFLAGS_NODIST
909 CFLAGS_NODIST
910 BASECFLAGS
911 CFLAGS_ALIASING
912 OPT
913 BOLT_APPLY_FLAGS
914 BOLT_INSTRUMENT_FLAGS
915 BOLT_BINARIES
916 MERGE_FDATA
917 LLVM_BOLT
918 PREBOLT_RULE
919 LLVM_PROF_FOUND
920 LLVM_PROFDATA
921 LLVM_PROF_ERR
922 LLVM_PROF_FILE
923 LLVM_PROF_MERGER
924 PGO_PROF_USE_FLAG
925 PGO_PROF_GEN_FLAG
926 LLVM_AR_FOUND
927 LLVM_AR
928 PROFILE_TASK
929 DEF_MAKE_RULE
930 DEF_MAKE_ALL_RULE
931 JIT_STENCILS_H
932 REGEN_JIT_COMMAND
933 ABIFLAGS
934 LN
935 MKDIR_P
936 INSTALL_DATA
937 INSTALL_SCRIPT
938 INSTALL_PROGRAM
939 ARFLAGS
940 ac_ct_AR
941 AR
942 LINK_PYTHON_OBJS
943 LINK_PYTHON_DEPS
944 LIBRARY_DEPS
945 NODE
946 HOSTRUNNER
947 STATIC_LIBPYTHON
948 GNULD
949 EXPORTSFROM
950 EXPORTSYMS
951 LINKCC
952 LDVERSION
953 RUNSHARED
954 INSTSONAME
955 LDLIBRARYDIR
956 PY3LIBRARY
957 BLDLIBRARY
958 DLLLIBRARY
959 LDLIBRARY
960 LIBRARY
961 BUILDEXEEXT
962 NO_AS_NEEDED
963 MULTIARCH_CPPFLAGS
964 PLATFORM_TRIPLET
965 MULTIARCH
966 ac_ct_CXX
967 CXX
968 EGREP
969 SED
970 GREP
971 CPP
972 OBJEXT
973 EXEEXT
974 ac_ct_CC
975 CPPFLAGS
976 LDFLAGS
977 CFLAGS
978 CC
979 HAS_XCRUN
980 IPHONEOS_DEPLOYMENT_TARGET
981 EXPORT_MACOSX_DEPLOYMENT_TARGET
982 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
983 _PYTHON_HOST_PLATFORM
984 INSTALLTARGETS
985 FRAMEWORKINSTALLAPPSPREFIX
986 FRAMEWORKUNIXTOOLSPREFIX
987 FRAMEWORKPYTHONW
988 FRAMEWORKALTINSTALLLAST
989 FRAMEWORKALTINSTALLFIRST
990 FRAMEWORKINSTALLLAST
991 FRAMEWORKINSTALLFIRST
992 RESSRCDIR
993 PYTHONFRAMEWORKINSTALLNAMEPREFIX
994 PYTHONFRAMEWORKINSTALLDIR
995 PYTHONFRAMEWORKPREFIX
996 PYTHONFRAMEWORKDIR
997 PYTHONFRAMEWORKIDENTIFIER
998 PYTHONFRAMEWORK
999 LIPO_INTEL64_FLAGS
1000 LIPO_32BIT_FLAGS
1001 ARCH_RUN_32BIT
1002 UNIVERSALSDK
1003 MACHDEP
1004 PKG_CONFIG_LIBDIR
1005 PKG_CONFIG_PATH
1006 PKG_CONFIG
1007 CONFIG_ARGS
1008 SOVERSION
1009 VERSION
1010 PYTHON_FOR_REGEN
1011 PYTHON_FOR_BUILD_DEPS
1012 FREEZE_MODULE_DEPS
1013 FREEZE_MODULE
1014 FREEZE_MODULE_BOOTSTRAP_DEPS
1015 FREEZE_MODULE_BOOTSTRAP
1016 PYTHON_FOR_FREEZE
1017 PYTHON_FOR_BUILD
1018 host_os
1019 host_vendor
1020 host_cpu
1021 host
1022 build_os
1023 build_vendor
1024 build_cpu
1025 build
1026 HAS_GIT
1027 GITBRANCH
1028 GITTAG
1029 GITVERSION
1030 BASECPPFLAGS
1031 target_alias
1032 host_alias
1033 build_alias
1034 LIBS
1035 ECHO_T
1036 ECHO_N
1037 ECHO_C
1038 DEFS
1039 mandir
1040 localedir
1041 libdir
1042 psdir
1043 pdfdir
1044 dvidir
1045 htmldir
1046 infodir
1047 docdir
1048 oldincludedir
1049 includedir
1050 runstatedir
1051 localstatedir
1052 sharedstatedir
1053 sysconfdir
1054 datadir
1055 datarootdir
1056 libexecdir
1057 sbindir
1058 bindir
1059 program_transform_name
1060 prefix
1061 exec_prefix
1062 PACKAGE_URL
1063 PACKAGE_BUGREPORT
1064 PACKAGE_STRING
1065 PACKAGE_VERSION
1066 PACKAGE_TARNAME
1067 PACKAGE_NAME
1068 PATH_SEPARATOR
1069 SHELL'
1070 ac_subst_files=''
1071 ac_user_opts='
1072 enable_option_checking
1073 with_build_python
1074 with_pkg_config
1075 enable_universalsdk
1076 with_universal_archs
1077 with_framework_name
1078 enable_framework
1079 with_emscripten_target
1080 enable_wasm_dynamic_linking
1081 enable_wasm_pthreads
1082 with_suffix
1083 enable_shared
1084 with_static_libpython
1085 enable_profiling
1086 enable_gil
1087 with_pydebug
1088 with_trace_refs
1089 enable_pystats
1090 with_assertions
1091 enable_experimental_jit
1092 enable_optimizations
1093 with_lto
1094 enable_bolt
1095 with_strict_overflow
1096 with_dsymutil
1097 with_address_sanitizer
1098 with_memory_sanitizer
1099 with_undefined_behavior_sanitizer
1100 with_thread_sanitizer
1101 with_hash_algorithm
1102 with_tzpath
1103 with_libs
1104 with_system_expat
1105 with_system_libmpdec
1106 with_decimal_contextvar
1107 enable_loadable_sqlite_extensions
1108 with_dbmliborder
1109 enable_ipv6
1110 with_doc_strings
1111 with_mimalloc
1112 with_pymalloc
1113 with_freelists
1114 with_c_locale_coercion
1115 with_valgrind
1116 with_dtrace
1117 with_libm
1118 with_libc
1119 enable_big_digits
1120 with_platlibdir
1121 with_wheel_pkg_dir
1122 with_readline
1123 with_computed_gotos
1124 with_ensurepip
1125 with_openssl
1126 with_openssl_rpath
1127 with_ssl_default_suites
1128 with_builtin_hashlib_hashes
1129 enable_test_modules
1130 '
1131 ac_precious_vars='build_alias
1132 host_alias
1133 target_alias
1134 PKG_CONFIG
1135 PKG_CONFIG_PATH
1136 PKG_CONFIG_LIBDIR
1137 MACHDEP
1138 CC
1139 CFLAGS
1140 LDFLAGS
1141 LIBS
1142 CPPFLAGS
1143 CPP
1144 HOSTRUNNER
1145 PROFILE_TASK
1146 BOLT_INSTRUMENT_FLAGS
1147 BOLT_APPLY_FLAGS
1148 LIBUUID_CFLAGS
1149 LIBUUID_LIBS
1150 LIBFFI_CFLAGS
1151 LIBFFI_LIBS
1152 LIBMPDEC_CFLAGS
1153 LIBMPDEC_LIBS
1154 LIBSQLITE3_CFLAGS
1155 LIBSQLITE3_LIBS
1156 TCLTK_CFLAGS
1157 TCLTK_LIBS
1158 X11_CFLAGS
1159 X11_LIBS
1160 GDBM_CFLAGS
1161 GDBM_LIBS
1162 ZLIB_CFLAGS
1163 ZLIB_LIBS
1164 BZIP2_CFLAGS
1165 BZIP2_LIBS
1166 LIBLZMA_CFLAGS
1167 LIBLZMA_LIBS
1168 LIBREADLINE_CFLAGS
1169 LIBREADLINE_LIBS
1170 LIBEDIT_CFLAGS
1171 LIBEDIT_LIBS
1172 CURSES_CFLAGS
1173 CURSES_LIBS
1174 PANEL_CFLAGS
1175 PANEL_LIBS
1176 LIBB2_CFLAGS
1177 LIBB2_LIBS'
1178
1179
1180 # Initialize some variables set by options.
1181 ac_init_help=
1182 ac_init_version=false
1183 ac_unrecognized_opts=
1184 ac_unrecognized_sep=
1185 # The variables have the same names as the options, with
1186 # dashes changed to underlines.
1187 cache_file=/dev/null
1188 exec_prefix=NONE
1189 no_create=
1190 no_recursion=
1191 prefix=NONE
1192 program_prefix=NONE
1193 program_suffix=NONE
1194 program_transform_name=s,x,x,
1195 silent=
1196 site=
1197 srcdir=
1198 verbose=
1199 x_includes=NONE
1200 x_libraries=NONE
1201
1202 # Installation directory options.
1203 # These are left unexpanded so users can "make install exec_prefix=/foo"
1204 # and all the variables that are supposed to be based on exec_prefix
1205 # by default will actually change.
1206 # Use braces instead of parens because sh, perl, etc. also accept them.
1207 # (The list follows the same order as the GNU Coding Standards.)
1208 bindir='${exec_prefix}/bin'
1209 sbindir='${exec_prefix}/sbin'
1210 libexecdir='${exec_prefix}/libexec'
1211 datarootdir='${prefix}/share'
1212 datadir='${datarootdir}'
1213 sysconfdir='${prefix}/etc'
1214 sharedstatedir='${prefix}/com'
1215 localstatedir='${prefix}/var'
1216 runstatedir='${localstatedir}/run'
1217 includedir='${prefix}/include'
1218 oldincludedir='/usr/include'
1219 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1220 infodir='${datarootdir}/info'
1221 htmldir='${docdir}'
1222 dvidir='${docdir}'
1223 pdfdir='${docdir}'
1224 psdir='${docdir}'
1225 libdir='${exec_prefix}/lib'
1226 localedir='${datarootdir}/locale'
1227 mandir='${datarootdir}/man'
1228
1229 ac_prev=
1230 ac_dashdash=
1231 for ac_option
1232 do
1233 # If the previous option needs an argument, assign it.
1234 if test -n "$ac_prev"; then
1235 eval $ac_prev=\$ac_option
1236 ac_prev=
1237 continue
1238 fi
1239
1240 case $ac_option in
1241 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1242 *=) ac_optarg= ;;
1243 *) ac_optarg=yes ;;
1244 esac
1245
1246 case $ac_dashdash$ac_option in
1247 --)
1248 ac_dashdash=yes ;;
1249
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 ac_prev=bindir ;;
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1254
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1259
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1266
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1269
1270 -datadir | --datadir | --datadi | --datad)
1271 ac_prev=datadir ;;
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1274
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1281
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "enable_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=no ;;
1297
1298 -docdir | --docdir | --docdi | --doc | --do)
1299 ac_prev=docdir ;;
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1302
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 ac_prev=dvidir ;;
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1307
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "enable_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1332
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1335 with_gas=yes ;;
1336
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1343
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1348
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 ac_prev=htmldir ;;
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 | --ht=*)
1353 htmldir=$ac_optarg ;;
1354
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1361
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 ac_prev=infodir ;;
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1366
1367 -libdir | --libdir | --libdi | --libd)
1368 ac_prev=libdir ;;
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1371
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1378
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1383
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1390
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 ac_prev=mandir ;;
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1395
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1398 with_fp=no ;;
1399
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1402 no_create=yes ;;
1403
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 no_recursion=yes ;;
1407
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1416
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 ac_prev=prefix ;;
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1421
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1428
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1435
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1452
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 ac_prev=pdfdir ;;
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1457
1458 -psdir | --psdir | --psdi | --psd | --ps)
1459 ac_prev=psdir ;;
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 psdir=$ac_optarg ;;
1462
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 silent=yes ;;
1466
1467 -runstatedir | --runstatedir | --runstatedi | --runstated \
1468 | --runstate | --runstat | --runsta | --runst | --runs \
1469 | --run | --ru | --r)
1470 ac_prev=runstatedir ;;
1471 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1472 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1473 | --run=* | --ru=* | --r=*)
1474 runstatedir=$ac_optarg ;;
1475
1476 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1477 ac_prev=sbindir ;;
1478 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1479 | --sbi=* | --sb=*)
1480 sbindir=$ac_optarg ;;
1481
1482 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1483 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1484 | --sharedst | --shareds | --shared | --share | --shar \
1485 | --sha | --sh)
1486 ac_prev=sharedstatedir ;;
1487 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1488 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1489 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1490 | --sha=* | --sh=*)
1491 sharedstatedir=$ac_optarg ;;
1492
1493 -site | --site | --sit)
1494 ac_prev=site ;;
1495 -site=* | --site=* | --sit=*)
1496 site=$ac_optarg ;;
1497
1498 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1499 ac_prev=srcdir ;;
1500 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1501 srcdir=$ac_optarg ;;
1502
1503 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1504 | --syscon | --sysco | --sysc | --sys | --sy)
1505 ac_prev=sysconfdir ;;
1506 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1507 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1508 sysconfdir=$ac_optarg ;;
1509
1510 -target | --target | --targe | --targ | --tar | --ta | --t)
1511 ac_prev=target_alias ;;
1512 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1513 target_alias=$ac_optarg ;;
1514
1515 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1516 verbose=yes ;;
1517
1518 -version | --version | --versio | --versi | --vers | -V)
1519 ac_init_version=: ;;
1520
1521 -with-* | --with-*)
1522 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1525 as_fn_error $? "invalid package name: \`$ac_useropt'"
1526 ac_useropt_orig=$ac_useropt
1527 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1529 *"
1530 "with_$ac_useropt"
1531 "*) ;;
1532 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1533 ac_unrecognized_sep=', ';;
1534 esac
1535 eval with_$ac_useropt=\$ac_optarg ;;
1536
1537 -without-* | --without-*)
1538 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1541 as_fn_error $? "invalid package name: \`$ac_useropt'"
1542 ac_useropt_orig=$ac_useropt
1543 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1545 *"
1546 "with_$ac_useropt"
1547 "*) ;;
1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549 ac_unrecognized_sep=', ';;
1550 esac
1551 eval with_$ac_useropt=no ;;
1552
1553 --x)
1554 # Obsolete; use --with-x.
1555 with_x=yes ;;
1556
1557 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1558 | --x-incl | --x-inc | --x-in | --x-i)
1559 ac_prev=x_includes ;;
1560 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1561 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1562 x_includes=$ac_optarg ;;
1563
1564 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1565 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1566 ac_prev=x_libraries ;;
1567 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1568 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1569 x_libraries=$ac_optarg ;;
1570
1571 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1572 Try \`$0 --help' for more information"
1573 ;;
1574
1575 *=*)
1576 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1577 # Reject names that are not valid shell variable names.
1578 case $ac_envvar in #(
1579 '' | [0-9]* | *[!_$as_cr_alnum]* )
1580 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1581 esac
1582 eval $ac_envvar=\$ac_optarg
1583 export $ac_envvar ;;
1584
1585 *)
1586 # FIXME: should be removed in autoconf 3.0.
1587 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1589 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1590 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1591 ;;
1592
1593 esac
1594 done
1595
1596 if test -n "$ac_prev"; then
1597 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1598 as_fn_error $? "missing argument to $ac_option"
1599 fi
1600
1601 if test -n "$ac_unrecognized_opts"; then
1602 case $enable_option_checking in
1603 no) ;;
1604 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1605 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1606 esac
1607 fi
1608
1609 # Check all directory arguments for consistency.
1610 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1611 datadir sysconfdir sharedstatedir localstatedir includedir \
1612 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1613 libdir localedir mandir runstatedir
1614 do
1615 eval ac_val=\$$ac_var
1616 # Remove trailing slashes.
1617 case $ac_val in
1618 */ )
1619 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1620 eval $ac_var=\$ac_val;;
1621 esac
1622 # Be sure to have absolute directory names.
1623 case $ac_val in
1624 [\\/$]* | ?:[\\/]* ) continue;;
1625 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1626 esac
1627 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1628 done
1629
1630 # There might be people who depend on the old broken behavior: `$host'
1631 # used to hold the argument of --host etc.
1632 # FIXME: To remove some day.
1633 build=$build_alias
1634 host=$host_alias
1635 target=$target_alias
1636
1637 # FIXME: To remove some day.
1638 if test "x$host_alias" != x; then
1639 if test "x$build_alias" = x; then
1640 cross_compiling=maybe
1641 elif test "x$build_alias" != "x$host_alias"; then
1642 cross_compiling=yes
1643 fi
1644 fi
1645
1646 ac_tool_prefix=
1647 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1648
1649 test "$silent" = yes && exec 6>/dev/null
1650
1651
1652 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1653 ac_ls_di=`ls -di .` &&
1654 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1655 as_fn_error $? "working directory cannot be determined"
1656 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1657 as_fn_error $? "pwd does not report name of working directory"
1658
1659
1660 # Find the source files, if location was not specified.
1661 if test -z "$srcdir"; then
1662 ac_srcdir_defaulted=yes
1663 # Try the directory containing this script, then the parent directory.
1664 ac_confdir=`$as_dirname -- "$as_myself" ||
1665 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1666 X"$as_myself" : 'X\(//\)[^/]' \| \
1667 X"$as_myself" : 'X\(//\)$' \| \
1668 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1669 printf "%s\n" X"$as_myself" |
1670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1671 s//\1/
1672 q
1673 }
1674 /^X\(\/\/\)[^/].*/{
1675 s//\1/
1676 q
1677 }
1678 /^X\(\/\/\)$/{
1679 s//\1/
1680 q
1681 }
1682 /^X\(\/\).*/{
1683 s//\1/
1684 q
1685 }
1686 s/.*/./; q'`
1687 srcdir=$ac_confdir
1688 if test ! -r "$srcdir/$ac_unique_file"; then
1689 srcdir=..
1690 fi
1691 else
1692 ac_srcdir_defaulted=no
1693 fi
1694 if test ! -r "$srcdir/$ac_unique_file"; then
1695 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1696 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1697 fi
1698 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1699 ac_abs_confdir=`(
1700 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1701 pwd)`
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1704 srcdir=.
1705 fi
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1709 case $srcdir in
1710 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1711 esac
1712 for ac_var in $ac_precious_vars; do
1713 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1714 eval ac_env_${ac_var}_value=\$${ac_var}
1715 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1716 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1717 done
1718
1719 #
1720 # Report the --help message.
1721 #
1722 if test "$ac_init_help" = "long"; then
1723 # Omit some internal or obsolete options to make the list less imposing.
1724 # This message is too long to be a string in the A/UX 3.1 sh.
1725 cat <<_ACEOF
1726 \`configure' configures python 3.13 to adapt to many kinds of systems.
1727
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1729
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE. See below for descriptions of some of the useful variables.
1732
1733 Defaults for the options are specified in brackets.
1734
1735 Configuration:
1736 -h, --help display this help and exit
1737 --help=short display options specific to this package
1738 --help=recursive display the short help of all the included packages
1739 -V, --version display version information and exit
1740 -q, --quiet, --silent do not print \`checking ...' messages
1741 --cache-file=FILE cache test results in FILE [disabled]
1742 -C, --config-cache alias for \`--cache-file=config.cache'
1743 -n, --no-create do not create output files
1744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1745
1746 Installation directories:
1747 --prefix=PREFIX install architecture-independent files in PREFIX
1748 [$ac_default_prefix]
1749 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1750 [PREFIX]
1751
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1756
1757 For better control, use the options below.
1758
1759 Fine tuning of the installation directories:
1760 --bindir=DIR user executables [EPREFIX/bin]
1761 --sbindir=DIR system admin executables [EPREFIX/sbin]
1762 --libexecdir=DIR program executables [EPREFIX/libexec]
1763 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1764 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1765 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1766 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1767 --libdir=DIR object code libraries [EPREFIX/lib]
1768 --includedir=DIR C header files [PREFIX/include]
1769 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1770 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1771 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1772 --infodir=DIR info documentation [DATAROOTDIR/info]
1773 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1774 --mandir=DIR man documentation [DATAROOTDIR/man]
1775 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1776 --htmldir=DIR html documentation [DOCDIR]
1777 --dvidir=DIR dvi documentation [DOCDIR]
1778 --pdfdir=DIR pdf documentation [DOCDIR]
1779 --psdir=DIR ps documentation [DOCDIR]
1780 _ACEOF
1781
1782 cat <<\_ACEOF
1783
1784 System types:
1785 --build=BUILD configure for building on BUILD [guessed]
1786 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1787 _ACEOF
1788 fi
1789
1790 if test -n "$ac_init_help"; then
1791 case $ac_init_help in
1792 short | recursive ) echo "Configuration of python 3.13:";;
1793 esac
1794 cat <<\_ACEOF
1795
1796 Optional Features:
1797 --disable-option-checking ignore unrecognized --enable/--with options
1798 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1799 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1800 --enable-universalsdk[=SDKDIR]
1801 create a universal binary build. SDKDIR specifies
1802 which macOS SDK should be used to perform the build,
1803 see Mac/README.rst. (default is no)
1804 --enable-framework[=INSTALLDIR]
1805 create a Python.framework rather than a traditional
1806 Unix install. optional INSTALLDIR specifies the
1807 installation path. see Mac/README.rst (default is
1808 no)
1809 --enable-wasm-dynamic-linking
1810 Enable dynamic linking support for WebAssembly
1811 (default is no)
1812 --enable-wasm-pthreads Enable pthread emulation for WebAssembly (default is
1813 no)
1814 --enable-shared enable building a shared Python library (default is
1815 no)
1816 --enable-profiling enable C-level code profiling with gprof (default is
1817 no)
1818 --disable-gil enable experimental support for running without the
1819 GIL (default is no)
1820 --enable-pystats enable internal statistics gathering (default is no)
1821 --enable-experimental-jit[=no|yes|yes-off|interpreter]
1822 build the experimental just-in-time compiler
1823 (default is no)
1824 --enable-optimizations enable expensive, stable optimizations (PGO, etc.)
1825 (default is no)
1826 --enable-bolt enable usage of the llvm-bolt post-link optimizer
1827 (default is no)
1828 --enable-loadable-sqlite-extensions
1829 support loadable extensions in the sqlite3 module,
1830 see Doc/library/sqlite3.rst (default is no)
1831 --enable-ipv6 enable ipv6 (with ipv4) support, see
1832 Doc/library/socket.rst (default is yes if supported)
1833 --enable-big-digits[=15|30]
1834 use big digits (30 or 15 bits) for Python longs
1835 (default is 30)]
1836 --disable-test-modules don't build nor install test modules
1837
1838 Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-build-python=python3.13
1842 path to build python binary for cross compiling
1843 (default: _bootstrap_python or python3.13)
1844 --with-pkg-config=[yes|no|check]
1845 use pkg-config to detect build options (default is
1846 check)
1847 --with-universal-archs=ARCH
1848 specify the kind of macOS universal binary that
1849 should be created. This option is only valid when
1850 --enable-universalsdk is set; options are:
1851 ("universal2", "intel-64", "intel-32", "intel",
1852 "32-bit", "64-bit", "3-way", or "all") see
1853 Mac/README.rst
1854 --with-framework-name=FRAMEWORK
1855 specify the name for the python framework on macOS
1856 only valid when --enable-framework is set. see
1857 Mac/README.rst (default is 'Python')
1858 --with-emscripten-target=[browser|node]
1859 Emscripten platform
1860 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
1861 yes is mapped to '.exe')
1862 --without-static-libpython
1863 do not build libpythonMAJOR.MINOR.a and do not
1864 install python.o (default is yes)
1865 --with-pydebug build with Py_DEBUG defined (default is no)
1866 --with-trace-refs enable tracing references for debugging purpose
1867 (default is no)
1868 --with-assertions build with C assertions enabled (default is no)
1869 --with-lto=[full|thin|no|yes]
1870 enable Link-Time-Optimization in any build (default
1871 is no)
1872 --with-strict-overflow if 'yes', add -fstrict-overflow to CFLAGS, else add
1873 -fno-strict-overflow (default is no)
1874 --with-dsymutil link debug information into final executable with
1875 dsymutil in macOS (default is no)
1876 --with-address-sanitizer
1877 enable AddressSanitizer memory error detector,
1878 'asan' (default is no)
1879 --with-memory-sanitizer enable MemorySanitizer allocation error detector,
1880 'msan' (default is no)
1881 --with-undefined-behavior-sanitizer
1882 enable UndefinedBehaviorSanitizer undefined
1883 behaviour detector, 'ubsan' (default is no)
1884 --with-thread-sanitizer enable ThreadSanitizer data race detector, 'tsan'
1885 (default is no)
1886 --with-hash-algorithm=[fnv|siphash13|siphash24]
1887 select hash algorithm for use in Python/pyhash.c
1888 (default is SipHash13)
1889 --with-tzpath=<list of absolute paths separated by pathsep>
1890 Select the default time zone search path for
1891 zoneinfo.TZPATH
1892 --with-libs='lib1 ...' link against additional libs (default is no)
1893 --with-system-expat build pyexpat module using an installed expat
1894 library, see Doc/library/pyexpat.rst (default is no)
1895 --with-system-libmpdec build _decimal module using an installed libmpdec
1896 library, see Doc/library/decimal.rst (default is no)
1897 --with-decimal-contextvar
1898 build _decimal module using a coroutine-local rather
1899 than a thread-local context (default is yes)
1900 --with-dbmliborder=db1:db2:...
1901 override order to check db backends for dbm; a valid
1902 value is a colon separated string with the backend
1903 names `ndbm', `gdbm' and `bdb'.
1904 --with-doc-strings enable documentation strings (default is yes)
1905 --with-mimalloc build with mimalloc memory allocator (default is yes
1906 if C11 stdatomic.h is available.)
1907 --with-pymalloc enable specialized mallocs (default is yes)
1908 --with-freelists enable object freelists (default is yes)
1909 --with-c-locale-coercion
1910 enable C locale coercion to a UTF-8 based locale
1911 (default is yes)
1912 --with-valgrind enable Valgrind support (default is no)
1913 --with-dtrace enable DTrace support (default is no)
1914 --with-libm=STRING override libm math library to STRING (default is
1915 system-dependent)
1916 --with-libc=STRING override libc C library to STRING (default is
1917 system-dependent)
1918 --with-platlibdir=DIRNAME
1919 Python library directory name (default is "lib")
1920 --with-wheel-pkg-dir=PATH
1921 Directory of wheel packages used by ensurepip
1922 (default: none)
1923 --with(out)-readline[=editline|readline|no]
1924 use libedit for backend or disable readline module
1925 --with-computed-gotos enable computed gotos in evaluation loop (enabled by
1926 default on supported compilers)
1927 --with-ensurepip[=install|upgrade|no]
1928 "install" or "upgrade" using bundled pip (default is
1929 upgrade)
1930 --with-openssl=DIR root of the OpenSSL directory
1931 --with-openssl-rpath=[DIR|auto|no]
1932 Set runtime library directory (rpath) for OpenSSL
1933 libraries, no (default): don't set rpath, auto:
1934 auto-detect rpath from --with-openssl and
1935 pkg-config, DIR: set an explicit rpath
1936 --with-ssl-default-suites=[python|openssl|STRING]
1937 override default cipher suites string, python: use
1938 Python's preferred selection (default), openssl:
1939 leave OpenSSL's defaults untouched, STRING: use a
1940 custom string, python and STRING also set TLS 1.2 as
1941 minimum TLS version
1942 --with-builtin-hashlib-hashes=md5,sha1,sha2,sha3,blake2
1943 builtin hash modules, md5, sha1, sha2, sha3 (with
1944 shake), blake2
1945
1946 Some influential environment variables:
1947 PKG_CONFIG path to pkg-config utility
1948 PKG_CONFIG_PATH
1949 directories to add to pkg-config's search path
1950 PKG_CONFIG_LIBDIR
1951 path overriding pkg-config's built-in search path
1952 MACHDEP name for machine-dependent library files
1953 CC C compiler command
1954 CFLAGS C compiler flags
1955 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1956 nonstandard directory <lib dir>
1957 LIBS libraries to pass to the linker, e.g. -l<library>
1958 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1959 you have headers in a nonstandard directory <include dir>
1960 CPP C preprocessor
1961 HOSTRUNNER Program to run CPython for the host platform
1962 PROFILE_TASK
1963 Python args for PGO generation task
1964 BOLT_INSTRUMENT_FLAGS
1965 Arguments to llvm-bolt when instrumenting binaries
1966 BOLT_APPLY_FLAGS
1967 Arguments to llvm-bolt when creating a BOLT optimized binary
1968 LIBUUID_CFLAGS
1969 C compiler flags for LIBUUID, overriding pkg-config
1970 LIBUUID_LIBS
1971 linker flags for LIBUUID, overriding pkg-config
1972 LIBFFI_CFLAGS
1973 C compiler flags for LIBFFI, overriding pkg-config
1974 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1975 LIBMPDEC_CFLAGS
1976 C compiler flags for LIBMPDEC, overriding pkg-config
1977 LIBMPDEC_LIBS
1978 linker flags for LIBMPDEC, overriding pkg-config
1979 LIBSQLITE3_CFLAGS
1980 C compiler flags for LIBSQLITE3, overriding pkg-config
1981 LIBSQLITE3_LIBS
1982 linker flags for LIBSQLITE3, overriding pkg-config
1983 TCLTK_CFLAGS
1984 C compiler flags for TCLTK, overriding pkg-config
1985 TCLTK_LIBS linker flags for TCLTK, overriding pkg-config
1986 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1987 X11_LIBS linker flags for X11, overriding pkg-config
1988 GDBM_CFLAGS C compiler flags for gdbm
1989 GDBM_LIBS additional linker flags for gdbm
1990 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1991 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1992 BZIP2_CFLAGS
1993 C compiler flags for BZIP2, overriding pkg-config
1994 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
1995 LIBLZMA_CFLAGS
1996 C compiler flags for LIBLZMA, overriding pkg-config
1997 LIBLZMA_LIBS
1998 linker flags for LIBLZMA, overriding pkg-config
1999 LIBREADLINE_CFLAGS
2000 C compiler flags for LIBREADLINE, overriding pkg-config
2001 LIBREADLINE_LIBS
2002 linker flags for LIBREADLINE, overriding pkg-config
2003 LIBEDIT_CFLAGS
2004 C compiler flags for LIBEDIT, overriding pkg-config
2005 LIBEDIT_LIBS
2006 linker flags for LIBEDIT, overriding pkg-config
2007 CURSES_CFLAGS
2008 C compiler flags for CURSES, overriding pkg-config
2009 CURSES_LIBS linker flags for CURSES, overriding pkg-config
2010 PANEL_CFLAGS
2011 C compiler flags for PANEL, overriding pkg-config
2012 PANEL_LIBS linker flags for PANEL, overriding pkg-config
2013 LIBB2_CFLAGS
2014 C compiler flags for LIBB2, overriding pkg-config
2015 LIBB2_LIBS linker flags for LIBB2, overriding pkg-config
2016
2017 Use these variables to override the choices made by `configure' or to help
2018 it to find libraries and programs with nonstandard names/locations.
2019
2020 Report bugs to <https://github.com/python/cpython/issues/>.
2021 _ACEOF
2022 ac_status=$?
2023 fi
2024
2025 if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2030 continue
2031 ac_builddir=.
2032
2033 case "$ac_dir" in
2034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 *)
2036 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2042 esac ;;
2043 esac
2044 ac_abs_top_builddir=$ac_pwd
2045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046 # for backward compatibility:
2047 ac_top_builddir=$ac_top_build_prefix
2048
2049 case $srcdir in
2050 .) # We are building in place.
2051 ac_srcdir=.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2058 *) # Relative name.
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2062 esac
2063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for configure.gnu first; this name is used for a wrapper for
2067 # Metaconfig's "Configure" on case-insensitive file systems.
2068 if test -f "$ac_srcdir/configure.gnu"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2071 elif test -f "$ac_srcdir/configure"; then
2072 echo &&
2073 $SHELL "$ac_srcdir/configure" --help=recursive
2074 else
2075 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2076 fi || ac_status=$?
2077 cd "$ac_pwd" || { ac_status=$?; break; }
2078 done
2079 fi
2080
2081 test -n "$ac_init_help" && exit $ac_status
2082 if $ac_init_version; then
2083 cat <<\_ACEOF
2084 python configure 3.13
2085 generated by GNU Autoconf 2.71
2086
2087 Copyright (C) 2021 Free Software Foundation, Inc.
2088 This configure script is free software; the Free Software Foundation
2089 gives unlimited permission to copy, distribute and modify it.
2090 _ACEOF
2091 exit
2092 fi
2093
2094 ## ------------------------ ##
2095 ## Autoconf initialization. ##
2096 ## ------------------------ ##
2097
2098 # ac_fn_c_try_compile LINENO
2099 # --------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_c_try_compile ()
2102 {
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext conftest.beam
2105 if { { ac_try="$ac_compile"
2106 case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 printf "%s\n" "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2113 ac_status=$?
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2118 fi
2119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.$ac_objext
2124 then :
2125 ac_retval=0
2126 else $as_nop
2127 printf "%s\n" "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 ac_retval=1
2131 fi
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status $ac_retval
2134
2135 } # ac_fn_c_try_compile
2136
2137 # ac_fn_c_try_cpp LINENO
2138 # ----------------------
2139 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_c_try_cpp ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 if { { ac_try="$ac_cpp conftest.$ac_ext"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 printf "%s\n" "$ac_try_echo"; } >&5
2150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2156 fi
2157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } > conftest.i && {
2159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2160 test ! -s conftest.err
2161 }
2162 then :
2163 ac_retval=0
2164 else $as_nop
2165 printf "%s\n" "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169 fi
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 as_fn_set_status $ac_retval
2172
2173 } # ac_fn_c_try_cpp
2174
2175 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2176 # -------------------------------------------------------
2177 # Tests whether HEADER exists and can be compiled using the include files in
2178 # INCLUDES, setting the cache variable VAR accordingly.
2179 ac_fn_c_check_header_compile ()
2180 {
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 printf %s "checking for $2... " >&6; }
2184 if eval test \${$3+y}
2185 then :
2186 printf %s "(cached) " >&6
2187 else $as_nop
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $4
2191 #include <$2>
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"
2194 then :
2195 eval "$3=yes"
2196 else $as_nop
2197 eval "$3=no"
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 fi
2201 eval ac_res=\$$3
2202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 printf "%s\n" "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206 } # ac_fn_c_check_header_compile
2207
2208 # ac_fn_c_try_link LINENO
2209 # -----------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_c_try_link ()
2212 {
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2215 if { { ac_try="$ac_link"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 printf "%s\n" "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2228 fi
2229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest$ac_exeext
2236 }
2237 then :
2238 ac_retval=0
2239 else $as_nop
2240 printf "%s\n" "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=1
2244 fi
2245 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2246 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2247 # interfere with the next link command; also delete a directory that is
2248 # left behind by Apple's compiler. We do this before executing the actions.
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2252
2253 } # ac_fn_c_try_link
2254
2255 # ac_fn_c_try_run LINENO
2256 # ----------------------
2257 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2258 # executables *can* be run.
2259 ac_fn_c_try_run ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { { ac_try="$ac_link"
2263 case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 printf "%s\n" "$ac_try_echo"; } >&5
2269 (eval "$ac_link") 2>&5
2270 ac_status=$?
2271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2273 { { case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276 esac
2277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278 printf "%s\n" "$ac_try_echo"; } >&5
2279 (eval "$ac_try") 2>&5
2280 ac_status=$?
2281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; }; }
2283 then :
2284 ac_retval=0
2285 else $as_nop
2286 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2287 printf "%s\n" "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_retval=$ac_status
2291 fi
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_try_run
2297
2298 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2299 # -------------------------------------------
2300 # Tests whether TYPE exists after having included INCLUDES, setting cache
2301 # variable VAR accordingly.
2302 ac_fn_c_check_type ()
2303 {
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 printf %s "checking for $2... " >&6; }
2307 if eval test \${$3+y}
2308 then :
2309 printf %s "(cached) " >&6
2310 else $as_nop
2311 eval "$3=no"
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $4
2315 int
2316 main (void)
2317 {
2318 if (sizeof ($2))
2319 return 0;
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"
2325 then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 int
2330 main (void)
2331 {
2332 if (sizeof (($2)))
2333 return 0;
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"
2339 then :
2340
2341 else $as_nop
2342 eval "$3=yes"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 fi
2348 eval ac_res=\$$3
2349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 printf "%s\n" "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353 } # ac_fn_c_check_type
2354
2355 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2356 # --------------------------------------------
2357 # Tries to find the compile-time value of EXPR in a program that includes
2358 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2359 # computed
2360 ac_fn_c_compute_int ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if test "$cross_compiling" = yes; then
2364 # Depending upon the size, compute the lo and hi bounds.
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2367 $4
2368 int
2369 main (void)
2370 {
2371 static int test_array [1 - 2 * !(($2) >= 0)];
2372 test_array [0] = 0;
2373 return test_array [0];
2374
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"
2380 then :
2381 ac_lo=0 ac_mid=0
2382 while :; do
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2385 $4
2386 int
2387 main (void)
2388 {
2389 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2390 test_array [0] = 0;
2391 return test_array [0];
2392
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"
2398 then :
2399 ac_hi=$ac_mid; break
2400 else $as_nop
2401 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2402 if test $ac_lo -le $ac_mid; then
2403 ac_lo= ac_hi=
2404 break
2405 fi
2406 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2409 done
2410 else $as_nop
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $4
2414 int
2415 main (void)
2416 {
2417 static int test_array [1 - 2 * !(($2) < 0)];
2418 test_array [0] = 0;
2419 return test_array [0];
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"
2426 then :
2427 ac_hi=-1 ac_mid=-1
2428 while :; do
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 int
2433 main (void)
2434 {
2435 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2436 test_array [0] = 0;
2437 return test_array [0];
2438
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"
2444 then :
2445 ac_lo=$ac_mid; break
2446 else $as_nop
2447 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2448 if test $ac_mid -le $ac_hi; then
2449 ac_lo= ac_hi=
2450 break
2451 fi
2452 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2453 fi
2454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2455 done
2456 else $as_nop
2457 ac_lo= ac_hi=
2458 fi
2459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 # Binary search between lo and hi bounds.
2463 while test "x$ac_lo" != "x$ac_hi"; do
2464 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 $4
2468 int
2469 main (void)
2470 {
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2472 test_array [0] = 0;
2473 return test_array [0];
2474
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"
2480 then :
2481 ac_hi=$ac_mid
2482 else $as_nop
2483 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2486 done
2487 case $ac_lo in #((
2488 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2489 '') ac_retval=1 ;;
2490 esac
2491 else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 $4
2495 static long int longval (void) { return $2; }
2496 static unsigned long int ulongval (void) { return $2; }
2497 #include <stdio.h>
2498 #include <stdlib.h>
2499 int
2500 main (void)
2501 {
2502
2503 FILE *f = fopen ("conftest.val", "w");
2504 if (! f)
2505 return 1;
2506 if (($2) < 0)
2507 {
2508 long int i = longval ();
2509 if (i != ($2))
2510 return 1;
2511 fprintf (f, "%ld", i);
2512 }
2513 else
2514 {
2515 unsigned long int i = ulongval ();
2516 if (i != ($2))
2517 return 1;
2518 fprintf (f, "%lu", i);
2519 }
2520 /* Do not output a trailing newline, as this causes \r\n confusion
2521 on some platforms. */
2522 return ferror (f) || fclose (f) != 0;
2523
2524 ;
2525 return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_run "$LINENO"
2529 then :
2530 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2531 else $as_nop
2532 ac_retval=1
2533 fi
2534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2535 conftest.$ac_objext conftest.beam conftest.$ac_ext
2536 rm -f conftest.val
2537
2538 fi
2539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2540 as_fn_set_status $ac_retval
2541
2542 } # ac_fn_c_compute_int
2543
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func ()
2548 {
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 printf %s "checking for $2... " >&6; }
2552 if eval test \${$3+y}
2553 then :
2554 printf %s "(cached) " >&6
2555 else $as_nop
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2561
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below. */
2564
2565 #include <limits.h>
2566 #undef $2
2567
2568 /* Override any GCC internal prototype to avoid an error.
2569 Use char because int might match the return type of a GCC
2570 builtin and then its argument prototype would still apply. */
2571 #ifdef __cplusplus
2572 extern "C"
2573 #endif
2574 char $2 ();
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined __stub_$2 || defined __stub___$2
2579 choke me
2580 #endif
2581
2582 int
2583 main (void)
2584 {
2585 return $2 ();
2586 ;
2587 return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_c_try_link "$LINENO"
2591 then :
2592 eval "$3=yes"
2593 else $as_nop
2594 eval "$3=no"
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2597 conftest$ac_exeext conftest.$ac_ext
2598 fi
2599 eval ac_res=\$$3
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 printf "%s\n" "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603
2604 } # ac_fn_c_check_func
2605
2606 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2607 # ------------------------------------------------------------------
2608 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2609 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2610 ac_fn_check_decl ()
2611 {
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 as_decl_name=`echo $2|sed 's/ *(.*//'`
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2615 printf %s "checking whether $as_decl_name is declared... " >&6; }
2616 if eval test \${$3+y}
2617 then :
2618 printf %s "(cached) " >&6
2619 else $as_nop
2620 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2621 eval ac_save_FLAGS=\$$6
2622 as_fn_append $6 " $5"
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 $4
2626 int
2627 main (void)
2628 {
2629 #ifndef $as_decl_name
2630 #ifdef __cplusplus
2631 (void) $as_decl_use;
2632 #else
2633 (void) $as_decl_name;
2634 #endif
2635 #endif
2636
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"
2642 then :
2643 eval "$3=yes"
2644 else $as_nop
2645 eval "$3=no"
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2648 eval $6=\$ac_save_FLAGS
2649
2650 fi
2651 eval ac_res=\$$3
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653 printf "%s\n" "$ac_res" >&6; }
2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655
2656 } # ac_fn_check_decl
2657
2658 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2659 # ----------------------------------------------------
2660 # Tries to find if the field MEMBER exists in type AGGR, after including
2661 # INCLUDES, setting cache variable VAR accordingly.
2662 ac_fn_c_check_member ()
2663 {
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2666 printf %s "checking for $2.$3... " >&6; }
2667 if eval test \${$4+y}
2668 then :
2669 printf %s "(cached) " >&6
2670 else $as_nop
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2673 $5
2674 int
2675 main (void)
2676 {
2677 static $2 ac_aggr;
2678 if (ac_aggr.$3)
2679 return 0;
2680 ;
2681 return 0;
2682 }
2683 _ACEOF
2684 if ac_fn_c_try_compile "$LINENO"
2685 then :
2686 eval "$4=yes"
2687 else $as_nop
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2690 $5
2691 int
2692 main (void)
2693 {
2694 static $2 ac_aggr;
2695 if (sizeof ac_aggr.$3)
2696 return 0;
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 if ac_fn_c_try_compile "$LINENO"
2702 then :
2703 eval "$4=yes"
2704 else $as_nop
2705 eval "$4=no"
2706 fi
2707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2710 fi
2711 eval ac_res=\$$4
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 printf "%s\n" "$ac_res" >&6; }
2714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2715
2716 } # ac_fn_c_check_member
2717 ac_configure_args_raw=
2718 for ac_arg
2719 do
2720 case $ac_arg in
2721 *\'*)
2722 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 esac
2724 as_fn_append ac_configure_args_raw " '$ac_arg'"
2725 done
2726
2727 case $ac_configure_args_raw in
2728 *$as_nl*)
2729 ac_safe_unquote= ;;
2730 *)
2731 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2732 ac_unsafe_a="$ac_unsafe_z#~"
2733 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2734 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2735 esac
2736
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2740
2741 It was created by python $as_me 3.13, which was
2742 generated by GNU Autoconf 2.71. Invocation command line was
2743
2744 $ $0$ac_configure_args_raw
2745
2746 _ACEOF
2747 exec 5>>config.log
2748 {
2749 cat <<_ASUNAME
2750 ## --------- ##
2751 ## Platform. ##
2752 ## --------- ##
2753
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2759
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2762
2763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2770
2771 _ASUNAME
2772
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776 IFS=$as_save_IFS
2777 case $as_dir in #(((
2778 '') as_dir=./ ;;
2779 */) ;;
2780 *) as_dir=$as_dir/ ;;
2781 esac
2782 printf "%s\n" "PATH: $as_dir"
2783 done
2784 IFS=$as_save_IFS
2785
2786 } >&5
2787
2788 cat >&5 <<_ACEOF
2789
2790
2791 ## ----------- ##
2792 ## Core tests. ##
2793 ## ----------- ##
2794
2795 _ACEOF
2796
2797
2798 # Keep a trace of the command line.
2799 # Strip out --no-create and --no-recursion so they do not pile up.
2800 # Strip out --silent because we don't want to record it for future runs.
2801 # Also quote any args containing shell meta-characters.
2802 # Make two passes to allow for proper duplicate-argument suppression.
2803 ac_configure_args=
2804 ac_configure_args0=
2805 ac_configure_args1=
2806 ac_must_keep_next=false
2807 for ac_pass in 1 2
2808 do
2809 for ac_arg
2810 do
2811 case $ac_arg in
2812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2814 | -silent | --silent | --silen | --sile | --sil)
2815 continue ;;
2816 *\'*)
2817 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2818 esac
2819 case $ac_pass in
2820 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2821 2)
2822 as_fn_append ac_configure_args1 " '$ac_arg'"
2823 if test $ac_must_keep_next = true; then
2824 ac_must_keep_next=false # Got value, back to normal.
2825 else
2826 case $ac_arg in
2827 *=* | --config-cache | -C | -disable-* | --disable-* \
2828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2830 | -with-* | --with-* | -without-* | --without-* | --x)
2831 case "$ac_configure_args0 " in
2832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2833 esac
2834 ;;
2835 -* ) ac_must_keep_next=true ;;
2836 esac
2837 fi
2838 as_fn_append ac_configure_args " '$ac_arg'"
2839 ;;
2840 esac
2841 done
2842 done
2843 { ac_configure_args0=; unset ac_configure_args0;}
2844 { ac_configure_args1=; unset ac_configure_args1;}
2845
2846 # When interrupted or exit'd, cleanup temporary files, and complete
2847 # config.log. We remove comments because anyway the quotes in there
2848 # would cause problems or look ugly.
2849 # WARNING: Use '\'' to represent an apostrophe within the trap.
2850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2851 trap 'exit_status=$?
2852 # Sanitize IFS.
2853 IFS=" "" $as_nl"
2854 # Save into config.log some information that might help in debugging.
2855 {
2856 echo
2857
2858 printf "%s\n" "## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##"
2861 echo
2862 # The following way of writing the cache mishandles newlines in values,
2863 (
2864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2865 eval ac_val=\$$ac_var
2866 case $ac_val in #(
2867 *${as_nl}*)
2868 case $ac_var in #(
2869 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2870 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2871 esac
2872 case $ac_var in #(
2873 _ | IFS | as_nl) ;; #(
2874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2875 *) { eval $ac_var=; unset $ac_var;} ;;
2876 esac ;;
2877 esac
2878 done
2879 (set) 2>&1 |
2880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2881 *${as_nl}ac_space=\ *)
2882 sed -n \
2883 "s/'\''/'\''\\\\'\'''\''/g;
2884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2885 ;; #(
2886 *)
2887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2888 ;;
2889 esac |
2890 sort
2891 )
2892 echo
2893
2894 printf "%s\n" "## ----------------- ##
2895 ## Output variables. ##
2896 ## ----------------- ##"
2897 echo
2898 for ac_var in $ac_subst_vars
2899 do
2900 eval ac_val=\$$ac_var
2901 case $ac_val in
2902 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2903 esac
2904 printf "%s\n" "$ac_var='\''$ac_val'\''"
2905 done | sort
2906 echo
2907
2908 if test -n "$ac_subst_files"; then
2909 printf "%s\n" "## ------------------- ##
2910 ## File substitutions. ##
2911 ## ------------------- ##"
2912 echo
2913 for ac_var in $ac_subst_files
2914 do
2915 eval ac_val=\$$ac_var
2916 case $ac_val in
2917 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2918 esac
2919 printf "%s\n" "$ac_var='\''$ac_val'\''"
2920 done | sort
2921 echo
2922 fi
2923
2924 if test -s confdefs.h; then
2925 printf "%s\n" "## ----------- ##
2926 ## confdefs.h. ##
2927 ## ----------- ##"
2928 echo
2929 cat confdefs.h
2930 echo
2931 fi
2932 test "$ac_signal" != 0 &&
2933 printf "%s\n" "$as_me: caught signal $ac_signal"
2934 printf "%s\n" "$as_me: exit $exit_status"
2935 } >&5
2936 rm -f core *.core core.conftest.* &&
2937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2938 exit $exit_status
2939 ' 0
2940 for ac_signal in 1 2 13 15; do
2941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2942 done
2943 ac_signal=0
2944
2945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2946 rm -f -r conftest* confdefs.h
2947
2948 printf "%s\n" "/* confdefs.h */" > confdefs.h
2949
2950 # Predefined preprocessor variables.
2951
2952 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2953
2954 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2955
2956 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2957
2958 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2959
2960 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2961
2962 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2963
2964
2965 # Let the site file select an alternate cache file if it wants to.
2966 # Prefer an explicitly selected file to automatically selected ones.
2967 if test -n "$CONFIG_SITE"; then
2968 ac_site_files="$CONFIG_SITE"
2969 elif test "x$prefix" != xNONE; then
2970 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2971 else
2972 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2973 fi
2974
2975 for ac_site_file in $ac_site_files
2976 do
2977 case $ac_site_file in #(
2978 */*) :
2979 ;; #(
2980 *) :
2981 ac_site_file=./$ac_site_file ;;
2982 esac
2983 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2985 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2986 sed 's/^/| /' "$ac_site_file" >&5
2987 . "$ac_site_file" \
2988 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "failed to load site script $ac_site_file
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 fi
2993 done
2994
2995 if test -r "$cache_file"; then
2996 # Some versions of bash will fail to source /dev/null (special files
2997 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2998 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3000 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3001 case $cache_file in
3002 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3003 *) . "./$cache_file";;
3004 esac
3005 fi
3006 else
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3008 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3009 >$cache_file
3010 fi
3011
3012 # Test code for whether the C compiler supports C89 (global declarations)
3013 ac_c_conftest_c89_globals='
3014 /* Does the compiler advertise C89 conformance?
3015 Do not test the value of __STDC__, because some compilers set it to 0
3016 while being otherwise adequately conformant. */
3017 #if !defined __STDC__
3018 # error "Compiler does not advertise C89 conformance"
3019 #endif
3020
3021 #include <stddef.h>
3022 #include <stdarg.h>
3023 struct stat;
3024 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3025 struct buf { int x; };
3026 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3027 static char *e (p, i)
3028 char **p;
3029 int i;
3030 {
3031 return p[i];
3032 }
3033 static char *f (char * (*g) (char **, int), char **p, ...)
3034 {
3035 char *s;
3036 va_list v;
3037 va_start (v,p);
3038 s = g (p, va_arg (v,int));
3039 va_end (v);
3040 return s;
3041 }
3042
3043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3044 function prototypes and stuff, but not \xHH hex character constants.
3045 These do not provoke an error unfortunately, instead are silently treated
3046 as an "x". The following induces an error, until -std is added to get
3047 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3048 array size at least. It is necessary to write \x00 == 0 to get something
3049 that is true only with -std. */
3050 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3051
3052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3053 inside strings and character constants. */
3054 #define FOO(x) '\''x'\''
3055 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3056
3057 int test (int i, double x);
3058 struct s1 {int (*f) (int a);};
3059 struct s2 {int (*f) (double a);};
3060 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3061 int, int);'
3062
3063 # Test code for whether the C compiler supports C89 (body of main).
3064 ac_c_conftest_c89_main='
3065 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3066 '
3067
3068 # Test code for whether the C compiler supports C99 (global declarations)
3069 ac_c_conftest_c99_globals='
3070 // Does the compiler advertise C99 conformance?
3071 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3072 # error "Compiler does not advertise C99 conformance"
3073 #endif
3074
3075 #include <stdbool.h>
3076 extern int puts (const char *);
3077 extern int printf (const char *, ...);
3078 extern int dprintf (int, const char *, ...);
3079 extern void *malloc (size_t);
3080
3081 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3082 // dprintf is used instead of fprintf to avoid needing to declare
3083 // FILE and stderr.
3084 #define debug(...) dprintf (2, __VA_ARGS__)
3085 #define showlist(...) puts (#__VA_ARGS__)
3086 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3087 static void
3088 test_varargs_macros (void)
3089 {
3090 int x = 1234;
3091 int y = 5678;
3092 debug ("Flag");
3093 debug ("X = %d\n", x);
3094 showlist (The first, second, and third items.);
3095 report (x>y, "x is %d but y is %d", x, y);
3096 }
3097
3098 // Check long long types.
3099 #define BIG64 18446744073709551615ull
3100 #define BIG32 4294967295ul
3101 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3102 #if !BIG_OK
3103 #error "your preprocessor is broken"
3104 #endif
3105 #if BIG_OK
3106 #else
3107 #error "your preprocessor is broken"
3108 #endif
3109 static long long int bignum = -9223372036854775807LL;
3110 static unsigned long long int ubignum = BIG64;
3111
3112 struct incomplete_array
3113 {
3114 int datasize;
3115 double data[];
3116 };
3117
3118 struct named_init {
3119 int number;
3120 const wchar_t *name;
3121 double average;
3122 };
3123
3124 typedef const char *ccp;
3125
3126 static inline int
3127 test_restrict (ccp restrict text)
3128 {
3129 // See if C++-style comments work.
3130 // Iterate through items via the restricted pointer.
3131 // Also check for declarations in for loops.
3132 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3133 continue;
3134 return 0;
3135 }
3136
3137 // Check varargs and va_copy.
3138 static bool
3139 test_varargs (const char *format, ...)
3140 {
3141 va_list args;
3142 va_start (args, format);
3143 va_list args_copy;
3144 va_copy (args_copy, args);
3145
3146 const char *str = "";
3147 int number = 0;
3148 float fnumber = 0;
3149
3150 while (*format)
3151 {
3152 switch (*format++)
3153 {
3154 case '\''s'\'': // string
3155 str = va_arg (args_copy, const char *);
3156 break;
3157 case '\''d'\'': // int
3158 number = va_arg (args_copy, int);
3159 break;
3160 case '\''f'\'': // float
3161 fnumber = va_arg (args_copy, double);
3162 break;
3163 default:
3164 break;
3165 }
3166 }
3167 va_end (args_copy);
3168 va_end (args);
3169
3170 return *str && number && fnumber;
3171 }
3172 '
3173
3174 # Test code for whether the C compiler supports C99 (body of main).
3175 ac_c_conftest_c99_main='
3176 // Check bool.
3177 _Bool success = false;
3178 success |= (argc != 0);
3179
3180 // Check restrict.
3181 if (test_restrict ("String literal") == 0)
3182 success = true;
3183 char *restrict newvar = "Another string";
3184
3185 // Check varargs.
3186 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3187 test_varargs_macros ();
3188
3189 // Check flexible array members.
3190 struct incomplete_array *ia =
3191 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3192 ia->datasize = 10;
3193 for (int i = 0; i < ia->datasize; ++i)
3194 ia->data[i] = i * 1.234;
3195
3196 // Check named initializers.
3197 struct named_init ni = {
3198 .number = 34,
3199 .name = L"Test wide string",
3200 .average = 543.34343,
3201 };
3202
3203 ni.number = 58;
3204
3205 int dynamic_array[ni.number];
3206 dynamic_array[0] = argv[0][0];
3207 dynamic_array[ni.number - 1] = 543;
3208
3209 // work around unused variable warnings
3210 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3211 || dynamic_array[ni.number - 1] != 543);
3212 '
3213
3214 # Test code for whether the C compiler supports C11 (global declarations)
3215 ac_c_conftest_c11_globals='
3216 // Does the compiler advertise C11 conformance?
3217 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3218 # error "Compiler does not advertise C11 conformance"
3219 #endif
3220
3221 // Check _Alignas.
3222 char _Alignas (double) aligned_as_double;
3223 char _Alignas (0) no_special_alignment;
3224 extern char aligned_as_int;
3225 char _Alignas (0) _Alignas (int) aligned_as_int;
3226
3227 // Check _Alignof.
3228 enum
3229 {
3230 int_alignment = _Alignof (int),
3231 int_array_alignment = _Alignof (int[100]),
3232 char_alignment = _Alignof (char)
3233 };
3234 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3235
3236 // Check _Noreturn.
3237 int _Noreturn does_not_return (void) { for (;;) continue; }
3238
3239 // Check _Static_assert.
3240 struct test_static_assert
3241 {
3242 int x;
3243 _Static_assert (sizeof (int) <= sizeof (long int),
3244 "_Static_assert does not work in struct");
3245 long int y;
3246 };
3247
3248 // Check UTF-8 literals.
3249 #define u8 syntax error!
3250 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3251
3252 // Check duplicate typedefs.
3253 typedef long *long_ptr;
3254 typedef long int *long_ptr;
3255 typedef long_ptr long_ptr;
3256
3257 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3258 struct anonymous
3259 {
3260 union {
3261 struct { int i; int j; };
3262 struct { int k; long int l; } w;
3263 };
3264 int m;
3265 } v1;
3266 '
3267
3268 # Test code for whether the C compiler supports C11 (body of main).
3269 ac_c_conftest_c11_main='
3270 _Static_assert ((offsetof (struct anonymous, i)
3271 == offsetof (struct anonymous, w.k)),
3272 "Anonymous union alignment botch");
3273 v1.i = 2;
3274 v1.w.k = 5;
3275 ok |= v1.i != 5;
3276 '
3277
3278 # Test code for whether the C compiler supports C11 (complete).
3279 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3280 ${ac_c_conftest_c99_globals}
3281 ${ac_c_conftest_c11_globals}
3282
3283 int
3284 main (int argc, char **argv)
3285 {
3286 int ok = 0;
3287 ${ac_c_conftest_c89_main}
3288 ${ac_c_conftest_c99_main}
3289 ${ac_c_conftest_c11_main}
3290 return ok;
3291 }
3292 "
3293
3294 # Test code for whether the C compiler supports C99 (complete).
3295 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3296 ${ac_c_conftest_c99_globals}
3297
3298 int
3299 main (int argc, char **argv)
3300 {
3301 int ok = 0;
3302 ${ac_c_conftest_c89_main}
3303 ${ac_c_conftest_c99_main}
3304 return ok;
3305 }
3306 "
3307
3308 # Test code for whether the C compiler supports C89 (complete).
3309 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3310
3311 int
3312 main (int argc, char **argv)
3313 {
3314 int ok = 0;
3315 ${ac_c_conftest_c89_main}
3316 return ok;
3317 }
3318 "
3319
3320 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3321 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3322 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3323 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3324 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3325 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3326 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3327 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3328 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3329 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3330 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3331
3332 # Auxiliary files required by this configure script.
3333 ac_aux_files="install-sh config.guess config.sub"
3334
3335 # Locations in which to look for auxiliary files.
3336 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3337
3338 # Search for a directory containing all of the required auxiliary files,
3339 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3340 # If we don't find one directory that contains all the files we need,
3341 # we report the set of missing files from the *first* directory in
3342 # $ac_aux_dir_candidates and give up.
3343 ac_missing_aux_files=""
3344 ac_first_candidate=:
3345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 as_found=false
3348 for as_dir in $ac_aux_dir_candidates
3349 do
3350 IFS=$as_save_IFS
3351 case $as_dir in #(((
3352 '') as_dir=./ ;;
3353 */) ;;
3354 *) as_dir=$as_dir/ ;;
3355 esac
3356 as_found=:
3357
3358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3359 ac_aux_dir_found=yes
3360 ac_install_sh=
3361 for ac_aux in $ac_aux_files
3362 do
3363 # As a special case, if "install-sh" is required, that requirement
3364 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3365 # and $ac_install_sh is set appropriately for whichever one is found.
3366 if test x"$ac_aux" = x"install-sh"
3367 then
3368 if test -f "${as_dir}install-sh"; then
3369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3370 ac_install_sh="${as_dir}install-sh -c"
3371 elif test -f "${as_dir}install.sh"; then
3372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3373 ac_install_sh="${as_dir}install.sh -c"
3374 elif test -f "${as_dir}shtool"; then
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3376 ac_install_sh="${as_dir}shtool install -c"
3377 else
3378 ac_aux_dir_found=no
3379 if $ac_first_candidate; then
3380 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3381 else
3382 break
3383 fi
3384 fi
3385 else
3386 if test -f "${as_dir}${ac_aux}"; then
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3388 else
3389 ac_aux_dir_found=no
3390 if $ac_first_candidate; then
3391 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3392 else
3393 break
3394 fi
3395 fi
3396 fi
3397 done
3398 if test "$ac_aux_dir_found" = yes; then
3399 ac_aux_dir="$as_dir"
3400 break
3401 fi
3402 ac_first_candidate=false
3403
3404 as_found=false
3405 done
3406 IFS=$as_save_IFS
3407 if $as_found
3408 then :
3409
3410 else $as_nop
3411 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3412 fi
3413
3414
3415 # These three variables are undocumented and unsupported,
3416 # and are intended to be withdrawn in a future Autoconf release.
3417 # They can cause serious problems if a builder's source tree is in a directory
3418 # whose full name contains unusual characters.
3419 if test -f "${ac_aux_dir}config.guess"; then
3420 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3421 fi
3422 if test -f "${ac_aux_dir}config.sub"; then
3423 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3424 fi
3425 if test -f "$ac_aux_dir/configure"; then
3426 ac_configure="$SHELL ${ac_aux_dir}configure"
3427 fi
3428
3429 # Check that the precious variables saved in the cache have kept the same
3430 # value.
3431 ac_cache_corrupted=false
3432 for ac_var in $ac_precious_vars; do
3433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3434 eval ac_new_set=\$ac_env_${ac_var}_set
3435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3436 eval ac_new_val=\$ac_env_${ac_var}_value
3437 case $ac_old_set,$ac_new_set in
3438 set,)
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3440 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3441 ac_cache_corrupted=: ;;
3442 ,set)
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3444 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3445 ac_cache_corrupted=: ;;
3446 ,);;
3447 *)
3448 if test "x$ac_old_val" != "x$ac_new_val"; then
3449 # differences in whitespace do not lead to failure.
3450 ac_old_val_w=`echo x $ac_old_val`
3451 ac_new_val_w=`echo x $ac_new_val`
3452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3454 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3455 ac_cache_corrupted=:
3456 else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3458 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3459 eval $ac_var=\$ac_old_val
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3462 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3464 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3465 fi;;
3466 esac
3467 # Pass precious variables to config.status.
3468 if test "$ac_new_set" = set; then
3469 case $ac_new_val in
3470 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3471 *) ac_arg=$ac_var=$ac_new_val ;;
3472 esac
3473 case " $ac_configure_args " in
3474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3476 esac
3477 fi
3478 done
3479 if $ac_cache_corrupted; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3483 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3484 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3485 and start over" "$LINENO" 5
3486 fi
3487 ## -------------------- ##
3488 ## Main body of script. ##
3489 ## -------------------- ##
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
3509 # If we're building out-of-tree, we need to make sure the following
3510 # resources get picked up before their $srcdir counterparts.
3511 # Objects/ -> typeslots.inc
3512 # Include/ -> Python.h
3513 # (A side effect of this is that these resources will automatically be
3514 # regenerated when building out-of-tree, regardless of whether or not
3515 # the $srcdir counterpart is up-to-date. This is an acceptable trade
3516 # off.)
3517 BASECPPFLAGS="-IObjects -IInclude -IPython"
3518 else
3519 BASECPPFLAGS=""
3520 fi
3521
3522
3523
3524
3525
3526 if test -e $srcdir/.git
3527 then
3528 # Extract the first word of "git", so it can be a program name with args.
3529 set dummy git; ac_word=$2
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 printf %s "checking for $ac_word... " >&6; }
3532 if test ${ac_cv_prog_HAS_GIT+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else $as_nop
3536 if test -n "$HAS_GIT"; then
3537 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 case $as_dir in #(((
3544 '') as_dir=./ ;;
3545 */) ;;
3546 *) as_dir=$as_dir/ ;;
3547 esac
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_HAS_GIT="found"
3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
3559 fi
3560 fi
3561 HAS_GIT=$ac_cv_prog_HAS_GIT
3562 if test -n "$HAS_GIT"; then
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
3564 printf "%s\n" "$HAS_GIT" >&6; }
3565 else
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 printf "%s\n" "no" >&6; }
3568 fi
3569
3570
3571 else
3572 HAS_GIT=no-repository
3573 fi
3574 if test $HAS_GIT = found
3575 then
3576 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
3577 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
3578 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
3579 else
3580 GITVERSION=""
3581 GITTAG=""
3582 GITBRANCH=""
3583 fi
3584
3585
3586 ac_config_headers="$ac_config_headers pyconfig.h"
3587
3588
3589
3590
3591
3592 # Make sure we can run config.sub.
3593 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3594 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3595
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3597 printf %s "checking build system type... " >&6; }
3598 if test ${ac_cv_build+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else $as_nop
3602 ac_build_alias=$build_alias
3603 test "x$ac_build_alias" = x &&
3604 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3605 test "x$ac_build_alias" = x &&
3606 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3607 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3608 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3609
3610 fi
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3612 printf "%s\n" "$ac_cv_build" >&6; }
3613 case $ac_cv_build in
3614 *-*-*) ;;
3615 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3616 esac
3617 build=$ac_cv_build
3618 ac_save_IFS=$IFS; IFS='-'
3619 set x $ac_cv_build
3620 shift
3621 build_cpu=$1
3622 build_vendor=$2
3623 shift; shift
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3626 build_os=$*
3627 IFS=$ac_save_IFS
3628 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3629
3630
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3632 printf %s "checking host system type... " >&6; }
3633 if test ${ac_cv_host+y}
3634 then :
3635 printf %s "(cached) " >&6
3636 else $as_nop
3637 if test "x$host_alias" = x; then
3638 ac_cv_host=$ac_cv_build
3639 else
3640 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3641 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3642 fi
3643
3644 fi
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3646 printf "%s\n" "$ac_cv_host" >&6; }
3647 case $ac_cv_host in
3648 *-*-*) ;;
3649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3650 esac
3651 host=$ac_cv_host
3652 ac_save_IFS=$IFS; IFS='-'
3653 set x $ac_cv_host
3654 shift
3655 host_cpu=$1
3656 host_vendor=$2
3657 shift; shift
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3660 host_os=$*
3661 IFS=$ac_save_IFS
3662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3663
3664
3665
3666
3667
3668 if test "x$cross_compiling" = xmaybe
3669 then :
3670 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3671
3672 fi
3673
3674 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
3675 rm -f pybuilddir.txt
3676
3677
3678 # Check whether --with-build-python was given.
3679 if test ${with_build_python+y}
3680 then :
3681 withval=$with_build_python;
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5
3683 printf %s "checking for --with-build-python... " >&6; }
3684
3685 if test "x$with_build_python" = xyes
3686 then :
3687 with_build_python=python$PACKAGE_VERSION
3688 fi
3689 if test "x$with_build_python" = xno
3690 then :
3691 as_fn_error $? "invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5
3692 fi
3693
3694 if ! $(command -v "$with_build_python" >/dev/null 2>&1); then
3695 as_fn_error $? "invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5
3696 fi
3697 build_python_ver=$($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
3698 if test "$build_python_ver" != "$PACKAGE_VERSION"; then
3699 as_fn_error $? "\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5
3700 fi
3701 ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python
3702 PYTHON_FOR_FREEZE="$with_build_python"
3703 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) '$with_build_python
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5
3705 printf "%s\n" "$with_build_python" >&6; }
3706
3707 else $as_nop
3708
3709 if test "x$cross_compiling" = xyes
3710 then :
3711 as_fn_error $? "Cross compiling requires --with-build-python" "$LINENO" 5
3712
3713 fi
3714 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
3715 PYTHON_FOR_FREEZE="./_bootstrap_python"
3716
3717
3718 fi
3719
3720
3721
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5
3723 printf %s "checking for Python interpreter freezing... " >&6; }
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5
3725 printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; }
3726
3727
3728 if test "x$cross_compiling" = xyes
3729 then :
3730
3731 FREEZE_MODULE_BOOTSTRAP='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3732 FREEZE_MODULE_BOOTSTRAP_DEPS='$(srcdir)/Programs/_freeze_module.py'
3733 FREEZE_MODULE='$(FREEZE_MODULE_BOOTSTRAP)'
3734 FREEZE_MODULE_DEPS='$(FREEZE_MODULE_BOOTSTRAP_DEPS)'
3735 PYTHON_FOR_BUILD_DEPS=''
3736
3737 else $as_nop
3738
3739 FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module'
3740 FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module"
3741 FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3742 FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py"
3743 PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)'
3744
3745
3746 fi
3747
3748
3749
3750
3751
3752
3753 for ac_prog in python$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python
3754 do
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_PYTHON_FOR_REGEN+y}
3760 then :
3761 printf %s "(cached) " >&6
3762 else $as_nop
3763 if test -n "$PYTHON_FOR_REGEN"; then
3764 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769 IFS=$as_save_IFS
3770 case $as_dir in #(((
3771 '') as_dir=./ ;;
3772 */) ;;
3773 *) as_dir=$as_dir/ ;;
3774 esac
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781 done
3782 done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
3788 if test -n "$PYTHON_FOR_REGEN"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
3790 printf "%s\n" "$PYTHON_FOR_REGEN" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 test -n "$PYTHON_FOR_REGEN" && break
3798 done
3799 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
3800
3801
3802
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5
3804 printf %s "checking Python for regen version... " >&6; }
3805 if command -v "$PYTHON_FOR_REGEN" >/dev/null 2>&1; then
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5
3807 printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; }
3808 else
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
3810 printf "%s\n" "missing" >&6; }
3811 fi
3812
3813
3814 if test "$prefix" != "/"; then
3815 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
3816 fi
3817
3818
3819
3820
3821 # We don't use PACKAGE_ variables, and they cause conflicts
3822 # with other autoconf-based packages that include Python.h
3823 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3824 rm confdefs.h
3825 mv confdefs.h.new confdefs.h
3826
3827
3828 VERSION=3.13
3829
3830 # Version number of Python's own shared library file.
3831
3832 SOVERSION=1.0
3833
3834 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3836 # them.
3837
3838 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3839
3840
3841 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3843 # them.
3844
3845 printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h
3846
3847
3848 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3849 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3850 # them.
3851
3852 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3853
3854
3855
3856 define_xopen_source=yes
3857
3858 # Arguments passed to configure.
3859
3860 CONFIG_ARGS="$ac_configure_args"
3861
3862
3863 # Check whether --with-pkg-config was given.
3864 if test ${with_pkg_config+y}
3865 then :
3866 withval=$with_pkg_config;
3867 else $as_nop
3868 with_pkg_config=check
3869
3870 fi
3871
3872 case $with_pkg_config in #(
3873 yes|check) :
3874
3875 if test -z "$PKG_CONFIG"; then
3876 { PKG_CONFIG=; unset PKG_CONFIG;}
3877 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
3878 { ac_cv_prog_ac_ct_PKG_CONFIG=; unset ac_cv_prog_ac_ct_PKG_CONFIG;}
3879 fi
3880
3881
3882
3883
3884
3885
3886
3887 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s "checking for $ac_word... " >&6; }
3893 if test ${ac_cv_path_PKG_CONFIG+y}
3894 then :
3895 printf %s "(cached) " >&6
3896 else $as_nop
3897 case $PKG_CONFIG in
3898 [\\/]* | ?:[\\/]*)
3899 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3900 ;;
3901 *)
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 case $as_dir in #(((
3907 '') as_dir=./ ;;
3908 */) ;;
3909 *) as_dir=$as_dir/ ;;
3910 esac
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3913 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917 done
3918 done
3919 IFS=$as_save_IFS
3920
3921 ;;
3922 esac
3923 fi
3924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3925 if test -n "$PKG_CONFIG"; then
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3927 printf "%s\n" "$PKG_CONFIG" >&6; }
3928 else
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$ac_cv_path_PKG_CONFIG"; then
3936 ac_pt_PKG_CONFIG=$PKG_CONFIG
3937 # Extract the first word of "pkg-config", so it can be a program name with args.
3938 set dummy pkg-config; ac_word=$2
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 printf %s "checking for $ac_word... " >&6; }
3941 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3942 then :
3943 printf %s "(cached) " >&6
3944 else $as_nop
3945 case $ac_pt_PKG_CONFIG in
3946 [\\/]* | ?:[\\/]*)
3947 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3948 ;;
3949 *)
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953 IFS=$as_save_IFS
3954 case $as_dir in #(((
3955 '') as_dir=./ ;;
3956 */) ;;
3957 *) as_dir=$as_dir/ ;;
3958 esac
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3961 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967 IFS=$as_save_IFS
3968
3969 ;;
3970 esac
3971 fi
3972 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3973 if test -n "$ac_pt_PKG_CONFIG"; then
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3975 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3976 else
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3979 fi
3980
3981 if test "x$ac_pt_PKG_CONFIG" = x; then
3982 PKG_CONFIG=""
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985 yes:)
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988 ac_tool_warned=yes ;;
3989 esac
3990 PKG_CONFIG=$ac_pt_PKG_CONFIG
3991 fi
3992 else
3993 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3994 fi
3995
3996 fi
3997 if test -n "$PKG_CONFIG"; then
3998 _pkg_min_version=0.9.0
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4000 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4001 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003 printf "%s\n" "yes" >&6; }
4004 else
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 PKG_CONFIG=""
4008 fi
4009 fi
4010 ;; #(
4011 no) :
4012
4013 PKG_CONFIG=''
4014 ac_cv_path_ac_pt_PKG_CONFIG=''
4015 ac_cv_prog_ac_ct_PKG_CONFIG=''
4016 ;; #(
4017 *) :
4018 as_fn_error $? "invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5
4019 ;;
4020 esac
4021 if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then
4022 as_fn_error $? "pkg-config is required" "$LINENO" 5]
4023 fi
4024
4025 # Set name for machine-dependent library files
4026
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
4028 printf %s "checking MACHDEP... " >&6; }
4029 if test -z "$MACHDEP"
4030 then
4031 # avoid using uname for cross builds
4032 if test "$cross_compiling" = yes; then
4033 # ac_sys_system and ac_sys_release are used for setting
4034 # a lot of different things including 'define_xopen_source'
4035 # in the case statement below.
4036 case "$host" in
4037 *-*-linux-android*)
4038 ac_sys_system=Linux-android
4039 ;;
4040 *-*-linux*)
4041 ac_sys_system=Linux
4042 ;;
4043 *-*-cygwin*)
4044 ac_sys_system=Cygwin
4045 ;;
4046 *-apple-ios*)
4047 ac_sys_system=iOS
4048 ;;
4049 *-*-vxworks*)
4050 ac_sys_system=VxWorks
4051 ;;
4052 *-*-emscripten)
4053 ac_sys_system=Emscripten
4054 ;;
4055 *-*-wasi)
4056 ac_sys_system=WASI
4057 ;;
4058 *)
4059 # for now, limit cross builds to known configurations
4060 MACHDEP="unknown"
4061 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4062 esac
4063 ac_sys_release=
4064 else
4065 ac_sys_system=`uname -s`
4066 if test "$ac_sys_system" = "AIX" \
4067 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
4068 ac_sys_release=`uname -v`
4069 else
4070 ac_sys_release=`uname -r`
4071 fi
4072 fi
4073 ac_md_system=`echo $ac_sys_system |
4074 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
4075 ac_md_release=`echo $ac_sys_release |
4076 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
4077 MACHDEP="$ac_md_system$ac_md_release"
4078
4079 case $MACHDEP in
4080 aix*) MACHDEP="aix";;
4081 linux-android*) MACHDEP="android";;
4082 linux*) MACHDEP="linux";;
4083 cygwin*) MACHDEP="cygwin";;
4084 darwin*) MACHDEP="darwin";;
4085 '') MACHDEP="unknown";;
4086 esac
4087
4088 if test "$ac_sys_system" = "SunOS"; then
4089 # For Solaris, there isn't an OS version specific macro defined
4090 # in most compilers, so we define one here.
4091 SUNOS_VERSION=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'`
4092
4093 printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h
4094
4095 fi
4096 fi
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
4098 printf "%s\n" "\"$MACHDEP\"" >&6; }
4099
4100 # On cross-compile builds, configure will look for a host-specific compiler by
4101 # prepending the user-provided host triple to the required binary name.
4102 #
4103 # On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
4104 # which isn't a binary that exists, and isn't very convenient, as it contains the
4105 # iOS version. As the default cross-compiler name won't exist, configure falls
4106 # back to gcc, which *definitely* won't work. We're providing wrapper scripts for
4107 # these tools; the binary names of these scripts are better defaults than "gcc".
4108 # This only requires that the user put the platform scripts folder (e.g.,
4109 # "iOS/Resources/bin") in their path, rather than defining platform-specific
4110 # names/paths for AR, CC, CPP, and CXX explicitly; and if the user forgets to
4111 # either put the platform scripts folder in the path, or specify CC etc,
4112 # configure will fail.
4113 if test -z "$AR"; then
4114 case "$host" in
4115 aarch64-apple-ios*-simulator) AR=arm64-apple-ios-simulator-ar ;;
4116 aarch64-apple-ios*) AR=arm64-apple-ios-ar ;;
4117 x86_64-apple-ios*-simulator) AR=x86_64-apple-ios-simulator-ar ;;
4118 *)
4119 esac
4120 fi
4121 if test -z "$CC"; then
4122 case "$host" in
4123 aarch64-apple-ios*-simulator) CC=arm64-apple-ios-simulator-clang ;;
4124 aarch64-apple-ios*) CC=arm64-apple-ios-clang ;;
4125 x86_64-apple-ios*-simulator) CC=x86_64-apple-ios-simulator-clang ;;
4126 *)
4127 esac
4128 fi
4129 if test -z "$CPP"; then
4130 case "$host" in
4131 aarch64-apple-ios*-simulator) CPP=arm64-apple-ios-simulator-cpp ;;
4132 aarch64-apple-ios*) CPP=arm64-apple-ios-cpp ;;
4133 x86_64-apple-ios*-simulator) CPP=x86_64-apple-ios-simulator-cpp ;;
4134 *)
4135 esac
4136 fi
4137 if test -z "$CXX"; then
4138 case "$host" in
4139 aarch64-apple-ios*-simulator) CXX=arm64-apple-ios-simulator-clang ;;
4140 aarch64-apple-ios*) CXX=arm64-apple-ios-clang ;;
4141 x86_64-apple-ios*-simulator) CXX=x86_64-apple-ios-simulator-clang ;;
4142 *)
4143 esac
4144 fi
4145
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
4147 printf %s "checking for --enable-universalsdk... " >&6; }
4148 # Check whether --enable-universalsdk was given.
4149 if test ${enable_universalsdk+y}
4150 then :
4151 enableval=$enable_universalsdk;
4152 case $enableval in
4153 yes)
4154 # Locate the best usable SDK, see Mac/README for more
4155 # information
4156 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
4157 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
4158 then
4159 enableval=/Developer/SDKs/MacOSX10.4u.sdk
4160 if test ! -d "${enableval}"
4161 then
4162 enableval=/
4163 fi
4164 fi
4165 ;;
4166 esac
4167 case $enableval in
4168 no)
4169 UNIVERSALSDK=
4170 enable_universalsdk=
4171 ;;
4172 *)
4173 UNIVERSALSDK=$enableval
4174 if test ! -d "${UNIVERSALSDK}"
4175 then
4176 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
4177 fi
4178 ;;
4179 esac
4180
4181
4182 else $as_nop
4183
4184 UNIVERSALSDK=
4185 enable_universalsdk=
4186
4187 fi
4188
4189 if test -n "${UNIVERSALSDK}"
4190 then
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
4192 printf "%s\n" "${UNIVERSALSDK}" >&6; }
4193 else
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 printf "%s\n" "no" >&6; }
4196 fi
4197
4198
4199
4200 ARCH_RUN_32BIT=""
4201
4202 # For backward compatibility reasons we prefer to select '32-bit' if available,
4203 # otherwise use 'intel'
4204 UNIVERSAL_ARCHS="32-bit"
4205 if test "`uname -s`" = "Darwin"
4206 then
4207 if test -n "${UNIVERSALSDK}"
4208 then
4209 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
4210 then
4211 UNIVERSAL_ARCHS="intel"
4212 fi
4213 fi
4214 fi
4215
4216
4217
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
4219 printf %s "checking for --with-universal-archs... " >&6; }
4220
4221 # Check whether --with-universal-archs was given.
4222 if test ${with_universal_archs+y}
4223 then :
4224 withval=$with_universal_archs;
4225 UNIVERSAL_ARCHS="$withval"
4226
4227 fi
4228
4229 if test -n "${UNIVERSALSDK}"
4230 then
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
4232 printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; }
4233 else
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 printf "%s\n" "no" >&6; }
4236 fi
4237
4238
4239 # Check whether --with-framework-name was given.
4240 if test ${with_framework_name+y}
4241 then :
4242 withval=$with_framework_name;
4243 PYTHONFRAMEWORK=${withval}
4244 PYTHONFRAMEWORKDIR=${withval}.framework
4245 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
4246
4247 else $as_nop
4248
4249 PYTHONFRAMEWORK=Python
4250 PYTHONFRAMEWORKDIR=Python.framework
4251 PYTHONFRAMEWORKIDENTIFIER=org.python.python
4252
4253 fi
4254
4255 # Check whether --enable-framework was given.
4256 if test ${enable_framework+y}
4257 then :
4258 enableval=$enable_framework;
4259 case $enableval in
4260 yes)
4261 case $ac_sys_system in
4262 Darwin) enableval=/Library/Frameworks ;;
4263 iOS) enableval=iOS/Frameworks/\$\(MULTIARCH\) ;;
4264 *) as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4265 esac
4266 esac
4267
4268 case $enableval in
4269 no)
4270 case $ac_sys_system in
4271 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4272 *)
4273 PYTHONFRAMEWORK=
4274 PYTHONFRAMEWORKDIR=no-framework
4275 PYTHONFRAMEWORKPREFIX=
4276 PYTHONFRAMEWORKINSTALLDIR=
4277 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4278 RESSRCDIR=
4279 FRAMEWORKINSTALLFIRST=
4280 FRAMEWORKINSTALLLAST=
4281 FRAMEWORKALTINSTALLFIRST=
4282 FRAMEWORKALTINSTALLLAST=
4283 FRAMEWORKPYTHONW=
4284 INSTALLTARGETS="commoninstall bininstall maninstall"
4285
4286 if test "x${prefix}" = "xNONE"; then
4287 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4288 else
4289 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4290 fi
4291 enable_framework=
4292 esac
4293 ;;
4294 *)
4295 PYTHONFRAMEWORKPREFIX="${enableval}"
4296 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
4297
4298 case $ac_sys_system in #(
4299 Darwin) :
4300 FRAMEWORKINSTALLFIRST="frameworkinstallversionedstructure"
4301 FRAMEWORKALTINSTALLFIRST="frameworkinstallversionedstructure "
4302 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
4303 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
4304 FRAMEWORKPYTHONW="frameworkpythonw"
4305 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4306 INSTALLTARGETS="commoninstall bininstall maninstall"
4307
4308 if test "x${prefix}" = "xNONE" ; then
4309 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4310
4311 else
4312 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4313 fi
4314
4315 case "${enableval}" in
4316 /System*)
4317 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4318 if test "${prefix}" = "NONE" ; then
4319 # See below
4320 FRAMEWORKUNIXTOOLSPREFIX="/usr"
4321 fi
4322 ;;
4323
4324 /Library*)
4325 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4326 ;;
4327
4328 */Library/Frameworks)
4329 MDIR="`dirname "${enableval}"`"
4330 MDIR="`dirname "${MDIR}"`"
4331 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
4332
4333 if test "${prefix}" = "NONE"; then
4334 # User hasn't specified the
4335 # --prefix option, but wants to install
4336 # the framework in a non-default location,
4337 # ensure that the compatibility links get
4338 # installed relative to that prefix as well
4339 # instead of in /usr/local.
4340 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
4341 fi
4342 ;;
4343
4344 *)
4345 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4346 ;;
4347 esac
4348
4349 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
4350 PYTHONFRAMEWORKINSTALLNAMEPREFIX=${prefix}
4351 RESSRCDIR=Mac/Resources/framework
4352
4353 # Add files for Mac specific code to the list of output
4354 # files:
4355 ac_config_files="$ac_config_files Mac/Makefile"
4356
4357 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
4358
4359 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
4360
4361 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
4362
4363 ;;
4364 iOS) :
4365 FRAMEWORKINSTALLFIRST="frameworkinstallunversionedstructure"
4366 FRAMEWORKALTINSTALLFIRST="frameworkinstallunversionedstructure "
4367 FRAMEWORKINSTALLLAST="frameworkinstallmobileheaders"
4368 FRAMEWORKALTINSTALLLAST="frameworkinstallmobileheaders"
4369 FRAMEWORKPYTHONW=
4370 INSTALLTARGETS="libinstall inclinstall sharedinstall"
4371
4372 prefix=$PYTHONFRAMEWORKPREFIX
4373 PYTHONFRAMEWORKINSTALLNAMEPREFIX="@rpath/$PYTHONFRAMEWORKDIR"
4374 RESSRCDIR=iOS/Resources
4375
4376 ac_config_files="$ac_config_files iOS/Resources/Info.plist"
4377
4378 ;;
4379 *)
4380 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4381 ;;
4382 esac
4383 esac
4384
4385 else $as_nop
4386
4387 case $ac_sys_system in
4388 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4389 *)
4390 PYTHONFRAMEWORK=
4391 PYTHONFRAMEWORKDIR=no-framework
4392 PYTHONFRAMEWORKPREFIX=
4393 PYTHONFRAMEWORKINSTALLDIR=
4394 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4395 RESSRCDIR=
4396 FRAMEWORKINSTALLFIRST=
4397 FRAMEWORKINSTALLLAST=
4398 FRAMEWORKALTINSTALLFIRST=
4399 FRAMEWORKALTINSTALLLAST=
4400 FRAMEWORKPYTHONW=
4401 INSTALLTARGETS="commoninstall bininstall maninstall"
4402 if test "x${prefix}" = "xNONE" ; then
4403 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4404 else
4405 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4406 fi
4407 enable_framework=
4408 esac
4409
4410 fi
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h
4430
4431
4432
4433 if test "$cross_compiling" = yes; then
4434 case "$host" in
4435 *-*-linux*)
4436 case "$host_cpu" in
4437 arm*)
4438 _host_ident=arm
4439 ;;
4440 *)
4441 _host_ident=$host_cpu
4442 esac
4443 ;;
4444 *-*-cygwin*)
4445 _host_ident=
4446 ;;
4447 *-apple-ios*)
4448 _host_os=`echo $host | cut -d '-' -f3`
4449 _host_device=`echo $host | cut -d '-' -f4`
4450 _host_device=${_host_device:=os}
4451
4452 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
4453 IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3}
4454 IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
4455
4456 case "$host_cpu" in
4457 aarch64)
4458 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphone${_host_device}
4459 ;;
4460 *)
4461 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphone${_host_device}
4462 ;;
4463 esac
4464 ;;
4465 *-*-vxworks*)
4466 _host_ident=$host_cpu
4467 ;;
4468 wasm32-*-* | wasm64-*-*)
4469 _host_ident=$host_cpu
4470 ;;
4471 *)
4472 # for now, limit cross builds to known configurations
4473 MACHDEP="unknown"
4474 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4475 esac
4476 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_ident:+-$_host_ident}"
4477 fi
4478
4479 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
4480 # disable features if it is defined, without any means to access these
4481 # features as extensions. For these systems, we skip the definition of
4482 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
4483 # some feature, make sure there is no alternative way to access this
4484 # feature. Also, when using wildcards, make sure you have verified the
4485 # need for not defining _XOPEN_SOURCE on all systems matching the
4486 # wildcard, and that the wildcard does not include future systems
4487 # (which may remove their limitations).
4488 case $ac_sys_system/$ac_sys_release in
4489 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
4490 # even though select is a POSIX function. Reported by J. Ribbens.
4491 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
4492 # In addition, Stefan Krah confirms that issue #1244610 exists through
4493 # OpenBSD 4.6, but is fixed in 4.7.
4494 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
4495 define_xopen_source=no
4496 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4497 # also defined. This can be overridden by defining _BSD_SOURCE
4498 # As this has a different meaning on Linux, only define it on OpenBSD
4499
4500 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4501
4502 ;;
4503 OpenBSD/*)
4504 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4505 # also defined. This can be overridden by defining _BSD_SOURCE
4506 # As this has a different meaning on Linux, only define it on OpenBSD
4507
4508 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4509
4510 ;;
4511 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
4512 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
4513 # Marc Recht
4514 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
4515 define_xopen_source=no;;
4516 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
4517 # request to enable features supported by the standard as a request
4518 # to disable features not supported by the standard. The best way
4519 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
4520 # entirely and define __EXTENSIONS__ instead.
4521 SunOS/*)
4522 define_xopen_source=no;;
4523 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
4524 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
4525 # Reconfirmed for 7.1.4 by Martin v. Loewis.
4526 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
4527 define_xopen_source=no;;
4528 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
4529 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
4530 SCO_SV/3.2)
4531 define_xopen_source=no;;
4532 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
4533 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
4534 # identifies itself as Darwin/7.*
4535 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4536 # disables platform specific features beyond repair.
4537 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4538 # has no effect, don't bother defining them
4539 Darwin/[6789].*)
4540 define_xopen_source=no;;
4541 Darwin/[12][0-9].*)
4542 define_xopen_source=no;;
4543 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features.
4544 iOS/*)
4545 define_xopen_source=no;;
4546 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
4547 # defining NI_NUMERICHOST.
4548 QNX/6.3.2)
4549 define_xopen_source=no
4550 ;;
4551 # On VxWorks, defining _XOPEN_SOURCE causes compile failures
4552 # in network headers still using system V types.
4553 VxWorks/*)
4554 define_xopen_source=no
4555 ;;
4556
4557 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
4558 # chroot() and other functions
4559 hp*|HP*)
4560 define_xopen_source=no
4561 ;;
4562
4563 esac
4564
4565 if test $define_xopen_source = yes
4566 then
4567 # X/Open 7, incorporating POSIX.1-2008
4568
4569 printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
4570
4571
4572 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
4573 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
4574 # several APIs are not declared. Since this is also needed in some
4575 # cases for HP-UX, we define it globally.
4576
4577 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4578
4579
4580
4581 printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
4582
4583 fi
4584
4585 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
4586 case $ac_sys_system in
4587 hp*|HP*)
4588 define_stdc_a1=yes;;
4589 *)
4590 define_stdc_a1=no;;
4591 esac
4592
4593 if test $define_stdc_a1 = yes
4594 then
4595
4596 printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
4597
4598 fi
4599
4600 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
4601 # it may influence the way we can build extensions, so distutils
4602 # needs to check it
4603
4604
4605 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
4606 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
4607
4608 # Record the value of IPHONEOS_DEPLOYMENT_TARGET enforced by the selected host triple.
4609
4610
4611 # checks for alternative programs
4612
4613 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
4614 # for debug/optimization stuff. BASECFLAGS is for flags that are required
4615 # just to get things to compile and link. Users are free to override OPT
4616 # when running configure or make. The build should not break if they do.
4617 # BASECFLAGS should generally not be messed with, however.
4618
4619 # If the user switches compilers, we can't believe the cache
4620 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
4621 then
4622 as_fn_error $? "cached CC is different -- throw away $cache_file
4623 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
4624 fi
4625
4626 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
4627 # when the compiler supports them, but we don't always want -O2, and
4628 # we set -g later.
4629 if test -z "$CFLAGS"; then
4630 CFLAGS=
4631 fi
4632
4633 case $host in #(
4634 wasm64-*-emscripten) :
4635
4636 as_fn_append CFLAGS " -sMEMORY64=1"
4637 as_fn_append LDFLAGS " -sMEMORY64=1"
4638 ;; #(
4639 *) :
4640 ;;
4641 esac
4642
4643 case $ac_sys_system in #(
4644 iOS) :
4645
4646 as_fn_append CFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4647 as_fn_append LDFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4648 ;; #(
4649 *) :
4650 ;;
4651 esac
4652
4653 if test "$ac_sys_system" = "Darwin"
4654 then
4655 # Extract the first word of "xcrun", so it can be a program name with args.
4656 set dummy xcrun; ac_word=$2
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 printf %s "checking for $ac_word... " >&6; }
4659 if test ${ac_cv_prog_HAS_XCRUN+y}
4660 then :
4661 printf %s "(cached) " >&6
4662 else $as_nop
4663 if test -n "$HAS_XCRUN"; then
4664 ac_cv_prog_HAS_XCRUN="$HAS_XCRUN" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669 IFS=$as_save_IFS
4670 case $as_dir in #(((
4671 '') as_dir=./ ;;
4672 */) ;;
4673 *) as_dir=$as_dir/ ;;
4674 esac
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_HAS_XCRUN="yes"
4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 test -z "$ac_cv_prog_HAS_XCRUN" && ac_cv_prog_HAS_XCRUN="missing"
4686 fi
4687 fi
4688 HAS_XCRUN=$ac_cv_prog_HAS_XCRUN
4689 if test -n "$HAS_XCRUN"; then
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_XCRUN" >&5
4691 printf "%s\n" "$HAS_XCRUN" >&6; }
4692 else
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 printf "%s\n" "no" >&6; }
4695 fi
4696
4697
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking macOS SDKROOT" >&5
4699 printf %s "checking macOS SDKROOT... " >&6; }
4700 if test -z "$SDKROOT"; then
4701 if test "$HAS_XCRUN" = "yes"; then
4702 SDKROOT=$(xcrun --show-sdk-path)
4703 else
4704 SDKROOT="/"
4705 fi
4706 fi
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDKROOT" >&5
4708 printf "%s\n" "$SDKROOT" >&6; }
4709
4710 # Compiler selection on MacOSX is more complicated than
4711 # AC_PROG_CC can handle, see Mac/README for more
4712 # information
4713 if test -z "${CC}"
4714 then
4715 found_gcc=
4716 found_clang=
4717 as_save_IFS=$IFS; IFS=:
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 if test -x "${as_dir}/gcc"; then
4722 if test -z "${found_gcc}"; then
4723 found_gcc="${as_dir}/gcc"
4724 fi
4725 fi
4726 if test -x "${as_dir}/clang"; then
4727 if test -z "${found_clang}"; then
4728 found_clang="${as_dir}/clang"
4729 fi
4730 fi
4731 done
4732 IFS=$as_save_IFS
4733
4734 if test -n "$found_gcc" -a -n "$found_clang"
4735 then
4736 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
4737 then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
4739 printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
4740 CC="$found_clang"
4741 CXX="$found_clang++"
4742 fi
4743
4744
4745 elif test -z "$found_gcc" -a -n "$found_clang"
4746 then
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
4748 printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;}
4749 CC="$found_clang"
4750 CXX="$found_clang++"
4751
4752 elif test -z "$found_gcc" -a -z "$found_clang"
4753 then
4754 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
4755 if test -n "${found_clang}"
4756 then
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
4758 printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;}
4759 CC="${found_clang}"
4760 CXX="`/usr/bin/xcrun -find clang++`"
4761
4762 # else: use default behaviour
4763 fi
4764 fi
4765 fi
4766 fi
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 printf %s "checking for $ac_word... " >&6; }
4786 if test ${ac_cv_prog_CC+y}
4787 then :
4788 printf %s "(cached) " >&6
4789 else $as_nop
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC="$CC" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 case $as_dir in #(((
4798 '') as_dir=./ ;;
4799 */) ;;
4800 *) as_dir=$as_dir/ ;;
4801 esac
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 CC=$ac_cv_prog_CC
4815 if test -n "$CC"; then
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4817 printf "%s\n" "$CC" >&6; }
4818 else
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 printf "%s\n" "no" >&6; }
4821 fi
4822
4823
4824 fi
4825 if test -z "$ac_cv_prog_CC"; then
4826 ac_ct_CC=$CC
4827 # Extract the first word of "gcc", so it can be a program name with args.
4828 set dummy gcc; ac_word=$2
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 printf %s "checking for $ac_word... " >&6; }
4831 if test ${ac_cv_prog_ac_ct_CC+y}
4832 then :
4833 printf %s "(cached) " >&6
4834 else $as_nop
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 case $as_dir in #(((
4843 '') as_dir=./ ;;
4844 */) ;;
4845 *) as_dir=$as_dir/ ;;
4846 esac
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_CC="gcc"
4850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4862 printf "%s\n" "$ac_ct_CC" >&6; }
4863 else
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 printf "%s\n" "no" >&6; }
4866 fi
4867
4868 if test "x$ac_ct_CC" = x; then
4869 CC=""
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 CC=$ac_ct_CC
4878 fi
4879 else
4880 CC="$ac_cv_prog_CC"
4881 fi
4882
4883 if test -z "$CC"; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}cc; ac_word=$2
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 printf %s "checking for $ac_word... " >&6; }
4889 if test ${ac_cv_prog_CC+y}
4890 then :
4891 printf %s "(cached) " >&6
4892 else $as_nop
4893 if test -n "$CC"; then
4894 ac_cv_prog_CC="$CC" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899 IFS=$as_save_IFS
4900 case $as_dir in #(((
4901 '') as_dir=./ ;;
4902 */) ;;
4903 *) as_dir=$as_dir/ ;;
4904 esac
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_CC="${ac_tool_prefix}cc"
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 CC=$ac_cv_prog_CC
4918 if test -n "$CC"; then
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4920 printf "%s\n" "$CC" >&6; }
4921 else
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 printf "%s\n" "no" >&6; }
4924 fi
4925
4926
4927 fi
4928 fi
4929 if test -z "$CC"; then
4930 # Extract the first word of "cc", so it can be a program name with args.
4931 set dummy cc; ac_word=$2
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 printf %s "checking for $ac_word... " >&6; }
4934 if test ${ac_cv_prog_CC+y}
4935 then :
4936 printf %s "(cached) " >&6
4937 else $as_nop
4938 if test -n "$CC"; then
4939 ac_cv_prog_CC="$CC" # Let the user override the test.
4940 else
4941 ac_prog_rejected=no
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 case $as_dir in #(((
4947 '') as_dir=./ ;;
4948 */) ;;
4949 *) as_dir=$as_dir/ ;;
4950 esac
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4953 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4954 ac_prog_rejected=yes
4955 continue
4956 fi
4957 ac_cv_prog_CC="cc"
4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy $ac_cv_prog_CC
4968 shift
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set CC to just the basename; use the full file name.
4973 shift
4974 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4975 fi
4976 fi
4977 fi
4978 fi
4979 CC=$ac_cv_prog_CC
4980 if test -n "$CC"; then
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4982 printf "%s\n" "$CC" >&6; }
4983 else
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 printf "%s\n" "no" >&6; }
4986 fi
4987
4988
4989 fi
4990 if test -z "$CC"; then
4991 if test -n "$ac_tool_prefix"; then
4992 for ac_prog in cl.exe
4993 do
4994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 printf %s "checking for $ac_word... " >&6; }
4998 if test ${ac_cv_prog_CC+y}
4999 then :
5000 printf %s "(cached) " >&6
5001 else $as_nop
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 case $as_dir in #(((
5010 '') as_dir=./ ;;
5011 */) ;;
5012 *) as_dir=$as_dir/ ;;
5013 esac
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 CC=$ac_cv_prog_CC
5027 if test -n "$CC"; then
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 printf "%s\n" "$CC" >&6; }
5030 else
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 printf "%s\n" "no" >&6; }
5033 fi
5034
5035
5036 test -n "$CC" && break
5037 done
5038 fi
5039 if test -z "$CC"; then
5040 ac_ct_CC=$CC
5041 for ac_prog in cl.exe
5042 do
5043 # Extract the first word of "$ac_prog", so it can be a program name with args.
5044 set dummy $ac_prog; ac_word=$2
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 printf %s "checking for $ac_word... " >&6; }
5047 if test ${ac_cv_prog_ac_ct_CC+y}
5048 then :
5049 printf %s "(cached) " >&6
5050 else $as_nop
5051 if test -n "$ac_ct_CC"; then
5052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 case $as_dir in #(((
5059 '') as_dir=./ ;;
5060 */) ;;
5061 *) as_dir=$as_dir/ ;;
5062 esac
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_ac_ct_CC="$ac_prog"
5066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069 done
5070 done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5076 if test -n "$ac_ct_CC"; then
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5078 printf "%s\n" "$ac_ct_CC" >&6; }
5079 else
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 printf "%s\n" "no" >&6; }
5082 fi
5083
5084
5085 test -n "$ac_ct_CC" && break
5086 done
5087
5088 if test "x$ac_ct_CC" = x; then
5089 CC=""
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095 ac_tool_warned=yes ;;
5096 esac
5097 CC=$ac_ct_CC
5098 fi
5099 fi
5100
5101 fi
5102 if test -z "$CC"; then
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}clang; ac_word=$2
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 printf %s "checking for $ac_word... " >&6; }
5108 if test ${ac_cv_prog_CC+y}
5109 then :
5110 printf %s "(cached) " >&6
5111 else $as_nop
5112 if test -n "$CC"; then
5113 ac_cv_prog_CC="$CC" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 case $as_dir in #(((
5120 '') as_dir=./ ;;
5121 */) ;;
5122 *) as_dir=$as_dir/ ;;
5123 esac
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_CC="${ac_tool_prefix}clang"
5127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 CC=$ac_cv_prog_CC
5137 if test -n "$CC"; then
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5139 printf "%s\n" "$CC" >&6; }
5140 else
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 printf "%s\n" "no" >&6; }
5143 fi
5144
5145
5146 fi
5147 if test -z "$ac_cv_prog_CC"; then
5148 ac_ct_CC=$CC
5149 # Extract the first word of "clang", so it can be a program name with args.
5150 set dummy clang; ac_word=$2
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 printf %s "checking for $ac_word... " >&6; }
5153 if test ${ac_cv_prog_ac_ct_CC+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 if test -n "$ac_ct_CC"; then
5158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 case $as_dir in #(((
5165 '') as_dir=./ ;;
5166 */) ;;
5167 *) as_dir=$as_dir/ ;;
5168 esac
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_CC="clang"
5172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5182 if test -n "$ac_ct_CC"; then
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5184 printf "%s\n" "$ac_ct_CC" >&6; }
5185 else
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 printf "%s\n" "no" >&6; }
5188 fi
5189
5190 if test "x$ac_ct_CC" = x; then
5191 CC=""
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 CC=$ac_ct_CC
5200 fi
5201 else
5202 CC="$ac_cv_prog_CC"
5203 fi
5204
5205 fi
5206
5207
5208 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5210 as_fn_error $? "no acceptable C compiler found in \$PATH
5211 See \`config.log' for more details" "$LINENO" 5; }
5212
5213 # Provide some information about the compiler.
5214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5215 set X $ac_compile
5216 ac_compiler=$2
5217 for ac_option in --version -v -V -qversion -version; do
5218 { { ac_try="$ac_compiler $ac_option >&5"
5219 case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 printf "%s\n" "$ac_try_echo"; } >&5
5225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5226 ac_status=$?
5227 if test -s conftest.err; then
5228 sed '10a\
5229 ... rest of stderr output deleted ...
5230 10q' conftest.err >conftest.er1
5231 cat conftest.er1 >&5
5232 fi
5233 rm -f conftest.er1 conftest.err
5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235 test $ac_status = 0; }
5236 done
5237
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 int
5242 main (void)
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 ac_clean_files_save=$ac_clean_files
5250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5251 # Try to create an executable without -o first, disregard a.out.
5252 # It will help us diagnose broken compilers, and finding out an intuition
5253 # of exeext.
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5255 printf %s "checking whether the C compiler works... " >&6; }
5256 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5257
5258 # The possible output files:
5259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5260
5261 ac_rmfiles=
5262 for ac_file in $ac_files
5263 do
5264 case $ac_file in
5265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5267 esac
5268 done
5269 rm -f $ac_rmfiles
5270
5271 if { { ac_try="$ac_link_default"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277 printf "%s\n" "$ac_try_echo"; } >&5
5278 (eval "$ac_link_default") 2>&5
5279 ac_status=$?
5280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }
5282 then :
5283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5284 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5286 # so that the user can short-circuit this test for compilers unknown to
5287 # Autoconf.
5288 for ac_file in $ac_files ''
5289 do
5290 test -f "$ac_file" || continue
5291 case $ac_file in
5292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5293 ;;
5294 [ab].out )
5295 # We found the default executable, but exeext='' is most
5296 # certainly right.
5297 break;;
5298 *.* )
5299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5300 then :; else
5301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5302 fi
5303 # We set ac_cv_exeext here because the later test for it is not
5304 # safe: cross compilers may not add the suffix if given an `-o'
5305 # argument, so we may need to know it at that point already.
5306 # Even if this section looks crufty: it has the advantage of
5307 # actually working.
5308 break;;
5309 * )
5310 break;;
5311 esac
5312 done
5313 test "$ac_cv_exeext" = no && ac_cv_exeext=
5314
5315 else $as_nop
5316 ac_file=''
5317 fi
5318 if test -z "$ac_file"
5319 then :
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 printf "%s\n" "no" >&6; }
5322 printf "%s\n" "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5327 as_fn_error 77 "C compiler cannot create executables
5328 See \`config.log' for more details" "$LINENO" 5; }
5329 else $as_nop
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 printf "%s\n" "yes" >&6; }
5332 fi
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5334 printf %s "checking for C compiler default output file name... " >&6; }
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5336 printf "%s\n" "$ac_file" >&6; }
5337 ac_exeext=$ac_cv_exeext
5338
5339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5340 ac_clean_files=$ac_clean_files_save
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5342 printf %s "checking for suffix of executables... " >&6; }
5343 if { { ac_try="$ac_link"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5349 printf "%s\n" "$ac_try_echo"; } >&5
5350 (eval "$ac_link") 2>&5
5351 ac_status=$?
5352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353 test $ac_status = 0; }
5354 then :
5355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5356 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5357 # work properly (i.e., refer to `conftest.exe'), while it won't with
5358 # `rm'.
5359 for ac_file in conftest.exe conftest conftest.*; do
5360 test -f "$ac_file" || continue
5361 case $ac_file in
5362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5364 break;;
5365 * ) break;;
5366 esac
5367 done
5368 else $as_nop
5369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5372 See \`config.log' for more details" "$LINENO" 5; }
5373 fi
5374 rm -f conftest conftest$ac_cv_exeext
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5376 printf "%s\n" "$ac_cv_exeext" >&6; }
5377
5378 rm -f conftest.$ac_ext
5379 EXEEXT=$ac_cv_exeext
5380 ac_exeext=$EXEEXT
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <stdio.h>
5384 int
5385 main (void)
5386 {
5387 FILE *f = fopen ("conftest.out", "w");
5388 return ferror (f) || fclose (f) != 0;
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 ac_clean_files="$ac_clean_files conftest.out"
5395 # Check that the compiler produces executables we can run. If not, either
5396 # the compiler is broken, or we cross compile.
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5398 printf %s "checking whether we are cross compiling... " >&6; }
5399 if test "$cross_compiling" != yes; then
5400 { { ac_try="$ac_link"
5401 case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404 esac
5405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5406 printf "%s\n" "$ac_try_echo"; } >&5
5407 (eval "$ac_link") 2>&5
5408 ac_status=$?
5409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411 if { ac_try='./conftest$ac_cv_exeext'
5412 { { case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5417 printf "%s\n" "$ac_try_echo"; } >&5
5418 (eval "$ac_try") 2>&5
5419 ac_status=$?
5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }; }; then
5422 cross_compiling=no
5423 else
5424 if test "$cross_compiling" = maybe; then
5425 cross_compiling=yes
5426 else
5427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5429 as_fn_error 77 "cannot run C compiled programs.
5430 If you meant to cross compile, use \`--host'.
5431 See \`config.log' for more details" "$LINENO" 5; }
5432 fi
5433 fi
5434 fi
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5436 printf "%s\n" "$cross_compiling" >&6; }
5437
5438 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5439 ac_clean_files=$ac_clean_files_save
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5441 printf %s "checking for suffix of object files... " >&6; }
5442 if test ${ac_cv_objext+y}
5443 then :
5444 printf %s "(cached) " >&6
5445 else $as_nop
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448
5449 int
5450 main (void)
5451 {
5452
5453 ;
5454 return 0;
5455 }
5456 _ACEOF
5457 rm -f conftest.o conftest.obj
5458 if { { ac_try="$ac_compile"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 printf "%s\n" "$ac_try_echo"; } >&5
5465 (eval "$ac_compile") 2>&5
5466 ac_status=$?
5467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }
5469 then :
5470 for ac_file in conftest.o conftest.obj conftest.*; do
5471 test -f "$ac_file" || continue;
5472 case $ac_file in
5473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5475 break;;
5476 esac
5477 done
5478 else $as_nop
5479 printf "%s\n" "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5484 as_fn_error $? "cannot compute suffix of object files: cannot compile
5485 See \`config.log' for more details" "$LINENO" 5; }
5486 fi
5487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5488 fi
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5490 printf "%s\n" "$ac_cv_objext" >&6; }
5491 OBJEXT=$ac_cv_objext
5492 ac_objext=$OBJEXT
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5494 printf %s "checking whether the compiler supports GNU C... " >&6; }
5495 if test ${ac_cv_c_compiler_gnu+y}
5496 then :
5497 printf %s "(cached) " >&6
5498 else $as_nop
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501
5502 int
5503 main (void)
5504 {
5505 #ifndef __GNUC__
5506 choke me
5507 #endif
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"
5514 then :
5515 ac_compiler_gnu=yes
5516 else $as_nop
5517 ac_compiler_gnu=no
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5521
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5524 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5526
5527 if test $ac_compiler_gnu = yes; then
5528 GCC=yes
5529 else
5530 GCC=
5531 fi
5532 ac_test_CFLAGS=${CFLAGS+y}
5533 ac_save_CFLAGS=$CFLAGS
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5535 printf %s "checking whether $CC accepts -g... " >&6; }
5536 if test ${ac_cv_prog_cc_g+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else $as_nop
5540 ac_save_c_werror_flag=$ac_c_werror_flag
5541 ac_c_werror_flag=yes
5542 ac_cv_prog_cc_g=no
5543 CFLAGS="-g"
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546
5547 int
5548 main (void)
5549 {
5550
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"
5556 then :
5557 ac_cv_prog_cc_g=yes
5558 else $as_nop
5559 CFLAGS=""
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"
5572 then :
5573
5574 else $as_nop
5575 ac_c_werror_flag=$ac_save_c_werror_flag
5576 CFLAGS="-g"
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579
5580 int
5581 main (void)
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 if ac_fn_c_try_compile "$LINENO"
5589 then :
5590 ac_cv_prog_cc_g=yes
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 fi
5594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597 ac_c_werror_flag=$ac_save_c_werror_flag
5598 fi
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5600 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5601 if test $ac_test_CFLAGS; then
5602 CFLAGS=$ac_save_CFLAGS
5603 elif test $ac_cv_prog_cc_g = yes; then
5604 if test "$GCC" = yes; then
5605 CFLAGS="-g -O2"
5606 else
5607 CFLAGS="-g"
5608 fi
5609 else
5610 if test "$GCC" = yes; then
5611 CFLAGS="-O2"
5612 else
5613 CFLAGS=
5614 fi
5615 fi
5616 ac_prog_cc_stdc=no
5617 if test x$ac_prog_cc_stdc = xno
5618 then :
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5620 printf %s "checking for $CC option to enable C11 features... " >&6; }
5621 if test ${ac_cv_prog_cc_c11+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else $as_nop
5625 ac_cv_prog_cc_c11=no
5626 ac_save_CC=$CC
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 $ac_c_conftest_c11_program
5630 _ACEOF
5631 for ac_arg in '' -std=gnu11
5632 do
5633 CC="$ac_save_CC $ac_arg"
5634 if ac_fn_c_try_compile "$LINENO"
5635 then :
5636 ac_cv_prog_cc_c11=$ac_arg
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.beam
5639 test "x$ac_cv_prog_cc_c11" != "xno" && break
5640 done
5641 rm -f conftest.$ac_ext
5642 CC=$ac_save_CC
5643 fi
5644
5645 if test "x$ac_cv_prog_cc_c11" = xno
5646 then :
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5648 printf "%s\n" "unsupported" >&6; }
5649 else $as_nop
5650 if test "x$ac_cv_prog_cc_c11" = x
5651 then :
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5653 printf "%s\n" "none needed" >&6; }
5654 else $as_nop
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5656 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5657 CC="$CC $ac_cv_prog_cc_c11"
5658 fi
5659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5660 ac_prog_cc_stdc=c11
5661 fi
5662 fi
5663 if test x$ac_prog_cc_stdc = xno
5664 then :
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5666 printf %s "checking for $CC option to enable C99 features... " >&6; }
5667 if test ${ac_cv_prog_cc_c99+y}
5668 then :
5669 printf %s "(cached) " >&6
5670 else $as_nop
5671 ac_cv_prog_cc_c99=no
5672 ac_save_CC=$CC
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 $ac_c_conftest_c99_program
5676 _ACEOF
5677 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5678 do
5679 CC="$ac_save_CC $ac_arg"
5680 if ac_fn_c_try_compile "$LINENO"
5681 then :
5682 ac_cv_prog_cc_c99=$ac_arg
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.beam
5685 test "x$ac_cv_prog_cc_c99" != "xno" && break
5686 done
5687 rm -f conftest.$ac_ext
5688 CC=$ac_save_CC
5689 fi
5690
5691 if test "x$ac_cv_prog_cc_c99" = xno
5692 then :
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5694 printf "%s\n" "unsupported" >&6; }
5695 else $as_nop
5696 if test "x$ac_cv_prog_cc_c99" = x
5697 then :
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5699 printf "%s\n" "none needed" >&6; }
5700 else $as_nop
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5702 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5703 CC="$CC $ac_cv_prog_cc_c99"
5704 fi
5705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5706 ac_prog_cc_stdc=c99
5707 fi
5708 fi
5709 if test x$ac_prog_cc_stdc = xno
5710 then :
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5712 printf %s "checking for $CC option to enable C89 features... " >&6; }
5713 if test ${ac_cv_prog_cc_c89+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 ac_cv_prog_cc_c89=no
5718 ac_save_CC=$CC
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 $ac_c_conftest_c89_program
5722 _ACEOF
5723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5724 do
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"
5727 then :
5728 ac_cv_prog_cc_c89=$ac_arg
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext conftest.beam
5731 test "x$ac_cv_prog_cc_c89" != "xno" && break
5732 done
5733 rm -f conftest.$ac_ext
5734 CC=$ac_save_CC
5735 fi
5736
5737 if test "x$ac_cv_prog_cc_c89" = xno
5738 then :
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5740 printf "%s\n" "unsupported" >&6; }
5741 else $as_nop
5742 if test "x$ac_cv_prog_cc_c89" = x
5743 then :
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5745 printf "%s\n" "none needed" >&6; }
5746 else $as_nop
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5748 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5749 CC="$CC $ac_cv_prog_cc_c89"
5750 fi
5751 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5752 ac_prog_cc_stdc=c89
5753 fi
5754 fi
5755
5756 ac_ext=c
5757 ac_cpp='$CPP $CPPFLAGS'
5758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5761
5762 ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5768 printf %s "checking how to run the C preprocessor... " >&6; }
5769 # On Suns, sometimes $CPP names a directory.
5770 if test -n "$CPP" && test -d "$CPP"; then
5771 CPP=
5772 fi
5773 if test -z "$CPP"; then
5774 if test ${ac_cv_prog_CPP+y}
5775 then :
5776 printf %s "(cached) " >&6
5777 else $as_nop
5778 # Double quotes because $CC needs to be expanded
5779 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5780 do
5781 ac_preproc_ok=false
5782 for ac_c_preproc_warn_flag in '' yes
5783 do
5784 # Use a header file that comes with gcc, so configuring glibc
5785 # with a fresh cross-compiler works.
5786 # On the NeXT, cc -E runs the code through the compiler's parser,
5787 # not just through cpp. "Syntax error" is here to catch this case.
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #include <limits.h>
5791 Syntax error
5792 _ACEOF
5793 if ac_fn_c_try_cpp "$LINENO"
5794 then :
5795
5796 else $as_nop
5797 # Broken: fails on valid input.
5798 continue
5799 fi
5800 rm -f conftest.err conftest.i conftest.$ac_ext
5801
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <ac_nonexistent.h>
5807 _ACEOF
5808 if ac_fn_c_try_cpp "$LINENO"
5809 then :
5810 # Broken: success on invalid input.
5811 continue
5812 else $as_nop
5813 # Passes both tests.
5814 ac_preproc_ok=:
5815 break
5816 fi
5817 rm -f conftest.err conftest.i conftest.$ac_ext
5818
5819 done
5820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5821 rm -f conftest.i conftest.err conftest.$ac_ext
5822 if $ac_preproc_ok
5823 then :
5824 break
5825 fi
5826
5827 done
5828 ac_cv_prog_CPP=$CPP
5829
5830 fi
5831 CPP=$ac_cv_prog_CPP
5832 else
5833 ac_cv_prog_CPP=$CPP
5834 fi
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5836 printf "%s\n" "$CPP" >&6; }
5837 ac_preproc_ok=false
5838 for ac_c_preproc_warn_flag in '' yes
5839 do
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #include <limits.h>
5847 Syntax error
5848 _ACEOF
5849 if ac_fn_c_try_cpp "$LINENO"
5850 then :
5851
5852 else $as_nop
5853 # Broken: fails on valid input.
5854 continue
5855 fi
5856 rm -f conftest.err conftest.i conftest.$ac_ext
5857
5858 # OK, works on sane cases. Now check whether nonexistent headers
5859 # can be detected and how.
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <ac_nonexistent.h>
5863 _ACEOF
5864 if ac_fn_c_try_cpp "$LINENO"
5865 then :
5866 # Broken: success on invalid input.
5867 continue
5868 else $as_nop
5869 # Passes both tests.
5870 ac_preproc_ok=:
5871 break
5872 fi
5873 rm -f conftest.err conftest.i conftest.$ac_ext
5874
5875 done
5876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5877 rm -f conftest.i conftest.err conftest.$ac_ext
5878 if $ac_preproc_ok
5879 then :
5880
5881 else $as_nop
5882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5884 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5885 See \`config.log' for more details" "$LINENO" 5; }
5886 fi
5887
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5895 printf %s "checking for grep that handles long lines and -e... " >&6; }
5896 if test ${ac_cv_path_GREP+y}
5897 then :
5898 printf %s "(cached) " >&6
5899 else $as_nop
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5905 do
5906 IFS=$as_save_IFS
5907 case $as_dir in #(((
5908 '') as_dir=./ ;;
5909 */) ;;
5910 *) as_dir=$as_dir/ ;;
5911 esac
5912 for ac_prog in grep ggrep
5913 do
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5916 as_fn_executable_p "$ac_path_GREP" || continue
5917 # Check for GNU ac_path_GREP and select it if it is found.
5918 # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5920 *GNU*)
5921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922 *)
5923 ac_count=0
5924 printf %s 0123456789 >"conftest.in"
5925 while :
5926 do
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 printf "%s\n" 'GREP' >> "conftest.nl"
5931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933 as_fn_arith $ac_count + 1 && ac_count=$as_val
5934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_GREP="$ac_path_GREP"
5937 ac_path_GREP_max=$ac_count
5938 fi
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5941 done
5942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5944
5945 $ac_path_GREP_found && break 3
5946 done
5947 done
5948 done
5949 IFS=$as_save_IFS
5950 if test -z "$ac_cv_path_GREP"; then
5951 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5952 fi
5953 else
5954 ac_cv_path_GREP=$GREP
5955 fi
5956
5957 fi
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5959 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5960 GREP="$ac_cv_path_GREP"
5961
5962
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5964 printf %s "checking for a sed that does not truncate output... " >&6; }
5965 if test ${ac_cv_path_SED+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else $as_nop
5969 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5970 for ac_i in 1 2 3 4 5 6 7; do
5971 ac_script="$ac_script$as_nl$ac_script"
5972 done
5973 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5974 { ac_script=; unset ac_script;}
5975 if test -z "$SED"; then
5976 ac_path_SED_found=false
5977 # Loop through the user's path and test for each of PROGNAME-LIST
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 case $as_dir in #(((
5983 '') as_dir=./ ;;
5984 */) ;;
5985 *) as_dir=$as_dir/ ;;
5986 esac
5987 for ac_prog in sed gsed
5988 do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5991 as_fn_executable_p "$ac_path_SED" || continue
5992 # Check for GNU ac_path_SED and select it if it is found.
5993 # Check for GNU $ac_path_SED
5994 case `"$ac_path_SED" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5997 *)
5998 ac_count=0
5999 printf %s 0123456789 >"conftest.in"
6000 while :
6001 do
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 printf "%s\n" '' >> "conftest.nl"
6006 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_SED_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_SED="$ac_path_SED"
6012 ac_path_SED_max=$ac_count
6013 fi
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6019
6020 $ac_path_SED_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_SED"; then
6026 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6027 fi
6028 else
6029 ac_cv_path_SED=$SED
6030 fi
6031
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6034 printf "%s\n" "$ac_cv_path_SED" >&6; }
6035 SED="$ac_cv_path_SED"
6036 rm -f conftest.sed
6037
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 printf %s "checking for egrep... " >&6; }
6040 if test ${ac_cv_path_EGREP+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else $as_nop
6044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6045 then ac_cv_path_EGREP="$GREP -E"
6046 else
6047 if test -z "$EGREP"; then
6048 ac_path_EGREP_found=false
6049 # Loop through the user's path and test for each of PROGNAME-LIST
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6052 do
6053 IFS=$as_save_IFS
6054 case $as_dir in #(((
6055 '') as_dir=./ ;;
6056 */) ;;
6057 *) as_dir=$as_dir/ ;;
6058 esac
6059 for ac_prog in egrep
6060 do
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6063 as_fn_executable_p "$ac_path_EGREP" || continue
6064 # Check for GNU ac_path_EGREP and select it if it is found.
6065 # Check for GNU $ac_path_EGREP
6066 case `"$ac_path_EGREP" --version 2>&1` in
6067 *GNU*)
6068 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6069 *)
6070 ac_count=0
6071 printf %s 0123456789 >"conftest.in"
6072 while :
6073 do
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 printf "%s\n" 'EGREP' >> "conftest.nl"
6078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6080 as_fn_arith $ac_count + 1 && ac_count=$as_val
6081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_EGREP="$ac_path_EGREP"
6084 ac_path_EGREP_max=$ac_count
6085 fi
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6088 done
6089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6090 esac
6091
6092 $ac_path_EGREP_found && break 3
6093 done
6094 done
6095 done
6096 IFS=$as_save_IFS
6097 if test -z "$ac_cv_path_EGREP"; then
6098 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6099 fi
6100 else
6101 ac_cv_path_EGREP=$EGREP
6102 fi
6103
6104 fi
6105 fi
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6107 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6108 EGREP="$ac_cv_path_EGREP"
6109
6110
6111
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5
6113 printf %s "checking for CC compiler name... " >&6; }
6114 if test ${ac_cv_cc_name+y}
6115 then :
6116 printf %s "(cached) " >&6
6117 else $as_nop
6118
6119 cat > conftest.c <<EOF
6120 #if defined(__EMSCRIPTEN__)
6121 emcc
6122 #elif defined(__INTEL_COMPILER) || defined(__ICC)
6123 icc
6124 #elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__)
6125 xlc
6126 #elif defined(_MSC_VER)
6127 msvc
6128 #elif defined(__clang__)
6129 clang
6130 #elif defined(__GNUC__)
6131 gcc
6132 #else
6133 # error unknown compiler
6134 #endif
6135 EOF
6136
6137 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
6138 ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
6139 if test $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then
6140 ac_cv_cc_name="mpicc"
6141 fi
6142 else
6143 ac_cv_cc_name="unknown"
6144 fi
6145 rm -f conftest.c conftest.out
6146
6147 fi
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5
6149 printf "%s\n" "$ac_cv_cc_name" >&6; }
6150
6151 # checks for UNIX variants that set C preprocessor variables
6152 # may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS,
6153 # _POSIX_SOURCE, _POSIX_1_SOURCE, and more
6154
6155 ac_header= ac_cache=
6156 for ac_item in $ac_header_c_list
6157 do
6158 if test $ac_cache; then
6159 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6160 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6161 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6162 fi
6163 ac_header= ac_cache=
6164 elif test $ac_header; then
6165 ac_cache=$ac_item
6166 else
6167 ac_header=$ac_item
6168 fi
6169 done
6170
6171
6172
6173
6174
6175
6176
6177
6178 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6179 then :
6180
6181 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6182
6183 fi
6184
6185
6186
6187
6188
6189
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6191 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6192 if test ${ac_cv_safe_to_define___extensions__+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 # define __EXTENSIONS__ 1
6200 $ac_includes_default
6201 int
6202 main (void)
6203 {
6204
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"
6210 then :
6211 ac_cv_safe_to_define___extensions__=yes
6212 else $as_nop
6213 ac_cv_safe_to_define___extensions__=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6216 fi
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6218 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6219
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6221 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6222 if test ${ac_cv_should_define__xopen_source+y}
6223 then :
6224 printf %s "(cached) " >&6
6225 else $as_nop
6226 ac_cv_should_define__xopen_source=no
6227 if test $ac_cv_header_wchar_h = yes
6228 then :
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231
6232 #include <wchar.h>
6233 mbstate_t x;
6234 int
6235 main (void)
6236 {
6237
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"
6243 then :
6244
6245 else $as_nop
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248
6249 #define _XOPEN_SOURCE 500
6250 #include <wchar.h>
6251 mbstate_t x;
6252 int
6253 main (void)
6254 {
6255
6256 ;
6257 return 0;
6258 }
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"
6261 then :
6262 ac_cv_should_define__xopen_source=yes
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6265 fi
6266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6267 fi
6268 fi
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6270 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6271
6272 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6273
6274 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6275
6276 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6277
6278 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6279
6280 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6281
6282 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6283
6284 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6285
6286 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6287
6288 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6289
6290 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6291
6292 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6293
6294 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6295
6296 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6297
6298 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6299
6300 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6301
6302 if test $ac_cv_header_minix_config_h = yes
6303 then :
6304 MINIX=yes
6305 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6306
6307 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6308
6309 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6310
6311 else $as_nop
6312 MINIX=
6313 fi
6314 if test $ac_cv_safe_to_define___extensions__ = yes
6315 then :
6316 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6317
6318 fi
6319 if test $ac_cv_should_define__xopen_source = yes
6320 then :
6321 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6322
6323 fi
6324
6325
6326
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC compatible compiler" >&5
6328 printf %s "checking for GCC compatible compiler... " >&6; }
6329 if test ${ac_cv_gcc_compat+y}
6330 then :
6331 printf %s "(cached) " >&6
6332 else $as_nop
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335
6336 #if !defined(__GNUC__)
6337 #error "not GCC compatible"
6338 #else
6339 /* GCC compatible! */
6340 #endif
6341
6342 _ACEOF
6343 if ac_fn_c_try_cpp "$LINENO"
6344 then :
6345 ac_cv_gcc_compat=yes
6346 else $as_nop
6347 ac_cv_gcc_compat=no
6348 fi
6349 rm -f conftest.err conftest.i conftest.$ac_ext
6350 fi
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_compat" >&5
6352 printf "%s\n" "$ac_cv_gcc_compat" >&6; }
6353
6354
6355
6356 preset_cxx="$CXX"
6357 if test -z "$CXX"
6358 then
6359 case "$CC" in
6360 gcc) if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}g++; ac_word=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s "checking for $ac_word... " >&6; }
6365 if test ${ac_cv_path_CXX+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else $as_nop
6369 case $CXX in
6370 [\\/]* | ?:[\\/]*)
6371 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6372 ;;
6373 *)
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in notfound
6376 do
6377 IFS=$as_save_IFS
6378 case $as_dir in #(((
6379 '') as_dir=./ ;;
6380 */) ;;
6381 *) as_dir=$as_dir/ ;;
6382 esac
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6385 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 ;;
6394 esac
6395 fi
6396 CXX=$ac_cv_path_CXX
6397 if test -n "$CXX"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6399 printf "%s\n" "$CXX" >&6; }
6400 else
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6403 fi
6404
6405
6406 fi
6407 if test -z "$ac_cv_path_CXX"; then
6408 ac_pt_CXX=$CXX
6409 # Extract the first word of "g++", so it can be a program name with args.
6410 set dummy g++; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_path_ac_pt_CXX+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 case $ac_pt_CXX in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in notfound
6424 do
6425 IFS=$as_save_IFS
6426 case $as_dir in #(((
6427 '') as_dir=./ ;;
6428 */) ;;
6429 *) as_dir=$as_dir/ ;;
6430 esac
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 ;;
6442 esac
6443 fi
6444 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6445 if test -n "$ac_pt_CXX"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6447 printf "%s\n" "$ac_pt_CXX" >&6; }
6448 else
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6451 fi
6452
6453 if test "x$ac_pt_CXX" = x; then
6454 CXX="g++"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 CXX=$ac_pt_CXX
6463 fi
6464 else
6465 CXX="$ac_cv_path_CXX"
6466 fi
6467 ;;
6468 cc) if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}c++; ac_word=$2
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 printf %s "checking for $ac_word... " >&6; }
6473 if test ${ac_cv_path_CXX+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else $as_nop
6477 case $CXX in
6478 [\\/]* | ?:[\\/]*)
6479 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6480 ;;
6481 *)
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in notfound
6484 do
6485 IFS=$as_save_IFS
6486 case $as_dir in #(((
6487 '') as_dir=./ ;;
6488 */) ;;
6489 *) as_dir=$as_dir/ ;;
6490 esac
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6493 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 ;;
6502 esac
6503 fi
6504 CXX=$ac_cv_path_CXX
6505 if test -n "$CXX"; then
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6507 printf "%s\n" "$CXX" >&6; }
6508 else
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 printf "%s\n" "no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_path_CXX"; then
6516 ac_pt_CXX=$CXX
6517 # Extract the first word of "c++", so it can be a program name with args.
6518 set dummy c++; ac_word=$2
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 printf %s "checking for $ac_word... " >&6; }
6521 if test ${ac_cv_path_ac_pt_CXX+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else $as_nop
6525 case $ac_pt_CXX in
6526 [\\/]* | ?:[\\/]*)
6527 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6528 ;;
6529 *)
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in notfound
6532 do
6533 IFS=$as_save_IFS
6534 case $as_dir in #(((
6535 '') as_dir=./ ;;
6536 */) ;;
6537 *) as_dir=$as_dir/ ;;
6538 esac
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6541 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 ;;
6550 esac
6551 fi
6552 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6553 if test -n "$ac_pt_CXX"; then
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6555 printf "%s\n" "$ac_pt_CXX" >&6; }
6556 else
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 printf "%s\n" "no" >&6; }
6559 fi
6560
6561 if test "x$ac_pt_CXX" = x; then
6562 CXX="c++"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 CXX=$ac_pt_CXX
6571 fi
6572 else
6573 CXX="$ac_cv_path_CXX"
6574 fi
6575 ;;
6576 clang|*/clang) if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}clang++; ac_word=$2
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 printf %s "checking for $ac_word... " >&6; }
6581 if test ${ac_cv_path_CXX+y}
6582 then :
6583 printf %s "(cached) " >&6
6584 else $as_nop
6585 case $CXX in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in notfound
6592 do
6593 IFS=$as_save_IFS
6594 case $as_dir in #(((
6595 '') as_dir=./ ;;
6596 */) ;;
6597 *) as_dir=$as_dir/ ;;
6598 esac
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6601 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 ;;
6610 esac
6611 fi
6612 CXX=$ac_cv_path_CXX
6613 if test -n "$CXX"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6615 printf "%s\n" "$CXX" >&6; }
6616 else
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_path_CXX"; then
6624 ac_pt_CXX=$CXX
6625 # Extract the first word of "clang++", so it can be a program name with args.
6626 set dummy clang++; ac_word=$2
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 printf %s "checking for $ac_word... " >&6; }
6629 if test ${ac_cv_path_ac_pt_CXX+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else $as_nop
6633 case $ac_pt_CXX in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in notfound
6640 do
6641 IFS=$as_save_IFS
6642 case $as_dir in #(((
6643 '') as_dir=./ ;;
6644 */) ;;
6645 *) as_dir=$as_dir/ ;;
6646 esac
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 ;;
6658 esac
6659 fi
6660 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6661 if test -n "$ac_pt_CXX"; then
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6663 printf "%s\n" "$ac_pt_CXX" >&6; }
6664 else
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 printf "%s\n" "no" >&6; }
6667 fi
6668
6669 if test "x$ac_pt_CXX" = x; then
6670 CXX="clang++"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 CXX=$ac_pt_CXX
6679 fi
6680 else
6681 CXX="$ac_cv_path_CXX"
6682 fi
6683 ;;
6684 icc|*/icc) if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}icpc; ac_word=$2
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 printf %s "checking for $ac_word... " >&6; }
6689 if test ${ac_cv_path_CXX+y}
6690 then :
6691 printf %s "(cached) " >&6
6692 else $as_nop
6693 case $CXX in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in notfound
6700 do
6701 IFS=$as_save_IFS
6702 case $as_dir in #(((
6703 '') as_dir=./ ;;
6704 */) ;;
6705 *) as_dir=$as_dir/ ;;
6706 esac
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6709 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 ;;
6718 esac
6719 fi
6720 CXX=$ac_cv_path_CXX
6721 if test -n "$CXX"; then
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6723 printf "%s\n" "$CXX" >&6; }
6724 else
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 printf "%s\n" "no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_path_CXX"; then
6732 ac_pt_CXX=$CXX
6733 # Extract the first word of "icpc", so it can be a program name with args.
6734 set dummy icpc; ac_word=$2
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 printf %s "checking for $ac_word... " >&6; }
6737 if test ${ac_cv_path_ac_pt_CXX+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else $as_nop
6741 case $ac_pt_CXX in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in notfound
6748 do
6749 IFS=$as_save_IFS
6750 case $as_dir in #(((
6751 '') as_dir=./ ;;
6752 */) ;;
6753 *) as_dir=$as_dir/ ;;
6754 esac
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6757 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 ;;
6766 esac
6767 fi
6768 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6769 if test -n "$ac_pt_CXX"; then
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6771 printf "%s\n" "$ac_pt_CXX" >&6; }
6772 else
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 printf "%s\n" "no" >&6; }
6775 fi
6776
6777 if test "x$ac_pt_CXX" = x; then
6778 CXX="icpc"
6779 else
6780 case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786 CXX=$ac_pt_CXX
6787 fi
6788 else
6789 CXX="$ac_cv_path_CXX"
6790 fi
6791 ;;
6792 esac
6793 if test "$CXX" = "notfound"
6794 then
6795 CXX=""
6796 fi
6797 fi
6798 if test -z "$CXX"
6799 then
6800 if test -n "$ac_tool_prefix"; then
6801 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6802 do
6803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s "checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_CXX+y}
6808 then :
6809 printf %s "(cached) " >&6
6810 else $as_nop
6811 if test -n "$CXX"; then
6812 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 case $as_dir in #(((
6819 '') as_dir=./ ;;
6820 */) ;;
6821 *) as_dir=$as_dir/ ;;
6822 esac
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 CXX=$ac_cv_prog_CXX
6836 if test -n "$CXX"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6838 printf "%s\n" "$CXX" >&6; }
6839 else
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6842 fi
6843
6844
6845 test -n "$CXX" && break
6846 done
6847 fi
6848 if test -z "$CXX"; then
6849 ac_ct_CXX=$CXX
6850 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6851 do
6852 # Extract the first word of "$ac_prog", so it can be a program name with args.
6853 set dummy $ac_prog; ac_word=$2
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 printf %s "checking for $ac_word... " >&6; }
6856 if test ${ac_cv_prog_ac_ct_CXX+y}
6857 then :
6858 printf %s "(cached) " >&6
6859 else $as_nop
6860 if test -n "$ac_ct_CXX"; then
6861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 case $as_dir in #(((
6868 '') as_dir=./ ;;
6869 */) ;;
6870 *) as_dir=$as_dir/ ;;
6871 esac
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_CXX="$ac_prog"
6875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6885 if test -n "$ac_ct_CXX"; then
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6887 printf "%s\n" "$ac_ct_CXX" >&6; }
6888 else
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 printf "%s\n" "no" >&6; }
6891 fi
6892
6893
6894 test -n "$ac_ct_CXX" && break
6895 done
6896
6897 if test "x$ac_ct_CXX" = x; then
6898 CXX="notfound"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 CXX=$ac_ct_CXX
6907 fi
6908 fi
6909
6910 if test "$CXX" = "notfound"
6911 then
6912 CXX=""
6913 fi
6914 fi
6915 if test "$preset_cxx" != "$CXX"
6916 then
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
6918
6919 By default, distutils will build C++ extension modules with \"$CXX\".
6920 If this is not intended, then set CXX on the configure command line.
6921 " >&5
6922 printf "%s\n" "$as_me:
6923
6924 By default, distutils will build C++ extension modules with \"$CXX\".
6925 If this is not intended, then set CXX on the configure command line.
6926 " >&6;}
6927 fi
6928
6929
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
6931 printf %s "checking for the platform triplet based on compiler characteristics... " >&6; }
6932 if $CPP $CPPFLAGS $srcdir/Misc/platform_triplet.c >conftest.out 2>/dev/null; then
6933 PLATFORM_TRIPLET=`grep '^PLATFORM_TRIPLET=' conftest.out | tr -d ' '`
6934 PLATFORM_TRIPLET="${PLATFORM_TRIPLET#PLATFORM_TRIPLET=}"
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
6936 printf "%s\n" "$PLATFORM_TRIPLET" >&6; }
6937 else
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6939 printf "%s\n" "none" >&6; }
6940 fi
6941 rm -f conftest.out
6942
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
6944 printf %s "checking for multiarch... " >&6; }
6945 case $ac_sys_system in #(
6946 Darwin*) :
6947 MULTIARCH="" ;; #(
6948 iOS) :
6949 MULTIARCH="" ;; #(
6950 FreeBSD*) :
6951 MULTIARCH="" ;; #(
6952 *) :
6953 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
6954 ;;
6955 esac
6956
6957
6958 if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
6959 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
6960 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
6961 fi
6962 elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
6963 MULTIARCH=$PLATFORM_TRIPLET
6964 fi
6965
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
6967 printf "%s\n" "$MULTIARCH" >&6; }
6968
6969 case $ac_sys_system in #(
6970 iOS) :
6971 SOABI_PLATFORM=`echo "$PLATFORM_TRIPLET" | cut -d '-' -f2` ;; #(
6972 *) :
6973 SOABI_PLATFORM=$PLATFORM_TRIPLET
6974 ;;
6975 esac
6976
6977 if test x$MULTIARCH != x; then
6978 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
6979 fi
6980
6981
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5
6983 printf %s "checking for PEP 11 support tier... " >&6; }
6984 case $host/$ac_cv_cc_name in #(
6985 x86_64-*-linux-gnu/gcc) :
6986 PY_SUPPORT_TIER=1 ;; #(
6987 x86_64-apple-darwin*/clang) :
6988 PY_SUPPORT_TIER=1 ;; #(
6989 aarch64-apple-darwin*/clang) :
6990 PY_SUPPORT_TIER=1 ;; #(
6991 i686-pc-windows-msvc/msvc) :
6992 PY_SUPPORT_TIER=1 ;; #(
6993 x86_64-pc-windows-msvc/msvc) :
6994 PY_SUPPORT_TIER=1 ;; #(
6995
6996 aarch64-*-linux-gnu/gcc) :
6997 PY_SUPPORT_TIER=2 ;; #(
6998 aarch64-*-linux-gnu/clang) :
6999 PY_SUPPORT_TIER=2 ;; #(
7000 powerpc64le-*-linux-gnu/gcc) :
7001 PY_SUPPORT_TIER=2 ;; #(
7002 wasm32-unknown-wasi/clang) :
7003 PY_SUPPORT_TIER=2 ;; #(
7004 x86_64-*-linux-gnu/clang) :
7005 PY_SUPPORT_TIER=2 ;; #(
7006
7007 aarch64-pc-windows-msvc/msvc) :
7008 PY_SUPPORT_TIER=3 ;; #(
7009 armv7l-*-linux-gnueabihf/gcc) :
7010 PY_SUPPORT_TIER=3 ;; #(
7011 powerpc64le-*-linux-gnu/clang) :
7012 PY_SUPPORT_TIER=3 ;; #(
7013 s390x-*-linux-gnu/gcc) :
7014 PY_SUPPORT_TIER=3 ;; #(
7015 x86_64-*-freebsd*/clang) :
7016 PY_SUPPORT_TIER=3 ;; #(
7017 aarch64-apple-ios*-simulator/clang) :
7018 PY_SUPPORT_TIER=3 ;; #(
7019 aarch64-apple-ios*/clang) :
7020 PY_SUPPORT_TIER=3 ;; #(
7021 aarch64-*-linux-android/clang) :
7022 PY_SUPPORT_TIER=3 ;; #(
7023 x86_64-*-linux-android/clang) :
7024 PY_SUPPORT_TIER=3 ;; #(
7025 *) :
7026
7027 PY_SUPPORT_TIER=0
7028 ;;
7029 esac
7030
7031 case $PY_SUPPORT_TIER in #(
7032 1) :
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5
7034 printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #(
7035 2) :
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5
7037 printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #(
7038 3) :
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5
7040 printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #(
7041 *) :
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5
7043 printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;}
7044 ;;
7045 esac
7046
7047
7048 printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h
7049
7050
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
7052 printf %s "checking for -Wl,--no-as-needed... " >&6; }
7053 if test ${ac_cv_wl_no_as_needed+y}
7054 then :
7055 printf %s "(cached) " >&6
7056 else $as_nop
7057
7058 save_LDFLAGS="$LDFLAGS"
7059 as_fn_append LDFLAGS " -Wl,--no-as-needed"
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062
7063 int
7064 main (void)
7065 {
7066
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_link "$LINENO"
7072 then :
7073 NO_AS_NEEDED="-Wl,--no-as-needed"
7074 ac_cv_wl_no_as_needed=yes
7075 else $as_nop
7076 NO_AS_NEEDED=""
7077 ac_cv_wl_no_as_needed=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7080 conftest$ac_exeext conftest.$ac_ext
7081 LDFLAGS="$save_LDFLAGS"
7082
7083 fi
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5
7085 printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; }
7086
7087
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
7089 printf %s "checking for the Android API level... " >&6; }
7090 cat > conftest.c <<EOF
7091 #ifdef __ANDROID__
7092 android_api = __ANDROID_API__
7093 arm_arch = __ARM_ARCH
7094 #else
7095 #error not Android
7096 #endif
7097 EOF
7098
7099 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
7100 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
7101 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
7103 printf "%s\n" "$ANDROID_API_LEVEL" >&6; }
7104 if test -z "$ANDROID_API_LEVEL"; then
7105 as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5
7106 fi
7107
7108 printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h
7109
7110
7111 # For __android_log_write() in Python/pylifecycle.c.
7112 LIBS="$LIBS -llog"
7113
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
7115 printf %s "checking for the Android arm ABI... " >&6; }
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
7117 printf "%s\n" "$_arm_arch" >&6; }
7118 if test "$_arm_arch" = 7; then
7119 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
7120 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
7121 fi
7122 else
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
7124 printf "%s\n" "not Android" >&6; }
7125 fi
7126 rm -f conftest.c conftest.out
7127
7128 # Check for unsupported systems
7129 case $ac_sys_system/$ac_sys_release in #(
7130 atheos*|Linux*/1*) :
7131
7132 as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5
7133
7134 ;; #(
7135 *) :
7136 ;;
7137 esac
7138
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-emscripten-target" >&5
7140 printf %s "checking for --with-emscripten-target... " >&6; }
7141
7142 # Check whether --with-emscripten-target was given.
7143 if test ${with_emscripten_target+y}
7144 then :
7145 withval=$with_emscripten_target;
7146 if test "x$ac_sys_system" = xEmscripten
7147 then :
7148
7149 case $with_emscripten_target in #(
7150 browser) :
7151 ac_sys_emscripten_target=browser ;; #(
7152 node) :
7153 ac_sys_emscripten_target=node ;; #(
7154 browser-debug) :
7155 ac_sys_emscripten_target=browser-debug ;; #(
7156 node-debug) :
7157 ac_sys_emscripten_target=node-debug ;; #(
7158 *) :
7159 as_fn_error $? "Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5
7160 ;;
7161 esac
7162
7163 else $as_nop
7164
7165 as_fn_error $? "--with-emscripten-target only applies to Emscripten" "$LINENO" 5
7166
7167 fi
7168
7169 else $as_nop
7170
7171 if test "x$ac_sys_system" = xEmscripten
7172 then :
7173 ac_sys_emscripten_target=browser
7174 fi
7175
7176 fi
7177
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_sys_emscripten_target" >&5
7179 printf "%s\n" "$ac_sys_emscripten_target" >&6; }
7180
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5
7182 printf %s "checking for --enable-wasm-dynamic-linking... " >&6; }
7183 # Check whether --enable-wasm-dynamic-linking was given.
7184 if test ${enable_wasm_dynamic_linking+y}
7185 then :
7186 enableval=$enable_wasm_dynamic_linking;
7187 case $ac_sys_system in #(
7188 Emscripten) :
7189 ;; #(
7190 WASI) :
7191 as_fn_error $? "WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #(
7192 *) :
7193 as_fn_error $? "--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5
7194 ;;
7195 esac
7196
7197 else $as_nop
7198
7199 enable_wasm_dynamic_linking=missing
7200
7201 fi
7202
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5
7204 printf "%s\n" "$enable_wasm_dynamic_linking" >&6; }
7205
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5
7207 printf %s "checking for --enable-wasm-pthreads... " >&6; }
7208 # Check whether --enable-wasm-pthreads was given.
7209 if test ${enable_wasm_pthreads+y}
7210 then :
7211 enableval=$enable_wasm_pthreads;
7212 case $ac_sys_system in #(
7213 Emscripten) :
7214 ;; #(
7215 WASI) :
7216 ;; #(
7217 *) :
7218 as_fn_error $? "--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5
7219 ;;
7220 esac
7221
7222 else $as_nop
7223
7224 enable_wasm_pthreads=missing
7225
7226 fi
7227
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5
7229 printf "%s\n" "$enable_wasm_pthreads" >&6; }
7230
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
7232 printf %s "checking for --with-suffix... " >&6; }
7233
7234 # Check whether --with-suffix was given.
7235 if test ${with_suffix+y}
7236 then :
7237 withval=$with_suffix;
7238 case $with_suffix in #(
7239 no) :
7240 EXEEXT= ;; #(
7241 yes) :
7242 EXEEXT=.exe ;; #(
7243 *) :
7244 EXEEXT=$with_suffix
7245 ;;
7246 esac
7247
7248 else $as_nop
7249
7250 case $ac_sys_system/$ac_sys_emscripten_target in #(
7251 Emscripten/browser*) :
7252 EXEEXT=.js ;; #(
7253 Emscripten/node*) :
7254 EXEEXT=.js ;; #(
7255 WASI/*) :
7256 EXEEXT=.wasm ;; #(
7257 *) :
7258 EXEEXT=
7259 ;;
7260 esac
7261
7262 fi
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
7265 printf "%s\n" "$EXEEXT" >&6; }
7266
7267 # Test whether we're running on a non-case-sensitive system, in which
7268 # case we give a warning if no ext is given
7269
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
7271 printf %s "checking for case-insensitive build directory... " >&6; }
7272 if test ! -d CaseSensitiveTestDir; then
7273 mkdir CaseSensitiveTestDir
7274 fi
7275
7276 if test -d casesensitivetestdir && test -z "$EXEEXT"
7277 then
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 printf "%s\n" "yes" >&6; }
7280 BUILDEXEEXT=.exe
7281 else
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 printf "%s\n" "no" >&6; }
7284 BUILDEXEEXT=$EXEEXT
7285 fi
7286 rmdir CaseSensitiveTestDir
7287
7288 case $ac_sys_system in
7289 hp*|HP*)
7290 case $CC in
7291 cc|*/cc) CC="$CC -Ae";;
7292 esac;;
7293 esac
7294
7295
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
7297 printf %s "checking LIBRARY... " >&6; }
7298 if test -z "$LIBRARY"
7299 then
7300 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
7301 fi
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
7303 printf "%s\n" "$LIBRARY" >&6; }
7304
7305 # LDLIBRARY is the name of the library to link against (as opposed to the
7306 # name of the library into which to insert object files). BLDLIBRARY is also
7307 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
7308 # is blank as the main program is not linked directly against LDLIBRARY.
7309 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
7310 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
7311 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
7312 # DLLLIBRARY is the shared (i.e., DLL) library.
7313 #
7314 # RUNSHARED is used to run shared python without installed libraries
7315 #
7316 # INSTSONAME is the name of the shared library that will be use to install
7317 # on the system - some systems like version suffix, others don't
7318 #
7319 # LDVERSION is the shared library version number, normally the Python version
7320 # with the ABI build flags appended.
7321
7322
7323
7324
7325
7326
7327
7328
7329 LDLIBRARY="$LIBRARY"
7330 BLDLIBRARY='$(LDLIBRARY)'
7331 INSTSONAME='$(LDLIBRARY)'
7332 DLLLIBRARY=''
7333 LDLIBRARYDIR=''
7334 RUNSHARED=''
7335 LDVERSION="$VERSION"
7336
7337 # LINKCC is the command that links the python executable -- default is $(CC).
7338 # If CXX is set, and if it is needed to link a main function that was
7339 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
7340 # python might then depend on the C++ runtime
7341
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
7343 printf %s "checking LINKCC... " >&6; }
7344 if test -z "$LINKCC"
7345 then
7346 LINKCC='$(PURIFY) $(CC)'
7347 case $ac_sys_system in
7348 QNX*)
7349 # qcc must be used because the other compilers do not
7350 # support -N.
7351 LINKCC=qcc;;
7352 esac
7353 fi
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
7355 printf "%s\n" "$LINKCC" >&6; }
7356
7357 # EXPORTSYMS holds the list of exported symbols for AIX.
7358 # EXPORTSFROM holds the module name exporting symbols on AIX.
7359 EXPORTSYMS=
7360 EXPORTSFROM=
7361
7362
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
7364 printf %s "checking EXPORTSYMS... " >&6; }
7365 case $ac_sys_system in
7366 AIX*)
7367 EXPORTSYMS="Modules/python.exp"
7368 EXPORTSFROM=. # the main executable
7369 ;;
7370 esac
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
7372 printf "%s\n" "$EXPORTSYMS" >&6; }
7373
7374 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
7375 # make sure we default having it set to "no": this is used by
7376 # distutils.unixccompiler to know if it should add --enable-new-dtags
7377 # to linker command lines, and failing to detect GNU ld simply results
7378 # in the same behaviour as before.
7379
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7381 printf %s "checking for GNU ld... " >&6; }
7382 ac_prog=ld
7383 if test "$GCC" = yes; then
7384 ac_prog=`$CC -print-prog-name=ld`
7385 fi
7386 case `"$ac_prog" -V 2>&1 < /dev/null` in
7387 *GNU*)
7388 GNULD=yes;;
7389 *)
7390 GNULD=no;;
7391 esac
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
7393 printf "%s\n" "$GNULD" >&6; }
7394
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
7396 printf %s "checking for --enable-shared... " >&6; }
7397 # Check whether --enable-shared was given.
7398 if test ${enable_shared+y}
7399 then :
7400 enableval=$enable_shared;
7401 fi
7402
7403
7404 if test -z "$enable_shared"
7405 then
7406 case $ac_sys_system in
7407 CYGWIN*)
7408 enable_shared="yes";;
7409 *)
7410 enable_shared="no";;
7411 esac
7412 fi
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
7414 printf "%s\n" "$enable_shared" >&6; }
7415
7416 # --with-static-libpython
7417 STATIC_LIBPYTHON=1
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5
7419 printf %s "checking for --with-static-libpython... " >&6; }
7420
7421 # Check whether --with-static-libpython was given.
7422 if test ${with_static_libpython+y}
7423 then :
7424 withval=$with_static_libpython;
7425 if test "$withval" = no
7426 then
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 printf "%s\n" "no" >&6; };
7429 STATIC_LIBPYTHON=0
7430 else
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 printf "%s\n" "yes" >&6; };
7433 fi
7434 else $as_nop
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 printf "%s\n" "yes" >&6; }
7437 fi
7438
7439
7440
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
7442 printf %s "checking for --enable-profiling... " >&6; }
7443 # Check whether --enable-profiling was given.
7444 if test ${enable_profiling+y}
7445 then :
7446 enableval=$enable_profiling;
7447 fi
7448
7449 if test "x$enable_profiling" = xyes; then
7450 ac_save_cc="$CC"
7451 CC="$CC -pg"
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int main(void) { return 0; }
7455 _ACEOF
7456 if ac_fn_c_try_link "$LINENO"
7457 then :
7458
7459 else $as_nop
7460 enable_profiling=no
7461 fi
7462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7463 conftest$ac_exeext conftest.$ac_ext
7464 CC="$ac_save_cc"
7465 else
7466 enable_profiling=no
7467 fi
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
7469 printf "%s\n" "$enable_profiling" >&6; }
7470
7471 if test "x$enable_profiling" = xyes; then
7472 BASECFLAGS="-pg $BASECFLAGS"
7473 LDFLAGS="-pg $LDFLAGS"
7474 fi
7475
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
7477 printf %s "checking LDLIBRARY... " >&6; }
7478
7479 # Apple framework builds need more magic. LDLIBRARY is the dynamic
7480 # library that we build, but we do not want to link against it (we
7481 # will find it with a -framework option). For this reason there is an
7482 # extra variable BLDLIBRARY against which Python and the extension
7483 # modules are linked, BLDLIBRARY. This is normally the same as
7484 # LDLIBRARY, but empty for MacOSX framework builds. iOS does the same,
7485 # but uses a non-versioned framework layout.
7486 if test "$enable_framework"
7487 then
7488 case $ac_sys_system in
7489 Darwin)
7490 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)';;
7491 iOS)
7492 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)';;
7493 *)
7494 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5;;
7495 esac
7496 BLDLIBRARY=''
7497 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
7498 else
7499 BLDLIBRARY='$(LDLIBRARY)'
7500 fi
7501
7502 # Other platforms follow
7503 if test $enable_shared = "yes"; then
7504 PY_ENABLE_SHARED=1
7505
7506 printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h
7507
7508 case $ac_sys_system in
7509 CYGWIN*)
7510 LDLIBRARY='libpython$(LDVERSION).dll.a'
7511 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7512 DLLLIBRARY='libpython$(LDVERSION).dll'
7513 ;;
7514 SunOS*)
7515 LDLIBRARY='libpython$(LDVERSION).so'
7516 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
7517 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7518 INSTSONAME="$LDLIBRARY".$SOVERSION
7519 if test "$with_pydebug" != yes
7520 then
7521 PY3LIBRARY=libpython3.so
7522 fi
7523 ;;
7524 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*)
7525 LDLIBRARY='libpython$(LDVERSION).so'
7526 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7527 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7528
7529 # The Android Gradle plugin will only package libraries whose names end
7530 # with ".so".
7531 if test "$ac_sys_system" != "Linux-android"; then
7532 INSTSONAME="$LDLIBRARY".$SOVERSION
7533 fi
7534
7535 if test "$with_pydebug" != yes
7536 then
7537 PY3LIBRARY=libpython3.so
7538 fi
7539 ;;
7540 hp*|HP*)
7541 case `uname -m` in
7542 ia64)
7543 LDLIBRARY='libpython$(LDVERSION).so'
7544 ;;
7545 *)
7546 LDLIBRARY='libpython$(LDVERSION).sl'
7547 ;;
7548 esac
7549 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
7550 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
7551 ;;
7552 Darwin*)
7553 LDLIBRARY='libpython$(LDVERSION).dylib'
7554 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7555 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
7556 ;;
7557 iOS)
7558 LDLIBRARY='libpython$(LDVERSION).dylib'
7559 ;;
7560 AIX*)
7561 LDLIBRARY='libpython$(LDVERSION).so'
7562 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
7563 ;;
7564
7565 esac
7566 else # shared is disabled
7567 PY_ENABLE_SHARED=0
7568 case $ac_sys_system in
7569 CYGWIN*)
7570 BLDLIBRARY='$(LIBRARY)'
7571 LDLIBRARY='libpython$(LDVERSION).dll.a'
7572 ;;
7573 esac
7574 fi
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
7576 printf "%s\n" "$LDLIBRARY" >&6; }
7577
7578 if test "$cross_compiling" = yes; then
7579 RUNSHARED=
7580 fi
7581
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
7583 printf %s "checking HOSTRUNNER... " >&6; }
7584
7585 if test -z "$HOSTRUNNER"
7586 then
7587 case $ac_sys_system/$ac_sys_emscripten_target in #(
7588 Emscripten/node*) :
7589
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args.
7592 set dummy ${ac_tool_prefix}node; ac_word=$2
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 printf %s "checking for $ac_word... " >&6; }
7595 if test ${ac_cv_path_NODE+y}
7596 then :
7597 printf %s "(cached) " >&6
7598 else $as_nop
7599 case $NODE in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_NODE="$NODE" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607 IFS=$as_save_IFS
7608 case $as_dir in #(((
7609 '') as_dir=./ ;;
7610 */) ;;
7611 *) as_dir=$as_dir/ ;;
7612 esac
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7615 ac_cv_path_NODE="$as_dir$ac_word$ac_exec_ext"
7616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623 ;;
7624 esac
7625 fi
7626 NODE=$ac_cv_path_NODE
7627 if test -n "$NODE"; then
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5
7629 printf "%s\n" "$NODE" >&6; }
7630 else
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 printf "%s\n" "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_path_NODE"; then
7638 ac_pt_NODE=$NODE
7639 # Extract the first word of "node", so it can be a program name with args.
7640 set dummy node; ac_word=$2
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 printf %s "checking for $ac_word... " >&6; }
7643 if test ${ac_cv_path_ac_pt_NODE+y}
7644 then :
7645 printf %s "(cached) " >&6
7646 else $as_nop
7647 case $ac_pt_NODE in
7648 [\\/]* | ?:[\\/]*)
7649 ac_cv_path_ac_pt_NODE="$ac_pt_NODE" # Let the user override the test with a path.
7650 ;;
7651 *)
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655 IFS=$as_save_IFS
7656 case $as_dir in #(((
7657 '') as_dir=./ ;;
7658 */) ;;
7659 *) as_dir=$as_dir/ ;;
7660 esac
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7663 ac_cv_path_ac_pt_NODE="$as_dir$ac_word$ac_exec_ext"
7664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 ;;
7672 esac
7673 fi
7674 ac_pt_NODE=$ac_cv_path_ac_pt_NODE
7675 if test -n "$ac_pt_NODE"; then
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5
7677 printf "%s\n" "$ac_pt_NODE" >&6; }
7678 else
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 printf "%s\n" "no" >&6; }
7681 fi
7682
7683 if test "x$ac_pt_NODE" = x; then
7684 NODE="node"
7685 else
7686 case $cross_compiling:$ac_tool_warned in
7687 yes:)
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690 ac_tool_warned=yes ;;
7691 esac
7692 NODE=$ac_pt_NODE
7693 fi
7694 else
7695 NODE="$ac_cv_path_NODE"
7696 fi
7697
7698 HOSTRUNNER="$NODE"
7699 # bigint for ctypes c_longlong, c_longdouble
7700 # no longer available in Node 16
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bigint" >&5
7702 printf %s "checking for node --experimental-wasm-bigint... " >&6; }
7703 if test ${ac_cv_tool_node_wasm_bigint+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else $as_nop
7707
7708 if $NODE -v --experimental-wasm-bigint > /dev/null 2>&1; then
7709 ac_cv_tool_node_wasm_bigint=yes
7710 else
7711 ac_cv_tool_node_wasm_bigint=no
7712 fi
7713
7714 fi
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bigint" >&5
7716 printf "%s\n" "$ac_cv_tool_node_wasm_bigint" >&6; }
7717 if test "x$ac_cv_tool_node_wasm_bigint" = xyes
7718 then :
7719
7720 as_fn_append HOSTRUNNER " --experimental-wasm-bigint"
7721
7722 fi
7723
7724 if test "x$enable_wasm_pthreads" = xyes
7725 then :
7726
7727 as_fn_append HOSTRUNNER " --experimental-wasm-threads"
7728 # no longer available in Node 16
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bulk-memory" >&5
7730 printf %s "checking for node --experimental-wasm-bulk-memory... " >&6; }
7731 if test ${ac_cv_tool_node_wasm_bulk_memory+y}
7732 then :
7733 printf %s "(cached) " >&6
7734 else $as_nop
7735
7736 if $NODE -v --experimental-wasm-bulk-memory > /dev/null 2>&1; then
7737 ac_cv_tool_node_wasm_bulk_memory=yes
7738 else
7739 ac_cv_tool_node_wasm_bulk_memory=no
7740 fi
7741
7742 fi
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bulk_memory" >&5
7744 printf "%s\n" "$ac_cv_tool_node_wasm_bulk_memory" >&6; }
7745 if test "x$ac_cv_tool_node_wasm_bulk_memory" = xyes
7746 then :
7747
7748 as_fn_append HOSTRUNNER " --experimental-wasm-bulk-memory"
7749
7750 fi
7751
7752 fi
7753
7754 if test "x$host_cpu" = xwasm64
7755 then :
7756 as_fn_append HOSTRUNNER " --experimental-wasm-memory64"
7757 fi
7758 ;; #(
7759 WASI/*) :
7760 HOSTRUNNER='wasmtime run --wasm max-wasm-stack=8388608 --wasi preview2 --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/' ;; #(
7761 *) :
7762 HOSTRUNNER=''
7763 ;;
7764 esac
7765 fi
7766
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5
7768 printf "%s\n" "$HOSTRUNNER" >&6; }
7769
7770 if test -n "$HOSTRUNNER"; then
7771 PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD"
7772 fi
7773
7774 # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable
7775 case $ac_sys_system/$ac_sys_emscripten_target in #(
7776 Emscripten/browser*) :
7777 LIBRARY_DEPS='$(PY3LIBRARY) $(WASM_STDLIB) python.html python.worker.js' ;; #(
7778 *) :
7779 LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)'
7780 ;;
7781 esac
7782 LINK_PYTHON_DEPS='$(LIBRARY_DEPS)'
7783 if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then
7784 LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS"
7785 if test "$STATIC_LIBPYTHON" = 1; then
7786 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7787 fi
7788 # Link Python program to the shared library
7789 LINK_PYTHON_OBJS='$(BLDLIBRARY)'
7790 else
7791 if test "$STATIC_LIBPYTHON" = 0; then
7792 # Build Python needs object files but don't need to build
7793 # Python static library
7794 LINK_PYTHON_DEPS="$LIBRARY_DEPS \$(LIBRARY_OBJS)"
7795 fi
7796 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7797 # Link Python program to object files
7798 LINK_PYTHON_OBJS='$(LIBRARY_OBJS)'
7799 fi
7800
7801
7802
7803
7804 # ar program
7805
7806 if test -n "$ac_tool_prefix"; then
7807 for ac_prog in ar aal
7808 do
7809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 printf %s "checking for $ac_word... " >&6; }
7813 if test ${ac_cv_prog_AR+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else $as_nop
7817 if test -n "$AR"; then
7818 ac_cv_prog_AR="$AR" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 case $as_dir in #(((
7825 '') as_dir=./ ;;
7826 */) ;;
7827 *) as_dir=$as_dir/ ;;
7828 esac
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 AR=$ac_cv_prog_AR
7842 if test -n "$AR"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7844 printf "%s\n" "$AR" >&6; }
7845 else
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7848 fi
7849
7850
7851 test -n "$AR" && break
7852 done
7853 fi
7854 if test -z "$AR"; then
7855 ac_ct_AR=$AR
7856 for ac_prog in ar aal
7857 do
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 printf %s "checking for $ac_word... " >&6; }
7862 if test ${ac_cv_prog_ac_ct_AR+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else $as_nop
7866 if test -n "$ac_ct_AR"; then
7867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 case $as_dir in #(((
7874 '') as_dir=./ ;;
7875 */) ;;
7876 *) as_dir=$as_dir/ ;;
7877 esac
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_AR="$ac_prog"
7881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7891 if test -n "$ac_ct_AR"; then
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7893 printf "%s\n" "$ac_ct_AR" >&6; }
7894 else
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 printf "%s\n" "no" >&6; }
7897 fi
7898
7899
7900 test -n "$ac_ct_AR" && break
7901 done
7902
7903 if test "x$ac_ct_AR" = x; then
7904 AR="ar"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912 AR=$ac_ct_AR
7913 fi
7914 fi
7915
7916
7917 # tweak ARFLAGS only if the user didn't set it on the command line
7918
7919 if test -z "$ARFLAGS"
7920 then
7921 ARFLAGS="rcs"
7922 fi
7923
7924 case $MACHDEP in
7925 hp*|HP*)
7926 # install -d does not work on HP-UX
7927 if test -z "$INSTALL"
7928 then
7929 INSTALL="${srcdir}/install-sh -c"
7930 fi
7931 esac
7932
7933 # Find a good install program. We prefer a C program (faster),
7934 # so one script is as good as another. But avoid the broken or
7935 # incompatible versions:
7936 # SysV /etc/install, /usr/sbin/install
7937 # SunOS /usr/etc/install
7938 # IRIX /sbin/install
7939 # AIX /bin/install
7940 # AmigaOS /C/install, which installs bootblocks on floppy discs
7941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7944 # OS/2's system install, which has a completely different semantic
7945 # ./install, which can be erroneously created by make from ./install.sh.
7946 # Reject install programs that cannot install multiple files.
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7948 printf %s "checking for a BSD-compatible install... " >&6; }
7949 if test -z "$INSTALL"; then
7950 if test ${ac_cv_path_install+y}
7951 then :
7952 printf %s "(cached) " >&6
7953 else $as_nop
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957 IFS=$as_save_IFS
7958 case $as_dir in #(((
7959 '') as_dir=./ ;;
7960 */) ;;
7961 *) as_dir=$as_dir/ ;;
7962 esac
7963 # Account for fact that we put trailing slashes in our PATH walk.
7964 case $as_dir in #((
7965 ./ | /[cC]/* | \
7966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7968 /usr/ucb/* ) ;;
7969 *)
7970 # OSF1 and SCO ODT 3.0 have their own names for install.
7971 # Don't use installbsd from OSF since it installs stuff as root
7972 # by default.
7973 for ac_prog in ginstall scoinst install; do
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
7976 if test $ac_prog = install &&
7977 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7978 # AIX install. It has an incompatible calling convention.
7979 :
7980 elif test $ac_prog = install &&
7981 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7982 # program-specific install script used by HP pwplus--don't use.
7983 :
7984 else
7985 rm -rf conftest.one conftest.two conftest.dir
7986 echo one > conftest.one
7987 echo two > conftest.two
7988 mkdir conftest.dir
7989 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
7990 test -s conftest.one && test -s conftest.two &&
7991 test -s conftest.dir/conftest.one &&
7992 test -s conftest.dir/conftest.two
7993 then
7994 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
7995 break 3
7996 fi
7997 fi
7998 fi
7999 done
8000 done
8001 ;;
8002 esac
8003
8004 done
8005 IFS=$as_save_IFS
8006
8007 rm -rf conftest.one conftest.two conftest.dir
8008
8009 fi
8010 if test ${ac_cv_path_install+y}; then
8011 INSTALL=$ac_cv_path_install
8012 else
8013 # As a last resort, use the slow shell script. Don't cache a
8014 # value for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the value is a relative name.
8017 INSTALL=$ac_install_sh
8018 fi
8019 fi
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 printf "%s\n" "$INSTALL" >&6; }
8022
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8026
8027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8028
8029 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8030
8031
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8033 printf %s "checking for a race-free mkdir -p... " >&6; }
8034 if test -z "$MKDIR_P"; then
8035 if test ${ac_cv_path_mkdir+y}
8036 then :
8037 printf %s "(cached) " >&6
8038 else $as_nop
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8041 do
8042 IFS=$as_save_IFS
8043 case $as_dir in #(((
8044 '') as_dir=./ ;;
8045 */) ;;
8046 *) as_dir=$as_dir/ ;;
8047 esac
8048 for ac_prog in mkdir gmkdir; do
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8051 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8052 'mkdir ('*'coreutils) '* | \
8053 'BusyBox '* | \
8054 'mkdir (fileutils) '4.1*)
8055 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8056 break 3;;
8057 esac
8058 done
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063 fi
8064
8065 test -d ./--version && rmdir ./--version
8066 if test ${ac_cv_path_mkdir+y}; then
8067 MKDIR_P="$ac_cv_path_mkdir -p"
8068 else
8069 # As a last resort, use the slow shell script. Don't cache a
8070 # value for MKDIR_P within a source directory, because that will
8071 # break other packages using the cache if that directory is
8072 # removed, or if the value is a relative name.
8073 MKDIR_P="$ac_install_sh -d"
8074 fi
8075 fi
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8077 printf "%s\n" "$MKDIR_P" >&6; }
8078
8079
8080 # Not every filesystem supports hard links
8081
8082 if test -z "$LN" ; then
8083 case $ac_sys_system in
8084 CYGWIN*) LN="ln -s";;
8085 *) LN=ln;;
8086 esac
8087 fi
8088
8089 # For calculating the .so ABI tag.
8090
8091 ABIFLAGS=""
8092
8093 # Check for --disable-gil
8094 # --disable-gil
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
8096 printf %s "checking for --disable-gil... " >&6; }
8097 # Check whether --enable-gil was given.
8098 if test ${enable_gil+y}
8099 then :
8100 enableval=$enable_gil; if test "x$enable_gil" = xyes
8101 then :
8102 disable_gil=no
8103 else $as_nop
8104 disable_gil=yes
8105 fi
8106 else $as_nop
8107 disable_gil=no
8108
8109 fi
8110
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
8112 printf "%s\n" "$disable_gil" >&6; }
8113
8114 if test "$disable_gil" = "yes"
8115 then
8116
8117 printf "%s\n" "#define Py_GIL_DISABLED 1" >>confdefs.h
8118
8119 # Add "t" for "threaded"
8120 ABIFLAGS="${ABIFLAGS}t"
8121 fi
8122
8123 # Check for --with-pydebug
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
8125 printf %s "checking for --with-pydebug... " >&6; }
8126
8127 # Check whether --with-pydebug was given.
8128 if test ${with_pydebug+y}
8129 then :
8130 withval=$with_pydebug;
8131 if test "$withval" != no
8132 then
8133
8134 printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h
8135
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 printf "%s\n" "yes" >&6; };
8138 Py_DEBUG='true'
8139 ABIFLAGS="${ABIFLAGS}d"
8140 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 printf "%s\n" "no" >&6; }; Py_DEBUG='false'
8142 fi
8143 else $as_nop
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 printf "%s\n" "no" >&6; }
8146 fi
8147
8148
8149 # Check for --with-trace-refs
8150 # --with-trace-refs
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
8152 printf %s "checking for --with-trace-refs... " >&6; }
8153
8154 # Check whether --with-trace-refs was given.
8155 if test ${with_trace_refs+y}
8156 then :
8157 withval=$with_trace_refs;
8158 else $as_nop
8159 with_trace_refs=no
8160
8161 fi
8162
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
8164 printf "%s\n" "$with_trace_refs" >&6; }
8165
8166 if test "$with_trace_refs" = "yes"
8167 then
8168
8169 printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h
8170
8171 fi
8172
8173
8174 # Check for --enable-pystats
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5
8176 printf %s "checking for --enable-pystats... " >&6; }
8177 # Check whether --enable-pystats was given.
8178 if test ${enable_pystats+y}
8179 then :
8180 enableval=$enable_pystats;
8181 else $as_nop
8182 enable_pystats=no
8183
8184 fi
8185
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5
8187 printf "%s\n" "$enable_pystats" >&6; }
8188
8189 if test "x$enable_pystats" = xyes
8190 then :
8191
8192
8193 printf "%s\n" "#define Py_STATS 1" >>confdefs.h
8194
8195
8196 fi
8197
8198 # Check for --with-assertions.
8199 # This allows enabling assertions without Py_DEBUG.
8200 assertions='false'
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
8202 printf %s "checking for --with-assertions... " >&6; }
8203
8204 # Check whether --with-assertions was given.
8205 if test ${with_assertions+y}
8206 then :
8207 withval=$with_assertions;
8208 if test "$withval" != no
8209 then
8210 assertions='true'
8211 fi
8212 fi
8213
8214 if test "$assertions" = 'true'; then
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8216 printf "%s\n" "yes" >&6; }
8217 elif test "$Py_DEBUG" = 'true'; then
8218 assertions='true'
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
8220 printf "%s\n" "implied by --with-pydebug" >&6; }
8221 else
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 printf "%s\n" "no" >&6; }
8224 fi
8225
8226 # Check for --enable-experimental-jit:
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5
8228 printf %s "checking for --enable-experimental-jit... " >&6; }
8229 # Check whether --enable-experimental-jit was given.
8230 if test ${enable_experimental_jit+y}
8231 then :
8232 enableval=$enable_experimental_jit;
8233 else $as_nop
8234 enable_experimental_jit=no
8235 fi
8236
8237 case $enable_experimental_jit in
8238 no) jit_flags=""; tier2_flags="" ;;
8239 yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;;
8240 yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;;
8241 interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;;
8242 interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option
8243 *) as_fn_error $? "invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;;
8244 esac
8245 if ${tier2_flags:+false} :
8246 then :
8247
8248 else $as_nop
8249 as_fn_append CFLAGS_NODIST " $tier2_flags"
8250 fi
8251 if ${jit_flags:+false} :
8252 then :
8253
8254 else $as_nop
8255 as_fn_append CFLAGS_NODIST " $jit_flags"
8256 REGEN_JIT_COMMAND="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"
8257 JIT_STENCILS_H="jit_stencils.h"
8258 if test "x$Py_DEBUG" = xtrue
8259 then :
8260 as_fn_append REGEN_JIT_COMMAND " --debug"
8261 fi
8262 fi
8263
8264
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5
8266 printf "%s\n" "$tier2_flags $jit_flags" >&6; }
8267
8268 # Enable optimization flags
8269
8270
8271 Py_OPT='false'
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
8273 printf %s "checking for --enable-optimizations... " >&6; }
8274 # Check whether --enable-optimizations was given.
8275 if test ${enable_optimizations+y}
8276 then :
8277 enableval=$enable_optimizations;
8278 if test "$enableval" != no
8279 then
8280 Py_OPT='true'
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8282 printf "%s\n" "yes" >&6; };
8283 else
8284 Py_OPT='false'
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 printf "%s\n" "no" >&6; };
8287 fi
8288 else $as_nop
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 printf "%s\n" "no" >&6; }
8291 fi
8292
8293
8294 if test "$Py_OPT" = 'true' ; then
8295 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
8296 # compile working code using it and both test_distutils and test_gdb are
8297 # broken when you do manage to get a toolchain that works with it. People
8298 # who want LTO need to use --with-lto themselves.
8299 DEF_MAKE_ALL_RULE="profile-opt"
8300 REQUIRE_PGO="yes"
8301 DEF_MAKE_RULE="build_all"
8302 case $CC in
8303 *gcc*)
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
8305 printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
8306 if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else $as_nop
8310
8311 ax_check_save_flags=$CFLAGS
8312 CFLAGS="$CFLAGS -Werror -fno-semantic-interposition"
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315
8316 int
8317 main (void)
8318 {
8319
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 if ac_fn_c_try_compile "$LINENO"
8325 then :
8326 ax_cv_check_cflags__Werror__fno_semantic_interposition=yes
8327 else $as_nop
8328 ax_cv_check_cflags__Werror__fno_semantic_interposition=no
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8331 CFLAGS=$ax_check_save_flags
8332 fi
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5
8334 printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; }
8335 if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes
8336 then :
8337
8338 CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"
8339 LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition"
8340
8341 else $as_nop
8342 :
8343 fi
8344
8345 ;;
8346 esac
8347 elif test "$ac_sys_system" = "Emscripten" -o "$ac_sys_system" = "WASI"; then
8348 DEF_MAKE_ALL_RULE="build_wasm"
8349 REQUIRE_PGO="no"
8350 DEF_MAKE_RULE="all"
8351 else
8352 DEF_MAKE_ALL_RULE="build_all"
8353 REQUIRE_PGO="no"
8354 DEF_MAKE_RULE="all"
8355 fi
8356
8357
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
8359 printf %s "checking PROFILE_TASK... " >&6; }
8360 if test -z "$PROFILE_TASK"
8361 then
8362 PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
8363 fi
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
8365 printf "%s\n" "$PROFILE_TASK" >&6; }
8366
8367 # Make llvm-related checks work on systems where llvm tools are not installed with their
8368 # normal names in the default $PATH (ie: Ubuntu). They exist under the
8369 # non-suffixed name in their versioned llvm directory.
8370
8371 llvm_bin_dir=''
8372 llvm_path="${PATH}"
8373 if test "${CC}" = "clang"
8374 then
8375 clang_bin=`which clang`
8376 # Some systems install clang elsewhere as a symlink to the real path
8377 # which is where the related llvm tools are located.
8378 if test -L "${clang_bin}"
8379 then
8380 clang_dir=`dirname "${clang_bin}"`
8381 clang_bin=`readlink "${clang_bin}"`
8382 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
8383 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
8384 fi
8385 fi
8386
8387 # Enable LTO flags
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
8389 printf %s "checking for --with-lto... " >&6; }
8390
8391 # Check whether --with-lto was given.
8392 if test ${with_lto+y}
8393 then :
8394 withval=$with_lto;
8395 case "$withval" in
8396 full)
8397 Py_LTO='true'
8398 Py_LTO_POLICY='full'
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 printf "%s\n" "yes" >&6; }
8401 ;;
8402 thin)
8403 Py_LTO='true'
8404 Py_LTO_POLICY='thin'
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8406 printf "%s\n" "yes" >&6; }
8407 ;;
8408 yes)
8409 Py_LTO='true'
8410 Py_LTO_POLICY='default'
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 printf "%s\n" "yes" >&6; }
8413 ;;
8414 no)
8415 Py_LTO='false'
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8418 ;;
8419 *)
8420 Py_LTO='false'
8421 as_fn_error $? "unknown lto option: '$withval'" "$LINENO" 5
8422 ;;
8423 esac
8424
8425 else $as_nop
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 printf "%s\n" "no" >&6; }
8428 fi
8429
8430 if test "$Py_LTO" = 'true' ; then
8431 case $CC in
8432 *clang*)
8433 LDFLAGS_NOLTO="-fno-lto"
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8435 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8436 if test ${ax_cv_check_cflags___flto_thin+y}
8437 then :
8438 printf %s "(cached) " >&6
8439 else $as_nop
8440
8441 ax_check_save_flags=$CFLAGS
8442 CFLAGS="$CFLAGS -flto=thin"
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445
8446 int
8447 main (void)
8448 {
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"
8455 then :
8456 ax_cv_check_cflags___flto_thin=yes
8457 else $as_nop
8458 ax_cv_check_cflags___flto_thin=no
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 CFLAGS=$ax_check_save_flags
8462 fi
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8464 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8465 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8466 then :
8467 LDFLAGS_NOLTO="-flto=thin"
8468 else $as_nop
8469 LDFLAGS_NOLTO="-flto"
8470 fi
8471
8472
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 printf %s "checking for $ac_word... " >&6; }
8478 if test ${ac_cv_path_LLVM_AR+y}
8479 then :
8480 printf %s "(cached) " >&6
8481 else $as_nop
8482 case $LLVM_AR in
8483 [\\/]* | ?:[\\/]*)
8484 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
8485 ;;
8486 *)
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in ${llvm_path}
8489 do
8490 IFS=$as_save_IFS
8491 case $as_dir in #(((
8492 '') as_dir=./ ;;
8493 */) ;;
8494 *) as_dir=$as_dir/ ;;
8495 esac
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8498 ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 ;;
8507 esac
8508 fi
8509 LLVM_AR=$ac_cv_path_LLVM_AR
8510 if test -n "$LLVM_AR"; then
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
8512 printf "%s\n" "$LLVM_AR" >&6; }
8513 else
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 printf "%s\n" "no" >&6; }
8516 fi
8517
8518
8519 fi
8520 if test -z "$ac_cv_path_LLVM_AR"; then
8521 ac_pt_LLVM_AR=$LLVM_AR
8522 # Extract the first word of "llvm-ar", so it can be a program name with args.
8523 set dummy llvm-ar; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_path_ac_pt_LLVM_AR+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else $as_nop
8530 case $ac_pt_LLVM_AR in
8531 [\\/]* | ?:[\\/]*)
8532 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
8533 ;;
8534 *)
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in ${llvm_path}
8537 do
8538 IFS=$as_save_IFS
8539 case $as_dir in #(((
8540 '') as_dir=./ ;;
8541 */) ;;
8542 *) as_dir=$as_dir/ ;;
8543 esac
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8546 ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554 ;;
8555 esac
8556 fi
8557 ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
8558 if test -n "$ac_pt_LLVM_AR"; then
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
8560 printf "%s\n" "$ac_pt_LLVM_AR" >&6; }
8561 else
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8564 fi
8565
8566 if test "x$ac_pt_LLVM_AR" = x; then
8567 LLVM_AR="''"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 LLVM_AR=$ac_pt_LLVM_AR
8576 fi
8577 else
8578 LLVM_AR="$ac_cv_path_LLVM_AR"
8579 fi
8580
8581
8582 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
8583 then
8584 LLVM_AR_FOUND="found"
8585 else
8586 LLVM_AR_FOUND="not-found"
8587 fi
8588 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
8589 then
8590 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient
8591 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null`
8592 if test -n "${found_llvm_ar}"
8593 then
8594 LLVM_AR='/usr/bin/xcrun ar'
8595 LLVM_AR_FOUND=found
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
8597 printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
8598 fi
8599 fi
8600 if test $LLVM_AR_FOUND = not-found
8601 then
8602 LLVM_PROFR_ERR=yes
8603 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
8604 else
8605 LLVM_AR_ERR=no
8606 fi
8607 AR="${LLVM_AR}"
8608 case $ac_sys_system in
8609 Darwin*)
8610 # Any changes made here should be reflected in the GCC+Darwin case below
8611 if test $Py_LTO_POLICY = default
8612 then
8613 # Check that ThinLTO is accepted.
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8615 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8616 if test ${ax_cv_check_cflags___flto_thin+y}
8617 then :
8618 printf %s "(cached) " >&6
8619 else $as_nop
8620
8621 ax_check_save_flags=$CFLAGS
8622 CFLAGS="$CFLAGS -flto=thin"
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625
8626 int
8627 main (void)
8628 {
8629
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"
8635 then :
8636 ax_cv_check_cflags___flto_thin=yes
8637 else $as_nop
8638 ax_cv_check_cflags___flto_thin=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8641 CFLAGS=$ax_check_save_flags
8642 fi
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8644 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8645 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8646 then :
8647
8648 LTOFLAGS="-flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8649 LTOCFLAGS="-flto=thin"
8650
8651 else $as_nop
8652
8653 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8654 LTOCFLAGS="-flto"
8655
8656
8657 fi
8658
8659 else
8660 LTOFLAGS="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8661 LTOCFLAGS="-flto=${Py_LTO_POLICY}"
8662 fi
8663 ;;
8664 *)
8665 if test $Py_LTO_POLICY = default
8666 then
8667 # Check that ThinLTO is accepted
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8669 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8670 if test ${ax_cv_check_cflags___flto_thin+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else $as_nop
8674
8675 ax_check_save_flags=$CFLAGS
8676 CFLAGS="$CFLAGS -flto=thin"
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679
8680 int
8681 main (void)
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_compile "$LINENO"
8689 then :
8690 ax_cv_check_cflags___flto_thin=yes
8691 else $as_nop
8692 ax_cv_check_cflags___flto_thin=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8695 CFLAGS=$ax_check_save_flags
8696 fi
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8698 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8699 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8700 then :
8701 LTOFLAGS="-flto=thin"
8702 else $as_nop
8703 LTOFLAGS="-flto"
8704 fi
8705
8706 else
8707 LTOFLAGS="-flto=${Py_LTO_POLICY}"
8708 fi
8709 ;;
8710 esac
8711 ;;
8712 *emcc*)
8713 if test "$Py_LTO_POLICY" != "default"; then
8714 as_fn_error $? "emcc supports only default lto." "$LINENO" 5
8715 fi
8716 LTOFLAGS="-flto"
8717 LTOCFLAGS="-flto"
8718 ;;
8719 *gcc*)
8720 if test $Py_LTO_POLICY = thin
8721 then
8722 as_fn_error $? "thin lto is not supported under gcc compiler." "$LINENO" 5
8723 fi
8724 LDFLAGS_NOLTO="-fno-lto"
8725 case $ac_sys_system in
8726 Darwin*)
8727 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8728 LTOCFLAGS="-flto"
8729 ;;
8730 *)
8731 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
8732 ;;
8733 esac
8734 ;;
8735 esac
8736
8737 if test "$ac_cv_prog_cc_g" = "yes"
8738 then
8739 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
8740 # to get debug symbols.
8741 LTOFLAGS="$LTOFLAGS -g"
8742 fi
8743
8744 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
8745 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
8746 fi
8747
8748 # Enable PGO flags.
8749
8750
8751
8752
8753
8754
8755 if test -n "$ac_tool_prefix"; then
8756 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
8757 set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 printf %s "checking for $ac_word... " >&6; }
8760 if test ${ac_cv_path_LLVM_PROFDATA+y}
8761 then :
8762 printf %s "(cached) " >&6
8763 else $as_nop
8764 case $LLVM_PROFDATA in
8765 [\\/]* | ?:[\\/]*)
8766 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
8767 ;;
8768 *)
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in ${llvm_path}
8771 do
8772 IFS=$as_save_IFS
8773 case $as_dir in #(((
8774 '') as_dir=./ ;;
8775 */) ;;
8776 *) as_dir=$as_dir/ ;;
8777 esac
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8780 ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784 done
8785 done
8786 IFS=$as_save_IFS
8787
8788 ;;
8789 esac
8790 fi
8791 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
8792 if test -n "$LLVM_PROFDATA"; then
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
8794 printf "%s\n" "$LLVM_PROFDATA" >&6; }
8795 else
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 printf "%s\n" "no" >&6; }
8798 fi
8799
8800
8801 fi
8802 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
8803 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
8804 # Extract the first word of "llvm-profdata", so it can be a program name with args.
8805 set dummy llvm-profdata; ac_word=$2
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 printf %s "checking for $ac_word... " >&6; }
8808 if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y}
8809 then :
8810 printf %s "(cached) " >&6
8811 else $as_nop
8812 case $ac_pt_LLVM_PROFDATA in
8813 [\\/]* | ?:[\\/]*)
8814 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
8815 ;;
8816 *)
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in ${llvm_path}
8819 do
8820 IFS=$as_save_IFS
8821 case $as_dir in #(((
8822 '') as_dir=./ ;;
8823 */) ;;
8824 *) as_dir=$as_dir/ ;;
8825 esac
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8828 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8830 break 2
8831 fi
8832 done
8833 done
8834 IFS=$as_save_IFS
8835
8836 ;;
8837 esac
8838 fi
8839 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
8840 if test -n "$ac_pt_LLVM_PROFDATA"; then
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
8842 printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; }
8843 else
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 printf "%s\n" "no" >&6; }
8846 fi
8847
8848 if test "x$ac_pt_LLVM_PROFDATA" = x; then
8849 LLVM_PROFDATA="''"
8850 else
8851 case $cross_compiling:$ac_tool_warned in
8852 yes:)
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8855 ac_tool_warned=yes ;;
8856 esac
8857 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
8858 fi
8859 else
8860 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
8861 fi
8862
8863
8864 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
8865 then
8866 LLVM_PROF_FOUND="found"
8867 else
8868 LLVM_PROF_FOUND="not-found"
8869 fi
8870 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
8871 then
8872 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
8873 if test -n "${found_llvm_profdata}"
8874 then
8875 # llvm-profdata isn't directly in $PATH in some cases.
8876 # https://apple.stackexchange.com/questions/197053/
8877 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
8878 LLVM_PROF_FOUND=found
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
8880 printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
8881 fi
8882 fi
8883 LLVM_PROF_ERR=no
8884
8885 # GNU Autoconf recommends the use of expr instead of basename.
8886 CC_BASENAME=$(expr "//$CC" : '.*/\(.*\)')
8887 case "$CC_BASENAME" in
8888 *clang*)
8889 # Any changes made here should be reflected in the GCC+Darwin case below
8890 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
8891 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8892 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8893 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8894 if test $LLVM_PROF_FOUND = not-found
8895 then
8896 LLVM_PROF_ERR=yes
8897 if test "${REQUIRE_PGO}" = "yes"
8898 then
8899 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8900 fi
8901 fi
8902 ;;
8903 *gcc*)
8904 case $ac_sys_system in
8905 Darwin*)
8906 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
8907 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8908 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8909 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8910 if test "${LLVM_PROF_FOUND}" = "not-found"
8911 then
8912 LLVM_PROF_ERR=yes
8913 if test "${REQUIRE_PGO}" = "yes"
8914 then
8915 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8916 fi
8917 fi
8918 ;;
8919 *)
8920 PGO_PROF_GEN_FLAG="-fprofile-generate"
8921 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
8922 LLVM_PROF_MERGER="true"
8923 LLVM_PROF_FILE=""
8924 ;;
8925 esac
8926 ;;
8927 *icc*)
8928 PGO_PROF_GEN_FLAG="-prof-gen"
8929 PGO_PROF_USE_FLAG="-prof-use"
8930 LLVM_PROF_MERGER="true"
8931 LLVM_PROF_FILE=""
8932 ;;
8933 esac
8934
8935 # BOLT optimization. Always configured after PGO since it always runs after PGO.
8936 Py_BOLT='false'
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5
8938 printf %s "checking for --enable-bolt... " >&6; }
8939 # Check whether --enable-bolt was given.
8940 if test ${enable_bolt+y}
8941 then :
8942 enableval=$enable_bolt;
8943 if test "$enableval" != no
8944 then
8945 Py_BOLT='true'
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8947 printf "%s\n" "yes" >&6; };
8948 else
8949 Py_BOLT='false'
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 printf "%s\n" "no" >&6; };
8952 fi
8953 else $as_nop
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 printf "%s\n" "no" >&6; }
8956 fi
8957
8958
8959
8960 if test "$Py_BOLT" = 'true' ; then
8961 PREBOLT_RULE="${DEF_MAKE_ALL_RULE}"
8962 DEF_MAKE_ALL_RULE="bolt-opt"
8963 DEF_MAKE_RULE="build_all"
8964
8965 # -fno-reorder-blocks-and-partition is required for bolt to work.
8966 # Possibly GCC only.
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5
8968 printf %s "checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; }
8969 if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else $as_nop
8973
8974 ax_check_save_flags=$CFLAGS
8975 CFLAGS="$CFLAGS -fno-reorder-blocks-and-partition"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978
8979 int
8980 main (void)
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"
8988 then :
8989 ax_cv_check_cflags___fno_reorder_blocks_and_partition=yes
8990 else $as_nop
8991 ax_cv_check_cflags___fno_reorder_blocks_and_partition=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8994 CFLAGS=$ax_check_save_flags
8995 fi
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5
8997 printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; }
8998 if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes
8999 then :
9000
9001 CFLAGS_NODIST="$CFLAGS_NODIST -fno-reorder-blocks-and-partition"
9002
9003 else $as_nop
9004 :
9005 fi
9006
9007
9008 # These flags are required for bolt to work:
9009 LDFLAGS_NODIST="$LDFLAGS_NODIST -Wl,--emit-relocs"
9010
9011 # These flags are required to get good performance from bolt:
9012 CFLAGS_NODIST="$CFLAGS_NODIST -fno-pie"
9013 # We want to add these no-pie flags to linking executables but not shared libraries:
9014 LINKCC="$LINKCC -fno-pie -no-pie"
9015
9016 if test -n "$ac_tool_prefix"; then
9017 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args.
9018 set dummy ${ac_tool_prefix}llvm-bolt; ac_word=$2
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 printf %s "checking for $ac_word... " >&6; }
9021 if test ${ac_cv_path_LLVM_BOLT+y}
9022 then :
9023 printf %s "(cached) " >&6
9024 else $as_nop
9025 case $LLVM_BOLT in
9026 [\\/]* | ?:[\\/]*)
9027 ac_cv_path_LLVM_BOLT="$LLVM_BOLT" # Let the user override the test with a path.
9028 ;;
9029 *)
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in ${llvm_path}
9032 do
9033 IFS=$as_save_IFS
9034 case $as_dir in #(((
9035 '') as_dir=./ ;;
9036 */) ;;
9037 *) as_dir=$as_dir/ ;;
9038 esac
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9041 ac_cv_path_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045 done
9046 done
9047 IFS=$as_save_IFS
9048
9049 ;;
9050 esac
9051 fi
9052 LLVM_BOLT=$ac_cv_path_LLVM_BOLT
9053 if test -n "$LLVM_BOLT"; then
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5
9055 printf "%s\n" "$LLVM_BOLT" >&6; }
9056 else
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 printf "%s\n" "no" >&6; }
9059 fi
9060
9061
9062 fi
9063 if test -z "$ac_cv_path_LLVM_BOLT"; then
9064 ac_pt_LLVM_BOLT=$LLVM_BOLT
9065 # Extract the first word of "llvm-bolt", so it can be a program name with args.
9066 set dummy llvm-bolt; ac_word=$2
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 printf %s "checking for $ac_word... " >&6; }
9069 if test ${ac_cv_path_ac_pt_LLVM_BOLT+y}
9070 then :
9071 printf %s "(cached) " >&6
9072 else $as_nop
9073 case $ac_pt_LLVM_BOLT in
9074 [\\/]* | ?:[\\/]*)
9075 ac_cv_path_ac_pt_LLVM_BOLT="$ac_pt_LLVM_BOLT" # Let the user override the test with a path.
9076 ;;
9077 *)
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in ${llvm_path}
9080 do
9081 IFS=$as_save_IFS
9082 case $as_dir in #(((
9083 '') as_dir=./ ;;
9084 */) ;;
9085 *) as_dir=$as_dir/ ;;
9086 esac
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9089 ac_cv_path_ac_pt_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093 done
9094 done
9095 IFS=$as_save_IFS
9096
9097 ;;
9098 esac
9099 fi
9100 ac_pt_LLVM_BOLT=$ac_cv_path_ac_pt_LLVM_BOLT
9101 if test -n "$ac_pt_LLVM_BOLT"; then
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5
9103 printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; }
9104 else
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 printf "%s\n" "no" >&6; }
9107 fi
9108
9109 if test "x$ac_pt_LLVM_BOLT" = x; then
9110 LLVM_BOLT="''"
9111 else
9112 case $cross_compiling:$ac_tool_warned in
9113 yes:)
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9116 ac_tool_warned=yes ;;
9117 esac
9118 LLVM_BOLT=$ac_pt_LLVM_BOLT
9119 fi
9120 else
9121 LLVM_BOLT="$ac_cv_path_LLVM_BOLT"
9122 fi
9123
9124 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}"
9125 then
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5
9127 printf "%s\n" "\"Found llvm-bolt\"" >&6; }
9128 else
9129 as_fn_error $? "llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5
9130 fi
9131
9132
9133 if test -n "$ac_tool_prefix"; then
9134 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}merge-fdata; ac_word=$2
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 printf %s "checking for $ac_word... " >&6; }
9138 if test ${ac_cv_path_MERGE_FDATA+y}
9139 then :
9140 printf %s "(cached) " >&6
9141 else $as_nop
9142 case $MERGE_FDATA in
9143 [\\/]* | ?:[\\/]*)
9144 ac_cv_path_MERGE_FDATA="$MERGE_FDATA" # Let the user override the test with a path.
9145 ;;
9146 *)
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in ${llvm_path}
9149 do
9150 IFS=$as_save_IFS
9151 case $as_dir in #(((
9152 '') as_dir=./ ;;
9153 */) ;;
9154 *) as_dir=$as_dir/ ;;
9155 esac
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9158 ac_cv_path_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 ;;
9167 esac
9168 fi
9169 MERGE_FDATA=$ac_cv_path_MERGE_FDATA
9170 if test -n "$MERGE_FDATA"; then
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5
9172 printf "%s\n" "$MERGE_FDATA" >&6; }
9173 else
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 printf "%s\n" "no" >&6; }
9176 fi
9177
9178
9179 fi
9180 if test -z "$ac_cv_path_MERGE_FDATA"; then
9181 ac_pt_MERGE_FDATA=$MERGE_FDATA
9182 # Extract the first word of "merge-fdata", so it can be a program name with args.
9183 set dummy merge-fdata; ac_word=$2
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 printf %s "checking for $ac_word... " >&6; }
9186 if test ${ac_cv_path_ac_pt_MERGE_FDATA+y}
9187 then :
9188 printf %s "(cached) " >&6
9189 else $as_nop
9190 case $ac_pt_MERGE_FDATA in
9191 [\\/]* | ?:[\\/]*)
9192 ac_cv_path_ac_pt_MERGE_FDATA="$ac_pt_MERGE_FDATA" # Let the user override the test with a path.
9193 ;;
9194 *)
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in ${llvm_path}
9197 do
9198 IFS=$as_save_IFS
9199 case $as_dir in #(((
9200 '') as_dir=./ ;;
9201 */) ;;
9202 *) as_dir=$as_dir/ ;;
9203 esac
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9206 ac_cv_path_ac_pt_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9208 break 2
9209 fi
9210 done
9211 done
9212 IFS=$as_save_IFS
9213
9214 ;;
9215 esac
9216 fi
9217 ac_pt_MERGE_FDATA=$ac_cv_path_ac_pt_MERGE_FDATA
9218 if test -n "$ac_pt_MERGE_FDATA"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5
9220 printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; }
9221 else
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9224 fi
9225
9226 if test "x$ac_pt_MERGE_FDATA" = x; then
9227 MERGE_FDATA="''"
9228 else
9229 case $cross_compiling:$ac_tool_warned in
9230 yes:)
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233 ac_tool_warned=yes ;;
9234 esac
9235 MERGE_FDATA=$ac_pt_MERGE_FDATA
9236 fi
9237 else
9238 MERGE_FDATA="$ac_cv_path_MERGE_FDATA"
9239 fi
9240
9241 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}"
9242 then
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5
9244 printf "%s\n" "\"Found merge-fdata\"" >&6; }
9245 else
9246 as_fn_error $? "merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5
9247 fi
9248 fi
9249
9250
9251 BOLT_BINARIES='$(BUILDPYTHON)'
9252 if test "x$enable_shared" = xyes
9253 then :
9254
9255 BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
9256
9257 fi
9258
9259
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5
9261 printf %s "checking BOLT_INSTRUMENT_FLAGS... " >&6; }
9262 if test -z "${BOLT_INSTRUMENT_FLAGS}"
9263 then
9264 BOLT_INSTRUMENT_FLAGS=
9265 fi
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5
9267 printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; }
9268
9269
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5
9271 printf %s "checking BOLT_APPLY_FLAGS... " >&6; }
9272 if test -z "${BOLT_APPLY_FLAGS}"
9273 then
9274 BOLT_APPLY_FLAGS=" -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot "
9275
9276 fi
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5
9278 printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; }
9279
9280 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
9281 # merged with this chunk of code?
9282
9283 # Optimizer/debugger flags
9284 # ------------------------
9285 # (The following bit of code is complicated enough - please keep things
9286 # indented properly. Just pretend you're editing Python code. ;-)
9287
9288 # There are two parallel sets of case statements below, one that checks to
9289 # see if OPT was set and one that does BASECFLAGS setting based upon
9290 # compiler and platform. BASECFLAGS tweaks need to be made even if the
9291 # user set OPT.
9292
9293 case $CC in
9294 *clang*)
9295 cc_is_clang=1
9296 ;;
9297 *)
9298 if $CC --version 2>&1 | grep -q clang
9299 then
9300 cc_is_clang=1
9301 else
9302 cc_is_clang=
9303 fi
9304 esac
9305
9306 save_CFLAGS=$CFLAGS
9307 CFLAGS="-fstrict-overflow -fno-strict-overflow"
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5
9309 printf %s "checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; }
9310 if test ${ac_cv_cc_supports_fstrict_overflow+y}
9311 then :
9312 printf %s "(cached) " >&6
9313 else $as_nop
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9316
9317 int
9318 main (void)
9319 {
9320
9321 ;
9322 return 0;
9323 }
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"
9326 then :
9327 ac_cv_cc_supports_fstrict_overflow=yes
9328 else $as_nop
9329 ac_cv_cc_supports_fstrict_overflow=no
9330
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9333
9334 fi
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5
9336 printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; }
9337 CFLAGS=$save_CFLAGS
9338
9339 if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
9340 then :
9341 STRICT_OVERFLOW_CFLAGS="-fstrict-overflow"
9342 NO_STRICT_OVERFLOW_CFLAGS="-fno-strict-overflow"
9343 else $as_nop
9344 STRICT_OVERFLOW_CFLAGS=""
9345 NO_STRICT_OVERFLOW_CFLAGS=""
9346 fi
9347
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5
9349 printf %s "checking for --with-strict-overflow... " >&6; }
9350
9351 # Check whether --with-strict-overflow was given.
9352 if test ${with_strict_overflow+y}
9353 then :
9354 withval=$with_strict_overflow;
9355 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno
9356 then :
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5
9358 printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;}
9359 fi
9360
9361 else $as_nop
9362 with_strict_overflow=no
9363
9364 fi
9365
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5
9367 printf "%s\n" "$with_strict_overflow" >&6; }
9368
9369 # Check if CC supports -Og optimization level
9370 save_CFLAGS=$CFLAGS
9371 CFLAGS="-Og"
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5
9373 printf %s "checking if $CC supports -Og optimization level... " >&6; }
9374 if test ${ac_cv_cc_supports_og+y}
9375 then :
9376 printf %s "(cached) " >&6
9377 else $as_nop
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380
9381
9382 int
9383 main (void)
9384 {
9385
9386 ;
9387 return 0;
9388 }
9389
9390 _ACEOF
9391 if ac_fn_c_try_compile "$LINENO"
9392 then :
9393
9394 ac_cv_cc_supports_og=yes
9395
9396 else $as_nop
9397
9398 ac_cv_cc_supports_og=no
9399
9400 fi
9401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9402
9403 fi
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5
9405 printf "%s\n" "$ac_cv_cc_supports_og" >&6; }
9406 CFLAGS=$save_CFLAGS
9407
9408 # Optimization messes up debuggers, so turn it off for
9409 # debug builds.
9410 PYDEBUG_CFLAGS="-O0"
9411 if test "x$ac_cv_cc_supports_og" = xyes
9412 then :
9413 PYDEBUG_CFLAGS="-Og"
9414 fi
9415
9416 # tweak OPT based on compiler and platform, only if the user didn't set
9417 # it on the command line
9418
9419
9420 if test "${OPT-unset}" = "unset"
9421 then
9422 case $GCC in
9423 yes)
9424 if test -n "${cc_is_clang}"
9425 then
9426 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
9427 # see Makefile.pre.in for more information
9428 CFLAGS_ALIASING="-fno-strict-aliasing"
9429 fi
9430
9431 case $ac_cv_prog_cc_g in
9432 yes)
9433 if test "$Py_DEBUG" = 'true' ; then
9434 OPT="-g $PYDEBUG_CFLAGS -Wall"
9435 else
9436 OPT="-g -O3 -Wall"
9437 fi
9438 ;;
9439 *)
9440 OPT="-O3 -Wall"
9441 ;;
9442 esac
9443
9444 case $ac_sys_system in
9445 SCO_SV*) OPT="$OPT -m486 -DSCO5"
9446 ;;
9447 esac
9448 ;;
9449
9450 *)
9451 OPT="-O"
9452 ;;
9453 esac
9454 fi
9455
9456 # WASM flags
9457 case $ac_sys_system in #(
9458 Emscripten) :
9459
9460 if test "x$Py_DEBUG" = xyes
9461 then :
9462 wasm_debug=yes
9463 else $as_nop
9464 wasm_debug=no
9465 fi
9466
9467 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"
9468
9469 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT"
9470
9471 as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
9472
9473 if test "x$enable_wasm_dynamic_linking" = xyes
9474 then :
9475
9476 as_fn_append LINKFORSHARED " -sMAIN_MODULE"
9477
9478 fi
9479
9480 if test "x$enable_wasm_pthreads" = xyes
9481 then :
9482
9483 as_fn_append CFLAGS_NODIST " -pthread"
9484 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS"
9485 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD"
9486
9487 fi
9488
9489 case $ac_sys_emscripten_target in #(
9490 browser*) :
9491
9492 if test "x$ac_sys_emscripten_target" = xbrowser-debug
9493 then :
9494 wasm_debug=yes
9495 fi
9496 as_fn_append LINKFORSHARED " --preload-file=\$(WASM_ASSETS_DIR)"
9497 WASM_ASSETS_DIR=".\$(prefix)"
9498 WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py"
9499 WASM_LINKFORSHARED_DEBUG="-gsource-map --emit-symbol-map"
9500 ;; #(
9501 node*) :
9502
9503 if test "x$ac_sys_emscripten_target" = xnode-debug
9504 then :
9505 wasm_debug=yes
9506 fi
9507 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sNODERAWFS"
9508 as_fn_append LINKFORSHARED " -sEXIT_RUNTIME"
9509 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map"
9510
9511 ;; #(
9512 *) :
9513 ;;
9514 esac
9515
9516 if test "x$wasm_debug" = xyes
9517 then :
9518
9519 as_fn_append LDFLAGS_NODIST " -sASSERTIONS"
9520 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG"
9521
9522 else $as_nop
9523
9524 as_fn_append LINKFORSHARED " -O2 -g0"
9525
9526 fi
9527 ;; #(
9528 WASI) :
9529
9530
9531 printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
9532
9533
9534 printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h
9535
9536
9537 printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
9538
9539 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
9540 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
9541
9542 if test "x$enable_wasm_pthreads" = xyes
9543 then :
9544
9545 # Note: update CFLAGS because ac_compile/ac_link needs this too.
9546 # without this, configure fails to find pthread_create, sem_init,
9547 # etc because they are only available in the sysroot for
9548 # wasm32-wasi-threads.
9549 # Note: wasi-threads requires --import-memory.
9550 # Note: wasi requires --export-memory.
9551 # Note: --export-memory is implicit unless --import-memory is given
9552 # Note: this requires LLVM >= 16.
9553 as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
9554 as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9555 as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9556 as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
9557 as_fn_append LDFLAGS_NODIST " -Wl,--export-memory"
9558 as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760"
9559
9560 fi
9561
9562 as_fn_append LDFLAGS_NODIST " -z stack-size=8388608 -Wl,--stack-first -Wl,--initial-memory=20971520"
9563
9564 ;; #(
9565 *) :
9566 ;;
9567 esac
9568
9569 case $enable_wasm_dynamic_linking in #(
9570 yes) :
9571 ac_cv_func_dlopen=yes ;; #(
9572 no) :
9573 ac_cv_func_dlopen=no ;; #(
9574 missing) :
9575
9576 ;; #(
9577 *) :
9578 ;;
9579 esac
9580
9581
9582
9583
9584
9585
9586
9587
9588 # The -arch flags for universal builds on macOS
9589 UNIVERSAL_ARCH_FLAGS=
9590
9591
9592
9593
9594 # tweak BASECFLAGS based on compiler and platform
9595 if test "x$with_strict_overflow" = xyes
9596 then :
9597 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9598 else $as_nop
9599 BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS"
9600 fi
9601
9602 case $GCC in
9603 yes)
9604 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
9605
9606
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
9609 printf %s "checking if we can add -Wextra... " >&6; }
9610 if test ${ac_cv_enable_extra_warning+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else $as_nop
9614
9615 py_cflags=$CFLAGS
9616 as_fn_append CFLAGS "-Wextra -Werror"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619
9620 int
9621 main (void)
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"
9629 then :
9630 ac_cv_enable_extra_warning=yes
9631 else $as_nop
9632 ac_cv_enable_extra_warning=no
9633 fi
9634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9635 CFLAGS=$py_cflags
9636
9637 fi
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
9639 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
9640
9641
9642 if test "x$ac_cv_enable_extra_warning" = xyes
9643 then :
9644 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
9645 fi
9646
9647 # Python doesn't violate C99 aliasing rules, but older versions of
9648 # GCC produce warnings for legal Python code. Enable
9649 # -fno-strict-aliasing on versions of GCC that support but produce
9650 # warnings. See Issue3326
9651 ac_save_cc="$CC"
9652 CC="$CC -fno-strict-aliasing"
9653 save_CFLAGS="$CFLAGS"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
9655 printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
9656 if test ${ac_cv_no_strict_aliasing+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else $as_nop
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662
9663
9664 int
9665 main (void)
9666 {
9667
9668 ;
9669 return 0;
9670 }
9671
9672 _ACEOF
9673 if ac_fn_c_try_compile "$LINENO"
9674 then :
9675
9676 CC="$ac_save_cc -fstrict-aliasing"
9677 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680
9681 void f(int **x) {}
9682 int
9683 main (void)
9684 {
9685 double *x; f((int **) &x);
9686 ;
9687 return 0;
9688 }
9689
9690 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"
9692 then :
9693
9694 ac_cv_no_strict_aliasing=no
9695
9696 else $as_nop
9697
9698 ac_cv_no_strict_aliasing=yes
9699
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9702
9703 else $as_nop
9704
9705 ac_cv_no_strict_aliasing=no
9706
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9709 fi
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
9711 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
9712 CFLAGS="$save_CFLAGS"
9713 CC="$ac_save_cc"
9714 if test "x$ac_cv_no_strict_aliasing" = xyes
9715 then :
9716 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
9717 fi
9718
9719 # ICC doesn't recognize the option, but only emits a warning
9720 ## XXX does it emit an unused result warning and can it be disabled?
9721 case "$CC_BASENAME" in #(
9722 *icc*) :
9723 ac_cv_disable_unused_result_warning=no
9724
9725
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
9727 printf %s "checking if we can disable $CC unused-result warning... " >&6; }
9728 if test ${ac_cv_disable_unused_result_warning+y}
9729 then :
9730 printf %s "(cached) " >&6
9731 else $as_nop
9732
9733 py_cflags=$CFLAGS
9734 as_fn_append CFLAGS "-Wunused-result -Werror"
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737
9738 int
9739 main (void)
9740 {
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_compile "$LINENO"
9747 then :
9748 ac_cv_disable_unused_result_warning=yes
9749 else $as_nop
9750 ac_cv_disable_unused_result_warning=no
9751 fi
9752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9753 CFLAGS=$py_cflags
9754
9755 fi
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
9757 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
9758
9759 ;; #(
9760 *) :
9761 ;;
9762 esac
9763 if test "x$ac_cv_disable_unused_result_warning" = xyes
9764 then :
9765 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
9766 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
9767 fi
9768
9769
9770
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
9772 printf %s "checking if we can disable $CC unused-parameter warning... " >&6; }
9773 if test ${ac_cv_disable_unused_parameter_warning+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else $as_nop
9777
9778 py_cflags=$CFLAGS
9779 as_fn_append CFLAGS "-Wunused-parameter -Werror"
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782
9783 int
9784 main (void)
9785 {
9786
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_compile "$LINENO"
9792 then :
9793 ac_cv_disable_unused_parameter_warning=yes
9794 else $as_nop
9795 ac_cv_disable_unused_parameter_warning=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9798 CFLAGS=$py_cflags
9799
9800 fi
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
9802 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
9803
9804
9805 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
9806 then :
9807 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
9808 fi
9809
9810
9811
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
9813 printf %s "checking if we can disable $CC int-conversion warning... " >&6; }
9814 if test ${ac_cv_disable_int_conversion_warning+y}
9815 then :
9816 printf %s "(cached) " >&6
9817 else $as_nop
9818
9819 py_cflags=$CFLAGS
9820 as_fn_append CFLAGS "-Wint-conversion -Werror"
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823
9824 int
9825 main (void)
9826 {
9827
9828 ;
9829 return 0;
9830 }
9831 _ACEOF
9832 if ac_fn_c_try_compile "$LINENO"
9833 then :
9834 ac_cv_disable_int_conversion_warning=yes
9835 else $as_nop
9836 ac_cv_disable_int_conversion_warning=no
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9839 CFLAGS=$py_cflags
9840
9841 fi
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
9843 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
9844
9845
9846 if test "x$ac_cv_disable_int_conversion" = xyes
9847 then :
9848 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
9849 fi
9850
9851
9852
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
9854 printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; }
9855 if test ${ac_cv_disable_missing_field_initializers_warning+y}
9856 then :
9857 printf %s "(cached) " >&6
9858 else $as_nop
9859
9860 py_cflags=$CFLAGS
9861 as_fn_append CFLAGS "-Wmissing-field-initializers -Werror"
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864
9865 int
9866 main (void)
9867 {
9868
9869 ;
9870 return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"
9874 then :
9875 ac_cv_disable_missing_field_initializers_warning=yes
9876 else $as_nop
9877 ac_cv_disable_missing_field_initializers_warning=no
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9880 CFLAGS=$py_cflags
9881
9882 fi
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
9884 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
9885
9886
9887 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
9888 then :
9889 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
9890 fi
9891
9892
9893
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
9895 printf %s "checking if we can enable $CC sign-compare warning... " >&6; }
9896 if test ${ac_cv_enable_sign_compare_warning+y}
9897 then :
9898 printf %s "(cached) " >&6
9899 else $as_nop
9900
9901 py_cflags=$CFLAGS
9902 as_fn_append CFLAGS "-Wsign-compare -Werror"
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905
9906 int
9907 main (void)
9908 {
9909
9910 ;
9911 return 0;
9912 }
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"
9915 then :
9916 ac_cv_enable_sign_compare_warning=yes
9917 else $as_nop
9918 ac_cv_enable_sign_compare_warning=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9921 CFLAGS=$py_cflags
9922
9923 fi
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
9925 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
9926
9927
9928 if test "x$ac_cv_enable_sign_compare_warning" = xyes
9929 then :
9930 BASECFLAGS="$BASECFLAGS -Wsign-compare"
9931 fi
9932
9933
9934
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
9936 printf %s "checking if we can enable $CC unreachable-code warning... " >&6; }
9937 if test ${ac_cv_enable_unreachable_code_warning+y}
9938 then :
9939 printf %s "(cached) " >&6
9940 else $as_nop
9941
9942 py_cflags=$CFLAGS
9943 as_fn_append CFLAGS "-Wunreachable-code -Werror"
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946
9947 int
9948 main (void)
9949 {
9950
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_compile "$LINENO"
9956 then :
9957 ac_cv_enable_unreachable_code_warning=yes
9958 else $as_nop
9959 ac_cv_enable_unreachable_code_warning=no
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9962 CFLAGS=$py_cflags
9963
9964 fi
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
9966 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
9967
9968
9969 # Don't enable unreachable code warning in debug mode, since it usually
9970 # results in non-standard code paths.
9971 # Issue #24324: Unfortunately, the unreachable code warning does not work
9972 # correctly on gcc and has been silently removed from the compiler.
9973 # It is supported on clang but on OS X systems gcc may be an alias
9974 # for clang. Try to determine if the compiler is not really gcc and,
9975 # if so, only then enable the warning.
9976 if test $ac_cv_enable_unreachable_code_warning = yes && \
9977 test "$Py_DEBUG" != "true" && \
9978 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
9979 then
9980 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
9981 else
9982 ac_cv_enable_unreachable_code_warning=no
9983 fi
9984
9985
9986
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
9988 printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; }
9989 if test ${ac_cv_enable_strict_prototypes_warning+y}
9990 then :
9991 printf %s "(cached) " >&6
9992 else $as_nop
9993
9994 py_cflags=$CFLAGS
9995 as_fn_append CFLAGS "-Wstrict-prototypes -Werror"
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998
9999 int
10000 main (void)
10001 {
10002
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"
10008 then :
10009 ac_cv_enable_strict_prototypes_warning=yes
10010 else $as_nop
10011 ac_cv_enable_strict_prototypes_warning=no
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10014 CFLAGS=$py_cflags
10015
10016 fi
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10018 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10019
10020
10021 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10022 then :
10023 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
10024 fi
10025
10026 ac_save_cc="$CC"
10027 CC="$CC -Werror=implicit-function-declaration"
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10029 printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; }
10030 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10031 then :
10032 printf %s "(cached) " >&6
10033 else $as_nop
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10036
10037
10038 int
10039 main (void)
10040 {
10041
10042 ;
10043 return 0;
10044 }
10045
10046 _ACEOF
10047 if ac_fn_c_try_compile "$LINENO"
10048 then :
10049
10050 ac_cv_enable_implicit_function_declaration_error=yes
10051
10052 else $as_nop
10053
10054 ac_cv_enable_implicit_function_declaration_error=no
10055
10056 fi
10057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10058 fi
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10060 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10061 CC="$ac_save_cc"
10062
10063 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10064 then :
10065 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10066 fi
10067
10068 ac_save_cc="$CC"
10069 CC="$CC -fvisibility=hidden"
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10071 printf %s "checking if we can use visibility in $CC... " >&6; }
10072 if test ${ac_cv_enable_visibility+y}
10073 then :
10074 printf %s "(cached) " >&6
10075 else $as_nop
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078
10079
10080 int
10081 main (void)
10082 {
10083
10084 ;
10085 return 0;
10086 }
10087
10088 _ACEOF
10089 if ac_fn_c_try_compile "$LINENO"
10090 then :
10091
10092 ac_cv_enable_visibility=yes
10093
10094 else $as_nop
10095
10096 ac_cv_enable_visibility=no
10097
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10100 fi
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10102 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10103 CC="$ac_save_cc"
10104
10105 if test "x$ac_cv_enable_visibility" = xyes
10106 then :
10107 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
10108 fi
10109
10110 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10111 # support. Without this, treatment of subnormals doesn't follow
10112 # the standard.
10113 case $host in
10114 alpha*)
10115 BASECFLAGS="$BASECFLAGS -mieee"
10116 ;;
10117 esac
10118
10119 case $ac_sys_system in
10120 SCO_SV*)
10121 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
10122 ;;
10123
10124 Darwin*)
10125 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10126 # used to be here, but non-Apple gcc doesn't accept them.
10127 if test "${CC}" = gcc
10128 then
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10130 printf %s "checking which compiler should be used... " >&6; }
10131 case "${UNIVERSALSDK}" in
10132 */MacOSX10.4u.sdk)
10133 # Build using 10.4 SDK, force usage of gcc when the
10134 # compiler is gcc, otherwise the user will get very
10135 # confusing error messages when building on OSX 10.6
10136 CC=gcc-4.0
10137 CPP=cpp-4.0
10138 ;;
10139 esac
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10141 printf "%s\n" "$CC" >&6; }
10142 fi
10143
10144 LIPO_INTEL64_FLAGS=""
10145 if test "${enable_universalsdk}"
10146 then
10147 case "$UNIVERSAL_ARCHS" in
10148 32-bit)
10149 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
10150 LIPO_32BIT_FLAGS=""
10151 ARCH_RUN_32BIT=""
10152 ;;
10153 64-bit)
10154 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
10155 LIPO_32BIT_FLAGS=""
10156 ARCH_RUN_32BIT="true"
10157 ;;
10158 all)
10159 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10160 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10161 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10162 ;;
10163 universal2)
10164 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
10165 LIPO_32BIT_FLAGS=""
10166 LIPO_INTEL64_FLAGS="-extract x86_64"
10167 ARCH_RUN_32BIT="true"
10168 ;;
10169 intel)
10170 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
10171 LIPO_32BIT_FLAGS="-extract i386"
10172 ARCH_RUN_32BIT="/usr/bin/arch -i386"
10173 ;;
10174 intel-32)
10175 UNIVERSAL_ARCH_FLAGS="-arch i386"
10176 LIPO_32BIT_FLAGS=""
10177 ARCH_RUN_32BIT=""
10178 ;;
10179 intel-64)
10180 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
10181 LIPO_32BIT_FLAGS=""
10182 ARCH_RUN_32BIT="true"
10183 ;;
10184 3-way)
10185 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
10186 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10187 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10188 ;;
10189 *)
10190 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10191 ;;
10192 esac
10193
10194 if test "${UNIVERSALSDK}" != "/"
10195 then
10196 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10197 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10198 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10199 else
10200 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10201 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10202 fi
10203 fi
10204
10205 # Calculate an appropriate deployment target for this build:
10206 # The deployment target value is used explicitly to enable certain
10207 # features are enabled (such as builtin libedit support for readline)
10208 # through the use of Apple's Availability Macros and is used as a
10209 # component of the string returned by distutils.get_platform().
10210 #
10211 # Use the value from:
10212 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10213 # 2. the operating system version of the build machine if >= 10.6
10214 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10215 # below to pick either 10.3, 10.4, or 10.5 as the target.
10216 # 4. If we are running on OS X 10.2 or earlier, good luck!
10217
10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10219 printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10220 cur_target_major=`sw_vers -productVersion | \
10221 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10222 cur_target_minor=`sw_vers -productVersion | \
10223 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10224 cur_target="${cur_target_major}.${cur_target_minor}"
10225 if test ${cur_target_major} -eq 10 && \
10226 test ${cur_target_minor} -ge 3 && \
10227 test ${cur_target_minor} -le 5
10228 then
10229 # OS X 10.3 through 10.5
10230 cur_target=10.3
10231 if test ${enable_universalsdk}
10232 then
10233 case "$UNIVERSAL_ARCHS" in
10234 all|3-way|intel|64-bit)
10235 # These configurations were first supported in 10.5
10236 cur_target='10.5'
10237 ;;
10238 esac
10239 else
10240 if test `/usr/bin/arch` = "i386"
10241 then
10242 # 10.4 was the first release to support Intel archs
10243 cur_target="10.4"
10244 fi
10245 fi
10246 fi
10247 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10248
10249 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10250 # environment with a value that is the same as what we'll use
10251 # in the Makefile to ensure that we'll get the same compiler
10252 # environment during configure and build time.
10253 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10254 export MACOSX_DEPLOYMENT_TARGET
10255 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10257 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10258
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10260 printf %s "checking if specified universal architectures work... " >&6; }
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 #include <stdio.h>
10264 int
10265 main (void)
10266 {
10267 printf("%d", 42);
10268 ;
10269 return 0;
10270 }
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"
10273 then :
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10275 printf "%s\n" "yes" >&6; }
10276 else $as_nop
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 printf "%s\n" "no" >&6; }
10279 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10280
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10283 conftest$ac_exeext conftest.$ac_ext
10284
10285 # end of Darwin* tests
10286 ;;
10287 esac
10288 ;;
10289
10290 *)
10291 case $ac_sys_system in
10292 OpenUNIX*|UnixWare*)
10293 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10294 ;;
10295 SCO_SV*)
10296 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
10297 ;;
10298 esac
10299 ;;
10300 esac
10301
10302 case "$CC_BASENAME" in
10303 *mpicc*)
10304 CFLAGS_NODIST="$CFLAGS_NODIST"
10305 ;;
10306 *icc*)
10307 # ICC needs -fp-model strict or floats behave badly
10308 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
10309 ;;
10310 *xlc*)
10311 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
10312 ;;
10313 esac
10314
10315 if test "$assertions" = 'true'; then
10316 :
10317 else
10318 OPT="-DNDEBUG $OPT"
10319 fi
10320
10321 if test "$ac_arch_flags"
10322 then
10323 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
10324 fi
10325
10326 # On some compilers, pthreads are available without further options
10327 # (e.g. MacOS X). On some of these systems, the compiler will not
10328 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
10329 # So we have to see first whether pthreads are available without
10330 # options before we can check whether -Kpthread improves anything.
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
10332 printf %s "checking whether pthreads are available without options... " >&6; }
10333 if test ${ac_cv_pthread_is_default+y}
10334 then :
10335 printf %s "(cached) " >&6
10336 else $as_nop
10337 if test "$cross_compiling" = yes
10338 then :
10339 ac_cv_pthread_is_default=no
10340 else $as_nop
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343
10344 #include <stdio.h>
10345 #include <pthread.h>
10346
10347 void* routine(void* p){return NULL;}
10348
10349 int main(void){
10350 pthread_t p;
10351 if(pthread_create(&p,NULL,routine,NULL)!=0)
10352 return 1;
10353 (void)pthread_detach(p);
10354 return 0;
10355 }
10356
10357 _ACEOF
10358 if ac_fn_c_try_run "$LINENO"
10359 then :
10360
10361 ac_cv_pthread_is_default=yes
10362 ac_cv_kthread=no
10363 ac_cv_pthread=no
10364
10365 else $as_nop
10366 ac_cv_pthread_is_default=no
10367 fi
10368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10369 conftest.$ac_objext conftest.beam conftest.$ac_ext
10370 fi
10371
10372
10373 fi
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
10375 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
10376
10377
10378 if test $ac_cv_pthread_is_default = yes
10379 then
10380 ac_cv_kpthread=no
10381 else
10382 # -Kpthread, if available, provides the right #defines
10383 # and linker options to make pthread_create available
10384 # Some compilers won't report that they do not support -Kpthread,
10385 # so we need to run a program to see whether it really made the
10386 # function available.
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
10388 printf %s "checking whether $CC accepts -Kpthread... " >&6; }
10389 if test ${ac_cv_kpthread+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 ac_save_cc="$CC"
10394 CC="$CC -Kpthread"
10395 if test "$cross_compiling" = yes
10396 then :
10397 ac_cv_kpthread=no
10398 else $as_nop
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401
10402 #include <stdio.h>
10403 #include <pthread.h>
10404
10405 void* routine(void* p){return NULL;}
10406
10407 int main(void){
10408 pthread_t p;
10409 if(pthread_create(&p,NULL,routine,NULL)!=0)
10410 return 1;
10411 (void)pthread_detach(p);
10412 return 0;
10413 }
10414
10415 _ACEOF
10416 if ac_fn_c_try_run "$LINENO"
10417 then :
10418 ac_cv_kpthread=yes
10419 else $as_nop
10420 ac_cv_kpthread=no
10421 fi
10422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10423 conftest.$ac_objext conftest.beam conftest.$ac_ext
10424 fi
10425
10426 CC="$ac_save_cc"
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
10429 printf "%s\n" "$ac_cv_kpthread" >&6; }
10430 fi
10431
10432 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
10433 then
10434 # -Kthread, if available, provides the right #defines
10435 # and linker options to make pthread_create available
10436 # Some compilers won't report that they do not support -Kthread,
10437 # so we need to run a program to see whether it really made the
10438 # function available.
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
10440 printf %s "checking whether $CC accepts -Kthread... " >&6; }
10441 if test ${ac_cv_kthread+y}
10442 then :
10443 printf %s "(cached) " >&6
10444 else $as_nop
10445 ac_save_cc="$CC"
10446 CC="$CC -Kthread"
10447 if test "$cross_compiling" = yes
10448 then :
10449 ac_cv_kthread=no
10450 else $as_nop
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453
10454 #include <stdio.h>
10455 #include <pthread.h>
10456
10457 void* routine(void* p){return NULL;}
10458
10459 int main(void){
10460 pthread_t p;
10461 if(pthread_create(&p,NULL,routine,NULL)!=0)
10462 return 1;
10463 (void)pthread_detach(p);
10464 return 0;
10465 }
10466
10467 _ACEOF
10468 if ac_fn_c_try_run "$LINENO"
10469 then :
10470 ac_cv_kthread=yes
10471 else $as_nop
10472 ac_cv_kthread=no
10473 fi
10474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10475 conftest.$ac_objext conftest.beam conftest.$ac_ext
10476 fi
10477
10478 CC="$ac_save_cc"
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
10481 printf "%s\n" "$ac_cv_kthread" >&6; }
10482 fi
10483
10484 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
10485 then
10486 # -pthread, if available, provides the right #defines
10487 # and linker options to make pthread_create available
10488 # Some compilers won't report that they do not support -pthread,
10489 # so we need to run a program to see whether it really made the
10490 # function available.
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
10492 printf %s "checking whether $CC accepts -pthread... " >&6; }
10493 if test ${ac_cv_pthread+y}
10494 then :
10495 printf %s "(cached) " >&6
10496 else $as_nop
10497 ac_save_cc="$CC"
10498 CC="$CC -pthread"
10499 if test "$cross_compiling" = yes
10500 then :
10501 ac_cv_pthread=no
10502 else $as_nop
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505
10506 #include <stdio.h>
10507 #include <pthread.h>
10508
10509 void* routine(void* p){return NULL;}
10510
10511 int main(void){
10512 pthread_t p;
10513 if(pthread_create(&p,NULL,routine,NULL)!=0)
10514 return 1;
10515 (void)pthread_detach(p);
10516 return 0;
10517 }
10518
10519 _ACEOF
10520 if ac_fn_c_try_run "$LINENO"
10521 then :
10522 ac_cv_pthread=yes
10523 else $as_nop
10524 ac_cv_pthread=no
10525 fi
10526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10527 conftest.$ac_objext conftest.beam conftest.$ac_ext
10528 fi
10529
10530 CC="$ac_save_cc"
10531 fi
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
10533 printf "%s\n" "$ac_cv_pthread" >&6; }
10534 fi
10535
10536 # If we have set a CC compiler flag for thread support then
10537 # check if it works for CXX, too.
10538 if test ! -z "$CXX"
10539 then
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
10541 printf %s "checking whether $CXX also accepts flags for thread support... " >&6; }
10542 if test ${ac_cv_cxx_thread+y}
10543 then :
10544 printf %s "(cached) " >&6
10545 else $as_nop
10546 ac_save_cxx="$CXX"
10547
10548 if test "$ac_cv_kpthread" = "yes"
10549 then
10550 CXX="$CXX -Kpthread"
10551 ac_cv_cxx_thread=yes
10552 elif test "$ac_cv_kthread" = "yes"
10553 then
10554 CXX="$CXX -Kthread"
10555 ac_cv_cxx_thread=yes
10556 elif test "$ac_cv_pthread" = "yes"
10557 then
10558 CXX="$CXX -pthread"
10559 ac_cv_cxx_thread=yes
10560 else
10561 ac_cv_cxx_thread=no
10562 fi
10563
10564 if test $ac_cv_cxx_thread = yes
10565 then
10566 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
10567 $CXX -c conftest.$ac_ext 2>&5
10568 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
10569 && test -s conftest$ac_exeext && ./conftest$ac_exeext
10570 then
10571 ac_cv_cxx_thread=yes
10572 else
10573 ac_cv_cxx_thread=no
10574 fi
10575 rm -fr conftest*
10576 fi
10577 CXX="$ac_save_cxx"
10578 fi
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
10580 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
10581 else
10582 ac_cv_cxx_thread=no
10583 fi
10584
10585
10586
10587 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10588
10589
10590 # checks for header files
10591 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
10592 if test "x$ac_cv_header_alloca_h" = xyes
10593 then :
10594 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
10595
10596 fi
10597 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
10598 if test "x$ac_cv_header_asm_types_h" = xyes
10599 then :
10600 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
10601
10602 fi
10603 ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
10604 if test "x$ac_cv_header_bluetooth_h" = xyes
10605 then :
10606 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
10607
10608 fi
10609 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
10610 if test "x$ac_cv_header_conio_h" = xyes
10611 then :
10612 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
10613
10614 fi
10615 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
10616 if test "x$ac_cv_header_direct_h" = xyes
10617 then :
10618 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
10619
10620 fi
10621 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10622 if test "x$ac_cv_header_dlfcn_h" = xyes
10623 then :
10624 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10625
10626 fi
10627 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
10628 if test "x$ac_cv_header_endian_h" = xyes
10629 then :
10630 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
10631
10632 fi
10633 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
10634 if test "x$ac_cv_header_errno_h" = xyes
10635 then :
10636 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
10637
10638 fi
10639 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
10640 if test "x$ac_cv_header_fcntl_h" = xyes
10641 then :
10642 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
10643
10644 fi
10645 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
10646 if test "x$ac_cv_header_grp_h" = xyes
10647 then :
10648 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
10649
10650 fi
10651 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
10652 if test "x$ac_cv_header_io_h" = xyes
10653 then :
10654 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
10655
10656 fi
10657 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10658 if test "x$ac_cv_header_langinfo_h" = xyes
10659 then :
10660 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
10661
10662 fi
10663 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10664 if test "x$ac_cv_header_libintl_h" = xyes
10665 then :
10666 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
10667
10668 fi
10669 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
10670 if test "x$ac_cv_header_libutil_h" = xyes
10671 then :
10672 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
10673
10674 fi
10675 ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
10676 if test "x$ac_cv_header_linux_auxvec_h" = xyes
10677 then :
10678 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
10679
10680 fi
10681 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
10682 if test "x$ac_cv_header_sys_auxv_h" = xyes
10683 then :
10684 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
10685
10686 fi
10687 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
10688 if test "x$ac_cv_header_linux_fs_h" = xyes
10689 then :
10690 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
10691
10692 fi
10693 ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
10694 if test "x$ac_cv_header_linux_limits_h" = xyes
10695 then :
10696 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
10697
10698 fi
10699 ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
10700 if test "x$ac_cv_header_linux_memfd_h" = xyes
10701 then :
10702 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
10703
10704 fi
10705 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
10706 if test "x$ac_cv_header_linux_random_h" = xyes
10707 then :
10708 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
10709
10710 fi
10711 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
10712 if test "x$ac_cv_header_linux_soundcard_h" = xyes
10713 then :
10714 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
10715
10716 fi
10717 ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
10718 if test "x$ac_cv_header_linux_tipc_h" = xyes
10719 then :
10720 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
10721
10722 fi
10723 ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
10724 if test "x$ac_cv_header_linux_wait_h" = xyes
10725 then :
10726 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
10727
10728 fi
10729 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
10730 if test "x$ac_cv_header_netdb_h" = xyes
10731 then :
10732 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
10733
10734 fi
10735 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
10736 if test "x$ac_cv_header_net_ethernet_h" = xyes
10737 then :
10738 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
10739
10740 fi
10741 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10742 if test "x$ac_cv_header_netinet_in_h" = xyes
10743 then :
10744 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
10745
10746 fi
10747 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
10748 if test "x$ac_cv_header_netpacket_packet_h" = xyes
10749 then :
10750 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
10751
10752 fi
10753 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10754 if test "x$ac_cv_header_poll_h" = xyes
10755 then :
10756 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
10757
10758 fi
10759 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
10760 if test "x$ac_cv_header_process_h" = xyes
10761 then :
10762 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
10763
10764 fi
10765 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10766 if test "x$ac_cv_header_pthread_h" = xyes
10767 then :
10768 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
10769
10770 fi
10771 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
10772 if test "x$ac_cv_header_pty_h" = xyes
10773 then :
10774 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
10775
10776 fi
10777 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_sched_h" = xyes
10779 then :
10780 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
10781
10782 fi
10783 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
10784 if test "x$ac_cv_header_setjmp_h" = xyes
10785 then :
10786 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
10787
10788 fi
10789 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
10790 if test "x$ac_cv_header_shadow_h" = xyes
10791 then :
10792 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
10793
10794 fi
10795 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
10796 if test "x$ac_cv_header_signal_h" = xyes
10797 then :
10798 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
10799
10800 fi
10801 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
10802 if test "x$ac_cv_header_spawn_h" = xyes
10803 then :
10804 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
10805
10806 fi
10807 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
10808 if test "x$ac_cv_header_stropts_h" = xyes
10809 then :
10810 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
10811
10812 fi
10813 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
10814 if test "x$ac_cv_header_sys_audioio_h" = xyes
10815 then :
10816 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
10817
10818 fi
10819 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
10820 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
10821 then :
10822 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
10823
10824 fi
10825 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
10826 if test "x$ac_cv_header_sys_devpoll_h" = xyes
10827 then :
10828 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
10829
10830 fi
10831 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
10832 if test "x$ac_cv_header_sys_endian_h" = xyes
10833 then :
10834 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
10835
10836 fi
10837 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
10838 if test "x$ac_cv_header_sys_epoll_h" = xyes
10839 then :
10840 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
10841
10842 fi
10843 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
10844 if test "x$ac_cv_header_sys_event_h" = xyes
10845 then :
10846 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
10847
10848 fi
10849 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
10850 if test "x$ac_cv_header_sys_eventfd_h" = xyes
10851 then :
10852 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
10853
10854 fi
10855 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
10856 if test "x$ac_cv_header_sys_file_h" = xyes
10857 then :
10858 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
10859
10860 fi
10861 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
10862 if test "x$ac_cv_header_sys_ioctl_h" = xyes
10863 then :
10864 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
10865
10866 fi
10867 ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
10868 if test "x$ac_cv_header_sys_kern_control_h" = xyes
10869 then :
10870 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
10871
10872 fi
10873 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
10874 if test "x$ac_cv_header_sys_loadavg_h" = xyes
10875 then :
10876 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
10877
10878 fi
10879 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
10880 if test "x$ac_cv_header_sys_lock_h" = xyes
10881 then :
10882 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
10883
10884 fi
10885 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
10886 if test "x$ac_cv_header_sys_memfd_h" = xyes
10887 then :
10888 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
10889
10890 fi
10891 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
10892 if test "x$ac_cv_header_sys_mkdev_h" = xyes
10893 then :
10894 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
10895
10896 fi
10897 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10898 if test "x$ac_cv_header_sys_mman_h" = xyes
10899 then :
10900 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
10901
10902 fi
10903 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
10904 if test "x$ac_cv_header_sys_modem_h" = xyes
10905 then :
10906 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
10907
10908 fi
10909 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
10910 if test "x$ac_cv_header_sys_param_h" = xyes
10911 then :
10912 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
10913
10914 fi
10915 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
10916 if test "x$ac_cv_header_sys_poll_h" = xyes
10917 then :
10918 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
10919
10920 fi
10921 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
10922 if test "x$ac_cv_header_sys_random_h" = xyes
10923 then :
10924 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
10925
10926 fi
10927 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
10928 if test "x$ac_cv_header_sys_resource_h" = xyes
10929 then :
10930 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
10931
10932 fi
10933 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
10934 if test "x$ac_cv_header_sys_select_h" = xyes
10935 then :
10936 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
10937
10938 fi
10939 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
10940 if test "x$ac_cv_header_sys_sendfile_h" = xyes
10941 then :
10942 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
10943
10944 fi
10945 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
10946 if test "x$ac_cv_header_sys_socket_h" = xyes
10947 then :
10948 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
10949
10950 fi
10951 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10952 if test "x$ac_cv_header_sys_soundcard_h" = xyes
10953 then :
10954 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
10955
10956 fi
10957 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
10958 if test "x$ac_cv_header_sys_stat_h" = xyes
10959 then :
10960 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
10961
10962 fi
10963 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
10964 if test "x$ac_cv_header_sys_statvfs_h" = xyes
10965 then :
10966 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
10967
10968 fi
10969 ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
10970 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
10971 then :
10972 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
10973
10974 fi
10975 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
10976 if test "x$ac_cv_header_sys_syscall_h" = xyes
10977 then :
10978 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
10979
10980 fi
10981 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
10983 then :
10984 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
10985
10986 fi
10987 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
10988 if test "x$ac_cv_header_sys_termio_h" = xyes
10989 then :
10990 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
10991
10992 fi
10993 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
10994 if test "x$ac_cv_header_sys_time_h" = xyes
10995 then :
10996 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
10997
10998 fi
10999 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11000 if test "x$ac_cv_header_sys_times_h" = xyes
11001 then :
11002 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11003
11004 fi
11005 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11006 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11007 then :
11008 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11009
11010 fi
11011 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11012 if test "x$ac_cv_header_sys_types_h" = xyes
11013 then :
11014 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11015
11016 fi
11017 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11018 if test "x$ac_cv_header_sys_uio_h" = xyes
11019 then :
11020 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11021
11022 fi
11023 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_sys_un_h" = xyes
11025 then :
11026 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11027
11028 fi
11029 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11030 if test "x$ac_cv_header_sys_utsname_h" = xyes
11031 then :
11032 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11033
11034 fi
11035 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11036 if test "x$ac_cv_header_sys_wait_h" = xyes
11037 then :
11038 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11039
11040 fi
11041 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11042 if test "x$ac_cv_header_sys_xattr_h" = xyes
11043 then :
11044 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11045
11046 fi
11047 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11048 if test "x$ac_cv_header_sysexits_h" = xyes
11049 then :
11050 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11051
11052 fi
11053 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11054 if test "x$ac_cv_header_syslog_h" = xyes
11055 then :
11056 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11057
11058 fi
11059 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11060 if test "x$ac_cv_header_termios_h" = xyes
11061 then :
11062 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11063
11064 fi
11065 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11066 if test "x$ac_cv_header_util_h" = xyes
11067 then :
11068 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11069
11070 fi
11071 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11072 if test "x$ac_cv_header_utime_h" = xyes
11073 then :
11074 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11075
11076 fi
11077 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11078 if test "x$ac_cv_header_utmp_h" = xyes
11079 then :
11080 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11081
11082 fi
11083
11084 ac_header_dirent=no
11085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11086 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11088 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11089 if eval test \${$as_ac_Header+y}
11090 then :
11091 printf %s "(cached) " >&6
11092 else $as_nop
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #include <sys/types.h>
11096 #include <$ac_hdr>
11097
11098 int
11099 main (void)
11100 {
11101 if ((DIR *) 0)
11102 return 0;
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"
11108 then :
11109 eval "$as_ac_Header=yes"
11110 else $as_nop
11111 eval "$as_ac_Header=no"
11112 fi
11113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11114 fi
11115 eval ac_res=\$$as_ac_Header
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11117 printf "%s\n" "$ac_res" >&6; }
11118 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11119 then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11122 _ACEOF
11123
11124 ac_header_dirent=$ac_hdr; break
11125 fi
11126
11127 done
11128 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11129 if test $ac_header_dirent = dirent.h; then
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11131 printf %s "checking for library containing opendir... " >&6; }
11132 if test ${ac_cv_search_opendir+y}
11133 then :
11134 printf %s "(cached) " >&6
11135 else $as_nop
11136 ac_func_search_save_LIBS=$LIBS
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11139
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143 char opendir ();
11144 int
11145 main (void)
11146 {
11147 return opendir ();
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 for ac_lib in '' dir
11153 do
11154 if test -z "$ac_lib"; then
11155 ac_res="none required"
11156 else
11157 ac_res=-l$ac_lib
11158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11159 fi
11160 if ac_fn_c_try_link "$LINENO"
11161 then :
11162 ac_cv_search_opendir=$ac_res
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165 conftest$ac_exeext
11166 if test ${ac_cv_search_opendir+y}
11167 then :
11168 break
11169 fi
11170 done
11171 if test ${ac_cv_search_opendir+y}
11172 then :
11173
11174 else $as_nop
11175 ac_cv_search_opendir=no
11176 fi
11177 rm conftest.$ac_ext
11178 LIBS=$ac_func_search_save_LIBS
11179 fi
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11181 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11182 ac_res=$ac_cv_search_opendir
11183 if test "$ac_res" != no
11184 then :
11185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11186
11187 fi
11188
11189 else
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11191 printf %s "checking for library containing opendir... " >&6; }
11192 if test ${ac_cv_search_opendir+y}
11193 then :
11194 printf %s "(cached) " >&6
11195 else $as_nop
11196 ac_func_search_save_LIBS=$LIBS
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 char opendir ();
11204 int
11205 main (void)
11206 {
11207 return opendir ();
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 for ac_lib in '' x
11213 do
11214 if test -z "$ac_lib"; then
11215 ac_res="none required"
11216 else
11217 ac_res=-l$ac_lib
11218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11219 fi
11220 if ac_fn_c_try_link "$LINENO"
11221 then :
11222 ac_cv_search_opendir=$ac_res
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11225 conftest$ac_exeext
11226 if test ${ac_cv_search_opendir+y}
11227 then :
11228 break
11229 fi
11230 done
11231 if test ${ac_cv_search_opendir+y}
11232 then :
11233
11234 else $as_nop
11235 ac_cv_search_opendir=no
11236 fi
11237 rm conftest.$ac_ext
11238 LIBS=$ac_func_search_save_LIBS
11239 fi
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11241 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11242 ac_res=$ac_cv_search_opendir
11243 if test "$ac_res" != no
11244 then :
11245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11246
11247 fi
11248
11249 fi
11250
11251
11252 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11253 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11254 then :
11255
11256 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11257
11258 fi
11259
11260 if test $ac_cv_header_sys_mkdev_h = no; then
11261 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11262 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11263 then :
11264
11265 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11266
11267 fi
11268
11269 fi
11270
11271
11272 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
11273 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
11274 SAVE_CFLAGS=$CFLAGS
11275 CFLAGS="-std=c99 $CFLAGS"
11276 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11277 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
11278 then :
11279 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
11280
11281 fi
11282
11283 CFLAGS=$SAVE_CFLAGS
11284
11285 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
11286 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
11287 #include <stdlib.h>
11288 #include <stddef.h>
11289 #ifdef HAVE_SYS_SOCKET_H
11290 # include <sys/socket.h>
11291 #endif
11292
11293 "
11294 if test "x$ac_cv_header_net_if_h" = xyes
11295 then :
11296 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
11297
11298 fi
11299
11300
11301 # On Linux, netlink.h requires asm/types.h
11302 # On FreeBSD, netlink.h is located in netlink/netlink.h
11303 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
11304 #ifdef HAVE_ASM_TYPES_H
11305 #include <asm/types.h>
11306 #endif
11307 #ifdef HAVE_SYS_SOCKET_H
11308 #include <sys/socket.h>
11309 #endif
11310
11311 "
11312 if test "x$ac_cv_header_linux_netlink_h" = xyes
11313 then :
11314 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
11315
11316 fi
11317 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
11318 #ifdef HAVE_ASM_TYPES_H
11319 #include <asm/types.h>
11320 #endif
11321 #ifdef HAVE_SYS_SOCKET_H
11322 #include <sys/socket.h>
11323 #endif
11324
11325 "
11326 if test "x$ac_cv_header_netlink_netlink_h" = xyes
11327 then :
11328 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
11329
11330 fi
11331
11332
11333 # On Linux, qrtr.h requires asm/types.h
11334 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
11335 #ifdef HAVE_ASM_TYPES_H
11336 #include <asm/types.h>
11337 #endif
11338 #ifdef HAVE_SYS_SOCKET_H
11339 #include <sys/socket.h>
11340 #endif
11341
11342 "
11343 if test "x$ac_cv_header_linux_qrtr_h" = xyes
11344 then :
11345 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
11346
11347 fi
11348
11349
11350 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
11351 #ifdef HAVE_SYS_SOCKET_H
11352 #include <sys/socket.h>
11353 #endif
11354
11355 "
11356 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
11357 then :
11358 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
11359
11360 fi
11361
11362
11363 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
11364 # On NetBSD, netcan/can.h requires sys/socket.h
11365 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
11366 #ifdef HAVE_SYS_SOCKET_H
11367 #include <sys/socket.h>
11368 #endif
11369
11370 "
11371 if test "x$ac_cv_header_linux_can_h" = xyes
11372 then :
11373 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
11374
11375 fi
11376 ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
11377 #ifdef HAVE_SYS_SOCKET_H
11378 #include <sys/socket.h>
11379 #endif
11380
11381 "
11382 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
11383 then :
11384 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
11385
11386 fi
11387 ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
11388 #ifdef HAVE_SYS_SOCKET_H
11389 #include <sys/socket.h>
11390 #endif
11391
11392 "
11393 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
11394 then :
11395 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
11396
11397 fi
11398 ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
11399 #ifdef HAVE_SYS_SOCKET_H
11400 #include <sys/socket.h>
11401 #endif
11402
11403 "
11404 if test "x$ac_cv_header_linux_can_raw_h" = xyes
11405 then :
11406 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
11407
11408 fi
11409 ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
11410 #ifdef HAVE_SYS_SOCKET_H
11411 #include <sys/socket.h>
11412 #endif
11413
11414 "
11415 if test "x$ac_cv_header_netcan_can_h" = xyes
11416 then :
11417 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
11418
11419 fi
11420
11421
11422 # Check for clock_t in time.h.
11423 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
11424 "
11425 if test "x$ac_cv_type_clock_t" = xyes
11426 then :
11427
11428 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
11429
11430
11431 else $as_nop
11432
11433 printf "%s\n" "#define clock_t long" >>confdefs.h
11434
11435 fi
11436
11437
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
11439 printf %s "checking for makedev... " >&6; }
11440 if test ${ac_cv_func_makedev+y}
11441 then :
11442 printf %s "(cached) " >&6
11443 else $as_nop
11444
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447
11448 #if defined(MAJOR_IN_MKDEV)
11449 #include <sys/mkdev.h>
11450 #elif defined(MAJOR_IN_SYSMACROS)
11451 #include <sys/sysmacros.h>
11452 #else
11453 #include <sys/types.h>
11454 #endif
11455
11456 int
11457 main (void)
11458 {
11459
11460 makedev(0, 0)
11461 ;
11462 return 0;
11463 }
11464
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"
11467 then :
11468 ac_cv_func_makedev=yes
11469 else $as_nop
11470 ac_cv_func_makedev=no
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11473 conftest$ac_exeext conftest.$ac_ext
11474
11475 fi
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
11477 printf "%s\n" "$ac_cv_func_makedev" >&6; }
11478
11479 if test "x$ac_cv_func_makedev" = xyes
11480 then :
11481
11482
11483 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
11484
11485
11486 fi
11487
11488 # byte swapping
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
11490 printf %s "checking for le64toh... " >&6; }
11491 if test ${ac_cv_func_le64toh+y}
11492 then :
11493 printf %s "(cached) " >&6
11494 else $as_nop
11495
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498
11499 #ifdef HAVE_ENDIAN_H
11500 #include <endian.h>
11501 #elif defined(HAVE_SYS_ENDIAN_H)
11502 #include <sys/endian.h>
11503 #endif
11504
11505 int
11506 main (void)
11507 {
11508
11509 le64toh(1)
11510 ;
11511 return 0;
11512 }
11513
11514 _ACEOF
11515 if ac_fn_c_try_link "$LINENO"
11516 then :
11517 ac_cv_func_le64toh=yes
11518 else $as_nop
11519 ac_cv_func_le64toh=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11522 conftest$ac_exeext conftest.$ac_ext
11523
11524 fi
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
11526 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
11527
11528 if test "x$ac_cv_func_le64toh" = xyes
11529 then :
11530
11531
11532 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
11533
11534
11535 fi
11536
11537 use_lfs=yes
11538 # Don't use largefile support for GNU/Hurd
11539 case $ac_sys_system in GNU*)
11540 use_lfs=no
11541 esac
11542
11543 if test "$use_lfs" = "yes"; then
11544 # Two defines needed to enable largefile support on various platforms
11545 # These may affect some typedefs
11546 case $ac_sys_system/$ac_sys_release in
11547 AIX*)
11548
11549 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11550
11551 ;;
11552 esac
11553
11554 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
11555
11556
11557 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11558
11559 fi
11560
11561 # Add some code to confdefs.h so that the test for off_t works on SCO
11562 cat >> confdefs.h <<\EOF
11563 #if defined(SCO_DS)
11564 #undef _OFF_T
11565 #endif
11566 EOF
11567
11568 # Type availability checks
11569 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11570 if test "x$ac_cv_type_mode_t" = xyes
11571 then :
11572
11573 else $as_nop
11574
11575 printf "%s\n" "#define mode_t int" >>confdefs.h
11576
11577 fi
11578
11579 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11580 if test "x$ac_cv_type_off_t" = xyes
11581 then :
11582
11583 else $as_nop
11584
11585 printf "%s\n" "#define off_t long int" >>confdefs.h
11586
11587 fi
11588
11589
11590 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11591 "
11592 if test "x$ac_cv_type_pid_t" = xyes
11593 then :
11594
11595 else $as_nop
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598
11599 #if defined _WIN64 && !defined __CYGWIN__
11600 LLP64
11601 #endif
11602
11603 int
11604 main (void)
11605 {
11606
11607 ;
11608 return 0;
11609 }
11610
11611 _ACEOF
11612 if ac_fn_c_try_compile "$LINENO"
11613 then :
11614 ac_pid_type='int'
11615 else $as_nop
11616 ac_pid_type='__int64'
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11619
11620 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11621
11622
11623 fi
11624
11625
11626
11627 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
11628
11629 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11630 if test "x$ac_cv_type_size_t" = xyes
11631 then :
11632
11633 else $as_nop
11634
11635 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
11636
11637 fi
11638
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11640 printf %s "checking for uid_t in sys/types.h... " >&6; }
11641 if test ${ac_cv_type_uid_t+y}
11642 then :
11643 printf %s "(cached) " >&6
11644 else $as_nop
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <sys/types.h>
11648
11649 _ACEOF
11650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651 $EGREP "uid_t" >/dev/null 2>&1
11652 then :
11653 ac_cv_type_uid_t=yes
11654 else $as_nop
11655 ac_cv_type_uid_t=no
11656 fi
11657 rm -rf conftest*
11658
11659 fi
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11661 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11662 if test $ac_cv_type_uid_t = no; then
11663
11664 printf "%s\n" "#define uid_t int" >>confdefs.h
11665
11666
11667 printf "%s\n" "#define gid_t int" >>confdefs.h
11668
11669 fi
11670
11671
11672 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11673 if test "x$ac_cv_type_ssize_t" = xyes
11674 then :
11675
11676 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
11677
11678
11679 fi
11680
11681 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
11682 if test "x$ac_cv_type___uint128_t" = xyes
11683 then :
11684
11685 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
11686
11687
11688 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
11689
11690 fi
11691
11692
11693 # Sizes and alignments of various common basic types
11694 # ANSI C requires sizeof(char) == 1, so no need to check it
11695 # The cast to long int works around a bug in the HP C Compiler
11696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11698 # This bug is HP SR number 8606223364.
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11700 printf %s "checking size of int... " >&6; }
11701 if test ${ac_cv_sizeof_int+y}
11702 then :
11703 printf %s "(cached) " >&6
11704 else $as_nop
11705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
11706 then :
11707
11708 else $as_nop
11709 if test "$ac_cv_type_int" = yes; then
11710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11711 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11712 as_fn_error 77 "cannot compute sizeof (int)
11713 See \`config.log' for more details" "$LINENO" 5; }
11714 else
11715 ac_cv_sizeof_int=0
11716 fi
11717 fi
11718
11719 fi
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11721 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
11722
11723
11724
11725 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
11726
11727
11728 # The cast to long int works around a bug in the HP C Compiler
11729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11731 # This bug is HP SR number 8606223364.
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11733 printf %s "checking size of long... " >&6; }
11734 if test ${ac_cv_sizeof_long+y}
11735 then :
11736 printf %s "(cached) " >&6
11737 else $as_nop
11738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
11739 then :
11740
11741 else $as_nop
11742 if test "$ac_cv_type_long" = yes; then
11743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11744 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11745 as_fn_error 77 "cannot compute sizeof (long)
11746 See \`config.log' for more details" "$LINENO" 5; }
11747 else
11748 ac_cv_sizeof_long=0
11749 fi
11750 fi
11751
11752 fi
11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11754 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
11755
11756
11757
11758 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
11759
11760
11761 # The cast to long int works around a bug in the HP C Compiler,
11762 # see AC_CHECK_SIZEOF for more information.
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
11764 printf %s "checking alignment of long... " >&6; }
11765 if test ${ac_cv_alignof_long+y}
11766 then :
11767 printf %s "(cached) " >&6
11768 else $as_nop
11769 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
11770 typedef struct { char x; long y; } ac__type_alignof_;"
11771 then :
11772
11773 else $as_nop
11774 if test "$ac_cv_type_long" = yes; then
11775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11776 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11777 as_fn_error 77 "cannot compute alignment of long
11778 See \`config.log' for more details" "$LINENO" 5; }
11779 else
11780 ac_cv_alignof_long=0
11781 fi
11782 fi
11783
11784 fi
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
11786 printf "%s\n" "$ac_cv_alignof_long" >&6; }
11787
11788
11789
11790 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
11791
11792
11793 # The cast to long int works around a bug in the HP C Compiler
11794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11796 # This bug is HP SR number 8606223364.
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11798 printf %s "checking size of long long... " >&6; }
11799 if test ${ac_cv_sizeof_long_long+y}
11800 then :
11801 printf %s "(cached) " >&6
11802 else $as_nop
11803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
11804 then :
11805
11806 else $as_nop
11807 if test "$ac_cv_type_long_long" = yes; then
11808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11809 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11810 as_fn_error 77 "cannot compute sizeof (long long)
11811 See \`config.log' for more details" "$LINENO" 5; }
11812 else
11813 ac_cv_sizeof_long_long=0
11814 fi
11815 fi
11816
11817 fi
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11819 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
11820
11821
11822
11823 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
11824
11825
11826 # The cast to long int works around a bug in the HP C Compiler
11827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11829 # This bug is HP SR number 8606223364.
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11831 printf %s "checking size of void *... " >&6; }
11832 if test ${ac_cv_sizeof_void_p+y}
11833 then :
11834 printf %s "(cached) " >&6
11835 else $as_nop
11836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
11837 then :
11838
11839 else $as_nop
11840 if test "$ac_cv_type_void_p" = yes; then
11841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11842 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11843 as_fn_error 77 "cannot compute sizeof (void *)
11844 See \`config.log' for more details" "$LINENO" 5; }
11845 else
11846 ac_cv_sizeof_void_p=0
11847 fi
11848 fi
11849
11850 fi
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11852 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
11853
11854
11855
11856 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
11857
11858
11859 # The cast to long int works around a bug in the HP C Compiler
11860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11862 # This bug is HP SR number 8606223364.
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11864 printf %s "checking size of short... " >&6; }
11865 if test ${ac_cv_sizeof_short+y}
11866 then :
11867 printf %s "(cached) " >&6
11868 else $as_nop
11869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
11870 then :
11871
11872 else $as_nop
11873 if test "$ac_cv_type_short" = yes; then
11874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11876 as_fn_error 77 "cannot compute sizeof (short)
11877 See \`config.log' for more details" "$LINENO" 5; }
11878 else
11879 ac_cv_sizeof_short=0
11880 fi
11881 fi
11882
11883 fi
11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11885 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
11886
11887
11888
11889 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
11890
11891
11892 # The cast to long int works around a bug in the HP C Compiler
11893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11895 # This bug is HP SR number 8606223364.
11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
11897 printf %s "checking size of float... " >&6; }
11898 if test ${ac_cv_sizeof_float+y}
11899 then :
11900 printf %s "(cached) " >&6
11901 else $as_nop
11902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
11903 then :
11904
11905 else $as_nop
11906 if test "$ac_cv_type_float" = yes; then
11907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11909 as_fn_error 77 "cannot compute sizeof (float)
11910 See \`config.log' for more details" "$LINENO" 5; }
11911 else
11912 ac_cv_sizeof_float=0
11913 fi
11914 fi
11915
11916 fi
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
11918 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
11919
11920
11921
11922 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
11923
11924
11925 # The cast to long int works around a bug in the HP C Compiler
11926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11928 # This bug is HP SR number 8606223364.
11929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11930 printf %s "checking size of double... " >&6; }
11931 if test ${ac_cv_sizeof_double+y}
11932 then :
11933 printf %s "(cached) " >&6
11934 else $as_nop
11935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
11936 then :
11937
11938 else $as_nop
11939 if test "$ac_cv_type_double" = yes; then
11940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11942 as_fn_error 77 "cannot compute sizeof (double)
11943 See \`config.log' for more details" "$LINENO" 5; }
11944 else
11945 ac_cv_sizeof_double=0
11946 fi
11947 fi
11948
11949 fi
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11951 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
11952
11953
11954
11955 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
11956
11957
11958 # The cast to long int works around a bug in the HP C Compiler
11959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11961 # This bug is HP SR number 8606223364.
11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
11963 printf %s "checking size of fpos_t... " >&6; }
11964 if test ${ac_cv_sizeof_fpos_t+y}
11965 then :
11966 printf %s "(cached) " >&6
11967 else $as_nop
11968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
11969 then :
11970
11971 else $as_nop
11972 if test "$ac_cv_type_fpos_t" = yes; then
11973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11974 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11975 as_fn_error 77 "cannot compute sizeof (fpos_t)
11976 See \`config.log' for more details" "$LINENO" 5; }
11977 else
11978 ac_cv_sizeof_fpos_t=0
11979 fi
11980 fi
11981
11982 fi
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
11984 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
11985
11986
11987
11988 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
11989
11990
11991 # The cast to long int works around a bug in the HP C Compiler
11992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11994 # This bug is HP SR number 8606223364.
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
11996 printf %s "checking size of size_t... " >&6; }
11997 if test ${ac_cv_sizeof_size_t+y}
11998 then :
11999 printf %s "(cached) " >&6
12000 else $as_nop
12001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12002 then :
12003
12004 else $as_nop
12005 if test "$ac_cv_type_size_t" = yes; then
12006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12008 as_fn_error 77 "cannot compute sizeof (size_t)
12009 See \`config.log' for more details" "$LINENO" 5; }
12010 else
12011 ac_cv_sizeof_size_t=0
12012 fi
12013 fi
12014
12015 fi
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12017 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12018
12019
12020
12021 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12022
12023
12024 # The cast to long int works around a bug in the HP C Compiler,
12025 # see AC_CHECK_SIZEOF for more information.
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12027 printf %s "checking alignment of size_t... " >&6; }
12028 if test ${ac_cv_alignof_size_t+y}
12029 then :
12030 printf %s "(cached) " >&6
12031 else $as_nop
12032 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12033 typedef struct { char x; size_t y; } ac__type_alignof_;"
12034 then :
12035
12036 else $as_nop
12037 if test "$ac_cv_type_size_t" = yes; then
12038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12040 as_fn_error 77 "cannot compute alignment of size_t
12041 See \`config.log' for more details" "$LINENO" 5; }
12042 else
12043 ac_cv_alignof_size_t=0
12044 fi
12045 fi
12046
12047 fi
12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12049 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12050
12051
12052
12053 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12054
12055
12056 # The cast to long int works around a bug in the HP C Compiler
12057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12059 # This bug is HP SR number 8606223364.
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12061 printf %s "checking size of pid_t... " >&6; }
12062 if test ${ac_cv_sizeof_pid_t+y}
12063 then :
12064 printf %s "(cached) " >&6
12065 else $as_nop
12066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12067 then :
12068
12069 else $as_nop
12070 if test "$ac_cv_type_pid_t" = yes; then
12071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12072 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12073 as_fn_error 77 "cannot compute sizeof (pid_t)
12074 See \`config.log' for more details" "$LINENO" 5; }
12075 else
12076 ac_cv_sizeof_pid_t=0
12077 fi
12078 fi
12079
12080 fi
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12082 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12083
12084
12085
12086 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12087
12088
12089 # The cast to long int works around a bug in the HP C Compiler
12090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12092 # This bug is HP SR number 8606223364.
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12094 printf %s "checking size of uintptr_t... " >&6; }
12095 if test ${ac_cv_sizeof_uintptr_t+y}
12096 then :
12097 printf %s "(cached) " >&6
12098 else $as_nop
12099 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12100 then :
12101
12102 else $as_nop
12103 if test "$ac_cv_type_uintptr_t" = yes; then
12104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12106 as_fn_error 77 "cannot compute sizeof (uintptr_t)
12107 See \`config.log' for more details" "$LINENO" 5; }
12108 else
12109 ac_cv_sizeof_uintptr_t=0
12110 fi
12111 fi
12112
12113 fi
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12115 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12116
12117
12118
12119 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12120
12121
12122 # The cast to long int works around a bug in the HP C Compiler,
12123 # see AC_CHECK_SIZEOF for more information.
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12125 printf %s "checking alignment of max_align_t... " >&6; }
12126 if test ${ac_cv_alignof_max_align_t+y}
12127 then :
12128 printf %s "(cached) " >&6
12129 else $as_nop
12130 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12131 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12132 then :
12133
12134 else $as_nop
12135 if test "$ac_cv_type_max_align_t" = yes; then
12136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12138 as_fn_error 77 "cannot compute alignment of max_align_t
12139 See \`config.log' for more details" "$LINENO" 5; }
12140 else
12141 ac_cv_alignof_max_align_t=0
12142 fi
12143 fi
12144
12145 fi
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12147 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12148
12149
12150
12151 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12152
12153
12154
12155
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12157 printf %s "checking for long double... " >&6; }
12158 if test ${ac_cv_type_long_double+y}
12159 then :
12160 printf %s "(cached) " >&6
12161 else $as_nop
12162 if test "$GCC" = yes; then
12163 ac_cv_type_long_double=yes
12164 else
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 /* The Stardent Vistra knows sizeof (long double), but does
12168 not support it. */
12169 long double foo = 0.0L;
12170 int
12171 main (void)
12172 {
12173 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12174 sizeof (double) <= sizeof (long double))];
12175 test_array [0] = 0;
12176 return test_array [0];
12177
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"
12183 then :
12184 ac_cv_type_long_double=yes
12185 else $as_nop
12186 ac_cv_type_long_double=no
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12189 fi
12190 fi
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12192 printf "%s\n" "$ac_cv_type_long_double" >&6; }
12193 if test $ac_cv_type_long_double = yes; then
12194
12195 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12196
12197 fi
12198
12199 # The cast to long int works around a bug in the HP C Compiler
12200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12202 # This bug is HP SR number 8606223364.
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12204 printf %s "checking size of long double... " >&6; }
12205 if test ${ac_cv_sizeof_long_double+y}
12206 then :
12207 printf %s "(cached) " >&6
12208 else $as_nop
12209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
12210 then :
12211
12212 else $as_nop
12213 if test "$ac_cv_type_long_double" = yes; then
12214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12216 as_fn_error 77 "cannot compute sizeof (long double)
12217 See \`config.log' for more details" "$LINENO" 5; }
12218 else
12219 ac_cv_sizeof_long_double=0
12220 fi
12221 fi
12222
12223 fi
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12225 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
12226
12227
12228
12229 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
12230
12231
12232
12233 # The cast to long int works around a bug in the HP C Compiler
12234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12236 # This bug is HP SR number 8606223364.
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
12238 printf %s "checking size of _Bool... " >&6; }
12239 if test ${ac_cv_sizeof__Bool+y}
12240 then :
12241 printf %s "(cached) " >&6
12242 else $as_nop
12243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
12244 then :
12245
12246 else $as_nop
12247 if test "$ac_cv_type__Bool" = yes; then
12248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12249 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12250 as_fn_error 77 "cannot compute sizeof (_Bool)
12251 See \`config.log' for more details" "$LINENO" 5; }
12252 else
12253 ac_cv_sizeof__Bool=0
12254 fi
12255 fi
12256
12257 fi
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
12259 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
12260
12261
12262
12263 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
12264
12265
12266
12267 # The cast to long int works around a bug in the HP C Compiler
12268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270 # This bug is HP SR number 8606223364.
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12272 printf %s "checking size of off_t... " >&6; }
12273 if test ${ac_cv_sizeof_off_t+y}
12274 then :
12275 printf %s "(cached) " >&6
12276 else $as_nop
12277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
12278 #ifdef HAVE_SYS_TYPES_H
12279 #include <sys/types.h>
12280 #endif
12281
12282 "
12283 then :
12284
12285 else $as_nop
12286 if test "$ac_cv_type_off_t" = yes; then
12287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12289 as_fn_error 77 "cannot compute sizeof (off_t)
12290 See \`config.log' for more details" "$LINENO" 5; }
12291 else
12292 ac_cv_sizeof_off_t=0
12293 fi
12294 fi
12295
12296 fi
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12298 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12299
12300
12301
12302 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12303
12304
12305
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
12307 printf %s "checking whether to enable large file support... " >&6; }
12308 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12309 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12310 have_largefile_support="yes"
12311 else
12312 have_largefile_support="no"
12313 fi
12314 case $ac_sys_system in #(
12315 Emscripten) :
12316 have_largefile_support="no"
12317 ;; #(
12318 *) :
12319 ;;
12320 esac
12321 if test "x$have_largefile_support" = xyes
12322 then :
12323
12324
12325 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
12326
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12328 printf "%s\n" "yes" >&6; }
12329
12330 else $as_nop
12331
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 printf "%s\n" "no" >&6; }
12334
12335 fi
12336
12337 # The cast to long int works around a bug in the HP C Compiler
12338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12340 # This bug is HP SR number 8606223364.
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12342 printf %s "checking size of time_t... " >&6; }
12343 if test ${ac_cv_sizeof_time_t+y}
12344 then :
12345 printf %s "(cached) " >&6
12346 else $as_nop
12347 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
12348 #ifdef HAVE_SYS_TYPES_H
12349 #include <sys/types.h>
12350 #endif
12351 #ifdef HAVE_TIME_H
12352 #include <time.h>
12353 #endif
12354
12355 "
12356 then :
12357
12358 else $as_nop
12359 if test "$ac_cv_type_time_t" = yes; then
12360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12362 as_fn_error 77 "cannot compute sizeof (time_t)
12363 See \`config.log' for more details" "$LINENO" 5; }
12364 else
12365 ac_cv_sizeof_time_t=0
12366 fi
12367 fi
12368
12369 fi
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12371 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12372
12373
12374
12375 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12376
12377
12378
12379 # if have pthread_t then define SIZEOF_PTHREAD_T
12380 ac_save_cc="$CC"
12381 if test "$ac_cv_kpthread" = "yes"
12382 then CC="$CC -Kpthread"
12383 elif test "$ac_cv_kthread" = "yes"
12384 then CC="$CC -Kthread"
12385 elif test "$ac_cv_pthread" = "yes"
12386 then CC="$CC -pthread"
12387 fi
12388
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
12390 printf %s "checking for pthread_t... " >&6; }
12391 if test ${ac_cv_have_pthread_t+y}
12392 then :
12393 printf %s "(cached) " >&6
12394 else $as_nop
12395
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398
12399 #include <pthread.h>
12400 int
12401 main (void)
12402 {
12403 pthread_t x; x = *(pthread_t*)0;
12404 ;
12405 return 0;
12406 }
12407
12408 _ACEOF
12409 if ac_fn_c_try_compile "$LINENO"
12410 then :
12411 ac_cv_have_pthread_t=yes
12412 else $as_nop
12413 ac_cv_have_pthread_t=no
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12416
12417 fi
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
12419 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
12420 if test "x$ac_cv_have_pthread_t" = xyes
12421 then :
12422
12423 # The cast to long int works around a bug in the HP C Compiler
12424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12426 # This bug is HP SR number 8606223364.
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
12428 printf %s "checking size of pthread_t... " >&6; }
12429 if test ${ac_cv_sizeof_pthread_t+y}
12430 then :
12431 printf %s "(cached) " >&6
12432 else $as_nop
12433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
12434 #ifdef HAVE_PTHREAD_H
12435 #include <pthread.h>
12436 #endif
12437
12438 "
12439 then :
12440
12441 else $as_nop
12442 if test "$ac_cv_type_pthread_t" = yes; then
12443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12445 as_fn_error 77 "cannot compute sizeof (pthread_t)
12446 See \`config.log' for more details" "$LINENO" 5; }
12447 else
12448 ac_cv_sizeof_pthread_t=0
12449 fi
12450 fi
12451
12452 fi
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
12454 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
12455
12456
12457
12458 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
12459
12460
12461
12462 fi
12463
12464 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
12465 # This checking will be unnecessary after removing deprecated TLS API.
12466 # The cast to long int works around a bug in the HP C Compiler
12467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12469 # This bug is HP SR number 8606223364.
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
12471 printf %s "checking size of pthread_key_t... " >&6; }
12472 if test ${ac_cv_sizeof_pthread_key_t+y}
12473 then :
12474 printf %s "(cached) " >&6
12475 else $as_nop
12476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
12477 "
12478 then :
12479
12480 else $as_nop
12481 if test "$ac_cv_type_pthread_key_t" = yes; then
12482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12484 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
12485 See \`config.log' for more details" "$LINENO" 5; }
12486 else
12487 ac_cv_sizeof_pthread_key_t=0
12488 fi
12489 fi
12490
12491 fi
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
12493 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
12494
12495
12496
12497 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
12498
12499
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
12501 printf %s "checking whether pthread_key_t is compatible with int... " >&6; }
12502 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
12503 then :
12504 printf %s "(cached) " >&6
12505 else $as_nop
12506
12507 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <pthread.h>
12511 int
12512 main (void)
12513 {
12514 pthread_key_t k; k * 1;
12515 ;
12516 return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_compile "$LINENO"
12520 then :
12521 ac_cv_pthread_key_t_is_arithmetic_type=yes
12522 else $as_nop
12523 ac_cv_pthread_key_t_is_arithmetic_type=no
12524
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12527 else
12528 ac_cv_pthread_key_t_is_arithmetic_type=no
12529 fi
12530
12531 fi
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
12533 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
12534 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
12535 then :
12536
12537
12538 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
12539
12540
12541 fi
12542
12543 CC="$ac_save_cc"
12544
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
12546 printf %s "checking for --enable-framework... " >&6; }
12547 if test "$enable_framework"
12548 then
12549 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12550 # -F. is needed to allow linking to the framework while
12551 # in the build location.
12552
12553 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
12554
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 printf "%s\n" "yes" >&6; }
12557 if test $enable_shared = "yes"
12558 then
12559 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
12560 fi
12561 else
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 printf "%s\n" "no" >&6; }
12564 fi
12565
12566 # Check for --with-dsymutil
12567
12568
12569 DSYMUTIL=
12570 DSYMUTIL_PATH=
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
12572 printf %s "checking for --with-dsymutil... " >&6; }
12573
12574 # Check whether --with-dsymutil was given.
12575 if test ${with_dsymutil+y}
12576 then :
12577 withval=$with_dsymutil;
12578 if test "$withval" != no
12579 then
12580 if test "$MACHDEP" != "darwin"; then
12581 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5
12582 fi
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 printf "%s\n" "yes" >&6; };
12585 DSYMUTIL='true'
12586 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 printf "%s\n" "no" >&6; }; DSYMUTIL=
12588 fi
12589 else $as_nop
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 printf "%s\n" "no" >&6; }
12592 fi
12593
12594
12595 if test "$DSYMUTIL"; then
12596 # Extract the first word of "dsymutil", so it can be a program name with args.
12597 set dummy dsymutil; ac_word=$2
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 printf %s "checking for $ac_word... " >&6; }
12600 if test ${ac_cv_path_DSYMUTIL_PATH+y}
12601 then :
12602 printf %s "(cached) " >&6
12603 else $as_nop
12604 case $DSYMUTIL_PATH in
12605 [\\/]* | ?:[\\/]*)
12606 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path.
12607 ;;
12608 *)
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12611 do
12612 IFS=$as_save_IFS
12613 case $as_dir in #(((
12614 '') as_dir=./ ;;
12615 */) ;;
12616 *) as_dir=$as_dir/ ;;
12617 esac
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12620 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext"
12621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624 done
12625 done
12626 IFS=$as_save_IFS
12627
12628 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found"
12629 ;;
12630 esac
12631 fi
12632 DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH
12633 if test -n "$DSYMUTIL_PATH"; then
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
12635 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
12636 else
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 printf "%s\n" "no" >&6; }
12639 fi
12640
12641
12642 if test "$DSYMUTIL_PATH" = "not found"; then
12643 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5
12644 fi
12645 fi
12646
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
12648 printf %s "checking for dyld... " >&6; }
12649 case $ac_sys_system/$ac_sys_release in
12650 Darwin/*)
12651
12652 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
12653
12654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
12655 printf "%s\n" "always on for Darwin" >&6; }
12656 ;;
12657 *)
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12660 ;;
12661 esac
12662
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
12664 printf %s "checking for --with-address-sanitizer... " >&6; }
12665
12666 # Check whether --with-address_sanitizer was given.
12667 if test ${with_address_sanitizer+y}
12668 then :
12669 withval=$with_address_sanitizer;
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12671 printf "%s\n" "$withval" >&6; }
12672 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
12673 LDFLAGS="-fsanitize=address $LDFLAGS"
12674 # ASan works by controlling memory allocation, our own malloc interferes.
12675 with_pymalloc="no"
12676
12677 else $as_nop
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 printf "%s\n" "no" >&6; }
12680 fi
12681
12682
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
12684 printf %s "checking for --with-memory-sanitizer... " >&6; }
12685
12686 # Check whether --with-memory_sanitizer was given.
12687 if test ${with_memory_sanitizer+y}
12688 then :
12689 withval=$with_memory_sanitizer;
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12691 printf "%s\n" "$withval" >&6; }
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
12693 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
12694 if test ${ax_cv_check_cflags___fsanitize_memory+y}
12695 then :
12696 printf %s "(cached) " >&6
12697 else $as_nop
12698
12699 ax_check_save_flags=$CFLAGS
12700 CFLAGS="$CFLAGS -fsanitize=memory"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703
12704 int
12705 main (void)
12706 {
12707
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"
12713 then :
12714 ax_cv_check_cflags___fsanitize_memory=yes
12715 else $as_nop
12716 ax_cv_check_cflags___fsanitize_memory=no
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12719 CFLAGS=$ax_check_save_flags
12720 fi
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
12722 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
12723 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
12724 then :
12725
12726 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
12727 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
12728
12729 else $as_nop
12730 as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5
12731 fi
12732
12733 # MSan works by controlling memory allocation, our own malloc interferes.
12734 with_pymalloc="no"
12735
12736 else $as_nop
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 printf "%s\n" "no" >&6; }
12739 fi
12740
12741
12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
12743 printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; }
12744
12745 # Check whether --with-undefined_behavior_sanitizer was given.
12746 if test ${with_undefined_behavior_sanitizer+y}
12747 then :
12748 withval=$with_undefined_behavior_sanitizer;
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12750 printf "%s\n" "$withval" >&6; }
12751 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
12752 LDFLAGS="-fsanitize=undefined $LDFLAGS"
12753 with_ubsan="yes"
12754
12755 else $as_nop
12756
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 printf "%s\n" "no" >&6; }
12759 with_ubsan="no"
12760
12761 fi
12762
12763
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
12765 printf %s "checking for --with-thread-sanitizer... " >&6; }
12766
12767 # Check whether --with-thread_sanitizer was given.
12768 if test ${with_thread_sanitizer+y}
12769 then :
12770 withval=$with_thread_sanitizer;
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12772 printf "%s\n" "$withval" >&6; }
12773 BASECFLAGS="-fsanitize=thread $BASECFLAGS"
12774 LDFLAGS="-fsanitize=thread $LDFLAGS"
12775 with_tsan="yes"
12776
12777 else $as_nop
12778
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 printf "%s\n" "no" >&6; }
12781 with_tsan="no"
12782
12783 fi
12784
12785
12786 # Set info about shared libraries.
12787
12788
12789
12790
12791
12792
12793
12794 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
12795 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
12797 printf %s "checking the extension of shared libraries... " >&6; }
12798 if test -z "$SHLIB_SUFFIX"; then
12799 case $ac_sys_system in
12800 hp*|HP*)
12801 case `uname -m` in
12802 ia64) SHLIB_SUFFIX=.so;;
12803 *) SHLIB_SUFFIX=.sl;;
12804 esac
12805 ;;
12806 CYGWIN*) SHLIB_SUFFIX=.dll;;
12807 *) SHLIB_SUFFIX=.so;;
12808 esac
12809 fi
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
12811 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
12812
12813 # LDSHARED is the ld *command* used to create shared library
12814 # -- "cc -G" on SunOS 5.x.
12815 # (Shared libraries in this instance are shared modules to be loaded into
12816 # Python, as opposed to building Python itself as a shared library.)
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
12818 printf %s "checking LDSHARED... " >&6; }
12819 if test -z "$LDSHARED"
12820 then
12821 case $ac_sys_system/$ac_sys_release in
12822 AIX*)
12823 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12824 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
12825 ;;
12826 SunOS/5*)
12827 if test "$GCC" = "yes" ; then
12828 LDSHARED='$(CC) -shared'
12829 LDCXXSHARED='$(CXX) -shared'
12830 else
12831 LDSHARED='$(CC) -G'
12832 LDCXXSHARED='$(CXX) -G'
12833 fi ;;
12834 hp*|HP*)
12835 if test "$GCC" = "yes" ; then
12836 LDSHARED='$(CC) -shared'
12837 LDCXXSHARED='$(CXX) -shared'
12838 else
12839 LDSHARED='$(CC) -b'
12840 LDCXXSHARED='$(CXX) -b'
12841 fi ;;
12842 Darwin/1.3*)
12843 LDSHARED='$(CC) -bundle'
12844 LDCXXSHARED='$(CXX) -bundle'
12845 if test "$enable_framework" ; then
12846 # Link against the framework. All externals should be defined.
12847 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12848 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12849 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12850 else
12851 # No framework. Ignore undefined symbols, assuming they come from Python
12852 LDSHARED="$LDSHARED -undefined suppress"
12853 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
12854 fi ;;
12855 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
12856 LDSHARED='$(CC) -bundle'
12857 LDCXXSHARED='$(CXX) -bundle'
12858 if test "$enable_framework" ; then
12859 # Link against the framework. All externals should be defined.
12860 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12861 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12862 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12863 else
12864 # No framework, use the Python app as bundle-loader
12865 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12866 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12867 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12868 fi ;;
12869 Darwin/*)
12870 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12871 # This allows an extension to be used in any Python
12872
12873 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12874 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
12875 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12876 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
12877 if test ${dep_target_major} -eq 10 && \
12878 test ${dep_target_minor} -le 2
12879 then
12880 # building for OS X 10.0 through 10.2
12881 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
12882 else
12883 # building for OS X 10.3 and later
12884 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
12885 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
12886 BLDSHARED="$LDSHARED"
12887 fi
12888 ;;
12889 iOS/*)
12890 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12891 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12892 BLDSHARED="$LDSHARED"
12893 ;;
12894 Emscripten|WASI)
12895 LDSHARED='$(CC) -shared'
12896 LDCXXSHARED='$(CXX) -shared';;
12897 Linux*|GNU*|QNX*|VxWorks*|Haiku*)
12898 LDSHARED='$(CC) -shared'
12899 LDCXXSHARED='$(CXX) -shared';;
12900 FreeBSD*)
12901 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12902 then
12903 LDSHARED='$(CC) -shared'
12904 LDCXXSHARED='$(CXX) -shared'
12905 else
12906 LDSHARED="ld -Bshareable"
12907 fi;;
12908 OpenBSD*)
12909 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12910 then
12911 LDSHARED='$(CC) -shared $(CCSHARED)'
12912 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
12913 else
12914 case `uname -r` in
12915 [01].* | 2.[0-7] | 2.[0-7].*)
12916 LDSHARED="ld -Bshareable ${LDFLAGS}"
12917 ;;
12918 *)
12919 LDSHARED='$(CC) -shared $(CCSHARED)'
12920 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
12921 ;;
12922 esac
12923 fi;;
12924 NetBSD*|DragonFly*)
12925 LDSHARED='$(CC) -shared'
12926 LDCXXSHARED='$(CXX) -shared';;
12927 OpenUNIX*|UnixWare*)
12928 if test "$GCC" = "yes" ; then
12929 LDSHARED='$(CC) -shared'
12930 LDCXXSHARED='$(CXX) -shared'
12931 else
12932 LDSHARED='$(CC) -G'
12933 LDCXXSHARED='$(CXX) -G'
12934 fi;;
12935 SCO_SV*)
12936 LDSHARED='$(CC) -Wl,-G,-Bexport'
12937 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
12938 WASI*)
12939 if test "x$enable_wasm_dynamic_linking" = xyes
12940 then :
12941
12942
12943 fi;;
12944 CYGWIN*)
12945 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
12946 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
12947 *) LDSHARED="ld";;
12948 esac
12949 fi
12950
12951 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
12952 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1'
12953 fi
12954
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
12956 printf "%s\n" "$LDSHARED" >&6; }
12957 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
12958
12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
12960 printf %s "checking BLDSHARED flags... " >&6; }
12961 BLDSHARED=${BLDSHARED-$LDSHARED}
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
12963 printf "%s\n" "$BLDSHARED" >&6; }
12964
12965 # CCSHARED are the C *flags* used to create objects to go into a shared
12966 # library (module) -- this is only needed for a few systems
12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
12968 printf %s "checking CCSHARED... " >&6; }
12969 if test -z "$CCSHARED"
12970 then
12971 case $ac_sys_system/$ac_sys_release in
12972 SunOS*) if test "$GCC" = yes;
12973 then CCSHARED="-fPIC";
12974 elif test `uname -p` = sparc;
12975 then CCSHARED="-xcode=pic32";
12976 else CCSHARED="-Kpic";
12977 fi;;
12978 hp*|HP*) if test "$GCC" = yes;
12979 then CCSHARED="-fPIC";
12980 else CCSHARED="+z";
12981 fi;;
12982 Linux*|GNU*) CCSHARED="-fPIC";;
12983 Emscripten*|WASI*)
12984 if test "x$enable_wasm_dynamic_linking" = xyes
12985 then :
12986
12987 CCSHARED="-fPIC"
12988
12989 fi;;
12990 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
12991 Haiku*) CCSHARED="-fPIC";;
12992 OpenUNIX*|UnixWare*)
12993 if test "$GCC" = "yes"
12994 then CCSHARED="-fPIC"
12995 else CCSHARED="-KPIC"
12996 fi;;
12997 SCO_SV*)
12998 if test "$GCC" = "yes"
12999 then CCSHARED="-fPIC"
13000 else CCSHARED="-Kpic -belf"
13001 fi;;
13002 VxWorks*)
13003 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13004 esac
13005 fi
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13007 printf "%s\n" "$CCSHARED" >&6; }
13008 # LINKFORSHARED are the flags passed to the $(CC) command that links
13009 # the python executable -- this is only needed for a few systems
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13011 printf %s "checking LINKFORSHARED... " >&6; }
13012 if test -z "$LINKFORSHARED"
13013 then
13014 case $ac_sys_system/$ac_sys_release in
13015 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13016 hp*|HP*)
13017 LINKFORSHARED="-Wl,-E -Wl,+s";;
13018 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13019 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
13020 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13021 # -u libsys_s pulls in all symbols in libsys
13022 Darwin/*|iOS/*)
13023 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13024
13025 # Issue #18075: the default maximum stack size (8MBytes) is too
13026 # small for the default recursion limit. Increase the stack size
13027 # to ensure that tests don't crash
13028 stack_size="1000000" # 16 MB
13029 if test "$with_ubsan" = "yes"
13030 then
13031 # Undefined behavior sanitizer requires an even deeper stack
13032 stack_size="4000000" # 64 MB
13033 fi
13034
13035
13036 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13037
13038
13039 if test $ac_sys_system = "Darwin"; then
13040 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13041
13042 if test "$enable_framework"; then
13043 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13044 fi
13045 LINKFORSHARED="$LINKFORSHARED"
13046 elif test $ac_sys_system = "iOS"; then
13047 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13048 fi
13049 ;;
13050 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13051 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13052 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13053 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13054 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13055 then
13056 LINKFORSHARED="-Wl,--export-dynamic"
13057 fi;;
13058 SunOS/5*) case $CC in
13059 *gcc*)
13060 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13061 then
13062 LINKFORSHARED="-Xlinker --export-dynamic"
13063 fi;;
13064 esac;;
13065 CYGWIN*)
13066 if test $enable_shared = "no"
13067 then
13068 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13069 fi;;
13070 QNX*)
13071 # -Wl,-E causes the symbols to be added to the dynamic
13072 # symbol table so that they can be found when a module
13073 # is loaded. -N 2048K causes the stack size to be set
13074 # to 2048 kilobytes so that the stack doesn't overflow
13075 # when running test_compile.py.
13076 LINKFORSHARED='-Wl,-E -N 2048K';;
13077 VxWorks*)
13078 LINKFORSHARED='-Wl,-export-dynamic';;
13079 esac
13080 fi
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13082 printf "%s\n" "$LINKFORSHARED" >&6; }
13083
13084
13085
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13087 printf %s "checking CFLAGSFORSHARED... " >&6; }
13088 if test ! "$LIBRARY" = "$LDLIBRARY"
13089 then
13090 case $ac_sys_system in
13091 CYGWIN*)
13092 # Cygwin needs CCSHARED when building extension DLLs
13093 # but not when building the interpreter DLL.
13094 CFLAGSFORSHARED='';;
13095 *)
13096 CFLAGSFORSHARED='$(CCSHARED)'
13097 esac
13098 fi
13099
13100 if test "x$enable_wasm_dynamic_linking" = xyes
13101 then :
13102
13103 CFLAGSFORSHARED='$(CCSHARED)'
13104
13105 fi
13106
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13108 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13109
13110 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13111 # library (with --enable-shared).
13112 # For platforms on which shared libraries are not allowed to have unresolved
13113 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13114 # if it is not required, since it creates a dependency of the shared library
13115 # to LIBS. This, in turn, means that applications linking the shared libpython
13116 # don't need to link LIBS explicitly. The default should be only changed
13117 # on systems where this approach causes problems.
13118
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13120 printf %s "checking SHLIBS... " >&6; }
13121 case "$ac_sys_system" in
13122 *)
13123 SHLIBS='$(LIBS)';;
13124 esac
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13126 printf "%s\n" "$SHLIBS" >&6; }
13127
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13129 printf %s "checking perf trampoline... " >&6; }
13130 case $PLATFORM_TRIPLET in #(
13131 x86_64-linux-gnu) :
13132 perf_trampoline=yes ;; #(
13133 aarch64-linux-gnu) :
13134 perf_trampoline=yes ;; #(
13135 *) :
13136 perf_trampoline=no
13137 ;;
13138 esac
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13140 printf "%s\n" "$perf_trampoline" >&6; }
13141
13142 if test "x$perf_trampoline" = xyes
13143 then :
13144
13145
13146 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
13147
13148 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o
13149
13150 if test "x$Py_DEBUG" = xtrue
13151 then :
13152
13153 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
13154
13155 fi
13156
13157 fi
13158
13159
13160 # checks for libraries
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
13162 printf %s "checking for sendfile in -lsendfile... " >&6; }
13163 if test ${ac_cv_lib_sendfile_sendfile+y}
13164 then :
13165 printf %s "(cached) " >&6
13166 else $as_nop
13167 ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lsendfile $LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171
13172 /* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13175 char sendfile ();
13176 int
13177 main (void)
13178 {
13179 return sendfile ();
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"
13185 then :
13186 ac_cv_lib_sendfile_sendfile=yes
13187 else $as_nop
13188 ac_cv_lib_sendfile_sendfile=no
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13193 fi
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
13195 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
13196 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
13197 then :
13198 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
13199
13200 LIBS="-lsendfile $LIBS"
13201
13202 fi
13203
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13205 printf %s "checking for dlopen in -ldl... " >&6; }
13206 if test ${ac_cv_lib_dl_dlopen+y}
13207 then :
13208 printf %s "(cached) " >&6
13209 else $as_nop
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-ldl $LIBS"
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218 char dlopen ();
13219 int
13220 main (void)
13221 {
13222 return dlopen ();
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"
13228 then :
13229 ac_cv_lib_dl_dlopen=yes
13230 else $as_nop
13231 ac_cv_lib_dl_dlopen=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13236 fi
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13238 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13239 if test "x$ac_cv_lib_dl_dlopen" = xyes
13240 then :
13241 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
13242
13243 LIBS="-ldl $LIBS"
13244
13245 fi
13246 # Dynamic linking for SunOS/Solaris and SYSV
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13248 printf %s "checking for shl_load in -ldld... " >&6; }
13249 if test ${ac_cv_lib_dld_shl_load+y}
13250 then :
13251 printf %s "(cached) " >&6
13252 else $as_nop
13253 ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-ldld $LIBS"
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261 char shl_load ();
13262 int
13263 main (void)
13264 {
13265 return shl_load ();
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"
13271 then :
13272 ac_cv_lib_dld_shl_load=yes
13273 else $as_nop
13274 ac_cv_lib_dld_shl_load=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13279 fi
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13281 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13282 if test "x$ac_cv_lib_dld_shl_load" = xyes
13283 then :
13284 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
13285
13286 LIBS="-ldld $LIBS"
13287
13288 fi
13289 # Dynamic linking for HP-UX
13290
13291
13292
13293
13294
13295 have_uuid=missing
13296
13297 for ac_header in uuid.h
13298 do :
13299 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13300 if test "x$ac_cv_header_uuid_h" = xyes
13301 then :
13302 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13303
13304 for ac_func in uuid_create uuid_enc_be
13305 do :
13306 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
13307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13308 if eval test \"x\$"$as_ac_var"\" = x"yes"
13309 then :
13310 cat >>confdefs.h <<_ACEOF
13311 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
13312 _ACEOF
13313 have_uuid=yes
13314 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13315 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13316
13317 fi
13318
13319 done
13320
13321 fi
13322
13323 done
13324
13325 if test "x$have_uuid" = xmissing
13326 then :
13327
13328
13329 pkg_failed=no
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
13331 printf %s "checking for uuid >= 2.20... " >&6; }
13332
13333 if test -n "$LIBUUID_CFLAGS"; then
13334 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
13335 elif test -n "$PKG_CONFIG"; then
13336 if test -n "$PKG_CONFIG" && \
13337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13338 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13339 ac_status=$?
13340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341 test $ac_status = 0; }; then
13342 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
13343 test "x$?" != "x0" && pkg_failed=yes
13344 else
13345 pkg_failed=yes
13346 fi
13347 else
13348 pkg_failed=untried
13349 fi
13350 if test -n "$LIBUUID_LIBS"; then
13351 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
13352 elif test -n "$PKG_CONFIG"; then
13353 if test -n "$PKG_CONFIG" && \
13354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13355 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13356 ac_status=$?
13357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358 test $ac_status = 0; }; then
13359 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
13360 test "x$?" != "x0" && pkg_failed=yes
13361 else
13362 pkg_failed=yes
13363 fi
13364 else
13365 pkg_failed=untried
13366 fi
13367
13368
13369
13370 if test $pkg_failed = yes; then
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 printf "%s\n" "no" >&6; }
13373
13374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13375 _pkg_short_errors_supported=yes
13376 else
13377 _pkg_short_errors_supported=no
13378 fi
13379 if test $_pkg_short_errors_supported = yes; then
13380 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13381 else
13382 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13383 fi
13384 # Put the nasty error message in config.log where it belongs
13385 echo "$LIBUUID_PKG_ERRORS" >&5
13386
13387
13388 save_CFLAGS=$CFLAGS
13389 save_CPPFLAGS=$CPPFLAGS
13390 save_LDFLAGS=$LDFLAGS
13391 save_LIBS=$LIBS
13392
13393
13394 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13395 LDFLAGS="$LDFLAGS $LIBUUID_LIBS"
13396 for ac_header in uuid/uuid.h
13397 do :
13398 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13399 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13400 then :
13401 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13402
13403 py_check_lib_save_LIBS=$LIBS
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13405 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13406 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13407 then :
13408 printf %s "(cached) " >&6
13409 else $as_nop
13410 ac_check_lib_save_LIBS=$LIBS
13411 LIBS="-luuid $LIBS"
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13418 char uuid_generate_time ();
13419 int
13420 main (void)
13421 {
13422 return uuid_generate_time ();
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_link "$LINENO"
13428 then :
13429 ac_cv_lib_uuid_uuid_generate_time=yes
13430 else $as_nop
13431 ac_cv_lib_uuid_uuid_generate_time=no
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13436 fi
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13438 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13439 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13440 then :
13441 have_uuid=yes
13442 fi
13443
13444 LIBS=$py_check_lib_save_LIBS
13445
13446 py_check_lib_save_LIBS=$LIBS
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13448 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13449 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13450 then :
13451 printf %s "(cached) " >&6
13452 else $as_nop
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-luuid $LIBS"
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 char uuid_generate_time_safe ();
13462 int
13463 main (void)
13464 {
13465 return uuid_generate_time_safe ();
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 if ac_fn_c_try_link "$LINENO"
13471 then :
13472 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13473 else $as_nop
13474 ac_cv_lib_uuid_uuid_generate_time_safe=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13479 fi
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13481 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13482 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13483 then :
13484 have_uuid=yes
13485 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13486
13487 fi
13488
13489 LIBS=$py_check_lib_save_LIBS
13490
13491 fi
13492
13493 done
13494 if test "x$have_uuid" = xyes
13495 then :
13496
13497 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13498 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13499
13500 fi
13501
13502 CFLAGS=$save_CFLAGS
13503 CPPFLAGS=$save_CPPFLAGS
13504 LDFLAGS=$save_LDFLAGS
13505 LIBS=$save_LIBS
13506
13507
13508
13509
13510 elif test $pkg_failed = untried; then
13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 printf "%s\n" "no" >&6; }
13513
13514 save_CFLAGS=$CFLAGS
13515 save_CPPFLAGS=$CPPFLAGS
13516 save_LDFLAGS=$LDFLAGS
13517 save_LIBS=$LIBS
13518
13519
13520 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
13521 LDFLAGS="$LDFLAGS $LIBUUID_LIBS"
13522 for ac_header in uuid/uuid.h
13523 do :
13524 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13526 then :
13527 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13528
13529 py_check_lib_save_LIBS=$LIBS
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13531 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
13532 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13533 then :
13534 printf %s "(cached) " >&6
13535 else $as_nop
13536 ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-luuid $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13544 char uuid_generate_time ();
13545 int
13546 main (void)
13547 {
13548 return uuid_generate_time ();
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"
13554 then :
13555 ac_cv_lib_uuid_uuid_generate_time=yes
13556 else $as_nop
13557 ac_cv_lib_uuid_uuid_generate_time=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS=$ac_check_lib_save_LIBS
13562 fi
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13564 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13565 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13566 then :
13567 have_uuid=yes
13568 fi
13569
13570 LIBS=$py_check_lib_save_LIBS
13571
13572 py_check_lib_save_LIBS=$LIBS
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13574 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
13575 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13576 then :
13577 printf %s "(cached) " >&6
13578 else $as_nop
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-luuid $LIBS"
13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 char uuid_generate_time_safe ();
13588 int
13589 main (void)
13590 {
13591 return uuid_generate_time_safe ();
13592 ;
13593 return 0;
13594 }
13595 _ACEOF
13596 if ac_fn_c_try_link "$LINENO"
13597 then :
13598 ac_cv_lib_uuid_uuid_generate_time_safe=yes
13599 else $as_nop
13600 ac_cv_lib_uuid_uuid_generate_time_safe=no
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13605 fi
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13607 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13608 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13609 then :
13610 have_uuid=yes
13611 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13612
13613 fi
13614
13615 LIBS=$py_check_lib_save_LIBS
13616
13617 fi
13618
13619 done
13620 if test "x$have_uuid" = xyes
13621 then :
13622
13623 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13624 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
13625
13626 fi
13627
13628 CFLAGS=$save_CFLAGS
13629 CPPFLAGS=$save_CPPFLAGS
13630 LDFLAGS=$save_LDFLAGS
13631 LIBS=$save_LIBS
13632
13633
13634
13635
13636 else
13637 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
13638 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640 printf "%s\n" "yes" >&6; }
13641 have_uuid=yes
13642 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13643
13644 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13645
13646
13647 fi
13648
13649 fi
13650
13651 if test "x$have_uuid" = xmissing
13652 then :
13653
13654 for ac_header in uuid/uuid.h
13655 do :
13656 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13657 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13658 then :
13659 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13660
13661 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
13662 if test "x$ac_cv_func_uuid_generate_time" = xyes
13663 then :
13664
13665 have_uuid=yes
13666 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
13667 LIBUUID_LIBS=${LIBUUID_LIBS-""}
13668
13669 fi
13670
13671
13672 fi
13673
13674 done
13675
13676 fi
13677
13678 if test "x$have_uuid" = xmissing
13679 then :
13680 have_uuid=no
13681 fi
13682
13683 # 'Real Time' functions on Solaris
13684 # posix4 on Solaris 2.6
13685 # pthread (first!) on Linux
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
13687 printf %s "checking for library containing sem_init... " >&6; }
13688 if test ${ac_cv_search_sem_init+y}
13689 then :
13690 printf %s "(cached) " >&6
13691 else $as_nop
13692 ac_func_search_save_LIBS=$LIBS
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695
13696 /* Override any GCC internal prototype to avoid an error.
13697 Use char because int might match the return type of a GCC
13698 builtin and then its argument prototype would still apply. */
13699 char sem_init ();
13700 int
13701 main (void)
13702 {
13703 return sem_init ();
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 for ac_lib in '' pthread rt posix4
13709 do
13710 if test -z "$ac_lib"; then
13711 ac_res="none required"
13712 else
13713 ac_res=-l$ac_lib
13714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13715 fi
13716 if ac_fn_c_try_link "$LINENO"
13717 then :
13718 ac_cv_search_sem_init=$ac_res
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13721 conftest$ac_exeext
13722 if test ${ac_cv_search_sem_init+y}
13723 then :
13724 break
13725 fi
13726 done
13727 if test ${ac_cv_search_sem_init+y}
13728 then :
13729
13730 else $as_nop
13731 ac_cv_search_sem_init=no
13732 fi
13733 rm conftest.$ac_ext
13734 LIBS=$ac_func_search_save_LIBS
13735 fi
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
13737 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
13738 ac_res=$ac_cv_search_sem_init
13739 if test "$ac_res" != no
13740 then :
13741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13742
13743 fi
13744
13745
13746 # check if we need libintl for locale functions
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
13748 printf %s "checking for textdomain in -lintl... " >&6; }
13749 if test ${ac_cv_lib_intl_textdomain+y}
13750 then :
13751 printf %s "(cached) " >&6
13752 else $as_nop
13753 ac_check_lib_save_LIBS=$LIBS
13754 LIBS="-lintl $LIBS"
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761 char textdomain ();
13762 int
13763 main (void)
13764 {
13765 return textdomain ();
13766 ;
13767 return 0;
13768 }
13769 _ACEOF
13770 if ac_fn_c_try_link "$LINENO"
13771 then :
13772 ac_cv_lib_intl_textdomain=yes
13773 else $as_nop
13774 ac_cv_lib_intl_textdomain=no
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13777 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_check_lib_save_LIBS
13779 fi
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
13781 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
13782 if test "x$ac_cv_lib_intl_textdomain" = xyes
13783 then :
13784
13785 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
13786
13787 LIBS="-lintl $LIBS"
13788 fi
13789
13790
13791 # checks for system dependent C++ extensions support
13792 case "$ac_sys_system" in
13793 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
13794 printf %s "checking for genuine AIX C++ extensions support... " >&6; }
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13797
13798 #include <load.h>
13799 int
13800 main (void)
13801 {
13802 loadAndInit("", 0, "")
13803 ;
13804 return 0;
13805 }
13806
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"
13809 then :
13810
13811
13812 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
13813
13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13815 printf "%s\n" "yes" >&6; }
13816
13817 else $as_nop
13818
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 printf "%s\n" "no" >&6; }
13821
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13824 conftest$ac_exeext conftest.$ac_ext
13825 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
13826 # of the AIX system used to build/package Python executable. This tag serves
13827 # as a baseline for bdist module packages
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
13829 printf %s "checking for the system builddate... " >&6; }
13830 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }')
13831
13832 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
13833
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
13835 printf "%s\n" "$AIX_BUILDDATE" >&6; }
13836 ;;
13837 *) ;;
13838 esac
13839
13840 # check for systems that require aligned memory access
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
13842 printf %s "checking aligned memory access is required... " >&6; }
13843 if test ${ac_cv_aligned_required+y}
13844 then :
13845 printf %s "(cached) " >&6
13846 else $as_nop
13847 if test "$cross_compiling" = yes
13848 then :
13849
13850 # "yes" changes the hash function to FNV, which causes problems with Numba
13851 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
13852 if test "$ac_sys_system" = "Linux-android"; then
13853 ac_cv_aligned_required=no
13854 else
13855 ac_cv_aligned_required=yes
13856 fi
13857 else $as_nop
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860
13861 int main(void)
13862 {
13863 char s[16];
13864 int i, *p1, *p2;
13865 for (i=0; i < 16; i++)
13866 s[i] = i;
13867 p1 = (int*)(s+1);
13868 p2 = (int*)(s+2);
13869 if (*p1 == *p2)
13870 return 1;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_run "$LINENO"
13875 then :
13876 ac_cv_aligned_required=no
13877 else $as_nop
13878 ac_cv_aligned_required=yes
13879 fi
13880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13881 conftest.$ac_objext conftest.beam conftest.$ac_ext
13882 fi
13883
13884
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
13887 printf "%s\n" "$ac_cv_aligned_required" >&6; }
13888 if test "$ac_cv_aligned_required" = yes ; then
13889
13890 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
13891
13892 fi
13893
13894 # str, bytes and memoryview hash algorithm
13895
13896
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
13898 printf %s "checking for --with-hash-algorithm... " >&6; }
13899
13900 # Check whether --with-hash_algorithm was given.
13901 if test ${with_hash_algorithm+y}
13902 then :
13903 withval=$with_hash_algorithm;
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13905 printf "%s\n" "$withval" >&6; }
13906 case "$withval" in
13907 siphash13)
13908 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
13909
13910 ;;
13911 siphash24)
13912 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
13913
13914 ;;
13915 fnv)
13916 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
13917
13918 ;;
13919 *)
13920 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
13921 ;;
13922 esac
13923
13924 else $as_nop
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
13926 printf "%s\n" "default" >&6; }
13927 fi
13928
13929
13930 validate_tzpath() {
13931 # Checks that each element of the path is an absolute path
13932 if test -z "$1"; then
13933 # Empty string is allowed: it indicates no system TZPATH
13934 return 0
13935 fi
13936
13937 # Bad paths are those that don't start with /
13938 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
13939 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
13940 return 1;
13941 fi
13942 }
13943
13944 TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
13946 printf %s "checking for --with-tzpath... " >&6; }
13947
13948 # Check whether --with-tzpath was given.
13949 if test ${with_tzpath+y}
13950 then :
13951 withval=$with_tzpath;
13952 case "$withval" in
13953 yes)
13954 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
13955 ;;
13956 *)
13957 validate_tzpath "$withval"
13958 TZPATH="$withval"
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
13960 printf "%s\n" "\"$withval\"" >&6; }
13961 ;;
13962 esac
13963
13964 else $as_nop
13965 validate_tzpath "$TZPATH"
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
13967 printf "%s\n" "\"$TZPATH\"" >&6; }
13968 fi
13969
13970
13971
13972 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
13974 printf %s "checking for t_open in -lnsl... " >&6; }
13975 if test ${ac_cv_lib_nsl_t_open+y}
13976 then :
13977 printf %s "(cached) " >&6
13978 else $as_nop
13979 ac_check_lib_save_LIBS=$LIBS
13980 LIBS="-lnsl $LIBS"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13987 char t_open ();
13988 int
13989 main (void)
13990 {
13991 return t_open ();
13992 ;
13993 return 0;
13994 }
13995 _ACEOF
13996 if ac_fn_c_try_link "$LINENO"
13997 then :
13998 ac_cv_lib_nsl_t_open=yes
13999 else $as_nop
14000 ac_cv_lib_nsl_t_open=no
14001 fi
14002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14003 conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14005 fi
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
14007 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
14008 if test "x$ac_cv_lib_nsl_t_open" = xyes
14009 then :
14010 LIBS="-lnsl $LIBS"
14011 fi
14012 # SVR4
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14014 printf %s "checking for socket in -lsocket... " >&6; }
14015 if test ${ac_cv_lib_socket_socket+y}
14016 then :
14017 printf %s "(cached) " >&6
14018 else $as_nop
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-lsocket $LIBS $LIBS"
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023
14024 /* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14027 char socket ();
14028 int
14029 main (void)
14030 {
14031 return socket ();
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"
14037 then :
14038 ac_cv_lib_socket_socket=yes
14039 else $as_nop
14040 ac_cv_lib_socket_socket=no
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14043 conftest$ac_exeext conftest.$ac_ext
14044 LIBS=$ac_check_lib_save_LIBS
14045 fi
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14047 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14048 if test "x$ac_cv_lib_socket_socket" = xyes
14049 then :
14050 LIBS="-lsocket $LIBS"
14051 fi
14052 # SVR4 sockets
14053
14054 case $ac_sys_system/$ac_sys_release in
14055 Haiku*)
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
14057 printf %s "checking for socket in -lnetwork... " >&6; }
14058 if test ${ac_cv_lib_network_socket+y}
14059 then :
14060 printf %s "(cached) " >&6
14061 else $as_nop
14062 ac_check_lib_save_LIBS=$LIBS
14063 LIBS="-lnetwork $LIBS $LIBS"
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14070 char socket ();
14071 int
14072 main (void)
14073 {
14074 return socket ();
14075 ;
14076 return 0;
14077 }
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"
14080 then :
14081 ac_cv_lib_network_socket=yes
14082 else $as_nop
14083 ac_cv_lib_network_socket=no
14084 fi
14085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14088 fi
14089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
14090 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
14091 if test "x$ac_cv_lib_network_socket" = xyes
14092 then :
14093 LIBS="-lnetwork $LIBS"
14094 fi
14095
14096 ;;
14097 esac
14098
14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
14100 printf %s "checking for --with-libs... " >&6; }
14101
14102 # Check whether --with-libs was given.
14103 if test ${with_libs+y}
14104 then :
14105 withval=$with_libs;
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14107 printf "%s\n" "$withval" >&6; }
14108 LIBS="$withval $LIBS"
14109
14110 else $as_nop
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 printf "%s\n" "no" >&6; }
14113 fi
14114
14115
14116 # Check for use of the system expat library
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
14118 printf %s "checking for --with-system-expat... " >&6; }
14119
14120 # Check whether --with-system_expat was given.
14121 if test ${with_system_expat+y}
14122 then :
14123 withval=$with_system_expat;
14124 else $as_nop
14125 with_system_expat="no"
14126 fi
14127
14128
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
14130 printf "%s\n" "$with_system_expat" >&6; }
14131
14132 if test "x$with_system_expat" = xyes
14133 then :
14134
14135 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""}
14136 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"}
14137 LIBEXPAT_INTERNAL=
14138
14139 else $as_nop
14140
14141 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
14142 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
14143 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
14144
14145 fi
14146
14147
14148
14149
14150 have_libffi=missing
14151 if test "x$ac_sys_system" = xDarwin
14152 then :
14153
14154 save_CFLAGS=$CFLAGS
14155 save_CPPFLAGS=$CPPFLAGS
14156 save_LDFLAGS=$LDFLAGS
14157 save_LIBS=$LIBS
14158
14159
14160 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS"
14161 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14162 if test "x$ac_cv_header_ffi_h" = xyes
14163 then :
14164
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14166 printf %s "checking for ffi_call in -lffi... " >&6; }
14167 if test ${ac_cv_lib_ffi_ffi_call+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171 ac_check_lib_save_LIBS=$LIBS
14172 LIBS="-lffi $LIBS"
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14179 char ffi_call ();
14180 int
14181 main (void)
14182 {
14183 return ffi_call ();
14184 ;
14185 return 0;
14186 }
14187 _ACEOF
14188 if ac_fn_c_try_link "$LINENO"
14189 then :
14190 ac_cv_lib_ffi_ffi_call=yes
14191 else $as_nop
14192 ac_cv_lib_ffi_ffi_call=no
14193 fi
14194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14197 fi
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14199 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14200 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14201 then :
14202
14203 have_libffi=yes
14204 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
14205 LIBFFI_LIBS="-lffi"
14206
14207 fi
14208
14209
14210 fi
14211
14212
14213 CFLAGS=$save_CFLAGS
14214 CPPFLAGS=$save_CPPFLAGS
14215 LDFLAGS=$save_LDFLAGS
14216 LIBS=$save_LIBS
14217
14218
14219
14220 fi
14221 if test "x$have_libffi" = xmissing
14222 then :
14223
14224
14225 pkg_failed=no
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
14227 printf %s "checking for libffi... " >&6; }
14228
14229 if test -n "$LIBFFI_CFLAGS"; then
14230 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
14231 elif test -n "$PKG_CONFIG"; then
14232 if test -n "$PKG_CONFIG" && \
14233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14234 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14235 ac_status=$?
14236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
14239 test "x$?" != "x0" && pkg_failed=yes
14240 else
14241 pkg_failed=yes
14242 fi
14243 else
14244 pkg_failed=untried
14245 fi
14246 if test -n "$LIBFFI_LIBS"; then
14247 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
14248 elif test -n "$PKG_CONFIG"; then
14249 if test -n "$PKG_CONFIG" && \
14250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14251 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14252 ac_status=$?
14253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }; then
14255 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
14256 test "x$?" != "x0" && pkg_failed=yes
14257 else
14258 pkg_failed=yes
14259 fi
14260 else
14261 pkg_failed=untried
14262 fi
14263
14264
14265
14266 if test $pkg_failed = yes; then
14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 printf "%s\n" "no" >&6; }
14269
14270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271 _pkg_short_errors_supported=yes
14272 else
14273 _pkg_short_errors_supported=no
14274 fi
14275 if test $_pkg_short_errors_supported = yes; then
14276 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
14277 else
14278 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
14279 fi
14280 # Put the nasty error message in config.log where it belongs
14281 echo "$LIBFFI_PKG_ERRORS" >&5
14282
14283
14284 save_CFLAGS=$CFLAGS
14285 save_CPPFLAGS=$CPPFLAGS
14286 save_LDFLAGS=$LDFLAGS
14287 save_LIBS=$LIBS
14288
14289
14290 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14291 LDFLAGS="$LDFLAGS $LIBFFI_LIBS"
14292 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14293 if test "x$ac_cv_header_ffi_h" = xyes
14294 then :
14295
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14297 printf %s "checking for ffi_call in -lffi... " >&6; }
14298 if test ${ac_cv_lib_ffi_ffi_call+y}
14299 then :
14300 printf %s "(cached) " >&6
14301 else $as_nop
14302 ac_check_lib_save_LIBS=$LIBS
14303 LIBS="-lffi $LIBS"
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 char ffi_call ();
14311 int
14312 main (void)
14313 {
14314 return ffi_call ();
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 if ac_fn_c_try_link "$LINENO"
14320 then :
14321 ac_cv_lib_ffi_ffi_call=yes
14322 else $as_nop
14323 ac_cv_lib_ffi_ffi_call=no
14324 fi
14325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14326 conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14328 fi
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14330 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14331 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14332 then :
14333
14334 have_libffi=yes
14335 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14336 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14337
14338 else $as_nop
14339 have_libffi=no
14340 fi
14341
14342
14343 fi
14344
14345
14346 CFLAGS=$save_CFLAGS
14347 CPPFLAGS=$save_CPPFLAGS
14348 LDFLAGS=$save_LDFLAGS
14349 LIBS=$save_LIBS
14350
14351
14352
14353 elif test $pkg_failed = untried; then
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 printf "%s\n" "no" >&6; }
14356
14357 save_CFLAGS=$CFLAGS
14358 save_CPPFLAGS=$CPPFLAGS
14359 save_LDFLAGS=$LDFLAGS
14360 save_LIBS=$LIBS
14361
14362
14363 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
14364 LDFLAGS="$LDFLAGS $LIBFFI_LIBS"
14365 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14366 if test "x$ac_cv_header_ffi_h" = xyes
14367 then :
14368
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14370 printf %s "checking for ffi_call in -lffi... " >&6; }
14371 if test ${ac_cv_lib_ffi_ffi_call+y}
14372 then :
14373 printf %s "(cached) " >&6
14374 else $as_nop
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lffi $LIBS"
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383 char ffi_call ();
14384 int
14385 main (void)
14386 {
14387 return ffi_call ();
14388 ;
14389 return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_link "$LINENO"
14393 then :
14394 ac_cv_lib_ffi_ffi_call=yes
14395 else $as_nop
14396 ac_cv_lib_ffi_ffi_call=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14399 conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14401 fi
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14403 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14404 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14405 then :
14406
14407 have_libffi=yes
14408 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
14409 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
14410
14411 else $as_nop
14412 have_libffi=no
14413 fi
14414
14415
14416 fi
14417
14418
14419 CFLAGS=$save_CFLAGS
14420 CPPFLAGS=$save_CPPFLAGS
14421 LDFLAGS=$save_LDFLAGS
14422 LIBS=$save_LIBS
14423
14424
14425
14426 else
14427 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
14428 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14430 printf "%s\n" "yes" >&6; }
14431 have_libffi=yes
14432 fi
14433
14434 fi
14435
14436 if test "x$have_libffi" = xyes
14437 then :
14438
14439 ctypes_malloc_closure=no
14440 case $ac_sys_system in #(
14441 Darwin) :
14442
14443 ctypes_malloc_closure=yes
14444 ;; #(
14445 iOS) :
14446
14447 ctypes_malloc_closure=yes
14448 ;; #(
14449 sunos5) :
14450 as_fn_append LIBFFI_LIBS " -mimpure-text"
14451 ;; #(
14452 *) :
14453 ;;
14454 esac
14455 if test "x$ctypes_malloc_closure" = xyes
14456 then :
14457
14458 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c
14459 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1"
14460
14461 fi
14462
14463
14464 if test "x$ac_cv_lib_dl_dlopen" = xyes
14465 then :
14466 as_fn_append LIBFFI_LIBS " -ldl"
14467 fi
14468
14469 save_CFLAGS=$CFLAGS
14470 save_CPPFLAGS=$CPPFLAGS
14471 save_LDFLAGS=$LDFLAGS
14472 save_LIBS=$LIBS
14473
14474
14475 CFLAGS="$LIBFFI_CFLAGS $CFLAGS"
14476 LDFLAGS="$LIBFFI_LIBS $LDFLAGS"
14477
14478
14479
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
14481 printf %s "checking for ffi_prep_cif_var... " >&6; }
14482 if test ${ac_cv_func_ffi_prep_cif_var+y}
14483 then :
14484 printf %s "(cached) " >&6
14485 else $as_nop
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 #include <ffi.h>
14489 int
14490 main (void)
14491 {
14492 void *x=ffi_prep_cif_var
14493 ;
14494 return 0;
14495 }
14496 _ACEOF
14497 if ac_fn_c_try_compile "$LINENO"
14498 then :
14499 ac_cv_func_ffi_prep_cif_var=yes
14500 else $as_nop
14501 ac_cv_func_ffi_prep_cif_var=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14504
14505 fi
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
14507 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
14508 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
14509 then :
14510
14511 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
14512
14513 fi
14514
14515
14516
14517
14518
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
14520 printf %s "checking for ffi_prep_closure_loc... " >&6; }
14521 if test ${ac_cv_func_ffi_prep_closure_loc+y}
14522 then :
14523 printf %s "(cached) " >&6
14524 else $as_nop
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <ffi.h>
14528 int
14529 main (void)
14530 {
14531 void *x=ffi_prep_closure_loc
14532 ;
14533 return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_compile "$LINENO"
14537 then :
14538 ac_cv_func_ffi_prep_closure_loc=yes
14539 else $as_nop
14540 ac_cv_func_ffi_prep_closure_loc=no
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14543
14544 fi
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
14546 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
14547 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
14548 then :
14549
14550 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
14551
14552 fi
14553
14554
14555
14556
14557
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
14559 printf %s "checking for ffi_closure_alloc... " >&6; }
14560 if test ${ac_cv_func_ffi_closure_alloc+y}
14561 then :
14562 printf %s "(cached) " >&6
14563 else $as_nop
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <ffi.h>
14567 int
14568 main (void)
14569 {
14570 void *x=ffi_closure_alloc
14571 ;
14572 return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"
14576 then :
14577 ac_cv_func_ffi_closure_alloc=yes
14578 else $as_nop
14579 ac_cv_func_ffi_closure_alloc=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14582
14583 fi
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
14585 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
14586 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
14587 then :
14588
14589 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
14590
14591 fi
14592
14593
14594
14595
14596 CFLAGS=$save_CFLAGS
14597 CPPFLAGS=$save_CPPFLAGS
14598 LDFLAGS=$save_LDFLAGS
14599 LIBS=$save_LIBS
14600
14601
14602
14603 fi
14604
14605 # Check for use of the system libmpdec library
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
14607 printf %s "checking for --with-system-libmpdec... " >&6; }
14608
14609 # Check whether --with-system_libmpdec was given.
14610 if test ${with_system_libmpdec+y}
14611 then :
14612 withval=$with_system_libmpdec;
14613 else $as_nop
14614 with_system_libmpdec="no"
14615 fi
14616
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
14618 printf "%s\n" "$with_system_libmpdec" >&6; }
14619
14620 if test "x$with_system_libmpdec" = xyes
14621 then :
14622
14623 pkg_failed=no
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec" >&5
14625 printf %s "checking for libmpdec... " >&6; }
14626
14627 if test -n "$LIBMPDEC_CFLAGS"; then
14628 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS"
14629 elif test -n "$PKG_CONFIG"; then
14630 if test -n "$PKG_CONFIG" && \
14631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec\""; } >&5
14632 ($PKG_CONFIG --exists --print-errors "libmpdec") 2>&5
14633 ac_status=$?
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635 test $ac_status = 0; }; then
14636 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec" 2>/dev/null`
14637 test "x$?" != "x0" && pkg_failed=yes
14638 else
14639 pkg_failed=yes
14640 fi
14641 else
14642 pkg_failed=untried
14643 fi
14644 if test -n "$LIBMPDEC_LIBS"; then
14645 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS"
14646 elif test -n "$PKG_CONFIG"; then
14647 if test -n "$PKG_CONFIG" && \
14648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec\""; } >&5
14649 ($PKG_CONFIG --exists --print-errors "libmpdec") 2>&5
14650 ac_status=$?
14651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14652 test $ac_status = 0; }; then
14653 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec" 2>/dev/null`
14654 test "x$?" != "x0" && pkg_failed=yes
14655 else
14656 pkg_failed=yes
14657 fi
14658 else
14659 pkg_failed=untried
14660 fi
14661
14662
14663
14664 if test $pkg_failed = yes; then
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 printf "%s\n" "no" >&6; }
14667
14668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14669 _pkg_short_errors_supported=yes
14670 else
14671 _pkg_short_errors_supported=no
14672 fi
14673 if test $_pkg_short_errors_supported = yes; then
14674 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec" 2>&1`
14675 else
14676 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec" 2>&1`
14677 fi
14678 # Put the nasty error message in config.log where it belongs
14679 echo "$LIBMPDEC_PKG_ERRORS" >&5
14680
14681 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
14682 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14683 LIBMPDEC_INTERNAL=
14684 elif test $pkg_failed = untried; then
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 printf "%s\n" "no" >&6; }
14687 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
14688 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14689 LIBMPDEC_INTERNAL=
14690 else
14691 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS
14692 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 printf "%s\n" "yes" >&6; }
14695
14696 fi
14697 else $as_nop
14698 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
14699 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
14700 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
14701 fi
14702
14703 # Disable forced inlining in debug builds, see GH-94847
14704 if test "x$with_pydebug" = xyes
14705 then :
14706 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
14707 fi
14708
14709 # Check whether _decimal should use a coroutine-local or thread-local context
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
14711 printf %s "checking for --with-decimal-contextvar... " >&6; }
14712
14713 # Check whether --with-decimal_contextvar was given.
14714 if test ${with_decimal_contextvar+y}
14715 then :
14716 withval=$with_decimal_contextvar;
14717 else $as_nop
14718 with_decimal_contextvar="yes"
14719 fi
14720
14721
14722 if test "$with_decimal_contextvar" != "no"
14723 then
14724
14725 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
14726
14727 fi
14728
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
14730 printf "%s\n" "$with_decimal_contextvar" >&6; }
14731
14732 if test "x$with_system_libmpdec" = xno
14733 then :
14734 # Check for libmpdec machine flavor
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
14736 printf %s "checking for decimal libmpdec machine... " >&6; }
14737 case $ac_sys_system in #(
14738 Darwin*) :
14739 libmpdec_system=Darwin ;; #(
14740 SunOS*) :
14741 libmpdec_system=sunos ;; #(
14742 *) :
14743 libmpdec_system=other
14744 ;;
14745 esac
14746
14747 libmpdec_machine=unknown
14748 if test "$libmpdec_system" = Darwin; then
14749 # universal here means: build libmpdec with the same arch options
14750 # the python interpreter was built with
14751 libmpdec_machine=universal
14752 elif test $ac_cv_sizeof_size_t -eq 8; then
14753 if test "$ac_cv_gcc_asm_for_x64" = yes; then
14754 libmpdec_machine=x64
14755 elif test "$ac_cv_type___uint128_t" = yes; then
14756 libmpdec_machine=uint128
14757 else
14758 libmpdec_machine=ansi64
14759 fi
14760 elif test $ac_cv_sizeof_size_t -eq 4; then
14761 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then
14762 case $CC in #(
14763 *gcc*) :
14764 libmpdec_machine=ppro ;; #(
14765 *clang*) :
14766 libmpdec_machine=ppro ;; #(
14767 *) :
14768 libmpdec_machine=ansi32
14769 ;;
14770 esac
14771 else
14772 libmpdec_machine=ansi32
14773 fi
14774 fi
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
14776 printf "%s\n" "$libmpdec_machine" >&6; }
14777
14778 case $libmpdec_machine in #(
14779 x64) :
14780 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #(
14781 uint128) :
14782 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
14783 ansi64) :
14784 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #(
14785 ppro) :
14786 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
14787 ansi32) :
14788 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #(
14789 ansi-legacy) :
14790 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
14791 universal) :
14792 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #(
14793 *) :
14794 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5
14795 ;;
14796 esac
14797 fi
14798
14799 if test "$have_ipa_pure_const_bug" = yes; then
14800 # Some versions of gcc miscompile inline asm:
14801 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
14802 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
14803 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const"
14804 fi
14805
14806 if test "$have_glibc_memmove_bug" = yes; then
14807 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
14808 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
14809 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE"
14810 fi
14811
14812
14813
14814
14815
14816
14817
14818
14819 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
14820 then :
14821
14822 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
14823 LIBSQLITE3_LIBS="-sUSE_SQLITE3"
14824
14825 fi
14826
14827
14828
14829
14830
14831 pkg_failed=no
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
14833 printf %s "checking for sqlite3 >= 3.15.2... " >&6; }
14834
14835 if test -n "$LIBSQLITE3_CFLAGS"; then
14836 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS"
14837 elif test -n "$PKG_CONFIG"; then
14838 if test -n "$PKG_CONFIG" && \
14839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
14840 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
14841 ac_status=$?
14842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; }; then
14844 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
14845 test "x$?" != "x0" && pkg_failed=yes
14846 else
14847 pkg_failed=yes
14848 fi
14849 else
14850 pkg_failed=untried
14851 fi
14852 if test -n "$LIBSQLITE3_LIBS"; then
14853 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS"
14854 elif test -n "$PKG_CONFIG"; then
14855 if test -n "$PKG_CONFIG" && \
14856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
14857 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
14858 ac_status=$?
14859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14860 test $ac_status = 0; }; then
14861 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
14862 test "x$?" != "x0" && pkg_failed=yes
14863 else
14864 pkg_failed=yes
14865 fi
14866 else
14867 pkg_failed=untried
14868 fi
14869
14870
14871
14872 if test $pkg_failed = yes; then
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874 printf "%s\n" "no" >&6; }
14875
14876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14877 _pkg_short_errors_supported=yes
14878 else
14879 _pkg_short_errors_supported=no
14880 fi
14881 if test $_pkg_short_errors_supported = yes; then
14882 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
14883 else
14884 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
14885 fi
14886 # Put the nasty error message in config.log where it belongs
14887 echo "$LIBSQLITE3_PKG_ERRORS" >&5
14888
14889
14890 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
14891 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
14892
14893
14894 elif test $pkg_failed = untried; then
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14897
14898 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
14899 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
14900
14901
14902 else
14903 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS
14904 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS
14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906 printf "%s\n" "yes" >&6; }
14907
14908 fi
14909 as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite'
14910
14911
14912
14913 save_CFLAGS=$CFLAGS
14914 save_CPPFLAGS=$CPPFLAGS
14915 save_LDFLAGS=$LDFLAGS
14916 save_LIBS=$LIBS
14917
14918
14919 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
14920 LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS"
14921
14922 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
14923 if test "x$ac_cv_header_sqlite3_h" = xyes
14924 then :
14925
14926 have_sqlite3=yes
14927
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930
14931
14932 #include <sqlite3.h>
14933 #if SQLITE_VERSION_NUMBER < 3015002
14934 # error "SQLite 3.15.2 or higher required"
14935 #endif
14936
14937 int
14938 main (void)
14939 {
14940
14941 ;
14942 return 0;
14943 }
14944
14945 _ACEOF
14946 if ac_fn_c_try_compile "$LINENO"
14947 then :
14948
14949 have_supported_sqlite3=yes
14950
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
14952 printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; }
14953 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
14954 then :
14955 printf %s "(cached) " >&6
14956 else $as_nop
14957 ac_check_lib_save_LIBS=$LIBS
14958 LIBS="-lsqlite3 $LIBS"
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965 char sqlite3_bind_double ();
14966 int
14967 main (void)
14968 {
14969 return sqlite3_bind_double ();
14970 ;
14971 return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"
14975 then :
14976 ac_cv_lib_sqlite3_sqlite3_bind_double=yes
14977 else $as_nop
14978 ac_cv_lib_sqlite3_sqlite3_bind_double=no
14979 fi
14980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14981 conftest$ac_exeext conftest.$ac_ext
14982 LIBS=$ac_check_lib_save_LIBS
14983 fi
14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
14985 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
14986 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
14987 then :
14988 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
14989
14990 LIBS="-lsqlite3 $LIBS"
14991
14992 else $as_nop
14993
14994 have_supported_sqlite3=no
14995
14996 fi
14997
14998
14999
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
15001 printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
15002 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
15003 then :
15004 printf %s "(cached) " >&6
15005 else $as_nop
15006 ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-lsqlite3 $LIBS"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010
15011 /* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014 char sqlite3_column_decltype ();
15015 int
15016 main (void)
15017 {
15018 return sqlite3_column_decltype ();
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"
15024 then :
15025 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes
15026 else $as_nop
15027 ac_cv_lib_sqlite3_sqlite3_column_decltype=no
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15030 conftest$ac_exeext conftest.$ac_ext
15031 LIBS=$ac_check_lib_save_LIBS
15032 fi
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
15034 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
15035 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
15036 then :
15037 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15038
15039 LIBS="-lsqlite3 $LIBS"
15040
15041 else $as_nop
15042
15043 have_supported_sqlite3=no
15044
15045 fi
15046
15047
15048
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
15050 printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; }
15051 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
15052 then :
15053 printf %s "(cached) " >&6
15054 else $as_nop
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lsqlite3 $LIBS"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059
15060 /* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
15063 char sqlite3_column_double ();
15064 int
15065 main (void)
15066 {
15067 return sqlite3_column_double ();
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"
15073 then :
15074 ac_cv_lib_sqlite3_sqlite3_column_double=yes
15075 else $as_nop
15076 ac_cv_lib_sqlite3_sqlite3_column_double=no
15077 fi
15078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LIBS=$ac_check_lib_save_LIBS
15081 fi
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
15083 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
15084 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
15085 then :
15086 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15087
15088 LIBS="-lsqlite3 $LIBS"
15089
15090 else $as_nop
15091
15092 have_supported_sqlite3=no
15093
15094 fi
15095
15096
15097
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
15099 printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; }
15100 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
15101 then :
15102 printf %s "(cached) " >&6
15103 else $as_nop
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-lsqlite3 $LIBS"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 char sqlite3_complete ();
15113 int
15114 main (void)
15115 {
15116 return sqlite3_complete ();
15117 ;
15118 return 0;
15119 }
15120 _ACEOF
15121 if ac_fn_c_try_link "$LINENO"
15122 then :
15123 ac_cv_lib_sqlite3_sqlite3_complete=yes
15124 else $as_nop
15125 ac_cv_lib_sqlite3_sqlite3_complete=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
15132 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
15133 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
15134 then :
15135 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15136
15137 LIBS="-lsqlite3 $LIBS"
15138
15139 else $as_nop
15140
15141 have_supported_sqlite3=no
15142
15143 fi
15144
15145
15146
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
15148 printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
15149 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
15150 then :
15151 printf %s "(cached) " >&6
15152 else $as_nop
15153 ac_check_lib_save_LIBS=$LIBS
15154 LIBS="-lsqlite3 $LIBS"
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15161 char sqlite3_progress_handler ();
15162 int
15163 main (void)
15164 {
15165 return sqlite3_progress_handler ();
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"
15171 then :
15172 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes
15173 else $as_nop
15174 ac_cv_lib_sqlite3_sqlite3_progress_handler=no
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15179 fi
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
15181 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
15182 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
15183 then :
15184 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15185
15186 LIBS="-lsqlite3 $LIBS"
15187
15188 else $as_nop
15189
15190 have_supported_sqlite3=no
15191
15192 fi
15193
15194
15195
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
15197 printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; }
15198 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
15199 then :
15200 printf %s "(cached) " >&6
15201 else $as_nop
15202 ac_check_lib_save_LIBS=$LIBS
15203 LIBS="-lsqlite3 $LIBS"
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15210 char sqlite3_result_double ();
15211 int
15212 main (void)
15213 {
15214 return sqlite3_result_double ();
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"
15220 then :
15221 ac_cv_lib_sqlite3_sqlite3_result_double=yes
15222 else $as_nop
15223 ac_cv_lib_sqlite3_sqlite3_result_double=no
15224 fi
15225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15228 fi
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
15230 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
15231 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
15232 then :
15233 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15234
15235 LIBS="-lsqlite3 $LIBS"
15236
15237 else $as_nop
15238
15239 have_supported_sqlite3=no
15240
15241 fi
15242
15243
15244
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
15246 printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
15247 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
15248 then :
15249 printf %s "(cached) " >&6
15250 else $as_nop
15251 ac_check_lib_save_LIBS=$LIBS
15252 LIBS="-lsqlite3 $LIBS"
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255
15256 /* Override any GCC internal prototype to avoid an error.
15257 Use char because int might match the return type of a GCC
15258 builtin and then its argument prototype would still apply. */
15259 char sqlite3_set_authorizer ();
15260 int
15261 main (void)
15262 {
15263 return sqlite3_set_authorizer ();
15264 ;
15265 return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_link "$LINENO"
15269 then :
15270 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes
15271 else $as_nop
15272 ac_cv_lib_sqlite3_sqlite3_set_authorizer=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15275 conftest$ac_exeext conftest.$ac_ext
15276 LIBS=$ac_check_lib_save_LIBS
15277 fi
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
15279 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
15280 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
15281 then :
15282 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15283
15284 LIBS="-lsqlite3 $LIBS"
15285
15286 else $as_nop
15287
15288 have_supported_sqlite3=no
15289
15290 fi
15291
15292
15293
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
15295 printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
15296 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
15297 then :
15298 printf %s "(cached) " >&6
15299 else $as_nop
15300 ac_check_lib_save_LIBS=$LIBS
15301 LIBS="-lsqlite3 $LIBS"
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304
15305 /* Override any GCC internal prototype to avoid an error.
15306 Use char because int might match the return type of a GCC
15307 builtin and then its argument prototype would still apply. */
15308 char sqlite3_trace_v2 ();
15309 int
15310 main (void)
15311 {
15312 return sqlite3_trace_v2 ();
15313 ;
15314 return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_link "$LINENO"
15318 then :
15319 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes
15320 else $as_nop
15321 ac_cv_lib_sqlite3_sqlite3_trace_v2=no
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15324 conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15326 fi
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
15328 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
15329 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
15330 then :
15331 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15332
15333 LIBS="-lsqlite3 $LIBS"
15334
15335 else $as_nop
15336
15337
15338
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
15340 printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; }
15341 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
15342 then :
15343 printf %s "(cached) " >&6
15344 else $as_nop
15345 ac_check_lib_save_LIBS=$LIBS
15346 LIBS="-lsqlite3 $LIBS"
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349
15350 /* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15353 char sqlite3_trace ();
15354 int
15355 main (void)
15356 {
15357 return sqlite3_trace ();
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_link "$LINENO"
15363 then :
15364 ac_cv_lib_sqlite3_sqlite3_trace=yes
15365 else $as_nop
15366 ac_cv_lib_sqlite3_sqlite3_trace=no
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15371 fi
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
15373 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
15374 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
15375 then :
15376 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15377
15378 LIBS="-lsqlite3 $LIBS"
15379
15380 else $as_nop
15381
15382 have_supported_sqlite3=no
15383
15384 fi
15385
15386
15387
15388
15389 fi
15390
15391
15392
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
15394 printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; }
15395 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
15396 then :
15397 printf %s "(cached) " >&6
15398 else $as_nop
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lsqlite3 $LIBS"
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15407 char sqlite3_value_double ();
15408 int
15409 main (void)
15410 {
15411 return sqlite3_value_double ();
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_link "$LINENO"
15417 then :
15418 ac_cv_lib_sqlite3_sqlite3_value_double=yes
15419 else $as_nop
15420 ac_cv_lib_sqlite3_sqlite3_value_double=no
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15425 fi
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
15427 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
15428 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
15429 then :
15430 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15431
15432 LIBS="-lsqlite3 $LIBS"
15433
15434 else $as_nop
15435
15436 have_supported_sqlite3=no
15437
15438 fi
15439
15440
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
15442 printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
15443 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else $as_nop
15447 ac_check_lib_save_LIBS=$LIBS
15448 LIBS="-lsqlite3 $LIBS"
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15455 char sqlite3_load_extension ();
15456 int
15457 main (void)
15458 {
15459 return sqlite3_load_extension ();
15460 ;
15461 return 0;
15462 }
15463 _ACEOF
15464 if ac_fn_c_try_link "$LINENO"
15465 then :
15466 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
15467 else $as_nop
15468 ac_cv_lib_sqlite3_sqlite3_load_extension=no
15469 fi
15470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15471 conftest$ac_exeext conftest.$ac_ext
15472 LIBS=$ac_check_lib_save_LIBS
15473 fi
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
15475 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
15476 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
15477 then :
15478 have_sqlite3_load_extension=yes
15479 else $as_nop
15480 have_sqlite3_load_extension=no
15481
15482 fi
15483
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
15485 printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; }
15486 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
15487 then :
15488 printf %s "(cached) " >&6
15489 else $as_nop
15490 ac_check_lib_save_LIBS=$LIBS
15491 LIBS="-lsqlite3 $LIBS"
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15498 char sqlite3_serialize ();
15499 int
15500 main (void)
15501 {
15502 return sqlite3_serialize ();
15503 ;
15504 return 0;
15505 }
15506 _ACEOF
15507 if ac_fn_c_try_link "$LINENO"
15508 then :
15509 ac_cv_lib_sqlite3_sqlite3_serialize=yes
15510 else $as_nop
15511 ac_cv_lib_sqlite3_sqlite3_serialize=no
15512 fi
15513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15514 conftest$ac_exeext conftest.$ac_ext
15515 LIBS=$ac_check_lib_save_LIBS
15516 fi
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
15518 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
15519 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
15520 then :
15521
15522
15523 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
15524
15525
15526 fi
15527
15528
15529 else $as_nop
15530
15531 have_supported_sqlite3=no
15532
15533 fi
15534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15535
15536 fi
15537
15538
15539 CFLAGS=$save_CFLAGS
15540 CPPFLAGS=$save_CPPFLAGS
15541 LDFLAGS=$save_LDFLAGS
15542 LIBS=$save_LIBS
15543
15544
15545
15546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
15547 printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; }
15548 # Check whether --enable-loadable-sqlite-extensions was given.
15549 if test ${enable_loadable_sqlite_extensions+y}
15550 then :
15551 enableval=$enable_loadable_sqlite_extensions;
15552 if test "x$have_sqlite3_load_extension" = xno
15553 then :
15554
15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
15556 printf "%s\n" "n/a" >&6; }
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
15558 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
15559
15560 else $as_nop
15561
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15563 printf "%s\n" "yes" >&6; }
15564
15565 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
15566
15567
15568 fi
15569
15570 else $as_nop
15571
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 printf "%s\n" "no" >&6; }
15574
15575
15576 fi
15577
15578
15579 found_tcltk=no
15580 for _QUERY in \
15581 "tcl >= 8.5.12 tk >= 8.5.12" \
15582 "tcl8.6 tk8.6" \
15583 "tcl86 tk86" \
15584 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
15585 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
15586 ; do
15587 if test -n "$PKG_CONFIG" && \
15588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15589 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15590 ac_status=$?
15591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15592 test $ac_status = 0; }; then
15593
15594
15595 pkg_failed=no
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
15597 printf %s "checking for $_QUERY... " >&6; }
15598
15599 if test -n "$TCLTK_CFLAGS"; then
15600 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS"
15601 elif test -n "$PKG_CONFIG"; then
15602 if test -n "$PKG_CONFIG" && \
15603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15604 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15605 ac_status=$?
15606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; }; then
15608 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
15609 test "x$?" != "x0" && pkg_failed=yes
15610 else
15611 pkg_failed=yes
15612 fi
15613 else
15614 pkg_failed=untried
15615 fi
15616 if test -n "$TCLTK_LIBS"; then
15617 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS"
15618 elif test -n "$PKG_CONFIG"; then
15619 if test -n "$PKG_CONFIG" && \
15620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15621 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15622 ac_status=$?
15623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }; then
15625 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
15626 test "x$?" != "x0" && pkg_failed=yes
15627 else
15628 pkg_failed=yes
15629 fi
15630 else
15631 pkg_failed=untried
15632 fi
15633
15634
15635
15636 if test $pkg_failed = yes; then
15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 printf "%s\n" "no" >&6; }
15639
15640 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15641 _pkg_short_errors_supported=yes
15642 else
15643 _pkg_short_errors_supported=no
15644 fi
15645 if test $_pkg_short_errors_supported = yes; then
15646 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
15647 else
15648 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
15649 fi
15650 # Put the nasty error message in config.log where it belongs
15651 echo "$TCLTK_PKG_ERRORS" >&5
15652
15653 found_tcltk=no
15654 elif test $pkg_failed = untried; then
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 printf "%s\n" "no" >&6; }
15657 found_tcltk=no
15658 else
15659 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS
15660 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS
15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15662 printf "%s\n" "yes" >&6; }
15663 found_tcltk=yes
15664 fi
15665
15666 fi
15667 if test "x$found_tcltk" = xyes
15668 then :
15669 break
15670 fi
15671 done
15672
15673 if test "x$found_tcltk" = xno
15674 then :
15675
15676 TCLTK_CFLAGS=${TCLTK_CFLAGS-""}
15677 TCLTK_LIBS=${TCLTK_LIBS-""}
15678
15679 fi
15680
15681 case $ac_sys_system in #(
15682 FreeBSD*) :
15683
15684 if test -n "$PKG_CONFIG" && \
15685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15686 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15687 ac_status=$?
15688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15689 test $ac_status = 0; }; then
15690
15691
15692 pkg_failed=no
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
15694 printf %s "checking for x11... " >&6; }
15695
15696 if test -n "$X11_CFLAGS"; then
15697 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
15698 elif test -n "$PKG_CONFIG"; then
15699 if test -n "$PKG_CONFIG" && \
15700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15701 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15702 ac_status=$?
15703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 test $ac_status = 0; }; then
15705 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
15706 test "x$?" != "x0" && pkg_failed=yes
15707 else
15708 pkg_failed=yes
15709 fi
15710 else
15711 pkg_failed=untried
15712 fi
15713 if test -n "$X11_LIBS"; then
15714 pkg_cv_X11_LIBS="$X11_LIBS"
15715 elif test -n "$PKG_CONFIG"; then
15716 if test -n "$PKG_CONFIG" && \
15717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15718 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15719 ac_status=$?
15720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15721 test $ac_status = 0; }; then
15722 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
15723 test "x$?" != "x0" && pkg_failed=yes
15724 else
15725 pkg_failed=yes
15726 fi
15727 else
15728 pkg_failed=untried
15729 fi
15730
15731
15732
15733 if test $pkg_failed = yes; then
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 printf "%s\n" "no" >&6; }
15736
15737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15738 _pkg_short_errors_supported=yes
15739 else
15740 _pkg_short_errors_supported=no
15741 fi
15742 if test $_pkg_short_errors_supported = yes; then
15743 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
15744 else
15745 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
15746 fi
15747 # Put the nasty error message in config.log where it belongs
15748 echo "$X11_PKG_ERRORS" >&5
15749
15750 as_fn_error $? "Package requirements (x11) were not met:
15751
15752 $X11_PKG_ERRORS
15753
15754 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15755 installed software in a non-standard prefix.
15756
15757 Alternatively, you may set the environment variables X11_CFLAGS
15758 and X11_LIBS to avoid the need to call pkg-config.
15759 See the pkg-config man page for more details." "$LINENO" 5
15760 elif test $pkg_failed = untried; then
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 printf "%s\n" "no" >&6; }
15763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15764 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15765 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15766 is in your PATH or set the PKG_CONFIG environment variable to the full
15767 path to pkg-config.
15768
15769 Alternatively, you may set the environment variables X11_CFLAGS
15770 and X11_LIBS to avoid the need to call pkg-config.
15771 See the pkg-config man page for more details.
15772
15773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15774 See \`config.log' for more details" "$LINENO" 5; }
15775 else
15776 X11_CFLAGS=$pkg_cv_X11_CFLAGS
15777 X11_LIBS=$pkg_cv_X11_LIBS
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15779 printf "%s\n" "yes" >&6; }
15780
15781 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
15782 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
15783
15784 fi
15785
15786 fi
15787
15788 ;; #(
15789 *) :
15790 ;;
15791 esac
15792
15793 save_CFLAGS=$CFLAGS
15794 save_CPPFLAGS=$CPPFLAGS
15795 save_LDFLAGS=$LDFLAGS
15796 save_LIBS=$LIBS
15797
15798
15799 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS"
15800 LIBS="$TCLTK_LIBS $LDFLAGS"
15801
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804
15805
15806 #include <tcl.h>
15807 #include <tk.h>
15808 #if defined(TK_HEX_VERSION)
15809 # if TK_HEX_VERSION < 0x0805020c
15810 # error "Tk older than 8.5.12 not supported"
15811 # endif
15812 #endif
15813 #if (TCL_MAJOR_VERSION < 8) || \
15814 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
15815 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
15816 # error "Tcl older than 8.5.12 not supported"
15817 #endif
15818 #if (TK_MAJOR_VERSION < 8) || \
15819 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
15820 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
15821 # error "Tk older than 8.5.12 not supported"
15822 #endif
15823
15824 int
15825 main (void)
15826 {
15827
15828 void *x1 = Tcl_Init;
15829 void *x2 = Tk_Init;
15830
15831 ;
15832 return 0;
15833 }
15834
15835 _ACEOF
15836 if ac_fn_c_try_link "$LINENO"
15837 then :
15838
15839 have_tcltk=yes
15840 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1"
15841
15842 else $as_nop
15843
15844 have_tcltk=no
15845
15846 fi
15847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15848 conftest$ac_exeext conftest.$ac_ext
15849
15850 CFLAGS=$save_CFLAGS
15851 CPPFLAGS=$save_CPPFLAGS
15852 LDFLAGS=$save_LDFLAGS
15853 LIBS=$save_LIBS
15854
15855
15856
15857
15858
15859 save_CFLAGS=$CFLAGS
15860 save_CPPFLAGS=$CPPFLAGS
15861 save_LDFLAGS=$LDFLAGS
15862 save_LIBS=$LIBS
15863
15864
15865 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS"
15866 LDFLAGS="$GDBM_LIBS $LDFLAGS"
15867 for ac_header in gdbm.h
15868 do :
15869 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15870 if test "x$ac_cv_header_gdbm_h" = xyes
15871 then :
15872 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
15873
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15875 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
15876 if test ${ac_cv_lib_gdbm_gdbm_open+y}
15877 then :
15878 printf %s "(cached) " >&6
15879 else $as_nop
15880 ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lgdbm $LIBS"
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884
15885 /* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
15888 char gdbm_open ();
15889 int
15890 main (void)
15891 {
15892 return gdbm_open ();
15893 ;
15894 return 0;
15895 }
15896 _ACEOF
15897 if ac_fn_c_try_link "$LINENO"
15898 then :
15899 ac_cv_lib_gdbm_gdbm_open=yes
15900 else $as_nop
15901 ac_cv_lib_gdbm_gdbm_open=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15904 conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15906 fi
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15908 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15909 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
15910 then :
15911
15912 have_gdbm=yes
15913 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"}
15914
15915 else $as_nop
15916 have_gdbm=no
15917 fi
15918
15919
15920 else $as_nop
15921 have_gdbm=no
15922 fi
15923
15924 done
15925
15926 CFLAGS=$save_CFLAGS
15927 CPPFLAGS=$save_CPPFLAGS
15928 LDFLAGS=$save_LDFLAGS
15929 LIBS=$save_LIBS
15930
15931
15932
15933 for ac_header in ndbm.h
15934 do :
15935 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
15936 if test "x$ac_cv_header_ndbm_h" = xyes
15937 then :
15938 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
15939
15940 save_CFLAGS=$CFLAGS
15941 save_CPPFLAGS=$CPPFLAGS
15942 save_LDFLAGS=$LDFLAGS
15943 save_LIBS=$LIBS
15944
15945
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
15947 printf %s "checking for library containing dbm_open... " >&6; }
15948 if test ${ac_cv_search_dbm_open+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else $as_nop
15952 ac_func_search_save_LIBS=$LIBS
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15959 char dbm_open ();
15960 int
15961 main (void)
15962 {
15963 return dbm_open ();
15964 ;
15965 return 0;
15966 }
15967 _ACEOF
15968 for ac_lib in '' ndbm gdbm_compat
15969 do
15970 if test -z "$ac_lib"; then
15971 ac_res="none required"
15972 else
15973 ac_res=-l$ac_lib
15974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15975 fi
15976 if ac_fn_c_try_link "$LINENO"
15977 then :
15978 ac_cv_search_dbm_open=$ac_res
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15981 conftest$ac_exeext
15982 if test ${ac_cv_search_dbm_open+y}
15983 then :
15984 break
15985 fi
15986 done
15987 if test ${ac_cv_search_dbm_open+y}
15988 then :
15989
15990 else $as_nop
15991 ac_cv_search_dbm_open=no
15992 fi
15993 rm conftest.$ac_ext
15994 LIBS=$ac_func_search_save_LIBS
15995 fi
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
15997 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
15998 ac_res=$ac_cv_search_dbm_open
15999 if test "$ac_res" != no
16000 then :
16001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16002
16003 fi
16004
16005
16006 CFLAGS=$save_CFLAGS
16007 CPPFLAGS=$save_CPPFLAGS
16008 LDFLAGS=$save_LDFLAGS
16009 LIBS=$save_LIBS
16010
16011
16012
16013 fi
16014
16015 done
16016
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
16018 printf %s "checking for ndbm presence and linker args... " >&6; }
16019 case $ac_cv_search_dbm_open in #(
16020 *ndbm*|*gdbm_compat*) :
16021
16022 dbm_ndbm="$ac_cv_search_dbm_open"
16023 have_ndbm=yes
16024 ;; #(
16025 none*) :
16026
16027 dbm_ndbm=""
16028 have_ndbm=yes
16029 ;; #(
16030 no) :
16031 have_ndbm=no
16032 ;; #(
16033 *) :
16034 ;;
16035 esac
16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
16037 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
16038
16039 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16040 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
16041 then :
16042 printf %s "(cached) " >&6
16043 else $as_nop
16044
16045 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16046 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16047 then :
16048 ac_cv_header_gdbm_slash_ndbm_h=yes
16049 else $as_nop
16050 ac_cv_header_gdbm_slash_ndbm_h=no
16051
16052 fi
16053
16054
16055 fi
16056
16057 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
16058 then :
16059
16060
16061 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
16062
16063
16064 fi
16065
16066 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16067 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
16068 then :
16069 printf %s "(cached) " >&6
16070 else $as_nop
16071
16072 ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16073 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16074 then :
16075 ac_cv_header_gdbm_dash_ndbm_h=yes
16076 else $as_nop
16077 ac_cv_header_gdbm_dash_ndbm_h=no
16078
16079 fi
16080
16081
16082 fi
16083
16084 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
16085 then :
16086
16087
16088 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
16089
16090
16091 fi
16092 { ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
16093
16094 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
16095 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
16096 save_CFLAGS=$CFLAGS
16097 save_CPPFLAGS=$CPPFLAGS
16098 save_LDFLAGS=$LDFLAGS
16099 save_LIBS=$LIBS
16100
16101
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16103 printf %s "checking for library containing dbm_open... " >&6; }
16104 if test ${ac_cv_search_dbm_open+y}
16105 then :
16106 printf %s "(cached) " >&6
16107 else $as_nop
16108 ac_func_search_save_LIBS=$LIBS
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16115 char dbm_open ();
16116 int
16117 main (void)
16118 {
16119 return dbm_open ();
16120 ;
16121 return 0;
16122 }
16123 _ACEOF
16124 for ac_lib in '' gdbm_compat
16125 do
16126 if test -z "$ac_lib"; then
16127 ac_res="none required"
16128 else
16129 ac_res=-l$ac_lib
16130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16131 fi
16132 if ac_fn_c_try_link "$LINENO"
16133 then :
16134 ac_cv_search_dbm_open=$ac_res
16135 fi
16136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16137 conftest$ac_exeext
16138 if test ${ac_cv_search_dbm_open+y}
16139 then :
16140 break
16141 fi
16142 done
16143 if test ${ac_cv_search_dbm_open+y}
16144 then :
16145
16146 else $as_nop
16147 ac_cv_search_dbm_open=no
16148 fi
16149 rm conftest.$ac_ext
16150 LIBS=$ac_func_search_save_LIBS
16151 fi
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16153 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16154 ac_res=$ac_cv_search_dbm_open
16155 if test "$ac_res" != no
16156 then :
16157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16158 have_gdbm_compat=yes
16159 else $as_nop
16160 have_gdbm_compat=no
16161 fi
16162
16163
16164 CFLAGS=$save_CFLAGS
16165 CPPFLAGS=$save_CPPFLAGS
16166 LDFLAGS=$save_LDFLAGS
16167 LIBS=$save_LIBS
16168
16169
16170 fi
16171
16172 # Check for libdb >= 5 with dbm_open()
16173 # db.h re-defines the name of the function
16174 for ac_header in db.h
16175 do :
16176 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16177 if test "x$ac_cv_header_db_h" = xyes
16178 then :
16179 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
16180
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
16182 printf %s "checking for libdb... " >&6; }
16183 if test ${ac_cv_have_libdb+y}
16184 then :
16185 printf %s "(cached) " >&6
16186 else $as_nop
16187
16188 save_CFLAGS=$CFLAGS
16189 save_CPPFLAGS=$CPPFLAGS
16190 save_LDFLAGS=$LDFLAGS
16191 save_LIBS=$LIBS
16192
16193
16194 LIBS="$LIBS -ldb"
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197
16198 #define DB_DBM_HSEARCH 1
16199 #include <db.h>
16200 #if DB_VERSION_MAJOR < 5
16201 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
16202 #endif
16203
16204 int
16205 main (void)
16206 {
16207 DBM *dbm = dbm_open(NULL, 0, 0)
16208 ;
16209 return 0;
16210 }
16211
16212 _ACEOF
16213 if ac_fn_c_try_link "$LINENO"
16214 then :
16215 ac_cv_have_libdb=yes
16216 else $as_nop
16217 ac_cv_have_libdb=no
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16220 conftest$ac_exeext conftest.$ac_ext
16221
16222 CFLAGS=$save_CFLAGS
16223 CPPFLAGS=$save_CPPFLAGS
16224 LDFLAGS=$save_LDFLAGS
16225 LIBS=$save_LIBS
16226
16227
16228
16229 fi
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
16231 printf "%s\n" "$ac_cv_have_libdb" >&6; }
16232 if test "x$ac_cv_have_libdb" = xyes
16233 then :
16234
16235
16236 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
16237
16238
16239 fi
16240
16241 fi
16242
16243 done
16244
16245 # Check for --with-dbmliborder
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
16247 printf %s "checking for --with-dbmliborder... " >&6; }
16248
16249 # Check whether --with-dbmliborder was given.
16250 if test ${with_dbmliborder+y}
16251 then :
16252 withval=$with_dbmliborder;
16253 else $as_nop
16254 with_dbmliborder=gdbm:ndbm:bdb
16255 fi
16256
16257
16258 have_gdbm_dbmliborder=no
16259 as_save_IFS=$IFS
16260 IFS=:
16261 for db in $with_dbmliborder; do
16262 case $db in #(
16263 ndbm) :
16264 ;; #(
16265 gdbm) :
16266 have_gdbm_dbmliborder=yes ;; #(
16267 bdb) :
16268 ;; #(
16269 *) :
16270 with_dbmliborder=error
16271 ;;
16272 esac
16273 done
16274 IFS=$as_save_IFS
16275 if test "x$with_dbmliborder" = xerror
16276 then :
16277
16278 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
16279
16280 fi
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
16282 printf "%s\n" "$with_dbmliborder" >&6; }
16283
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
16285 printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; }
16286 have_dbm=no
16287 as_save_IFS=$IFS
16288 IFS=:
16289 for db in $with_dbmliborder; do
16290 case "$db" in
16291 ndbm)
16292 if test "$have_ndbm" = yes; then
16293 DBM_CFLAGS="-DUSE_NDBM"
16294 DBM_LIBS="$dbm_ndbm"
16295 have_dbm=yes
16296 break
16297 fi
16298 ;;
16299 gdbm)
16300 if test "$have_gdbm_compat" = yes; then
16301 DBM_CFLAGS="-DUSE_GDBM_COMPAT"
16302 DBM_LIBS="-lgdbm_compat"
16303 have_dbm=yes
16304 break
16305 fi
16306 ;;
16307 bdb)
16308 if test "$ac_cv_have_libdb" = yes; then
16309 DBM_CFLAGS="-DUSE_BERKDB"
16310 DBM_LIBS="-ldb"
16311 have_dbm=yes
16312 break
16313 fi
16314 ;;
16315 esac
16316 done
16317 IFS=$as_save_IFS
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
16319 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
16320
16321 # Templates for things AC_DEFINEd more than once.
16322 # For a single AC_DEFINE, no template is needed.
16323
16324
16325 if test "$ac_cv_pthread_is_default" = yes
16326 then
16327 # Defining _REENTRANT on system with POSIX threads should not hurt.
16328 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16329
16330 posix_threads=yes
16331 if test "$ac_sys_system" = "SunOS"; then
16332 CFLAGS="$CFLAGS -D_REENTRANT"
16333 fi
16334 elif test "$ac_cv_kpthread" = "yes"
16335 then
16336 CC="$CC -Kpthread"
16337 if test "$ac_cv_cxx_thread" = "yes"; then
16338 CXX="$CXX -Kpthread"
16339 fi
16340 posix_threads=yes
16341 elif test "$ac_cv_kthread" = "yes"
16342 then
16343 CC="$CC -Kthread"
16344 if test "$ac_cv_cxx_thread" = "yes"; then
16345 CXX="$CXX -Kthread"
16346 fi
16347 posix_threads=yes
16348 elif test "$ac_cv_pthread" = "yes"
16349 then
16350 CC="$CC -pthread"
16351 if test "$ac_cv_cxx_thread" = "yes"; then
16352 CXX="$CXX -pthread"
16353 fi
16354 posix_threads=yes
16355 else
16356 if test ! -z "$withval" -a -d "$withval"
16357 then LDFLAGS="$LDFLAGS -L$withval"
16358 fi
16359
16360 # According to the POSIX spec, a pthreads implementation must
16361 # define _POSIX_THREADS in unistd.h. Some apparently don't
16362 # (e.g. gnu pth with pthread emulation)
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
16364 printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; }
16365
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
16367 printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; }
16368 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
16369 then :
16370 printf %s "(cached) " >&6
16371 else $as_nop
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 #include <unistd.h>
16375 int
16376 main (void)
16377 {
16378
16379 #ifdef _POSIX_THREADS
16380 int ok;
16381 (void)ok;
16382 #else
16383 choke me
16384 #endif
16385
16386 ;
16387 return 0;
16388 }
16389 _ACEOF
16390 if ac_fn_c_try_compile "$LINENO"
16391 then :
16392 ac_cv_defined__POSIX_THREADS_unistd_h=yes
16393 else $as_nop
16394 ac_cv_defined__POSIX_THREADS_unistd_h=no
16395 fi
16396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16397 fi
16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
16399 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
16400 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
16401 then :
16402 unistd_defines_pthreads=yes
16403 else $as_nop
16404 unistd_defines_pthreads=no
16405 fi
16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
16407 printf "%s\n" "$unistd_defines_pthreads" >&6; }
16408
16409 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16410
16411 # Just looking for pthread_create in libpthread is not enough:
16412 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16413 # So we really have to include pthread.h, and then link.
16414 _libs=$LIBS
16415 LIBS="$LIBS -lpthread"
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16417 printf %s "checking for pthread_create in -lpthread... " >&6; }
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420
16421 #include <stdio.h>
16422 #include <stdlib.h>
16423 #include <pthread.h>
16424
16425 void * start_routine (void *arg) { exit (0); }
16426 int
16427 main (void)
16428 {
16429
16430 pthread_create (NULL, NULL, start_routine, NULL)
16431 ;
16432 return 0;
16433 }
16434 _ACEOF
16435 if ac_fn_c_try_link "$LINENO"
16436 then :
16437
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 printf "%s\n" "yes" >&6; }
16440 posix_threads=yes
16441
16442 else $as_nop
16443
16444 LIBS=$_libs
16445 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
16446 if test "x$ac_cv_func_pthread_detach" = xyes
16447 then :
16448
16449 posix_threads=yes
16450
16451 else $as_nop
16452
16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
16454 printf %s "checking for pthread_create in -lpthreads... " >&6; }
16455 if test ${ac_cv_lib_pthreads_pthread_create+y}
16456 then :
16457 printf %s "(cached) " >&6
16458 else $as_nop
16459 ac_check_lib_save_LIBS=$LIBS
16460 LIBS="-lpthreads $LIBS"
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16467 char pthread_create ();
16468 int
16469 main (void)
16470 {
16471 return pthread_create ();
16472 ;
16473 return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"
16477 then :
16478 ac_cv_lib_pthreads_pthread_create=yes
16479 else $as_nop
16480 ac_cv_lib_pthreads_pthread_create=no
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16483 conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16485 fi
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
16487 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
16488 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
16489 then :
16490
16491 posix_threads=yes
16492 LIBS="$LIBS -lpthreads"
16493
16494 else $as_nop
16495
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16497 printf %s "checking for pthread_create in -lc_r... " >&6; }
16498 if test ${ac_cv_lib_c_r_pthread_create+y}
16499 then :
16500 printf %s "(cached) " >&6
16501 else $as_nop
16502 ac_check_lib_save_LIBS=$LIBS
16503 LIBS="-lc_r $LIBS"
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506
16507 /* Override any GCC internal prototype to avoid an error.
16508 Use char because int might match the return type of a GCC
16509 builtin and then its argument prototype would still apply. */
16510 char pthread_create ();
16511 int
16512 main (void)
16513 {
16514 return pthread_create ();
16515 ;
16516 return 0;
16517 }
16518 _ACEOF
16519 if ac_fn_c_try_link "$LINENO"
16520 then :
16521 ac_cv_lib_c_r_pthread_create=yes
16522 else $as_nop
16523 ac_cv_lib_c_r_pthread_create=no
16524 fi
16525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16526 conftest$ac_exeext conftest.$ac_ext
16527 LIBS=$ac_check_lib_save_LIBS
16528 fi
16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16530 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
16531 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
16532 then :
16533
16534 posix_threads=yes
16535 LIBS="$LIBS -lc_r"
16536
16537 else $as_nop
16538
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
16540 printf %s "checking for __pthread_create_system in -lpthread... " >&6; }
16541 if test ${ac_cv_lib_pthread___pthread_create_system+y}
16542 then :
16543 printf %s "(cached) " >&6
16544 else $as_nop
16545 ac_check_lib_save_LIBS=$LIBS
16546 LIBS="-lpthread $LIBS"
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16553 char __pthread_create_system ();
16554 int
16555 main (void)
16556 {
16557 return __pthread_create_system ();
16558 ;
16559 return 0;
16560 }
16561 _ACEOF
16562 if ac_fn_c_try_link "$LINENO"
16563 then :
16564 ac_cv_lib_pthread___pthread_create_system=yes
16565 else $as_nop
16566 ac_cv_lib_pthread___pthread_create_system=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16569 conftest$ac_exeext conftest.$ac_ext
16570 LIBS=$ac_check_lib_save_LIBS
16571 fi
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16573 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
16574 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
16575 then :
16576
16577 posix_threads=yes
16578 LIBS="$LIBS -lpthread"
16579
16580 else $as_nop
16581
16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
16583 printf %s "checking for pthread_create in -lcma... " >&6; }
16584 if test ${ac_cv_lib_cma_pthread_create+y}
16585 then :
16586 printf %s "(cached) " >&6
16587 else $as_nop
16588 ac_check_lib_save_LIBS=$LIBS
16589 LIBS="-lcma $LIBS"
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592
16593 /* Override any GCC internal prototype to avoid an error.
16594 Use char because int might match the return type of a GCC
16595 builtin and then its argument prototype would still apply. */
16596 char pthread_create ();
16597 int
16598 main (void)
16599 {
16600 return pthread_create ();
16601 ;
16602 return 0;
16603 }
16604 _ACEOF
16605 if ac_fn_c_try_link "$LINENO"
16606 then :
16607 ac_cv_lib_cma_pthread_create=yes
16608 else $as_nop
16609 ac_cv_lib_cma_pthread_create=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16612 conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16614 fi
16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
16616 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
16617 if test "x$ac_cv_lib_cma_pthread_create" = xyes
16618 then :
16619
16620 posix_threads=yes
16621 LIBS="$LIBS -lcma"
16622
16623 else $as_nop
16624
16625 case $ac_sys_system in #(
16626 WASI) :
16627 posix_threads=stub ;; #(
16628 *) :
16629 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
16630 ;;
16631 esac
16632
16633 fi
16634
16635 fi
16636
16637 fi
16638
16639 fi
16640
16641 fi
16642
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16645 conftest$ac_exeext conftest.$ac_ext
16646
16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
16648 printf %s "checking for usconfig in -lmpc... " >&6; }
16649 if test ${ac_cv_lib_mpc_usconfig+y}
16650 then :
16651 printf %s "(cached) " >&6
16652 else $as_nop
16653 ac_check_lib_save_LIBS=$LIBS
16654 LIBS="-lmpc $LIBS"
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16661 char usconfig ();
16662 int
16663 main (void)
16664 {
16665 return usconfig ();
16666 ;
16667 return 0;
16668 }
16669 _ACEOF
16670 if ac_fn_c_try_link "$LINENO"
16671 then :
16672 ac_cv_lib_mpc_usconfig=yes
16673 else $as_nop
16674 ac_cv_lib_mpc_usconfig=no
16675 fi
16676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16677 conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
16681 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
16682 if test "x$ac_cv_lib_mpc_usconfig" = xyes
16683 then :
16684
16685 LIBS="$LIBS -lmpc"
16686
16687 fi
16688
16689
16690 fi
16691
16692 if test "$posix_threads" = "yes"; then
16693 if test "$unistd_defines_pthreads" = "no"; then
16694
16695 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
16696
16697 fi
16698
16699 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16700 case $ac_sys_system/$ac_sys_release in
16701 SunOS/5.6)
16702 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
16703
16704 ;;
16705 SunOS/5.8)
16706 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16707
16708 ;;
16709 AIX/*)
16710 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16711
16712 ;;
16713 NetBSD/*)
16714 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16715
16716 ;;
16717 esac
16718
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16720 printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
16721 if test ${ac_cv_pthread_system_supported+y}
16722 then :
16723 printf %s "(cached) " >&6
16724 else $as_nop
16725 if test "$cross_compiling" = yes
16726 then :
16727 ac_cv_pthread_system_supported=no
16728 else $as_nop
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731
16732 #include <stdio.h>
16733 #include <pthread.h>
16734 void *foo(void *parm) {
16735 return NULL;
16736 }
16737 int main(void) {
16738 pthread_attr_t attr;
16739 pthread_t id;
16740 if (pthread_attr_init(&attr)) return (-1);
16741 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
16742 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
16743 return (0);
16744 }
16745 _ACEOF
16746 if ac_fn_c_try_run "$LINENO"
16747 then :
16748 ac_cv_pthread_system_supported=yes
16749 else $as_nop
16750 ac_cv_pthread_system_supported=no
16751 fi
16752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16753 conftest.$ac_objext conftest.beam conftest.$ac_ext
16754 fi
16755
16756
16757 fi
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
16759 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
16760 if test "$ac_cv_pthread_system_supported" = "yes"; then
16761
16762 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
16763
16764 fi
16765
16766 for ac_func in pthread_sigmask
16767 do :
16768 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
16769 if test "x$ac_cv_func_pthread_sigmask" = xyes
16770 then :
16771 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
16772 case $ac_sys_system in
16773 CYGWIN*)
16774
16775 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
16776
16777 ;;
16778 esac
16779 fi
16780
16781 done
16782 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
16783 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
16784 then :
16785 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
16786
16787 fi
16788
16789 fi
16790
16791 if test "x$posix_threads" = xstub
16792 then :
16793
16794
16795 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
16796
16797
16798 fi
16799
16800 # Check for enable-ipv6
16801
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
16803 printf %s "checking if --enable-ipv6 is specified... " >&6; }
16804 # Check whether --enable-ipv6 was given.
16805 if test ${enable_ipv6+y}
16806 then :
16807 enableval=$enable_ipv6; case "$enableval" in
16808 no)
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 printf "%s\n" "no" >&6; }
16811 ipv6=no
16812 ;;
16813 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 printf "%s\n" "yes" >&6; }
16815 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
16816
16817 ipv6=yes
16818 ;;
16819 esac
16820 else $as_nop
16821
16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 /* AF_INET6 available check */
16825 #include <sys/types.h>
16826 #include <sys/socket.h>
16827 int
16828 main (void)
16829 {
16830 int domain = AF_INET6;
16831 ;
16832 return 0;
16833 }
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"
16836 then :
16837
16838 ipv6=yes
16839
16840 else $as_nop
16841
16842 ipv6=no
16843
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16846
16847 case $ac_sys_system in #(
16848 WASI) :
16849 ipv6=no
16850 ;; #(
16851 *) :
16852 ;;
16853 esac
16854
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
16856 printf "%s\n" "$ipv6" >&6; }
16857
16858 if test "$ipv6" = "yes"; then
16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
16860 printf %s "checking if RFC2553 API is available... " >&6; }
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863
16864 #include <sys/types.h>
16865 #include <netinet/in.h>
16866 int
16867 main (void)
16868 {
16869 struct sockaddr_in6 x;
16870 x.sin6_scope_id;
16871 ;
16872 return 0;
16873 }
16874
16875 _ACEOF
16876 if ac_fn_c_try_compile "$LINENO"
16877 then :
16878
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880 printf "%s\n" "yes" >&6; }
16881 ipv6=yes
16882
16883 else $as_nop
16884
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 printf "%s\n" "no" >&6; }
16887 ipv6=no
16888
16889 fi
16890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16891 fi
16892
16893 if test "$ipv6" = "yes"; then
16894 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
16895
16896 fi
16897
16898 fi
16899
16900
16901 ipv6type=unknown
16902 ipv6lib=none
16903 ipv6trylibc=no
16904
16905 if test "$ipv6" = yes -a "$cross_compiling" = no; then
16906 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
16907 do
16908 case $i in
16909 inria)
16910
16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
16912 printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
16913 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
16914 then :
16915 printf %s "(cached) " >&6
16916 else $as_nop
16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h. */
16919 #include <netinet/in.h>
16920 int
16921 main (void)
16922 {
16923
16924 #ifdef IPV6_INRIA_VERSION
16925 int ok;
16926 (void)ok;
16927 #else
16928 choke me
16929 #endif
16930
16931 ;
16932 return 0;
16933 }
16934 _ACEOF
16935 if ac_fn_c_try_compile "$LINENO"
16936 then :
16937 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes
16938 else $as_nop
16939 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16942 fi
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
16944 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
16945 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
16946 then :
16947 ipv6type=$i
16948 fi
16949 ;;
16950 kame)
16951
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
16953 printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; }
16954 if test ${ac_cv_defined___KAME___netinet_in_h+y}
16955 then :
16956 printf %s "(cached) " >&6
16957 else $as_nop
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <netinet/in.h>
16961 int
16962 main (void)
16963 {
16964
16965 #ifdef __KAME__
16966 int ok;
16967 (void)ok;
16968 #else
16969 choke me
16970 #endif
16971
16972 ;
16973 return 0;
16974 }
16975 _ACEOF
16976 if ac_fn_c_try_compile "$LINENO"
16977 then :
16978 ac_cv_defined___KAME___netinet_in_h=yes
16979 else $as_nop
16980 ac_cv_defined___KAME___netinet_in_h=no
16981 fi
16982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16983 fi
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
16985 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
16986 if test $ac_cv_defined___KAME___netinet_in_h != "no"
16987 then :
16988 ipv6type=$i
16989 ipv6lib=inet6
16990 ipv6libdir=/usr/local/v6/lib
16991 ipv6trylibc=yes
16992 fi
16993 ;;
16994 linux-glibc)
16995
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
16997 printf %s "checking for __GLIBC__ defined in features.h... " >&6; }
16998 if test ${ac_cv_defined___GLIBC___features_h+y}
16999 then :
17000 printf %s "(cached) " >&6
17001 else $as_nop
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 #include <features.h>
17005 int
17006 main (void)
17007 {
17008
17009 #ifdef __GLIBC__
17010 int ok;
17011 (void)ok;
17012 #else
17013 choke me
17014 #endif
17015
17016 ;
17017 return 0;
17018 }
17019 _ACEOF
17020 if ac_fn_c_try_compile "$LINENO"
17021 then :
17022 ac_cv_defined___GLIBC___features_h=yes
17023 else $as_nop
17024 ac_cv_defined___GLIBC___features_h=no
17025 fi
17026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17027 fi
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
17029 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
17030 if test $ac_cv_defined___GLIBC___features_h != "no"
17031 then :
17032 ipv6type=$i
17033 ipv6trylibc=yes
17034 fi
17035 ;;
17036 linux-inet6)
17037 if test -d /usr/inet6; then
17038 ipv6type=$i
17039 ipv6lib=inet6
17040 ipv6libdir=/usr/inet6/lib
17041 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
17042 fi
17043 ;;
17044 solaris)
17045 if test -f /etc/netconfig; then
17046 if $GREP -q tcp6 /etc/netconfig; then
17047 ipv6type=$i
17048 ipv6trylibc=yes
17049 fi
17050 fi
17051 ;;
17052 toshiba)
17053
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
17055 printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
17056 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
17057 then :
17058 printf %s "(cached) " >&6
17059 else $as_nop
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 #include <sys/param.h>
17063 int
17064 main (void)
17065 {
17066
17067 #ifdef _TOSHIBA_INET6
17068 int ok;
17069 (void)ok;
17070 #else
17071 choke me
17072 #endif
17073
17074 ;
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"
17079 then :
17080 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes
17081 else $as_nop
17082 ac_cv_defined__TOSHIBA_INET6_sys_param_h=no
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17085 fi
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
17087 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
17088 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
17089 then :
17090 ipv6type=$i
17091 ipv6lib=inet6
17092 ipv6libdir=/usr/local/v6/lib
17093 fi
17094 ;;
17095 v6d)
17096
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
17098 printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
17099 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
17100 then :
17101 printf %s "(cached) " >&6
17102 else $as_nop
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 #include </usr/local/v6/include/sys/v6config.h>
17106 int
17107 main (void)
17108 {
17109
17110 #ifdef __V6D__
17111 int ok;
17112 (void)ok;
17113 #else
17114 choke me
17115 #endif
17116
17117 ;
17118 return 0;
17119 }
17120 _ACEOF
17121 if ac_fn_c_try_compile "$LINENO"
17122 then :
17123 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes
17124 else $as_nop
17125 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17128 fi
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
17130 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
17131 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
17132 then :
17133 ipv6type=$i
17134 ipv6lib=v6
17135 ipv6libdir=/usr/local/v6/lib
17136 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
17137 fi
17138 ;;
17139 zeta)
17140
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
17142 printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
17143 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
17144 then :
17145 printf %s "(cached) " >&6
17146 else $as_nop
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <sys/param.h>
17150 int
17151 main (void)
17152 {
17153
17154 #ifdef _ZETA_MINAMI_INET6
17155 int ok;
17156 (void)ok;
17157 #else
17158 choke me
17159 #endif
17160
17161 ;
17162 return 0;
17163 }
17164 _ACEOF
17165 if ac_fn_c_try_compile "$LINENO"
17166 then :
17167 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes
17168 else $as_nop
17169 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no
17170 fi
17171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17172 fi
17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
17174 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
17175 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
17176 then :
17177 ipv6type=$i
17178 ipv6lib=inet6
17179 ipv6libdir=/usr/local/v6/lib
17180 fi
17181 ;;
17182 esac
17183 if test "$ipv6type" != "unknown"; then
17184 break
17185 fi
17186 done
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
17188 printf %s "checking ipv6 stack type... " >&6; }
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
17190 printf "%s\n" "$ipv6type" >&6; }
17191 fi
17192
17193 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
17195 printf %s "checking ipv6 library... " >&6; }
17196 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
17197 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
17199 printf "%s\n" "lib$ipv6lib" >&6; }
17200 else
17201 if test "x$ipv6trylibc" = xyes
17202 then :
17203
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
17205 printf "%s\n" "libc" >&6; }
17206
17207 else $as_nop
17208
17209 as_fn_error $? "No $ipv6lib library found; cannot continue. You need to fetch lib$ipv6lib.a from appropriate ipv6 kit and compile beforehand." "$LINENO" 5
17210
17211 fi
17212 fi
17213 fi
17214
17215
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
17217 printf %s "checking CAN_RAW_FD_FRAMES... " >&6; }
17218 if test ${ac_cv_can_raw_fd_frames+y}
17219 then :
17220 printf %s "(cached) " >&6
17221 else $as_nop
17222
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 /* CAN_RAW_FD_FRAMES available check */
17226 #include <linux/can/raw.h>
17227 int
17228 main (void)
17229 {
17230 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_compile "$LINENO"
17236 then :
17237 ac_cv_can_raw_fd_frames=yes
17238 else $as_nop
17239 ac_cv_can_raw_fd_frames=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17242
17243 fi
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
17245 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
17246 if test "x$ac_cv_can_raw_fd_frames" = xyes
17247 then :
17248
17249
17250 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
17251
17252
17253 fi
17254
17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
17256 printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
17257 if test ${ac_cv_can_raw_join_filters+y}
17258 then :
17259 printf %s "(cached) " >&6
17260 else $as_nop
17261
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17264
17265 #include <linux/can/raw.h>
17266 int
17267 main (void)
17268 {
17269 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_compile "$LINENO"
17275 then :
17276 ac_cv_can_raw_join_filters=yes
17277 else $as_nop
17278 ac_cv_can_raw_join_filters=no
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17281
17282 fi
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
17284 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
17285 if test "x$ac_cv_can_raw_join_filters" = xyes
17286 then :
17287
17288
17289 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
17290
17291
17292 fi
17293
17294 # Check for --with-doc-strings
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
17296 printf %s "checking for --with-doc-strings... " >&6; }
17297
17298 # Check whether --with-doc-strings was given.
17299 if test ${with_doc_strings+y}
17300 then :
17301 withval=$with_doc_strings;
17302 fi
17303
17304
17305 if test -z "$with_doc_strings"
17306 then with_doc_strings="yes"
17307 fi
17308 if test "$with_doc_strings" != "no"
17309 then
17310
17311 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
17312
17313 fi
17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
17315 printf "%s\n" "$with_doc_strings" >&6; }
17316
17317 # Check for stdatomic.h, required for mimalloc.
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
17319 printf %s "checking for stdatomic.h... " >&6; }
17320 if test ${ac_cv_header_stdatomic_h+y}
17321 then :
17322 printf %s "(cached) " >&6
17323 else $as_nop
17324
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327
17328
17329 #include <stdatomic.h>
17330 atomic_int int_var;
17331 atomic_uintptr_t uintptr_var;
17332 int main() {
17333 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17334 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17335 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
17336 return 0;
17337 }
17338
17339
17340 _ACEOF
17341 if ac_fn_c_try_link "$LINENO"
17342 then :
17343 ac_cv_header_stdatomic_h=yes
17344 else $as_nop
17345 ac_cv_header_stdatomic_h=no
17346 fi
17347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17348 conftest$ac_exeext conftest.$ac_ext
17349
17350 fi
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
17352 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
17353
17354 if test "x$ac_cv_header_stdatomic_h" = xyes
17355 then :
17356
17357
17358 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
17359
17360
17361 fi
17362
17363 # Check for GCC >= 4.7 and clang __atomic builtin functions
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
17365 printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
17366 if test ${ac_cv_builtin_atomic+y}
17367 then :
17368 printf %s "(cached) " >&6
17369 else $as_nop
17370
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373
17374
17375 int val;
17376 int main() {
17377 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17378 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17379 return 0;
17380 }
17381
17382
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"
17385 then :
17386 ac_cv_builtin_atomic=yes
17387 else $as_nop
17388 ac_cv_builtin_atomic=no
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17391 conftest$ac_exeext conftest.$ac_ext
17392
17393 fi
17394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
17395 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
17396
17397 if test "x$ac_cv_builtin_atomic" = xyes
17398 then :
17399
17400
17401 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
17402
17403
17404 fi
17405
17406 # --with-mimalloc
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
17408 printf %s "checking for --with-mimalloc... " >&6; }
17409
17410 # Check whether --with-mimalloc was given.
17411 if test ${with_mimalloc+y}
17412 then :
17413 withval=$with_mimalloc;
17414 else $as_nop
17415 with_mimalloc="$ac_cv_header_stdatomic_h"
17416
17417 fi
17418
17419
17420 if test "$with_mimalloc" != no; then
17421 if test "$ac_cv_header_stdatomic_h" != yes; then
17422 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
17423 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
17424 fi
17425 with_mimalloc=yes
17426
17427 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
17428
17429 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)'
17430
17431 elif test "$disable_gil" = "yes"; then
17432 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
17433 fi
17434
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
17436 printf "%s\n" "$with_mimalloc" >&6; }
17437 INSTALL_MIMALLOC=$with_mimalloc
17438
17439
17440
17441 # Check for Python-specific malloc support
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
17443 printf %s "checking for --with-pymalloc... " >&6; }
17444
17445 # Check whether --with-pymalloc was given.
17446 if test ${with_pymalloc+y}
17447 then :
17448 withval=$with_pymalloc;
17449 fi
17450
17451
17452 if test -z "$with_pymalloc"
17453 then
17454 case $ac_sys_system in #(
17455 Emscripten) :
17456 with_pymalloc="no" ;; #(
17457 WASI) :
17458 with_pymalloc="no" ;; #(
17459 *) :
17460 with_pymalloc="yes"
17461 ;;
17462 esac
17463 fi
17464 if test "$with_pymalloc" != "no"
17465 then
17466
17467 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
17468
17469 fi
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
17471 printf "%s\n" "$with_pymalloc" >&6; }
17472
17473 # Check whether objects such as float, tuple and dict are using
17474 # freelists to optimization memory allocation.
17475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5
17476 printf %s "checking for --with-freelists... " >&6; }
17477
17478 # Check whether --with-freelists was given.
17479 if test ${with_freelists+y}
17480 then :
17481 withval=$with_freelists;
17482 fi
17483
17484
17485 if test -z "$with_freelists"
17486 then
17487 with_freelists="yes"
17488 fi
17489 if test "$with_freelists" != "no"
17490 then
17491
17492 printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h
17493
17494 fi
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5
17496 printf "%s\n" "$with_freelists" >&6; }
17497
17498 # Check for --with-c-locale-coercion
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
17500 printf %s "checking for --with-c-locale-coercion... " >&6; }
17501
17502 # Check whether --with-c-locale-coercion was given.
17503 if test ${with_c_locale_coercion+y}
17504 then :
17505 withval=$with_c_locale_coercion;
17506 fi
17507
17508
17509 if test -z "$with_c_locale_coercion"
17510 then
17511 with_c_locale_coercion="yes"
17512 fi
17513 if test "$with_c_locale_coercion" != "no"
17514 then
17515
17516 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
17517
17518 fi
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
17520 printf "%s\n" "$with_c_locale_coercion" >&6; }
17521
17522 # Check for Valgrind support
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
17524 printf %s "checking for --with-valgrind... " >&6; }
17525
17526 # Check whether --with-valgrind was given.
17527 if test ${with_valgrind+y}
17528 then :
17529 withval=$with_valgrind;
17530 else $as_nop
17531 with_valgrind=no
17532
17533 fi
17534
17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
17536 printf "%s\n" "$with_valgrind" >&6; }
17537 if test "$with_valgrind" != no; then
17538 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
17539 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
17540 then :
17541
17542 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
17543
17544 else $as_nop
17545 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
17546
17547 fi
17548
17549 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
17550 fi
17551
17552 # Check for DTrace support
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
17554 printf %s "checking for --with-dtrace... " >&6; }
17555
17556 # Check whether --with-dtrace was given.
17557 if test ${with_dtrace+y}
17558 then :
17559 withval=$with_dtrace;
17560 else $as_nop
17561 with_dtrace=no
17562 fi
17563
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
17565 printf "%s\n" "$with_dtrace" >&6; }
17566
17567
17568
17569
17570
17571 DTRACE=
17572 DTRACE_HEADERS=
17573 DTRACE_OBJS=
17574
17575 if test "$with_dtrace" = "yes"
17576 then
17577 # Extract the first word of "dtrace", so it can be a program name with args.
17578 set dummy dtrace; ac_word=$2
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17580 printf %s "checking for $ac_word... " >&6; }
17581 if test ${ac_cv_path_DTRACE+y}
17582 then :
17583 printf %s "(cached) " >&6
17584 else $as_nop
17585 case $DTRACE in
17586 [\\/]* | ?:[\\/]*)
17587 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
17588 ;;
17589 *)
17590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17591 for as_dir in $PATH
17592 do
17593 IFS=$as_save_IFS
17594 case $as_dir in #(((
17595 '') as_dir=./ ;;
17596 */) ;;
17597 *) as_dir=$as_dir/ ;;
17598 esac
17599 for ac_exec_ext in '' $ac_executable_extensions; do
17600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17601 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
17602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17603 break 2
17604 fi
17605 done
17606 done
17607 IFS=$as_save_IFS
17608
17609 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
17610 ;;
17611 esac
17612 fi
17613 DTRACE=$ac_cv_path_DTRACE
17614 if test -n "$DTRACE"; then
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
17616 printf "%s\n" "$DTRACE" >&6; }
17617 else
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 printf "%s\n" "no" >&6; }
17620 fi
17621
17622
17623 if test "$DTRACE" = "not found"; then
17624 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
17625 fi
17626
17627 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
17628
17629 DTRACE_HEADERS="Include/pydtrace_probes.h"
17630
17631 # On OS X, DTrace providers do not need to be explicitly compiled and
17632 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
17633 # generation flag '-G'. We check for presence of this flag, rather than
17634 # hardcoding support by OS, in the interest of robustness.
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
17636 printf %s "checking whether DTrace probes require linking... " >&6; }
17637 if test ${ac_cv_dtrace_link+y}
17638 then :
17639 printf %s "(cached) " >&6
17640 else $as_nop
17641 ac_cv_dtrace_link=no
17642 echo 'BEGIN{}' > conftest.d
17643 "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
17644 ac_cv_dtrace_link=yes
17645
17646 fi
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
17648 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
17649 if test "$ac_cv_dtrace_link" = "yes"; then
17650 DTRACE_OBJS="Python/pydtrace.o"
17651 fi
17652 fi
17653
17654 PLATFORM_HEADERS=
17655 PLATFORM_OBJS=
17656
17657 case $ac_sys_system in #(
17658 Emscripten) :
17659
17660 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o'
17661 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
17662 ;; #(
17663 *) :
17664 ;;
17665 esac
17666
17667
17668
17669 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17670
17671 DLINCLDIR=.
17672
17673 # the dlopen() function means we might want to use dynload_shlib.o. some
17674 # platforms have dlopen(), but don't want to use it.
17675 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17676 if test "x$ac_cv_func_dlopen" = xyes
17677 then :
17678 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
17679
17680 fi
17681
17682
17683 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17684 # loading of modules.
17685
17686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
17687 printf %s "checking DYNLOADFILE... " >&6; }
17688 if test -z "$DYNLOADFILE"
17689 then
17690 case $ac_sys_system/$ac_sys_release in
17691 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
17692 *)
17693 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17694 # out any dynamic loading
17695 if test "$ac_cv_func_dlopen" = yes
17696 then DYNLOADFILE="dynload_shlib.o"
17697 else DYNLOADFILE="dynload_stub.o"
17698 fi
17699 ;;
17700 esac
17701 fi
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
17703 printf "%s\n" "$DYNLOADFILE" >&6; }
17704 if test "$DYNLOADFILE" != "dynload_stub.o"
17705 then
17706
17707 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
17708
17709 fi
17710
17711 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17712
17713
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
17715 printf %s "checking MACHDEP_OBJS... " >&6; }
17716 if test -z "$MACHDEP_OBJS"
17717 then
17718 MACHDEP_OBJS=$extra_machdep_objs
17719 else
17720 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
17721 fi
17722 if test -z "$MACHDEP_OBJS"; then
17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
17724 printf "%s\n" "none" >&6; }
17725 else
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
17727 printf "%s\n" "$MACHDEP_OBJS" >&6; }
17728 fi
17729
17730 if test "$ac_sys_system" = "Linux-android"; then
17731 # When these functions are used in an unprivileged process, they crash rather
17732 # than returning an error.
17733 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname
17734 setregid setresgid setresuid setreuid setuid"
17735
17736 # These functions are unimplemented and always return an error
17737 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
17738 blocked_funcs="$blocked_funcs sem_open sem_unlink"
17739
17740 # Before API level 23, when fchmodat is called with the unimplemented flag
17741 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
17742 # follows the symlink.
17743 if test "$ANDROID_API_LEVEL" -lt 23; then
17744 blocked_funcs="$blocked_funcs fchmodat"
17745 fi
17746
17747 for name in $blocked_funcs; do
17748 as_func_var=`printf "%s\n" "ac_cv_func_$name" | $as_tr_sh`
17749
17750 eval "$as_func_var=no"
17751
17752 done
17753 fi
17754
17755 # checks for library functions
17756 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
17757 if test "x$ac_cv_func_accept4" = xyes
17758 then :
17759 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
17760
17761 fi
17762 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17763 if test "x$ac_cv_func_alarm" = xyes
17764 then :
17765 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
17766
17767 fi
17768 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17769 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
17770 then :
17771 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
17772
17773 fi
17774 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
17775 if test "x$ac_cv_func_chmod" = xyes
17776 then :
17777 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
17778
17779 fi
17780 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
17781 if test "x$ac_cv_func_chown" = xyes
17782 then :
17783 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
17784
17785 fi
17786 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
17787 if test "x$ac_cv_func_clock" = xyes
17788 then :
17789 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
17790
17791 fi
17792 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17793 if test "x$ac_cv_func_closefrom" = xyes
17794 then :
17795 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
17796
17797 fi
17798 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
17799 if test "x$ac_cv_func_close_range" = xyes
17800 then :
17801 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
17802
17803 fi
17804 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
17805 if test "x$ac_cv_func_confstr" = xyes
17806 then :
17807 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
17808
17809 fi
17810 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
17811 if test "x$ac_cv_func_copy_file_range" = xyes
17812 then :
17813 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
17814
17815 fi
17816 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
17817 if test "x$ac_cv_func_ctermid" = xyes
17818 then :
17819 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
17820
17821 fi
17822 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
17823 if test "x$ac_cv_func_dup" = xyes
17824 then :
17825 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
17826
17827 fi
17828 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
17829 if test "x$ac_cv_func_dup3" = xyes
17830 then :
17831 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
17832
17833 fi
17834 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
17835 if test "x$ac_cv_func_execv" = xyes
17836 then :
17837 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
17838
17839 fi
17840 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
17841 if test "x$ac_cv_func_explicit_bzero" = xyes
17842 then :
17843 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
17844
17845 fi
17846 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
17847 if test "x$ac_cv_func_explicit_memset" = xyes
17848 then :
17849 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
17850
17851 fi
17852 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
17853 if test "x$ac_cv_func_faccessat" = xyes
17854 then :
17855 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
17856
17857 fi
17858 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
17859 if test "x$ac_cv_func_fchmod" = xyes
17860 then :
17861 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
17862
17863 fi
17864 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
17865 if test "x$ac_cv_func_fchmodat" = xyes
17866 then :
17867 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
17868
17869 fi
17870 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
17871 if test "x$ac_cv_func_fchown" = xyes
17872 then :
17873 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
17874
17875 fi
17876 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
17877 if test "x$ac_cv_func_fchownat" = xyes
17878 then :
17879 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
17880
17881 fi
17882 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
17883 if test "x$ac_cv_func_fdopendir" = xyes
17884 then :
17885 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
17886
17887 fi
17888 ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
17889 if test "x$ac_cv_func_fdwalk" = xyes
17890 then :
17891 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
17892
17893 fi
17894 ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
17895 if test "x$ac_cv_func_fexecve" = xyes
17896 then :
17897 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
17898
17899 fi
17900 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17901 if test "x$ac_cv_func_fork" = xyes
17902 then :
17903 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
17904
17905 fi
17906 ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1"
17907 if test "x$ac_cv_func_fork1" = xyes
17908 then :
17909 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
17910
17911 fi
17912 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
17913 if test "x$ac_cv_func_fpathconf" = xyes
17914 then :
17915 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
17916
17917 fi
17918 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
17919 if test "x$ac_cv_func_fstatat" = xyes
17920 then :
17921 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
17922
17923 fi
17924 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
17925 if test "x$ac_cv_func_ftime" = xyes
17926 then :
17927 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
17928
17929 fi
17930 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
17931 if test "x$ac_cv_func_ftruncate" = xyes
17932 then :
17933 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
17934
17935 fi
17936 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
17937 if test "x$ac_cv_func_futimens" = xyes
17938 then :
17939 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
17940
17941 fi
17942 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
17943 if test "x$ac_cv_func_futimes" = xyes
17944 then :
17945 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
17946
17947 fi
17948 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
17949 if test "x$ac_cv_func_futimesat" = xyes
17950 then :
17951 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
17952
17953 fi
17954 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
17955 if test "x$ac_cv_func_gai_strerror" = xyes
17956 then :
17957 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
17958
17959 fi
17960 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
17961 if test "x$ac_cv_func_getegid" = xyes
17962 then :
17963 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
17964
17965 fi
17966 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
17967 if test "x$ac_cv_func_geteuid" = xyes
17968 then :
17969 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
17970
17971 fi
17972 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
17973 if test "x$ac_cv_func_getgid" = xyes
17974 then :
17975 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
17976
17977 fi
17978 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
17979 if test "x$ac_cv_func_getgrent" = xyes
17980 then :
17981 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
17982
17983 fi
17984 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
17985 if test "x$ac_cv_func_getgrgid" = xyes
17986 then :
17987 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
17988
17989 fi
17990 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
17991 if test "x$ac_cv_func_getgrgid_r" = xyes
17992 then :
17993 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
17994
17995 fi
17996 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
17997 if test "x$ac_cv_func_getgrnam_r" = xyes
17998 then :
17999 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
18000
18001 fi
18002 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
18003 if test "x$ac_cv_func_getgrouplist" = xyes
18004 then :
18005 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
18006
18007 fi
18008 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
18009 if test "x$ac_cv_func_gethostname" = xyes
18010 then :
18011 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
18012
18013 fi
18014 ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer"
18015 if test "x$ac_cv_func_getitimer" = xyes
18016 then :
18017 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
18018
18019 fi
18020 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18021 if test "x$ac_cv_func_getloadavg" = xyes
18022 then :
18023 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
18024
18025 fi
18026 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
18027 if test "x$ac_cv_func_getlogin" = xyes
18028 then :
18029 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
18030
18031 fi
18032 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
18033 if test "x$ac_cv_func_getpeername" = xyes
18034 then :
18035 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
18036
18037 fi
18038 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
18039 if test "x$ac_cv_func_getpgid" = xyes
18040 then :
18041 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
18042
18043 fi
18044 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
18045 if test "x$ac_cv_func_getpid" = xyes
18046 then :
18047 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
18048
18049 fi
18050 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
18051 if test "x$ac_cv_func_getppid" = xyes
18052 then :
18053 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
18054
18055 fi
18056 ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority"
18057 if test "x$ac_cv_func_getpriority" = xyes
18058 then :
18059 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
18060
18061 fi
18062 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
18063 if test "x$ac_cv_func__getpty" = xyes
18064 then :
18065 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
18066
18067 fi
18068 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
18069 if test "x$ac_cv_func_getpwent" = xyes
18070 then :
18071 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
18072
18073 fi
18074 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
18075 if test "x$ac_cv_func_getpwnam_r" = xyes
18076 then :
18077 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
18078
18079 fi
18080 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
18081 if test "x$ac_cv_func_getpwuid" = xyes
18082 then :
18083 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
18084
18085 fi
18086 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
18087 if test "x$ac_cv_func_getpwuid_r" = xyes
18088 then :
18089 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
18090
18091 fi
18092 ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
18093 if test "x$ac_cv_func_getresgid" = xyes
18094 then :
18095 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
18096
18097 fi
18098 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
18099 if test "x$ac_cv_func_getresuid" = xyes
18100 then :
18101 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
18102
18103 fi
18104 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
18105 if test "x$ac_cv_func_getrusage" = xyes
18106 then :
18107 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
18108
18109 fi
18110 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
18111 if test "x$ac_cv_func_getsid" = xyes
18112 then :
18113 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
18114
18115 fi
18116 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
18117 if test "x$ac_cv_func_getspent" = xyes
18118 then :
18119 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
18120
18121 fi
18122 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
18123 if test "x$ac_cv_func_getspnam" = xyes
18124 then :
18125 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
18126
18127 fi
18128 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
18129 if test "x$ac_cv_func_getuid" = xyes
18130 then :
18131 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
18132
18133 fi
18134 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
18135 if test "x$ac_cv_func_getwd" = xyes
18136 then :
18137 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
18138
18139 fi
18140 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18141 if test "x$ac_cv_func_grantpt" = xyes
18142 then :
18143 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
18144
18145 fi
18146 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
18147 if test "x$ac_cv_func_if_nameindex" = xyes
18148 then :
18149 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
18150
18151 fi
18152 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
18153 if test "x$ac_cv_func_initgroups" = xyes
18154 then :
18155 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
18156
18157 fi
18158 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
18159 if test "x$ac_cv_func_kill" = xyes
18160 then :
18161 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
18162
18163 fi
18164 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
18165 if test "x$ac_cv_func_killpg" = xyes
18166 then :
18167 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
18168
18169 fi
18170 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
18171 if test "x$ac_cv_func_lchown" = xyes
18172 then :
18173 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
18174
18175 fi
18176 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
18177 if test "x$ac_cv_func_linkat" = xyes
18178 then :
18179 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
18180
18181 fi
18182 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
18183 if test "x$ac_cv_func_lockf" = xyes
18184 then :
18185 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
18186
18187 fi
18188 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18189 if test "x$ac_cv_func_lstat" = xyes
18190 then :
18191 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18192
18193 fi
18194 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
18195 if test "x$ac_cv_func_lutimes" = xyes
18196 then :
18197 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
18198
18199 fi
18200 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
18201 if test "x$ac_cv_func_madvise" = xyes
18202 then :
18203 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
18204
18205 fi
18206 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
18207 if test "x$ac_cv_func_mbrtowc" = xyes
18208 then :
18209 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
18210
18211 fi
18212 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
18213 if test "x$ac_cv_func_memrchr" = xyes
18214 then :
18215 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
18216
18217 fi
18218 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
18219 if test "x$ac_cv_func_mkdirat" = xyes
18220 then :
18221 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
18222
18223 fi
18224 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
18225 if test "x$ac_cv_func_mkfifo" = xyes
18226 then :
18227 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
18228
18229 fi
18230 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
18231 if test "x$ac_cv_func_mkfifoat" = xyes
18232 then :
18233 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
18234
18235 fi
18236 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
18237 if test "x$ac_cv_func_mknod" = xyes
18238 then :
18239 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
18240
18241 fi
18242 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
18243 if test "x$ac_cv_func_mknodat" = xyes
18244 then :
18245 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
18246
18247 fi
18248 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
18249 if test "x$ac_cv_func_mktime" = xyes
18250 then :
18251 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
18252
18253 fi
18254 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18255 if test "x$ac_cv_func_mmap" = xyes
18256 then :
18257 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18258
18259 fi
18260 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
18261 if test "x$ac_cv_func_mremap" = xyes
18262 then :
18263 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
18264
18265 fi
18266 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
18267 if test "x$ac_cv_func_nice" = xyes
18268 then :
18269 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
18270
18271 fi
18272 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
18273 if test "x$ac_cv_func_openat" = xyes
18274 then :
18275 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
18276
18277 fi
18278 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
18279 if test "x$ac_cv_func_opendir" = xyes
18280 then :
18281 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
18282
18283 fi
18284 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
18285 if test "x$ac_cv_func_pathconf" = xyes
18286 then :
18287 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
18288
18289 fi
18290 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
18291 if test "x$ac_cv_func_pause" = xyes
18292 then :
18293 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
18294
18295 fi
18296 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
18297 if test "x$ac_cv_func_pipe" = xyes
18298 then :
18299 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
18300
18301 fi
18302 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
18303 if test "x$ac_cv_func_pipe2" = xyes
18304 then :
18305 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
18306
18307 fi
18308 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
18309 if test "x$ac_cv_func_plock" = xyes
18310 then :
18311 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
18312
18313 fi
18314 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
18315 if test "x$ac_cv_func_poll" = xyes
18316 then :
18317 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
18318
18319 fi
18320 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18321 if test "x$ac_cv_func_posix_fadvise" = xyes
18322 then :
18323 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
18324
18325 fi
18326 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
18327 if test "x$ac_cv_func_posix_fallocate" = xyes
18328 then :
18329 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
18330
18331 fi
18332 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
18333 if test "x$ac_cv_func_posix_openpt" = xyes
18334 then :
18335 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
18336
18337 fi
18338 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
18339 if test "x$ac_cv_func_posix_spawn" = xyes
18340 then :
18341 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
18342
18343 fi
18344 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
18345 if test "x$ac_cv_func_posix_spawnp" = xyes
18346 then :
18347 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
18348
18349 fi
18350 ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
18351 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
18352 then :
18353 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
18354
18355 fi
18356 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
18357 if test "x$ac_cv_func_pread" = xyes
18358 then :
18359 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
18360
18361 fi
18362 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
18363 if test "x$ac_cv_func_preadv" = xyes
18364 then :
18365 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
18366
18367 fi
18368 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
18369 if test "x$ac_cv_func_preadv2" = xyes
18370 then :
18371 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
18372
18373 fi
18374 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18375 if test "x$ac_cv_func_process_vm_readv" = xyes
18376 then :
18377 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18378
18379 fi
18380 ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
18381 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
18382 then :
18383 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
18384
18385 fi
18386 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18387 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18388 then :
18389 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18390
18391 fi
18392 ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init"
18393 if test "x$ac_cv_func_pthread_init" = xyes
18394 then :
18395 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
18396
18397 fi
18398 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18399 if test "x$ac_cv_func_pthread_kill" = xyes
18400 then :
18401 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
18402
18403 fi
18404 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
18405 if test "x$ac_cv_func_ptsname" = xyes
18406 then :
18407 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
18408
18409 fi
18410 ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
18411 if test "x$ac_cv_func_ptsname_r" = xyes
18412 then :
18413 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
18414
18415 fi
18416 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
18417 if test "x$ac_cv_func_pwrite" = xyes
18418 then :
18419 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
18420
18421 fi
18422 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
18423 if test "x$ac_cv_func_pwritev" = xyes
18424 then :
18425 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
18426
18427 fi
18428 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
18429 if test "x$ac_cv_func_pwritev2" = xyes
18430 then :
18431 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
18432
18433 fi
18434 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18435 if test "x$ac_cv_func_readlink" = xyes
18436 then :
18437 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18438
18439 fi
18440 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
18441 if test "x$ac_cv_func_readlinkat" = xyes
18442 then :
18443 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
18444
18445 fi
18446 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
18447 if test "x$ac_cv_func_readv" = xyes
18448 then :
18449 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
18450
18451 fi
18452 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
18453 if test "x$ac_cv_func_realpath" = xyes
18454 then :
18455 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
18456
18457 fi
18458 ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat"
18459 if test "x$ac_cv_func_renameat" = xyes
18460 then :
18461 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
18462
18463 fi
18464 ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
18465 if test "x$ac_cv_func_rtpSpawn" = xyes
18466 then :
18467 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
18468
18469 fi
18470 ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18471 if test "x$ac_cv_func_sched_get_priority_max" = xyes
18472 then :
18473 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
18474
18475 fi
18476 ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
18477 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
18478 then :
18479 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
18480
18481 fi
18482 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
18483 if test "x$ac_cv_func_sched_setaffinity" = xyes
18484 then :
18485 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
18486
18487 fi
18488 ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
18489 if test "x$ac_cv_func_sched_setparam" = xyes
18490 then :
18491 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
18492
18493 fi
18494 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
18495 if test "x$ac_cv_func_sched_setscheduler" = xyes
18496 then :
18497 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
18498
18499 fi
18500 ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
18501 if test "x$ac_cv_func_sem_clockwait" = xyes
18502 then :
18503 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
18504
18505 fi
18506 ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
18507 if test "x$ac_cv_func_sem_getvalue" = xyes
18508 then :
18509 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
18510
18511 fi
18512 ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open"
18513 if test "x$ac_cv_func_sem_open" = xyes
18514 then :
18515 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
18516
18517 fi
18518 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
18519 if test "x$ac_cv_func_sem_timedwait" = xyes
18520 then :
18521 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
18522
18523 fi
18524 ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
18525 if test "x$ac_cv_func_sem_unlink" = xyes
18526 then :
18527 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
18528
18529 fi
18530 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
18531 if test "x$ac_cv_func_sendfile" = xyes
18532 then :
18533 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
18534
18535 fi
18536 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
18537 if test "x$ac_cv_func_setegid" = xyes
18538 then :
18539 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
18540
18541 fi
18542 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
18543 if test "x$ac_cv_func_seteuid" = xyes
18544 then :
18545 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
18546
18547 fi
18548 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
18549 if test "x$ac_cv_func_setgid" = xyes
18550 then :
18551 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
18552
18553 fi
18554 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
18555 if test "x$ac_cv_func_sethostname" = xyes
18556 then :
18557 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
18558
18559 fi
18560 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
18561 if test "x$ac_cv_func_setitimer" = xyes
18562 then :
18563 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
18564
18565 fi
18566 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18567 if test "x$ac_cv_func_setlocale" = xyes
18568 then :
18569 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
18570
18571 fi
18572 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
18573 if test "x$ac_cv_func_setpgid" = xyes
18574 then :
18575 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
18576
18577 fi
18578 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
18579 if test "x$ac_cv_func_setpgrp" = xyes
18580 then :
18581 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
18582
18583 fi
18584 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
18585 if test "x$ac_cv_func_setpriority" = xyes
18586 then :
18587 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
18588
18589 fi
18590 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18591 if test "x$ac_cv_func_setregid" = xyes
18592 then :
18593 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
18594
18595 fi
18596 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18597 if test "x$ac_cv_func_setresgid" = xyes
18598 then :
18599 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
18600
18601 fi
18602 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18603 if test "x$ac_cv_func_setresuid" = xyes
18604 then :
18605 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
18606
18607 fi
18608 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18609 if test "x$ac_cv_func_setreuid" = xyes
18610 then :
18611 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
18612
18613 fi
18614 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
18615 if test "x$ac_cv_func_setsid" = xyes
18616 then :
18617 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
18618
18619 fi
18620 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
18621 if test "x$ac_cv_func_setuid" = xyes
18622 then :
18623 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
18624
18625 fi
18626 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
18627 if test "x$ac_cv_func_setvbuf" = xyes
18628 then :
18629 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
18630
18631 fi
18632 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18633 if test "x$ac_cv_func_shutdown" = xyes
18634 then :
18635 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
18636
18637 fi
18638 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
18639 if test "x$ac_cv_func_sigaction" = xyes
18640 then :
18641 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
18642
18643 fi
18644 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
18645 if test "x$ac_cv_func_sigaltstack" = xyes
18646 then :
18647 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
18648
18649 fi
18650 ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset"
18651 if test "x$ac_cv_func_sigfillset" = xyes
18652 then :
18653 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
18654
18655 fi
18656 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
18657 if test "x$ac_cv_func_siginterrupt" = xyes
18658 then :
18659 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
18660
18661 fi
18662 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
18663 if test "x$ac_cv_func_sigpending" = xyes
18664 then :
18665 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
18666
18667 fi
18668 ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
18669 if test "x$ac_cv_func_sigrelse" = xyes
18670 then :
18671 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
18672
18673 fi
18674 ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
18675 if test "x$ac_cv_func_sigtimedwait" = xyes
18676 then :
18677 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
18678
18679 fi
18680 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
18681 if test "x$ac_cv_func_sigwait" = xyes
18682 then :
18683 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
18684
18685 fi
18686 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
18687 if test "x$ac_cv_func_sigwaitinfo" = xyes
18688 then :
18689 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
18690
18691 fi
18692 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18693 if test "x$ac_cv_func_snprintf" = xyes
18694 then :
18695 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18696
18697 fi
18698 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
18699 if test "x$ac_cv_func_splice" = xyes
18700 then :
18701 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
18702
18703 fi
18704 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18705 if test "x$ac_cv_func_strftime" = xyes
18706 then :
18707 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18708
18709 fi
18710 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18711 if test "x$ac_cv_func_strlcpy" = xyes
18712 then :
18713 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18714
18715 fi
18716 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18717 if test "x$ac_cv_func_strsignal" = xyes
18718 then :
18719 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
18720
18721 fi
18722 ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat"
18723 if test "x$ac_cv_func_symlinkat" = xyes
18724 then :
18725 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
18726
18727 fi
18728 ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync"
18729 if test "x$ac_cv_func_sync" = xyes
18730 then :
18731 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
18732
18733 fi
18734 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
18735 if test "x$ac_cv_func_sysconf" = xyes
18736 then :
18737 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
18738
18739 fi
18740 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
18741 if test "x$ac_cv_func_tcgetpgrp" = xyes
18742 then :
18743 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
18744
18745 fi
18746 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18747 if test "x$ac_cv_func_tcsetpgrp" = xyes
18748 then :
18749 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
18750
18751 fi
18752 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
18753 if test "x$ac_cv_func_tempnam" = xyes
18754 then :
18755 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
18756
18757 fi
18758 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18759 if test "x$ac_cv_func_timegm" = xyes
18760 then :
18761 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
18762
18763 fi
18764 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
18765 if test "x$ac_cv_func_times" = xyes
18766 then :
18767 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
18768
18769 fi
18770 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
18771 if test "x$ac_cv_func_tmpfile" = xyes
18772 then :
18773 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
18774
18775 fi
18776 ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam"
18777 if test "x$ac_cv_func_tmpnam" = xyes
18778 then :
18779 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
18780
18781 fi
18782 ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
18783 if test "x$ac_cv_func_tmpnam_r" = xyes
18784 then :
18785 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
18786
18787 fi
18788 ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
18789 if test "x$ac_cv_func_truncate" = xyes
18790 then :
18791 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
18792
18793 fi
18794 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
18795 if test "x$ac_cv_func_ttyname" = xyes
18796 then :
18797 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
18798
18799 fi
18800 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
18801 if test "x$ac_cv_func_umask" = xyes
18802 then :
18803 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
18804
18805 fi
18806 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
18807 if test "x$ac_cv_func_uname" = xyes
18808 then :
18809 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
18810
18811 fi
18812 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
18813 if test "x$ac_cv_func_unlinkat" = xyes
18814 then :
18815 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
18816
18817 fi
18818 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
18819 if test "x$ac_cv_func_unlockpt" = xyes
18820 then :
18821 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
18822
18823 fi
18824 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
18825 if test "x$ac_cv_func_utimensat" = xyes
18826 then :
18827 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
18828
18829 fi
18830 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
18831 if test "x$ac_cv_func_utimes" = xyes
18832 then :
18833 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
18834
18835 fi
18836 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
18837 if test "x$ac_cv_func_vfork" = xyes
18838 then :
18839 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
18840
18841 fi
18842 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
18843 if test "x$ac_cv_func_wait" = xyes
18844 then :
18845 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
18846
18847 fi
18848 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
18849 if test "x$ac_cv_func_wait3" = xyes
18850 then :
18851 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
18852
18853 fi
18854 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
18855 if test "x$ac_cv_func_wait4" = xyes
18856 then :
18857 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
18858
18859 fi
18860 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
18861 if test "x$ac_cv_func_waitid" = xyes
18862 then :
18863 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
18864
18865 fi
18866 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
18867 if test "x$ac_cv_func_waitpid" = xyes
18868 then :
18869 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
18870
18871 fi
18872 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
18873 if test "x$ac_cv_func_wcscoll" = xyes
18874 then :
18875 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
18876
18877 fi
18878 ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
18879 if test "x$ac_cv_func_wcsftime" = xyes
18880 then :
18881 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
18882
18883 fi
18884 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
18885 if test "x$ac_cv_func_wcsxfrm" = xyes
18886 then :
18887 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
18888
18889 fi
18890 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
18891 if test "x$ac_cv_func_wmemcmp" = xyes
18892 then :
18893 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
18894
18895 fi
18896 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
18897 if test "x$ac_cv_func_writev" = xyes
18898 then :
18899 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
18900
18901 fi
18902
18903
18904 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
18905 # links. Some libc implementations have a stub lchmod implementation that always
18906 # returns an error.
18907 if test "$MACHDEP" != linux; then
18908 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
18909 if test "x$ac_cv_func_lchmod" = xyes
18910 then :
18911 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
18912
18913 fi
18914
18915 fi
18916
18917 # iOS defines some system methods that can be linked (so they are
18918 # found by configure), but either raise a compilation error (because the
18919 # header definition prevents usage - autoconf doesn't use the headers), or
18920 # raise an error if used at runtime. Force these symbols off.
18921 if test "$ac_sys_system" != "iOS" ; then
18922 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18923 if test "x$ac_cv_func_getentropy" = xyes
18924 then :
18925 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
18926
18927 fi
18928 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
18929 if test "x$ac_cv_func_getgroups" = xyes
18930 then :
18931 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
18932
18933 fi
18934 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
18935 if test "x$ac_cv_func_system" = xyes
18936 then :
18937 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
18938
18939 fi
18940
18941 fi
18942
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18944 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18945 if test ${ac_cv_c_undeclared_builtin_options+y}
18946 then :
18947 printf %s "(cached) " >&6
18948 else $as_nop
18949 ac_save_CFLAGS=$CFLAGS
18950 ac_cv_c_undeclared_builtin_options='cannot detect'
18951 for ac_arg in '' -fno-builtin; do
18952 CFLAGS="$ac_save_CFLAGS $ac_arg"
18953 # This test program should *not* compile successfully.
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956
18957 int
18958 main (void)
18959 {
18960 (void) strchr;
18961 ;
18962 return 0;
18963 }
18964 _ACEOF
18965 if ac_fn_c_try_compile "$LINENO"
18966 then :
18967
18968 else $as_nop
18969 # This test program should compile successfully.
18970 # No library function is consistently available on
18971 # freestanding implementations, so test against a dummy
18972 # declaration. Include always-available headers on the
18973 # off chance that they somehow elicit warnings.
18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h. */
18976 #include <float.h>
18977 #include <limits.h>
18978 #include <stdarg.h>
18979 #include <stddef.h>
18980 extern void ac_decl (int, char *);
18981
18982 int
18983 main (void)
18984 {
18985 (void) ac_decl (0, (char *) 0);
18986 (void) ac_decl;
18987
18988 ;
18989 return 0;
18990 }
18991 _ACEOF
18992 if ac_fn_c_try_compile "$LINENO"
18993 then :
18994 if test x"$ac_arg" = x
18995 then :
18996 ac_cv_c_undeclared_builtin_options='none needed'
18997 else $as_nop
18998 ac_cv_c_undeclared_builtin_options=$ac_arg
18999 fi
19000 break
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19003 fi
19004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19005 done
19006 CFLAGS=$ac_save_CFLAGS
19007
19008 fi
19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19010 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19011 case $ac_cv_c_undeclared_builtin_options in #(
19012 'cannot detect') :
19013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19014 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19015 as_fn_error $? "cannot make $CC report undeclared builtins
19016 See \`config.log' for more details" "$LINENO" 5; } ;; #(
19017 'none needed') :
19018 ac_c_undeclared_builtin_options='' ;; #(
19019 *) :
19020 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19021 esac
19022
19023 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19024 #include <dirent.h>
19025 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19026 if test "x$ac_cv_have_decl_dirfd" = xyes
19027 then :
19028
19029 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19030
19031 fi
19032
19033 # For some functions, having a definition is not sufficient, since
19034 # we want to take their address.
19035
19036
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
19038 printf %s "checking for chroot... " >&6; }
19039 if test ${ac_cv_func_chroot+y}
19040 then :
19041 printf %s "(cached) " >&6
19042 else $as_nop
19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19045 #include <unistd.h>
19046 int
19047 main (void)
19048 {
19049 void *x=chroot
19050 ;
19051 return 0;
19052 }
19053 _ACEOF
19054 if ac_fn_c_try_compile "$LINENO"
19055 then :
19056 ac_cv_func_chroot=yes
19057 else $as_nop
19058 ac_cv_func_chroot=no
19059 fi
19060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19061
19062 fi
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
19064 printf "%s\n" "$ac_cv_func_chroot" >&6; }
19065 if test "x$ac_cv_func_chroot" = xyes
19066 then :
19067
19068 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
19069
19070 fi
19071
19072
19073
19074
19075
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
19077 printf %s "checking for link... " >&6; }
19078 if test ${ac_cv_func_link+y}
19079 then :
19080 printf %s "(cached) " >&6
19081 else $as_nop
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 #include <unistd.h>
19085 int
19086 main (void)
19087 {
19088 void *x=link
19089 ;
19090 return 0;
19091 }
19092 _ACEOF
19093 if ac_fn_c_try_compile "$LINENO"
19094 then :
19095 ac_cv_func_link=yes
19096 else $as_nop
19097 ac_cv_func_link=no
19098 fi
19099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19100
19101 fi
19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
19103 printf "%s\n" "$ac_cv_func_link" >&6; }
19104 if test "x$ac_cv_func_link" = xyes
19105 then :
19106
19107 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19108
19109 fi
19110
19111
19112
19113
19114
19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
19116 printf %s "checking for symlink... " >&6; }
19117 if test ${ac_cv_func_symlink+y}
19118 then :
19119 printf %s "(cached) " >&6
19120 else $as_nop
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <unistd.h>
19124 int
19125 main (void)
19126 {
19127 void *x=symlink
19128 ;
19129 return 0;
19130 }
19131 _ACEOF
19132 if ac_fn_c_try_compile "$LINENO"
19133 then :
19134 ac_cv_func_symlink=yes
19135 else $as_nop
19136 ac_cv_func_symlink=no
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19139
19140 fi
19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
19142 printf "%s\n" "$ac_cv_func_symlink" >&6; }
19143 if test "x$ac_cv_func_symlink" = xyes
19144 then :
19145
19146 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19147
19148 fi
19149
19150
19151
19152
19153
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
19155 printf %s "checking for fchdir... " >&6; }
19156 if test ${ac_cv_func_fchdir+y}
19157 then :
19158 printf %s "(cached) " >&6
19159 else $as_nop
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <unistd.h>
19163 int
19164 main (void)
19165 {
19166 void *x=fchdir
19167 ;
19168 return 0;
19169 }
19170 _ACEOF
19171 if ac_fn_c_try_compile "$LINENO"
19172 then :
19173 ac_cv_func_fchdir=yes
19174 else $as_nop
19175 ac_cv_func_fchdir=no
19176 fi
19177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19178
19179 fi
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
19181 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
19182 if test "x$ac_cv_func_fchdir" = xyes
19183 then :
19184
19185 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
19186
19187 fi
19188
19189
19190
19191
19192
19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
19194 printf %s "checking for fsync... " >&6; }
19195 if test ${ac_cv_func_fsync+y}
19196 then :
19197 printf %s "(cached) " >&6
19198 else $as_nop
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201 #include <unistd.h>
19202 int
19203 main (void)
19204 {
19205 void *x=fsync
19206 ;
19207 return 0;
19208 }
19209 _ACEOF
19210 if ac_fn_c_try_compile "$LINENO"
19211 then :
19212 ac_cv_func_fsync=yes
19213 else $as_nop
19214 ac_cv_func_fsync=no
19215 fi
19216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19217
19218 fi
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
19220 printf "%s\n" "$ac_cv_func_fsync" >&6; }
19221 if test "x$ac_cv_func_fsync" = xyes
19222 then :
19223
19224 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
19225
19226 fi
19227
19228
19229
19230
19231
19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
19233 printf %s "checking for fdatasync... " >&6; }
19234 if test ${ac_cv_func_fdatasync+y}
19235 then :
19236 printf %s "(cached) " >&6
19237 else $as_nop
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240 #include <unistd.h>
19241 int
19242 main (void)
19243 {
19244 void *x=fdatasync
19245 ;
19246 return 0;
19247 }
19248 _ACEOF
19249 if ac_fn_c_try_compile "$LINENO"
19250 then :
19251 ac_cv_func_fdatasync=yes
19252 else $as_nop
19253 ac_cv_func_fdatasync=no
19254 fi
19255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19256
19257 fi
19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
19259 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
19260 if test "x$ac_cv_func_fdatasync" = xyes
19261 then :
19262
19263 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
19264
19265 fi
19266
19267
19268
19269
19270
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
19272 printf %s "checking for epoll_create... " >&6; }
19273 if test ${ac_cv_func_epoll_create+y}
19274 then :
19275 printf %s "(cached) " >&6
19276 else $as_nop
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 #include <sys/epoll.h>
19280 int
19281 main (void)
19282 {
19283 void *x=epoll_create
19284 ;
19285 return 0;
19286 }
19287 _ACEOF
19288 if ac_fn_c_try_compile "$LINENO"
19289 then :
19290 ac_cv_func_epoll_create=yes
19291 else $as_nop
19292 ac_cv_func_epoll_create=no
19293 fi
19294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19295
19296 fi
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
19298 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
19299 if test "x$ac_cv_func_epoll_create" = xyes
19300 then :
19301
19302 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
19303
19304 fi
19305
19306
19307
19308
19309
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
19311 printf %s "checking for epoll_create1... " >&6; }
19312 if test ${ac_cv_func_epoll_create1+y}
19313 then :
19314 printf %s "(cached) " >&6
19315 else $as_nop
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318 #include <sys/epoll.h>
19319 int
19320 main (void)
19321 {
19322 void *x=epoll_create1
19323 ;
19324 return 0;
19325 }
19326 _ACEOF
19327 if ac_fn_c_try_compile "$LINENO"
19328 then :
19329 ac_cv_func_epoll_create1=yes
19330 else $as_nop
19331 ac_cv_func_epoll_create1=no
19332 fi
19333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19334
19335 fi
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
19337 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
19338 if test "x$ac_cv_func_epoll_create1" = xyes
19339 then :
19340
19341 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
19342
19343 fi
19344
19345
19346
19347
19348
19349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
19350 printf %s "checking for kqueue... " >&6; }
19351 if test ${ac_cv_func_kqueue+y}
19352 then :
19353 printf %s "(cached) " >&6
19354 else $as_nop
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357
19358 #include <sys/types.h>
19359 #include <sys/event.h>
19360
19361 int
19362 main (void)
19363 {
19364 void *x=kqueue
19365 ;
19366 return 0;
19367 }
19368 _ACEOF
19369 if ac_fn_c_try_compile "$LINENO"
19370 then :
19371 ac_cv_func_kqueue=yes
19372 else $as_nop
19373 ac_cv_func_kqueue=no
19374 fi
19375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19376
19377 fi
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
19379 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
19380 if test "x$ac_cv_func_kqueue" = xyes
19381 then :
19382
19383 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
19384
19385 fi
19386
19387
19388
19389
19390
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
19392 printf %s "checking for prlimit... " >&6; }
19393 if test ${ac_cv_func_prlimit+y}
19394 then :
19395 printf %s "(cached) " >&6
19396 else $as_nop
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19399
19400 #include <sys/time.h>
19401 #include <sys/resource.h>
19402
19403 int
19404 main (void)
19405 {
19406 void *x=prlimit
19407 ;
19408 return 0;
19409 }
19410 _ACEOF
19411 if ac_fn_c_try_compile "$LINENO"
19412 then :
19413 ac_cv_func_prlimit=yes
19414 else $as_nop
19415 ac_cv_func_prlimit=no
19416 fi
19417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19418
19419 fi
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
19421 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
19422 if test "x$ac_cv_func_prlimit" = xyes
19423 then :
19424
19425 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
19426
19427 fi
19428
19429
19430
19431
19432
19433
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
19435 printf %s "checking for _dyld_shared_cache_contains_path... " >&6; }
19436 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
19437 then :
19438 printf %s "(cached) " >&6
19439 else $as_nop
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 #include <mach-o/dyld.h>
19443 int
19444 main (void)
19445 {
19446 void *x=_dyld_shared_cache_contains_path
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_compile "$LINENO"
19452 then :
19453 ac_cv_func__dyld_shared_cache_contains_path=yes
19454 else $as_nop
19455 ac_cv_func__dyld_shared_cache_contains_path=no
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19458
19459 fi
19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
19461 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
19462 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
19463 then :
19464
19465 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
19466
19467 fi
19468
19469
19470
19471
19472
19473
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
19475 printf %s "checking for memfd_create... " >&6; }
19476 if test ${ac_cv_func_memfd_create+y}
19477 then :
19478 printf %s "(cached) " >&6
19479 else $as_nop
19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19482
19483 #ifdef HAVE_SYS_MMAN_H
19484 #include <sys/mman.h>
19485 #endif
19486 #ifdef HAVE_SYS_MEMFD_H
19487 #include <sys/memfd.h>
19488 #endif
19489
19490 int
19491 main (void)
19492 {
19493 void *x=memfd_create
19494 ;
19495 return 0;
19496 }
19497 _ACEOF
19498 if ac_fn_c_try_compile "$LINENO"
19499 then :
19500 ac_cv_func_memfd_create=yes
19501 else $as_nop
19502 ac_cv_func_memfd_create=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19505
19506 fi
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
19508 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
19509 if test "x$ac_cv_func_memfd_create" = xyes
19510 then :
19511
19512 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
19513
19514 fi
19515
19516
19517
19518
19519
19520
19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
19522 printf %s "checking for eventfd... " >&6; }
19523 if test ${ac_cv_func_eventfd+y}
19524 then :
19525 printf %s "(cached) " >&6
19526 else $as_nop
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529
19530 #ifdef HAVE_SYS_EVENTFD_H
19531 #include <sys/eventfd.h>
19532 #endif
19533
19534 int
19535 main (void)
19536 {
19537 void *x=eventfd
19538 ;
19539 return 0;
19540 }
19541 _ACEOF
19542 if ac_fn_c_try_compile "$LINENO"
19543 then :
19544 ac_cv_func_eventfd=yes
19545 else $as_nop
19546 ac_cv_func_eventfd=no
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19549
19550 fi
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
19552 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
19553 if test "x$ac_cv_func_eventfd" = xyes
19554 then :
19555
19556 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
19557
19558 fi
19559
19560
19561
19562
19563
19564
19565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
19566 printf %s "checking for timerfd_create... " >&6; }
19567 if test ${ac_cv_func_timerfd_create+y}
19568 then :
19569 printf %s "(cached) " >&6
19570 else $as_nop
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19573
19574 #ifdef HAVE_SYS_TIMERFD_H
19575 #include <sys/timerfd.h>
19576 #endif
19577
19578 int
19579 main (void)
19580 {
19581 void *x=timerfd_create
19582 ;
19583 return 0;
19584 }
19585 _ACEOF
19586 if ac_fn_c_try_compile "$LINENO"
19587 then :
19588 ac_cv_func_timerfd_create=yes
19589 else $as_nop
19590 ac_cv_func_timerfd_create=no
19591 fi
19592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19593
19594 fi
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
19596 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
19597 if test "x$ac_cv_func_timerfd_create" = xyes
19598 then :
19599
19600 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
19601
19602 fi
19603
19604
19605
19606
19607 # On some systems (eg. FreeBSD 5), we would find a definition of the
19608 # functions ctermid_r, setgroups in the library, but no prototype
19609 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
19610 # address to avoid compiler warnings and potential miscompilations
19611 # because of the missing prototypes.
19612
19613
19614
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
19616 printf %s "checking for ctermid_r... " >&6; }
19617 if test ${ac_cv_func_ctermid_r+y}
19618 then :
19619 printf %s "(cached) " >&6
19620 else $as_nop
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19623 #include <stdio.h>
19624 int
19625 main (void)
19626 {
19627 void *x=ctermid_r
19628 ;
19629 return 0;
19630 }
19631 _ACEOF
19632 if ac_fn_c_try_compile "$LINENO"
19633 then :
19634 ac_cv_func_ctermid_r=yes
19635 else $as_nop
19636 ac_cv_func_ctermid_r=no
19637 fi
19638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19639
19640 fi
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
19642 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
19643 if test "x$ac_cv_func_ctermid_r" = xyes
19644 then :
19645
19646 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
19647
19648 fi
19649
19650
19651
19652
19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
19654 printf %s "checking for flock declaration... " >&6; }
19655 if test ${ac_cv_flock_decl+y}
19656 then :
19657 printf %s "(cached) " >&6
19658 else $as_nop
19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <sys/file.h>
19662 int
19663 main (void)
19664 {
19665 void* p = flock
19666
19667 ;
19668 return 0;
19669 }
19670 _ACEOF
19671 if ac_fn_c_try_compile "$LINENO"
19672 then :
19673 ac_cv_flock_decl=yes
19674 else $as_nop
19675 ac_cv_flock_decl=no
19676
19677 fi
19678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19679
19680 fi
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
19682 printf "%s\n" "$ac_cv_flock_decl" >&6; }
19683 if test "x$ac_cv_flock_decl" = xyes
19684 then :
19685
19686 for ac_func in flock
19687 do :
19688 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
19689 if test "x$ac_cv_func_flock" = xyes
19690 then :
19691 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
19692
19693 else $as_nop
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
19695 printf %s "checking for flock in -lbsd... " >&6; }
19696 if test ${ac_cv_lib_bsd_flock+y}
19697 then :
19698 printf %s "(cached) " >&6
19699 else $as_nop
19700 ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-lbsd $LIBS"
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19704
19705 /* Override any GCC internal prototype to avoid an error.
19706 Use char because int might match the return type of a GCC
19707 builtin and then its argument prototype would still apply. */
19708 char flock ();
19709 int
19710 main (void)
19711 {
19712 return flock ();
19713 ;
19714 return 0;
19715 }
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"
19718 then :
19719 ac_cv_lib_bsd_flock=yes
19720 else $as_nop
19721 ac_cv_lib_bsd_flock=no
19722 fi
19723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19724 conftest$ac_exeext conftest.$ac_ext
19725 LIBS=$ac_check_lib_save_LIBS
19726 fi
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
19728 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
19729 if test "x$ac_cv_lib_bsd_flock" = xyes
19730 then :
19731 FCNTL_LIBS="-lbsd"
19732 fi
19733
19734 fi
19735
19736 done
19737 fi
19738
19739
19740
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
19742 printf %s "checking for getpagesize... " >&6; }
19743 if test ${ac_cv_func_getpagesize+y}
19744 then :
19745 printf %s "(cached) " >&6
19746 else $as_nop
19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19749 #include <unistd.h>
19750 int
19751 main (void)
19752 {
19753 void *x=getpagesize
19754 ;
19755 return 0;
19756 }
19757 _ACEOF
19758 if ac_fn_c_try_compile "$LINENO"
19759 then :
19760 ac_cv_func_getpagesize=yes
19761 else $as_nop
19762 ac_cv_func_getpagesize=no
19763 fi
19764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19765
19766 fi
19767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
19768 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
19769 if test "x$ac_cv_func_getpagesize" = xyes
19770 then :
19771
19772 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
19773
19774 fi
19775
19776
19777
19778
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
19780 printf %s "checking for broken unsetenv... " >&6; }
19781 if test ${ac_cv_broken_unsetenv+y}
19782 then :
19783 printf %s "(cached) " >&6
19784 else $as_nop
19785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <stdlib.h>
19788 int
19789 main (void)
19790 {
19791 int res = unsetenv("DUMMY")
19792 ;
19793 return 0;
19794 }
19795 _ACEOF
19796 if ac_fn_c_try_compile "$LINENO"
19797 then :
19798 ac_cv_broken_unsetenv=no
19799 else $as_nop
19800 ac_cv_broken_unsetenv=yes
19801
19802 fi
19803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19804
19805 fi
19806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
19807 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
19808 if test "x$ac_cv_broken_unsetenv" = xyes
19809 then :
19810
19811
19812 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
19813
19814
19815 fi
19816
19817 for ac_prog in true
19818 do
19819 # Extract the first word of "$ac_prog", so it can be a program name with args.
19820 set dummy $ac_prog; ac_word=$2
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19822 printf %s "checking for $ac_word... " >&6; }
19823 if test ${ac_cv_prog_TRUE+y}
19824 then :
19825 printf %s "(cached) " >&6
19826 else $as_nop
19827 if test -n "$TRUE"; then
19828 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
19829 else
19830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19831 for as_dir in $PATH
19832 do
19833 IFS=$as_save_IFS
19834 case $as_dir in #(((
19835 '') as_dir=./ ;;
19836 */) ;;
19837 *) as_dir=$as_dir/ ;;
19838 esac
19839 for ac_exec_ext in '' $ac_executable_extensions; do
19840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19841 ac_cv_prog_TRUE="$ac_prog"
19842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19843 break 2
19844 fi
19845 done
19846 done
19847 IFS=$as_save_IFS
19848
19849 fi
19850 fi
19851 TRUE=$ac_cv_prog_TRUE
19852 if test -n "$TRUE"; then
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
19854 printf "%s\n" "$TRUE" >&6; }
19855 else
19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19857 printf "%s\n" "no" >&6; }
19858 fi
19859
19860
19861 test -n "$TRUE" && break
19862 done
19863 test -n "$TRUE" || TRUE="/bin/true"
19864
19865
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
19867 printf %s "checking for inet_aton in -lc... " >&6; }
19868 if test ${ac_cv_lib_c_inet_aton+y}
19869 then :
19870 printf %s "(cached) " >&6
19871 else $as_nop
19872 ac_check_lib_save_LIBS=$LIBS
19873 LIBS="-lc $LIBS"
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19876
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19880 char inet_aton ();
19881 int
19882 main (void)
19883 {
19884 return inet_aton ();
19885 ;
19886 return 0;
19887 }
19888 _ACEOF
19889 if ac_fn_c_try_link "$LINENO"
19890 then :
19891 ac_cv_lib_c_inet_aton=yes
19892 else $as_nop
19893 ac_cv_lib_c_inet_aton=no
19894 fi
19895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19896 conftest$ac_exeext conftest.$ac_ext
19897 LIBS=$ac_check_lib_save_LIBS
19898 fi
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
19900 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
19901 if test "x$ac_cv_lib_c_inet_aton" = xyes
19902 then :
19903 $ac_cv_prog_TRUE
19904 else $as_nop
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
19906 printf %s "checking for inet_aton in -lresolv... " >&6; }
19907 if test ${ac_cv_lib_resolv_inet_aton+y}
19908 then :
19909 printf %s "(cached) " >&6
19910 else $as_nop
19911 ac_check_lib_save_LIBS=$LIBS
19912 LIBS="-lresolv $LIBS"
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19919 char inet_aton ();
19920 int
19921 main (void)
19922 {
19923 return inet_aton ();
19924 ;
19925 return 0;
19926 }
19927 _ACEOF
19928 if ac_fn_c_try_link "$LINENO"
19929 then :
19930 ac_cv_lib_resolv_inet_aton=yes
19931 else $as_nop
19932 ac_cv_lib_resolv_inet_aton=no
19933 fi
19934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19937 fi
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
19939 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
19940 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
19941 then :
19942 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
19943
19944 LIBS="-lresolv $LIBS"
19945
19946 fi
19947
19948
19949 fi
19950
19951
19952 # On Tru64, chflags seems to be present, but calling it will
19953 # exit Python
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
19955 printf %s "checking for chflags... " >&6; }
19956 if test ${ac_cv_have_chflags+y}
19957 then :
19958 printf %s "(cached) " >&6
19959 else $as_nop
19960 if test "$cross_compiling" = yes
19961 then :
19962 ac_cv_have_chflags=cross
19963 else $as_nop
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19966
19967 #include <sys/stat.h>
19968 #include <unistd.h>
19969 int main(int argc, char *argv[])
19970 {
19971 if(chflags(argv[0], 0) != 0)
19972 return 1;
19973 return 0;
19974 }
19975
19976 _ACEOF
19977 if ac_fn_c_try_run "$LINENO"
19978 then :
19979 ac_cv_have_chflags=yes
19980 else $as_nop
19981 ac_cv_have_chflags=no
19982 fi
19983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19984 conftest.$ac_objext conftest.beam conftest.$ac_ext
19985 fi
19986
19987
19988 fi
19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
19990 printf "%s\n" "$ac_cv_have_chflags" >&6; }
19991 if test "$ac_cv_have_chflags" = cross ; then
19992 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
19993 if test "x$ac_cv_func_chflags" = xyes
19994 then :
19995 ac_cv_have_chflags="yes"
19996 else $as_nop
19997 ac_cv_have_chflags="no"
19998 fi
19999
20000 fi
20001 if test "$ac_cv_have_chflags" = yes ; then
20002
20003 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
20004
20005 fi
20006
20007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
20008 printf %s "checking for lchflags... " >&6; }
20009 if test ${ac_cv_have_lchflags+y}
20010 then :
20011 printf %s "(cached) " >&6
20012 else $as_nop
20013 if test "$cross_compiling" = yes
20014 then :
20015 ac_cv_have_lchflags=cross
20016 else $as_nop
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20019
20020 #include <sys/stat.h>
20021 #include <unistd.h>
20022 int main(int argc, char *argv[])
20023 {
20024 if(lchflags(argv[0], 0) != 0)
20025 return 1;
20026 return 0;
20027 }
20028
20029 _ACEOF
20030 if ac_fn_c_try_run "$LINENO"
20031 then :
20032 ac_cv_have_lchflags=yes
20033 else $as_nop
20034 ac_cv_have_lchflags=no
20035 fi
20036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20037 conftest.$ac_objext conftest.beam conftest.$ac_ext
20038 fi
20039
20040
20041 fi
20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
20043 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
20044 if test "$ac_cv_have_lchflags" = cross ; then
20045 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
20046 if test "x$ac_cv_func_lchflags" = xyes
20047 then :
20048 ac_cv_have_lchflags="yes"
20049 else $as_nop
20050 ac_cv_have_lchflags="no"
20051 fi
20052
20053 fi
20054 if test "$ac_cv_have_lchflags" = yes ; then
20055
20056 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
20057
20058 fi
20059
20060
20061
20062
20063
20064
20065 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
20066 then :
20067
20068 ZLIB_CFLAGS="-sUSE_ZLIB"
20069 ZLIB_LIBS="-sUSE_ZLIB"
20070
20071 fi
20072
20073
20074
20075
20076
20077 pkg_failed=no
20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
20079 printf %s "checking for zlib >= 1.2.0... " >&6; }
20080
20081 if test -n "$ZLIB_CFLAGS"; then
20082 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20083 elif test -n "$PKG_CONFIG"; then
20084 if test -n "$PKG_CONFIG" && \
20085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20086 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20087 ac_status=$?
20088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20089 test $ac_status = 0; }; then
20090 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
20091 test "x$?" != "x0" && pkg_failed=yes
20092 else
20093 pkg_failed=yes
20094 fi
20095 else
20096 pkg_failed=untried
20097 fi
20098 if test -n "$ZLIB_LIBS"; then
20099 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20100 elif test -n "$PKG_CONFIG"; then
20101 if test -n "$PKG_CONFIG" && \
20102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20103 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20104 ac_status=$?
20105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106 test $ac_status = 0; }; then
20107 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
20108 test "x$?" != "x0" && pkg_failed=yes
20109 else
20110 pkg_failed=yes
20111 fi
20112 else
20113 pkg_failed=untried
20114 fi
20115
20116
20117
20118 if test $pkg_failed = yes; then
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20120 printf "%s\n" "no" >&6; }
20121
20122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20123 _pkg_short_errors_supported=yes
20124 else
20125 _pkg_short_errors_supported=no
20126 fi
20127 if test $_pkg_short_errors_supported = yes; then
20128 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20129 else
20130 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20131 fi
20132 # Put the nasty error message in config.log where it belongs
20133 echo "$ZLIB_PKG_ERRORS" >&5
20134
20135
20136 save_CFLAGS=$CFLAGS
20137 save_CPPFLAGS=$CPPFLAGS
20138 save_LDFLAGS=$LDFLAGS
20139 save_LIBS=$LIBS
20140
20141
20142 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20143 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
20144 for ac_header in zlib.h
20145 do :
20146 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20147 if test "x$ac_cv_header_zlib_h" = xyes
20148 then :
20149 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20150
20151 py_check_lib_save_LIBS=$LIBS
20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20153 printf %s "checking for gzread in -lz... " >&6; }
20154 if test ${ac_cv_lib_z_gzread+y}
20155 then :
20156 printf %s "(cached) " >&6
20157 else $as_nop
20158 ac_check_lib_save_LIBS=$LIBS
20159 LIBS="-lz $LIBS"
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20162
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166 char gzread ();
20167 int
20168 main (void)
20169 {
20170 return gzread ();
20171 ;
20172 return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"
20176 then :
20177 ac_cv_lib_z_gzread=yes
20178 else $as_nop
20179 ac_cv_lib_z_gzread=no
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20182 conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_check_lib_save_LIBS
20184 fi
20185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20186 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20187 if test "x$ac_cv_lib_z_gzread" = xyes
20188 then :
20189 have_zlib=yes
20190 else $as_nop
20191 have_zlib=no
20192 fi
20193
20194 LIBS=$py_check_lib_save_LIBS
20195
20196
20197 else $as_nop
20198 have_zlib=no
20199 fi
20200
20201 done
20202 if test "x$have_zlib" = xyes
20203 then :
20204
20205 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20206 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20207 py_check_lib_save_LIBS=$LIBS
20208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20209 printf %s "checking for inflateCopy in -lz... " >&6; }
20210 if test ${ac_cv_lib_z_inflateCopy+y}
20211 then :
20212 printf %s "(cached) " >&6
20213 else $as_nop
20214 ac_check_lib_save_LIBS=$LIBS
20215 LIBS="-lz $LIBS"
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20222 char inflateCopy ();
20223 int
20224 main (void)
20225 {
20226 return inflateCopy ();
20227 ;
20228 return 0;
20229 }
20230 _ACEOF
20231 if ac_fn_c_try_link "$LINENO"
20232 then :
20233 ac_cv_lib_z_inflateCopy=yes
20234 else $as_nop
20235 ac_cv_lib_z_inflateCopy=no
20236 fi
20237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20240 fi
20241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20242 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20243 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20244 then :
20245 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20246
20247 fi
20248
20249 LIBS=$py_check_lib_save_LIBS
20250
20251
20252 fi
20253
20254 CFLAGS=$save_CFLAGS
20255 CPPFLAGS=$save_CPPFLAGS
20256 LDFLAGS=$save_LDFLAGS
20257 LIBS=$save_LIBS
20258
20259
20260
20261 elif test $pkg_failed = untried; then
20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20263 printf "%s\n" "no" >&6; }
20264
20265 save_CFLAGS=$CFLAGS
20266 save_CPPFLAGS=$CPPFLAGS
20267 save_LDFLAGS=$LDFLAGS
20268 save_LIBS=$LIBS
20269
20270
20271 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
20272 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
20273 for ac_header in zlib.h
20274 do :
20275 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20276 if test "x$ac_cv_header_zlib_h" = xyes
20277 then :
20278 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20279
20280 py_check_lib_save_LIBS=$LIBS
20281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20282 printf %s "checking for gzread in -lz... " >&6; }
20283 if test ${ac_cv_lib_z_gzread+y}
20284 then :
20285 printf %s "(cached) " >&6
20286 else $as_nop
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lz $LIBS"
20289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290 /* end confdefs.h. */
20291
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20295 char gzread ();
20296 int
20297 main (void)
20298 {
20299 return gzread ();
20300 ;
20301 return 0;
20302 }
20303 _ACEOF
20304 if ac_fn_c_try_link "$LINENO"
20305 then :
20306 ac_cv_lib_z_gzread=yes
20307 else $as_nop
20308 ac_cv_lib_z_gzread=no
20309 fi
20310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20311 conftest$ac_exeext conftest.$ac_ext
20312 LIBS=$ac_check_lib_save_LIBS
20313 fi
20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20315 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20316 if test "x$ac_cv_lib_z_gzread" = xyes
20317 then :
20318 have_zlib=yes
20319 else $as_nop
20320 have_zlib=no
20321 fi
20322
20323 LIBS=$py_check_lib_save_LIBS
20324
20325
20326 else $as_nop
20327 have_zlib=no
20328 fi
20329
20330 done
20331 if test "x$have_zlib" = xyes
20332 then :
20333
20334 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
20335 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
20336 py_check_lib_save_LIBS=$LIBS
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20338 printf %s "checking for inflateCopy in -lz... " >&6; }
20339 if test ${ac_cv_lib_z_inflateCopy+y}
20340 then :
20341 printf %s "(cached) " >&6
20342 else $as_nop
20343 ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-lz $LIBS"
20345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20346 /* end confdefs.h. */
20347
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20351 char inflateCopy ();
20352 int
20353 main (void)
20354 {
20355 return inflateCopy ();
20356 ;
20357 return 0;
20358 }
20359 _ACEOF
20360 if ac_fn_c_try_link "$LINENO"
20361 then :
20362 ac_cv_lib_z_inflateCopy=yes
20363 else $as_nop
20364 ac_cv_lib_z_inflateCopy=no
20365 fi
20366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20367 conftest$ac_exeext conftest.$ac_ext
20368 LIBS=$ac_check_lib_save_LIBS
20369 fi
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20371 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20372 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20373 then :
20374 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20375
20376 fi
20377
20378 LIBS=$py_check_lib_save_LIBS
20379
20380
20381 fi
20382
20383 CFLAGS=$save_CFLAGS
20384 CPPFLAGS=$save_CPPFLAGS
20385 LDFLAGS=$save_LDFLAGS
20386 LIBS=$save_LIBS
20387
20388
20389
20390 else
20391 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20392 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20394 printf "%s\n" "yes" >&6; }
20395
20396 have_zlib=yes
20397 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20398
20399
20400 fi
20401
20402 if test "x$have_zlib" = xyes
20403 then :
20404
20405 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
20406 BINASCII_LIBS="$ZLIB_LIBS"
20407
20408 fi
20409
20410
20411
20412
20413 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
20414 then :
20415
20416 BZIP2_CFLAGS="-sUSE_BZIP2"
20417 BZIP2_LIBS="-sUSE_BZIP2"
20418
20419 fi
20420
20421
20422
20423
20424
20425 pkg_failed=no
20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
20427 printf %s "checking for bzip2... " >&6; }
20428
20429 if test -n "$BZIP2_CFLAGS"; then
20430 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
20431 elif test -n "$PKG_CONFIG"; then
20432 if test -n "$PKG_CONFIG" && \
20433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20434 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20435 ac_status=$?
20436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20437 test $ac_status = 0; }; then
20438 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
20439 test "x$?" != "x0" && pkg_failed=yes
20440 else
20441 pkg_failed=yes
20442 fi
20443 else
20444 pkg_failed=untried
20445 fi
20446 if test -n "$BZIP2_LIBS"; then
20447 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
20448 elif test -n "$PKG_CONFIG"; then
20449 if test -n "$PKG_CONFIG" && \
20450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20451 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20452 ac_status=$?
20453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }; then
20455 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
20456 test "x$?" != "x0" && pkg_failed=yes
20457 else
20458 pkg_failed=yes
20459 fi
20460 else
20461 pkg_failed=untried
20462 fi
20463
20464
20465
20466 if test $pkg_failed = yes; then
20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 printf "%s\n" "no" >&6; }
20469
20470 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20471 _pkg_short_errors_supported=yes
20472 else
20473 _pkg_short_errors_supported=no
20474 fi
20475 if test $_pkg_short_errors_supported = yes; then
20476 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
20477 else
20478 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
20479 fi
20480 # Put the nasty error message in config.log where it belongs
20481 echo "$BZIP2_PKG_ERRORS" >&5
20482
20483
20484 save_CFLAGS=$CFLAGS
20485 save_CPPFLAGS=$CPPFLAGS
20486 save_LDFLAGS=$LDFLAGS
20487 save_LIBS=$LIBS
20488
20489
20490 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
20491 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
20492 for ac_header in bzlib.h
20493 do :
20494 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20495 if test "x$ac_cv_header_bzlib_h" = xyes
20496 then :
20497 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20498
20499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20500 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
20501 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20502 then :
20503 printf %s "(cached) " >&6
20504 else $as_nop
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lbz2 $LIBS"
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20509
20510 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 char BZ2_bzCompress ();
20514 int
20515 main (void)
20516 {
20517 return BZ2_bzCompress ();
20518 ;
20519 return 0;
20520 }
20521 _ACEOF
20522 if ac_fn_c_try_link "$LINENO"
20523 then :
20524 ac_cv_lib_bz2_BZ2_bzCompress=yes
20525 else $as_nop
20526 ac_cv_lib_bz2_BZ2_bzCompress=no
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20529 conftest$ac_exeext conftest.$ac_ext
20530 LIBS=$ac_check_lib_save_LIBS
20531 fi
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20533 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20534 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20535 then :
20536 have_bzip2=yes
20537 else $as_nop
20538 have_bzip2=no
20539 fi
20540
20541
20542 else $as_nop
20543 have_bzip2=no
20544 fi
20545
20546 done
20547 if test "x$have_bzip2" = xyes
20548 then :
20549
20550 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
20551 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
20552
20553 fi
20554
20555 CFLAGS=$save_CFLAGS
20556 CPPFLAGS=$save_CPPFLAGS
20557 LDFLAGS=$save_LDFLAGS
20558 LIBS=$save_LIBS
20559
20560
20561
20562 elif test $pkg_failed = untried; then
20563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 printf "%s\n" "no" >&6; }
20565
20566 save_CFLAGS=$CFLAGS
20567 save_CPPFLAGS=$CPPFLAGS
20568 save_LDFLAGS=$LDFLAGS
20569 save_LIBS=$LIBS
20570
20571
20572 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
20573 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
20574 for ac_header in bzlib.h
20575 do :
20576 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20577 if test "x$ac_cv_header_bzlib_h" = xyes
20578 then :
20579 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20580
20581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20582 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
20583 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20584 then :
20585 printf %s "(cached) " >&6
20586 else $as_nop
20587 ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-lbz2 $LIBS"
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20595 char BZ2_bzCompress ();
20596 int
20597 main (void)
20598 {
20599 return BZ2_bzCompress ();
20600 ;
20601 return 0;
20602 }
20603 _ACEOF
20604 if ac_fn_c_try_link "$LINENO"
20605 then :
20606 ac_cv_lib_bz2_BZ2_bzCompress=yes
20607 else $as_nop
20608 ac_cv_lib_bz2_BZ2_bzCompress=no
20609 fi
20610 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20613 fi
20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20615 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20616 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20617 then :
20618 have_bzip2=yes
20619 else $as_nop
20620 have_bzip2=no
20621 fi
20622
20623
20624 else $as_nop
20625 have_bzip2=no
20626 fi
20627
20628 done
20629 if test "x$have_bzip2" = xyes
20630 then :
20631
20632 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
20633 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
20634
20635 fi
20636
20637 CFLAGS=$save_CFLAGS
20638 CPPFLAGS=$save_CPPFLAGS
20639 LDFLAGS=$save_LDFLAGS
20640 LIBS=$save_LIBS
20641
20642
20643
20644 else
20645 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
20646 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20648 printf "%s\n" "yes" >&6; }
20649 have_bzip2=yes
20650 fi
20651
20652
20653 pkg_failed=no
20654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
20655 printf %s "checking for liblzma... " >&6; }
20656
20657 if test -n "$LIBLZMA_CFLAGS"; then
20658 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
20659 elif test -n "$PKG_CONFIG"; then
20660 if test -n "$PKG_CONFIG" && \
20661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
20662 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
20663 ac_status=$?
20664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20665 test $ac_status = 0; }; then
20666 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
20667 test "x$?" != "x0" && pkg_failed=yes
20668 else
20669 pkg_failed=yes
20670 fi
20671 else
20672 pkg_failed=untried
20673 fi
20674 if test -n "$LIBLZMA_LIBS"; then
20675 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
20676 elif test -n "$PKG_CONFIG"; then
20677 if test -n "$PKG_CONFIG" && \
20678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
20679 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
20680 ac_status=$?
20681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20682 test $ac_status = 0; }; then
20683 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
20684 test "x$?" != "x0" && pkg_failed=yes
20685 else
20686 pkg_failed=yes
20687 fi
20688 else
20689 pkg_failed=untried
20690 fi
20691
20692
20693
20694 if test $pkg_failed = yes; then
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 printf "%s\n" "no" >&6; }
20697
20698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20699 _pkg_short_errors_supported=yes
20700 else
20701 _pkg_short_errors_supported=no
20702 fi
20703 if test $_pkg_short_errors_supported = yes; then
20704 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
20705 else
20706 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
20707 fi
20708 # Put the nasty error message in config.log where it belongs
20709 echo "$LIBLZMA_PKG_ERRORS" >&5
20710
20711
20712 save_CFLAGS=$CFLAGS
20713 save_CPPFLAGS=$CPPFLAGS
20714 save_LDFLAGS=$LDFLAGS
20715 save_LIBS=$LIBS
20716
20717
20718 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
20719 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS"
20720 for ac_header in lzma.h
20721 do :
20722 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
20723 if test "x$ac_cv_header_lzma_h" = xyes
20724 then :
20725 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
20726
20727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
20728 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
20729 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
20730 then :
20731 printf %s "(cached) " >&6
20732 else $as_nop
20733 ac_check_lib_save_LIBS=$LIBS
20734 LIBS="-llzma $LIBS"
20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20737
20738 /* Override any GCC internal prototype to avoid an error.
20739 Use char because int might match the return type of a GCC
20740 builtin and then its argument prototype would still apply. */
20741 char lzma_easy_encoder ();
20742 int
20743 main (void)
20744 {
20745 return lzma_easy_encoder ();
20746 ;
20747 return 0;
20748 }
20749 _ACEOF
20750 if ac_fn_c_try_link "$LINENO"
20751 then :
20752 ac_cv_lib_lzma_lzma_easy_encoder=yes
20753 else $as_nop
20754 ac_cv_lib_lzma_lzma_easy_encoder=no
20755 fi
20756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20757 conftest$ac_exeext conftest.$ac_ext
20758 LIBS=$ac_check_lib_save_LIBS
20759 fi
20760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
20761 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
20762 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
20763 then :
20764 have_liblzma=yes
20765 else $as_nop
20766 have_liblzma=no
20767 fi
20768
20769
20770 else $as_nop
20771 have_liblzma=no
20772 fi
20773
20774 done
20775 if test "x$have_liblzma" = xyes
20776 then :
20777
20778 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
20779 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
20780
20781 fi
20782
20783 CFLAGS=$save_CFLAGS
20784 CPPFLAGS=$save_CPPFLAGS
20785 LDFLAGS=$save_LDFLAGS
20786 LIBS=$save_LIBS
20787
20788
20789
20790 elif test $pkg_failed = untried; then
20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20792 printf "%s\n" "no" >&6; }
20793
20794 save_CFLAGS=$CFLAGS
20795 save_CPPFLAGS=$CPPFLAGS
20796 save_LDFLAGS=$LDFLAGS
20797 save_LIBS=$LIBS
20798
20799
20800 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
20801 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS"
20802 for ac_header in lzma.h
20803 do :
20804 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
20805 if test "x$ac_cv_header_lzma_h" = xyes
20806 then :
20807 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
20808
20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
20810 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
20811 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
20812 then :
20813 printf %s "(cached) " >&6
20814 else $as_nop
20815 ac_check_lib_save_LIBS=$LIBS
20816 LIBS="-llzma $LIBS"
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20819
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20823 char lzma_easy_encoder ();
20824 int
20825 main (void)
20826 {
20827 return lzma_easy_encoder ();
20828 ;
20829 return 0;
20830 }
20831 _ACEOF
20832 if ac_fn_c_try_link "$LINENO"
20833 then :
20834 ac_cv_lib_lzma_lzma_easy_encoder=yes
20835 else $as_nop
20836 ac_cv_lib_lzma_lzma_easy_encoder=no
20837 fi
20838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20839 conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20841 fi
20842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
20843 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
20844 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
20845 then :
20846 have_liblzma=yes
20847 else $as_nop
20848 have_liblzma=no
20849 fi
20850
20851
20852 else $as_nop
20853 have_liblzma=no
20854 fi
20855
20856 done
20857 if test "x$have_liblzma" = xyes
20858 then :
20859
20860 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
20861 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
20862
20863 fi
20864
20865 CFLAGS=$save_CFLAGS
20866 CPPFLAGS=$save_CPPFLAGS
20867 LDFLAGS=$save_LDFLAGS
20868 LIBS=$save_LIBS
20869
20870
20871
20872 else
20873 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
20874 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
20875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20876 printf "%s\n" "yes" >&6; }
20877 have_liblzma=yes
20878 fi
20879
20880
20881
20882
20883
20884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
20885 printf %s "checking for hstrerror... " >&6; }
20886 if test ${ac_cv_func_hstrerror+y}
20887 then :
20888 printf %s "(cached) " >&6
20889 else $as_nop
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20892 #include <netdb.h>
20893 int
20894 main (void)
20895 {
20896 void *x=hstrerror
20897 ;
20898 return 0;
20899 }
20900 _ACEOF
20901 if ac_fn_c_try_compile "$LINENO"
20902 then :
20903 ac_cv_func_hstrerror=yes
20904 else $as_nop
20905 ac_cv_func_hstrerror=no
20906 fi
20907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20908
20909 fi
20910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
20911 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
20912 if test "x$ac_cv_func_hstrerror" = xyes
20913 then :
20914
20915 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
20916
20917 fi
20918
20919
20920
20921
20922
20923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
20924 printf %s "checking for getservbyname... " >&6; }
20925 if test ${ac_cv_func_getservbyname+y}
20926 then :
20927 printf %s "(cached) " >&6
20928 else $as_nop
20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20931 #include <netdb.h>
20932 int
20933 main (void)
20934 {
20935 void *x=getservbyname
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 if ac_fn_c_try_compile "$LINENO"
20941 then :
20942 ac_cv_func_getservbyname=yes
20943 else $as_nop
20944 ac_cv_func_getservbyname=no
20945 fi
20946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20947
20948 fi
20949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
20950 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
20951 if test "x$ac_cv_func_getservbyname" = xyes
20952 then :
20953
20954 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
20955
20956 fi
20957
20958
20959
20960
20961
20962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
20963 printf %s "checking for getservbyport... " >&6; }
20964 if test ${ac_cv_func_getservbyport+y}
20965 then :
20966 printf %s "(cached) " >&6
20967 else $as_nop
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20970 #include <netdb.h>
20971 int
20972 main (void)
20973 {
20974 void *x=getservbyport
20975 ;
20976 return 0;
20977 }
20978 _ACEOF
20979 if ac_fn_c_try_compile "$LINENO"
20980 then :
20981 ac_cv_func_getservbyport=yes
20982 else $as_nop
20983 ac_cv_func_getservbyport=no
20984 fi
20985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20986
20987 fi
20988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
20989 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
20990 if test "x$ac_cv_func_getservbyport" = xyes
20991 then :
20992
20993 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
20994
20995 fi
20996
20997
20998
20999
21000
21001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
21002 printf %s "checking for gethostbyname... " >&6; }
21003 if test ${ac_cv_func_gethostbyname+y}
21004 then :
21005 printf %s "(cached) " >&6
21006 else $as_nop
21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21009 #include <netdb.h>
21010 int
21011 main (void)
21012 {
21013 void *x=gethostbyname
21014 ;
21015 return 0;
21016 }
21017 _ACEOF
21018 if ac_fn_c_try_compile "$LINENO"
21019 then :
21020 ac_cv_func_gethostbyname=yes
21021 else $as_nop
21022 ac_cv_func_gethostbyname=no
21023 fi
21024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21025
21026 fi
21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
21028 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
21029 if test "x$ac_cv_func_gethostbyname" = xyes
21030 then :
21031
21032 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
21033
21034 fi
21035
21036
21037
21038
21039
21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
21041 printf %s "checking for gethostbyaddr... " >&6; }
21042 if test ${ac_cv_func_gethostbyaddr+y}
21043 then :
21044 printf %s "(cached) " >&6
21045 else $as_nop
21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047 /* end confdefs.h. */
21048 #include <netdb.h>
21049 int
21050 main (void)
21051 {
21052 void *x=gethostbyaddr
21053 ;
21054 return 0;
21055 }
21056 _ACEOF
21057 if ac_fn_c_try_compile "$LINENO"
21058 then :
21059 ac_cv_func_gethostbyaddr=yes
21060 else $as_nop
21061 ac_cv_func_gethostbyaddr=no
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21064
21065 fi
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
21067 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
21068 if test "x$ac_cv_func_gethostbyaddr" = xyes
21069 then :
21070
21071 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
21072
21073 fi
21074
21075
21076
21077
21078
21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
21080 printf %s "checking for getprotobyname... " >&6; }
21081 if test ${ac_cv_func_getprotobyname+y}
21082 then :
21083 printf %s "(cached) " >&6
21084 else $as_nop
21085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21086 /* end confdefs.h. */
21087 #include <netdb.h>
21088 int
21089 main (void)
21090 {
21091 void *x=getprotobyname
21092 ;
21093 return 0;
21094 }
21095 _ACEOF
21096 if ac_fn_c_try_compile "$LINENO"
21097 then :
21098 ac_cv_func_getprotobyname=yes
21099 else $as_nop
21100 ac_cv_func_getprotobyname=no
21101 fi
21102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21103
21104 fi
21105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
21106 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
21107 if test "x$ac_cv_func_getprotobyname" = xyes
21108 then :
21109
21110 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
21111
21112 fi
21113
21114
21115
21116
21117
21118
21119
21120
21121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21122 printf %s "checking for inet_aton... " >&6; }
21123 if test ${ac_cv_func_inet_aton+y}
21124 then :
21125 printf %s "(cached) " >&6
21126 else $as_nop
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21129
21130 #include <sys/types.h>
21131 #include <sys/socket.h>
21132 #include <netinet/in.h>
21133 #include <arpa/inet.h>
21134
21135 int
21136 main (void)
21137 {
21138 void *x=inet_aton
21139 ;
21140 return 0;
21141 }
21142 _ACEOF
21143 if ac_fn_c_try_compile "$LINENO"
21144 then :
21145 ac_cv_func_inet_aton=yes
21146 else $as_nop
21147 ac_cv_func_inet_aton=no
21148 fi
21149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21150
21151 fi
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
21153 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
21154 if test "x$ac_cv_func_inet_aton" = xyes
21155 then :
21156
21157 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
21158
21159 fi
21160
21161
21162
21163
21164
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
21166 printf %s "checking for inet_ntoa... " >&6; }
21167 if test ${ac_cv_func_inet_ntoa+y}
21168 then :
21169 printf %s "(cached) " >&6
21170 else $as_nop
21171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h. */
21173
21174 #include <sys/types.h>
21175 #include <sys/socket.h>
21176 #include <netinet/in.h>
21177 #include <arpa/inet.h>
21178
21179 int
21180 main (void)
21181 {
21182 void *x=inet_ntoa
21183 ;
21184 return 0;
21185 }
21186 _ACEOF
21187 if ac_fn_c_try_compile "$LINENO"
21188 then :
21189 ac_cv_func_inet_ntoa=yes
21190 else $as_nop
21191 ac_cv_func_inet_ntoa=no
21192 fi
21193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21194
21195 fi
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
21197 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
21198 if test "x$ac_cv_func_inet_ntoa" = xyes
21199 then :
21200
21201 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
21202
21203 fi
21204
21205
21206
21207
21208
21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21210 printf %s "checking for inet_pton... " >&6; }
21211 if test ${ac_cv_func_inet_pton+y}
21212 then :
21213 printf %s "(cached) " >&6
21214 else $as_nop
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217
21218 #include <sys/types.h>
21219 #include <sys/socket.h>
21220 #include <netinet/in.h>
21221 #include <arpa/inet.h>
21222
21223 int
21224 main (void)
21225 {
21226 void *x=inet_pton
21227 ;
21228 return 0;
21229 }
21230 _ACEOF
21231 if ac_fn_c_try_compile "$LINENO"
21232 then :
21233 ac_cv_func_inet_pton=yes
21234 else $as_nop
21235 ac_cv_func_inet_pton=no
21236 fi
21237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21238
21239 fi
21240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
21241 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
21242 if test "x$ac_cv_func_inet_pton" = xyes
21243 then :
21244
21245 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
21246
21247 fi
21248
21249
21250
21251
21252
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
21254 printf %s "checking for getpeername... " >&6; }
21255 if test ${ac_cv_func_getpeername+y}
21256 then :
21257 printf %s "(cached) " >&6
21258 else $as_nop
21259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21260 /* end confdefs.h. */
21261
21262 #include <sys/types.h>
21263 #include <sys/socket.h>
21264 #include <netinet/in.h>
21265 #include <arpa/inet.h>
21266
21267 int
21268 main (void)
21269 {
21270 void *x=getpeername
21271 ;
21272 return 0;
21273 }
21274 _ACEOF
21275 if ac_fn_c_try_compile "$LINENO"
21276 then :
21277 ac_cv_func_getpeername=yes
21278 else $as_nop
21279 ac_cv_func_getpeername=no
21280 fi
21281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21282
21283 fi
21284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
21285 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
21286 if test "x$ac_cv_func_getpeername" = xyes
21287 then :
21288
21289 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
21290
21291 fi
21292
21293
21294
21295
21296
21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
21298 printf %s "checking for getsockname... " >&6; }
21299 if test ${ac_cv_func_getsockname+y}
21300 then :
21301 printf %s "(cached) " >&6
21302 else $as_nop
21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21305
21306 #include <sys/types.h>
21307 #include <sys/socket.h>
21308 #include <netinet/in.h>
21309 #include <arpa/inet.h>
21310
21311 int
21312 main (void)
21313 {
21314 void *x=getsockname
21315 ;
21316 return 0;
21317 }
21318 _ACEOF
21319 if ac_fn_c_try_compile "$LINENO"
21320 then :
21321 ac_cv_func_getsockname=yes
21322 else $as_nop
21323 ac_cv_func_getsockname=no
21324 fi
21325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21326
21327 fi
21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
21329 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
21330 if test "x$ac_cv_func_getsockname" = xyes
21331 then :
21332
21333 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
21334
21335 fi
21336
21337
21338
21339
21340
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
21342 printf %s "checking for accept... " >&6; }
21343 if test ${ac_cv_func_accept+y}
21344 then :
21345 printf %s "(cached) " >&6
21346 else $as_nop
21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21349
21350 #include <sys/types.h>
21351 #include <sys/socket.h>
21352 #include <netinet/in.h>
21353 #include <arpa/inet.h>
21354
21355 int
21356 main (void)
21357 {
21358 void *x=accept
21359 ;
21360 return 0;
21361 }
21362 _ACEOF
21363 if ac_fn_c_try_compile "$LINENO"
21364 then :
21365 ac_cv_func_accept=yes
21366 else $as_nop
21367 ac_cv_func_accept=no
21368 fi
21369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21370
21371 fi
21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
21373 printf "%s\n" "$ac_cv_func_accept" >&6; }
21374 if test "x$ac_cv_func_accept" = xyes
21375 then :
21376
21377 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
21378
21379 fi
21380
21381
21382
21383
21384
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
21386 printf %s "checking for bind... " >&6; }
21387 if test ${ac_cv_func_bind+y}
21388 then :
21389 printf %s "(cached) " >&6
21390 else $as_nop
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21393
21394 #include <sys/types.h>
21395 #include <sys/socket.h>
21396 #include <netinet/in.h>
21397 #include <arpa/inet.h>
21398
21399 int
21400 main (void)
21401 {
21402 void *x=bind
21403 ;
21404 return 0;
21405 }
21406 _ACEOF
21407 if ac_fn_c_try_compile "$LINENO"
21408 then :
21409 ac_cv_func_bind=yes
21410 else $as_nop
21411 ac_cv_func_bind=no
21412 fi
21413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21414
21415 fi
21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
21417 printf "%s\n" "$ac_cv_func_bind" >&6; }
21418 if test "x$ac_cv_func_bind" = xyes
21419 then :
21420
21421 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
21422
21423 fi
21424
21425
21426
21427
21428
21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
21430 printf %s "checking for connect... " >&6; }
21431 if test ${ac_cv_func_connect+y}
21432 then :
21433 printf %s "(cached) " >&6
21434 else $as_nop
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21437
21438 #include <sys/types.h>
21439 #include <sys/socket.h>
21440 #include <netinet/in.h>
21441 #include <arpa/inet.h>
21442
21443 int
21444 main (void)
21445 {
21446 void *x=connect
21447 ;
21448 return 0;
21449 }
21450 _ACEOF
21451 if ac_fn_c_try_compile "$LINENO"
21452 then :
21453 ac_cv_func_connect=yes
21454 else $as_nop
21455 ac_cv_func_connect=no
21456 fi
21457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21458
21459 fi
21460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
21461 printf "%s\n" "$ac_cv_func_connect" >&6; }
21462 if test "x$ac_cv_func_connect" = xyes
21463 then :
21464
21465 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
21466
21467 fi
21468
21469
21470
21471
21472
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
21474 printf %s "checking for listen... " >&6; }
21475 if test ${ac_cv_func_listen+y}
21476 then :
21477 printf %s "(cached) " >&6
21478 else $as_nop
21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21481
21482 #include <sys/types.h>
21483 #include <sys/socket.h>
21484 #include <netinet/in.h>
21485 #include <arpa/inet.h>
21486
21487 int
21488 main (void)
21489 {
21490 void *x=listen
21491 ;
21492 return 0;
21493 }
21494 _ACEOF
21495 if ac_fn_c_try_compile "$LINENO"
21496 then :
21497 ac_cv_func_listen=yes
21498 else $as_nop
21499 ac_cv_func_listen=no
21500 fi
21501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21502
21503 fi
21504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
21505 printf "%s\n" "$ac_cv_func_listen" >&6; }
21506 if test "x$ac_cv_func_listen" = xyes
21507 then :
21508
21509 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
21510
21511 fi
21512
21513
21514
21515
21516
21517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
21518 printf %s "checking for recvfrom... " >&6; }
21519 if test ${ac_cv_func_recvfrom+y}
21520 then :
21521 printf %s "(cached) " >&6
21522 else $as_nop
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21525
21526 #include <sys/types.h>
21527 #include <sys/socket.h>
21528 #include <netinet/in.h>
21529 #include <arpa/inet.h>
21530
21531 int
21532 main (void)
21533 {
21534 void *x=recvfrom
21535 ;
21536 return 0;
21537 }
21538 _ACEOF
21539 if ac_fn_c_try_compile "$LINENO"
21540 then :
21541 ac_cv_func_recvfrom=yes
21542 else $as_nop
21543 ac_cv_func_recvfrom=no
21544 fi
21545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21546
21547 fi
21548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
21549 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
21550 if test "x$ac_cv_func_recvfrom" = xyes
21551 then :
21552
21553 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
21554
21555 fi
21556
21557
21558
21559
21560
21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
21562 printf %s "checking for sendto... " >&6; }
21563 if test ${ac_cv_func_sendto+y}
21564 then :
21565 printf %s "(cached) " >&6
21566 else $as_nop
21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21569
21570 #include <sys/types.h>
21571 #include <sys/socket.h>
21572 #include <netinet/in.h>
21573 #include <arpa/inet.h>
21574
21575 int
21576 main (void)
21577 {
21578 void *x=sendto
21579 ;
21580 return 0;
21581 }
21582 _ACEOF
21583 if ac_fn_c_try_compile "$LINENO"
21584 then :
21585 ac_cv_func_sendto=yes
21586 else $as_nop
21587 ac_cv_func_sendto=no
21588 fi
21589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21590
21591 fi
21592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
21593 printf "%s\n" "$ac_cv_func_sendto" >&6; }
21594 if test "x$ac_cv_func_sendto" = xyes
21595 then :
21596
21597 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
21598
21599 fi
21600
21601
21602
21603
21604
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
21606 printf %s "checking for setsockopt... " >&6; }
21607 if test ${ac_cv_func_setsockopt+y}
21608 then :
21609 printf %s "(cached) " >&6
21610 else $as_nop
21611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612 /* end confdefs.h. */
21613
21614 #include <sys/types.h>
21615 #include <sys/socket.h>
21616 #include <netinet/in.h>
21617 #include <arpa/inet.h>
21618
21619 int
21620 main (void)
21621 {
21622 void *x=setsockopt
21623 ;
21624 return 0;
21625 }
21626 _ACEOF
21627 if ac_fn_c_try_compile "$LINENO"
21628 then :
21629 ac_cv_func_setsockopt=yes
21630 else $as_nop
21631 ac_cv_func_setsockopt=no
21632 fi
21633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21634
21635 fi
21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
21637 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
21638 if test "x$ac_cv_func_setsockopt" = xyes
21639 then :
21640
21641 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
21642
21643 fi
21644
21645
21646
21647
21648
21649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
21650 printf %s "checking for socket... " >&6; }
21651 if test ${ac_cv_func_socket+y}
21652 then :
21653 printf %s "(cached) " >&6
21654 else $as_nop
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21657
21658 #include <sys/types.h>
21659 #include <sys/socket.h>
21660 #include <netinet/in.h>
21661 #include <arpa/inet.h>
21662
21663 int
21664 main (void)
21665 {
21666 void *x=socket
21667 ;
21668 return 0;
21669 }
21670 _ACEOF
21671 if ac_fn_c_try_compile "$LINENO"
21672 then :
21673 ac_cv_func_socket=yes
21674 else $as_nop
21675 ac_cv_func_socket=no
21676 fi
21677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21678
21679 fi
21680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
21681 printf "%s\n" "$ac_cv_func_socket" >&6; }
21682 if test "x$ac_cv_func_socket" = xyes
21683 then :
21684
21685 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
21686
21687 fi
21688
21689
21690
21691
21692 # On some systems, setgroups is in unistd.h, on others, in grp.h
21693
21694
21695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
21696 printf %s "checking for setgroups... " >&6; }
21697 if test ${ac_cv_func_setgroups+y}
21698 then :
21699 printf %s "(cached) " >&6
21700 else $as_nop
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21703
21704 #include <unistd.h>
21705 #ifdef HAVE_GRP_H
21706 #include <grp.h>
21707 #endif
21708
21709 int
21710 main (void)
21711 {
21712 void *x=setgroups
21713 ;
21714 return 0;
21715 }
21716 _ACEOF
21717 if ac_fn_c_try_compile "$LINENO"
21718 then :
21719 ac_cv_func_setgroups=yes
21720 else $as_nop
21721 ac_cv_func_setgroups=no
21722 fi
21723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21724
21725 fi
21726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
21727 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
21728 if test "x$ac_cv_func_setgroups" = xyes
21729 then :
21730
21731 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
21732
21733 fi
21734
21735
21736
21737
21738 # check for openpty, login_tty, and forkpty
21739
21740
21741 for ac_func in openpty
21742 do :
21743 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
21744 if test "x$ac_cv_func_openpty" = xyes
21745 then :
21746 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21747
21748 else $as_nop
21749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21750 printf %s "checking for openpty in -lutil... " >&6; }
21751 if test ${ac_cv_lib_util_openpty+y}
21752 then :
21753 printf %s "(cached) " >&6
21754 else $as_nop
21755 ac_check_lib_save_LIBS=$LIBS
21756 LIBS="-lutil $LIBS"
21757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h. */
21759
21760 /* Override any GCC internal prototype to avoid an error.
21761 Use char because int might match the return type of a GCC
21762 builtin and then its argument prototype would still apply. */
21763 char openpty ();
21764 int
21765 main (void)
21766 {
21767 return openpty ();
21768 ;
21769 return 0;
21770 }
21771 _ACEOF
21772 if ac_fn_c_try_link "$LINENO"
21773 then :
21774 ac_cv_lib_util_openpty=yes
21775 else $as_nop
21776 ac_cv_lib_util_openpty=no
21777 fi
21778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21779 conftest$ac_exeext conftest.$ac_ext
21780 LIBS=$ac_check_lib_save_LIBS
21781 fi
21782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21783 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
21784 if test "x$ac_cv_lib_util_openpty" = xyes
21785 then :
21786 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21787 LIBS="$LIBS -lutil"
21788 else $as_nop
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
21790 printf %s "checking for openpty in -lbsd... " >&6; }
21791 if test ${ac_cv_lib_bsd_openpty+y}
21792 then :
21793 printf %s "(cached) " >&6
21794 else $as_nop
21795 ac_check_lib_save_LIBS=$LIBS
21796 LIBS="-lbsd $LIBS"
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21799
21800 /* Override any GCC internal prototype to avoid an error.
21801 Use char because int might match the return type of a GCC
21802 builtin and then its argument prototype would still apply. */
21803 char openpty ();
21804 int
21805 main (void)
21806 {
21807 return openpty ();
21808 ;
21809 return 0;
21810 }
21811 _ACEOF
21812 if ac_fn_c_try_link "$LINENO"
21813 then :
21814 ac_cv_lib_bsd_openpty=yes
21815 else $as_nop
21816 ac_cv_lib_bsd_openpty=no
21817 fi
21818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21819 conftest$ac_exeext conftest.$ac_ext
21820 LIBS=$ac_check_lib_save_LIBS
21821 fi
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
21823 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
21824 if test "x$ac_cv_lib_bsd_openpty" = xyes
21825 then :
21826 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21827 LIBS="$LIBS -lbsd"
21828 fi
21829
21830 fi
21831
21832 fi
21833
21834 done
21835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
21836 printf %s "checking for library containing login_tty... " >&6; }
21837 if test ${ac_cv_search_login_tty+y}
21838 then :
21839 printf %s "(cached) " >&6
21840 else $as_nop
21841 ac_func_search_save_LIBS=$LIBS
21842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21844
21845 /* Override any GCC internal prototype to avoid an error.
21846 Use char because int might match the return type of a GCC
21847 builtin and then its argument prototype would still apply. */
21848 char login_tty ();
21849 int
21850 main (void)
21851 {
21852 return login_tty ();
21853 ;
21854 return 0;
21855 }
21856 _ACEOF
21857 for ac_lib in '' util
21858 do
21859 if test -z "$ac_lib"; then
21860 ac_res="none required"
21861 else
21862 ac_res=-l$ac_lib
21863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21864 fi
21865 if ac_fn_c_try_link "$LINENO"
21866 then :
21867 ac_cv_search_login_tty=$ac_res
21868 fi
21869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21870 conftest$ac_exeext
21871 if test ${ac_cv_search_login_tty+y}
21872 then :
21873 break
21874 fi
21875 done
21876 if test ${ac_cv_search_login_tty+y}
21877 then :
21878
21879 else $as_nop
21880 ac_cv_search_login_tty=no
21881 fi
21882 rm conftest.$ac_ext
21883 LIBS=$ac_func_search_save_LIBS
21884 fi
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
21886 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
21887 ac_res=$ac_cv_search_login_tty
21888 if test "$ac_res" != no
21889 then :
21890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21891
21892 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
21893
21894
21895 fi
21896
21897
21898 for ac_func in forkpty
21899 do :
21900 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
21901 if test "x$ac_cv_func_forkpty" = xyes
21902 then :
21903 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21904
21905 else $as_nop
21906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
21907 printf %s "checking for forkpty in -lutil... " >&6; }
21908 if test ${ac_cv_lib_util_forkpty+y}
21909 then :
21910 printf %s "(cached) " >&6
21911 else $as_nop
21912 ac_check_lib_save_LIBS=$LIBS
21913 LIBS="-lutil $LIBS"
21914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h. */
21916
21917 /* Override any GCC internal prototype to avoid an error.
21918 Use char because int might match the return type of a GCC
21919 builtin and then its argument prototype would still apply. */
21920 char forkpty ();
21921 int
21922 main (void)
21923 {
21924 return forkpty ();
21925 ;
21926 return 0;
21927 }
21928 _ACEOF
21929 if ac_fn_c_try_link "$LINENO"
21930 then :
21931 ac_cv_lib_util_forkpty=yes
21932 else $as_nop
21933 ac_cv_lib_util_forkpty=no
21934 fi
21935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21936 conftest$ac_exeext conftest.$ac_ext
21937 LIBS=$ac_check_lib_save_LIBS
21938 fi
21939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
21940 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
21941 if test "x$ac_cv_lib_util_forkpty" = xyes
21942 then :
21943 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21944 LIBS="$LIBS -lutil"
21945 else $as_nop
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
21947 printf %s "checking for forkpty in -lbsd... " >&6; }
21948 if test ${ac_cv_lib_bsd_forkpty+y}
21949 then :
21950 printf %s "(cached) " >&6
21951 else $as_nop
21952 ac_check_lib_save_LIBS=$LIBS
21953 LIBS="-lbsd $LIBS"
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21956
21957 /* Override any GCC internal prototype to avoid an error.
21958 Use char because int might match the return type of a GCC
21959 builtin and then its argument prototype would still apply. */
21960 char forkpty ();
21961 int
21962 main (void)
21963 {
21964 return forkpty ();
21965 ;
21966 return 0;
21967 }
21968 _ACEOF
21969 if ac_fn_c_try_link "$LINENO"
21970 then :
21971 ac_cv_lib_bsd_forkpty=yes
21972 else $as_nop
21973 ac_cv_lib_bsd_forkpty=no
21974 fi
21975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21976 conftest$ac_exeext conftest.$ac_ext
21977 LIBS=$ac_check_lib_save_LIBS
21978 fi
21979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
21980 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
21981 if test "x$ac_cv_lib_bsd_forkpty" = xyes
21982 then :
21983 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21984 LIBS="$LIBS -lbsd"
21985 fi
21986
21987 fi
21988
21989 fi
21990
21991 done
21992
21993 # check for long file support functions
21994 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
21995 if test "x$ac_cv_func_fseek64" = xyes
21996 then :
21997 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
21998
21999 fi
22000 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
22001 if test "x$ac_cv_func_fseeko" = xyes
22002 then :
22003 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22004
22005 fi
22006 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
22007 if test "x$ac_cv_func_fstatvfs" = xyes
22008 then :
22009 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
22010
22011 fi
22012 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
22013 if test "x$ac_cv_func_ftell64" = xyes
22014 then :
22015 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
22016
22017 fi
22018 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
22019 if test "x$ac_cv_func_ftello" = xyes
22020 then :
22021 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
22022
22023 fi
22024 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
22025 if test "x$ac_cv_func_statvfs" = xyes
22026 then :
22027 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
22028
22029 fi
22030
22031
22032 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
22033 if test "x$ac_cv_func_dup2" = xyes
22034 then :
22035 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
22036
22037 else $as_nop
22038 case " $LIBOBJS " in
22039 *" dup2.$ac_objext "* ) ;;
22040 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
22041 ;;
22042 esac
22043
22044 fi
22045
22046
22047 for ac_func in getpgrp
22048 do :
22049 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22050 if test "x$ac_cv_func_getpgrp" = xyes
22051 then :
22052 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
22053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h. */
22055 #include <unistd.h>
22056 int
22057 main (void)
22058 {
22059 getpgrp(0);
22060 ;
22061 return 0;
22062 }
22063 _ACEOF
22064 if ac_fn_c_try_compile "$LINENO"
22065 then :
22066
22067 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22068
22069 fi
22070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22071 fi
22072
22073 done
22074
22075 for ac_func in setpgrp
22076 do :
22077 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22078 if test "x$ac_cv_func_setpgrp" = xyes
22079 then :
22080 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
22081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <unistd.h>
22084 int
22085 main (void)
22086 {
22087 setpgrp(0,0);
22088 ;
22089 return 0;
22090 }
22091 _ACEOF
22092 if ac_fn_c_try_compile "$LINENO"
22093 then :
22094
22095 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22096
22097 fi
22098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22099 fi
22100
22101 done
22102
22103 # check for namespace functions
22104 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
22105 if test "x$ac_cv_func_setns" = xyes
22106 then :
22107 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
22108
22109 fi
22110 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
22111 if test "x$ac_cv_func_unshare" = xyes
22112 then :
22113 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
22114
22115 fi
22116
22117
22118
22119 for ac_func in clock_gettime
22120 do :
22121 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22122 if test "x$ac_cv_func_clock_gettime" = xyes
22123 then :
22124 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22125
22126 else $as_nop
22127
22128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22129 printf %s "checking for clock_gettime in -lrt... " >&6; }
22130 if test ${ac_cv_lib_rt_clock_gettime+y}
22131 then :
22132 printf %s "(cached) " >&6
22133 else $as_nop
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-lrt $LIBS"
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h. */
22138
22139 /* Override any GCC internal prototype to avoid an error.
22140 Use char because int might match the return type of a GCC
22141 builtin and then its argument prototype would still apply. */
22142 char clock_gettime ();
22143 int
22144 main (void)
22145 {
22146 return clock_gettime ();
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 if ac_fn_c_try_link "$LINENO"
22152 then :
22153 ac_cv_lib_rt_clock_gettime=yes
22154 else $as_nop
22155 ac_cv_lib_rt_clock_gettime=no
22156 fi
22157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22158 conftest$ac_exeext conftest.$ac_ext
22159 LIBS=$ac_check_lib_save_LIBS
22160 fi
22161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22162 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
22163 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
22164 then :
22165
22166 LIBS="$LIBS -lrt"
22167 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22168
22169
22170 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
22171
22172
22173 fi
22174
22175
22176 fi
22177
22178 done
22179
22180
22181 for ac_func in clock_getres
22182 do :
22183 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
22184 if test "x$ac_cv_func_clock_getres" = xyes
22185 then :
22186 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22187
22188 else $as_nop
22189
22190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
22191 printf %s "checking for clock_getres in -lrt... " >&6; }
22192 if test ${ac_cv_lib_rt_clock_getres+y}
22193 then :
22194 printf %s "(cached) " >&6
22195 else $as_nop
22196 ac_check_lib_save_LIBS=$LIBS
22197 LIBS="-lrt $LIBS"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22200
22201 /* Override any GCC internal prototype to avoid an error.
22202 Use char because int might match the return type of a GCC
22203 builtin and then its argument prototype would still apply. */
22204 char clock_getres ();
22205 int
22206 main (void)
22207 {
22208 return clock_getres ();
22209 ;
22210 return 0;
22211 }
22212 _ACEOF
22213 if ac_fn_c_try_link "$LINENO"
22214 then :
22215 ac_cv_lib_rt_clock_getres=yes
22216 else $as_nop
22217 ac_cv_lib_rt_clock_getres=no
22218 fi
22219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22220 conftest$ac_exeext conftest.$ac_ext
22221 LIBS=$ac_check_lib_save_LIBS
22222 fi
22223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
22224 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
22225 if test "x$ac_cv_lib_rt_clock_getres" = xyes
22226 then :
22227
22228 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22229
22230
22231 fi
22232
22233
22234 fi
22235
22236 done
22237
22238 # On Android and iOS, clock_settime can be linked (so it is found by
22239 # configure), but when used in an unprivileged process, it crashes rather than
22240 # returning an error. Force the symbol off.
22241 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
22242 then
22243
22244 for ac_func in clock_settime
22245 do :
22246 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
22247 if test "x$ac_cv_func_clock_settime" = xyes
22248 then :
22249 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22250
22251 else $as_nop
22252
22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
22254 printf %s "checking for clock_settime in -lrt... " >&6; }
22255 if test ${ac_cv_lib_rt_clock_settime+y}
22256 then :
22257 printf %s "(cached) " >&6
22258 else $as_nop
22259 ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lrt $LIBS"
22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22263
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22267 char clock_settime ();
22268 int
22269 main (void)
22270 {
22271 return clock_settime ();
22272 ;
22273 return 0;
22274 }
22275 _ACEOF
22276 if ac_fn_c_try_link "$LINENO"
22277 then :
22278 ac_cv_lib_rt_clock_settime=yes
22279 else $as_nop
22280 ac_cv_lib_rt_clock_settime=no
22281 fi
22282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22283 conftest$ac_exeext conftest.$ac_ext
22284 LIBS=$ac_check_lib_save_LIBS
22285 fi
22286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
22287 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
22288 if test "x$ac_cv_lib_rt_clock_settime" = xyes
22289 then :
22290
22291 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22292
22293
22294 fi
22295
22296
22297 fi
22298
22299 done
22300 fi
22301
22302 # On Android before API level 23, clock_nanosleep returns the wrong value when
22303 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
22304 if ! { test "$ac_sys_system" = "Linux-android" &&
22305 test "$ANDROID_API_LEVEL" -lt 23; }; then
22306
22307 for ac_func in clock_nanosleep
22308 do :
22309 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
22310 if test "x$ac_cv_func_clock_nanosleep" = xyes
22311 then :
22312 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22313
22314 else $as_nop
22315
22316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
22317 printf %s "checking for clock_nanosleep in -lrt... " >&6; }
22318 if test ${ac_cv_lib_rt_clock_nanosleep+y}
22319 then :
22320 printf %s "(cached) " >&6
22321 else $as_nop
22322 ac_check_lib_save_LIBS=$LIBS
22323 LIBS="-lrt $LIBS"
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22326
22327 /* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
22330 char clock_nanosleep ();
22331 int
22332 main (void)
22333 {
22334 return clock_nanosleep ();
22335 ;
22336 return 0;
22337 }
22338 _ACEOF
22339 if ac_fn_c_try_link "$LINENO"
22340 then :
22341 ac_cv_lib_rt_clock_nanosleep=yes
22342 else $as_nop
22343 ac_cv_lib_rt_clock_nanosleep=no
22344 fi
22345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS=$ac_check_lib_save_LIBS
22348 fi
22349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
22350 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
22351 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
22352 then :
22353
22354 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22355
22356
22357 fi
22358
22359
22360 fi
22361
22362 done
22363 fi
22364
22365
22366 for ac_func in nanosleep
22367 do :
22368 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22369 if test "x$ac_cv_func_nanosleep" = xyes
22370 then :
22371 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22372
22373 else $as_nop
22374
22375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
22376 printf %s "checking for nanosleep in -lrt... " >&6; }
22377 if test ${ac_cv_lib_rt_nanosleep+y}
22378 then :
22379 printf %s "(cached) " >&6
22380 else $as_nop
22381 ac_check_lib_save_LIBS=$LIBS
22382 LIBS="-lrt $LIBS"
22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384 /* end confdefs.h. */
22385
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22389 char nanosleep ();
22390 int
22391 main (void)
22392 {
22393 return nanosleep ();
22394 ;
22395 return 0;
22396 }
22397 _ACEOF
22398 if ac_fn_c_try_link "$LINENO"
22399 then :
22400 ac_cv_lib_rt_nanosleep=yes
22401 else $as_nop
22402 ac_cv_lib_rt_nanosleep=no
22403 fi
22404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22405 conftest$ac_exeext conftest.$ac_ext
22406 LIBS=$ac_check_lib_save_LIBS
22407 fi
22408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
22409 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
22410 if test "x$ac_cv_lib_rt_nanosleep" = xyes
22411 then :
22412
22413 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22414
22415
22416 fi
22417
22418
22419 fi
22420
22421 done
22422
22423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
22424 printf %s "checking for major, minor, and makedev... " >&6; }
22425 if test ${ac_cv_device_macros+y}
22426 then :
22427 printf %s "(cached) " >&6
22428 else $as_nop
22429
22430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431 /* end confdefs.h. */
22432
22433 #if defined(MAJOR_IN_MKDEV)
22434 #include <sys/mkdev.h>
22435 #elif defined(MAJOR_IN_SYSMACROS)
22436 #include <sys/types.h>
22437 #include <sys/sysmacros.h>
22438 #else
22439 #include <sys/types.h>
22440 #endif
22441
22442 int
22443 main (void)
22444 {
22445
22446 makedev(major(0),minor(0));
22447
22448 ;
22449 return 0;
22450 }
22451 _ACEOF
22452 if ac_fn_c_try_link "$LINENO"
22453 then :
22454 ac_cv_device_macros=yes
22455 else $as_nop
22456 ac_cv_device_macros=no
22457 fi
22458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22459 conftest$ac_exeext conftest.$ac_ext
22460
22461 fi
22462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
22463 printf "%s\n" "$ac_cv_device_macros" >&6; }
22464 if test "x$ac_cv_device_macros" = xyes
22465 then :
22466
22467
22468 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22469
22470
22471 fi
22472
22473
22474 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
22475
22476
22477 # On OSF/1 V5.1, getaddrinfo is available, but a define
22478 # for [no]getaddrinfo in netdb.h.
22479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22480 printf %s "checking for getaddrinfo... " >&6; }
22481 if test ${ac_cv_func_getaddrinfo+y}
22482 then :
22483 printf %s "(cached) " >&6
22484 else $as_nop
22485
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h. */
22488
22489 #include <sys/types.h>
22490 #include <sys/socket.h>
22491 #include <netdb.h>
22492 #include <stdio.h>
22493
22494 int
22495 main (void)
22496 {
22497 getaddrinfo(NULL, NULL, NULL, NULL);
22498 ;
22499 return 0;
22500 }
22501 _ACEOF
22502 if ac_fn_c_try_link "$LINENO"
22503 then :
22504 ac_cv_func_getaddrinfo=yes
22505 else $as_nop
22506 ac_cv_func_getaddrinfo=no
22507 fi
22508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22509 conftest$ac_exeext conftest.$ac_ext
22510
22511 fi
22512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
22513 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
22514
22515 if test "x$ac_cv_func_getaddrinfo" = xyes
22516 then :
22517
22518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
22519 printf %s "checking getaddrinfo bug... " >&6; }
22520 if test ${ac_cv_buggy_getaddrinfo+y}
22521 then :
22522 printf %s "(cached) " >&6
22523 else $as_nop
22524 if test "$cross_compiling" = yes
22525 then :
22526
22527 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
22528 ac_cv_buggy_getaddrinfo="no"
22529 elif test "${enable_ipv6+set}" = set; then
22530 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
22531 else
22532 ac_cv_buggy_getaddrinfo=yes
22533 fi
22534 else $as_nop
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22537
22538 #include <stdio.h>
22539 #include <sys/types.h>
22540 #include <netdb.h>
22541 #include <string.h>
22542 #include <sys/socket.h>
22543 #include <netinet/in.h>
22544
22545 int main(void)
22546 {
22547 int passive, gaierr, inet4 = 0, inet6 = 0;
22548 struct addrinfo hints, *ai, *aitop;
22549 char straddr[INET6_ADDRSTRLEN], strport[16];
22550
22551 for (passive = 0; passive <= 1; passive++) {
22552 memset(&hints, 0, sizeof(hints));
22553 hints.ai_family = AF_UNSPEC;
22554 hints.ai_flags = passive ? AI_PASSIVE : 0;
22555 hints.ai_socktype = SOCK_STREAM;
22556 hints.ai_protocol = IPPROTO_TCP;
22557 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22558 (void)gai_strerror(gaierr);
22559 goto bad;
22560 }
22561 for (ai = aitop; ai; ai = ai->ai_next) {
22562 if (ai->ai_addr == NULL ||
22563 ai->ai_addrlen == 0 ||
22564 getnameinfo(ai->ai_addr, ai->ai_addrlen,
22565 straddr, sizeof(straddr), strport, sizeof(strport),
22566 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22567 goto bad;
22568 }
22569 switch (ai->ai_family) {
22570 case AF_INET:
22571 if (strcmp(strport, "54321") != 0) {
22572 goto bad;
22573 }
22574 if (passive) {
22575 if (strcmp(straddr, "0.0.0.0") != 0) {
22576 goto bad;
22577 }
22578 } else {
22579 if (strcmp(straddr, "127.0.0.1") != 0) {
22580 goto bad;
22581 }
22582 }
22583 inet4++;
22584 break;
22585 case AF_INET6:
22586 if (strcmp(strport, "54321") != 0) {
22587 goto bad;
22588 }
22589 if (passive) {
22590 if (strcmp(straddr, "::") != 0) {
22591 goto bad;
22592 }
22593 } else {
22594 if (strcmp(straddr, "::1") != 0) {
22595 goto bad;
22596 }
22597 }
22598 inet6++;
22599 break;
22600 case AF_UNSPEC:
22601 goto bad;
22602 break;
22603 default:
22604 /* another family support? */
22605 break;
22606 }
22607 }
22608 freeaddrinfo(aitop);
22609 aitop = NULL;
22610 }
22611
22612 if (!(inet4 == 0 || inet4 == 2))
22613 goto bad;
22614 if (!(inet6 == 0 || inet6 == 2))
22615 goto bad;
22616
22617 if (aitop)
22618 freeaddrinfo(aitop);
22619 return 0;
22620
22621 bad:
22622 if (aitop)
22623 freeaddrinfo(aitop);
22624 return 1;
22625 }
22626
22627 _ACEOF
22628 if ac_fn_c_try_run "$LINENO"
22629 then :
22630 ac_cv_buggy_getaddrinfo=no
22631 else $as_nop
22632 ac_cv_buggy_getaddrinfo=yes
22633 fi
22634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22635 conftest.$ac_objext conftest.beam conftest.$ac_ext
22636 fi
22637
22638 fi
22639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
22640 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
22641
22642
22643 fi
22644
22645 if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
22646 then
22647 if test "x$ipv6" = xyes
22648 then :
22649
22650 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
22651
22652 fi
22653 else
22654
22655 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
22656
22657 fi
22658
22659 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
22660 if test "x$ac_cv_func_getnameinfo" = xyes
22661 then :
22662 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
22663
22664 fi
22665
22666
22667 # checks for structures
22668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22669 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22670 if test ${ac_cv_struct_tm+y}
22671 then :
22672 printf %s "(cached) " >&6
22673 else $as_nop
22674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h. */
22676 #include <sys/types.h>
22677 #include <time.h>
22678
22679 int
22680 main (void)
22681 {
22682 struct tm tm;
22683 int *p = &tm.tm_sec;
22684 return !p;
22685 ;
22686 return 0;
22687 }
22688 _ACEOF
22689 if ac_fn_c_try_compile "$LINENO"
22690 then :
22691 ac_cv_struct_tm=time.h
22692 else $as_nop
22693 ac_cv_struct_tm=sys/time.h
22694 fi
22695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22696 fi
22697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22698 printf "%s\n" "$ac_cv_struct_tm" >&6; }
22699 if test $ac_cv_struct_tm = sys/time.h; then
22700
22701 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
22702
22703 fi
22704
22705 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22706 #include <$ac_cv_struct_tm>
22707
22708 "
22709 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
22710 then :
22711
22712 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
22713
22714
22715 fi
22716
22717 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22718
22719 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
22720
22721 else
22722 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22723 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22724 if test "x$ac_cv_have_decl_tzname" = xyes
22725 then :
22726 ac_have_decl=1
22727 else $as_nop
22728 ac_have_decl=0
22729 fi
22730 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
22731
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22733 printf %s "checking for tzname... " >&6; }
22734 if test ${ac_cv_var_tzname+y}
22735 then :
22736 printf %s "(cached) " >&6
22737 else $as_nop
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h. */
22740 #include <time.h>
22741 #if !HAVE_DECL_TZNAME
22742 extern char *tzname[];
22743 #endif
22744
22745 int
22746 main (void)
22747 {
22748 return tzname[0][0];
22749 ;
22750 return 0;
22751 }
22752 _ACEOF
22753 if ac_fn_c_try_link "$LINENO"
22754 then :
22755 ac_cv_var_tzname=yes
22756 else $as_nop
22757 ac_cv_var_tzname=no
22758 fi
22759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22760 conftest$ac_exeext conftest.$ac_ext
22761 fi
22762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22763 printf "%s\n" "$ac_cv_var_tzname" >&6; }
22764 if test $ac_cv_var_tzname = yes; then
22765
22766 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
22767
22768 fi
22769 fi
22770
22771 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22772 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
22773 then :
22774
22775 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
22776
22777
22778 fi
22779
22780 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22781 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
22782 then :
22783
22784 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
22785
22786
22787 fi
22788
22789 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
22790 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
22791 then :
22792
22793 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
22794
22795
22796 fi
22797
22798 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
22799 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
22800 then :
22801
22802 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
22803
22804
22805 fi
22806
22807 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
22808 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
22809 then :
22810
22811 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
22812
22813
22814 fi
22815
22816 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22817 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
22818 then :
22819
22820 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
22821
22822
22823 fi
22824
22825 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
22826 #include <sys/types.h>
22827 #include <pwd.h>
22828
22829 "
22830 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
22831 then :
22832
22833 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
22834
22835
22836 fi
22837 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
22838 #include <sys/types.h>
22839 #include <pwd.h>
22840
22841 "
22842 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
22843 then :
22844
22845 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
22846
22847
22848 fi
22849
22850 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
22851 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
22852 "
22853 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
22854 then :
22855
22856 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
22857
22858
22859 fi
22860
22861
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
22863 printf %s "checking for time.h that defines altzone... " >&6; }
22864 if test ${ac_cv_header_time_altzone+y}
22865 then :
22866 printf %s "(cached) " >&6
22867 else $as_nop
22868
22869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h. */
22871 #include <time.h>
22872 int
22873 main (void)
22874 {
22875 return altzone;
22876 ;
22877 return 0;
22878 }
22879 _ACEOF
22880 if ac_fn_c_try_compile "$LINENO"
22881 then :
22882 ac_cv_header_time_altzone=yes
22883 else $as_nop
22884 ac_cv_header_time_altzone=no
22885 fi
22886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22887
22888 fi
22889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
22890 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
22891 if test $ac_cv_header_time_altzone = yes; then
22892
22893 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
22894
22895 fi
22896
22897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
22898 printf %s "checking for addrinfo... " >&6; }
22899 if test ${ac_cv_struct_addrinfo+y}
22900 then :
22901 printf %s "(cached) " >&6
22902 else $as_nop
22903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22904 /* end confdefs.h. */
22905 #include <netdb.h>
22906 int
22907 main (void)
22908 {
22909 struct addrinfo a
22910 ;
22911 return 0;
22912 }
22913 _ACEOF
22914 if ac_fn_c_try_compile "$LINENO"
22915 then :
22916 ac_cv_struct_addrinfo=yes
22917 else $as_nop
22918 ac_cv_struct_addrinfo=no
22919 fi
22920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22921 fi
22922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
22923 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
22924 if test $ac_cv_struct_addrinfo = yes; then
22925
22926 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
22927
22928 fi
22929
22930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
22931 printf %s "checking for sockaddr_storage... " >&6; }
22932 if test ${ac_cv_struct_sockaddr_storage+y}
22933 then :
22934 printf %s "(cached) " >&6
22935 else $as_nop
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22938
22939 # include <sys/types.h>
22940 # include <sys/socket.h>
22941 int
22942 main (void)
22943 {
22944 struct sockaddr_storage s
22945 ;
22946 return 0;
22947 }
22948 _ACEOF
22949 if ac_fn_c_try_compile "$LINENO"
22950 then :
22951 ac_cv_struct_sockaddr_storage=yes
22952 else $as_nop
22953 ac_cv_struct_sockaddr_storage=no
22954 fi
22955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22956 fi
22957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
22958 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
22959 if test $ac_cv_struct_sockaddr_storage = yes; then
22960
22961 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22962
22963 fi
22964
22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
22966 printf %s "checking for sockaddr_alg... " >&6; }
22967 if test ${ac_cv_struct_sockaddr_alg+y}
22968 then :
22969 printf %s "(cached) " >&6
22970 else $as_nop
22971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h. */
22973
22974 # include <sys/types.h>
22975 # include <sys/socket.h>
22976 # include <linux/if_alg.h>
22977 int
22978 main (void)
22979 {
22980 struct sockaddr_alg s
22981 ;
22982 return 0;
22983 }
22984 _ACEOF
22985 if ac_fn_c_try_compile "$LINENO"
22986 then :
22987 ac_cv_struct_sockaddr_alg=yes
22988 else $as_nop
22989 ac_cv_struct_sockaddr_alg=no
22990 fi
22991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22992 fi
22993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
22994 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
22995 if test $ac_cv_struct_sockaddr_alg = yes; then
22996
22997 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
22998
22999 fi
23000
23001 # checks for compiler characteristics
23002
23003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23004 printf %s "checking for an ANSI C-conforming const... " >&6; }
23005 if test ${ac_cv_c_const+y}
23006 then :
23007 printf %s "(cached) " >&6
23008 else $as_nop
23009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h. */
23011
23012 int
23013 main (void)
23014 {
23015
23016 #ifndef __cplusplus
23017 /* Ultrix mips cc rejects this sort of thing. */
23018 typedef int charset[2];
23019 const charset cs = { 0, 0 };
23020 /* SunOS 4.1.1 cc rejects this. */
23021 char const *const *pcpcc;
23022 char **ppc;
23023 /* NEC SVR4.0.2 mips cc rejects this. */
23024 struct point {int x, y;};
23025 static struct point const zero = {0,0};
23026 /* IBM XL C 1.02.0.0 rejects this.
23027 It does not let you subtract one const X* pointer from another in
23028 an arm of an if-expression whose if-part is not a constant
23029 expression */
23030 const char *g = "string";
23031 pcpcc = &g + (g ? g-g : 0);
23032 /* HPUX 7.0 cc rejects these. */
23033 ++pcpcc;
23034 ppc = (char**) pcpcc;
23035 pcpcc = (char const *const *) ppc;
23036 { /* SCO 3.2v4 cc rejects this sort of thing. */
23037 char tx;
23038 char *t = &tx;
23039 char const *s = 0 ? (char *) 0 : (char const *) 0;
23040
23041 *t++ = 0;
23042 if (s) return 0;
23043 }
23044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23045 int x[] = {25, 17};
23046 const int *foo = &x[0];
23047 ++foo;
23048 }
23049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23050 typedef const int *iptr;
23051 iptr p = 0;
23052 ++p;
23053 }
23054 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23056 struct s { int j; const int *ap[3]; } bx;
23057 struct s *b = &bx; b->j = 5;
23058 }
23059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23060 const int foo = 10;
23061 if (!foo) return 0;
23062 }
23063 return !cs[0] && !zero.x;
23064 #endif
23065
23066 ;
23067 return 0;
23068 }
23069 _ACEOF
23070 if ac_fn_c_try_compile "$LINENO"
23071 then :
23072 ac_cv_c_const=yes
23073 else $as_nop
23074 ac_cv_c_const=no
23075 fi
23076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23077 fi
23078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23079 printf "%s\n" "$ac_cv_c_const" >&6; }
23080 if test $ac_cv_c_const = no; then
23081
23082 printf "%s\n" "#define const /**/" >>confdefs.h
23083
23084 fi
23085
23086
23087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23088 printf %s "checking for working signed char... " >&6; }
23089 if test ${ac_cv_working_signed_char_c+y}
23090 then :
23091 printf %s "(cached) " >&6
23092 else $as_nop
23093
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23096
23097 int
23098 main (void)
23099 {
23100 signed char c;
23101 ;
23102 return 0;
23103 }
23104 _ACEOF
23105 if ac_fn_c_try_compile "$LINENO"
23106 then :
23107 ac_cv_working_signed_char_c=yes
23108 else $as_nop
23109 ac_cv_working_signed_char_c=no
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23112
23113 fi
23114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
23115 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
23116 if test "x$ac_cv_working_signed_char_c" = xno
23117 then :
23118
23119
23120 printf "%s\n" "#define signed /**/" >>confdefs.h
23121
23122
23123 fi
23124
23125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23126 printf %s "checking for prototypes... " >&6; }
23127 if test ${ac_cv_function_prototypes+y}
23128 then :
23129 printf %s "(cached) " >&6
23130 else $as_nop
23131
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23134 int foo(int x) { return 0; }
23135 int
23136 main (void)
23137 {
23138 return foo(10);
23139 ;
23140 return 0;
23141 }
23142 _ACEOF
23143 if ac_fn_c_try_compile "$LINENO"
23144 then :
23145 ac_cv_function_prototypes=yes
23146 else $as_nop
23147 ac_cv_function_prototypes=no
23148 fi
23149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23150
23151 fi
23152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
23153 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
23154 if test "x$ac_cv_function_prototypes" = xyes
23155 then :
23156
23157
23158 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
23159
23160
23161 fi
23162
23163
23164 # check for socketpair
23165
23166
23167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
23168 printf %s "checking for socketpair... " >&6; }
23169 if test ${ac_cv_func_socketpair+y}
23170 then :
23171 printf %s "(cached) " >&6
23172 else $as_nop
23173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23174 /* end confdefs.h. */
23175
23176 #include <sys/types.h>
23177 #include <sys/socket.h>
23178
23179 int
23180 main (void)
23181 {
23182 void *x=socketpair
23183 ;
23184 return 0;
23185 }
23186 _ACEOF
23187 if ac_fn_c_try_compile "$LINENO"
23188 then :
23189 ac_cv_func_socketpair=yes
23190 else $as_nop
23191 ac_cv_func_socketpair=no
23192 fi
23193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23194
23195 fi
23196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
23197 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
23198 if test "x$ac_cv_func_socketpair" = xyes
23199 then :
23200
23201 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
23202
23203 fi
23204
23205
23206
23207
23208 # check if sockaddr has sa_len member
23209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
23210 printf %s "checking if sockaddr has sa_len member... " >&6; }
23211 if test ${ac_cv_struct_sockaddr_sa_len+y}
23212 then :
23213 printf %s "(cached) " >&6
23214 else $as_nop
23215
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <sys/types.h>
23219 #include <sys/socket.h>
23220 int
23221 main (void)
23222 {
23223 struct sockaddr x;
23224 x.sa_len = 0;
23225 ;
23226 return 0;
23227 }
23228 _ACEOF
23229 if ac_fn_c_try_compile "$LINENO"
23230 then :
23231 ac_cv_struct_sockaddr_sa_len=yes
23232 else $as_nop
23233 ac_cv_struct_sockaddr_sa_len=no
23234 fi
23235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23236
23237 fi
23238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
23239 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
23240 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
23241 then :
23242
23243
23244 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
23245
23246
23247 fi
23248
23249 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23250
23251
23252 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
23253 if test "x$ac_cv_func_gethostbyname_r" = xyes
23254 then :
23255 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23256
23257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
23258 printf %s "checking gethostbyname_r with 6 args... " >&6; }
23259 OLD_CFLAGS=$CFLAGS
23260 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23262 /* end confdefs.h. */
23263
23264 # include <netdb.h>
23265
23266 int
23267 main (void)
23268 {
23269
23270 char *name;
23271 struct hostent *he, *res;
23272 char buffer[2048];
23273 int buflen = 2048;
23274 int h_errnop;
23275
23276 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23277
23278 ;
23279 return 0;
23280 }
23281 _ACEOF
23282 if ac_fn_c_try_compile "$LINENO"
23283 then :
23284
23285 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23286
23287
23288 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
23289
23290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23291 printf "%s\n" "yes" >&6; }
23292
23293 else $as_nop
23294
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296 printf "%s\n" "no" >&6; }
23297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
23298 printf %s "checking gethostbyname_r with 5 args... " >&6; }
23299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h. */
23301
23302 # include <netdb.h>
23303
23304 int
23305 main (void)
23306 {
23307
23308 char *name;
23309 struct hostent *he;
23310 char buffer[2048];
23311 int buflen = 2048;
23312 int h_errnop;
23313
23314 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23315
23316 ;
23317 return 0;
23318 }
23319 _ACEOF
23320 if ac_fn_c_try_compile "$LINENO"
23321 then :
23322
23323 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23324
23325
23326 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
23327
23328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23329 printf "%s\n" "yes" >&6; }
23330
23331 else $as_nop
23332
23333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 printf "%s\n" "no" >&6; }
23335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
23336 printf %s "checking gethostbyname_r with 3 args... " >&6; }
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23339
23340 # include <netdb.h>
23341
23342 int
23343 main (void)
23344 {
23345
23346 char *name;
23347 struct hostent *he;
23348 struct hostent_data data;
23349
23350 (void) gethostbyname_r(name, he, &data);
23351
23352 ;
23353 return 0;
23354 }
23355 _ACEOF
23356 if ac_fn_c_try_compile "$LINENO"
23357 then :
23358
23359 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23360
23361
23362 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
23363
23364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23365 printf "%s\n" "yes" >&6; }
23366
23367 else $as_nop
23368
23369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23370 printf "%s\n" "no" >&6; }
23371
23372 fi
23373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23374
23375 fi
23376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23377
23378 fi
23379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23380 CFLAGS=$OLD_CFLAGS
23381
23382 else $as_nop
23383
23384 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23385 if test "x$ac_cv_func_gethostbyname" = xyes
23386 then :
23387 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23388
23389 fi
23390
23391
23392 fi
23393
23394
23395
23396
23397
23398
23399
23400 # checks for system services
23401 # (none yet)
23402
23403 # Linux requires this for correct f.p. operations
23404 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
23405 if test "x$ac_cv_func___fpu_control" = xyes
23406 then :
23407
23408 else $as_nop
23409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
23410 printf %s "checking for __fpu_control in -lieee... " >&6; }
23411 if test ${ac_cv_lib_ieee___fpu_control+y}
23412 then :
23413 printf %s "(cached) " >&6
23414 else $as_nop
23415 ac_check_lib_save_LIBS=$LIBS
23416 LIBS="-lieee $LIBS"
23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23419
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23423 char __fpu_control ();
23424 int
23425 main (void)
23426 {
23427 return __fpu_control ();
23428 ;
23429 return 0;
23430 }
23431 _ACEOF
23432 if ac_fn_c_try_link "$LINENO"
23433 then :
23434 ac_cv_lib_ieee___fpu_control=yes
23435 else $as_nop
23436 ac_cv_lib_ieee___fpu_control=no
23437 fi
23438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23439 conftest$ac_exeext conftest.$ac_ext
23440 LIBS=$ac_check_lib_save_LIBS
23441 fi
23442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
23443 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
23444 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
23445 then :
23446 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
23447
23448 LIBS="-lieee $LIBS"
23449
23450 fi
23451
23452
23453 fi
23454
23455
23456 # check for --with-libm=...
23457
23458 case $ac_sys_system in
23459 Darwin) ;;
23460 *) LIBM=-lm
23461 esac
23462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
23463 printf %s "checking for --with-libm=STRING... " >&6; }
23464
23465 # Check whether --with-libm was given.
23466 if test ${with_libm+y}
23467 then :
23468 withval=$with_libm;
23469 if test "$withval" = no
23470 then LIBM=
23471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
23472 printf "%s\n" "force LIBM empty" >&6; }
23473 elif test "$withval" != yes
23474 then LIBM=$withval
23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
23476 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
23477 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
23478 fi
23479 else $as_nop
23480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
23481 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; }
23482 fi
23483
23484
23485 # check for --with-libc=...
23486
23487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
23488 printf %s "checking for --with-libc=STRING... " >&6; }
23489
23490 # Check whether --with-libc was given.
23491 if test ${with_libc+y}
23492 then :
23493 withval=$with_libc;
23494 if test "$withval" = no
23495 then LIBC=
23496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
23497 printf "%s\n" "force LIBC empty" >&6; }
23498 elif test "$withval" != yes
23499 then LIBC=$withval
23500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
23501 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
23502 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
23503 fi
23504 else $as_nop
23505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
23506 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; }
23507 fi
23508
23509
23510 # **************************************
23511 # * Check for gcc x64 inline assembler *
23512 # **************************************
23513
23514
23515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
23516 printf %s "checking for x64 gcc inline assembler... " >&6; }
23517 if test ${ac_cv_gcc_asm_for_x64+y}
23518 then :
23519 printf %s "(cached) " >&6
23520 else $as_nop
23521
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23524
23525 int
23526 main (void)
23527 {
23528
23529 __asm__ __volatile__ ("movq %rcx, %rax");
23530
23531 ;
23532 return 0;
23533 }
23534 _ACEOF
23535 if ac_fn_c_try_link "$LINENO"
23536 then :
23537 ac_cv_gcc_asm_for_x64=yes
23538 else $as_nop
23539 ac_cv_gcc_asm_for_x64=no
23540 fi
23541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23542 conftest$ac_exeext conftest.$ac_ext
23543
23544 fi
23545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
23546 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
23547
23548 if test "x$ac_cv_gcc_asm_for_x64" = xyes
23549 then :
23550
23551
23552 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
23553
23554
23555 fi
23556
23557 # **************************************************
23558 # * Check for various properties of floating point *
23559 # **************************************************
23560
23561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
23562 printf %s "checking whether float word ordering is bigendian... " >&6; }
23563 if test ${ax_cv_c_float_words_bigendian+y}
23564 then :
23565 printf %s "(cached) " >&6
23566 else $as_nop
23567
23568
23569 ax_cv_c_float_words_bigendian=unknown
23570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23571 /* end confdefs.h. */
23572
23573
23574 double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
23575
23576
23577 _ACEOF
23578 if ac_fn_c_try_compile "$LINENO"
23579 then :
23580
23581
23582 if grep noonsees conftest.$ac_objext >/dev/null ; then
23583 ax_cv_c_float_words_bigendian=yes
23584 fi
23585 if grep seesnoon conftest.$ac_objext >/dev/null ; then
23586 if test "$ax_cv_c_float_words_bigendian" = unknown; then
23587 ax_cv_c_float_words_bigendian=no
23588 else
23589 ax_cv_c_float_words_bigendian=unknown
23590 fi
23591 fi
23592
23593
23594 fi
23595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23596 fi
23597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
23598 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
23599
23600 case $ax_cv_c_float_words_bigendian in
23601 yes)
23602
23603 printf "%s\n" "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
23604 ;;
23605 no)
23606 ;;
23607 *)
23608 as_fn_error $? "
23609
23610 Unknown float word ordering. You need to manually preset
23611 ax_cv_c_float_words_bigendian=no (or yes) according to your system.
23612
23613 " "$LINENO" 5 ;;
23614 esac
23615
23616
23617 if test "$ax_cv_c_float_words_bigendian" = "yes"
23618 then
23619
23620 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
23621
23622 elif test "$ax_cv_c_float_words_bigendian" = "no"
23623 then
23624
23625 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
23626
23627 else
23628 # Some ARM platforms use a mixed-endian representation for doubles.
23629 # While Python doesn't currently have full support for these platforms
23630 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23631 # conversions work.
23632 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big
23633 # or little, then it must be this?
23634
23635 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
23636
23637 fi
23638
23639 # The short float repr introduced in Python 3.1 requires the
23640 # correctly-rounded string <-> double conversion functions from
23641 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23642 # rounding; this is a problem on x86, where the x87 FPU has a default
23643 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23644 # using inline assembler to get and set the x87 FPU control word.
23645
23646 # This inline assembler syntax may also work for suncc and icc,
23647 # so we try it on all platforms.
23648
23649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23650 printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
23651 if test ${ac_cv_gcc_asm_for_x87+y}
23652 then :
23653 printf %s "(cached) " >&6
23654 else $as_nop
23655
23656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h. */
23658
23659 int
23660 main (void)
23661 {
23662
23663 unsigned short cw;
23664 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23665 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23666
23667 ;
23668 return 0;
23669 }
23670 _ACEOF
23671 if ac_fn_c_try_link "$LINENO"
23672 then :
23673 ac_cv_gcc_asm_for_x87=yes
23674 else $as_nop
23675 ac_cv_gcc_asm_for_x87=no
23676 fi
23677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23678 conftest$ac_exeext conftest.$ac_ext
23679
23680 fi
23681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
23682 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
23683 if test "x$ac_cv_gcc_asm_for_x87" = xyes
23684 then :
23685
23686
23687 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
23688
23689
23690 fi
23691
23692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
23693 printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
23694 if test ${ac_cv_gcc_asm_for_mc68881+y}
23695 then :
23696 printf %s "(cached) " >&6
23697 else $as_nop
23698
23699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23700 /* end confdefs.h. */
23701
23702 int
23703 main (void)
23704 {
23705
23706 unsigned int fpcr;
23707 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
23708 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
23709
23710 ;
23711 return 0;
23712 }
23713 _ACEOF
23714 if ac_fn_c_try_link "$LINENO"
23715 then :
23716 ac_cv_gcc_asm_for_mc68881=yes
23717 else $as_nop
23718 ac_cv_gcc_asm_for_mc68881=no
23719 fi
23720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23721 conftest$ac_exeext conftest.$ac_ext
23722
23723 fi
23724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
23725 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
23726 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
23727 then :
23728
23729
23730 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
23731
23732
23733 fi
23734
23735 # Detect whether system arithmetic is subject to x87-style double
23736 # rounding issues. The result of this test has little meaning on non
23737 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23738 # mode is round-to-nearest and double rounding issues are present, and
23739 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
23740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
23741 printf %s "checking for x87-style double rounding... " >&6; }
23742 if test ${ac_cv_x87_double_rounding+y}
23743 then :
23744 printf %s "(cached) " >&6
23745 else $as_nop
23746
23747 # $BASECFLAGS may affect the result
23748 ac_save_cc="$CC"
23749 CC="$CC $BASECFLAGS"
23750 if test "$cross_compiling" = yes
23751 then :
23752 ac_cv_x87_double_rounding=no
23753 else $as_nop
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756
23757 #include <stdlib.h>
23758 #include <math.h>
23759 int main(void) {
23760 volatile double x, y, z;
23761 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23762 x = 0.99999999999999989; /* 1-2**-53 */
23763 y = 1./x;
23764 if (y != 1.)
23765 exit(0);
23766 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23767 x = 1e16;
23768 y = 2.99999;
23769 z = x + y;
23770 if (z != 1e16+4.)
23771 exit(0);
23772 /* both tests show evidence of double rounding */
23773 exit(1);
23774 }
23775
23776 _ACEOF
23777 if ac_fn_c_try_run "$LINENO"
23778 then :
23779 ac_cv_x87_double_rounding=no
23780 else $as_nop
23781 ac_cv_x87_double_rounding=yes
23782 fi
23783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23784 conftest.$ac_objext conftest.beam conftest.$ac_ext
23785 fi
23786
23787 CC="$ac_save_cc"
23788
23789 fi
23790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
23791 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
23792
23793 if test "x$ac_cv_x87_double_rounding" = xyes
23794 then :
23795
23796
23797 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
23798
23799
23800 fi
23801
23802 # ************************************
23803 # * Check for mathematical functions *
23804 # ************************************
23805
23806 LIBS_SAVE=$LIBS
23807 LIBS="$LIBS $LIBM"
23808
23809
23810 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2
23811 do :
23812 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
23813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23814 if eval test \"x\$"$as_ac_var"\" = x"yes"
23815 then :
23816 cat >>confdefs.h <<_ACEOF
23817 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
23818 _ACEOF
23819
23820 else $as_nop
23821 as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5
23822
23823 fi
23824
23825 done
23826 LIBS=$LIBS_SAVE
23827
23828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
23829 printf %s "checking whether POSIX semaphores are enabled... " >&6; }
23830 if test ${ac_cv_posix_semaphores_enabled+y}
23831 then :
23832 printf %s "(cached) " >&6
23833 else $as_nop
23834 if test "$cross_compiling" = yes
23835 then :
23836 ac_cv_posix_semaphores_enabled=yes
23837 else $as_nop
23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23840
23841
23842 #include <unistd.h>
23843 #include <fcntl.h>
23844 #include <stdio.h>
23845 #include <semaphore.h>
23846 #include <sys/stat.h>
23847
23848 int main(void) {
23849 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23850 if (a == SEM_FAILED) {
23851 perror("sem_open");
23852 return 1;
23853 }
23854 sem_close(a);
23855 sem_unlink("/autoconf");
23856 return 0;
23857 }
23858
23859
23860 _ACEOF
23861 if ac_fn_c_try_run "$LINENO"
23862 then :
23863 ac_cv_posix_semaphores_enabled=yes
23864 else $as_nop
23865 ac_cv_posix_semaphores_enabled=no
23866 fi
23867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23868 conftest.$ac_objext conftest.beam conftest.$ac_ext
23869 fi
23870
23871
23872 fi
23873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
23874 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
23875 if test "x$ac_cv_posix_semaphores_enabled" = xno
23876 then :
23877
23878
23879 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
23880
23881
23882 fi
23883
23884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
23885 printf %s "checking for broken sem_getvalue... " >&6; }
23886 if test ${ac_cv_broken_sem_getvalue+y}
23887 then :
23888 printf %s "(cached) " >&6
23889 else $as_nop
23890 if test "$cross_compiling" = yes
23891 then :
23892 ac_cv_broken_sem_getvalue=yes
23893 else $as_nop
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896
23897
23898 #include <unistd.h>
23899 #include <fcntl.h>
23900 #include <stdio.h>
23901 #include <semaphore.h>
23902 #include <sys/stat.h>
23903
23904 int main(void){
23905 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
23906 int count;
23907 int res;
23908 if(a==SEM_FAILED){
23909 perror("sem_open");
23910 return 1;
23911
23912 }
23913 res = sem_getvalue(a, &count);
23914 sem_close(a);
23915 sem_unlink("/autocftw");
23916 return res==-1 ? 1 : 0;
23917 }
23918
23919
23920 _ACEOF
23921 if ac_fn_c_try_run "$LINENO"
23922 then :
23923 ac_cv_broken_sem_getvalue=no
23924 else $as_nop
23925 ac_cv_broken_sem_getvalue=yes
23926 fi
23927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23928 conftest.$ac_objext conftest.beam conftest.$ac_ext
23929 fi
23930
23931
23932 fi
23933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
23934 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
23935 if test "x$ac_cv_broken_sem_getvalue" = xyes
23936 then :
23937
23938
23939 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
23940
23941
23942 fi
23943
23944 ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
23945 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23946 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
23947 then :
23948 ac_have_decl=1
23949 else $as_nop
23950 ac_have_decl=0
23951 fi
23952 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
23953 ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
23954 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23955 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
23956 then :
23957 ac_have_decl=1
23958 else $as_nop
23959 ac_have_decl=0
23960 fi
23961 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
23962 ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
23963 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23964 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
23965 then :
23966 ac_have_decl=1
23967 else $as_nop
23968 ac_have_decl=0
23969 fi
23970 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
23971 ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
23972 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23973 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
23974 then :
23975 ac_have_decl=1
23976 else $as_nop
23977 ac_have_decl=0
23978 fi
23979 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
23980 ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
23981 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23982 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
23983 then :
23984 ac_have_decl=1
23985 else $as_nop
23986 ac_have_decl=0
23987 fi
23988 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
23989 ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
23990 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23991 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
23992 then :
23993 ac_have_decl=1
23994 else $as_nop
23995 ac_have_decl=0
23996 fi
23997 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
23998 ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
23999 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24000 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
24001 then :
24002 ac_have_decl=1
24003 else $as_nop
24004 ac_have_decl=0
24005 fi
24006 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
24007 ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
24008 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24009 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
24010 then :
24011 ac_have_decl=1
24012 else $as_nop
24013 ac_have_decl=0
24014 fi
24015 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
24016
24017
24018 # determine what size digit to use for Python's longs
24019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
24020 printf %s "checking digit size for Python's longs... " >&6; }
24021 # Check whether --enable-big-digits was given.
24022 if test ${enable_big_digits+y}
24023 then :
24024 enableval=$enable_big_digits; case $enable_big_digits in
24025 yes)
24026 enable_big_digits=30 ;;
24027 no)
24028 enable_big_digits=15 ;;
24029 15|30)
24030 ;;
24031 *)
24032 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
24033 esac
24034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
24035 printf "%s\n" "$enable_big_digits" >&6; }
24036
24037 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
24038
24039
24040 else $as_nop
24041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
24042 printf "%s\n" "no value specified" >&6; }
24043 fi
24044
24045
24046 # check for wchar.h
24047 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
24048 if test "x$ac_cv_header_wchar_h" = xyes
24049 then :
24050
24051
24052 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
24053
24054 wchar_h="yes"
24055
24056 else $as_nop
24057 wchar_h="no"
24058
24059 fi
24060
24061
24062 # determine wchar_t size
24063 if test "$wchar_h" = yes
24064 then
24065 # The cast to long int works around a bug in the HP C Compiler
24066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24068 # This bug is HP SR number 8606223364.
24069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
24070 printf %s "checking size of wchar_t... " >&6; }
24071 if test ${ac_cv_sizeof_wchar_t+y}
24072 then :
24073 printf %s "(cached) " >&6
24074 else $as_nop
24075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
24076 "
24077 then :
24078
24079 else $as_nop
24080 if test "$ac_cv_type_wchar_t" = yes; then
24081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24082 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24083 as_fn_error 77 "cannot compute sizeof (wchar_t)
24084 See \`config.log' for more details" "$LINENO" 5; }
24085 else
24086 ac_cv_sizeof_wchar_t=0
24087 fi
24088 fi
24089
24090 fi
24091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
24092 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
24093
24094
24095
24096 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
24097
24098
24099 fi
24100
24101 # check whether wchar_t is signed or not
24102 if test "$wchar_h" = yes
24103 then
24104 # check whether wchar_t is signed or not
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
24106 printf %s "checking whether wchar_t is signed... " >&6; }
24107 if test ${ac_cv_wchar_t_signed+y}
24108 then :
24109 printf %s "(cached) " >&6
24110 else $as_nop
24111
24112 if test "$cross_compiling" = yes
24113 then :
24114 ac_cv_wchar_t_signed=yes
24115 else $as_nop
24116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24118
24119 #include <wchar.h>
24120 int main()
24121 {
24122 /* Success: exit code 0 */
24123 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24124 }
24125
24126 _ACEOF
24127 if ac_fn_c_try_run "$LINENO"
24128 then :
24129 ac_cv_wchar_t_signed=yes
24130 else $as_nop
24131 ac_cv_wchar_t_signed=no
24132 fi
24133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24134 conftest.$ac_objext conftest.beam conftest.$ac_ext
24135 fi
24136
24137 fi
24138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
24139 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
24140 fi
24141
24142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
24143 printf %s "checking whether wchar_t is usable... " >&6; }
24144 # wchar_t is only usable if it maps to an unsigned type
24145 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
24146 -a "$ac_cv_wchar_t_signed" = "no"
24147 then
24148
24149 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
24150
24151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24152 printf "%s\n" "yes" >&6; }
24153 else
24154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 printf "%s\n" "no" >&6; }
24156 fi
24157
24158 case $ac_sys_system/$ac_sys_release in
24159 SunOS/*)
24160 if test -f /etc/os-release; then
24161 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
24162 if test "x$OS_NAME" = "xOracle Solaris"; then
24163 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
24164 # non-Unicode locales is not Unicode and hence cannot be used directly.
24165 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
24166
24167 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
24168
24169 fi
24170 fi
24171 ;;
24172 esac
24173
24174 # check for endianness
24175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24176 printf %s "checking whether byte ordering is bigendian... " >&6; }
24177 if test ${ac_cv_c_bigendian+y}
24178 then :
24179 printf %s "(cached) " >&6
24180 else $as_nop
24181 ac_cv_c_bigendian=unknown
24182 # See if we're dealing with a universal compiler.
24183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #ifndef __APPLE_CC__
24186 not a universal capable compiler
24187 #endif
24188 typedef int dummy;
24189
24190 _ACEOF
24191 if ac_fn_c_try_compile "$LINENO"
24192 then :
24193
24194 # Check for potential -arch flags. It is not universal unless
24195 # there are at least two -arch flags with different values.
24196 ac_arch=
24197 ac_prev=
24198 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24199 if test -n "$ac_prev"; then
24200 case $ac_word in
24201 i?86 | x86_64 | ppc | ppc64)
24202 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24203 ac_arch=$ac_word
24204 else
24205 ac_cv_c_bigendian=universal
24206 break
24207 fi
24208 ;;
24209 esac
24210 ac_prev=
24211 elif test "x$ac_word" = "x-arch"; then
24212 ac_prev=arch
24213 fi
24214 done
24215 fi
24216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24217 if test $ac_cv_c_bigendian = unknown; then
24218 # See if sys/param.h defines the BYTE_ORDER macro.
24219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24220 /* end confdefs.h. */
24221 #include <sys/types.h>
24222 #include <sys/param.h>
24223
24224 int
24225 main (void)
24226 {
24227 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24228 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24229 && LITTLE_ENDIAN)
24230 bogus endian macros
24231 #endif
24232
24233 ;
24234 return 0;
24235 }
24236 _ACEOF
24237 if ac_fn_c_try_compile "$LINENO"
24238 then :
24239 # It does; now see whether it defined to BIG_ENDIAN or not.
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 #include <sys/types.h>
24243 #include <sys/param.h>
24244
24245 int
24246 main (void)
24247 {
24248 #if BYTE_ORDER != BIG_ENDIAN
24249 not big endian
24250 #endif
24251
24252 ;
24253 return 0;
24254 }
24255 _ACEOF
24256 if ac_fn_c_try_compile "$LINENO"
24257 then :
24258 ac_cv_c_bigendian=yes
24259 else $as_nop
24260 ac_cv_c_bigendian=no
24261 fi
24262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24263 fi
24264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24265 fi
24266 if test $ac_cv_c_bigendian = unknown; then
24267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24270 #include <limits.h>
24271
24272 int
24273 main (void)
24274 {
24275 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24276 bogus endian macros
24277 #endif
24278
24279 ;
24280 return 0;
24281 }
24282 _ACEOF
24283 if ac_fn_c_try_compile "$LINENO"
24284 then :
24285 # It does; now see whether it defined to _BIG_ENDIAN or not.
24286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287 /* end confdefs.h. */
24288 #include <limits.h>
24289
24290 int
24291 main (void)
24292 {
24293 #ifndef _BIG_ENDIAN
24294 not big endian
24295 #endif
24296
24297 ;
24298 return 0;
24299 }
24300 _ACEOF
24301 if ac_fn_c_try_compile "$LINENO"
24302 then :
24303 ac_cv_c_bigendian=yes
24304 else $as_nop
24305 ac_cv_c_bigendian=no
24306 fi
24307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24308 fi
24309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24310 fi
24311 if test $ac_cv_c_bigendian = unknown; then
24312 # Compile a test program.
24313 if test "$cross_compiling" = yes
24314 then :
24315 # Try to guess by grepping values from an object file.
24316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h. */
24318 unsigned short int ascii_mm[] =
24319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24320 unsigned short int ascii_ii[] =
24321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24322 int use_ascii (int i) {
24323 return ascii_mm[i] + ascii_ii[i];
24324 }
24325 unsigned short int ebcdic_ii[] =
24326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24327 unsigned short int ebcdic_mm[] =
24328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24329 int use_ebcdic (int i) {
24330 return ebcdic_mm[i] + ebcdic_ii[i];
24331 }
24332 extern int foo;
24333
24334 int
24335 main (void)
24336 {
24337 return use_ascii (foo) == use_ebcdic (foo);
24338 ;
24339 return 0;
24340 }
24341 _ACEOF
24342 if ac_fn_c_try_compile "$LINENO"
24343 then :
24344 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24345 ac_cv_c_bigendian=yes
24346 fi
24347 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24348 if test "$ac_cv_c_bigendian" = unknown; then
24349 ac_cv_c_bigendian=no
24350 else
24351 # finding both strings is unlikely to happen, but who knows?
24352 ac_cv_c_bigendian=unknown
24353 fi
24354 fi
24355 fi
24356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24357 else $as_nop
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24360 $ac_includes_default
24361 int
24362 main (void)
24363 {
24364
24365 /* Are we little or big endian? From Harbison&Steele. */
24366 union
24367 {
24368 long int l;
24369 char c[sizeof (long int)];
24370 } u;
24371 u.l = 1;
24372 return u.c[sizeof (long int) - 1] == 1;
24373
24374 ;
24375 return 0;
24376 }
24377 _ACEOF
24378 if ac_fn_c_try_run "$LINENO"
24379 then :
24380 ac_cv_c_bigendian=no
24381 else $as_nop
24382 ac_cv_c_bigendian=yes
24383 fi
24384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24385 conftest.$ac_objext conftest.beam conftest.$ac_ext
24386 fi
24387
24388 fi
24389 fi
24390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24391 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24392 case $ac_cv_c_bigendian in #(
24393 yes)
24394 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24395 ;; #(
24396 no)
24397 ;; #(
24398 universal)
24399
24400 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24401
24402 ;; #(
24403 *)
24404 as_fn_error $? "unknown endianness
24405 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24406 esac
24407
24408
24409 # ABI version string for Python extension modules. This appears between the
24410 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
24411 # from the following attributes which affect the ABI of this Python build (in
24412 # this order):
24413 #
24414 # * The Python implementation (always 'cpython-' for us)
24415 # * The major and minor version numbers
24416 # * --disable-gil (adds a 't')
24417 # * --with-pydebug (adds a 'd')
24418 #
24419 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
24420 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
24421 # libraries would be named 'foo.cpython-32dmu.so'.
24422 #
24423 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
24424 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
24425
24426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
24427 printf %s "checking ABIFLAGS... " >&6; }
24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
24429 printf "%s\n" "$ABIFLAGS" >&6; }
24430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
24431 printf %s "checking SOABI... " >&6; }
24432 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
24434 printf "%s\n" "$SOABI" >&6; }
24435
24436 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
24437 # are ABI compatible
24438 if test "$Py_DEBUG" = 'true'; then
24439 # Similar to SOABI but remove "d" flag from ABIFLAGS
24440
24441 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24442
24443 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
24444
24445 fi
24446
24447
24448 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
24449
24450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
24451 printf %s "checking LDVERSION... " >&6; }
24452 LDVERSION='$(VERSION)$(ABIFLAGS)'
24453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
24454 printf "%s\n" "$LDVERSION" >&6; }
24455
24456 # Configure the flags and dependencies used when compiling shared modules
24457
24458
24459 MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
24460 MODULE_LDFLAGS=''
24461
24462 # On Android and Cygwin the shared libraries must be linked with libpython.
24463 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
24464 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
24465 MODULE_LDFLAGS="\$(BLDLIBRARY)"
24466 fi
24467
24468 # On iOS the shared libraries must be linked with the Python framework
24469 if test "$ac_sys_system" = "iOS"; then
24470 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
24471 fi
24472
24473
24474
24475 BINLIBDEST='$(LIBDIR)/python$(VERSION)'
24476
24477
24478 # Check for --with-platlibdir
24479 # /usr/$LIDIRNAME/python$VERSION
24480
24481 PLATLIBDIR="lib"
24482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
24483 printf %s "checking for --with-platlibdir... " >&6; }
24484
24485 # Check whether --with-platlibdir was given.
24486 if test ${with_platlibdir+y}
24487 then :
24488 withval=$with_platlibdir;
24489 # ignore 3 options:
24490 # --with-platlibdir
24491 # --with-platlibdir=
24492 # --without-platlibdir
24493 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
24494 then
24495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24496 printf "%s\n" "yes" >&6; }
24497 PLATLIBDIR="$withval"
24498 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
24499 else
24500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24501 printf "%s\n" "no" >&6; }
24502 fi
24503 else $as_nop
24504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 printf "%s\n" "no" >&6; }
24506 fi
24507
24508
24509
24510
24511 if test x$PLATFORM_TRIPLET = x; then
24512 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
24513 else
24514 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
24515 fi
24516
24517
24518 # Check for --with-wheel-pkg-dir=PATH
24519
24520 WHEEL_PKG_DIR=""
24521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
24522 printf %s "checking for --with-wheel-pkg-dir... " >&6; }
24523
24524 # Check whether --with-wheel-pkg-dir was given.
24525 if test ${with_wheel_pkg_dir+y}
24526 then :
24527 withval=$with_wheel_pkg_dir;
24528 if test -n "$withval"; then
24529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24530 printf "%s\n" "yes" >&6; }
24531 WHEEL_PKG_DIR="$withval"
24532 else
24533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24534 printf "%s\n" "no" >&6; }
24535 fi
24536 else $as_nop
24537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24538 printf "%s\n" "no" >&6; }
24539 fi
24540
24541
24542 # Check whether right shifting a negative integer extends the sign bit
24543 # or fills with zeros (like the Cray J90, according to Tim Peters).
24544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
24545 printf %s "checking whether right shift extends the sign bit... " >&6; }
24546 if test ${ac_cv_rshift_extends_sign+y}
24547 then :
24548 printf %s "(cached) " >&6
24549 else $as_nop
24550
24551 if test "$cross_compiling" = yes
24552 then :
24553 ac_cv_rshift_extends_sign=yes
24554 else $as_nop
24555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24557
24558 int main(void)
24559 {
24560 return (((-1)>>3 == -1) ? 0 : 1);
24561 }
24562
24563 _ACEOF
24564 if ac_fn_c_try_run "$LINENO"
24565 then :
24566 ac_cv_rshift_extends_sign=yes
24567 else $as_nop
24568 ac_cv_rshift_extends_sign=no
24569 fi
24570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24571 conftest.$ac_objext conftest.beam conftest.$ac_ext
24572 fi
24573
24574 fi
24575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
24576 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
24577 if test "$ac_cv_rshift_extends_sign" = no
24578 then
24579
24580 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
24581
24582 fi
24583
24584 # check for getc_unlocked and related locking functions
24585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
24586 printf %s "checking for getc_unlocked() and friends... " >&6; }
24587 if test ${ac_cv_have_getc_unlocked+y}
24588 then :
24589 printf %s "(cached) " >&6
24590 else $as_nop
24591
24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h. */
24594 #include <stdio.h>
24595 int
24596 main (void)
24597 {
24598
24599 FILE *f = fopen("/dev/null", "r");
24600 flockfile(f);
24601 getc_unlocked(f);
24602 funlockfile(f);
24603
24604 ;
24605 return 0;
24606 }
24607 _ACEOF
24608 if ac_fn_c_try_link "$LINENO"
24609 then :
24610 ac_cv_have_getc_unlocked=yes
24611 else $as_nop
24612 ac_cv_have_getc_unlocked=no
24613 fi
24614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24615 conftest$ac_exeext conftest.$ac_ext
24616 fi
24617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
24618 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
24619 if test "$ac_cv_have_getc_unlocked" = yes
24620 then
24621
24622 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
24623
24624 fi
24625
24626
24627
24628
24629
24630 # Check whether --with-readline was given.
24631 if test ${with_readline+y}
24632 then :
24633 withval=$with_readline;
24634 case $with_readline in #(
24635 editline|edit) :
24636 with_readline=edit ;; #(
24637 yes|readline) :
24638 with_readline=readline ;; #(
24639 no) :
24640 ;; #(
24641 *) :
24642 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
24643 ;;
24644 esac
24645
24646 else $as_nop
24647 with_readline=readline
24648
24649 fi
24650
24651
24652 if test "x$with_readline" = xreadline
24653 then :
24654
24655
24656 pkg_failed=no
24657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24658 printf %s "checking for readline... " >&6; }
24659
24660 if test -n "$LIBREADLINE_CFLAGS"; then
24661 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS"
24662 elif test -n "$PKG_CONFIG"; then
24663 if test -n "$PKG_CONFIG" && \
24664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24665 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24666 ac_status=$?
24667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; then
24669 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24670 test "x$?" != "x0" && pkg_failed=yes
24671 else
24672 pkg_failed=yes
24673 fi
24674 else
24675 pkg_failed=untried
24676 fi
24677 if test -n "$LIBREADLINE_LIBS"; then
24678 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS"
24679 elif test -n "$PKG_CONFIG"; then
24680 if test -n "$PKG_CONFIG" && \
24681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24682 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24683 ac_status=$?
24684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685 test $ac_status = 0; }; then
24686 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24687 test "x$?" != "x0" && pkg_failed=yes
24688 else
24689 pkg_failed=yes
24690 fi
24691 else
24692 pkg_failed=untried
24693 fi
24694
24695
24696
24697 if test $pkg_failed = yes; then
24698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699 printf "%s\n" "no" >&6; }
24700
24701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24702 _pkg_short_errors_supported=yes
24703 else
24704 _pkg_short_errors_supported=no
24705 fi
24706 if test $_pkg_short_errors_supported = yes; then
24707 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24708 else
24709 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24710 fi
24711 # Put the nasty error message in config.log where it belongs
24712 echo "$LIBREADLINE_PKG_ERRORS" >&5
24713
24714
24715 save_CFLAGS=$CFLAGS
24716 save_CPPFLAGS=$CPPFLAGS
24717 save_LDFLAGS=$LDFLAGS
24718 save_LIBS=$LIBS
24719
24720
24721 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
24722 LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS"
24723 for ac_header in readline/readline.h
24724 do :
24725 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
24726 if test "x$ac_cv_header_readline_readline_h" = xyes
24727 then :
24728 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
24729
24730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
24731 printf %s "checking for readline in -lreadline... " >&6; }
24732 if test ${ac_cv_lib_readline_readline+y}
24733 then :
24734 printf %s "(cached) " >&6
24735 else $as_nop
24736 ac_check_lib_save_LIBS=$LIBS
24737 LIBS="-lreadline $LIBS"
24738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24739 /* end confdefs.h. */
24740
24741 /* Override any GCC internal prototype to avoid an error.
24742 Use char because int might match the return type of a GCC
24743 builtin and then its argument prototype would still apply. */
24744 char readline ();
24745 int
24746 main (void)
24747 {
24748 return readline ();
24749 ;
24750 return 0;
24751 }
24752 _ACEOF
24753 if ac_fn_c_try_link "$LINENO"
24754 then :
24755 ac_cv_lib_readline_readline=yes
24756 else $as_nop
24757 ac_cv_lib_readline_readline=no
24758 fi
24759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24760 conftest$ac_exeext conftest.$ac_ext
24761 LIBS=$ac_check_lib_save_LIBS
24762 fi
24763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
24764 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
24765 if test "x$ac_cv_lib_readline_readline" = xyes
24766 then :
24767
24768 LIBREADLINE=readline
24769 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
24770 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
24771
24772 else $as_nop
24773 with_readline=no
24774 fi
24775
24776
24777 else $as_nop
24778 with_readline=no
24779 fi
24780
24781 done
24782
24783 CFLAGS=$save_CFLAGS
24784 CPPFLAGS=$save_CPPFLAGS
24785 LDFLAGS=$save_LDFLAGS
24786 LIBS=$save_LIBS
24787
24788
24789
24790 elif test $pkg_failed = untried; then
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24792 printf "%s\n" "no" >&6; }
24793
24794 save_CFLAGS=$CFLAGS
24795 save_CPPFLAGS=$CPPFLAGS
24796 save_LDFLAGS=$LDFLAGS
24797 save_LIBS=$LIBS
24798
24799
24800 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
24801 LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS"
24802 for ac_header in readline/readline.h
24803 do :
24804 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
24805 if test "x$ac_cv_header_readline_readline_h" = xyes
24806 then :
24807 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
24808
24809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
24810 printf %s "checking for readline in -lreadline... " >&6; }
24811 if test ${ac_cv_lib_readline_readline+y}
24812 then :
24813 printf %s "(cached) " >&6
24814 else $as_nop
24815 ac_check_lib_save_LIBS=$LIBS
24816 LIBS="-lreadline $LIBS"
24817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24819
24820 /* Override any GCC internal prototype to avoid an error.
24821 Use char because int might match the return type of a GCC
24822 builtin and then its argument prototype would still apply. */
24823 char readline ();
24824 int
24825 main (void)
24826 {
24827 return readline ();
24828 ;
24829 return 0;
24830 }
24831 _ACEOF
24832 if ac_fn_c_try_link "$LINENO"
24833 then :
24834 ac_cv_lib_readline_readline=yes
24835 else $as_nop
24836 ac_cv_lib_readline_readline=no
24837 fi
24838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24839 conftest$ac_exeext conftest.$ac_ext
24840 LIBS=$ac_check_lib_save_LIBS
24841 fi
24842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
24843 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
24844 if test "x$ac_cv_lib_readline_readline" = xyes
24845 then :
24846
24847 LIBREADLINE=readline
24848 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
24849 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
24850
24851 else $as_nop
24852 with_readline=no
24853 fi
24854
24855
24856 else $as_nop
24857 with_readline=no
24858 fi
24859
24860 done
24861
24862 CFLAGS=$save_CFLAGS
24863 CPPFLAGS=$save_CPPFLAGS
24864 LDFLAGS=$save_LDFLAGS
24865 LIBS=$save_LIBS
24866
24867
24868
24869 else
24870 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
24871 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
24872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24873 printf "%s\n" "yes" >&6; }
24874
24875 LIBREADLINE=readline
24876 READLINE_CFLAGS=$LIBREADLINE_CFLAGS
24877 READLINE_LIBS=$LIBREADLINE_LIBS
24878
24879 fi
24880
24881 fi
24882
24883 if test "x$with_readline" = xedit
24884 then :
24885
24886
24887 pkg_failed=no
24888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
24889 printf %s "checking for libedit... " >&6; }
24890
24891 if test -n "$LIBEDIT_CFLAGS"; then
24892 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
24893 elif test -n "$PKG_CONFIG"; then
24894 if test -n "$PKG_CONFIG" && \
24895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24896 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24897 ac_status=$?
24898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; then
24900 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
24901 test "x$?" != "x0" && pkg_failed=yes
24902 else
24903 pkg_failed=yes
24904 fi
24905 else
24906 pkg_failed=untried
24907 fi
24908 if test -n "$LIBEDIT_LIBS"; then
24909 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
24910 elif test -n "$PKG_CONFIG"; then
24911 if test -n "$PKG_CONFIG" && \
24912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24913 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24914 ac_status=$?
24915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; then
24917 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
24918 test "x$?" != "x0" && pkg_failed=yes
24919 else
24920 pkg_failed=yes
24921 fi
24922 else
24923 pkg_failed=untried
24924 fi
24925
24926
24927
24928 if test $pkg_failed = yes; then
24929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24930 printf "%s\n" "no" >&6; }
24931
24932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24933 _pkg_short_errors_supported=yes
24934 else
24935 _pkg_short_errors_supported=no
24936 fi
24937 if test $_pkg_short_errors_supported = yes; then
24938 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
24939 else
24940 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
24941 fi
24942 # Put the nasty error message in config.log where it belongs
24943 echo "$LIBEDIT_PKG_ERRORS" >&5
24944
24945
24946 save_CFLAGS=$CFLAGS
24947 save_CPPFLAGS=$CPPFLAGS
24948 save_LDFLAGS=$LDFLAGS
24949 save_LIBS=$LIBS
24950
24951
24952 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
24953 LDFLAGS="$LDFLAGS $LIBEDIT_LIBS"
24954 for ac_header in editline/readline.h
24955 do :
24956 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
24957 if test "x$ac_cv_header_editline_readline_h" = xyes
24958 then :
24959 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
24960
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
24962 printf %s "checking for readline in -ledit... " >&6; }
24963 if test ${ac_cv_lib_edit_readline+y}
24964 then :
24965 printf %s "(cached) " >&6
24966 else $as_nop
24967 ac_check_lib_save_LIBS=$LIBS
24968 LIBS="-ledit $LIBS"
24969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24971
24972 /* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24975 char readline ();
24976 int
24977 main (void)
24978 {
24979 return readline ();
24980 ;
24981 return 0;
24982 }
24983 _ACEOF
24984 if ac_fn_c_try_link "$LINENO"
24985 then :
24986 ac_cv_lib_edit_readline=yes
24987 else $as_nop
24988 ac_cv_lib_edit_readline=no
24989 fi
24990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24991 conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24993 fi
24994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
24995 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
24996 if test "x$ac_cv_lib_edit_readline" = xyes
24997 then :
24998
24999 LIBREADLINE=edit
25000 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25001
25002 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25003 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25004
25005 else $as_nop
25006 with_readline=no
25007 fi
25008
25009
25010 else $as_nop
25011 with_readline=no
25012 fi
25013
25014 done
25015
25016 CFLAGS=$save_CFLAGS
25017 CPPFLAGS=$save_CPPFLAGS
25018 LDFLAGS=$save_LDFLAGS
25019 LIBS=$save_LIBS
25020
25021
25022
25023 elif test $pkg_failed = untried; then
25024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25025 printf "%s\n" "no" >&6; }
25026
25027 save_CFLAGS=$CFLAGS
25028 save_CPPFLAGS=$CPPFLAGS
25029 save_LDFLAGS=$LDFLAGS
25030 save_LIBS=$LIBS
25031
25032
25033 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
25034 LDFLAGS="$LDFLAGS $LIBEDIT_LIBS"
25035 for ac_header in editline/readline.h
25036 do :
25037 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25038 if test "x$ac_cv_header_editline_readline_h" = xyes
25039 then :
25040 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25041
25042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25043 printf %s "checking for readline in -ledit... " >&6; }
25044 if test ${ac_cv_lib_edit_readline+y}
25045 then :
25046 printf %s "(cached) " >&6
25047 else $as_nop
25048 ac_check_lib_save_LIBS=$LIBS
25049 LIBS="-ledit $LIBS"
25050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25051 /* end confdefs.h. */
25052
25053 /* Override any GCC internal prototype to avoid an error.
25054 Use char because int might match the return type of a GCC
25055 builtin and then its argument prototype would still apply. */
25056 char readline ();
25057 int
25058 main (void)
25059 {
25060 return readline ();
25061 ;
25062 return 0;
25063 }
25064 _ACEOF
25065 if ac_fn_c_try_link "$LINENO"
25066 then :
25067 ac_cv_lib_edit_readline=yes
25068 else $as_nop
25069 ac_cv_lib_edit_readline=no
25070 fi
25071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25072 conftest$ac_exeext conftest.$ac_ext
25073 LIBS=$ac_check_lib_save_LIBS
25074 fi
25075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25076 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25077 if test "x$ac_cv_lib_edit_readline" = xyes
25078 then :
25079
25080 LIBREADLINE=edit
25081 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25082
25083 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
25084 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
25085
25086 else $as_nop
25087 with_readline=no
25088 fi
25089
25090
25091 else $as_nop
25092 with_readline=no
25093 fi
25094
25095 done
25096
25097 CFLAGS=$save_CFLAGS
25098 CPPFLAGS=$save_CPPFLAGS
25099 LDFLAGS=$save_LDFLAGS
25100 LIBS=$save_LIBS
25101
25102
25103
25104 else
25105 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
25106 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
25107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25108 printf "%s\n" "yes" >&6; }
25109
25110 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25111
25112 LIBREADLINE=edit
25113 READLINE_CFLAGS=$LIBEDIT_CFLAGS
25114 READLINE_LIBS=$LIBEDIT_LIBS
25115
25116 fi
25117
25118 fi
25119
25120 READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
25121
25122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
25123 printf %s "checking how to link readline... " >&6; }
25124 if test "x$with_readline" = xno
25125 then :
25126
25127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25128 printf "%s\n" "no" >&6; }
25129
25130 else $as_nop
25131
25132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
25133 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
25134
25135 save_CFLAGS=$CFLAGS
25136 save_CPPFLAGS=$CPPFLAGS
25137 save_LDFLAGS=$LDFLAGS
25138 save_LIBS=$LIBS
25139
25140
25141 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
25142 LIBS="$READLINE_LIBS $LIBS"
25143 LIBS_SAVE=$LIBS
25144
25145
25146
25147 # check for readline 2.2
25148 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
25149 #include <stdio.h> /* Must be first for Gnu Readline */
25150 #ifdef WITH_EDITLINE
25151 # include <editline/readline.h>
25152 #else
25153 # include <readline/readline.h>
25154 # include <readline/history.h>
25155 #endif
25156
25157 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25158 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
25159 then :
25160
25161
25162 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
25163
25164
25165 fi
25166
25167 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
25168 #include <stdio.h> /* Must be first for Gnu Readline */
25169 #ifdef WITH_EDITLINE
25170 # include <editline/readline.h>
25171 #else
25172 # include <readline/readline.h>
25173 # include <readline/history.h>
25174 #endif
25175
25176 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25177 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
25178 then :
25179
25180
25181 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
25182
25183
25184 fi
25185
25186 # check for readline 4.0
25187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
25188 printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
25189 if test ${ac_cv_readline_rl_pre_input_hook+y}
25190 then :
25191 printf %s "(cached) " >&6
25192 else $as_nop
25193
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196
25197 #include <stdio.h> /* Must be first for Gnu Readline */
25198 #ifdef WITH_EDITLINE
25199 # include <editline/readline.h>
25200 #else
25201 # include <readline/readline.h>
25202 # include <readline/history.h>
25203 #endif
25204
25205 int
25206 main (void)
25207 {
25208 void *x = rl_pre_input_hook
25209 ;
25210 return 0;
25211 }
25212 _ACEOF
25213 if ac_fn_c_try_link "$LINENO"
25214 then :
25215 ac_cv_readline_rl_pre_input_hook=yes
25216 else $as_nop
25217 ac_cv_readline_rl_pre_input_hook=no
25218
25219 fi
25220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25221 conftest$ac_exeext conftest.$ac_ext
25222
25223 fi
25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
25225 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
25226 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
25227 then :
25228
25229
25230 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
25231
25232
25233 fi
25234
25235 # also in 4.0
25236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
25237 printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
25238 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
25239 then :
25240 printf %s "(cached) " >&6
25241 else $as_nop
25242
25243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244 /* end confdefs.h. */
25245
25246 #include <stdio.h> /* Must be first for Gnu Readline */
25247 #ifdef WITH_EDITLINE
25248 # include <editline/readline.h>
25249 #else
25250 # include <readline/readline.h>
25251 # include <readline/history.h>
25252 #endif
25253
25254 int
25255 main (void)
25256 {
25257 void *x = rl_completion_display_matches_hook
25258 ;
25259 return 0;
25260 }
25261 _ACEOF
25262 if ac_fn_c_try_link "$LINENO"
25263 then :
25264 ac_cv_readline_rl_completion_display_matches_hook=yes
25265 else $as_nop
25266 ac_cv_readline_rl_completion_display_matches_hook=no
25267
25268 fi
25269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25270 conftest$ac_exeext conftest.$ac_ext
25271
25272 fi
25273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
25274 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
25275 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
25276 then :
25277
25278
25279 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
25280
25281
25282 fi
25283
25284 # also in 4.0, but not in editline
25285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
25286 printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
25287 if test ${ac_cv_readline_rl_resize_terminal+y}
25288 then :
25289 printf %s "(cached) " >&6
25290 else $as_nop
25291
25292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293 /* end confdefs.h. */
25294
25295 #include <stdio.h> /* Must be first for Gnu Readline */
25296 #ifdef WITH_EDITLINE
25297 # include <editline/readline.h>
25298 #else
25299 # include <readline/readline.h>
25300 # include <readline/history.h>
25301 #endif
25302
25303 int
25304 main (void)
25305 {
25306 void *x = rl_resize_terminal
25307 ;
25308 return 0;
25309 }
25310 _ACEOF
25311 if ac_fn_c_try_link "$LINENO"
25312 then :
25313 ac_cv_readline_rl_resize_terminal=yes
25314 else $as_nop
25315 ac_cv_readline_rl_resize_terminal=no
25316
25317 fi
25318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25319 conftest$ac_exeext conftest.$ac_ext
25320
25321 fi
25322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
25323 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
25324 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
25325 then :
25326
25327
25328 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
25329
25330
25331 fi
25332
25333 # check for readline 4.2
25334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
25335 printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
25336 if test ${ac_cv_readline_rl_completion_matches+y}
25337 then :
25338 printf %s "(cached) " >&6
25339 else $as_nop
25340
25341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25343
25344 #include <stdio.h> /* Must be first for Gnu Readline */
25345 #ifdef WITH_EDITLINE
25346 # include <editline/readline.h>
25347 #else
25348 # include <readline/readline.h>
25349 # include <readline/history.h>
25350 #endif
25351
25352 int
25353 main (void)
25354 {
25355 void *x = rl_completion_matches
25356 ;
25357 return 0;
25358 }
25359 _ACEOF
25360 if ac_fn_c_try_link "$LINENO"
25361 then :
25362 ac_cv_readline_rl_completion_matches=yes
25363 else $as_nop
25364 ac_cv_readline_rl_completion_matches=no
25365
25366 fi
25367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25368 conftest$ac_exeext conftest.$ac_ext
25369
25370 fi
25371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
25372 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
25373 if test "x$ac_cv_readline_rl_completion_matches" = xyes
25374 then :
25375
25376
25377 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
25378
25379
25380 fi
25381
25382 # also in readline 4.2
25383 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
25384 #include <stdio.h> /* Must be first for Gnu Readline */
25385 #ifdef WITH_EDITLINE
25386 # include <editline/readline.h>
25387 #else
25388 # include <readline/readline.h>
25389 # include <readline/history.h>
25390 #endif
25391
25392 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25393 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
25394 then :
25395
25396
25397 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
25398
25399
25400 fi
25401
25402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
25403 printf %s "checking for append_history in -l$LIBREADLINE... " >&6; }
25404 if test ${ac_cv_readline_append_history+y}
25405 then :
25406 printf %s "(cached) " >&6
25407 else $as_nop
25408
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25411
25412 #include <stdio.h> /* Must be first for Gnu Readline */
25413 #ifdef WITH_EDITLINE
25414 # include <editline/readline.h>
25415 #else
25416 # include <readline/readline.h>
25417 # include <readline/history.h>
25418 #endif
25419
25420 int
25421 main (void)
25422 {
25423 void *x = append_history
25424 ;
25425 return 0;
25426 }
25427 _ACEOF
25428 if ac_fn_c_try_link "$LINENO"
25429 then :
25430 ac_cv_readline_append_history=yes
25431 else $as_nop
25432 ac_cv_readline_append_history=no
25433
25434 fi
25435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25436 conftest$ac_exeext conftest.$ac_ext
25437
25438 fi
25439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
25440 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
25441 if test "x$ac_cv_readline_append_history" = xyes
25442 then :
25443
25444
25445 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
25446
25447
25448 fi
25449
25450 # in readline as well as newer editline (April 2023)
25451 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
25452 #include <stdio.h> /* Must be first for Gnu Readline */
25453 #ifdef WITH_EDITLINE
25454 # include <editline/readline.h>
25455 #else
25456 # include <readline/readline.h>
25457 # include <readline/history.h>
25458 #endif
25459
25460 "
25461 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
25462 then :
25463
25464 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
25465
25466
25467 fi
25468
25469
25470 # Some editline versions declare rl_startup_hook as taking no args, others
25471 # declare it as taking 2.
25472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
25473 printf %s "checking if rl_startup_hook takes arguments... " >&6; }
25474 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
25475 then :
25476 printf %s "(cached) " >&6
25477 else $as_nop
25478
25479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25480 /* end confdefs.h. */
25481
25482 #include <stdio.h> /* Must be first for Gnu Readline */
25483 #ifdef WITH_EDITLINE
25484 # include <editline/readline.h>
25485 #else
25486 # include <readline/readline.h>
25487 # include <readline/history.h>
25488 #endif
25489
25490 extern int test_hook_func(const char *text, int state);
25491 int
25492 main (void)
25493 {
25494 rl_startup_hook=test_hook_func;
25495 ;
25496 return 0;
25497 }
25498 _ACEOF
25499 if ac_fn_c_try_compile "$LINENO"
25500 then :
25501 ac_cv_readline_rl_startup_hook_takes_args=yes
25502 else $as_nop
25503 ac_cv_readline_rl_startup_hook_takes_args=no
25504
25505 fi
25506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25507
25508 fi
25509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
25510 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
25511 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
25512 then :
25513
25514
25515 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
25516
25517
25518 fi
25519
25520
25521
25522 CFLAGS=$save_CFLAGS
25523 CPPFLAGS=$save_CPPFLAGS
25524 LDFLAGS=$save_LDFLAGS
25525 LIBS=$save_LIBS
25526
25527
25528 fi
25529
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
25531 printf %s "checking for broken nice()... " >&6; }
25532 if test ${ac_cv_broken_nice+y}
25533 then :
25534 printf %s "(cached) " >&6
25535 else $as_nop
25536
25537 if test "$cross_compiling" = yes
25538 then :
25539 ac_cv_broken_nice=no
25540 else $as_nop
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25543
25544 #include <stdlib.h>
25545 #include <unistd.h>
25546 int main(void)
25547 {
25548 int val1 = nice(1);
25549 if (val1 != -1 && val1 == nice(2))
25550 exit(0);
25551 exit(1);
25552 }
25553
25554 _ACEOF
25555 if ac_fn_c_try_run "$LINENO"
25556 then :
25557 ac_cv_broken_nice=yes
25558 else $as_nop
25559 ac_cv_broken_nice=no
25560 fi
25561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25562 conftest.$ac_objext conftest.beam conftest.$ac_ext
25563 fi
25564
25565 fi
25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
25567 printf "%s\n" "$ac_cv_broken_nice" >&6; }
25568 if test "$ac_cv_broken_nice" = yes
25569 then
25570
25571 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
25572
25573 fi
25574
25575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
25576 printf %s "checking for broken poll()... " >&6; }
25577 if test ${ac_cv_broken_poll+y}
25578 then :
25579 printf %s "(cached) " >&6
25580 else $as_nop
25581 if test "$cross_compiling" = yes
25582 then :
25583 ac_cv_broken_poll=no
25584 else $as_nop
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25587
25588 #include <poll.h>
25589 #include <unistd.h>
25590
25591 int main(void)
25592 {
25593 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25594 int poll_test;
25595
25596 close (42);
25597
25598 poll_test = poll(&poll_struct, 1, 0);
25599 if (poll_test < 0)
25600 return 0;
25601 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25602 return 0;
25603 else
25604 return 1;
25605 }
25606
25607 _ACEOF
25608 if ac_fn_c_try_run "$LINENO"
25609 then :
25610 ac_cv_broken_poll=yes
25611 else $as_nop
25612 ac_cv_broken_poll=no
25613 fi
25614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25615 conftest.$ac_objext conftest.beam conftest.$ac_ext
25616 fi
25617
25618 fi
25619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
25620 printf "%s\n" "$ac_cv_broken_poll" >&6; }
25621 if test "$ac_cv_broken_poll" = yes
25622 then
25623
25624 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
25625
25626 fi
25627
25628 # check tzset(3) exists and works like we expect it to
25629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
25630 printf %s "checking for working tzset()... " >&6; }
25631 if test ${ac_cv_working_tzset+y}
25632 then :
25633 printf %s "(cached) " >&6
25634 else $as_nop
25635
25636 if test "$cross_compiling" = yes
25637 then :
25638 ac_cv_working_tzset=no
25639 else $as_nop
25640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641 /* end confdefs.h. */
25642
25643 #include <stdlib.h>
25644 #include <time.h>
25645 #include <string.h>
25646
25647 #if HAVE_TZNAME
25648 extern char *tzname[];
25649 #endif
25650
25651 int main(void)
25652 {
25653 /* Note that we need to ensure that not only does tzset(3)
25654 do 'something' with localtime, but it works as documented
25655 in the library reference and as expected by the test suite.
25656 This includes making sure that tzname is set properly if
25657 tm->tm_zone does not exist since it is the alternative way
25658 of getting timezone info.
25659
25660 Red Hat 6.2 doesn't understand the southern hemisphere
25661 after New Year's Day.
25662 */
25663
25664 time_t groundhogday = 1044144000; /* GMT-based */
25665 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25666
25667 putenv("TZ=UTC+0");
25668 tzset();
25669 if (localtime(&groundhogday)->tm_hour != 0)
25670 exit(1);
25671 #if HAVE_TZNAME
25672 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25673 if (strcmp(tzname[0], "UTC") ||
25674 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25675 exit(1);
25676 #endif
25677
25678 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25679 tzset();
25680 if (localtime(&groundhogday)->tm_hour != 19)
25681 exit(1);
25682 #if HAVE_TZNAME
25683 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25684 exit(1);
25685 #endif
25686
25687 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25688 tzset();
25689 if (localtime(&groundhogday)->tm_hour != 11)
25690 exit(1);
25691 #if HAVE_TZNAME
25692 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25693 exit(1);
25694 #endif
25695
25696 #if HAVE_STRUCT_TM_TM_ZONE
25697 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25698 exit(1);
25699 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25700 exit(1);
25701 #endif
25702
25703 exit(0);
25704 }
25705
25706 _ACEOF
25707 if ac_fn_c_try_run "$LINENO"
25708 then :
25709 ac_cv_working_tzset=yes
25710 else $as_nop
25711 ac_cv_working_tzset=no
25712 fi
25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25714 conftest.$ac_objext conftest.beam conftest.$ac_ext
25715 fi
25716
25717 fi
25718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
25719 printf "%s\n" "$ac_cv_working_tzset" >&6; }
25720 if test "$ac_cv_working_tzset" = yes
25721 then
25722
25723 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
25724
25725 fi
25726
25727 # Look for subsecond timestamps in struct stat
25728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
25729 printf %s "checking for tv_nsec in struct stat... " >&6; }
25730 if test ${ac_cv_stat_tv_nsec+y}
25731 then :
25732 printf %s "(cached) " >&6
25733 else $as_nop
25734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25735 /* end confdefs.h. */
25736 #include <sys/stat.h>
25737 int
25738 main (void)
25739 {
25740
25741 struct stat st;
25742 st.st_mtim.tv_nsec = 1;
25743
25744 ;
25745 return 0;
25746 }
25747 _ACEOF
25748 if ac_fn_c_try_compile "$LINENO"
25749 then :
25750 ac_cv_stat_tv_nsec=yes
25751 else $as_nop
25752 ac_cv_stat_tv_nsec=no
25753 fi
25754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25755 fi
25756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
25757 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
25758 if test "$ac_cv_stat_tv_nsec" = yes
25759 then
25760
25761 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
25762
25763 fi
25764
25765 # Look for BSD style subsecond timestamps in struct stat
25766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
25767 printf %s "checking for tv_nsec2 in struct stat... " >&6; }
25768 if test ${ac_cv_stat_tv_nsec2+y}
25769 then :
25770 printf %s "(cached) " >&6
25771 else $as_nop
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h. */
25774 #include <sys/stat.h>
25775 int
25776 main (void)
25777 {
25778
25779 struct stat st;
25780 st.st_mtimespec.tv_nsec = 1;
25781
25782 ;
25783 return 0;
25784 }
25785 _ACEOF
25786 if ac_fn_c_try_compile "$LINENO"
25787 then :
25788 ac_cv_stat_tv_nsec2=yes
25789 else $as_nop
25790 ac_cv_stat_tv_nsec2=no
25791 fi
25792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25793 fi
25794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
25795 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
25796 if test "$ac_cv_stat_tv_nsec2" = yes
25797 then
25798
25799 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
25800
25801 fi
25802
25803 have_curses=no
25804 have_panel=no
25805
25806
25807 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
25808 if test "x$ac_cv_header_curses_h" = xyes
25809 then :
25810 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
25811
25812 fi
25813 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
25814 if test "x$ac_cv_header_ncurses_h" = xyes
25815 then :
25816 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
25817
25818 fi
25819
25820
25821 if test "x$ac_cv_header_ncurses_h" = xyes
25822 then :
25823
25824 if test "$ac_sys_system" != "Darwin"; then
25825
25826 pkg_failed=no
25827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
25828 printf %s "checking for ncursesw... " >&6; }
25829
25830 if test -n "$CURSES_CFLAGS"; then
25831 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
25832 elif test -n "$PKG_CONFIG"; then
25833 if test -n "$PKG_CONFIG" && \
25834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25835 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25836 ac_status=$?
25837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; then
25839 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
25840 test "x$?" != "x0" && pkg_failed=yes
25841 else
25842 pkg_failed=yes
25843 fi
25844 else
25845 pkg_failed=untried
25846 fi
25847 if test -n "$CURSES_LIBS"; then
25848 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
25849 elif test -n "$PKG_CONFIG"; then
25850 if test -n "$PKG_CONFIG" && \
25851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25852 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25853 ac_status=$?
25854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; then
25856 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
25857 test "x$?" != "x0" && pkg_failed=yes
25858 else
25859 pkg_failed=yes
25860 fi
25861 else
25862 pkg_failed=untried
25863 fi
25864
25865
25866
25867 if test $pkg_failed = yes; then
25868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25869 printf "%s\n" "no" >&6; }
25870
25871 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25872 _pkg_short_errors_supported=yes
25873 else
25874 _pkg_short_errors_supported=no
25875 fi
25876 if test $_pkg_short_errors_supported = yes; then
25877 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
25878 else
25879 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
25880 fi
25881 # Put the nasty error message in config.log where it belongs
25882 echo "$CURSES_PKG_ERRORS" >&5
25883
25884
25885 save_CFLAGS=$CFLAGS
25886 save_CPPFLAGS=$CPPFLAGS
25887 save_LDFLAGS=$LDFLAGS
25888 save_LIBS=$LIBS
25889
25890
25891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
25892 printf %s "checking for initscr in -lncursesw... " >&6; }
25893 if test ${ac_cv_lib_ncursesw_initscr+y}
25894 then :
25895 printf %s "(cached) " >&6
25896 else $as_nop
25897 ac_check_lib_save_LIBS=$LIBS
25898 LIBS="-lncursesw $LIBS"
25899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h. */
25901
25902 /* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25905 char initscr ();
25906 int
25907 main (void)
25908 {
25909 return initscr ();
25910 ;
25911 return 0;
25912 }
25913 _ACEOF
25914 if ac_fn_c_try_link "$LINENO"
25915 then :
25916 ac_cv_lib_ncursesw_initscr=yes
25917 else $as_nop
25918 ac_cv_lib_ncursesw_initscr=no
25919 fi
25920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25921 conftest$ac_exeext conftest.$ac_ext
25922 LIBS=$ac_check_lib_save_LIBS
25923 fi
25924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
25925 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
25926 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
25927 then :
25928
25929 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
25930
25931 have_curses=ncursesw
25932 CURSES_CFLAGS=${CURSES_CFLAGS-""}
25933 CURSES_LIBS=${CURSES_LIBS-"-lncursesw"}
25934
25935 fi
25936
25937
25938 CFLAGS=$save_CFLAGS
25939 CPPFLAGS=$save_CPPFLAGS
25940 LDFLAGS=$save_LDFLAGS
25941 LIBS=$save_LIBS
25942
25943
25944
25945 elif test $pkg_failed = untried; then
25946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25947 printf "%s\n" "no" >&6; }
25948
25949 save_CFLAGS=$CFLAGS
25950 save_CPPFLAGS=$CPPFLAGS
25951 save_LDFLAGS=$LDFLAGS
25952 save_LIBS=$LIBS
25953
25954
25955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
25956 printf %s "checking for initscr in -lncursesw... " >&6; }
25957 if test ${ac_cv_lib_ncursesw_initscr+y}
25958 then :
25959 printf %s "(cached) " >&6
25960 else $as_nop
25961 ac_check_lib_save_LIBS=$LIBS
25962 LIBS="-lncursesw $LIBS"
25963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25964 /* end confdefs.h. */
25965
25966 /* Override any GCC internal prototype to avoid an error.
25967 Use char because int might match the return type of a GCC
25968 builtin and then its argument prototype would still apply. */
25969 char initscr ();
25970 int
25971 main (void)
25972 {
25973 return initscr ();
25974 ;
25975 return 0;
25976 }
25977 _ACEOF
25978 if ac_fn_c_try_link "$LINENO"
25979 then :
25980 ac_cv_lib_ncursesw_initscr=yes
25981 else $as_nop
25982 ac_cv_lib_ncursesw_initscr=no
25983 fi
25984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25985 conftest$ac_exeext conftest.$ac_ext
25986 LIBS=$ac_check_lib_save_LIBS
25987 fi
25988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
25989 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
25990 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
25991 then :
25992
25993 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
25994
25995 have_curses=ncursesw
25996 CURSES_CFLAGS=${CURSES_CFLAGS-""}
25997 CURSES_LIBS=${CURSES_LIBS-"-lncursesw"}
25998
25999 fi
26000
26001
26002 CFLAGS=$save_CFLAGS
26003 CPPFLAGS=$save_CPPFLAGS
26004 LDFLAGS=$save_LDFLAGS
26005 LIBS=$save_LIBS
26006
26007
26008
26009 else
26010 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26011 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26013 printf "%s\n" "yes" >&6; }
26014
26015 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26016
26017 have_curses=ncursesw
26018
26019 fi
26020 fi
26021
26022 if test "x$have_curses" = xno
26023 then :
26024
26025
26026 pkg_failed=no
26027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
26028 printf %s "checking for ncurses... " >&6; }
26029
26030 if test -n "$CURSES_CFLAGS"; then
26031 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
26032 elif test -n "$PKG_CONFIG"; then
26033 if test -n "$PKG_CONFIG" && \
26034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26035 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26036 ac_status=$?
26037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; then
26039 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
26040 test "x$?" != "x0" && pkg_failed=yes
26041 else
26042 pkg_failed=yes
26043 fi
26044 else
26045 pkg_failed=untried
26046 fi
26047 if test -n "$CURSES_LIBS"; then
26048 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
26049 elif test -n "$PKG_CONFIG"; then
26050 if test -n "$PKG_CONFIG" && \
26051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26052 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26053 ac_status=$?
26054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; then
26056 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
26057 test "x$?" != "x0" && pkg_failed=yes
26058 else
26059 pkg_failed=yes
26060 fi
26061 else
26062 pkg_failed=untried
26063 fi
26064
26065
26066
26067 if test $pkg_failed = yes; then
26068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069 printf "%s\n" "no" >&6; }
26070
26071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26072 _pkg_short_errors_supported=yes
26073 else
26074 _pkg_short_errors_supported=no
26075 fi
26076 if test $_pkg_short_errors_supported = yes; then
26077 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
26078 else
26079 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
26080 fi
26081 # Put the nasty error message in config.log where it belongs
26082 echo "$CURSES_PKG_ERRORS" >&5
26083
26084
26085 save_CFLAGS=$CFLAGS
26086 save_CPPFLAGS=$CPPFLAGS
26087 save_LDFLAGS=$LDFLAGS
26088 save_LIBS=$LIBS
26089
26090
26091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
26092 printf %s "checking for initscr in -lncurses... " >&6; }
26093 if test ${ac_cv_lib_ncurses_initscr+y}
26094 then :
26095 printf %s "(cached) " >&6
26096 else $as_nop
26097 ac_check_lib_save_LIBS=$LIBS
26098 LIBS="-lncurses $LIBS"
26099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26100 /* end confdefs.h. */
26101
26102 /* Override any GCC internal prototype to avoid an error.
26103 Use char because int might match the return type of a GCC
26104 builtin and then its argument prototype would still apply. */
26105 char initscr ();
26106 int
26107 main (void)
26108 {
26109 return initscr ();
26110 ;
26111 return 0;
26112 }
26113 _ACEOF
26114 if ac_fn_c_try_link "$LINENO"
26115 then :
26116 ac_cv_lib_ncurses_initscr=yes
26117 else $as_nop
26118 ac_cv_lib_ncurses_initscr=no
26119 fi
26120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26123 fi
26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
26125 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
26126 if test "x$ac_cv_lib_ncurses_initscr" = xyes
26127 then :
26128
26129 have_curses=ncurses
26130 CURSES_CFLAGS=${CURSES_CFLAGS-""}
26131 CURSES_LIBS=${CURSES_LIBS-"-lncurses"}
26132
26133 fi
26134
26135
26136 CFLAGS=$save_CFLAGS
26137 CPPFLAGS=$save_CPPFLAGS
26138 LDFLAGS=$save_LDFLAGS
26139 LIBS=$save_LIBS
26140
26141
26142
26143 elif test $pkg_failed = untried; then
26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26145 printf "%s\n" "no" >&6; }
26146
26147 save_CFLAGS=$CFLAGS
26148 save_CPPFLAGS=$CPPFLAGS
26149 save_LDFLAGS=$LDFLAGS
26150 save_LIBS=$LIBS
26151
26152
26153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
26154 printf %s "checking for initscr in -lncurses... " >&6; }
26155 if test ${ac_cv_lib_ncurses_initscr+y}
26156 then :
26157 printf %s "(cached) " >&6
26158 else $as_nop
26159 ac_check_lib_save_LIBS=$LIBS
26160 LIBS="-lncurses $LIBS"
26161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h. */
26163
26164 /* Override any GCC internal prototype to avoid an error.
26165 Use char because int might match the return type of a GCC
26166 builtin and then its argument prototype would still apply. */
26167 char initscr ();
26168 int
26169 main (void)
26170 {
26171 return initscr ();
26172 ;
26173 return 0;
26174 }
26175 _ACEOF
26176 if ac_fn_c_try_link "$LINENO"
26177 then :
26178 ac_cv_lib_ncurses_initscr=yes
26179 else $as_nop
26180 ac_cv_lib_ncurses_initscr=no
26181 fi
26182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26183 conftest$ac_exeext conftest.$ac_ext
26184 LIBS=$ac_check_lib_save_LIBS
26185 fi
26186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
26187 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
26188 if test "x$ac_cv_lib_ncurses_initscr" = xyes
26189 then :
26190
26191 have_curses=ncurses
26192 CURSES_CFLAGS=${CURSES_CFLAGS-""}
26193 CURSES_LIBS=${CURSES_LIBS-"-lncurses"}
26194
26195 fi
26196
26197
26198 CFLAGS=$save_CFLAGS
26199 CPPFLAGS=$save_CPPFLAGS
26200 LDFLAGS=$save_LDFLAGS
26201 LIBS=$save_LIBS
26202
26203
26204
26205 else
26206 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
26207 CURSES_LIBS=$pkg_cv_CURSES_LIBS
26208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26209 printf "%s\n" "yes" >&6; }
26210
26211 have_curses=ncurses
26212
26213 fi
26214
26215 fi
26216
26217
26218 fi
26219 CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26220
26221 if test "$have_curses" != no -a "$ac_sys_system" = "Darwin"; then
26222
26223 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1"
26224 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26225
26226 fi
26227
26228
26229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curses module flags" >&5
26230 printf %s "checking curses module flags... " >&6; }
26231 if test "x$have_curses" = xno
26232 then :
26233
26234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26235 printf "%s\n" "no" >&6; }
26236
26237 else $as_nop
26238
26239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_curses (CFLAGS: $CURSES_CFLAGS, LIBS: $CURSES_LIBS)" >&5
26240 printf "%s\n" "$have_curses (CFLAGS: $CURSES_CFLAGS, LIBS: $CURSES_LIBS)" >&6; }
26241
26242 fi
26243
26244 ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
26245 if test "x$ac_cv_header_panel_h" = xyes
26246 then :
26247 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
26248
26249 fi
26250
26251
26252 if test "x$ac_cv_header_panel_h" = xyes
26253 then :
26254
26255
26256 if test "$ac_sys_system" != "Darwin"; then
26257 if test "x$have_curses" = xncursesw
26258 then :
26259
26260
26261 pkg_failed=no
26262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
26263 printf %s "checking for panelw... " >&6; }
26264
26265 if test -n "$PANEL_CFLAGS"; then
26266 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26267 elif test -n "$PKG_CONFIG"; then
26268 if test -n "$PKG_CONFIG" && \
26269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26270 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26271 ac_status=$?
26272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; then
26274 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
26275 test "x$?" != "x0" && pkg_failed=yes
26276 else
26277 pkg_failed=yes
26278 fi
26279 else
26280 pkg_failed=untried
26281 fi
26282 if test -n "$PANEL_LIBS"; then
26283 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26284 elif test -n "$PKG_CONFIG"; then
26285 if test -n "$PKG_CONFIG" && \
26286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26287 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26288 ac_status=$?
26289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; then
26291 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 2>/dev/null`
26292 test "x$?" != "x0" && pkg_failed=yes
26293 else
26294 pkg_failed=yes
26295 fi
26296 else
26297 pkg_failed=untried
26298 fi
26299
26300
26301
26302 if test $pkg_failed = yes; then
26303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26304 printf "%s\n" "no" >&6; }
26305
26306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26307 _pkg_short_errors_supported=yes
26308 else
26309 _pkg_short_errors_supported=no
26310 fi
26311 if test $_pkg_short_errors_supported = yes; then
26312 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
26313 else
26314 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
26315 fi
26316 # Put the nasty error message in config.log where it belongs
26317 echo "$PANEL_PKG_ERRORS" >&5
26318
26319
26320 save_CFLAGS=$CFLAGS
26321 save_CPPFLAGS=$CPPFLAGS
26322 save_LDFLAGS=$LDFLAGS
26323 save_LIBS=$LIBS
26324
26325
26326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
26327 printf %s "checking for update_panels in -lpanelw... " >&6; }
26328 if test ${ac_cv_lib_panelw_update_panels+y}
26329 then :
26330 printf %s "(cached) " >&6
26331 else $as_nop
26332 ac_check_lib_save_LIBS=$LIBS
26333 LIBS="-lpanelw $LIBS"
26334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26336
26337 /* Override any GCC internal prototype to avoid an error.
26338 Use char because int might match the return type of a GCC
26339 builtin and then its argument prototype would still apply. */
26340 char update_panels ();
26341 int
26342 main (void)
26343 {
26344 return update_panels ();
26345 ;
26346 return 0;
26347 }
26348 _ACEOF
26349 if ac_fn_c_try_link "$LINENO"
26350 then :
26351 ac_cv_lib_panelw_update_panels=yes
26352 else $as_nop
26353 ac_cv_lib_panelw_update_panels=no
26354 fi
26355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26356 conftest$ac_exeext conftest.$ac_ext
26357 LIBS=$ac_check_lib_save_LIBS
26358 fi
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
26360 printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
26361 if test "x$ac_cv_lib_panelw_update_panels" = xyes
26362 then :
26363
26364 have_panel=panelw
26365 PANEL_CFLAGS=${PANEL_CFLAGS-""}
26366 PANEL_LIBS=${PANEL_LIBS-"-lpanelw"}
26367
26368 fi
26369
26370
26371 CFLAGS=$save_CFLAGS
26372 CPPFLAGS=$save_CPPFLAGS
26373 LDFLAGS=$save_LDFLAGS
26374 LIBS=$save_LIBS
26375
26376
26377
26378 elif test $pkg_failed = untried; then
26379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26380 printf "%s\n" "no" >&6; }
26381
26382 save_CFLAGS=$CFLAGS
26383 save_CPPFLAGS=$CPPFLAGS
26384 save_LDFLAGS=$LDFLAGS
26385 save_LIBS=$LIBS
26386
26387
26388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
26389 printf %s "checking for update_panels in -lpanelw... " >&6; }
26390 if test ${ac_cv_lib_panelw_update_panels+y}
26391 then :
26392 printf %s "(cached) " >&6
26393 else $as_nop
26394 ac_check_lib_save_LIBS=$LIBS
26395 LIBS="-lpanelw $LIBS"
26396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26397 /* end confdefs.h. */
26398
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26402 char update_panels ();
26403 int
26404 main (void)
26405 {
26406 return update_panels ();
26407 ;
26408 return 0;
26409 }
26410 _ACEOF
26411 if ac_fn_c_try_link "$LINENO"
26412 then :
26413 ac_cv_lib_panelw_update_panels=yes
26414 else $as_nop
26415 ac_cv_lib_panelw_update_panels=no
26416 fi
26417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26418 conftest$ac_exeext conftest.$ac_ext
26419 LIBS=$ac_check_lib_save_LIBS
26420 fi
26421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
26422 printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
26423 if test "x$ac_cv_lib_panelw_update_panels" = xyes
26424 then :
26425
26426 have_panel=panelw
26427 PANEL_CFLAGS=${PANEL_CFLAGS-""}
26428 PANEL_LIBS=${PANEL_LIBS-"-lpanelw"}
26429
26430 fi
26431
26432
26433 CFLAGS=$save_CFLAGS
26434 CPPFLAGS=$save_CPPFLAGS
26435 LDFLAGS=$save_LDFLAGS
26436 LIBS=$save_LIBS
26437
26438
26439
26440 else
26441 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26442 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26444 printf "%s\n" "yes" >&6; }
26445
26446 have_panel=panelw
26447
26448 fi
26449
26450 fi
26451 fi
26452
26453 if test "x$have_curses" = xncurses
26454 then :
26455
26456
26457 pkg_failed=no
26458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
26459 printf %s "checking for panel... " >&6; }
26460
26461 if test -n "$PANEL_CFLAGS"; then
26462 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
26463 elif test -n "$PKG_CONFIG"; then
26464 if test -n "$PKG_CONFIG" && \
26465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26466 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26467 ac_status=$?
26468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; then
26470 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
26471 test "x$?" != "x0" && pkg_failed=yes
26472 else
26473 pkg_failed=yes
26474 fi
26475 else
26476 pkg_failed=untried
26477 fi
26478 if test -n "$PANEL_LIBS"; then
26479 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
26480 elif test -n "$PKG_CONFIG"; then
26481 if test -n "$PKG_CONFIG" && \
26482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26483 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26484 ac_status=$?
26485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; then
26487 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 2>/dev/null`
26488 test "x$?" != "x0" && pkg_failed=yes
26489 else
26490 pkg_failed=yes
26491 fi
26492 else
26493 pkg_failed=untried
26494 fi
26495
26496
26497
26498 if test $pkg_failed = yes; then
26499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26500 printf "%s\n" "no" >&6; }
26501
26502 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26503 _pkg_short_errors_supported=yes
26504 else
26505 _pkg_short_errors_supported=no
26506 fi
26507 if test $_pkg_short_errors_supported = yes; then
26508 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
26509 else
26510 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
26511 fi
26512 # Put the nasty error message in config.log where it belongs
26513 echo "$PANEL_PKG_ERRORS" >&5
26514
26515
26516 save_CFLAGS=$CFLAGS
26517 save_CPPFLAGS=$CPPFLAGS
26518 save_LDFLAGS=$LDFLAGS
26519 save_LIBS=$LIBS
26520
26521
26522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
26523 printf %s "checking for update_panels in -lpanel... " >&6; }
26524 if test ${ac_cv_lib_panel_update_panels+y}
26525 then :
26526 printf %s "(cached) " >&6
26527 else $as_nop
26528 ac_check_lib_save_LIBS=$LIBS
26529 LIBS="-lpanel $LIBS"
26530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h. */
26532
26533 /* Override any GCC internal prototype to avoid an error.
26534 Use char because int might match the return type of a GCC
26535 builtin and then its argument prototype would still apply. */
26536 char update_panels ();
26537 int
26538 main (void)
26539 {
26540 return update_panels ();
26541 ;
26542 return 0;
26543 }
26544 _ACEOF
26545 if ac_fn_c_try_link "$LINENO"
26546 then :
26547 ac_cv_lib_panel_update_panels=yes
26548 else $as_nop
26549 ac_cv_lib_panel_update_panels=no
26550 fi
26551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26552 conftest$ac_exeext conftest.$ac_ext
26553 LIBS=$ac_check_lib_save_LIBS
26554 fi
26555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
26556 printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
26557 if test "x$ac_cv_lib_panel_update_panels" = xyes
26558 then :
26559
26560 have_panel=panel
26561 PANEL_CFLAGS=${PANEL_CFLAGS-""}
26562 PANEL_LIBS=${PANEL_LIBS-"-lpanel"}
26563
26564 fi
26565
26566
26567 CFLAGS=$save_CFLAGS
26568 CPPFLAGS=$save_CPPFLAGS
26569 LDFLAGS=$save_LDFLAGS
26570 LIBS=$save_LIBS
26571
26572
26573
26574 elif test $pkg_failed = untried; then
26575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26576 printf "%s\n" "no" >&6; }
26577
26578 save_CFLAGS=$CFLAGS
26579 save_CPPFLAGS=$CPPFLAGS
26580 save_LDFLAGS=$LDFLAGS
26581 save_LIBS=$LIBS
26582
26583
26584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
26585 printf %s "checking for update_panels in -lpanel... " >&6; }
26586 if test ${ac_cv_lib_panel_update_panels+y}
26587 then :
26588 printf %s "(cached) " >&6
26589 else $as_nop
26590 ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-lpanel $LIBS"
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26594
26595 /* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598 char update_panels ();
26599 int
26600 main (void)
26601 {
26602 return update_panels ();
26603 ;
26604 return 0;
26605 }
26606 _ACEOF
26607 if ac_fn_c_try_link "$LINENO"
26608 then :
26609 ac_cv_lib_panel_update_panels=yes
26610 else $as_nop
26611 ac_cv_lib_panel_update_panels=no
26612 fi
26613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26614 conftest$ac_exeext conftest.$ac_ext
26615 LIBS=$ac_check_lib_save_LIBS
26616 fi
26617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
26618 printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
26619 if test "x$ac_cv_lib_panel_update_panels" = xyes
26620 then :
26621
26622 have_panel=panel
26623 PANEL_CFLAGS=${PANEL_CFLAGS-""}
26624 PANEL_LIBS=${PANEL_LIBS-"-lpanel"}
26625
26626 fi
26627
26628
26629 CFLAGS=$save_CFLAGS
26630 CPPFLAGS=$save_CPPFLAGS
26631 LDFLAGS=$save_LDFLAGS
26632 LIBS=$save_LIBS
26633
26634
26635
26636 else
26637 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
26638 PANEL_LIBS=$pkg_cv_PANEL_LIBS
26639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26640 printf "%s\n" "yes" >&6; }
26641
26642 have_panel=panel
26643
26644 fi
26645
26646 fi
26647
26648
26649 fi
26650 PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
26651
26652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking panel flags" >&5
26653 printf %s "checking panel flags... " >&6; }
26654 if test "x$have_panel" = xno
26655 then :
26656
26657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 printf "%s\n" "no" >&6; }
26659
26660 else $as_nop
26661
26662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)" >&5
26663 printf "%s\n" "$have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)" >&6; }
26664
26665 fi
26666
26667 # first curses header check
26668 ac_save_cppflags="$CPPFLAGS"
26669 if test "$cross_compiling" = no; then
26670 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
26671 fi
26672
26673 # On Solaris, term.h requires curses.h
26674 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
26675 #ifdef HAVE_CURSES_H
26676 #include <curses.h>
26677 #endif
26678
26679 "
26680 if test "x$ac_cv_header_term_h" = xyes
26681 then :
26682 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
26683
26684 fi
26685
26686
26687 # On HP/UX 11.0, mvwdelch is a block with a return statement
26688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
26689 printf %s "checking whether mvwdelch is an expression... " >&6; }
26690 if test ${ac_cv_mvwdelch_is_expression+y}
26691 then :
26692 printf %s "(cached) " >&6
26693 else $as_nop
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 #include <curses.h>
26697 int
26698 main (void)
26699 {
26700
26701 int rtn;
26702 rtn = mvwdelch(0,0,0);
26703
26704 ;
26705 return 0;
26706 }
26707 _ACEOF
26708 if ac_fn_c_try_compile "$LINENO"
26709 then :
26710 ac_cv_mvwdelch_is_expression=yes
26711 else $as_nop
26712 ac_cv_mvwdelch_is_expression=no
26713 fi
26714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26715 fi
26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
26717 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
26718
26719 if test "$ac_cv_mvwdelch_is_expression" = yes
26720 then
26721
26722 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
26723
26724 fi
26725
26726 # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
26727 # structs since version 5.7. If the macro is defined as zero before including
26728 # [n]curses.h, ncurses will expose fields of the structs regardless of the
26729 # configuration.
26730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
26731 printf %s "checking whether WINDOW has _flags... " >&6; }
26732 if test ${ac_cv_window_has_flags+y}
26733 then :
26734 printf %s "(cached) " >&6
26735 else $as_nop
26736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h. */
26738
26739 #define NCURSES_OPAQUE 0
26740 #include <curses.h>
26741
26742 int
26743 main (void)
26744 {
26745
26746 WINDOW *w;
26747 w->_flags = 0;
26748
26749 ;
26750 return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_c_try_compile "$LINENO"
26754 then :
26755 ac_cv_window_has_flags=yes
26756 else $as_nop
26757 ac_cv_window_has_flags=no
26758 fi
26759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26760 fi
26761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
26762 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
26763
26764
26765 if test "$ac_cv_window_has_flags" = yes
26766 then
26767
26768 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
26769
26770 fi
26771
26772
26773
26774
26775
26776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
26777 printf %s "checking for curses function is_pad... " >&6; }
26778 if test ${ac_cv_lib_curses_is_pad+y}
26779 then :
26780 printf %s "(cached) " >&6
26781 else $as_nop
26782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26783 /* end confdefs.h. */
26784 #include <curses.h>
26785 int
26786 main (void)
26787 {
26788
26789 #ifndef is_pad
26790 void *x=is_pad
26791 #endif
26792
26793 ;
26794 return 0;
26795 }
26796 _ACEOF
26797 if ac_fn_c_try_compile "$LINENO"
26798 then :
26799 ac_cv_lib_curses_is_pad=yes
26800 else $as_nop
26801 ac_cv_lib_curses_is_pad=no
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26804
26805 fi
26806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
26807 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
26808 if test "x$ac_cv_lib_curses_is_pad" = xyes
26809 then :
26810
26811 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
26812
26813 fi
26814
26815
26816
26817
26818
26819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
26820 printf %s "checking for curses function is_term_resized... " >&6; }
26821 if test ${ac_cv_lib_curses_is_term_resized+y}
26822 then :
26823 printf %s "(cached) " >&6
26824 else $as_nop
26825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h. */
26827 #include <curses.h>
26828 int
26829 main (void)
26830 {
26831
26832 #ifndef is_term_resized
26833 void *x=is_term_resized
26834 #endif
26835
26836 ;
26837 return 0;
26838 }
26839 _ACEOF
26840 if ac_fn_c_try_compile "$LINENO"
26841 then :
26842 ac_cv_lib_curses_is_term_resized=yes
26843 else $as_nop
26844 ac_cv_lib_curses_is_term_resized=no
26845 fi
26846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26847
26848 fi
26849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
26850 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
26851 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
26852 then :
26853
26854 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
26855
26856 fi
26857
26858
26859
26860
26861
26862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
26863 printf %s "checking for curses function resize_term... " >&6; }
26864 if test ${ac_cv_lib_curses_resize_term+y}
26865 then :
26866 printf %s "(cached) " >&6
26867 else $as_nop
26868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h. */
26870 #include <curses.h>
26871 int
26872 main (void)
26873 {
26874
26875 #ifndef resize_term
26876 void *x=resize_term
26877 #endif
26878
26879 ;
26880 return 0;
26881 }
26882 _ACEOF
26883 if ac_fn_c_try_compile "$LINENO"
26884 then :
26885 ac_cv_lib_curses_resize_term=yes
26886 else $as_nop
26887 ac_cv_lib_curses_resize_term=no
26888 fi
26889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26890
26891 fi
26892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
26893 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
26894 if test "x$ac_cv_lib_curses_resize_term" = xyes
26895 then :
26896
26897 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
26898
26899 fi
26900
26901
26902
26903
26904
26905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
26906 printf %s "checking for curses function resizeterm... " >&6; }
26907 if test ${ac_cv_lib_curses_resizeterm+y}
26908 then :
26909 printf %s "(cached) " >&6
26910 else $as_nop
26911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26913 #include <curses.h>
26914 int
26915 main (void)
26916 {
26917
26918 #ifndef resizeterm
26919 void *x=resizeterm
26920 #endif
26921
26922 ;
26923 return 0;
26924 }
26925 _ACEOF
26926 if ac_fn_c_try_compile "$LINENO"
26927 then :
26928 ac_cv_lib_curses_resizeterm=yes
26929 else $as_nop
26930 ac_cv_lib_curses_resizeterm=no
26931 fi
26932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26933
26934 fi
26935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
26936 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
26937 if test "x$ac_cv_lib_curses_resizeterm" = xyes
26938 then :
26939
26940 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
26941
26942 fi
26943
26944
26945
26946
26947
26948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
26949 printf %s "checking for curses function immedok... " >&6; }
26950 if test ${ac_cv_lib_curses_immedok+y}
26951 then :
26952 printf %s "(cached) " >&6
26953 else $as_nop
26954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h. */
26956 #include <curses.h>
26957 int
26958 main (void)
26959 {
26960
26961 #ifndef immedok
26962 void *x=immedok
26963 #endif
26964
26965 ;
26966 return 0;
26967 }
26968 _ACEOF
26969 if ac_fn_c_try_compile "$LINENO"
26970 then :
26971 ac_cv_lib_curses_immedok=yes
26972 else $as_nop
26973 ac_cv_lib_curses_immedok=no
26974 fi
26975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26976
26977 fi
26978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
26979 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
26980 if test "x$ac_cv_lib_curses_immedok" = xyes
26981 then :
26982
26983 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
26984
26985 fi
26986
26987
26988
26989
26990
26991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
26992 printf %s "checking for curses function syncok... " >&6; }
26993 if test ${ac_cv_lib_curses_syncok+y}
26994 then :
26995 printf %s "(cached) " >&6
26996 else $as_nop
26997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h. */
26999 #include <curses.h>
27000 int
27001 main (void)
27002 {
27003
27004 #ifndef syncok
27005 void *x=syncok
27006 #endif
27007
27008 ;
27009 return 0;
27010 }
27011 _ACEOF
27012 if ac_fn_c_try_compile "$LINENO"
27013 then :
27014 ac_cv_lib_curses_syncok=yes
27015 else $as_nop
27016 ac_cv_lib_curses_syncok=no
27017 fi
27018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27019
27020 fi
27021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
27022 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
27023 if test "x$ac_cv_lib_curses_syncok" = xyes
27024 then :
27025
27026 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
27027
27028 fi
27029
27030
27031
27032
27033
27034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
27035 printf %s "checking for curses function wchgat... " >&6; }
27036 if test ${ac_cv_lib_curses_wchgat+y}
27037 then :
27038 printf %s "(cached) " >&6
27039 else $as_nop
27040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h. */
27042 #include <curses.h>
27043 int
27044 main (void)
27045 {
27046
27047 #ifndef wchgat
27048 void *x=wchgat
27049 #endif
27050
27051 ;
27052 return 0;
27053 }
27054 _ACEOF
27055 if ac_fn_c_try_compile "$LINENO"
27056 then :
27057 ac_cv_lib_curses_wchgat=yes
27058 else $as_nop
27059 ac_cv_lib_curses_wchgat=no
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27062
27063 fi
27064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
27065 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
27066 if test "x$ac_cv_lib_curses_wchgat" = xyes
27067 then :
27068
27069 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
27070
27071 fi
27072
27073
27074
27075
27076
27077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
27078 printf %s "checking for curses function filter... " >&6; }
27079 if test ${ac_cv_lib_curses_filter+y}
27080 then :
27081 printf %s "(cached) " >&6
27082 else $as_nop
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27085 #include <curses.h>
27086 int
27087 main (void)
27088 {
27089
27090 #ifndef filter
27091 void *x=filter
27092 #endif
27093
27094 ;
27095 return 0;
27096 }
27097 _ACEOF
27098 if ac_fn_c_try_compile "$LINENO"
27099 then :
27100 ac_cv_lib_curses_filter=yes
27101 else $as_nop
27102 ac_cv_lib_curses_filter=no
27103 fi
27104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27105
27106 fi
27107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
27108 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
27109 if test "x$ac_cv_lib_curses_filter" = xyes
27110 then :
27111
27112 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
27113
27114 fi
27115
27116
27117
27118
27119
27120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
27121 printf %s "checking for curses function has_key... " >&6; }
27122 if test ${ac_cv_lib_curses_has_key+y}
27123 then :
27124 printf %s "(cached) " >&6
27125 else $as_nop
27126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27128 #include <curses.h>
27129 int
27130 main (void)
27131 {
27132
27133 #ifndef has_key
27134 void *x=has_key
27135 #endif
27136
27137 ;
27138 return 0;
27139 }
27140 _ACEOF
27141 if ac_fn_c_try_compile "$LINENO"
27142 then :
27143 ac_cv_lib_curses_has_key=yes
27144 else $as_nop
27145 ac_cv_lib_curses_has_key=no
27146 fi
27147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27148
27149 fi
27150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
27151 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
27152 if test "x$ac_cv_lib_curses_has_key" = xyes
27153 then :
27154
27155 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
27156
27157 fi
27158
27159
27160
27161
27162
27163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
27164 printf %s "checking for curses function typeahead... " >&6; }
27165 if test ${ac_cv_lib_curses_typeahead+y}
27166 then :
27167 printf %s "(cached) " >&6
27168 else $as_nop
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171 #include <curses.h>
27172 int
27173 main (void)
27174 {
27175
27176 #ifndef typeahead
27177 void *x=typeahead
27178 #endif
27179
27180 ;
27181 return 0;
27182 }
27183 _ACEOF
27184 if ac_fn_c_try_compile "$LINENO"
27185 then :
27186 ac_cv_lib_curses_typeahead=yes
27187 else $as_nop
27188 ac_cv_lib_curses_typeahead=no
27189 fi
27190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27191
27192 fi
27193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
27194 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
27195 if test "x$ac_cv_lib_curses_typeahead" = xyes
27196 then :
27197
27198 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
27199
27200 fi
27201
27202
27203
27204
27205
27206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
27207 printf %s "checking for curses function use_env... " >&6; }
27208 if test ${ac_cv_lib_curses_use_env+y}
27209 then :
27210 printf %s "(cached) " >&6
27211 else $as_nop
27212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27213 /* end confdefs.h. */
27214 #include <curses.h>
27215 int
27216 main (void)
27217 {
27218
27219 #ifndef use_env
27220 void *x=use_env
27221 #endif
27222
27223 ;
27224 return 0;
27225 }
27226 _ACEOF
27227 if ac_fn_c_try_compile "$LINENO"
27228 then :
27229 ac_cv_lib_curses_use_env=yes
27230 else $as_nop
27231 ac_cv_lib_curses_use_env=no
27232 fi
27233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27234
27235 fi
27236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
27237 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
27238 if test "x$ac_cv_lib_curses_use_env" = xyes
27239 then :
27240
27241 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
27242
27243 fi
27244
27245
27246
27247 CPPFLAGS=$ac_save_cppflags
27248
27249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
27250 printf "%s\n" "$as_me: checking for device files" >&6;}
27251
27252 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
27253 ac_cv_file__dev_ptmx=no
27254 ac_cv_file__dev_ptc=no
27255 else
27256 if test "x$cross_compiling" = xyes; then
27257 if test "${ac_cv_file__dev_ptmx+set}" != set; then
27258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27259 printf %s "checking for /dev/ptmx... " >&6; }
27260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27261 printf "%s\n" "not set" >&6; }
27262 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27263 fi
27264 if test "${ac_cv_file__dev_ptc+set}" != set; then
27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27266 printf %s "checking for /dev/ptc... " >&6; }
27267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27268 printf "%s\n" "not set" >&6; }
27269 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27270 fi
27271 fi
27272
27273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27274 printf %s "checking for /dev/ptmx... " >&6; }
27275 if test ${ac_cv_file__dev_ptmx+y}
27276 then :
27277 printf %s "(cached) " >&6
27278 else $as_nop
27279 test "$cross_compiling" = yes &&
27280 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27281 if test -r "/dev/ptmx"; then
27282 ac_cv_file__dev_ptmx=yes
27283 else
27284 ac_cv_file__dev_ptmx=no
27285 fi
27286 fi
27287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
27288 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
27289 if test "x$ac_cv_file__dev_ptmx" = xyes
27290 then :
27291
27292 fi
27293
27294 if test "x$ac_cv_file__dev_ptmx" = xyes; then
27295
27296 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
27297
27298 fi
27299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27300 printf %s "checking for /dev/ptc... " >&6; }
27301 if test ${ac_cv_file__dev_ptc+y}
27302 then :
27303 printf %s "(cached) " >&6
27304 else $as_nop
27305 test "$cross_compiling" = yes &&
27306 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27307 if test -r "/dev/ptc"; then
27308 ac_cv_file__dev_ptc=yes
27309 else
27310 ac_cv_file__dev_ptc=no
27311 fi
27312 fi
27313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
27314 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
27315 if test "x$ac_cv_file__dev_ptc" = xyes
27316 then :
27317
27318 fi
27319
27320 if test "x$ac_cv_file__dev_ptc" = xyes; then
27321
27322 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
27323
27324 fi
27325 fi
27326
27327 if test $ac_sys_system = Darwin
27328 then
27329 LIBS="$LIBS -framework CoreFoundation"
27330 fi
27331
27332 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27333 #ifdef HAVE_SYS_TYPES_H
27334 #include <sys/types.h>
27335 #endif
27336 #ifdef HAVE_SYS_SOCKET_H
27337 #include <sys/socket.h>
27338 #endif
27339
27340 "
27341 if test "x$ac_cv_type_socklen_t" = xyes
27342 then :
27343
27344 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
27345
27346
27347 else $as_nop
27348
27349 printf "%s\n" "#define socklen_t int" >>confdefs.h
27350
27351 fi
27352
27353
27354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
27355 printf %s "checking for broken mbstowcs... " >&6; }
27356 if test ${ac_cv_broken_mbstowcs+y}
27357 then :
27358 printf %s "(cached) " >&6
27359 else $as_nop
27360 if test "$cross_compiling" = yes
27361 then :
27362 ac_cv_broken_mbstowcs=no
27363 else $as_nop
27364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h. */
27366
27367 #include <stddef.h>
27368 #include <stdio.h>
27369 #include <stdlib.h>
27370 int main(void) {
27371 size_t len = -1;
27372 const char *str = "text";
27373 len = mbstowcs(NULL, str, 0);
27374 return (len != 4);
27375 }
27376
27377 _ACEOF
27378 if ac_fn_c_try_run "$LINENO"
27379 then :
27380 ac_cv_broken_mbstowcs=no
27381 else $as_nop
27382 ac_cv_broken_mbstowcs=yes
27383 fi
27384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27385 conftest.$ac_objext conftest.beam conftest.$ac_ext
27386 fi
27387
27388 fi
27389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
27390 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
27391 if test "$ac_cv_broken_mbstowcs" = yes
27392 then
27393
27394 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
27395
27396 fi
27397
27398 # Check for --with-computed-gotos
27399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
27400 printf %s "checking for --with-computed-gotos... " >&6; }
27401
27402 # Check whether --with-computed-gotos was given.
27403 if test ${with_computed_gotos+y}
27404 then :
27405 withval=$with_computed_gotos;
27406 if test "$withval" = yes
27407 then
27408
27409 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
27410
27411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27412 printf "%s\n" "yes" >&6; }
27413 fi
27414 if test "$withval" = no
27415 then
27416
27417 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
27418
27419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27420 printf "%s\n" "no" >&6; }
27421 fi
27422
27423 else $as_nop
27424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
27425 printf "%s\n" "no value specified" >&6; }
27426 fi
27427
27428
27429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
27430 printf %s "checking whether $CC supports computed gotos... " >&6; }
27431 if test ${ac_cv_computed_gotos+y}
27432 then :
27433 printf %s "(cached) " >&6
27434 else $as_nop
27435 if test "$cross_compiling" = yes
27436 then :
27437 if test "${with_computed_gotos+set}" = set; then
27438 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
27439 else
27440 ac_cv_computed_gotos=no
27441 fi
27442 else $as_nop
27443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444 /* end confdefs.h. */
27445
27446 int main(int argc, char **argv)
27447 {
27448 static void *targets[1] = { &&LABEL1 };
27449 goto LABEL2;
27450 LABEL1:
27451 return 0;
27452 LABEL2:
27453 goto *targets[0];
27454 return 1;
27455 }
27456
27457 _ACEOF
27458 if ac_fn_c_try_run "$LINENO"
27459 then :
27460 ac_cv_computed_gotos=yes
27461 else $as_nop
27462 ac_cv_computed_gotos=no
27463 fi
27464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27465 conftest.$ac_objext conftest.beam conftest.$ac_ext
27466 fi
27467
27468 fi
27469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
27470 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
27471 case "$ac_cv_computed_gotos" in yes*)
27472
27473 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
27474
27475 esac
27476
27477 case $ac_sys_system in
27478 AIX*)
27479
27480 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
27481 ;;
27482 esac
27483
27484
27485
27486
27487 for h in `(cd $srcdir;echo Python/thread_*.h)`
27488 do
27489 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27490 done
27491
27492
27493 SRCDIRS="\
27494 Modules \
27495 Modules/_blake2 \
27496 Modules/_ctypes \
27497 Modules/_decimal \
27498 Modules/_decimal/libmpdec \
27499 Modules/_hacl \
27500 Modules/_io \
27501 Modules/_multiprocessing \
27502 Modules/_sqlite \
27503 Modules/_sre \
27504 Modules/_testcapi \
27505 Modules/_testinternalcapi \
27506 Modules/_testlimitedcapi \
27507 Modules/_xxtestfuzz \
27508 Modules/cjkcodecs \
27509 Modules/expat \
27510 Objects \
27511 Objects/mimalloc \
27512 Objects/mimalloc/prim \
27513 Parser \
27514 Parser/tokenizer \
27515 Parser/lexer \
27516 Programs \
27517 Python \
27518 Python/frozen_modules"
27519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
27520 printf %s "checking for build directories... " >&6; }
27521 for dir in $SRCDIRS; do
27522 if test ! -d $dir; then
27523 mkdir $dir
27524 fi
27525 done
27526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27527 printf "%s\n" "done" >&6; }
27528
27529 # Availability of -O2:
27530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
27531 printf %s "checking for -O2... " >&6; }
27532 if test ${ac_cv_compile_o2+y}
27533 then :
27534 printf %s "(cached) " >&6
27535 else $as_nop
27536
27537 saved_cflags="$CFLAGS"
27538 CFLAGS="-O2"
27539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27540 /* end confdefs.h. */
27541
27542 int
27543 main (void)
27544 {
27545
27546 ;
27547 return 0;
27548 }
27549 _ACEOF
27550 if ac_fn_c_try_compile "$LINENO"
27551 then :
27552 ac_cv_compile_o2=yes
27553 else $as_nop
27554 ac_cv_compile_o2=no
27555 fi
27556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27557 CFLAGS="$saved_cflags"
27558
27559 fi
27560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
27561 printf "%s\n" "$ac_cv_compile_o2" >&6; }
27562
27563 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
27564 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
27565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
27566 printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
27567 saved_cflags="$CFLAGS"
27568 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
27569 if test "$ac_cv_compile_o2" = no; then
27570 CFLAGS=""
27571 fi
27572 if test "$cross_compiling" = yes
27573 then :
27574 have_glibc_memmove_bug=undefined
27575 else $as_nop
27576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27577 /* end confdefs.h. */
27578
27579 #include <stdio.h>
27580 #include <stdlib.h>
27581 #include <string.h>
27582 void foo(void *p, void *q) { memmove(p, q, 19); }
27583 int main(void) {
27584 char a[32] = "123456789000000000";
27585 foo(&a[9], a);
27586 if (strcmp(a, "123456789123456789000000000") != 0)
27587 return 1;
27588 foo(a, &a[9]);
27589 if (strcmp(a, "123456789000000000") != 0)
27590 return 1;
27591 return 0;
27592 }
27593
27594 _ACEOF
27595 if ac_fn_c_try_run "$LINENO"
27596 then :
27597 have_glibc_memmove_bug=no
27598 else $as_nop
27599 have_glibc_memmove_bug=yes
27600 fi
27601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27602 conftest.$ac_objext conftest.beam conftest.$ac_ext
27603 fi
27604
27605 CFLAGS="$saved_cflags"
27606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
27607 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
27608 if test "$have_glibc_memmove_bug" = yes; then
27609
27610 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
27611
27612 fi
27613
27614 if test "$ac_cv_gcc_asm_for_x87" = yes; then
27615 # Some versions of gcc miscompile inline asm:
27616 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
27617 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
27618 case $CC in
27619 *gcc*)
27620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
27621 printf %s "checking for gcc ipa-pure-const bug... " >&6; }
27622 saved_cflags="$CFLAGS"
27623 CFLAGS="-O2"
27624 if test "$cross_compiling" = yes
27625 then :
27626 have_ipa_pure_const_bug=undefined
27627 else $as_nop
27628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27630
27631 __attribute__((noinline)) int
27632 foo(int *p) {
27633 int r;
27634 asm ( "movl \$6, (%1)\n\t"
27635 "xorl %0, %0\n\t"
27636 : "=r" (r) : "r" (p) : "memory"
27637 );
27638 return r;
27639 }
27640 int main(void) {
27641 int p = 8;
27642 if ((foo(&p) ? : p) != 6)
27643 return 1;
27644 return 0;
27645 }
27646
27647 _ACEOF
27648 if ac_fn_c_try_run "$LINENO"
27649 then :
27650 have_ipa_pure_const_bug=no
27651 else $as_nop
27652 have_ipa_pure_const_bug=yes
27653 fi
27654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27655 conftest.$ac_objext conftest.beam conftest.$ac_ext
27656 fi
27657
27658 CFLAGS="$saved_cflags"
27659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
27660 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
27661 if test "$have_ipa_pure_const_bug" = yes; then
27662
27663 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
27664
27665 fi
27666 ;;
27667 esac
27668 fi
27669
27670 # ensurepip option
27671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
27672 printf %s "checking for ensurepip... " >&6; }
27673
27674 # Check whether --with-ensurepip was given.
27675 if test ${with_ensurepip+y}
27676 then :
27677 withval=$with_ensurepip;
27678 else $as_nop
27679
27680 case $ac_sys_system in #(
27681 Emscripten) :
27682 with_ensurepip=no ;; #(
27683 WASI) :
27684 with_ensurepip=no ;; #(
27685 iOS) :
27686 with_ensurepip=no ;; #(
27687 *) :
27688 with_ensurepip=upgrade
27689 ;;
27690 esac
27691
27692 fi
27693
27694 case $with_ensurepip in #(
27695 yes|upgrade) :
27696 ENSUREPIP=upgrade ;; #(
27697 install) :
27698 ENSUREPIP=install ;; #(
27699 no) :
27700 ENSUREPIP=no ;; #(
27701 *) :
27702 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
27703 esac
27704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
27705 printf "%s\n" "$ENSUREPIP" >&6; }
27706
27707
27708 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
27709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
27710 printf %s "checking if the dirent structure of a d_type field... " >&6; }
27711 if test ${ac_cv_dirent_d_type+y}
27712 then :
27713 printf %s "(cached) " >&6
27714 else $as_nop
27715
27716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27717 /* end confdefs.h. */
27718
27719
27720 #include <dirent.h>
27721
27722 int main(void) {
27723 struct dirent entry;
27724 return entry.d_type == DT_UNKNOWN;
27725 }
27726
27727
27728 _ACEOF
27729 if ac_fn_c_try_link "$LINENO"
27730 then :
27731 ac_cv_dirent_d_type=yes
27732 else $as_nop
27733 ac_cv_dirent_d_type=no
27734 fi
27735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27736 conftest$ac_exeext conftest.$ac_ext
27737
27738 fi
27739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
27740 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
27741
27742 if test "x$ac_cv_dirent_d_type" = xyes
27743 then :
27744
27745
27746 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
27747
27748
27749 fi
27750
27751 # check if the Linux getrandom() syscall is available
27752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
27753 printf %s "checking for the Linux getrandom() syscall... " >&6; }
27754 if test ${ac_cv_getrandom_syscall+y}
27755 then :
27756 printf %s "(cached) " >&6
27757 else $as_nop
27758
27759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27760 /* end confdefs.h. */
27761
27762
27763 #include <stddef.h>
27764 #include <unistd.h>
27765 #include <sys/syscall.h>
27766 #include <linux/random.h>
27767
27768 int main(void) {
27769 char buffer[1];
27770 const size_t buflen = sizeof(buffer);
27771 const int flags = GRND_NONBLOCK;
27772 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
27773 (void)syscall(SYS_getrandom, buffer, buflen, flags);
27774 return 0;
27775 }
27776
27777
27778 _ACEOF
27779 if ac_fn_c_try_link "$LINENO"
27780 then :
27781 ac_cv_getrandom_syscall=yes
27782 else $as_nop
27783 ac_cv_getrandom_syscall=no
27784 fi
27785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27786 conftest$ac_exeext conftest.$ac_ext
27787
27788 fi
27789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
27790 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
27791
27792 if test "x$ac_cv_getrandom_syscall" = xyes
27793 then :
27794
27795
27796 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
27797
27798
27799 fi
27800
27801 # check if the getrandom() function is available
27802 # the test was written for the Solaris function of <sys/random.h>
27803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
27804 printf %s "checking for the getrandom() function... " >&6; }
27805 if test ${ac_cv_func_getrandom+y}
27806 then :
27807 printf %s "(cached) " >&6
27808 else $as_nop
27809
27810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27811 /* end confdefs.h. */
27812
27813
27814 #include <stddef.h>
27815 #include <sys/random.h>
27816
27817 int main(void) {
27818 char buffer[1];
27819 const size_t buflen = sizeof(buffer);
27820 const int flags = 0;
27821 /* ignore the result, Python checks for ENOSYS at runtime */
27822 (void)getrandom(buffer, buflen, flags);
27823 return 0;
27824 }
27825
27826
27827 _ACEOF
27828 if ac_fn_c_try_link "$LINENO"
27829 then :
27830 ac_cv_func_getrandom=yes
27831 else $as_nop
27832 ac_cv_func_getrandom=no
27833 fi
27834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27835 conftest$ac_exeext conftest.$ac_ext
27836
27837 fi
27838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
27839 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
27840
27841 if test "x$ac_cv_func_getrandom" = xyes
27842 then :
27843
27844
27845 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
27846
27847
27848 fi
27849
27850 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
27851 # shm_* may only be available if linking against librt
27852 POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing'
27853 save_CFLAGS=$CFLAGS
27854 save_CPPFLAGS=$CPPFLAGS
27855 save_LDFLAGS=$LDFLAGS
27856 save_LIBS=$LIBS
27857
27858
27859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
27860 printf %s "checking for library containing shm_open... " >&6; }
27861 if test ${ac_cv_search_shm_open+y}
27862 then :
27863 printf %s "(cached) " >&6
27864 else $as_nop
27865 ac_func_search_save_LIBS=$LIBS
27866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27867 /* end confdefs.h. */
27868
27869 /* Override any GCC internal prototype to avoid an error.
27870 Use char because int might match the return type of a GCC
27871 builtin and then its argument prototype would still apply. */
27872 char shm_open ();
27873 int
27874 main (void)
27875 {
27876 return shm_open ();
27877 ;
27878 return 0;
27879 }
27880 _ACEOF
27881 for ac_lib in '' rt
27882 do
27883 if test -z "$ac_lib"; then
27884 ac_res="none required"
27885 else
27886 ac_res=-l$ac_lib
27887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27888 fi
27889 if ac_fn_c_try_link "$LINENO"
27890 then :
27891 ac_cv_search_shm_open=$ac_res
27892 fi
27893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27894 conftest$ac_exeext
27895 if test ${ac_cv_search_shm_open+y}
27896 then :
27897 break
27898 fi
27899 done
27900 if test ${ac_cv_search_shm_open+y}
27901 then :
27902
27903 else $as_nop
27904 ac_cv_search_shm_open=no
27905 fi
27906 rm conftest.$ac_ext
27907 LIBS=$ac_func_search_save_LIBS
27908 fi
27909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
27910 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
27911 ac_res=$ac_cv_search_shm_open
27912 if test "$ac_res" != no
27913 then :
27914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27915
27916 fi
27917
27918 if test "x$ac_cv_search_shm_open" = x-lrt
27919 then :
27920 POSIXSHMEM_LIBS="-lrt"
27921 fi
27922
27923 save_ac_includes_default=$ac_includes_default
27924 ac_includes_default="\
27925 ${ac_includes_default}
27926 #ifndef __cplusplus
27927 # ifdef HAVE_SYS_MMAN_H
27928 # include <sys/mman.h>
27929 # endif
27930 #endif
27931 "
27932
27933 for ac_func in shm_open shm_unlink
27934 do :
27935 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
27936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27937 if eval test \"x\$"$as_ac_var"\" = x"yes"
27938 then :
27939 cat >>confdefs.h <<_ACEOF
27940 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
27941 _ACEOF
27942 have_posix_shmem=yes
27943 else $as_nop
27944 have_posix_shmem=no
27945 fi
27946
27947 done
27948 ac_includes_default=$save_ac_includes_default
27949
27950 CFLAGS=$save_CFLAGS
27951 CPPFLAGS=$save_CPPFLAGS
27952 LDFLAGS=$save_LDFLAGS
27953 LIBS=$save_LIBS
27954
27955
27956
27957 # Check for usable OpenSSL
27958
27959 found=false
27960
27961 # Check whether --with-openssl was given.
27962 if test ${with_openssl+y}
27963 then :
27964 withval=$with_openssl;
27965 case "$withval" in
27966 "" | y | ye | yes | n | no)
27967 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
27968 ;;
27969 *) ssldirs="$withval"
27970 ;;
27971 esac
27972
27973 else $as_nop
27974
27975 # if pkg-config is installed and openssl has installed a .pc file,
27976 # then use that information and don't search ssldirs
27977 if test -n "$ac_tool_prefix"; then
27978 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27979 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27981 printf %s "checking for $ac_word... " >&6; }
27982 if test ${ac_cv_prog_PKG_CONFIG+y}
27983 then :
27984 printf %s "(cached) " >&6
27985 else $as_nop
27986 if test -n "$PKG_CONFIG"; then
27987 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
27988 else
27989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27990 for as_dir in $PATH
27991 do
27992 IFS=$as_save_IFS
27993 case $as_dir in #(((
27994 '') as_dir=./ ;;
27995 */) ;;
27996 *) as_dir=$as_dir/ ;;
27997 esac
27998 for ac_exec_ext in '' $ac_executable_extensions; do
27999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28000 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
28001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28002 break 2
28003 fi
28004 done
28005 done
28006 IFS=$as_save_IFS
28007
28008 fi
28009 fi
28010 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
28011 if test -n "$PKG_CONFIG"; then
28012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
28013 printf "%s\n" "$PKG_CONFIG" >&6; }
28014 else
28015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28016 printf "%s\n" "no" >&6; }
28017 fi
28018
28019
28020 fi
28021 if test -z "$ac_cv_prog_PKG_CONFIG"; then
28022 ac_ct_PKG_CONFIG=$PKG_CONFIG
28023 # Extract the first word of "pkg-config", so it can be a program name with args.
28024 set dummy pkg-config; ac_word=$2
28025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28026 printf %s "checking for $ac_word... " >&6; }
28027 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
28028 then :
28029 printf %s "(cached) " >&6
28030 else $as_nop
28031 if test -n "$ac_ct_PKG_CONFIG"; then
28032 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
28033 else
28034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28035 for as_dir in $PATH
28036 do
28037 IFS=$as_save_IFS
28038 case $as_dir in #(((
28039 '') as_dir=./ ;;
28040 */) ;;
28041 *) as_dir=$as_dir/ ;;
28042 esac
28043 for ac_exec_ext in '' $ac_executable_extensions; do
28044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28045 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
28046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28047 break 2
28048 fi
28049 done
28050 done
28051 IFS=$as_save_IFS
28052
28053 fi
28054 fi
28055 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
28056 if test -n "$ac_ct_PKG_CONFIG"; then
28057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
28058 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
28059 else
28060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28061 printf "%s\n" "no" >&6; }
28062 fi
28063
28064 if test "x$ac_ct_PKG_CONFIG" = x; then
28065 PKG_CONFIG=""
28066 else
28067 case $cross_compiling:$ac_tool_warned in
28068 yes:)
28069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28071 ac_tool_warned=yes ;;
28072 esac
28073 PKG_CONFIG=$ac_ct_PKG_CONFIG
28074 fi
28075 else
28076 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
28077 fi
28078
28079 if test x"$PKG_CONFIG" != x""; then
28080 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
28081 if test $? = 0; then
28082 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
28083 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
28084 found=true
28085 fi
28086 fi
28087
28088 # no such luck; use some default ssldirs
28089 if ! $found; then
28090 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
28091 fi
28092
28093
28094 fi
28095
28096
28097
28098 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
28099 # an 'openssl' subdirectory
28100
28101 if ! $found; then
28102 OPENSSL_INCLUDES=
28103 for ssldir in $ssldirs; do
28104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
28105 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
28106 if test -f "$ssldir/include/openssl/ssl.h"; then
28107 OPENSSL_INCLUDES="-I$ssldir/include"
28108 OPENSSL_LDFLAGS="-L$ssldir/lib"
28109 OPENSSL_LIBS="-lssl -lcrypto"
28110 found=true
28111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28112 printf "%s\n" "yes" >&6; }
28113 break
28114 else
28115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28116 printf "%s\n" "no" >&6; }
28117 fi
28118 done
28119
28120 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
28121 # it will just work!
28122 fi
28123
28124 # try the preprocessor and linker with our new flags,
28125 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
28126
28127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
28128 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
28129 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
28130 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
28131
28132 save_LIBS="$LIBS"
28133 save_LDFLAGS="$LDFLAGS"
28134 save_CPPFLAGS="$CPPFLAGS"
28135 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
28136 LIBS="$OPENSSL_LIBS $LIBS"
28137 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
28138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28139 /* end confdefs.h. */
28140 #include <openssl/ssl.h>
28141 int
28142 main (void)
28143 {
28144 SSL_new(NULL)
28145 ;
28146 return 0;
28147 }
28148 _ACEOF
28149 if ac_fn_c_try_link "$LINENO"
28150 then :
28151
28152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28153 printf "%s\n" "yes" >&6; }
28154 have_openssl=yes
28155
28156 else $as_nop
28157
28158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28159 printf "%s\n" "no" >&6; }
28160 have_openssl=no
28161
28162 fi
28163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28164 conftest$ac_exeext conftest.$ac_ext
28165 CPPFLAGS="$save_CPPFLAGS"
28166 LDFLAGS="$save_LDFLAGS"
28167 LIBS="$save_LIBS"
28168
28169
28170
28171
28172
28173
28174 # rpath to libssl and libcrypto
28175 if test "x$GNULD" = xyes
28176 then :
28177
28178 rpath_arg="-Wl,--enable-new-dtags,-rpath="
28179
28180 else $as_nop
28181
28182 if test "$ac_sys_system" = "Darwin"
28183 then
28184 rpath_arg="-Wl,-rpath,"
28185 else
28186 rpath_arg="-Wl,-rpath="
28187 fi
28188
28189 fi
28190
28191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
28192 printf %s "checking for --with-openssl-rpath... " >&6; }
28193
28194 # Check whether --with-openssl-rpath was given.
28195 if test ${with_openssl_rpath+y}
28196 then :
28197 withval=$with_openssl_rpath;
28198 else $as_nop
28199 with_openssl_rpath=no
28200
28201 fi
28202
28203 case $with_openssl_rpath in #(
28204 auto|yes) :
28205
28206 OPENSSL_RPATH=auto
28207 for arg in "$OPENSSL_LDFLAGS"; do
28208 case $arg in #(
28209 -L*) :
28210 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
28211 ;; #(
28212 *) :
28213 ;;
28214 esac
28215 done
28216 ;; #(
28217 no) :
28218 OPENSSL_RPATH= ;; #(
28219 *) :
28220 if test -d "$with_openssl_rpath"
28221 then :
28222
28223 OPENSSL_RPATH="$with_openssl_rpath"
28224 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath"
28225
28226 else $as_nop
28227 as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5
28228 fi
28229
28230 ;;
28231 esac
28232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
28233 printf "%s\n" "$OPENSSL_RPATH" >&6; }
28234
28235 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
28236 # Requires static OpenSSL build with position-independent code. Some features
28237 # like DSO engines or external OSSL providers don't work. Only tested with GCC
28238 # and clang on X86_64.
28239 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
28240 then :
28241
28242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
28243 printf %s "checking for unsupported static openssl build... " >&6; }
28244 new_OPENSSL_LIBS=
28245 for arg in $OPENSSL_LIBS; do
28246 case $arg in #(
28247 -l*) :
28248
28249 libname=$(echo $arg | cut -c3-)
28250 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
28251 ;; #(
28252 *) :
28253 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg"
28254 ;;
28255 esac
28256 done
28257 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS"
28258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
28259 printf "%s\n" "$OPENSSL_LIBS" >&6; }
28260
28261 fi
28262
28263 LIBCRYPTO_LIBS=
28264 for arg in $OPENSSL_LIBS; do
28265 case $arg in #(
28266 -l*ssl*|-Wl*ssl*) :
28267 ;; #(
28268 *) :
28269 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg"
28270 ;;
28271 esac
28272 done
28273
28274 # check if OpenSSL libraries work as expected
28275 save_CFLAGS=$CFLAGS
28276 save_CPPFLAGS=$CPPFLAGS
28277 save_LDFLAGS=$LDFLAGS
28278 save_LIBS=$LIBS
28279
28280
28281 LIBS="$LIBS $OPENSSL_LIBS"
28282 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
28283 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28284
28285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
28286 printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; }
28287 if test ${ac_cv_working_openssl_ssl+y}
28288 then :
28289 printf %s "(cached) " >&6
28290 else $as_nop
28291
28292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28293 /* end confdefs.h. */
28294
28295 #include <openssl/opensslv.h>
28296 #include <openssl/ssl.h>
28297 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28298 #error "OpenSSL >= 1.1.1 is required"
28299 #endif
28300 static void keylog_cb(const SSL *ssl, const char *line) {}
28301
28302 int
28303 main (void)
28304 {
28305
28306 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
28307 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
28308 SSL *ssl = SSL_new(ctx);
28309 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
28310 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
28311 SSL_free(ssl);
28312 SSL_CTX_free(ctx);
28313
28314 ;
28315 return 0;
28316 }
28317 _ACEOF
28318 if ac_fn_c_try_link "$LINENO"
28319 then :
28320 ac_cv_working_openssl_ssl=yes
28321 else $as_nop
28322 ac_cv_working_openssl_ssl=no
28323 fi
28324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28325 conftest$ac_exeext conftest.$ac_ext
28326
28327 fi
28328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
28329 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
28330
28331 CFLAGS=$save_CFLAGS
28332 CPPFLAGS=$save_CPPFLAGS
28333 LDFLAGS=$save_LDFLAGS
28334 LIBS=$save_LIBS
28335
28336
28337
28338 save_CFLAGS=$CFLAGS
28339 save_CPPFLAGS=$CPPFLAGS
28340 save_LDFLAGS=$LDFLAGS
28341 save_LIBS=$LIBS
28342
28343
28344 LIBS="$LIBS $LIBCRYPTO_LIBS"
28345 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
28346 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28347
28348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
28349 printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; }
28350 if test ${ac_cv_working_openssl_hashlib+y}
28351 then :
28352 printf %s "(cached) " >&6
28353 else $as_nop
28354
28355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28356 /* end confdefs.h. */
28357
28358 #include <openssl/opensslv.h>
28359 #include <openssl/evp.h>
28360 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28361 #error "OpenSSL >= 1.1.1 is required"
28362 #endif
28363
28364 int
28365 main (void)
28366 {
28367
28368 OBJ_nid2sn(NID_md5);
28369 OBJ_nid2sn(NID_sha1);
28370 OBJ_nid2sn(NID_sha3_512);
28371 OBJ_nid2sn(NID_blake2b512);
28372 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
28373
28374 ;
28375 return 0;
28376 }
28377 _ACEOF
28378 if ac_fn_c_try_link "$LINENO"
28379 then :
28380 ac_cv_working_openssl_hashlib=yes
28381 else $as_nop
28382 ac_cv_working_openssl_hashlib=no
28383 fi
28384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28385 conftest$ac_exeext conftest.$ac_ext
28386
28387 fi
28388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
28389 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
28390
28391 CFLAGS=$save_CFLAGS
28392 CPPFLAGS=$save_CPPFLAGS
28393 LDFLAGS=$save_LDFLAGS
28394 LIBS=$save_LIBS
28395
28396
28397
28398 # ssl module default cipher suite string
28399
28400
28401
28402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
28403 printf %s "checking for --with-ssl-default-suites... " >&6; }
28404
28405 # Check whether --with-ssl-default-suites was given.
28406 if test ${with_ssl_default_suites+y}
28407 then :
28408 withval=$with_ssl_default_suites;
28409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
28410 printf "%s\n" "$withval" >&6; }
28411 case "$withval" in
28412 python)
28413 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28414
28415 ;;
28416 openssl)
28417 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
28418
28419 ;;
28420 *)
28421 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
28422
28423 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
28424
28425 ;;
28426 esac
28427
28428 else $as_nop
28429
28430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
28431 printf "%s\n" "python" >&6; }
28432 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28433
28434
28435 fi
28436
28437
28438 # builtin hash modules
28439 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
28440
28441 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h
28442
28443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
28444 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
28445
28446 # Check whether --with-builtin-hashlib-hashes was given.
28447 if test ${with_builtin_hashlib_hashes+y}
28448 then :
28449 withval=$with_builtin_hashlib_hashes;
28450 case $with_builtin_hashlib_hashes in #(
28451 yes) :
28452 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #(
28453 no) :
28454 with_builtin_hashlib_hashes=""
28455 ;; #(
28456 *) :
28457 ;;
28458 esac
28459
28460 else $as_nop
28461 with_builtin_hashlib_hashes=$default_hashlib_hashes
28462 fi
28463
28464
28465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
28466 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
28467 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
28468
28469
28470 as_save_IFS=$IFS
28471 IFS=,
28472 for builtin_hash in $with_builtin_hashlib_hashes; do
28473 case $builtin_hash in #(
28474 md5) :
28475 with_builtin_md5=yes ;; #(
28476 sha1) :
28477 with_builtin_sha1=yes ;; #(
28478 sha2) :
28479 with_builtin_sha2=yes ;; #(
28480 sha3) :
28481 with_builtin_sha3=yes ;; #(
28482 blake2) :
28483 with_builtin_blake2=yes
28484 ;; #(
28485 *) :
28486 ;;
28487 esac
28488 done
28489 IFS=$as_save_IFS
28490
28491 if test "x$with_builtin_blake2" = xyes
28492 then :
28493
28494
28495 pkg_failed=no
28496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libb2" >&5
28497 printf %s "checking for libb2... " >&6; }
28498
28499 if test -n "$LIBB2_CFLAGS"; then
28500 pkg_cv_LIBB2_CFLAGS="$LIBB2_CFLAGS"
28501 elif test -n "$PKG_CONFIG"; then
28502 if test -n "$PKG_CONFIG" && \
28503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28504 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28505 ac_status=$?
28506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }; then
28508 pkg_cv_LIBB2_CFLAGS=`$PKG_CONFIG --cflags "libb2" 2>/dev/null`
28509 test "x$?" != "x0" && pkg_failed=yes
28510 else
28511 pkg_failed=yes
28512 fi
28513 else
28514 pkg_failed=untried
28515 fi
28516 if test -n "$LIBB2_LIBS"; then
28517 pkg_cv_LIBB2_LIBS="$LIBB2_LIBS"
28518 elif test -n "$PKG_CONFIG"; then
28519 if test -n "$PKG_CONFIG" && \
28520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28521 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28522 ac_status=$?
28523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28524 test $ac_status = 0; }; then
28525 pkg_cv_LIBB2_LIBS=`$PKG_CONFIG --libs "libb2" 2>/dev/null`
28526 test "x$?" != "x0" && pkg_failed=yes
28527 else
28528 pkg_failed=yes
28529 fi
28530 else
28531 pkg_failed=untried
28532 fi
28533
28534
28535
28536 if test $pkg_failed = yes; then
28537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28538 printf "%s\n" "no" >&6; }
28539
28540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28541 _pkg_short_errors_supported=yes
28542 else
28543 _pkg_short_errors_supported=no
28544 fi
28545 if test $_pkg_short_errors_supported = yes; then
28546 LIBB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1`
28547 else
28548 LIBB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1`
28549 fi
28550 # Put the nasty error message in config.log where it belongs
28551 echo "$LIBB2_PKG_ERRORS" >&5
28552
28553 have_libb2=no
28554 elif test $pkg_failed = untried; then
28555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28556 printf "%s\n" "no" >&6; }
28557 have_libb2=no
28558 else
28559 LIBB2_CFLAGS=$pkg_cv_LIBB2_CFLAGS
28560 LIBB2_LIBS=$pkg_cv_LIBB2_LIBS
28561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28562 printf "%s\n" "yes" >&6; }
28563
28564 have_libb2=yes
28565
28566 printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
28567
28568
28569 fi
28570
28571 fi
28572
28573 # Check whether to disable test modules. Once set, setup.py will not build
28574 # test extension modules and "make install" will not install test suites.
28575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
28576 printf %s "checking for --disable-test-modules... " >&6; }
28577 # Check whether --enable-test-modules was given.
28578 if test ${enable_test_modules+y}
28579 then :
28580 enableval=$enable_test_modules;
28581 if test "x$enable_test_modules" = xyes
28582 then :
28583 TEST_MODULES=yes
28584 else $as_nop
28585 TEST_MODULES=no
28586 fi
28587
28588 else $as_nop
28589
28590 case $ac_sys_system/$ac_sys_emscripten_target in #(
28591 Emscripten/browser*) :
28592 TEST_MODULES=no ;; #(
28593 *) :
28594 TEST_MODULES=yes
28595 ;;
28596 esac
28597
28598 fi
28599
28600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
28601 printf "%s\n" "$TEST_MODULES" >&6; }
28602
28603
28604 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
28605 # On Linux aarch64, GCC may require programs and libraries to be linked
28606 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
28607 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
28608 # compiler flags.
28609 #
28610 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
28611 # and 2-byte operations, but not for 8-byte operations.
28612 #
28613 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
28614 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
28615 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
28616 # anymore. <pyport.h> cannot be included alone, it's designed to be included
28617 # by <Python.h>: it expects other includes and macros to be defined.
28618 save_CPPFLAGS=$CPPFLAGS
28619 CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
28620
28621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
28622 printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; }
28623 if test ${ac_cv_libatomic_needed+y}
28624 then :
28625 printf %s "(cached) " >&6
28626 else $as_nop
28627 if test "$cross_compiling" = yes
28628 then :
28629 ac_cv_libatomic_needed=no
28630 else $as_nop
28631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28632 /* end confdefs.h. */
28633
28634 // pyatomic.h needs uint64_t and Py_ssize_t types
28635 #include <stdint.h> // int64_t, intptr_t
28636 #ifdef HAVE_SYS_TYPES_H
28637 # include <sys/types.h> // ssize_t
28638 #endif
28639 // Code adapted from Include/pyport.h
28640 #if HAVE_SSIZE_T
28641 typedef ssize_t Py_ssize_t;
28642 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
28643 typedef intptr_t Py_ssize_t;
28644 #else
28645 # error "unable to define Py_ssize_t"
28646 #endif
28647
28648 #include "pyatomic.h"
28649
28650 int main()
28651 {
28652 uint64_t value;
28653 _Py_atomic_store_uint64(&value, 2);
28654 if (_Py_atomic_or_uint64(&value, 8) != 2) {
28655 return 1; // error
28656 }
28657 if (_Py_atomic_load_uint64(&value) != 10) {
28658 return 1; // error
28659 }
28660 uint8_t byte = 0xb8;
28661 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
28662 return 1; // error
28663 }
28664 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
28665 return 1; // error
28666 }
28667 return 0; // all good
28668 }
28669
28670 _ACEOF
28671 if ac_fn_c_try_run "$LINENO"
28672 then :
28673 ac_cv_libatomic_needed=no
28674 else $as_nop
28675 ac_cv_libatomic_needed=yes
28676 fi
28677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28678 conftest.$ac_objext conftest.beam conftest.$ac_ext
28679 fi
28680
28681 fi
28682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
28683 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
28684
28685 if test "x$ac_cv_libatomic_needed" = xyes
28686 then :
28687 LIBS="${LIBS} -latomic"
28688 LIBATOMIC=${LIBATOMIC-"-latomic"}
28689 fi
28690 CPPFLAGS=$save_CPPFLAGS
28691
28692
28693 # stdlib
28694
28695
28696 # stdlib not available
28697 case $ac_sys_system in #(
28698 AIX) :
28699
28700
28701 py_cv_module__scproxy=n/a
28702 ;; #(
28703 VxWorks*) :
28704
28705
28706 py_cv_module__scproxy=n/a
28707 py_cv_module_termios=n/a
28708 py_cv_module_grp=n/a
28709 ;; #(
28710 Darwin) :
28711 ;; #(
28712 iOS) :
28713
28714
28715
28716 py_cv_module__curses=n/a
28717 py_cv_module__curses_panel=n/a
28718 py_cv_module__gdbm=n/a
28719 py_cv_module__multiprocessing=n/a
28720 py_cv_module__posixshmem=n/a
28721 py_cv_module__posixsubprocess=n/a
28722 py_cv_module__scproxy=n/a
28723 py_cv_module__tkinter=n/a
28724 py_cv_module_grp=n/a
28725 py_cv_module_nis=n/a
28726 py_cv_module_readline=n/a
28727 py_cv_module_pwd=n/a
28728 py_cv_module_spwd=n/a
28729 py_cv_module_syslog=n/a
28730 py_cv_module_=n/a
28731
28732 ;; #(
28733 CYGWIN*) :
28734
28735
28736 py_cv_module__scproxy=n/a
28737 ;; #(
28738 QNX*) :
28739
28740
28741 py_cv_module__scproxy=n/a
28742 ;; #(
28743 FreeBSD*) :
28744
28745
28746 py_cv_module__scproxy=n/a
28747 ;; #(
28748 Emscripten|WASI) :
28749
28750
28751
28752 py_cv_module__curses=n/a
28753 py_cv_module__curses_panel=n/a
28754 py_cv_module__dbm=n/a
28755 py_cv_module__gdbm=n/a
28756 py_cv_module__multiprocessing=n/a
28757 py_cv_module__posixshmem=n/a
28758 py_cv_module__posixsubprocess=n/a
28759 py_cv_module__scproxy=n/a
28760 py_cv_module__tkinter=n/a
28761 py_cv_module__interpreters=n/a
28762 py_cv_module__interpchannels=n/a
28763 py_cv_module__interpqueues=n/a
28764 py_cv_module_grp=n/a
28765 py_cv_module_pwd=n/a
28766 py_cv_module_resource=n/a
28767 py_cv_module_syslog=n/a
28768 py_cv_module_=n/a
28769
28770 case $ac_sys_system/$ac_sys_emscripten_target in #(
28771 Emscripten/browser*) :
28772
28773
28774
28775 py_cv_module_fcntl=n/a
28776 py_cv_module_readline=n/a
28777 py_cv_module_termios=n/a
28778 py_cv_module_=n/a
28779
28780 ;; #(
28781 Emscripten/node*) :
28782 ;; #(
28783 WASI/*) :
28784
28785
28786
28787 py_cv_module__ctypes_test=n/a
28788 py_cv_module__testexternalinspection=n/a
28789 py_cv_module__testimportmultiple=n/a
28790 py_cv_module__testmultiphase=n/a
28791 py_cv_module__testsinglephase=n/a
28792 py_cv_module_fcntl=n/a
28793 py_cv_module_mmap=n/a
28794 py_cv_module_termios=n/a
28795 py_cv_module_xxlimited=n/a
28796 py_cv_module_xxlimited_35=n/a
28797 py_cv_module_=n/a
28798
28799
28800 ;; #(
28801 *) :
28802 ;;
28803 esac
28804 ;; #(
28805 *) :
28806
28807
28808 py_cv_module__scproxy=n/a
28809
28810 ;;
28811 esac
28812
28813
28814 case $host_cpu in #(
28815 wasm32|wasm64) :
28816 MODULE_BUILDTYPE=static ;; #(
28817 *) :
28818 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
28819 ;;
28820 esac
28821
28822
28823
28824 MODULE_BLOCK=
28825
28826
28827
28828
28829
28830
28831 if test "$py_cv_module__io" != "n/a"
28832 then :
28833 py_cv_module__io=yes
28834 fi
28835 if test "$py_cv_module__io" = yes; then
28836 MODULE__IO_TRUE=
28837 MODULE__IO_FALSE='#'
28838 else
28839 MODULE__IO_TRUE='#'
28840 MODULE__IO_FALSE=
28841 fi
28842
28843 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl"
28844 if test "x$py_cv_module__io" = xyes
28845 then :
28846
28847 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
28848
28849
28850 fi
28851
28852
28853 if test "$py_cv_module_time" != "n/a"
28854 then :
28855 py_cv_module_time=yes
28856 fi
28857 if test "$py_cv_module_time" = yes; then
28858 MODULE_TIME_TRUE=
28859 MODULE_TIME_FALSE='#'
28860 else
28861 MODULE_TIME_TRUE='#'
28862 MODULE_TIME_FALSE=
28863 fi
28864
28865 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl"
28866 if test "x$py_cv_module_time" = xyes
28867 then :
28868
28869
28870 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
28871
28872 fi
28873
28874
28875
28876 if test "$py_cv_module_array" != "n/a"
28877 then :
28878 py_cv_module_array=yes
28879 fi
28880 if test "$py_cv_module_array" = yes; then
28881 MODULE_ARRAY_TRUE=
28882 MODULE_ARRAY_FALSE='#'
28883 else
28884 MODULE_ARRAY_TRUE='#'
28885 MODULE_ARRAY_FALSE=
28886 fi
28887
28888 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
28889 if test "x$py_cv_module_array" = xyes
28890 then :
28891
28892
28893
28894
28895 fi
28896
28897
28898 if test "$py_cv_module__asyncio" != "n/a"
28899 then :
28900 py_cv_module__asyncio=yes
28901 fi
28902 if test "$py_cv_module__asyncio" = yes; then
28903 MODULE__ASYNCIO_TRUE=
28904 MODULE__ASYNCIO_FALSE='#'
28905 else
28906 MODULE__ASYNCIO_TRUE='#'
28907 MODULE__ASYNCIO_FALSE=
28908 fi
28909
28910 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
28911 if test "x$py_cv_module__asyncio" = xyes
28912 then :
28913
28914
28915
28916
28917 fi
28918
28919
28920 if test "$py_cv_module__bisect" != "n/a"
28921 then :
28922 py_cv_module__bisect=yes
28923 fi
28924 if test "$py_cv_module__bisect" = yes; then
28925 MODULE__BISECT_TRUE=
28926 MODULE__BISECT_FALSE='#'
28927 else
28928 MODULE__BISECT_TRUE='#'
28929 MODULE__BISECT_FALSE=
28930 fi
28931
28932 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
28933 if test "x$py_cv_module__bisect" = xyes
28934 then :
28935
28936
28937
28938
28939 fi
28940
28941
28942 if test "$py_cv_module__contextvars" != "n/a"
28943 then :
28944 py_cv_module__contextvars=yes
28945 fi
28946 if test "$py_cv_module__contextvars" = yes; then
28947 MODULE__CONTEXTVARS_TRUE=
28948 MODULE__CONTEXTVARS_FALSE='#'
28949 else
28950 MODULE__CONTEXTVARS_TRUE='#'
28951 MODULE__CONTEXTVARS_FALSE=
28952 fi
28953
28954 as_fn_append MODULE_BLOCK "MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl"
28955 if test "x$py_cv_module__contextvars" = xyes
28956 then :
28957
28958
28959
28960
28961 fi
28962
28963
28964 if test "$py_cv_module__csv" != "n/a"
28965 then :
28966 py_cv_module__csv=yes
28967 fi
28968 if test "$py_cv_module__csv" = yes; then
28969 MODULE__CSV_TRUE=
28970 MODULE__CSV_FALSE='#'
28971 else
28972 MODULE__CSV_TRUE='#'
28973 MODULE__CSV_FALSE=
28974 fi
28975
28976 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
28977 if test "x$py_cv_module__csv" = xyes
28978 then :
28979
28980
28981
28982
28983 fi
28984
28985
28986 if test "$py_cv_module__heapq" != "n/a"
28987 then :
28988 py_cv_module__heapq=yes
28989 fi
28990 if test "$py_cv_module__heapq" = yes; then
28991 MODULE__HEAPQ_TRUE=
28992 MODULE__HEAPQ_FALSE='#'
28993 else
28994 MODULE__HEAPQ_TRUE='#'
28995 MODULE__HEAPQ_FALSE=
28996 fi
28997
28998 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
28999 if test "x$py_cv_module__heapq" = xyes
29000 then :
29001
29002
29003
29004
29005 fi
29006
29007
29008 if test "$py_cv_module__json" != "n/a"
29009 then :
29010 py_cv_module__json=yes
29011 fi
29012 if test "$py_cv_module__json" = yes; then
29013 MODULE__JSON_TRUE=
29014 MODULE__JSON_FALSE='#'
29015 else
29016 MODULE__JSON_TRUE='#'
29017 MODULE__JSON_FALSE=
29018 fi
29019
29020 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl"
29021 if test "x$py_cv_module__json" = xyes
29022 then :
29023
29024
29025
29026
29027 fi
29028
29029
29030 if test "$py_cv_module__lsprof" != "n/a"
29031 then :
29032 py_cv_module__lsprof=yes
29033 fi
29034 if test "$py_cv_module__lsprof" = yes; then
29035 MODULE__LSPROF_TRUE=
29036 MODULE__LSPROF_FALSE='#'
29037 else
29038 MODULE__LSPROF_TRUE='#'
29039 MODULE__LSPROF_FALSE=
29040 fi
29041
29042 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
29043 if test "x$py_cv_module__lsprof" = xyes
29044 then :
29045
29046
29047
29048
29049 fi
29050
29051
29052 if test "$py_cv_module__opcode" != "n/a"
29053 then :
29054 py_cv_module__opcode=yes
29055 fi
29056 if test "$py_cv_module__opcode" = yes; then
29057 MODULE__OPCODE_TRUE=
29058 MODULE__OPCODE_FALSE='#'
29059 else
29060 MODULE__OPCODE_TRUE='#'
29061 MODULE__OPCODE_FALSE=
29062 fi
29063
29064 as_fn_append MODULE_BLOCK "MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl"
29065 if test "x$py_cv_module__opcode" = xyes
29066 then :
29067
29068
29069
29070
29071 fi
29072
29073
29074 if test "$py_cv_module__pickle" != "n/a"
29075 then :
29076 py_cv_module__pickle=yes
29077 fi
29078 if test "$py_cv_module__pickle" = yes; then
29079 MODULE__PICKLE_TRUE=
29080 MODULE__PICKLE_FALSE='#'
29081 else
29082 MODULE__PICKLE_TRUE='#'
29083 MODULE__PICKLE_FALSE=
29084 fi
29085
29086 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
29087 if test "x$py_cv_module__pickle" = xyes
29088 then :
29089
29090
29091
29092
29093 fi
29094
29095
29096 if test "$py_cv_module__posixsubprocess" != "n/a"
29097 then :
29098 py_cv_module__posixsubprocess=yes
29099 fi
29100 if test "$py_cv_module__posixsubprocess" = yes; then
29101 MODULE__POSIXSUBPROCESS_TRUE=
29102 MODULE__POSIXSUBPROCESS_FALSE='#'
29103 else
29104 MODULE__POSIXSUBPROCESS_TRUE='#'
29105 MODULE__POSIXSUBPROCESS_FALSE=
29106 fi
29107
29108 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
29109 if test "x$py_cv_module__posixsubprocess" = xyes
29110 then :
29111
29112
29113
29114
29115 fi
29116
29117
29118 if test "$py_cv_module__queue" != "n/a"
29119 then :
29120 py_cv_module__queue=yes
29121 fi
29122 if test "$py_cv_module__queue" = yes; then
29123 MODULE__QUEUE_TRUE=
29124 MODULE__QUEUE_FALSE='#'
29125 else
29126 MODULE__QUEUE_TRUE='#'
29127 MODULE__QUEUE_FALSE=
29128 fi
29129
29130 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
29131 if test "x$py_cv_module__queue" = xyes
29132 then :
29133
29134
29135
29136
29137 fi
29138
29139
29140 if test "$py_cv_module__random" != "n/a"
29141 then :
29142 py_cv_module__random=yes
29143 fi
29144 if test "$py_cv_module__random" = yes; then
29145 MODULE__RANDOM_TRUE=
29146 MODULE__RANDOM_FALSE='#'
29147 else
29148 MODULE__RANDOM_TRUE='#'
29149 MODULE__RANDOM_FALSE=
29150 fi
29151
29152 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
29153 if test "x$py_cv_module__random" = xyes
29154 then :
29155
29156
29157
29158
29159 fi
29160
29161
29162 if test "$py_cv_module_select" != "n/a"
29163 then :
29164 py_cv_module_select=yes
29165 fi
29166 if test "$py_cv_module_select" = yes; then
29167 MODULE_SELECT_TRUE=
29168 MODULE_SELECT_FALSE='#'
29169 else
29170 MODULE_SELECT_TRUE='#'
29171 MODULE_SELECT_FALSE=
29172 fi
29173
29174 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
29175 if test "x$py_cv_module_select" = xyes
29176 then :
29177
29178
29179
29180
29181 fi
29182
29183
29184 if test "$py_cv_module__struct" != "n/a"
29185 then :
29186 py_cv_module__struct=yes
29187 fi
29188 if test "$py_cv_module__struct" = yes; then
29189 MODULE__STRUCT_TRUE=
29190 MODULE__STRUCT_FALSE='#'
29191 else
29192 MODULE__STRUCT_TRUE='#'
29193 MODULE__STRUCT_FALSE=
29194 fi
29195
29196 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
29197 if test "x$py_cv_module__struct" = xyes
29198 then :
29199
29200
29201
29202
29203 fi
29204
29205
29206 if test "$py_cv_module__typing" != "n/a"
29207 then :
29208 py_cv_module__typing=yes
29209 fi
29210 if test "$py_cv_module__typing" = yes; then
29211 MODULE__TYPING_TRUE=
29212 MODULE__TYPING_FALSE='#'
29213 else
29214 MODULE__TYPING_TRUE='#'
29215 MODULE__TYPING_FALSE=
29216 fi
29217
29218 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
29219 if test "x$py_cv_module__typing" = xyes
29220 then :
29221
29222
29223
29224
29225 fi
29226
29227
29228 if test "$py_cv_module__interpreters" != "n/a"
29229 then :
29230 py_cv_module__interpreters=yes
29231 fi
29232 if test "$py_cv_module__interpreters" = yes; then
29233 MODULE__INTERPRETERS_TRUE=
29234 MODULE__INTERPRETERS_FALSE='#'
29235 else
29236 MODULE__INTERPRETERS_TRUE='#'
29237 MODULE__INTERPRETERS_FALSE=
29238 fi
29239
29240 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
29241 if test "x$py_cv_module__interpreters" = xyes
29242 then :
29243
29244
29245
29246
29247 fi
29248
29249
29250 if test "$py_cv_module__interpchannels" != "n/a"
29251 then :
29252 py_cv_module__interpchannels=yes
29253 fi
29254 if test "$py_cv_module__interpchannels" = yes; then
29255 MODULE__INTERPCHANNELS_TRUE=
29256 MODULE__INTERPCHANNELS_FALSE='#'
29257 else
29258 MODULE__INTERPCHANNELS_TRUE='#'
29259 MODULE__INTERPCHANNELS_FALSE=
29260 fi
29261
29262 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
29263 if test "x$py_cv_module__interpchannels" = xyes
29264 then :
29265
29266
29267
29268
29269 fi
29270
29271
29272 if test "$py_cv_module__interpqueues" != "n/a"
29273 then :
29274 py_cv_module__interpqueues=yes
29275 fi
29276 if test "$py_cv_module__interpqueues" = yes; then
29277 MODULE__INTERPQUEUES_TRUE=
29278 MODULE__INTERPQUEUES_FALSE='#'
29279 else
29280 MODULE__INTERPQUEUES_TRUE='#'
29281 MODULE__INTERPQUEUES_FALSE=
29282 fi
29283
29284 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
29285 if test "x$py_cv_module__interpqueues" = xyes
29286 then :
29287
29288
29289
29290
29291 fi
29292
29293
29294 if test "$py_cv_module__zoneinfo" != "n/a"
29295 then :
29296 py_cv_module__zoneinfo=yes
29297 fi
29298 if test "$py_cv_module__zoneinfo" = yes; then
29299 MODULE__ZONEINFO_TRUE=
29300 MODULE__ZONEINFO_FALSE='#'
29301 else
29302 MODULE__ZONEINFO_TRUE='#'
29303 MODULE__ZONEINFO_FALSE=
29304 fi
29305
29306 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
29307 if test "x$py_cv_module__zoneinfo" = xyes
29308 then :
29309
29310
29311
29312
29313 fi
29314
29315
29316
29317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
29318 printf %s "checking for stdlib extension module _multiprocessing... " >&6; }
29319 if test "$py_cv_module__multiprocessing" != "n/a"
29320 then :
29321
29322 if true
29323 then :
29324 if test "$ac_cv_func_sem_unlink" = "yes"
29325 then :
29326 py_cv_module__multiprocessing=yes
29327 else $as_nop
29328 py_cv_module__multiprocessing=missing
29329 fi
29330 else $as_nop
29331 py_cv_module__multiprocessing=disabled
29332 fi
29333
29334 fi
29335 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
29336 if test "x$py_cv_module__multiprocessing" = xyes
29337 then :
29338
29339 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
29340
29341
29342 fi
29343 if test "$py_cv_module__multiprocessing" = yes; then
29344 MODULE__MULTIPROCESSING_TRUE=
29345 MODULE__MULTIPROCESSING_FALSE='#'
29346 else
29347 MODULE__MULTIPROCESSING_TRUE='#'
29348 MODULE__MULTIPROCESSING_FALSE=
29349 fi
29350
29351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
29352 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
29353
29354
29355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
29356 printf %s "checking for stdlib extension module _posixshmem... " >&6; }
29357 if test "$py_cv_module__posixshmem" != "n/a"
29358 then :
29359
29360 if true
29361 then :
29362 if test "$have_posix_shmem" = "yes"
29363 then :
29364 py_cv_module__posixshmem=yes
29365 else $as_nop
29366 py_cv_module__posixshmem=missing
29367 fi
29368 else $as_nop
29369 py_cv_module__posixshmem=disabled
29370 fi
29371
29372 fi
29373 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
29374 if test "x$py_cv_module__posixshmem" = xyes
29375 then :
29376
29377 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
29378 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
29379
29380 fi
29381 if test "$py_cv_module__posixshmem" = yes; then
29382 MODULE__POSIXSHMEM_TRUE=
29383 MODULE__POSIXSHMEM_FALSE='#'
29384 else
29385 MODULE__POSIXSHMEM_TRUE='#'
29386 MODULE__POSIXSHMEM_FALSE=
29387 fi
29388
29389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
29390 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
29391
29392
29393
29394 if test "$py_cv_module__statistics" != "n/a"
29395 then :
29396 py_cv_module__statistics=yes
29397 fi
29398 if test "$py_cv_module__statistics" = yes; then
29399 MODULE__STATISTICS_TRUE=
29400 MODULE__STATISTICS_FALSE='#'
29401 else
29402 MODULE__STATISTICS_TRUE='#'
29403 MODULE__STATISTICS_FALSE=
29404 fi
29405
29406 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
29407 if test "x$py_cv_module__statistics" = xyes
29408 then :
29409
29410
29411 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
29412
29413 fi
29414
29415
29416 if test "$py_cv_module_cmath" != "n/a"
29417 then :
29418 py_cv_module_cmath=yes
29419 fi
29420 if test "$py_cv_module_cmath" = yes; then
29421 MODULE_CMATH_TRUE=
29422 MODULE_CMATH_FALSE='#'
29423 else
29424 MODULE_CMATH_TRUE='#'
29425 MODULE_CMATH_FALSE=
29426 fi
29427
29428 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
29429 if test "x$py_cv_module_cmath" = xyes
29430 then :
29431
29432
29433 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
29434
29435 fi
29436
29437
29438 if test "$py_cv_module_math" != "n/a"
29439 then :
29440 py_cv_module_math=yes
29441 fi
29442 if test "$py_cv_module_math" = yes; then
29443 MODULE_MATH_TRUE=
29444 MODULE_MATH_FALSE='#'
29445 else
29446 MODULE_MATH_TRUE='#'
29447 MODULE_MATH_FALSE=
29448 fi
29449
29450 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl"
29451 if test "x$py_cv_module_math" = xyes
29452 then :
29453
29454
29455 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl"
29456
29457 fi
29458
29459
29460
29461 if test "$py_cv_module__datetime" != "n/a"
29462 then :
29463 py_cv_module__datetime=yes
29464 fi
29465 if test "$py_cv_module__datetime" = yes; then
29466 MODULE__DATETIME_TRUE=
29467 MODULE__DATETIME_FALSE='#'
29468 else
29469 MODULE__DATETIME_TRUE='#'
29470 MODULE__DATETIME_FALSE=
29471 fi
29472
29473 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
29474 if test "x$py_cv_module__datetime" = xyes
29475 then :
29476
29477
29478 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
29479
29480 fi
29481
29482
29483
29484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
29485 printf %s "checking for stdlib extension module fcntl... " >&6; }
29486 if test "$py_cv_module_fcntl" != "n/a"
29487 then :
29488
29489 if true
29490 then :
29491 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
29492 then :
29493 py_cv_module_fcntl=yes
29494 else $as_nop
29495 py_cv_module_fcntl=missing
29496 fi
29497 else $as_nop
29498 py_cv_module_fcntl=disabled
29499 fi
29500
29501 fi
29502 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
29503 if test "x$py_cv_module_fcntl" = xyes
29504 then :
29505
29506
29507 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
29508
29509 fi
29510 if test "$py_cv_module_fcntl" = yes; then
29511 MODULE_FCNTL_TRUE=
29512 MODULE_FCNTL_FALSE='#'
29513 else
29514 MODULE_FCNTL_TRUE='#'
29515 MODULE_FCNTL_FALSE=
29516 fi
29517
29518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
29519 printf "%s\n" "$py_cv_module_fcntl" >&6; }
29520
29521
29522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
29523 printf %s "checking for stdlib extension module mmap... " >&6; }
29524 if test "$py_cv_module_mmap" != "n/a"
29525 then :
29526
29527 if true
29528 then :
29529 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
29530 then :
29531 py_cv_module_mmap=yes
29532 else $as_nop
29533 py_cv_module_mmap=missing
29534 fi
29535 else $as_nop
29536 py_cv_module_mmap=disabled
29537 fi
29538
29539 fi
29540 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
29541 if test "x$py_cv_module_mmap" = xyes
29542 then :
29543
29544
29545
29546
29547 fi
29548 if test "$py_cv_module_mmap" = yes; then
29549 MODULE_MMAP_TRUE=
29550 MODULE_MMAP_FALSE='#'
29551 else
29552 MODULE_MMAP_TRUE='#'
29553 MODULE_MMAP_FALSE=
29554 fi
29555
29556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
29557 printf "%s\n" "$py_cv_module_mmap" >&6; }
29558
29559
29560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
29561 printf %s "checking for stdlib extension module _socket... " >&6; }
29562 if test "$py_cv_module__socket" != "n/a"
29563 then :
29564
29565 if true
29566 then :
29567 if test "$ac_cv_header_sys_socket_h" = "yes" -a "$ac_cv_header_sys_types_h" = "yes" -a "$ac_cv_header_netinet_in_h" = "yes"
29568 then :
29569 py_cv_module__socket=yes
29570 else $as_nop
29571 py_cv_module__socket=missing
29572 fi
29573 else $as_nop
29574 py_cv_module__socket=disabled
29575 fi
29576
29577 fi
29578 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
29579 if test "x$py_cv_module__socket" = xyes
29580 then :
29581
29582
29583
29584
29585 fi
29586 if test "$py_cv_module__socket" = yes; then
29587 MODULE__SOCKET_TRUE=
29588 MODULE__SOCKET_FALSE='#'
29589 else
29590 MODULE__SOCKET_TRUE='#'
29591 MODULE__SOCKET_FALSE=
29592 fi
29593
29594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
29595 printf "%s\n" "$py_cv_module__socket" >&6; }
29596
29597
29598
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
29600 printf %s "checking for stdlib extension module grp... " >&6; }
29601 if test "$py_cv_module_grp" != "n/a"
29602 then :
29603
29604 if true
29605 then :
29606 if test "$ac_cv_func_getgrent" = "yes" &&
29607 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }
29608 then :
29609 py_cv_module_grp=yes
29610 else $as_nop
29611 py_cv_module_grp=missing
29612 fi
29613 else $as_nop
29614 py_cv_module_grp=disabled
29615 fi
29616
29617 fi
29618 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
29619 if test "x$py_cv_module_grp" = xyes
29620 then :
29621
29622
29623
29624
29625 fi
29626 if test "$py_cv_module_grp" = yes; then
29627 MODULE_GRP_TRUE=
29628 MODULE_GRP_FALSE='#'
29629 else
29630 MODULE_GRP_TRUE='#'
29631 MODULE_GRP_FALSE=
29632 fi
29633
29634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
29635 printf "%s\n" "$py_cv_module_grp" >&6; }
29636
29637
29638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
29639 printf %s "checking for stdlib extension module pwd... " >&6; }
29640 if test "$py_cv_module_pwd" != "n/a"
29641 then :
29642
29643 if true
29644 then :
29645 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
29646 then :
29647 py_cv_module_pwd=yes
29648 else $as_nop
29649 py_cv_module_pwd=missing
29650 fi
29651 else $as_nop
29652 py_cv_module_pwd=disabled
29653 fi
29654
29655 fi
29656 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
29657 if test "x$py_cv_module_pwd" = xyes
29658 then :
29659
29660
29661
29662
29663 fi
29664 if test "$py_cv_module_pwd" = yes; then
29665 MODULE_PWD_TRUE=
29666 MODULE_PWD_FALSE='#'
29667 else
29668 MODULE_PWD_TRUE='#'
29669 MODULE_PWD_FALSE=
29670 fi
29671
29672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
29673 printf "%s\n" "$py_cv_module_pwd" >&6; }
29674
29675
29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
29677 printf %s "checking for stdlib extension module resource... " >&6; }
29678 if test "$py_cv_module_resource" != "n/a"
29679 then :
29680
29681 if true
29682 then :
29683 if test "$ac_cv_header_sys_resource_h" = yes
29684 then :
29685 py_cv_module_resource=yes
29686 else $as_nop
29687 py_cv_module_resource=missing
29688 fi
29689 else $as_nop
29690 py_cv_module_resource=disabled
29691 fi
29692
29693 fi
29694 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
29695 if test "x$py_cv_module_resource" = xyes
29696 then :
29697
29698
29699
29700
29701 fi
29702 if test "$py_cv_module_resource" = yes; then
29703 MODULE_RESOURCE_TRUE=
29704 MODULE_RESOURCE_FALSE='#'
29705 else
29706 MODULE_RESOURCE_TRUE='#'
29707 MODULE_RESOURCE_FALSE=
29708 fi
29709
29710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
29711 printf "%s\n" "$py_cv_module_resource" >&6; }
29712
29713
29714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
29715 printf %s "checking for stdlib extension module _scproxy... " >&6; }
29716 if test "$py_cv_module__scproxy" != "n/a"
29717 then :
29718
29719 if test "$ac_sys_system" = "Darwin"
29720 then :
29721 if true
29722 then :
29723 py_cv_module__scproxy=yes
29724 else $as_nop
29725 py_cv_module__scproxy=missing
29726 fi
29727 else $as_nop
29728 py_cv_module__scproxy=disabled
29729 fi
29730
29731 fi
29732 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
29733 if test "x$py_cv_module__scproxy" = xyes
29734 then :
29735
29736
29737 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
29738
29739 fi
29740 if test "$py_cv_module__scproxy" = yes; then
29741 MODULE__SCPROXY_TRUE=
29742 MODULE__SCPROXY_FALSE='#'
29743 else
29744 MODULE__SCPROXY_TRUE='#'
29745 MODULE__SCPROXY_FALSE=
29746 fi
29747
29748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
29749 printf "%s\n" "$py_cv_module__scproxy" >&6; }
29750
29751
29752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
29753 printf %s "checking for stdlib extension module syslog... " >&6; }
29754 if test "$py_cv_module_syslog" != "n/a"
29755 then :
29756
29757 if true
29758 then :
29759 if test "$ac_cv_header_syslog_h" = yes
29760 then :
29761 py_cv_module_syslog=yes
29762 else $as_nop
29763 py_cv_module_syslog=missing
29764 fi
29765 else $as_nop
29766 py_cv_module_syslog=disabled
29767 fi
29768
29769 fi
29770 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
29771 if test "x$py_cv_module_syslog" = xyes
29772 then :
29773
29774
29775
29776
29777 fi
29778 if test "$py_cv_module_syslog" = yes; then
29779 MODULE_SYSLOG_TRUE=
29780 MODULE_SYSLOG_FALSE='#'
29781 else
29782 MODULE_SYSLOG_TRUE='#'
29783 MODULE_SYSLOG_FALSE=
29784 fi
29785
29786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
29787 printf "%s\n" "$py_cv_module_syslog" >&6; }
29788
29789
29790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
29791 printf %s "checking for stdlib extension module termios... " >&6; }
29792 if test "$py_cv_module_termios" != "n/a"
29793 then :
29794
29795 if true
29796 then :
29797 if test "$ac_cv_header_termios_h" = yes
29798 then :
29799 py_cv_module_termios=yes
29800 else $as_nop
29801 py_cv_module_termios=missing
29802 fi
29803 else $as_nop
29804 py_cv_module_termios=disabled
29805 fi
29806
29807 fi
29808 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
29809 if test "x$py_cv_module_termios" = xyes
29810 then :
29811
29812
29813
29814
29815 fi
29816 if test "$py_cv_module_termios" = yes; then
29817 MODULE_TERMIOS_TRUE=
29818 MODULE_TERMIOS_FALSE='#'
29819 else
29820 MODULE_TERMIOS_TRUE='#'
29821 MODULE_TERMIOS_FALSE=
29822 fi
29823
29824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
29825 printf "%s\n" "$py_cv_module_termios" >&6; }
29826
29827
29828
29829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
29830 printf %s "checking for stdlib extension module pyexpat... " >&6; }
29831 if test "$py_cv_module_pyexpat" != "n/a"
29832 then :
29833
29834 if true
29835 then :
29836 if test "$ac_cv_header_sys_time_h" = "yes"
29837 then :
29838 py_cv_module_pyexpat=yes
29839 else $as_nop
29840 py_cv_module_pyexpat=missing
29841 fi
29842 else $as_nop
29843 py_cv_module_pyexpat=disabled
29844 fi
29845
29846 fi
29847 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
29848 if test "x$py_cv_module_pyexpat" = xyes
29849 then :
29850
29851 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
29852 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
29853
29854 fi
29855 if test "$py_cv_module_pyexpat" = yes; then
29856 MODULE_PYEXPAT_TRUE=
29857 MODULE_PYEXPAT_FALSE='#'
29858 else
29859 MODULE_PYEXPAT_TRUE='#'
29860 MODULE_PYEXPAT_FALSE=
29861 fi
29862
29863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
29864 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
29865
29866
29867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
29868 printf %s "checking for stdlib extension module _elementtree... " >&6; }
29869 if test "$py_cv_module__elementtree" != "n/a"
29870 then :
29871
29872 if true
29873 then :
29874 if true
29875 then :
29876 py_cv_module__elementtree=yes
29877 else $as_nop
29878 py_cv_module__elementtree=missing
29879 fi
29880 else $as_nop
29881 py_cv_module__elementtree=disabled
29882 fi
29883
29884 fi
29885 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
29886 if test "x$py_cv_module__elementtree" = xyes
29887 then :
29888
29889 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
29890
29891
29892 fi
29893 if test "$py_cv_module__elementtree" = yes; then
29894 MODULE__ELEMENTTREE_TRUE=
29895 MODULE__ELEMENTTREE_FALSE='#'
29896 else
29897 MODULE__ELEMENTTREE_TRUE='#'
29898 MODULE__ELEMENTTREE_FALSE=
29899 fi
29900
29901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
29902 printf "%s\n" "$py_cv_module__elementtree" >&6; }
29903
29904
29905 if test "$py_cv_module__codecs_cn" != "n/a"
29906 then :
29907 py_cv_module__codecs_cn=yes
29908 fi
29909 if test "$py_cv_module__codecs_cn" = yes; then
29910 MODULE__CODECS_CN_TRUE=
29911 MODULE__CODECS_CN_FALSE='#'
29912 else
29913 MODULE__CODECS_CN_TRUE='#'
29914 MODULE__CODECS_CN_FALSE=
29915 fi
29916
29917 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
29918 if test "x$py_cv_module__codecs_cn" = xyes
29919 then :
29920
29921
29922
29923
29924 fi
29925
29926
29927 if test "$py_cv_module__codecs_hk" != "n/a"
29928 then :
29929 py_cv_module__codecs_hk=yes
29930 fi
29931 if test "$py_cv_module__codecs_hk" = yes; then
29932 MODULE__CODECS_HK_TRUE=
29933 MODULE__CODECS_HK_FALSE='#'
29934 else
29935 MODULE__CODECS_HK_TRUE='#'
29936 MODULE__CODECS_HK_FALSE=
29937 fi
29938
29939 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
29940 if test "x$py_cv_module__codecs_hk" = xyes
29941 then :
29942
29943
29944
29945
29946 fi
29947
29948
29949 if test "$py_cv_module__codecs_iso2022" != "n/a"
29950 then :
29951 py_cv_module__codecs_iso2022=yes
29952 fi
29953 if test "$py_cv_module__codecs_iso2022" = yes; then
29954 MODULE__CODECS_ISO2022_TRUE=
29955 MODULE__CODECS_ISO2022_FALSE='#'
29956 else
29957 MODULE__CODECS_ISO2022_TRUE='#'
29958 MODULE__CODECS_ISO2022_FALSE=
29959 fi
29960
29961 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
29962 if test "x$py_cv_module__codecs_iso2022" = xyes
29963 then :
29964
29965
29966
29967
29968 fi
29969
29970
29971 if test "$py_cv_module__codecs_jp" != "n/a"
29972 then :
29973 py_cv_module__codecs_jp=yes
29974 fi
29975 if test "$py_cv_module__codecs_jp" = yes; then
29976 MODULE__CODECS_JP_TRUE=
29977 MODULE__CODECS_JP_FALSE='#'
29978 else
29979 MODULE__CODECS_JP_TRUE='#'
29980 MODULE__CODECS_JP_FALSE=
29981 fi
29982
29983 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
29984 if test "x$py_cv_module__codecs_jp" = xyes
29985 then :
29986
29987
29988
29989
29990 fi
29991
29992
29993 if test "$py_cv_module__codecs_kr" != "n/a"
29994 then :
29995 py_cv_module__codecs_kr=yes
29996 fi
29997 if test "$py_cv_module__codecs_kr" = yes; then
29998 MODULE__CODECS_KR_TRUE=
29999 MODULE__CODECS_KR_FALSE='#'
30000 else
30001 MODULE__CODECS_KR_TRUE='#'
30002 MODULE__CODECS_KR_FALSE=
30003 fi
30004
30005 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
30006 if test "x$py_cv_module__codecs_kr" = xyes
30007 then :
30008
30009
30010
30011
30012 fi
30013
30014
30015 if test "$py_cv_module__codecs_tw" != "n/a"
30016 then :
30017 py_cv_module__codecs_tw=yes
30018 fi
30019 if test "$py_cv_module__codecs_tw" = yes; then
30020 MODULE__CODECS_TW_TRUE=
30021 MODULE__CODECS_TW_FALSE='#'
30022 else
30023 MODULE__CODECS_TW_TRUE='#'
30024 MODULE__CODECS_TW_FALSE=
30025 fi
30026
30027 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
30028 if test "x$py_cv_module__codecs_tw" = xyes
30029 then :
30030
30031
30032
30033
30034 fi
30035
30036
30037 if test "$py_cv_module__multibytecodec" != "n/a"
30038 then :
30039 py_cv_module__multibytecodec=yes
30040 fi
30041 if test "$py_cv_module__multibytecodec" = yes; then
30042 MODULE__MULTIBYTECODEC_TRUE=
30043 MODULE__MULTIBYTECODEC_FALSE='#'
30044 else
30045 MODULE__MULTIBYTECODEC_TRUE='#'
30046 MODULE__MULTIBYTECODEC_FALSE=
30047 fi
30048
30049 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
30050 if test "x$py_cv_module__multibytecodec" = xyes
30051 then :
30052
30053
30054
30055
30056 fi
30057
30058
30059 if test "$py_cv_module_unicodedata" != "n/a"
30060 then :
30061 py_cv_module_unicodedata=yes
30062 fi
30063 if test "$py_cv_module_unicodedata" = yes; then
30064 MODULE_UNICODEDATA_TRUE=
30065 MODULE_UNICODEDATA_FALSE='#'
30066 else
30067 MODULE_UNICODEDATA_TRUE='#'
30068 MODULE_UNICODEDATA_FALSE=
30069 fi
30070
30071 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
30072 if test "x$py_cv_module_unicodedata" = xyes
30073 then :
30074
30075
30076
30077
30078 fi
30079
30080
30081
30082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
30083 printf %s "checking for stdlib extension module _md5... " >&6; }
30084 if test "$py_cv_module__md5" != "n/a"
30085 then :
30086
30087 if test "$with_builtin_md5" = yes
30088 then :
30089 if true
30090 then :
30091 py_cv_module__md5=yes
30092 else $as_nop
30093 py_cv_module__md5=missing
30094 fi
30095 else $as_nop
30096 py_cv_module__md5=disabled
30097 fi
30098
30099 fi
30100 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
30101 if test "x$py_cv_module__md5" = xyes
30102 then :
30103
30104 as_fn_append MODULE_BLOCK "MODULE__MD5_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30105
30106
30107 fi
30108 if test "$py_cv_module__md5" = yes; then
30109 MODULE__MD5_TRUE=
30110 MODULE__MD5_FALSE='#'
30111 else
30112 MODULE__MD5_TRUE='#'
30113 MODULE__MD5_FALSE=
30114 fi
30115
30116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
30117 printf "%s\n" "$py_cv_module__md5" >&6; }
30118
30119
30120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
30121 printf %s "checking for stdlib extension module _sha1... " >&6; }
30122 if test "$py_cv_module__sha1" != "n/a"
30123 then :
30124
30125 if test "$with_builtin_sha1" = yes
30126 then :
30127 if true
30128 then :
30129 py_cv_module__sha1=yes
30130 else $as_nop
30131 py_cv_module__sha1=missing
30132 fi
30133 else $as_nop
30134 py_cv_module__sha1=disabled
30135 fi
30136
30137 fi
30138 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
30139 if test "x$py_cv_module__sha1" = xyes
30140 then :
30141
30142 as_fn_append MODULE_BLOCK "MODULE__SHA1_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30143
30144
30145 fi
30146 if test "$py_cv_module__sha1" = yes; then
30147 MODULE__SHA1_TRUE=
30148 MODULE__SHA1_FALSE='#'
30149 else
30150 MODULE__SHA1_TRUE='#'
30151 MODULE__SHA1_FALSE=
30152 fi
30153
30154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
30155 printf "%s\n" "$py_cv_module__sha1" >&6; }
30156
30157
30158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
30159 printf %s "checking for stdlib extension module _sha2... " >&6; }
30160 if test "$py_cv_module__sha2" != "n/a"
30161 then :
30162
30163 if test "$with_builtin_sha2" = yes
30164 then :
30165 if true
30166 then :
30167 py_cv_module__sha2=yes
30168 else $as_nop
30169 py_cv_module__sha2=missing
30170 fi
30171 else $as_nop
30172 py_cv_module__sha2=disabled
30173 fi
30174
30175 fi
30176 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
30177 if test "x$py_cv_module__sha2" = xyes
30178 then :
30179
30180 as_fn_append MODULE_BLOCK "MODULE__SHA2_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30181
30182
30183 fi
30184 if test "$py_cv_module__sha2" = yes; then
30185 MODULE__SHA2_TRUE=
30186 MODULE__SHA2_FALSE='#'
30187 else
30188 MODULE__SHA2_TRUE='#'
30189 MODULE__SHA2_FALSE=
30190 fi
30191
30192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
30193 printf "%s\n" "$py_cv_module__sha2" >&6; }
30194
30195
30196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
30197 printf %s "checking for stdlib extension module _sha3... " >&6; }
30198 if test "$py_cv_module__sha3" != "n/a"
30199 then :
30200
30201 if test "$with_builtin_sha3" = yes
30202 then :
30203 if true
30204 then :
30205 py_cv_module__sha3=yes
30206 else $as_nop
30207 py_cv_module__sha3=missing
30208 fi
30209 else $as_nop
30210 py_cv_module__sha3=disabled
30211 fi
30212
30213 fi
30214 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
30215 if test "x$py_cv_module__sha3" = xyes
30216 then :
30217
30218
30219
30220
30221 fi
30222 if test "$py_cv_module__sha3" = yes; then
30223 MODULE__SHA3_TRUE=
30224 MODULE__SHA3_FALSE='#'
30225 else
30226 MODULE__SHA3_TRUE='#'
30227 MODULE__SHA3_FALSE=
30228 fi
30229
30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
30231 printf "%s\n" "$py_cv_module__sha3" >&6; }
30232
30233
30234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
30235 printf %s "checking for stdlib extension module _blake2... " >&6; }
30236 if test "$py_cv_module__blake2" != "n/a"
30237 then :
30238
30239 if test "$with_builtin_blake2" = yes
30240 then :
30241 if true
30242 then :
30243 py_cv_module__blake2=yes
30244 else $as_nop
30245 py_cv_module__blake2=missing
30246 fi
30247 else $as_nop
30248 py_cv_module__blake2=disabled
30249 fi
30250
30251 fi
30252 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
30253 if test "x$py_cv_module__blake2" = xyes
30254 then :
30255
30256 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl"
30257 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl"
30258
30259 fi
30260 if test "$py_cv_module__blake2" = yes; then
30261 MODULE__BLAKE2_TRUE=
30262 MODULE__BLAKE2_FALSE='#'
30263 else
30264 MODULE__BLAKE2_TRUE='#'
30265 MODULE__BLAKE2_FALSE=
30266 fi
30267
30268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
30269 printf "%s\n" "$py_cv_module__blake2" >&6; }
30270
30271
30272
30273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
30274 printf %s "checking for stdlib extension module _ctypes... " >&6; }
30275 if test "$py_cv_module__ctypes" != "n/a"
30276 then :
30277
30278 if true
30279 then :
30280 if test "$have_libffi" = yes
30281 then :
30282 py_cv_module__ctypes=yes
30283 else $as_nop
30284 py_cv_module__ctypes=missing
30285 fi
30286 else $as_nop
30287 py_cv_module__ctypes=disabled
30288 fi
30289
30290 fi
30291 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
30292 if test "x$py_cv_module__ctypes" = xyes
30293 then :
30294
30295 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
30296 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
30297
30298 fi
30299 if test "$py_cv_module__ctypes" = yes; then
30300 MODULE__CTYPES_TRUE=
30301 MODULE__CTYPES_FALSE='#'
30302 else
30303 MODULE__CTYPES_TRUE='#'
30304 MODULE__CTYPES_FALSE=
30305 fi
30306
30307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
30308 printf "%s\n" "$py_cv_module__ctypes" >&6; }
30309
30310
30311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
30312 printf %s "checking for stdlib extension module _curses... " >&6; }
30313 if test "$py_cv_module__curses" != "n/a"
30314 then :
30315
30316 if true
30317 then :
30318 if test "$have_curses" != "no"
30319 then :
30320 py_cv_module__curses=yes
30321 else $as_nop
30322 py_cv_module__curses=missing
30323 fi
30324 else $as_nop
30325 py_cv_module__curses=disabled
30326 fi
30327
30328 fi
30329 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
30330 if test "x$py_cv_module__curses" = xyes
30331 then :
30332
30333 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
30334 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS
30335 $as_nl"
30336
30337 fi
30338 if test "$py_cv_module__curses" = yes; then
30339 MODULE__CURSES_TRUE=
30340 MODULE__CURSES_FALSE='#'
30341 else
30342 MODULE__CURSES_TRUE='#'
30343 MODULE__CURSES_FALSE=
30344 fi
30345
30346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
30347 printf "%s\n" "$py_cv_module__curses" >&6; }
30348
30349
30350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
30351 printf %s "checking for stdlib extension module _curses_panel... " >&6; }
30352 if test "$py_cv_module__curses_panel" != "n/a"
30353 then :
30354
30355 if true
30356 then :
30357 if test "$have_panel" != "no"
30358 then :
30359 py_cv_module__curses_panel=yes
30360 else $as_nop
30361 py_cv_module__curses_panel=missing
30362 fi
30363 else $as_nop
30364 py_cv_module__curses_panel=disabled
30365 fi
30366
30367 fi
30368 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
30369 if test "x$py_cv_module__curses_panel" = xyes
30370 then :
30371
30372 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
30373 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
30374 $as_nl"
30375
30376 fi
30377 if test "$py_cv_module__curses_panel" = yes; then
30378 MODULE__CURSES_PANEL_TRUE=
30379 MODULE__CURSES_PANEL_FALSE='#'
30380 else
30381 MODULE__CURSES_PANEL_TRUE='#'
30382 MODULE__CURSES_PANEL_FALSE=
30383 fi
30384
30385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
30386 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
30387
30388
30389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
30390 printf %s "checking for stdlib extension module _decimal... " >&6; }
30391 if test "$py_cv_module__decimal" != "n/a"
30392 then :
30393
30394 if true
30395 then :
30396 if true
30397 then :
30398 py_cv_module__decimal=yes
30399 else $as_nop
30400 py_cv_module__decimal=missing
30401 fi
30402 else $as_nop
30403 py_cv_module__decimal=disabled
30404 fi
30405
30406 fi
30407 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
30408 if test "x$py_cv_module__decimal" = xyes
30409 then :
30410
30411 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
30412 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
30413
30414 fi
30415 if test "$py_cv_module__decimal" = yes; then
30416 MODULE__DECIMAL_TRUE=
30417 MODULE__DECIMAL_FALSE='#'
30418 else
30419 MODULE__DECIMAL_TRUE='#'
30420 MODULE__DECIMAL_FALSE=
30421 fi
30422
30423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
30424 printf "%s\n" "$py_cv_module__decimal" >&6; }
30425
30426
30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
30428 printf %s "checking for stdlib extension module _dbm... " >&6; }
30429 if test "$py_cv_module__dbm" != "n/a"
30430 then :
30431
30432 if test -n "$with_dbmliborder"
30433 then :
30434 if test "$have_dbm" != "no"
30435 then :
30436 py_cv_module__dbm=yes
30437 else $as_nop
30438 py_cv_module__dbm=missing
30439 fi
30440 else $as_nop
30441 py_cv_module__dbm=disabled
30442 fi
30443
30444 fi
30445 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
30446 if test "x$py_cv_module__dbm" = xyes
30447 then :
30448
30449 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
30450 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
30451
30452 fi
30453 if test "$py_cv_module__dbm" = yes; then
30454 MODULE__DBM_TRUE=
30455 MODULE__DBM_FALSE='#'
30456 else
30457 MODULE__DBM_TRUE='#'
30458 MODULE__DBM_FALSE=
30459 fi
30460
30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
30462 printf "%s\n" "$py_cv_module__dbm" >&6; }
30463
30464
30465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
30466 printf %s "checking for stdlib extension module _gdbm... " >&6; }
30467 if test "$py_cv_module__gdbm" != "n/a"
30468 then :
30469
30470 if test "$have_gdbm_dbmliborder" = yes
30471 then :
30472 if test "$have_gdbm" = yes
30473 then :
30474 py_cv_module__gdbm=yes
30475 else $as_nop
30476 py_cv_module__gdbm=missing
30477 fi
30478 else $as_nop
30479 py_cv_module__gdbm=disabled
30480 fi
30481
30482 fi
30483 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
30484 if test "x$py_cv_module__gdbm" = xyes
30485 then :
30486
30487 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
30488 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
30489
30490 fi
30491 if test "$py_cv_module__gdbm" = yes; then
30492 MODULE__GDBM_TRUE=
30493 MODULE__GDBM_FALSE='#'
30494 else
30495 MODULE__GDBM_TRUE='#'
30496 MODULE__GDBM_FALSE=
30497 fi
30498
30499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
30500 printf "%s\n" "$py_cv_module__gdbm" >&6; }
30501
30502
30503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
30504 printf %s "checking for stdlib extension module readline... " >&6; }
30505 if test "$py_cv_module_readline" != "n/a"
30506 then :
30507
30508 if true
30509 then :
30510 if test "$with_readline" != "no"
30511 then :
30512 py_cv_module_readline=yes
30513 else $as_nop
30514 py_cv_module_readline=missing
30515 fi
30516 else $as_nop
30517 py_cv_module_readline=disabled
30518 fi
30519
30520 fi
30521 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
30522 if test "x$py_cv_module_readline" = xyes
30523 then :
30524
30525 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
30526 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
30527
30528 fi
30529 if test "$py_cv_module_readline" = yes; then
30530 MODULE_READLINE_TRUE=
30531 MODULE_READLINE_FALSE='#'
30532 else
30533 MODULE_READLINE_TRUE='#'
30534 MODULE_READLINE_FALSE=
30535 fi
30536
30537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
30538 printf "%s\n" "$py_cv_module_readline" >&6; }
30539
30540
30541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
30542 printf %s "checking for stdlib extension module _sqlite3... " >&6; }
30543 if test "$py_cv_module__sqlite3" != "n/a"
30544 then :
30545
30546 if test "$have_sqlite3" = "yes"
30547 then :
30548 if test "$have_supported_sqlite3" = "yes"
30549 then :
30550 py_cv_module__sqlite3=yes
30551 else $as_nop
30552 py_cv_module__sqlite3=missing
30553 fi
30554 else $as_nop
30555 py_cv_module__sqlite3=disabled
30556 fi
30557
30558 fi
30559 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
30560 if test "x$py_cv_module__sqlite3" = xyes
30561 then :
30562
30563 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
30564 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
30565
30566 fi
30567 if test "$py_cv_module__sqlite3" = yes; then
30568 MODULE__SQLITE3_TRUE=
30569 MODULE__SQLITE3_FALSE='#'
30570 else
30571 MODULE__SQLITE3_TRUE='#'
30572 MODULE__SQLITE3_FALSE=
30573 fi
30574
30575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
30576 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
30577
30578
30579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
30580 printf %s "checking for stdlib extension module _tkinter... " >&6; }
30581 if test "$py_cv_module__tkinter" != "n/a"
30582 then :
30583
30584 if true
30585 then :
30586 if test "$have_tcltk" = "yes"
30587 then :
30588 py_cv_module__tkinter=yes
30589 else $as_nop
30590 py_cv_module__tkinter=missing
30591 fi
30592 else $as_nop
30593 py_cv_module__tkinter=disabled
30594 fi
30595
30596 fi
30597 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
30598 if test "x$py_cv_module__tkinter" = xyes
30599 then :
30600
30601 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
30602 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
30603
30604 fi
30605 if test "$py_cv_module__tkinter" = yes; then
30606 MODULE__TKINTER_TRUE=
30607 MODULE__TKINTER_FALSE='#'
30608 else
30609 MODULE__TKINTER_TRUE='#'
30610 MODULE__TKINTER_FALSE=
30611 fi
30612
30613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
30614 printf "%s\n" "$py_cv_module__tkinter" >&6; }
30615
30616
30617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
30618 printf %s "checking for stdlib extension module _uuid... " >&6; }
30619 if test "$py_cv_module__uuid" != "n/a"
30620 then :
30621
30622 if true
30623 then :
30624 if test "$have_uuid" = "yes"
30625 then :
30626 py_cv_module__uuid=yes
30627 else $as_nop
30628 py_cv_module__uuid=missing
30629 fi
30630 else $as_nop
30631 py_cv_module__uuid=disabled
30632 fi
30633
30634 fi
30635 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
30636 if test "x$py_cv_module__uuid" = xyes
30637 then :
30638
30639 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
30640 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
30641
30642 fi
30643 if test "$py_cv_module__uuid" = yes; then
30644 MODULE__UUID_TRUE=
30645 MODULE__UUID_FALSE='#'
30646 else
30647 MODULE__UUID_TRUE='#'
30648 MODULE__UUID_FALSE=
30649 fi
30650
30651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
30652 printf "%s\n" "$py_cv_module__uuid" >&6; }
30653
30654
30655
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
30657 printf %s "checking for stdlib extension module zlib... " >&6; }
30658 if test "$py_cv_module_zlib" != "n/a"
30659 then :
30660
30661 if true
30662 then :
30663 if test "$have_zlib" = yes
30664 then :
30665 py_cv_module_zlib=yes
30666 else $as_nop
30667 py_cv_module_zlib=missing
30668 fi
30669 else $as_nop
30670 py_cv_module_zlib=disabled
30671 fi
30672
30673 fi
30674 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
30675 if test "x$py_cv_module_zlib" = xyes
30676 then :
30677
30678 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
30679 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
30680
30681 fi
30682 if test "$py_cv_module_zlib" = yes; then
30683 MODULE_ZLIB_TRUE=
30684 MODULE_ZLIB_FALSE='#'
30685 else
30686 MODULE_ZLIB_TRUE='#'
30687 MODULE_ZLIB_FALSE=
30688 fi
30689
30690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
30691 printf "%s\n" "$py_cv_module_zlib" >&6; }
30692
30693
30694 if test "$py_cv_module_binascii" != "n/a"
30695 then :
30696 py_cv_module_binascii=yes
30697 fi
30698 if test "$py_cv_module_binascii" = yes; then
30699 MODULE_BINASCII_TRUE=
30700 MODULE_BINASCII_FALSE='#'
30701 else
30702 MODULE_BINASCII_TRUE='#'
30703 MODULE_BINASCII_FALSE=
30704 fi
30705
30706 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
30707 if test "x$py_cv_module_binascii" = xyes
30708 then :
30709
30710 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
30711 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
30712
30713 fi
30714
30715
30716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
30717 printf %s "checking for stdlib extension module _bz2... " >&6; }
30718 if test "$py_cv_module__bz2" != "n/a"
30719 then :
30720
30721 if true
30722 then :
30723 if test "$have_bzip2" = yes
30724 then :
30725 py_cv_module__bz2=yes
30726 else $as_nop
30727 py_cv_module__bz2=missing
30728 fi
30729 else $as_nop
30730 py_cv_module__bz2=disabled
30731 fi
30732
30733 fi
30734 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
30735 if test "x$py_cv_module__bz2" = xyes
30736 then :
30737
30738 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
30739 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
30740
30741 fi
30742 if test "$py_cv_module__bz2" = yes; then
30743 MODULE__BZ2_TRUE=
30744 MODULE__BZ2_FALSE='#'
30745 else
30746 MODULE__BZ2_TRUE='#'
30747 MODULE__BZ2_FALSE=
30748 fi
30749
30750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
30751 printf "%s\n" "$py_cv_module__bz2" >&6; }
30752
30753
30754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
30755 printf %s "checking for stdlib extension module _lzma... " >&6; }
30756 if test "$py_cv_module__lzma" != "n/a"
30757 then :
30758
30759 if true
30760 then :
30761 if test "$have_liblzma" = yes
30762 then :
30763 py_cv_module__lzma=yes
30764 else $as_nop
30765 py_cv_module__lzma=missing
30766 fi
30767 else $as_nop
30768 py_cv_module__lzma=disabled
30769 fi
30770
30771 fi
30772 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
30773 if test "x$py_cv_module__lzma" = xyes
30774 then :
30775
30776 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
30777 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
30778
30779 fi
30780 if test "$py_cv_module__lzma" = yes; then
30781 MODULE__LZMA_TRUE=
30782 MODULE__LZMA_FALSE='#'
30783 else
30784 MODULE__LZMA_TRUE='#'
30785 MODULE__LZMA_FALSE=
30786 fi
30787
30788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
30789 printf "%s\n" "$py_cv_module__lzma" >&6; }
30790
30791
30792
30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
30794 printf %s "checking for stdlib extension module _ssl... " >&6; }
30795 if test "$py_cv_module__ssl" != "n/a"
30796 then :
30797
30798 if true
30799 then :
30800 if test "$ac_cv_working_openssl_ssl" = yes
30801 then :
30802 py_cv_module__ssl=yes
30803 else $as_nop
30804 py_cv_module__ssl=missing
30805 fi
30806 else $as_nop
30807 py_cv_module__ssl=disabled
30808 fi
30809
30810 fi
30811 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
30812 if test "x$py_cv_module__ssl" = xyes
30813 then :
30814
30815 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
30816 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
30817
30818 fi
30819 if test "$py_cv_module__ssl" = yes; then
30820 MODULE__SSL_TRUE=
30821 MODULE__SSL_FALSE='#'
30822 else
30823 MODULE__SSL_TRUE='#'
30824 MODULE__SSL_FALSE=
30825 fi
30826
30827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
30828 printf "%s\n" "$py_cv_module__ssl" >&6; }
30829
30830
30831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
30832 printf %s "checking for stdlib extension module _hashlib... " >&6; }
30833 if test "$py_cv_module__hashlib" != "n/a"
30834 then :
30835
30836 if true
30837 then :
30838 if test "$ac_cv_working_openssl_hashlib" = yes
30839 then :
30840 py_cv_module__hashlib=yes
30841 else $as_nop
30842 py_cv_module__hashlib=missing
30843 fi
30844 else $as_nop
30845 py_cv_module__hashlib=disabled
30846 fi
30847
30848 fi
30849 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
30850 if test "x$py_cv_module__hashlib" = xyes
30851 then :
30852
30853 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
30854 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
30855
30856 fi
30857 if test "$py_cv_module__hashlib" = yes; then
30858 MODULE__HASHLIB_TRUE=
30859 MODULE__HASHLIB_FALSE='#'
30860 else
30861 MODULE__HASHLIB_TRUE='#'
30862 MODULE__HASHLIB_FALSE=
30863 fi
30864
30865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
30866 printf "%s\n" "$py_cv_module__hashlib" >&6; }
30867
30868
30869
30870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
30871 printf %s "checking for stdlib extension module _testcapi... " >&6; }
30872 if test "$py_cv_module__testcapi" != "n/a"
30873 then :
30874
30875 if test "$TEST_MODULES" = yes
30876 then :
30877 if true
30878 then :
30879 py_cv_module__testcapi=yes
30880 else $as_nop
30881 py_cv_module__testcapi=missing
30882 fi
30883 else $as_nop
30884 py_cv_module__testcapi=disabled
30885 fi
30886
30887 fi
30888 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
30889 if test "x$py_cv_module__testcapi" = xyes
30890 then :
30891
30892
30893 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
30894
30895 fi
30896 if test "$py_cv_module__testcapi" = yes; then
30897 MODULE__TESTCAPI_TRUE=
30898 MODULE__TESTCAPI_FALSE='#'
30899 else
30900 MODULE__TESTCAPI_TRUE='#'
30901 MODULE__TESTCAPI_FALSE=
30902 fi
30903
30904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
30905 printf "%s\n" "$py_cv_module__testcapi" >&6; }
30906
30907
30908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
30909 printf %s "checking for stdlib extension module _testclinic... " >&6; }
30910 if test "$py_cv_module__testclinic" != "n/a"
30911 then :
30912
30913 if test "$TEST_MODULES" = yes
30914 then :
30915 if true
30916 then :
30917 py_cv_module__testclinic=yes
30918 else $as_nop
30919 py_cv_module__testclinic=missing
30920 fi
30921 else $as_nop
30922 py_cv_module__testclinic=disabled
30923 fi
30924
30925 fi
30926 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
30927 if test "x$py_cv_module__testclinic" = xyes
30928 then :
30929
30930
30931
30932
30933 fi
30934 if test "$py_cv_module__testclinic" = yes; then
30935 MODULE__TESTCLINIC_TRUE=
30936 MODULE__TESTCLINIC_FALSE='#'
30937 else
30938 MODULE__TESTCLINIC_TRUE='#'
30939 MODULE__TESTCLINIC_FALSE=
30940 fi
30941
30942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
30943 printf "%s\n" "$py_cv_module__testclinic" >&6; }
30944
30945
30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
30947 printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
30948 if test "$py_cv_module__testclinic_limited" != "n/a"
30949 then :
30950
30951 if test "$TEST_MODULES" = yes
30952 then :
30953 if true
30954 then :
30955 py_cv_module__testclinic_limited=yes
30956 else $as_nop
30957 py_cv_module__testclinic_limited=missing
30958 fi
30959 else $as_nop
30960 py_cv_module__testclinic_limited=disabled
30961 fi
30962
30963 fi
30964 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
30965 if test "x$py_cv_module__testclinic_limited" = xyes
30966 then :
30967
30968
30969
30970
30971 fi
30972 if test "$py_cv_module__testclinic_limited" = yes; then
30973 MODULE__TESTCLINIC_LIMITED_TRUE=
30974 MODULE__TESTCLINIC_LIMITED_FALSE='#'
30975 else
30976 MODULE__TESTCLINIC_LIMITED_TRUE='#'
30977 MODULE__TESTCLINIC_LIMITED_FALSE=
30978 fi
30979
30980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
30981 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
30982
30983
30984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
30985 printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
30986 if test "$py_cv_module__testlimitedcapi" != "n/a"
30987 then :
30988
30989 if test "$TEST_MODULES" = yes
30990 then :
30991 if true
30992 then :
30993 py_cv_module__testlimitedcapi=yes
30994 else $as_nop
30995 py_cv_module__testlimitedcapi=missing
30996 fi
30997 else $as_nop
30998 py_cv_module__testlimitedcapi=disabled
30999 fi
31000
31001 fi
31002 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
31003 if test "x$py_cv_module__testlimitedcapi" = xyes
31004 then :
31005
31006
31007
31008
31009 fi
31010 if test "$py_cv_module__testlimitedcapi" = yes; then
31011 MODULE__TESTLIMITEDCAPI_TRUE=
31012 MODULE__TESTLIMITEDCAPI_FALSE='#'
31013 else
31014 MODULE__TESTLIMITEDCAPI_TRUE='#'
31015 MODULE__TESTLIMITEDCAPI_FALSE=
31016 fi
31017
31018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
31019 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
31020
31021
31022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
31023 printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
31024 if test "$py_cv_module__testinternalcapi" != "n/a"
31025 then :
31026
31027 if test "$TEST_MODULES" = yes
31028 then :
31029 if true
31030 then :
31031 py_cv_module__testinternalcapi=yes
31032 else $as_nop
31033 py_cv_module__testinternalcapi=missing
31034 fi
31035 else $as_nop
31036 py_cv_module__testinternalcapi=disabled
31037 fi
31038
31039 fi
31040 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
31041 if test "x$py_cv_module__testinternalcapi" = xyes
31042 then :
31043
31044
31045
31046
31047 fi
31048 if test "$py_cv_module__testinternalcapi" = yes; then
31049 MODULE__TESTINTERNALCAPI_TRUE=
31050 MODULE__TESTINTERNALCAPI_FALSE='#'
31051 else
31052 MODULE__TESTINTERNALCAPI_TRUE='#'
31053 MODULE__TESTINTERNALCAPI_FALSE=
31054 fi
31055
31056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
31057 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
31058
31059
31060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
31061 printf %s "checking for stdlib extension module _testbuffer... " >&6; }
31062 if test "$py_cv_module__testbuffer" != "n/a"
31063 then :
31064
31065 if test "$TEST_MODULES" = yes
31066 then :
31067 if true
31068 then :
31069 py_cv_module__testbuffer=yes
31070 else $as_nop
31071 py_cv_module__testbuffer=missing
31072 fi
31073 else $as_nop
31074 py_cv_module__testbuffer=disabled
31075 fi
31076
31077 fi
31078 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
31079 if test "x$py_cv_module__testbuffer" = xyes
31080 then :
31081
31082
31083
31084
31085 fi
31086 if test "$py_cv_module__testbuffer" = yes; then
31087 MODULE__TESTBUFFER_TRUE=
31088 MODULE__TESTBUFFER_FALSE='#'
31089 else
31090 MODULE__TESTBUFFER_TRUE='#'
31091 MODULE__TESTBUFFER_FALSE=
31092 fi
31093
31094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
31095 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
31096
31097
31098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
31099 printf %s "checking for stdlib extension module _testimportmultiple... " >&6; }
31100 if test "$py_cv_module__testimportmultiple" != "n/a"
31101 then :
31102
31103 if test "$TEST_MODULES" = yes
31104 then :
31105 if test "$ac_cv_func_dlopen" = yes
31106 then :
31107 py_cv_module__testimportmultiple=yes
31108 else $as_nop
31109 py_cv_module__testimportmultiple=missing
31110 fi
31111 else $as_nop
31112 py_cv_module__testimportmultiple=disabled
31113 fi
31114
31115 fi
31116 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
31117 if test "x$py_cv_module__testimportmultiple" = xyes
31118 then :
31119
31120
31121
31122
31123 fi
31124 if test "$py_cv_module__testimportmultiple" = yes; then
31125 MODULE__TESTIMPORTMULTIPLE_TRUE=
31126 MODULE__TESTIMPORTMULTIPLE_FALSE='#'
31127 else
31128 MODULE__TESTIMPORTMULTIPLE_TRUE='#'
31129 MODULE__TESTIMPORTMULTIPLE_FALSE=
31130 fi
31131
31132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
31133 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
31134
31135
31136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
31137 printf %s "checking for stdlib extension module _testmultiphase... " >&6; }
31138 if test "$py_cv_module__testmultiphase" != "n/a"
31139 then :
31140
31141 if test "$TEST_MODULES" = yes
31142 then :
31143 if test "$ac_cv_func_dlopen" = yes
31144 then :
31145 py_cv_module__testmultiphase=yes
31146 else $as_nop
31147 py_cv_module__testmultiphase=missing
31148 fi
31149 else $as_nop
31150 py_cv_module__testmultiphase=disabled
31151 fi
31152
31153 fi
31154 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
31155 if test "x$py_cv_module__testmultiphase" = xyes
31156 then :
31157
31158
31159
31160
31161 fi
31162 if test "$py_cv_module__testmultiphase" = yes; then
31163 MODULE__TESTMULTIPHASE_TRUE=
31164 MODULE__TESTMULTIPHASE_FALSE='#'
31165 else
31166 MODULE__TESTMULTIPHASE_TRUE='#'
31167 MODULE__TESTMULTIPHASE_FALSE=
31168 fi
31169
31170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
31171 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
31172
31173
31174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
31175 printf %s "checking for stdlib extension module _testsinglephase... " >&6; }
31176 if test "$py_cv_module__testsinglephase" != "n/a"
31177 then :
31178
31179 if test "$TEST_MODULES" = yes
31180 then :
31181 if test "$ac_cv_func_dlopen" = yes
31182 then :
31183 py_cv_module__testsinglephase=yes
31184 else $as_nop
31185 py_cv_module__testsinglephase=missing
31186 fi
31187 else $as_nop
31188 py_cv_module__testsinglephase=disabled
31189 fi
31190
31191 fi
31192 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
31193 if test "x$py_cv_module__testsinglephase" = xyes
31194 then :
31195
31196
31197
31198
31199 fi
31200 if test "$py_cv_module__testsinglephase" = yes; then
31201 MODULE__TESTSINGLEPHASE_TRUE=
31202 MODULE__TESTSINGLEPHASE_FALSE='#'
31203 else
31204 MODULE__TESTSINGLEPHASE_TRUE='#'
31205 MODULE__TESTSINGLEPHASE_FALSE=
31206 fi
31207
31208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
31209 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
31210
31211
31212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testexternalinspection" >&5
31213 printf %s "checking for stdlib extension module _testexternalinspection... " >&6; }
31214 if test "$py_cv_module__testexternalinspection" != "n/a"
31215 then :
31216
31217 if test "$TEST_MODULES" = yes
31218 then :
31219 if true
31220 then :
31221 py_cv_module__testexternalinspection=yes
31222 else $as_nop
31223 py_cv_module__testexternalinspection=missing
31224 fi
31225 else $as_nop
31226 py_cv_module__testexternalinspection=disabled
31227 fi
31228
31229 fi
31230 as_fn_append MODULE_BLOCK "MODULE__TESTEXTERNALINSPECTION_STATE=$py_cv_module__testexternalinspection$as_nl"
31231 if test "x$py_cv_module__testexternalinspection" = xyes
31232 then :
31233
31234
31235
31236
31237 fi
31238 if test "$py_cv_module__testexternalinspection" = yes; then
31239 MODULE__TESTEXTERNALINSPECTION_TRUE=
31240 MODULE__TESTEXTERNALINSPECTION_FALSE='#'
31241 else
31242 MODULE__TESTEXTERNALINSPECTION_TRUE='#'
31243 MODULE__TESTEXTERNALINSPECTION_FALSE=
31244 fi
31245
31246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testexternalinspection" >&5
31247 printf "%s\n" "$py_cv_module__testexternalinspection" >&6; }
31248
31249
31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
31251 printf %s "checking for stdlib extension module xxsubtype... " >&6; }
31252 if test "$py_cv_module_xxsubtype" != "n/a"
31253 then :
31254
31255 if test "$TEST_MODULES" = yes
31256 then :
31257 if true
31258 then :
31259 py_cv_module_xxsubtype=yes
31260 else $as_nop
31261 py_cv_module_xxsubtype=missing
31262 fi
31263 else $as_nop
31264 py_cv_module_xxsubtype=disabled
31265 fi
31266
31267 fi
31268 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
31269 if test "x$py_cv_module_xxsubtype" = xyes
31270 then :
31271
31272
31273
31274
31275 fi
31276 if test "$py_cv_module_xxsubtype" = yes; then
31277 MODULE_XXSUBTYPE_TRUE=
31278 MODULE_XXSUBTYPE_FALSE='#'
31279 else
31280 MODULE_XXSUBTYPE_TRUE='#'
31281 MODULE_XXSUBTYPE_FALSE=
31282 fi
31283
31284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
31285 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
31286
31287
31288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
31289 printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; }
31290 if test "$py_cv_module__xxtestfuzz" != "n/a"
31291 then :
31292
31293 if test "$TEST_MODULES" = yes
31294 then :
31295 if true
31296 then :
31297 py_cv_module__xxtestfuzz=yes
31298 else $as_nop
31299 py_cv_module__xxtestfuzz=missing
31300 fi
31301 else $as_nop
31302 py_cv_module__xxtestfuzz=disabled
31303 fi
31304
31305 fi
31306 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
31307 if test "x$py_cv_module__xxtestfuzz" = xyes
31308 then :
31309
31310
31311
31312
31313 fi
31314 if test "$py_cv_module__xxtestfuzz" = yes; then
31315 MODULE__XXTESTFUZZ_TRUE=
31316 MODULE__XXTESTFUZZ_FALSE='#'
31317 else
31318 MODULE__XXTESTFUZZ_TRUE='#'
31319 MODULE__XXTESTFUZZ_FALSE=
31320 fi
31321
31322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
31323 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
31324
31325
31326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
31327 printf %s "checking for stdlib extension module _ctypes_test... " >&6; }
31328 if test "$py_cv_module__ctypes_test" != "n/a"
31329 then :
31330
31331 if test "$TEST_MODULES" = yes
31332 then :
31333 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
31334 then :
31335 py_cv_module__ctypes_test=yes
31336 else $as_nop
31337 py_cv_module__ctypes_test=missing
31338 fi
31339 else $as_nop
31340 py_cv_module__ctypes_test=disabled
31341 fi
31342
31343 fi
31344 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
31345 if test "x$py_cv_module__ctypes_test" = xyes
31346 then :
31347
31348
31349 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl"
31350
31351 fi
31352 if test "$py_cv_module__ctypes_test" = yes; then
31353 MODULE__CTYPES_TEST_TRUE=
31354 MODULE__CTYPES_TEST_FALSE='#'
31355 else
31356 MODULE__CTYPES_TEST_TRUE='#'
31357 MODULE__CTYPES_TEST_FALSE=
31358 fi
31359
31360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
31361 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
31362
31363
31364
31365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
31366 printf %s "checking for stdlib extension module xxlimited... " >&6; }
31367 if test "$py_cv_module_xxlimited" != "n/a"
31368 then :
31369
31370 if test "$TEST_MODULES" = yes
31371 then :
31372 if test "$ac_cv_func_dlopen" = yes
31373 then :
31374 py_cv_module_xxlimited=yes
31375 else $as_nop
31376 py_cv_module_xxlimited=missing
31377 fi
31378 else $as_nop
31379 py_cv_module_xxlimited=disabled
31380 fi
31381
31382 fi
31383 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
31384 if test "x$py_cv_module_xxlimited" = xyes
31385 then :
31386
31387
31388
31389
31390 fi
31391 if test "$py_cv_module_xxlimited" = yes; then
31392 MODULE_XXLIMITED_TRUE=
31393 MODULE_XXLIMITED_FALSE='#'
31394 else
31395 MODULE_XXLIMITED_TRUE='#'
31396 MODULE_XXLIMITED_FALSE=
31397 fi
31398
31399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
31400 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
31401
31402
31403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
31404 printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
31405 if test "$py_cv_module_xxlimited_35" != "n/a"
31406 then :
31407
31408 if test "$TEST_MODULES" = yes
31409 then :
31410 if test "$ac_cv_func_dlopen" = yes
31411 then :
31412 py_cv_module_xxlimited_35=yes
31413 else $as_nop
31414 py_cv_module_xxlimited_35=missing
31415 fi
31416 else $as_nop
31417 py_cv_module_xxlimited_35=disabled
31418 fi
31419
31420 fi
31421 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
31422 if test "x$py_cv_module_xxlimited_35" = xyes
31423 then :
31424
31425
31426
31427
31428 fi
31429 if test "$py_cv_module_xxlimited_35" = yes; then
31430 MODULE_XXLIMITED_35_TRUE=
31431 MODULE_XXLIMITED_35_FALSE='#'
31432 else
31433 MODULE_XXLIMITED_35_TRUE='#'
31434 MODULE_XXLIMITED_35_FALSE=
31435 fi
31436
31437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
31438 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
31439
31440
31441 # substitute multiline block, must come after last PY_STDLIB_MOD()
31442
31443
31444 # generate output files
31445 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
31446
31447 ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
31448
31449 ac_config_files="$ac_config_files Modules/ld_so_aix"
31450
31451 # Generate files like pyconfig.h
31452 cat >confcache <<\_ACEOF
31453 # This file is a shell script that caches the results of configure
31454 # tests run on this system so they can be shared between configure
31455 # scripts and configure runs, see configure's option --config-cache.
31456 # It is not useful on other systems. If it contains results you don't
31457 # want to keep, you may remove or edit it.
31458 #
31459 # config.status only pays attention to the cache file if you give it
31460 # the --recheck option to rerun configure.
31461 #
31462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31464 # following values.
31465
31466 _ACEOF
31467
31468 # The following way of writing the cache mishandles newlines in values,
31469 # but we know of no workaround that is simple, portable, and efficient.
31470 # So, we kill variables containing newlines.
31471 # Ultrix sh set writes to stderr and can't be redirected directly,
31472 # and sets the high bit in the cache file unless we assign to the vars.
31473 (
31474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31475 eval ac_val=\$$ac_var
31476 case $ac_val in #(
31477 *${as_nl}*)
31478 case $ac_var in #(
31479 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31480 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31481 esac
31482 case $ac_var in #(
31483 _ | IFS | as_nl) ;; #(
31484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31485 *) { eval $ac_var=; unset $ac_var;} ;;
31486 esac ;;
31487 esac
31488 done
31489
31490 (set) 2>&1 |
31491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31492 *${as_nl}ac_space=\ *)
31493 # `set' does not quote correctly, so add quotes: double-quote
31494 # substitution turns \\\\ into \\, and sed turns \\ into \.
31495 sed -n \
31496 "s/'/'\\\\''/g;
31497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31498 ;; #(
31499 *)
31500 # `set' quotes correctly as required by POSIX, so do not add quotes.
31501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31502 ;;
31503 esac |
31504 sort
31505 ) |
31506 sed '
31507 /^ac_cv_env_/b end
31508 t clear
31509 :clear
31510 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
31511 t end
31512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31513 :end' >>confcache
31514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31515 if test -w "$cache_file"; then
31516 if test "x$cache_file" != "x/dev/null"; then
31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31518 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
31519 if test ! -f "$cache_file" || test -h "$cache_file"; then
31520 cat confcache >"$cache_file"
31521 else
31522 case $cache_file in #(
31523 */* | ?:*)
31524 mv -f confcache "$cache_file"$$ &&
31525 mv -f "$cache_file"$$ "$cache_file" ;; #(
31526 *)
31527 mv -f confcache "$cache_file" ;;
31528 esac
31529 fi
31530 fi
31531 else
31532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31533 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
31534 fi
31535 fi
31536 rm -f confcache
31537
31538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31539 # Let make expand exec_prefix.
31540 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31541
31542 DEFS=-DHAVE_CONFIG_H
31543
31544 ac_libobjs=
31545 ac_ltlibobjs=
31546 U=
31547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31548 # 1. Remove the extension, and $U if already installed.
31549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31550 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
31551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31552 # will be set to the directory where LIBOBJS objects are built.
31553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31555 done
31556 LIBOBJS=$ac_libobjs
31557
31558 LTLIBOBJS=$ac_ltlibobjs
31559
31560
31561
31562 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
31563 as_fn_error $? "conditional \"MODULE__IO\" was never defined.
31564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31565 fi
31566 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
31567 as_fn_error $? "conditional \"MODULE_TIME\" was never defined.
31568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31569 fi
31570 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
31571 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
31572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31573 fi
31574 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
31575 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
31576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31577 fi
31578 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
31579 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined.
31580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31581 fi
31582 if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then
31583 as_fn_error $? "conditional \"MODULE__CONTEXTVARS\" was never defined.
31584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31585 fi
31586 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
31587 as_fn_error $? "conditional \"MODULE__CSV\" was never defined.
31588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31589 fi
31590 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
31591 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined.
31592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31593 fi
31594 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
31595 as_fn_error $? "conditional \"MODULE__JSON\" was never defined.
31596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31597 fi
31598 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
31599 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined.
31600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31601 fi
31602 if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then
31603 as_fn_error $? "conditional \"MODULE__OPCODE\" was never defined.
31604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31605 fi
31606 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
31607 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined.
31608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31609 fi
31610 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
31611 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
31612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31613 fi
31614 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
31615 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined.
31616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31617 fi
31618 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
31619 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined.
31620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31621 fi
31622 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
31623 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined.
31624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31625 fi
31626 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
31627 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined.
31628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31629 fi
31630 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
31631 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined.
31632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31633 fi
31634 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
31635 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined.
31636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31637 fi
31638 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
31639 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined.
31640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31641 fi
31642 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
31643 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined.
31644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31645 fi
31646 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
31647 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
31648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31649 fi
31650 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
31651 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
31652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31653 fi
31654 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
31655 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
31656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31657 fi
31658 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
31659 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined.
31660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31661 fi
31662 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
31663 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined.
31664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31665 fi
31666 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
31667 as_fn_error $? "conditional \"MODULE_MATH\" was never defined.
31668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31669 fi
31670 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
31671 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined.
31672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31673 fi
31674 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
31675 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined.
31676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31677 fi
31678 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
31679 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
31680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31681 fi
31682 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
31683 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined.
31684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31685 fi
31686 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
31687 as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
31688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31689 fi
31690 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
31691 as_fn_error $? "conditional \"MODULE_PWD\" was never defined.
31692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31693 fi
31694 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
31695 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined.
31696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31697 fi
31698 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
31699 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined.
31700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31701 fi
31702 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
31703 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined.
31704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31705 fi
31706 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
31707 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined.
31708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31709 fi
31710 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
31711 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined.
31712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31713 fi
31714 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
31715 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined.
31716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31717 fi
31718 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
31719 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined.
31720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31721 fi
31722 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
31723 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined.
31724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31725 fi
31726 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
31727 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined.
31728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31729 fi
31730 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
31731 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined.
31732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31733 fi
31734 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
31735 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined.
31736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31737 fi
31738 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
31739 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined.
31740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31741 fi
31742 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
31743 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined.
31744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31745 fi
31746 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
31747 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined.
31748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31749 fi
31750 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
31751 as_fn_error $? "conditional \"MODULE__MD5\" was never defined.
31752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31753 fi
31754 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
31755 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined.
31756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31757 fi
31758 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
31759 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined.
31760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31761 fi
31762 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
31763 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined.
31764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31765 fi
31766 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
31767 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined.
31768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31769 fi
31770 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
31771 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined.
31772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31773 fi
31774 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
31775 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined.
31776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31777 fi
31778 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
31779 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined.
31780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31781 fi
31782 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
31783 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined.
31784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31785 fi
31786 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
31787 as_fn_error $? "conditional \"MODULE__DBM\" was never defined.
31788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31789 fi
31790 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
31791 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined.
31792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31793 fi
31794 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
31795 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined.
31796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31797 fi
31798 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
31799 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined.
31800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31801 fi
31802 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
31803 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined.
31804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31805 fi
31806 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
31807 as_fn_error $? "conditional \"MODULE__UUID\" was never defined.
31808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31809 fi
31810 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
31811 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined.
31812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31813 fi
31814 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
31815 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined.
31816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31817 fi
31818 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
31819 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined.
31820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31821 fi
31822 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
31823 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined.
31824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31825 fi
31826 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
31827 as_fn_error $? "conditional \"MODULE__SSL\" was never defined.
31828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31829 fi
31830 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
31831 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined.
31832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31833 fi
31834 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
31835 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined.
31836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31837 fi
31838 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
31839 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
31840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31841 fi
31842 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
31843 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
31844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31845 fi
31846 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
31847 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
31848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31849 fi
31850 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
31851 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
31852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31853 fi
31854 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
31855 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined.
31856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31857 fi
31858 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
31859 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
31860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31861 fi
31862 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
31863 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined.
31864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31865 fi
31866 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
31867 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
31868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31869 fi
31870 if test -z "${MODULE__TESTEXTERNALINSPECTION_TRUE}" && test -z "${MODULE__TESTEXTERNALINSPECTION_FALSE}"; then
31871 as_fn_error $? "conditional \"MODULE__TESTEXTERNALINSPECTION\" was never defined.
31872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31873 fi
31874 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
31875 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined.
31876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31877 fi
31878 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
31879 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined.
31880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31881 fi
31882 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
31883 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined.
31884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31885 fi
31886 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
31887 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined.
31888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31889 fi
31890 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
31891 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined.
31892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31893 fi
31894
31895 : "${CONFIG_STATUS=./config.status}"
31896 ac_write_fail=0
31897 ac_clean_files_save=$ac_clean_files
31898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31900 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
31901 as_write_fail=0
31902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31903 #! $SHELL
31904 # Generated by $as_me.
31905 # Run this file to recreate the current configuration.
31906 # Compiler output produced by configure, useful for debugging
31907 # configure, is in config.log if it exists.
31908
31909 debug=false
31910 ac_cs_recheck=false
31911 ac_cs_silent=false
31912
31913 SHELL=\${CONFIG_SHELL-$SHELL}
31914 export SHELL
31915 _ASEOF
31916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31917 ## -------------------- ##
31918 ## M4sh Initialization. ##
31919 ## -------------------- ##
31920
31921 # Be more Bourne compatible
31922 DUALCASE=1; export DUALCASE # for MKS sh
31923 as_nop=:
31924 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
31925 then :
31926 emulate sh
31927 NULLCMD=:
31928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31929 # is contrary to our usage. Disable this feature.
31930 alias -g '${1+"$@"}'='"$@"'
31931 setopt NO_GLOB_SUBST
31932 else $as_nop
31933 case `(set -o) 2>/dev/null` in #(
31934 *posix*) :
31935 set -o posix ;; #(
31936 *) :
31937 ;;
31938 esac
31939 fi
31940
31941
31942
31943 # Reset variables that may have inherited troublesome values from
31944 # the environment.
31945
31946 # IFS needs to be set, to space, tab, and newline, in precisely that order.
31947 # (If _AS_PATH_WALK were called with IFS unset, it would have the
31948 # side effect of setting IFS to empty, thus disabling word splitting.)
31949 # Quoting is to prevent editors from complaining about space-tab.
31950 as_nl='
31951 '
31952 export as_nl
31953 IFS=" "" $as_nl"
31954
31955 PS1='$ '
31956 PS2='> '
31957 PS4='+ '
31958
31959 # Ensure predictable behavior from utilities with locale-dependent output.
31960 LC_ALL=C
31961 export LC_ALL
31962 LANGUAGE=C
31963 export LANGUAGE
31964
31965 # We cannot yet rely on "unset" to work, but we need these variables
31966 # to be unset--not just set to an empty or harmless value--now, to
31967 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
31968 # also avoids known problems related to "unset" and subshell syntax
31969 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
31970 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
31971 do eval test \${$as_var+y} \
31972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31973 done
31974
31975 # Ensure that fds 0, 1, and 2 are open.
31976 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
31977 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
31978 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
31979
31980 # The user is always right.
31981 if ${PATH_SEPARATOR+false} :; then
31982 PATH_SEPARATOR=:
31983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31985 PATH_SEPARATOR=';'
31986 }
31987 fi
31988
31989
31990 # Find who we are. Look in the path if we contain no directory separator.
31991 as_myself=
31992 case $0 in #((
31993 *[\\/]* ) as_myself=$0 ;;
31994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31995 for as_dir in $PATH
31996 do
31997 IFS=$as_save_IFS
31998 case $as_dir in #(((
31999 '') as_dir=./ ;;
32000 */) ;;
32001 *) as_dir=$as_dir/ ;;
32002 esac
32003 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
32004 done
32005 IFS=$as_save_IFS
32006
32007 ;;
32008 esac
32009 # We did not find ourselves, most probably we were run as `sh COMMAND'
32010 # in which case we are not to be found in the path.
32011 if test "x$as_myself" = x; then
32012 as_myself=$0
32013 fi
32014 if test ! -f "$as_myself"; then
32015 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32016 exit 1
32017 fi
32018
32019
32020
32021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32022 # ----------------------------------------
32023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32025 # script with STATUS, using 1 if that was 0.
32026 as_fn_error ()
32027 {
32028 as_status=$1; test $as_status -eq 0 && as_status=1
32029 if test "$4"; then
32030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32032 fi
32033 printf "%s\n" "$as_me: error: $2" >&2
32034 as_fn_exit $as_status
32035 } # as_fn_error
32036
32037
32038
32039 # as_fn_set_status STATUS
32040 # -----------------------
32041 # Set $? to STATUS, without forking.
32042 as_fn_set_status ()
32043 {
32044 return $1
32045 } # as_fn_set_status
32046
32047 # as_fn_exit STATUS
32048 # -----------------
32049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32050 as_fn_exit ()
32051 {
32052 set +e
32053 as_fn_set_status $1
32054 exit $1
32055 } # as_fn_exit
32056
32057 # as_fn_unset VAR
32058 # ---------------
32059 # Portably unset VAR.
32060 as_fn_unset ()
32061 {
32062 { eval $1=; unset $1;}
32063 }
32064 as_unset=as_fn_unset
32065
32066 # as_fn_append VAR VALUE
32067 # ----------------------
32068 # Append the text in VALUE to the end of the definition contained in VAR. Take
32069 # advantage of any shell optimizations that allow amortized linear growth over
32070 # repeated appends, instead of the typical quadratic growth present in naive
32071 # implementations.
32072 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
32073 then :
32074 eval 'as_fn_append ()
32075 {
32076 eval $1+=\$2
32077 }'
32078 else $as_nop
32079 as_fn_append ()
32080 {
32081 eval $1=\$$1\$2
32082 }
32083 fi # as_fn_append
32084
32085 # as_fn_arith ARG...
32086 # ------------------
32087 # Perform arithmetic evaluation on the ARGs, and store the result in the
32088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32089 # must be portable across $(()) and expr.
32090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
32091 then :
32092 eval 'as_fn_arith ()
32093 {
32094 as_val=$(( $* ))
32095 }'
32096 else $as_nop
32097 as_fn_arith ()
32098 {
32099 as_val=`expr "$@" || test $? -eq 1`
32100 }
32101 fi # as_fn_arith
32102
32103
32104 if expr a : '\(a\)' >/dev/null 2>&1 &&
32105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32106 as_expr=expr
32107 else
32108 as_expr=false
32109 fi
32110
32111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32112 as_basename=basename
32113 else
32114 as_basename=false
32115 fi
32116
32117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32118 as_dirname=dirname
32119 else
32120 as_dirname=false
32121 fi
32122
32123 as_me=`$as_basename -- "$0" ||
32124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32125 X"$0" : 'X\(//\)$' \| \
32126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32127 printf "%s\n" X/"$0" |
32128 sed '/^.*\/\([^/][^/]*\)\/*$/{
32129 s//\1/
32130 q
32131 }
32132 /^X\/\(\/\/\)$/{
32133 s//\1/
32134 q
32135 }
32136 /^X\/\(\/\).*/{
32137 s//\1/
32138 q
32139 }
32140 s/.*/./; q'`
32141
32142 # Avoid depending upon Character Ranges.
32143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32146 as_cr_digits='0123456789'
32147 as_cr_alnum=$as_cr_Letters$as_cr_digits
32148
32149
32150 # Determine whether it's possible to make 'echo' print without a newline.
32151 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
32152 # for compatibility with existing Makefiles.
32153 ECHO_C= ECHO_N= ECHO_T=
32154 case `echo -n x` in #(((((
32155 -n*)
32156 case `echo 'xy\c'` in
32157 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32158 xy) ECHO_C='\c';;
32159 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32160 ECHO_T=' ';;
32161 esac;;
32162 *)
32163 ECHO_N='-n';;
32164 esac
32165
32166 # For backward compatibility with old third-party macros, we provide
32167 # the shell variables $as_echo and $as_echo_n. New code should use
32168 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
32169 as_echo='printf %s\n'
32170 as_echo_n='printf %s'
32171
32172 rm -f conf$$ conf$$.exe conf$$.file
32173 if test -d conf$$.dir; then
32174 rm -f conf$$.dir/conf$$.file
32175 else
32176 rm -f conf$$.dir
32177 mkdir conf$$.dir 2>/dev/null
32178 fi
32179 if (echo >conf$$.file) 2>/dev/null; then
32180 if ln -s conf$$.file conf$$ 2>/dev/null; then
32181 as_ln_s='ln -s'
32182 # ... but there are two gotchas:
32183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32185 # In both cases, we have to default to `cp -pR'.
32186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32187 as_ln_s='cp -pR'
32188 elif ln conf$$.file conf$$ 2>/dev/null; then
32189 as_ln_s=ln
32190 else
32191 as_ln_s='cp -pR'
32192 fi
32193 else
32194 as_ln_s='cp -pR'
32195 fi
32196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32197 rmdir conf$$.dir 2>/dev/null
32198
32199
32200 # as_fn_mkdir_p
32201 # -------------
32202 # Create "$as_dir" as a directory, including parents if necessary.
32203 as_fn_mkdir_p ()
32204 {
32205
32206 case $as_dir in #(
32207 -*) as_dir=./$as_dir;;
32208 esac
32209 test -d "$as_dir" || eval $as_mkdir_p || {
32210 as_dirs=
32211 while :; do
32212 case $as_dir in #(
32213 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32214 *) as_qdir=$as_dir;;
32215 esac
32216 as_dirs="'$as_qdir' $as_dirs"
32217 as_dir=`$as_dirname -- "$as_dir" ||
32218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32219 X"$as_dir" : 'X\(//\)[^/]' \| \
32220 X"$as_dir" : 'X\(//\)$' \| \
32221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32222 printf "%s\n" X"$as_dir" |
32223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32224 s//\1/
32225 q
32226 }
32227 /^X\(\/\/\)[^/].*/{
32228 s//\1/
32229 q
32230 }
32231 /^X\(\/\/\)$/{
32232 s//\1/
32233 q
32234 }
32235 /^X\(\/\).*/{
32236 s//\1/
32237 q
32238 }
32239 s/.*/./; q'`
32240 test -d "$as_dir" && break
32241 done
32242 test -z "$as_dirs" || eval "mkdir $as_dirs"
32243 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32244
32245
32246 } # as_fn_mkdir_p
32247 if mkdir -p . 2>/dev/null; then
32248 as_mkdir_p='mkdir -p "$as_dir"'
32249 else
32250 test -d ./-p && rmdir ./-p
32251 as_mkdir_p=false
32252 fi
32253
32254
32255 # as_fn_executable_p FILE
32256 # -----------------------
32257 # Test if FILE is an executable regular file.
32258 as_fn_executable_p ()
32259 {
32260 test -f "$1" && test -x "$1"
32261 } # as_fn_executable_p
32262 as_test_x='test -x'
32263 as_executable_p=as_fn_executable_p
32264
32265 # Sed expression to map a string onto a valid CPP name.
32266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32267
32268 # Sed expression to map a string onto a valid variable name.
32269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32270
32271
32272 exec 6>&1
32273 ## ----------------------------------- ##
32274 ## Main body of $CONFIG_STATUS script. ##
32275 ## ----------------------------------- ##
32276 _ASEOF
32277 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32278
32279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32280 # Save the log message, to keep $0 and so on meaningful, and to
32281 # report actual input values of CONFIG_FILES etc. instead of their
32282 # values after options handling.
32283 ac_log="
32284 This file was extended by python $as_me 3.13, which was
32285 generated by GNU Autoconf 2.71. Invocation command line was
32286
32287 CONFIG_FILES = $CONFIG_FILES
32288 CONFIG_HEADERS = $CONFIG_HEADERS
32289 CONFIG_LINKS = $CONFIG_LINKS
32290 CONFIG_COMMANDS = $CONFIG_COMMANDS
32291 $ $0 $@
32292
32293 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32294 "
32295
32296 _ACEOF
32297
32298 case $ac_config_files in *"
32299 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32300 esac
32301
32302 case $ac_config_headers in *"
32303 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32304 esac
32305
32306
32307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32308 # Files that config.status was made for.
32309 config_files="$ac_config_files"
32310 config_headers="$ac_config_headers"
32311
32312 _ACEOF
32313
32314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32315 ac_cs_usage="\
32316 \`$as_me' instantiates files and other configuration actions
32317 from templates according to the current configuration. Unless the files
32318 and actions are specified as TAGs, all are instantiated by default.
32319
32320 Usage: $0 [OPTION]... [TAG]...
32321
32322 -h, --help print this help, then exit
32323 -V, --version print version number and configuration settings, then exit
32324 --config print configuration, then exit
32325 -q, --quiet, --silent
32326 do not print progress messages
32327 -d, --debug don't remove temporary files
32328 --recheck update $as_me by reconfiguring in the same conditions
32329 --file=FILE[:TEMPLATE]
32330 instantiate the configuration file FILE
32331 --header=FILE[:TEMPLATE]
32332 instantiate the configuration header FILE
32333
32334 Configuration files:
32335 $config_files
32336
32337 Configuration headers:
32338 $config_headers
32339
32340 Report bugs to <https://github.com/python/cpython/issues/>."
32341
32342 _ACEOF
32343 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
32344 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
32345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32346 ac_cs_config='$ac_cs_config_escaped'
32347 ac_cs_version="\\
32348 python config.status 3.13
32349 configured by $0, generated by GNU Autoconf 2.71,
32350 with options \\"\$ac_cs_config\\"
32351
32352 Copyright (C) 2021 Free Software Foundation, Inc.
32353 This config.status script is free software; the Free Software Foundation
32354 gives unlimited permission to copy, distribute and modify it."
32355
32356 ac_pwd='$ac_pwd'
32357 srcdir='$srcdir'
32358 INSTALL='$INSTALL'
32359 MKDIR_P='$MKDIR_P'
32360 test -n "\$AWK" || AWK=awk
32361 _ACEOF
32362
32363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32364 # The default lists apply if the user does not specify any file.
32365 ac_need_defaults=:
32366 while test $# != 0
32367 do
32368 case $1 in
32369 --*=?*)
32370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32372 ac_shift=:
32373 ;;
32374 --*=)
32375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32376 ac_optarg=
32377 ac_shift=:
32378 ;;
32379 *)
32380 ac_option=$1
32381 ac_optarg=$2
32382 ac_shift=shift
32383 ;;
32384 esac
32385
32386 case $ac_option in
32387 # Handling of the options.
32388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32389 ac_cs_recheck=: ;;
32390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32391 printf "%s\n" "$ac_cs_version"; exit ;;
32392 --config | --confi | --conf | --con | --co | --c )
32393 printf "%s\n" "$ac_cs_config"; exit ;;
32394 --debug | --debu | --deb | --de | --d | -d )
32395 debug=: ;;
32396 --file | --fil | --fi | --f )
32397 $ac_shift
32398 case $ac_optarg in
32399 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32400 '') as_fn_error $? "missing file argument" ;;
32401 esac
32402 as_fn_append CONFIG_FILES " '$ac_optarg'"
32403 ac_need_defaults=false;;
32404 --header | --heade | --head | --hea )
32405 $ac_shift
32406 case $ac_optarg in
32407 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32408 esac
32409 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32410 ac_need_defaults=false;;
32411 --he | --h)
32412 # Conflict between --help and --header
32413 as_fn_error $? "ambiguous option: \`$1'
32414 Try \`$0 --help' for more information.";;
32415 --help | --hel | -h )
32416 printf "%s\n" "$ac_cs_usage"; exit ;;
32417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32419 ac_cs_silent=: ;;
32420
32421 # This is an error.
32422 -*) as_fn_error $? "unrecognized option: \`$1'
32423 Try \`$0 --help' for more information." ;;
32424
32425 *) as_fn_append ac_config_targets " $1"
32426 ac_need_defaults=false ;;
32427
32428 esac
32429 shift
32430 done
32431
32432 ac_configure_extra_args=
32433
32434 if $ac_cs_silent; then
32435 exec 6>/dev/null
32436 ac_configure_extra_args="$ac_configure_extra_args --silent"
32437 fi
32438
32439 _ACEOF
32440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32441 if \$ac_cs_recheck; then
32442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32443 shift
32444 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
32445 CONFIG_SHELL='$SHELL'
32446 export CONFIG_SHELL
32447 exec "\$@"
32448 fi
32449
32450 _ACEOF
32451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32452 exec 5>>config.log
32453 {
32454 echo
32455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32456 ## Running $as_me. ##
32457 _ASBOX
32458 printf "%s\n" "$ac_log"
32459 } >&5
32460
32461 _ACEOF
32462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32463 _ACEOF
32464
32465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32466
32467 # Handling of arguments.
32468 for ac_config_target in $ac_config_targets
32469 do
32470 case $ac_config_target in
32471 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
32472 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
32473 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
32474 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
32475 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
32476 "iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES iOS/Resources/Info.plist" ;;
32477 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
32478 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
32479 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
32480 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
32481 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;;
32482 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;;
32483 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
32484
32485 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32486 esac
32487 done
32488
32489
32490 # If the user did not use the arguments to specify the items to instantiate,
32491 # then the envvar interface is used. Set only those that are not.
32492 # We use the long form for the default assignment because of an extremely
32493 # bizarre bug on SunOS 4.1.3.
32494 if $ac_need_defaults; then
32495 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
32496 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
32497 fi
32498
32499 # Have a temporary directory for convenience. Make it in the build tree
32500 # simply because there is no reason against having it here, and in addition,
32501 # creating and moving files from /tmp can sometimes cause problems.
32502 # Hook for its removal unless debugging.
32503 # Note that there is a small window in which the directory will not be cleaned:
32504 # after its creation but before its name has been assigned to `$tmp'.
32505 $debug ||
32506 {
32507 tmp= ac_tmp=
32508 trap 'exit_status=$?
32509 : "${ac_tmp:=$tmp}"
32510 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32511 ' 0
32512 trap 'as_fn_exit 1' 1 2 13 15
32513 }
32514 # Create a (secure) tmp directory for tmp files.
32515
32516 {
32517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32518 test -d "$tmp"
32519 } ||
32520 {
32521 tmp=./conf$$-$RANDOM
32522 (umask 077 && mkdir "$tmp")
32523 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32524 ac_tmp=$tmp
32525
32526 # Set up the scripts for CONFIG_FILES section.
32527 # No need to generate them if there are no CONFIG_FILES.
32528 # This happens for instance with `./config.status config.h'.
32529 if test -n "$CONFIG_FILES"; then
32530
32531
32532 ac_cr=`echo X | tr X '\015'`
32533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32534 # But we know of no other shell where ac_cr would be empty at this
32535 # point, so we can use a bashism as a fallback.
32536 if test "x$ac_cr" = x; then
32537 eval ac_cr=\$\'\\r\'
32538 fi
32539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32541 ac_cs_awk_cr='\\r'
32542 else
32543 ac_cs_awk_cr=$ac_cr
32544 fi
32545
32546 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32547 _ACEOF
32548
32549
32550 {
32551 echo "cat >conf$$subs.awk <<_ACEOF" &&
32552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32553 echo "_ACEOF"
32554 } >conf$$subs.sh ||
32555 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32557 ac_delim='%!_!# '
32558 for ac_last_try in false false false false false :; do
32559 . ./conf$$subs.sh ||
32560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32561
32562 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32563 if test $ac_delim_n = $ac_delim_num; then
32564 break
32565 elif $ac_last_try; then
32566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32567 else
32568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32569 fi
32570 done
32571 rm -f conf$$subs.sh
32572
32573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32574 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32575 _ACEOF
32576 sed -n '
32577 h
32578 s/^/S["/; s/!.*/"]=/
32579 p
32580 g
32581 s/^[^!]*!//
32582 :repl
32583 t repl
32584 s/'"$ac_delim"'$//
32585 t delim
32586 :nl
32587 h
32588 s/\(.\{148\}\)..*/\1/
32589 t more1
32590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32591 p
32592 n
32593 b repl
32594 :more1
32595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32596 p
32597 g
32598 s/.\{148\}//
32599 t nl
32600 :delim
32601 h
32602 s/\(.\{148\}\)..*/\1/
32603 t more2
32604 s/["\\]/\\&/g; s/^/"/; s/$/"/
32605 p
32606 b
32607 :more2
32608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32609 p
32610 g
32611 s/.\{148\}//
32612 t delim
32613 ' <conf$$subs.awk | sed '
32614 /^[^""]/{
32615 N
32616 s/\n//
32617 }
32618 ' >>$CONFIG_STATUS || ac_write_fail=1
32619 rm -f conf$$subs.awk
32620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32621 _ACAWK
32622 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32623 for (key in S) S_is_set[key] = 1
32624 FS = "\a"
32625
32626 }
32627 {
32628 line = $ 0
32629 nfields = split(line, field, "@")
32630 substed = 0
32631 len = length(field[1])
32632 for (i = 2; i < nfields; i++) {
32633 key = field[i]
32634 keylen = length(key)
32635 if (S_is_set[key]) {
32636 value = S[key]
32637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32638 len += length(value) + length(field[++i])
32639 substed = 1
32640 } else
32641 len += 1 + keylen
32642 }
32643
32644 print line
32645 }
32646
32647 _ACAWK
32648 _ACEOF
32649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32651 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32652 else
32653 cat
32654 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32655 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32656 _ACEOF
32657
32658 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32659 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32660 # trailing colons and then remove the whole line if VPATH becomes empty
32661 # (actually we leave an empty line to preserve line numbers).
32662 if test "x$srcdir" = x.; then
32663 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32664 h
32665 s///
32666 s/^/:/
32667 s/[ ]*$/:/
32668 s/:\$(srcdir):/:/g
32669 s/:\${srcdir}:/:/g
32670 s/:@srcdir@:/:/g
32671 s/^:*//
32672 s/:*$//
32673 x
32674 s/\(=[ ]*\).*/\1/
32675 G
32676 s/\n//
32677 s/^[^=]*=[ ]*$//
32678 }'
32679 fi
32680
32681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32682 fi # test -n "$CONFIG_FILES"
32683
32684 # Set up the scripts for CONFIG_HEADERS section.
32685 # No need to generate them if there are no CONFIG_HEADERS.
32686 # This happens for instance with `./config.status Makefile'.
32687 if test -n "$CONFIG_HEADERS"; then
32688 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32689 BEGIN {
32690 _ACEOF
32691
32692 # Transform confdefs.h into an awk script `defines.awk', embedded as
32693 # here-document in config.status, that substitutes the proper values into
32694 # config.h.in to produce config.h.
32695
32696 # Create a delimiter string that does not exist in confdefs.h, to ease
32697 # handling of long lines.
32698 ac_delim='%!_!# '
32699 for ac_last_try in false false :; do
32700 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32701 if test -z "$ac_tt"; then
32702 break
32703 elif $ac_last_try; then
32704 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32705 else
32706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32707 fi
32708 done
32709
32710 # For the awk script, D is an array of macro values keyed by name,
32711 # likewise P contains macro parameters if any. Preserve backslash
32712 # newline sequences.
32713
32714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32715 sed -n '
32716 s/.\{148\}/&'"$ac_delim"'/g
32717 t rset
32718 :rset
32719 s/^[ ]*#[ ]*define[ ][ ]*/ /
32720 t def
32721 d
32722 :def
32723 s/\\$//
32724 t bsnl
32725 s/["\\]/\\&/g
32726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32727 D["\1"]=" \3"/p
32728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32729 d
32730 :bsnl
32731 s/["\\]/\\&/g
32732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32733 D["\1"]=" \3\\\\\\n"\\/p
32734 t cont
32735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32736 t cont
32737 d
32738 :cont
32739 n
32740 s/.\{148\}/&'"$ac_delim"'/g
32741 t clear
32742 :clear
32743 s/\\$//
32744 t bsnlc
32745 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32746 d
32747 :bsnlc
32748 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32749 b cont
32750 ' <confdefs.h | sed '
32751 s/'"$ac_delim"'/"\\\
32752 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32753
32754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32755 for (key in D) D_is_set[key] = 1
32756 FS = "\a"
32757 }
32758 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32759 line = \$ 0
32760 split(line, arg, " ")
32761 if (arg[1] == "#") {
32762 defundef = arg[2]
32763 mac1 = arg[3]
32764 } else {
32765 defundef = substr(arg[1], 2)
32766 mac1 = arg[2]
32767 }
32768 split(mac1, mac2, "(") #)
32769 macro = mac2[1]
32770 prefix = substr(line, 1, index(line, defundef) - 1)
32771 if (D_is_set[macro]) {
32772 # Preserve the white space surrounding the "#".
32773 print prefix "define", macro P[macro] D[macro]
32774 next
32775 } else {
32776 # Replace #undef with comments. This is necessary, for example,
32777 # in the case of _POSIX_SOURCE, which is predefined and required
32778 # on some systems where configure will not decide to define it.
32779 if (defundef == "undef") {
32780 print "/*", prefix defundef, macro, "*/"
32781 next
32782 }
32783 }
32784 }
32785 { print }
32786 _ACAWK
32787 _ACEOF
32788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32789 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32790 fi # test -n "$CONFIG_HEADERS"
32791
32792
32793 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
32794 shift
32795 for ac_tag
32796 do
32797 case $ac_tag in
32798 :[FHLC]) ac_mode=$ac_tag; continue;;
32799 esac
32800 case $ac_mode$ac_tag in
32801 :[FHL]*:*);;
32802 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32803 :[FH]-) ac_tag=-:-;;
32804 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32805 esac
32806 ac_save_IFS=$IFS
32807 IFS=:
32808 set x $ac_tag
32809 IFS=$ac_save_IFS
32810 shift
32811 ac_file=$1
32812 shift
32813
32814 case $ac_mode in
32815 :L) ac_source=$1;;
32816 :[FH])
32817 ac_file_inputs=
32818 for ac_f
32819 do
32820 case $ac_f in
32821 -) ac_f="$ac_tmp/stdin";;
32822 *) # Look for the file first in the build tree, then in the source tree
32823 # (if the path is not absolute). The absolute path cannot be DOS-style,
32824 # because $ac_f cannot contain `:'.
32825 test -f "$ac_f" ||
32826 case $ac_f in
32827 [\\/$]*) false;;
32828 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32829 esac ||
32830 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32831 esac
32832 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32833 as_fn_append ac_file_inputs " '$ac_f'"
32834 done
32835
32836 # Let's still pretend it is `configure' which instantiates (i.e., don't
32837 # use $as_me), people would be surprised to read:
32838 # /* config.h. Generated by config.status. */
32839 configure_input='Generated from '`
32840 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32841 `' by configure.'
32842 if test x"$ac_file" != x-; then
32843 configure_input="$ac_file. $configure_input"
32844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32845 printf "%s\n" "$as_me: creating $ac_file" >&6;}
32846 fi
32847 # Neutralize special characters interpreted by sed in replacement strings.
32848 case $configure_input in #(
32849 *\&* | *\|* | *\\* )
32850 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
32851 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32852 *) ac_sed_conf_input=$configure_input;;
32853 esac
32854
32855 case $ac_tag in
32856 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32858 esac
32859 ;;
32860 esac
32861
32862 ac_dir=`$as_dirname -- "$ac_file" ||
32863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32864 X"$ac_file" : 'X\(//\)[^/]' \| \
32865 X"$ac_file" : 'X\(//\)$' \| \
32866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32867 printf "%s\n" X"$ac_file" |
32868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32869 s//\1/
32870 q
32871 }
32872 /^X\(\/\/\)[^/].*/{
32873 s//\1/
32874 q
32875 }
32876 /^X\(\/\/\)$/{
32877 s//\1/
32878 q
32879 }
32880 /^X\(\/\).*/{
32881 s//\1/
32882 q
32883 }
32884 s/.*/./; q'`
32885 as_dir="$ac_dir"; as_fn_mkdir_p
32886 ac_builddir=.
32887
32888 case "$ac_dir" in
32889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32890 *)
32891 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
32892 # A ".." for each directory in $ac_dir_suffix.
32893 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32894 case $ac_top_builddir_sub in
32895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32897 esac ;;
32898 esac
32899 ac_abs_top_builddir=$ac_pwd
32900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32901 # for backward compatibility:
32902 ac_top_builddir=$ac_top_build_prefix
32903
32904 case $srcdir in
32905 .) # We are building in place.
32906 ac_srcdir=.
32907 ac_top_srcdir=$ac_top_builddir_sub
32908 ac_abs_top_srcdir=$ac_pwd ;;
32909 [\\/]* | ?:[\\/]* ) # Absolute name.
32910 ac_srcdir=$srcdir$ac_dir_suffix;
32911 ac_top_srcdir=$srcdir
32912 ac_abs_top_srcdir=$srcdir ;;
32913 *) # Relative name.
32914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32915 ac_top_srcdir=$ac_top_build_prefix$srcdir
32916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32917 esac
32918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32919
32920
32921 case $ac_mode in
32922 :F)
32923 #
32924 # CONFIG_FILE
32925 #
32926
32927 case $INSTALL in
32928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32930 esac
32931 ac_MKDIR_P=$MKDIR_P
32932 case $MKDIR_P in
32933 [\\/$]* | ?:[\\/]* ) ;;
32934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32935 esac
32936 _ACEOF
32937
32938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32939 # If the template does not know about datarootdir, expand it.
32940 # FIXME: This hack should be removed a few years after 2.60.
32941 ac_datarootdir_hack=; ac_datarootdir_seen=
32942 ac_sed_dataroot='
32943 /datarootdir/ {
32944 p
32945 q
32946 }
32947 /@datadir@/p
32948 /@docdir@/p
32949 /@infodir@/p
32950 /@localedir@/p
32951 /@mandir@/p'
32952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32953 *datarootdir*) ac_datarootdir_seen=yes;;
32954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32956 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32957 _ACEOF
32958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32959 ac_datarootdir_hack='
32960 s&@datadir@&$datadir&g
32961 s&@docdir@&$docdir&g
32962 s&@infodir@&$infodir&g
32963 s&@localedir@&$localedir&g
32964 s&@mandir@&$mandir&g
32965 s&\\\${datarootdir}&$datarootdir&g' ;;
32966 esac
32967 _ACEOF
32968
32969 # Neutralize VPATH when `$srcdir' = `.'.
32970 # Shell code in configure.ac might set extrasub.
32971 # FIXME: do we really want to maintain this feature?
32972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32973 ac_sed_extra="$ac_vpsub
32974 $extrasub
32975 _ACEOF
32976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32977 :t
32978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32979 s|@configure_input@|$ac_sed_conf_input|;t t
32980 s&@top_builddir@&$ac_top_builddir_sub&;t t
32981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32982 s&@srcdir@&$ac_srcdir&;t t
32983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32984 s&@top_srcdir@&$ac_top_srcdir&;t t
32985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32986 s&@builddir@&$ac_builddir&;t t
32987 s&@abs_builddir@&$ac_abs_builddir&;t t
32988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32989 s&@INSTALL@&$ac_INSTALL&;t t
32990 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32991 $ac_datarootdir_hack
32992 "
32993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32994 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32995
32996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32997 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32999 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33001 which seems to be undefined. Please make sure it is defined" >&5
33002 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33003 which seems to be undefined. Please make sure it is defined" >&2;}
33004
33005 rm -f "$ac_tmp/stdin"
33006 case $ac_file in
33007 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33008 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33009 esac \
33010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33011 ;;
33012 :H)
33013 #
33014 # CONFIG_HEADER
33015 #
33016 if test x"$ac_file" != x-; then
33017 {
33018 printf "%s\n" "/* $configure_input */" >&1 \
33019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33020 } >"$ac_tmp/config.h" \
33021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33022 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33024 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
33025 else
33026 rm -f "$ac_file"
33027 mv "$ac_tmp/config.h" "$ac_file" \
33028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33029 fi
33030 else
33031 printf "%s\n" "/* $configure_input */" >&1 \
33032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33033 || as_fn_error $? "could not create -" "$LINENO" 5
33034 fi
33035 ;;
33036
33037
33038 esac
33039
33040
33041 case $ac_file$ac_mode in
33042 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
33043
33044 esac
33045 done # for ac_tag
33046
33047
33048 as_fn_exit 0
33049 _ACEOF
33050 ac_clean_files=$ac_clean_files_save
33051
33052 test $ac_write_fail = 0 ||
33053 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33054
33055
33056 # configure is writing to config.log, and then calls config.status.
33057 # config.status does its own redirection, appending to config.log.
33058 # Unfortunately, on DOS this fails, as config.log is still kept open
33059 # by configure, so config.status won't be able to write to it; its
33060 # output is simply discarded. So we exec the FD to /dev/null,
33061 # effectively closing config.log, so it can be properly (re)opened and
33062 # appended to by config.status. When coming back to configure, we
33063 # need to make the FD available again.
33064 if test "$no_create" != yes; then
33065 ac_cs_success=:
33066 ac_config_status_args=
33067 test "$silent" = yes &&
33068 ac_config_status_args="$ac_config_status_args --quiet"
33069 exec 5>/dev/null
33070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33071 exec 5>>config.log
33072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33073 # would make configure fail if this is the last instruction.
33074 $ac_cs_success || as_fn_exit 1
33075 fi
33076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33078 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33079 fi
33080
33081
33082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
33083 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
33084 if test ! -f Modules/Setup.local
33085 then
33086 echo "# Edit this file for local setup changes" >Modules/Setup.local
33087 fi
33088
33089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
33090 printf "%s\n" "$as_me: creating Makefile" >&6;}
33091 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
33092 -s Modules \
33093 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup
33094 if test $? -ne 0; then
33095 as_fn_error $? "makesetup failed" "$LINENO" 5
33096 fi
33097
33098 mv config.c Modules
33099
33100 if test -z "$PKG_CONFIG"; then
33101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
33102 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
33103 fi
33104
33105 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
33106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
33107
33108 If you want a release build with all stable optimizations active (PGO, etc),
33109 please run ./configure --enable-optimizations
33110 " >&5
33111 printf "%s\n" "$as_me:
33112
33113 If you want a release build with all stable optimizations active (PGO, etc),
33114 please run ./configure --enable-optimizations
33115 " >&6;}
33116 fi
33117
33118 if test "x$PY_SUPPORT_TIER" = x0
33119 then :
33120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
33121
33122 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33123 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33124 " >&5
33125 printf "%s\n" "$as_me: WARNING:
33126
33127 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33128 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33129 " >&2;}
33130 fi
33131
33132 if test "$ac_cv_header_stdatomic_h" != "yes"; then
33133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&5
33134 printf "%s\n" "$as_me: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&6;}
33135 fi
33136