Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for python 3.14.
4 #
5 # Report bugs to <https://github.com/python/cpython/issues/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: https://github.com/python/cpython/issues/ about your
275 $0: system, including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='python'
606 PACKAGE_TARNAME='python'
607 PACKAGE_VERSION='3.14'
608 PACKAGE_STRING='python 3.14'
609 PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/'
610 PACKAGE_URL=''
611
612 ac_unique_file="Include/object.h"
613 # Factoring default headers for most tests.
614 ac_includes_default="\
615 #include <stddef.h>
616 #ifdef HAVE_STDIO_H
617 # include <stdio.h>
618 #endif
619 #ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 #endif
622 #ifdef HAVE_STRING_H
623 # include <string.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_STRINGS_H
632 # include <strings.h>
633 #endif
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef HAVE_UNISTD_H
641 # include <unistd.h>
642 #endif"
643
644 ac_header_c_list=
645 ac_subst_vars='LTLIBOBJS
646 MODULE_BLOCK
647 MODULE_XXLIMITED_35_FALSE
648 MODULE_XXLIMITED_35_TRUE
649 MODULE_XXLIMITED_FALSE
650 MODULE_XXLIMITED_TRUE
651 MODULE__CTYPES_TEST_FALSE
652 MODULE__CTYPES_TEST_TRUE
653 MODULE__XXTESTFUZZ_FALSE
654 MODULE__XXTESTFUZZ_TRUE
655 MODULE_XXSUBTYPE_FALSE
656 MODULE_XXSUBTYPE_TRUE
657 MODULE__TESTSINGLEPHASE_FALSE
658 MODULE__TESTSINGLEPHASE_TRUE
659 MODULE__TESTMULTIPHASE_FALSE
660 MODULE__TESTMULTIPHASE_TRUE
661 MODULE__TESTIMPORTMULTIPLE_FALSE
662 MODULE__TESTIMPORTMULTIPLE_TRUE
663 MODULE__TESTBUFFER_FALSE
664 MODULE__TESTBUFFER_TRUE
665 MODULE__TESTINTERNALCAPI_FALSE
666 MODULE__TESTINTERNALCAPI_TRUE
667 MODULE__TESTLIMITEDCAPI_FALSE
668 MODULE__TESTLIMITEDCAPI_TRUE
669 MODULE__TESTCLINIC_LIMITED_FALSE
670 MODULE__TESTCLINIC_LIMITED_TRUE
671 MODULE__TESTCLINIC_FALSE
672 MODULE__TESTCLINIC_TRUE
673 MODULE__TESTCAPI_FALSE
674 MODULE__TESTCAPI_TRUE
675 MODULE__HASHLIB_FALSE
676 MODULE__HASHLIB_TRUE
677 MODULE__SSL_FALSE
678 MODULE__SSL_TRUE
679 MODULE__ZSTD_FALSE
680 MODULE__ZSTD_TRUE
681 MODULE__LZMA_FALSE
682 MODULE__LZMA_TRUE
683 MODULE__BZ2_FALSE
684 MODULE__BZ2_TRUE
685 MODULE_BINASCII_FALSE
686 MODULE_BINASCII_TRUE
687 MODULE_ZLIB_FALSE
688 MODULE_ZLIB_TRUE
689 MODULE__UUID_FALSE
690 MODULE__UUID_TRUE
691 MODULE__TKINTER_FALSE
692 MODULE__TKINTER_TRUE
693 MODULE__SQLITE3_FALSE
694 MODULE__SQLITE3_TRUE
695 MODULE_READLINE_FALSE
696 MODULE_READLINE_TRUE
697 MODULE__GDBM_FALSE
698 MODULE__GDBM_TRUE
699 MODULE__DBM_FALSE
700 MODULE__DBM_TRUE
701 MODULE__DECIMAL_FALSE
702 MODULE__DECIMAL_TRUE
703 MODULE__CURSES_PANEL_FALSE
704 MODULE__CURSES_PANEL_TRUE
705 MODULE__CURSES_FALSE
706 MODULE__CURSES_TRUE
707 MODULE__CTYPES_FALSE
708 MODULE__CTYPES_TRUE
709 MODULE__HMAC_FALSE
710 MODULE__HMAC_TRUE
711 MODULE__BLAKE2_FALSE
712 MODULE__BLAKE2_TRUE
713 MODULE__SHA3_FALSE
714 MODULE__SHA3_TRUE
715 MODULE__SHA2_FALSE
716 MODULE__SHA2_TRUE
717 MODULE__SHA1_FALSE
718 MODULE__SHA1_TRUE
719 MODULE__MD5_FALSE
720 MODULE__MD5_TRUE
721 LIBHACL_LDEPS_LIBTYPE
722 LIBHACL_BLAKE2_SIMD256_OBJS
723 LIBHACL_SIMD256_FLAGS
724 LIBHACL_BLAKE2_SIMD128_OBJS
725 LIBHACL_SIMD128_FLAGS
726 LIBHACL_LDFLAGS
727 LIBHACL_CFLAGS
728 MODULE_UNICODEDATA_FALSE
729 MODULE_UNICODEDATA_TRUE
730 MODULE__MULTIBYTECODEC_FALSE
731 MODULE__MULTIBYTECODEC_TRUE
732 MODULE__CODECS_TW_FALSE
733 MODULE__CODECS_TW_TRUE
734 MODULE__CODECS_KR_FALSE
735 MODULE__CODECS_KR_TRUE
736 MODULE__CODECS_JP_FALSE
737 MODULE__CODECS_JP_TRUE
738 MODULE__CODECS_ISO2022_FALSE
739 MODULE__CODECS_ISO2022_TRUE
740 MODULE__CODECS_HK_FALSE
741 MODULE__CODECS_HK_TRUE
742 MODULE__CODECS_CN_FALSE
743 MODULE__CODECS_CN_TRUE
744 MODULE__ELEMENTTREE_FALSE
745 MODULE__ELEMENTTREE_TRUE
746 MODULE_PYEXPAT_FALSE
747 MODULE_PYEXPAT_TRUE
748 MODULE_TERMIOS_FALSE
749 MODULE_TERMIOS_TRUE
750 MODULE_SYSLOG_FALSE
751 MODULE_SYSLOG_TRUE
752 MODULE__SCPROXY_FALSE
753 MODULE__SCPROXY_TRUE
754 MODULE_RESOURCE_FALSE
755 MODULE_RESOURCE_TRUE
756 MODULE_PWD_FALSE
757 MODULE_PWD_TRUE
758 MODULE_GRP_FALSE
759 MODULE_GRP_TRUE
760 MODULE__SOCKET_FALSE
761 MODULE__SOCKET_TRUE
762 MODULE_MMAP_FALSE
763 MODULE_MMAP_TRUE
764 MODULE_FCNTL_FALSE
765 MODULE_FCNTL_TRUE
766 MODULE__DATETIME_FALSE
767 MODULE__DATETIME_TRUE
768 MODULE_MATH_FALSE
769 MODULE_MATH_TRUE
770 MODULE_CMATH_FALSE
771 MODULE_CMATH_TRUE
772 MODULE__STATISTICS_FALSE
773 MODULE__STATISTICS_TRUE
774 MODULE__POSIXSHMEM_FALSE
775 MODULE__POSIXSHMEM_TRUE
776 MODULE__MULTIPROCESSING_FALSE
777 MODULE__MULTIPROCESSING_TRUE
778 MODULE__ZONEINFO_FALSE
779 MODULE__ZONEINFO_TRUE
780 MODULE__INTERPQUEUES_FALSE
781 MODULE__INTERPQUEUES_TRUE
782 MODULE__INTERPCHANNELS_FALSE
783 MODULE__INTERPCHANNELS_TRUE
784 MODULE__INTERPRETERS_FALSE
785 MODULE__INTERPRETERS_TRUE
786 MODULE__TYPING_FALSE
787 MODULE__TYPING_TRUE
788 MODULE__TYPES_FALSE
789 MODULE__TYPES_TRUE
790 MODULE__STRUCT_FALSE
791 MODULE__STRUCT_TRUE
792 MODULE_SELECT_FALSE
793 MODULE_SELECT_TRUE
794 MODULE__REMOTE_DEBUGGING_FALSE
795 MODULE__REMOTE_DEBUGGING_TRUE
796 MODULE__RANDOM_FALSE
797 MODULE__RANDOM_TRUE
798 MODULE__QUEUE_FALSE
799 MODULE__QUEUE_TRUE
800 MODULE__POSIXSUBPROCESS_FALSE
801 MODULE__POSIXSUBPROCESS_TRUE
802 MODULE__PICKLE_FALSE
803 MODULE__PICKLE_TRUE
804 MODULE__LSPROF_FALSE
805 MODULE__LSPROF_TRUE
806 MODULE__JSON_FALSE
807 MODULE__JSON_TRUE
808 MODULE__HEAPQ_FALSE
809 MODULE__HEAPQ_TRUE
810 MODULE__CSV_FALSE
811 MODULE__CSV_TRUE
812 MODULE__BISECT_FALSE
813 MODULE__BISECT_TRUE
814 MODULE__ASYNCIO_FALSE
815 MODULE__ASYNCIO_TRUE
816 MODULE_ARRAY_FALSE
817 MODULE_ARRAY_TRUE
818 MODULE_TIME_FALSE
819 MODULE_TIME_TRUE
820 MODULE__IO_FALSE
821 MODULE__IO_TRUE
822 MODULE_BUILDTYPE
823 _PYTHREAD_NAME_MAXLEN
824 TEST_MODULES
825 OPENSSL_LDFLAGS
826 OPENSSL_LIBS
827 OPENSSL_INCLUDES
828 ENSUREPIP
829 CFLAGS_CEVAL
830 SRCDIRS
831 THREADHEADERS
832 PANEL_LIBS
833 PANEL_CFLAGS
834 CURSES_LIBS
835 CURSES_CFLAGS
836 LIBEDIT_LIBS
837 LIBEDIT_CFLAGS
838 LIBREADLINE_LIBS
839 LIBREADLINE_CFLAGS
840 WHEEL_PKG_DIR
841 LIBPL
842 PY_ENABLE_SHARED
843 PLATLIBDIR
844 BINLIBDEST
845 LIBPYTHON
846 MODULE_DEPS_SHARED
847 EXT_SUFFIX
848 ALT_SOABI
849 SOABI
850 LIBC
851 LIBM
852 HAVE_GETHOSTBYNAME
853 HAVE_GETHOSTBYNAME_R
854 HAVE_GETHOSTBYNAME_R_3_ARG
855 HAVE_GETHOSTBYNAME_R_5_ARG
856 HAVE_GETHOSTBYNAME_R_6_ARG
857 LIBOBJS
858 LIBZSTD_LIBS
859 LIBZSTD_CFLAGS
860 LIBLZMA_LIBS
861 LIBLZMA_CFLAGS
862 BZIP2_LIBS
863 BZIP2_CFLAGS
864 ZLIB_LIBS
865 ZLIB_CFLAGS
866 TRUE
867 MACHDEP_OBJS
868 DYNLOADFILE
869 DLINCLDIR
870 PLATFORM_OBJS
871 PLATFORM_HEADERS
872 DTRACE_OBJS
873 DTRACE_HEADERS
874 DFLAGS
875 DTRACE
876 INSTALL_MIMALLOC
877 MIMALLOC_HEADERS
878 GDBM_LIBS
879 GDBM_CFLAGS
880 X11_LIBS
881 X11_CFLAGS
882 TCLTK_LIBS
883 TCLTK_CFLAGS
884 LIBSQLITE3_LIBS
885 LIBSQLITE3_CFLAGS
886 LIBMPDEC_INTERNAL
887 LIBMPDEC_LIBS
888 LIBMPDEC_CFLAGS
889 MODULE__CTYPES_MALLOC_CLOSURE
890 LIBFFI_LIBS
891 LIBFFI_CFLAGS
892 LIBEXPAT_INTERNAL
893 LIBEXPAT_CFLAGS
894 TZPATH
895 LIBUUID_LIBS
896 LIBUUID_CFLAGS
897 PERF_TRAMPOLINE_OBJ
898 SHLIBS
899 CFLAGSFORSHARED
900 LINKFORSHARED
901 CCSHARED
902 BLDSHARED
903 LDCXXSHARED
904 LDSHARED
905 SHLIB_SUFFIX
906 DSYMUTIL_PATH
907 DSYMUTIL
908 JIT_STENCILS_H
909 REGEN_JIT_COMMAND
910 UNIVERSAL_ARCH_FLAGS
911 WASM_STDLIB
912 WASM_ASSETS_DIR
913 LDFLAGS_NOLTO
914 LDFLAGS_NODIST
915 CFLAGS_NODIST
916 BASECFLAGS
917 CFLAGS_ALIASING
918 OPT
919 BOLT_APPLY_FLAGS
920 BOLT_INSTRUMENT_FLAGS
921 BOLT_COMMON_FLAGS
922 BOLT_BINARIES
923 MERGE_FDATA
924 LLVM_BOLT
925 PREBOLT_RULE
926 LLVM_PROF_FOUND
927 LLVM_PROFDATA
928 LLVM_PROF_ERR
929 LLVM_PROF_FILE
930 LLVM_PROF_MERGER
931 PGO_PROF_USE_FLAG
932 PGO_PROF_GEN_FLAG
933 LLVM_AR_FOUND
934 LLVM_AR
935 PROFILE_TASK
936 DEF_MAKE_RULE
937 DEF_MAKE_ALL_RULE
938 ABI_THREAD
939 ABIFLAGS
940 LN
941 MKDIR_P
942 INSTALL_DATA
943 INSTALL_SCRIPT
944 INSTALL_PROGRAM
945 ARFLAGS
946 ac_ct_AR
947 AR
948 LINK_PYTHON_OBJS
949 LINK_PYTHON_DEPS
950 LIBRARY_DEPS
951 HOSTRUNNER
952 NODE
953 STATIC_LIBPYTHON
954 GNULD
955 EXPORTSFROM
956 EXPORTSYMS
957 LINKCC
958 LDVERSION
959 RUNSHARED
960 INSTSONAME
961 LDLIBRARYDIR
962 PY3LIBRARY
963 BLDLIBRARY
964 DLLLIBRARY
965 LDLIBRARY
966 LIBRARY
967 BUILDEXEEXT
968 NO_AS_NEEDED
969 _Py_STACK_GROWS_DOWN
970 MULTIARCH_CPPFLAGS
971 PLATFORM_TRIPLET
972 MULTIARCH
973 ac_ct_CXX
974 CXX
975 EGREP
976 SED
977 GREP
978 CPP
979 OBJEXT
980 EXEEXT
981 ac_ct_CC
982 CPPFLAGS
983 LDFLAGS
984 CFLAGS
985 CC
986 HAS_XCRUN
987 IPHONEOS_DEPLOYMENT_TARGET
988 EXPORT_MACOSX_DEPLOYMENT_TARGET
989 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
990 _PYTHON_HOST_PLATFORM
991 APP_STORE_COMPLIANCE_PATCH
992 INSTALLTARGETS
993 FRAMEWORKINSTALLAPPSPREFIX
994 FRAMEWORKUNIXTOOLSPREFIX
995 FRAMEWORKPYTHONW
996 FRAMEWORKALTINSTALLLAST
997 FRAMEWORKALTINSTALLFIRST
998 FRAMEWORKINSTALLLAST
999 FRAMEWORKINSTALLFIRST
1000 RESSRCDIR
1001 PYTHONFRAMEWORKINSTALLNAMEPREFIX
1002 PYTHONFRAMEWORKINSTALLDIR
1003 PYTHONFRAMEWORKPREFIX
1004 PYTHONFRAMEWORKDIR
1005 PYTHONFRAMEWORKIDENTIFIER
1006 PYTHONFRAMEWORK
1007 LIPO_INTEL64_FLAGS
1008 LIPO_32BIT_FLAGS
1009 ARCH_RUN_32BIT
1010 UNIVERSALSDK
1011 host_exec_prefix
1012 host_prefix
1013 MACHDEP
1014 PKG_CONFIG_LIBDIR
1015 PKG_CONFIG_PATH
1016 PKG_CONFIG
1017 CONFIG_ARGS
1018 SOVERSION
1019 VERSION
1020 PYTHON_FOR_REGEN
1021 PYTHON_FOR_BUILD_DEPS
1022 FREEZE_MODULE_DEPS
1023 FREEZE_MODULE
1024 FREEZE_MODULE_BOOTSTRAP_DEPS
1025 FREEZE_MODULE_BOOTSTRAP
1026 PYTHON_FOR_FREEZE
1027 PYTHON_FOR_BUILD
1028 host_os
1029 host_vendor
1030 host_cpu
1031 host
1032 build_os
1033 build_vendor
1034 build_cpu
1035 build
1036 HAS_GIT
1037 GITBRANCH
1038 GITTAG
1039 GITVERSION
1040 BASECPPFLAGS
1041 target_alias
1042 host_alias
1043 build_alias
1044 LIBS
1045 ECHO_T
1046 ECHO_N
1047 ECHO_C
1048 DEFS
1049 mandir
1050 localedir
1051 libdir
1052 psdir
1053 pdfdir
1054 dvidir
1055 htmldir
1056 infodir
1057 docdir
1058 oldincludedir
1059 includedir
1060 runstatedir
1061 localstatedir
1062 sharedstatedir
1063 sysconfdir
1064 datadir
1065 datarootdir
1066 libexecdir
1067 sbindir
1068 bindir
1069 program_transform_name
1070 prefix
1071 exec_prefix
1072 PACKAGE_URL
1073 PACKAGE_BUGREPORT
1074 PACKAGE_STRING
1075 PACKAGE_VERSION
1076 PACKAGE_TARNAME
1077 PACKAGE_NAME
1078 PATH_SEPARATOR
1079 SHELL'
1080 ac_subst_files=''
1081 ac_user_opts='
1082 enable_option_checking
1083 with_build_python
1084 with_pkg_config
1085 enable_universalsdk
1086 with_universal_archs
1087 with_framework_name
1088 enable_framework
1089 with_app_store_compliance
1090 enable_wasm_dynamic_linking
1091 enable_wasm_pthreads
1092 with_suffix
1093 enable_shared
1094 with_static_libpython
1095 enable_profiling
1096 enable_gil
1097 with_pydebug
1098 with_trace_refs
1099 enable_pystats
1100 with_assertions
1101 enable_optimizations
1102 with_lto
1103 enable_bolt
1104 with_strict_overflow
1105 enable_safety
1106 enable_slower_safety
1107 enable_experimental_jit
1108 with_dsymutil
1109 with_address_sanitizer
1110 with_memory_sanitizer
1111 with_undefined_behavior_sanitizer
1112 with_thread_sanitizer
1113 with_hash_algorithm
1114 with_tzpath
1115 with_libs
1116 with_system_expat
1117 with_system_libmpdec
1118 with_decimal_contextvar
1119 enable_loadable_sqlite_extensions
1120 with_dbmliborder
1121 enable_ipv6
1122 with_doc_strings
1123 with_mimalloc
1124 with_pymalloc
1125 with_c_locale_coercion
1126 with_valgrind
1127 with_dtrace
1128 with_libm
1129 with_libc
1130 enable_big_digits
1131 with_platlibdir
1132 with_wheel_pkg_dir
1133 with_readline
1134 with_computed_gotos
1135 with_tail_call_interp
1136 with_remote_debug
1137 with_ensurepip
1138 with_openssl
1139 with_openssl_rpath
1140 with_ssl_default_suites
1141 with_builtin_hashlib_hashes
1142 enable_test_modules
1143 '
1144 ac_precious_vars='build_alias
1145 host_alias
1146 target_alias
1147 PKG_CONFIG
1148 PKG_CONFIG_PATH
1149 PKG_CONFIG_LIBDIR
1150 MACHDEP
1151 CC
1152 CFLAGS
1153 LDFLAGS
1154 LIBS
1155 CPPFLAGS
1156 CPP
1157 PROFILE_TASK
1158 BOLT_COMMON_FLAGS
1159 BOLT_INSTRUMENT_FLAGS
1160 BOLT_APPLY_FLAGS
1161 LIBUUID_CFLAGS
1162 LIBUUID_LIBS
1163 LIBFFI_CFLAGS
1164 LIBFFI_LIBS
1165 LIBMPDEC_CFLAGS
1166 LIBMPDEC_LIBS
1167 LIBSQLITE3_CFLAGS
1168 LIBSQLITE3_LIBS
1169 TCLTK_CFLAGS
1170 TCLTK_LIBS
1171 X11_CFLAGS
1172 X11_LIBS
1173 GDBM_CFLAGS
1174 GDBM_LIBS
1175 ZLIB_CFLAGS
1176 ZLIB_LIBS
1177 BZIP2_CFLAGS
1178 BZIP2_LIBS
1179 LIBLZMA_CFLAGS
1180 LIBLZMA_LIBS
1181 LIBZSTD_CFLAGS
1182 LIBZSTD_LIBS
1183 LIBREADLINE_CFLAGS
1184 LIBREADLINE_LIBS
1185 LIBEDIT_CFLAGS
1186 LIBEDIT_LIBS
1187 CURSES_CFLAGS
1188 CURSES_LIBS
1189 PANEL_CFLAGS
1190 PANEL_LIBS'
1191
1192
1193 # Initialize some variables set by options.
1194 ac_init_help=
1195 ac_init_version=false
1196 ac_unrecognized_opts=
1197 ac_unrecognized_sep=
1198 # The variables have the same names as the options, with
1199 # dashes changed to underlines.
1200 cache_file=/dev/null
1201 exec_prefix=NONE
1202 no_create=
1203 no_recursion=
1204 prefix=NONE
1205 program_prefix=NONE
1206 program_suffix=NONE
1207 program_transform_name=s,x,x,
1208 silent=
1209 site=
1210 srcdir=
1211 verbose=
1212 x_includes=NONE
1213 x_libraries=NONE
1214
1215 # Installation directory options.
1216 # These are left unexpanded so users can "make install exec_prefix=/foo"
1217 # and all the variables that are supposed to be based on exec_prefix
1218 # by default will actually change.
1219 # Use braces instead of parens because sh, perl, etc. also accept them.
1220 # (The list follows the same order as the GNU Coding Standards.)
1221 bindir='${exec_prefix}/bin'
1222 sbindir='${exec_prefix}/sbin'
1223 libexecdir='${exec_prefix}/libexec'
1224 datarootdir='${prefix}/share'
1225 datadir='${datarootdir}'
1226 sysconfdir='${prefix}/etc'
1227 sharedstatedir='${prefix}/com'
1228 localstatedir='${prefix}/var'
1229 runstatedir='${localstatedir}/run'
1230 includedir='${prefix}/include'
1231 oldincludedir='/usr/include'
1232 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1233 infodir='${datarootdir}/info'
1234 htmldir='${docdir}'
1235 dvidir='${docdir}'
1236 pdfdir='${docdir}'
1237 psdir='${docdir}'
1238 libdir='${exec_prefix}/lib'
1239 localedir='${datarootdir}/locale'
1240 mandir='${datarootdir}/man'
1241
1242 ac_prev=
1243 ac_dashdash=
1244 for ac_option
1245 do
1246 # If the previous option needs an argument, assign it.
1247 if test -n "$ac_prev"; then
1248 eval $ac_prev=\$ac_option
1249 ac_prev=
1250 continue
1251 fi
1252
1253 case $ac_option in
1254 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1255 *=) ac_optarg= ;;
1256 *) ac_optarg=yes ;;
1257 esac
1258
1259 case $ac_dashdash$ac_option in
1260 --)
1261 ac_dashdash=yes ;;
1262
1263 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1264 ac_prev=bindir ;;
1265 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1266 bindir=$ac_optarg ;;
1267
1268 -build | --build | --buil | --bui | --bu)
1269 ac_prev=build_alias ;;
1270 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1271 build_alias=$ac_optarg ;;
1272
1273 -cache-file | --cache-file | --cache-fil | --cache-fi \
1274 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1275 ac_prev=cache_file ;;
1276 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1277 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1278 cache_file=$ac_optarg ;;
1279
1280 --config-cache | -C)
1281 cache_file=config.cache ;;
1282
1283 -datadir | --datadir | --datadi | --datad)
1284 ac_prev=datadir ;;
1285 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1286 datadir=$ac_optarg ;;
1287
1288 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1289 | --dataroo | --dataro | --datar)
1290 ac_prev=datarootdir ;;
1291 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1292 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1293 datarootdir=$ac_optarg ;;
1294
1295 -disable-* | --disable-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid feature name: '$ac_useropt'"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304 "enable_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval enable_$ac_useropt=no ;;
1310
1311 -docdir | --docdir | --docdi | --doc | --do)
1312 ac_prev=docdir ;;
1313 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1314 docdir=$ac_optarg ;;
1315
1316 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1317 ac_prev=dvidir ;;
1318 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1319 dvidir=$ac_optarg ;;
1320
1321 -enable-* | --enable-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error $? "invalid feature name: '$ac_useropt'"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330 "enable_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval enable_$ac_useropt=\$ac_optarg ;;
1336
1337 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1338 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1339 | --exec | --exe | --ex)
1340 ac_prev=exec_prefix ;;
1341 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1342 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1343 | --exec=* | --exe=* | --ex=*)
1344 exec_prefix=$ac_optarg ;;
1345
1346 -gas | --gas | --ga | --g)
1347 # Obsolete; use --with-gas.
1348 with_gas=yes ;;
1349
1350 -help | --help | --hel | --he | -h)
1351 ac_init_help=long ;;
1352 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1353 ac_init_help=recursive ;;
1354 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1355 ac_init_help=short ;;
1356
1357 -host | --host | --hos | --ho)
1358 ac_prev=host_alias ;;
1359 -host=* | --host=* | --hos=* | --ho=*)
1360 host_alias=$ac_optarg ;;
1361
1362 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1363 ac_prev=htmldir ;;
1364 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1365 | --ht=*)
1366 htmldir=$ac_optarg ;;
1367
1368 -includedir | --includedir | --includedi | --included | --include \
1369 | --includ | --inclu | --incl | --inc)
1370 ac_prev=includedir ;;
1371 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1372 | --includ=* | --inclu=* | --incl=* | --inc=*)
1373 includedir=$ac_optarg ;;
1374
1375 -infodir | --infodir | --infodi | --infod | --info | --inf)
1376 ac_prev=infodir ;;
1377 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1378 infodir=$ac_optarg ;;
1379
1380 -libdir | --libdir | --libdi | --libd)
1381 ac_prev=libdir ;;
1382 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1383 libdir=$ac_optarg ;;
1384
1385 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1386 | --libexe | --libex | --libe)
1387 ac_prev=libexecdir ;;
1388 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1389 | --libexe=* | --libex=* | --libe=*)
1390 libexecdir=$ac_optarg ;;
1391
1392 -localedir | --localedir | --localedi | --localed | --locale)
1393 ac_prev=localedir ;;
1394 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1395 localedir=$ac_optarg ;;
1396
1397 -localstatedir | --localstatedir | --localstatedi | --localstated \
1398 | --localstate | --localstat | --localsta | --localst | --locals)
1399 ac_prev=localstatedir ;;
1400 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1401 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1402 localstatedir=$ac_optarg ;;
1403
1404 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1405 ac_prev=mandir ;;
1406 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1407 mandir=$ac_optarg ;;
1408
1409 -nfp | --nfp | --nf)
1410 # Obsolete; use --without-fp.
1411 with_fp=no ;;
1412
1413 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1414 | --no-cr | --no-c | -n)
1415 no_create=yes ;;
1416
1417 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1418 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1419 no_recursion=yes ;;
1420
1421 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1422 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1423 | --oldin | --oldi | --old | --ol | --o)
1424 ac_prev=oldincludedir ;;
1425 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1426 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1427 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1428 oldincludedir=$ac_optarg ;;
1429
1430 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1431 ac_prev=prefix ;;
1432 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1433 prefix=$ac_optarg ;;
1434
1435 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1436 | --program-pre | --program-pr | --program-p)
1437 ac_prev=program_prefix ;;
1438 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1439 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1440 program_prefix=$ac_optarg ;;
1441
1442 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1443 | --program-suf | --program-su | --program-s)
1444 ac_prev=program_suffix ;;
1445 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1446 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1447 program_suffix=$ac_optarg ;;
1448
1449 -program-transform-name | --program-transform-name \
1450 | --program-transform-nam | --program-transform-na \
1451 | --program-transform-n | --program-transform- \
1452 | --program-transform | --program-transfor \
1453 | --program-transfo | --program-transf \
1454 | --program-trans | --program-tran \
1455 | --progr-tra | --program-tr | --program-t)
1456 ac_prev=program_transform_name ;;
1457 -program-transform-name=* | --program-transform-name=* \
1458 | --program-transform-nam=* | --program-transform-na=* \
1459 | --program-transform-n=* | --program-transform-=* \
1460 | --program-transform=* | --program-transfor=* \
1461 | --program-transfo=* | --program-transf=* \
1462 | --program-trans=* | --program-tran=* \
1463 | --progr-tra=* | --program-tr=* | --program-t=*)
1464 program_transform_name=$ac_optarg ;;
1465
1466 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1467 ac_prev=pdfdir ;;
1468 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1469 pdfdir=$ac_optarg ;;
1470
1471 -psdir | --psdir | --psdi | --psd | --ps)
1472 ac_prev=psdir ;;
1473 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1474 psdir=$ac_optarg ;;
1475
1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477 | -silent | --silent | --silen | --sile | --sil)
1478 silent=yes ;;
1479
1480 -runstatedir | --runstatedir | --runstatedi | --runstated \
1481 | --runstate | --runstat | --runsta | --runst | --runs \
1482 | --run | --ru | --r)
1483 ac_prev=runstatedir ;;
1484 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1485 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1486 | --run=* | --ru=* | --r=*)
1487 runstatedir=$ac_optarg ;;
1488
1489 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1490 ac_prev=sbindir ;;
1491 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1492 | --sbi=* | --sb=*)
1493 sbindir=$ac_optarg ;;
1494
1495 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1496 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1497 | --sharedst | --shareds | --shared | --share | --shar \
1498 | --sha | --sh)
1499 ac_prev=sharedstatedir ;;
1500 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1501 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1502 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1503 | --sha=* | --sh=*)
1504 sharedstatedir=$ac_optarg ;;
1505
1506 -site | --site | --sit)
1507 ac_prev=site ;;
1508 -site=* | --site=* | --sit=*)
1509 site=$ac_optarg ;;
1510
1511 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1512 ac_prev=srcdir ;;
1513 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1514 srcdir=$ac_optarg ;;
1515
1516 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1517 | --syscon | --sysco | --sysc | --sys | --sy)
1518 ac_prev=sysconfdir ;;
1519 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1520 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1521 sysconfdir=$ac_optarg ;;
1522
1523 -target | --target | --targe | --targ | --tar | --ta | --t)
1524 ac_prev=target_alias ;;
1525 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1526 target_alias=$ac_optarg ;;
1527
1528 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1529 verbose=yes ;;
1530
1531 -version | --version | --versio | --versi | --vers | -V)
1532 ac_init_version=: ;;
1533
1534 -with-* | --with-*)
1535 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1536 # Reject names that are not valid shell variable names.
1537 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1538 as_fn_error $? "invalid package name: '$ac_useropt'"
1539 ac_useropt_orig=$ac_useropt
1540 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1541 case $ac_user_opts in
1542 *"
1543 "with_$ac_useropt"
1544 "*) ;;
1545 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1546 ac_unrecognized_sep=', ';;
1547 esac
1548 eval with_$ac_useropt=\$ac_optarg ;;
1549
1550 -without-* | --without-*)
1551 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1552 # Reject names that are not valid shell variable names.
1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1554 as_fn_error $? "invalid package name: '$ac_useropt'"
1555 ac_useropt_orig=$ac_useropt
1556 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1558 *"
1559 "with_$ac_useropt"
1560 "*) ;;
1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1562 ac_unrecognized_sep=', ';;
1563 esac
1564 eval with_$ac_useropt=no ;;
1565
1566 --x)
1567 # Obsolete; use --with-x.
1568 with_x=yes ;;
1569
1570 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1571 | --x-incl | --x-inc | --x-in | --x-i)
1572 ac_prev=x_includes ;;
1573 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1574 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1575 x_includes=$ac_optarg ;;
1576
1577 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1578 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1579 ac_prev=x_libraries ;;
1580 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1581 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1582 x_libraries=$ac_optarg ;;
1583
1584 -*) as_fn_error $? "unrecognized option: '$ac_option'
1585 Try '$0 --help' for more information"
1586 ;;
1587
1588 *=*)
1589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1590 # Reject names that are not valid shell variable names.
1591 case $ac_envvar in #(
1592 '' | [0-9]* | *[!_$as_cr_alnum]* )
1593 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1594 esac
1595 eval $ac_envvar=\$ac_optarg
1596 export $ac_envvar ;;
1597
1598 *)
1599 # FIXME: should be removed in autoconf 3.0.
1600 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1602 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1603 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1604 ;;
1605
1606 esac
1607 done
1608
1609 if test -n "$ac_prev"; then
1610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1611 as_fn_error $? "missing argument to $ac_option"
1612 fi
1613
1614 if test -n "$ac_unrecognized_opts"; then
1615 case $enable_option_checking in
1616 no) ;;
1617 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1618 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1619 esac
1620 fi
1621
1622 # Check all directory arguments for consistency.
1623 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1624 datadir sysconfdir sharedstatedir localstatedir includedir \
1625 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1626 libdir localedir mandir runstatedir
1627 do
1628 eval ac_val=\$$ac_var
1629 # Remove trailing slashes.
1630 case $ac_val in
1631 */ )
1632 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1633 eval $ac_var=\$ac_val;;
1634 esac
1635 # Be sure to have absolute directory names.
1636 case $ac_val in
1637 [\\/$]* | ?:[\\/]* ) continue;;
1638 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1639 esac
1640 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1641 done
1642
1643 # There might be people who depend on the old broken behavior: '$host'
1644 # used to hold the argument of --host etc.
1645 # FIXME: To remove some day.
1646 build=$build_alias
1647 host=$host_alias
1648 target=$target_alias
1649
1650 # FIXME: To remove some day.
1651 if test "x$host_alias" != x; then
1652 if test "x$build_alias" = x; then
1653 cross_compiling=maybe
1654 elif test "x$build_alias" != "x$host_alias"; then
1655 cross_compiling=yes
1656 fi
1657 fi
1658
1659 ac_tool_prefix=
1660 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1661
1662 test "$silent" = yes && exec 6>/dev/null
1663
1664
1665 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1666 ac_ls_di=`ls -di .` &&
1667 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1668 as_fn_error $? "working directory cannot be determined"
1669 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1670 as_fn_error $? "pwd does not report name of working directory"
1671
1672
1673 # Find the source files, if location was not specified.
1674 if test -z "$srcdir"; then
1675 ac_srcdir_defaulted=yes
1676 # Try the directory containing this script, then the parent directory.
1677 ac_confdir=`$as_dirname -- "$as_myself" ||
1678 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1679 X"$as_myself" : 'X\(//\)[^/]' \| \
1680 X"$as_myself" : 'X\(//\)$' \| \
1681 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1682 printf "%s\n" X"$as_myself" |
1683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1684 s//\1/
1685 q
1686 }
1687 /^X\(\/\/\)[^/].*/{
1688 s//\1/
1689 q
1690 }
1691 /^X\(\/\/\)$/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\).*/{
1696 s//\1/
1697 q
1698 }
1699 s/.*/./; q'`
1700 srcdir=$ac_confdir
1701 if test ! -r "$srcdir/$ac_unique_file"; then
1702 srcdir=..
1703 fi
1704 else
1705 ac_srcdir_defaulted=no
1706 fi
1707 if test ! -r "$srcdir/$ac_unique_file"; then
1708 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1709 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1710 fi
1711 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1712 ac_abs_confdir=`(
1713 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1714 pwd)`
1715 # When building in place, set srcdir=.
1716 if test "$ac_abs_confdir" = "$ac_pwd"; then
1717 srcdir=.
1718 fi
1719 # Remove unnecessary trailing slashes from srcdir.
1720 # Double slashes in file names in object file debugging info
1721 # mess up M-x gdb in Emacs.
1722 case $srcdir in
1723 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1724 esac
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1727 eval ac_env_${ac_var}_value=\$${ac_var}
1728 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1729 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1730 done
1731
1732 #
1733 # Report the --help message.
1734 #
1735 if test "$ac_init_help" = "long"; then
1736 # Omit some internal or obsolete options to make the list less imposing.
1737 # This message is too long to be a string in the A/UX 3.1 sh.
1738 cat <<_ACEOF
1739 'configure' configures python 3.14 to adapt to many kinds of systems.
1740
1741 Usage: $0 [OPTION]... [VAR=VALUE]...
1742
1743 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1744 VAR=VALUE. See below for descriptions of some of the useful variables.
1745
1746 Defaults for the options are specified in brackets.
1747
1748 Configuration:
1749 -h, --help display this help and exit
1750 --help=short display options specific to this package
1751 --help=recursive display the short help of all the included packages
1752 -V, --version display version information and exit
1753 -q, --quiet, --silent do not print 'checking ...' messages
1754 --cache-file=FILE cache test results in FILE [disabled]
1755 -C, --config-cache alias for '--cache-file=config.cache'
1756 -n, --no-create do not create output files
1757 --srcdir=DIR find the sources in DIR [configure dir or '..']
1758
1759 Installation directories:
1760 --prefix=PREFIX install architecture-independent files in PREFIX
1761 [$ac_default_prefix]
1762 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1763 [PREFIX]
1764
1765 By default, 'make install' will install all the files in
1766 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1767 an installation prefix other than '$ac_default_prefix' using '--prefix',
1768 for instance '--prefix=\$HOME'.
1769
1770 For better control, use the options below.
1771
1772 Fine tuning of the installation directories:
1773 --bindir=DIR user executables [EPREFIX/bin]
1774 --sbindir=DIR system admin executables [EPREFIX/sbin]
1775 --libexecdir=DIR program executables [EPREFIX/libexec]
1776 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1777 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1778 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1779 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1780 --libdir=DIR object code libraries [EPREFIX/lib]
1781 --includedir=DIR C header files [PREFIX/include]
1782 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1783 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1784 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1785 --infodir=DIR info documentation [DATAROOTDIR/info]
1786 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1787 --mandir=DIR man documentation [DATAROOTDIR/man]
1788 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1789 --htmldir=DIR html documentation [DOCDIR]
1790 --dvidir=DIR dvi documentation [DOCDIR]
1791 --pdfdir=DIR pdf documentation [DOCDIR]
1792 --psdir=DIR ps documentation [DOCDIR]
1793 _ACEOF
1794
1795 cat <<\_ACEOF
1796
1797 System types:
1798 --build=BUILD configure for building on BUILD [guessed]
1799 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1800 _ACEOF
1801 fi
1802
1803 if test -n "$ac_init_help"; then
1804 case $ac_init_help in
1805 short | recursive ) echo "Configuration of python 3.14:";;
1806 esac
1807 cat <<\_ACEOF
1808
1809 Optional Features:
1810 --disable-option-checking ignore unrecognized --enable/--with options
1811 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1812 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1813 --enable-universalsdk[=SDKDIR]
1814 create a universal binary build. SDKDIR specifies
1815 which macOS SDK should be used to perform the build,
1816 see Mac/README.rst. (default is no)
1817 --enable-framework[=INSTALLDIR]
1818 create a Python.framework rather than a traditional
1819 Unix install. optional INSTALLDIR specifies the
1820 installation path. see Mac/README.rst (default is
1821 no)
1822 --enable-wasm-dynamic-linking
1823 Enable dynamic linking support for WebAssembly
1824 (default is no)
1825 --enable-wasm-pthreads Enable pthread emulation for WebAssembly (default is
1826 no)
1827 --enable-shared enable building a shared Python library (default is
1828 no)
1829 --enable-profiling enable C-level code profiling with gprof (default is
1830 no)
1831 --disable-gil enable support for running without the GIL (default
1832 is no)
1833 --enable-pystats enable internal statistics gathering (default is no)
1834 --enable-optimizations enable expensive, stable optimizations (PGO, etc.)
1835 (default is no)
1836 --enable-bolt enable usage of the llvm-bolt post-link optimizer
1837 (default is no)
1838 --enable-safety enable usage of the security compiler options with
1839 no performance overhead
1840 --enable-slower-safety enable usage of the security compiler options with
1841 performance overhead
1842 --enable-experimental-jit[=no|yes|yes-off|interpreter]
1843 build the experimental just-in-time compiler
1844 (default is no)
1845 --enable-loadable-sqlite-extensions
1846 support loadable extensions in the sqlite3 module,
1847 see Doc/library/sqlite3.rst (default is no)
1848 --enable-ipv6 enable ipv6 (with ipv4) support, see
1849 Doc/library/socket.rst (default is yes if supported)
1850 --enable-big-digits[=15|30]
1851 use big digits (30 or 15 bits) for Python longs
1852 (default is 30)]
1853 --disable-test-modules don't build nor install test modules
1854
1855 Optional Packages:
1856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1858 --with-build-python=python3.14
1859 path to build python binary for cross compiling
1860 (default: _bootstrap_python or python3.14)
1861 --with-pkg-config=[yes|no|check]
1862 use pkg-config to detect build options (default is
1863 check)
1864 --with-universal-archs=ARCH
1865 specify the kind of macOS universal binary that
1866 should be created. This option is only valid when
1867 --enable-universalsdk is set; options are:
1868 ("universal2", "intel-64", "intel-32", "intel",
1869 "32-bit", "64-bit", "3-way", or "all") see
1870 Mac/README.rst
1871 --with-framework-name=FRAMEWORK
1872 specify the name for the python framework on macOS
1873 only valid when --enable-framework is set. see
1874 Mac/README.rst (default is 'Python')
1875 --with-app-store-compliance=[PATCH-FILE]
1876 Enable any patches required for compiliance with app
1877 stores. Optional PATCH-FILE specifies the custom
1878 patch to apply.
1879 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
1880 yes is mapped to '.exe')
1881 --without-static-libpython
1882 do not build libpythonMAJOR.MINOR.a and do not
1883 install python.o (default is yes)
1884 --with-pydebug build with Py_DEBUG defined (default is no)
1885 --with-trace-refs enable tracing references for debugging purpose
1886 (default is no)
1887 --with-assertions build with C assertions enabled (default is no)
1888 --with-lto=[full|thin|no|yes]
1889 enable Link-Time-Optimization in any build (default
1890 is no)
1891 --with-strict-overflow if 'yes', add -fstrict-overflow to CFLAGS, else add
1892 -fno-strict-overflow (default is no)
1893 --with-dsymutil link debug information into final executable with
1894 dsymutil in macOS (default is no)
1895 --with-address-sanitizer
1896 enable AddressSanitizer memory error detector,
1897 'asan' (default is no)
1898 --with-memory-sanitizer enable MemorySanitizer allocation error detector,
1899 'msan' (default is no)
1900 --with-undefined-behavior-sanitizer
1901 enable UndefinedBehaviorSanitizer undefined
1902 behaviour detector, 'ubsan' (default is no)
1903 --with-thread-sanitizer enable ThreadSanitizer data race detector, 'tsan'
1904 (default is no)
1905 --with-hash-algorithm=[fnv|siphash13|siphash24]
1906 select hash algorithm for use in Python/pyhash.c
1907 (default is SipHash13)
1908 --with-tzpath=<list of absolute paths separated by pathsep>
1909 Select the default time zone search path for
1910 zoneinfo.TZPATH
1911 --with-libs='lib1 ...' link against additional libs (default is no)
1912 --with-system-expat build pyexpat module using an installed expat
1913 library, see Doc/library/pyexpat.rst (default is no)
1914 --with-system-libmpdec build _decimal module using an installed mpdecimal
1915 library, see Doc/library/decimal.rst (default is
1916 yes)
1917 --with-decimal-contextvar
1918 build _decimal module using a coroutine-local rather
1919 than a thread-local context (default is yes)
1920 --with-dbmliborder=db1:db2:...
1921 override order to check db backends for dbm; a valid
1922 value is a colon separated string with the backend
1923 names `ndbm', `gdbm' and `bdb'.
1924 --with-doc-strings enable documentation strings (default is yes)
1925 --with-mimalloc build with mimalloc memory allocator (default is yes
1926 if C11 stdatomic.h is available.)
1927 --with-pymalloc enable specialized mallocs (default is yes)
1928 --with-c-locale-coercion
1929 enable C locale coercion to a UTF-8 based locale
1930 (default is yes)
1931 --with-valgrind enable Valgrind support (default is no)
1932 --with-dtrace enable DTrace support (default is no)
1933 --with-libm=STRING override libm math library to STRING (default is
1934 system-dependent)
1935 --with-libc=STRING override libc C library to STRING (default is
1936 system-dependent)
1937 --with-platlibdir=DIRNAME
1938 Python library directory name (default is "lib")
1939 --with-wheel-pkg-dir=PATH
1940 Directory of wheel packages used by ensurepip
1941 (default: none)
1942 --with(out)-readline[=editline|readline|no]
1943 use libedit for backend or disable readline module
1944 --with-computed-gotos enable computed gotos in evaluation loop (enabled by
1945 default on supported compilers)
1946 --with-tail-call-interp enable tail-calling interpreter in evaluation loop
1947 and rest of CPython
1948 --with-remote-debug enable remote debugging support (default is yes)
1949 --with-ensurepip[=install|upgrade|no]
1950 "install" or "upgrade" using bundled pip (default is
1951 upgrade)
1952 --with-openssl=DIR root of the OpenSSL directory
1953 --with-openssl-rpath=[DIR|auto|no]
1954 Set runtime library directory (rpath) for OpenSSL
1955 libraries, no (default): don't set rpath, auto:
1956 auto-detect rpath from --with-openssl and
1957 pkg-config, DIR: set an explicit rpath
1958 --with-ssl-default-suites=[python|openssl|STRING]
1959 override default cipher suites string, python: use
1960 Python's preferred selection (default), openssl:
1961 leave OpenSSL's defaults untouched, STRING: use a
1962 custom string, python and STRING also set TLS 1.2 as
1963 minimum TLS version
1964 --with-builtin-hashlib-hashes=md5,sha1,sha2,sha3,blake2
1965 builtin hash modules, md5, sha1, sha2, sha3 (with
1966 shake), blake2
1967
1968 Some influential environment variables:
1969 PKG_CONFIG path to pkg-config utility
1970 PKG_CONFIG_PATH
1971 directories to add to pkg-config's search path
1972 PKG_CONFIG_LIBDIR
1973 path overriding pkg-config's built-in search path
1974 MACHDEP name for machine-dependent library files
1975 CC C compiler command
1976 CFLAGS C compiler flags
1977 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1978 nonstandard directory <lib dir>
1979 LIBS libraries to pass to the linker, e.g. -l<library>
1980 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1981 you have headers in a nonstandard directory <include dir>
1982 CPP C preprocessor
1983 PROFILE_TASK
1984 Python args for PGO generation task
1985 BOLT_COMMON_FLAGS
1986 Common arguments to llvm-bolt when instrumenting and applying
1987 BOLT_INSTRUMENT_FLAGS
1988 Arguments to llvm-bolt when instrumenting binaries
1989 BOLT_APPLY_FLAGS
1990 Arguments to llvm-bolt when creating a BOLT optimized binary
1991 LIBUUID_CFLAGS
1992 C compiler flags for LIBUUID, overriding pkg-config
1993 LIBUUID_LIBS
1994 linker flags for LIBUUID, overriding pkg-config
1995 LIBFFI_CFLAGS
1996 C compiler flags for LIBFFI, overriding pkg-config
1997 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1998 LIBMPDEC_CFLAGS
1999 C compiler flags for LIBMPDEC, overriding pkg-config
2000 LIBMPDEC_LIBS
2001 linker flags for LIBMPDEC, overriding pkg-config
2002 LIBSQLITE3_CFLAGS
2003 C compiler flags for LIBSQLITE3, overriding pkg-config
2004 LIBSQLITE3_LIBS
2005 linker flags for LIBSQLITE3, overriding pkg-config
2006 TCLTK_CFLAGS
2007 C compiler flags for TCLTK, overriding pkg-config
2008 TCLTK_LIBS linker flags for TCLTK, overriding pkg-config
2009 X11_CFLAGS C compiler flags for X11, overriding pkg-config
2010 X11_LIBS linker flags for X11, overriding pkg-config
2011 GDBM_CFLAGS C compiler flags for gdbm
2012 GDBM_LIBS additional linker flags for gdbm
2013 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2014 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
2015 BZIP2_CFLAGS
2016 C compiler flags for BZIP2, overriding pkg-config
2017 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
2018 LIBLZMA_CFLAGS
2019 C compiler flags for LIBLZMA, overriding pkg-config
2020 LIBLZMA_LIBS
2021 linker flags for LIBLZMA, overriding pkg-config
2022 LIBZSTD_CFLAGS
2023 C compiler flags for LIBZSTD, overriding pkg-config
2024 LIBZSTD_LIBS
2025 linker flags for LIBZSTD, overriding pkg-config
2026 LIBREADLINE_CFLAGS
2027 C compiler flags for LIBREADLINE, overriding pkg-config
2028 LIBREADLINE_LIBS
2029 linker flags for LIBREADLINE, overriding pkg-config
2030 LIBEDIT_CFLAGS
2031 C compiler flags for LIBEDIT, overriding pkg-config
2032 LIBEDIT_LIBS
2033 linker flags for LIBEDIT, overriding pkg-config
2034 CURSES_CFLAGS
2035 C compiler flags for CURSES, overriding pkg-config
2036 CURSES_LIBS linker flags for CURSES, overriding pkg-config
2037 PANEL_CFLAGS
2038 C compiler flags for PANEL, overriding pkg-config
2039 PANEL_LIBS linker flags for PANEL, overriding pkg-config
2040
2041 Use these variables to override the choices made by 'configure' or to help
2042 it to find libraries and programs with nonstandard names/locations.
2043
2044 Report bugs to <https://github.com/python/cpython/issues/>.
2045 _ACEOF
2046 ac_status=$?
2047 fi
2048
2049 if test "$ac_init_help" = "recursive"; then
2050 # If there are subdirs, report their specific --help.
2051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2052 test -d "$ac_dir" ||
2053 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2054 continue
2055 ac_builddir=.
2056
2057 case "$ac_dir" in
2058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2059 *)
2060 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2061 # A ".." for each directory in $ac_dir_suffix.
2062 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2063 case $ac_top_builddir_sub in
2064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2066 esac ;;
2067 esac
2068 ac_abs_top_builddir=$ac_pwd
2069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2070 # for backward compatibility:
2071 ac_top_builddir=$ac_top_build_prefix
2072
2073 case $srcdir in
2074 .) # We are building in place.
2075 ac_srcdir=.
2076 ac_top_srcdir=$ac_top_builddir_sub
2077 ac_abs_top_srcdir=$ac_pwd ;;
2078 [\\/]* | ?:[\\/]* ) # Absolute name.
2079 ac_srcdir=$srcdir$ac_dir_suffix;
2080 ac_top_srcdir=$srcdir
2081 ac_abs_top_srcdir=$srcdir ;;
2082 *) # Relative name.
2083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2084 ac_top_srcdir=$ac_top_build_prefix$srcdir
2085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2086 esac
2087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2088
2089 cd "$ac_dir" || { ac_status=$?; continue; }
2090 # Check for configure.gnu first; this name is used for a wrapper for
2091 # Metaconfig's "Configure" on case-insensitive file systems.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2103 fi
2104
2105 test -n "$ac_init_help" && exit $ac_status
2106 if $ac_init_version; then
2107 cat <<\_ACEOF
2108 python configure 3.14
2109 generated by GNU Autoconf 2.72
2110
2111 Copyright (C) 2023 Free Software Foundation, Inc.
2112 This configure script is free software; the Free Software Foundation
2113 gives unlimited permission to copy, distribute and modify it.
2114 _ACEOF
2115 exit
2116 fi
2117
2118 ## ------------------------ ##
2119 ## Autoconf initialization. ##
2120 ## ------------------------ ##
2121
2122 # ac_fn_c_try_compile LINENO
2123 # --------------------------
2124 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_c_try_compile ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext conftest.beam
2129 if { { ac_try="$ac_compile"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 printf "%s\n" "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext
2148 then :
2149 ac_retval=0
2150 else case e in #(
2151 e) printf "%s\n" "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1 ;;
2155 esac
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160 } # ac_fn_c_try_compile
2161
2162 # ac_fn_c_try_cpp LINENO
2163 # ----------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_c_try_cpp ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2169 case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 printf "%s\n" "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } > conftest.i && {
2184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }
2187 then :
2188 ac_retval=0
2189 else case e in #(
2190 e) printf "%s\n" "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1 ;;
2194 esac
2195 fi
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 as_fn_set_status $ac_retval
2198
2199 } # ac_fn_c_try_cpp
2200
2201 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2202 # -------------------------------------------------------
2203 # Tests whether HEADER exists and can be compiled using the include files in
2204 # INCLUDES, setting the cache variable VAR accordingly.
2205 ac_fn_c_check_header_compile ()
2206 {
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 printf %s "checking for $2... " >&6; }
2210 if eval test \${$3+y}
2211 then :
2212 printf %s "(cached) " >&6
2213 else case e in #(
2214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 #include <$2>
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"
2220 then :
2221 eval "$3=yes"
2222 else case e in #(
2223 e) eval "$3=no" ;;
2224 esac
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2227 esac
2228 fi
2229 eval ac_res=\$$3
2230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 printf "%s\n" "$ac_res" >&6; }
2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233
2234 } # ac_fn_c_check_header_compile
2235
2236 # ac_fn_c_try_link LINENO
2237 # -----------------------
2238 # Try to link conftest.$ac_ext, and return whether this succeeded.
2239 ac_fn_c_try_link ()
2240 {
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2243 if { { ac_try="$ac_link"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 printf "%s\n" "$ac_try_echo"; } >&5
2250 (eval "$ac_link") 2>conftest.err
2251 ac_status=$?
2252 if test -s conftest.err; then
2253 grep -v '^ *+' conftest.err >conftest.er1
2254 cat conftest.er1 >&5
2255 mv -f conftest.er1 conftest.err
2256 fi
2257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258 test $ac_status = 0; } && {
2259 test -z "$ac_c_werror_flag" ||
2260 test ! -s conftest.err
2261 } && test -s conftest$ac_exeext && {
2262 test "$cross_compiling" = yes ||
2263 test -x conftest$ac_exeext
2264 }
2265 then :
2266 ac_retval=0
2267 else case e in #(
2268 e) printf "%s\n" "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 ac_retval=1 ;;
2272 esac
2273 fi
2274 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2275 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2276 # interfere with the next link command; also delete a directory that is
2277 # left behind by Apple's compiler. We do this before executing the actions.
2278 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2281
2282 } # ac_fn_c_try_link
2283
2284 # ac_fn_c_try_run LINENO
2285 # ----------------------
2286 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2287 # executables *can* be run.
2288 ac_fn_c_try_run ()
2289 {
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 if { { ac_try="$ac_link"
2292 case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 printf "%s\n" "$ac_try_echo"; } >&5
2298 (eval "$ac_link") 2>&5
2299 ac_status=$?
2300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2302 { { case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 printf "%s\n" "$ac_try_echo"; } >&5
2308 (eval "$ac_try") 2>&5
2309 ac_status=$?
2310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; }; }
2312 then :
2313 ac_retval=0
2314 else case e in #(
2315 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2316 printf "%s\n" "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319 ac_retval=$ac_status ;;
2320 esac
2321 fi
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 as_fn_set_status $ac_retval
2325
2326 } # ac_fn_c_try_run
2327
2328 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2329 # -------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_c_check_type ()
2333 {
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 printf %s "checking for $2... " >&6; }
2337 if eval test \${$3+y}
2338 then :
2339 printf %s "(cached) " >&6
2340 else case e in #(
2341 e) eval "$3=no"
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2344 $4
2345 int
2346 main (void)
2347 {
2348 if (sizeof ($2))
2349 return 0;
2350 ;
2351 return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"
2355 then :
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2358 $4
2359 int
2360 main (void)
2361 {
2362 if (sizeof (($2)))
2363 return 0;
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"
2369 then :
2370
2371 else case e in #(
2372 e) eval "$3=yes" ;;
2373 esac
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2378 esac
2379 fi
2380 eval ac_res=\$$3
2381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 printf "%s\n" "$ac_res" >&6; }
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384
2385 } # ac_fn_c_check_type
2386
2387 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2388 # --------------------------------------------
2389 # Tries to find the compile-time value of EXPR in a program that includes
2390 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2391 # computed
2392 ac_fn_c_compute_int ()
2393 {
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 if test "$cross_compiling" = yes; then
2396 # Depending upon the size, compute the lo and hi bounds.
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $4
2400 int
2401 main (void)
2402 {
2403 static int test_array [1 - 2 * !(($2) >= 0)];
2404 test_array [0] = 0;
2405 return test_array [0];
2406
2407 ;
2408 return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"
2412 then :
2413 ac_lo=0 ac_mid=0
2414 while :; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $4
2418 int
2419 main (void)
2420 {
2421 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2422 test_array [0] = 0;
2423 return test_array [0];
2424
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"
2430 then :
2431 ac_hi=$ac_mid; break
2432 else case e in #(
2433 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2434 if test $ac_lo -le $ac_mid; then
2435 ac_lo= ac_hi=
2436 break
2437 fi
2438 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2439 esac
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2442 done
2443 else case e in #(
2444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 $4
2447 int
2448 main (void)
2449 {
2450 static int test_array [1 - 2 * !(($2) < 0)];
2451 test_array [0] = 0;
2452 return test_array [0];
2453
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 if ac_fn_c_try_compile "$LINENO"
2459 then :
2460 ac_hi=-1 ac_mid=-1
2461 while :; do
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2464 $4
2465 int
2466 main (void)
2467 {
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2469 test_array [0] = 0;
2470 return test_array [0];
2471
2472 ;
2473 return 0;
2474 }
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"
2477 then :
2478 ac_lo=$ac_mid; break
2479 else case e in #(
2480 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2481 if test $ac_mid -le $ac_hi; then
2482 ac_lo= ac_hi=
2483 break
2484 fi
2485 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2486 esac
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2489 done
2490 else case e in #(
2491 e) ac_lo= ac_hi= ;;
2492 esac
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2495 esac
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 # Binary search between lo and hi bounds.
2499 while test "x$ac_lo" != "x$ac_hi"; do
2500 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 $4
2504 int
2505 main (void)
2506 {
2507 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2508 test_array [0] = 0;
2509 return test_array [0];
2510
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"
2516 then :
2517 ac_hi=$ac_mid
2518 else case e in #(
2519 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2520 esac
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2523 done
2524 case $ac_lo in #((
2525 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2526 '') ac_retval=1 ;;
2527 esac
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 $4
2532 static long int longval (void) { return $2; }
2533 static unsigned long int ulongval (void) { return $2; }
2534 #include <stdio.h>
2535 #include <stdlib.h>
2536 int
2537 main (void)
2538 {
2539
2540 FILE *f = fopen ("conftest.val", "w");
2541 if (! f)
2542 return 1;
2543 if (($2) < 0)
2544 {
2545 long int i = longval ();
2546 if (i != ($2))
2547 return 1;
2548 fprintf (f, "%ld", i);
2549 }
2550 else
2551 {
2552 unsigned long int i = ulongval ();
2553 if (i != ($2))
2554 return 1;
2555 fprintf (f, "%lu", i);
2556 }
2557 /* Do not output a trailing newline, as this causes \r\n confusion
2558 on some platforms. */
2559 return ferror (f) || fclose (f) != 0;
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_c_try_run "$LINENO"
2566 then :
2567 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2568 else case e in #(
2569 e) ac_retval=1 ;;
2570 esac
2571 fi
2572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2573 conftest.$ac_objext conftest.beam conftest.$ac_ext
2574 rm -f conftest.val
2575
2576 fi
2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578 as_fn_set_status $ac_retval
2579
2580 } # ac_fn_c_compute_int
2581
2582 # ac_fn_c_check_func LINENO FUNC VAR
2583 # ----------------------------------
2584 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2585 ac_fn_c_check_func ()
2586 {
2587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2589 printf %s "checking for $2... " >&6; }
2590 if eval test \${$3+y}
2591 then :
2592 printf %s "(cached) " >&6
2593 else case e in #(
2594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2598 #define $2 innocuous_$2
2599
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char $2 (void); below. */
2602
2603 #include <limits.h>
2604 #undef $2
2605
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 (void);
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2619
2620 int
2621 main (void)
2622 {
2623 return $2 ();
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_link "$LINENO"
2629 then :
2630 eval "$3=yes"
2631 else case e in #(
2632 e) eval "$3=no" ;;
2633 esac
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2636 conftest$ac_exeext conftest.$ac_ext ;;
2637 esac
2638 fi
2639 eval ac_res=\$$3
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 printf "%s\n" "$ac_res" >&6; }
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643
2644 } # ac_fn_c_check_func
2645
2646 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2647 # ------------------------------------------------------------------
2648 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2649 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2650 ac_fn_check_decl ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 printf %s "checking whether $as_decl_name is declared... " >&6; }
2656 if eval test \${$3+y}
2657 then :
2658 printf %s "(cached) " >&6
2659 else case e in #(
2660 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2661 eval ac_save_FLAGS=\$$6
2662 as_fn_append $6 " $5"
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2665 $4
2666 int
2667 main (void)
2668 {
2669 #ifndef $as_decl_name
2670 #ifdef __cplusplus
2671 (void) $as_decl_use;
2672 #else
2673 (void) $as_decl_name;
2674 #endif
2675 #endif
2676
2677 ;
2678 return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"
2682 then :
2683 eval "$3=yes"
2684 else case e in #(
2685 e) eval "$3=no" ;;
2686 esac
2687 fi
2688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2689 eval $6=\$ac_save_FLAGS
2690 ;;
2691 esac
2692 fi
2693 eval ac_res=\$$3
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 printf "%s\n" "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697
2698 } # ac_fn_check_decl
2699
2700 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2701 # ----------------------------------------------------
2702 # Tries to find if the field MEMBER exists in type AGGR, after including
2703 # INCLUDES, setting cache variable VAR accordingly.
2704 ac_fn_c_check_member ()
2705 {
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2708 printf %s "checking for $2.$3... " >&6; }
2709 if eval test \${$4+y}
2710 then :
2711 printf %s "(cached) " >&6
2712 else case e in #(
2713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $5
2716 int
2717 main (void)
2718 {
2719 static $2 ac_aggr;
2720 if (ac_aggr.$3)
2721 return 0;
2722 ;
2723 return 0;
2724 }
2725 _ACEOF
2726 if ac_fn_c_try_compile "$LINENO"
2727 then :
2728 eval "$4=yes"
2729 else case e in #(
2730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2732 $5
2733 int
2734 main (void)
2735 {
2736 static $2 ac_aggr;
2737 if (sizeof ac_aggr.$3)
2738 return 0;
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 if ac_fn_c_try_compile "$LINENO"
2744 then :
2745 eval "$4=yes"
2746 else case e in #(
2747 e) eval "$4=no" ;;
2748 esac
2749 fi
2750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2751 esac
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2754 esac
2755 fi
2756 eval ac_res=\$$4
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 printf "%s\n" "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761 } # ac_fn_c_check_member
2762 ac_configure_args_raw=
2763 for ac_arg
2764 do
2765 case $ac_arg in
2766 *\'*)
2767 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2768 esac
2769 as_fn_append ac_configure_args_raw " '$ac_arg'"
2770 done
2771
2772 case $ac_configure_args_raw in
2773 *$as_nl*)
2774 ac_safe_unquote= ;;
2775 *)
2776 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2777 ac_unsafe_a="$ac_unsafe_z#~"
2778 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2779 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2780 esac
2781
2782 cat >config.log <<_ACEOF
2783 This file contains any messages produced by compilers while
2784 running configure, to aid debugging if configure makes a mistake.
2785
2786 It was created by python $as_me 3.14, which was
2787 generated by GNU Autoconf 2.72. Invocation command line was
2788
2789 $ $0$ac_configure_args_raw
2790
2791 _ACEOF
2792 exec 5>>config.log
2793 {
2794 cat <<_ASUNAME
2795 ## --------- ##
2796 ## Platform. ##
2797 ## --------- ##
2798
2799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2804
2805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2806 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2807
2808 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2809 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2811 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2812 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2813 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2814 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2815
2816 _ASUNAME
2817
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 printf "%s\n" "PATH: $as_dir"
2828 done
2829 IFS=$as_save_IFS
2830
2831 } >&5
2832
2833 cat >&5 <<_ACEOF
2834
2835
2836 ## ----------- ##
2837 ## Core tests. ##
2838 ## ----------- ##
2839
2840 _ACEOF
2841
2842
2843 # Keep a trace of the command line.
2844 # Strip out --no-create and --no-recursion so they do not pile up.
2845 # Strip out --silent because we don't want to record it for future runs.
2846 # Also quote any args containing shell meta-characters.
2847 # Make two passes to allow for proper duplicate-argument suppression.
2848 ac_configure_args=
2849 ac_configure_args0=
2850 ac_configure_args1=
2851 ac_must_keep_next=false
2852 for ac_pass in 1 2
2853 do
2854 for ac_arg
2855 do
2856 case $ac_arg in
2857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2859 | -silent | --silent | --silen | --sile | --sil)
2860 continue ;;
2861 *\'*)
2862 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2863 esac
2864 case $ac_pass in
2865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2866 2)
2867 as_fn_append ac_configure_args1 " '$ac_arg'"
2868 if test $ac_must_keep_next = true; then
2869 ac_must_keep_next=false # Got value, back to normal.
2870 else
2871 case $ac_arg in
2872 *=* | --config-cache | -C | -disable-* | --disable-* \
2873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2875 | -with-* | --with-* | -without-* | --without-* | --x)
2876 case "$ac_configure_args0 " in
2877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2878 esac
2879 ;;
2880 -* ) ac_must_keep_next=true ;;
2881 esac
2882 fi
2883 as_fn_append ac_configure_args " '$ac_arg'"
2884 ;;
2885 esac
2886 done
2887 done
2888 { ac_configure_args0=; unset ac_configure_args0;}
2889 { ac_configure_args1=; unset ac_configure_args1;}
2890
2891 # When interrupted or exit'd, cleanup temporary files, and complete
2892 # config.log. We remove comments because anyway the quotes in there
2893 # would cause problems or look ugly.
2894 # WARNING: Use '\'' to represent an apostrophe within the trap.
2895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2896 trap 'exit_status=$?
2897 # Sanitize IFS.
2898 IFS=" "" $as_nl"
2899 # Save into config.log some information that might help in debugging.
2900 {
2901 echo
2902
2903 printf "%s\n" "## ---------------- ##
2904 ## Cache variables. ##
2905 ## ---------------- ##"
2906 echo
2907 # The following way of writing the cache mishandles newlines in values,
2908 (
2909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2910 eval ac_val=\$$ac_var
2911 case $ac_val in #(
2912 *${as_nl}*)
2913 case $ac_var in #(
2914 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2915 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2916 esac
2917 case $ac_var in #(
2918 _ | IFS | as_nl) ;; #(
2919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2920 *) { eval $ac_var=; unset $ac_var;} ;;
2921 esac ;;
2922 esac
2923 done
2924 (set) 2>&1 |
2925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2926 *${as_nl}ac_space=\ *)
2927 sed -n \
2928 "s/'\''/'\''\\\\'\'''\''/g;
2929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2930 ;; #(
2931 *)
2932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2933 ;;
2934 esac |
2935 sort
2936 )
2937 echo
2938
2939 printf "%s\n" "## ----------------- ##
2940 ## Output variables. ##
2941 ## ----------------- ##"
2942 echo
2943 for ac_var in $ac_subst_vars
2944 do
2945 eval ac_val=\$$ac_var
2946 case $ac_val in
2947 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2948 esac
2949 printf "%s\n" "$ac_var='\''$ac_val'\''"
2950 done | sort
2951 echo
2952
2953 if test -n "$ac_subst_files"; then
2954 printf "%s\n" "## ------------------- ##
2955 ## File substitutions. ##
2956 ## ------------------- ##"
2957 echo
2958 for ac_var in $ac_subst_files
2959 do
2960 eval ac_val=\$$ac_var
2961 case $ac_val in
2962 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2963 esac
2964 printf "%s\n" "$ac_var='\''$ac_val'\''"
2965 done | sort
2966 echo
2967 fi
2968
2969 if test -s confdefs.h; then
2970 printf "%s\n" "## ----------- ##
2971 ## confdefs.h. ##
2972 ## ----------- ##"
2973 echo
2974 cat confdefs.h
2975 echo
2976 fi
2977 test "$ac_signal" != 0 &&
2978 printf "%s\n" "$as_me: caught signal $ac_signal"
2979 printf "%s\n" "$as_me: exit $exit_status"
2980 } >&5
2981 rm -f core *.core core.conftest.* &&
2982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2983 exit $exit_status
2984 ' 0
2985 for ac_signal in 1 2 13 15; do
2986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2987 done
2988 ac_signal=0
2989
2990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2991 rm -f -r conftest* confdefs.h
2992
2993 printf "%s\n" "/* confdefs.h */" > confdefs.h
2994
2995 # Predefined preprocessor variables.
2996
2997 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2998
2999 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3000
3001 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3002
3003 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3004
3005 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3006
3007 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3008
3009
3010 # Let the site file select an alternate cache file if it wants to.
3011 # Prefer an explicitly selected file to automatically selected ones.
3012 if test -n "$CONFIG_SITE"; then
3013 ac_site_files="$CONFIG_SITE"
3014 elif test "x$prefix" != xNONE; then
3015 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3016 else
3017 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3018 fi
3019
3020 for ac_site_file in $ac_site_files
3021 do
3022 case $ac_site_file in #(
3023 */*) :
3024 ;; #(
3025 *) :
3026 ac_site_file=./$ac_site_file ;;
3027 esac
3028 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3030 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3031 sed 's/^/| /' "$ac_site_file" >&5
3032 . "$ac_site_file" \
3033 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3034 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3035 as_fn_error $? "failed to load site script $ac_site_file
3036 See 'config.log' for more details" "$LINENO" 5; }
3037 fi
3038 done
3039
3040 if test -r "$cache_file"; then
3041 # Some versions of bash will fail to source /dev/null (special files
3042 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3043 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3045 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3046 case $cache_file in
3047 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3048 *) . "./$cache_file";;
3049 esac
3050 fi
3051 else
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3053 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3054 >$cache_file
3055 fi
3056
3057 # Test code for whether the C compiler supports C89 (global declarations)
3058 ac_c_conftest_c89_globals='
3059 /* Does the compiler advertise C89 conformance?
3060 Do not test the value of __STDC__, because some compilers set it to 0
3061 while being otherwise adequately conformant. */
3062 #if !defined __STDC__
3063 # error "Compiler does not advertise C89 conformance"
3064 #endif
3065
3066 #include <stddef.h>
3067 #include <stdarg.h>
3068 struct stat;
3069 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3070 struct buf { int x; };
3071 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3072 static char *e (char **p, int i)
3073 {
3074 return p[i];
3075 }
3076 static char *f (char * (*g) (char **, int), char **p, ...)
3077 {
3078 char *s;
3079 va_list v;
3080 va_start (v,p);
3081 s = g (p, va_arg (v,int));
3082 va_end (v);
3083 return s;
3084 }
3085
3086 /* C89 style stringification. */
3087 #define noexpand_stringify(a) #a
3088 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3089
3090 /* C89 style token pasting. Exercises some of the corner cases that
3091 e.g. old MSVC gets wrong, but not very hard. */
3092 #define noexpand_concat(a,b) a##b
3093 #define expand_concat(a,b) noexpand_concat(a,b)
3094 extern int vA;
3095 extern int vbee;
3096 #define aye A
3097 #define bee B
3098 int *pvA = &expand_concat(v,aye);
3099 int *pvbee = &noexpand_concat(v,bee);
3100
3101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3102 function prototypes and stuff, but not \xHH hex character constants.
3103 These do not provoke an error unfortunately, instead are silently treated
3104 as an "x". The following induces an error, until -std is added to get
3105 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3106 array size at least. It is necessary to write \x00 == 0 to get something
3107 that is true only with -std. */
3108 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3109
3110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3111 inside strings and character constants. */
3112 #define FOO(x) '\''x'\''
3113 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3114
3115 int test (int i, double x);
3116 struct s1 {int (*f) (int a);};
3117 struct s2 {int (*f) (double a);};
3118 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3119 int, int);'
3120
3121 # Test code for whether the C compiler supports C89 (body of main).
3122 ac_c_conftest_c89_main='
3123 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3124 '
3125
3126 # Test code for whether the C compiler supports C99 (global declarations)
3127 ac_c_conftest_c99_globals='
3128 /* Does the compiler advertise C99 conformance? */
3129 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3130 # error "Compiler does not advertise C99 conformance"
3131 #endif
3132
3133 // See if C++-style comments work.
3134
3135 #include <stdbool.h>
3136 extern int puts (const char *);
3137 extern int printf (const char *, ...);
3138 extern int dprintf (int, const char *, ...);
3139 extern void *malloc (size_t);
3140 extern void free (void *);
3141
3142 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3143 // dprintf is used instead of fprintf to avoid needing to declare
3144 // FILE and stderr.
3145 #define debug(...) dprintf (2, __VA_ARGS__)
3146 #define showlist(...) puts (#__VA_ARGS__)
3147 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3148 static void
3149 test_varargs_macros (void)
3150 {
3151 int x = 1234;
3152 int y = 5678;
3153 debug ("Flag");
3154 debug ("X = %d\n", x);
3155 showlist (The first, second, and third items.);
3156 report (x>y, "x is %d but y is %d", x, y);
3157 }
3158
3159 // Check long long types.
3160 #define BIG64 18446744073709551615ull
3161 #define BIG32 4294967295ul
3162 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3163 #if !BIG_OK
3164 #error "your preprocessor is broken"
3165 #endif
3166 #if BIG_OK
3167 #else
3168 #error "your preprocessor is broken"
3169 #endif
3170 static long long int bignum = -9223372036854775807LL;
3171 static unsigned long long int ubignum = BIG64;
3172
3173 struct incomplete_array
3174 {
3175 int datasize;
3176 double data[];
3177 };
3178
3179 struct named_init {
3180 int number;
3181 const wchar_t *name;
3182 double average;
3183 };
3184
3185 typedef const char *ccp;
3186
3187 static inline int
3188 test_restrict (ccp restrict text)
3189 {
3190 // Iterate through items via the restricted pointer.
3191 // Also check for declarations in for loops.
3192 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3193 continue;
3194 return 0;
3195 }
3196
3197 // Check varargs and va_copy.
3198 static bool
3199 test_varargs (const char *format, ...)
3200 {
3201 va_list args;
3202 va_start (args, format);
3203 va_list args_copy;
3204 va_copy (args_copy, args);
3205
3206 const char *str = "";
3207 int number = 0;
3208 float fnumber = 0;
3209
3210 while (*format)
3211 {
3212 switch (*format++)
3213 {
3214 case '\''s'\'': // string
3215 str = va_arg (args_copy, const char *);
3216 break;
3217 case '\''d'\'': // int
3218 number = va_arg (args_copy, int);
3219 break;
3220 case '\''f'\'': // float
3221 fnumber = va_arg (args_copy, double);
3222 break;
3223 default:
3224 break;
3225 }
3226 }
3227 va_end (args_copy);
3228 va_end (args);
3229
3230 return *str && number && fnumber;
3231 }
3232 '
3233
3234 # Test code for whether the C compiler supports C99 (body of main).
3235 ac_c_conftest_c99_main='
3236 // Check bool.
3237 _Bool success = false;
3238 success |= (argc != 0);
3239
3240 // Check restrict.
3241 if (test_restrict ("String literal") == 0)
3242 success = true;
3243 char *restrict newvar = "Another string";
3244
3245 // Check varargs.
3246 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3247 test_varargs_macros ();
3248
3249 // Check flexible array members.
3250 struct incomplete_array *ia =
3251 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3252 ia->datasize = 10;
3253 for (int i = 0; i < ia->datasize; ++i)
3254 ia->data[i] = i * 1.234;
3255 // Work around memory leak warnings.
3256 free (ia);
3257
3258 // Check named initializers.
3259 struct named_init ni = {
3260 .number = 34,
3261 .name = L"Test wide string",
3262 .average = 543.34343,
3263 };
3264
3265 ni.number = 58;
3266
3267 int dynamic_array[ni.number];
3268 dynamic_array[0] = argv[0][0];
3269 dynamic_array[ni.number - 1] = 543;
3270
3271 // work around unused variable warnings
3272 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3273 || dynamic_array[ni.number - 1] != 543);
3274 '
3275
3276 # Test code for whether the C compiler supports C11 (global declarations)
3277 ac_c_conftest_c11_globals='
3278 /* Does the compiler advertise C11 conformance? */
3279 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3280 # error "Compiler does not advertise C11 conformance"
3281 #endif
3282
3283 // Check _Alignas.
3284 char _Alignas (double) aligned_as_double;
3285 char _Alignas (0) no_special_alignment;
3286 extern char aligned_as_int;
3287 char _Alignas (0) _Alignas (int) aligned_as_int;
3288
3289 // Check _Alignof.
3290 enum
3291 {
3292 int_alignment = _Alignof (int),
3293 int_array_alignment = _Alignof (int[100]),
3294 char_alignment = _Alignof (char)
3295 };
3296 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3297
3298 // Check _Noreturn.
3299 int _Noreturn does_not_return (void) { for (;;) continue; }
3300
3301 // Check _Static_assert.
3302 struct test_static_assert
3303 {
3304 int x;
3305 _Static_assert (sizeof (int) <= sizeof (long int),
3306 "_Static_assert does not work in struct");
3307 long int y;
3308 };
3309
3310 // Check UTF-8 literals.
3311 #define u8 syntax error!
3312 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3313
3314 // Check duplicate typedefs.
3315 typedef long *long_ptr;
3316 typedef long int *long_ptr;
3317 typedef long_ptr long_ptr;
3318
3319 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3320 struct anonymous
3321 {
3322 union {
3323 struct { int i; int j; };
3324 struct { int k; long int l; } w;
3325 };
3326 int m;
3327 } v1;
3328 '
3329
3330 # Test code for whether the C compiler supports C11 (body of main).
3331 ac_c_conftest_c11_main='
3332 _Static_assert ((offsetof (struct anonymous, i)
3333 == offsetof (struct anonymous, w.k)),
3334 "Anonymous union alignment botch");
3335 v1.i = 2;
3336 v1.w.k = 5;
3337 ok |= v1.i != 5;
3338 '
3339
3340 # Test code for whether the C compiler supports C11 (complete).
3341 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3342 ${ac_c_conftest_c99_globals}
3343 ${ac_c_conftest_c11_globals}
3344
3345 int
3346 main (int argc, char **argv)
3347 {
3348 int ok = 0;
3349 ${ac_c_conftest_c89_main}
3350 ${ac_c_conftest_c99_main}
3351 ${ac_c_conftest_c11_main}
3352 return ok;
3353 }
3354 "
3355
3356 # Test code for whether the C compiler supports C99 (complete).
3357 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3358 ${ac_c_conftest_c99_globals}
3359
3360 int
3361 main (int argc, char **argv)
3362 {
3363 int ok = 0;
3364 ${ac_c_conftest_c89_main}
3365 ${ac_c_conftest_c99_main}
3366 return ok;
3367 }
3368 "
3369
3370 # Test code for whether the C compiler supports C89 (complete).
3371 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3372
3373 int
3374 main (int argc, char **argv)
3375 {
3376 int ok = 0;
3377 ${ac_c_conftest_c89_main}
3378 return ok;
3379 }
3380 "
3381
3382 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3383 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3384 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3385 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3386 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3387 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3388 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3389 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3390 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3391 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3392 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3393
3394 # Auxiliary files required by this configure script.
3395 ac_aux_files="install-sh config.guess config.sub"
3396
3397 # Locations in which to look for auxiliary files.
3398 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3399
3400 # Search for a directory containing all of the required auxiliary files,
3401 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3402 # If we don't find one directory that contains all the files we need,
3403 # we report the set of missing files from the *first* directory in
3404 # $ac_aux_dir_candidates and give up.
3405 ac_missing_aux_files=""
3406 ac_first_candidate=:
3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 as_found=false
3410 for as_dir in $ac_aux_dir_candidates
3411 do
3412 IFS=$as_save_IFS
3413 case $as_dir in #(((
3414 '') as_dir=./ ;;
3415 */) ;;
3416 *) as_dir=$as_dir/ ;;
3417 esac
3418 as_found=:
3419
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3421 ac_aux_dir_found=yes
3422 ac_install_sh=
3423 for ac_aux in $ac_aux_files
3424 do
3425 # As a special case, if "install-sh" is required, that requirement
3426 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3427 # and $ac_install_sh is set appropriately for whichever one is found.
3428 if test x"$ac_aux" = x"install-sh"
3429 then
3430 if test -f "${as_dir}install-sh"; then
3431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3432 ac_install_sh="${as_dir}install-sh -c"
3433 elif test -f "${as_dir}install.sh"; then
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3435 ac_install_sh="${as_dir}install.sh -c"
3436 elif test -f "${as_dir}shtool"; then
3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3438 ac_install_sh="${as_dir}shtool install -c"
3439 else
3440 ac_aux_dir_found=no
3441 if $ac_first_candidate; then
3442 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3443 else
3444 break
3445 fi
3446 fi
3447 else
3448 if test -f "${as_dir}${ac_aux}"; then
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3450 else
3451 ac_aux_dir_found=no
3452 if $ac_first_candidate; then
3453 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3454 else
3455 break
3456 fi
3457 fi
3458 fi
3459 done
3460 if test "$ac_aux_dir_found" = yes; then
3461 ac_aux_dir="$as_dir"
3462 break
3463 fi
3464 ac_first_candidate=false
3465
3466 as_found=false
3467 done
3468 IFS=$as_save_IFS
3469 if $as_found
3470 then :
3471
3472 else case e in #(
3473 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3474 esac
3475 fi
3476
3477
3478 # These three variables are undocumented and unsupported,
3479 # and are intended to be withdrawn in a future Autoconf release.
3480 # They can cause serious problems if a builder's source tree is in a directory
3481 # whose full name contains unusual characters.
3482 if test -f "${ac_aux_dir}config.guess"; then
3483 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3484 fi
3485 if test -f "${ac_aux_dir}config.sub"; then
3486 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3487 fi
3488 if test -f "$ac_aux_dir/configure"; then
3489 ac_configure="$SHELL ${ac_aux_dir}configure"
3490 fi
3491
3492 # Check that the precious variables saved in the cache have kept the same
3493 # value.
3494 ac_cache_corrupted=false
3495 for ac_var in $ac_precious_vars; do
3496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3497 eval ac_new_set=\$ac_env_${ac_var}_set
3498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3499 eval ac_new_val=\$ac_env_${ac_var}_value
3500 case $ac_old_set,$ac_new_set in
3501 set,)
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3503 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3504 ac_cache_corrupted=: ;;
3505 ,set)
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3507 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3508 ac_cache_corrupted=: ;;
3509 ,);;
3510 *)
3511 if test "x$ac_old_val" != "x$ac_new_val"; then
3512 # differences in whitespace do not lead to failure.
3513 ac_old_val_w=`echo x $ac_old_val`
3514 ac_new_val_w=`echo x $ac_new_val`
3515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3517 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3518 ac_cache_corrupted=:
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3521 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3522 eval $ac_var=\$ac_old_val
3523 fi
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3525 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3527 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3528 fi;;
3529 esac
3530 # Pass precious variables to config.status.
3531 if test "$ac_new_set" = set; then
3532 case $ac_new_val in
3533 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3534 *) ac_arg=$ac_var=$ac_new_val ;;
3535 esac
3536 case " $ac_configure_args " in
3537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3539 esac
3540 fi
3541 done
3542 if $ac_cache_corrupted; then
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3544 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3546 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3547 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3548 and start over" "$LINENO" 5
3549 fi
3550 ## -------------------- ##
3551 ## Main body of script. ##
3552 ## -------------------- ##
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
3572 # If we're building out-of-tree, we need to make sure the following
3573 # resources get picked up before their $srcdir counterparts.
3574 # Objects/ -> typeslots.inc
3575 # Include/ -> Python.h
3576 # (A side effect of this is that these resources will automatically be
3577 # regenerated when building out-of-tree, regardless of whether or not
3578 # the $srcdir counterpart is up-to-date. This is an acceptable trade
3579 # off.)
3580 BASECPPFLAGS="-IObjects -IInclude -IPython"
3581 else
3582 BASECPPFLAGS=""
3583 fi
3584
3585
3586
3587
3588
3589 if test -e $srcdir/.git
3590 then
3591 # Extract the first word of "git", so it can be a program name with args.
3592 set dummy git; ac_word=$2
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 printf %s "checking for $ac_word... " >&6; }
3595 if test ${ac_cv_prog_HAS_GIT+y}
3596 then :
3597 printf %s "(cached) " >&6
3598 else case e in #(
3599 e) if test -n "$HAS_GIT"; then
3600 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605 IFS=$as_save_IFS
3606 case $as_dir in #(((
3607 '') as_dir=./ ;;
3608 */) ;;
3609 *) as_dir=$as_dir/ ;;
3610 esac
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_HAS_GIT="found"
3614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3615 break 2
3616 fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
3622 fi ;;
3623 esac
3624 fi
3625 HAS_GIT=$ac_cv_prog_HAS_GIT
3626 if test -n "$HAS_GIT"; then
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
3628 printf "%s\n" "$HAS_GIT" >&6; }
3629 else
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 printf "%s\n" "no" >&6; }
3632 fi
3633
3634
3635 else
3636 HAS_GIT=no-repository
3637 fi
3638 if test $HAS_GIT = found
3639 then
3640 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
3641 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
3642 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
3643 else
3644 GITVERSION=""
3645 GITTAG=""
3646 GITBRANCH=""
3647 fi
3648
3649
3650 ac_config_headers="$ac_config_headers pyconfig.h"
3651
3652
3653
3654
3655
3656 # Make sure we can run config.sub.
3657 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3658 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3659
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3661 printf %s "checking build system type... " >&6; }
3662 if test ${ac_cv_build+y}
3663 then :
3664 printf %s "(cached) " >&6
3665 else case e in #(
3666 e) ac_build_alias=$build_alias
3667 test "x$ac_build_alias" = x &&
3668 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3669 test "x$ac_build_alias" = x &&
3670 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3671 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3672 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3673 ;;
3674 esac
3675 fi
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3677 printf "%s\n" "$ac_cv_build" >&6; }
3678 case $ac_cv_build in
3679 *-*-*) ;;
3680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3681 esac
3682 build=$ac_cv_build
3683 ac_save_IFS=$IFS; IFS='-'
3684 set x $ac_cv_build
3685 shift
3686 build_cpu=$1
3687 build_vendor=$2
3688 shift; shift
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3691 build_os=$*
3692 IFS=$ac_save_IFS
3693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3694
3695
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3697 printf %s "checking host system type... " >&6; }
3698 if test ${ac_cv_host+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else case e in #(
3702 e) if test "x$host_alias" = x; then
3703 ac_cv_host=$ac_cv_build
3704 else
3705 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3706 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3707 fi
3708 ;;
3709 esac
3710 fi
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3712 printf "%s\n" "$ac_cv_host" >&6; }
3713 case $ac_cv_host in
3714 *-*-*) ;;
3715 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3716 esac
3717 host=$ac_cv_host
3718 ac_save_IFS=$IFS; IFS='-'
3719 set x $ac_cv_host
3720 shift
3721 host_cpu=$1
3722 host_vendor=$2
3723 shift; shift
3724 # Remember, the first character of IFS is used to create $*,
3725 # except with old shells:
3726 host_os=$*
3727 IFS=$ac_save_IFS
3728 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3729
3730
3731
3732
3733
3734 if test "x$cross_compiling" = xmaybe
3735 then :
3736 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3737
3738 fi
3739
3740 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
3741 rm -f pybuilddir.txt
3742
3743
3744 # Check whether --with-build-python was given.
3745 if test ${with_build_python+y}
3746 then :
3747 withval=$with_build_python;
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5
3749 printf %s "checking for --with-build-python... " >&6; }
3750
3751 if test "x$with_build_python" = xyes
3752 then :
3753 with_build_python=python$PACKAGE_VERSION
3754 fi
3755 if test "x$with_build_python" = xno
3756 then :
3757 as_fn_error $? "invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5
3758 fi
3759
3760 if ! $(command -v "$with_build_python" >/dev/null 2>&1); then
3761 as_fn_error $? "invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5
3762 fi
3763 build_python_ver=$($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
3764 if test "$build_python_ver" != "$PACKAGE_VERSION"; then
3765 as_fn_error $? "\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5
3766 fi
3767 ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python
3768 PYTHON_FOR_FREEZE="$with_build_python"
3769 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) _PYTHON_SYSCONFIGDATA_PATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`) '$with_build_python
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5
3771 printf "%s\n" "$with_build_python" >&6; }
3772
3773 else case e in #(
3774 e)
3775 if test "x$cross_compiling" = xyes
3776 then :
3777 as_fn_error $? "Cross compiling requires --with-build-python" "$LINENO" 5
3778
3779 fi
3780 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
3781 PYTHON_FOR_FREEZE="./_bootstrap_python"
3782
3783 ;;
3784 esac
3785 fi
3786
3787
3788
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5
3790 printf %s "checking for Python interpreter freezing... " >&6; }
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5
3792 printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; }
3793
3794
3795 if test "x$cross_compiling" = xyes
3796 then :
3797
3798 FREEZE_MODULE_BOOTSTRAP='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3799 FREEZE_MODULE_BOOTSTRAP_DEPS='$(srcdir)/Programs/_freeze_module.py'
3800 FREEZE_MODULE='$(FREEZE_MODULE_BOOTSTRAP)'
3801 FREEZE_MODULE_DEPS='$(FREEZE_MODULE_BOOTSTRAP_DEPS)'
3802 PYTHON_FOR_BUILD_DEPS=''
3803
3804 else case e in #(
3805 e)
3806 FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module'
3807 FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module"
3808 FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3809 FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py"
3810 PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)'
3811
3812 ;;
3813 esac
3814 fi
3815
3816
3817
3818
3819
3820
3821 for ac_prog in python$PACKAGE_VERSION python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3 python
3822 do
3823 # Extract the first word of "$ac_prog", so it can be a program name with args.
3824 set dummy $ac_prog; ac_word=$2
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 printf %s "checking for $ac_word... " >&6; }
3827 if test ${ac_cv_prog_PYTHON_FOR_REGEN+y}
3828 then :
3829 printf %s "(cached) " >&6
3830 else case e in #(
3831 e) if test -n "$PYTHON_FOR_REGEN"; then
3832 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837 IFS=$as_save_IFS
3838 case $as_dir in #(((
3839 '') as_dir=./ ;;
3840 */) ;;
3841 *) as_dir=$as_dir/ ;;
3842 esac
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog"
3846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849 done
3850 done
3851 IFS=$as_save_IFS
3852
3853 fi ;;
3854 esac
3855 fi
3856 PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN
3857 if test -n "$PYTHON_FOR_REGEN"; then
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
3859 printf "%s\n" "$PYTHON_FOR_REGEN" >&6; }
3860 else
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 printf "%s\n" "no" >&6; }
3863 fi
3864
3865
3866 test -n "$PYTHON_FOR_REGEN" && break
3867 done
3868 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
3869
3870
3871
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5
3873 printf %s "checking Python for regen version... " >&6; }
3874 if command -v "$PYTHON_FOR_REGEN" >/dev/null 2>&1; then
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5
3876 printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; }
3877 else
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
3879 printf "%s\n" "missing" >&6; }
3880 fi
3881
3882
3883 if test "$prefix" != "/"; then
3884 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
3885 fi
3886
3887
3888
3889
3890 # We don't use PACKAGE_ variables, and they cause conflicts
3891 # with other autoconf-based packages that include Python.h
3892 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
3893 rm confdefs.h
3894 mv confdefs.h.new confdefs.h
3895
3896
3897 VERSION=3.14
3898
3899 # Version number of Python's own shared library file.
3900
3901 SOVERSION=1.0
3902
3903 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3904 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3905 # them.
3906
3907 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3908
3909
3910 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3911 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3912 # them.
3913
3914 printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h
3915
3916
3917 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3918 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3919 # them.
3920
3921 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3922
3923
3924
3925 define_xopen_source=yes
3926
3927 # Arguments passed to configure.
3928
3929 CONFIG_ARGS="$ac_configure_args"
3930
3931
3932 # Check whether --with-pkg-config was given.
3933 if test ${with_pkg_config+y}
3934 then :
3935 withval=$with_pkg_config;
3936 else case e in #(
3937 e) with_pkg_config=check
3938 ;;
3939 esac
3940 fi
3941
3942 case $with_pkg_config in #(
3943 yes|check) :
3944
3945 if test -z "$PKG_CONFIG"; then
3946 { PKG_CONFIG=; unset PKG_CONFIG;}
3947 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
3948 { ac_cv_prog_ac_ct_PKG_CONFIG=; unset ac_cv_prog_ac_ct_PKG_CONFIG;}
3949 fi
3950
3951
3952
3953
3954
3955
3956
3957 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 printf %s "checking for $ac_word... " >&6; }
3963 if test ${ac_cv_path_PKG_CONFIG+y}
3964 then :
3965 printf %s "(cached) " >&6
3966 else case e in #(
3967 e) case $PKG_CONFIG in
3968 [\\/]* | ?:[\\/]*)
3969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3970 ;;
3971 *)
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 case $as_dir in #(((
3977 '') as_dir=./ ;;
3978 */) ;;
3979 *) as_dir=$as_dir/ ;;
3980 esac
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987 done
3988 done
3989 IFS=$as_save_IFS
3990
3991 ;;
3992 esac ;;
3993 esac
3994 fi
3995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3996 if test -n "$PKG_CONFIG"; then
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3998 printf "%s\n" "$PKG_CONFIG" >&6; }
3999 else
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 printf "%s\n" "no" >&6; }
4002 fi
4003
4004
4005 fi
4006 if test -z "$ac_cv_path_PKG_CONFIG"; then
4007 ac_pt_PKG_CONFIG=$PKG_CONFIG
4008 # Extract the first word of "pkg-config", so it can be a program name with args.
4009 set dummy pkg-config; ac_word=$2
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 printf %s "checking for $ac_word... " >&6; }
4012 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4013 then :
4014 printf %s "(cached) " >&6
4015 else case e in #(
4016 e) case $ac_pt_PKG_CONFIG in
4017 [\\/]* | ?:[\\/]*)
4018 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4019 ;;
4020 *)
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 case $as_dir in #(((
4026 '') as_dir=./ ;;
4027 */) ;;
4028 *) as_dir=$as_dir/ ;;
4029 esac
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036 done
4037 done
4038 IFS=$as_save_IFS
4039
4040 ;;
4041 esac ;;
4042 esac
4043 fi
4044 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4045 if test -n "$ac_pt_PKG_CONFIG"; then
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4047 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4048 else
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 printf "%s\n" "no" >&6; }
4051 fi
4052
4053 if test "x$ac_pt_PKG_CONFIG" = x; then
4054 PKG_CONFIG=""
4055 else
4056 case $cross_compiling:$ac_tool_warned in
4057 yes:)
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062 PKG_CONFIG=$ac_pt_PKG_CONFIG
4063 fi
4064 else
4065 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4066 fi
4067
4068 fi
4069 if test -n "$PKG_CONFIG"; then
4070 _pkg_min_version=0.9.0
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4072 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4073 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 printf "%s\n" "yes" >&6; }
4076 else
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 printf "%s\n" "no" >&6; }
4079 PKG_CONFIG=""
4080 fi
4081 fi
4082 ;; #(
4083 no) :
4084
4085 PKG_CONFIG=''
4086 ac_cv_path_ac_pt_PKG_CONFIG=''
4087 ac_cv_prog_ac_ct_PKG_CONFIG=''
4088 ;; #(
4089 *) :
4090 as_fn_error $? "invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5
4091 ;;
4092 esac
4093 if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then
4094 as_fn_error $? "pkg-config is required" "$LINENO" 5]
4095 fi
4096
4097 # Set name for machine-dependent library files
4098
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
4100 printf %s "checking MACHDEP... " >&6; }
4101 if test -z "$MACHDEP"
4102 then
4103 # avoid using uname for cross builds
4104 if test "$cross_compiling" = yes; then
4105 # ac_sys_system and ac_sys_release are used for setting
4106 # a lot of different things including 'define_xopen_source'
4107 # in the case statement below.
4108 case "$host" in
4109 *-*-linux-android*)
4110 ac_sys_system=Linux-android
4111 ;;
4112 *-*-linux*)
4113 ac_sys_system=Linux
4114 ;;
4115 *-*-cygwin*)
4116 ac_sys_system=Cygwin
4117 ;;
4118 *-apple-ios*)
4119 ac_sys_system=iOS
4120 ;;
4121 *-*-darwin*)
4122 ac_sys_system=Darwin
4123 ;;
4124 *-*-vxworks*)
4125 ac_sys_system=VxWorks
4126 ;;
4127 *-*-emscripten)
4128 ac_sys_system=Emscripten
4129 ;;
4130 *-*-wasi*)
4131 ac_sys_system=WASI
4132 ;;
4133 *)
4134 # for now, limit cross builds to known configurations
4135 MACHDEP="unknown"
4136 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4137 esac
4138 ac_sys_release=
4139 else
4140 ac_sys_system=`uname -s`
4141 if test "$ac_sys_system" = "AIX" \
4142 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
4143 ac_sys_release=`uname -v`
4144 else
4145 ac_sys_release=`uname -r`
4146 fi
4147 fi
4148 ac_md_system=`echo $ac_sys_system |
4149 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
4150 ac_md_release=`echo $ac_sys_release |
4151 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
4152 MACHDEP="$ac_md_system$ac_md_release"
4153
4154 case $MACHDEP in
4155 aix*) MACHDEP="aix";;
4156 freebsd*) MACHDEP="freebsd";;
4157 linux-android*) MACHDEP="android";;
4158 linux*) MACHDEP="linux";;
4159 cygwin*) MACHDEP="cygwin";;
4160 darwin*) MACHDEP="darwin";;
4161 '') MACHDEP="unknown";;
4162 esac
4163
4164 if test "$ac_sys_system" = "SunOS"; then
4165 # For Solaris, there isn't an OS version specific macro defined
4166 # in most compilers, so we define one here.
4167 SUNOS_VERSION=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'`
4168
4169 printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h
4170
4171 fi
4172 fi
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
4174 printf "%s\n" "\"$MACHDEP\"" >&6; }
4175
4176
4177 if test -z "$host_prefix"; then
4178 case $ac_sys_system in #(
4179 Emscripten) :
4180 host_prefix=/ ;; #(
4181 *) :
4182 host_prefix='${prefix}'
4183 ;;
4184 esac
4185 fi
4186
4187
4188 if test -z "$host_exec_prefix"; then
4189 case $ac_sys_system in #(
4190 Emscripten) :
4191 host_exec_prefix=$host_prefix ;; #(
4192 *) :
4193 host_exec_prefix='${exec_prefix}'
4194 ;;
4195 esac
4196 fi
4197
4198
4199 # On cross-compile builds, configure will look for a host-specific compiler by
4200 # prepending the user-provided host triple to the required binary name.
4201 #
4202 # On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc",
4203 # which isn't a binary that exists, and isn't very convenient, as it contains the
4204 # iOS version. As the default cross-compiler name won't exist, configure falls
4205 # back to gcc, which *definitely* won't work. We're providing wrapper scripts for
4206 # these tools; the binary names of these scripts are better defaults than "gcc".
4207 # This only requires that the user put the platform scripts folder (e.g.,
4208 # "iOS/Resources/bin") in their path, rather than defining platform-specific
4209 # names/paths for AR, CC, CPP, and CXX explicitly; and if the user forgets to
4210 # either put the platform scripts folder in the path, or specify CC etc,
4211 # configure will fail.
4212 if test -z "$AR"; then
4213 case "$host" in
4214 aarch64-apple-ios*-simulator) AR=arm64-apple-ios-simulator-ar ;;
4215 aarch64-apple-ios*) AR=arm64-apple-ios-ar ;;
4216 x86_64-apple-ios*-simulator) AR=x86_64-apple-ios-simulator-ar ;;
4217 *)
4218 esac
4219 fi
4220 if test -z "$CC"; then
4221 case "$host" in
4222 aarch64-apple-ios*-simulator) CC=arm64-apple-ios-simulator-clang ;;
4223 aarch64-apple-ios*) CC=arm64-apple-ios-clang ;;
4224 x86_64-apple-ios*-simulator) CC=x86_64-apple-ios-simulator-clang ;;
4225 *)
4226 esac
4227 fi
4228 if test -z "$CPP"; then
4229 case "$host" in
4230 aarch64-apple-ios*-simulator) CPP=arm64-apple-ios-simulator-cpp ;;
4231 aarch64-apple-ios*) CPP=arm64-apple-ios-cpp ;;
4232 x86_64-apple-ios*-simulator) CPP=x86_64-apple-ios-simulator-cpp ;;
4233 *)
4234 esac
4235 fi
4236 if test -z "$CXX"; then
4237 case "$host" in
4238 aarch64-apple-ios*-simulator) CXX=arm64-apple-ios-simulator-clang++ ;;
4239 aarch64-apple-ios*) CXX=arm64-apple-ios-clang++ ;;
4240 x86_64-apple-ios*-simulator) CXX=x86_64-apple-ios-simulator-clang++ ;;
4241 *)
4242 esac
4243 fi
4244
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
4246 printf %s "checking for --enable-universalsdk... " >&6; }
4247 # Check whether --enable-universalsdk was given.
4248 if test ${enable_universalsdk+y}
4249 then :
4250 enableval=$enable_universalsdk;
4251 case $enableval in
4252 yes)
4253 # Locate the best usable SDK, see Mac/README for more
4254 # information
4255 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
4256 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
4257 then
4258 enableval=/Developer/SDKs/MacOSX10.4u.sdk
4259 if test ! -d "${enableval}"
4260 then
4261 enableval=/
4262 fi
4263 fi
4264 ;;
4265 esac
4266 case $enableval in
4267 no)
4268 UNIVERSALSDK=
4269 enable_universalsdk=
4270 ;;
4271 *)
4272 UNIVERSALSDK=$enableval
4273 if test ! -d "${UNIVERSALSDK}"
4274 then
4275 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
4276 fi
4277 ;;
4278 esac
4279
4280
4281 else case e in #(
4282 e)
4283 UNIVERSALSDK=
4284 enable_universalsdk=
4285 ;;
4286 esac
4287 fi
4288
4289 if test -n "${UNIVERSALSDK}"
4290 then
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
4292 printf "%s\n" "${UNIVERSALSDK}" >&6; }
4293 else
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 printf "%s\n" "no" >&6; }
4296 fi
4297
4298
4299
4300 ARCH_RUN_32BIT=""
4301
4302 # For backward compatibility reasons we prefer to select '32-bit' if available,
4303 # otherwise use 'intel'
4304 UNIVERSAL_ARCHS="32-bit"
4305 if test "`uname -s`" = "Darwin"
4306 then
4307 if test -n "${UNIVERSALSDK}"
4308 then
4309 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
4310 then
4311 UNIVERSAL_ARCHS="intel"
4312 fi
4313 fi
4314 fi
4315
4316
4317
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
4319 printf %s "checking for --with-universal-archs... " >&6; }
4320
4321 # Check whether --with-universal-archs was given.
4322 if test ${with_universal_archs+y}
4323 then :
4324 withval=$with_universal_archs;
4325 UNIVERSAL_ARCHS="$withval"
4326
4327 fi
4328
4329 if test -n "${UNIVERSALSDK}"
4330 then
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
4332 printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; }
4333 else
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 printf "%s\n" "no" >&6; }
4336 fi
4337
4338
4339 # Check whether --with-framework-name was given.
4340 if test ${with_framework_name+y}
4341 then :
4342 withval=$with_framework_name;
4343 PYTHONFRAMEWORK=${withval}
4344 PYTHONFRAMEWORKDIR=${withval}.framework
4345 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
4346
4347 else case e in #(
4348 e)
4349 PYTHONFRAMEWORK=Python
4350 PYTHONFRAMEWORKDIR=Python.framework
4351 PYTHONFRAMEWORKIDENTIFIER=org.python.python
4352 ;;
4353 esac
4354 fi
4355
4356 # Check whether --enable-framework was given.
4357 if test ${enable_framework+y}
4358 then :
4359 enableval=$enable_framework;
4360 case $enableval in
4361 yes)
4362 case $ac_sys_system in
4363 Darwin) enableval=/Library/Frameworks ;;
4364 iOS) enableval=Apple/iOS/Frameworks/\$\(MULTIARCH\) ;;
4365 *) as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4366 esac
4367 esac
4368
4369 case $enableval in
4370 no)
4371 case $ac_sys_system in
4372 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4373 *)
4374 PYTHONFRAMEWORK=
4375 PYTHONFRAMEWORKDIR=no-framework
4376 PYTHONFRAMEWORKPREFIX=
4377 PYTHONFRAMEWORKINSTALLDIR=
4378 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4379 RESSRCDIR=
4380 FRAMEWORKINSTALLFIRST=
4381 FRAMEWORKINSTALLLAST=
4382 FRAMEWORKALTINSTALLFIRST=
4383 FRAMEWORKALTINSTALLLAST=
4384 FRAMEWORKPYTHONW=
4385 INSTALLTARGETS="commoninstall bininstall maninstall"
4386
4387 if test "x${prefix}" = "xNONE"; then
4388 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4389 else
4390 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4391 fi
4392 enable_framework=
4393 esac
4394 ;;
4395 *)
4396 PYTHONFRAMEWORKPREFIX="${enableval}"
4397 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
4398
4399 case $ac_sys_system in #(
4400 Darwin) :
4401 FRAMEWORKINSTALLFIRST="frameworkinstallversionedstructure"
4402 FRAMEWORKALTINSTALLFIRST="frameworkinstallversionedstructure "
4403 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
4404 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
4405 FRAMEWORKPYTHONW="frameworkpythonw"
4406 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4407 INSTALLTARGETS="commoninstall bininstall maninstall"
4408
4409 if test "x${prefix}" = "xNONE" ; then
4410 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4411
4412 else
4413 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4414 fi
4415
4416 case "${enableval}" in
4417 /System*)
4418 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4419 if test "${prefix}" = "NONE" ; then
4420 # See below
4421 FRAMEWORKUNIXTOOLSPREFIX="/usr"
4422 fi
4423 ;;
4424
4425 /Library*)
4426 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4427 ;;
4428
4429 */Library/Frameworks)
4430 MDIR="`dirname "${enableval}"`"
4431 MDIR="`dirname "${MDIR}"`"
4432 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
4433
4434 if test "${prefix}" = "NONE"; then
4435 # User hasn't specified the
4436 # --prefix option, but wants to install
4437 # the framework in a non-default location,
4438 # ensure that the compatibility links get
4439 # installed relative to that prefix as well
4440 # instead of in /usr/local.
4441 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
4442 fi
4443 ;;
4444
4445 *)
4446 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
4447 ;;
4448 esac
4449
4450 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
4451 PYTHONFRAMEWORKINSTALLNAMEPREFIX=${prefix}
4452 RESSRCDIR=Mac/Resources/framework
4453
4454 # Add files for Mac specific code to the list of output
4455 # files:
4456 ac_config_files="$ac_config_files Mac/Makefile"
4457
4458 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
4459
4460 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
4461
4462 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
4463
4464 ;;
4465 iOS) :
4466 FRAMEWORKINSTALLFIRST="frameworkinstallunversionedstructure"
4467 FRAMEWORKALTINSTALLFIRST="frameworkinstallunversionedstructure "
4468 FRAMEWORKINSTALLLAST="frameworkinstallmobileheaders"
4469 FRAMEWORKALTINSTALLLAST="frameworkinstallmobileheaders"
4470 FRAMEWORKPYTHONW=
4471 INSTALLTARGETS="libinstall inclinstall sharedinstall"
4472
4473 prefix=$PYTHONFRAMEWORKPREFIX
4474 PYTHONFRAMEWORKINSTALLNAMEPREFIX="@rpath/$PYTHONFRAMEWORKDIR"
4475 RESSRCDIR=Apple/iOS/Resources
4476
4477 ac_config_files="$ac_config_files Apple/iOS/Resources/Info.plist"
4478
4479 ;;
4480 *)
4481 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5
4482 ;;
4483 esac
4484 esac
4485
4486 else case e in #(
4487 e)
4488 case $ac_sys_system in
4489 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;;
4490 *)
4491 PYTHONFRAMEWORK=
4492 PYTHONFRAMEWORKDIR=no-framework
4493 PYTHONFRAMEWORKPREFIX=
4494 PYTHONFRAMEWORKINSTALLDIR=
4495 PYTHONFRAMEWORKINSTALLNAMEPREFIX=
4496 RESSRCDIR=
4497 FRAMEWORKINSTALLFIRST=
4498 FRAMEWORKINSTALLLAST=
4499 FRAMEWORKALTINSTALLFIRST=
4500 FRAMEWORKALTINSTALLLAST=
4501 FRAMEWORKPYTHONW=
4502 INSTALLTARGETS="commoninstall bininstall maninstall"
4503 if test "x${prefix}" = "xNONE" ; then
4504 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
4505 else
4506 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
4507 fi
4508 enable_framework=
4509 esac
4510 ;;
4511 esac
4512 fi
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531 printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h
4532
4533
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-app-store-compliance" >&5
4535 printf %s "checking for --with-app-store-compliance... " >&6; }
4536
4537 # Check whether --with-app_store_compliance was given.
4538 if test ${with_app_store_compliance+y}
4539 then :
4540 withval=$with_app_store_compliance;
4541 case "$withval" in
4542 yes)
4543 case $ac_sys_system in
4544 Darwin|iOS)
4545 # iOS is able to share the macOS patch
4546 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
4547 ;;
4548 *) as_fn_error $? "no default app store compliance patch available for $ac_sys_system" "$LINENO" 5 ;;
4549 esac
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
4551 printf "%s\n" "applying default app store compliance patch" >&6; }
4552 ;;
4553 *)
4554 APP_STORE_COMPLIANCE_PATCH="${withval}"
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying custom app store compliance patch" >&5
4556 printf "%s\n" "applying custom app store compliance patch" >&6; }
4557 ;;
4558 esac
4559
4560 else case e in #(
4561 e)
4562 case $ac_sys_system in
4563 iOS)
4564 # Always apply the compliance patch on iOS; we can use the macOS patch
4565 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch"
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5
4567 printf "%s\n" "applying default app store compliance patch" >&6; }
4568 ;;
4569 *)
4570 # No default app compliance patching on any other platform
4571 APP_STORE_COMPLIANCE_PATCH=
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not patching for app store compliance" >&5
4573 printf "%s\n" "not patching for app store compliance" >&6; }
4574 ;;
4575 esac
4576 ;;
4577 esac
4578 fi
4579
4580
4581
4582
4583 if test "$cross_compiling" = yes; then
4584 case "$host" in
4585 *-*-linux*)
4586 case "$host_cpu" in
4587 arm*)
4588 _host_ident=arm
4589 ;;
4590 *)
4591 _host_ident=$host_cpu
4592 esac
4593 ;;
4594 *-*-cygwin*)
4595 _host_ident=
4596 ;;
4597 *-apple-ios*)
4598 _host_os=`echo $host | cut -d '-' -f3`
4599 _host_device=`echo $host | cut -d '-' -f4`
4600 _host_device=${_host_device:=os}
4601
4602 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5
4604 printf %s "checking iOS deployment target... " >&6; }
4605 IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-)
4606 IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0}
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5
4608 printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
4609
4610 case "$host_cpu" in
4611 aarch64)
4612 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphone${_host_device}
4613 ;;
4614 *)
4615 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphone${_host_device}
4616 ;;
4617 esac
4618 ;;
4619 *-*-darwin*)
4620 case "$host_cpu" in
4621 arm*)
4622 _host_ident=arm
4623 ;;
4624 *)
4625 _host_ident=$host_cpu
4626 esac
4627 ;;
4628 *-*-vxworks*)
4629 _host_ident=$host_cpu
4630 ;;
4631 *-*-emscripten)
4632 _host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
4633 ;;
4634 wasm32-*-* | wasm64-*-*)
4635 _host_ident=$host_cpu
4636 ;;
4637 *)
4638 # for now, limit cross builds to known configurations
4639 MACHDEP="unknown"
4640 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
4641 esac
4642 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_ident:+-$_host_ident}"
4643 fi
4644
4645 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
4646 # disable features if it is defined, without any means to access these
4647 # features as extensions. For these systems, we skip the definition of
4648 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
4649 # some feature, make sure there is no alternative way to access this
4650 # feature. Also, when using wildcards, make sure you have verified the
4651 # need for not defining _XOPEN_SOURCE on all systems matching the
4652 # wildcard, and that the wildcard does not include future systems
4653 # (which may remove their limitations).
4654 case $ac_sys_system/$ac_sys_release in
4655 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
4656 # even though select is a POSIX function. Reported by J. Ribbens.
4657 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
4658 # In addition, Stefan Krah confirms that issue #1244610 exists through
4659 # OpenBSD 4.6, but is fixed in 4.7.
4660 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
4661 define_xopen_source=no
4662 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4663 # also defined. This can be overridden by defining _BSD_SOURCE
4664 # As this has a different meaning on Linux, only define it on OpenBSD
4665
4666 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4667
4668 ;;
4669 OpenBSD/*)
4670 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4671 # also defined. This can be overridden by defining _BSD_SOURCE
4672 # As this has a different meaning on Linux, only define it on OpenBSD
4673
4674 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4675
4676 ;;
4677 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
4678 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
4679 # Marc Recht
4680 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
4681 define_xopen_source=no;;
4682 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
4683 # request to enable features supported by the standard as a request
4684 # to disable features not supported by the standard. The best way
4685 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
4686 # entirely and define __EXTENSIONS__ instead.
4687 SunOS/*)
4688 define_xopen_source=no;;
4689 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
4690 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
4691 # Reconfirmed for 7.1.4 by Martin v. Loewis.
4692 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
4693 define_xopen_source=no;;
4694 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
4695 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
4696 SCO_SV/3.2)
4697 define_xopen_source=no;;
4698 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
4699 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
4700 # identifies itself as Darwin/7.*
4701 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4702 # disables platform specific features beyond repair.
4703 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4704 # has no effect, don't bother defining them
4705 Darwin/[6789].*)
4706 define_xopen_source=no;;
4707 Darwin/[12][0-9].*)
4708 define_xopen_source=no;;
4709 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features.
4710 iOS/*)
4711 define_xopen_source=no;;
4712 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
4713 # defining NI_NUMERICHOST.
4714 QNX/6.3.2)
4715 define_xopen_source=no
4716 ;;
4717 # On VxWorks, defining _XOPEN_SOURCE causes compile failures
4718 # in network headers still using system V types.
4719 VxWorks/*)
4720 define_xopen_source=no
4721 ;;
4722
4723 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
4724 # chroot() and other functions
4725 hp*|HP*)
4726 define_xopen_source=no
4727 ;;
4728
4729 esac
4730
4731 if test $define_xopen_source = yes
4732 then
4733 # X/Open 7, incorporating POSIX.1-2008
4734
4735 printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
4736
4737
4738 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
4739 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
4740 # several APIs are not declared. Since this is also needed in some
4741 # cases for HP-UX, we define it globally.
4742
4743 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4744
4745
4746
4747 printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
4748
4749 fi
4750
4751 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
4752 case $ac_sys_system in
4753 hp*|HP*)
4754 define_stdc_a1=yes;;
4755 *)
4756 define_stdc_a1=no;;
4757 esac
4758
4759 if test $define_stdc_a1 = yes
4760 then
4761
4762 printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
4763
4764 fi
4765
4766 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
4767 # it may influence the way we can build extensions, so distutils
4768 # needs to check it
4769
4770
4771 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
4772 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
4773
4774 # Record the value of IPHONEOS_DEPLOYMENT_TARGET enforced by the selected host triple.
4775
4776
4777 # checks for alternative programs
4778
4779 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
4780 # for debug/optimization stuff. BASECFLAGS is for flags that are required
4781 # just to get things to compile and link. Users are free to override OPT
4782 # when running configure or make. The build should not break if they do.
4783 # BASECFLAGS should generally not be messed with, however.
4784
4785 # If the user switches compilers, we can't believe the cache
4786 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
4787 then
4788 as_fn_error $? "cached CC is different -- throw away $cache_file
4789 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
4790 fi
4791
4792 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
4793 # when the compiler supports them, but we don't always want -O2, and
4794 # we set -g later.
4795 if test -z "$CFLAGS"; then
4796 CFLAGS=
4797 fi
4798
4799 case $host in #(
4800 wasm64-*-emscripten) :
4801
4802 as_fn_append CFLAGS " -sMEMORY64=1"
4803 as_fn_append LDFLAGS " -sMEMORY64=1"
4804 ;; #(
4805 *) :
4806 ;;
4807 esac
4808
4809 case $ac_sys_system in #(
4810 iOS) :
4811
4812 as_fn_append CFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4813 as_fn_append LDFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4814 ;; #(
4815 *) :
4816 ;;
4817 esac
4818
4819 if test "$ac_sys_system" = "Darwin"
4820 then
4821 # Extract the first word of "xcrun", so it can be a program name with args.
4822 set dummy xcrun; ac_word=$2
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 printf %s "checking for $ac_word... " >&6; }
4825 if test ${ac_cv_prog_HAS_XCRUN+y}
4826 then :
4827 printf %s "(cached) " >&6
4828 else case e in #(
4829 e) if test -n "$HAS_XCRUN"; then
4830 ac_cv_prog_HAS_XCRUN="$HAS_XCRUN" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 case $as_dir in #(((
4837 '') as_dir=./ ;;
4838 */) ;;
4839 *) as_dir=$as_dir/ ;;
4840 esac
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_HAS_XCRUN="yes"
4844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 test -z "$ac_cv_prog_HAS_XCRUN" && ac_cv_prog_HAS_XCRUN="missing"
4852 fi ;;
4853 esac
4854 fi
4855 HAS_XCRUN=$ac_cv_prog_HAS_XCRUN
4856 if test -n "$HAS_XCRUN"; then
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_XCRUN" >&5
4858 printf "%s\n" "$HAS_XCRUN" >&6; }
4859 else
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 printf "%s\n" "no" >&6; }
4862 fi
4863
4864
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking macOS SDKROOT" >&5
4866 printf %s "checking macOS SDKROOT... " >&6; }
4867 if test -z "$SDKROOT"; then
4868 if test "$HAS_XCRUN" = "yes"; then
4869 SDKROOT=$(xcrun --show-sdk-path)
4870 else
4871 SDKROOT="/"
4872 fi
4873 fi
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDKROOT" >&5
4875 printf "%s\n" "$SDKROOT" >&6; }
4876
4877 # Compiler selection on MacOSX is more complicated than
4878 # AC_PROG_CC can handle, see Mac/README for more
4879 # information
4880 if test -z "${CC}"
4881 then
4882 found_gcc=
4883 found_clang=
4884 as_save_IFS=$IFS; IFS=:
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 if test -x "${as_dir}/gcc"; then
4889 if test -z "${found_gcc}"; then
4890 found_gcc="${as_dir}/gcc"
4891 fi
4892 fi
4893 if test -x "${as_dir}/clang"; then
4894 if test -z "${found_clang}"; then
4895 found_clang="${as_dir}/clang"
4896 fi
4897 fi
4898 done
4899 IFS=$as_save_IFS
4900
4901 if test -n "$found_gcc" -a -n "$found_clang"
4902 then
4903 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
4904 then
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
4906 printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
4907 CC="$found_clang"
4908 CXX="$found_clang++"
4909 fi
4910
4911
4912 elif test -z "$found_gcc" -a -n "$found_clang"
4913 then
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
4915 printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;}
4916 CC="$found_clang"
4917 CXX="$found_clang++"
4918
4919 elif test -z "$found_gcc" -a -z "$found_clang"
4920 then
4921 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
4922 if test -n "${found_clang}"
4923 then
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
4925 printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;}
4926 CC="${found_clang}"
4927 CXX="`/usr/bin/xcrun -find clang++`"
4928
4929 # else: use default behaviour
4930 fi
4931 fi
4932 fi
4933 fi
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948 if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 printf %s "checking for $ac_word... " >&6; }
4953 if test ${ac_cv_prog_CC+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else case e in #(
4957 e) if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 case $as_dir in #(((
4965 '') as_dir=./ ;;
4966 */) ;;
4967 *) as_dir=$as_dir/ ;;
4968 esac
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi ;;
4980 esac
4981 fi
4982 CC=$ac_cv_prog_CC
4983 if test -n "$CC"; then
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 printf "%s\n" "$CC" >&6; }
4986 else
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 printf "%s\n" "no" >&6; }
4989 fi
4990
4991
4992 fi
4993 if test -z "$ac_cv_prog_CC"; then
4994 ac_ct_CC=$CC
4995 # Extract the first word of "gcc", so it can be a program name with args.
4996 set dummy gcc; ac_word=$2
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 printf %s "checking for $ac_word... " >&6; }
4999 if test ${ac_cv_prog_ac_ct_CC+y}
5000 then :
5001 printf %s "(cached) " >&6
5002 else case e in #(
5003 e) if test -n "$ac_ct_CC"; then
5004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 case $as_dir in #(((
5011 '') as_dir=./ ;;
5012 */) ;;
5013 *) as_dir=$as_dir/ ;;
5014 esac
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_ac_ct_CC="gcc"
5018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi ;;
5026 esac
5027 fi
5028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5029 if test -n "$ac_ct_CC"; then
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5031 printf "%s\n" "$ac_ct_CC" >&6; }
5032 else
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 printf "%s\n" "no" >&6; }
5035 fi
5036
5037 if test "x$ac_ct_CC" = x; then
5038 CC=""
5039 else
5040 case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046 CC=$ac_ct_CC
5047 fi
5048 else
5049 CC="$ac_cv_prog_CC"
5050 fi
5051
5052 if test -z "$CC"; then
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}cc; ac_word=$2
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 printf %s "checking for $ac_word... " >&6; }
5058 if test ${ac_cv_prog_CC+y}
5059 then :
5060 printf %s "(cached) " >&6
5061 else case e in #(
5062 e) if test -n "$CC"; then
5063 ac_cv_prog_CC="$CC" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068 IFS=$as_save_IFS
5069 case $as_dir in #(((
5070 '') as_dir=./ ;;
5071 */) ;;
5072 *) as_dir=$as_dir/ ;;
5073 esac
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_CC="${ac_tool_prefix}cc"
5077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi ;;
5085 esac
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5090 printf "%s\n" "$CC" >&6; }
5091 else
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 printf "%s\n" "no" >&6; }
5094 fi
5095
5096
5097 fi
5098 fi
5099 if test -z "$CC"; then
5100 # Extract the first word of "cc", so it can be a program name with args.
5101 set dummy cc; ac_word=$2
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 printf %s "checking for $ac_word... " >&6; }
5104 if test ${ac_cv_prog_CC+y}
5105 then :
5106 printf %s "(cached) " >&6
5107 else case e in #(
5108 e) if test -n "$CC"; then
5109 ac_cv_prog_CC="$CC" # Let the user override the test.
5110 else
5111 ac_prog_rejected=no
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 case $as_dir in #(((
5117 '') as_dir=./ ;;
5118 */) ;;
5119 *) as_dir=$as_dir/ ;;
5120 esac
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5123 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5124 ac_prog_rejected=yes
5125 continue
5126 fi
5127 ac_cv_prog_CC="cc"
5128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 if test $ac_prog_rejected = yes; then
5136 # We found a bogon in the path, so make sure we never use it.
5137 set dummy $ac_cv_prog_CC
5138 shift
5139 if test $# != 0; then
5140 # We chose a different compiler from the bogus one.
5141 # However, it has the same basename, so the bogon will be chosen
5142 # first if we set CC to just the basename; use the full file name.
5143 shift
5144 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5145 fi
5146 fi
5147 fi ;;
5148 esac
5149 fi
5150 CC=$ac_cv_prog_CC
5151 if test -n "$CC"; then
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5153 printf "%s\n" "$CC" >&6; }
5154 else
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 printf "%s\n" "no" >&6; }
5157 fi
5158
5159
5160 fi
5161 if test -z "$CC"; then
5162 if test -n "$ac_tool_prefix"; then
5163 for ac_prog in cl.exe
5164 do
5165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 printf %s "checking for $ac_word... " >&6; }
5169 if test ${ac_cv_prog_CC+y}
5170 then :
5171 printf %s "(cached) " >&6
5172 else case e in #(
5173 e) if test -n "$CC"; then
5174 ac_cv_prog_CC="$CC" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179 IFS=$as_save_IFS
5180 case $as_dir in #(((
5181 '') as_dir=./ ;;
5182 */) ;;
5183 *) as_dir=$as_dir/ ;;
5184 esac
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi ;;
5196 esac
5197 fi
5198 CC=$ac_cv_prog_CC
5199 if test -n "$CC"; then
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5201 printf "%s\n" "$CC" >&6; }
5202 else
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 printf "%s\n" "no" >&6; }
5205 fi
5206
5207
5208 test -n "$CC" && break
5209 done
5210 fi
5211 if test -z "$CC"; then
5212 ac_ct_CC=$CC
5213 for ac_prog in cl.exe
5214 do
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 printf %s "checking for $ac_word... " >&6; }
5219 if test ${ac_cv_prog_ac_ct_CC+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else case e in #(
5223 e) if test -n "$ac_ct_CC"; then
5224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229 IFS=$as_save_IFS
5230 case $as_dir in #(((
5231 '') as_dir=./ ;;
5232 */) ;;
5233 *) as_dir=$as_dir/ ;;
5234 esac
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_ac_ct_CC="$ac_prog"
5238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 fi ;;
5246 esac
5247 fi
5248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5249 if test -n "$ac_ct_CC"; then
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5251 printf "%s\n" "$ac_ct_CC" >&6; }
5252 else
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 printf "%s\n" "no" >&6; }
5255 fi
5256
5257
5258 test -n "$ac_ct_CC" && break
5259 done
5260
5261 if test "x$ac_ct_CC" = x; then
5262 CC=""
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270 CC=$ac_ct_CC
5271 fi
5272 fi
5273
5274 fi
5275 if test -z "$CC"; then
5276 if test -n "$ac_tool_prefix"; then
5277 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}clang; ac_word=$2
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 printf %s "checking for $ac_word... " >&6; }
5281 if test ${ac_cv_prog_CC+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else case e in #(
5285 e) if test -n "$CC"; then
5286 ac_cv_prog_CC="$CC" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 case $as_dir in #(((
5293 '') as_dir=./ ;;
5294 */) ;;
5295 *) as_dir=$as_dir/ ;;
5296 esac
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_CC="${ac_tool_prefix}clang"
5300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 fi ;;
5308 esac
5309 fi
5310 CC=$ac_cv_prog_CC
5311 if test -n "$CC"; then
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5313 printf "%s\n" "$CC" >&6; }
5314 else
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 printf "%s\n" "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_CC"; then
5322 ac_ct_CC=$CC
5323 # Extract the first word of "clang", so it can be a program name with args.
5324 set dummy clang; ac_word=$2
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 printf %s "checking for $ac_word... " >&6; }
5327 if test ${ac_cv_prog_ac_ct_CC+y}
5328 then :
5329 printf %s "(cached) " >&6
5330 else case e in #(
5331 e) if test -n "$ac_ct_CC"; then
5332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 case $as_dir in #(((
5339 '') as_dir=./ ;;
5340 */) ;;
5341 *) as_dir=$as_dir/ ;;
5342 esac
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_CC="clang"
5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5347 break 2
5348 fi
5349 done
5350 done
5351 IFS=$as_save_IFS
5352
5353 fi ;;
5354 esac
5355 fi
5356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5357 if test -n "$ac_ct_CC"; then
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5359 printf "%s\n" "$ac_ct_CC" >&6; }
5360 else
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 printf "%s\n" "no" >&6; }
5363 fi
5364
5365 if test "x$ac_ct_CC" = x; then
5366 CC=""
5367 else
5368 case $cross_compiling:$ac_tool_warned in
5369 yes:)
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374 CC=$ac_ct_CC
5375 fi
5376 else
5377 CC="$ac_cv_prog_CC"
5378 fi
5379
5380 fi
5381
5382
5383 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5384 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5385 as_fn_error $? "no acceptable C compiler found in \$PATH
5386 See 'config.log' for more details" "$LINENO" 5; }
5387
5388 # Provide some information about the compiler.
5389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5390 set X $ac_compile
5391 ac_compiler=$2
5392 for ac_option in --version -v -V -qversion -version; do
5393 { { ac_try="$ac_compiler $ac_option >&5"
5394 case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5399 printf "%s\n" "$ac_try_echo"; } >&5
5400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5401 ac_status=$?
5402 if test -s conftest.err; then
5403 sed '10a\
5404 ... rest of stderr output deleted ...
5405 10q' conftest.err >conftest.er1
5406 cat conftest.er1 >&5
5407 fi
5408 rm -f conftest.er1 conftest.err
5409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411 done
5412
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415
5416 int
5417 main (void)
5418 {
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 ac_clean_files_save=$ac_clean_files
5425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5426 # Try to create an executable without -o first, disregard a.out.
5427 # It will help us diagnose broken compilers, and finding out an intuition
5428 # of exeext.
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5430 printf %s "checking whether the C compiler works... " >&6; }
5431 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5432
5433 # The possible output files:
5434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5435
5436 ac_rmfiles=
5437 for ac_file in $ac_files
5438 do
5439 case $ac_file in
5440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5442 esac
5443 done
5444 rm -f $ac_rmfiles
5445
5446 if { { ac_try="$ac_link_default"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5452 printf "%s\n" "$ac_try_echo"; } >&5
5453 (eval "$ac_link_default") 2>&5
5454 ac_status=$?
5455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }
5457 then :
5458 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5459 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5460 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5461 # so that the user can short-circuit this test for compilers unknown to
5462 # Autoconf.
5463 for ac_file in $ac_files ''
5464 do
5465 test -f "$ac_file" || continue
5466 case $ac_file in
5467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5468 ;;
5469 [ab].out )
5470 # We found the default executable, but exeext='' is most
5471 # certainly right.
5472 break;;
5473 *.* )
5474 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5475 then :; else
5476 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5477 fi
5478 # We set ac_cv_exeext here because the later test for it is not
5479 # safe: cross compilers may not add the suffix if given an '-o'
5480 # argument, so we may need to know it at that point already.
5481 # Even if this section looks crufty: it has the advantage of
5482 # actually working.
5483 break;;
5484 * )
5485 break;;
5486 esac
5487 done
5488 test "$ac_cv_exeext" = no && ac_cv_exeext=
5489
5490 else case e in #(
5491 e) ac_file='' ;;
5492 esac
5493 fi
5494 if test -z "$ac_file"
5495 then :
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 printf "%s\n" "no" >&6; }
5498 printf "%s\n" "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5502 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5503 as_fn_error 77 "C compiler cannot create executables
5504 See 'config.log' for more details" "$LINENO" 5; }
5505 else case e in #(
5506 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 printf "%s\n" "yes" >&6; } ;;
5508 esac
5509 fi
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5511 printf %s "checking for C compiler default output file name... " >&6; }
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5513 printf "%s\n" "$ac_file" >&6; }
5514 ac_exeext=$ac_cv_exeext
5515
5516 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5517 ac_clean_files=$ac_clean_files_save
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5519 printf %s "checking for suffix of executables... " >&6; }
5520 if { { ac_try="$ac_link"
5521 case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524 esac
5525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5526 printf "%s\n" "$ac_try_echo"; } >&5
5527 (eval "$ac_link") 2>&5
5528 ac_status=$?
5529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5530 test $ac_status = 0; }
5531 then :
5532 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5533 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5534 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5535 # 'rm'.
5536 for ac_file in conftest.exe conftest conftest.*; do
5537 test -f "$ac_file" || continue
5538 case $ac_file in
5539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5541 break;;
5542 * ) break;;
5543 esac
5544 done
5545 else case e in #(
5546 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5547 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5548 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5549 See 'config.log' for more details" "$LINENO" 5; } ;;
5550 esac
5551 fi
5552 rm -f conftest conftest$ac_cv_exeext
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5554 printf "%s\n" "$ac_cv_exeext" >&6; }
5555
5556 rm -f conftest.$ac_ext
5557 EXEEXT=$ac_cv_exeext
5558 ac_exeext=$EXEEXT
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <stdio.h>
5562 int
5563 main (void)
5564 {
5565 FILE *f = fopen ("conftest.out", "w");
5566 if (!f)
5567 return 1;
5568 return ferror (f) || fclose (f) != 0;
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 ac_clean_files="$ac_clean_files conftest.out"
5575 # Check that the compiler produces executables we can run. If not, either
5576 # the compiler is broken, or we cross compile.
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5578 printf %s "checking whether we are cross compiling... " >&6; }
5579 if test "$cross_compiling" != yes; then
5580 { { ac_try="$ac_link"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5586 printf "%s\n" "$ac_try_echo"; } >&5
5587 (eval "$ac_link") 2>&5
5588 ac_status=$?
5589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; }
5591 if { ac_try='./conftest$ac_cv_exeext'
5592 { { case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5597 printf "%s\n" "$ac_try_echo"; } >&5
5598 (eval "$ac_try") 2>&5
5599 ac_status=$?
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }; }; then
5602 cross_compiling=no
5603 else
5604 if test "$cross_compiling" = maybe; then
5605 cross_compiling=yes
5606 else
5607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5608 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5609 as_fn_error 77 "cannot run C compiled programs.
5610 If you meant to cross compile, use '--host'.
5611 See 'config.log' for more details" "$LINENO" 5; }
5612 fi
5613 fi
5614 fi
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5616 printf "%s\n" "$cross_compiling" >&6; }
5617
5618 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5619 conftest.o conftest.obj conftest.out
5620 ac_clean_files=$ac_clean_files_save
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5622 printf %s "checking for suffix of object files... " >&6; }
5623 if test ${ac_cv_objext+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629
5630 int
5631 main (void)
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.o conftest.obj
5639 if { { ac_try="$ac_compile"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5645 printf "%s\n" "$ac_try_echo"; } >&5
5646 (eval "$ac_compile") 2>&5
5647 ac_status=$?
5648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }
5650 then :
5651 for ac_file in conftest.o conftest.obj conftest.*; do
5652 test -f "$ac_file" || continue;
5653 case $ac_file in
5654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5656 break;;
5657 esac
5658 done
5659 else case e in #(
5660 e) printf "%s\n" "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5664 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5665 as_fn_error $? "cannot compute suffix of object files: cannot compile
5666 See 'config.log' for more details" "$LINENO" 5; } ;;
5667 esac
5668 fi
5669 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5670 esac
5671 fi
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5673 printf "%s\n" "$ac_cv_objext" >&6; }
5674 OBJEXT=$ac_cv_objext
5675 ac_objext=$OBJEXT
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5677 printf %s "checking whether the compiler supports GNU C... " >&6; }
5678 if test ${ac_cv_c_compiler_gnu+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else case e in #(
5682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 int
5686 main (void)
5687 {
5688 #ifndef __GNUC__
5689 choke me
5690 #endif
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"
5697 then :
5698 ac_compiler_gnu=yes
5699 else case e in #(
5700 e) ac_compiler_gnu=no ;;
5701 esac
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5705 ;;
5706 esac
5707 fi
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5709 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711
5712 if test $ac_compiler_gnu = yes; then
5713 GCC=yes
5714 else
5715 GCC=
5716 fi
5717 ac_test_CFLAGS=${CFLAGS+y}
5718 ac_save_CFLAGS=$CFLAGS
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5720 printf %s "checking whether $CC accepts -g... " >&6; }
5721 if test ${ac_cv_prog_cc_g+y}
5722 then :
5723 printf %s "(cached) " >&6
5724 else case e in #(
5725 e) ac_save_c_werror_flag=$ac_c_werror_flag
5726 ac_c_werror_flag=yes
5727 ac_cv_prog_cc_g=no
5728 CFLAGS="-g"
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 int
5733 main (void)
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
5742 ac_cv_prog_cc_g=yes
5743 else case e in #(
5744 e) CFLAGS=""
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747
5748 int
5749 main (void)
5750 {
5751
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 if ac_fn_c_try_compile "$LINENO"
5757 then :
5758
5759 else case e in #(
5760 e) ac_c_werror_flag=$ac_save_c_werror_flag
5761 CFLAGS="-g"
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764
5765 int
5766 main (void)
5767 {
5768
5769 ;
5770 return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"
5774 then :
5775 ac_cv_prog_cc_g=yes
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5778 esac
5779 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5781 esac
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5784 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5785 esac
5786 fi
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5788 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5789 if test $ac_test_CFLAGS; then
5790 CFLAGS=$ac_save_CFLAGS
5791 elif test $ac_cv_prog_cc_g = yes; then
5792 if test "$GCC" = yes; then
5793 CFLAGS="-g -O2"
5794 else
5795 CFLAGS="-g"
5796 fi
5797 else
5798 if test "$GCC" = yes; then
5799 CFLAGS="-O2"
5800 else
5801 CFLAGS=
5802 fi
5803 fi
5804 ac_prog_cc_stdc=no
5805 if test x$ac_prog_cc_stdc = xno
5806 then :
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5808 printf %s "checking for $CC option to enable C11 features... " >&6; }
5809 if test ${ac_cv_prog_cc_c11+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else case e in #(
5813 e) ac_cv_prog_cc_c11=no
5814 ac_save_CC=$CC
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 $ac_c_conftest_c11_program
5818 _ACEOF
5819 for ac_arg in '' -std=gnu11
5820 do
5821 CC="$ac_save_CC $ac_arg"
5822 if ac_fn_c_try_compile "$LINENO"
5823 then :
5824 ac_cv_prog_cc_c11=$ac_arg
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.beam
5827 test "x$ac_cv_prog_cc_c11" != "xno" && break
5828 done
5829 rm -f conftest.$ac_ext
5830 CC=$ac_save_CC ;;
5831 esac
5832 fi
5833
5834 if test "x$ac_cv_prog_cc_c11" = xno
5835 then :
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5837 printf "%s\n" "unsupported" >&6; }
5838 else case e in #(
5839 e) if test "x$ac_cv_prog_cc_c11" = x
5840 then :
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5842 printf "%s\n" "none needed" >&6; }
5843 else case e in #(
5844 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5845 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5846 CC="$CC $ac_cv_prog_cc_c11" ;;
5847 esac
5848 fi
5849 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5850 ac_prog_cc_stdc=c11 ;;
5851 esac
5852 fi
5853 fi
5854 if test x$ac_prog_cc_stdc = xno
5855 then :
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5857 printf %s "checking for $CC option to enable C99 features... " >&6; }
5858 if test ${ac_cv_prog_cc_c99+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else case e in #(
5862 e) ac_cv_prog_cc_c99=no
5863 ac_save_CC=$CC
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 $ac_c_conftest_c99_program
5867 _ACEOF
5868 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5869 do
5870 CC="$ac_save_CC $ac_arg"
5871 if ac_fn_c_try_compile "$LINENO"
5872 then :
5873 ac_cv_prog_cc_c99=$ac_arg
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.beam
5876 test "x$ac_cv_prog_cc_c99" != "xno" && break
5877 done
5878 rm -f conftest.$ac_ext
5879 CC=$ac_save_CC ;;
5880 esac
5881 fi
5882
5883 if test "x$ac_cv_prog_cc_c99" = xno
5884 then :
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5886 printf "%s\n" "unsupported" >&6; }
5887 else case e in #(
5888 e) if test "x$ac_cv_prog_cc_c99" = x
5889 then :
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5891 printf "%s\n" "none needed" >&6; }
5892 else case e in #(
5893 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5894 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5895 CC="$CC $ac_cv_prog_cc_c99" ;;
5896 esac
5897 fi
5898 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5899 ac_prog_cc_stdc=c99 ;;
5900 esac
5901 fi
5902 fi
5903 if test x$ac_prog_cc_stdc = xno
5904 then :
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5906 printf %s "checking for $CC option to enable C89 features... " >&6; }
5907 if test ${ac_cv_prog_cc_c89+y}
5908 then :
5909 printf %s "(cached) " >&6
5910 else case e in #(
5911 e) ac_cv_prog_cc_c89=no
5912 ac_save_CC=$CC
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 $ac_c_conftest_c89_program
5916 _ACEOF
5917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5918 do
5919 CC="$ac_save_CC $ac_arg"
5920 if ac_fn_c_try_compile "$LINENO"
5921 then :
5922 ac_cv_prog_cc_c89=$ac_arg
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.beam
5925 test "x$ac_cv_prog_cc_c89" != "xno" && break
5926 done
5927 rm -f conftest.$ac_ext
5928 CC=$ac_save_CC ;;
5929 esac
5930 fi
5931
5932 if test "x$ac_cv_prog_cc_c89" = xno
5933 then :
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5935 printf "%s\n" "unsupported" >&6; }
5936 else case e in #(
5937 e) if test "x$ac_cv_prog_cc_c89" = x
5938 then :
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5940 printf "%s\n" "none needed" >&6; }
5941 else case e in #(
5942 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5943 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5944 CC="$CC $ac_cv_prog_cc_c89" ;;
5945 esac
5946 fi
5947 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5948 ac_prog_cc_stdc=c89 ;;
5949 esac
5950 fi
5951 fi
5952
5953 ac_ext=c
5954 ac_cpp='$CPP $CPPFLAGS'
5955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959 ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5965 printf %s "checking how to run the C preprocessor... " >&6; }
5966 # On Suns, sometimes $CPP names a directory.
5967 if test -n "$CPP" && test -d "$CPP"; then
5968 CPP=
5969 fi
5970 if test -z "$CPP"; then
5971 if test ${ac_cv_prog_CPP+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else case e in #(
5975 e) # Double quotes because $CC needs to be expanded
5976 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5977 do
5978 ac_preproc_ok=false
5979 for ac_c_preproc_warn_flag in '' yes
5980 do
5981 # Use a header file that comes with gcc, so configuring glibc
5982 # with a fresh cross-compiler works.
5983 # On the NeXT, cc -E runs the code through the compiler's parser,
5984 # not just through cpp. "Syntax error" is here to catch this case.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <limits.h>
5988 Syntax error
5989 _ACEOF
5990 if ac_fn_c_try_cpp "$LINENO"
5991 then :
5992
5993 else case e in #(
5994 e) # Broken: fails on valid input.
5995 continue ;;
5996 esac
5997 fi
5998 rm -f conftest.err conftest.i conftest.$ac_ext
5999
6000 # OK, works on sane cases. Now check whether nonexistent headers
6001 # can be detected and how.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <ac_nonexistent.h>
6005 _ACEOF
6006 if ac_fn_c_try_cpp "$LINENO"
6007 then :
6008 # Broken: success on invalid input.
6009 continue
6010 else case e in #(
6011 e) # Passes both tests.
6012 ac_preproc_ok=:
6013 break ;;
6014 esac
6015 fi
6016 rm -f conftest.err conftest.i conftest.$ac_ext
6017
6018 done
6019 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6020 rm -f conftest.i conftest.err conftest.$ac_ext
6021 if $ac_preproc_ok
6022 then :
6023 break
6024 fi
6025
6026 done
6027 ac_cv_prog_CPP=$CPP
6028 ;;
6029 esac
6030 fi
6031 CPP=$ac_cv_prog_CPP
6032 else
6033 ac_cv_prog_CPP=$CPP
6034 fi
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6036 printf "%s\n" "$CPP" >&6; }
6037 ac_preproc_ok=false
6038 for ac_c_preproc_warn_flag in '' yes
6039 do
6040 # Use a header file that comes with gcc, so configuring glibc
6041 # with a fresh cross-compiler works.
6042 # On the NeXT, cc -E runs the code through the compiler's parser,
6043 # not just through cpp. "Syntax error" is here to catch this case.
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <limits.h>
6047 Syntax error
6048 _ACEOF
6049 if ac_fn_c_try_cpp "$LINENO"
6050 then :
6051
6052 else case e in #(
6053 e) # Broken: fails on valid input.
6054 continue ;;
6055 esac
6056 fi
6057 rm -f conftest.err conftest.i conftest.$ac_ext
6058
6059 # OK, works on sane cases. Now check whether nonexistent headers
6060 # can be detected and how.
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6064 _ACEOF
6065 if ac_fn_c_try_cpp "$LINENO"
6066 then :
6067 # Broken: success on invalid input.
6068 continue
6069 else case e in #(
6070 e) # Passes both tests.
6071 ac_preproc_ok=:
6072 break ;;
6073 esac
6074 fi
6075 rm -f conftest.err conftest.i conftest.$ac_ext
6076
6077 done
6078 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6079 rm -f conftest.i conftest.err conftest.$ac_ext
6080 if $ac_preproc_ok
6081 then :
6082
6083 else case e in #(
6084 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6085 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6086 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6087 See 'config.log' for more details" "$LINENO" 5; } ;;
6088 esac
6089 fi
6090
6091 ac_ext=c
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6096
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6098 printf %s "checking for grep that handles long lines and -e... " >&6; }
6099 if test ${ac_cv_path_GREP+y}
6100 then :
6101 printf %s "(cached) " >&6
6102 else case e in #(
6103 e) if test -z "$GREP"; then
6104 ac_path_GREP_found=false
6105 # Loop through the user's path and test for each of PROGNAME-LIST
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6108 do
6109 IFS=$as_save_IFS
6110 case $as_dir in #(((
6111 '') as_dir=./ ;;
6112 */) ;;
6113 *) as_dir=$as_dir/ ;;
6114 esac
6115 for ac_prog in grep ggrep
6116 do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6119 as_fn_executable_p "$ac_path_GREP" || continue
6120 # Check for GNU ac_path_GREP and select it if it is found.
6121 # Check for GNU $ac_path_GREP
6122 case `"$ac_path_GREP" --version 2>&1` in #(
6123 *GNU*)
6124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6125 #(
6126 *)
6127 ac_count=0
6128 printf %s 0123456789 >"conftest.in"
6129 while :
6130 do
6131 cat "conftest.in" "conftest.in" >"conftest.tmp"
6132 mv "conftest.tmp" "conftest.in"
6133 cp "conftest.in" "conftest.nl"
6134 printf "%s\n" 'GREP' >> "conftest.nl"
6135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6137 as_fn_arith $ac_count + 1 && ac_count=$as_val
6138 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6139 # Best one so far, save it but keep looking for a better one
6140 ac_cv_path_GREP="$ac_path_GREP"
6141 ac_path_GREP_max=$ac_count
6142 fi
6143 # 10*(2^10) chars as input seems more than enough
6144 test $ac_count -gt 10 && break
6145 done
6146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6147 esac
6148
6149 $ac_path_GREP_found && break 3
6150 done
6151 done
6152 done
6153 IFS=$as_save_IFS
6154 if test -z "$ac_cv_path_GREP"; then
6155 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6156 fi
6157 else
6158 ac_cv_path_GREP=$GREP
6159 fi
6160 ;;
6161 esac
6162 fi
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6164 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6165 GREP="$ac_cv_path_GREP"
6166
6167
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6169 printf %s "checking for a sed that does not truncate output... " >&6; }
6170 if test ${ac_cv_path_SED+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else case e in #(
6174 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6175 for ac_i in 1 2 3 4 5 6 7; do
6176 ac_script="$ac_script$as_nl$ac_script"
6177 done
6178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6179 { ac_script=; unset ac_script;}
6180 if test -z "$SED"; then
6181 ac_path_SED_found=false
6182 # Loop through the user's path and test for each of PROGNAME-LIST
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186 IFS=$as_save_IFS
6187 case $as_dir in #(((
6188 '') as_dir=./ ;;
6189 */) ;;
6190 *) as_dir=$as_dir/ ;;
6191 esac
6192 for ac_prog in sed gsed
6193 do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6196 as_fn_executable_p "$ac_path_SED" || continue
6197 # Check for GNU ac_path_SED and select it if it is found.
6198 # Check for GNU $ac_path_SED
6199 case `"$ac_path_SED" --version 2>&1` in #(
6200 *GNU*)
6201 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6202 #(
6203 *)
6204 ac_count=0
6205 printf %s 0123456789 >"conftest.in"
6206 while :
6207 do
6208 cat "conftest.in" "conftest.in" >"conftest.tmp"
6209 mv "conftest.tmp" "conftest.in"
6210 cp "conftest.in" "conftest.nl"
6211 printf "%s\n" '' >> "conftest.nl"
6212 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6214 as_fn_arith $ac_count + 1 && ac_count=$as_val
6215 if test $ac_count -gt ${ac_path_SED_max-0}; then
6216 # Best one so far, save it but keep looking for a better one
6217 ac_cv_path_SED="$ac_path_SED"
6218 ac_path_SED_max=$ac_count
6219 fi
6220 # 10*(2^10) chars as input seems more than enough
6221 test $ac_count -gt 10 && break
6222 done
6223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6224 esac
6225
6226 $ac_path_SED_found && break 3
6227 done
6228 done
6229 done
6230 IFS=$as_save_IFS
6231 if test -z "$ac_cv_path_SED"; then
6232 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6233 fi
6234 else
6235 ac_cv_path_SED=$SED
6236 fi
6237 ;;
6238 esac
6239 fi
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6241 printf "%s\n" "$ac_cv_path_SED" >&6; }
6242 SED="$ac_cv_path_SED"
6243 rm -f conftest.sed
6244
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6246 printf %s "checking for egrep... " >&6; }
6247 if test ${ac_cv_path_EGREP+y}
6248 then :
6249 printf %s "(cached) " >&6
6250 else case e in #(
6251 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6252 then ac_cv_path_EGREP="$GREP -E"
6253 else
6254 if test -z "$EGREP"; then
6255 ac_path_EGREP_found=false
6256 # Loop through the user's path and test for each of PROGNAME-LIST
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 do
6260 IFS=$as_save_IFS
6261 case $as_dir in #(((
6262 '') as_dir=./ ;;
6263 */) ;;
6264 *) as_dir=$as_dir/ ;;
6265 esac
6266 for ac_prog in egrep
6267 do
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6270 as_fn_executable_p "$ac_path_EGREP" || continue
6271 # Check for GNU ac_path_EGREP and select it if it is found.
6272 # Check for GNU $ac_path_EGREP
6273 case `"$ac_path_EGREP" --version 2>&1` in #(
6274 *GNU*)
6275 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6276 #(
6277 *)
6278 ac_count=0
6279 printf %s 0123456789 >"conftest.in"
6280 while :
6281 do
6282 cat "conftest.in" "conftest.in" >"conftest.tmp"
6283 mv "conftest.tmp" "conftest.in"
6284 cp "conftest.in" "conftest.nl"
6285 printf "%s\n" 'EGREP' >> "conftest.nl"
6286 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288 as_fn_arith $ac_count + 1 && ac_count=$as_val
6289 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6290 # Best one so far, save it but keep looking for a better one
6291 ac_cv_path_EGREP="$ac_path_EGREP"
6292 ac_path_EGREP_max=$ac_count
6293 fi
6294 # 10*(2^10) chars as input seems more than enough
6295 test $ac_count -gt 10 && break
6296 done
6297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6298 esac
6299
6300 $ac_path_EGREP_found && break 3
6301 done
6302 done
6303 done
6304 IFS=$as_save_IFS
6305 if test -z "$ac_cv_path_EGREP"; then
6306 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6307 fi
6308 else
6309 ac_cv_path_EGREP=$EGREP
6310 fi
6311
6312 fi ;;
6313 esac
6314 fi
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6316 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6317 EGREP="$ac_cv_path_EGREP"
6318
6319 EGREP_TRADITIONAL=$EGREP
6320 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6321
6322
6323 CC_BASENAME=$(expr "//$CC" : '.*/\(.*\)')
6324
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5
6326 printf %s "checking for CC compiler name... " >&6; }
6327 if test ${ac_cv_cc_name+y}
6328 then :
6329 printf %s "(cached) " >&6
6330 else case e in #(
6331 e)
6332 cat > conftest.c <<EOF
6333 #if defined(__EMSCRIPTEN__)
6334 emcc
6335 #elif defined(__INTEL_COMPILER) || defined(__ICC)
6336 icc
6337 #elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__)
6338 xlc
6339 #elif defined(_MSC_VER)
6340 msvc
6341 #elif defined(__clang__)
6342 clang
6343 #elif defined(__GNUC__)
6344 gcc
6345 #else
6346 # error unknown compiler
6347 #endif
6348 EOF
6349
6350 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
6351 ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
6352 if test "x$CC_BASENAME" = xmpicc
6353 then :
6354 ac_cv_cc_name=mpicc
6355 fi
6356 else
6357 ac_cv_cc_name="unknown"
6358 fi
6359 rm -f conftest.c conftest.out
6360 ;;
6361 esac
6362 fi
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5
6364 printf "%s\n" "$ac_cv_cc_name" >&6; }
6365
6366 # checks for UNIX variants that set C preprocessor variables
6367 # may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS,
6368 # _POSIX_SOURCE, _POSIX_1_SOURCE, and more
6369
6370 ac_header= ac_cache=
6371 for ac_item in $ac_header_c_list
6372 do
6373 if test $ac_cache; then
6374 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6375 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6376 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6377 fi
6378 ac_header= ac_cache=
6379 elif test $ac_header; then
6380 ac_cache=$ac_item
6381 else
6382 ac_header=$ac_item
6383 fi
6384 done
6385
6386
6387
6388
6389
6390
6391
6392
6393 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6394 then :
6395
6396 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6397
6398 fi
6399
6400
6401
6402
6403
6404
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6406 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6407 if test ${ac_cv_safe_to_define___extensions__+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 # define __EXTENSIONS__ 1
6415 $ac_includes_default
6416 int
6417 main (void)
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"
6425 then :
6426 ac_cv_safe_to_define___extensions__=yes
6427 else case e in #(
6428 e) ac_cv_safe_to_define___extensions__=no ;;
6429 esac
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6432 esac
6433 fi
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6435 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6436
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6438 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6439 if test ${ac_cv_should_define__xopen_source+y}
6440 then :
6441 printf %s "(cached) " >&6
6442 else case e in #(
6443 e) ac_cv_should_define__xopen_source=no
6444 if test $ac_cv_header_wchar_h = yes
6445 then :
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448
6449 #include <wchar.h>
6450 mbstate_t x;
6451 int
6452 main (void)
6453 {
6454
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 if ac_fn_c_try_compile "$LINENO"
6460 then :
6461
6462 else case e in #(
6463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465
6466 #define _XOPEN_SOURCE 500
6467 #include <wchar.h>
6468 mbstate_t x;
6469 int
6470 main (void)
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"
6478 then :
6479 ac_cv_should_define__xopen_source=yes
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6482 esac
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6485 fi ;;
6486 esac
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6489 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6490
6491 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6492
6493 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6494
6495 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6496
6497 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6498
6499 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6500
6501 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6502
6503 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6504
6505 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6506
6507 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6508
6509 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6510
6511 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6512
6513 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6514
6515 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6516
6517 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6518
6519 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6520
6521 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6522
6523 if test $ac_cv_header_minix_config_h = yes
6524 then :
6525 MINIX=yes
6526 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6527
6528 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6529
6530 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6531
6532 else case e in #(
6533 e) MINIX= ;;
6534 esac
6535 fi
6536 if test $ac_cv_safe_to_define___extensions__ = yes
6537 then :
6538 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6539
6540 fi
6541 if test $ac_cv_should_define__xopen_source = yes
6542 then :
6543 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6544
6545 fi
6546
6547
6548
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC compatible compiler" >&5
6550 printf %s "checking for GCC compatible compiler... " >&6; }
6551 if test ${ac_cv_gcc_compat+y}
6552 then :
6553 printf %s "(cached) " >&6
6554 else case e in #(
6555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557
6558 #if !defined(__GNUC__)
6559 #error "not GCC compatible"
6560 #else
6561 /* GCC compatible! */
6562 #endif
6563
6564 _ACEOF
6565 if ac_fn_c_try_cpp "$LINENO"
6566 then :
6567 ac_cv_gcc_compat=yes
6568 else case e in #(
6569 e) ac_cv_gcc_compat=no ;;
6570 esac
6571 fi
6572 rm -f conftest.err conftest.i conftest.$ac_ext ;;
6573 esac
6574 fi
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_compat" >&5
6576 printf "%s\n" "$ac_cv_gcc_compat" >&6; }
6577
6578
6579
6580 preset_cxx="$CXX"
6581 if test -z "$CXX"
6582 then
6583 case "$ac_cv_cc_name" in
6584 gcc) if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}g++; ac_word=$2
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 printf %s "checking for $ac_word... " >&6; }
6589 if test ${ac_cv_path_CXX+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else case e in #(
6593 e) case $CXX in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 case $as_dir in #(((
6603 '') as_dir=./ ;;
6604 */) ;;
6605 *) as_dir=$as_dir/ ;;
6606 esac
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6609 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 ;;
6618 esac ;;
6619 esac
6620 fi
6621 CXX=$ac_cv_path_CXX
6622 if test -n "$CXX"; then
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6624 printf "%s\n" "$CXX" >&6; }
6625 else
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 printf "%s\n" "no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_path_CXX"; then
6633 ac_pt_CXX=$CXX
6634 # Extract the first word of "g++", so it can be a program name with args.
6635 set dummy g++; ac_word=$2
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 printf %s "checking for $ac_word... " >&6; }
6638 if test ${ac_cv_path_ac_pt_CXX+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else case e in #(
6642 e) case $ac_pt_CXX in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6645 ;;
6646 *)
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 case $as_dir in #(((
6652 '') as_dir=./ ;;
6653 */) ;;
6654 *) as_dir=$as_dir/ ;;
6655 esac
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 ;;
6667 esac ;;
6668 esac
6669 fi
6670 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6671 if test -n "$ac_pt_CXX"; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6673 printf "%s\n" "$ac_pt_CXX" >&6; }
6674 else
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679 if test "x$ac_pt_CXX" = x; then
6680 CXX="notfound"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 CXX=$ac_pt_CXX
6689 fi
6690 else
6691 CXX="$ac_cv_path_CXX"
6692 fi
6693 ;;
6694 cc) if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}c++; ac_word=$2
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 printf %s "checking for $ac_word... " >&6; }
6699 if test ${ac_cv_path_CXX+y}
6700 then :
6701 printf %s "(cached) " >&6
6702 else case e in #(
6703 e) case $CXX in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 case $as_dir in #(((
6713 '') as_dir=./ ;;
6714 */) ;;
6715 *) as_dir=$as_dir/ ;;
6716 esac
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6719 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 ;;
6728 esac ;;
6729 esac
6730 fi
6731 CXX=$ac_cv_path_CXX
6732 if test -n "$CXX"; then
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6734 printf "%s\n" "$CXX" >&6; }
6735 else
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 printf "%s\n" "no" >&6; }
6738 fi
6739
6740
6741 fi
6742 if test -z "$ac_cv_path_CXX"; then
6743 ac_pt_CXX=$CXX
6744 # Extract the first word of "c++", so it can be a program name with args.
6745 set dummy c++; ac_word=$2
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 printf %s "checking for $ac_word... " >&6; }
6748 if test ${ac_cv_path_ac_pt_CXX+y}
6749 then :
6750 printf %s "(cached) " >&6
6751 else case e in #(
6752 e) case $ac_pt_CXX in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 case $as_dir in #(((
6762 '') as_dir=./ ;;
6763 */) ;;
6764 *) as_dir=$as_dir/ ;;
6765 esac
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6768 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 ;;
6777 esac ;;
6778 esac
6779 fi
6780 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6781 if test -n "$ac_pt_CXX"; then
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6783 printf "%s\n" "$ac_pt_CXX" >&6; }
6784 else
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 printf "%s\n" "no" >&6; }
6787 fi
6788
6789 if test "x$ac_pt_CXX" = x; then
6790 CXX="notfound"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793 yes:)
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796 ac_tool_warned=yes ;;
6797 esac
6798 CXX=$ac_pt_CXX
6799 fi
6800 else
6801 CXX="$ac_cv_path_CXX"
6802 fi
6803 ;;
6804 clang) if test -n "$ac_tool_prefix"; then
6805 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}clang++; ac_word=$2
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 printf %s "checking for $ac_word... " >&6; }
6809 if test ${ac_cv_path_CXX+y}
6810 then :
6811 printf %s "(cached) " >&6
6812 else case e in #(
6813 e) case $CXX in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821 IFS=$as_save_IFS
6822 case $as_dir in #(((
6823 '') as_dir=./ ;;
6824 */) ;;
6825 *) as_dir=$as_dir/ ;;
6826 esac
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6829 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 ;;
6838 esac ;;
6839 esac
6840 fi
6841 CXX=$ac_cv_path_CXX
6842 if test -n "$CXX"; then
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6844 printf "%s\n" "$CXX" >&6; }
6845 else
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 printf "%s\n" "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_path_CXX"; then
6853 ac_pt_CXX=$CXX
6854 # Extract the first word of "clang++", so it can be a program name with args.
6855 set dummy clang++; ac_word=$2
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 printf %s "checking for $ac_word... " >&6; }
6858 if test ${ac_cv_path_ac_pt_CXX+y}
6859 then :
6860 printf %s "(cached) " >&6
6861 else case e in #(
6862 e) case $ac_pt_CXX in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 ;;
6887 esac ;;
6888 esac
6889 fi
6890 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
6891 if test -n "$ac_pt_CXX"; then
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6893 printf "%s\n" "$ac_pt_CXX" >&6; }
6894 else
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 printf "%s\n" "no" >&6; }
6897 fi
6898
6899 if test "x$ac_pt_CXX" = x; then
6900 CXX="notfound"
6901 else
6902 case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908 CXX=$ac_pt_CXX
6909 fi
6910 else
6911 CXX="$ac_cv_path_CXX"
6912 fi
6913 ;;
6914 icc) if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}icpc; ac_word=$2
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 printf %s "checking for $ac_word... " >&6; }
6919 if test ${ac_cv_path_CXX+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else case e in #(
6923 e) case $CXX in
6924 [\\/]* | ?:[\\/]*)
6925 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
6926 ;;
6927 *)
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931 IFS=$as_save_IFS
6932 case $as_dir in #(((
6933 '') as_dir=./ ;;
6934 */) ;;
6935 *) as_dir=$as_dir/ ;;
6936 esac
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6939 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext"
6940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 ;;
6948 esac ;;
6949 esac
6950 fi
6951 CXX=$ac_cv_path_CXX
6952 if test -n "$CXX"; then
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6954 printf "%s\n" "$CXX" >&6; }
6955 else
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 printf "%s\n" "no" >&6; }
6958 fi
6959
6960
6961 fi
6962 if test -z "$ac_cv_path_CXX"; then
6963 ac_pt_CXX=$CXX
6964 # Extract the first word of "icpc", so it can be a program name with args.
6965 set dummy icpc; ac_word=$2
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 printf %s "checking for $ac_word... " >&6; }
6968 if test ${ac_cv_path_ac_pt_CXX+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else case e in #(
6972 e) case $ac_pt_CXX in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 case $as_dir in #(((
6982 '') as_dir=./ ;;
6983 */) ;;
6984 *) as_dir=$as_dir/ ;;
6985 esac
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6988 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext"
6989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 ;;
6997 esac ;;
6998 esac
6999 fi
7000 ac_pt_CXX=$ac_cv_path_ac_pt_CXX
7001 if test -n "$ac_pt_CXX"; then
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
7003 printf "%s\n" "$ac_pt_CXX" >&6; }
7004 else
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 printf "%s\n" "no" >&6; }
7007 fi
7008
7009 if test "x$ac_pt_CXX" = x; then
7010 CXX="notfound"
7011 else
7012 case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018 CXX=$ac_pt_CXX
7019 fi
7020 else
7021 CXX="$ac_cv_path_CXX"
7022 fi
7023 ;;
7024 esac
7025 if test "$CXX" = "notfound"
7026 then
7027 CXX=""
7028 fi
7029 fi
7030 if test -z "$CXX"
7031 then
7032 if test -n "$ac_tool_prefix"; then
7033 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7034 do
7035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 printf %s "checking for $ac_word... " >&6; }
7039 if test ${ac_cv_prog_CXX+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) if test -n "$CXX"; then
7044 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 case $as_dir in #(((
7051 '') as_dir=./ ;;
7052 */) ;;
7053 *) as_dir=$as_dir/ ;;
7054 esac
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065 fi ;;
7066 esac
7067 fi
7068 CXX=$ac_cv_prog_CXX
7069 if test -n "$CXX"; then
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7071 printf "%s\n" "$CXX" >&6; }
7072 else
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 printf "%s\n" "no" >&6; }
7075 fi
7076
7077
7078 test -n "$CXX" && break
7079 done
7080 fi
7081 if test -z "$CXX"; then
7082 ac_ct_CXX=$CXX
7083 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7084 do
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 printf %s "checking for $ac_word... " >&6; }
7089 if test ${ac_cv_prog_ac_ct_CXX+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else case e in #(
7093 e) if test -n "$ac_ct_CXX"; then
7094 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 case $as_dir in #(((
7101 '') as_dir=./ ;;
7102 */) ;;
7103 *) as_dir=$as_dir/ ;;
7104 esac
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_ac_ct_CXX="$ac_prog"
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi ;;
7116 esac
7117 fi
7118 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7119 if test -n "$ac_ct_CXX"; then
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7121 printf "%s\n" "$ac_ct_CXX" >&6; }
7122 else
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 printf "%s\n" "no" >&6; }
7125 fi
7126
7127
7128 test -n "$ac_ct_CXX" && break
7129 done
7130
7131 if test "x$ac_ct_CXX" = x; then
7132 CXX="notfound"
7133 else
7134 case $cross_compiling:$ac_tool_warned in
7135 yes:)
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7139 esac
7140 CXX=$ac_ct_CXX
7141 fi
7142 fi
7143
7144 if test "$CXX" = "notfound"
7145 then
7146 CXX=""
7147 fi
7148 fi
7149 if test "$preset_cxx" != "$CXX"
7150 then
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
7152
7153 By default, distutils will build C++ extension modules with \"$CXX\".
7154 If this is not intended, then set CXX on the configure command line.
7155 " >&5
7156 printf "%s\n" "$as_me:
7157
7158 By default, distutils will build C++ extension modules with \"$CXX\".
7159 If this is not intended, then set CXX on the configure command line.
7160 " >&6;}
7161 fi
7162
7163
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
7165 printf %s "checking for the platform triplet based on compiler characteristics... " >&6; }
7166 if $CPP $CPPFLAGS $srcdir/Misc/platform_triplet.c >conftest.out 2>/dev/null; then
7167 PLATFORM_TRIPLET=`grep '^PLATFORM_TRIPLET=' conftest.out | tr -d ' '`
7168 PLATFORM_TRIPLET="${PLATFORM_TRIPLET#PLATFORM_TRIPLET=}"
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
7170 printf "%s\n" "$PLATFORM_TRIPLET" >&6; }
7171 else
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7173 printf "%s\n" "none" >&6; }
7174 fi
7175 rm -f conftest.out
7176
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
7178 printf %s "checking for multiarch... " >&6; }
7179 case $ac_sys_system in #(
7180 Darwin*) :
7181 MULTIARCH="" ;; #(
7182 iOS) :
7183 MULTIARCH="" ;; #(
7184 FreeBSD*) :
7185 MULTIARCH="" ;; #(
7186 *) :
7187 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
7188 ;;
7189 esac
7190
7191
7192 if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
7193 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
7194 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
7195 fi
7196 elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
7197 MULTIARCH=$PLATFORM_TRIPLET
7198 fi
7199
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
7201 printf "%s\n" "$MULTIARCH" >&6; }
7202
7203 case $ac_sys_system in #(
7204 iOS) :
7205 SOABI_PLATFORM=`echo "$PLATFORM_TRIPLET" | cut -d '-' -f2` ;; #(
7206 *) :
7207 SOABI_PLATFORM=$PLATFORM_TRIPLET
7208 ;;
7209 esac
7210
7211 if test x$MULTIARCH != x; then
7212 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
7213 fi
7214
7215
7216 # Guess C stack direction
7217 case $host in #(
7218 hppa*) :
7219 _Py_STACK_GROWS_DOWN=0 ;; #(
7220 *) :
7221 _Py_STACK_GROWS_DOWN=1 ;;
7222 esac
7223
7224 printf "%s\n" "#define _Py_STACK_GROWS_DOWN $_Py_STACK_GROWS_DOWN" >>confdefs.h
7225
7226
7227
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5
7229 printf %s "checking for PEP 11 support tier... " >&6; }
7230 case $host/$ac_cv_cc_name in #(
7231 x86_64-*-linux-gnu/gcc) :
7232 PY_SUPPORT_TIER=1 ;; #(
7233 x86_64-apple-darwin*/clang) :
7234 PY_SUPPORT_TIER=1 ;; #(
7235 aarch64-apple-darwin*/clang) :
7236 PY_SUPPORT_TIER=1 ;; #(
7237 i686-pc-windows-msvc/msvc) :
7238 PY_SUPPORT_TIER=1 ;; #(
7239 x86_64-pc-windows-msvc/msvc) :
7240 PY_SUPPORT_TIER=1 ;; #(
7241
7242 aarch64-*-linux-gnu/gcc) :
7243 PY_SUPPORT_TIER=2 ;; #(
7244 aarch64-*-linux-gnu/clang) :
7245 PY_SUPPORT_TIER=2 ;; #(
7246 powerpc64le-*-linux-gnu/gcc) :
7247 PY_SUPPORT_TIER=2 ;; #(
7248 wasm32-unknown-wasip1/clang) :
7249 PY_SUPPORT_TIER=2 ;; #(
7250 x86_64-*-linux-gnu/clang) :
7251 PY_SUPPORT_TIER=2 ;; #(
7252
7253 aarch64-pc-windows-msvc/msvc) :
7254 PY_SUPPORT_TIER=3 ;; #(
7255 armv7l-*-linux-gnueabihf/gcc) :
7256 PY_SUPPORT_TIER=3 ;; #(
7257 powerpc64le-*-linux-gnu/clang) :
7258 PY_SUPPORT_TIER=3 ;; #(
7259 s390x-*-linux-gnu/gcc) :
7260 PY_SUPPORT_TIER=3 ;; #(
7261 x86_64-*-freebsd*/clang) :
7262 PY_SUPPORT_TIER=3 ;; #(
7263 aarch64-apple-ios*-simulator/clang) :
7264 PY_SUPPORT_TIER=3 ;; #(
7265 aarch64-apple-ios*/clang) :
7266 PY_SUPPORT_TIER=3 ;; #(
7267 aarch64-*-linux-android/clang) :
7268 PY_SUPPORT_TIER=3 ;; #(
7269 x86_64-*-linux-android/clang) :
7270 PY_SUPPORT_TIER=3 ;; #(
7271 wasm32-*-emscripten/emcc) :
7272 PY_SUPPORT_TIER=3 ;; #(
7273 *) :
7274
7275 PY_SUPPORT_TIER=0
7276 ;;
7277 esac
7278
7279 case $PY_SUPPORT_TIER in #(
7280 1) :
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5
7282 printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #(
7283 2) :
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5
7285 printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #(
7286 3) :
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5
7288 printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #(
7289 *) :
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5
7291 printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;}
7292 ;;
7293 esac
7294
7295
7296 printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h
7297
7298
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
7300 printf %s "checking for -Wl,--no-as-needed... " >&6; }
7301 if test ${ac_cv_wl_no_as_needed+y}
7302 then :
7303 printf %s "(cached) " >&6
7304 else case e in #(
7305 e)
7306 save_LDFLAGS="$LDFLAGS"
7307 as_fn_append LDFLAGS " -Wl,--no-as-needed"
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310
7311 int
7312 main (void)
7313 {
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"
7320 then :
7321 NO_AS_NEEDED="-Wl,--no-as-needed"
7322 ac_cv_wl_no_as_needed=yes
7323 else case e in #(
7324 e) NO_AS_NEEDED=""
7325 ac_cv_wl_no_as_needed=no ;;
7326 esac
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS="$save_LDFLAGS"
7331 ;;
7332 esac
7333 fi
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5
7335 printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; }
7336
7337
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
7339 printf %s "checking for the Android API level... " >&6; }
7340 cat > conftest.c <<EOF
7341 #ifdef __ANDROID__
7342 android_api = __ANDROID_API__
7343 arm_arch = __ARM_ARCH
7344 #else
7345 #error not Android
7346 #endif
7347 EOF
7348
7349 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
7350 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
7351 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
7353 printf "%s\n" "$ANDROID_API_LEVEL" >&6; }
7354 if test -z "$ANDROID_API_LEVEL"; then
7355 as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5
7356 fi
7357
7358 printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h
7359
7360
7361 # For __android_log_write() in Python/pylifecycle.c.
7362 LIBS="$LIBS -llog"
7363
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
7365 printf %s "checking for the Android arm ABI... " >&6; }
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
7367 printf "%s\n" "$_arm_arch" >&6; }
7368 if test "$_arm_arch" = 7; then
7369 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
7370 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
7371 fi
7372 else
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
7374 printf "%s\n" "not Android" >&6; }
7375 fi
7376 rm -f conftest.c conftest.out
7377
7378 # Check for unsupported systems
7379 case $ac_sys_system/$ac_sys_release in #(
7380 atheos*|Linux*/1*) :
7381
7382 as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5
7383
7384 ;; #(
7385 *) :
7386 ;;
7387 esac
7388
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5
7390 printf %s "checking for --enable-wasm-dynamic-linking... " >&6; }
7391 # Check whether --enable-wasm-dynamic-linking was given.
7392 if test ${enable_wasm_dynamic_linking+y}
7393 then :
7394 enableval=$enable_wasm_dynamic_linking;
7395 case $ac_sys_system in #(
7396 Emscripten) :
7397 ;; #(
7398 WASI) :
7399 as_fn_error $? "WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #(
7400 *) :
7401 as_fn_error $? "--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5
7402 ;;
7403 esac
7404
7405 else case e in #(
7406 e)
7407 enable_wasm_dynamic_linking=missing
7408 ;;
7409 esac
7410 fi
7411
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5
7413 printf "%s\n" "$enable_wasm_dynamic_linking" >&6; }
7414
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5
7416 printf %s "checking for --enable-wasm-pthreads... " >&6; }
7417 # Check whether --enable-wasm-pthreads was given.
7418 if test ${enable_wasm_pthreads+y}
7419 then :
7420 enableval=$enable_wasm_pthreads;
7421 case $ac_sys_system in #(
7422 Emscripten) :
7423 ;; #(
7424 WASI) :
7425 ;; #(
7426 *) :
7427 as_fn_error $? "--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5
7428 ;;
7429 esac
7430
7431 else case e in #(
7432 e)
7433 enable_wasm_pthreads=missing
7434 ;;
7435 esac
7436 fi
7437
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5
7439 printf "%s\n" "$enable_wasm_pthreads" >&6; }
7440
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
7442 printf %s "checking for --with-suffix... " >&6; }
7443
7444 # Check whether --with-suffix was given.
7445 if test ${with_suffix+y}
7446 then :
7447 withval=$with_suffix;
7448 case $with_suffix in #(
7449 no) :
7450 EXEEXT= ;; #(
7451 yes) :
7452 EXEEXT=.exe ;; #(
7453 *) :
7454 EXEEXT=$with_suffix
7455 ;;
7456 esac
7457
7458 else case e in #(
7459 e)
7460 case $ac_sys_system in #(
7461 Emscripten) :
7462 EXEEXT=.mjs ;; #(
7463 WASI) :
7464 EXEEXT=.wasm ;; #(
7465 *) :
7466 EXEEXT=
7467 ;;
7468 esac
7469 ;;
7470 esac
7471 fi
7472
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
7474 printf "%s\n" "$EXEEXT" >&6; }
7475
7476 # Make sure we keep EXEEXT and ac_exeext sync'ed.
7477 ac_exeext=$EXEEXT
7478
7479 # Test whether we're running on a non-case-sensitive system, in which
7480 # case we give a warning if no ext is given
7481
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
7483 printf %s "checking for case-insensitive build directory... " >&6; }
7484 if test ! -d CaseSensitiveTestDir; then
7485 mkdir CaseSensitiveTestDir
7486 fi
7487
7488 if test -d casesensitivetestdir && test -z "$EXEEXT"
7489 then
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7491 printf "%s\n" "yes" >&6; }
7492 BUILDEXEEXT=.exe
7493 else
7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 printf "%s\n" "no" >&6; }
7496 BUILDEXEEXT=$EXEEXT
7497 fi
7498 rmdir CaseSensitiveTestDir
7499
7500 case $ac_sys_system in
7501 hp*|HP*)
7502 case $ac_cv_cc_name in
7503 cc|*/cc) CC="$CC -Ae";;
7504 esac;;
7505 esac
7506
7507
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
7509 printf %s "checking LIBRARY... " >&6; }
7510 if test -z "$LIBRARY"
7511 then
7512 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
7513 fi
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
7515 printf "%s\n" "$LIBRARY" >&6; }
7516
7517 # LDLIBRARY is the name of the library to link against (as opposed to the
7518 # name of the library into which to insert object files). BLDLIBRARY is also
7519 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
7520 # is blank as the main program is not linked directly against LDLIBRARY.
7521 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
7522 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
7523 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
7524 # DLLLIBRARY is the shared (i.e., DLL) library.
7525 #
7526 # RUNSHARED is used to run shared python without installed libraries
7527 #
7528 # INSTSONAME is the name of the shared library that will be use to install
7529 # on the system - some systems like version suffix, others don't
7530 #
7531 # LDVERSION is the shared library version number, normally the Python version
7532 # with the ABI build flags appended.
7533
7534
7535
7536
7537
7538
7539
7540
7541 LDLIBRARY="$LIBRARY"
7542 BLDLIBRARY='$(LDLIBRARY)'
7543 INSTSONAME='$(LDLIBRARY)'
7544 DLLLIBRARY=''
7545 LDLIBRARYDIR=''
7546 RUNSHARED=''
7547 LDVERSION="$VERSION"
7548
7549 # LINKCC is the command that links the python executable -- default is $(CC).
7550 # If CXX is set, and if it is needed to link a main function that was
7551 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
7552 # python might then depend on the C++ runtime
7553
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
7555 printf %s "checking LINKCC... " >&6; }
7556 if test -z "$LINKCC"
7557 then
7558 LINKCC='$(PURIFY) $(CC)'
7559 case $ac_sys_system in
7560 QNX*)
7561 # qcc must be used because the other compilers do not
7562 # support -N.
7563 LINKCC=qcc;;
7564 esac
7565 fi
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
7567 printf "%s\n" "$LINKCC" >&6; }
7568
7569 # EXPORTSYMS holds the list of exported symbols for AIX.
7570 # EXPORTSFROM holds the module name exporting symbols on AIX.
7571 EXPORTSYMS=
7572 EXPORTSFROM=
7573
7574
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
7576 printf %s "checking EXPORTSYMS... " >&6; }
7577 case $ac_sys_system in
7578 AIX*)
7579 EXPORTSYMS="Modules/python.exp"
7580 EXPORTSFROM=. # the main executable
7581 ;;
7582 esac
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
7584 printf "%s\n" "$EXPORTSYMS" >&6; }
7585
7586 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
7587 # make sure we default having it set to "no": this is used by
7588 # distutils.unixccompiler to know if it should add --enable-new-dtags
7589 # to linker command lines, and failing to detect GNU ld simply results
7590 # in the same behaviour as before.
7591
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7593 printf %s "checking for GNU ld... " >&6; }
7594 ac_prog=ld
7595 if test "$ac_cv_cc_name" = "gcc"; then
7596 ac_prog=`$CC -print-prog-name=ld`
7597 fi
7598 case `"$ac_prog" -V 2>&1 < /dev/null` in
7599 *GNU*)
7600 GNULD=yes;;
7601 *)
7602 GNULD=no;;
7603 esac
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
7605 printf "%s\n" "$GNULD" >&6; }
7606
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
7608 printf %s "checking for --enable-shared... " >&6; }
7609 # Check whether --enable-shared was given.
7610 if test ${enable_shared+y}
7611 then :
7612 enableval=$enable_shared;
7613 fi
7614
7615
7616 if test -z "$enable_shared"
7617 then
7618 case $ac_sys_system in
7619 CYGWIN*)
7620 enable_shared="yes";;
7621 *)
7622 enable_shared="no";;
7623 esac
7624 fi
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
7626 printf "%s\n" "$enable_shared" >&6; }
7627
7628 # --with-static-libpython
7629 STATIC_LIBPYTHON=1
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5
7631 printf %s "checking for --with-static-libpython... " >&6; }
7632
7633 # Check whether --with-static-libpython was given.
7634 if test ${with_static_libpython+y}
7635 then :
7636 withval=$with_static_libpython;
7637 if test "$withval" = no
7638 then
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 printf "%s\n" "no" >&6; };
7641 STATIC_LIBPYTHON=0
7642 else
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7644 printf "%s\n" "yes" >&6; };
7645 fi
7646 else case e in #(
7647 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7648 printf "%s\n" "yes" >&6; } ;;
7649 esac
7650 fi
7651
7652
7653
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
7655 printf %s "checking for --enable-profiling... " >&6; }
7656 # Check whether --enable-profiling was given.
7657 if test ${enable_profiling+y}
7658 then :
7659 enableval=$enable_profiling;
7660 fi
7661
7662 if test "x$enable_profiling" = xyes; then
7663 ac_save_cc="$CC"
7664 CC="$CC -pg"
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 int main(void) { return 0; }
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"
7670 then :
7671
7672 else case e in #(
7673 e) enable_profiling=no ;;
7674 esac
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7677 conftest$ac_exeext conftest.$ac_ext
7678 CC="$ac_save_cc"
7679 else
7680 enable_profiling=no
7681 fi
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
7683 printf "%s\n" "$enable_profiling" >&6; }
7684
7685 if test "x$enable_profiling" = xyes; then
7686 BASECFLAGS="-pg $BASECFLAGS"
7687 LDFLAGS="-pg $LDFLAGS"
7688 fi
7689
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
7691 printf %s "checking LDLIBRARY... " >&6; }
7692
7693 # Apple framework builds need more magic. LDLIBRARY is the dynamic
7694 # library that we build, but we do not want to link against it (we
7695 # will find it with a -framework option). For this reason there is an
7696 # extra variable BLDLIBRARY against which Python and the extension
7697 # modules are linked, BLDLIBRARY. This is normally the same as
7698 # LDLIBRARY, but empty for MacOSX framework builds. iOS does the same,
7699 # but uses a non-versioned framework layout.
7700 if test "$enable_framework"
7701 then
7702 case $ac_sys_system in
7703 Darwin)
7704 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)';;
7705 iOS)
7706 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)';;
7707 *)
7708 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5;;
7709 esac
7710 BLDLIBRARY=''
7711 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
7712 else
7713 BLDLIBRARY='$(LDLIBRARY)'
7714 fi
7715
7716 # Other platforms follow
7717 if test $enable_shared = "yes"; then
7718 PY_ENABLE_SHARED=1
7719
7720 printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h
7721
7722 case $ac_sys_system in
7723 CYGWIN*)
7724 LDLIBRARY='libpython$(LDVERSION).dll.a'
7725 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7726 DLLLIBRARY='libpython$(LDVERSION).dll'
7727 ;;
7728 SunOS*)
7729 LDLIBRARY='libpython$(LDVERSION).so'
7730 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
7731 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7732 INSTSONAME="$LDLIBRARY".$SOVERSION
7733 if test "$with_pydebug" != yes
7734 then
7735 PY3LIBRARY=libpython3.so
7736 fi
7737 ;;
7738 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*)
7739 LDLIBRARY='libpython$(LDVERSION).so'
7740 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7741 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7742
7743 # The Android Gradle plugin will only package libraries whose names end
7744 # with ".so".
7745 if test "$ac_sys_system" != "Linux-android"; then
7746 INSTSONAME="$LDLIBRARY".$SOVERSION
7747 fi
7748
7749 if test "$with_pydebug" != yes
7750 then
7751 PY3LIBRARY=libpython3.so
7752 fi
7753 ;;
7754 hp*|HP*)
7755 case `uname -m` in
7756 ia64)
7757 LDLIBRARY='libpython$(LDVERSION).so'
7758 ;;
7759 *)
7760 LDLIBRARY='libpython$(LDVERSION).sl'
7761 ;;
7762 esac
7763 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
7764 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
7765 ;;
7766 Darwin*)
7767 LDLIBRARY='libpython$(LDVERSION).dylib'
7768 BLDLIBRARY='-L. -lpython$(LDVERSION)'
7769 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
7770 ;;
7771 iOS)
7772 LDLIBRARY='libpython$(LDVERSION).dylib'
7773 ;;
7774 AIX*)
7775 LDLIBRARY='libpython$(LDVERSION).so'
7776 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}}
7777 ;;
7778
7779 esac
7780 else # shared is disabled
7781 PY_ENABLE_SHARED=0
7782 case $ac_sys_system in
7783 CYGWIN*)
7784 BLDLIBRARY='$(LIBRARY)'
7785 LDLIBRARY='libpython$(LDVERSION).dll.a'
7786 ;;
7787 esac
7788 fi
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
7790 printf "%s\n" "$LDLIBRARY" >&6; }
7791
7792 if test "$cross_compiling" = yes; then
7793 RUNSHARED=
7794 fi
7795
7796 # HOSTRUNNER - Program to run CPython for the host platform
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
7798 printf %s "checking HOSTRUNNER... " >&6; }
7799 if test -z "$HOSTRUNNER"
7800 then
7801 case $ac_sys_system in #(
7802 Emscripten) :
7803
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}node; ac_word=$2
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 printf %s "checking for $ac_word... " >&6; }
7809 if test ${ac_cv_path_NODE+y}
7810 then :
7811 printf %s "(cached) " >&6
7812 else case e in #(
7813 e) case $NODE in
7814 [\\/]* | ?:[\\/]*)
7815 ac_cv_path_NODE="$NODE" # Let the user override the test with a path.
7816 ;;
7817 *)
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 case $as_dir in #(((
7823 '') as_dir=./ ;;
7824 */) ;;
7825 *) as_dir=$as_dir/ ;;
7826 esac
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7829 ac_cv_path_NODE="$as_dir$ac_word$ac_exec_ext"
7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837 ;;
7838 esac ;;
7839 esac
7840 fi
7841 NODE=$ac_cv_path_NODE
7842 if test -n "$NODE"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5
7844 printf "%s\n" "$NODE" >&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 fi
7852 if test -z "$ac_cv_path_NODE"; then
7853 ac_pt_NODE=$NODE
7854 # Extract the first word of "node", so it can be a program name with args.
7855 set dummy node; ac_word=$2
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 printf %s "checking for $ac_word... " >&6; }
7858 if test ${ac_cv_path_ac_pt_NODE+y}
7859 then :
7860 printf %s "(cached) " >&6
7861 else case e in #(
7862 e) case $ac_pt_NODE in
7863 [\\/]* | ?:[\\/]*)
7864 ac_cv_path_ac_pt_NODE="$ac_pt_NODE" # Let the user override the test with a path.
7865 ;;
7866 *)
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_path_ac_pt_NODE="$as_dir$ac_word$ac_exec_ext"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 ;;
7887 esac ;;
7888 esac
7889 fi
7890 ac_pt_NODE=$ac_cv_path_ac_pt_NODE
7891 if test -n "$ac_pt_NODE"; then
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5
7893 printf "%s\n" "$ac_pt_NODE" >&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 if test "x$ac_pt_NODE" = x; then
7900 NODE="node"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 NODE=$ac_pt_NODE
7909 fi
7910 else
7911 NODE="$ac_cv_path_NODE"
7912 fi
7913
7914 HOSTRUNNER="$NODE"
7915 if test "x$host_cpu" = xwasm64
7916 then :
7917 as_fn_append HOSTRUNNER " --experimental-wasm-memory64"
7918 fi
7919 ;; #(
7920 WASI) :
7921 HOSTRUNNER='wasmtime run --wasm max-wasm-stack=16777216 --wasi preview2=n --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/' ;; #(
7922 *) :
7923 HOSTRUNNER=''
7924 ;;
7925 esac
7926 fi
7927
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5
7929 printf "%s\n" "$HOSTRUNNER" >&6; }
7930
7931 if test -n "$HOSTRUNNER"; then
7932 PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD"
7933 fi
7934
7935 # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable
7936 LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)'
7937
7938 LINK_PYTHON_DEPS='$(LIBRARY_DEPS)'
7939 if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then
7940 LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS"
7941 if test "$STATIC_LIBPYTHON" = 1; then
7942 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7943 fi
7944 # Link Python program to the shared library
7945 LINK_PYTHON_OBJS='$(BLDLIBRARY)'
7946 else
7947 if test "$STATIC_LIBPYTHON" = 0; then
7948 # Build Python needs object files but don't need to build
7949 # Python static library
7950 LINK_PYTHON_DEPS="$LIBRARY_DEPS \$(LIBRARY_OBJS)"
7951 fi
7952 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS"
7953 # Link Python program to object files
7954 LINK_PYTHON_OBJS='$(LIBRARY_OBJS)'
7955 fi
7956
7957
7958
7959
7960 # ar program
7961
7962 if test -n "$ac_tool_prefix"; then
7963 for ac_prog in ar aal
7964 do
7965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 printf %s "checking for $ac_word... " >&6; }
7969 if test ${ac_cv_prog_AR+y}
7970 then :
7971 printf %s "(cached) " >&6
7972 else case e in #(
7973 e) if test -n "$AR"; then
7974 ac_cv_prog_AR="$AR" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 case $as_dir in #(((
7981 '') as_dir=./ ;;
7982 */) ;;
7983 *) as_dir=$as_dir/ ;;
7984 esac
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi ;;
7996 esac
7997 fi
7998 AR=$ac_cv_prog_AR
7999 if test -n "$AR"; then
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8001 printf "%s\n" "$AR" >&6; }
8002 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 printf "%s\n" "no" >&6; }
8005 fi
8006
8007
8008 test -n "$AR" && break
8009 done
8010 fi
8011 if test -z "$AR"; then
8012 ac_ct_AR=$AR
8013 for ac_prog in ar aal
8014 do
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_ac_ct_AR+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else case e in #(
8023 e) if test -n "$ac_ct_AR"; then
8024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_AR="$ac_prog"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi ;;
8046 esac
8047 fi
8048 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8049 if test -n "$ac_ct_AR"; then
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8051 printf "%s\n" "$ac_ct_AR" >&6; }
8052 else
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 printf "%s\n" "no" >&6; }
8055 fi
8056
8057
8058 test -n "$ac_ct_AR" && break
8059 done
8060
8061 if test "x$ac_ct_AR" = x; then
8062 AR="ar"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065 yes:)
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068 ac_tool_warned=yes ;;
8069 esac
8070 AR=$ac_ct_AR
8071 fi
8072 fi
8073
8074
8075 # tweak ARFLAGS only if the user didn't set it on the command line
8076
8077 if test -z "$ARFLAGS"
8078 then
8079 ARFLAGS="rcs"
8080 fi
8081
8082 case $MACHDEP in
8083 hp*|HP*)
8084 # install -d does not work on HP-UX
8085 if test -z "$INSTALL"
8086 then
8087 INSTALL="${srcdir}/install-sh -c"
8088 fi
8089 esac
8090
8091 # Find a good install program. We prefer a C program (faster),
8092 # so one script is as good as another. But avoid the broken or
8093 # incompatible versions:
8094 # SysV /etc/install, /usr/sbin/install
8095 # SunOS /usr/etc/install
8096 # IRIX /sbin/install
8097 # AIX /bin/install
8098 # AmigaOS /C/install, which installs bootblocks on floppy discs
8099 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8100 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8101 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8102 # OS/2's system install, which has a completely different semantic
8103 # ./install, which can be erroneously created by make from ./install.sh.
8104 # Reject install programs that cannot install multiple files.
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8106 printf %s "checking for a BSD-compatible install... " >&6; }
8107 if test -z "$INSTALL"; then
8108 if test ${ac_cv_path_install+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else case e in #(
8112 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115 IFS=$as_save_IFS
8116 case $as_dir in #(((
8117 '') as_dir=./ ;;
8118 */) ;;
8119 *) as_dir=$as_dir/ ;;
8120 esac
8121 # Account for fact that we put trailing slashes in our PATH walk.
8122 case $as_dir in #((
8123 ./ | /[cC]/* | \
8124 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8125 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8126 /usr/ucb/* ) ;;
8127 *)
8128 # OSF1 and SCO ODT 3.0 have their own names for install.
8129 # Don't use installbsd from OSF since it installs stuff as root
8130 # by default.
8131 for ac_prog in ginstall scoinst install; do
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8134 if test $ac_prog = install &&
8135 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8136 # AIX install. It has an incompatible calling convention.
8137 :
8138 elif test $ac_prog = install &&
8139 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8140 # program-specific install script used by HP pwplus--don't use.
8141 :
8142 else
8143 rm -rf conftest.one conftest.two conftest.dir
8144 echo one > conftest.one
8145 echo two > conftest.two
8146 mkdir conftest.dir
8147 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8148 test -s conftest.one && test -s conftest.two &&
8149 test -s conftest.dir/conftest.one &&
8150 test -s conftest.dir/conftest.two
8151 then
8152 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8153 break 3
8154 fi
8155 fi
8156 fi
8157 done
8158 done
8159 ;;
8160 esac
8161
8162 done
8163 IFS=$as_save_IFS
8164
8165 rm -rf conftest.one conftest.two conftest.dir
8166 ;;
8167 esac
8168 fi
8169 if test ${ac_cv_path_install+y}; then
8170 INSTALL=$ac_cv_path_install
8171 else
8172 # As a last resort, use the slow shell script. Don't cache a
8173 # value for INSTALL within a source directory, because that will
8174 # break other packages using the cache if that directory is
8175 # removed, or if the value is a relative name.
8176 INSTALL=$ac_install_sh
8177 fi
8178 fi
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8180 printf "%s\n" "$INSTALL" >&6; }
8181
8182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8183 # It thinks the first close brace ends the variable substitution.
8184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8185
8186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8187
8188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8189
8190
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8192 printf %s "checking for a race-free mkdir -p... " >&6; }
8193 if test -z "$MKDIR_P"; then
8194 if test ${ac_cv_path_mkdir+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else case e in #(
8198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8200 do
8201 IFS=$as_save_IFS
8202 case $as_dir in #(((
8203 '') as_dir=./ ;;
8204 */) ;;
8205 *) as_dir=$as_dir/ ;;
8206 esac
8207 for ac_prog in mkdir gmkdir; do
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8210 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8211 'mkdir ('*'coreutils) '* | \
8212 *'BusyBox '* | \
8213 'mkdir (fileutils) '4.1*)
8214 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8215 break 3;;
8216 esac
8217 done
8218 done
8219 done
8220 IFS=$as_save_IFS
8221 ;;
8222 esac
8223 fi
8224
8225 test -d ./--version && rmdir ./--version
8226 if test ${ac_cv_path_mkdir+y}; then
8227 MKDIR_P="$ac_cv_path_mkdir -p"
8228 else
8229 # As a last resort, use plain mkdir -p,
8230 # in the hope it doesn't have the bugs of ancient mkdir.
8231 MKDIR_P='mkdir -p'
8232 fi
8233 fi
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8235 printf "%s\n" "$MKDIR_P" >&6; }
8236
8237
8238 # Not every filesystem supports hard links
8239
8240 if test -z "$LN" ; then
8241 case $ac_sys_system in
8242 CYGWIN*) LN="ln -s";;
8243 *) LN=ln;;
8244 esac
8245 fi
8246
8247 # For calculating the .so ABI tag.
8248
8249
8250 ABIFLAGS=""
8251 ABI_THREAD=""
8252
8253 # Check for --disable-gil
8254 # --disable-gil
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
8256 printf %s "checking for --disable-gil... " >&6; }
8257 # Check whether --enable-gil was given.
8258 if test ${enable_gil+y}
8259 then :
8260 enableval=$enable_gil; if test "x$enable_gil" = xyes
8261 then :
8262 disable_gil=no
8263 else case e in #(
8264 e) disable_gil=yes ;;
8265 esac
8266 fi
8267 else case e in #(
8268 e) disable_gil=no
8269 ;;
8270 esac
8271 fi
8272
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
8274 printf "%s\n" "$disable_gil" >&6; }
8275
8276 if test "$disable_gil" = "yes"
8277 then
8278
8279 printf "%s\n" "#define Py_GIL_DISABLED 1" >>confdefs.h
8280
8281 # Add "t" for "threaded"
8282 ABIFLAGS="${ABIFLAGS}t"
8283 ABI_THREAD="t"
8284 fi
8285
8286 # Check for --with-pydebug
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
8288 printf %s "checking for --with-pydebug... " >&6; }
8289
8290 # Check whether --with-pydebug was given.
8291 if test ${with_pydebug+y}
8292 then :
8293 withval=$with_pydebug;
8294 if test "$withval" != no
8295 then
8296
8297 printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h
8298
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8300 printf "%s\n" "yes" >&6; };
8301 Py_DEBUG='true'
8302 ABIFLAGS="${ABIFLAGS}d"
8303 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 printf "%s\n" "no" >&6; }; Py_DEBUG='false'
8305 fi
8306 else case e in #(
8307 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 printf "%s\n" "no" >&6; } ;;
8309 esac
8310 fi
8311
8312
8313 # Check for --with-trace-refs
8314 # --with-trace-refs
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
8316 printf %s "checking for --with-trace-refs... " >&6; }
8317
8318 # Check whether --with-trace-refs was given.
8319 if test ${with_trace_refs+y}
8320 then :
8321 withval=$with_trace_refs;
8322 else case e in #(
8323 e) with_trace_refs=no
8324 ;;
8325 esac
8326 fi
8327
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
8329 printf "%s\n" "$with_trace_refs" >&6; }
8330
8331 if test "$with_trace_refs" = "yes"
8332 then
8333
8334 printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h
8335
8336 fi
8337
8338 if test "$disable_gil" = "yes" -a "$with_trace_refs" = "yes";
8339 then
8340 as_fn_error $? "--disable-gil cannot be used with --with-trace-refs" "$LINENO" 5
8341 fi
8342
8343 # Check for --enable-pystats
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5
8345 printf %s "checking for --enable-pystats... " >&6; }
8346 # Check whether --enable-pystats was given.
8347 if test ${enable_pystats+y}
8348 then :
8349 enableval=$enable_pystats;
8350 else case e in #(
8351 e) enable_pystats=no
8352 ;;
8353 esac
8354 fi
8355
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5
8357 printf "%s\n" "$enable_pystats" >&6; }
8358
8359 if test "x$enable_pystats" = xyes
8360 then :
8361
8362
8363 printf "%s\n" "#define Py_STATS 1" >>confdefs.h
8364
8365
8366 fi
8367
8368 # Check for --with-assertions.
8369 # This allows enabling assertions without Py_DEBUG.
8370 assertions='false'
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
8372 printf %s "checking for --with-assertions... " >&6; }
8373
8374 # Check whether --with-assertions was given.
8375 if test ${with_assertions+y}
8376 then :
8377 withval=$with_assertions;
8378 if test "$withval" != no
8379 then
8380 assertions='true'
8381 fi
8382 fi
8383
8384 if test "$assertions" = 'true'; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 printf "%s\n" "yes" >&6; }
8387 elif test "$Py_DEBUG" = 'true'; then
8388 assertions='true'
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
8390 printf "%s\n" "implied by --with-pydebug" >&6; }
8391 else
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 printf "%s\n" "no" >&6; }
8394 fi
8395
8396 # Enable optimization flags
8397
8398
8399 Py_OPT='false'
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
8401 printf %s "checking for --enable-optimizations... " >&6; }
8402 # Check whether --enable-optimizations was given.
8403 if test ${enable_optimizations+y}
8404 then :
8405 enableval=$enable_optimizations;
8406 if test "$enableval" != no
8407 then
8408 Py_OPT='true'
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 printf "%s\n" "yes" >&6; };
8411 else
8412 Py_OPT='false'
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 printf "%s\n" "no" >&6; };
8415 fi
8416 else case e in #(
8417 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 printf "%s\n" "no" >&6; } ;;
8419 esac
8420 fi
8421
8422
8423 if test "$Py_OPT" = 'true' ; then
8424 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
8425 # compile working code using it and both test_distutils and test_gdb are
8426 # broken when you do manage to get a toolchain that works with it. People
8427 # who want LTO need to use --with-lto themselves.
8428 DEF_MAKE_ALL_RULE="profile-opt"
8429 REQUIRE_PGO="yes"
8430 DEF_MAKE_RULE="build_all"
8431 if test "x$ac_cv_gcc_compat" = xyes
8432 then :
8433
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
8435 printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
8436 if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y}
8437 then :
8438 printf %s "(cached) " >&6
8439 else case e in #(
8440 e)
8441 ax_check_save_flags=$CFLAGS
8442 CFLAGS="$CFLAGS -Werror -fno-semantic-interposition"
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__Werror__fno_semantic_interposition=yes
8457 else case e in #(
8458 e) ax_cv_check_cflags__Werror__fno_semantic_interposition=no ;;
8459 esac
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8462 CFLAGS=$ax_check_save_flags ;;
8463 esac
8464 fi
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5
8466 printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; }
8467 if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes
8468 then :
8469
8470 CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition"
8471 LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition"
8472
8473 else case e in #(
8474 e) : ;;
8475 esac
8476 fi
8477
8478
8479 fi
8480 elif test "$ac_sys_system" = "Emscripten"; then
8481 DEF_MAKE_ALL_RULE="build_emscripten"
8482 REQUIRE_PGO="no"
8483 DEF_MAKE_RULE="all"
8484 elif test "$ac_sys_system" = "WASI"; then
8485 DEF_MAKE_ALL_RULE="build_wasm"
8486 REQUIRE_PGO="no"
8487 DEF_MAKE_RULE="all"
8488 else
8489 DEF_MAKE_ALL_RULE="build_all"
8490 REQUIRE_PGO="no"
8491 DEF_MAKE_RULE="all"
8492 fi
8493
8494
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
8496 printf %s "checking PROFILE_TASK... " >&6; }
8497 if test -z "$PROFILE_TASK"
8498 then
8499 PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
8500 fi
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
8502 printf "%s\n" "$PROFILE_TASK" >&6; }
8503
8504 # Make llvm-related checks work on systems where llvm tools are not installed with their
8505 # normal names in the default $PATH (ie: Ubuntu). They exist under the
8506 # non-suffixed name in their versioned llvm directory.
8507
8508 llvm_bin_dir=''
8509 llvm_path="${PATH}"
8510 if test "${ac_cv_cc_name}" = "clang"
8511 then
8512 clang_bin=`which clang`
8513 # Some systems install clang elsewhere as a symlink to the real path
8514 # which is where the related llvm tools are located.
8515 if test -L "${clang_bin}"
8516 then
8517 clang_dir=`dirname "${clang_bin}"`
8518 clang_bin=`readlink "${clang_bin}"`
8519 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"`
8520 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
8521 fi
8522 fi
8523
8524 # Enable LTO flags
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
8526 printf %s "checking for --with-lto... " >&6; }
8527
8528 # Check whether --with-lto was given.
8529 if test ${with_lto+y}
8530 then :
8531 withval=$with_lto;
8532 case "$withval" in
8533 full)
8534 Py_LTO='true'
8535 Py_LTO_POLICY='full'
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 printf "%s\n" "yes" >&6; }
8538 ;;
8539 thin)
8540 Py_LTO='true'
8541 Py_LTO_POLICY='thin'
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8543 printf "%s\n" "yes" >&6; }
8544 ;;
8545 yes)
8546 Py_LTO='true'
8547 Py_LTO_POLICY='default'
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8549 printf "%s\n" "yes" >&6; }
8550 ;;
8551 no)
8552 Py_LTO='false'
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 printf "%s\n" "no" >&6; }
8555 ;;
8556 *)
8557 Py_LTO='false'
8558 as_fn_error $? "unknown lto option: '$withval'" "$LINENO" 5
8559 ;;
8560 esac
8561
8562 else case e in #(
8563 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 printf "%s\n" "no" >&6; } ;;
8565 esac
8566 fi
8567
8568 if test "$Py_LTO" = 'true' ; then
8569 case $ac_cv_cc_name in
8570 clang)
8571 LDFLAGS_NOLTO="-fno-lto"
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8573 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8574 if test ${ax_cv_check_cflags___flto_thin+y}
8575 then :
8576 printf %s "(cached) " >&6
8577 else case e in #(
8578 e)
8579 ax_check_save_flags=$CFLAGS
8580 CFLAGS="$CFLAGS -flto=thin"
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583
8584 int
8585 main (void)
8586 {
8587
8588 ;
8589 return 0;
8590 }
8591 _ACEOF
8592 if ac_fn_c_try_compile "$LINENO"
8593 then :
8594 ax_cv_check_cflags___flto_thin=yes
8595 else case e in #(
8596 e) ax_cv_check_cflags___flto_thin=no ;;
8597 esac
8598 fi
8599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8600 CFLAGS=$ax_check_save_flags ;;
8601 esac
8602 fi
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8604 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8605 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8606 then :
8607 LDFLAGS_NOLTO="-flto=thin"
8608 else case e in #(
8609 e) LDFLAGS_NOLTO="-flto" ;;
8610 esac
8611 fi
8612
8613
8614 if test -n "$ac_tool_prefix"; then
8615 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
8616 set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 printf %s "checking for $ac_word... " >&6; }
8619 if test ${ac_cv_path_LLVM_AR+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else case e in #(
8623 e) case $LLVM_AR in
8624 [\\/]* | ?:[\\/]*)
8625 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path.
8626 ;;
8627 *)
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in ${llvm_path}
8630 do
8631 IFS=$as_save_IFS
8632 case $as_dir in #(((
8633 '') as_dir=./ ;;
8634 */) ;;
8635 *) as_dir=$as_dir/ ;;
8636 esac
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8639 ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643 done
8644 done
8645 IFS=$as_save_IFS
8646
8647 ;;
8648 esac ;;
8649 esac
8650 fi
8651 LLVM_AR=$ac_cv_path_LLVM_AR
8652 if test -n "$LLVM_AR"; then
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
8654 printf "%s\n" "$LLVM_AR" >&6; }
8655 else
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 printf "%s\n" "no" >&6; }
8658 fi
8659
8660
8661 fi
8662 if test -z "$ac_cv_path_LLVM_AR"; then
8663 ac_pt_LLVM_AR=$LLVM_AR
8664 # Extract the first word of "llvm-ar", so it can be a program name with args.
8665 set dummy llvm-ar; ac_word=$2
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 printf %s "checking for $ac_word... " >&6; }
8668 if test ${ac_cv_path_ac_pt_LLVM_AR+y}
8669 then :
8670 printf %s "(cached) " >&6
8671 else case e in #(
8672 e) case $ac_pt_LLVM_AR in
8673 [\\/]* | ?:[\\/]*)
8674 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path.
8675 ;;
8676 *)
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in ${llvm_path}
8679 do
8680 IFS=$as_save_IFS
8681 case $as_dir in #(((
8682 '') as_dir=./ ;;
8683 */) ;;
8684 *) as_dir=$as_dir/ ;;
8685 esac
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8688 ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext"
8689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8690 break 2
8691 fi
8692 done
8693 done
8694 IFS=$as_save_IFS
8695
8696 ;;
8697 esac ;;
8698 esac
8699 fi
8700 ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR
8701 if test -n "$ac_pt_LLVM_AR"; then
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
8703 printf "%s\n" "$ac_pt_LLVM_AR" >&6; }
8704 else
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 printf "%s\n" "no" >&6; }
8707 fi
8708
8709 if test "x$ac_pt_LLVM_AR" = x; then
8710 LLVM_AR="''"
8711 else
8712 case $cross_compiling:$ac_tool_warned in
8713 yes:)
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8716 ac_tool_warned=yes ;;
8717 esac
8718 LLVM_AR=$ac_pt_LLVM_AR
8719 fi
8720 else
8721 LLVM_AR="$ac_cv_path_LLVM_AR"
8722 fi
8723
8724
8725 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
8726 then
8727 LLVM_AR_FOUND="found"
8728 else
8729 LLVM_AR_FOUND="not-found"
8730 fi
8731 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
8732 then
8733 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient
8734 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null`
8735 if test -n "${found_llvm_ar}"
8736 then
8737 LLVM_AR='/usr/bin/xcrun ar'
8738 LLVM_AR_FOUND=found
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
8740 printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
8741 fi
8742 fi
8743 if test $LLVM_AR_FOUND = not-found
8744 then
8745 LLVM_PROFR_ERR=yes
8746 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
8747 else
8748 LLVM_AR_ERR=no
8749 fi
8750 AR="${LLVM_AR}"
8751 case $ac_sys_system in
8752 Darwin*)
8753 # Any changes made here should be reflected in the GCC+Darwin case below
8754 if test $Py_LTO_POLICY = default
8755 then
8756 # Check that ThinLTO is accepted.
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8758 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8759 if test ${ax_cv_check_cflags___flto_thin+y}
8760 then :
8761 printf %s "(cached) " >&6
8762 else case e in #(
8763 e)
8764 ax_check_save_flags=$CFLAGS
8765 CFLAGS="$CFLAGS -flto=thin"
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768
8769 int
8770 main (void)
8771 {
8772
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"
8778 then :
8779 ax_cv_check_cflags___flto_thin=yes
8780 else case e in #(
8781 e) ax_cv_check_cflags___flto_thin=no ;;
8782 esac
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8785 CFLAGS=$ax_check_save_flags ;;
8786 esac
8787 fi
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8789 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8790 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8791 then :
8792
8793 LTOFLAGS="-flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8794 LTOCFLAGS="-flto=thin"
8795
8796 else case e in #(
8797 e)
8798 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8799 LTOCFLAGS="-flto"
8800
8801 ;;
8802 esac
8803 fi
8804
8805 else
8806 LTOFLAGS="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8807 LTOCFLAGS="-flto=${Py_LTO_POLICY}"
8808 fi
8809 ;;
8810 *)
8811 if test $Py_LTO_POLICY = default
8812 then
8813 # Check that ThinLTO is accepted
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8815 printf %s "checking whether C compiler accepts -flto=thin... " >&6; }
8816 if test ${ax_cv_check_cflags___flto_thin+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else case e in #(
8820 e)
8821 ax_check_save_flags=$CFLAGS
8822 CFLAGS="$CFLAGS -flto=thin"
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825
8826 int
8827 main (void)
8828 {
8829
8830 ;
8831 return 0;
8832 }
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"
8835 then :
8836 ax_cv_check_cflags___flto_thin=yes
8837 else case e in #(
8838 e) ax_cv_check_cflags___flto_thin=no ;;
8839 esac
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8842 CFLAGS=$ax_check_save_flags ;;
8843 esac
8844 fi
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8846 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8847 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8848 then :
8849 LTOFLAGS="-flto=thin"
8850 else case e in #(
8851 e) LTOFLAGS="-flto" ;;
8852 esac
8853 fi
8854
8855 else
8856 LTOFLAGS="-flto=${Py_LTO_POLICY}"
8857 fi
8858 ;;
8859 esac
8860 ;;
8861 emcc)
8862 if test "$Py_LTO_POLICY" != "default"; then
8863 as_fn_error $? "emcc supports only default lto." "$LINENO" 5
8864 fi
8865 LTOFLAGS="-flto"
8866 LTOCFLAGS="-flto"
8867 ;;
8868 gcc)
8869 if test $Py_LTO_POLICY = thin
8870 then
8871 as_fn_error $? "thin lto is not supported under gcc compiler." "$LINENO" 5
8872 fi
8873 LDFLAGS_NOLTO="-fno-lto"
8874 case $ac_sys_system in
8875 Darwin*)
8876 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8877 LTOCFLAGS="-flto"
8878 ;;
8879 *)
8880 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects"
8881 ;;
8882 esac
8883 ;;
8884 esac
8885
8886 if test "$ac_cv_prog_cc_g" = "yes"
8887 then
8888 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
8889 # to get debug symbols.
8890 LTOFLAGS="$LTOFLAGS -g"
8891 fi
8892
8893 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
8894 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS"
8895 fi
8896
8897 # Enable PGO flags.
8898
8899
8900
8901
8902
8903
8904 if test -n "$ac_tool_prefix"; then
8905 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
8906 set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_path_LLVM_PROFDATA+y}
8910 then :
8911 printf %s "(cached) " >&6
8912 else case e in #(
8913 e) case $LLVM_PROFDATA in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path.
8916 ;;
8917 *)
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in ${llvm_path}
8920 do
8921 IFS=$as_save_IFS
8922 case $as_dir in #(((
8923 '') as_dir=./ ;;
8924 */) ;;
8925 *) as_dir=$as_dir/ ;;
8926 esac
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8929 ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8931 break 2
8932 fi
8933 done
8934 done
8935 IFS=$as_save_IFS
8936
8937 ;;
8938 esac ;;
8939 esac
8940 fi
8941 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA
8942 if test -n "$LLVM_PROFDATA"; then
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
8944 printf "%s\n" "$LLVM_PROFDATA" >&6; }
8945 else
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 printf "%s\n" "no" >&6; }
8948 fi
8949
8950
8951 fi
8952 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
8953 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA
8954 # Extract the first word of "llvm-profdata", so it can be a program name with args.
8955 set dummy llvm-profdata; ac_word=$2
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 printf %s "checking for $ac_word... " >&6; }
8958 if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else case e in #(
8962 e) case $ac_pt_LLVM_PROFDATA in
8963 [\\/]* | ?:[\\/]*)
8964 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
8965 ;;
8966 *)
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8968 for as_dir in ${llvm_path}
8969 do
8970 IFS=$as_save_IFS
8971 case $as_dir in #(((
8972 '') as_dir=./ ;;
8973 */) ;;
8974 *) as_dir=$as_dir/ ;;
8975 esac
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8978 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext"
8979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8980 break 2
8981 fi
8982 done
8983 done
8984 IFS=$as_save_IFS
8985
8986 ;;
8987 esac ;;
8988 esac
8989 fi
8990 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA
8991 if test -n "$ac_pt_LLVM_PROFDATA"; then
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
8993 printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; }
8994 else
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 printf "%s\n" "no" >&6; }
8997 fi
8998
8999 if test "x$ac_pt_LLVM_PROFDATA" = x; then
9000 LLVM_PROFDATA="''"
9001 else
9002 case $cross_compiling:$ac_tool_warned in
9003 yes:)
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9006 ac_tool_warned=yes ;;
9007 esac
9008 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA
9009 fi
9010 else
9011 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA"
9012 fi
9013
9014
9015 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
9016 then
9017 LLVM_PROF_FOUND="found"
9018 else
9019 LLVM_PROF_FOUND="not-found"
9020 fi
9021 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
9022 then
9023 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
9024 if test -n "${found_llvm_profdata}"
9025 then
9026 # llvm-profdata isn't directly in $PATH in some cases.
9027 # https://apple.stackexchange.com/questions/197053/
9028 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
9029 LLVM_PROF_FOUND=found
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
9031 printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
9032 fi
9033 fi
9034 LLVM_PROF_ERR=no
9035
9036 case "$ac_cv_cc_name" in
9037 clang)
9038 # Any changes made here should be reflected in the GCC+Darwin case below
9039 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
9040 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
9041 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
9042 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
9043 if test $LLVM_PROF_FOUND = not-found
9044 then
9045 LLVM_PROF_ERR=yes
9046 if test "${REQUIRE_PGO}" = "yes"
9047 then
9048 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
9049 fi
9050 fi
9051 ;;
9052 gcc)
9053 # Check for 32-bit x86 ISA
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i686" >&5
9055 printf %s "checking for i686... " >&6; }
9056 if test ${ac_cv_i686+y}
9057 then :
9058 printf %s "(cached) " >&6
9059 else case e in #(
9060 e)
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063
9064
9065 #ifdef __i386__
9066 # error "i386"
9067 #endif
9068
9069 int
9070 main (void)
9071 {
9072
9073 ;
9074 return 0;
9075 }
9076
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"
9079 then :
9080 ac_cv_i686=no
9081 else case e in #(
9082 e) ac_cv_i686=yes ;;
9083 esac
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9086 ;;
9087 esac
9088 fi
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_i686" >&5
9090 printf "%s\n" "$ac_cv_i686" >&6; }
9091
9092 PGO_PROF_GEN_FLAG="-fprofile-generate"
9093
9094 # Use -fprofile-update=atomic to fix a random GCC internal error on PGO
9095 # build (gh-145801) caused by corruption of profile data (.gcda files).
9096 #
9097 # gh-148535: On i686, using -fprofile-update=atomic makes the PGO build
9098 # way slower (up to 47x slower). So far, the GCC internal error on PGO
9099 # build was not seen on i686, so don't use this flag on i686.
9100 if test "x$ac_cv_i686" = xno
9101 then :
9102
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fprofile-update=atomic" >&5
9104 printf %s "checking whether C compiler accepts -fprofile-update=atomic... " >&6; }
9105 if test ${ax_cv_check_cflags___fprofile_update_atomic+y}
9106 then :
9107 printf %s "(cached) " >&6
9108 else case e in #(
9109 e)
9110 ax_check_save_flags=$CFLAGS
9111 CFLAGS="$CFLAGS -fprofile-update=atomic"
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114
9115 int
9116 main (void)
9117 {
9118
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_compile "$LINENO"
9124 then :
9125 ax_cv_check_cflags___fprofile_update_atomic=yes
9126 else case e in #(
9127 e) ax_cv_check_cflags___fprofile_update_atomic=no ;;
9128 esac
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9131 CFLAGS=$ax_check_save_flags ;;
9132 esac
9133 fi
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fprofile_update_atomic" >&5
9135 printf "%s\n" "$ax_cv_check_cflags___fprofile_update_atomic" >&6; }
9136 if test "x$ax_cv_check_cflags___fprofile_update_atomic" = xyes
9137 then :
9138 PGO_PROF_GEN_FLAG="$PGO_PROF_GEN_FLAG -fprofile-update=atomic"
9139 else case e in #(
9140 e) : ;;
9141 esac
9142 fi
9143
9144
9145 fi
9146
9147 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
9148 LLVM_PROF_MERGER="true"
9149 LLVM_PROF_FILE=""
9150 ;;
9151 icc)
9152 PGO_PROF_GEN_FLAG="-prof-gen"
9153 PGO_PROF_USE_FLAG="-prof-use"
9154 LLVM_PROF_MERGER="true"
9155 LLVM_PROF_FILE=""
9156 ;;
9157 esac
9158
9159 # BOLT optimization. Always configured after PGO since it always runs after PGO.
9160 Py_BOLT='false'
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5
9162 printf %s "checking for --enable-bolt... " >&6; }
9163 # Check whether --enable-bolt was given.
9164 if test ${enable_bolt+y}
9165 then :
9166 enableval=$enable_bolt;
9167 if test "$enableval" != no
9168 then
9169 Py_BOLT='true'
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9171 printf "%s\n" "yes" >&6; };
9172 else
9173 Py_BOLT='false'
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 printf "%s\n" "no" >&6; };
9176 fi
9177 else case e in #(
9178 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 printf "%s\n" "no" >&6; } ;;
9180 esac
9181 fi
9182
9183
9184
9185 if test "$Py_BOLT" = 'true' ; then
9186 PREBOLT_RULE="${DEF_MAKE_ALL_RULE}"
9187 DEF_MAKE_ALL_RULE="bolt-opt"
9188 DEF_MAKE_RULE="build_all"
9189
9190 # -fno-reorder-blocks-and-partition is required for bolt to work.
9191 # Possibly GCC only.
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5
9193 printf %s "checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; }
9194 if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y}
9195 then :
9196 printf %s "(cached) " >&6
9197 else case e in #(
9198 e)
9199 ax_check_save_flags=$CFLAGS
9200 CFLAGS="$CFLAGS -fno-reorder-blocks-and-partition"
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203
9204 int
9205 main (void)
9206 {
9207
9208 ;
9209 return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_compile "$LINENO"
9213 then :
9214 ax_cv_check_cflags___fno_reorder_blocks_and_partition=yes
9215 else case e in #(
9216 e) ax_cv_check_cflags___fno_reorder_blocks_and_partition=no ;;
9217 esac
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9220 CFLAGS=$ax_check_save_flags ;;
9221 esac
9222 fi
9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5
9224 printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; }
9225 if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes
9226 then :
9227
9228 CFLAGS_NODIST="$CFLAGS_NODIST -fno-reorder-blocks-and-partition"
9229
9230 else case e in #(
9231 e) : ;;
9232 esac
9233 fi
9234
9235
9236 # These flags are required for bolt to work:
9237 LDFLAGS_NODIST="$LDFLAGS_NODIST -Wl,--emit-relocs"
9238
9239 # These flags are required to get good performance from bolt:
9240 CFLAGS_NODIST="$CFLAGS_NODIST -fno-pie"
9241 # We want to add these no-pie flags to linking executables but not shared libraries:
9242 LINKCC="$LINKCC -fno-pie -no-pie"
9243
9244 if test -n "$ac_tool_prefix"; then
9245 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}llvm-bolt; ac_word=$2
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 printf %s "checking for $ac_word... " >&6; }
9249 if test ${ac_cv_path_LLVM_BOLT+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e) case $LLVM_BOLT in
9254 [\\/]* | ?:[\\/]*)
9255 ac_cv_path_LLVM_BOLT="$LLVM_BOLT" # Let the user override the test with a path.
9256 ;;
9257 *)
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in ${llvm_path}
9260 do
9261 IFS=$as_save_IFS
9262 case $as_dir in #(((
9263 '') as_dir=./ ;;
9264 */) ;;
9265 *) as_dir=$as_dir/ ;;
9266 esac
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9269 ac_cv_path_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273 done
9274 done
9275 IFS=$as_save_IFS
9276
9277 ;;
9278 esac ;;
9279 esac
9280 fi
9281 LLVM_BOLT=$ac_cv_path_LLVM_BOLT
9282 if test -n "$LLVM_BOLT"; then
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5
9284 printf "%s\n" "$LLVM_BOLT" >&6; }
9285 else
9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287 printf "%s\n" "no" >&6; }
9288 fi
9289
9290
9291 fi
9292 if test -z "$ac_cv_path_LLVM_BOLT"; then
9293 ac_pt_LLVM_BOLT=$LLVM_BOLT
9294 # Extract the first word of "llvm-bolt", so it can be a program name with args.
9295 set dummy llvm-bolt; ac_word=$2
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9297 printf %s "checking for $ac_word... " >&6; }
9298 if test ${ac_cv_path_ac_pt_LLVM_BOLT+y}
9299 then :
9300 printf %s "(cached) " >&6
9301 else case e in #(
9302 e) case $ac_pt_LLVM_BOLT in
9303 [\\/]* | ?:[\\/]*)
9304 ac_cv_path_ac_pt_LLVM_BOLT="$ac_pt_LLVM_BOLT" # Let the user override the test with a path.
9305 ;;
9306 *)
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 for as_dir in ${llvm_path}
9309 do
9310 IFS=$as_save_IFS
9311 case $as_dir in #(((
9312 '') as_dir=./ ;;
9313 */) ;;
9314 *) as_dir=$as_dir/ ;;
9315 esac
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9318 ac_cv_path_ac_pt_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext"
9319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322 done
9323 done
9324 IFS=$as_save_IFS
9325
9326 ;;
9327 esac ;;
9328 esac
9329 fi
9330 ac_pt_LLVM_BOLT=$ac_cv_path_ac_pt_LLVM_BOLT
9331 if test -n "$ac_pt_LLVM_BOLT"; then
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5
9333 printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; }
9334 else
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 printf "%s\n" "no" >&6; }
9337 fi
9338
9339 if test "x$ac_pt_LLVM_BOLT" = x; then
9340 LLVM_BOLT="''"
9341 else
9342 case $cross_compiling:$ac_tool_warned in
9343 yes:)
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9346 ac_tool_warned=yes ;;
9347 esac
9348 LLVM_BOLT=$ac_pt_LLVM_BOLT
9349 fi
9350 else
9351 LLVM_BOLT="$ac_cv_path_LLVM_BOLT"
9352 fi
9353
9354 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}"
9355 then
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5
9357 printf "%s\n" "\"Found llvm-bolt\"" >&6; }
9358 else
9359 as_fn_error $? "llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5
9360 fi
9361
9362
9363 if test -n "$ac_tool_prefix"; then
9364 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args.
9365 set dummy ${ac_tool_prefix}merge-fdata; ac_word=$2
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 printf %s "checking for $ac_word... " >&6; }
9368 if test ${ac_cv_path_MERGE_FDATA+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else case e in #(
9372 e) case $MERGE_FDATA in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_MERGE_FDATA="$MERGE_FDATA" # Let the user override the test with a path.
9375 ;;
9376 *)
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in ${llvm_path}
9379 do
9380 IFS=$as_save_IFS
9381 case $as_dir in #(((
9382 '') as_dir=./ ;;
9383 */) ;;
9384 *) as_dir=$as_dir/ ;;
9385 esac
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9388 ac_cv_path_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9390 break 2
9391 fi
9392 done
9393 done
9394 IFS=$as_save_IFS
9395
9396 ;;
9397 esac ;;
9398 esac
9399 fi
9400 MERGE_FDATA=$ac_cv_path_MERGE_FDATA
9401 if test -n "$MERGE_FDATA"; then
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5
9403 printf "%s\n" "$MERGE_FDATA" >&6; }
9404 else
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 printf "%s\n" "no" >&6; }
9407 fi
9408
9409
9410 fi
9411 if test -z "$ac_cv_path_MERGE_FDATA"; then
9412 ac_pt_MERGE_FDATA=$MERGE_FDATA
9413 # Extract the first word of "merge-fdata", so it can be a program name with args.
9414 set dummy merge-fdata; ac_word=$2
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9416 printf %s "checking for $ac_word... " >&6; }
9417 if test ${ac_cv_path_ac_pt_MERGE_FDATA+y}
9418 then :
9419 printf %s "(cached) " >&6
9420 else case e in #(
9421 e) case $ac_pt_MERGE_FDATA in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_ac_pt_MERGE_FDATA="$ac_pt_MERGE_FDATA" # Let the user override the test with a path.
9424 ;;
9425 *)
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in ${llvm_path}
9428 do
9429 IFS=$as_save_IFS
9430 case $as_dir in #(((
9431 '') as_dir=./ ;;
9432 */) ;;
9433 *) as_dir=$as_dir/ ;;
9434 esac
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9437 ac_cv_path_ac_pt_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext"
9438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 ;;
9446 esac ;;
9447 esac
9448 fi
9449 ac_pt_MERGE_FDATA=$ac_cv_path_ac_pt_MERGE_FDATA
9450 if test -n "$ac_pt_MERGE_FDATA"; then
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5
9452 printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; }
9453 else
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 printf "%s\n" "no" >&6; }
9456 fi
9457
9458 if test "x$ac_pt_MERGE_FDATA" = x; then
9459 MERGE_FDATA="''"
9460 else
9461 case $cross_compiling:$ac_tool_warned in
9462 yes:)
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9464 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9465 ac_tool_warned=yes ;;
9466 esac
9467 MERGE_FDATA=$ac_pt_MERGE_FDATA
9468 fi
9469 else
9470 MERGE_FDATA="$ac_cv_path_MERGE_FDATA"
9471 fi
9472
9473 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}"
9474 then
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5
9476 printf "%s\n" "\"Found merge-fdata\"" >&6; }
9477 else
9478 as_fn_error $? "merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5
9479 fi
9480 fi
9481
9482
9483 BOLT_BINARIES='$(BUILDPYTHON)'
9484 if test "x$enable_shared" = xyes
9485 then :
9486
9487 BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)"
9488
9489 fi
9490
9491
9492
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_COMMON_FLAGS" >&5
9494 printf %s "checking BOLT_COMMON_FLAGS... " >&6; }
9495 if test -z "${BOLT_COMMON_FLAGS}"
9496 then
9497 BOLT_COMMON_FLAGS=" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1 "
9498
9499 fi
9500
9501
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5
9503 printf %s "checking BOLT_INSTRUMENT_FLAGS... " >&6; }
9504 if test -z "${BOLT_INSTRUMENT_FLAGS}"
9505 then
9506 BOLT_INSTRUMENT_FLAGS="${BOLT_COMMON_FLAGS}"
9507 fi
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5
9509 printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; }
9510
9511
9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5
9513 printf %s "checking BOLT_APPLY_FLAGS... " >&6; }
9514 if test -z "${BOLT_APPLY_FLAGS}"
9515 then
9516 BOLT_APPLY_FLAGS=" ${BOLT_COMMON_FLAGS} -reorder-blocks=ext-tsp -reorder-functions=cdsort -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 "
9517
9518 fi
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5
9520 printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; }
9521
9522 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
9523 # merged with this chunk of code?
9524
9525 # Optimizer/debugger flags
9526 # ------------------------
9527 # (The following bit of code is complicated enough - please keep things
9528 # indented properly. Just pretend you're editing Python code. ;-)
9529
9530 # There are two parallel sets of case statements below, one that checks to
9531 # see if OPT was set and one that does BASECFLAGS setting based upon
9532 # compiler and platform. BASECFLAGS tweaks need to be made even if the
9533 # user set OPT.
9534
9535 save_CFLAGS=$CFLAGS
9536 CFLAGS="-fstrict-overflow -fno-strict-overflow"
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5
9538 printf %s "checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; }
9539 if test ${ac_cv_cc_supports_fstrict_overflow+y}
9540 then :
9541 printf %s "(cached) " >&6
9542 else case e in #(
9543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545
9546 int
9547 main (void)
9548 {
9549
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"
9555 then :
9556 ac_cv_cc_supports_fstrict_overflow=yes
9557 else case e in #(
9558 e) ac_cv_cc_supports_fstrict_overflow=no
9559 ;;
9560 esac
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9563 ;;
9564 esac
9565 fi
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5
9567 printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; }
9568 CFLAGS=$save_CFLAGS
9569
9570 if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
9571 then :
9572 STRICT_OVERFLOW_CFLAGS="-fstrict-overflow"
9573 NO_STRICT_OVERFLOW_CFLAGS="-fno-strict-overflow"
9574 else case e in #(
9575 e) STRICT_OVERFLOW_CFLAGS=""
9576 NO_STRICT_OVERFLOW_CFLAGS="" ;;
9577 esac
9578 fi
9579
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5
9581 printf %s "checking for --with-strict-overflow... " >&6; }
9582
9583 # Check whether --with-strict-overflow was given.
9584 if test ${with_strict_overflow+y}
9585 then :
9586 withval=$with_strict_overflow;
9587 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno
9588 then :
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5
9590 printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;}
9591 fi
9592
9593 else case e in #(
9594 e) with_strict_overflow=no
9595 ;;
9596 esac
9597 fi
9598
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5
9600 printf "%s\n" "$with_strict_overflow" >&6; }
9601
9602 # Check if CC supports -Og optimization level
9603 save_CFLAGS=$CFLAGS
9604 CFLAGS="-Og"
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5
9606 printf %s "checking if $CC supports -Og optimization level... " >&6; }
9607 if test ${ac_cv_cc_supports_og+y}
9608 then :
9609 printf %s "(cached) " >&6
9610 else case e in #(
9611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613
9614
9615 int
9616 main (void)
9617 {
9618
9619 ;
9620 return 0;
9621 }
9622
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626
9627 ac_cv_cc_supports_og=yes
9628
9629 else case e in #(
9630 e)
9631 ac_cv_cc_supports_og=no
9632 ;;
9633 esac
9634 fi
9635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9636 ;;
9637 esac
9638 fi
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5
9640 printf "%s\n" "$ac_cv_cc_supports_og" >&6; }
9641 CFLAGS=$save_CFLAGS
9642
9643 # Optimization messes up debuggers, so turn it off for
9644 # debug builds.
9645 PYDEBUG_CFLAGS="-O0"
9646 if test "x$ac_cv_cc_supports_og" = xyes
9647 then :
9648 PYDEBUG_CFLAGS="-Og"
9649 fi
9650
9651 # gh-120688: WASI uses -O3 in debug mode to support more recursive calls
9652 if test "$ac_sys_system" = "WASI"; then
9653 PYDEBUG_CFLAGS="-O3"
9654 fi
9655
9656 # tweak OPT based on compiler and platform, only if the user didn't set
9657 # it on the command line
9658
9659
9660 if test "${OPT-unset}" = "unset"
9661 then
9662 case $GCC in
9663 yes)
9664 if test "${ac_cv_cc_name}" != "clang"
9665 then
9666 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
9667 # see Makefile.pre.in for more information
9668 CFLAGS_ALIASING="-fno-strict-aliasing"
9669 fi
9670
9671 case $ac_cv_prog_cc_g in
9672 yes)
9673 if test "$Py_DEBUG" = 'true' ; then
9674 OPT="-g $PYDEBUG_CFLAGS -Wall"
9675 else
9676 OPT="-g -O3 -Wall"
9677 fi
9678 ;;
9679 *)
9680 OPT="-O3 -Wall"
9681 ;;
9682 esac
9683
9684 case $ac_sys_system in
9685 SCO_SV*) OPT="$OPT -m486 -DSCO5"
9686 ;;
9687 esac
9688 ;;
9689
9690 *)
9691 OPT="-O"
9692 ;;
9693 esac
9694 fi
9695
9696 # WASM flags
9697 case $ac_sys_system in #(
9698 Emscripten) :
9699
9700 if test "x$Py_DEBUG" = xyes
9701 then :
9702 wasm_debug=yes
9703 else case e in #(
9704 e) wasm_debug=no ;;
9705 esac
9706 fi
9707
9708 as_fn_append LINKFORSHARED " -sALLOW_MEMORY_GROWTH -sINITIAL_MEMORY=20971520"
9709
9710 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT"
9711
9712 as_fn_append LINKFORSHARED " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
9713 as_fn_append LINKFORSHARED " -sEXPORTED_RUNTIME_METHODS=FS,callMain,ENV,HEAPU32,TTY,ERRNO_CODES"
9714 as_fn_append LINKFORSHARED " -sEXPORTED_FUNCTIONS=_main,_Py_Version,__PyRuntime,_PyGILState_GetThisThreadState,__Py_DumpTraceback,__PyEM_EMSCRIPTEN_TRAMPOLINE_OFFSET"
9715 as_fn_append LINKFORSHARED " -sSTACK_SIZE=5MB"
9716 as_fn_append LINKFORSHARED " -sTEXTDECODER=2"
9717
9718 if test "x$enable_wasm_dynamic_linking" = xyes
9719 then :
9720
9721 as_fn_append LINKFORSHARED " -sMAIN_MODULE"
9722
9723 fi
9724
9725 if test "x$enable_wasm_pthreads" = xyes
9726 then :
9727
9728 as_fn_append CFLAGS_NODIST " -pthread"
9729 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS"
9730 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD"
9731
9732 fi
9733 as_fn_append LDFLAGS_NODIST " -sEXIT_RUNTIME"
9734 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map"
9735
9736 if test "x$wasm_debug" = xyes
9737 then :
9738
9739 as_fn_append LDFLAGS_NODIST " -sASSERTIONS"
9740 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG"
9741
9742 else case e in #(
9743 e)
9744 as_fn_append LINKFORSHARED " -O2 -g0"
9745 ;;
9746 esac
9747 fi
9748 ;; #(
9749 WASI) :
9750
9751
9752 printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
9753
9754
9755 printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h
9756
9757
9758 printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
9759
9760 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
9761 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
9762
9763 if test "x$enable_wasm_pthreads" = xyes
9764 then :
9765
9766 # Note: update CFLAGS because ac_compile/ac_link needs this too.
9767 # without this, configure fails to find pthread_create, sem_init,
9768 # etc because they are only available in the sysroot for
9769 # wasm32-wasi-threads.
9770 # Note: wasi-threads requires --import-memory.
9771 # Note: wasi requires --export-memory.
9772 # Note: --export-memory is implicit unless --import-memory is given
9773 # Note: this requires LLVM >= 16.
9774 as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread"
9775 as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9776 as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread"
9777 as_fn_append LDFLAGS_NODIST " -Wl,--import-memory"
9778 as_fn_append LDFLAGS_NODIST " -Wl,--export-memory"
9779 as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760"
9780
9781 fi
9782
9783 as_fn_append LDFLAGS_NODIST " -z stack-size=16777216 -Wl,--stack-first -Wl,--initial-memory=41943040"
9784
9785 ;; #(
9786 *) :
9787 ;;
9788 esac
9789
9790 if test "$ac_sys_system" = "Linux" -a "$cross_compiling" = no; then
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread stack size" >&5
9792 printf %s "checking for thread stack size... " >&6; }
9793 if test ${ac_cv_thread_stack_size+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else case e in #(
9797 e)
9798 cat > conftest.c <<EOF
9799 #include <pthread.h>
9800
9801 int main()
9802 {
9803 pthread_attr_t attrs;
9804 size_t size;
9805
9806 int rc = pthread_attr_init(&attrs);
9807 if (rc != 0) {
9808 return 2;
9809 }
9810
9811 rc = pthread_attr_getstacksize(&attrs, &size);
9812 if (rc != 0) {
9813 return 2;
9814 }
9815
9816 if (size < 1024 * 1024) {
9817 return 1;
9818 }
9819 return 0;
9820 }
9821 EOF
9822
9823 ac_cv_thread_stack_size=unknown
9824 if $CC -pthread $CFLAGS conftest.c -o conftest &>/dev/null; then
9825 ./conftest &>/dev/null
9826 exitcode=$?
9827 if test $exitcode -eq 1; then
9828 ac_cv_thread_stack_size=1048576
9829 elif test $exitcode -eq 0; then
9830 ac_cv_thread_stack_size="default"
9831 fi
9832 fi
9833 rm -f conftest.c conftest
9834 ;;
9835 esac
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_thread_stack_size" >&5
9838 printf "%s\n" "$ac_cv_thread_stack_size" >&6; }
9839
9840 if test "$ac_cv_thread_stack_size" != "default" -a "$ac_cv_thread_stack_size" != "unknown"; then
9841 LDFLAGS="$LDFLAGS -Wl,-z,stack-size=$ac_cv_thread_stack_size"
9842 # Stack size used by Python/ceval.c to set Py_C_STACK_SIZE
9843
9844 printf "%s\n" "#define _Py_LINKER_THREAD_STACK_SIZE $ac_cv_thread_stack_size" >>confdefs.h
9845
9846 fi
9847 fi
9848
9849 case $enable_wasm_dynamic_linking in #(
9850 yes) :
9851 ac_cv_func_dlopen=yes ;; #(
9852 no) :
9853 ac_cv_func_dlopen=no ;; #(
9854 missing) :
9855
9856 ;; #(
9857 *) :
9858 ;;
9859 esac
9860
9861
9862
9863
9864
9865
9866
9867
9868 # The -arch flags for universal builds on macOS
9869 UNIVERSAL_ARCH_FLAGS=
9870
9871
9872
9873
9874 # tweak BASECFLAGS based on compiler and platform
9875 if test "x$with_strict_overflow" = xyes
9876 then :
9877 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9878 else case e in #(
9879 e) BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS" ;;
9880 esac
9881 fi
9882
9883 # Enable flags that warn and protect for potential security vulnerabilities.
9884 # These flags should be enabled by default for all builds.
9885
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-safety" >&5
9887 printf %s "checking for --enable-safety... " >&6; }
9888 # Check whether --enable-safety was given.
9889 if test ${enable_safety+y}
9890 then :
9891 enableval=$enable_safety; if test "x$disable_safety" = xyes
9892 then :
9893 enable_safety=no
9894 else case e in #(
9895 e) enable_safety=yes ;;
9896 esac
9897 fi
9898 else case e in #(
9899 e) enable_safety=no ;;
9900 esac
9901 fi
9902
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_safety" >&5
9904 printf "%s\n" "$enable_safety" >&6; }
9905
9906 if test "$enable_safety" = "yes"
9907 then
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-strong" >&5
9909 printf %s "checking whether C compiler accepts -fstack-protector-strong... " >&6; }
9910 if test ${ax_cv_check_cflags__Werror__fstack_protector_strong+y}
9911 then :
9912 printf %s "(cached) " >&6
9913 else case e in #(
9914 e)
9915 ax_check_save_flags=$CFLAGS
9916 CFLAGS="$CFLAGS -Werror -fstack-protector-strong"
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919
9920 int
9921 main (void)
9922 {
9923
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 if ac_fn_c_try_compile "$LINENO"
9929 then :
9930 ax_cv_check_cflags__Werror__fstack_protector_strong=yes
9931 else case e in #(
9932 e) ax_cv_check_cflags__Werror__fstack_protector_strong=no ;;
9933 esac
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9936 CFLAGS=$ax_check_save_flags ;;
9937 esac
9938 fi
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_strong" >&5
9940 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_strong" >&6; }
9941 if test "x$ax_cv_check_cflags__Werror__fstack_protector_strong" = xyes
9942 then :
9943 CFLAGS_NODIST="$CFLAGS_NODIST -fstack-protector-strong"
9944 else case e in #(
9945 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fstack-protector-strong not supported" >&5
9946 printf "%s\n" "$as_me: WARNING: -fstack-protector-strong not supported" >&2;} ;;
9947 esac
9948 fi
9949
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wtrampolines" >&5
9951 printf %s "checking whether C compiler accepts -Wtrampolines... " >&6; }
9952 if test ${ax_cv_check_cflags__Werror__Wtrampolines+y}
9953 then :
9954 printf %s "(cached) " >&6
9955 else case e in #(
9956 e)
9957 ax_check_save_flags=$CFLAGS
9958 CFLAGS="$CFLAGS -Werror -Wtrampolines"
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961
9962 int
9963 main (void)
9964 {
9965
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_c_try_compile "$LINENO"
9971 then :
9972 ax_cv_check_cflags__Werror__Wtrampolines=yes
9973 else case e in #(
9974 e) ax_cv_check_cflags__Werror__Wtrampolines=no ;;
9975 esac
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9978 CFLAGS=$ax_check_save_flags ;;
9979 esac
9980 fi
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wtrampolines" >&5
9982 printf "%s\n" "$ax_cv_check_cflags__Werror__Wtrampolines" >&6; }
9983 if test "x$ax_cv_check_cflags__Werror__Wtrampolines" = xyes
9984 then :
9985 CFLAGS_NODIST="$CFLAGS_NODIST -Wtrampolines"
9986 else case e in #(
9987 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wtrampolines not supported" >&5
9988 printf "%s\n" "$as_me: WARNING: -Wtrampolines not supported" >&2;} ;;
9989 esac
9990 fi
9991
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
9993 printf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
9994 if test ${ax_cv_check_cflags__Werror__Wimplicit_fallthrough+y}
9995 then :
9996 printf %s "(cached) " >&6
9997 else case e in #(
9998 e)
9999 ax_check_save_flags=$CFLAGS
10000 CFLAGS="$CFLAGS -Werror -Wimplicit-fallthrough"
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003
10004 int
10005 main (void)
10006 {
10007
10008 ;
10009 return 0;
10010 }
10011 _ACEOF
10012 if ac_fn_c_try_compile "$LINENO"
10013 then :
10014 ax_cv_check_cflags__Werror__Wimplicit_fallthrough=yes
10015 else case e in #(
10016 e) ax_cv_check_cflags__Werror__Wimplicit_fallthrough=no ;;
10017 esac
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10020 CFLAGS=$ax_check_save_flags ;;
10021 esac
10022 fi
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&5
10024 printf "%s\n" "$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&6; }
10025 if test "x$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" = xyes
10026 then :
10027 CFLAGS_NODIST="$CFLAGS_NODIST -Wimplicit-fallthrough"
10028 else case e in #(
10029 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wimplicit-fallthrough not supported" >&5
10030 printf "%s\n" "$as_me: WARNING: -Wimplicit-fallthrough not supported" >&2;} ;;
10031 esac
10032 fi
10033
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=format-security" >&5
10035 printf %s "checking whether C compiler accepts -Werror=format-security... " >&6; }
10036 if test ${ax_cv_check_cflags__Werror__Werror_format_security+y}
10037 then :
10038 printf %s "(cached) " >&6
10039 else case e in #(
10040 e)
10041 ax_check_save_flags=$CFLAGS
10042 CFLAGS="$CFLAGS -Werror -Werror=format-security"
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045
10046 int
10047 main (void)
10048 {
10049
10050 ;
10051 return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_compile "$LINENO"
10055 then :
10056 ax_cv_check_cflags__Werror__Werror_format_security=yes
10057 else case e in #(
10058 e) ax_cv_check_cflags__Werror__Werror_format_security=no ;;
10059 esac
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10062 CFLAGS=$ax_check_save_flags ;;
10063 esac
10064 fi
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Werror_format_security" >&5
10066 printf "%s\n" "$ax_cv_check_cflags__Werror__Werror_format_security" >&6; }
10067 if test "x$ax_cv_check_cflags__Werror__Werror_format_security" = xyes
10068 then :
10069 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=format-security"
10070 else case e in #(
10071 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Werror=format-security not supported" >&5
10072 printf "%s\n" "$as_me: WARNING: -Werror=format-security not supported" >&2;} ;;
10073 esac
10074 fi
10075
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wbidi-chars=any" >&5
10077 printf %s "checking whether C compiler accepts -Wbidi-chars=any... " >&6; }
10078 if test ${ax_cv_check_cflags__Werror__Wbidi_chars_any+y}
10079 then :
10080 printf %s "(cached) " >&6
10081 else case e in #(
10082 e)
10083 ax_check_save_flags=$CFLAGS
10084 CFLAGS="$CFLAGS -Werror -Wbidi-chars=any"
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087
10088 int
10089 main (void)
10090 {
10091
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 if ac_fn_c_try_compile "$LINENO"
10097 then :
10098 ax_cv_check_cflags__Werror__Wbidi_chars_any=yes
10099 else case e in #(
10100 e) ax_cv_check_cflags__Werror__Wbidi_chars_any=no ;;
10101 esac
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10104 CFLAGS=$ax_check_save_flags ;;
10105 esac
10106 fi
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wbidi_chars_any" >&5
10108 printf "%s\n" "$ax_cv_check_cflags__Werror__Wbidi_chars_any" >&6; }
10109 if test "x$ax_cv_check_cflags__Werror__Wbidi_chars_any" = xyes
10110 then :
10111 CFLAGS_NODIST="$CFLAGS_NODIST -Wbidi-chars=any"
10112 else case e in #(
10113 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wbidi-chars=any not supported" >&5
10114 printf "%s\n" "$as_me: WARNING: -Wbidi-chars=any not supported" >&2;} ;;
10115 esac
10116 fi
10117
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
10119 printf %s "checking whether C compiler accepts -Wall... " >&6; }
10120 if test ${ax_cv_check_cflags__Werror__Wall+y}
10121 then :
10122 printf %s "(cached) " >&6
10123 else case e in #(
10124 e)
10125 ax_check_save_flags=$CFLAGS
10126 CFLAGS="$CFLAGS -Werror -Wall"
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129
10130 int
10131 main (void)
10132 {
10133
10134 ;
10135 return 0;
10136 }
10137 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"
10139 then :
10140 ax_cv_check_cflags__Werror__Wall=yes
10141 else case e in #(
10142 e) ax_cv_check_cflags__Werror__Wall=no ;;
10143 esac
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 CFLAGS=$ax_check_save_flags ;;
10147 esac
10148 fi
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wall" >&5
10150 printf "%s\n" "$ax_cv_check_cflags__Werror__Wall" >&6; }
10151 if test "x$ax_cv_check_cflags__Werror__Wall" = xyes
10152 then :
10153 CFLAGS_NODIST="$CFLAGS_NODIST -Wall"
10154 else case e in #(
10155 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wall not supported" >&5
10156 printf "%s\n" "$as_me: WARNING: -Wall not supported" >&2;} ;;
10157 esac
10158 fi
10159
10160 fi
10161
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-slower-safety" >&5
10163 printf %s "checking for --enable-slower-safety... " >&6; }
10164 # Check whether --enable-slower-safety was given.
10165 if test ${enable_slower_safety+y}
10166 then :
10167 enableval=$enable_slower_safety; if test "x$disable_slower_safety" = xyes
10168 then :
10169 enable_slower_safety=no
10170 else case e in #(
10171 e) enable_slower_safety=yes ;;
10172 esac
10173 fi
10174 else case e in #(
10175 e) enable_slower_safety=no ;;
10176 esac
10177 fi
10178
10179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_slower_safety" >&5
10180 printf "%s\n" "$enable_slower_safety" >&6; }
10181
10182 if test "$enable_slower_safety" = "yes"
10183 then
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=3" >&5
10185 printf %s "checking whether C compiler accepts -D_FORTIFY_SOURCE=3... " >&6; }
10186 if test ${ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3+y}
10187 then :
10188 printf %s "(cached) " >&6
10189 else case e in #(
10190 e)
10191 ax_check_save_flags=$CFLAGS
10192 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=3"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195
10196 int
10197 main (void)
10198 {
10199
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_compile "$LINENO"
10205 then :
10206 ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3=yes
10207 else case e in #(
10208 e) ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3=no ;;
10209 esac
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10212 CFLAGS=$ax_check_save_flags ;;
10213 esac
10214 fi
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" >&5
10216 printf "%s\n" "$ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" >&6; }
10217 if test "x$ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" = xyes
10218 then :
10219 CFLAGS_NODIST="$CFLAGS_NODIST -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
10220 else case e in #(
10221 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -D_FORTIFY_SOURCE=3 not supported" >&5
10222 printf "%s\n" "$as_me: WARNING: -D_FORTIFY_SOURCE=3 not supported" >&2;} ;;
10223 esac
10224 fi
10225
10226 fi
10227
10228 if test "x$ac_cv_gcc_compat" = xyes
10229 then :
10230
10231 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
10232
10233
10234
10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
10236 printf %s "checking if we can add -Wextra... " >&6; }
10237 if test ${ac_cv_enable_extra_warning+y}
10238 then :
10239 printf %s "(cached) " >&6
10240 else case e in #(
10241 e)
10242 py_cflags=$CFLAGS
10243 as_fn_append CFLAGS " -Wextra -Werror"
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246
10247 int
10248 main (void)
10249 {
10250
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_compile "$LINENO"
10256 then :
10257 ac_cv_enable_extra_warning=yes
10258 else case e in #(
10259 e) ac_cv_enable_extra_warning=no ;;
10260 esac
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10263 CFLAGS=$py_cflags
10264 ;;
10265 esac
10266 fi
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
10268 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
10269
10270
10271 if test "x$ac_cv_enable_extra_warning" = xyes
10272 then :
10273 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
10274 fi
10275
10276 # Python doesn't violate C99 aliasing rules, but older versions of
10277 # GCC produce warnings for legal Python code. Enable
10278 # -fno-strict-aliasing on versions of GCC that support but produce
10279 # warnings. See Issue3326
10280 ac_save_cc="$CC"
10281 CC="$CC -fno-strict-aliasing"
10282 save_CFLAGS="$CFLAGS"
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
10284 printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
10285 if test ${ac_cv_no_strict_aliasing+y}
10286 then :
10287 printf %s "(cached) " >&6
10288 else case e in #(
10289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291
10292
10293 int
10294 main (void)
10295 {
10296
10297 ;
10298 return 0;
10299 }
10300
10301 _ACEOF
10302 if ac_fn_c_try_compile "$LINENO"
10303 then :
10304
10305 CC="$ac_save_cc -fstrict-aliasing"
10306 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309
10310 void f(int **x) {}
10311 int
10312 main (void)
10313 {
10314 double *x; f((int **) &x);
10315 ;
10316 return 0;
10317 }
10318
10319 _ACEOF
10320 if ac_fn_c_try_compile "$LINENO"
10321 then :
10322
10323 ac_cv_no_strict_aliasing=no
10324
10325 else case e in #(
10326 e)
10327 ac_cv_no_strict_aliasing=yes
10328 ;;
10329 esac
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332
10333 else case e in #(
10334 e)
10335 ac_cv_no_strict_aliasing=no
10336 ;;
10337 esac
10338 fi
10339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10340 esac
10341 fi
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
10343 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
10344 CFLAGS="$save_CFLAGS"
10345 CC="$ac_save_cc"
10346 if test "x$ac_cv_no_strict_aliasing" = xyes
10347 then :
10348 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
10349 fi
10350
10351 # ICC doesn't recognize the option, but only emits a warning
10352 ## XXX does it emit an unused result warning and can it be disabled?
10353 case "$ac_cv_cc_name" in #(
10354 icc) :
10355 ac_cv_disable_unused_result_warning=no
10356
10357
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
10359 printf %s "checking if we can disable $CC unused-result warning... " >&6; }
10360 if test ${ac_cv_disable_unused_result_warning+y}
10361 then :
10362 printf %s "(cached) " >&6
10363 else case e in #(
10364 e)
10365 py_cflags=$CFLAGS
10366 as_fn_append CFLAGS " -Wunused-result -Werror"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10369
10370 int
10371 main (void)
10372 {
10373
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"
10379 then :
10380 ac_cv_disable_unused_result_warning=yes
10381 else case e in #(
10382 e) ac_cv_disable_unused_result_warning=no ;;
10383 esac
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10386 CFLAGS=$py_cflags
10387 ;;
10388 esac
10389 fi
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
10391 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
10392
10393 ;; #(
10394 *) :
10395 ;;
10396 esac
10397 if test "x$ac_cv_disable_unused_result_warning" = xyes
10398 then :
10399 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
10400 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
10401 fi
10402
10403
10404
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
10406 printf %s "checking if we can disable $CC unused-parameter warning... " >&6; }
10407 if test ${ac_cv_disable_unused_parameter_warning+y}
10408 then :
10409 printf %s "(cached) " >&6
10410 else case e in #(
10411 e)
10412 py_cflags=$CFLAGS
10413 as_fn_append CFLAGS " -Wunused-parameter -Werror"
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416
10417 int
10418 main (void)
10419 {
10420
10421 ;
10422 return 0;
10423 }
10424 _ACEOF
10425 if ac_fn_c_try_compile "$LINENO"
10426 then :
10427 ac_cv_disable_unused_parameter_warning=yes
10428 else case e in #(
10429 e) ac_cv_disable_unused_parameter_warning=no ;;
10430 esac
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10433 CFLAGS=$py_cflags
10434 ;;
10435 esac
10436 fi
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
10438 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
10439
10440
10441 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
10442 then :
10443 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
10444 fi
10445
10446
10447
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
10449 printf %s "checking if we can disable $CC int-conversion warning... " >&6; }
10450 if test ${ac_cv_disable_int_conversion_warning+y}
10451 then :
10452 printf %s "(cached) " >&6
10453 else case e in #(
10454 e)
10455 py_cflags=$CFLAGS
10456 as_fn_append CFLAGS " -Wint-conversion -Werror"
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458 /* end confdefs.h. */
10459
10460 int
10461 main (void)
10462 {
10463
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_compile "$LINENO"
10469 then :
10470 ac_cv_disable_int_conversion_warning=yes
10471 else case e in #(
10472 e) ac_cv_disable_int_conversion_warning=no ;;
10473 esac
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10476 CFLAGS=$py_cflags
10477 ;;
10478 esac
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
10481 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
10482
10483
10484 if test "x$ac_cv_disable_int_conversion" = xyes
10485 then :
10486 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
10487 fi
10488
10489
10490
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
10492 printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; }
10493 if test ${ac_cv_disable_missing_field_initializers_warning+y}
10494 then :
10495 printf %s "(cached) " >&6
10496 else case e in #(
10497 e)
10498 py_cflags=$CFLAGS
10499 as_fn_append CFLAGS " -Wmissing-field-initializers -Werror"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* end confdefs.h. */
10502
10503 int
10504 main (void)
10505 {
10506
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"
10512 then :
10513 ac_cv_disable_missing_field_initializers_warning=yes
10514 else case e in #(
10515 e) ac_cv_disable_missing_field_initializers_warning=no ;;
10516 esac
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10519 CFLAGS=$py_cflags
10520 ;;
10521 esac
10522 fi
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
10524 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
10525
10526
10527 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
10528 then :
10529 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
10530 fi
10531
10532
10533
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
10535 printf %s "checking if we can enable $CC sign-compare warning... " >&6; }
10536 if test ${ac_cv_enable_sign_compare_warning+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else case e in #(
10540 e)
10541 py_cflags=$CFLAGS
10542 as_fn_append CFLAGS " -Wsign-compare -Werror"
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545
10546 int
10547 main (void)
10548 {
10549
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_compile "$LINENO"
10555 then :
10556 ac_cv_enable_sign_compare_warning=yes
10557 else case e in #(
10558 e) ac_cv_enable_sign_compare_warning=no ;;
10559 esac
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10562 CFLAGS=$py_cflags
10563 ;;
10564 esac
10565 fi
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
10567 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
10568
10569
10570 if test "x$ac_cv_enable_sign_compare_warning" = xyes
10571 then :
10572 BASECFLAGS="$BASECFLAGS -Wsign-compare"
10573 fi
10574
10575
10576
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
10578 printf %s "checking if we can enable $CC unreachable-code warning... " >&6; }
10579 if test ${ac_cv_enable_unreachable_code_warning+y}
10580 then :
10581 printf %s "(cached) " >&6
10582 else case e in #(
10583 e)
10584 py_cflags=$CFLAGS
10585 as_fn_append CFLAGS " -Wunreachable-code -Werror"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588
10589 int
10590 main (void)
10591 {
10592
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 if ac_fn_c_try_compile "$LINENO"
10598 then :
10599 ac_cv_enable_unreachable_code_warning=yes
10600 else case e in #(
10601 e) ac_cv_enable_unreachable_code_warning=no ;;
10602 esac
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10605 CFLAGS=$py_cflags
10606 ;;
10607 esac
10608 fi
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
10610 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
10611
10612
10613 # Don't enable unreachable code warning in debug mode, since it usually
10614 # results in non-standard code paths.
10615 # Issue #24324: Unfortunately, the unreachable code warning does not work
10616 # correctly on gcc and has been silently removed from the compiler.
10617 # It is supported on clang but on OS X systems gcc may be an alias
10618 # for clang. Try to determine if the compiler is not really gcc and,
10619 # if so, only then enable the warning.
10620 if test $ac_cv_enable_unreachable_code_warning = yes && \
10621 test "$Py_DEBUG" != "true" && \
10622 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
10623 then
10624 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
10625 else
10626 ac_cv_enable_unreachable_code_warning=no
10627 fi
10628
10629
10630
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
10632 printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; }
10633 if test ${ac_cv_enable_strict_prototypes_warning+y}
10634 then :
10635 printf %s "(cached) " >&6
10636 else case e in #(
10637 e)
10638 py_cflags=$CFLAGS
10639 as_fn_append CFLAGS " -Wstrict-prototypes -Werror"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642
10643 int
10644 main (void)
10645 {
10646
10647 ;
10648 return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_c_try_compile "$LINENO"
10652 then :
10653 ac_cv_enable_strict_prototypes_warning=yes
10654 else case e in #(
10655 e) ac_cv_enable_strict_prototypes_warning=no ;;
10656 esac
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 CFLAGS=$py_cflags
10660 ;;
10661 esac
10662 fi
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10664 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10665
10666
10667 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10668 then :
10669 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
10670 fi
10671
10672 ac_save_cc="$CC"
10673 CC="$CC -Werror=implicit-function-declaration"
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10675 printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; }
10676 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else case e in #(
10680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682
10683
10684 int
10685 main (void)
10686 {
10687
10688 ;
10689 return 0;
10690 }
10691
10692 _ACEOF
10693 if ac_fn_c_try_compile "$LINENO"
10694 then :
10695
10696 ac_cv_enable_implicit_function_declaration_error=yes
10697
10698 else case e in #(
10699 e)
10700 ac_cv_enable_implicit_function_declaration_error=no
10701 ;;
10702 esac
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10705 esac
10706 fi
10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10708 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10709 CC="$ac_save_cc"
10710
10711 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10712 then :
10713 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10714 fi
10715
10716 ac_save_cc="$CC"
10717 CC="$CC -fvisibility=hidden"
10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10719 printf %s "checking if we can use visibility in $CC... " >&6; }
10720 if test ${ac_cv_enable_visibility+y}
10721 then :
10722 printf %s "(cached) " >&6
10723 else case e in #(
10724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726
10727
10728 int
10729 main (void)
10730 {
10731
10732 ;
10733 return 0;
10734 }
10735
10736 _ACEOF
10737 if ac_fn_c_try_compile "$LINENO"
10738 then :
10739
10740 ac_cv_enable_visibility=yes
10741
10742 else case e in #(
10743 e)
10744 ac_cv_enable_visibility=no
10745 ;;
10746 esac
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10749 esac
10750 fi
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10752 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10753 CC="$ac_save_cc"
10754
10755 if test "x$ac_cv_enable_visibility" = xyes
10756 then :
10757 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
10758 fi
10759
10760 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10761 # support. Without this, treatment of subnormals doesn't follow
10762 # the standard.
10763 case $host in
10764 alpha*)
10765 BASECFLAGS="$BASECFLAGS -mieee"
10766 ;;
10767 esac
10768
10769 case $ac_sys_system in
10770 SCO_SV*)
10771 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
10772 ;;
10773
10774 Darwin*)
10775 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10776 # used to be here, but non-Apple gcc doesn't accept them.
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10778 printf %s "checking which compiler should be used... " >&6; }
10779 case "${UNIVERSALSDK}" in
10780 */MacOSX10.4u.sdk)
10781 # Build using 10.4 SDK, force usage of gcc when the
10782 # compiler is gcc, otherwise the user will get very
10783 # confusing error messages when building on OSX 10.6
10784 CC=gcc-4.0
10785 CPP=cpp-4.0
10786 ;;
10787 esac
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10789 printf "%s\n" "$CC" >&6; }
10790
10791 # Error on unguarded use of new symbols, which will fail at runtime for
10792 # users on older versions of macOS
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunguarded-availability" >&5
10794 printf %s "checking whether C compiler accepts -Wunguarded-availability... " >&6; }
10795 if test ${ax_cv_check_cflags__Werror__Wunguarded_availability+y}
10796 then :
10797 printf %s "(cached) " >&6
10798 else case e in #(
10799 e)
10800 ax_check_save_flags=$CFLAGS
10801 CFLAGS="$CFLAGS -Werror -Wunguarded-availability"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804
10805 int
10806 main (void)
10807 {
10808
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_compile "$LINENO"
10814 then :
10815 ax_cv_check_cflags__Werror__Wunguarded_availability=yes
10816 else case e in #(
10817 e) ax_cv_check_cflags__Werror__Wunguarded_availability=no ;;
10818 esac
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10821 CFLAGS=$ax_check_save_flags ;;
10822 esac
10823 fi
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wunguarded_availability" >&5
10825 printf "%s\n" "$ax_cv_check_cflags__Werror__Wunguarded_availability" >&6; }
10826 if test "x$ax_cv_check_cflags__Werror__Wunguarded_availability" = xyes
10827 then :
10828 as_fn_append CFLAGS_NODIST " -Werror=unguarded-availability"
10829 else case e in #(
10830 e) : ;;
10831 esac
10832 fi
10833
10834
10835 LIPO_INTEL64_FLAGS=""
10836 if test "${enable_universalsdk}"
10837 then
10838 case "$UNIVERSAL_ARCHS" in
10839 32-bit)
10840 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
10841 LIPO_32BIT_FLAGS=""
10842 ARCH_RUN_32BIT=""
10843 ARCH_TRIPLES=`echo {ppc,i386}-apple-darwin`
10844 ;;
10845 64-bit)
10846 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
10847 LIPO_32BIT_FLAGS=""
10848 ARCH_RUN_32BIT="true"
10849 ARCH_TRIPLES=`echo {ppc64,x86_64}-apple-darwin`
10850 ;;
10851 all)
10852 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10853 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10854 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10855 ARCH_TRIPLES=`echo {i386,ppc,ppc64,x86_64}-apple-darwin`
10856 ;;
10857 universal2)
10858 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
10859 LIPO_32BIT_FLAGS=""
10860 LIPO_INTEL64_FLAGS="-extract x86_64"
10861 ARCH_RUN_32BIT="true"
10862 ARCH_TRIPLES=`echo {aarch64,x86_64}-apple-darwin`
10863 ;;
10864 intel)
10865 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
10866 LIPO_32BIT_FLAGS="-extract i386"
10867 ARCH_RUN_32BIT="/usr/bin/arch -i386"
10868 ARCH_TRIPLES=`echo {i386,x86_64}-apple-darwin`
10869 ;;
10870 intel-32)
10871 UNIVERSAL_ARCH_FLAGS="-arch i386"
10872 LIPO_32BIT_FLAGS=""
10873 ARCH_RUN_32BIT=""
10874 ARCH_TRIPLES=i386-apple-darwin
10875 ;;
10876 intel-64)
10877 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
10878 LIPO_32BIT_FLAGS=""
10879 ARCH_RUN_32BIT="true"
10880 ARCH_TRIPLES=x86_64-apple-darwin
10881 ;;
10882 3-way)
10883 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
10884 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10885 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10886 ARCH_TRIPLES=`echo {i386,ppc,x86_64}-apple-darwin`
10887 ;;
10888 *)
10889 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10890 ;;
10891 esac
10892
10893 if test "${UNIVERSALSDK}" != "/"
10894 then
10895 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10896 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10897 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10898 else
10899 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10900 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10901 fi
10902 fi
10903
10904 # Calculate an appropriate deployment target for this build:
10905 # The deployment target value is used explicitly to enable certain
10906 # features are enabled (such as builtin libedit support for readline)
10907 # through the use of Apple's Availability Macros and is used as a
10908 # component of the string returned by distutils.get_platform().
10909 #
10910 # Use the value from:
10911 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10912 # 2. the operating system version of the build machine if >= 10.6
10913 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10914 # below to pick either 10.3, 10.4, or 10.5 as the target.
10915 # 4. If we are running on OS X 10.2 or earlier, good luck!
10916
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10918 printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10919 cur_target_major=`sw_vers -productVersion | \
10920 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10921 cur_target_minor=`sw_vers -productVersion | \
10922 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10923 cur_target="${cur_target_major}.${cur_target_minor}"
10924 if test ${cur_target_major} -eq 10 && \
10925 test ${cur_target_minor} -ge 3 && \
10926 test ${cur_target_minor} -le 5
10927 then
10928 # OS X 10.3 through 10.5
10929 cur_target=10.3
10930 if test ${enable_universalsdk}
10931 then
10932 case "$UNIVERSAL_ARCHS" in
10933 all|3-way|intel|64-bit)
10934 # These configurations were first supported in 10.5
10935 cur_target='10.5'
10936 ;;
10937 esac
10938 else
10939 if test `/usr/bin/arch` = "i386"
10940 then
10941 # 10.4 was the first release to support Intel archs
10942 cur_target="10.4"
10943 fi
10944 fi
10945 fi
10946 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10947
10948 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10949 # environment with a value that is the same as what we'll use
10950 # in the Makefile to ensure that we'll get the same compiler
10951 # environment during configure and build time.
10952 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10953 export MACOSX_DEPLOYMENT_TARGET
10954 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10956 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10957
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10959 printf %s "checking if specified universal architectures work... " >&6; }
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <stdio.h>
10963 int
10964 main (void)
10965 {
10966 printf("%d", 42);
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"
10972 then :
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 printf "%s\n" "yes" >&6; }
10975 else case e in #(
10976 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 printf "%s\n" "no" >&6; }
10978 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10979 ;;
10980 esac
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10983 conftest$ac_exeext conftest.$ac_ext
10984
10985 # end of Darwin* tests
10986 ;;
10987 esac
10988
10989 else case e in #(
10990 e)
10991 case $ac_sys_system in
10992 OpenUNIX*|UnixWare*)
10993 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10994 ;;
10995 SCO_SV*)
10996 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
10997 ;;
10998 esac
10999 ;;
11000 esac
11001 fi
11002
11003 # Check for --enable-experimental-jit:
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5
11005 printf %s "checking for --enable-experimental-jit... " >&6; }
11006 # Check whether --enable-experimental-jit was given.
11007 if test ${enable_experimental_jit+y}
11008 then :
11009 enableval=$enable_experimental_jit;
11010 else case e in #(
11011 e) enable_experimental_jit=no ;;
11012 esac
11013 fi
11014
11015 case $enable_experimental_jit in
11016 no) jit_flags=""; tier2_flags="" ;;
11017 yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;;
11018 yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;;
11019 interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;;
11020 interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option
11021 *) as_fn_error $? "invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;;
11022 esac
11023 if ${tier2_flags:+false} :
11024 then :
11025
11026 else case e in #(
11027 e) as_fn_append CFLAGS_NODIST " $tier2_flags" ;;
11028 esac
11029 fi
11030 if ${jit_flags:+false} :
11031 then :
11032
11033 else case e in #(
11034 e) as_fn_append CFLAGS_NODIST " $jit_flags"
11035 REGEN_JIT_COMMAND="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py ${ARCH_TRIPLES:-$host} --output-dir . --pyconfig-dir . --cflags=\"$CFLAGS_JIT\""
11036 JIT_STENCILS_H="jit_stencils.h"
11037 if test "x$Py_DEBUG" = xtrue
11038 then :
11039 as_fn_append REGEN_JIT_COMMAND " --debug"
11040 fi ;;
11041 esac
11042 fi
11043
11044
11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5
11046 printf "%s\n" "$tier2_flags $jit_flags" >&6; }
11047
11048 if test "$disable_gil" = "yes" -a "$enable_experimental_jit" != "no"; then
11049 # GH-133171: This configuration builds the JIT but never actually uses it,
11050 # which is surprising (and strictly worse than not building it at all):
11051 as_fn_error $? "--enable-experimental-jit cannot be used with --disable-gil." "$LINENO" 5
11052 fi
11053
11054 case "$ac_cv_cc_name" in
11055 mpicc)
11056 CFLAGS_NODIST="$CFLAGS_NODIST"
11057 ;;
11058 icc)
11059 # ICC needs -fp-model strict or floats behave badly
11060 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
11061 ;;
11062 xlc)
11063 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
11064 ;;
11065 esac
11066
11067 if test "$assertions" = 'true'; then
11068 :
11069 else
11070 OPT="-DNDEBUG $OPT"
11071 fi
11072
11073 if test "$ac_arch_flags"
11074 then
11075 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
11076 fi
11077
11078 # On some compilers, pthreads are available without further options
11079 # (e.g. MacOS X). On some of these systems, the compiler will not
11080 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
11081 # So we have to see first whether pthreads are available without
11082 # options before we can check whether -Kpthread improves anything.
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
11084 printf %s "checking whether pthreads are available without options... " >&6; }
11085 if test ${ac_cv_pthread_is_default+y}
11086 then :
11087 printf %s "(cached) " >&6
11088 else case e in #(
11089 e) if test "$cross_compiling" = yes
11090 then :
11091 ac_cv_pthread_is_default=no
11092 else case e in #(
11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095
11096 #include <stdio.h>
11097 #include <pthread.h>
11098
11099 void* routine(void* p){return NULL;}
11100
11101 int main(void){
11102 pthread_t p;
11103 if(pthread_create(&p,NULL,routine,NULL)!=0)
11104 return 1;
11105 (void)pthread_detach(p);
11106 return 0;
11107 }
11108
11109 _ACEOF
11110 if ac_fn_c_try_run "$LINENO"
11111 then :
11112
11113 ac_cv_pthread_is_default=yes
11114 ac_cv_kthread=no
11115 ac_cv_pthread=no
11116
11117 else case e in #(
11118 e) ac_cv_pthread_is_default=no ;;
11119 esac
11120 fi
11121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11122 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11123 esac
11124 fi
11125
11126 ;;
11127 esac
11128 fi
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
11130 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
11131
11132
11133 if test $ac_cv_pthread_is_default = yes
11134 then
11135 ac_cv_kpthread=no
11136 else
11137 # -Kpthread, if available, provides the right #defines
11138 # and linker options to make pthread_create available
11139 # Some compilers won't report that they do not support -Kpthread,
11140 # so we need to run a program to see whether it really made the
11141 # function available.
11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
11143 printf %s "checking whether $CC accepts -Kpthread... " >&6; }
11144 if test ${ac_cv_kpthread+y}
11145 then :
11146 printf %s "(cached) " >&6
11147 else case e in #(
11148 e) ac_save_cc="$CC"
11149 CC="$CC -Kpthread"
11150 if test "$cross_compiling" = yes
11151 then :
11152 ac_cv_kpthread=no
11153 else case e in #(
11154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156
11157 #include <stdio.h>
11158 #include <pthread.h>
11159
11160 void* routine(void* p){return NULL;}
11161
11162 int main(void){
11163 pthread_t p;
11164 if(pthread_create(&p,NULL,routine,NULL)!=0)
11165 return 1;
11166 (void)pthread_detach(p);
11167 return 0;
11168 }
11169
11170 _ACEOF
11171 if ac_fn_c_try_run "$LINENO"
11172 then :
11173 ac_cv_kpthread=yes
11174 else case e in #(
11175 e) ac_cv_kpthread=no ;;
11176 esac
11177 fi
11178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11179 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11180 esac
11181 fi
11182
11183 CC="$ac_save_cc" ;;
11184 esac
11185 fi
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
11187 printf "%s\n" "$ac_cv_kpthread" >&6; }
11188 fi
11189
11190 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
11191 then
11192 # -Kthread, if available, provides the right #defines
11193 # and linker options to make pthread_create available
11194 # Some compilers won't report that they do not support -Kthread,
11195 # so we need to run a program to see whether it really made the
11196 # function available.
11197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
11198 printf %s "checking whether $CC accepts -Kthread... " >&6; }
11199 if test ${ac_cv_kthread+y}
11200 then :
11201 printf %s "(cached) " >&6
11202 else case e in #(
11203 e) ac_save_cc="$CC"
11204 CC="$CC -Kthread"
11205 if test "$cross_compiling" = yes
11206 then :
11207 ac_cv_kthread=no
11208 else case e in #(
11209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11211
11212 #include <stdio.h>
11213 #include <pthread.h>
11214
11215 void* routine(void* p){return NULL;}
11216
11217 int main(void){
11218 pthread_t p;
11219 if(pthread_create(&p,NULL,routine,NULL)!=0)
11220 return 1;
11221 (void)pthread_detach(p);
11222 return 0;
11223 }
11224
11225 _ACEOF
11226 if ac_fn_c_try_run "$LINENO"
11227 then :
11228 ac_cv_kthread=yes
11229 else case e in #(
11230 e) ac_cv_kthread=no ;;
11231 esac
11232 fi
11233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11234 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11235 esac
11236 fi
11237
11238 CC="$ac_save_cc" ;;
11239 esac
11240 fi
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
11242 printf "%s\n" "$ac_cv_kthread" >&6; }
11243 fi
11244
11245 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
11246 then
11247 # -pthread, if available, provides the right #defines
11248 # and linker options to make pthread_create available
11249 # Some compilers won't report that they do not support -pthread,
11250 # so we need to run a program to see whether it really made the
11251 # function available.
11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
11253 printf %s "checking whether $CC accepts -pthread... " >&6; }
11254 if test ${ac_cv_pthread+y}
11255 then :
11256 printf %s "(cached) " >&6
11257 else case e in #(
11258 e) ac_save_cc="$CC"
11259 CC="$CC -pthread"
11260 if test "$cross_compiling" = yes
11261 then :
11262 ac_cv_pthread=no
11263 else case e in #(
11264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266
11267 #include <stdio.h>
11268 #include <pthread.h>
11269
11270 void* routine(void* p){return NULL;}
11271
11272 int main(void){
11273 pthread_t p;
11274 if(pthread_create(&p,NULL,routine,NULL)!=0)
11275 return 1;
11276 (void)pthread_detach(p);
11277 return 0;
11278 }
11279
11280 _ACEOF
11281 if ac_fn_c_try_run "$LINENO"
11282 then :
11283 ac_cv_pthread=yes
11284 else case e in #(
11285 e) ac_cv_pthread=no ;;
11286 esac
11287 fi
11288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11289 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11290 esac
11291 fi
11292
11293 CC="$ac_save_cc" ;;
11294 esac
11295 fi
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
11297 printf "%s\n" "$ac_cv_pthread" >&6; }
11298 fi
11299
11300 # If we have set a CC compiler flag for thread support then
11301 # check if it works for CXX, too.
11302 if test ! -z "$CXX"
11303 then
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
11305 printf %s "checking whether $CXX also accepts flags for thread support... " >&6; }
11306 if test ${ac_cv_cxx_thread+y}
11307 then :
11308 printf %s "(cached) " >&6
11309 else case e in #(
11310 e) ac_save_cxx="$CXX"
11311
11312 if test "$ac_cv_kpthread" = "yes"
11313 then
11314 CXX="$CXX -Kpthread"
11315 ac_cv_cxx_thread=yes
11316 elif test "$ac_cv_kthread" = "yes"
11317 then
11318 CXX="$CXX -Kthread"
11319 ac_cv_cxx_thread=yes
11320 elif test "$ac_cv_pthread" = "yes"
11321 then
11322 CXX="$CXX -pthread"
11323 ac_cv_cxx_thread=yes
11324 else
11325 ac_cv_cxx_thread=no
11326 fi
11327
11328 if test $ac_cv_cxx_thread = yes
11329 then
11330 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
11331 $CXX -c conftest.$ac_ext 2>&5
11332 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
11333 && test -s conftest$ac_exeext && ./conftest$ac_exeext
11334 then
11335 ac_cv_cxx_thread=yes
11336 else
11337 ac_cv_cxx_thread=no
11338 fi
11339 rm -fr conftest*
11340 fi
11341 CXX="$ac_save_cxx" ;;
11342 esac
11343 fi
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
11345 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
11346 else
11347 ac_cv_cxx_thread=no
11348 fi
11349
11350
11351
11352 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
11353
11354
11355 # checks for header files
11356 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11357 if test "x$ac_cv_header_alloca_h" = xyes
11358 then :
11359 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
11360
11361 fi
11362 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
11363 if test "x$ac_cv_header_asm_types_h" = xyes
11364 then :
11365 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
11366
11367 fi
11368 ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
11369 if test "x$ac_cv_header_bluetooth_h" = xyes
11370 then :
11371 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
11372
11373 fi
11374 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
11375 if test "x$ac_cv_header_conio_h" = xyes
11376 then :
11377 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
11378
11379 fi
11380 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
11381 if test "x$ac_cv_header_direct_h" = xyes
11382 then :
11383 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
11384
11385 fi
11386 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11387 if test "x$ac_cv_header_dlfcn_h" = xyes
11388 then :
11389 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11390
11391 fi
11392 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
11393 if test "x$ac_cv_header_endian_h" = xyes
11394 then :
11395 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
11396
11397 fi
11398 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11399 if test "x$ac_cv_header_errno_h" = xyes
11400 then :
11401 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11402
11403 fi
11404 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11405 if test "x$ac_cv_header_fcntl_h" = xyes
11406 then :
11407 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11408
11409 fi
11410 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
11411 if test "x$ac_cv_header_grp_h" = xyes
11412 then :
11413 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
11414
11415 fi
11416 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
11417 if test "x$ac_cv_header_io_h" = xyes
11418 then :
11419 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
11420
11421 fi
11422 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11423 if test "x$ac_cv_header_langinfo_h" = xyes
11424 then :
11425 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
11426
11427 fi
11428 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11429 if test "x$ac_cv_header_libintl_h" = xyes
11430 then :
11431 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
11432
11433 fi
11434 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
11435 if test "x$ac_cv_header_libutil_h" = xyes
11436 then :
11437 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
11438
11439 fi
11440 ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
11441 if test "x$ac_cv_header_linux_auxvec_h" = xyes
11442 then :
11443 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
11444
11445 fi
11446 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
11447 if test "x$ac_cv_header_sys_auxv_h" = xyes
11448 then :
11449 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
11450
11451 fi
11452 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
11453 if test "x$ac_cv_header_linux_fs_h" = xyes
11454 then :
11455 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
11456
11457 fi
11458 ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
11459 if test "x$ac_cv_header_linux_limits_h" = xyes
11460 then :
11461 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
11462
11463 fi
11464 ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
11465 if test "x$ac_cv_header_linux_memfd_h" = xyes
11466 then :
11467 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
11468
11469 fi
11470 ac_fn_c_check_header_compile "$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "$ac_includes_default"
11471 if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes
11472 then :
11473 printf "%s\n" "#define HAVE_LINUX_NETFILTER_IPV4_H 1" >>confdefs.h
11474
11475 fi
11476 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
11477 if test "x$ac_cv_header_linux_random_h" = xyes
11478 then :
11479 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
11480
11481 fi
11482 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
11483 if test "x$ac_cv_header_linux_soundcard_h" = xyes
11484 then :
11485 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
11486
11487 fi
11488 ac_fn_c_check_header_compile "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
11489 if test "x$ac_cv_header_linux_sched_h" = xyes
11490 then :
11491 printf "%s\n" "#define HAVE_LINUX_SCHED_H 1" >>confdefs.h
11492
11493 fi
11494 ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
11495 if test "x$ac_cv_header_linux_tipc_h" = xyes
11496 then :
11497 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
11498
11499 fi
11500 ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
11501 if test "x$ac_cv_header_linux_wait_h" = xyes
11502 then :
11503 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
11504
11505 fi
11506 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
11507 if test "x$ac_cv_header_netdb_h" = xyes
11508 then :
11509 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
11510
11511 fi
11512 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
11513 if test "x$ac_cv_header_net_ethernet_h" = xyes
11514 then :
11515 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
11516
11517 fi
11518 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11519 if test "x$ac_cv_header_netinet_in_h" = xyes
11520 then :
11521 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
11522
11523 fi
11524 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
11525 if test "x$ac_cv_header_netpacket_packet_h" = xyes
11526 then :
11527 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
11528
11529 fi
11530 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11531 if test "x$ac_cv_header_poll_h" = xyes
11532 then :
11533 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
11534
11535 fi
11536 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
11537 if test "x$ac_cv_header_process_h" = xyes
11538 then :
11539 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
11540
11541 fi
11542 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11543 if test "x$ac_cv_header_pthread_h" = xyes
11544 then :
11545 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11546
11547 fi
11548 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
11549 if test "x$ac_cv_header_pty_h" = xyes
11550 then :
11551 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
11552
11553 fi
11554 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11555 if test "x$ac_cv_header_sched_h" = xyes
11556 then :
11557 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
11558
11559 fi
11560 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11561 if test "x$ac_cv_header_setjmp_h" = xyes
11562 then :
11563 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11564
11565 fi
11566 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
11567 if test "x$ac_cv_header_shadow_h" = xyes
11568 then :
11569 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
11570
11571 fi
11572 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11573 if test "x$ac_cv_header_signal_h" = xyes
11574 then :
11575 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11576
11577 fi
11578 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
11579 if test "x$ac_cv_header_spawn_h" = xyes
11580 then :
11581 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
11582
11583 fi
11584 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
11585 if test "x$ac_cv_header_stropts_h" = xyes
11586 then :
11587 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
11588
11589 fi
11590 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
11591 if test "x$ac_cv_header_sys_audioio_h" = xyes
11592 then :
11593 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
11594
11595 fi
11596 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
11597 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
11598 then :
11599 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
11600
11601 fi
11602 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
11603 if test "x$ac_cv_header_sys_devpoll_h" = xyes
11604 then :
11605 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
11606
11607 fi
11608 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
11609 if test "x$ac_cv_header_sys_endian_h" = xyes
11610 then :
11611 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
11612
11613 fi
11614 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
11615 if test "x$ac_cv_header_sys_epoll_h" = xyes
11616 then :
11617 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
11618
11619 fi
11620 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
11621 if test "x$ac_cv_header_sys_event_h" = xyes
11622 then :
11623 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
11624
11625 fi
11626 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
11627 if test "x$ac_cv_header_sys_eventfd_h" = xyes
11628 then :
11629 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
11630
11631 fi
11632 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
11633 if test "x$ac_cv_header_sys_file_h" = xyes
11634 then :
11635 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
11636
11637 fi
11638 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
11639 if test "x$ac_cv_header_sys_ioctl_h" = xyes
11640 then :
11641 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
11642
11643 fi
11644 ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
11645 if test "x$ac_cv_header_sys_kern_control_h" = xyes
11646 then :
11647 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
11648
11649 fi
11650 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11651 if test "x$ac_cv_header_sys_loadavg_h" = xyes
11652 then :
11653 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
11654
11655 fi
11656 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
11657 if test "x$ac_cv_header_sys_lock_h" = xyes
11658 then :
11659 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
11660
11661 fi
11662 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
11663 if test "x$ac_cv_header_sys_memfd_h" = xyes
11664 then :
11665 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
11666
11667 fi
11668 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11669 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11670 then :
11671 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
11672
11673 fi
11674 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11675 if test "x$ac_cv_header_sys_mman_h" = xyes
11676 then :
11677 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
11678
11679 fi
11680 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
11681 if test "x$ac_cv_header_sys_modem_h" = xyes
11682 then :
11683 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
11684
11685 fi
11686 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11687 if test "x$ac_cv_header_sys_param_h" = xyes
11688 then :
11689 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11690
11691 fi
11692 ac_fn_c_check_header_compile "$LINENO" "sys/pidfd.h" "ac_cv_header_sys_pidfd_h" "$ac_includes_default"
11693 if test "x$ac_cv_header_sys_pidfd_h" = xyes
11694 then :
11695 printf "%s\n" "#define HAVE_SYS_PIDFD_H 1" >>confdefs.h
11696
11697 fi
11698 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
11699 if test "x$ac_cv_header_sys_poll_h" = xyes
11700 then :
11701 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
11702
11703 fi
11704 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
11705 if test "x$ac_cv_header_sys_random_h" = xyes
11706 then :
11707 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
11708
11709 fi
11710 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11711 if test "x$ac_cv_header_sys_resource_h" = xyes
11712 then :
11713 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11714
11715 fi
11716 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11717 if test "x$ac_cv_header_sys_select_h" = xyes
11718 then :
11719 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11720
11721 fi
11722 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
11723 if test "x$ac_cv_header_sys_sendfile_h" = xyes
11724 then :
11725 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
11726
11727 fi
11728 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11729 if test "x$ac_cv_header_sys_socket_h" = xyes
11730 then :
11731 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
11732
11733 fi
11734 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11735 if test "x$ac_cv_header_sys_soundcard_h" = xyes
11736 then :
11737 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
11738
11739 fi
11740 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
11741 if test "x$ac_cv_header_sys_stat_h" = xyes
11742 then :
11743 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
11744
11745 fi
11746 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
11747 if test "x$ac_cv_header_sys_statvfs_h" = xyes
11748 then :
11749 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
11750
11751 fi
11752 ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
11753 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
11754 then :
11755 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
11756
11757 fi
11758 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
11759 if test "x$ac_cv_header_sys_syscall_h" = xyes
11760 then :
11761 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
11762
11763 fi
11764 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
11765 if test "x$ac_cv_header_sys_sysctl_h" = xyes
11766 then :
11767 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
11768
11769 fi
11770 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11771 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11772 then :
11773 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
11774
11775 fi
11776 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
11777 if test "x$ac_cv_header_sys_termio_h" = xyes
11778 then :
11779 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
11780
11781 fi
11782 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11783 if test "x$ac_cv_header_sys_time_h" = xyes
11784 then :
11785 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11786
11787 fi
11788 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11789 if test "x$ac_cv_header_sys_times_h" = xyes
11790 then :
11791 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11792
11793 fi
11794 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11795 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11796 then :
11797 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11798
11799 fi
11800 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11801 if test "x$ac_cv_header_sys_types_h" = xyes
11802 then :
11803 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11804
11805 fi
11806 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11807 if test "x$ac_cv_header_sys_uio_h" = xyes
11808 then :
11809 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11810
11811 fi
11812 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11813 if test "x$ac_cv_header_sys_un_h" = xyes
11814 then :
11815 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11816
11817 fi
11818 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11819 if test "x$ac_cv_header_sys_utsname_h" = xyes
11820 then :
11821 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11822
11823 fi
11824 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11825 if test "x$ac_cv_header_sys_wait_h" = xyes
11826 then :
11827 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11828
11829 fi
11830 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11831 if test "x$ac_cv_header_sys_xattr_h" = xyes
11832 then :
11833 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11834
11835 fi
11836 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11837 if test "x$ac_cv_header_sysexits_h" = xyes
11838 then :
11839 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11840
11841 fi
11842 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11843 if test "x$ac_cv_header_syslog_h" = xyes
11844 then :
11845 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11846
11847 fi
11848 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_termios_h" = xyes
11850 then :
11851 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11852
11853 fi
11854 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_util_h" = xyes
11856 then :
11857 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11858
11859 fi
11860 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_utime_h" = xyes
11862 then :
11863 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11864
11865 fi
11866 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_utmp_h" = xyes
11868 then :
11869 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11870
11871 fi
11872
11873 ac_header_dirent=no
11874 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11875 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11877 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11878 if eval test \${$as_ac_Header+y}
11879 then :
11880 printf %s "(cached) " >&6
11881 else case e in #(
11882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <sys/types.h>
11885 #include <$ac_hdr>
11886
11887 int
11888 main (void)
11889 {
11890 if ((DIR *) 0)
11891 return 0;
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_compile "$LINENO"
11897 then :
11898 eval "$as_ac_Header=yes"
11899 else case e in #(
11900 e) eval "$as_ac_Header=no" ;;
11901 esac
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11904 esac
11905 fi
11906 eval ac_res=\$$as_ac_Header
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11908 printf "%s\n" "$ac_res" >&6; }
11909 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11910 then :
11911 cat >>confdefs.h <<_ACEOF
11912 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
11913 _ACEOF
11914
11915 ac_header_dirent=$ac_hdr; break
11916 fi
11917
11918 done
11919 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11920 if test $ac_header_dirent = dirent.h; then
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11922 printf %s "checking for library containing opendir... " >&6; }
11923 if test ${ac_cv_search_opendir+y}
11924 then :
11925 printf %s "(cached) " >&6
11926 else case e in #(
11927 e) ac_func_search_save_LIBS=$LIBS
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply.
11934 The 'extern "C"' is for builds by C++ compilers;
11935 although this is not generally supported in C code supporting it here
11936 has little cost and some practical benefit (sr 110532). */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 char opendir (void);
11941 int
11942 main (void)
11943 {
11944 return opendir ();
11945 ;
11946 return 0;
11947 }
11948 _ACEOF
11949 for ac_lib in '' dir
11950 do
11951 if test -z "$ac_lib"; then
11952 ac_res="none required"
11953 else
11954 ac_res=-l$ac_lib
11955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11956 fi
11957 if ac_fn_c_try_link "$LINENO"
11958 then :
11959 ac_cv_search_opendir=$ac_res
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11962 conftest$ac_exeext
11963 if test ${ac_cv_search_opendir+y}
11964 then :
11965 break
11966 fi
11967 done
11968 if test ${ac_cv_search_opendir+y}
11969 then :
11970
11971 else case e in #(
11972 e) ac_cv_search_opendir=no ;;
11973 esac
11974 fi
11975 rm conftest.$ac_ext
11976 LIBS=$ac_func_search_save_LIBS ;;
11977 esac
11978 fi
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11980 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11981 ac_res=$ac_cv_search_opendir
11982 if test "$ac_res" != no
11983 then :
11984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11985
11986 fi
11987
11988 else
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11990 printf %s "checking for library containing opendir... " >&6; }
11991 if test ${ac_cv_search_opendir+y}
11992 then :
11993 printf %s "(cached) " >&6
11994 else case e in #(
11995 e) ac_func_search_save_LIBS=$LIBS
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply.
12002 The 'extern "C"' is for builds by C++ compilers;
12003 although this is not generally supported in C code supporting it here
12004 has little cost and some practical benefit (sr 110532). */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 char opendir (void);
12009 int
12010 main (void)
12011 {
12012 return opendir ();
12013 ;
12014 return 0;
12015 }
12016 _ACEOF
12017 for ac_lib in '' x
12018 do
12019 if test -z "$ac_lib"; then
12020 ac_res="none required"
12021 else
12022 ac_res=-l$ac_lib
12023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12024 fi
12025 if ac_fn_c_try_link "$LINENO"
12026 then :
12027 ac_cv_search_opendir=$ac_res
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12030 conftest$ac_exeext
12031 if test ${ac_cv_search_opendir+y}
12032 then :
12033 break
12034 fi
12035 done
12036 if test ${ac_cv_search_opendir+y}
12037 then :
12038
12039 else case e in #(
12040 e) ac_cv_search_opendir=no ;;
12041 esac
12042 fi
12043 rm conftest.$ac_ext
12044 LIBS=$ac_func_search_save_LIBS ;;
12045 esac
12046 fi
12047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12048 printf "%s\n" "$ac_cv_search_opendir" >&6; }
12049 ac_res=$ac_cv_search_opendir
12050 if test "$ac_res" != no
12051 then :
12052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12053
12054 fi
12055
12056 fi
12057
12058
12059 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12061 then :
12062
12063 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12064
12065 fi
12066
12067 if test $ac_cv_header_sys_mkdev_h = no; then
12068 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12069 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12070 then :
12071
12072 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12073
12074 fi
12075
12076 fi
12077
12078
12079 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
12080 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
12081 SAVE_CFLAGS=$CFLAGS
12082 CFLAGS="-std=c99 $CFLAGS"
12083 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
12084 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
12085 then :
12086 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
12087
12088 fi
12089
12090 CFLAGS=$SAVE_CFLAGS
12091
12092 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
12093 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
12094 #include <stdlib.h>
12095 #include <stddef.h>
12096 #ifdef HAVE_SYS_SOCKET_H
12097 # include <sys/socket.h>
12098 #endif
12099
12100 "
12101 if test "x$ac_cv_header_net_if_h" = xyes
12102 then :
12103 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12104
12105 fi
12106
12107
12108 # On Linux, netlink.h requires asm/types.h
12109 # On FreeBSD, netlink.h is located in netlink/netlink.h
12110 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
12111 #ifdef HAVE_ASM_TYPES_H
12112 #include <asm/types.h>
12113 #endif
12114 #ifdef HAVE_SYS_SOCKET_H
12115 #include <sys/socket.h>
12116 #endif
12117
12118 "
12119 if test "x$ac_cv_header_linux_netlink_h" = xyes
12120 then :
12121 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
12122
12123 fi
12124 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
12125 #ifdef HAVE_ASM_TYPES_H
12126 #include <asm/types.h>
12127 #endif
12128 #ifdef HAVE_SYS_SOCKET_H
12129 #include <sys/socket.h>
12130 #endif
12131
12132 "
12133 if test "x$ac_cv_header_netlink_netlink_h" = xyes
12134 then :
12135 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
12136
12137 fi
12138
12139
12140 # On Linux, qrtr.h requires asm/types.h
12141 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
12142 #ifdef HAVE_ASM_TYPES_H
12143 #include <asm/types.h>
12144 #endif
12145 #ifdef HAVE_SYS_SOCKET_H
12146 #include <sys/socket.h>
12147 #endif
12148
12149 "
12150 if test "x$ac_cv_header_linux_qrtr_h" = xyes
12151 then :
12152 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
12153
12154 fi
12155
12156
12157 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
12158 #ifdef HAVE_SYS_SOCKET_H
12159 #include <sys/socket.h>
12160 #endif
12161
12162 "
12163 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
12164 then :
12165 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
12166
12167 fi
12168
12169
12170 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
12171 # On NetBSD, netcan/can.h requires sys/socket.h
12172 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
12173 #ifdef HAVE_SYS_SOCKET_H
12174 #include <sys/socket.h>
12175 #endif
12176
12177 "
12178 if test "x$ac_cv_header_linux_can_h" = xyes
12179 then :
12180 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
12181
12182 fi
12183 ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
12184 #ifdef HAVE_SYS_SOCKET_H
12185 #include <sys/socket.h>
12186 #endif
12187
12188 "
12189 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
12190 then :
12191 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
12192
12193 fi
12194 ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
12195 #ifdef HAVE_SYS_SOCKET_H
12196 #include <sys/socket.h>
12197 #endif
12198
12199 "
12200 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
12201 then :
12202 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
12203
12204 fi
12205 ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
12206 #ifdef HAVE_SYS_SOCKET_H
12207 #include <sys/socket.h>
12208 #endif
12209
12210 "
12211 if test "x$ac_cv_header_linux_can_raw_h" = xyes
12212 then :
12213 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
12214
12215 fi
12216 ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
12217 #ifdef HAVE_SYS_SOCKET_H
12218 #include <sys/socket.h>
12219 #endif
12220
12221 "
12222 if test "x$ac_cv_header_netcan_can_h" = xyes
12223 then :
12224 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
12225
12226 fi
12227
12228
12229 # Check for clock_t in time.h.
12230 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
12231 "
12232 if test "x$ac_cv_type_clock_t" = xyes
12233 then :
12234
12235 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
12236
12237
12238 else case e in #(
12239 e)
12240 printf "%s\n" "#define clock_t long" >>confdefs.h
12241 ;;
12242 esac
12243 fi
12244
12245
12246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
12247 printf %s "checking for makedev... " >&6; }
12248 if test ${ac_cv_func_makedev+y}
12249 then :
12250 printf %s "(cached) " >&6
12251 else case e in #(
12252 e)
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255
12256 #if defined(MAJOR_IN_MKDEV)
12257 #include <sys/mkdev.h>
12258 #elif defined(MAJOR_IN_SYSMACROS)
12259 #include <sys/sysmacros.h>
12260 #else
12261 #include <sys/types.h>
12262 #endif
12263
12264 int
12265 main (void)
12266 {
12267
12268 makedev(0, 0)
12269 ;
12270 return 0;
12271 }
12272
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"
12275 then :
12276 ac_cv_func_makedev=yes
12277 else case e in #(
12278 e) ac_cv_func_makedev=no ;;
12279 esac
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12282 conftest$ac_exeext conftest.$ac_ext
12283 ;;
12284 esac
12285 fi
12286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
12287 printf "%s\n" "$ac_cv_func_makedev" >&6; }
12288
12289 if test "x$ac_cv_func_makedev" = xyes
12290 then :
12291
12292
12293 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
12294
12295
12296 fi
12297
12298 # byte swapping
12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
12300 printf %s "checking for le64toh... " >&6; }
12301 if test ${ac_cv_func_le64toh+y}
12302 then :
12303 printf %s "(cached) " >&6
12304 else case e in #(
12305 e)
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 #ifdef HAVE_ENDIAN_H
12310 #include <endian.h>
12311 #elif defined(HAVE_SYS_ENDIAN_H)
12312 #include <sys/endian.h>
12313 #endif
12314
12315 int
12316 main (void)
12317 {
12318
12319 le64toh(1)
12320 ;
12321 return 0;
12322 }
12323
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"
12326 then :
12327 ac_cv_func_le64toh=yes
12328 else case e in #(
12329 e) ac_cv_func_le64toh=no ;;
12330 esac
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12333 conftest$ac_exeext conftest.$ac_ext
12334 ;;
12335 esac
12336 fi
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
12338 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
12339
12340 if test "x$ac_cv_func_le64toh" = xyes
12341 then :
12342
12343
12344 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
12345
12346
12347 fi
12348
12349 use_lfs=yes
12350 # Don't use largefile support for GNU/Hurd
12351 case $ac_sys_system in GNU*)
12352 use_lfs=no
12353 esac
12354
12355 if test "$use_lfs" = "yes"; then
12356 # Two defines needed to enable largefile support on various platforms
12357 # These may affect some typedefs
12358 case $ac_sys_system/$ac_sys_release in
12359 AIX*)
12360
12361 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12362
12363 ;;
12364 esac
12365
12366 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
12367
12368
12369 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12370
12371 fi
12372
12373 # Add some code to confdefs.h so that the test for off_t works on SCO
12374 cat >> confdefs.h <<\EOF
12375 #if defined(SCO_DS)
12376 #undef _OFF_T
12377 #endif
12378 EOF
12379
12380 # Type availability checks
12381 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12382 if test "x$ac_cv_type_mode_t" = xyes
12383 then :
12384
12385 else case e in #(
12386 e)
12387 printf "%s\n" "#define mode_t int" >>confdefs.h
12388 ;;
12389 esac
12390 fi
12391
12392 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12393 if test "x$ac_cv_type_off_t" = xyes
12394 then :
12395
12396 else case e in #(
12397 e)
12398 printf "%s\n" "#define off_t long int" >>confdefs.h
12399 ;;
12400 esac
12401 fi
12402
12403
12404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12405 "
12406 if test "x$ac_cv_type_pid_t" = xyes
12407 then :
12408
12409 else case e in #(
12410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412
12413 #if defined _WIN64 && !defined __CYGWIN__
12414 LLP64
12415 #endif
12416
12417 int
12418 main (void)
12419 {
12420
12421 ;
12422 return 0;
12423 }
12424
12425 _ACEOF
12426 if ac_fn_c_try_compile "$LINENO"
12427 then :
12428 ac_pid_type='int'
12429 else case e in #(
12430 e) ac_pid_type='__int64' ;;
12431 esac
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12434
12435 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12436
12437 ;;
12438 esac
12439 fi
12440
12441
12442
12443 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
12444
12445 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12446 if test "x$ac_cv_type_size_t" = xyes
12447 then :
12448
12449 else case e in #(
12450 e)
12451 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12452 ;;
12453 esac
12454 fi
12455
12456 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
12457 if test "x$ac_cv_type_uid_t" = xyes
12458 then :
12459
12460 else case e in #(
12461 e)
12462 printf "%s\n" "#define uid_t int" >>confdefs.h
12463 ;;
12464 esac
12465 fi
12466
12467 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
12468 if test "x$ac_cv_type_gid_t" = xyes
12469 then :
12470
12471 else case e in #(
12472 e)
12473 printf "%s\n" "#define gid_t int" >>confdefs.h
12474 ;;
12475 esac
12476 fi
12477
12478
12479 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12480 if test "x$ac_cv_type_ssize_t" = xyes
12481 then :
12482
12483 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
12484
12485
12486 fi
12487
12488 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
12489 if test "x$ac_cv_type___uint128_t" = xyes
12490 then :
12491
12492 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
12493
12494
12495 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
12496
12497 fi
12498
12499
12500 # Sizes and alignments of various common basic types
12501 # ANSI C requires sizeof(char) == 1, so no need to check it
12502 # The cast to long int works around a bug in the HP C Compiler
12503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12504 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12505 # This bug is HP SR number 8606223364.
12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12507 printf %s "checking size of int... " >&6; }
12508 if test ${ac_cv_sizeof_int+y}
12509 then :
12510 printf %s "(cached) " >&6
12511 else case e in #(
12512 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12513 then :
12514
12515 else case e in #(
12516 e) if test "$ac_cv_type_int" = yes; then
12517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12519 as_fn_error 77 "cannot compute sizeof (int)
12520 See 'config.log' for more details" "$LINENO" 5; }
12521 else
12522 ac_cv_sizeof_int=0
12523 fi ;;
12524 esac
12525 fi
12526 ;;
12527 esac
12528 fi
12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12530 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12531
12532
12533
12534 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12535
12536
12537 # The cast to long int works around a bug in the HP C Compiler
12538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12539 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12540 # This bug is HP SR number 8606223364.
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12542 printf %s "checking size of long... " >&6; }
12543 if test ${ac_cv_sizeof_long+y}
12544 then :
12545 printf %s "(cached) " >&6
12546 else case e in #(
12547 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12548 then :
12549
12550 else case e in #(
12551 e) if test "$ac_cv_type_long" = yes; then
12552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12553 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12554 as_fn_error 77 "cannot compute sizeof (long)
12555 See 'config.log' for more details" "$LINENO" 5; }
12556 else
12557 ac_cv_sizeof_long=0
12558 fi ;;
12559 esac
12560 fi
12561 ;;
12562 esac
12563 fi
12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12565 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12566
12567
12568
12569 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12570
12571
12572 # The cast to long int works around a bug in the HP C Compiler,
12573 # see AC_CHECK_SIZEOF for more information.
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
12575 printf %s "checking alignment of long... " >&6; }
12576 if test ${ac_cv_alignof_long+y}
12577 then :
12578 printf %s "(cached) " >&6
12579 else case e in #(
12580 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
12581 typedef struct { char x; long y; } ac__type_alignof_;"
12582 then :
12583
12584 else case e in #(
12585 e) if test "$ac_cv_type_long" = yes; then
12586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12588 as_fn_error 77 "cannot compute alignment of long
12589 See 'config.log' for more details" "$LINENO" 5; }
12590 else
12591 ac_cv_alignof_long=0
12592 fi ;;
12593 esac
12594 fi
12595 ;;
12596 esac
12597 fi
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
12599 printf "%s\n" "$ac_cv_alignof_long" >&6; }
12600
12601
12602
12603 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
12604
12605
12606 # The cast to long int works around a bug in the HP C Compiler
12607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12609 # This bug is HP SR number 8606223364.
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12611 printf %s "checking size of long long... " >&6; }
12612 if test ${ac_cv_sizeof_long_long+y}
12613 then :
12614 printf %s "(cached) " >&6
12615 else case e in #(
12616 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12617 then :
12618
12619 else case e in #(
12620 e) if test "$ac_cv_type_long_long" = yes; then
12621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12622 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12623 as_fn_error 77 "cannot compute sizeof (long long)
12624 See 'config.log' for more details" "$LINENO" 5; }
12625 else
12626 ac_cv_sizeof_long_long=0
12627 fi ;;
12628 esac
12629 fi
12630 ;;
12631 esac
12632 fi
12633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12634 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12635
12636
12637
12638 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12639
12640
12641 # The cast to long int works around a bug in the HP C Compiler
12642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12643 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12644 # This bug is HP SR number 8606223364.
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12646 printf %s "checking size of void *... " >&6; }
12647 if test ${ac_cv_sizeof_void_p+y}
12648 then :
12649 printf %s "(cached) " >&6
12650 else case e in #(
12651 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
12652 then :
12653
12654 else case e in #(
12655 e) if test "$ac_cv_type_void_p" = yes; then
12656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12657 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12658 as_fn_error 77 "cannot compute sizeof (void *)
12659 See 'config.log' for more details" "$LINENO" 5; }
12660 else
12661 ac_cv_sizeof_void_p=0
12662 fi ;;
12663 esac
12664 fi
12665 ;;
12666 esac
12667 fi
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12669 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
12670
12671
12672
12673 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
12674
12675
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12681 printf %s "checking size of short... " >&6; }
12682 if test ${ac_cv_sizeof_short+y}
12683 then :
12684 printf %s "(cached) " >&6
12685 else case e in #(
12686 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12687 then :
12688
12689 else case e in #(
12690 e) if test "$ac_cv_type_short" = yes; then
12691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12692 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12693 as_fn_error 77 "cannot compute sizeof (short)
12694 See 'config.log' for more details" "$LINENO" 5; }
12695 else
12696 ac_cv_sizeof_short=0
12697 fi ;;
12698 esac
12699 fi
12700 ;;
12701 esac
12702 fi
12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12704 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12705
12706
12707
12708 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12709
12710
12711 # The cast to long int works around a bug in the HP C Compiler
12712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12713 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12714 # This bug is HP SR number 8606223364.
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
12716 printf %s "checking size of float... " >&6; }
12717 if test ${ac_cv_sizeof_float+y}
12718 then :
12719 printf %s "(cached) " >&6
12720 else case e in #(
12721 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
12722 then :
12723
12724 else case e in #(
12725 e) if test "$ac_cv_type_float" = yes; then
12726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12727 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12728 as_fn_error 77 "cannot compute sizeof (float)
12729 See 'config.log' for more details" "$LINENO" 5; }
12730 else
12731 ac_cv_sizeof_float=0
12732 fi ;;
12733 esac
12734 fi
12735 ;;
12736 esac
12737 fi
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
12739 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
12740
12741
12742
12743 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
12744
12745
12746 # The cast to long int works around a bug in the HP C Compiler
12747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12748 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12749 # This bug is HP SR number 8606223364.
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12751 printf %s "checking size of double... " >&6; }
12752 if test ${ac_cv_sizeof_double+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
12757 then :
12758
12759 else case e in #(
12760 e) if test "$ac_cv_type_double" = yes; then
12761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12762 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12763 as_fn_error 77 "cannot compute sizeof (double)
12764 See 'config.log' for more details" "$LINENO" 5; }
12765 else
12766 ac_cv_sizeof_double=0
12767 fi ;;
12768 esac
12769 fi
12770 ;;
12771 esac
12772 fi
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12774 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
12775
12776
12777
12778 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
12779
12780
12781 # The cast to long int works around a bug in the HP C Compiler
12782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12783 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12784 # This bug is HP SR number 8606223364.
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
12786 printf %s "checking size of fpos_t... " >&6; }
12787 if test ${ac_cv_sizeof_fpos_t+y}
12788 then :
12789 printf %s "(cached) " >&6
12790 else case e in #(
12791 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
12792 then :
12793
12794 else case e in #(
12795 e) if test "$ac_cv_type_fpos_t" = yes; then
12796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12797 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12798 as_fn_error 77 "cannot compute sizeof (fpos_t)
12799 See 'config.log' for more details" "$LINENO" 5; }
12800 else
12801 ac_cv_sizeof_fpos_t=0
12802 fi ;;
12803 esac
12804 fi
12805 ;;
12806 esac
12807 fi
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
12809 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
12810
12811
12812
12813 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
12814
12815
12816 # The cast to long int works around a bug in the HP C Compiler
12817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12818 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12819 # This bug is HP SR number 8606223364.
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12821 printf %s "checking size of size_t... " >&6; }
12822 if test ${ac_cv_sizeof_size_t+y}
12823 then :
12824 printf %s "(cached) " >&6
12825 else case e in #(
12826 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12827 then :
12828
12829 else case e in #(
12830 e) if test "$ac_cv_type_size_t" = yes; then
12831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12832 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12833 as_fn_error 77 "cannot compute sizeof (size_t)
12834 See 'config.log' for more details" "$LINENO" 5; }
12835 else
12836 ac_cv_sizeof_size_t=0
12837 fi ;;
12838 esac
12839 fi
12840 ;;
12841 esac
12842 fi
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12844 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12845
12846
12847
12848 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12849
12850
12851 # The cast to long int works around a bug in the HP C Compiler,
12852 # see AC_CHECK_SIZEOF for more information.
12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12854 printf %s "checking alignment of size_t... " >&6; }
12855 if test ${ac_cv_alignof_size_t+y}
12856 then :
12857 printf %s "(cached) " >&6
12858 else case e in #(
12859 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12860 typedef struct { char x; size_t y; } ac__type_alignof_;"
12861 then :
12862
12863 else case e in #(
12864 e) if test "$ac_cv_type_size_t" = yes; then
12865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12866 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12867 as_fn_error 77 "cannot compute alignment of size_t
12868 See 'config.log' for more details" "$LINENO" 5; }
12869 else
12870 ac_cv_alignof_size_t=0
12871 fi ;;
12872 esac
12873 fi
12874 ;;
12875 esac
12876 fi
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12878 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12879
12880
12881
12882 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12883
12884
12885 # The cast to long int works around a bug in the HP C Compiler
12886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12887 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12888 # This bug is HP SR number 8606223364.
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12890 printf %s "checking size of pid_t... " >&6; }
12891 if test ${ac_cv_sizeof_pid_t+y}
12892 then :
12893 printf %s "(cached) " >&6
12894 else case e in #(
12895 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12896 then :
12897
12898 else case e in #(
12899 e) if test "$ac_cv_type_pid_t" = yes; then
12900 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12901 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12902 as_fn_error 77 "cannot compute sizeof (pid_t)
12903 See 'config.log' for more details" "$LINENO" 5; }
12904 else
12905 ac_cv_sizeof_pid_t=0
12906 fi ;;
12907 esac
12908 fi
12909 ;;
12910 esac
12911 fi
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12913 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12914
12915
12916
12917 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12918
12919
12920 # The cast to long int works around a bug in the HP C Compiler
12921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12922 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12923 # This bug is HP SR number 8606223364.
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12925 printf %s "checking size of uintptr_t... " >&6; }
12926 if test ${ac_cv_sizeof_uintptr_t+y}
12927 then :
12928 printf %s "(cached) " >&6
12929 else case e in #(
12930 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12931 then :
12932
12933 else case e in #(
12934 e) if test "$ac_cv_type_uintptr_t" = yes; then
12935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12936 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12937 as_fn_error 77 "cannot compute sizeof (uintptr_t)
12938 See 'config.log' for more details" "$LINENO" 5; }
12939 else
12940 ac_cv_sizeof_uintptr_t=0
12941 fi ;;
12942 esac
12943 fi
12944 ;;
12945 esac
12946 fi
12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12948 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12949
12950
12951
12952 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12953
12954
12955 # The cast to long int works around a bug in the HP C Compiler,
12956 # see AC_CHECK_SIZEOF for more information.
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12958 printf %s "checking alignment of max_align_t... " >&6; }
12959 if test ${ac_cv_alignof_max_align_t+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else case e in #(
12963 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12964 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12965 then :
12966
12967 else case e in #(
12968 e) if test "$ac_cv_type_max_align_t" = yes; then
12969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12970 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12971 as_fn_error 77 "cannot compute alignment of max_align_t
12972 See 'config.log' for more details" "$LINENO" 5; }
12973 else
12974 ac_cv_alignof_max_align_t=0
12975 fi ;;
12976 esac
12977 fi
12978 ;;
12979 esac
12980 fi
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12982 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12983
12984
12985
12986 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12987
12988
12989
12990
12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12992 printf %s "checking for long double... " >&6; }
12993 if test ${ac_cv_type_long_double+y}
12994 then :
12995 printf %s "(cached) " >&6
12996 else case e in #(
12997 e) if test "$GCC" = yes; then
12998 ac_cv_type_long_double=yes
12999 else
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 /* The Stardent Vistra knows sizeof (long double), but does
13003 not support it. */
13004 long double foo = 0.0L;
13005 int
13006 main (void)
13007 {
13008 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13009 sizeof (double) <= sizeof (long double))];
13010 test_array [0] = 0;
13011 return test_array [0];
13012
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"
13018 then :
13019 ac_cv_type_long_double=yes
13020 else case e in #(
13021 e) ac_cv_type_long_double=no ;;
13022 esac
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13025 fi ;;
13026 esac
13027 fi
13028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
13029 printf "%s\n" "$ac_cv_type_long_double" >&6; }
13030 if test $ac_cv_type_long_double = yes; then
13031
13032 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13033
13034 fi
13035
13036 # The cast to long int works around a bug in the HP C Compiler
13037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13038 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13039 # This bug is HP SR number 8606223364.
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13041 printf %s "checking size of long double... " >&6; }
13042 if test ${ac_cv_sizeof_long_double+y}
13043 then :
13044 printf %s "(cached) " >&6
13045 else case e in #(
13046 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
13047 then :
13048
13049 else case e in #(
13050 e) if test "$ac_cv_type_long_double" = yes; then
13051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13053 as_fn_error 77 "cannot compute sizeof (long double)
13054 See 'config.log' for more details" "$LINENO" 5; }
13055 else
13056 ac_cv_sizeof_long_double=0
13057 fi ;;
13058 esac
13059 fi
13060 ;;
13061 esac
13062 fi
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13064 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
13065
13066
13067
13068 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
13069
13070
13071
13072 # The cast to long int works around a bug in the HP C Compiler
13073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13074 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13075 # This bug is HP SR number 8606223364.
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
13077 printf %s "checking size of _Bool... " >&6; }
13078 if test ${ac_cv_sizeof__Bool+y}
13079 then :
13080 printf %s "(cached) " >&6
13081 else case e in #(
13082 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
13083 then :
13084
13085 else case e in #(
13086 e) if test "$ac_cv_type__Bool" = yes; then
13087 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13088 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13089 as_fn_error 77 "cannot compute sizeof (_Bool)
13090 See 'config.log' for more details" "$LINENO" 5; }
13091 else
13092 ac_cv_sizeof__Bool=0
13093 fi ;;
13094 esac
13095 fi
13096 ;;
13097 esac
13098 fi
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
13100 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
13101
13102
13103
13104 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
13105
13106
13107
13108 # The cast to long int works around a bug in the HP C Compiler
13109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13110 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13111 # This bug is HP SR number 8606223364.
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13113 printf %s "checking size of off_t... " >&6; }
13114 if test ${ac_cv_sizeof_off_t+y}
13115 then :
13116 printf %s "(cached) " >&6
13117 else case e in #(
13118 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
13119 #ifdef HAVE_SYS_TYPES_H
13120 #include <sys/types.h>
13121 #endif
13122
13123 "
13124 then :
13125
13126 else case e in #(
13127 e) if test "$ac_cv_type_off_t" = yes; then
13128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13129 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13130 as_fn_error 77 "cannot compute sizeof (off_t)
13131 See 'config.log' for more details" "$LINENO" 5; }
13132 else
13133 ac_cv_sizeof_off_t=0
13134 fi ;;
13135 esac
13136 fi
13137 ;;
13138 esac
13139 fi
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13141 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
13142
13143
13144
13145 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
13146
13147
13148
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
13150 printf %s "checking whether to enable large file support... " >&6; }
13151 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13152 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13153 have_largefile_support="yes"
13154 else
13155 have_largefile_support="no"
13156 fi
13157 if test "x$have_largefile_support" = xyes
13158 then :
13159
13160
13161 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
13162
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13164 printf "%s\n" "yes" >&6; }
13165
13166 else case e in #(
13167 e)
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 printf "%s\n" "no" >&6; }
13170 ;;
13171 esac
13172 fi
13173
13174 # The cast to long int works around a bug in the HP C Compiler
13175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13176 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13177 # This bug is HP SR number 8606223364.
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13179 printf %s "checking size of time_t... " >&6; }
13180 if test ${ac_cv_sizeof_time_t+y}
13181 then :
13182 printf %s "(cached) " >&6
13183 else case e in #(
13184 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
13185 #ifdef HAVE_SYS_TYPES_H
13186 #include <sys/types.h>
13187 #endif
13188 #ifdef HAVE_TIME_H
13189 #include <time.h>
13190 #endif
13191
13192 "
13193 then :
13194
13195 else case e in #(
13196 e) if test "$ac_cv_type_time_t" = yes; then
13197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13198 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13199 as_fn_error 77 "cannot compute sizeof (time_t)
13200 See 'config.log' for more details" "$LINENO" 5; }
13201 else
13202 ac_cv_sizeof_time_t=0
13203 fi ;;
13204 esac
13205 fi
13206 ;;
13207 esac
13208 fi
13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13210 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
13211
13212
13213
13214 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
13215
13216
13217
13218 # if have pthread_t then define SIZEOF_PTHREAD_T
13219 ac_save_cc="$CC"
13220 if test "$ac_cv_kpthread" = "yes"
13221 then CC="$CC -Kpthread"
13222 elif test "$ac_cv_kthread" = "yes"
13223 then CC="$CC -Kthread"
13224 elif test "$ac_cv_pthread" = "yes"
13225 then CC="$CC -pthread"
13226 fi
13227
13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
13229 printf %s "checking for pthread_t... " >&6; }
13230 if test ${ac_cv_have_pthread_t+y}
13231 then :
13232 printf %s "(cached) " >&6
13233 else case e in #(
13234 e)
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237
13238 #include <pthread.h>
13239 int
13240 main (void)
13241 {
13242 pthread_t x; x = *(pthread_t*)0;
13243 ;
13244 return 0;
13245 }
13246
13247 _ACEOF
13248 if ac_fn_c_try_compile "$LINENO"
13249 then :
13250 ac_cv_have_pthread_t=yes
13251 else case e in #(
13252 e) ac_cv_have_pthread_t=no ;;
13253 esac
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13256 ;;
13257 esac
13258 fi
13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
13260 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
13261 if test "x$ac_cv_have_pthread_t" = xyes
13262 then :
13263
13264 # The cast to long int works around a bug in the HP C Compiler
13265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13266 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13267 # This bug is HP SR number 8606223364.
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
13269 printf %s "checking size of pthread_t... " >&6; }
13270 if test ${ac_cv_sizeof_pthread_t+y}
13271 then :
13272 printf %s "(cached) " >&6
13273 else case e in #(
13274 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
13275 #ifdef HAVE_PTHREAD_H
13276 #include <pthread.h>
13277 #endif
13278
13279 "
13280 then :
13281
13282 else case e in #(
13283 e) if test "$ac_cv_type_pthread_t" = yes; then
13284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13285 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13286 as_fn_error 77 "cannot compute sizeof (pthread_t)
13287 See 'config.log' for more details" "$LINENO" 5; }
13288 else
13289 ac_cv_sizeof_pthread_t=0
13290 fi ;;
13291 esac
13292 fi
13293 ;;
13294 esac
13295 fi
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
13297 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
13298
13299
13300
13301 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
13302
13303
13304
13305 fi
13306
13307 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
13308 # This checking will be unnecessary after removing deprecated TLS API.
13309 # The cast to long int works around a bug in the HP C Compiler
13310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13311 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13312 # This bug is HP SR number 8606223364.
13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
13314 printf %s "checking size of pthread_key_t... " >&6; }
13315 if test ${ac_cv_sizeof_pthread_key_t+y}
13316 then :
13317 printf %s "(cached) " >&6
13318 else case e in #(
13319 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
13320 "
13321 then :
13322
13323 else case e in #(
13324 e) if test "$ac_cv_type_pthread_key_t" = yes; then
13325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13326 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13327 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
13328 See 'config.log' for more details" "$LINENO" 5; }
13329 else
13330 ac_cv_sizeof_pthread_key_t=0
13331 fi ;;
13332 esac
13333 fi
13334 ;;
13335 esac
13336 fi
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
13338 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
13339
13340
13341
13342 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
13343
13344
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
13346 printf %s "checking whether pthread_key_t is compatible with int... " >&6; }
13347 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
13348 then :
13349 printf %s "(cached) " >&6
13350 else case e in #(
13351 e)
13352 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355 #include <pthread.h>
13356 int
13357 main (void)
13358 {
13359 pthread_key_t k; k * 1;
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"
13365 then :
13366 ac_cv_pthread_key_t_is_arithmetic_type=yes
13367 else case e in #(
13368 e) ac_cv_pthread_key_t_is_arithmetic_type=no
13369 ;;
13370 esac
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13373 else
13374 ac_cv_pthread_key_t_is_arithmetic_type=no
13375 fi
13376 ;;
13377 esac
13378 fi
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
13380 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
13381 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
13382 then :
13383
13384
13385 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
13386
13387
13388 fi
13389
13390 CC="$ac_save_cc"
13391
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
13393 printf %s "checking for --enable-framework... " >&6; }
13394 if test "$enable_framework"
13395 then
13396 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13397 # -F. is needed to allow linking to the framework while
13398 # in the build location.
13399
13400 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
13401
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 printf "%s\n" "yes" >&6; }
13404 if test $enable_shared = "yes"
13405 then
13406 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
13407 fi
13408 else
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 printf "%s\n" "no" >&6; }
13411 fi
13412
13413 # Check for --with-dsymutil
13414
13415
13416 DSYMUTIL=
13417 DSYMUTIL_PATH=
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
13419 printf %s "checking for --with-dsymutil... " >&6; }
13420
13421 # Check whether --with-dsymutil was given.
13422 if test ${with_dsymutil+y}
13423 then :
13424 withval=$with_dsymutil;
13425 if test "$withval" != no
13426 then
13427 if test "$MACHDEP" != "darwin"; then
13428 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5
13429 fi
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13431 printf "%s\n" "yes" >&6; };
13432 DSYMUTIL='true'
13433 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434 printf "%s\n" "no" >&6; }; DSYMUTIL=
13435 fi
13436 else case e in #(
13437 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 printf "%s\n" "no" >&6; } ;;
13439 esac
13440 fi
13441
13442
13443 if test "$DSYMUTIL"; then
13444 # Extract the first word of "dsymutil", so it can be a program name with args.
13445 set dummy dsymutil; ac_word=$2
13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 printf %s "checking for $ac_word... " >&6; }
13448 if test ${ac_cv_path_DSYMUTIL_PATH+y}
13449 then :
13450 printf %s "(cached) " >&6
13451 else case e in #(
13452 e) case $DSYMUTIL_PATH in
13453 [\\/]* | ?:[\\/]*)
13454 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path.
13455 ;;
13456 *)
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13459 do
13460 IFS=$as_save_IFS
13461 case $as_dir in #(((
13462 '') as_dir=./ ;;
13463 */) ;;
13464 *) as_dir=$as_dir/ ;;
13465 esac
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13468 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext"
13469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13470 break 2
13471 fi
13472 done
13473 done
13474 IFS=$as_save_IFS
13475
13476 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found"
13477 ;;
13478 esac ;;
13479 esac
13480 fi
13481 DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH
13482 if test -n "$DSYMUTIL_PATH"; then
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
13484 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
13485 else
13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 printf "%s\n" "no" >&6; }
13488 fi
13489
13490
13491 if test "$DSYMUTIL_PATH" = "not found"; then
13492 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5
13493 fi
13494 fi
13495
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
13497 printf %s "checking for dyld... " >&6; }
13498 case $ac_sys_system/$ac_sys_release in
13499 Darwin/*)
13500
13501 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
13502
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
13504 printf "%s\n" "always on for Darwin" >&6; }
13505 ;;
13506 *)
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 printf "%s\n" "no" >&6; }
13509 ;;
13510 esac
13511
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
13513 printf %s "checking for --with-address-sanitizer... " >&6; }
13514
13515 # Check whether --with-address_sanitizer was given.
13516 if test ${with_address_sanitizer+y}
13517 then :
13518 withval=$with_address_sanitizer;
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13520 printf "%s\n" "$withval" >&6; }
13521 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
13522 LDFLAGS="-fsanitize=address $LDFLAGS"
13523 # ASan works by controlling memory allocation, our own malloc interferes.
13524 with_pymalloc="no"
13525
13526 else case e in #(
13527 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 printf "%s\n" "no" >&6; } ;;
13529 esac
13530 fi
13531
13532
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
13534 printf %s "checking for --with-memory-sanitizer... " >&6; }
13535
13536 # Check whether --with-memory_sanitizer was given.
13537 if test ${with_memory_sanitizer+y}
13538 then :
13539 withval=$with_memory_sanitizer;
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13541 printf "%s\n" "$withval" >&6; }
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
13543 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
13544 if test ${ax_cv_check_cflags___fsanitize_memory+y}
13545 then :
13546 printf %s "(cached) " >&6
13547 else case e in #(
13548 e)
13549 ax_check_save_flags=$CFLAGS
13550 CFLAGS="$CFLAGS -fsanitize=memory"
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553
13554 int
13555 main (void)
13556 {
13557
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_compile "$LINENO"
13563 then :
13564 ax_cv_check_cflags___fsanitize_memory=yes
13565 else case e in #(
13566 e) ax_cv_check_cflags___fsanitize_memory=no ;;
13567 esac
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13570 CFLAGS=$ax_check_save_flags ;;
13571 esac
13572 fi
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
13574 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
13575 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
13576 then :
13577
13578 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
13579 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
13580
13581 else case e in #(
13582 e) as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5 ;;
13583 esac
13584 fi
13585
13586 # MSan works by controlling memory allocation, our own malloc interferes.
13587 with_pymalloc="no"
13588
13589 else case e in #(
13590 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 printf "%s\n" "no" >&6; } ;;
13592 esac
13593 fi
13594
13595
13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
13597 printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; }
13598
13599 # Check whether --with-undefined_behavior_sanitizer was given.
13600 if test ${with_undefined_behavior_sanitizer+y}
13601 then :
13602 withval=$with_undefined_behavior_sanitizer;
13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13604 printf "%s\n" "$withval" >&6; }
13605 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
13606 LDFLAGS="-fsanitize=undefined $LDFLAGS"
13607 with_ubsan="yes"
13608
13609 else case e in #(
13610 e)
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 printf "%s\n" "no" >&6; }
13613 with_ubsan="no"
13614 ;;
13615 esac
13616 fi
13617
13618
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
13620 printf %s "checking for --with-thread-sanitizer... " >&6; }
13621
13622 # Check whether --with-thread_sanitizer was given.
13623 if test ${with_thread_sanitizer+y}
13624 then :
13625 withval=$with_thread_sanitizer;
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13627 printf "%s\n" "$withval" >&6; }
13628 BASECFLAGS="-fsanitize=thread $BASECFLAGS"
13629 LDFLAGS="-fsanitize=thread $LDFLAGS"
13630 with_tsan="yes"
13631
13632 else case e in #(
13633 e)
13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 printf "%s\n" "no" >&6; }
13636 with_tsan="no"
13637 ;;
13638 esac
13639 fi
13640
13641
13642 # Set info about shared libraries.
13643
13644
13645
13646
13647
13648
13649
13650 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
13651 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
13653 printf %s "checking the extension of shared libraries... " >&6; }
13654 if test -z "$SHLIB_SUFFIX"; then
13655 case $ac_sys_system in
13656 hp*|HP*)
13657 case `uname -m` in
13658 ia64) SHLIB_SUFFIX=.so;;
13659 *) SHLIB_SUFFIX=.sl;;
13660 esac
13661 ;;
13662 CYGWIN*) SHLIB_SUFFIX=.dll;;
13663 *) SHLIB_SUFFIX=.so;;
13664 esac
13665 fi
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
13667 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
13668
13669 # LDSHARED is the ld *command* used to create shared library
13670 # -- "cc -G" on SunOS 5.x.
13671 # (Shared libraries in this instance are shared modules to be loaded into
13672 # Python, as opposed to building Python itself as a shared library.)
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
13674 printf %s "checking LDSHARED... " >&6; }
13675 if test -z "$LDSHARED"
13676 then
13677 case $ac_sys_system/$ac_sys_release in
13678 AIX*)
13679 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13680 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
13681 ;;
13682 SunOS/5*)
13683 if test "$ac_cv_gcc_compat" = "yes" ; then
13684 LDSHARED='$(CC) -shared'
13685 LDCXXSHARED='$(CXX) -shared'
13686 else
13687 LDSHARED='$(CC) -G'
13688 LDCXXSHARED='$(CXX) -G'
13689 fi ;;
13690 hp*|HP*)
13691 if test "$ac_cv_gcc_compat" = "yes" ; then
13692 LDSHARED='$(CC) -shared'
13693 LDCXXSHARED='$(CXX) -shared'
13694 else
13695 LDSHARED='$(CC) -b'
13696 LDCXXSHARED='$(CXX) -b'
13697 fi ;;
13698 Darwin/1.3*)
13699 LDSHARED='$(CC) -bundle'
13700 LDCXXSHARED='$(CXX) -bundle'
13701 if test "$enable_framework" ; then
13702 # Link against the framework. All externals should be defined.
13703 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13704 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13705 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13706 else
13707 # No framework. Ignore undefined symbols, assuming they come from Python
13708 LDSHARED="$LDSHARED -undefined suppress"
13709 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
13710 fi ;;
13711 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13712 LDSHARED='$(CC) -bundle'
13713 LDCXXSHARED='$(CXX) -bundle'
13714 if test "$enable_framework" ; then
13715 # Link against the framework. All externals should be defined.
13716 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13717 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13718 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13719 else
13720 # No framework, use the Python app as bundle-loader
13721 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13722 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13723 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13724 fi ;;
13725 Darwin/*)
13726 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13727 # This allows an extension to be used in any Python
13728
13729 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13730 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13731 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13732 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13733 if test ${dep_target_major} -eq 10 && \
13734 test ${dep_target_minor} -le 2
13735 then
13736 # building for OS X 10.0 through 10.2
13737 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
13738 else
13739 # building for OS X 10.3 and later
13740 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
13741 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
13742 BLDSHARED="$LDSHARED"
13743 fi
13744 ;;
13745 iOS/*)
13746 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13747 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13748 BLDSHARED="$LDSHARED"
13749 ;;
13750 Emscripten*|WASI*)
13751 LDSHARED='$(CC) -shared'
13752 LDCXXSHARED='$(CXX) -shared';;
13753 Linux*|GNU*|QNX*|VxWorks*|Haiku*)
13754 LDSHARED='$(CC) -shared'
13755 LDCXXSHARED='$(CXX) -shared';;
13756 FreeBSD*)
13757 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13758 then
13759 LDSHARED='$(CC) -shared'
13760 LDCXXSHARED='$(CXX) -shared'
13761 else
13762 LDSHARED="ld -Bshareable"
13763 fi;;
13764 OpenBSD*)
13765 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13766 then
13767 LDSHARED='$(CC) -shared $(CCSHARED)'
13768 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13769 else
13770 case `uname -r` in
13771 [01].* | 2.[0-7] | 2.[0-7].*)
13772 LDSHARED="ld -Bshareable ${LDFLAGS}"
13773 ;;
13774 *)
13775 LDSHARED='$(CC) -shared $(CCSHARED)'
13776 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13777 ;;
13778 esac
13779 fi;;
13780 NetBSD*|DragonFly*)
13781 LDSHARED='$(CC) -shared'
13782 LDCXXSHARED='$(CXX) -shared';;
13783 OpenUNIX*|UnixWare*)
13784 if test "$ac_cv_gcc_compat" = "yes" ; then
13785 LDSHARED='$(CC) -shared'
13786 LDCXXSHARED='$(CXX) -shared'
13787 else
13788 LDSHARED='$(CC) -G'
13789 LDCXXSHARED='$(CXX) -G'
13790 fi;;
13791 SCO_SV*)
13792 LDSHARED='$(CC) -Wl,-G,-Bexport'
13793 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
13794 WASI*)
13795 if test "x$enable_wasm_dynamic_linking" = xyes
13796 then :
13797
13798
13799 fi;;
13800 CYGWIN*)
13801 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
13802 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
13803 *) LDSHARED="ld";;
13804 esac
13805 fi
13806
13807 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
13808 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1'
13809 fi
13810
13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
13812 printf "%s\n" "$LDSHARED" >&6; }
13813 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
13814
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
13816 printf %s "checking BLDSHARED flags... " >&6; }
13817 BLDSHARED=${BLDSHARED-$LDSHARED}
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
13819 printf "%s\n" "$BLDSHARED" >&6; }
13820
13821 # CCSHARED are the C *flags* used to create objects to go into a shared
13822 # library (module) -- this is only needed for a few systems
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
13824 printf %s "checking CCSHARED... " >&6; }
13825 if test -z "$CCSHARED"
13826 then
13827 case $ac_sys_system/$ac_sys_release in
13828 SunOS*) if test "$ac_cv_gcc_compat" = "yes";
13829 then CCSHARED="-fPIC";
13830 elif test `uname -p` = sparc;
13831 then CCSHARED="-xcode=pic32";
13832 else CCSHARED="-Kpic";
13833 fi;;
13834 hp*|HP*) if test "$ac_cv_gcc_compat" = "yes";
13835 then CCSHARED="-fPIC";
13836 else CCSHARED="+z";
13837 fi;;
13838 Linux*|GNU*) CCSHARED="-fPIC";;
13839 Emscripten*|WASI*)
13840 if test "x$enable_wasm_dynamic_linking" = xyes
13841 then :
13842
13843 CCSHARED="-fPIC"
13844
13845 fi;;
13846 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13847 Haiku*) CCSHARED="-fPIC";;
13848 OpenUNIX*|UnixWare*)
13849 if test "$ac_cv_gcc_compat" = "yes"
13850 then CCSHARED="-fPIC"
13851 else CCSHARED="-KPIC"
13852 fi;;
13853 SCO_SV*)
13854 if test "$ac_cv_gcc_compat" = "yes"
13855 then CCSHARED="-fPIC"
13856 else CCSHARED="-Kpic -belf"
13857 fi;;
13858 VxWorks*)
13859 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13860 esac
13861 fi
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13863 printf "%s\n" "$CCSHARED" >&6; }
13864 # LINKFORSHARED are the flags passed to the $(CC) command that links
13865 # the python executable -- this is only needed for a few systems
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13867 printf %s "checking LINKFORSHARED... " >&6; }
13868 if test -z "$LINKFORSHARED"
13869 then
13870 case $ac_sys_system/$ac_sys_release in
13871 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13872 hp*|HP*)
13873 LINKFORSHARED="-Wl,-E -Wl,+s";;
13874 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13875 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
13876 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13877 # -u libsys_s pulls in all symbols in libsys
13878 Darwin/*|iOS/*)
13879 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13880
13881 # Issue #18075: the default maximum stack size (8MBytes) is too
13882 # small for the default recursion limit. Increase the stack size
13883 # to ensure that tests don't crash
13884 stack_size="1000000" # 16 MB
13885 if test "$with_ubsan" = "yes"
13886 then
13887 # Undefined behavior sanitizer requires an even deeper stack
13888 stack_size="4000000" # 64 MB
13889 fi
13890
13891
13892 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13893
13894
13895 if test $ac_sys_system = "Darwin"; then
13896 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13897
13898 if test "$enable_framework"; then
13899 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13900 fi
13901 LINKFORSHARED="$LINKFORSHARED"
13902 elif test $ac_sys_system = "iOS"; then
13903 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13904 fi
13905 ;;
13906 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13907 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13908 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13909 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13910 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13911 then
13912 LINKFORSHARED="-Wl,--export-dynamic"
13913 fi;;
13914 SunOS/5*) if test "$ac_cv_gcc_compat" = "yes"; then
13915 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13916 then
13917 LINKFORSHARED="-Xlinker --export-dynamic"
13918 fi
13919 fi
13920 ;;
13921 CYGWIN*)
13922 if test $enable_shared = "no"
13923 then
13924 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13925 fi;;
13926 QNX*)
13927 # -Wl,-E causes the symbols to be added to the dynamic
13928 # symbol table so that they can be found when a module
13929 # is loaded. -N 2048K causes the stack size to be set
13930 # to 2048 kilobytes so that the stack doesn't overflow
13931 # when running test_compile.py.
13932 LINKFORSHARED='-Wl,-E -N 2048K';;
13933 VxWorks*)
13934 LINKFORSHARED='-Wl,-export-dynamic';;
13935 esac
13936 fi
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13938 printf "%s\n" "$LINKFORSHARED" >&6; }
13939
13940
13941
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13943 printf %s "checking CFLAGSFORSHARED... " >&6; }
13944 if test ! "$LIBRARY" = "$LDLIBRARY"
13945 then
13946 case $ac_sys_system in
13947 CYGWIN*)
13948 # Cygwin needs CCSHARED when building extension DLLs
13949 # but not when building the interpreter DLL.
13950 CFLAGSFORSHARED='';;
13951 *)
13952 CFLAGSFORSHARED='$(CCSHARED)'
13953 esac
13954 fi
13955
13956 if test "x$enable_wasm_dynamic_linking" = xyes
13957 then :
13958
13959 CFLAGSFORSHARED='$(CCSHARED)'
13960
13961 fi
13962
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13964 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13965
13966 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13967 # library (with --enable-shared).
13968 # For platforms on which shared libraries are not allowed to have unresolved
13969 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13970 # if it is not required, since it creates a dependency of the shared library
13971 # to LIBS. This, in turn, means that applications linking the shared libpython
13972 # don't need to link LIBS explicitly. The default should be only changed
13973 # on systems where this approach causes problems.
13974
13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13976 printf %s "checking SHLIBS... " >&6; }
13977 case "$ac_sys_system" in
13978 *)
13979 SHLIBS='$(LIBS)';;
13980 esac
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13982 printf "%s\n" "$SHLIBS" >&6; }
13983
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13985 printf %s "checking perf trampoline... " >&6; }
13986 case $PLATFORM_TRIPLET in #(
13987 x86_64-linux-gnu) :
13988 perf_trampoline=yes ;; #(
13989 aarch64-linux-gnu) :
13990 perf_trampoline=yes ;; #(
13991 *) :
13992 perf_trampoline=no
13993 ;;
13994 esac
13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13996 printf "%s\n" "$perf_trampoline" >&6; }
13997
13998 if test "x$perf_trampoline" = xyes
13999 then :
14000
14001
14002 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
14003
14004 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o
14005
14006 if test "x$Py_DEBUG" = xtrue
14007 then :
14008
14009 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
14010
14011 fi
14012
14013 fi
14014
14015
14016 # checks for libraries
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
14018 printf %s "checking for sendfile in -lsendfile... " >&6; }
14019 if test ${ac_cv_lib_sendfile_sendfile+y}
14020 then :
14021 printf %s "(cached) " >&6
14022 else case e in #(
14023 e) ac_check_lib_save_LIBS=$LIBS
14024 LIBS="-lsendfile $LIBS"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply.
14031 The 'extern "C"' is for builds by C++ compilers;
14032 although this is not generally supported in C code supporting it here
14033 has little cost and some practical benefit (sr 110532). */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 char sendfile (void);
14038 int
14039 main (void)
14040 {
14041 return sendfile ();
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_link "$LINENO"
14047 then :
14048 ac_cv_lib_sendfile_sendfile=yes
14049 else case e in #(
14050 e) ac_cv_lib_sendfile_sendfile=no ;;
14051 esac
14052 fi
14053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14054 conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS ;;
14056 esac
14057 fi
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
14059 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
14060 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
14061 then :
14062 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
14063
14064 LIBS="-lsendfile $LIBS"
14065
14066 fi
14067
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14069 printf %s "checking for dlopen in -ldl... " >&6; }
14070 if test ${ac_cv_lib_dl_dlopen+y}
14071 then :
14072 printf %s "(cached) " >&6
14073 else case e in #(
14074 e) ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-ldl $LIBS"
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply.
14082 The 'extern "C"' is for builds by C++ compilers;
14083 although this is not generally supported in C code supporting it here
14084 has little cost and some practical benefit (sr 110532). */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 char dlopen (void);
14089 int
14090 main (void)
14091 {
14092 return dlopen ();
14093 ;
14094 return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_c_try_link "$LINENO"
14098 then :
14099 ac_cv_lib_dl_dlopen=yes
14100 else case e in #(
14101 e) ac_cv_lib_dl_dlopen=no ;;
14102 esac
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS ;;
14107 esac
14108 fi
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14110 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14111 if test "x$ac_cv_lib_dl_dlopen" = xyes
14112 then :
14113 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
14114
14115 LIBS="-ldl $LIBS"
14116
14117 fi
14118 # Dynamic linking for SunOS/Solaris and SYSV
14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14120 printf %s "checking for shl_load in -ldld... " >&6; }
14121 if test ${ac_cv_lib_dld_shl_load+y}
14122 then :
14123 printf %s "(cached) " >&6
14124 else case e in #(
14125 e) ac_check_lib_save_LIBS=$LIBS
14126 LIBS="-ldld $LIBS"
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129
14130 /* Override any GCC internal prototype to avoid an error.
14131 Use char because int might match the return type of a GCC
14132 builtin and then its argument prototype would still apply.
14133 The 'extern "C"' is for builds by C++ compilers;
14134 although this is not generally supported in C code supporting it here
14135 has little cost and some practical benefit (sr 110532). */
14136 #ifdef __cplusplus
14137 extern "C"
14138 #endif
14139 char shl_load (void);
14140 int
14141 main (void)
14142 {
14143 return shl_load ();
14144 ;
14145 return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"
14149 then :
14150 ac_cv_lib_dld_shl_load=yes
14151 else case e in #(
14152 e) ac_cv_lib_dld_shl_load=no ;;
14153 esac
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14156 conftest$ac_exeext conftest.$ac_ext
14157 LIBS=$ac_check_lib_save_LIBS ;;
14158 esac
14159 fi
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14161 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14162 if test "x$ac_cv_lib_dld_shl_load" = xyes
14163 then :
14164 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
14165
14166 LIBS="-ldld $LIBS"
14167
14168 fi
14169 # Dynamic linking for HP-UX
14170
14171
14172 for ac_header in execinfo.h link.h dlfcn.h
14173 do :
14174 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
14175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14176 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14177 then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
14180 _ACEOF
14181
14182
14183 for ac_func in backtrace dladdr1
14184 do :
14185 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
14186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14187 if eval test \"x\$"$as_ac_var"\" = x"yes"
14188 then :
14189 cat >>confdefs.h <<_ACEOF
14190 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
14191 _ACEOF
14192
14193 # dladdr1 requires -ldl
14194 ac_cv_require_ldl=yes
14195
14196 fi
14197
14198 done
14199
14200 fi
14201
14202 done
14203
14204 if test "x$ac_cv_require_ldl" = xyes
14205 then :
14206
14207 if test "x$ac_cv_lib_dl_dlopen" = xyes
14208 then :
14209
14210 else case e in #(
14211 e)
14212 as_fn_append LDFLAGS " -ldl"
14213 ;;
14214 esac
14215 fi
14216
14217 fi
14218
14219
14220
14221
14222
14223
14224 have_uuid=missing
14225
14226 for ac_header in uuid.h
14227 do :
14228 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14229 if test "x$ac_cv_header_uuid_h" = xyes
14230 then :
14231 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
14232
14233
14234 for ac_func in uuid_create uuid_enc_be
14235 do :
14236 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
14237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14238 if eval test \"x\$"$as_ac_var"\" = x"yes"
14239 then :
14240 cat >>confdefs.h <<_ACEOF
14241 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
14242 _ACEOF
14243
14244 have_uuid=yes
14245 ac_cv_have_uuid_h=yes
14246 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14247 LIBUUID_LIBS=${LIBUUID_LIBS-""}
14248
14249 fi
14250
14251 done
14252
14253 fi
14254
14255 done
14256
14257 if test "x$have_uuid" = xmissing
14258 then :
14259
14260
14261 pkg_failed=no
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
14263 printf %s "checking for uuid >= 2.20... " >&6; }
14264
14265 if test -n "$LIBUUID_CFLAGS"; then
14266 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
14267 elif test -n "$PKG_CONFIG"; then
14268 if test -n "$PKG_CONFIG" && \
14269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
14270 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
14271 ac_status=$?
14272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14273 test $ac_status = 0; }; then
14274 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
14275 test "x$?" != "x0" && pkg_failed=yes
14276 else
14277 pkg_failed=yes
14278 fi
14279 else
14280 pkg_failed=untried
14281 fi
14282 if test -n "$LIBUUID_LIBS"; then
14283 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
14284 elif test -n "$PKG_CONFIG"; then
14285 if test -n "$PKG_CONFIG" && \
14286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
14287 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
14288 ac_status=$?
14289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14290 test $ac_status = 0; }; then
14291 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
14292 test "x$?" != "x0" && pkg_failed=yes
14293 else
14294 pkg_failed=yes
14295 fi
14296 else
14297 pkg_failed=untried
14298 fi
14299
14300
14301
14302 if test $pkg_failed = yes; then
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 printf "%s\n" "no" >&6; }
14305
14306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14307 _pkg_short_errors_supported=yes
14308 else
14309 _pkg_short_errors_supported=no
14310 fi
14311 if test $_pkg_short_errors_supported = yes; then
14312 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
14313 else
14314 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
14315 fi
14316 # Put the nasty error message in config.log where it belongs
14317 echo "$LIBUUID_PKG_ERRORS" >&5
14318
14319
14320 save_CFLAGS=$CFLAGS
14321 save_CPPFLAGS=$CPPFLAGS
14322 save_LDFLAGS=$LDFLAGS
14323 save_LIBS=$LIBS
14324
14325
14326 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
14327 LIBS="$LIBS $LIBUUID_LIBS"
14328 for ac_header in uuid/uuid.h
14329 do :
14330 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14331 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14332 then :
14333 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14334
14335 ac_cv_have_uuid_uuid_h=yes
14336 py_check_lib_save_LIBS=$LIBS
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
14338 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
14339 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
14340 then :
14341 printf %s "(cached) " >&6
14342 else case e in #(
14343 e) ac_check_lib_save_LIBS=$LIBS
14344 LIBS="-luuid $LIBS"
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply.
14351 The 'extern "C"' is for builds by C++ compilers;
14352 although this is not generally supported in C code supporting it here
14353 has little cost and some practical benefit (sr 110532). */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char uuid_generate_time (void);
14358 int
14359 main (void)
14360 {
14361 return uuid_generate_time ();
14362 ;
14363 return 0;
14364 }
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"
14367 then :
14368 ac_cv_lib_uuid_uuid_generate_time=yes
14369 else case e in #(
14370 e) ac_cv_lib_uuid_uuid_generate_time=no ;;
14371 esac
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14374 conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS ;;
14376 esac
14377 fi
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
14379 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
14380 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
14381 then :
14382 have_uuid=yes
14383 fi
14384
14385 LIBS=$py_check_lib_save_LIBS
14386
14387 py_check_lib_save_LIBS=$LIBS
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
14389 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
14390 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
14391 then :
14392 printf %s "(cached) " >&6
14393 else case e in #(
14394 e) ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-luuid $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply.
14402 The 'extern "C"' is for builds by C++ compilers;
14403 although this is not generally supported in C code supporting it here
14404 has little cost and some practical benefit (sr 110532). */
14405 #ifdef __cplusplus
14406 extern "C"
14407 #endif
14408 char uuid_generate_time_safe (void);
14409 int
14410 main (void)
14411 {
14412 return uuid_generate_time_safe ();
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_link "$LINENO"
14418 then :
14419 ac_cv_lib_uuid_uuid_generate_time_safe=yes
14420 else case e in #(
14421 e) ac_cv_lib_uuid_uuid_generate_time_safe=no ;;
14422 esac
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14425 conftest$ac_exeext conftest.$ac_ext
14426 LIBS=$ac_check_lib_save_LIBS ;;
14427 esac
14428 fi
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
14430 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
14431 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
14432 then :
14433
14434 have_uuid=yes
14435 ac_cv_have_uuid_generate_time_safe=yes
14436
14437 fi
14438
14439 LIBS=$py_check_lib_save_LIBS
14440
14441 fi
14442
14443 done
14444 if test "x$have_uuid" = xyes
14445 then :
14446
14447 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14448 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
14449
14450 fi
14451
14452 CFLAGS=$save_CFLAGS
14453 CPPFLAGS=$save_CPPFLAGS
14454 LDFLAGS=$save_LDFLAGS
14455 LIBS=$save_LIBS
14456
14457
14458
14459
14460 elif test $pkg_failed = untried; then
14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 printf "%s\n" "no" >&6; }
14463
14464 save_CFLAGS=$CFLAGS
14465 save_CPPFLAGS=$CPPFLAGS
14466 save_LDFLAGS=$LDFLAGS
14467 save_LIBS=$LIBS
14468
14469
14470 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
14471 LIBS="$LIBS $LIBUUID_LIBS"
14472 for ac_header in uuid/uuid.h
14473 do :
14474 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14475 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14476 then :
14477 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14478
14479 ac_cv_have_uuid_uuid_h=yes
14480 py_check_lib_save_LIBS=$LIBS
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
14482 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
14483 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else case e in #(
14487 e) ac_check_lib_save_LIBS=$LIBS
14488 LIBS="-luuid $LIBS"
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491
14492 /* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply.
14495 The 'extern "C"' is for builds by C++ compilers;
14496 although this is not generally supported in C code supporting it here
14497 has little cost and some practical benefit (sr 110532). */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char uuid_generate_time (void);
14502 int
14503 main (void)
14504 {
14505 return uuid_generate_time ();
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 if ac_fn_c_try_link "$LINENO"
14511 then :
14512 ac_cv_lib_uuid_uuid_generate_time=yes
14513 else case e in #(
14514 e) ac_cv_lib_uuid_uuid_generate_time=no ;;
14515 esac
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14518 conftest$ac_exeext conftest.$ac_ext
14519 LIBS=$ac_check_lib_save_LIBS ;;
14520 esac
14521 fi
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
14523 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
14524 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
14525 then :
14526 have_uuid=yes
14527 fi
14528
14529 LIBS=$py_check_lib_save_LIBS
14530
14531 py_check_lib_save_LIBS=$LIBS
14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
14533 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
14534 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
14535 then :
14536 printf %s "(cached) " >&6
14537 else case e in #(
14538 e) ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-luuid $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply.
14546 The 'extern "C"' is for builds by C++ compilers;
14547 although this is not generally supported in C code supporting it here
14548 has little cost and some practical benefit (sr 110532). */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 char uuid_generate_time_safe (void);
14553 int
14554 main (void)
14555 {
14556 return uuid_generate_time_safe ();
14557 ;
14558 return 0;
14559 }
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"
14562 then :
14563 ac_cv_lib_uuid_uuid_generate_time_safe=yes
14564 else case e in #(
14565 e) ac_cv_lib_uuid_uuid_generate_time_safe=no ;;
14566 esac
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS ;;
14571 esac
14572 fi
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
14574 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
14575 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
14576 then :
14577
14578 have_uuid=yes
14579 ac_cv_have_uuid_generate_time_safe=yes
14580
14581 fi
14582
14583 LIBS=$py_check_lib_save_LIBS
14584
14585 fi
14586
14587 done
14588 if test "x$have_uuid" = xyes
14589 then :
14590
14591 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14592 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
14593
14594 fi
14595
14596 CFLAGS=$save_CFLAGS
14597 CPPFLAGS=$save_CPPFLAGS
14598 LDFLAGS=$save_LDFLAGS
14599 LIBS=$save_LIBS
14600
14601
14602
14603
14604 else
14605 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
14606 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14608 printf "%s\n" "yes" >&6; }
14609 have_uuid=yes
14610 ac_cv_have_uuid_generate_time_safe=yes
14611 # The uuid.h file to include may be <uuid.h> *or* <uuid/uuid.h>.
14612 # Since pkg-config --cflags uuid may return -I/usr/include/uuid,
14613 # it's possible to write '#include <uuid.h>' in _uuidmodule.c,
14614 # assuming that the compiler flags are properly updated.
14615 #
14616 # Ideally, we should have defined HAVE_UUID_H if and only if
14617 # #include <uuid.h> can be written, *without* assuming extra
14618 # include path.
14619 ac_cv_have_uuid_h=yes
14620
14621 fi
14622
14623 fi
14624
14625 if test "x$have_uuid" = xmissing
14626 then :
14627
14628 for ac_header in uuid/uuid.h
14629 do :
14630 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14631 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14632 then :
14633 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14634
14635 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
14636 if test "x$ac_cv_func_uuid_generate_time" = xyes
14637 then :
14638
14639 have_uuid=yes
14640 ac_cv_have_uuid_uuid_h=yes
14641 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14642 LIBUUID_LIBS=${LIBUUID_LIBS-""}
14643
14644 fi
14645
14646
14647 fi
14648
14649 done
14650
14651 fi
14652
14653 if test "x$ac_cv_have_uuid_h" = xyes
14654 then :
14655 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
14656
14657 fi
14658 if test "x$ac_cv_have_uuid_uuid_h" = xyes
14659 then :
14660 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14661
14662 fi
14663 if test "x$ac_cv_have_uuid_generate_time_safe" = xyes
14664 then :
14665
14666 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
14667
14668
14669 fi
14670
14671 # gh-124228: While the libuuid library is available on NetBSD and OpenBSD,
14672 # it supports only UUID version 4.
14673 # This restriction inhibits the proper generation of time-based UUIDs.
14674 if test "$ac_sys_system" = "NetBSD" || test "$ac_sys_system" = "OpenBSD"; then
14675 have_uuid=missing
14676 printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h
14677
14678 fi
14679
14680 if test "x$have_uuid" = xmissing
14681 then :
14682 have_uuid=no
14683 fi
14684
14685 # gh-132710: The UUID node is fetched by using libuuid when possible
14686 # and cached. While the node is constant within the same process,
14687 # different interpreters may have different values as libuuid may
14688 # randomize the node value if the latter cannot be deduced.
14689 #
14690 # Consumers may define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC
14691 # to indicate that libuuid is unstable and should not be relied
14692 # upon to deduce the MAC address.
14693
14694
14695 if test "$have_uuid" = "yes" -a "$HAVE_UUID_GENERATE_TIME_SAFE" = "1"
14696 then
14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if uuid_generate_time_safe() node value is stable" >&5
14698 printf %s "checking if uuid_generate_time_safe() node value is stable... " >&6; }
14699 save_CFLAGS=$CFLAGS
14700 save_CPPFLAGS=$CPPFLAGS
14701 save_LDFLAGS=$LDFLAGS
14702 save_LIBS=$LIBS
14703
14704
14705 # Be sure to add the extra include path if we used pkg-config
14706 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
14707 # by adding extra -I flags.
14708 #
14709 # If the following script does not compile, we simply assume that
14710 # libuuid is missing.
14711 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
14712 LIBS="$LIBS $LIBUUID_LIBS"
14713 if test "$cross_compiling" = yes
14714 then :
14715
14716
14717 else case e in #(
14718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14720
14721 #include <inttypes.h> // PRIu64
14722 #include <stdint.h> // uint64_t
14723 #include <stdio.h> // fopen(), fclose()
14724
14725 #ifdef HAVE_UUID_H
14726 #include <uuid.h>
14727 #else
14728 #include <uuid/uuid.h>
14729 #endif
14730
14731 #define ERR 1
14732 int main(void) {
14733 uuid_t uuid; // unsigned char[16]
14734 (void)uuid_generate_time_safe(uuid);
14735 uint64_t node = 0;
14736 for (size_t i = 0; i < 6; i++) {
14737 node |= (uint64_t)uuid[15 - i] << (8 * i);
14738 }
14739 FILE *fp = fopen("conftest.out", "w");
14740 if (fp == NULL) {
14741 return ERR;
14742 }
14743 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
14744 rc |= fclose(fp);
14745 return rc == 0 ? 0 : ERR;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_run "$LINENO"
14749 then :
14750
14751 py_cv_uuid_node1=`cat conftest.out`
14752
14753 fi
14754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14755 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14756 esac
14757 fi
14758
14759 CFLAGS=$save_CFLAGS
14760 CPPFLAGS=$save_CPPFLAGS
14761 LDFLAGS=$save_LDFLAGS
14762 LIBS=$save_LIBS
14763
14764
14765 save_CFLAGS=$CFLAGS
14766 save_CPPFLAGS=$CPPFLAGS
14767 save_LDFLAGS=$LDFLAGS
14768 save_LIBS=$LIBS
14769
14770
14771 # Be sure to add the extra include path if we used pkg-config
14772 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
14773 # by adding extra -I flags.
14774 #
14775 # If the following script does not compile, we simply assume that
14776 # libuuid is missing.
14777 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
14778 LIBS="$LIBS $LIBUUID_LIBS"
14779 if test "$cross_compiling" = yes
14780 then :
14781
14782
14783 else case e in #(
14784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786
14787 #include <inttypes.h> // PRIu64
14788 #include <stdint.h> // uint64_t
14789 #include <stdio.h> // fopen(), fclose()
14790
14791 #ifdef HAVE_UUID_H
14792 #include <uuid.h>
14793 #else
14794 #include <uuid/uuid.h>
14795 #endif
14796
14797 #define ERR 1
14798 int main(void) {
14799 uuid_t uuid; // unsigned char[16]
14800 (void)uuid_generate_time_safe(uuid);
14801 uint64_t node = 0;
14802 for (size_t i = 0; i < 6; i++) {
14803 node |= (uint64_t)uuid[15 - i] << (8 * i);
14804 }
14805 FILE *fp = fopen("conftest.out", "w");
14806 if (fp == NULL) {
14807 return ERR;
14808 }
14809 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
14810 rc |= fclose(fp);
14811 return rc == 0 ? 0 : ERR;
14812 }
14813 _ACEOF
14814 if ac_fn_c_try_run "$LINENO"
14815 then :
14816
14817 py_cv_uuid_node2=`cat conftest.out`
14818
14819 fi
14820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14822 esac
14823 fi
14824
14825 CFLAGS=$save_CFLAGS
14826 CPPFLAGS=$save_CPPFLAGS
14827 LDFLAGS=$save_LDFLAGS
14828 LIBS=$save_LIBS
14829
14830
14831 if test -n "$py_cv_uuid_node1" -a "$py_cv_uuid_node1" = "$py_cv_uuid_node2"
14832 then
14833 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC 1" >>confdefs.h
14834
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stable" >&5
14836 printf "%s\n" "stable" >&6; }
14837 else
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unstable" >&5
14839 printf "%s\n" "unstable" >&6; }
14840 fi
14841 fi
14842
14843 # 'Real Time' functions on Solaris
14844 # posix4 on Solaris 2.6
14845 # pthread (first!) on Linux
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
14847 printf %s "checking for library containing sem_init... " >&6; }
14848 if test ${ac_cv_search_sem_init+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else case e in #(
14852 e) ac_func_search_save_LIBS=$LIBS
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply.
14859 The 'extern "C"' is for builds by C++ compilers;
14860 although this is not generally supported in C code supporting it here
14861 has little cost and some practical benefit (sr 110532). */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 char sem_init (void);
14866 int
14867 main (void)
14868 {
14869 return sem_init ();
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 for ac_lib in '' pthread rt posix4
14875 do
14876 if test -z "$ac_lib"; then
14877 ac_res="none required"
14878 else
14879 ac_res=-l$ac_lib
14880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14881 fi
14882 if ac_fn_c_try_link "$LINENO"
14883 then :
14884 ac_cv_search_sem_init=$ac_res
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14887 conftest$ac_exeext
14888 if test ${ac_cv_search_sem_init+y}
14889 then :
14890 break
14891 fi
14892 done
14893 if test ${ac_cv_search_sem_init+y}
14894 then :
14895
14896 else case e in #(
14897 e) ac_cv_search_sem_init=no ;;
14898 esac
14899 fi
14900 rm conftest.$ac_ext
14901 LIBS=$ac_func_search_save_LIBS ;;
14902 esac
14903 fi
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
14905 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
14906 ac_res=$ac_cv_search_sem_init
14907 if test "$ac_res" != no
14908 then :
14909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14910
14911 fi
14912
14913
14914 # check if we need libintl for locale functions
14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
14916 printf %s "checking for textdomain in -lintl... " >&6; }
14917 if test ${ac_cv_lib_intl_textdomain+y}
14918 then :
14919 printf %s "(cached) " >&6
14920 else case e in #(
14921 e) ac_check_lib_save_LIBS=$LIBS
14922 LIBS="-lintl $LIBS"
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14925
14926 /* Override any GCC internal prototype to avoid an error.
14927 Use char because int might match the return type of a GCC
14928 builtin and then its argument prototype would still apply.
14929 The 'extern "C"' is for builds by C++ compilers;
14930 although this is not generally supported in C code supporting it here
14931 has little cost and some practical benefit (sr 110532). */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 char textdomain (void);
14936 int
14937 main (void)
14938 {
14939 return textdomain ();
14940 ;
14941 return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"
14945 then :
14946 ac_cv_lib_intl_textdomain=yes
14947 else case e in #(
14948 e) ac_cv_lib_intl_textdomain=no ;;
14949 esac
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_check_lib_save_LIBS ;;
14954 esac
14955 fi
14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
14957 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
14958 if test "x$ac_cv_lib_intl_textdomain" = xyes
14959 then :
14960
14961 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
14962
14963 LIBS="-lintl $LIBS"
14964 fi
14965
14966
14967 # checks for system dependent C++ extensions support
14968 case "$ac_sys_system" in
14969 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
14970 printf %s "checking for genuine AIX C++ extensions support... " >&6; }
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973
14974 #include <load.h>
14975 int
14976 main (void)
14977 {
14978 loadAndInit("", 0, "")
14979 ;
14980 return 0;
14981 }
14982
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"
14985 then :
14986
14987
14988 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
14989
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14991 printf "%s\n" "yes" >&6; }
14992
14993 else case e in #(
14994 e)
14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 printf "%s\n" "no" >&6; }
14997 ;;
14998 esac
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15001 conftest$ac_exeext conftest.$ac_ext
15002 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
15003 # of the AIX system used to build/package Python executable. This tag serves
15004 # as a baseline for bdist module packages
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
15006 printf %s "checking for the system builddate... " >&6; }
15007 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }')
15008
15009 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
15010
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
15012 printf "%s\n" "$AIX_BUILDDATE" >&6; }
15013 ;;
15014 *) ;;
15015 esac
15016
15017 # check for systems that require aligned memory access
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
15019 printf %s "checking aligned memory access is required... " >&6; }
15020 if test ${ac_cv_aligned_required+y}
15021 then :
15022 printf %s "(cached) " >&6
15023 else case e in #(
15024 e) if test "$cross_compiling" = yes
15025 then :
15026
15027 # "yes" changes the hash function to FNV, which causes problems with Numba
15028 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
15029 if test "$ac_sys_system" = "Linux-android"; then
15030 ac_cv_aligned_required=no
15031 else
15032 ac_cv_aligned_required=yes
15033 fi
15034 else case e in #(
15035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 int main(void)
15039 {
15040 char s[16];
15041 int i, *p1, *p2;
15042 for (i=0; i < 16; i++)
15043 s[i] = i;
15044 p1 = (int*)(s+1);
15045 p2 = (int*)(s+2);
15046 if (*p1 == *p2)
15047 return 1;
15048 return 0;
15049 }
15050 _ACEOF
15051 if ac_fn_c_try_run "$LINENO"
15052 then :
15053 ac_cv_aligned_required=no
15054 else case e in #(
15055 e) ac_cv_aligned_required=yes ;;
15056 esac
15057 fi
15058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15059 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15060 esac
15061 fi
15062
15063 ;;
15064 esac
15065 fi
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
15067 printf "%s\n" "$ac_cv_aligned_required" >&6; }
15068 if test "$ac_cv_aligned_required" = yes ; then
15069
15070 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
15071
15072 fi
15073
15074 # str, bytes and memoryview hash algorithm
15075
15076
15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
15078 printf %s "checking for --with-hash-algorithm... " >&6; }
15079
15080 # Check whether --with-hash_algorithm was given.
15081 if test ${with_hash_algorithm+y}
15082 then :
15083 withval=$with_hash_algorithm;
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
15085 printf "%s\n" "$withval" >&6; }
15086 case "$withval" in
15087 siphash13)
15088 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
15089
15090 ;;
15091 siphash24)
15092 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
15093
15094 ;;
15095 fnv)
15096 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
15097
15098 ;;
15099 *)
15100 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
15101 ;;
15102 esac
15103
15104 else case e in #(
15105 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
15106 printf "%s\n" "default" >&6; } ;;
15107 esac
15108 fi
15109
15110
15111 validate_tzpath() {
15112 # Checks that each element of the path is an absolute path
15113 if test -z "$1"; then
15114 # Empty string is allowed: it indicates no system TZPATH
15115 return 0
15116 fi
15117
15118 # Bad paths are those that don't start with /
15119 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
15120 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
15121 return 1;
15122 fi
15123 }
15124
15125 TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
15127 printf %s "checking for --with-tzpath... " >&6; }
15128
15129 # Check whether --with-tzpath was given.
15130 if test ${with_tzpath+y}
15131 then :
15132 withval=$with_tzpath;
15133 case "$withval" in
15134 yes)
15135 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
15136 ;;
15137 *)
15138 validate_tzpath "$withval"
15139 TZPATH="$withval"
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
15141 printf "%s\n" "\"$withval\"" >&6; }
15142 ;;
15143 esac
15144
15145 else case e in #(
15146 e) validate_tzpath "$TZPATH"
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
15148 printf "%s\n" "\"$TZPATH\"" >&6; } ;;
15149 esac
15150 fi
15151
15152
15153
15154 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
15156 printf %s "checking for t_open in -lnsl... " >&6; }
15157 if test ${ac_cv_lib_nsl_t_open+y}
15158 then :
15159 printf %s "(cached) " >&6
15160 else case e in #(
15161 e) ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-lnsl $LIBS"
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply.
15169 The 'extern "C"' is for builds by C++ compilers;
15170 although this is not generally supported in C code supporting it here
15171 has little cost and some practical benefit (sr 110532). */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 char t_open (void);
15176 int
15177 main (void)
15178 {
15179 return t_open ();
15180 ;
15181 return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"
15185 then :
15186 ac_cv_lib_nsl_t_open=yes
15187 else case e in #(
15188 e) ac_cv_lib_nsl_t_open=no ;;
15189 esac
15190 fi
15191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15192 conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS ;;
15194 esac
15195 fi
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
15197 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
15198 if test "x$ac_cv_lib_nsl_t_open" = xyes
15199 then :
15200 LIBS="-lnsl $LIBS"
15201 fi
15202 # SVR4
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15204 printf %s "checking for socket in -lsocket... " >&6; }
15205 if test ${ac_cv_lib_socket_socket+y}
15206 then :
15207 printf %s "(cached) " >&6
15208 else case e in #(
15209 e) ac_check_lib_save_LIBS=$LIBS
15210 LIBS="-lsocket $LIBS $LIBS"
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply.
15217 The 'extern "C"' is for builds by C++ compilers;
15218 although this is not generally supported in C code supporting it here
15219 has little cost and some practical benefit (sr 110532). */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char socket (void);
15224 int
15225 main (void)
15226 {
15227 return socket ();
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"
15233 then :
15234 ac_cv_lib_socket_socket=yes
15235 else case e in #(
15236 e) ac_cv_lib_socket_socket=no ;;
15237 esac
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15240 conftest$ac_exeext conftest.$ac_ext
15241 LIBS=$ac_check_lib_save_LIBS ;;
15242 esac
15243 fi
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15245 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
15246 if test "x$ac_cv_lib_socket_socket" = xyes
15247 then :
15248 LIBS="-lsocket $LIBS"
15249 fi
15250 # SVR4 sockets
15251
15252 case $ac_sys_system/$ac_sys_release in
15253 Haiku*)
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
15255 printf %s "checking for socket in -lnetwork... " >&6; }
15256 if test ${ac_cv_lib_network_socket+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else case e in #(
15260 e) ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lnetwork $LIBS $LIBS"
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply.
15268 The 'extern "C"' is for builds by C++ compilers;
15269 although this is not generally supported in C code supporting it here
15270 has little cost and some practical benefit (sr 110532). */
15271 #ifdef __cplusplus
15272 extern "C"
15273 #endif
15274 char socket (void);
15275 int
15276 main (void)
15277 {
15278 return socket ();
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_link "$LINENO"
15284 then :
15285 ac_cv_lib_network_socket=yes
15286 else case e in #(
15287 e) ac_cv_lib_network_socket=no ;;
15288 esac
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS ;;
15293 esac
15294 fi
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
15296 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
15297 if test "x$ac_cv_lib_network_socket" = xyes
15298 then :
15299 LIBS="-lnetwork $LIBS"
15300 fi
15301
15302 ;;
15303 esac
15304
15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
15306 printf %s "checking for --with-libs... " >&6; }
15307
15308 # Check whether --with-libs was given.
15309 if test ${with_libs+y}
15310 then :
15311 withval=$with_libs;
15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
15313 printf "%s\n" "$withval" >&6; }
15314 LIBS="$withval $LIBS"
15315
15316 else case e in #(
15317 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 printf "%s\n" "no" >&6; } ;;
15319 esac
15320 fi
15321
15322
15323 # Check for use of the system expat library
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
15325 printf %s "checking for --with-system-expat... " >&6; }
15326
15327 # Check whether --with-system_expat was given.
15328 if test ${with_system_expat+y}
15329 then :
15330 withval=$with_system_expat;
15331 else case e in #(
15332 e) with_system_expat="no" ;;
15333 esac
15334 fi
15335
15336
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
15338 printf "%s\n" "$with_system_expat" >&6; }
15339
15340 if test "x$with_system_expat" = xyes
15341 then :
15342
15343 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""}
15344 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"}
15345 LIBEXPAT_INTERNAL=
15346
15347 else case e in #(
15348 e)
15349 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
15350 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
15351 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
15352 ;;
15353 esac
15354 fi
15355
15356
15357
15358
15359 have_libffi=missing
15360 if test "x$ac_sys_system" = xDarwin
15361 then :
15362
15363 save_CFLAGS=$CFLAGS
15364 save_CPPFLAGS=$CPPFLAGS
15365 save_LDFLAGS=$LDFLAGS
15366 save_LIBS=$LIBS
15367
15368
15369 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS"
15370 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15371 if test "x$ac_cv_header_ffi_h" = xyes
15372 then :
15373
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15375 printf %s "checking for ffi_call in -lffi... " >&6; }
15376 if test ${ac_cv_lib_ffi_ffi_call+y}
15377 then :
15378 printf %s "(cached) " >&6
15379 else case e in #(
15380 e) ac_check_lib_save_LIBS=$LIBS
15381 LIBS="-lffi $LIBS"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply.
15388 The 'extern "C"' is for builds by C++ compilers;
15389 although this is not generally supported in C code supporting it here
15390 has little cost and some practical benefit (sr 110532). */
15391 #ifdef __cplusplus
15392 extern "C"
15393 #endif
15394 char ffi_call (void);
15395 int
15396 main (void)
15397 {
15398 return ffi_call ();
15399 ;
15400 return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_c_try_link "$LINENO"
15404 then :
15405 ac_cv_lib_ffi_ffi_call=yes
15406 else case e in #(
15407 e) ac_cv_lib_ffi_ffi_call=no ;;
15408 esac
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS ;;
15413 esac
15414 fi
15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15416 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15417 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15418 then :
15419
15420 have_libffi=yes
15421 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
15422 LIBFFI_LIBS="-lffi"
15423
15424 fi
15425
15426
15427 fi
15428
15429
15430 CFLAGS=$save_CFLAGS
15431 CPPFLAGS=$save_CPPFLAGS
15432 LDFLAGS=$save_LDFLAGS
15433 LIBS=$save_LIBS
15434
15435
15436
15437 fi
15438 if test "x$have_libffi" = xmissing
15439 then :
15440
15441
15442 pkg_failed=no
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
15444 printf %s "checking for libffi... " >&6; }
15445
15446 if test -n "$LIBFFI_CFLAGS"; then
15447 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15448 elif test -n "$PKG_CONFIG"; then
15449 if test -n "$PKG_CONFIG" && \
15450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15451 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15452 ac_status=$?
15453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15454 test $ac_status = 0; }; then
15455 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15456 test "x$?" != "x0" && pkg_failed=yes
15457 else
15458 pkg_failed=yes
15459 fi
15460 else
15461 pkg_failed=untried
15462 fi
15463 if test -n "$LIBFFI_LIBS"; then
15464 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15465 elif test -n "$PKG_CONFIG"; then
15466 if test -n "$PKG_CONFIG" && \
15467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15468 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15469 ac_status=$?
15470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15471 test $ac_status = 0; }; then
15472 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15473 test "x$?" != "x0" && pkg_failed=yes
15474 else
15475 pkg_failed=yes
15476 fi
15477 else
15478 pkg_failed=untried
15479 fi
15480
15481
15482
15483 if test $pkg_failed = yes; then
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 printf "%s\n" "no" >&6; }
15486
15487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15488 _pkg_short_errors_supported=yes
15489 else
15490 _pkg_short_errors_supported=no
15491 fi
15492 if test $_pkg_short_errors_supported = yes; then
15493 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
15494 else
15495 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
15496 fi
15497 # Put the nasty error message in config.log where it belongs
15498 echo "$LIBFFI_PKG_ERRORS" >&5
15499
15500
15501 save_CFLAGS=$CFLAGS
15502 save_CPPFLAGS=$CPPFLAGS
15503 save_LDFLAGS=$LDFLAGS
15504 save_LIBS=$LIBS
15505
15506
15507 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15508 LIBS="$LIBS $LIBFFI_LIBS"
15509 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15510 if test "x$ac_cv_header_ffi_h" = xyes
15511 then :
15512
15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15514 printf %s "checking for ffi_call in -lffi... " >&6; }
15515 if test ${ac_cv_lib_ffi_ffi_call+y}
15516 then :
15517 printf %s "(cached) " >&6
15518 else case e in #(
15519 e) ac_check_lib_save_LIBS=$LIBS
15520 LIBS="-lffi $LIBS"
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523
15524 /* Override any GCC internal prototype to avoid an error.
15525 Use char because int might match the return type of a GCC
15526 builtin and then its argument prototype would still apply.
15527 The 'extern "C"' is for builds by C++ compilers;
15528 although this is not generally supported in C code supporting it here
15529 has little cost and some practical benefit (sr 110532). */
15530 #ifdef __cplusplus
15531 extern "C"
15532 #endif
15533 char ffi_call (void);
15534 int
15535 main (void)
15536 {
15537 return ffi_call ();
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"
15543 then :
15544 ac_cv_lib_ffi_ffi_call=yes
15545 else case e in #(
15546 e) ac_cv_lib_ffi_ffi_call=no ;;
15547 esac
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15550 conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_check_lib_save_LIBS ;;
15552 esac
15553 fi
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15555 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15556 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15557 then :
15558
15559 have_libffi=yes
15560 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
15561 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
15562
15563 else case e in #(
15564 e) have_libffi=no ;;
15565 esac
15566 fi
15567
15568
15569 fi
15570
15571
15572 CFLAGS=$save_CFLAGS
15573 CPPFLAGS=$save_CPPFLAGS
15574 LDFLAGS=$save_LDFLAGS
15575 LIBS=$save_LIBS
15576
15577
15578
15579 elif test $pkg_failed = untried; then
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15581 printf "%s\n" "no" >&6; }
15582
15583 save_CFLAGS=$CFLAGS
15584 save_CPPFLAGS=$CPPFLAGS
15585 save_LDFLAGS=$LDFLAGS
15586 save_LIBS=$LIBS
15587
15588
15589 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15590 LIBS="$LIBS $LIBFFI_LIBS"
15591 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15592 if test "x$ac_cv_header_ffi_h" = xyes
15593 then :
15594
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15596 printf %s "checking for ffi_call in -lffi... " >&6; }
15597 if test ${ac_cv_lib_ffi_ffi_call+y}
15598 then :
15599 printf %s "(cached) " >&6
15600 else case e in #(
15601 e) ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lffi $LIBS"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply.
15609 The 'extern "C"' is for builds by C++ compilers;
15610 although this is not generally supported in C code supporting it here
15611 has little cost and some practical benefit (sr 110532). */
15612 #ifdef __cplusplus
15613 extern "C"
15614 #endif
15615 char ffi_call (void);
15616 int
15617 main (void)
15618 {
15619 return ffi_call ();
15620 ;
15621 return 0;
15622 }
15623 _ACEOF
15624 if ac_fn_c_try_link "$LINENO"
15625 then :
15626 ac_cv_lib_ffi_ffi_call=yes
15627 else case e in #(
15628 e) ac_cv_lib_ffi_ffi_call=no ;;
15629 esac
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS ;;
15634 esac
15635 fi
15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15637 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15638 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15639 then :
15640
15641 have_libffi=yes
15642 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
15643 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
15644
15645 else case e in #(
15646 e) have_libffi=no ;;
15647 esac
15648 fi
15649
15650
15651 fi
15652
15653
15654 CFLAGS=$save_CFLAGS
15655 CPPFLAGS=$save_CPPFLAGS
15656 LDFLAGS=$save_LDFLAGS
15657 LIBS=$save_LIBS
15658
15659
15660
15661 else
15662 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
15663 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15665 printf "%s\n" "yes" >&6; }
15666 have_libffi=yes
15667 fi
15668
15669 fi
15670
15671 if test "x$have_libffi" = xyes
15672 then :
15673
15674 ctypes_malloc_closure=no
15675 case $ac_sys_system in #(
15676 Darwin) :
15677
15678 ctypes_malloc_closure=yes
15679 ;; #(
15680 iOS) :
15681
15682 ctypes_malloc_closure=yes
15683 ;; #(
15684 sunos5) :
15685 as_fn_append LIBFFI_LIBS " -mimpure-text"
15686 ;; #(
15687 *) :
15688 ;;
15689 esac
15690 if test "x$ctypes_malloc_closure" = xyes
15691 then :
15692
15693 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c
15694 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1"
15695
15696 fi
15697
15698
15699 if test "x$ac_cv_lib_dl_dlopen" = xyes
15700 then :
15701 as_fn_append LIBFFI_LIBS " -ldl"
15702 fi
15703
15704 save_CFLAGS=$CFLAGS
15705 save_CPPFLAGS=$CPPFLAGS
15706 save_LDFLAGS=$LDFLAGS
15707 save_LIBS=$LIBS
15708
15709
15710 CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
15711 LIBS="$LIBS $LIBFFI_LIBS"
15712
15713
15714
15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
15716 printf %s "checking for ffi_prep_cif_var... " >&6; }
15717 if test ${ac_cv_func_ffi_prep_cif_var+y}
15718 then :
15719 printf %s "(cached) " >&6
15720 else case e in #(
15721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 #include <ffi.h>
15724 int
15725 main (void)
15726 {
15727 void *x=ffi_prep_cif_var
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 if ac_fn_c_try_compile "$LINENO"
15733 then :
15734 ac_cv_func_ffi_prep_cif_var=yes
15735 else case e in #(
15736 e) ac_cv_func_ffi_prep_cif_var=no ;;
15737 esac
15738 fi
15739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15740 ;;
15741 esac
15742 fi
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
15744 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
15745 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
15746 then :
15747
15748 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
15749
15750 fi
15751
15752
15753
15754
15755
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
15757 printf %s "checking for ffi_prep_closure_loc... " >&6; }
15758 if test ${ac_cv_func_ffi_prep_closure_loc+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else case e in #(
15762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 #include <ffi.h>
15765 int
15766 main (void)
15767 {
15768 void *x=ffi_prep_closure_loc
15769 ;
15770 return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_compile "$LINENO"
15774 then :
15775 ac_cv_func_ffi_prep_closure_loc=yes
15776 else case e in #(
15777 e) ac_cv_func_ffi_prep_closure_loc=no ;;
15778 esac
15779 fi
15780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15781 ;;
15782 esac
15783 fi
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
15785 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
15786 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
15787 then :
15788
15789 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
15790
15791 fi
15792
15793
15794
15795
15796
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
15798 printf %s "checking for ffi_closure_alloc... " >&6; }
15799 if test ${ac_cv_func_ffi_closure_alloc+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else case e in #(
15803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 #include <ffi.h>
15806 int
15807 main (void)
15808 {
15809 void *x=ffi_closure_alloc
15810 ;
15811 return 0;
15812 }
15813 _ACEOF
15814 if ac_fn_c_try_compile "$LINENO"
15815 then :
15816 ac_cv_func_ffi_closure_alloc=yes
15817 else case e in #(
15818 e) ac_cv_func_ffi_closure_alloc=no ;;
15819 esac
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15822 ;;
15823 esac
15824 fi
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
15826 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
15827 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
15828 then :
15829
15830 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
15831
15832 fi
15833
15834
15835
15836
15837 CFLAGS=$save_CFLAGS
15838 CPPFLAGS=$save_CPPFLAGS
15839 LDFLAGS=$save_LDFLAGS
15840 LIBS=$save_LIBS
15841
15842
15843
15844 fi
15845
15846 # Check for libffi with real complex double support.
15847 # This is a workaround, since FFI_TARGET_HAS_COMPLEX_TYPE was defined in libffi v3.2.1,
15848 # but real support was provided only in libffi v3.3.0.
15849 # See https://github.com/python/cpython/issues/125206 for more details.
15850 #
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libffi has complex type support" >&5
15852 printf %s "checking libffi has complex type support... " >&6; }
15853 if test ${ac_cv_ffi_complex_double_supported+y}
15854 then :
15855 printf %s "(cached) " >&6
15856 else case e in #(
15857 e) save_CFLAGS=$CFLAGS
15858 save_CPPFLAGS=$CPPFLAGS
15859 save_LDFLAGS=$LDFLAGS
15860 save_LIBS=$LIBS
15861
15862
15863 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15864 LIBS="$LIBS $LIBFFI_LIBS"
15865 if test "$cross_compiling" = yes
15866 then :
15867 ac_cv_ffi_complex_double_supported=no
15868 else case e in #(
15869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871
15872 #include <complex.h>
15873 #include <ffi.h>
15874 int z_is_expected(double complex z)
15875 {
15876 const double complex expected = 1.25 - 0.5 * I;
15877 return z == expected;
15878 }
15879 int main(void)
15880 {
15881 double complex z = 1.25 - 0.5 * I;
15882 ffi_type *args[1] = {&ffi_type_complex_double};
15883 void *values[1] = {&z};
15884 ffi_cif cif;
15885 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
15886 &ffi_type_sint, args) != FFI_OK)
15887 {
15888 return 2;
15889 }
15890 ffi_arg rc;
15891 ffi_call(&cif, FFI_FN(z_is_expected), &rc, values);
15892 return !rc;
15893 }
15894
15895 _ACEOF
15896 if ac_fn_c_try_run "$LINENO"
15897 then :
15898 ac_cv_ffi_complex_double_supported=yes
15899 else case e in #(
15900 e) ac_cv_ffi_complex_double_supported=no ;;
15901 esac
15902 fi
15903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15904 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15905 esac
15906 fi
15907
15908
15909 CFLAGS=$save_CFLAGS
15910 CPPFLAGS=$save_CPPFLAGS
15911 LDFLAGS=$save_LDFLAGS
15912 LIBS=$save_LIBS
15913
15914 ;;
15915 esac
15916 fi
15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_complex_double_supported" >&5
15918 printf "%s\n" "$ac_cv_ffi_complex_double_supported" >&6; }
15919 if test "$ac_cv_ffi_complex_double_supported" = "yes"; then
15920
15921 printf "%s\n" "#define _Py_FFI_SUPPORT_C_COMPLEX 1" >>confdefs.h
15922
15923 fi
15924
15925 # Check for use of the system libmpdec library
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
15927 printf %s "checking for --with-system-libmpdec... " >&6; }
15928
15929 # Check whether --with-system_libmpdec was given.
15930 if test ${with_system_libmpdec+y}
15931 then :
15932 withval=$with_system_libmpdec;
15933 else case e in #(
15934 e) with_system_libmpdec="yes" ;;
15935 esac
15936 fi
15937
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
15939 printf "%s\n" "$with_system_libmpdec" >&6; }
15940
15941
15942
15943 if test "x$with_system_libmpdec" = xyes
15944 then :
15945
15946 pkg_failed=no
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec >= 2.5.0" >&5
15948 printf %s "checking for libmpdec >= 2.5.0... " >&6; }
15949
15950 if test -n "$LIBMPDEC_CFLAGS"; then
15951 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS"
15952 elif test -n "$PKG_CONFIG"; then
15953 if test -n "$PKG_CONFIG" && \
15954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15955 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15956 ac_status=$?
15957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15958 test $ac_status = 0; }; then
15959 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec >= 2.5.0" 2>/dev/null`
15960 test "x$?" != "x0" && pkg_failed=yes
15961 else
15962 pkg_failed=yes
15963 fi
15964 else
15965 pkg_failed=untried
15966 fi
15967 if test -n "$LIBMPDEC_LIBS"; then
15968 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS"
15969 elif test -n "$PKG_CONFIG"; then
15970 if test -n "$PKG_CONFIG" && \
15971 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15972 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15973 ac_status=$?
15974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15975 test $ac_status = 0; }; then
15976 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec >= 2.5.0" 2>/dev/null`
15977 test "x$?" != "x0" && pkg_failed=yes
15978 else
15979 pkg_failed=yes
15980 fi
15981 else
15982 pkg_failed=untried
15983 fi
15984
15985
15986
15987 if test $pkg_failed = yes; then
15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15989 printf "%s\n" "no" >&6; }
15990
15991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15992 _pkg_short_errors_supported=yes
15993 else
15994 _pkg_short_errors_supported=no
15995 fi
15996 if test $_pkg_short_errors_supported = yes; then
15997 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
15998 else
15999 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
16000 fi
16001 # Put the nasty error message in config.log where it belongs
16002 echo "$LIBMPDEC_PKG_ERRORS" >&5
16003
16004 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
16005 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
16006 LIBMPDEC_INTERNAL=
16007 elif test $pkg_failed = untried; then
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16009 printf "%s\n" "no" >&6; }
16010 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
16011 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
16012 LIBMPDEC_INTERNAL=
16013 else
16014 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS
16015 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16017 printf "%s\n" "yes" >&6; }
16018
16019 fi
16020 else case e in #(
16021 e) LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
16022 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
16023 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
16024 have_mpdec=yes
16025 with_system_libmpdec=no ;;
16026 esac
16027 fi
16028
16029 if test "x$with_system_libmpdec" = xyes
16030 then :
16031 save_CFLAGS=$CFLAGS
16032 save_CPPFLAGS=$CPPFLAGS
16033 save_LDFLAGS=$LDFLAGS
16034 save_LIBS=$LIBS
16035
16036
16037 CPPFLAGS="$CPPFLAGS $LIBMPDEC_CFLAGS"
16038 LIBS="$LIBS $LIBMPDEC_LIBS"
16039
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042
16043
16044 #include <mpdecimal.h>
16045 #if MPD_VERSION_HEX < 0x02050000
16046 # error "mpdecimal 2.5.0 or higher required"
16047 #endif
16048
16049 int
16050 main (void)
16051 {
16052 const char *x = mpd_version();
16053 ;
16054 return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_c_try_link "$LINENO"
16058 then :
16059 have_mpdec=yes
16060 else case e in #(
16061 e) have_mpdec=no ;;
16062 esac
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16065 conftest$ac_exeext conftest.$ac_ext
16066
16067 CFLAGS=$save_CFLAGS
16068 CPPFLAGS=$save_CPPFLAGS
16069 LDFLAGS=$save_LDFLAGS
16070 LIBS=$save_LIBS
16071
16072
16073 else case e in #(
16074 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&5
16075 printf "%s\n" "$as_me: WARNING: the bundled copy of libmpdec is scheduled for removal in Python 3.16; consider using a system installed mpdecimal library." >&2;} ;;
16076 esac
16077 fi
16078
16079 if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"
16080 then :
16081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no system libmpdec found; falling back to bundled libmpdec (deprecated and scheduled for removal in Python 3.16)" >&5
16082 printf "%s\n" "$as_me: WARNING: no system libmpdec found; falling back to bundled libmpdec (deprecated and scheduled for removal in Python 3.16)" >&2;}
16083 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
16084 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
16085 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
16086 have_mpdec=yes
16087 with_system_libmpdec=no
16088 fi
16089
16090 # Disable forced inlining in debug builds, see GH-94847
16091 if test "x$with_pydebug" = xyes
16092 then :
16093 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
16094 fi
16095
16096 # Check whether _decimal should use a coroutine-local or thread-local context
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
16098 printf %s "checking for --with-decimal-contextvar... " >&6; }
16099
16100 # Check whether --with-decimal_contextvar was given.
16101 if test ${with_decimal_contextvar+y}
16102 then :
16103 withval=$with_decimal_contextvar;
16104 else case e in #(
16105 e) with_decimal_contextvar="yes" ;;
16106 esac
16107 fi
16108
16109
16110 if test "$with_decimal_contextvar" != "no"
16111 then
16112
16113 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
16114
16115 fi
16116
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
16118 printf "%s\n" "$with_decimal_contextvar" >&6; }
16119
16120 if test "x$with_system_libmpdec" = xno
16121 then :
16122 # Check for libmpdec machine flavor
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
16124 printf %s "checking for decimal libmpdec machine... " >&6; }
16125 case $ac_sys_system in #(
16126 Darwin*) :
16127 libmpdec_system=Darwin ;; #(
16128 SunOS*) :
16129 libmpdec_system=sunos ;; #(
16130 *) :
16131 libmpdec_system=other
16132 ;;
16133 esac
16134
16135 libmpdec_machine=unknown
16136 if test "$libmpdec_system" = Darwin; then
16137 # universal here means: build libmpdec with the same arch options
16138 # the python interpreter was built with
16139 libmpdec_machine=universal
16140 elif test $ac_cv_sizeof_size_t -eq 8; then
16141 if test "$ac_cv_gcc_asm_for_x64" = yes; then
16142 libmpdec_machine=x64
16143 elif test "$ac_cv_type___uint128_t" = yes; then
16144 libmpdec_machine=uint128
16145 else
16146 libmpdec_machine=ansi64
16147 fi
16148 elif test $ac_cv_sizeof_size_t -eq 4; then
16149 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then
16150 case $ac_cv_cc_name in #(
16151 *gcc*) :
16152 libmpdec_machine=ppro ;; #(
16153 *clang*) :
16154 libmpdec_machine=ppro ;; #(
16155 *) :
16156 libmpdec_machine=ansi32
16157 ;;
16158 esac
16159 else
16160 libmpdec_machine=ansi32
16161 fi
16162 fi
16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
16164 printf "%s\n" "$libmpdec_machine" >&6; }
16165
16166 case $libmpdec_machine in #(
16167 x64) :
16168 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #(
16169 uint128) :
16170 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
16171 ansi64) :
16172 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #(
16173 ppro) :
16174 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
16175 ansi32) :
16176 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #(
16177 ansi-legacy) :
16178 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
16179 universal) :
16180 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #(
16181 *) :
16182 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5
16183 ;;
16184 esac
16185 fi
16186
16187 if test "$have_ipa_pure_const_bug" = yes; then
16188 # Some versions of gcc miscompile inline asm:
16189 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16190 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16191 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const"
16192 fi
16193
16194 if test "$have_glibc_memmove_bug" = yes; then
16195 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16196 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16197 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE"
16198 fi
16199
16200
16201
16202
16203
16204
16205
16206
16207 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
16208 then :
16209
16210 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
16211 LIBSQLITE3_LIBS="-sUSE_SQLITE3"
16212
16213 fi
16214
16215
16216
16217
16218
16219 pkg_failed=no
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
16221 printf %s "checking for sqlite3 >= 3.15.2... " >&6; }
16222
16223 if test -n "$LIBSQLITE3_CFLAGS"; then
16224 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS"
16225 elif test -n "$PKG_CONFIG"; then
16226 if test -n "$PKG_CONFIG" && \
16227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
16228 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
16229 ac_status=$?
16230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; then
16232 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
16233 test "x$?" != "x0" && pkg_failed=yes
16234 else
16235 pkg_failed=yes
16236 fi
16237 else
16238 pkg_failed=untried
16239 fi
16240 if test -n "$LIBSQLITE3_LIBS"; then
16241 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS"
16242 elif test -n "$PKG_CONFIG"; then
16243 if test -n "$PKG_CONFIG" && \
16244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
16245 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
16246 ac_status=$?
16247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16248 test $ac_status = 0; }; then
16249 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
16250 test "x$?" != "x0" && pkg_failed=yes
16251 else
16252 pkg_failed=yes
16253 fi
16254 else
16255 pkg_failed=untried
16256 fi
16257
16258
16259
16260 if test $pkg_failed = yes; then
16261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262 printf "%s\n" "no" >&6; }
16263
16264 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16265 _pkg_short_errors_supported=yes
16266 else
16267 _pkg_short_errors_supported=no
16268 fi
16269 if test $_pkg_short_errors_supported = yes; then
16270 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
16271 else
16272 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
16273 fi
16274 # Put the nasty error message in config.log where it belongs
16275 echo "$LIBSQLITE3_PKG_ERRORS" >&5
16276
16277
16278 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
16279 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
16280
16281
16282 elif test $pkg_failed = untried; then
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 printf "%s\n" "no" >&6; }
16285
16286 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
16287 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
16288
16289
16290 else
16291 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS
16292 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS
16293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16294 printf "%s\n" "yes" >&6; }
16295
16296 fi
16297 as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite'
16298
16299
16300
16301 save_CFLAGS=$CFLAGS
16302 save_CPPFLAGS=$CPPFLAGS
16303 save_LDFLAGS=$LDFLAGS
16304 save_LIBS=$LIBS
16305
16306
16307 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
16308 LIBS="$LIBS $LIBSQLITE3_LIBS"
16309
16310 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
16311 if test "x$ac_cv_header_sqlite3_h" = xyes
16312 then :
16313
16314 have_sqlite3=yes
16315
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16318
16319
16320 #include <sqlite3.h>
16321 #if SQLITE_VERSION_NUMBER < 3015002
16322 # error "SQLite 3.15.2 or higher required"
16323 #endif
16324
16325 int
16326 main (void)
16327 {
16328
16329 ;
16330 return 0;
16331 }
16332
16333 _ACEOF
16334 if ac_fn_c_try_compile "$LINENO"
16335 then :
16336
16337 have_supported_sqlite3=yes
16338
16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
16340 printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; }
16341 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
16342 then :
16343 printf %s "(cached) " >&6
16344 else case e in #(
16345 e) ac_check_lib_save_LIBS=$LIBS
16346 LIBS="-lsqlite3 $LIBS"
16347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h. */
16349
16350 /* Override any GCC internal prototype to avoid an error.
16351 Use char because int might match the return type of a GCC
16352 builtin and then its argument prototype would still apply.
16353 The 'extern "C"' is for builds by C++ compilers;
16354 although this is not generally supported in C code supporting it here
16355 has little cost and some practical benefit (sr 110532). */
16356 #ifdef __cplusplus
16357 extern "C"
16358 #endif
16359 char sqlite3_bind_double (void);
16360 int
16361 main (void)
16362 {
16363 return sqlite3_bind_double ();
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"
16369 then :
16370 ac_cv_lib_sqlite3_sqlite3_bind_double=yes
16371 else case e in #(
16372 e) ac_cv_lib_sqlite3_sqlite3_bind_double=no ;;
16373 esac
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS ;;
16378 esac
16379 fi
16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
16381 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
16382 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
16383 then :
16384 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16385
16386 LIBS="-lsqlite3 $LIBS"
16387
16388 else case e in #(
16389 e)
16390 have_supported_sqlite3=no
16391 ;;
16392 esac
16393 fi
16394
16395
16396
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
16398 printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
16399 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
16400 then :
16401 printf %s "(cached) " >&6
16402 else case e in #(
16403 e) ac_check_lib_save_LIBS=$LIBS
16404 LIBS="-lsqlite3 $LIBS"
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16407
16408 /* Override any GCC internal prototype to avoid an error.
16409 Use char because int might match the return type of a GCC
16410 builtin and then its argument prototype would still apply.
16411 The 'extern "C"' is for builds by C++ compilers;
16412 although this is not generally supported in C code supporting it here
16413 has little cost and some practical benefit (sr 110532). */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char sqlite3_column_decltype (void);
16418 int
16419 main (void)
16420 {
16421 return sqlite3_column_decltype ();
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 if ac_fn_c_try_link "$LINENO"
16427 then :
16428 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes
16429 else case e in #(
16430 e) ac_cv_lib_sqlite3_sqlite3_column_decltype=no ;;
16431 esac
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16434 conftest$ac_exeext conftest.$ac_ext
16435 LIBS=$ac_check_lib_save_LIBS ;;
16436 esac
16437 fi
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
16439 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
16440 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
16441 then :
16442 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16443
16444 LIBS="-lsqlite3 $LIBS"
16445
16446 else case e in #(
16447 e)
16448 have_supported_sqlite3=no
16449 ;;
16450 esac
16451 fi
16452
16453
16454
16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
16456 printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; }
16457 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
16458 then :
16459 printf %s "(cached) " >&6
16460 else case e in #(
16461 e) ac_check_lib_save_LIBS=$LIBS
16462 LIBS="-lsqlite3 $LIBS"
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465
16466 /* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply.
16469 The 'extern "C"' is for builds by C++ compilers;
16470 although this is not generally supported in C code supporting it here
16471 has little cost and some practical benefit (sr 110532). */
16472 #ifdef __cplusplus
16473 extern "C"
16474 #endif
16475 char sqlite3_column_double (void);
16476 int
16477 main (void)
16478 {
16479 return sqlite3_column_double ();
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 if ac_fn_c_try_link "$LINENO"
16485 then :
16486 ac_cv_lib_sqlite3_sqlite3_column_double=yes
16487 else case e in #(
16488 e) ac_cv_lib_sqlite3_sqlite3_column_double=no ;;
16489 esac
16490 fi
16491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16492 conftest$ac_exeext conftest.$ac_ext
16493 LIBS=$ac_check_lib_save_LIBS ;;
16494 esac
16495 fi
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
16497 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
16498 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
16499 then :
16500 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16501
16502 LIBS="-lsqlite3 $LIBS"
16503
16504 else case e in #(
16505 e)
16506 have_supported_sqlite3=no
16507 ;;
16508 esac
16509 fi
16510
16511
16512
16513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
16514 printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; }
16515 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
16516 then :
16517 printf %s "(cached) " >&6
16518 else case e in #(
16519 e) ac_check_lib_save_LIBS=$LIBS
16520 LIBS="-lsqlite3 $LIBS"
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523
16524 /* Override any GCC internal prototype to avoid an error.
16525 Use char because int might match the return type of a GCC
16526 builtin and then its argument prototype would still apply.
16527 The 'extern "C"' is for builds by C++ compilers;
16528 although this is not generally supported in C code supporting it here
16529 has little cost and some practical benefit (sr 110532). */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 char sqlite3_complete (void);
16534 int
16535 main (void)
16536 {
16537 return sqlite3_complete ();
16538 ;
16539 return 0;
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_link "$LINENO"
16543 then :
16544 ac_cv_lib_sqlite3_sqlite3_complete=yes
16545 else case e in #(
16546 e) ac_cv_lib_sqlite3_sqlite3_complete=no ;;
16547 esac
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS ;;
16552 esac
16553 fi
16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
16555 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
16556 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
16557 then :
16558 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16559
16560 LIBS="-lsqlite3 $LIBS"
16561
16562 else case e in #(
16563 e)
16564 have_supported_sqlite3=no
16565 ;;
16566 esac
16567 fi
16568
16569
16570
16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
16572 printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
16573 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
16574 then :
16575 printf %s "(cached) " >&6
16576 else case e in #(
16577 e) ac_check_lib_save_LIBS=$LIBS
16578 LIBS="-lsqlite3 $LIBS"
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply.
16585 The 'extern "C"' is for builds by C++ compilers;
16586 although this is not generally supported in C code supporting it here
16587 has little cost and some practical benefit (sr 110532). */
16588 #ifdef __cplusplus
16589 extern "C"
16590 #endif
16591 char sqlite3_progress_handler (void);
16592 int
16593 main (void)
16594 {
16595 return sqlite3_progress_handler ();
16596 ;
16597 return 0;
16598 }
16599 _ACEOF
16600 if ac_fn_c_try_link "$LINENO"
16601 then :
16602 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes
16603 else case e in #(
16604 e) ac_cv_lib_sqlite3_sqlite3_progress_handler=no ;;
16605 esac
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16608 conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS ;;
16610 esac
16611 fi
16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
16613 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
16614 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
16615 then :
16616 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16617
16618 LIBS="-lsqlite3 $LIBS"
16619
16620 else case e in #(
16621 e)
16622 have_supported_sqlite3=no
16623 ;;
16624 esac
16625 fi
16626
16627
16628
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
16630 printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; }
16631 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
16632 then :
16633 printf %s "(cached) " >&6
16634 else case e in #(
16635 e) ac_check_lib_save_LIBS=$LIBS
16636 LIBS="-lsqlite3 $LIBS"
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639
16640 /* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply.
16643 The 'extern "C"' is for builds by C++ compilers;
16644 although this is not generally supported in C code supporting it here
16645 has little cost and some practical benefit (sr 110532). */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 char sqlite3_result_double (void);
16650 int
16651 main (void)
16652 {
16653 return sqlite3_result_double ();
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"
16659 then :
16660 ac_cv_lib_sqlite3_sqlite3_result_double=yes
16661 else case e in #(
16662 e) ac_cv_lib_sqlite3_sqlite3_result_double=no ;;
16663 esac
16664 fi
16665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16666 conftest$ac_exeext conftest.$ac_ext
16667 LIBS=$ac_check_lib_save_LIBS ;;
16668 esac
16669 fi
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
16671 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
16672 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
16673 then :
16674 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16675
16676 LIBS="-lsqlite3 $LIBS"
16677
16678 else case e in #(
16679 e)
16680 have_supported_sqlite3=no
16681 ;;
16682 esac
16683 fi
16684
16685
16686
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
16688 printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
16689 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
16690 then :
16691 printf %s "(cached) " >&6
16692 else case e in #(
16693 e) ac_check_lib_save_LIBS=$LIBS
16694 LIBS="-lsqlite3 $LIBS"
16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16696 /* end confdefs.h. */
16697
16698 /* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply.
16701 The 'extern "C"' is for builds by C++ compilers;
16702 although this is not generally supported in C code supporting it here
16703 has little cost and some practical benefit (sr 110532). */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char sqlite3_set_authorizer (void);
16708 int
16709 main (void)
16710 {
16711 return sqlite3_set_authorizer ();
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 if ac_fn_c_try_link "$LINENO"
16717 then :
16718 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes
16719 else case e in #(
16720 e) ac_cv_lib_sqlite3_sqlite3_set_authorizer=no ;;
16721 esac
16722 fi
16723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16724 conftest$ac_exeext conftest.$ac_ext
16725 LIBS=$ac_check_lib_save_LIBS ;;
16726 esac
16727 fi
16728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
16729 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
16730 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
16731 then :
16732 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16733
16734 LIBS="-lsqlite3 $LIBS"
16735
16736 else case e in #(
16737 e)
16738 have_supported_sqlite3=no
16739 ;;
16740 esac
16741 fi
16742
16743
16744
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
16746 printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
16747 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
16748 then :
16749 printf %s "(cached) " >&6
16750 else case e in #(
16751 e) ac_check_lib_save_LIBS=$LIBS
16752 LIBS="-lsqlite3 $LIBS"
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply.
16759 The 'extern "C"' is for builds by C++ compilers;
16760 although this is not generally supported in C code supporting it here
16761 has little cost and some practical benefit (sr 110532). */
16762 #ifdef __cplusplus
16763 extern "C"
16764 #endif
16765 char sqlite3_trace_v2 (void);
16766 int
16767 main (void)
16768 {
16769 return sqlite3_trace_v2 ();
16770 ;
16771 return 0;
16772 }
16773 _ACEOF
16774 if ac_fn_c_try_link "$LINENO"
16775 then :
16776 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes
16777 else case e in #(
16778 e) ac_cv_lib_sqlite3_sqlite3_trace_v2=no ;;
16779 esac
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16782 conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS ;;
16784 esac
16785 fi
16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
16787 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
16788 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
16789 then :
16790 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16791
16792 LIBS="-lsqlite3 $LIBS"
16793
16794 else case e in #(
16795 e)
16796
16797
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
16799 printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; }
16800 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
16801 then :
16802 printf %s "(cached) " >&6
16803 else case e in #(
16804 e) ac_check_lib_save_LIBS=$LIBS
16805 LIBS="-lsqlite3 $LIBS"
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808
16809 /* Override any GCC internal prototype to avoid an error.
16810 Use char because int might match the return type of a GCC
16811 builtin and then its argument prototype would still apply.
16812 The 'extern "C"' is for builds by C++ compilers;
16813 although this is not generally supported in C code supporting it here
16814 has little cost and some practical benefit (sr 110532). */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 char sqlite3_trace (void);
16819 int
16820 main (void)
16821 {
16822 return sqlite3_trace ();
16823 ;
16824 return 0;
16825 }
16826 _ACEOF
16827 if ac_fn_c_try_link "$LINENO"
16828 then :
16829 ac_cv_lib_sqlite3_sqlite3_trace=yes
16830 else case e in #(
16831 e) ac_cv_lib_sqlite3_sqlite3_trace=no ;;
16832 esac
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16835 conftest$ac_exeext conftest.$ac_ext
16836 LIBS=$ac_check_lib_save_LIBS ;;
16837 esac
16838 fi
16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
16840 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
16841 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
16842 then :
16843 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16844
16845 LIBS="-lsqlite3 $LIBS"
16846
16847 else case e in #(
16848 e)
16849 have_supported_sqlite3=no
16850 ;;
16851 esac
16852 fi
16853
16854
16855
16856 ;;
16857 esac
16858 fi
16859
16860
16861
16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
16863 printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; }
16864 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
16865 then :
16866 printf %s "(cached) " >&6
16867 else case e in #(
16868 e) ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lsqlite3 $LIBS"
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply.
16876 The 'extern "C"' is for builds by C++ compilers;
16877 although this is not generally supported in C code supporting it here
16878 has little cost and some practical benefit (sr 110532). */
16879 #ifdef __cplusplus
16880 extern "C"
16881 #endif
16882 char sqlite3_value_double (void);
16883 int
16884 main (void)
16885 {
16886 return sqlite3_value_double ();
16887 ;
16888 return 0;
16889 }
16890 _ACEOF
16891 if ac_fn_c_try_link "$LINENO"
16892 then :
16893 ac_cv_lib_sqlite3_sqlite3_value_double=yes
16894 else case e in #(
16895 e) ac_cv_lib_sqlite3_sqlite3_value_double=no ;;
16896 esac
16897 fi
16898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16899 conftest$ac_exeext conftest.$ac_ext
16900 LIBS=$ac_check_lib_save_LIBS ;;
16901 esac
16902 fi
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
16904 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
16905 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
16906 then :
16907 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16908
16909 LIBS="-lsqlite3 $LIBS"
16910
16911 else case e in #(
16912 e)
16913 have_supported_sqlite3=no
16914 ;;
16915 esac
16916 fi
16917
16918
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
16920 printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
16921 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
16922 then :
16923 printf %s "(cached) " >&6
16924 else case e in #(
16925 e) ac_check_lib_save_LIBS=$LIBS
16926 LIBS="-lsqlite3 $LIBS"
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply.
16933 The 'extern "C"' is for builds by C++ compilers;
16934 although this is not generally supported in C code supporting it here
16935 has little cost and some practical benefit (sr 110532). */
16936 #ifdef __cplusplus
16937 extern "C"
16938 #endif
16939 char sqlite3_load_extension (void);
16940 int
16941 main (void)
16942 {
16943 return sqlite3_load_extension ();
16944 ;
16945 return 0;
16946 }
16947 _ACEOF
16948 if ac_fn_c_try_link "$LINENO"
16949 then :
16950 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
16951 else case e in #(
16952 e) ac_cv_lib_sqlite3_sqlite3_load_extension=no ;;
16953 esac
16954 fi
16955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS ;;
16958 esac
16959 fi
16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
16961 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
16962 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
16963 then :
16964 have_sqlite3_load_extension=yes
16965 else case e in #(
16966 e) have_sqlite3_load_extension=no
16967 ;;
16968 esac
16969 fi
16970
16971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
16972 printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; }
16973 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
16974 then :
16975 printf %s "(cached) " >&6
16976 else case e in #(
16977 e) ac_check_lib_save_LIBS=$LIBS
16978 LIBS="-lsqlite3 $LIBS"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply.
16985 The 'extern "C"' is for builds by C++ compilers;
16986 although this is not generally supported in C code supporting it here
16987 has little cost and some practical benefit (sr 110532). */
16988 #ifdef __cplusplus
16989 extern "C"
16990 #endif
16991 char sqlite3_serialize (void);
16992 int
16993 main (void)
16994 {
16995 return sqlite3_serialize ();
16996 ;
16997 return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_link "$LINENO"
17001 then :
17002 ac_cv_lib_sqlite3_sqlite3_serialize=yes
17003 else case e in #(
17004 e) ac_cv_lib_sqlite3_sqlite3_serialize=no ;;
17005 esac
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17008 conftest$ac_exeext conftest.$ac_ext
17009 LIBS=$ac_check_lib_save_LIBS ;;
17010 esac
17011 fi
17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
17013 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
17014 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
17015 then :
17016
17017
17018 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
17019
17020
17021 fi
17022
17023
17024 else case e in #(
17025 e)
17026 have_supported_sqlite3=no
17027 ;;
17028 esac
17029 fi
17030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17031
17032 fi
17033
17034
17035 CFLAGS=$save_CFLAGS
17036 CPPFLAGS=$save_CPPFLAGS
17037 LDFLAGS=$save_LDFLAGS
17038 LIBS=$save_LIBS
17039
17040
17041
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
17043 printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; }
17044 # Check whether --enable-loadable-sqlite-extensions was given.
17045 if test ${enable_loadable_sqlite_extensions+y}
17046 then :
17047 enableval=$enable_loadable_sqlite_extensions;
17048 if test "x$have_sqlite3_load_extension" = xno
17049 then :
17050
17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
17052 printf "%s\n" "n/a" >&6; }
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
17054 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
17055
17056 else case e in #(
17057 e)
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17059 printf "%s\n" "yes" >&6; }
17060
17061 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
17062
17063 ;;
17064 esac
17065 fi
17066
17067 else case e in #(
17068 e)
17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 printf "%s\n" "no" >&6; }
17071
17072 ;;
17073 esac
17074 fi
17075
17076
17077 found_tcltk=no
17078 for _QUERY in \
17079 "tcl >= 8.5.12 tk >= 8.5.12" \
17080 "tcl8.6 tk8.6" \
17081 "tcl86 tk86" \
17082 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
17083 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
17084 ; do
17085 if test -n "$PKG_CONFIG" && \
17086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17087 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17088 ac_status=$?
17089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }; then
17091
17092
17093 pkg_failed=no
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
17095 printf %s "checking for $_QUERY... " >&6; }
17096
17097 if test -n "$TCLTK_CFLAGS"; then
17098 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS"
17099 elif test -n "$PKG_CONFIG"; then
17100 if test -n "$PKG_CONFIG" && \
17101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17102 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17103 ac_status=$?
17104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17105 test $ac_status = 0; }; then
17106 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
17107 test "x$?" != "x0" && pkg_failed=yes
17108 else
17109 pkg_failed=yes
17110 fi
17111 else
17112 pkg_failed=untried
17113 fi
17114 if test -n "$TCLTK_LIBS"; then
17115 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS"
17116 elif test -n "$PKG_CONFIG"; then
17117 if test -n "$PKG_CONFIG" && \
17118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17119 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17120 ac_status=$?
17121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17122 test $ac_status = 0; }; then
17123 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
17124 test "x$?" != "x0" && pkg_failed=yes
17125 else
17126 pkg_failed=yes
17127 fi
17128 else
17129 pkg_failed=untried
17130 fi
17131
17132
17133
17134 if test $pkg_failed = yes; then
17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 printf "%s\n" "no" >&6; }
17137
17138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17139 _pkg_short_errors_supported=yes
17140 else
17141 _pkg_short_errors_supported=no
17142 fi
17143 if test $_pkg_short_errors_supported = yes; then
17144 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
17145 else
17146 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
17147 fi
17148 # Put the nasty error message in config.log where it belongs
17149 echo "$TCLTK_PKG_ERRORS" >&5
17150
17151 found_tcltk=no
17152 elif test $pkg_failed = untried; then
17153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 printf "%s\n" "no" >&6; }
17155 found_tcltk=no
17156 else
17157 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS
17158 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17160 printf "%s\n" "yes" >&6; }
17161 found_tcltk=yes
17162 fi
17163
17164 fi
17165 if test "x$found_tcltk" = xyes
17166 then :
17167 break
17168 fi
17169 done
17170
17171 if test "x$found_tcltk" = xno
17172 then :
17173
17174 TCLTK_CFLAGS=${TCLTK_CFLAGS-""}
17175 TCLTK_LIBS=${TCLTK_LIBS-""}
17176
17177 fi
17178
17179 case $ac_sys_system in #(
17180 FreeBSD*) :
17181
17182 if test -n "$PKG_CONFIG" && \
17183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17184 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17185 ac_status=$?
17186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; then
17188
17189
17190 pkg_failed=no
17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
17192 printf %s "checking for x11... " >&6; }
17193
17194 if test -n "$X11_CFLAGS"; then
17195 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
17196 elif test -n "$PKG_CONFIG"; then
17197 if test -n "$PKG_CONFIG" && \
17198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17199 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17200 ac_status=$?
17201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17202 test $ac_status = 0; }; then
17203 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
17204 test "x$?" != "x0" && pkg_failed=yes
17205 else
17206 pkg_failed=yes
17207 fi
17208 else
17209 pkg_failed=untried
17210 fi
17211 if test -n "$X11_LIBS"; then
17212 pkg_cv_X11_LIBS="$X11_LIBS"
17213 elif test -n "$PKG_CONFIG"; then
17214 if test -n "$PKG_CONFIG" && \
17215 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17216 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17217 ac_status=$?
17218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17219 test $ac_status = 0; }; then
17220 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
17221 test "x$?" != "x0" && pkg_failed=yes
17222 else
17223 pkg_failed=yes
17224 fi
17225 else
17226 pkg_failed=untried
17227 fi
17228
17229
17230
17231 if test $pkg_failed = yes; then
17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17233 printf "%s\n" "no" >&6; }
17234
17235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17236 _pkg_short_errors_supported=yes
17237 else
17238 _pkg_short_errors_supported=no
17239 fi
17240 if test $_pkg_short_errors_supported = yes; then
17241 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
17242 else
17243 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
17244 fi
17245 # Put the nasty error message in config.log where it belongs
17246 echo "$X11_PKG_ERRORS" >&5
17247
17248 as_fn_error $? "Package requirements (x11) were not met:
17249
17250 $X11_PKG_ERRORS
17251
17252 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17253 installed software in a non-standard prefix.
17254
17255 Alternatively, you may set the environment variables X11_CFLAGS
17256 and X11_LIBS to avoid the need to call pkg-config.
17257 See the pkg-config man page for more details." "$LINENO" 5
17258 elif test $pkg_failed = untried; then
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260 printf "%s\n" "no" >&6; }
17261 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17262 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17263 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17264 is in your PATH or set the PKG_CONFIG environment variable to the full
17265 path to pkg-config.
17266
17267 Alternatively, you may set the environment variables X11_CFLAGS
17268 and X11_LIBS to avoid the need to call pkg-config.
17269 See the pkg-config man page for more details.
17270
17271 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17272 See 'config.log' for more details" "$LINENO" 5; }
17273 else
17274 X11_CFLAGS=$pkg_cv_X11_CFLAGS
17275 X11_LIBS=$pkg_cv_X11_LIBS
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17277 printf "%s\n" "yes" >&6; }
17278
17279 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
17280 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
17281
17282 fi
17283
17284 fi
17285
17286 ;; #(
17287 *) :
17288 ;;
17289 esac
17290
17291 save_CFLAGS=$CFLAGS
17292 save_CPPFLAGS=$CPPFLAGS
17293 save_LDFLAGS=$LDFLAGS
17294 save_LIBS=$LIBS
17295
17296
17297 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS"
17298 LIBS="$LIBS $TCLTK_LIBS"
17299
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302
17303
17304 #include <tcl.h>
17305 #include <tk.h>
17306 #if defined(TK_HEX_VERSION)
17307 # if TK_HEX_VERSION < 0x0805020c
17308 # error "Tk older than 8.5.12 not supported"
17309 # endif
17310 #endif
17311 #if (TCL_MAJOR_VERSION < 8) || \
17312 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
17313 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
17314 # error "Tcl older than 8.5.12 not supported"
17315 #endif
17316 #if (TK_MAJOR_VERSION < 8) || \
17317 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
17318 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
17319 # error "Tk older than 8.5.12 not supported"
17320 #endif
17321
17322 int
17323 main (void)
17324 {
17325
17326 Tcl_Init(NULL);
17327 Tk_Init(NULL);
17328
17329 ;
17330 return 0;
17331 }
17332
17333 _ACEOF
17334 if ac_fn_c_try_link "$LINENO"
17335 then :
17336
17337 have_tcltk=yes
17338 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1"
17339
17340 else case e in #(
17341 e)
17342 have_tcltk=no
17343 ;;
17344 esac
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17347 conftest$ac_exeext conftest.$ac_ext
17348
17349 CFLAGS=$save_CFLAGS
17350 CPPFLAGS=$save_CPPFLAGS
17351 LDFLAGS=$save_LDFLAGS
17352 LIBS=$save_LIBS
17353
17354
17355
17356
17357
17358 save_CFLAGS=$CFLAGS
17359 save_CPPFLAGS=$CPPFLAGS
17360 save_LDFLAGS=$LDFLAGS
17361 save_LIBS=$LIBS
17362
17363
17364 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS"
17365 LIBS="$LIBS $GDBM_LIBS"
17366 for ac_header in gdbm.h
17367 do :
17368 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
17369 if test "x$ac_cv_header_gdbm_h" = xyes
17370 then :
17371 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
17372
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
17374 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
17375 if test ${ac_cv_lib_gdbm_gdbm_open+y}
17376 then :
17377 printf %s "(cached) " >&6
17378 else case e in #(
17379 e) ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-lgdbm $LIBS"
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply.
17387 The 'extern "C"' is for builds by C++ compilers;
17388 although this is not generally supported in C code supporting it here
17389 has little cost and some practical benefit (sr 110532). */
17390 #ifdef __cplusplus
17391 extern "C"
17392 #endif
17393 char gdbm_open (void);
17394 int
17395 main (void)
17396 {
17397 return gdbm_open ();
17398 ;
17399 return 0;
17400 }
17401 _ACEOF
17402 if ac_fn_c_try_link "$LINENO"
17403 then :
17404 ac_cv_lib_gdbm_gdbm_open=yes
17405 else case e in #(
17406 e) ac_cv_lib_gdbm_gdbm_open=no ;;
17407 esac
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS ;;
17412 esac
17413 fi
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
17415 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
17416 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
17417 then :
17418
17419 have_gdbm=yes
17420 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"}
17421
17422 else case e in #(
17423 e) have_gdbm=no ;;
17424 esac
17425 fi
17426
17427
17428 else case e in #(
17429 e) have_gdbm=no ;;
17430 esac
17431 fi
17432
17433 done
17434
17435 CFLAGS=$save_CFLAGS
17436 CPPFLAGS=$save_CPPFLAGS
17437 LDFLAGS=$save_LDFLAGS
17438 LIBS=$save_LIBS
17439
17440
17441
17442 for ac_header in ndbm.h
17443 do :
17444 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
17445 if test "x$ac_cv_header_ndbm_h" = xyes
17446 then :
17447 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
17448
17449 save_CFLAGS=$CFLAGS
17450 save_CPPFLAGS=$CPPFLAGS
17451 save_LDFLAGS=$LDFLAGS
17452 save_LIBS=$LIBS
17453
17454
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
17456 printf %s "checking for library containing dbm_open... " >&6; }
17457 if test ${ac_cv_search_dbm_open+y}
17458 then :
17459 printf %s "(cached) " >&6
17460 else case e in #(
17461 e) ac_func_search_save_LIBS=$LIBS
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17464
17465 /* Override any GCC internal prototype to avoid an error.
17466 Use char because int might match the return type of a GCC
17467 builtin and then its argument prototype would still apply.
17468 The 'extern "C"' is for builds by C++ compilers;
17469 although this is not generally supported in C code supporting it here
17470 has little cost and some practical benefit (sr 110532). */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 char dbm_open (void);
17475 int
17476 main (void)
17477 {
17478 return dbm_open ();
17479 ;
17480 return 0;
17481 }
17482 _ACEOF
17483 for ac_lib in '' ndbm gdbm_compat
17484 do
17485 if test -z "$ac_lib"; then
17486 ac_res="none required"
17487 else
17488 ac_res=-l$ac_lib
17489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17490 fi
17491 if ac_fn_c_try_link "$LINENO"
17492 then :
17493 ac_cv_search_dbm_open=$ac_res
17494 fi
17495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17496 conftest$ac_exeext
17497 if test ${ac_cv_search_dbm_open+y}
17498 then :
17499 break
17500 fi
17501 done
17502 if test ${ac_cv_search_dbm_open+y}
17503 then :
17504
17505 else case e in #(
17506 e) ac_cv_search_dbm_open=no ;;
17507 esac
17508 fi
17509 rm conftest.$ac_ext
17510 LIBS=$ac_func_search_save_LIBS ;;
17511 esac
17512 fi
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
17514 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
17515 ac_res=$ac_cv_search_dbm_open
17516 if test "$ac_res" != no
17517 then :
17518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17519
17520 fi
17521
17522
17523 CFLAGS=$save_CFLAGS
17524 CPPFLAGS=$save_CPPFLAGS
17525 LDFLAGS=$save_LDFLAGS
17526 LIBS=$save_LIBS
17527
17528
17529
17530 fi
17531
17532 done
17533
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
17535 printf %s "checking for ndbm presence and linker args... " >&6; }
17536 case $ac_cv_search_dbm_open in #(
17537 *ndbm*|*gdbm_compat*) :
17538
17539 dbm_ndbm="$ac_cv_search_dbm_open"
17540 have_ndbm=yes
17541 ;; #(
17542 none*) :
17543
17544 dbm_ndbm=""
17545 have_ndbm=yes
17546 ;; #(
17547 no) :
17548 have_ndbm=no
17549 ;; #(
17550 *) :
17551 ;;
17552 esac
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
17554 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
17555
17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm/ndbm.h" >&5
17557 printf %s "checking for gdbm/ndbm.h... " >&6; }
17558 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
17559 then :
17560 printf %s "(cached) " >&6
17561 else case e in #(
17562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 #include <gdbm/ndbm.h>
17565 _ACEOF
17566 if ac_fn_c_try_cpp "$LINENO"
17567 then :
17568 ac_cv_header_gdbm_slash_ndbm_h=yes
17569 else case e in #(
17570 e) ac_cv_header_gdbm_slash_ndbm_h=no ;;
17571 esac
17572 fi
17573 rm -f conftest.err conftest.i conftest.$ac_ext ;;
17574 esac
17575 fi
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_gdbm_slash_ndbm_h" >&5
17577 printf "%s\n" "$ac_cv_header_gdbm_slash_ndbm_h" >&6; }
17578 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
17579 then :
17580
17581
17582 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
17583
17584
17585 fi
17586
17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm-ndbm.h" >&5
17588 printf %s "checking for gdbm-ndbm.h... " >&6; }
17589 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
17590 then :
17591 printf %s "(cached) " >&6
17592 else case e in #(
17593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17595 #include <gdbm-ndbm.h>
17596 _ACEOF
17597 if ac_fn_c_try_cpp "$LINENO"
17598 then :
17599 ac_cv_header_gdbm_dash_ndbm_h=yes
17600 else case e in #(
17601 e) ac_cv_header_gdbm_dash_ndbm_h=no ;;
17602 esac
17603 fi
17604 rm -f conftest.err conftest.i conftest.$ac_ext ;;
17605 esac
17606 fi
17607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_gdbm_dash_ndbm_h" >&5
17608 printf "%s\n" "$ac_cv_header_gdbm_dash_ndbm_h" >&6; }
17609 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
17610 then :
17611
17612
17613 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
17614
17615
17616 fi
17617
17618 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
17619 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
17620 save_CFLAGS=$CFLAGS
17621 save_CPPFLAGS=$CPPFLAGS
17622 save_LDFLAGS=$LDFLAGS
17623 save_LIBS=$LIBS
17624
17625
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
17627 printf %s "checking for library containing dbm_open... " >&6; }
17628 if test ${ac_cv_search_dbm_open+y}
17629 then :
17630 printf %s "(cached) " >&6
17631 else case e in #(
17632 e) ac_func_search_save_LIBS=$LIBS
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply.
17639 The 'extern "C"' is for builds by C++ compilers;
17640 although this is not generally supported in C code supporting it here
17641 has little cost and some practical benefit (sr 110532). */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 char dbm_open (void);
17646 int
17647 main (void)
17648 {
17649 return dbm_open ();
17650 ;
17651 return 0;
17652 }
17653 _ACEOF
17654 for ac_lib in '' gdbm_compat
17655 do
17656 if test -z "$ac_lib"; then
17657 ac_res="none required"
17658 else
17659 ac_res=-l$ac_lib
17660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17661 fi
17662 if ac_fn_c_try_link "$LINENO"
17663 then :
17664 ac_cv_search_dbm_open=$ac_res
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17667 conftest$ac_exeext
17668 if test ${ac_cv_search_dbm_open+y}
17669 then :
17670 break
17671 fi
17672 done
17673 if test ${ac_cv_search_dbm_open+y}
17674 then :
17675
17676 else case e in #(
17677 e) ac_cv_search_dbm_open=no ;;
17678 esac
17679 fi
17680 rm conftest.$ac_ext
17681 LIBS=$ac_func_search_save_LIBS ;;
17682 esac
17683 fi
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
17685 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
17686 ac_res=$ac_cv_search_dbm_open
17687 if test "$ac_res" != no
17688 then :
17689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17690 have_gdbm_compat=yes
17691 else case e in #(
17692 e) have_gdbm_compat=no ;;
17693 esac
17694 fi
17695
17696
17697 CFLAGS=$save_CFLAGS
17698 CPPFLAGS=$save_CPPFLAGS
17699 LDFLAGS=$save_LDFLAGS
17700 LIBS=$save_LIBS
17701
17702
17703 fi
17704
17705 # Check for libdb >= 5 with dbm_open()
17706 # db.h re-defines the name of the function
17707 for ac_header in db.h
17708 do :
17709 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
17710 if test "x$ac_cv_header_db_h" = xyes
17711 then :
17712 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
17713
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
17715 printf %s "checking for libdb... " >&6; }
17716 if test ${ac_cv_have_libdb+y}
17717 then :
17718 printf %s "(cached) " >&6
17719 else case e in #(
17720 e)
17721 save_CFLAGS=$CFLAGS
17722 save_CPPFLAGS=$CPPFLAGS
17723 save_LDFLAGS=$LDFLAGS
17724 save_LIBS=$LIBS
17725
17726
17727 LIBS="$LIBS -ldb"
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730
17731 #define DB_DBM_HSEARCH 1
17732 #include <db.h>
17733 #if DB_VERSION_MAJOR < 5
17734 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
17735 #endif
17736
17737 int
17738 main (void)
17739 {
17740 DBM *dbm = dbm_open(NULL, 0, 0)
17741 ;
17742 return 0;
17743 }
17744
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"
17747 then :
17748 ac_cv_have_libdb=yes
17749 else case e in #(
17750 e) ac_cv_have_libdb=no ;;
17751 esac
17752 fi
17753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17754 conftest$ac_exeext conftest.$ac_ext
17755
17756 CFLAGS=$save_CFLAGS
17757 CPPFLAGS=$save_CPPFLAGS
17758 LDFLAGS=$save_LDFLAGS
17759 LIBS=$save_LIBS
17760
17761
17762 ;;
17763 esac
17764 fi
17765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
17766 printf "%s\n" "$ac_cv_have_libdb" >&6; }
17767 if test "x$ac_cv_have_libdb" = xyes
17768 then :
17769
17770
17771 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
17772
17773
17774 fi
17775
17776 fi
17777
17778 done
17779
17780 # Check for --with-dbmliborder
17781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
17782 printf %s "checking for --with-dbmliborder... " >&6; }
17783
17784 # Check whether --with-dbmliborder was given.
17785 if test ${with_dbmliborder+y}
17786 then :
17787 withval=$with_dbmliborder;
17788 else case e in #(
17789 e) with_dbmliborder=gdbm:ndbm:bdb ;;
17790 esac
17791 fi
17792
17793
17794 have_gdbm_dbmliborder=no
17795 as_save_IFS=$IFS
17796 IFS=:
17797 for db in $with_dbmliborder; do
17798 case $db in #(
17799 ndbm) :
17800 ;; #(
17801 gdbm) :
17802 have_gdbm_dbmliborder=yes ;; #(
17803 bdb) :
17804 ;; #(
17805 *) :
17806 with_dbmliborder=error
17807 ;;
17808 esac
17809 done
17810 IFS=$as_save_IFS
17811 if test "x$with_dbmliborder" = xerror
17812 then :
17813
17814 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
17815
17816 fi
17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
17818 printf "%s\n" "$with_dbmliborder" >&6; }
17819
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
17821 printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; }
17822 have_dbm=no
17823 as_save_IFS=$IFS
17824 IFS=:
17825 for db in $with_dbmliborder; do
17826 case "$db" in
17827 ndbm)
17828 if test "$have_ndbm" = yes; then
17829 DBM_CFLAGS="-DUSE_NDBM"
17830 DBM_LIBS="$dbm_ndbm"
17831 have_dbm=yes
17832 break
17833 fi
17834 ;;
17835 gdbm)
17836 if test "$have_gdbm_compat" = yes; then
17837 DBM_CFLAGS="-DUSE_GDBM_COMPAT"
17838 DBM_LIBS="-lgdbm_compat"
17839 have_dbm=yes
17840 break
17841 fi
17842 ;;
17843 bdb)
17844 if test "$ac_cv_have_libdb" = yes; then
17845 DBM_CFLAGS="-DUSE_BERKDB"
17846 DBM_LIBS="-ldb"
17847 have_dbm=yes
17848 break
17849 fi
17850 ;;
17851 esac
17852 done
17853 IFS=$as_save_IFS
17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
17855 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
17856
17857 # Templates for things AC_DEFINEd more than once.
17858 # For a single AC_DEFINE, no template is needed.
17859
17860
17861 if test "$ac_cv_pthread_is_default" = yes
17862 then
17863 # Defining _REENTRANT on system with POSIX threads should not hurt.
17864 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17865
17866 posix_threads=yes
17867 if test "$ac_sys_system" = "SunOS"; then
17868 CFLAGS="$CFLAGS -D_REENTRANT"
17869 fi
17870 elif test "$ac_cv_kpthread" = "yes"
17871 then
17872 CC="$CC -Kpthread"
17873 if test "$ac_cv_cxx_thread" = "yes"; then
17874 CXX="$CXX -Kpthread"
17875 fi
17876 posix_threads=yes
17877 elif test "$ac_cv_kthread" = "yes"
17878 then
17879 CC="$CC -Kthread"
17880 if test "$ac_cv_cxx_thread" = "yes"; then
17881 CXX="$CXX -Kthread"
17882 fi
17883 posix_threads=yes
17884 elif test "$ac_cv_pthread" = "yes"
17885 then
17886 CC="$CC -pthread"
17887 if test "$ac_cv_cxx_thread" = "yes"; then
17888 CXX="$CXX -pthread"
17889 fi
17890 posix_threads=yes
17891 else
17892 if test ! -z "$withval" -a -d "$withval"
17893 then LDFLAGS="$LDFLAGS -L$withval"
17894 fi
17895
17896 # According to the POSIX spec, a pthreads implementation must
17897 # define _POSIX_THREADS in unistd.h. Some apparently don't
17898 # (e.g. gnu pth with pthread emulation)
17899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
17900 printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; }
17901
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
17903 printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; }
17904 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
17905 then :
17906 printf %s "(cached) " >&6
17907 else case e in #(
17908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 #include <unistd.h>
17911 int
17912 main (void)
17913 {
17914
17915 #ifdef _POSIX_THREADS
17916 int ok;
17917 (void)ok;
17918 #else
17919 choke me
17920 #endif
17921
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_compile "$LINENO"
17927 then :
17928 ac_cv_defined__POSIX_THREADS_unistd_h=yes
17929 else case e in #(
17930 e) ac_cv_defined__POSIX_THREADS_unistd_h=no ;;
17931 esac
17932 fi
17933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17934 esac
17935 fi
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
17937 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
17938 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
17939 then :
17940 unistd_defines_pthreads=yes
17941 else case e in #(
17942 e) unistd_defines_pthreads=no ;;
17943 esac
17944 fi
17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
17946 printf "%s\n" "$unistd_defines_pthreads" >&6; }
17947
17948 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17949
17950 # Just looking for pthread_create in libpthread is not enough:
17951 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
17952 # So we really have to include pthread.h, and then link.
17953 _libs=$LIBS
17954 LIBS="$LIBS -lpthread"
17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17956 printf %s "checking for pthread_create in -lpthread... " >&6; }
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17959
17960 #include <stdio.h>
17961 #include <stdlib.h>
17962 #include <pthread.h>
17963
17964 void * start_routine (void *arg) { exit (0); }
17965 int
17966 main (void)
17967 {
17968
17969 pthread_create (NULL, NULL, start_routine, NULL)
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 if ac_fn_c_try_link "$LINENO"
17975 then :
17976
17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17978 printf "%s\n" "yes" >&6; }
17979 posix_threads=yes
17980
17981 else case e in #(
17982 e)
17983 LIBS=$_libs
17984 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
17985 if test "x$ac_cv_func_pthread_detach" = xyes
17986 then :
17987
17988 posix_threads=yes
17989
17990 else case e in #(
17991 e)
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
17993 printf %s "checking for pthread_create in -lpthreads... " >&6; }
17994 if test ${ac_cv_lib_pthreads_pthread_create+y}
17995 then :
17996 printf %s "(cached) " >&6
17997 else case e in #(
17998 e) ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-lpthreads $LIBS"
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply.
18006 The 'extern "C"' is for builds by C++ compilers;
18007 although this is not generally supported in C code supporting it here
18008 has little cost and some practical benefit (sr 110532). */
18009 #ifdef __cplusplus
18010 extern "C"
18011 #endif
18012 char pthread_create (void);
18013 int
18014 main (void)
18015 {
18016 return pthread_create ();
18017 ;
18018 return 0;
18019 }
18020 _ACEOF
18021 if ac_fn_c_try_link "$LINENO"
18022 then :
18023 ac_cv_lib_pthreads_pthread_create=yes
18024 else case e in #(
18025 e) ac_cv_lib_pthreads_pthread_create=no ;;
18026 esac
18027 fi
18028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18029 conftest$ac_exeext conftest.$ac_ext
18030 LIBS=$ac_check_lib_save_LIBS ;;
18031 esac
18032 fi
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
18034 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
18035 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
18036 then :
18037
18038 posix_threads=yes
18039 LIBS="$LIBS -lpthreads"
18040
18041 else case e in #(
18042 e)
18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
18044 printf %s "checking for pthread_create in -lc_r... " >&6; }
18045 if test ${ac_cv_lib_c_r_pthread_create+y}
18046 then :
18047 printf %s "(cached) " >&6
18048 else case e in #(
18049 e) ac_check_lib_save_LIBS=$LIBS
18050 LIBS="-lc_r $LIBS"
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053
18054 /* Override any GCC internal prototype to avoid an error.
18055 Use char because int might match the return type of a GCC
18056 builtin and then its argument prototype would still apply.
18057 The 'extern "C"' is for builds by C++ compilers;
18058 although this is not generally supported in C code supporting it here
18059 has little cost and some practical benefit (sr 110532). */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char pthread_create (void);
18064 int
18065 main (void)
18066 {
18067 return pthread_create ();
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"
18073 then :
18074 ac_cv_lib_c_r_pthread_create=yes
18075 else case e in #(
18076 e) ac_cv_lib_c_r_pthread_create=no ;;
18077 esac
18078 fi
18079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18080 conftest$ac_exeext conftest.$ac_ext
18081 LIBS=$ac_check_lib_save_LIBS ;;
18082 esac
18083 fi
18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
18085 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
18086 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
18087 then :
18088
18089 posix_threads=yes
18090 LIBS="$LIBS -lc_r"
18091
18092 else case e in #(
18093 e)
18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
18095 printf %s "checking for __pthread_create_system in -lpthread... " >&6; }
18096 if test ${ac_cv_lib_pthread___pthread_create_system+y}
18097 then :
18098 printf %s "(cached) " >&6
18099 else case e in #(
18100 e) ac_check_lib_save_LIBS=$LIBS
18101 LIBS="-lpthread $LIBS"
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply.
18108 The 'extern "C"' is for builds by C++ compilers;
18109 although this is not generally supported in C code supporting it here
18110 has little cost and some practical benefit (sr 110532). */
18111 #ifdef __cplusplus
18112 extern "C"
18113 #endif
18114 char __pthread_create_system (void);
18115 int
18116 main (void)
18117 {
18118 return __pthread_create_system ();
18119 ;
18120 return 0;
18121 }
18122 _ACEOF
18123 if ac_fn_c_try_link "$LINENO"
18124 then :
18125 ac_cv_lib_pthread___pthread_create_system=yes
18126 else case e in #(
18127 e) ac_cv_lib_pthread___pthread_create_system=no ;;
18128 esac
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18131 conftest$ac_exeext conftest.$ac_ext
18132 LIBS=$ac_check_lib_save_LIBS ;;
18133 esac
18134 fi
18135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
18136 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
18137 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
18138 then :
18139
18140 posix_threads=yes
18141 LIBS="$LIBS -lpthread"
18142
18143 else case e in #(
18144 e)
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
18146 printf %s "checking for pthread_create in -lcma... " >&6; }
18147 if test ${ac_cv_lib_cma_pthread_create+y}
18148 then :
18149 printf %s "(cached) " >&6
18150 else case e in #(
18151 e) ac_check_lib_save_LIBS=$LIBS
18152 LIBS="-lcma $LIBS"
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18155
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply.
18159 The 'extern "C"' is for builds by C++ compilers;
18160 although this is not generally supported in C code supporting it here
18161 has little cost and some practical benefit (sr 110532). */
18162 #ifdef __cplusplus
18163 extern "C"
18164 #endif
18165 char pthread_create (void);
18166 int
18167 main (void)
18168 {
18169 return pthread_create ();
18170 ;
18171 return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"
18175 then :
18176 ac_cv_lib_cma_pthread_create=yes
18177 else case e in #(
18178 e) ac_cv_lib_cma_pthread_create=no ;;
18179 esac
18180 fi
18181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18182 conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS ;;
18184 esac
18185 fi
18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
18187 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
18188 if test "x$ac_cv_lib_cma_pthread_create" = xyes
18189 then :
18190
18191 posix_threads=yes
18192 LIBS="$LIBS -lcma"
18193
18194 else case e in #(
18195 e)
18196 case $ac_sys_system in #(
18197 WASI) :
18198 posix_threads=stub ;; #(
18199 *) :
18200 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
18201 ;;
18202 esac
18203 ;;
18204 esac
18205 fi
18206 ;;
18207 esac
18208 fi
18209 ;;
18210 esac
18211 fi
18212 ;;
18213 esac
18214 fi
18215 ;;
18216 esac
18217 fi
18218 ;;
18219 esac
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18222 conftest$ac_exeext conftest.$ac_ext
18223
18224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
18225 printf %s "checking for usconfig in -lmpc... " >&6; }
18226 if test ${ac_cv_lib_mpc_usconfig+y}
18227 then :
18228 printf %s "(cached) " >&6
18229 else case e in #(
18230 e) ac_check_lib_save_LIBS=$LIBS
18231 LIBS="-lmpc $LIBS"
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234
18235 /* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply.
18238 The 'extern "C"' is for builds by C++ compilers;
18239 although this is not generally supported in C code supporting it here
18240 has little cost and some practical benefit (sr 110532). */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char usconfig (void);
18245 int
18246 main (void)
18247 {
18248 return usconfig ();
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_link "$LINENO"
18254 then :
18255 ac_cv_lib_mpc_usconfig=yes
18256 else case e in #(
18257 e) ac_cv_lib_mpc_usconfig=no ;;
18258 esac
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18261 conftest$ac_exeext conftest.$ac_ext
18262 LIBS=$ac_check_lib_save_LIBS ;;
18263 esac
18264 fi
18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
18266 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
18267 if test "x$ac_cv_lib_mpc_usconfig" = xyes
18268 then :
18269
18270 LIBS="$LIBS -lmpc"
18271
18272 fi
18273
18274
18275 fi
18276
18277 if test "$posix_threads" = "yes"; then
18278 if test "$unistd_defines_pthreads" = "no"; then
18279
18280 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
18281
18282 fi
18283
18284 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
18285 case $ac_sys_system/$ac_sys_release in
18286 SunOS/5.6)
18287 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
18288
18289 ;;
18290 SunOS/5.8)
18291 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18292
18293 ;;
18294 AIX/*)
18295 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18296
18297 ;;
18298 NetBSD/*)
18299 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18300
18301 ;;
18302 esac
18303
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
18305 printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
18306 if test ${ac_cv_pthread_system_supported+y}
18307 then :
18308 printf %s "(cached) " >&6
18309 else case e in #(
18310 e) if test "$cross_compiling" = yes
18311 then :
18312 ac_cv_pthread_system_supported=no
18313 else case e in #(
18314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316
18317 #include <stdio.h>
18318 #include <pthread.h>
18319 void *foo(void *parm) {
18320 return NULL;
18321 }
18322 int main(void) {
18323 pthread_attr_t attr;
18324 pthread_t id;
18325 if (pthread_attr_init(&attr)) return (-1);
18326 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
18327 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
18328 return (0);
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_run "$LINENO"
18332 then :
18333 ac_cv_pthread_system_supported=yes
18334 else case e in #(
18335 e) ac_cv_pthread_system_supported=no ;;
18336 esac
18337 fi
18338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18339 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18340 esac
18341 fi
18342
18343 ;;
18344 esac
18345 fi
18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
18347 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
18348 if test "$ac_cv_pthread_system_supported" = "yes"; then
18349
18350 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
18351
18352 fi
18353
18354 for ac_func in pthread_sigmask
18355 do :
18356 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
18357 if test "x$ac_cv_func_pthread_sigmask" = xyes
18358 then :
18359 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
18360 case $ac_sys_system in
18361 CYGWIN*)
18362
18363 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
18364
18365 ;;
18366 esac
18367 fi
18368
18369 done
18370 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
18371 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
18372 then :
18373 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
18374
18375 fi
18376
18377 fi
18378
18379 if test "x$posix_threads" = xstub
18380 then :
18381
18382
18383 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
18384
18385
18386 fi
18387
18388 # Check for enable-ipv6
18389
18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
18391 printf %s "checking if --enable-ipv6 is specified... " >&6; }
18392 # Check whether --enable-ipv6 was given.
18393 if test ${enable_ipv6+y}
18394 then :
18395 enableval=$enable_ipv6; case "$enableval" in
18396 no)
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18398 printf "%s\n" "no" >&6; }
18399 ipv6=no
18400 ;;
18401 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18402 printf "%s\n" "yes" >&6; }
18403 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
18404
18405 ipv6=yes
18406 ;;
18407 esac
18408 else case e in #(
18409 e)
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 /* AF_INET6 available check */
18413 #include <sys/types.h>
18414 #include <sys/socket.h>
18415 int
18416 main (void)
18417 {
18418 int domain = AF_INET6;
18419 ;
18420 return 0;
18421 }
18422 _ACEOF
18423 if ac_fn_c_try_compile "$LINENO"
18424 then :
18425
18426 ipv6=yes
18427
18428 else case e in #(
18429 e)
18430 ipv6=no
18431 ;;
18432 esac
18433 fi
18434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18435
18436 case $ac_sys_system in #(
18437 WASI) :
18438 ipv6=no
18439 ;; #(
18440 *) :
18441 ;;
18442 esac
18443
18444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
18445 printf "%s\n" "$ipv6" >&6; }
18446
18447 if test "$ipv6" = "yes"; then
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
18449 printf %s "checking if RFC2553 API is available... " >&6; }
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452
18453 #include <sys/types.h>
18454 #include <netinet/in.h>
18455 int
18456 main (void)
18457 {
18458 struct sockaddr_in6 x;
18459 x.sin6_scope_id;
18460 ;
18461 return 0;
18462 }
18463
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"
18466 then :
18467
18468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18469 printf "%s\n" "yes" >&6; }
18470 ipv6=yes
18471
18472 else case e in #(
18473 e)
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 printf "%s\n" "no" >&6; }
18476 ipv6=no
18477 ;;
18478 esac
18479 fi
18480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18481 fi
18482
18483 if test "$ipv6" = "yes"; then
18484 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
18485
18486 fi
18487 ;;
18488 esac
18489 fi
18490
18491
18492 ipv6type=unknown
18493 ipv6lib=none
18494 ipv6trylibc=no
18495
18496 if test "$ipv6" = yes -a "$cross_compiling" = no; then
18497 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
18498 do
18499 case $i in
18500 inria)
18501
18502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
18503 printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
18504 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
18505 then :
18506 printf %s "(cached) " >&6
18507 else case e in #(
18508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18510 #include <netinet/in.h>
18511 int
18512 main (void)
18513 {
18514
18515 #ifdef IPV6_INRIA_VERSION
18516 int ok;
18517 (void)ok;
18518 #else
18519 choke me
18520 #endif
18521
18522 ;
18523 return 0;
18524 }
18525 _ACEOF
18526 if ac_fn_c_try_compile "$LINENO"
18527 then :
18528 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes
18529 else case e in #(
18530 e) ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no ;;
18531 esac
18532 fi
18533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18534 esac
18535 fi
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
18537 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
18538 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
18539 then :
18540 ipv6type=$i
18541 fi
18542 ;;
18543 kame)
18544
18545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
18546 printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; }
18547 if test ${ac_cv_defined___KAME___netinet_in_h+y}
18548 then :
18549 printf %s "(cached) " >&6
18550 else case e in #(
18551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18552 /* end confdefs.h. */
18553 #include <netinet/in.h>
18554 int
18555 main (void)
18556 {
18557
18558 #ifdef __KAME__
18559 int ok;
18560 (void)ok;
18561 #else
18562 choke me
18563 #endif
18564
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 if ac_fn_c_try_compile "$LINENO"
18570 then :
18571 ac_cv_defined___KAME___netinet_in_h=yes
18572 else case e in #(
18573 e) ac_cv_defined___KAME___netinet_in_h=no ;;
18574 esac
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18577 esac
18578 fi
18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
18580 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
18581 if test $ac_cv_defined___KAME___netinet_in_h != "no"
18582 then :
18583 ipv6type=$i
18584 ipv6lib=inet6
18585 ipv6libdir=/usr/local/v6/lib
18586 ipv6trylibc=yes
18587 fi
18588 ;;
18589 linux-glibc)
18590
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
18592 printf %s "checking for __GLIBC__ defined in features.h... " >&6; }
18593 if test ${ac_cv_defined___GLIBC___features_h+y}
18594 then :
18595 printf %s "(cached) " >&6
18596 else case e in #(
18597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598 /* end confdefs.h. */
18599 #include <features.h>
18600 int
18601 main (void)
18602 {
18603
18604 #ifdef __GLIBC__
18605 int ok;
18606 (void)ok;
18607 #else
18608 choke me
18609 #endif
18610
18611 ;
18612 return 0;
18613 }
18614 _ACEOF
18615 if ac_fn_c_try_compile "$LINENO"
18616 then :
18617 ac_cv_defined___GLIBC___features_h=yes
18618 else case e in #(
18619 e) ac_cv_defined___GLIBC___features_h=no ;;
18620 esac
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18623 esac
18624 fi
18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
18626 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
18627 if test $ac_cv_defined___GLIBC___features_h != "no"
18628 then :
18629 ipv6type=$i
18630 ipv6trylibc=yes
18631 fi
18632 ;;
18633 linux-inet6)
18634 if test -d /usr/inet6; then
18635 ipv6type=$i
18636 ipv6lib=inet6
18637 ipv6libdir=/usr/inet6/lib
18638 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
18639 fi
18640 ;;
18641 solaris)
18642 if test -f /etc/netconfig; then
18643 if $GREP -q tcp6 /etc/netconfig; then
18644 ipv6type=$i
18645 ipv6trylibc=yes
18646 fi
18647 fi
18648 ;;
18649 toshiba)
18650
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
18652 printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
18653 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
18654 then :
18655 printf %s "(cached) " >&6
18656 else case e in #(
18657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18659 #include <sys/param.h>
18660 int
18661 main (void)
18662 {
18663
18664 #ifdef _TOSHIBA_INET6
18665 int ok;
18666 (void)ok;
18667 #else
18668 choke me
18669 #endif
18670
18671 ;
18672 return 0;
18673 }
18674 _ACEOF
18675 if ac_fn_c_try_compile "$LINENO"
18676 then :
18677 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes
18678 else case e in #(
18679 e) ac_cv_defined__TOSHIBA_INET6_sys_param_h=no ;;
18680 esac
18681 fi
18682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18683 esac
18684 fi
18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
18686 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
18687 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
18688 then :
18689 ipv6type=$i
18690 ipv6lib=inet6
18691 ipv6libdir=/usr/local/v6/lib
18692 fi
18693 ;;
18694 v6d)
18695
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
18697 printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
18698 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
18699 then :
18700 printf %s "(cached) " >&6
18701 else case e in #(
18702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 #include </usr/local/v6/include/sys/v6config.h>
18705 int
18706 main (void)
18707 {
18708
18709 #ifdef __V6D__
18710 int ok;
18711 (void)ok;
18712 #else
18713 choke me
18714 #endif
18715
18716 ;
18717 return 0;
18718 }
18719 _ACEOF
18720 if ac_fn_c_try_compile "$LINENO"
18721 then :
18722 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes
18723 else case e in #(
18724 e) ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no ;;
18725 esac
18726 fi
18727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18728 esac
18729 fi
18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
18731 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
18732 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
18733 then :
18734 ipv6type=$i
18735 ipv6lib=v6
18736 ipv6libdir=/usr/local/v6/lib
18737 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
18738 fi
18739 ;;
18740 zeta)
18741
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
18743 printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
18744 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
18745 then :
18746 printf %s "(cached) " >&6
18747 else case e in #(
18748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750 #include <sys/param.h>
18751 int
18752 main (void)
18753 {
18754
18755 #ifdef _ZETA_MINAMI_INET6
18756 int ok;
18757 (void)ok;
18758 #else
18759 choke me
18760 #endif
18761
18762 ;
18763 return 0;
18764 }
18765 _ACEOF
18766 if ac_fn_c_try_compile "$LINENO"
18767 then :
18768 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes
18769 else case e in #(
18770 e) ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no ;;
18771 esac
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18774 esac
18775 fi
18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
18777 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
18778 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
18779 then :
18780 ipv6type=$i
18781 ipv6lib=inet6
18782 ipv6libdir=/usr/local/v6/lib
18783 fi
18784 ;;
18785 esac
18786 if test "$ipv6type" != "unknown"; then
18787 break
18788 fi
18789 done
18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
18791 printf %s "checking ipv6 stack type... " >&6; }
18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
18793 printf "%s\n" "$ipv6type" >&6; }
18794 fi
18795
18796 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
18798 printf %s "checking ipv6 library... " >&6; }
18799 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
18800 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
18802 printf "%s\n" "lib$ipv6lib" >&6; }
18803 else
18804 if test "x$ipv6trylibc" = xyes
18805 then :
18806
18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
18808 printf "%s\n" "libc" >&6; }
18809
18810 else case e in #(
18811 e)
18812 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
18813 ;;
18814 esac
18815 fi
18816 fi
18817 fi
18818
18819
18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
18821 printf %s "checking CAN_RAW_FD_FRAMES... " >&6; }
18822 if test ${ac_cv_can_raw_fd_frames+y}
18823 then :
18824 printf %s "(cached) " >&6
18825 else case e in #(
18826 e)
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829 /* CAN_RAW_FD_FRAMES available check */
18830 #include <linux/can/raw.h>
18831 int
18832 main (void)
18833 {
18834 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
18835 ;
18836 return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_compile "$LINENO"
18840 then :
18841 ac_cv_can_raw_fd_frames=yes
18842 else case e in #(
18843 e) ac_cv_can_raw_fd_frames=no ;;
18844 esac
18845 fi
18846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18847 ;;
18848 esac
18849 fi
18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
18851 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
18852 if test "x$ac_cv_can_raw_fd_frames" = xyes
18853 then :
18854
18855
18856 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
18857
18858
18859 fi
18860
18861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
18862 printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
18863 if test ${ac_cv_can_raw_join_filters+y}
18864 then :
18865 printf %s "(cached) " >&6
18866 else case e in #(
18867 e)
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18870
18871 #include <linux/can/raw.h>
18872 int
18873 main (void)
18874 {
18875 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
18876 ;
18877 return 0;
18878 }
18879 _ACEOF
18880 if ac_fn_c_try_compile "$LINENO"
18881 then :
18882 ac_cv_can_raw_join_filters=yes
18883 else case e in #(
18884 e) ac_cv_can_raw_join_filters=no ;;
18885 esac
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18888 ;;
18889 esac
18890 fi
18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
18892 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
18893 if test "x$ac_cv_can_raw_join_filters" = xyes
18894 then :
18895
18896
18897 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
18898
18899
18900 fi
18901
18902 # Check for --with-doc-strings
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
18904 printf %s "checking for --with-doc-strings... " >&6; }
18905
18906 # Check whether --with-doc-strings was given.
18907 if test ${with_doc_strings+y}
18908 then :
18909 withval=$with_doc_strings;
18910 fi
18911
18912
18913 if test -z "$with_doc_strings"
18914 then with_doc_strings="yes"
18915 fi
18916 if test "$with_doc_strings" != "no"
18917 then
18918
18919 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
18920
18921 fi
18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
18923 printf "%s\n" "$with_doc_strings" >&6; }
18924
18925 # Check for stdatomic.h, required for mimalloc.
18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
18927 printf %s "checking for stdatomic.h... " >&6; }
18928 if test ${ac_cv_header_stdatomic_h+y}
18929 then :
18930 printf %s "(cached) " >&6
18931 else case e in #(
18932 e)
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18935
18936
18937 #include <stdatomic.h>
18938 atomic_int int_var;
18939 atomic_uintptr_t uintptr_var;
18940 int main() {
18941 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
18942 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
18943 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
18944 return 0;
18945 }
18946
18947
18948 _ACEOF
18949 if ac_fn_c_try_link "$LINENO"
18950 then :
18951 ac_cv_header_stdatomic_h=yes
18952 else case e in #(
18953 e) ac_cv_header_stdatomic_h=no ;;
18954 esac
18955 fi
18956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18957 conftest$ac_exeext conftest.$ac_ext
18958 ;;
18959 esac
18960 fi
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
18962 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
18963
18964 if test "x$ac_cv_header_stdatomic_h" = xyes
18965 then :
18966
18967
18968 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
18969
18970
18971 fi
18972
18973 # Check for GCC >= 4.7 and clang __atomic builtin functions
18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
18975 printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
18976 if test ${ac_cv_builtin_atomic+y}
18977 then :
18978 printf %s "(cached) " >&6
18979 else case e in #(
18980 e)
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18983
18984
18985 int val;
18986 int main() {
18987 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
18988 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
18989 return 0;
18990 }
18991
18992
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"
18995 then :
18996 ac_cv_builtin_atomic=yes
18997 else case e in #(
18998 e) ac_cv_builtin_atomic=no ;;
18999 esac
19000 fi
19001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19002 conftest$ac_exeext conftest.$ac_ext
19003 ;;
19004 esac
19005 fi
19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
19007 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
19008
19009 if test "x$ac_cv_builtin_atomic" = xyes
19010 then :
19011
19012
19013 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
19014
19015
19016 fi
19017
19018 # --with-mimalloc
19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
19020 printf %s "checking for --with-mimalloc... " >&6; }
19021
19022 # Check whether --with-mimalloc was given.
19023 if test ${with_mimalloc+y}
19024 then :
19025 withval=$with_mimalloc;
19026 else case e in #(
19027 e) with_mimalloc="$ac_cv_header_stdatomic_h"
19028 ;;
19029 esac
19030 fi
19031
19032
19033 if test "$with_mimalloc" != no; then
19034 if test "$ac_cv_header_stdatomic_h" != yes; then
19035 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
19036 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
19037 fi
19038 with_mimalloc=yes
19039
19040 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
19041
19042 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)'
19043
19044 elif test "$disable_gil" = "yes"; then
19045 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
19046 fi
19047
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
19049 printf "%s\n" "$with_mimalloc" >&6; }
19050 INSTALL_MIMALLOC=$with_mimalloc
19051
19052
19053
19054 # Check for Python-specific malloc support
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
19056 printf %s "checking for --with-pymalloc... " >&6; }
19057
19058 # Check whether --with-pymalloc was given.
19059 if test ${with_pymalloc+y}
19060 then :
19061 withval=$with_pymalloc;
19062 fi
19063
19064
19065 if test -z "$with_pymalloc"
19066 then
19067 case $ac_sys_system in #(
19068 Emscripten) :
19069 with_pymalloc="no" ;; #(
19070 WASI) :
19071 with_pymalloc="no" ;; #(
19072 *) :
19073 with_pymalloc="yes"
19074 ;;
19075 esac
19076 fi
19077 if test "$with_pymalloc" != "no"
19078 then
19079
19080 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
19081
19082 fi
19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
19084 printf "%s\n" "$with_pymalloc" >&6; }
19085
19086 # Check for --with-c-locale-coercion
19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
19088 printf %s "checking for --with-c-locale-coercion... " >&6; }
19089
19090 # Check whether --with-c-locale-coercion was given.
19091 if test ${with_c_locale_coercion+y}
19092 then :
19093 withval=$with_c_locale_coercion;
19094 fi
19095
19096
19097 if test -z "$with_c_locale_coercion"
19098 then
19099 with_c_locale_coercion="yes"
19100 fi
19101 if test "$with_c_locale_coercion" != "no"
19102 then
19103
19104 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
19105
19106 fi
19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
19108 printf "%s\n" "$with_c_locale_coercion" >&6; }
19109
19110 # Check for Valgrind support
19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
19112 printf %s "checking for --with-valgrind... " >&6; }
19113
19114 # Check whether --with-valgrind was given.
19115 if test ${with_valgrind+y}
19116 then :
19117 withval=$with_valgrind;
19118 else case e in #(
19119 e) with_valgrind=no
19120 ;;
19121 esac
19122 fi
19123
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
19125 printf "%s\n" "$with_valgrind" >&6; }
19126 if test "$with_valgrind" != no; then
19127 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
19128 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
19129 then :
19130
19131 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
19132
19133 else case e in #(
19134 e) as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
19135 ;;
19136 esac
19137 fi
19138
19139 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
19140 fi
19141
19142 # Check for DTrace support
19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
19144 printf %s "checking for --with-dtrace... " >&6; }
19145
19146 # Check whether --with-dtrace was given.
19147 if test ${with_dtrace+y}
19148 then :
19149 withval=$with_dtrace;
19150 else case e in #(
19151 e) with_dtrace=no ;;
19152 esac
19153 fi
19154
19155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
19156 printf "%s\n" "$with_dtrace" >&6; }
19157
19158
19159
19160
19161
19162 DTRACE=
19163 DTRACE_HEADERS=
19164 DTRACE_OBJS=
19165
19166 if test "$with_dtrace" = "yes"
19167 then
19168 # Extract the first word of "dtrace", so it can be a program name with args.
19169 set dummy dtrace; ac_word=$2
19170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19171 printf %s "checking for $ac_word... " >&6; }
19172 if test ${ac_cv_path_DTRACE+y}
19173 then :
19174 printf %s "(cached) " >&6
19175 else case e in #(
19176 e) case $DTRACE in
19177 [\\/]* | ?:[\\/]*)
19178 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
19179 ;;
19180 *)
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184 IFS=$as_save_IFS
19185 case $as_dir in #(((
19186 '') as_dir=./ ;;
19187 */) ;;
19188 *) as_dir=$as_dir/ ;;
19189 esac
19190 for ac_exec_ext in '' $ac_executable_extensions; do
19191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19192 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
19193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19194 break 2
19195 fi
19196 done
19197 done
19198 IFS=$as_save_IFS
19199
19200 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
19201 ;;
19202 esac ;;
19203 esac
19204 fi
19205 DTRACE=$ac_cv_path_DTRACE
19206 if test -n "$DTRACE"; then
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
19208 printf "%s\n" "$DTRACE" >&6; }
19209 else
19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211 printf "%s\n" "no" >&6; }
19212 fi
19213
19214
19215 if test "$DTRACE" = "not found"; then
19216 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
19217 fi
19218
19219 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
19220
19221 DTRACE_HEADERS="Include/pydtrace_probes.h"
19222
19223 # On OS X, DTrace providers do not need to be explicitly compiled and
19224 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
19225 # generation flag '-G'. We check for presence of this flag, rather than
19226 # hardcoding support by OS, in the interest of robustness.
19227 #
19228 # NetBSD DTrace requires the -x nolibs flag to avoid system library conflicts
19229 # and uses header generation for testing instead of object generation.
19230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
19231 printf %s "checking whether DTrace probes require linking... " >&6; }
19232 if test ${ac_cv_dtrace_link+y}
19233 then :
19234 printf %s "(cached) " >&6
19235 else case e in #(
19236 e)
19237 ac_cv_dtrace_link=no
19238 echo 'BEGIN{}' > conftest.d
19239 case $host in
19240 *netbsd*)
19241 DTRACE_TEST_FLAGS="-x nolibs -h"
19242 ;;
19243 *)
19244 DTRACE_TEST_FLAGS="-G"
19245 ;;
19246 esac
19247 "$DTRACE" $DFLAGS $DTRACE_TEST_FLAGS -s conftest.d -o conftest.o > /dev/null 2>&1 && \
19248 ac_cv_dtrace_link=yes
19249 ;;
19250 esac
19251 fi
19252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
19253 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
19254 if test "$ac_cv_dtrace_link" = "yes"; then
19255 DTRACE_OBJS="Python/pydtrace.o"
19256 fi
19257 # Set NetBSD-specific DTrace flags in DFLAGS
19258 case $host in
19259 *netbsd*)
19260 DFLAGS="$DFLAGS -x nolibs"
19261 ;;
19262 esac
19263 fi
19264
19265 PLATFORM_HEADERS=
19266 PLATFORM_OBJS=
19267
19268 case $ac_sys_system in #(
19269 Emscripten) :
19270
19271 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o Python/emscripten_trampoline_wasm.o Python/emscripten_syscalls.o'
19272 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
19273 ;; #(
19274 *) :
19275 ;;
19276 esac
19277
19278
19279
19280 # -I${DLINCLDIR} is added to the compile rule for importdl.o
19281
19282 DLINCLDIR=.
19283
19284 # the dlopen() function means we might want to use dynload_shlib.o. some
19285 # platforms have dlopen(), but don't want to use it.
19286 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19287 if test "x$ac_cv_func_dlopen" = xyes
19288 then :
19289 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
19290
19291 fi
19292
19293
19294 # Used by ctypes.util.dllist().
19295 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
19296 if test "x$ac_cv_func_dl_iterate_phdr" = xyes
19297 then :
19298 printf "%s\n" "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
19299
19300 fi
19301
19302
19303 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
19304 # loading of modules.
19305
19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
19307 printf %s "checking DYNLOADFILE... " >&6; }
19308 if test -z "$DYNLOADFILE"
19309 then
19310 case $ac_sys_system/$ac_sys_release in
19311 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
19312 *)
19313 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
19314 # out any dynamic loading
19315 if test "$ac_cv_func_dlopen" = yes
19316 then DYNLOADFILE="dynload_shlib.o"
19317 else DYNLOADFILE="dynload_stub.o"
19318 fi
19319 ;;
19320 esac
19321 fi
19322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
19323 printf "%s\n" "$DYNLOADFILE" >&6; }
19324 if test "$DYNLOADFILE" != "dynload_stub.o"
19325 then
19326
19327 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
19328
19329 fi
19330
19331 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
19332
19333
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
19335 printf %s "checking MACHDEP_OBJS... " >&6; }
19336 if test -z "$MACHDEP_OBJS"
19337 then
19338 MACHDEP_OBJS=$extra_machdep_objs
19339 else
19340 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
19341 fi
19342 if test -z "$MACHDEP_OBJS"; then
19343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
19344 printf "%s\n" "none" >&6; }
19345 else
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
19347 printf "%s\n" "$MACHDEP_OBJS" >&6; }
19348 fi
19349
19350 if test "$ac_sys_system" = "Linux-android"; then
19351 # When these functions are used in an unprivileged process, they crash rather
19352 # than returning an error.
19353 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname
19354 setregid setresgid setresuid setreuid setuid"
19355
19356 # These functions are unimplemented and always return an error
19357 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
19358 blocked_funcs="$blocked_funcs sem_open sem_unlink"
19359
19360 # Before API level 23, when fchmodat is called with the unimplemented flag
19361 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
19362 # follows the symlink.
19363 if test "$ANDROID_API_LEVEL" -lt 23; then
19364 blocked_funcs="$blocked_funcs fchmodat"
19365 fi
19366
19367 for name in $blocked_funcs; do
19368 as_func_var=`printf "%s\n" "ac_cv_func_$name" | sed "$as_sed_sh"`
19369
19370 eval "$as_func_var=no"
19371
19372 done
19373 fi
19374
19375 # checks for library functions
19376 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
19377 if test "x$ac_cv_func_accept4" = xyes
19378 then :
19379 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
19380
19381 fi
19382 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
19383 if test "x$ac_cv_func_alarm" = xyes
19384 then :
19385 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
19386
19387 fi
19388 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19389 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
19390 then :
19391 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
19392
19393 fi
19394 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
19395 if test "x$ac_cv_func_chmod" = xyes
19396 then :
19397 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
19398
19399 fi
19400 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
19401 if test "x$ac_cv_func_chown" = xyes
19402 then :
19403 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
19404
19405 fi
19406 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
19407 if test "x$ac_cv_func_clock" = xyes
19408 then :
19409 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
19410
19411 fi
19412 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
19413 if test "x$ac_cv_func_closefrom" = xyes
19414 then :
19415 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
19416
19417 fi
19418 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
19419 if test "x$ac_cv_func_close_range" = xyes
19420 then :
19421 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
19422
19423 fi
19424 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
19425 if test "x$ac_cv_func_confstr" = xyes
19426 then :
19427 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
19428
19429 fi
19430 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
19431 if test "x$ac_cv_func_copy_file_range" = xyes
19432 then :
19433 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
19434
19435 fi
19436 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
19437 if test "x$ac_cv_func_ctermid" = xyes
19438 then :
19439 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
19440
19441 fi
19442 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
19443 if test "x$ac_cv_func_dladdr" = xyes
19444 then :
19445 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
19446
19447 fi
19448 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
19449 if test "x$ac_cv_func_dup" = xyes
19450 then :
19451 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
19452
19453 fi
19454 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
19455 if test "x$ac_cv_func_execv" = xyes
19456 then :
19457 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
19458
19459 fi
19460 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
19461 if test "x$ac_cv_func_explicit_bzero" = xyes
19462 then :
19463 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
19464
19465 fi
19466 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
19467 if test "x$ac_cv_func_explicit_memset" = xyes
19468 then :
19469 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
19470
19471 fi
19472 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
19473 if test "x$ac_cv_func_faccessat" = xyes
19474 then :
19475 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
19476
19477 fi
19478 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
19479 if test "x$ac_cv_func_fchmod" = xyes
19480 then :
19481 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
19482
19483 fi
19484 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
19485 if test "x$ac_cv_func_fchmodat" = xyes
19486 then :
19487 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
19488
19489 fi
19490 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19491 if test "x$ac_cv_func_fchown" = xyes
19492 then :
19493 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
19494
19495 fi
19496 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
19497 if test "x$ac_cv_func_fchownat" = xyes
19498 then :
19499 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
19500
19501 fi
19502 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
19503 if test "x$ac_cv_func_fdopendir" = xyes
19504 then :
19505 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
19506
19507 fi
19508 ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
19509 if test "x$ac_cv_func_fdwalk" = xyes
19510 then :
19511 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
19512
19513 fi
19514 ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
19515 if test "x$ac_cv_func_fexecve" = xyes
19516 then :
19517 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
19518
19519 fi
19520 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19521 if test "x$ac_cv_func_fork" = xyes
19522 then :
19523 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
19524
19525 fi
19526 ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1"
19527 if test "x$ac_cv_func_fork1" = xyes
19528 then :
19529 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
19530
19531 fi
19532 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
19533 if test "x$ac_cv_func_fpathconf" = xyes
19534 then :
19535 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
19536
19537 fi
19538 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
19539 if test "x$ac_cv_func_fstatat" = xyes
19540 then :
19541 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
19542
19543 fi
19544 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
19545 if test "x$ac_cv_func_ftime" = xyes
19546 then :
19547 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
19548
19549 fi
19550 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
19551 if test "x$ac_cv_func_ftruncate" = xyes
19552 then :
19553 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
19554
19555 fi
19556 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
19557 if test "x$ac_cv_func_futimens" = xyes
19558 then :
19559 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
19560
19561 fi
19562 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
19563 if test "x$ac_cv_func_futimes" = xyes
19564 then :
19565 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
19566
19567 fi
19568 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
19569 if test "x$ac_cv_func_futimesat" = xyes
19570 then :
19571 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
19572
19573 fi
19574 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
19575 if test "x$ac_cv_func_gai_strerror" = xyes
19576 then :
19577 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
19578
19579 fi
19580 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
19581 if test "x$ac_cv_func_getegid" = xyes
19582 then :
19583 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
19584
19585 fi
19586 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19587 if test "x$ac_cv_func_geteuid" = xyes
19588 then :
19589 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
19590
19591 fi
19592 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
19593 if test "x$ac_cv_func_getgid" = xyes
19594 then :
19595 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
19596
19597 fi
19598 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
19599 if test "x$ac_cv_func_getgrent" = xyes
19600 then :
19601 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
19602
19603 fi
19604 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
19605 if test "x$ac_cv_func_getgrgid" = xyes
19606 then :
19607 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
19608
19609 fi
19610 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
19611 if test "x$ac_cv_func_getgrgid_r" = xyes
19612 then :
19613 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
19614
19615 fi
19616 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
19617 if test "x$ac_cv_func_getgrnam_r" = xyes
19618 then :
19619 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
19620
19621 fi
19622 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
19623 if test "x$ac_cv_func_getgrouplist" = xyes
19624 then :
19625 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
19626
19627 fi
19628 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
19629 if test "x$ac_cv_func_gethostname" = xyes
19630 then :
19631 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
19632
19633 fi
19634 ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer"
19635 if test "x$ac_cv_func_getitimer" = xyes
19636 then :
19637 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
19638
19639 fi
19640 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19641 if test "x$ac_cv_func_getloadavg" = xyes
19642 then :
19643 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
19644
19645 fi
19646 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
19647 if test "x$ac_cv_func_getlogin" = xyes
19648 then :
19649 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
19650
19651 fi
19652 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r"
19653 if test "x$ac_cv_func_getlogin_r" = xyes
19654 then :
19655 printf "%s\n" "#define HAVE_GETLOGIN_R 1" >>confdefs.h
19656
19657 fi
19658 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
19659 if test "x$ac_cv_func_getpeername" = xyes
19660 then :
19661 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
19662
19663 fi
19664 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
19665 if test "x$ac_cv_func_getpgid" = xyes
19666 then :
19667 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
19668
19669 fi
19670 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
19671 if test "x$ac_cv_func_getpid" = xyes
19672 then :
19673 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
19674
19675 fi
19676 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
19677 if test "x$ac_cv_func_getppid" = xyes
19678 then :
19679 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
19680
19681 fi
19682 ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority"
19683 if test "x$ac_cv_func_getpriority" = xyes
19684 then :
19685 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
19686
19687 fi
19688 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
19689 if test "x$ac_cv_func__getpty" = xyes
19690 then :
19691 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
19692
19693 fi
19694 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
19695 if test "x$ac_cv_func_getpwent" = xyes
19696 then :
19697 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
19698
19699 fi
19700 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
19701 if test "x$ac_cv_func_getpwnam_r" = xyes
19702 then :
19703 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
19704
19705 fi
19706 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
19707 if test "x$ac_cv_func_getpwuid" = xyes
19708 then :
19709 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
19710
19711 fi
19712 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
19713 if test "x$ac_cv_func_getpwuid_r" = xyes
19714 then :
19715 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
19716
19717 fi
19718 ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
19719 if test "x$ac_cv_func_getresgid" = xyes
19720 then :
19721 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
19722
19723 fi
19724 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
19725 if test "x$ac_cv_func_getresuid" = xyes
19726 then :
19727 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
19728
19729 fi
19730 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
19731 if test "x$ac_cv_func_getrusage" = xyes
19732 then :
19733 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
19734
19735 fi
19736 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
19737 if test "x$ac_cv_func_getsid" = xyes
19738 then :
19739 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
19740
19741 fi
19742 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
19743 if test "x$ac_cv_func_getspent" = xyes
19744 then :
19745 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
19746
19747 fi
19748 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
19749 if test "x$ac_cv_func_getspnam" = xyes
19750 then :
19751 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
19752
19753 fi
19754 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
19755 if test "x$ac_cv_func_getuid" = xyes
19756 then :
19757 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
19758
19759 fi
19760 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
19761 if test "x$ac_cv_func_getwd" = xyes
19762 then :
19763 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
19764
19765 fi
19766 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19767 if test "x$ac_cv_func_grantpt" = xyes
19768 then :
19769 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
19770
19771 fi
19772 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
19773 if test "x$ac_cv_func_if_nameindex" = xyes
19774 then :
19775 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
19776
19777 fi
19778 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19779 if test "x$ac_cv_func_initgroups" = xyes
19780 then :
19781 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
19782
19783 fi
19784 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
19785 if test "x$ac_cv_func_kill" = xyes
19786 then :
19787 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
19788
19789 fi
19790 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
19791 if test "x$ac_cv_func_killpg" = xyes
19792 then :
19793 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
19794
19795 fi
19796 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
19797 if test "x$ac_cv_func_lchown" = xyes
19798 then :
19799 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
19800
19801 fi
19802 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
19803 if test "x$ac_cv_func_linkat" = xyes
19804 then :
19805 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
19806
19807 fi
19808 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
19809 if test "x$ac_cv_func_lockf" = xyes
19810 then :
19811 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
19812
19813 fi
19814 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19815 if test "x$ac_cv_func_lstat" = xyes
19816 then :
19817 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
19818
19819 fi
19820 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
19821 if test "x$ac_cv_func_lutimes" = xyes
19822 then :
19823 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
19824
19825 fi
19826 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
19827 if test "x$ac_cv_func_madvise" = xyes
19828 then :
19829 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
19830
19831 fi
19832 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
19833 if test "x$ac_cv_func_mbrtowc" = xyes
19834 then :
19835 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
19836
19837 fi
19838 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
19839 if test "x$ac_cv_func_memrchr" = xyes
19840 then :
19841 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
19842
19843 fi
19844 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
19845 if test "x$ac_cv_func_mkdirat" = xyes
19846 then :
19847 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
19848
19849 fi
19850 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
19851 if test "x$ac_cv_func_mkfifo" = xyes
19852 then :
19853 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
19854
19855 fi
19856 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
19857 if test "x$ac_cv_func_mkfifoat" = xyes
19858 then :
19859 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
19860
19861 fi
19862 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
19863 if test "x$ac_cv_func_mknod" = xyes
19864 then :
19865 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
19866
19867 fi
19868 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
19869 if test "x$ac_cv_func_mknodat" = xyes
19870 then :
19871 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
19872
19873 fi
19874 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
19875 if test "x$ac_cv_func_mktime" = xyes
19876 then :
19877 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
19878
19879 fi
19880 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19881 if test "x$ac_cv_func_mmap" = xyes
19882 then :
19883 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
19884
19885 fi
19886 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
19887 if test "x$ac_cv_func_mremap" = xyes
19888 then :
19889 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
19890
19891 fi
19892 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
19893 if test "x$ac_cv_func_nice" = xyes
19894 then :
19895 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
19896
19897 fi
19898 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
19899 if test "x$ac_cv_func_openat" = xyes
19900 then :
19901 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
19902
19903 fi
19904 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
19905 if test "x$ac_cv_func_opendir" = xyes
19906 then :
19907 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
19908
19909 fi
19910 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
19911 if test "x$ac_cv_func_pathconf" = xyes
19912 then :
19913 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
19914
19915 fi
19916 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
19917 if test "x$ac_cv_func_pause" = xyes
19918 then :
19919 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
19920
19921 fi
19922 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
19923 if test "x$ac_cv_func_pipe" = xyes
19924 then :
19925 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
19926
19927 fi
19928 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
19929 if test "x$ac_cv_func_plock" = xyes
19930 then :
19931 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
19932
19933 fi
19934 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19935 if test "x$ac_cv_func_poll" = xyes
19936 then :
19937 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
19938
19939 fi
19940 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
19941 if test "x$ac_cv_func_posix_fadvise" = xyes
19942 then :
19943 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
19944
19945 fi
19946 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19947 if test "x$ac_cv_func_posix_fallocate" = xyes
19948 then :
19949 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
19950
19951 fi
19952 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
19953 if test "x$ac_cv_func_posix_openpt" = xyes
19954 then :
19955 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
19956
19957 fi
19958 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
19959 if test "x$ac_cv_func_posix_spawn" = xyes
19960 then :
19961 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
19962
19963 fi
19964 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
19965 if test "x$ac_cv_func_posix_spawnp" = xyes
19966 then :
19967 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
19968
19969 fi
19970 ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
19971 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
19972 then :
19973 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
19974
19975 fi
19976 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
19977 if test "x$ac_cv_func_pread" = xyes
19978 then :
19979 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
19980
19981 fi
19982 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
19983 if test "x$ac_cv_func_preadv" = xyes
19984 then :
19985 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
19986
19987 fi
19988 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
19989 if test "x$ac_cv_func_preadv2" = xyes
19990 then :
19991 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
19992
19993 fi
19994 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
19995 if test "x$ac_cv_func_process_vm_readv" = xyes
19996 then :
19997 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
19998
19999 fi
20000 ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
20001 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
20002 then :
20003 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
20004
20005 fi
20006 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
20007 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
20008 then :
20009 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
20010
20011 fi
20012 ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init"
20013 if test "x$ac_cv_func_pthread_init" = xyes
20014 then :
20015 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
20016
20017 fi
20018 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
20019 if test "x$ac_cv_func_pthread_kill" = xyes
20020 then :
20021 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
20022
20023 fi
20024 ac_fn_c_check_func "$LINENO" "pthread_get_name_np" "ac_cv_func_pthread_get_name_np"
20025 if test "x$ac_cv_func_pthread_get_name_np" = xyes
20026 then :
20027 printf "%s\n" "#define HAVE_PTHREAD_GET_NAME_NP 1" >>confdefs.h
20028
20029 fi
20030 ac_fn_c_check_func "$LINENO" "pthread_getname_np" "ac_cv_func_pthread_getname_np"
20031 if test "x$ac_cv_func_pthread_getname_np" = xyes
20032 then :
20033 printf "%s\n" "#define HAVE_PTHREAD_GETNAME_NP 1" >>confdefs.h
20034
20035 fi
20036 ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
20037 if test "x$ac_cv_func_pthread_set_name_np" = xyes
20038 then :
20039 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
20040
20041 fi
20042 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
20043 if test "x$ac_cv_func_pthread_setname_np" = xyes
20044 then :
20045 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
20046
20047 fi
20048 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
20049 if test "x$ac_cv_func_pthread_getattr_np" = xyes
20050 then :
20051 printf "%s\n" "#define HAVE_PTHREAD_GETATTR_NP 1" >>confdefs.h
20052
20053 fi
20054 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
20055 if test "x$ac_cv_func_ptsname" = xyes
20056 then :
20057 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
20058
20059 fi
20060 ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
20061 if test "x$ac_cv_func_ptsname_r" = xyes
20062 then :
20063 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
20064
20065 fi
20066 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
20067 if test "x$ac_cv_func_pwrite" = xyes
20068 then :
20069 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
20070
20071 fi
20072 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
20073 if test "x$ac_cv_func_pwritev" = xyes
20074 then :
20075 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
20076
20077 fi
20078 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
20079 if test "x$ac_cv_func_pwritev2" = xyes
20080 then :
20081 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
20082
20083 fi
20084 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
20085 if test "x$ac_cv_func_readlink" = xyes
20086 then :
20087 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
20088
20089 fi
20090 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
20091 if test "x$ac_cv_func_readlinkat" = xyes
20092 then :
20093 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
20094
20095 fi
20096 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
20097 if test "x$ac_cv_func_readv" = xyes
20098 then :
20099 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
20100
20101 fi
20102 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
20103 if test "x$ac_cv_func_realpath" = xyes
20104 then :
20105 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
20106
20107 fi
20108 ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat"
20109 if test "x$ac_cv_func_renameat" = xyes
20110 then :
20111 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
20112
20113 fi
20114 ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
20115 if test "x$ac_cv_func_rtpSpawn" = xyes
20116 then :
20117 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
20118
20119 fi
20120 ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
20121 if test "x$ac_cv_func_sched_get_priority_max" = xyes
20122 then :
20123 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
20124
20125 fi
20126 ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
20127 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
20128 then :
20129 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
20130
20131 fi
20132 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
20133 if test "x$ac_cv_func_sched_setaffinity" = xyes
20134 then :
20135 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
20136
20137 fi
20138 ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
20139 if test "x$ac_cv_func_sched_setparam" = xyes
20140 then :
20141 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
20142
20143 fi
20144 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
20145 if test "x$ac_cv_func_sched_setscheduler" = xyes
20146 then :
20147 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
20148
20149 fi
20150 ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
20151 if test "x$ac_cv_func_sem_clockwait" = xyes
20152 then :
20153 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
20154
20155 fi
20156 ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
20157 if test "x$ac_cv_func_sem_getvalue" = xyes
20158 then :
20159 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
20160
20161 fi
20162 ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open"
20163 if test "x$ac_cv_func_sem_open" = xyes
20164 then :
20165 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
20166
20167 fi
20168 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
20169 if test "x$ac_cv_func_sem_timedwait" = xyes
20170 then :
20171 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
20172
20173 fi
20174 ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
20175 if test "x$ac_cv_func_sem_unlink" = xyes
20176 then :
20177 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
20178
20179 fi
20180 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
20181 if test "x$ac_cv_func_sendfile" = xyes
20182 then :
20183 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
20184
20185 fi
20186 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
20187 if test "x$ac_cv_func_setegid" = xyes
20188 then :
20189 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
20190
20191 fi
20192 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
20193 if test "x$ac_cv_func_seteuid" = xyes
20194 then :
20195 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
20196
20197 fi
20198 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
20199 if test "x$ac_cv_func_setgid" = xyes
20200 then :
20201 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
20202
20203 fi
20204 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
20205 if test "x$ac_cv_func_sethostname" = xyes
20206 then :
20207 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
20208
20209 fi
20210 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
20211 if test "x$ac_cv_func_setitimer" = xyes
20212 then :
20213 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
20214
20215 fi
20216 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
20217 if test "x$ac_cv_func_setlocale" = xyes
20218 then :
20219 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
20220
20221 fi
20222 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
20223 if test "x$ac_cv_func_setpgid" = xyes
20224 then :
20225 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
20226
20227 fi
20228 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
20229 if test "x$ac_cv_func_setpgrp" = xyes
20230 then :
20231 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
20232
20233 fi
20234 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
20235 if test "x$ac_cv_func_setpriority" = xyes
20236 then :
20237 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
20238
20239 fi
20240 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20241 if test "x$ac_cv_func_setregid" = xyes
20242 then :
20243 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
20244
20245 fi
20246 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20247 if test "x$ac_cv_func_setresgid" = xyes
20248 then :
20249 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
20250
20251 fi
20252 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20253 if test "x$ac_cv_func_setresuid" = xyes
20254 then :
20255 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
20256
20257 fi
20258 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20259 if test "x$ac_cv_func_setreuid" = xyes
20260 then :
20261 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
20262
20263 fi
20264 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
20265 if test "x$ac_cv_func_setsid" = xyes
20266 then :
20267 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
20268
20269 fi
20270 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
20271 if test "x$ac_cv_func_setuid" = xyes
20272 then :
20273 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
20274
20275 fi
20276 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
20277 if test "x$ac_cv_func_setvbuf" = xyes
20278 then :
20279 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
20280
20281 fi
20282 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
20283 if test "x$ac_cv_func_shutdown" = xyes
20284 then :
20285 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
20286
20287 fi
20288 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
20289 if test "x$ac_cv_func_sigaction" = xyes
20290 then :
20291 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
20292
20293 fi
20294 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
20295 if test "x$ac_cv_func_sigaltstack" = xyes
20296 then :
20297 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
20298
20299 fi
20300 ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset"
20301 if test "x$ac_cv_func_sigfillset" = xyes
20302 then :
20303 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
20304
20305 fi
20306 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
20307 if test "x$ac_cv_func_siginterrupt" = xyes
20308 then :
20309 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
20310
20311 fi
20312 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
20313 if test "x$ac_cv_func_sigpending" = xyes
20314 then :
20315 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
20316
20317 fi
20318 ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
20319 if test "x$ac_cv_func_sigrelse" = xyes
20320 then :
20321 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
20322
20323 fi
20324 ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
20325 if test "x$ac_cv_func_sigtimedwait" = xyes
20326 then :
20327 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
20328
20329 fi
20330 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20331 if test "x$ac_cv_func_sigwait" = xyes
20332 then :
20333 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
20334
20335 fi
20336 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
20337 if test "x$ac_cv_func_sigwaitinfo" = xyes
20338 then :
20339 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
20340
20341 fi
20342 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20343 if test "x$ac_cv_func_snprintf" = xyes
20344 then :
20345 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
20346
20347 fi
20348 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
20349 if test "x$ac_cv_func_splice" = xyes
20350 then :
20351 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
20352
20353 fi
20354 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20355 if test "x$ac_cv_func_strftime" = xyes
20356 then :
20357 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
20358
20359 fi
20360 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20361 if test "x$ac_cv_func_strlcpy" = xyes
20362 then :
20363 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20364
20365 fi
20366 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
20367 if test "x$ac_cv_func_strsignal" = xyes
20368 then :
20369 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
20370
20371 fi
20372 ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat"
20373 if test "x$ac_cv_func_symlinkat" = xyes
20374 then :
20375 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
20376
20377 fi
20378 ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync"
20379 if test "x$ac_cv_func_sync" = xyes
20380 then :
20381 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
20382
20383 fi
20384 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20385 if test "x$ac_cv_func_sysconf" = xyes
20386 then :
20387 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20388
20389 fi
20390 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
20391 if test "x$ac_cv_func_sysctlbyname" = xyes
20392 then :
20393 printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
20394
20395 fi
20396 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
20397 if test "x$ac_cv_func_tcgetpgrp" = xyes
20398 then :
20399 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
20400
20401 fi
20402 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
20403 if test "x$ac_cv_func_tcsetpgrp" = xyes
20404 then :
20405 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
20406
20407 fi
20408 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
20409 if test "x$ac_cv_func_tempnam" = xyes
20410 then :
20411 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
20412
20413 fi
20414 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
20415 if test "x$ac_cv_func_timegm" = xyes
20416 then :
20417 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
20418
20419 fi
20420 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
20421 if test "x$ac_cv_func_times" = xyes
20422 then :
20423 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
20424
20425 fi
20426 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
20427 if test "x$ac_cv_func_tmpfile" = xyes
20428 then :
20429 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
20430
20431 fi
20432 ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam"
20433 if test "x$ac_cv_func_tmpnam" = xyes
20434 then :
20435 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
20436
20437 fi
20438 ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
20439 if test "x$ac_cv_func_tmpnam_r" = xyes
20440 then :
20441 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
20442
20443 fi
20444 ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
20445 if test "x$ac_cv_func_truncate" = xyes
20446 then :
20447 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
20448
20449 fi
20450 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
20451 if test "x$ac_cv_func_ttyname_r" = xyes
20452 then :
20453 printf "%s\n" "#define HAVE_TTYNAME_R 1" >>confdefs.h
20454
20455 fi
20456 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
20457 if test "x$ac_cv_func_umask" = xyes
20458 then :
20459 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
20460
20461 fi
20462 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20463 if test "x$ac_cv_func_uname" = xyes
20464 then :
20465 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
20466
20467 fi
20468 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
20469 if test "x$ac_cv_func_unlinkat" = xyes
20470 then :
20471 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
20472
20473 fi
20474 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
20475 if test "x$ac_cv_func_unlockpt" = xyes
20476 then :
20477 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
20478
20479 fi
20480 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
20481 if test "x$ac_cv_func_utimensat" = xyes
20482 then :
20483 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
20484
20485 fi
20486 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
20487 if test "x$ac_cv_func_utimes" = xyes
20488 then :
20489 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
20490
20491 fi
20492 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
20493 if test "x$ac_cv_func_vfork" = xyes
20494 then :
20495 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
20496
20497 fi
20498 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
20499 if test "x$ac_cv_func_wait" = xyes
20500 then :
20501 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
20502
20503 fi
20504 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
20505 if test "x$ac_cv_func_wait3" = xyes
20506 then :
20507 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
20508
20509 fi
20510 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
20511 if test "x$ac_cv_func_wait4" = xyes
20512 then :
20513 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
20514
20515 fi
20516 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
20517 if test "x$ac_cv_func_waitid" = xyes
20518 then :
20519 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
20520
20521 fi
20522 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
20523 if test "x$ac_cv_func_waitpid" = xyes
20524 then :
20525 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
20526
20527 fi
20528 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
20529 if test "x$ac_cv_func_wcscoll" = xyes
20530 then :
20531 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
20532
20533 fi
20534 ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
20535 if test "x$ac_cv_func_wcsftime" = xyes
20536 then :
20537 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
20538
20539 fi
20540 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
20541 if test "x$ac_cv_func_wcsxfrm" = xyes
20542 then :
20543 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
20544
20545 fi
20546 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
20547 if test "x$ac_cv_func_wmemcmp" = xyes
20548 then :
20549 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
20550
20551 fi
20552 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
20553 if test "x$ac_cv_func_writev" = xyes
20554 then :
20555 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
20556
20557 fi
20558
20559
20560 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
20561 # links. Some libc implementations have a stub lchmod implementation that always
20562 # returns an error.
20563 if test "$MACHDEP" != linux; then
20564 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
20565 if test "x$ac_cv_func_lchmod" = xyes
20566 then :
20567 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
20568
20569 fi
20570
20571 fi
20572
20573 # iOS defines some system methods that can be linked (so they are
20574 # found by configure), but either raise a compilation error (because the
20575 # header definition prevents usage - autoconf doesn't use the headers), or
20576 # raise an error if used at runtime. Force these symbols off.
20577 if test "$ac_sys_system" != "iOS" ; then
20578 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20579 if test "x$ac_cv_func_getentropy" = xyes
20580 then :
20581 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
20582
20583 fi
20584 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20585 if test "x$ac_cv_func_getgroups" = xyes
20586 then :
20587 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
20588
20589 fi
20590 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
20591 if test "x$ac_cv_func_system" = xyes
20592 then :
20593 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
20594
20595 fi
20596
20597 fi
20598 # In addition, macOS introduced dup3 and pipe2 in macOS 27, late in the
20599 # lifetime of this version of Python. Rather than adding weaklinking
20600 # support for them, just continue to ignore them.
20601 if test "$ac_sys_system" != "iOS" -a "$ac_sys_system" != "Darwin"; then
20602 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
20603 if test "x$ac_cv_func_dup3" = xyes
20604 then :
20605 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
20606
20607 fi
20608 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
20609 if test "x$ac_cv_func_pipe2" = xyes
20610 then :
20611 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
20612
20613 fi
20614
20615 fi
20616
20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20618 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20619 if test ${ac_cv_c_undeclared_builtin_options+y}
20620 then :
20621 printf %s "(cached) " >&6
20622 else case e in #(
20623 e) ac_save_CFLAGS=$CFLAGS
20624 ac_cv_c_undeclared_builtin_options='cannot detect'
20625 for ac_arg in '' -fno-builtin; do
20626 CFLAGS="$ac_save_CFLAGS $ac_arg"
20627 # This test program should *not* compile successfully.
20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20630
20631 int
20632 main (void)
20633 {
20634 (void) strchr;
20635 ;
20636 return 0;
20637 }
20638 _ACEOF
20639 if ac_fn_c_try_compile "$LINENO"
20640 then :
20641
20642 else case e in #(
20643 e) # This test program should compile successfully.
20644 # No library function is consistently available on
20645 # freestanding implementations, so test against a dummy
20646 # declaration. Include always-available headers on the
20647 # off chance that they somehow elicit warnings.
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650 #include <float.h>
20651 #include <limits.h>
20652 #include <stdarg.h>
20653 #include <stddef.h>
20654 extern void ac_decl (int, char *);
20655
20656 int
20657 main (void)
20658 {
20659 (void) ac_decl (0, (char *) 0);
20660 (void) ac_decl;
20661
20662 ;
20663 return 0;
20664 }
20665 _ACEOF
20666 if ac_fn_c_try_compile "$LINENO"
20667 then :
20668 if test x"$ac_arg" = x
20669 then :
20670 ac_cv_c_undeclared_builtin_options='none needed'
20671 else case e in #(
20672 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20673 esac
20674 fi
20675 break
20676 fi
20677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20678 esac
20679 fi
20680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20681 done
20682 CFLAGS=$ac_save_CFLAGS
20683 ;;
20684 esac
20685 fi
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20687 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20688 case $ac_cv_c_undeclared_builtin_options in #(
20689 'cannot detect') :
20690 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20691 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20692 as_fn_error $? "cannot make $CC report undeclared builtins
20693 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20694 'none needed') :
20695 ac_c_undeclared_builtin_options='' ;; #(
20696 *) :
20697 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20698 esac
20699
20700 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
20701 #include <dirent.h>
20702 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20703 if test "x$ac_cv_have_decl_dirfd" = xyes
20704 then :
20705
20706 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
20707
20708 fi
20709
20710 # For some functions, having a definition is not sufficient, since
20711 # we want to take their address.
20712
20713
20714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
20715 printf %s "checking for chroot... " >&6; }
20716 if test ${ac_cv_func_chroot+y}
20717 then :
20718 printf %s "(cached) " >&6
20719 else case e in #(
20720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20721 /* end confdefs.h. */
20722 #include <unistd.h>
20723 int
20724 main (void)
20725 {
20726 void *x=chroot
20727 ;
20728 return 0;
20729 }
20730 _ACEOF
20731 if ac_fn_c_try_compile "$LINENO"
20732 then :
20733 ac_cv_func_chroot=yes
20734 else case e in #(
20735 e) ac_cv_func_chroot=no ;;
20736 esac
20737 fi
20738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20739 ;;
20740 esac
20741 fi
20742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
20743 printf "%s\n" "$ac_cv_func_chroot" >&6; }
20744 if test "x$ac_cv_func_chroot" = xyes
20745 then :
20746
20747 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
20748
20749 fi
20750
20751
20752
20753
20754
20755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
20756 printf %s "checking for link... " >&6; }
20757 if test ${ac_cv_func_link+y}
20758 then :
20759 printf %s "(cached) " >&6
20760 else case e in #(
20761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h. */
20763 #include <unistd.h>
20764 int
20765 main (void)
20766 {
20767 void *x=link
20768 ;
20769 return 0;
20770 }
20771 _ACEOF
20772 if ac_fn_c_try_compile "$LINENO"
20773 then :
20774 ac_cv_func_link=yes
20775 else case e in #(
20776 e) ac_cv_func_link=no ;;
20777 esac
20778 fi
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20780 ;;
20781 esac
20782 fi
20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
20784 printf "%s\n" "$ac_cv_func_link" >&6; }
20785 if test "x$ac_cv_func_link" = xyes
20786 then :
20787
20788 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
20789
20790 fi
20791
20792
20793
20794
20795
20796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
20797 printf %s "checking for symlink... " >&6; }
20798 if test ${ac_cv_func_symlink+y}
20799 then :
20800 printf %s "(cached) " >&6
20801 else case e in #(
20802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20804 #include <unistd.h>
20805 int
20806 main (void)
20807 {
20808 void *x=symlink
20809 ;
20810 return 0;
20811 }
20812 _ACEOF
20813 if ac_fn_c_try_compile "$LINENO"
20814 then :
20815 ac_cv_func_symlink=yes
20816 else case e in #(
20817 e) ac_cv_func_symlink=no ;;
20818 esac
20819 fi
20820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20821 ;;
20822 esac
20823 fi
20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
20825 printf "%s\n" "$ac_cv_func_symlink" >&6; }
20826 if test "x$ac_cv_func_symlink" = xyes
20827 then :
20828
20829 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
20830
20831 fi
20832
20833
20834
20835
20836
20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
20838 printf %s "checking for fchdir... " >&6; }
20839 if test ${ac_cv_func_fchdir+y}
20840 then :
20841 printf %s "(cached) " >&6
20842 else case e in #(
20843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20845 #include <unistd.h>
20846 int
20847 main (void)
20848 {
20849 void *x=fchdir
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 if ac_fn_c_try_compile "$LINENO"
20855 then :
20856 ac_cv_func_fchdir=yes
20857 else case e in #(
20858 e) ac_cv_func_fchdir=no ;;
20859 esac
20860 fi
20861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20862 ;;
20863 esac
20864 fi
20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
20866 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
20867 if test "x$ac_cv_func_fchdir" = xyes
20868 then :
20869
20870 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
20871
20872 fi
20873
20874
20875
20876
20877
20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
20879 printf %s "checking for fsync... " >&6; }
20880 if test ${ac_cv_func_fsync+y}
20881 then :
20882 printf %s "(cached) " >&6
20883 else case e in #(
20884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20886 #include <unistd.h>
20887 int
20888 main (void)
20889 {
20890 void *x=fsync
20891 ;
20892 return 0;
20893 }
20894 _ACEOF
20895 if ac_fn_c_try_compile "$LINENO"
20896 then :
20897 ac_cv_func_fsync=yes
20898 else case e in #(
20899 e) ac_cv_func_fsync=no ;;
20900 esac
20901 fi
20902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20903 ;;
20904 esac
20905 fi
20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
20907 printf "%s\n" "$ac_cv_func_fsync" >&6; }
20908 if test "x$ac_cv_func_fsync" = xyes
20909 then :
20910
20911 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
20912
20913 fi
20914
20915
20916
20917
20918
20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
20920 printf %s "checking for fdatasync... " >&6; }
20921 if test ${ac_cv_func_fdatasync+y}
20922 then :
20923 printf %s "(cached) " >&6
20924 else case e in #(
20925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h. */
20927 #include <unistd.h>
20928 int
20929 main (void)
20930 {
20931 void *x=fdatasync
20932 ;
20933 return 0;
20934 }
20935 _ACEOF
20936 if ac_fn_c_try_compile "$LINENO"
20937 then :
20938 ac_cv_func_fdatasync=yes
20939 else case e in #(
20940 e) ac_cv_func_fdatasync=no ;;
20941 esac
20942 fi
20943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20944 ;;
20945 esac
20946 fi
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
20948 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
20949 if test "x$ac_cv_func_fdatasync" = xyes
20950 then :
20951
20952 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
20953
20954 fi
20955
20956
20957
20958
20959
20960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
20961 printf %s "checking for epoll_create... " >&6; }
20962 if test ${ac_cv_func_epoll_create+y}
20963 then :
20964 printf %s "(cached) " >&6
20965 else case e in #(
20966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968 #include <sys/epoll.h>
20969 int
20970 main (void)
20971 {
20972 void *x=epoll_create
20973 ;
20974 return 0;
20975 }
20976 _ACEOF
20977 if ac_fn_c_try_compile "$LINENO"
20978 then :
20979 ac_cv_func_epoll_create=yes
20980 else case e in #(
20981 e) ac_cv_func_epoll_create=no ;;
20982 esac
20983 fi
20984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20985 ;;
20986 esac
20987 fi
20988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
20989 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
20990 if test "x$ac_cv_func_epoll_create" = xyes
20991 then :
20992
20993 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
20994
20995 fi
20996
20997
20998
20999
21000
21001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
21002 printf %s "checking for epoll_create1... " >&6; }
21003 if test ${ac_cv_func_epoll_create1+y}
21004 then :
21005 printf %s "(cached) " >&6
21006 else case e in #(
21007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21009 #include <sys/epoll.h>
21010 int
21011 main (void)
21012 {
21013 void *x=epoll_create1
21014 ;
21015 return 0;
21016 }
21017 _ACEOF
21018 if ac_fn_c_try_compile "$LINENO"
21019 then :
21020 ac_cv_func_epoll_create1=yes
21021 else case e in #(
21022 e) ac_cv_func_epoll_create1=no ;;
21023 esac
21024 fi
21025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21026 ;;
21027 esac
21028 fi
21029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
21030 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
21031 if test "x$ac_cv_func_epoll_create1" = xyes
21032 then :
21033
21034 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
21035
21036 fi
21037
21038
21039
21040
21041
21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
21043 printf %s "checking for kqueue... " >&6; }
21044 if test ${ac_cv_func_kqueue+y}
21045 then :
21046 printf %s "(cached) " >&6
21047 else case e in #(
21048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21050
21051 #include <sys/types.h>
21052 #include <sys/event.h>
21053
21054 int
21055 main (void)
21056 {
21057 void *x=kqueue
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 if ac_fn_c_try_compile "$LINENO"
21063 then :
21064 ac_cv_func_kqueue=yes
21065 else case e in #(
21066 e) ac_cv_func_kqueue=no ;;
21067 esac
21068 fi
21069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21070 ;;
21071 esac
21072 fi
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
21074 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
21075 if test "x$ac_cv_func_kqueue" = xyes
21076 then :
21077
21078 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
21079
21080 fi
21081
21082
21083
21084
21085
21086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
21087 printf %s "checking for prlimit... " >&6; }
21088 if test ${ac_cv_func_prlimit+y}
21089 then :
21090 printf %s "(cached) " >&6
21091 else case e in #(
21092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21093 /* end confdefs.h. */
21094
21095 #include <sys/time.h>
21096 #include <sys/resource.h>
21097
21098 int
21099 main (void)
21100 {
21101 void *x=prlimit
21102 ;
21103 return 0;
21104 }
21105 _ACEOF
21106 if ac_fn_c_try_compile "$LINENO"
21107 then :
21108 ac_cv_func_prlimit=yes
21109 else case e in #(
21110 e) ac_cv_func_prlimit=no ;;
21111 esac
21112 fi
21113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21114 ;;
21115 esac
21116 fi
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
21118 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
21119 if test "x$ac_cv_func_prlimit" = xyes
21120 then :
21121
21122 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
21123
21124 fi
21125
21126
21127
21128
21129
21130
21131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
21132 printf %s "checking for _dyld_shared_cache_contains_path... " >&6; }
21133 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
21134 then :
21135 printf %s "(cached) " >&6
21136 else case e in #(
21137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21139 #include <mach-o/dyld.h>
21140 int
21141 main (void)
21142 {
21143 void *x=_dyld_shared_cache_contains_path
21144 ;
21145 return 0;
21146 }
21147 _ACEOF
21148 if ac_fn_c_try_compile "$LINENO"
21149 then :
21150 ac_cv_func__dyld_shared_cache_contains_path=yes
21151 else case e in #(
21152 e) ac_cv_func__dyld_shared_cache_contains_path=no ;;
21153 esac
21154 fi
21155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21156 ;;
21157 esac
21158 fi
21159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
21160 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
21161 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
21162 then :
21163
21164 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
21165
21166 fi
21167
21168
21169
21170
21171
21172
21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
21174 printf %s "checking for memfd_create... " >&6; }
21175 if test ${ac_cv_func_memfd_create+y}
21176 then :
21177 printf %s "(cached) " >&6
21178 else case e in #(
21179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181
21182 #ifdef HAVE_SYS_MMAN_H
21183 #include <sys/mman.h>
21184 #endif
21185 #ifdef HAVE_SYS_MEMFD_H
21186 #include <sys/memfd.h>
21187 #endif
21188
21189 int
21190 main (void)
21191 {
21192 void *x=memfd_create
21193 ;
21194 return 0;
21195 }
21196 _ACEOF
21197 if ac_fn_c_try_compile "$LINENO"
21198 then :
21199 ac_cv_func_memfd_create=yes
21200 else case e in #(
21201 e) ac_cv_func_memfd_create=no ;;
21202 esac
21203 fi
21204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21205 ;;
21206 esac
21207 fi
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
21209 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
21210 if test "x$ac_cv_func_memfd_create" = xyes
21211 then :
21212
21213 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
21214
21215 fi
21216
21217
21218
21219
21220
21221
21222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
21223 printf %s "checking for eventfd... " >&6; }
21224 if test ${ac_cv_func_eventfd+y}
21225 then :
21226 printf %s "(cached) " >&6
21227 else case e in #(
21228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h. */
21230
21231 #ifdef HAVE_SYS_EVENTFD_H
21232 #include <sys/eventfd.h>
21233 #endif
21234
21235 int
21236 main (void)
21237 {
21238 void *x=eventfd
21239 ;
21240 return 0;
21241 }
21242 _ACEOF
21243 if ac_fn_c_try_compile "$LINENO"
21244 then :
21245 ac_cv_func_eventfd=yes
21246 else case e in #(
21247 e) ac_cv_func_eventfd=no ;;
21248 esac
21249 fi
21250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21251 ;;
21252 esac
21253 fi
21254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
21255 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
21256 if test "x$ac_cv_func_eventfd" = xyes
21257 then :
21258
21259 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
21260
21261 fi
21262
21263
21264
21265
21266
21267
21268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
21269 printf %s "checking for timerfd_create... " >&6; }
21270 if test ${ac_cv_func_timerfd_create+y}
21271 then :
21272 printf %s "(cached) " >&6
21273 else case e in #(
21274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21276
21277 #ifdef HAVE_SYS_TIMERFD_H
21278 #include <sys/timerfd.h>
21279 #endif
21280
21281 int
21282 main (void)
21283 {
21284 void *x=timerfd_create
21285 ;
21286 return 0;
21287 }
21288 _ACEOF
21289 if ac_fn_c_try_compile "$LINENO"
21290 then :
21291 ac_cv_func_timerfd_create=yes
21292 else case e in #(
21293 e) ac_cv_func_timerfd_create=no ;;
21294 esac
21295 fi
21296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21297 ;;
21298 esac
21299 fi
21300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
21301 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
21302 if test "x$ac_cv_func_timerfd_create" = xyes
21303 then :
21304
21305 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
21306
21307 fi
21308
21309
21310
21311
21312 # On some systems (eg. FreeBSD 5), we would find a definition of the
21313 # functions ctermid_r, setgroups in the library, but no prototype
21314 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
21315 # address to avoid compiler warnings and potential miscompilations
21316 # because of the missing prototypes.
21317
21318
21319
21320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
21321 printf %s "checking for ctermid_r... " >&6; }
21322 if test ${ac_cv_func_ctermid_r+y}
21323 then :
21324 printf %s "(cached) " >&6
21325 else case e in #(
21326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21328 #include <stdio.h>
21329 int
21330 main (void)
21331 {
21332 void *x=ctermid_r
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 if ac_fn_c_try_compile "$LINENO"
21338 then :
21339 ac_cv_func_ctermid_r=yes
21340 else case e in #(
21341 e) ac_cv_func_ctermid_r=no ;;
21342 esac
21343 fi
21344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21345 ;;
21346 esac
21347 fi
21348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
21349 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
21350 if test "x$ac_cv_func_ctermid_r" = xyes
21351 then :
21352
21353 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
21354
21355 fi
21356
21357
21358
21359
21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
21361 printf %s "checking for flock declaration... " >&6; }
21362 if test ${ac_cv_flock_decl+y}
21363 then :
21364 printf %s "(cached) " >&6
21365 else case e in #(
21366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367 /* end confdefs.h. */
21368 #include <sys/file.h>
21369 int
21370 main (void)
21371 {
21372 void* p = flock
21373
21374 ;
21375 return 0;
21376 }
21377 _ACEOF
21378 if ac_fn_c_try_compile "$LINENO"
21379 then :
21380 ac_cv_flock_decl=yes
21381 else case e in #(
21382 e) ac_cv_flock_decl=no
21383 ;;
21384 esac
21385 fi
21386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21387 ;;
21388 esac
21389 fi
21390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
21391 printf "%s\n" "$ac_cv_flock_decl" >&6; }
21392 if test "x$ac_cv_flock_decl" = xyes
21393 then :
21394
21395 for ac_func in flock
21396 do :
21397 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
21398 if test "x$ac_cv_func_flock" = xyes
21399 then :
21400 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
21401
21402 else case e in #(
21403 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
21404 printf %s "checking for flock in -lbsd... " >&6; }
21405 if test ${ac_cv_lib_bsd_flock+y}
21406 then :
21407 printf %s "(cached) " >&6
21408 else case e in #(
21409 e) ac_check_lib_save_LIBS=$LIBS
21410 LIBS="-lbsd $LIBS"
21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21412 /* end confdefs.h. */
21413
21414 /* Override any GCC internal prototype to avoid an error.
21415 Use char because int might match the return type of a GCC
21416 builtin and then its argument prototype would still apply.
21417 The 'extern "C"' is for builds by C++ compilers;
21418 although this is not generally supported in C code supporting it here
21419 has little cost and some practical benefit (sr 110532). */
21420 #ifdef __cplusplus
21421 extern "C"
21422 #endif
21423 char flock (void);
21424 int
21425 main (void)
21426 {
21427 return flock ();
21428 ;
21429 return 0;
21430 }
21431 _ACEOF
21432 if ac_fn_c_try_link "$LINENO"
21433 then :
21434 ac_cv_lib_bsd_flock=yes
21435 else case e in #(
21436 e) ac_cv_lib_bsd_flock=no ;;
21437 esac
21438 fi
21439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21440 conftest$ac_exeext conftest.$ac_ext
21441 LIBS=$ac_check_lib_save_LIBS ;;
21442 esac
21443 fi
21444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
21445 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
21446 if test "x$ac_cv_lib_bsd_flock" = xyes
21447 then :
21448 FCNTL_LIBS="-lbsd"
21449 fi
21450 ;;
21451 esac
21452 fi
21453
21454 done
21455 fi
21456
21457
21458
21459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
21460 printf %s "checking for getpagesize... " >&6; }
21461 if test ${ac_cv_func_getpagesize+y}
21462 then :
21463 printf %s "(cached) " >&6
21464 else case e in #(
21465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21466 /* end confdefs.h. */
21467 #include <unistd.h>
21468 int
21469 main (void)
21470 {
21471 void *x=getpagesize
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 if ac_fn_c_try_compile "$LINENO"
21477 then :
21478 ac_cv_func_getpagesize=yes
21479 else case e in #(
21480 e) ac_cv_func_getpagesize=no ;;
21481 esac
21482 fi
21483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21484 ;;
21485 esac
21486 fi
21487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
21488 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
21489 if test "x$ac_cv_func_getpagesize" = xyes
21490 then :
21491
21492 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
21493
21494 fi
21495
21496
21497
21498
21499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
21500 printf %s "checking for broken unsetenv... " >&6; }
21501 if test ${ac_cv_broken_unsetenv+y}
21502 then :
21503 printf %s "(cached) " >&6
21504 else case e in #(
21505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h. */
21507 #include <stdlib.h>
21508 int
21509 main (void)
21510 {
21511 int res = unsetenv("DUMMY")
21512 ;
21513 return 0;
21514 }
21515 _ACEOF
21516 if ac_fn_c_try_compile "$LINENO"
21517 then :
21518 ac_cv_broken_unsetenv=no
21519 else case e in #(
21520 e) ac_cv_broken_unsetenv=yes
21521 ;;
21522 esac
21523 fi
21524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21525 ;;
21526 esac
21527 fi
21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
21529 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
21530 if test "x$ac_cv_broken_unsetenv" = xyes
21531 then :
21532
21533
21534 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
21535
21536
21537 fi
21538
21539 for ac_prog in true
21540 do
21541 # Extract the first word of "$ac_prog", so it can be a program name with args.
21542 set dummy $ac_prog; ac_word=$2
21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21544 printf %s "checking for $ac_word... " >&6; }
21545 if test ${ac_cv_prog_TRUE+y}
21546 then :
21547 printf %s "(cached) " >&6
21548 else case e in #(
21549 e) if test -n "$TRUE"; then
21550 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
21551 else
21552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21553 for as_dir in $PATH
21554 do
21555 IFS=$as_save_IFS
21556 case $as_dir in #(((
21557 '') as_dir=./ ;;
21558 */) ;;
21559 *) as_dir=$as_dir/ ;;
21560 esac
21561 for ac_exec_ext in '' $ac_executable_extensions; do
21562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21563 ac_cv_prog_TRUE="$ac_prog"
21564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21565 break 2
21566 fi
21567 done
21568 done
21569 IFS=$as_save_IFS
21570
21571 fi ;;
21572 esac
21573 fi
21574 TRUE=$ac_cv_prog_TRUE
21575 if test -n "$TRUE"; then
21576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
21577 printf "%s\n" "$TRUE" >&6; }
21578 else
21579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21580 printf "%s\n" "no" >&6; }
21581 fi
21582
21583
21584 test -n "$TRUE" && break
21585 done
21586 test -n "$TRUE" || TRUE="/bin/true"
21587
21588
21589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
21590 printf %s "checking for inet_aton in -lc... " >&6; }
21591 if test ${ac_cv_lib_c_inet_aton+y}
21592 then :
21593 printf %s "(cached) " >&6
21594 else case e in #(
21595 e) ac_check_lib_save_LIBS=$LIBS
21596 LIBS="-lc $LIBS"
21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21599
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply.
21603 The 'extern "C"' is for builds by C++ compilers;
21604 although this is not generally supported in C code supporting it here
21605 has little cost and some practical benefit (sr 110532). */
21606 #ifdef __cplusplus
21607 extern "C"
21608 #endif
21609 char inet_aton (void);
21610 int
21611 main (void)
21612 {
21613 return inet_aton ();
21614 ;
21615 return 0;
21616 }
21617 _ACEOF
21618 if ac_fn_c_try_link "$LINENO"
21619 then :
21620 ac_cv_lib_c_inet_aton=yes
21621 else case e in #(
21622 e) ac_cv_lib_c_inet_aton=no ;;
21623 esac
21624 fi
21625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21626 conftest$ac_exeext conftest.$ac_ext
21627 LIBS=$ac_check_lib_save_LIBS ;;
21628 esac
21629 fi
21630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
21631 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
21632 if test "x$ac_cv_lib_c_inet_aton" = xyes
21633 then :
21634 $ac_cv_prog_TRUE
21635 else case e in #(
21636 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
21637 printf %s "checking for inet_aton in -lresolv... " >&6; }
21638 if test ${ac_cv_lib_resolv_inet_aton+y}
21639 then :
21640 printf %s "(cached) " >&6
21641 else case e in #(
21642 e) ac_check_lib_save_LIBS=$LIBS
21643 LIBS="-lresolv $LIBS"
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h. */
21646
21647 /* Override any GCC internal prototype to avoid an error.
21648 Use char because int might match the return type of a GCC
21649 builtin and then its argument prototype would still apply.
21650 The 'extern "C"' is for builds by C++ compilers;
21651 although this is not generally supported in C code supporting it here
21652 has little cost and some practical benefit (sr 110532). */
21653 #ifdef __cplusplus
21654 extern "C"
21655 #endif
21656 char inet_aton (void);
21657 int
21658 main (void)
21659 {
21660 return inet_aton ();
21661 ;
21662 return 0;
21663 }
21664 _ACEOF
21665 if ac_fn_c_try_link "$LINENO"
21666 then :
21667 ac_cv_lib_resolv_inet_aton=yes
21668 else case e in #(
21669 e) ac_cv_lib_resolv_inet_aton=no ;;
21670 esac
21671 fi
21672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21673 conftest$ac_exeext conftest.$ac_ext
21674 LIBS=$ac_check_lib_save_LIBS ;;
21675 esac
21676 fi
21677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
21678 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
21679 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
21680 then :
21681 SOCKET_LIBS="-lresolv"
21682 fi
21683
21684 ;;
21685 esac
21686 fi
21687
21688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lc" >&5
21689 printf %s "checking for hstrerror in -lc... " >&6; }
21690 if test ${ac_cv_lib_c_hstrerror+y}
21691 then :
21692 printf %s "(cached) " >&6
21693 else case e in #(
21694 e) ac_check_lib_save_LIBS=$LIBS
21695 LIBS="-lc $LIBS"
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21698
21699 /* Override any GCC internal prototype to avoid an error.
21700 Use char because int might match the return type of a GCC
21701 builtin and then its argument prototype would still apply.
21702 The 'extern "C"' is for builds by C++ compilers;
21703 although this is not generally supported in C code supporting it here
21704 has little cost and some practical benefit (sr 110532). */
21705 #ifdef __cplusplus
21706 extern "C"
21707 #endif
21708 char hstrerror (void);
21709 int
21710 main (void)
21711 {
21712 return hstrerror ();
21713 ;
21714 return 0;
21715 }
21716 _ACEOF
21717 if ac_fn_c_try_link "$LINENO"
21718 then :
21719 ac_cv_lib_c_hstrerror=yes
21720 else case e in #(
21721 e) ac_cv_lib_c_hstrerror=no ;;
21722 esac
21723 fi
21724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21725 conftest$ac_exeext conftest.$ac_ext
21726 LIBS=$ac_check_lib_save_LIBS ;;
21727 esac
21728 fi
21729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_hstrerror" >&5
21730 printf "%s\n" "$ac_cv_lib_c_hstrerror" >&6; }
21731 if test "x$ac_cv_lib_c_hstrerror" = xyes
21732 then :
21733 $ac_cv_prog_TRUE
21734 else case e in #(
21735 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
21736 printf %s "checking for hstrerror in -lresolv... " >&6; }
21737 if test ${ac_cv_lib_resolv_hstrerror+y}
21738 then :
21739 printf %s "(cached) " >&6
21740 else case e in #(
21741 e) ac_check_lib_save_LIBS=$LIBS
21742 LIBS="-lresolv $LIBS"
21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744 /* end confdefs.h. */
21745
21746 /* Override any GCC internal prototype to avoid an error.
21747 Use char because int might match the return type of a GCC
21748 builtin and then its argument prototype would still apply.
21749 The 'extern "C"' is for builds by C++ compilers;
21750 although this is not generally supported in C code supporting it here
21751 has little cost and some practical benefit (sr 110532). */
21752 #ifdef __cplusplus
21753 extern "C"
21754 #endif
21755 char hstrerror (void);
21756 int
21757 main (void)
21758 {
21759 return hstrerror ();
21760 ;
21761 return 0;
21762 }
21763 _ACEOF
21764 if ac_fn_c_try_link "$LINENO"
21765 then :
21766 ac_cv_lib_resolv_hstrerror=yes
21767 else case e in #(
21768 e) ac_cv_lib_resolv_hstrerror=no ;;
21769 esac
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21772 conftest$ac_exeext conftest.$ac_ext
21773 LIBS=$ac_check_lib_save_LIBS ;;
21774 esac
21775 fi
21776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
21777 printf "%s\n" "$ac_cv_lib_resolv_hstrerror" >&6; }
21778 if test "x$ac_cv_lib_resolv_hstrerror" = xyes
21779 then :
21780 SOCKET_LIBS="-lresolv"
21781 fi
21782
21783 ;;
21784 esac
21785 fi
21786
21787
21788 # On Tru64, chflags seems to be present, but calling it will
21789 # exit Python
21790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
21791 printf %s "checking for chflags... " >&6; }
21792 if test ${ac_cv_have_chflags+y}
21793 then :
21794 printf %s "(cached) " >&6
21795 else case e in #(
21796 e) if test "$cross_compiling" = yes
21797 then :
21798 ac_cv_have_chflags=cross
21799 else case e in #(
21800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801 /* end confdefs.h. */
21802
21803 #include <sys/stat.h>
21804 #include <unistd.h>
21805 int main(int argc, char *argv[])
21806 {
21807 if(chflags(argv[0], 0) != 0)
21808 return 1;
21809 return 0;
21810 }
21811
21812 _ACEOF
21813 if ac_fn_c_try_run "$LINENO"
21814 then :
21815 ac_cv_have_chflags=yes
21816 else case e in #(
21817 e) ac_cv_have_chflags=no ;;
21818 esac
21819 fi
21820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21822 esac
21823 fi
21824
21825 ;;
21826 esac
21827 fi
21828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
21829 printf "%s\n" "$ac_cv_have_chflags" >&6; }
21830 if test "$ac_cv_have_chflags" = cross ; then
21831 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
21832 if test "x$ac_cv_func_chflags" = xyes
21833 then :
21834 ac_cv_have_chflags="yes"
21835 else case e in #(
21836 e) ac_cv_have_chflags="no" ;;
21837 esac
21838 fi
21839
21840 fi
21841 if test "$ac_cv_have_chflags" = yes ; then
21842
21843 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
21844
21845 fi
21846
21847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
21848 printf %s "checking for lchflags... " >&6; }
21849 if test ${ac_cv_have_lchflags+y}
21850 then :
21851 printf %s "(cached) " >&6
21852 else case e in #(
21853 e) if test "$cross_compiling" = yes
21854 then :
21855 ac_cv_have_lchflags=cross
21856 else case e in #(
21857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21859
21860 #include <sys/stat.h>
21861 #include <unistd.h>
21862 int main(int argc, char *argv[])
21863 {
21864 if(lchflags(argv[0], 0) != 0)
21865 return 1;
21866 return 0;
21867 }
21868
21869 _ACEOF
21870 if ac_fn_c_try_run "$LINENO"
21871 then :
21872 ac_cv_have_lchflags=yes
21873 else case e in #(
21874 e) ac_cv_have_lchflags=no ;;
21875 esac
21876 fi
21877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21878 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21879 esac
21880 fi
21881
21882 ;;
21883 esac
21884 fi
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
21886 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
21887 if test "$ac_cv_have_lchflags" = cross ; then
21888 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
21889 if test "x$ac_cv_func_lchflags" = xyes
21890 then :
21891 ac_cv_have_lchflags="yes"
21892 else case e in #(
21893 e) ac_cv_have_lchflags="no" ;;
21894 esac
21895 fi
21896
21897 fi
21898 if test "$ac_cv_have_lchflags" = yes ; then
21899
21900 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
21901
21902 fi
21903
21904
21905
21906
21907
21908
21909 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
21910 then :
21911
21912 ZLIB_CFLAGS="-sUSE_ZLIB"
21913 ZLIB_LIBS="-sUSE_ZLIB"
21914
21915 fi
21916
21917
21918
21919
21920
21921 pkg_failed=no
21922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
21923 printf %s "checking for zlib >= 1.2.0... " >&6; }
21924
21925 if test -n "$ZLIB_CFLAGS"; then
21926 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
21927 elif test -n "$PKG_CONFIG"; then
21928 if test -n "$PKG_CONFIG" && \
21929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
21930 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
21931 ac_status=$?
21932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21933 test $ac_status = 0; }; then
21934 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
21935 test "x$?" != "x0" && pkg_failed=yes
21936 else
21937 pkg_failed=yes
21938 fi
21939 else
21940 pkg_failed=untried
21941 fi
21942 if test -n "$ZLIB_LIBS"; then
21943 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
21944 elif test -n "$PKG_CONFIG"; then
21945 if test -n "$PKG_CONFIG" && \
21946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
21947 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
21948 ac_status=$?
21949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21950 test $ac_status = 0; }; then
21951 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
21952 test "x$?" != "x0" && pkg_failed=yes
21953 else
21954 pkg_failed=yes
21955 fi
21956 else
21957 pkg_failed=untried
21958 fi
21959
21960
21961
21962 if test $pkg_failed = yes; then
21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21964 printf "%s\n" "no" >&6; }
21965
21966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21967 _pkg_short_errors_supported=yes
21968 else
21969 _pkg_short_errors_supported=no
21970 fi
21971 if test $_pkg_short_errors_supported = yes; then
21972 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
21973 else
21974 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
21975 fi
21976 # Put the nasty error message in config.log where it belongs
21977 echo "$ZLIB_PKG_ERRORS" >&5
21978
21979
21980 save_CFLAGS=$CFLAGS
21981 save_CPPFLAGS=$CPPFLAGS
21982 save_LDFLAGS=$LDFLAGS
21983 save_LIBS=$LIBS
21984
21985
21986 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
21987 LIBS="$LIBS $ZLIB_LIBS"
21988 for ac_header in zlib.h
21989 do :
21990 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21991 if test "x$ac_cv_header_zlib_h" = xyes
21992 then :
21993 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
21994
21995 py_check_lib_save_LIBS=$LIBS
21996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
21997 printf %s "checking for gzread in -lz... " >&6; }
21998 if test ${ac_cv_lib_z_gzread+y}
21999 then :
22000 printf %s "(cached) " >&6
22001 else case e in #(
22002 e) ac_check_lib_save_LIBS=$LIBS
22003 LIBS="-lz $LIBS"
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22006
22007 /* Override any GCC internal prototype to avoid an error.
22008 Use char because int might match the return type of a GCC
22009 builtin and then its argument prototype would still apply.
22010 The 'extern "C"' is for builds by C++ compilers;
22011 although this is not generally supported in C code supporting it here
22012 has little cost and some practical benefit (sr 110532). */
22013 #ifdef __cplusplus
22014 extern "C"
22015 #endif
22016 char gzread (void);
22017 int
22018 main (void)
22019 {
22020 return gzread ();
22021 ;
22022 return 0;
22023 }
22024 _ACEOF
22025 if ac_fn_c_try_link "$LINENO"
22026 then :
22027 ac_cv_lib_z_gzread=yes
22028 else case e in #(
22029 e) ac_cv_lib_z_gzread=no ;;
22030 esac
22031 fi
22032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22033 conftest$ac_exeext conftest.$ac_ext
22034 LIBS=$ac_check_lib_save_LIBS ;;
22035 esac
22036 fi
22037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
22038 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
22039 if test "x$ac_cv_lib_z_gzread" = xyes
22040 then :
22041 have_zlib=yes
22042 else case e in #(
22043 e) have_zlib=no ;;
22044 esac
22045 fi
22046
22047 LIBS=$py_check_lib_save_LIBS
22048
22049
22050 else case e in #(
22051 e) have_zlib=no ;;
22052 esac
22053 fi
22054
22055 done
22056 if test "x$have_zlib" = xyes
22057 then :
22058
22059 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
22060 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
22061 py_check_lib_save_LIBS=$LIBS
22062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
22063 printf %s "checking for inflateCopy in -lz... " >&6; }
22064 if test ${ac_cv_lib_z_inflateCopy+y}
22065 then :
22066 printf %s "(cached) " >&6
22067 else case e in #(
22068 e) ac_check_lib_save_LIBS=$LIBS
22069 LIBS="-lz $LIBS"
22070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22071 /* end confdefs.h. */
22072
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply.
22076 The 'extern "C"' is for builds by C++ compilers;
22077 although this is not generally supported in C code supporting it here
22078 has little cost and some practical benefit (sr 110532). */
22079 #ifdef __cplusplus
22080 extern "C"
22081 #endif
22082 char inflateCopy (void);
22083 int
22084 main (void)
22085 {
22086 return inflateCopy ();
22087 ;
22088 return 0;
22089 }
22090 _ACEOF
22091 if ac_fn_c_try_link "$LINENO"
22092 then :
22093 ac_cv_lib_z_inflateCopy=yes
22094 else case e in #(
22095 e) ac_cv_lib_z_inflateCopy=no ;;
22096 esac
22097 fi
22098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22099 conftest$ac_exeext conftest.$ac_ext
22100 LIBS=$ac_check_lib_save_LIBS ;;
22101 esac
22102 fi
22103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
22104 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
22105 if test "x$ac_cv_lib_z_inflateCopy" = xyes
22106 then :
22107 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22108
22109 fi
22110
22111 LIBS=$py_check_lib_save_LIBS
22112
22113
22114 fi
22115
22116 CFLAGS=$save_CFLAGS
22117 CPPFLAGS=$save_CPPFLAGS
22118 LDFLAGS=$save_LDFLAGS
22119 LIBS=$save_LIBS
22120
22121
22122
22123 elif test $pkg_failed = untried; then
22124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22125 printf "%s\n" "no" >&6; }
22126
22127 save_CFLAGS=$CFLAGS
22128 save_CPPFLAGS=$CPPFLAGS
22129 save_LDFLAGS=$LDFLAGS
22130 save_LIBS=$LIBS
22131
22132
22133 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
22134 LIBS="$LIBS $ZLIB_LIBS"
22135 for ac_header in zlib.h
22136 do :
22137 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22138 if test "x$ac_cv_header_zlib_h" = xyes
22139 then :
22140 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
22141
22142 py_check_lib_save_LIBS=$LIBS
22143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
22144 printf %s "checking for gzread in -lz... " >&6; }
22145 if test ${ac_cv_lib_z_gzread+y}
22146 then :
22147 printf %s "(cached) " >&6
22148 else case e in #(
22149 e) ac_check_lib_save_LIBS=$LIBS
22150 LIBS="-lz $LIBS"
22151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h. */
22153
22154 /* Override any GCC internal prototype to avoid an error.
22155 Use char because int might match the return type of a GCC
22156 builtin and then its argument prototype would still apply.
22157 The 'extern "C"' is for builds by C++ compilers;
22158 although this is not generally supported in C code supporting it here
22159 has little cost and some practical benefit (sr 110532). */
22160 #ifdef __cplusplus
22161 extern "C"
22162 #endif
22163 char gzread (void);
22164 int
22165 main (void)
22166 {
22167 return gzread ();
22168 ;
22169 return 0;
22170 }
22171 _ACEOF
22172 if ac_fn_c_try_link "$LINENO"
22173 then :
22174 ac_cv_lib_z_gzread=yes
22175 else case e in #(
22176 e) ac_cv_lib_z_gzread=no ;;
22177 esac
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS ;;
22182 esac
22183 fi
22184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
22185 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
22186 if test "x$ac_cv_lib_z_gzread" = xyes
22187 then :
22188 have_zlib=yes
22189 else case e in #(
22190 e) have_zlib=no ;;
22191 esac
22192 fi
22193
22194 LIBS=$py_check_lib_save_LIBS
22195
22196
22197 else case e in #(
22198 e) have_zlib=no ;;
22199 esac
22200 fi
22201
22202 done
22203 if test "x$have_zlib" = xyes
22204 then :
22205
22206 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
22207 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
22208 py_check_lib_save_LIBS=$LIBS
22209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
22210 printf %s "checking for inflateCopy in -lz... " >&6; }
22211 if test ${ac_cv_lib_z_inflateCopy+y}
22212 then :
22213 printf %s "(cached) " >&6
22214 else case e in #(
22215 e) ac_check_lib_save_LIBS=$LIBS
22216 LIBS="-lz $LIBS"
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h. */
22219
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply.
22223 The 'extern "C"' is for builds by C++ compilers;
22224 although this is not generally supported in C code supporting it here
22225 has little cost and some practical benefit (sr 110532). */
22226 #ifdef __cplusplus
22227 extern "C"
22228 #endif
22229 char inflateCopy (void);
22230 int
22231 main (void)
22232 {
22233 return inflateCopy ();
22234 ;
22235 return 0;
22236 }
22237 _ACEOF
22238 if ac_fn_c_try_link "$LINENO"
22239 then :
22240 ac_cv_lib_z_inflateCopy=yes
22241 else case e in #(
22242 e) ac_cv_lib_z_inflateCopy=no ;;
22243 esac
22244 fi
22245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22246 conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS ;;
22248 esac
22249 fi
22250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
22251 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
22252 if test "x$ac_cv_lib_z_inflateCopy" = xyes
22253 then :
22254 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22255
22256 fi
22257
22258 LIBS=$py_check_lib_save_LIBS
22259
22260
22261 fi
22262
22263 CFLAGS=$save_CFLAGS
22264 CPPFLAGS=$save_CPPFLAGS
22265 LDFLAGS=$save_LDFLAGS
22266 LIBS=$save_LIBS
22267
22268
22269
22270 else
22271 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
22272 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 printf "%s\n" "yes" >&6; }
22275
22276 have_zlib=yes
22277 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22278
22279
22280 fi
22281
22282 if test "x$have_zlib" = xyes
22283 then :
22284
22285 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
22286 BINASCII_LIBS="$ZLIB_LIBS"
22287
22288 fi
22289
22290
22291
22292
22293 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
22294 then :
22295
22296 BZIP2_CFLAGS="-sUSE_BZIP2"
22297 BZIP2_LIBS="-sUSE_BZIP2"
22298
22299 fi
22300
22301
22302
22303
22304
22305 pkg_failed=no
22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
22307 printf %s "checking for bzip2... " >&6; }
22308
22309 if test -n "$BZIP2_CFLAGS"; then
22310 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
22311 elif test -n "$PKG_CONFIG"; then
22312 if test -n "$PKG_CONFIG" && \
22313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
22314 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
22315 ac_status=$?
22316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22317 test $ac_status = 0; }; then
22318 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
22319 test "x$?" != "x0" && pkg_failed=yes
22320 else
22321 pkg_failed=yes
22322 fi
22323 else
22324 pkg_failed=untried
22325 fi
22326 if test -n "$BZIP2_LIBS"; then
22327 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
22328 elif test -n "$PKG_CONFIG"; then
22329 if test -n "$PKG_CONFIG" && \
22330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
22331 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
22332 ac_status=$?
22333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22334 test $ac_status = 0; }; then
22335 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
22336 test "x$?" != "x0" && pkg_failed=yes
22337 else
22338 pkg_failed=yes
22339 fi
22340 else
22341 pkg_failed=untried
22342 fi
22343
22344
22345
22346 if test $pkg_failed = yes; then
22347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22348 printf "%s\n" "no" >&6; }
22349
22350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22351 _pkg_short_errors_supported=yes
22352 else
22353 _pkg_short_errors_supported=no
22354 fi
22355 if test $_pkg_short_errors_supported = yes; then
22356 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
22357 else
22358 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
22359 fi
22360 # Put the nasty error message in config.log where it belongs
22361 echo "$BZIP2_PKG_ERRORS" >&5
22362
22363
22364 save_CFLAGS=$CFLAGS
22365 save_CPPFLAGS=$CPPFLAGS
22366 save_LDFLAGS=$LDFLAGS
22367 save_LIBS=$LIBS
22368
22369
22370 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
22371 LIBS="$LIBS $BZIP2_LIBS"
22372 for ac_header in bzlib.h
22373 do :
22374 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
22375 if test "x$ac_cv_header_bzlib_h" = xyes
22376 then :
22377 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
22378
22379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
22380 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
22381 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
22382 then :
22383 printf %s "(cached) " >&6
22384 else case e in #(
22385 e) ac_check_lib_save_LIBS=$LIBS
22386 LIBS="-lbz2 $LIBS"
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22389
22390 /* Override any GCC internal prototype to avoid an error.
22391 Use char because int might match the return type of a GCC
22392 builtin and then its argument prototype would still apply.
22393 The 'extern "C"' is for builds by C++ compilers;
22394 although this is not generally supported in C code supporting it here
22395 has little cost and some practical benefit (sr 110532). */
22396 #ifdef __cplusplus
22397 extern "C"
22398 #endif
22399 char BZ2_bzCompress (void);
22400 int
22401 main (void)
22402 {
22403 return BZ2_bzCompress ();
22404 ;
22405 return 0;
22406 }
22407 _ACEOF
22408 if ac_fn_c_try_link "$LINENO"
22409 then :
22410 ac_cv_lib_bz2_BZ2_bzCompress=yes
22411 else case e in #(
22412 e) ac_cv_lib_bz2_BZ2_bzCompress=no ;;
22413 esac
22414 fi
22415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS ;;
22418 esac
22419 fi
22420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
22421 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
22422 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
22423 then :
22424 have_bzip2=yes
22425 else case e in #(
22426 e) have_bzip2=no ;;
22427 esac
22428 fi
22429
22430
22431 else case e in #(
22432 e) have_bzip2=no ;;
22433 esac
22434 fi
22435
22436 done
22437 if test "x$have_bzip2" = xyes
22438 then :
22439
22440 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
22441 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
22442
22443 fi
22444
22445 CFLAGS=$save_CFLAGS
22446 CPPFLAGS=$save_CPPFLAGS
22447 LDFLAGS=$save_LDFLAGS
22448 LIBS=$save_LIBS
22449
22450
22451
22452 elif test $pkg_failed = untried; then
22453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 printf "%s\n" "no" >&6; }
22455
22456 save_CFLAGS=$CFLAGS
22457 save_CPPFLAGS=$CPPFLAGS
22458 save_LDFLAGS=$LDFLAGS
22459 save_LIBS=$LIBS
22460
22461
22462 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
22463 LIBS="$LIBS $BZIP2_LIBS"
22464 for ac_header in bzlib.h
22465 do :
22466 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
22467 if test "x$ac_cv_header_bzlib_h" = xyes
22468 then :
22469 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
22470
22471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
22472 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
22473 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
22474 then :
22475 printf %s "(cached) " >&6
22476 else case e in #(
22477 e) ac_check_lib_save_LIBS=$LIBS
22478 LIBS="-lbz2 $LIBS"
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22481
22482 /* Override any GCC internal prototype to avoid an error.
22483 Use char because int might match the return type of a GCC
22484 builtin and then its argument prototype would still apply.
22485 The 'extern "C"' is for builds by C++ compilers;
22486 although this is not generally supported in C code supporting it here
22487 has little cost and some practical benefit (sr 110532). */
22488 #ifdef __cplusplus
22489 extern "C"
22490 #endif
22491 char BZ2_bzCompress (void);
22492 int
22493 main (void)
22494 {
22495 return BZ2_bzCompress ();
22496 ;
22497 return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_link "$LINENO"
22501 then :
22502 ac_cv_lib_bz2_BZ2_bzCompress=yes
22503 else case e in #(
22504 e) ac_cv_lib_bz2_BZ2_bzCompress=no ;;
22505 esac
22506 fi
22507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22508 conftest$ac_exeext conftest.$ac_ext
22509 LIBS=$ac_check_lib_save_LIBS ;;
22510 esac
22511 fi
22512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
22513 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
22514 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
22515 then :
22516 have_bzip2=yes
22517 else case e in #(
22518 e) have_bzip2=no ;;
22519 esac
22520 fi
22521
22522
22523 else case e in #(
22524 e) have_bzip2=no ;;
22525 esac
22526 fi
22527
22528 done
22529 if test "x$have_bzip2" = xyes
22530 then :
22531
22532 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
22533 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
22534
22535 fi
22536
22537 CFLAGS=$save_CFLAGS
22538 CPPFLAGS=$save_CPPFLAGS
22539 LDFLAGS=$save_LDFLAGS
22540 LIBS=$save_LIBS
22541
22542
22543
22544 else
22545 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
22546 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
22547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22548 printf "%s\n" "yes" >&6; }
22549 have_bzip2=yes
22550 fi
22551
22552
22553 pkg_failed=no
22554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
22555 printf %s "checking for liblzma... " >&6; }
22556
22557 if test -n "$LIBLZMA_CFLAGS"; then
22558 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
22559 elif test -n "$PKG_CONFIG"; then
22560 if test -n "$PKG_CONFIG" && \
22561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
22562 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
22563 ac_status=$?
22564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22565 test $ac_status = 0; }; then
22566 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
22567 test "x$?" != "x0" && pkg_failed=yes
22568 else
22569 pkg_failed=yes
22570 fi
22571 else
22572 pkg_failed=untried
22573 fi
22574 if test -n "$LIBLZMA_LIBS"; then
22575 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
22576 elif test -n "$PKG_CONFIG"; then
22577 if test -n "$PKG_CONFIG" && \
22578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
22579 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
22580 ac_status=$?
22581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; then
22583 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
22584 test "x$?" != "x0" && pkg_failed=yes
22585 else
22586 pkg_failed=yes
22587 fi
22588 else
22589 pkg_failed=untried
22590 fi
22591
22592
22593
22594 if test $pkg_failed = yes; then
22595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22596 printf "%s\n" "no" >&6; }
22597
22598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22599 _pkg_short_errors_supported=yes
22600 else
22601 _pkg_short_errors_supported=no
22602 fi
22603 if test $_pkg_short_errors_supported = yes; then
22604 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
22605 else
22606 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
22607 fi
22608 # Put the nasty error message in config.log where it belongs
22609 echo "$LIBLZMA_PKG_ERRORS" >&5
22610
22611
22612 save_CFLAGS=$CFLAGS
22613 save_CPPFLAGS=$CPPFLAGS
22614 save_LDFLAGS=$LDFLAGS
22615 save_LIBS=$LIBS
22616
22617
22618 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
22619 LIBS="$LIBS $LIBLZMA_LIBS"
22620 for ac_header in lzma.h
22621 do :
22622 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
22623 if test "x$ac_cv_header_lzma_h" = xyes
22624 then :
22625 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
22626
22627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
22628 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
22629 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
22630 then :
22631 printf %s "(cached) " >&6
22632 else case e in #(
22633 e) ac_check_lib_save_LIBS=$LIBS
22634 LIBS="-llzma $LIBS"
22635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22636 /* end confdefs.h. */
22637
22638 /* Override any GCC internal prototype to avoid an error.
22639 Use char because int might match the return type of a GCC
22640 builtin and then its argument prototype would still apply.
22641 The 'extern "C"' is for builds by C++ compilers;
22642 although this is not generally supported in C code supporting it here
22643 has little cost and some practical benefit (sr 110532). */
22644 #ifdef __cplusplus
22645 extern "C"
22646 #endif
22647 char lzma_easy_encoder (void);
22648 int
22649 main (void)
22650 {
22651 return lzma_easy_encoder ();
22652 ;
22653 return 0;
22654 }
22655 _ACEOF
22656 if ac_fn_c_try_link "$LINENO"
22657 then :
22658 ac_cv_lib_lzma_lzma_easy_encoder=yes
22659 else case e in #(
22660 e) ac_cv_lib_lzma_lzma_easy_encoder=no ;;
22661 esac
22662 fi
22663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22664 conftest$ac_exeext conftest.$ac_ext
22665 LIBS=$ac_check_lib_save_LIBS ;;
22666 esac
22667 fi
22668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
22669 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
22670 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
22671 then :
22672 have_liblzma=yes
22673 else case e in #(
22674 e) have_liblzma=no ;;
22675 esac
22676 fi
22677
22678
22679 else case e in #(
22680 e) have_liblzma=no ;;
22681 esac
22682 fi
22683
22684 done
22685 if test "x$have_liblzma" = xyes
22686 then :
22687
22688 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
22689 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
22690
22691 fi
22692
22693 CFLAGS=$save_CFLAGS
22694 CPPFLAGS=$save_CPPFLAGS
22695 LDFLAGS=$save_LDFLAGS
22696 LIBS=$save_LIBS
22697
22698
22699
22700 elif test $pkg_failed = untried; then
22701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702 printf "%s\n" "no" >&6; }
22703
22704 save_CFLAGS=$CFLAGS
22705 save_CPPFLAGS=$CPPFLAGS
22706 save_LDFLAGS=$LDFLAGS
22707 save_LIBS=$LIBS
22708
22709
22710 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
22711 LIBS="$LIBS $LIBLZMA_LIBS"
22712 for ac_header in lzma.h
22713 do :
22714 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
22715 if test "x$ac_cv_header_lzma_h" = xyes
22716 then :
22717 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
22718
22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
22720 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
22721 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
22722 then :
22723 printf %s "(cached) " >&6
22724 else case e in #(
22725 e) ac_check_lib_save_LIBS=$LIBS
22726 LIBS="-llzma $LIBS"
22727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22728 /* end confdefs.h. */
22729
22730 /* Override any GCC internal prototype to avoid an error.
22731 Use char because int might match the return type of a GCC
22732 builtin and then its argument prototype would still apply.
22733 The 'extern "C"' is for builds by C++ compilers;
22734 although this is not generally supported in C code supporting it here
22735 has little cost and some practical benefit (sr 110532). */
22736 #ifdef __cplusplus
22737 extern "C"
22738 #endif
22739 char lzma_easy_encoder (void);
22740 int
22741 main (void)
22742 {
22743 return lzma_easy_encoder ();
22744 ;
22745 return 0;
22746 }
22747 _ACEOF
22748 if ac_fn_c_try_link "$LINENO"
22749 then :
22750 ac_cv_lib_lzma_lzma_easy_encoder=yes
22751 else case e in #(
22752 e) ac_cv_lib_lzma_lzma_easy_encoder=no ;;
22753 esac
22754 fi
22755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22756 conftest$ac_exeext conftest.$ac_ext
22757 LIBS=$ac_check_lib_save_LIBS ;;
22758 esac
22759 fi
22760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
22761 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
22762 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
22763 then :
22764 have_liblzma=yes
22765 else case e in #(
22766 e) have_liblzma=no ;;
22767 esac
22768 fi
22769
22770
22771 else case e in #(
22772 e) have_liblzma=no ;;
22773 esac
22774 fi
22775
22776 done
22777 if test "x$have_liblzma" = xyes
22778 then :
22779
22780 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
22781 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
22782
22783 fi
22784
22785 CFLAGS=$save_CFLAGS
22786 CPPFLAGS=$save_CPPFLAGS
22787 LDFLAGS=$save_LDFLAGS
22788 LIBS=$save_LIBS
22789
22790
22791
22792 else
22793 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
22794 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
22795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22796 printf "%s\n" "yes" >&6; }
22797 have_liblzma=yes
22798 fi
22799
22800
22801 pkg_failed=no
22802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.5" >&5
22803 printf %s "checking for libzstd >= 1.4.5... " >&6; }
22804
22805 if test -n "$LIBZSTD_CFLAGS"; then
22806 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
22807 elif test -n "$PKG_CONFIG"; then
22808 if test -n "$PKG_CONFIG" && \
22809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.5\""; } >&5
22810 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.5") 2>&5
22811 ac_status=$?
22812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; then
22814 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.5" 2>/dev/null`
22815 test "x$?" != "x0" && pkg_failed=yes
22816 else
22817 pkg_failed=yes
22818 fi
22819 else
22820 pkg_failed=untried
22821 fi
22822 if test -n "$LIBZSTD_LIBS"; then
22823 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
22824 elif test -n "$PKG_CONFIG"; then
22825 if test -n "$PKG_CONFIG" && \
22826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.5\""; } >&5
22827 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.5") 2>&5
22828 ac_status=$?
22829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830 test $ac_status = 0; }; then
22831 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.5" 2>/dev/null`
22832 test "x$?" != "x0" && pkg_failed=yes
22833 else
22834 pkg_failed=yes
22835 fi
22836 else
22837 pkg_failed=untried
22838 fi
22839
22840
22841
22842 if test $pkg_failed = yes; then
22843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22844 printf "%s\n" "no" >&6; }
22845
22846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22847 _pkg_short_errors_supported=yes
22848 else
22849 _pkg_short_errors_supported=no
22850 fi
22851 if test $_pkg_short_errors_supported = yes; then
22852 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.5" 2>&1`
22853 else
22854 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.5" 2>&1`
22855 fi
22856 # Put the nasty error message in config.log where it belongs
22857 echo "$LIBZSTD_PKG_ERRORS" >&5
22858
22859
22860 save_CFLAGS=$CFLAGS
22861 save_CPPFLAGS=$CPPFLAGS
22862 save_LDFLAGS=$LDFLAGS
22863 save_LIBS=$LIBS
22864
22865
22866 CPPFLAGS="$CPPFLAGS $LIBZSTD_CFLAGS"
22867 CFLAGS="$CFLAGS $LIBZSTD_CFLAGS"
22868 LIBS="$LIBS $LIBZSTD_LIBS"
22869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZDICT_finalizeDictionary" >&5
22870 printf %s "checking for library containing ZDICT_finalizeDictionary... " >&6; }
22871 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22872 then :
22873 printf %s "(cached) " >&6
22874 else case e in #(
22875 e) ac_func_search_save_LIBS=$LIBS
22876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22877 /* end confdefs.h. */
22878
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply.
22882 The 'extern "C"' is for builds by C++ compilers;
22883 although this is not generally supported in C code supporting it here
22884 has little cost and some practical benefit (sr 110532). */
22885 #ifdef __cplusplus
22886 extern "C"
22887 #endif
22888 char ZDICT_finalizeDictionary (void);
22889 int
22890 main (void)
22891 {
22892 return ZDICT_finalizeDictionary ();
22893 ;
22894 return 0;
22895 }
22896 _ACEOF
22897 for ac_lib in '' zstd
22898 do
22899 if test -z "$ac_lib"; then
22900 ac_res="none required"
22901 else
22902 ac_res=-l$ac_lib
22903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22904 fi
22905 if ac_fn_c_try_link "$LINENO"
22906 then :
22907 ac_cv_search_ZDICT_finalizeDictionary=$ac_res
22908 fi
22909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22910 conftest$ac_exeext
22911 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22912 then :
22913 break
22914 fi
22915 done
22916 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22917 then :
22918
22919 else case e in #(
22920 e) ac_cv_search_ZDICT_finalizeDictionary=no ;;
22921 esac
22922 fi
22923 rm conftest.$ac_ext
22924 LIBS=$ac_func_search_save_LIBS ;;
22925 esac
22926 fi
22927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZDICT_finalizeDictionary" >&5
22928 printf "%s\n" "$ac_cv_search_ZDICT_finalizeDictionary" >&6; }
22929 ac_res=$ac_cv_search_ZDICT_finalizeDictionary
22930 if test "$ac_res" != no
22931 then :
22932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22933
22934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ZSTD_VERSION_NUMBER >= 1.4.5" >&5
22935 printf %s "checking ZSTD_VERSION_NUMBER >= 1.4.5... " >&6; }
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22938
22939 #include "zstd.h"
22940 int
22941 main (void)
22942 {
22943
22944 #if ZSTD_VERSION_NUMBER < 10405
22945 # error "zstd version is too old"
22946 #endif
22947
22948 ;
22949 return 0;
22950 }
22951
22952 _ACEOF
22953 if ac_fn_c_try_compile "$LINENO"
22954 then :
22955
22956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22957 printf "%s\n" "yes" >&6; }
22958 for ac_header in zstd.h zdict.h
22959 do :
22960 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
22961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22962 if eval test \"x\$"$as_ac_Header"\" = x"yes"
22963 then :
22964 cat >>confdefs.h <<_ACEOF
22965 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
22966 _ACEOF
22967 have_libzstd=yes
22968 else case e in #(
22969 e) have_libzstd=no ;;
22970 esac
22971 fi
22972
22973 done
22974
22975 else case e in #(
22976 e)
22977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22978 printf "%s\n" "no" >&6; }
22979 have_libzstd=no
22980 ;;
22981 esac
22982 fi
22983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22984
22985 else case e in #(
22986 e) have_libzstd=no ;;
22987 esac
22988 fi
22989
22990 if test "x$have_libzstd" = xyes
22991 then :
22992
22993 LIBZSTD_CFLAGS=${LIBZSTD_CFLAGS-""}
22994 LIBZSTD_LIBS=${LIBZSTD_LIBS-"-lzstd"}
22995
22996 fi
22997
22998 CFLAGS=$save_CFLAGS
22999 CPPFLAGS=$save_CPPFLAGS
23000 LDFLAGS=$save_LDFLAGS
23001 LIBS=$save_LIBS
23002
23003
23004
23005 elif test $pkg_failed = untried; then
23006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23007 printf "%s\n" "no" >&6; }
23008
23009 save_CFLAGS=$CFLAGS
23010 save_CPPFLAGS=$CPPFLAGS
23011 save_LDFLAGS=$LDFLAGS
23012 save_LIBS=$LIBS
23013
23014
23015 CPPFLAGS="$CPPFLAGS $LIBZSTD_CFLAGS"
23016 CFLAGS="$CFLAGS $LIBZSTD_CFLAGS"
23017 LIBS="$LIBS $LIBZSTD_LIBS"
23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZDICT_finalizeDictionary" >&5
23019 printf %s "checking for library containing ZDICT_finalizeDictionary... " >&6; }
23020 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
23021 then :
23022 printf %s "(cached) " >&6
23023 else case e in #(
23024 e) ac_func_search_save_LIBS=$LIBS
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027
23028 /* Override any GCC internal prototype to avoid an error.
23029 Use char because int might match the return type of a GCC
23030 builtin and then its argument prototype would still apply.
23031 The 'extern "C"' is for builds by C++ compilers;
23032 although this is not generally supported in C code supporting it here
23033 has little cost and some practical benefit (sr 110532). */
23034 #ifdef __cplusplus
23035 extern "C"
23036 #endif
23037 char ZDICT_finalizeDictionary (void);
23038 int
23039 main (void)
23040 {
23041 return ZDICT_finalizeDictionary ();
23042 ;
23043 return 0;
23044 }
23045 _ACEOF
23046 for ac_lib in '' zstd
23047 do
23048 if test -z "$ac_lib"; then
23049 ac_res="none required"
23050 else
23051 ac_res=-l$ac_lib
23052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23053 fi
23054 if ac_fn_c_try_link "$LINENO"
23055 then :
23056 ac_cv_search_ZDICT_finalizeDictionary=$ac_res
23057 fi
23058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23059 conftest$ac_exeext
23060 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
23061 then :
23062 break
23063 fi
23064 done
23065 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
23066 then :
23067
23068 else case e in #(
23069 e) ac_cv_search_ZDICT_finalizeDictionary=no ;;
23070 esac
23071 fi
23072 rm conftest.$ac_ext
23073 LIBS=$ac_func_search_save_LIBS ;;
23074 esac
23075 fi
23076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZDICT_finalizeDictionary" >&5
23077 printf "%s\n" "$ac_cv_search_ZDICT_finalizeDictionary" >&6; }
23078 ac_res=$ac_cv_search_ZDICT_finalizeDictionary
23079 if test "$ac_res" != no
23080 then :
23081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23082
23083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ZSTD_VERSION_NUMBER >= 1.4.5" >&5
23084 printf %s "checking ZSTD_VERSION_NUMBER >= 1.4.5... " >&6; }
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23087
23088 #include "zstd.h"
23089 int
23090 main (void)
23091 {
23092
23093 #if ZSTD_VERSION_NUMBER < 10405
23094 # error "zstd version is too old"
23095 #endif
23096
23097 ;
23098 return 0;
23099 }
23100
23101 _ACEOF
23102 if ac_fn_c_try_compile "$LINENO"
23103 then :
23104
23105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23106 printf "%s\n" "yes" >&6; }
23107 for ac_header in zstd.h zdict.h
23108 do :
23109 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
23110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23111 if eval test \"x\$"$as_ac_Header"\" = x"yes"
23112 then :
23113 cat >>confdefs.h <<_ACEOF
23114 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
23115 _ACEOF
23116 have_libzstd=yes
23117 else case e in #(
23118 e) have_libzstd=no ;;
23119 esac
23120 fi
23121
23122 done
23123
23124 else case e in #(
23125 e)
23126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127 printf "%s\n" "no" >&6; }
23128 have_libzstd=no
23129 ;;
23130 esac
23131 fi
23132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23133
23134 else case e in #(
23135 e) have_libzstd=no ;;
23136 esac
23137 fi
23138
23139 if test "x$have_libzstd" = xyes
23140 then :
23141
23142 LIBZSTD_CFLAGS=${LIBZSTD_CFLAGS-""}
23143 LIBZSTD_LIBS=${LIBZSTD_LIBS-"-lzstd"}
23144
23145 fi
23146
23147 CFLAGS=$save_CFLAGS
23148 CPPFLAGS=$save_CPPFLAGS
23149 LDFLAGS=$save_LDFLAGS
23150 LIBS=$save_LIBS
23151
23152
23153
23154 else
23155 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
23156 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
23157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23158 printf "%s\n" "yes" >&6; }
23159 have_libzstd=yes
23160 fi
23161
23162
23163
23164
23165
23166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
23167 printf %s "checking for hstrerror... " >&6; }
23168 if test ${ac_cv_func_hstrerror+y}
23169 then :
23170 printf %s "(cached) " >&6
23171 else case e in #(
23172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23173 /* end confdefs.h. */
23174 #include <netdb.h>
23175 int
23176 main (void)
23177 {
23178 void *x=hstrerror
23179 ;
23180 return 0;
23181 }
23182 _ACEOF
23183 if ac_fn_c_try_compile "$LINENO"
23184 then :
23185 ac_cv_func_hstrerror=yes
23186 else case e in #(
23187 e) ac_cv_func_hstrerror=no ;;
23188 esac
23189 fi
23190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23191 ;;
23192 esac
23193 fi
23194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
23195 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
23196 if test "x$ac_cv_func_hstrerror" = xyes
23197 then :
23198
23199 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
23200
23201 fi
23202
23203
23204
23205
23206
23207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
23208 printf %s "checking for getservbyname... " >&6; }
23209 if test ${ac_cv_func_getservbyname+y}
23210 then :
23211 printf %s "(cached) " >&6
23212 else case e in #(
23213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h. */
23215 #include <netdb.h>
23216 int
23217 main (void)
23218 {
23219 void *x=getservbyname
23220 ;
23221 return 0;
23222 }
23223 _ACEOF
23224 if ac_fn_c_try_compile "$LINENO"
23225 then :
23226 ac_cv_func_getservbyname=yes
23227 else case e in #(
23228 e) ac_cv_func_getservbyname=no ;;
23229 esac
23230 fi
23231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23232 ;;
23233 esac
23234 fi
23235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
23236 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
23237 if test "x$ac_cv_func_getservbyname" = xyes
23238 then :
23239
23240 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
23241
23242 fi
23243
23244
23245
23246
23247
23248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
23249 printf %s "checking for getservbyport... " >&6; }
23250 if test ${ac_cv_func_getservbyport+y}
23251 then :
23252 printf %s "(cached) " >&6
23253 else case e in #(
23254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23255 /* end confdefs.h. */
23256 #include <netdb.h>
23257 int
23258 main (void)
23259 {
23260 void *x=getservbyport
23261 ;
23262 return 0;
23263 }
23264 _ACEOF
23265 if ac_fn_c_try_compile "$LINENO"
23266 then :
23267 ac_cv_func_getservbyport=yes
23268 else case e in #(
23269 e) ac_cv_func_getservbyport=no ;;
23270 esac
23271 fi
23272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23273 ;;
23274 esac
23275 fi
23276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
23277 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
23278 if test "x$ac_cv_func_getservbyport" = xyes
23279 then :
23280
23281 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
23282
23283 fi
23284
23285
23286
23287
23288
23289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
23290 printf %s "checking for gethostbyname... " >&6; }
23291 if test ${ac_cv_func_gethostbyname+y}
23292 then :
23293 printf %s "(cached) " >&6
23294 else case e in #(
23295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23297 #include <netdb.h>
23298 int
23299 main (void)
23300 {
23301 void *x=gethostbyname
23302 ;
23303 return 0;
23304 }
23305 _ACEOF
23306 if ac_fn_c_try_compile "$LINENO"
23307 then :
23308 ac_cv_func_gethostbyname=yes
23309 else case e in #(
23310 e) ac_cv_func_gethostbyname=no ;;
23311 esac
23312 fi
23313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23314 ;;
23315 esac
23316 fi
23317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
23318 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
23319 if test "x$ac_cv_func_gethostbyname" = xyes
23320 then :
23321
23322 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23323
23324 fi
23325
23326
23327
23328
23329
23330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
23331 printf %s "checking for gethostbyaddr... " >&6; }
23332 if test ${ac_cv_func_gethostbyaddr+y}
23333 then :
23334 printf %s "(cached) " >&6
23335 else case e in #(
23336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23338 #include <netdb.h>
23339 int
23340 main (void)
23341 {
23342 void *x=gethostbyaddr
23343 ;
23344 return 0;
23345 }
23346 _ACEOF
23347 if ac_fn_c_try_compile "$LINENO"
23348 then :
23349 ac_cv_func_gethostbyaddr=yes
23350 else case e in #(
23351 e) ac_cv_func_gethostbyaddr=no ;;
23352 esac
23353 fi
23354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23355 ;;
23356 esac
23357 fi
23358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
23359 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
23360 if test "x$ac_cv_func_gethostbyaddr" = xyes
23361 then :
23362
23363 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
23364
23365 fi
23366
23367
23368
23369
23370
23371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
23372 printf %s "checking for getprotobyname... " >&6; }
23373 if test ${ac_cv_func_getprotobyname+y}
23374 then :
23375 printf %s "(cached) " >&6
23376 else case e in #(
23377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23379 #include <netdb.h>
23380 int
23381 main (void)
23382 {
23383 void *x=getprotobyname
23384 ;
23385 return 0;
23386 }
23387 _ACEOF
23388 if ac_fn_c_try_compile "$LINENO"
23389 then :
23390 ac_cv_func_getprotobyname=yes
23391 else case e in #(
23392 e) ac_cv_func_getprotobyname=no ;;
23393 esac
23394 fi
23395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23396 ;;
23397 esac
23398 fi
23399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
23400 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
23401 if test "x$ac_cv_func_getprotobyname" = xyes
23402 then :
23403
23404 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
23405
23406 fi
23407
23408
23409
23410
23411
23412
23413
23414
23415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
23416 printf %s "checking for inet_aton... " >&6; }
23417 if test ${ac_cv_func_inet_aton+y}
23418 then :
23419 printf %s "(cached) " >&6
23420 else case e in #(
23421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23422 /* end confdefs.h. */
23423
23424 #include <sys/types.h>
23425 #include <sys/socket.h>
23426 #include <netinet/in.h>
23427 #include <arpa/inet.h>
23428
23429 int
23430 main (void)
23431 {
23432 void *x=inet_aton
23433 ;
23434 return 0;
23435 }
23436 _ACEOF
23437 if ac_fn_c_try_compile "$LINENO"
23438 then :
23439 ac_cv_func_inet_aton=yes
23440 else case e in #(
23441 e) ac_cv_func_inet_aton=no ;;
23442 esac
23443 fi
23444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23445 ;;
23446 esac
23447 fi
23448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
23449 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
23450 if test "x$ac_cv_func_inet_aton" = xyes
23451 then :
23452
23453 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
23454
23455 fi
23456
23457
23458
23459
23460
23461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
23462 printf %s "checking for inet_ntoa... " >&6; }
23463 if test ${ac_cv_func_inet_ntoa+y}
23464 then :
23465 printf %s "(cached) " >&6
23466 else case e in #(
23467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468 /* end confdefs.h. */
23469
23470 #include <sys/types.h>
23471 #include <sys/socket.h>
23472 #include <netinet/in.h>
23473 #include <arpa/inet.h>
23474
23475 int
23476 main (void)
23477 {
23478 void *x=inet_ntoa
23479 ;
23480 return 0;
23481 }
23482 _ACEOF
23483 if ac_fn_c_try_compile "$LINENO"
23484 then :
23485 ac_cv_func_inet_ntoa=yes
23486 else case e in #(
23487 e) ac_cv_func_inet_ntoa=no ;;
23488 esac
23489 fi
23490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23491 ;;
23492 esac
23493 fi
23494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
23495 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
23496 if test "x$ac_cv_func_inet_ntoa" = xyes
23497 then :
23498
23499 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
23500
23501 fi
23502
23503
23504
23505
23506
23507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
23508 printf %s "checking for inet_pton... " >&6; }
23509 if test ${ac_cv_func_inet_pton+y}
23510 then :
23511 printf %s "(cached) " >&6
23512 else case e in #(
23513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23515
23516 #include <sys/types.h>
23517 #include <sys/socket.h>
23518 #include <netinet/in.h>
23519 #include <arpa/inet.h>
23520
23521 int
23522 main (void)
23523 {
23524 void *x=inet_pton
23525 ;
23526 return 0;
23527 }
23528 _ACEOF
23529 if ac_fn_c_try_compile "$LINENO"
23530 then :
23531 ac_cv_func_inet_pton=yes
23532 else case e in #(
23533 e) ac_cv_func_inet_pton=no ;;
23534 esac
23535 fi
23536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23537 ;;
23538 esac
23539 fi
23540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
23541 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
23542 if test "x$ac_cv_func_inet_pton" = xyes
23543 then :
23544
23545 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
23546
23547 fi
23548
23549
23550
23551
23552
23553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
23554 printf %s "checking for getpeername... " >&6; }
23555 if test ${ac_cv_func_getpeername+y}
23556 then :
23557 printf %s "(cached) " >&6
23558 else case e in #(
23559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561
23562 #include <sys/types.h>
23563 #include <sys/socket.h>
23564 #include <netinet/in.h>
23565 #include <arpa/inet.h>
23566
23567 int
23568 main (void)
23569 {
23570 void *x=getpeername
23571 ;
23572 return 0;
23573 }
23574 _ACEOF
23575 if ac_fn_c_try_compile "$LINENO"
23576 then :
23577 ac_cv_func_getpeername=yes
23578 else case e in #(
23579 e) ac_cv_func_getpeername=no ;;
23580 esac
23581 fi
23582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23583 ;;
23584 esac
23585 fi
23586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
23587 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
23588 if test "x$ac_cv_func_getpeername" = xyes
23589 then :
23590
23591 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
23592
23593 fi
23594
23595
23596
23597
23598
23599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
23600 printf %s "checking for getsockname... " >&6; }
23601 if test ${ac_cv_func_getsockname+y}
23602 then :
23603 printf %s "(cached) " >&6
23604 else case e in #(
23605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23607
23608 #include <sys/types.h>
23609 #include <sys/socket.h>
23610 #include <netinet/in.h>
23611 #include <arpa/inet.h>
23612
23613 int
23614 main (void)
23615 {
23616 void *x=getsockname
23617 ;
23618 return 0;
23619 }
23620 _ACEOF
23621 if ac_fn_c_try_compile "$LINENO"
23622 then :
23623 ac_cv_func_getsockname=yes
23624 else case e in #(
23625 e) ac_cv_func_getsockname=no ;;
23626 esac
23627 fi
23628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23629 ;;
23630 esac
23631 fi
23632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
23633 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
23634 if test "x$ac_cv_func_getsockname" = xyes
23635 then :
23636
23637 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
23638
23639 fi
23640
23641
23642
23643
23644
23645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
23646 printf %s "checking for accept... " >&6; }
23647 if test ${ac_cv_func_accept+y}
23648 then :
23649 printf %s "(cached) " >&6
23650 else case e in #(
23651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23652 /* end confdefs.h. */
23653
23654 #include <sys/types.h>
23655 #include <sys/socket.h>
23656 #include <netinet/in.h>
23657 #include <arpa/inet.h>
23658
23659 int
23660 main (void)
23661 {
23662 void *x=accept
23663 ;
23664 return 0;
23665 }
23666 _ACEOF
23667 if ac_fn_c_try_compile "$LINENO"
23668 then :
23669 ac_cv_func_accept=yes
23670 else case e in #(
23671 e) ac_cv_func_accept=no ;;
23672 esac
23673 fi
23674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23675 ;;
23676 esac
23677 fi
23678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
23679 printf "%s\n" "$ac_cv_func_accept" >&6; }
23680 if test "x$ac_cv_func_accept" = xyes
23681 then :
23682
23683 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
23684
23685 fi
23686
23687
23688
23689
23690
23691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
23692 printf %s "checking for bind... " >&6; }
23693 if test ${ac_cv_func_bind+y}
23694 then :
23695 printf %s "(cached) " >&6
23696 else case e in #(
23697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23699
23700 #include <sys/types.h>
23701 #include <sys/socket.h>
23702 #include <netinet/in.h>
23703 #include <arpa/inet.h>
23704
23705 int
23706 main (void)
23707 {
23708 void *x=bind
23709 ;
23710 return 0;
23711 }
23712 _ACEOF
23713 if ac_fn_c_try_compile "$LINENO"
23714 then :
23715 ac_cv_func_bind=yes
23716 else case e in #(
23717 e) ac_cv_func_bind=no ;;
23718 esac
23719 fi
23720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23721 ;;
23722 esac
23723 fi
23724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
23725 printf "%s\n" "$ac_cv_func_bind" >&6; }
23726 if test "x$ac_cv_func_bind" = xyes
23727 then :
23728
23729 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
23730
23731 fi
23732
23733
23734
23735
23736
23737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
23738 printf %s "checking for connect... " >&6; }
23739 if test ${ac_cv_func_connect+y}
23740 then :
23741 printf %s "(cached) " >&6
23742 else case e in #(
23743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23744 /* end confdefs.h. */
23745
23746 #include <sys/types.h>
23747 #include <sys/socket.h>
23748 #include <netinet/in.h>
23749 #include <arpa/inet.h>
23750
23751 int
23752 main (void)
23753 {
23754 void *x=connect
23755 ;
23756 return 0;
23757 }
23758 _ACEOF
23759 if ac_fn_c_try_compile "$LINENO"
23760 then :
23761 ac_cv_func_connect=yes
23762 else case e in #(
23763 e) ac_cv_func_connect=no ;;
23764 esac
23765 fi
23766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23767 ;;
23768 esac
23769 fi
23770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
23771 printf "%s\n" "$ac_cv_func_connect" >&6; }
23772 if test "x$ac_cv_func_connect" = xyes
23773 then :
23774
23775 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
23776
23777 fi
23778
23779
23780
23781
23782
23783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
23784 printf %s "checking for listen... " >&6; }
23785 if test ${ac_cv_func_listen+y}
23786 then :
23787 printf %s "(cached) " >&6
23788 else case e in #(
23789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790 /* end confdefs.h. */
23791
23792 #include <sys/types.h>
23793 #include <sys/socket.h>
23794 #include <netinet/in.h>
23795 #include <arpa/inet.h>
23796
23797 int
23798 main (void)
23799 {
23800 void *x=listen
23801 ;
23802 return 0;
23803 }
23804 _ACEOF
23805 if ac_fn_c_try_compile "$LINENO"
23806 then :
23807 ac_cv_func_listen=yes
23808 else case e in #(
23809 e) ac_cv_func_listen=no ;;
23810 esac
23811 fi
23812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23813 ;;
23814 esac
23815 fi
23816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
23817 printf "%s\n" "$ac_cv_func_listen" >&6; }
23818 if test "x$ac_cv_func_listen" = xyes
23819 then :
23820
23821 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
23822
23823 fi
23824
23825
23826
23827
23828
23829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
23830 printf %s "checking for recvfrom... " >&6; }
23831 if test ${ac_cv_func_recvfrom+y}
23832 then :
23833 printf %s "(cached) " >&6
23834 else case e in #(
23835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23836 /* end confdefs.h. */
23837
23838 #include <sys/types.h>
23839 #include <sys/socket.h>
23840 #include <netinet/in.h>
23841 #include <arpa/inet.h>
23842
23843 int
23844 main (void)
23845 {
23846 void *x=recvfrom
23847 ;
23848 return 0;
23849 }
23850 _ACEOF
23851 if ac_fn_c_try_compile "$LINENO"
23852 then :
23853 ac_cv_func_recvfrom=yes
23854 else case e in #(
23855 e) ac_cv_func_recvfrom=no ;;
23856 esac
23857 fi
23858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23859 ;;
23860 esac
23861 fi
23862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
23863 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
23864 if test "x$ac_cv_func_recvfrom" = xyes
23865 then :
23866
23867 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
23868
23869 fi
23870
23871
23872
23873
23874
23875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
23876 printf %s "checking for sendto... " >&6; }
23877 if test ${ac_cv_func_sendto+y}
23878 then :
23879 printf %s "(cached) " >&6
23880 else case e in #(
23881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h. */
23883
23884 #include <sys/types.h>
23885 #include <sys/socket.h>
23886 #include <netinet/in.h>
23887 #include <arpa/inet.h>
23888
23889 int
23890 main (void)
23891 {
23892 void *x=sendto
23893 ;
23894 return 0;
23895 }
23896 _ACEOF
23897 if ac_fn_c_try_compile "$LINENO"
23898 then :
23899 ac_cv_func_sendto=yes
23900 else case e in #(
23901 e) ac_cv_func_sendto=no ;;
23902 esac
23903 fi
23904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23905 ;;
23906 esac
23907 fi
23908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
23909 printf "%s\n" "$ac_cv_func_sendto" >&6; }
23910 if test "x$ac_cv_func_sendto" = xyes
23911 then :
23912
23913 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
23914
23915 fi
23916
23917
23918
23919
23920
23921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
23922 printf %s "checking for setsockopt... " >&6; }
23923 if test ${ac_cv_func_setsockopt+y}
23924 then :
23925 printf %s "(cached) " >&6
23926 else case e in #(
23927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23928 /* end confdefs.h. */
23929
23930 #include <sys/types.h>
23931 #include <sys/socket.h>
23932 #include <netinet/in.h>
23933 #include <arpa/inet.h>
23934
23935 int
23936 main (void)
23937 {
23938 void *x=setsockopt
23939 ;
23940 return 0;
23941 }
23942 _ACEOF
23943 if ac_fn_c_try_compile "$LINENO"
23944 then :
23945 ac_cv_func_setsockopt=yes
23946 else case e in #(
23947 e) ac_cv_func_setsockopt=no ;;
23948 esac
23949 fi
23950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23951 ;;
23952 esac
23953 fi
23954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
23955 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
23956 if test "x$ac_cv_func_setsockopt" = xyes
23957 then :
23958
23959 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
23960
23961 fi
23962
23963
23964
23965
23966
23967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
23968 printf %s "checking for socket... " >&6; }
23969 if test ${ac_cv_func_socket+y}
23970 then :
23971 printf %s "(cached) " >&6
23972 else case e in #(
23973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23975
23976 #include <sys/types.h>
23977 #include <sys/socket.h>
23978 #include <netinet/in.h>
23979 #include <arpa/inet.h>
23980
23981 int
23982 main (void)
23983 {
23984 void *x=socket
23985 ;
23986 return 0;
23987 }
23988 _ACEOF
23989 if ac_fn_c_try_compile "$LINENO"
23990 then :
23991 ac_cv_func_socket=yes
23992 else case e in #(
23993 e) ac_cv_func_socket=no ;;
23994 esac
23995 fi
23996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23997 ;;
23998 esac
23999 fi
24000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
24001 printf "%s\n" "$ac_cv_func_socket" >&6; }
24002 if test "x$ac_cv_func_socket" = xyes
24003 then :
24004
24005 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
24006
24007 fi
24008
24009
24010
24011
24012 # On some systems, setgroups is in unistd.h, on others, in grp.h
24013
24014
24015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
24016 printf %s "checking for setgroups... " >&6; }
24017 if test ${ac_cv_func_setgroups+y}
24018 then :
24019 printf %s "(cached) " >&6
24020 else case e in #(
24021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24023
24024 #include <unistd.h>
24025 #ifdef HAVE_GRP_H
24026 #include <grp.h>
24027 #endif
24028
24029 int
24030 main (void)
24031 {
24032 void *x=setgroups
24033 ;
24034 return 0;
24035 }
24036 _ACEOF
24037 if ac_fn_c_try_compile "$LINENO"
24038 then :
24039 ac_cv_func_setgroups=yes
24040 else case e in #(
24041 e) ac_cv_func_setgroups=no ;;
24042 esac
24043 fi
24044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24045 ;;
24046 esac
24047 fi
24048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
24049 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
24050 if test "x$ac_cv_func_setgroups" = xyes
24051 then :
24052
24053 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
24054
24055 fi
24056
24057
24058
24059
24060 ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
24061 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24062 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
24063 then :
24064
24065 printf "%s\n" "#define HAVE_MAXLOGNAME 1" >>confdefs.h
24066
24067 fi
24068
24069 ac_fn_check_decl "$LINENO" "UT_NAMESIZE" "ac_cv_have_decl_UT_NAMESIZE" "#include <utmp.h>
24070 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24071 if test "x$ac_cv_have_decl_UT_NAMESIZE" = xyes
24072 then :
24073 ac_have_decl=1
24074 else case e in #(
24075 e) ac_have_decl=0 ;;
24076 esac
24077 fi
24078 printf "%s\n" "#define HAVE_DECL_UT_NAMESIZE $ac_have_decl" >>confdefs.h
24079 if test $ac_have_decl = 1
24080 then :
24081
24082 printf "%s\n" "#define HAVE_UT_NAMESIZE 1" >>confdefs.h
24083
24084 fi
24085
24086
24087 # check for openpty, login_tty, and forkpty
24088
24089
24090 for ac_func in openpty
24091 do :
24092 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
24093 if test "x$ac_cv_func_openpty" = xyes
24094 then :
24095 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24096
24097 else case e in #(
24098 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
24099 printf %s "checking for openpty in -lutil... " >&6; }
24100 if test ${ac_cv_lib_util_openpty+y}
24101 then :
24102 printf %s "(cached) " >&6
24103 else case e in #(
24104 e) ac_check_lib_save_LIBS=$LIBS
24105 LIBS="-lutil $LIBS"
24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h. */
24108
24109 /* Override any GCC internal prototype to avoid an error.
24110 Use char because int might match the return type of a GCC
24111 builtin and then its argument prototype would still apply.
24112 The 'extern "C"' is for builds by C++ compilers;
24113 although this is not generally supported in C code supporting it here
24114 has little cost and some practical benefit (sr 110532). */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char openpty (void);
24119 int
24120 main (void)
24121 {
24122 return openpty ();
24123 ;
24124 return 0;
24125 }
24126 _ACEOF
24127 if ac_fn_c_try_link "$LINENO"
24128 then :
24129 ac_cv_lib_util_openpty=yes
24130 else case e in #(
24131 e) ac_cv_lib_util_openpty=no ;;
24132 esac
24133 fi
24134 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24135 conftest$ac_exeext conftest.$ac_ext
24136 LIBS=$ac_check_lib_save_LIBS ;;
24137 esac
24138 fi
24139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
24140 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
24141 if test "x$ac_cv_lib_util_openpty" = xyes
24142 then :
24143 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24144 LIBS="$LIBS -lutil"
24145 else case e in #(
24146 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
24147 printf %s "checking for openpty in -lbsd... " >&6; }
24148 if test ${ac_cv_lib_bsd_openpty+y}
24149 then :
24150 printf %s "(cached) " >&6
24151 else case e in #(
24152 e) ac_check_lib_save_LIBS=$LIBS
24153 LIBS="-lbsd $LIBS"
24154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155 /* end confdefs.h. */
24156
24157 /* Override any GCC internal prototype to avoid an error.
24158 Use char because int might match the return type of a GCC
24159 builtin and then its argument prototype would still apply.
24160 The 'extern "C"' is for builds by C++ compilers;
24161 although this is not generally supported in C code supporting it here
24162 has little cost and some practical benefit (sr 110532). */
24163 #ifdef __cplusplus
24164 extern "C"
24165 #endif
24166 char openpty (void);
24167 int
24168 main (void)
24169 {
24170 return openpty ();
24171 ;
24172 return 0;
24173 }
24174 _ACEOF
24175 if ac_fn_c_try_link "$LINENO"
24176 then :
24177 ac_cv_lib_bsd_openpty=yes
24178 else case e in #(
24179 e) ac_cv_lib_bsd_openpty=no ;;
24180 esac
24181 fi
24182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24183 conftest$ac_exeext conftest.$ac_ext
24184 LIBS=$ac_check_lib_save_LIBS ;;
24185 esac
24186 fi
24187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
24188 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
24189 if test "x$ac_cv_lib_bsd_openpty" = xyes
24190 then :
24191 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24192 LIBS="$LIBS -lbsd"
24193 fi
24194 ;;
24195 esac
24196 fi
24197 ;;
24198 esac
24199 fi
24200
24201 done
24202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
24203 printf %s "checking for library containing login_tty... " >&6; }
24204 if test ${ac_cv_search_login_tty+y}
24205 then :
24206 printf %s "(cached) " >&6
24207 else case e in #(
24208 e) ac_func_search_save_LIBS=$LIBS
24209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210 /* end confdefs.h. */
24211
24212 /* Override any GCC internal prototype to avoid an error.
24213 Use char because int might match the return type of a GCC
24214 builtin and then its argument prototype would still apply.
24215 The 'extern "C"' is for builds by C++ compilers;
24216 although this is not generally supported in C code supporting it here
24217 has little cost and some practical benefit (sr 110532). */
24218 #ifdef __cplusplus
24219 extern "C"
24220 #endif
24221 char login_tty (void);
24222 int
24223 main (void)
24224 {
24225 return login_tty ();
24226 ;
24227 return 0;
24228 }
24229 _ACEOF
24230 for ac_lib in '' util
24231 do
24232 if test -z "$ac_lib"; then
24233 ac_res="none required"
24234 else
24235 ac_res=-l$ac_lib
24236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24237 fi
24238 if ac_fn_c_try_link "$LINENO"
24239 then :
24240 ac_cv_search_login_tty=$ac_res
24241 fi
24242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24243 conftest$ac_exeext
24244 if test ${ac_cv_search_login_tty+y}
24245 then :
24246 break
24247 fi
24248 done
24249 if test ${ac_cv_search_login_tty+y}
24250 then :
24251
24252 else case e in #(
24253 e) ac_cv_search_login_tty=no ;;
24254 esac
24255 fi
24256 rm conftest.$ac_ext
24257 LIBS=$ac_func_search_save_LIBS ;;
24258 esac
24259 fi
24260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
24261 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
24262 ac_res=$ac_cv_search_login_tty
24263 if test "$ac_res" != no
24264 then :
24265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24266
24267 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
24268
24269
24270 fi
24271
24272
24273 for ac_func in forkpty
24274 do :
24275 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
24276 if test "x$ac_cv_func_forkpty" = xyes
24277 then :
24278 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24279
24280 else case e in #(
24281 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
24282 printf %s "checking for forkpty in -lutil... " >&6; }
24283 if test ${ac_cv_lib_util_forkpty+y}
24284 then :
24285 printf %s "(cached) " >&6
24286 else case e in #(
24287 e) ac_check_lib_save_LIBS=$LIBS
24288 LIBS="-lutil $LIBS"
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h. */
24291
24292 /* Override any GCC internal prototype to avoid an error.
24293 Use char because int might match the return type of a GCC
24294 builtin and then its argument prototype would still apply.
24295 The 'extern "C"' is for builds by C++ compilers;
24296 although this is not generally supported in C code supporting it here
24297 has little cost and some practical benefit (sr 110532). */
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 char forkpty (void);
24302 int
24303 main (void)
24304 {
24305 return forkpty ();
24306 ;
24307 return 0;
24308 }
24309 _ACEOF
24310 if ac_fn_c_try_link "$LINENO"
24311 then :
24312 ac_cv_lib_util_forkpty=yes
24313 else case e in #(
24314 e) ac_cv_lib_util_forkpty=no ;;
24315 esac
24316 fi
24317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24318 conftest$ac_exeext conftest.$ac_ext
24319 LIBS=$ac_check_lib_save_LIBS ;;
24320 esac
24321 fi
24322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
24323 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
24324 if test "x$ac_cv_lib_util_forkpty" = xyes
24325 then :
24326 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24327 LIBS="$LIBS -lutil"
24328 else case e in #(
24329 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
24330 printf %s "checking for forkpty in -lbsd... " >&6; }
24331 if test ${ac_cv_lib_bsd_forkpty+y}
24332 then :
24333 printf %s "(cached) " >&6
24334 else case e in #(
24335 e) ac_check_lib_save_LIBS=$LIBS
24336 LIBS="-lbsd $LIBS"
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h. */
24339
24340 /* Override any GCC internal prototype to avoid an error.
24341 Use char because int might match the return type of a GCC
24342 builtin and then its argument prototype would still apply.
24343 The 'extern "C"' is for builds by C++ compilers;
24344 although this is not generally supported in C code supporting it here
24345 has little cost and some practical benefit (sr 110532). */
24346 #ifdef __cplusplus
24347 extern "C"
24348 #endif
24349 char forkpty (void);
24350 int
24351 main (void)
24352 {
24353 return forkpty ();
24354 ;
24355 return 0;
24356 }
24357 _ACEOF
24358 if ac_fn_c_try_link "$LINENO"
24359 then :
24360 ac_cv_lib_bsd_forkpty=yes
24361 else case e in #(
24362 e) ac_cv_lib_bsd_forkpty=no ;;
24363 esac
24364 fi
24365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24366 conftest$ac_exeext conftest.$ac_ext
24367 LIBS=$ac_check_lib_save_LIBS ;;
24368 esac
24369 fi
24370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
24371 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
24372 if test "x$ac_cv_lib_bsd_forkpty" = xyes
24373 then :
24374 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24375 LIBS="$LIBS -lbsd"
24376 fi
24377 ;;
24378 esac
24379 fi
24380 ;;
24381 esac
24382 fi
24383
24384 done
24385
24386 # check for long file support functions
24387 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
24388 if test "x$ac_cv_func_fseek64" = xyes
24389 then :
24390 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
24391
24392 fi
24393 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
24394 if test "x$ac_cv_func_fseeko" = xyes
24395 then :
24396 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
24397
24398 fi
24399 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
24400 if test "x$ac_cv_func_fstatvfs" = xyes
24401 then :
24402 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
24403
24404 fi
24405 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
24406 if test "x$ac_cv_func_ftell64" = xyes
24407 then :
24408 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
24409
24410 fi
24411 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
24412 if test "x$ac_cv_func_ftello" = xyes
24413 then :
24414 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
24415
24416 fi
24417 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
24418 if test "x$ac_cv_func_statvfs" = xyes
24419 then :
24420 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
24421
24422 fi
24423
24424
24425 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24426 if test "x$ac_cv_func_dup2" = xyes
24427 then :
24428 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
24429
24430 else case e in #(
24431 e) case " $LIBOBJS " in
24432 *" dup2.$ac_objext "* ) ;;
24433 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
24434 ;;
24435 esac
24436 ;;
24437 esac
24438 fi
24439
24440
24441 for ac_func in getpgrp
24442 do :
24443 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
24444 if test "x$ac_cv_func_getpgrp" = xyes
24445 then :
24446 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24449 #include <unistd.h>
24450 int
24451 main (void)
24452 {
24453 getpgrp(0);
24454 ;
24455 return 0;
24456 }
24457 _ACEOF
24458 if ac_fn_c_try_compile "$LINENO"
24459 then :
24460
24461 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
24462
24463 fi
24464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24465 fi
24466
24467 done
24468
24469 for ac_func in setpgrp
24470 do :
24471 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
24472 if test "x$ac_cv_func_setpgrp" = xyes
24473 then :
24474 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24477 #include <unistd.h>
24478 int
24479 main (void)
24480 {
24481 setpgrp(0,0);
24482 ;
24483 return 0;
24484 }
24485 _ACEOF
24486 if ac_fn_c_try_compile "$LINENO"
24487 then :
24488
24489 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
24490
24491 fi
24492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24493 fi
24494
24495 done
24496
24497 # check for namespace functions
24498 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
24499 if test "x$ac_cv_func_setns" = xyes
24500 then :
24501 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
24502
24503 fi
24504 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
24505 if test "x$ac_cv_func_unshare" = xyes
24506 then :
24507 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
24508
24509 fi
24510
24511
24512
24513 for ac_func in clock_gettime
24514 do :
24515 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
24516 if test "x$ac_cv_func_clock_gettime" = xyes
24517 then :
24518 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24519
24520 else case e in #(
24521 e)
24522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24523 printf %s "checking for clock_gettime in -lrt... " >&6; }
24524 if test ${ac_cv_lib_rt_clock_gettime+y}
24525 then :
24526 printf %s "(cached) " >&6
24527 else case e in #(
24528 e) ac_check_lib_save_LIBS=$LIBS
24529 LIBS="-lrt $LIBS"
24530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531 /* end confdefs.h. */
24532
24533 /* Override any GCC internal prototype to avoid an error.
24534 Use char because int might match the return type of a GCC
24535 builtin and then its argument prototype would still apply.
24536 The 'extern "C"' is for builds by C++ compilers;
24537 although this is not generally supported in C code supporting it here
24538 has little cost and some practical benefit (sr 110532). */
24539 #ifdef __cplusplus
24540 extern "C"
24541 #endif
24542 char clock_gettime (void);
24543 int
24544 main (void)
24545 {
24546 return clock_gettime ();
24547 ;
24548 return 0;
24549 }
24550 _ACEOF
24551 if ac_fn_c_try_link "$LINENO"
24552 then :
24553 ac_cv_lib_rt_clock_gettime=yes
24554 else case e in #(
24555 e) ac_cv_lib_rt_clock_gettime=no ;;
24556 esac
24557 fi
24558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24559 conftest$ac_exeext conftest.$ac_ext
24560 LIBS=$ac_check_lib_save_LIBS ;;
24561 esac
24562 fi
24563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24564 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
24565 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
24566 then :
24567
24568 LIBS="$LIBS -lrt"
24569 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24570
24571
24572 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
24573
24574
24575 fi
24576
24577 ;;
24578 esac
24579 fi
24580
24581 done
24582
24583
24584 for ac_func in clock_getres
24585 do :
24586 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
24587 if test "x$ac_cv_func_clock_getres" = xyes
24588 then :
24589 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
24590
24591 else case e in #(
24592 e)
24593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
24594 printf %s "checking for clock_getres in -lrt... " >&6; }
24595 if test ${ac_cv_lib_rt_clock_getres+y}
24596 then :
24597 printf %s "(cached) " >&6
24598 else case e in #(
24599 e) ac_check_lib_save_LIBS=$LIBS
24600 LIBS="-lrt $LIBS"
24601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24602 /* end confdefs.h. */
24603
24604 /* Override any GCC internal prototype to avoid an error.
24605 Use char because int might match the return type of a GCC
24606 builtin and then its argument prototype would still apply.
24607 The 'extern "C"' is for builds by C++ compilers;
24608 although this is not generally supported in C code supporting it here
24609 has little cost and some practical benefit (sr 110532). */
24610 #ifdef __cplusplus
24611 extern "C"
24612 #endif
24613 char clock_getres (void);
24614 int
24615 main (void)
24616 {
24617 return clock_getres ();
24618 ;
24619 return 0;
24620 }
24621 _ACEOF
24622 if ac_fn_c_try_link "$LINENO"
24623 then :
24624 ac_cv_lib_rt_clock_getres=yes
24625 else case e in #(
24626 e) ac_cv_lib_rt_clock_getres=no ;;
24627 esac
24628 fi
24629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24630 conftest$ac_exeext conftest.$ac_ext
24631 LIBS=$ac_check_lib_save_LIBS ;;
24632 esac
24633 fi
24634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
24635 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
24636 if test "x$ac_cv_lib_rt_clock_getres" = xyes
24637 then :
24638
24639 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
24640
24641
24642 fi
24643
24644 ;;
24645 esac
24646 fi
24647
24648 done
24649
24650 # On Android and iOS, clock_settime can be linked (so it is found by
24651 # configure), but when used in an unprivileged process, it crashes rather than
24652 # returning an error. Force the symbol off.
24653 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
24654 then
24655
24656 for ac_func in clock_settime
24657 do :
24658 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
24659 if test "x$ac_cv_func_clock_settime" = xyes
24660 then :
24661 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
24662
24663 else case e in #(
24664 e)
24665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
24666 printf %s "checking for clock_settime in -lrt... " >&6; }
24667 if test ${ac_cv_lib_rt_clock_settime+y}
24668 then :
24669 printf %s "(cached) " >&6
24670 else case e in #(
24671 e) ac_check_lib_save_LIBS=$LIBS
24672 LIBS="-lrt $LIBS"
24673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h. */
24675
24676 /* Override any GCC internal prototype to avoid an error.
24677 Use char because int might match the return type of a GCC
24678 builtin and then its argument prototype would still apply.
24679 The 'extern "C"' is for builds by C++ compilers;
24680 although this is not generally supported in C code supporting it here
24681 has little cost and some practical benefit (sr 110532). */
24682 #ifdef __cplusplus
24683 extern "C"
24684 #endif
24685 char clock_settime (void);
24686 int
24687 main (void)
24688 {
24689 return clock_settime ();
24690 ;
24691 return 0;
24692 }
24693 _ACEOF
24694 if ac_fn_c_try_link "$LINENO"
24695 then :
24696 ac_cv_lib_rt_clock_settime=yes
24697 else case e in #(
24698 e) ac_cv_lib_rt_clock_settime=no ;;
24699 esac
24700 fi
24701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24702 conftest$ac_exeext conftest.$ac_ext
24703 LIBS=$ac_check_lib_save_LIBS ;;
24704 esac
24705 fi
24706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
24707 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
24708 if test "x$ac_cv_lib_rt_clock_settime" = xyes
24709 then :
24710
24711 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
24712
24713
24714 fi
24715
24716 ;;
24717 esac
24718 fi
24719
24720 done
24721 fi
24722
24723 # On Android before API level 23, clock_nanosleep returns the wrong value when
24724 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
24725 if ! { test "$ac_sys_system" = "Linux-android" &&
24726 test "$ANDROID_API_LEVEL" -lt 23; }; then
24727
24728 for ac_func in clock_nanosleep
24729 do :
24730 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
24731 if test "x$ac_cv_func_clock_nanosleep" = xyes
24732 then :
24733 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
24734
24735 else case e in #(
24736 e)
24737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
24738 printf %s "checking for clock_nanosleep in -lrt... " >&6; }
24739 if test ${ac_cv_lib_rt_clock_nanosleep+y}
24740 then :
24741 printf %s "(cached) " >&6
24742 else case e in #(
24743 e) ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lrt $LIBS"
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24747
24748 /* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply.
24751 The 'extern "C"' is for builds by C++ compilers;
24752 although this is not generally supported in C code supporting it here
24753 has little cost and some practical benefit (sr 110532). */
24754 #ifdef __cplusplus
24755 extern "C"
24756 #endif
24757 char clock_nanosleep (void);
24758 int
24759 main (void)
24760 {
24761 return clock_nanosleep ();
24762 ;
24763 return 0;
24764 }
24765 _ACEOF
24766 if ac_fn_c_try_link "$LINENO"
24767 then :
24768 ac_cv_lib_rt_clock_nanosleep=yes
24769 else case e in #(
24770 e) ac_cv_lib_rt_clock_nanosleep=no ;;
24771 esac
24772 fi
24773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24774 conftest$ac_exeext conftest.$ac_ext
24775 LIBS=$ac_check_lib_save_LIBS ;;
24776 esac
24777 fi
24778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
24779 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
24780 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
24781 then :
24782
24783 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
24784
24785
24786 fi
24787
24788 ;;
24789 esac
24790 fi
24791
24792 done
24793 fi
24794
24795
24796 for ac_func in nanosleep
24797 do :
24798 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24799 if test "x$ac_cv_func_nanosleep" = xyes
24800 then :
24801 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24802
24803 else case e in #(
24804 e)
24805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
24806 printf %s "checking for nanosleep in -lrt... " >&6; }
24807 if test ${ac_cv_lib_rt_nanosleep+y}
24808 then :
24809 printf %s "(cached) " >&6
24810 else case e in #(
24811 e) ac_check_lib_save_LIBS=$LIBS
24812 LIBS="-lrt $LIBS"
24813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h. */
24815
24816 /* Override any GCC internal prototype to avoid an error.
24817 Use char because int might match the return type of a GCC
24818 builtin and then its argument prototype would still apply.
24819 The 'extern "C"' is for builds by C++ compilers;
24820 although this is not generally supported in C code supporting it here
24821 has little cost and some practical benefit (sr 110532). */
24822 #ifdef __cplusplus
24823 extern "C"
24824 #endif
24825 char nanosleep (void);
24826 int
24827 main (void)
24828 {
24829 return nanosleep ();
24830 ;
24831 return 0;
24832 }
24833 _ACEOF
24834 if ac_fn_c_try_link "$LINENO"
24835 then :
24836 ac_cv_lib_rt_nanosleep=yes
24837 else case e in #(
24838 e) ac_cv_lib_rt_nanosleep=no ;;
24839 esac
24840 fi
24841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24842 conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS ;;
24844 esac
24845 fi
24846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
24847 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
24848 if test "x$ac_cv_lib_rt_nanosleep" = xyes
24849 then :
24850
24851 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24852
24853
24854 fi
24855
24856 ;;
24857 esac
24858 fi
24859
24860 done
24861
24862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
24863 printf %s "checking for major, minor, and makedev... " >&6; }
24864 if test ${ac_cv_device_macros+y}
24865 then :
24866 printf %s "(cached) " >&6
24867 else case e in #(
24868 e)
24869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870 /* end confdefs.h. */
24871
24872 #if defined(MAJOR_IN_MKDEV)
24873 #include <sys/mkdev.h>
24874 #elif defined(MAJOR_IN_SYSMACROS)
24875 #include <sys/types.h>
24876 #include <sys/sysmacros.h>
24877 #else
24878 #include <sys/types.h>
24879 #endif
24880
24881 int
24882 main (void)
24883 {
24884
24885 makedev(major(0),minor(0));
24886
24887 ;
24888 return 0;
24889 }
24890 _ACEOF
24891 if ac_fn_c_try_link "$LINENO"
24892 then :
24893 ac_cv_device_macros=yes
24894 else case e in #(
24895 e) ac_cv_device_macros=no ;;
24896 esac
24897 fi
24898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24899 conftest$ac_exeext conftest.$ac_ext
24900 ;;
24901 esac
24902 fi
24903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
24904 printf "%s\n" "$ac_cv_device_macros" >&6; }
24905 if test "x$ac_cv_device_macros" = xyes
24906 then :
24907
24908
24909 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
24910
24911
24912 fi
24913
24914
24915 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
24916
24917
24918 # On OSF/1 V5.1, getaddrinfo is available, but a define
24919 # for [no]getaddrinfo in netdb.h.
24920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
24921 printf %s "checking for getaddrinfo... " >&6; }
24922 if test ${ac_cv_func_getaddrinfo+y}
24923 then :
24924 printf %s "(cached) " >&6
24925 else case e in #(
24926 e)
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928 /* end confdefs.h. */
24929
24930 #include <sys/types.h>
24931 #include <sys/socket.h>
24932 #include <netdb.h>
24933 #include <stdio.h>
24934
24935 int
24936 main (void)
24937 {
24938 getaddrinfo(NULL, NULL, NULL, NULL);
24939 ;
24940 return 0;
24941 }
24942 _ACEOF
24943 if ac_fn_c_try_link "$LINENO"
24944 then :
24945 ac_cv_func_getaddrinfo=yes
24946 else case e in #(
24947 e) ac_cv_func_getaddrinfo=no ;;
24948 esac
24949 fi
24950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24951 conftest$ac_exeext conftest.$ac_ext
24952 ;;
24953 esac
24954 fi
24955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
24956 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
24957
24958 if test "x$ac_cv_func_getaddrinfo" = xyes
24959 then :
24960
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
24962 printf %s "checking getaddrinfo bug... " >&6; }
24963 if test ${ac_cv_buggy_getaddrinfo+y}
24964 then :
24965 printf %s "(cached) " >&6
24966 else case e in #(
24967 e) if test "$cross_compiling" = yes
24968 then :
24969
24970 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
24971 ac_cv_buggy_getaddrinfo="no"
24972 elif test "${enable_ipv6+set}" = set; then
24973 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
24974 else
24975 ac_cv_buggy_getaddrinfo=yes
24976 fi
24977 else case e in #(
24978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24979 /* end confdefs.h. */
24980
24981 #include <stdio.h>
24982 #include <sys/types.h>
24983 #include <netdb.h>
24984 #include <string.h>
24985 #include <sys/socket.h>
24986 #include <netinet/in.h>
24987
24988 int main(void)
24989 {
24990 int passive, gaierr, inet4 = 0, inet6 = 0;
24991 struct addrinfo hints, *ai, *aitop;
24992 char straddr[INET6_ADDRSTRLEN], strport[16];
24993
24994 for (passive = 0; passive <= 1; passive++) {
24995 memset(&hints, 0, sizeof(hints));
24996 hints.ai_family = AF_UNSPEC;
24997 hints.ai_flags = passive ? AI_PASSIVE : 0;
24998 hints.ai_socktype = SOCK_STREAM;
24999 hints.ai_protocol = IPPROTO_TCP;
25000 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
25001 (void)gai_strerror(gaierr);
25002 goto bad;
25003 }
25004 for (ai = aitop; ai; ai = ai->ai_next) {
25005 if (ai->ai_addr == NULL ||
25006 ai->ai_addrlen == 0 ||
25007 getnameinfo(ai->ai_addr, ai->ai_addrlen,
25008 straddr, sizeof(straddr), strport, sizeof(strport),
25009 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
25010 goto bad;
25011 }
25012 switch (ai->ai_family) {
25013 case AF_INET:
25014 if (strcmp(strport, "54321") != 0) {
25015 goto bad;
25016 }
25017 if (passive) {
25018 if (strcmp(straddr, "0.0.0.0") != 0) {
25019 goto bad;
25020 }
25021 } else {
25022 if (strcmp(straddr, "127.0.0.1") != 0) {
25023 goto bad;
25024 }
25025 }
25026 inet4++;
25027 break;
25028 case AF_INET6:
25029 if (strcmp(strport, "54321") != 0) {
25030 goto bad;
25031 }
25032 if (passive) {
25033 if (strcmp(straddr, "::") != 0) {
25034 goto bad;
25035 }
25036 } else {
25037 if (strcmp(straddr, "::1") != 0) {
25038 goto bad;
25039 }
25040 }
25041 inet6++;
25042 break;
25043 case AF_UNSPEC:
25044 goto bad;
25045 break;
25046 default:
25047 /* another family support? */
25048 break;
25049 }
25050 }
25051 freeaddrinfo(aitop);
25052 aitop = NULL;
25053 }
25054
25055 if (!(inet4 == 0 || inet4 == 2))
25056 goto bad;
25057 if (!(inet6 == 0 || inet6 == 2))
25058 goto bad;
25059
25060 if (aitop)
25061 freeaddrinfo(aitop);
25062 return 0;
25063
25064 bad:
25065 if (aitop)
25066 freeaddrinfo(aitop);
25067 return 1;
25068 }
25069
25070 _ACEOF
25071 if ac_fn_c_try_run "$LINENO"
25072 then :
25073 ac_cv_buggy_getaddrinfo=no
25074 else case e in #(
25075 e) ac_cv_buggy_getaddrinfo=yes ;;
25076 esac
25077 fi
25078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25079 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25080 esac
25081 fi
25082 ;;
25083 esac
25084 fi
25085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
25086 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
25087
25088
25089 fi
25090
25091 if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
25092 then
25093 if test "x$ipv6" = xyes
25094 then :
25095
25096 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
25097
25098 fi
25099 else
25100
25101 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
25102
25103 fi
25104
25105 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
25106 if test "x$ac_cv_func_getnameinfo" = xyes
25107 then :
25108 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
25109
25110 fi
25111
25112
25113 # checks for structures
25114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25115 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25116 if test ${ac_cv_struct_tm+y}
25117 then :
25118 printf %s "(cached) " >&6
25119 else case e in #(
25120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h. */
25122 #include <sys/types.h>
25123 #include <time.h>
25124
25125 int
25126 main (void)
25127 {
25128 struct tm tm;
25129 int *p = &tm.tm_sec;
25130 return !p;
25131 ;
25132 return 0;
25133 }
25134 _ACEOF
25135 if ac_fn_c_try_compile "$LINENO"
25136 then :
25137 ac_cv_struct_tm=time.h
25138 else case e in #(
25139 e) ac_cv_struct_tm=sys/time.h ;;
25140 esac
25141 fi
25142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25143 esac
25144 fi
25145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25146 printf "%s\n" "$ac_cv_struct_tm" >&6; }
25147 if test $ac_cv_struct_tm = sys/time.h; then
25148
25149 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
25150
25151 fi
25152
25153 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25154 #include <$ac_cv_struct_tm>
25155
25156 "
25157 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
25158 then :
25159
25160 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
25161
25162
25163 fi
25164
25165 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25166
25167 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
25168
25169 else
25170 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25171 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25172 if test "x$ac_cv_have_decl_tzname" = xyes
25173 then :
25174 ac_have_decl=1
25175 else case e in #(
25176 e) ac_have_decl=0 ;;
25177 esac
25178 fi
25179 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
25180
25181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25182 printf %s "checking for tzname... " >&6; }
25183 if test ${ac_cv_var_tzname+y}
25184 then :
25185 printf %s "(cached) " >&6
25186 else case e in #(
25187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25188 /* end confdefs.h. */
25189 #include <time.h>
25190 #if !HAVE_DECL_TZNAME
25191 extern char *tzname[];
25192 #endif
25193
25194 int
25195 main (void)
25196 {
25197 return tzname[0][0];
25198 ;
25199 return 0;
25200 }
25201 _ACEOF
25202 if ac_fn_c_try_link "$LINENO"
25203 then :
25204 ac_cv_var_tzname=yes
25205 else case e in #(
25206 e) ac_cv_var_tzname=no ;;
25207 esac
25208 fi
25209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25210 conftest$ac_exeext conftest.$ac_ext ;;
25211 esac
25212 fi
25213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25214 printf "%s\n" "$ac_cv_var_tzname" >&6; }
25215 if test $ac_cv_var_tzname = yes; then
25216
25217 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
25218
25219 fi
25220 fi
25221
25222 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
25223 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
25224 then :
25225
25226 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
25227
25228
25229 fi
25230
25231 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25232 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
25233 then :
25234
25235 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
25236
25237
25238 fi
25239
25240 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
25241 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
25242 then :
25243
25244 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
25245
25246
25247 fi
25248
25249 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
25250 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
25251 then :
25252
25253 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
25254
25255
25256 fi
25257
25258 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
25259 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
25260 then :
25261
25262 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
25263
25264
25265 fi
25266
25267 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25268 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
25269 then :
25270
25271 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
25272
25273
25274 fi
25275
25276 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
25277 #include <sys/types.h>
25278 #include <pwd.h>
25279
25280 "
25281 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
25282 then :
25283
25284 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
25285
25286
25287 fi
25288 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
25289 #include <sys/types.h>
25290 #include <pwd.h>
25291
25292 "
25293 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
25294 then :
25295
25296 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
25297
25298
25299 fi
25300
25301 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
25302 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
25303 "
25304 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
25305 then :
25306
25307 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
25308
25309
25310 fi
25311
25312
25313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
25314 printf %s "checking for time.h that defines altzone... " >&6; }
25315 if test ${ac_cv_header_time_altzone+y}
25316 then :
25317 printf %s "(cached) " >&6
25318 else case e in #(
25319 e)
25320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25322 #include <time.h>
25323 int
25324 main (void)
25325 {
25326 return altzone;
25327 ;
25328 return 0;
25329 }
25330 _ACEOF
25331 if ac_fn_c_try_compile "$LINENO"
25332 then :
25333 ac_cv_header_time_altzone=yes
25334 else case e in #(
25335 e) ac_cv_header_time_altzone=no ;;
25336 esac
25337 fi
25338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25339 ;;
25340 esac
25341 fi
25342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
25343 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
25344 if test $ac_cv_header_time_altzone = yes; then
25345
25346 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
25347
25348 fi
25349
25350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
25351 printf %s "checking for addrinfo... " >&6; }
25352 if test ${ac_cv_struct_addrinfo+y}
25353 then :
25354 printf %s "(cached) " >&6
25355 else case e in #(
25356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25357 /* end confdefs.h. */
25358 #include <netdb.h>
25359 int
25360 main (void)
25361 {
25362 struct addrinfo a
25363 ;
25364 return 0;
25365 }
25366 _ACEOF
25367 if ac_fn_c_try_compile "$LINENO"
25368 then :
25369 ac_cv_struct_addrinfo=yes
25370 else case e in #(
25371 e) ac_cv_struct_addrinfo=no ;;
25372 esac
25373 fi
25374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25375 esac
25376 fi
25377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
25378 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
25379 if test $ac_cv_struct_addrinfo = yes; then
25380
25381 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
25382
25383 fi
25384
25385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
25386 printf %s "checking for sockaddr_storage... " >&6; }
25387 if test ${ac_cv_struct_sockaddr_storage+y}
25388 then :
25389 printf %s "(cached) " >&6
25390 else case e in #(
25391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392 /* end confdefs.h. */
25393
25394 # include <sys/types.h>
25395 # include <sys/socket.h>
25396 int
25397 main (void)
25398 {
25399 struct sockaddr_storage s
25400 ;
25401 return 0;
25402 }
25403 _ACEOF
25404 if ac_fn_c_try_compile "$LINENO"
25405 then :
25406 ac_cv_struct_sockaddr_storage=yes
25407 else case e in #(
25408 e) ac_cv_struct_sockaddr_storage=no ;;
25409 esac
25410 fi
25411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25412 esac
25413 fi
25414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
25415 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
25416 if test $ac_cv_struct_sockaddr_storage = yes; then
25417
25418 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
25419
25420 fi
25421
25422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
25423 printf %s "checking for sockaddr_alg... " >&6; }
25424 if test ${ac_cv_struct_sockaddr_alg+y}
25425 then :
25426 printf %s "(cached) " >&6
25427 else case e in #(
25428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25430
25431 # include <sys/types.h>
25432 # include <sys/socket.h>
25433 # include <linux/if_alg.h>
25434 int
25435 main (void)
25436 {
25437 struct sockaddr_alg s
25438 ;
25439 return 0;
25440 }
25441 _ACEOF
25442 if ac_fn_c_try_compile "$LINENO"
25443 then :
25444 ac_cv_struct_sockaddr_alg=yes
25445 else case e in #(
25446 e) ac_cv_struct_sockaddr_alg=no ;;
25447 esac
25448 fi
25449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25450 esac
25451 fi
25452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
25453 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
25454 if test $ac_cv_struct_sockaddr_alg = yes; then
25455
25456 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
25457
25458 fi
25459
25460 # checks for compiler characteristics
25461
25462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25463 printf %s "checking for an ANSI C-conforming const... " >&6; }
25464 if test ${ac_cv_c_const+y}
25465 then :
25466 printf %s "(cached) " >&6
25467 else case e in #(
25468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25470
25471 int
25472 main (void)
25473 {
25474
25475 #ifndef __cplusplus
25476 /* Ultrix mips cc rejects this sort of thing. */
25477 typedef int charset[2];
25478 const charset cs = { 0, 0 };
25479 /* SunOS 4.1.1 cc rejects this. */
25480 char const *const *pcpcc;
25481 char **ppc;
25482 /* NEC SVR4.0.2 mips cc rejects this. */
25483 struct point {int x, y;};
25484 static struct point const zero = {0,0};
25485 /* IBM XL C 1.02.0.0 rejects this.
25486 It does not let you subtract one const X* pointer from another in
25487 an arm of an if-expression whose if-part is not a constant
25488 expression */
25489 const char *g = "string";
25490 pcpcc = &g + (g ? g-g : 0);
25491 /* HPUX 7.0 cc rejects these. */
25492 ++pcpcc;
25493 ppc = (char**) pcpcc;
25494 pcpcc = (char const *const *) ppc;
25495 { /* SCO 3.2v4 cc rejects this sort of thing. */
25496 char tx;
25497 char *t = &tx;
25498 char const *s = 0 ? (char *) 0 : (char const *) 0;
25499
25500 *t++ = 0;
25501 if (s) return 0;
25502 }
25503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25504 int x[] = {25, 17};
25505 const int *foo = &x[0];
25506 ++foo;
25507 }
25508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25509 typedef const int *iptr;
25510 iptr p = 0;
25511 ++p;
25512 }
25513 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
25514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25515 struct s { int j; const int *ap[3]; } bx;
25516 struct s *b = &bx; b->j = 5;
25517 }
25518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25519 const int foo = 10;
25520 if (!foo) return 0;
25521 }
25522 return !cs[0] && !zero.x;
25523 #endif
25524
25525 ;
25526 return 0;
25527 }
25528 _ACEOF
25529 if ac_fn_c_try_compile "$LINENO"
25530 then :
25531 ac_cv_c_const=yes
25532 else case e in #(
25533 e) ac_cv_c_const=no ;;
25534 esac
25535 fi
25536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25537 esac
25538 fi
25539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25540 printf "%s\n" "$ac_cv_c_const" >&6; }
25541 if test $ac_cv_c_const = no; then
25542
25543 printf "%s\n" "#define const /**/" >>confdefs.h
25544
25545 fi
25546
25547
25548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
25549 printf %s "checking for working signed char... " >&6; }
25550 if test ${ac_cv_working_signed_char_c+y}
25551 then :
25552 printf %s "(cached) " >&6
25553 else case e in #(
25554 e)
25555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556 /* end confdefs.h. */
25557
25558 int
25559 main (void)
25560 {
25561 signed char c;
25562 ;
25563 return 0;
25564 }
25565 _ACEOF
25566 if ac_fn_c_try_compile "$LINENO"
25567 then :
25568 ac_cv_working_signed_char_c=yes
25569 else case e in #(
25570 e) ac_cv_working_signed_char_c=no ;;
25571 esac
25572 fi
25573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25574 ;;
25575 esac
25576 fi
25577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
25578 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
25579 if test "x$ac_cv_working_signed_char_c" = xno
25580 then :
25581
25582
25583 printf "%s\n" "#define signed /**/" >>confdefs.h
25584
25585
25586 fi
25587
25588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
25589 printf %s "checking for prototypes... " >&6; }
25590 if test ${ac_cv_function_prototypes+y}
25591 then :
25592 printf %s "(cached) " >&6
25593 else case e in #(
25594 e)
25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25596 /* end confdefs.h. */
25597 int foo(int x) { return 0; }
25598 int
25599 main (void)
25600 {
25601 return foo(10);
25602 ;
25603 return 0;
25604 }
25605 _ACEOF
25606 if ac_fn_c_try_compile "$LINENO"
25607 then :
25608 ac_cv_function_prototypes=yes
25609 else case e in #(
25610 e) ac_cv_function_prototypes=no ;;
25611 esac
25612 fi
25613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25614 ;;
25615 esac
25616 fi
25617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
25618 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
25619 if test "x$ac_cv_function_prototypes" = xyes
25620 then :
25621
25622
25623 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
25624
25625
25626 fi
25627
25628
25629 # check for socketpair
25630
25631
25632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
25633 printf %s "checking for socketpair... " >&6; }
25634 if test ${ac_cv_func_socketpair+y}
25635 then :
25636 printf %s "(cached) " >&6
25637 else case e in #(
25638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25639 /* end confdefs.h. */
25640
25641 #include <sys/types.h>
25642 #include <sys/socket.h>
25643
25644 int
25645 main (void)
25646 {
25647 void *x=socketpair
25648 ;
25649 return 0;
25650 }
25651 _ACEOF
25652 if ac_fn_c_try_compile "$LINENO"
25653 then :
25654 ac_cv_func_socketpair=yes
25655 else case e in #(
25656 e) ac_cv_func_socketpair=no ;;
25657 esac
25658 fi
25659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25660 ;;
25661 esac
25662 fi
25663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
25664 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
25665 if test "x$ac_cv_func_socketpair" = xyes
25666 then :
25667
25668 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
25669
25670 fi
25671
25672
25673
25674
25675 # check if sockaddr has sa_len member
25676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
25677 printf %s "checking if sockaddr has sa_len member... " >&6; }
25678 if test ${ac_cv_struct_sockaddr_sa_len+y}
25679 then :
25680 printf %s "(cached) " >&6
25681 else case e in #(
25682 e)
25683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25684 /* end confdefs.h. */
25685 #include <sys/types.h>
25686 #include <sys/socket.h>
25687 int
25688 main (void)
25689 {
25690 struct sockaddr x;
25691 x.sa_len = 0;
25692 ;
25693 return 0;
25694 }
25695 _ACEOF
25696 if ac_fn_c_try_compile "$LINENO"
25697 then :
25698 ac_cv_struct_sockaddr_sa_len=yes
25699 else case e in #(
25700 e) ac_cv_struct_sockaddr_sa_len=no ;;
25701 esac
25702 fi
25703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25704 ;;
25705 esac
25706 fi
25707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
25708 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
25709 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
25710 then :
25711
25712
25713 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
25714
25715
25716 fi
25717
25718 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
25719
25720
25721 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
25722 if test "x$ac_cv_func_gethostbyname_r" = xyes
25723 then :
25724 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25725
25726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
25727 printf %s "checking gethostbyname_r with 6 args... " >&6; }
25728 OLD_CFLAGS=$CFLAGS
25729 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
25730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731 /* end confdefs.h. */
25732
25733 # include <netdb.h>
25734
25735 int
25736 main (void)
25737 {
25738
25739 char *name;
25740 struct hostent *he, *res;
25741 char buffer[2048];
25742 int buflen = 2048;
25743 int h_errnop;
25744
25745 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
25746
25747 ;
25748 return 0;
25749 }
25750 _ACEOF
25751 if ac_fn_c_try_compile "$LINENO"
25752 then :
25753
25754 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25755
25756
25757 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
25758
25759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25760 printf "%s\n" "yes" >&6; }
25761
25762 else case e in #(
25763 e)
25764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25765 printf "%s\n" "no" >&6; }
25766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
25767 printf %s "checking gethostbyname_r with 5 args... " >&6; }
25768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25769 /* end confdefs.h. */
25770
25771 # include <netdb.h>
25772
25773 int
25774 main (void)
25775 {
25776
25777 char *name;
25778 struct hostent *he;
25779 char buffer[2048];
25780 int buflen = 2048;
25781 int h_errnop;
25782
25783 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
25784
25785 ;
25786 return 0;
25787 }
25788 _ACEOF
25789 if ac_fn_c_try_compile "$LINENO"
25790 then :
25791
25792 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25793
25794
25795 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
25796
25797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25798 printf "%s\n" "yes" >&6; }
25799
25800 else case e in #(
25801 e)
25802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25803 printf "%s\n" "no" >&6; }
25804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
25805 printf %s "checking gethostbyname_r with 3 args... " >&6; }
25806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25807 /* end confdefs.h. */
25808
25809 # include <netdb.h>
25810
25811 int
25812 main (void)
25813 {
25814
25815 char *name;
25816 struct hostent *he;
25817 struct hostent_data data;
25818
25819 (void) gethostbyname_r(name, he, &data);
25820
25821 ;
25822 return 0;
25823 }
25824 _ACEOF
25825 if ac_fn_c_try_compile "$LINENO"
25826 then :
25827
25828 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25829
25830
25831 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
25832
25833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25834 printf "%s\n" "yes" >&6; }
25835
25836 else case e in #(
25837 e)
25838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25839 printf "%s\n" "no" >&6; }
25840 ;;
25841 esac
25842 fi
25843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25844 ;;
25845 esac
25846 fi
25847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25848 ;;
25849 esac
25850 fi
25851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25852 CFLAGS=$OLD_CFLAGS
25853
25854 else case e in #(
25855 e)
25856 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25857 if test "x$ac_cv_func_gethostbyname" = xyes
25858 then :
25859 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
25860
25861 fi
25862
25863 ;;
25864 esac
25865 fi
25866
25867
25868
25869
25870
25871
25872
25873 # checks for system services
25874 # (none yet)
25875
25876 # Linux requires this for correct f.p. operations
25877 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
25878 if test "x$ac_cv_func___fpu_control" = xyes
25879 then :
25880
25881 else case e in #(
25882 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
25883 printf %s "checking for __fpu_control in -lieee... " >&6; }
25884 if test ${ac_cv_lib_ieee___fpu_control+y}
25885 then :
25886 printf %s "(cached) " >&6
25887 else case e in #(
25888 e) ac_check_lib_save_LIBS=$LIBS
25889 LIBS="-lieee $LIBS"
25890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25891 /* end confdefs.h. */
25892
25893 /* Override any GCC internal prototype to avoid an error.
25894 Use char because int might match the return type of a GCC
25895 builtin and then its argument prototype would still apply.
25896 The 'extern "C"' is for builds by C++ compilers;
25897 although this is not generally supported in C code supporting it here
25898 has little cost and some practical benefit (sr 110532). */
25899 #ifdef __cplusplus
25900 extern "C"
25901 #endif
25902 char __fpu_control (void);
25903 int
25904 main (void)
25905 {
25906 return __fpu_control ();
25907 ;
25908 return 0;
25909 }
25910 _ACEOF
25911 if ac_fn_c_try_link "$LINENO"
25912 then :
25913 ac_cv_lib_ieee___fpu_control=yes
25914 else case e in #(
25915 e) ac_cv_lib_ieee___fpu_control=no ;;
25916 esac
25917 fi
25918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25919 conftest$ac_exeext conftest.$ac_ext
25920 LIBS=$ac_check_lib_save_LIBS ;;
25921 esac
25922 fi
25923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
25924 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
25925 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
25926 then :
25927 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
25928
25929 LIBS="-lieee $LIBS"
25930
25931 fi
25932
25933 ;;
25934 esac
25935 fi
25936
25937
25938 # check for --with-libm=...
25939
25940 case $ac_sys_system in
25941 Darwin) ;;
25942 *) LIBM=-lm
25943 esac
25944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
25945 printf %s "checking for --with-libm=STRING... " >&6; }
25946
25947 # Check whether --with-libm was given.
25948 if test ${with_libm+y}
25949 then :
25950 withval=$with_libm;
25951 if test "$withval" = no
25952 then LIBM=
25953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
25954 printf "%s\n" "force LIBM empty" >&6; }
25955 elif test "$withval" != yes
25956 then LIBM=$withval
25957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
25958 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
25959 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
25960 fi
25961 else case e in #(
25962 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
25963 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } ;;
25964 esac
25965 fi
25966
25967
25968 # check for --with-libc=...
25969
25970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
25971 printf %s "checking for --with-libc=STRING... " >&6; }
25972
25973 # Check whether --with-libc was given.
25974 if test ${with_libc+y}
25975 then :
25976 withval=$with_libc;
25977 if test "$withval" = no
25978 then LIBC=
25979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
25980 printf "%s\n" "force LIBC empty" >&6; }
25981 elif test "$withval" != yes
25982 then LIBC=$withval
25983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
25984 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
25985 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
25986 fi
25987 else case e in #(
25988 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
25989 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } ;;
25990 esac
25991 fi
25992
25993
25994 # **************************************
25995 # * Check for gcc x64 inline assembler *
25996 # **************************************
25997
25998
25999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
26000 printf %s "checking for x64 gcc inline assembler... " >&6; }
26001 if test ${ac_cv_gcc_asm_for_x64+y}
26002 then :
26003 printf %s "(cached) " >&6
26004 else case e in #(
26005 e)
26006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26007 /* end confdefs.h. */
26008
26009 int
26010 main (void)
26011 {
26012
26013 __asm__ __volatile__ ("movq %rcx, %rax");
26014
26015 ;
26016 return 0;
26017 }
26018 _ACEOF
26019 if ac_fn_c_try_link "$LINENO"
26020 then :
26021 ac_cv_gcc_asm_for_x64=yes
26022 else case e in #(
26023 e) ac_cv_gcc_asm_for_x64=no ;;
26024 esac
26025 fi
26026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26027 conftest$ac_exeext conftest.$ac_ext
26028 ;;
26029 esac
26030 fi
26031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
26032 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
26033
26034 if test "x$ac_cv_gcc_asm_for_x64" = xyes
26035 then :
26036
26037
26038 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
26039
26040
26041 fi
26042
26043 # **************************************************
26044 # * Check for various properties of floating point *
26045 # **************************************************
26046
26047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
26048 printf %s "checking whether float word ordering is bigendian... " >&6; }
26049 if test ${ax_cv_c_float_words_bigendian+y}
26050 then :
26051 printf %s "(cached) " >&6
26052 else case e in #(
26053 e)
26054
26055 ax_cv_c_float_words_bigendian=unknown
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26058
26059
26060 #include <stdlib.h>
26061
26062 static double m[] = {9.090423496703681e+223, 0.0};
26063
26064 int main (int argc, char *argv[])
26065 {
26066 m[atoi (argv[1])] += atof (argv[2]);
26067 return m[atoi (argv[3])] > 0.0;
26068 }
26069
26070
26071 _ACEOF
26072 if ac_fn_c_try_link "$LINENO"
26073 then :
26074
26075
26076 if grep noonsees conftest* > /dev/null ; then
26077 ax_cv_c_float_words_bigendian=yes
26078 fi
26079 if grep seesnoon conftest* >/dev/null ; then
26080 if test "$ax_cv_c_float_words_bigendian" = unknown; then
26081 ax_cv_c_float_words_bigendian=no
26082 else
26083 ax_cv_c_float_words_bigendian=unknown
26084 fi
26085 fi
26086
26087
26088 fi
26089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26090 conftest$ac_exeext conftest.$ac_ext ;;
26091 esac
26092 fi
26093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
26094 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
26095
26096 case $ax_cv_c_float_words_bigendian in
26097 yes)
26098
26099 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
26100 ;;
26101 no)
26102
26103 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
26104 ;;
26105 *)
26106 case $host_cpu in #(
26107 *arm*) :
26108 # Some ARM platforms use a mixed-endian representation for
26109 # doubles. While Python doesn't currently have full support
26110 # for these platforms (see e.g., issue 1762561), we can at
26111 # least make sure that float <-> string conversions work.
26112 # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case,
26113 # but if it's not big or little, then it must be this?
26114
26115 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
26116 ;; #(
26117 *) :
26118 as_fn_error $? "Unknown float word ordering. You need to manually preset ax_cv_c_float_words_bigendian=no (or yes) according to your system." "$LINENO" 5 ;;
26119 esac ;;
26120 esac
26121
26122
26123
26124 # The short float repr introduced in Python 3.1 requires the
26125 # correctly-rounded string <-> double conversion functions from
26126 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
26127 # rounding; this is a problem on x86, where the x87 FPU has a default
26128 # rounding precision of 64 bits. For gcc/x86, we can fix this by
26129 # using inline assembler to get and set the x87 FPU control word.
26130
26131 # This inline assembler syntax may also work for suncc and icc,
26132 # so we try it on all platforms.
26133
26134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
26135 printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
26136 if test ${ac_cv_gcc_asm_for_x87+y}
26137 then :
26138 printf %s "(cached) " >&6
26139 else case e in #(
26140 e)
26141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26142 /* end confdefs.h. */
26143
26144 int
26145 main (void)
26146 {
26147
26148 unsigned short cw;
26149 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
26150 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
26151
26152 ;
26153 return 0;
26154 }
26155 _ACEOF
26156 if ac_fn_c_try_link "$LINENO"
26157 then :
26158 ac_cv_gcc_asm_for_x87=yes
26159 else case e in #(
26160 e) ac_cv_gcc_asm_for_x87=no ;;
26161 esac
26162 fi
26163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26164 conftest$ac_exeext conftest.$ac_ext
26165 ;;
26166 esac
26167 fi
26168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
26169 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
26170 if test "x$ac_cv_gcc_asm_for_x87" = xyes
26171 then :
26172
26173
26174 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
26175
26176
26177 fi
26178
26179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
26180 printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
26181 if test ${ac_cv_gcc_asm_for_mc68881+y}
26182 then :
26183 printf %s "(cached) " >&6
26184 else case e in #(
26185 e)
26186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26187 /* end confdefs.h. */
26188
26189 int
26190 main (void)
26191 {
26192
26193 unsigned int fpcr;
26194 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=dm" (fpcr));
26195 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "dm" (fpcr));
26196
26197 ;
26198 return 0;
26199 }
26200 _ACEOF
26201 if ac_fn_c_try_link "$LINENO"
26202 then :
26203 ac_cv_gcc_asm_for_mc68881=yes
26204 else case e in #(
26205 e) ac_cv_gcc_asm_for_mc68881=no ;;
26206 esac
26207 fi
26208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26209 conftest$ac_exeext conftest.$ac_ext
26210 ;;
26211 esac
26212 fi
26213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
26214 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
26215 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
26216 then :
26217
26218
26219 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
26220
26221
26222 fi
26223
26224 # Detect whether system arithmetic is subject to x87-style double
26225 # rounding issues. The result of this test has little meaning on non
26226 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
26227 # mode is round-to-nearest and double rounding issues are present, and
26228 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
26229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
26230 printf %s "checking for x87-style double rounding... " >&6; }
26231 if test ${ac_cv_x87_double_rounding+y}
26232 then :
26233 printf %s "(cached) " >&6
26234 else case e in #(
26235 e)
26236 # $BASECFLAGS may affect the result
26237 ac_save_cc="$CC"
26238 CC="$CC $BASECFLAGS"
26239 if test "$cross_compiling" = yes
26240 then :
26241 ac_cv_x87_double_rounding=no
26242 else case e in #(
26243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h. */
26245
26246 #include <stdlib.h>
26247 #include <math.h>
26248 int main(void) {
26249 volatile double x, y, z;
26250 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
26251 x = 0.99999999999999989; /* 1-2**-53 */
26252 y = 1./x;
26253 if (y != 1.)
26254 exit(0);
26255 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
26256 x = 1e16;
26257 y = 2.99999;
26258 z = x + y;
26259 if (z != 1e16+4.)
26260 exit(0);
26261 /* both tests show evidence of double rounding */
26262 exit(1);
26263 }
26264
26265 _ACEOF
26266 if ac_fn_c_try_run "$LINENO"
26267 then :
26268 ac_cv_x87_double_rounding=no
26269 else case e in #(
26270 e) ac_cv_x87_double_rounding=yes ;;
26271 esac
26272 fi
26273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26274 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26275 esac
26276 fi
26277
26278 CC="$ac_save_cc"
26279 ;;
26280 esac
26281 fi
26282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
26283 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
26284
26285 if test "x$ac_cv_x87_double_rounding" = xyes
26286 then :
26287
26288
26289 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
26290
26291
26292 fi
26293
26294 # ************************************
26295 # * Check for mathematical functions *
26296 # ************************************
26297
26298 LIBS_SAVE=$LIBS
26299 LIBS="$LIBS $LIBM"
26300
26301
26302 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2
26303 do :
26304 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
26305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26306 if eval test \"x\$"$as_ac_var"\" = x"yes"
26307 then :
26308 cat >>confdefs.h <<_ACEOF
26309 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
26310 _ACEOF
26311
26312 else case e in #(
26313 e) as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5
26314 ;;
26315 esac
26316 fi
26317
26318 done
26319 LIBS=$LIBS_SAVE
26320
26321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
26322 printf %s "checking whether POSIX semaphores are enabled... " >&6; }
26323 if test ${ac_cv_posix_semaphores_enabled+y}
26324 then :
26325 printf %s "(cached) " >&6
26326 else case e in #(
26327 e) if test "$cross_compiling" = yes
26328 then :
26329 ac_cv_posix_semaphores_enabled=yes
26330 else case e in #(
26331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h. */
26333
26334
26335 #include <unistd.h>
26336 #include <fcntl.h>
26337 #include <stdio.h>
26338 #include <semaphore.h>
26339 #include <sys/stat.h>
26340
26341 int main(void) {
26342 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
26343 if (a == SEM_FAILED) {
26344 perror("sem_open");
26345 return 1;
26346 }
26347 sem_close(a);
26348 sem_unlink("/autoconf");
26349 return 0;
26350 }
26351
26352
26353 _ACEOF
26354 if ac_fn_c_try_run "$LINENO"
26355 then :
26356 ac_cv_posix_semaphores_enabled=yes
26357 else case e in #(
26358 e) ac_cv_posix_semaphores_enabled=no ;;
26359 esac
26360 fi
26361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26362 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26363 esac
26364 fi
26365
26366 ;;
26367 esac
26368 fi
26369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
26370 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
26371 if test "x$ac_cv_posix_semaphores_enabled" = xno
26372 then :
26373
26374
26375 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
26376
26377
26378 fi
26379
26380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
26381 printf %s "checking for broken sem_getvalue... " >&6; }
26382 if test ${ac_cv_broken_sem_getvalue+y}
26383 then :
26384 printf %s "(cached) " >&6
26385 else case e in #(
26386 e) if test "$cross_compiling" = yes
26387 then :
26388 ac_cv_broken_sem_getvalue=yes
26389 else case e in #(
26390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26392
26393
26394 #include <unistd.h>
26395 #include <fcntl.h>
26396 #include <stdio.h>
26397 #include <semaphore.h>
26398 #include <sys/stat.h>
26399
26400 int main(void){
26401 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
26402 int count;
26403 int res;
26404 if(a==SEM_FAILED){
26405 perror("sem_open");
26406 return 1;
26407
26408 }
26409 res = sem_getvalue(a, &count);
26410 sem_close(a);
26411 sem_unlink("/autocftw");
26412 return res==-1 ? 1 : 0;
26413 }
26414
26415
26416 _ACEOF
26417 if ac_fn_c_try_run "$LINENO"
26418 then :
26419 ac_cv_broken_sem_getvalue=no
26420 else case e in #(
26421 e) ac_cv_broken_sem_getvalue=yes ;;
26422 esac
26423 fi
26424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26425 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26426 esac
26427 fi
26428
26429 ;;
26430 esac
26431 fi
26432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
26433 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
26434 if test "x$ac_cv_broken_sem_getvalue" = xyes
26435 then :
26436
26437
26438 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
26439
26440
26441 fi
26442
26443 ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
26444 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26445 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
26446 then :
26447 ac_have_decl=1
26448 else case e in #(
26449 e) ac_have_decl=0 ;;
26450 esac
26451 fi
26452 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
26453 ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
26454 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26455 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
26456 then :
26457 ac_have_decl=1
26458 else case e in #(
26459 e) ac_have_decl=0 ;;
26460 esac
26461 fi
26462 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
26463 ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
26464 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26465 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
26466 then :
26467 ac_have_decl=1
26468 else case e in #(
26469 e) ac_have_decl=0 ;;
26470 esac
26471 fi
26472 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
26473 ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
26474 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26475 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
26476 then :
26477 ac_have_decl=1
26478 else case e in #(
26479 e) ac_have_decl=0 ;;
26480 esac
26481 fi
26482 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
26483 ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
26484 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26485 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
26486 then :
26487 ac_have_decl=1
26488 else case e in #(
26489 e) ac_have_decl=0 ;;
26490 esac
26491 fi
26492 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
26493 ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
26494 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26495 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
26496 then :
26497 ac_have_decl=1
26498 else case e in #(
26499 e) ac_have_decl=0 ;;
26500 esac
26501 fi
26502 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
26503 ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
26504 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26505 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
26506 then :
26507 ac_have_decl=1
26508 else case e in #(
26509 e) ac_have_decl=0 ;;
26510 esac
26511 fi
26512 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
26513 ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
26514 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26515 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
26516 then :
26517 ac_have_decl=1
26518 else case e in #(
26519 e) ac_have_decl=0 ;;
26520 esac
26521 fi
26522 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
26523
26524
26525 # determine what size digit to use for Python's longs
26526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
26527 printf %s "checking digit size for Python's longs... " >&6; }
26528 # Check whether --enable-big-digits was given.
26529 if test ${enable_big_digits+y}
26530 then :
26531 enableval=$enable_big_digits; case $enable_big_digits in
26532 yes)
26533 enable_big_digits=30 ;;
26534 no)
26535 enable_big_digits=15 ;;
26536 15|30)
26537 ;;
26538 *)
26539 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
26540 esac
26541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
26542 printf "%s\n" "$enable_big_digits" >&6; }
26543
26544 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
26545
26546
26547 else case e in #(
26548 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
26549 printf "%s\n" "no value specified" >&6; } ;;
26550 esac
26551 fi
26552
26553
26554 # check for wchar.h
26555 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
26556 if test "x$ac_cv_header_wchar_h" = xyes
26557 then :
26558
26559
26560 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
26561
26562 wchar_h="yes"
26563
26564 else case e in #(
26565 e) wchar_h="no"
26566 ;;
26567 esac
26568 fi
26569
26570
26571 # determine wchar_t size
26572 if test "$wchar_h" = yes
26573 then
26574 # The cast to long int works around a bug in the HP C Compiler
26575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26576 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26577 # This bug is HP SR number 8606223364.
26578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
26579 printf %s "checking size of wchar_t... " >&6; }
26580 if test ${ac_cv_sizeof_wchar_t+y}
26581 then :
26582 printf %s "(cached) " >&6
26583 else case e in #(
26584 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
26585 "
26586 then :
26587
26588 else case e in #(
26589 e) if test "$ac_cv_type_wchar_t" = yes; then
26590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26591 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26592 as_fn_error 77 "cannot compute sizeof (wchar_t)
26593 See 'config.log' for more details" "$LINENO" 5; }
26594 else
26595 ac_cv_sizeof_wchar_t=0
26596 fi ;;
26597 esac
26598 fi
26599 ;;
26600 esac
26601 fi
26602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
26603 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
26604
26605
26606
26607 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
26608
26609
26610 fi
26611
26612 # check whether wchar_t is signed or not
26613 if test "$wchar_h" = yes
26614 then
26615 # check whether wchar_t is signed or not
26616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
26617 printf %s "checking whether wchar_t is signed... " >&6; }
26618 if test ${ac_cv_wchar_t_signed+y}
26619 then :
26620 printf %s "(cached) " >&6
26621 else case e in #(
26622 e)
26623 if test "$cross_compiling" = yes
26624 then :
26625 ac_cv_wchar_t_signed=yes
26626 else case e in #(
26627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h. */
26629
26630 #include <wchar.h>
26631 int main()
26632 {
26633 /* Success: exit code 0 */
26634 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
26635 }
26636
26637 _ACEOF
26638 if ac_fn_c_try_run "$LINENO"
26639 then :
26640 ac_cv_wchar_t_signed=yes
26641 else case e in #(
26642 e) ac_cv_wchar_t_signed=no ;;
26643 esac
26644 fi
26645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26646 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26647 esac
26648 fi
26649 ;;
26650 esac
26651 fi
26652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
26653 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
26654 fi
26655
26656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
26657 printf %s "checking whether wchar_t is usable... " >&6; }
26658 # wchar_t is only usable if it maps to an unsigned type
26659 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
26660 -a "$ac_cv_wchar_t_signed" = "no"
26661 then
26662
26663 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
26664
26665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26666 printf "%s\n" "yes" >&6; }
26667 else
26668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26669 printf "%s\n" "no" >&6; }
26670 fi
26671
26672 case $ac_sys_system/$ac_sys_release in
26673 SunOS/*)
26674 if test -f /etc/os-release; then
26675 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
26676 if test "x$OS_NAME" = "xOracle Solaris"; then
26677 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
26678 # non-Unicode locales is not Unicode and hence cannot be used directly.
26679 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
26680
26681 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
26682
26683 fi
26684 fi
26685 ;;
26686 esac
26687
26688 # check for endianness
26689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26690 printf %s "checking whether byte ordering is bigendian... " >&6; }
26691 if test ${ac_cv_c_bigendian+y}
26692 then :
26693 printf %s "(cached) " >&6
26694 else case e in #(
26695 e) ac_cv_c_bigendian=unknown
26696 # See if we're dealing with a universal compiler.
26697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26698 /* end confdefs.h. */
26699 #ifndef __APPLE_CC__
26700 not a universal capable compiler
26701 #endif
26702 typedef int dummy;
26703
26704 _ACEOF
26705 if ac_fn_c_try_compile "$LINENO"
26706 then :
26707
26708 # Check for potential -arch flags. It is not universal unless
26709 # there are at least two -arch flags with different values.
26710 ac_arch=
26711 ac_prev=
26712 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26713 if test -n "$ac_prev"; then
26714 case $ac_word in
26715 i?86 | x86_64 | ppc | ppc64)
26716 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26717 ac_arch=$ac_word
26718 else
26719 ac_cv_c_bigendian=universal
26720 break
26721 fi
26722 ;;
26723 esac
26724 ac_prev=
26725 elif test "x$ac_word" = "x-arch"; then
26726 ac_prev=arch
26727 fi
26728 done
26729 fi
26730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26731 if test $ac_cv_c_bigendian = unknown; then
26732 # See if sys/param.h defines the BYTE_ORDER macro.
26733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26734 /* end confdefs.h. */
26735 #include <sys/types.h>
26736 #include <sys/param.h>
26737
26738 int
26739 main (void)
26740 {
26741 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
26742 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
26743 && LITTLE_ENDIAN)
26744 bogus endian macros
26745 #endif
26746
26747 ;
26748 return 0;
26749 }
26750 _ACEOF
26751 if ac_fn_c_try_compile "$LINENO"
26752 then :
26753 # It does; now see whether it defined to BIG_ENDIAN or not.
26754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26755 /* end confdefs.h. */
26756 #include <sys/types.h>
26757 #include <sys/param.h>
26758
26759 int
26760 main (void)
26761 {
26762 #if BYTE_ORDER != BIG_ENDIAN
26763 not big endian
26764 #endif
26765
26766 ;
26767 return 0;
26768 }
26769 _ACEOF
26770 if ac_fn_c_try_compile "$LINENO"
26771 then :
26772 ac_cv_c_bigendian=yes
26773 else case e in #(
26774 e) ac_cv_c_bigendian=no ;;
26775 esac
26776 fi
26777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26778 fi
26779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26780 fi
26781 if test $ac_cv_c_bigendian = unknown; then
26782 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26784 /* end confdefs.h. */
26785 #include <limits.h>
26786
26787 int
26788 main (void)
26789 {
26790 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26791 bogus endian macros
26792 #endif
26793
26794 ;
26795 return 0;
26796 }
26797 _ACEOF
26798 if ac_fn_c_try_compile "$LINENO"
26799 then :
26800 # It does; now see whether it defined to _BIG_ENDIAN or not.
26801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26802 /* end confdefs.h. */
26803 #include <limits.h>
26804
26805 int
26806 main (void)
26807 {
26808 #ifndef _BIG_ENDIAN
26809 not big endian
26810 #endif
26811
26812 ;
26813 return 0;
26814 }
26815 _ACEOF
26816 if ac_fn_c_try_compile "$LINENO"
26817 then :
26818 ac_cv_c_bigendian=yes
26819 else case e in #(
26820 e) ac_cv_c_bigendian=no ;;
26821 esac
26822 fi
26823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26824 fi
26825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26826 fi
26827 if test $ac_cv_c_bigendian = unknown; then
26828 # Compile a test program.
26829 if test "$cross_compiling" = yes
26830 then :
26831 # Try to guess by grepping values from an object file.
26832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26833 /* end confdefs.h. */
26834 unsigned short int ascii_mm[] =
26835 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26836 unsigned short int ascii_ii[] =
26837 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26838 int use_ascii (int i) {
26839 return ascii_mm[i] + ascii_ii[i];
26840 }
26841 unsigned short int ebcdic_ii[] =
26842 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26843 unsigned short int ebcdic_mm[] =
26844 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26845 int use_ebcdic (int i) {
26846 return ebcdic_mm[i] + ebcdic_ii[i];
26847 }
26848 int
26849 main (int argc, char **argv)
26850 {
26851 /* Intimidate the compiler so that it does not
26852 optimize the arrays away. */
26853 char *p = argv[0];
26854 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
26855 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
26856 return use_ascii (argc) == use_ebcdic (*p);
26857 }
26858 _ACEOF
26859 if ac_fn_c_try_link "$LINENO"
26860 then :
26861 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
26862 ac_cv_c_bigendian=yes
26863 fi
26864 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
26865 if test "$ac_cv_c_bigendian" = unknown; then
26866 ac_cv_c_bigendian=no
26867 else
26868 # finding both strings is unlikely to happen, but who knows?
26869 ac_cv_c_bigendian=unknown
26870 fi
26871 fi
26872 fi
26873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26874 conftest$ac_exeext conftest.$ac_ext
26875 else case e in #(
26876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26877 /* end confdefs.h. */
26878 $ac_includes_default
26879 int
26880 main (void)
26881 {
26882
26883 /* Are we little or big endian? From Harbison&Steele. */
26884 union
26885 {
26886 long int l;
26887 char c[sizeof (long int)];
26888 } u;
26889 u.l = 1;
26890 return u.c[sizeof (long int) - 1] == 1;
26891
26892 ;
26893 return 0;
26894 }
26895 _ACEOF
26896 if ac_fn_c_try_run "$LINENO"
26897 then :
26898 ac_cv_c_bigendian=no
26899 else case e in #(
26900 e) ac_cv_c_bigendian=yes ;;
26901 esac
26902 fi
26903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26904 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26905 esac
26906 fi
26907
26908 fi ;;
26909 esac
26910 fi
26911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26912 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
26913 case $ac_cv_c_bigendian in #(
26914 yes)
26915 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
26916 ;; #(
26917 no)
26918 ;; #(
26919 universal)
26920
26921 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26922
26923 ;; #(
26924 *)
26925 as_fn_error $? "unknown endianness
26926 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26927 esac
26928
26929
26930 # ABI version string for Python extension modules. This appears between the
26931 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
26932 # from the following attributes which affect the ABI of this Python build (in
26933 # this order):
26934 #
26935 # * The Python implementation (always 'cpython-' for us)
26936 # * The major and minor version numbers
26937 # * --disable-gil (adds a 't')
26938 # * --with-pydebug (adds a 'd')
26939 #
26940 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
26941 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
26942 # libraries would be named 'foo.cpython-32dmu.so'.
26943 #
26944 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
26945 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
26946
26947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
26948 printf %s "checking ABIFLAGS... " >&6; }
26949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
26950 printf "%s\n" "$ABIFLAGS" >&6; }
26951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
26952 printf %s "checking SOABI... " >&6; }
26953 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
26954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
26955 printf "%s\n" "$SOABI" >&6; }
26956
26957 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
26958 # are ABI compatible
26959 if test "$Py_DEBUG" = 'true'; then
26960 # Similar to SOABI but remove "d" flag from ABIFLAGS
26961
26962 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
26963
26964 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
26965
26966 fi
26967
26968
26969 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
26970
26971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
26972 printf %s "checking LDVERSION... " >&6; }
26973 LDVERSION='$(VERSION)$(ABIFLAGS)'
26974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
26975 printf "%s\n" "$LDVERSION" >&6; }
26976
26977 # Configure the flags and dependencies used when compiling shared modules.
26978
26979
26980 MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
26981
26982 # On most platforms, extension modules aren't linked against libpython, so
26983 # LIBPYTHON must be empty.
26984 LIBPYTHON=''
26985
26986 # On Android and Cygwin the shared libraries must be linked with libpython.
26987 # LIBPYTHON is used by python-config, python3.pc, the commands for building the
26988 # stdlib's own extension modules, and external package build systems via
26989 # sysconfig, so its value must be suitable for all those contexts.
26990 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
26991 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
26992 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
26993 fi
26994
26995 # On iOS the shared libraries must be linked with the Python framework
26996 if test "$ac_sys_system" = "iOS"; then
26997 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
26998 fi
26999
27000
27001
27002 BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)'
27003
27004
27005 # Check for --with-platlibdir
27006 # /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD)
27007
27008 PLATLIBDIR="lib"
27009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
27010 printf %s "checking for --with-platlibdir... " >&6; }
27011
27012 # Check whether --with-platlibdir was given.
27013 if test ${with_platlibdir+y}
27014 then :
27015 withval=$with_platlibdir;
27016 # ignore 3 options:
27017 # --with-platlibdir
27018 # --with-platlibdir=
27019 # --without-platlibdir
27020 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
27021 then
27022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27023 printf "%s\n" "yes" >&6; }
27024 PLATLIBDIR="$withval"
27025 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)'
27026 else
27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27028 printf "%s\n" "no" >&6; }
27029 fi
27030 else case e in #(
27031 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032 printf "%s\n" "no" >&6; } ;;
27033 esac
27034 fi
27035
27036
27037
27038
27039 if test x$PLATFORM_TRIPLET = x; then
27040 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}"
27041 else
27042 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
27043 fi
27044
27045
27046 # Check for --with-wheel-pkg-dir=PATH
27047
27048 WHEEL_PKG_DIR=""
27049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
27050 printf %s "checking for --with-wheel-pkg-dir... " >&6; }
27051
27052 # Check whether --with-wheel-pkg-dir was given.
27053 if test ${with_wheel_pkg_dir+y}
27054 then :
27055 withval=$with_wheel_pkg_dir;
27056 if test -n "$withval"; then
27057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27058 printf "%s\n" "yes" >&6; }
27059 WHEEL_PKG_DIR="$withval"
27060 else
27061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27062 printf "%s\n" "no" >&6; }
27063 fi
27064 else case e in #(
27065 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27066 printf "%s\n" "no" >&6; } ;;
27067 esac
27068 fi
27069
27070
27071 # Check whether right shifting a negative integer extends the sign bit
27072 # or fills with zeros (like the Cray J90, according to Tim Peters).
27073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
27074 printf %s "checking whether right shift extends the sign bit... " >&6; }
27075 if test ${ac_cv_rshift_extends_sign+y}
27076 then :
27077 printf %s "(cached) " >&6
27078 else case e in #(
27079 e)
27080 if test "$cross_compiling" = yes
27081 then :
27082 ac_cv_rshift_extends_sign=yes
27083 else case e in #(
27084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27086
27087 int main(void)
27088 {
27089 return (((-1)>>3 == -1) ? 0 : 1);
27090 }
27091
27092 _ACEOF
27093 if ac_fn_c_try_run "$LINENO"
27094 then :
27095 ac_cv_rshift_extends_sign=yes
27096 else case e in #(
27097 e) ac_cv_rshift_extends_sign=no ;;
27098 esac
27099 fi
27100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27101 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27102 esac
27103 fi
27104 ;;
27105 esac
27106 fi
27107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
27108 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
27109 if test "$ac_cv_rshift_extends_sign" = no
27110 then
27111
27112 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
27113
27114 fi
27115
27116 # check for getc_unlocked and related locking functions
27117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
27118 printf %s "checking for getc_unlocked() and friends... " >&6; }
27119 if test ${ac_cv_have_getc_unlocked+y}
27120 then :
27121 printf %s "(cached) " >&6
27122 else case e in #(
27123 e)
27124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27125 /* end confdefs.h. */
27126 #include <stdio.h>
27127 int
27128 main (void)
27129 {
27130
27131 FILE *f = fopen("/dev/null", "r");
27132 flockfile(f);
27133 getc_unlocked(f);
27134 funlockfile(f);
27135
27136 ;
27137 return 0;
27138 }
27139 _ACEOF
27140 if ac_fn_c_try_link "$LINENO"
27141 then :
27142 ac_cv_have_getc_unlocked=yes
27143 else case e in #(
27144 e) ac_cv_have_getc_unlocked=no ;;
27145 esac
27146 fi
27147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27148 conftest$ac_exeext conftest.$ac_ext ;;
27149 esac
27150 fi
27151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
27152 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
27153 if test "$ac_cv_have_getc_unlocked" = yes
27154 then
27155
27156 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
27157
27158 fi
27159
27160
27161
27162
27163
27164 # Check whether --with-readline was given.
27165 if test ${with_readline+y}
27166 then :
27167 withval=$with_readline;
27168 case $with_readline in #(
27169 editline|edit) :
27170 with_readline=edit ;; #(
27171 yes|readline) :
27172 with_readline=readline ;; #(
27173 no) :
27174 ;; #(
27175 *) :
27176 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
27177 ;;
27178 esac
27179
27180 else case e in #(
27181 e) with_readline=readline
27182 ;;
27183 esac
27184 fi
27185
27186
27187 if test "x$with_readline" = xreadline
27188 then :
27189
27190
27191 pkg_failed=no
27192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
27193 printf %s "checking for readline... " >&6; }
27194
27195 if test -n "$LIBREADLINE_CFLAGS"; then
27196 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS"
27197 elif test -n "$PKG_CONFIG"; then
27198 if test -n "$PKG_CONFIG" && \
27199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
27200 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
27201 ac_status=$?
27202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27203 test $ac_status = 0; }; then
27204 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
27205 test "x$?" != "x0" && pkg_failed=yes
27206 else
27207 pkg_failed=yes
27208 fi
27209 else
27210 pkg_failed=untried
27211 fi
27212 if test -n "$LIBREADLINE_LIBS"; then
27213 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS"
27214 elif test -n "$PKG_CONFIG"; then
27215 if test -n "$PKG_CONFIG" && \
27216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
27217 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
27218 ac_status=$?
27219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27220 test $ac_status = 0; }; then
27221 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
27222 test "x$?" != "x0" && pkg_failed=yes
27223 else
27224 pkg_failed=yes
27225 fi
27226 else
27227 pkg_failed=untried
27228 fi
27229
27230
27231
27232 if test $pkg_failed = yes; then
27233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27234 printf "%s\n" "no" >&6; }
27235
27236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27237 _pkg_short_errors_supported=yes
27238 else
27239 _pkg_short_errors_supported=no
27240 fi
27241 if test $_pkg_short_errors_supported = yes; then
27242 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
27243 else
27244 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
27245 fi
27246 # Put the nasty error message in config.log where it belongs
27247 echo "$LIBREADLINE_PKG_ERRORS" >&5
27248
27249
27250 save_CFLAGS=$CFLAGS
27251 save_CPPFLAGS=$CPPFLAGS
27252 save_LDFLAGS=$LDFLAGS
27253 save_LIBS=$LIBS
27254
27255
27256 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
27257 LIBS="$LIBS $LIBREADLINE_LIBS"
27258 for ac_header in readline/readline.h
27259 do :
27260 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27261 if test "x$ac_cv_header_readline_readline_h" = xyes
27262 then :
27263 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
27264
27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
27266 printf %s "checking for readline in -lreadline... " >&6; }
27267 if test ${ac_cv_lib_readline_readline+y}
27268 then :
27269 printf %s "(cached) " >&6
27270 else case e in #(
27271 e) ac_check_lib_save_LIBS=$LIBS
27272 LIBS="-lreadline $LIBS"
27273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274 /* end confdefs.h. */
27275
27276 /* Override any GCC internal prototype to avoid an error.
27277 Use char because int might match the return type of a GCC
27278 builtin and then its argument prototype would still apply.
27279 The 'extern "C"' is for builds by C++ compilers;
27280 although this is not generally supported in C code supporting it here
27281 has little cost and some practical benefit (sr 110532). */
27282 #ifdef __cplusplus
27283 extern "C"
27284 #endif
27285 char readline (void);
27286 int
27287 main (void)
27288 {
27289 return readline ();
27290 ;
27291 return 0;
27292 }
27293 _ACEOF
27294 if ac_fn_c_try_link "$LINENO"
27295 then :
27296 ac_cv_lib_readline_readline=yes
27297 else case e in #(
27298 e) ac_cv_lib_readline_readline=no ;;
27299 esac
27300 fi
27301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27302 conftest$ac_exeext conftest.$ac_ext
27303 LIBS=$ac_check_lib_save_LIBS ;;
27304 esac
27305 fi
27306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
27307 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
27308 if test "x$ac_cv_lib_readline_readline" = xyes
27309 then :
27310
27311 LIBREADLINE=readline
27312 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
27313 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
27314
27315 else case e in #(
27316 e) with_readline=no ;;
27317 esac
27318 fi
27319
27320
27321 else case e in #(
27322 e) with_readline=no ;;
27323 esac
27324 fi
27325
27326 done
27327
27328 CFLAGS=$save_CFLAGS
27329 CPPFLAGS=$save_CPPFLAGS
27330 LDFLAGS=$save_LDFLAGS
27331 LIBS=$save_LIBS
27332
27333
27334
27335 elif test $pkg_failed = untried; then
27336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27337 printf "%s\n" "no" >&6; }
27338
27339 save_CFLAGS=$CFLAGS
27340 save_CPPFLAGS=$CPPFLAGS
27341 save_LDFLAGS=$LDFLAGS
27342 save_LIBS=$LIBS
27343
27344
27345 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
27346 LIBS="$LIBS $LIBREADLINE_LIBS"
27347 for ac_header in readline/readline.h
27348 do :
27349 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27350 if test "x$ac_cv_header_readline_readline_h" = xyes
27351 then :
27352 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
27353
27354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
27355 printf %s "checking for readline in -lreadline... " >&6; }
27356 if test ${ac_cv_lib_readline_readline+y}
27357 then :
27358 printf %s "(cached) " >&6
27359 else case e in #(
27360 e) ac_check_lib_save_LIBS=$LIBS
27361 LIBS="-lreadline $LIBS"
27362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27363 /* end confdefs.h. */
27364
27365 /* Override any GCC internal prototype to avoid an error.
27366 Use char because int might match the return type of a GCC
27367 builtin and then its argument prototype would still apply.
27368 The 'extern "C"' is for builds by C++ compilers;
27369 although this is not generally supported in C code supporting it here
27370 has little cost and some practical benefit (sr 110532). */
27371 #ifdef __cplusplus
27372 extern "C"
27373 #endif
27374 char readline (void);
27375 int
27376 main (void)
27377 {
27378 return readline ();
27379 ;
27380 return 0;
27381 }
27382 _ACEOF
27383 if ac_fn_c_try_link "$LINENO"
27384 then :
27385 ac_cv_lib_readline_readline=yes
27386 else case e in #(
27387 e) ac_cv_lib_readline_readline=no ;;
27388 esac
27389 fi
27390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27391 conftest$ac_exeext conftest.$ac_ext
27392 LIBS=$ac_check_lib_save_LIBS ;;
27393 esac
27394 fi
27395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
27396 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
27397 if test "x$ac_cv_lib_readline_readline" = xyes
27398 then :
27399
27400 LIBREADLINE=readline
27401 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
27402 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
27403
27404 else case e in #(
27405 e) with_readline=no ;;
27406 esac
27407 fi
27408
27409
27410 else case e in #(
27411 e) with_readline=no ;;
27412 esac
27413 fi
27414
27415 done
27416
27417 CFLAGS=$save_CFLAGS
27418 CPPFLAGS=$save_CPPFLAGS
27419 LDFLAGS=$save_LDFLAGS
27420 LIBS=$save_LIBS
27421
27422
27423
27424 else
27425 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
27426 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
27427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27428 printf "%s\n" "yes" >&6; }
27429
27430 LIBREADLINE=readline
27431 READLINE_CFLAGS=$LIBREADLINE_CFLAGS
27432 READLINE_LIBS=$LIBREADLINE_LIBS
27433
27434 fi
27435
27436 fi
27437
27438 if test "x$with_readline" = xedit
27439 then :
27440
27441
27442 pkg_failed=no
27443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
27444 printf %s "checking for libedit... " >&6; }
27445
27446 if test -n "$LIBEDIT_CFLAGS"; then
27447 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
27448 elif test -n "$PKG_CONFIG"; then
27449 if test -n "$PKG_CONFIG" && \
27450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
27451 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
27452 ac_status=$?
27453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27454 test $ac_status = 0; }; then
27455 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
27456 test "x$?" != "x0" && pkg_failed=yes
27457 else
27458 pkg_failed=yes
27459 fi
27460 else
27461 pkg_failed=untried
27462 fi
27463 if test -n "$LIBEDIT_LIBS"; then
27464 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
27465 elif test -n "$PKG_CONFIG"; then
27466 if test -n "$PKG_CONFIG" && \
27467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
27468 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
27469 ac_status=$?
27470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27471 test $ac_status = 0; }; then
27472 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
27473 test "x$?" != "x0" && pkg_failed=yes
27474 else
27475 pkg_failed=yes
27476 fi
27477 else
27478 pkg_failed=untried
27479 fi
27480
27481
27482
27483 if test $pkg_failed = yes; then
27484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27485 printf "%s\n" "no" >&6; }
27486
27487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27488 _pkg_short_errors_supported=yes
27489 else
27490 _pkg_short_errors_supported=no
27491 fi
27492 if test $_pkg_short_errors_supported = yes; then
27493 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
27494 else
27495 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
27496 fi
27497 # Put the nasty error message in config.log where it belongs
27498 echo "$LIBEDIT_PKG_ERRORS" >&5
27499
27500
27501 save_CFLAGS=$CFLAGS
27502 save_CPPFLAGS=$CPPFLAGS
27503 save_LDFLAGS=$LDFLAGS
27504 save_LIBS=$LIBS
27505
27506
27507 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
27508 LIBS="$LIBS $LIBEDIT_LIBS"
27509 for ac_header in editline/readline.h
27510 do :
27511 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
27512 if test "x$ac_cv_header_editline_readline_h" = xyes
27513 then :
27514 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
27515
27516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
27517 printf %s "checking for readline in -ledit... " >&6; }
27518 if test ${ac_cv_lib_edit_readline+y}
27519 then :
27520 printf %s "(cached) " >&6
27521 else case e in #(
27522 e) ac_check_lib_save_LIBS=$LIBS
27523 LIBS="-ledit $LIBS"
27524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27525 /* end confdefs.h. */
27526
27527 /* Override any GCC internal prototype to avoid an error.
27528 Use char because int might match the return type of a GCC
27529 builtin and then its argument prototype would still apply.
27530 The 'extern "C"' is for builds by C++ compilers;
27531 although this is not generally supported in C code supporting it here
27532 has little cost and some practical benefit (sr 110532). */
27533 #ifdef __cplusplus
27534 extern "C"
27535 #endif
27536 char readline (void);
27537 int
27538 main (void)
27539 {
27540 return readline ();
27541 ;
27542 return 0;
27543 }
27544 _ACEOF
27545 if ac_fn_c_try_link "$LINENO"
27546 then :
27547 ac_cv_lib_edit_readline=yes
27548 else case e in #(
27549 e) ac_cv_lib_edit_readline=no ;;
27550 esac
27551 fi
27552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27553 conftest$ac_exeext conftest.$ac_ext
27554 LIBS=$ac_check_lib_save_LIBS ;;
27555 esac
27556 fi
27557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
27558 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
27559 if test "x$ac_cv_lib_edit_readline" = xyes
27560 then :
27561
27562 LIBREADLINE=edit
27563 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27564
27565 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
27566 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
27567
27568 else case e in #(
27569 e) with_readline=no ;;
27570 esac
27571 fi
27572
27573
27574 else case e in #(
27575 e) with_readline=no ;;
27576 esac
27577 fi
27578
27579 done
27580
27581 CFLAGS=$save_CFLAGS
27582 CPPFLAGS=$save_CPPFLAGS
27583 LDFLAGS=$save_LDFLAGS
27584 LIBS=$save_LIBS
27585
27586
27587
27588 elif test $pkg_failed = untried; then
27589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27590 printf "%s\n" "no" >&6; }
27591
27592 save_CFLAGS=$CFLAGS
27593 save_CPPFLAGS=$CPPFLAGS
27594 save_LDFLAGS=$LDFLAGS
27595 save_LIBS=$LIBS
27596
27597
27598 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
27599 LIBS="$LIBS $LIBEDIT_LIBS"
27600 for ac_header in editline/readline.h
27601 do :
27602 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
27603 if test "x$ac_cv_header_editline_readline_h" = xyes
27604 then :
27605 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
27606
27607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
27608 printf %s "checking for readline in -ledit... " >&6; }
27609 if test ${ac_cv_lib_edit_readline+y}
27610 then :
27611 printf %s "(cached) " >&6
27612 else case e in #(
27613 e) ac_check_lib_save_LIBS=$LIBS
27614 LIBS="-ledit $LIBS"
27615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27616 /* end confdefs.h. */
27617
27618 /* Override any GCC internal prototype to avoid an error.
27619 Use char because int might match the return type of a GCC
27620 builtin and then its argument prototype would still apply.
27621 The 'extern "C"' is for builds by C++ compilers;
27622 although this is not generally supported in C code supporting it here
27623 has little cost and some practical benefit (sr 110532). */
27624 #ifdef __cplusplus
27625 extern "C"
27626 #endif
27627 char readline (void);
27628 int
27629 main (void)
27630 {
27631 return readline ();
27632 ;
27633 return 0;
27634 }
27635 _ACEOF
27636 if ac_fn_c_try_link "$LINENO"
27637 then :
27638 ac_cv_lib_edit_readline=yes
27639 else case e in #(
27640 e) ac_cv_lib_edit_readline=no ;;
27641 esac
27642 fi
27643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27644 conftest$ac_exeext conftest.$ac_ext
27645 LIBS=$ac_check_lib_save_LIBS ;;
27646 esac
27647 fi
27648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
27649 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
27650 if test "x$ac_cv_lib_edit_readline" = xyes
27651 then :
27652
27653 LIBREADLINE=edit
27654 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27655
27656 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
27657 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
27658
27659 else case e in #(
27660 e) with_readline=no ;;
27661 esac
27662 fi
27663
27664
27665 else case e in #(
27666 e) with_readline=no ;;
27667 esac
27668 fi
27669
27670 done
27671
27672 CFLAGS=$save_CFLAGS
27673 CPPFLAGS=$save_CPPFLAGS
27674 LDFLAGS=$save_LDFLAGS
27675 LIBS=$save_LIBS
27676
27677
27678
27679 else
27680 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
27681 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
27682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27683 printf "%s\n" "yes" >&6; }
27684
27685 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27686
27687 LIBREADLINE=edit
27688 READLINE_CFLAGS=$LIBEDIT_CFLAGS
27689 READLINE_LIBS=$LIBEDIT_LIBS
27690
27691 fi
27692
27693 fi
27694
27695 READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
27696
27697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
27698 printf %s "checking how to link readline... " >&6; }
27699 if test "x$with_readline" = xno
27700 then :
27701
27702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27703 printf "%s\n" "no" >&6; }
27704
27705 else case e in #(
27706 e)
27707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
27708 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
27709
27710 save_CFLAGS=$CFLAGS
27711 save_CPPFLAGS=$CPPFLAGS
27712 save_LDFLAGS=$LDFLAGS
27713 save_LIBS=$LIBS
27714
27715
27716 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
27717 LIBS="$LIBS $READLINE_LIBS"
27718 LIBS_SAVE=$LIBS
27719
27720
27721
27722 # check for readline 2.2
27723 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
27724 #include <stdio.h> /* Must be first for Gnu Readline */
27725 #ifdef WITH_EDITLINE
27726 # include <editline/readline.h>
27727 #else
27728 # include <readline/readline.h>
27729 # include <readline/history.h>
27730 #endif
27731
27732 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27733 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
27734 then :
27735
27736
27737 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
27738
27739
27740 fi
27741
27742 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
27743 #include <stdio.h> /* Must be first for Gnu Readline */
27744 #ifdef WITH_EDITLINE
27745 # include <editline/readline.h>
27746 #else
27747 # include <readline/readline.h>
27748 # include <readline/history.h>
27749 #endif
27750
27751 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27752 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
27753 then :
27754
27755
27756 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
27757
27758
27759 fi
27760
27761 # check for readline 4.0
27762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
27763 printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
27764 if test ${ac_cv_readline_rl_pre_input_hook+y}
27765 then :
27766 printf %s "(cached) " >&6
27767 else case e in #(
27768 e)
27769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27770 /* end confdefs.h. */
27771
27772 #include <stdio.h> /* Must be first for Gnu Readline */
27773 #ifdef WITH_EDITLINE
27774 # include <editline/readline.h>
27775 #else
27776 # include <readline/readline.h>
27777 # include <readline/history.h>
27778 #endif
27779
27780 int
27781 main (void)
27782 {
27783 void *x = rl_pre_input_hook
27784 ;
27785 return 0;
27786 }
27787 _ACEOF
27788 if ac_fn_c_try_link "$LINENO"
27789 then :
27790 ac_cv_readline_rl_pre_input_hook=yes
27791 else case e in #(
27792 e) ac_cv_readline_rl_pre_input_hook=no
27793 ;;
27794 esac
27795 fi
27796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27797 conftest$ac_exeext conftest.$ac_ext
27798 ;;
27799 esac
27800 fi
27801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
27802 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
27803 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
27804 then :
27805
27806
27807 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
27808
27809
27810 fi
27811
27812 # also in 4.0
27813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
27814 printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
27815 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
27816 then :
27817 printf %s "(cached) " >&6
27818 else case e in #(
27819 e)
27820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27821 /* end confdefs.h. */
27822
27823 #include <stdio.h> /* Must be first for Gnu Readline */
27824 #ifdef WITH_EDITLINE
27825 # include <editline/readline.h>
27826 #else
27827 # include <readline/readline.h>
27828 # include <readline/history.h>
27829 #endif
27830
27831 int
27832 main (void)
27833 {
27834 void *x = rl_completion_display_matches_hook
27835 ;
27836 return 0;
27837 }
27838 _ACEOF
27839 if ac_fn_c_try_link "$LINENO"
27840 then :
27841 ac_cv_readline_rl_completion_display_matches_hook=yes
27842 else case e in #(
27843 e) ac_cv_readline_rl_completion_display_matches_hook=no
27844 ;;
27845 esac
27846 fi
27847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27848 conftest$ac_exeext conftest.$ac_ext
27849 ;;
27850 esac
27851 fi
27852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
27853 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
27854 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
27855 then :
27856
27857
27858 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
27859
27860
27861 fi
27862
27863 # also in 4.0, but not in editline
27864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
27865 printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
27866 if test ${ac_cv_readline_rl_resize_terminal+y}
27867 then :
27868 printf %s "(cached) " >&6
27869 else case e in #(
27870 e)
27871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27872 /* end confdefs.h. */
27873
27874 #include <stdio.h> /* Must be first for Gnu Readline */
27875 #ifdef WITH_EDITLINE
27876 # include <editline/readline.h>
27877 #else
27878 # include <readline/readline.h>
27879 # include <readline/history.h>
27880 #endif
27881
27882 int
27883 main (void)
27884 {
27885 void *x = rl_resize_terminal
27886 ;
27887 return 0;
27888 }
27889 _ACEOF
27890 if ac_fn_c_try_link "$LINENO"
27891 then :
27892 ac_cv_readline_rl_resize_terminal=yes
27893 else case e in #(
27894 e) ac_cv_readline_rl_resize_terminal=no
27895 ;;
27896 esac
27897 fi
27898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27899 conftest$ac_exeext conftest.$ac_ext
27900 ;;
27901 esac
27902 fi
27903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
27904 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
27905 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
27906 then :
27907
27908
27909 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
27910
27911
27912 fi
27913
27914 # check for readline 4.2
27915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
27916 printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
27917 if test ${ac_cv_readline_rl_completion_matches+y}
27918 then :
27919 printf %s "(cached) " >&6
27920 else case e in #(
27921 e)
27922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27923 /* end confdefs.h. */
27924
27925 #include <stdio.h> /* Must be first for Gnu Readline */
27926 #ifdef WITH_EDITLINE
27927 # include <editline/readline.h>
27928 #else
27929 # include <readline/readline.h>
27930 # include <readline/history.h>
27931 #endif
27932
27933 int
27934 main (void)
27935 {
27936 void *x = rl_completion_matches
27937 ;
27938 return 0;
27939 }
27940 _ACEOF
27941 if ac_fn_c_try_link "$LINENO"
27942 then :
27943 ac_cv_readline_rl_completion_matches=yes
27944 else case e in #(
27945 e) ac_cv_readline_rl_completion_matches=no
27946 ;;
27947 esac
27948 fi
27949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27950 conftest$ac_exeext conftest.$ac_ext
27951 ;;
27952 esac
27953 fi
27954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
27955 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
27956 if test "x$ac_cv_readline_rl_completion_matches" = xyes
27957 then :
27958
27959
27960 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
27961
27962
27963 fi
27964
27965 # also in readline 4.2
27966 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
27967 #include <stdio.h> /* Must be first for Gnu Readline */
27968 #ifdef WITH_EDITLINE
27969 # include <editline/readline.h>
27970 #else
27971 # include <readline/readline.h>
27972 # include <readline/history.h>
27973 #endif
27974
27975 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27976 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
27977 then :
27978
27979
27980 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
27981
27982
27983 fi
27984
27985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
27986 printf %s "checking for append_history in -l$LIBREADLINE... " >&6; }
27987 if test ${ac_cv_readline_append_history+y}
27988 then :
27989 printf %s "(cached) " >&6
27990 else case e in #(
27991 e)
27992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993 /* end confdefs.h. */
27994
27995 #include <stdio.h> /* Must be first for Gnu Readline */
27996 #ifdef WITH_EDITLINE
27997 # include <editline/readline.h>
27998 #else
27999 # include <readline/readline.h>
28000 # include <readline/history.h>
28001 #endif
28002
28003 int
28004 main (void)
28005 {
28006 void *x = append_history
28007 ;
28008 return 0;
28009 }
28010 _ACEOF
28011 if ac_fn_c_try_link "$LINENO"
28012 then :
28013 ac_cv_readline_append_history=yes
28014 else case e in #(
28015 e) ac_cv_readline_append_history=no
28016 ;;
28017 esac
28018 fi
28019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28020 conftest$ac_exeext conftest.$ac_ext
28021 ;;
28022 esac
28023 fi
28024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
28025 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
28026 if test "x$ac_cv_readline_append_history" = xyes
28027 then :
28028
28029
28030 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
28031
28032
28033 fi
28034
28035 # in readline as well as newer editline (April 2023)
28036 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
28037 #include <stdio.h> /* Must be first for Gnu Readline */
28038 #ifdef WITH_EDITLINE
28039 # include <editline/readline.h>
28040 #else
28041 # include <readline/readline.h>
28042 # include <readline/history.h>
28043 #endif
28044
28045 "
28046 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
28047 then :
28048
28049 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
28050
28051
28052 fi
28053
28054
28055 # Some editline versions declare rl_startup_hook as taking no args, others
28056 # declare it as taking 2.
28057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
28058 printf %s "checking if rl_startup_hook takes arguments... " >&6; }
28059 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
28060 then :
28061 printf %s "(cached) " >&6
28062 else case e in #(
28063 e)
28064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28065 /* end confdefs.h. */
28066
28067 #include <stdio.h> /* Must be first for Gnu Readline */
28068 #ifdef WITH_EDITLINE
28069 # include <editline/readline.h>
28070 #else
28071 # include <readline/readline.h>
28072 # include <readline/history.h>
28073 #endif
28074
28075 extern int test_hook_func(const char *text, int state);
28076 int
28077 main (void)
28078 {
28079 rl_startup_hook=test_hook_func;
28080 ;
28081 return 0;
28082 }
28083 _ACEOF
28084 if ac_fn_c_try_compile "$LINENO"
28085 then :
28086 ac_cv_readline_rl_startup_hook_takes_args=yes
28087 else case e in #(
28088 e) ac_cv_readline_rl_startup_hook_takes_args=no
28089 ;;
28090 esac
28091 fi
28092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28093 ;;
28094 esac
28095 fi
28096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
28097 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
28098 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
28099 then :
28100
28101
28102 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
28103
28104
28105 fi
28106
28107
28108
28109 CFLAGS=$save_CFLAGS
28110 CPPFLAGS=$save_CPPFLAGS
28111 LDFLAGS=$save_LDFLAGS
28112 LIBS=$save_LIBS
28113
28114 ;;
28115 esac
28116 fi
28117
28118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
28119 printf %s "checking for broken nice()... " >&6; }
28120 if test ${ac_cv_broken_nice+y}
28121 then :
28122 printf %s "(cached) " >&6
28123 else case e in #(
28124 e)
28125 if test "$cross_compiling" = yes
28126 then :
28127 ac_cv_broken_nice=no
28128 else case e in #(
28129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28130 /* end confdefs.h. */
28131
28132 #include <stdlib.h>
28133 #include <unistd.h>
28134 int main(void)
28135 {
28136 int val1 = nice(1);
28137 if (val1 != -1 && val1 == nice(2))
28138 exit(0);
28139 exit(1);
28140 }
28141
28142 _ACEOF
28143 if ac_fn_c_try_run "$LINENO"
28144 then :
28145 ac_cv_broken_nice=yes
28146 else case e in #(
28147 e) ac_cv_broken_nice=no ;;
28148 esac
28149 fi
28150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28151 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28152 esac
28153 fi
28154 ;;
28155 esac
28156 fi
28157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
28158 printf "%s\n" "$ac_cv_broken_nice" >&6; }
28159 if test "$ac_cv_broken_nice" = yes
28160 then
28161
28162 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
28163
28164 fi
28165
28166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
28167 printf %s "checking for broken poll()... " >&6; }
28168 if test ${ac_cv_broken_poll+y}
28169 then :
28170 printf %s "(cached) " >&6
28171 else case e in #(
28172 e) if test "$cross_compiling" = yes
28173 then :
28174 ac_cv_broken_poll=no
28175 else case e in #(
28176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h. */
28178
28179 #include <poll.h>
28180 #include <unistd.h>
28181
28182 int main(void)
28183 {
28184 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
28185 int poll_test;
28186
28187 close (42);
28188
28189 poll_test = poll(&poll_struct, 1, 0);
28190 if (poll_test < 0)
28191 return 0;
28192 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
28193 return 0;
28194 else
28195 return 1;
28196 }
28197
28198 _ACEOF
28199 if ac_fn_c_try_run "$LINENO"
28200 then :
28201 ac_cv_broken_poll=yes
28202 else case e in #(
28203 e) ac_cv_broken_poll=no ;;
28204 esac
28205 fi
28206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28207 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28208 esac
28209 fi
28210 ;;
28211 esac
28212 fi
28213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
28214 printf "%s\n" "$ac_cv_broken_poll" >&6; }
28215 if test "$ac_cv_broken_poll" = yes
28216 then
28217
28218 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
28219
28220 fi
28221
28222 # check tzset(3) exists and works like we expect it to
28223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
28224 printf %s "checking for working tzset()... " >&6; }
28225 if test ${ac_cv_working_tzset+y}
28226 then :
28227 printf %s "(cached) " >&6
28228 else case e in #(
28229 e)
28230 if test "$cross_compiling" = yes
28231 then :
28232 ac_cv_working_tzset=no
28233 else case e in #(
28234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28236
28237 #include <stdlib.h>
28238 #include <time.h>
28239 #include <string.h>
28240
28241 #if HAVE_TZNAME
28242 extern char *tzname[];
28243 #endif
28244
28245 int main(void)
28246 {
28247 /* Note that we need to ensure that not only does tzset(3)
28248 do 'something' with localtime, but it works as documented
28249 in the library reference and as expected by the test suite.
28250 This includes making sure that tzname is set properly if
28251 tm->tm_zone does not exist since it is the alternative way
28252 of getting timezone info.
28253
28254 Red Hat 6.2 doesn't understand the southern hemisphere
28255 after New Year's Day.
28256 */
28257
28258 time_t groundhogday = 1044144000; /* GMT-based */
28259 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
28260
28261 putenv("TZ=UTC+0");
28262 tzset();
28263 if (localtime(&groundhogday)->tm_hour != 0)
28264 exit(1);
28265 #if HAVE_TZNAME
28266 /* For UTC, tzname[1] is sometimes "", sometimes " " */
28267 if (strcmp(tzname[0], "UTC") ||
28268 (tzname[1][0] != 0 && tzname[1][0] != ' '))
28269 exit(1);
28270 #endif
28271
28272 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
28273 tzset();
28274 if (localtime(&groundhogday)->tm_hour != 19)
28275 exit(1);
28276 #if HAVE_TZNAME
28277 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
28278 exit(1);
28279 #endif
28280
28281 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
28282 tzset();
28283 if (localtime(&groundhogday)->tm_hour != 11)
28284 exit(1);
28285 #if HAVE_TZNAME
28286 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
28287 exit(1);
28288 #endif
28289
28290 #if HAVE_STRUCT_TM_TM_ZONE
28291 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
28292 exit(1);
28293 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
28294 exit(1);
28295 #endif
28296
28297 exit(0);
28298 }
28299
28300 _ACEOF
28301 if ac_fn_c_try_run "$LINENO"
28302 then :
28303 ac_cv_working_tzset=yes
28304 else case e in #(
28305 e) ac_cv_working_tzset=no ;;
28306 esac
28307 fi
28308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28309 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28310 esac
28311 fi
28312 ;;
28313 esac
28314 fi
28315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
28316 printf "%s\n" "$ac_cv_working_tzset" >&6; }
28317 if test "$ac_cv_working_tzset" = yes
28318 then
28319
28320 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
28321
28322 fi
28323
28324 # Look for subsecond timestamps in struct stat
28325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
28326 printf %s "checking for tv_nsec in struct stat... " >&6; }
28327 if test ${ac_cv_stat_tv_nsec+y}
28328 then :
28329 printf %s "(cached) " >&6
28330 else case e in #(
28331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28332 /* end confdefs.h. */
28333 #include <sys/stat.h>
28334 int
28335 main (void)
28336 {
28337
28338 struct stat st;
28339 st.st_mtim.tv_nsec = 1;
28340
28341 ;
28342 return 0;
28343 }
28344 _ACEOF
28345 if ac_fn_c_try_compile "$LINENO"
28346 then :
28347 ac_cv_stat_tv_nsec=yes
28348 else case e in #(
28349 e) ac_cv_stat_tv_nsec=no ;;
28350 esac
28351 fi
28352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28353 esac
28354 fi
28355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
28356 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
28357 if test "$ac_cv_stat_tv_nsec" = yes
28358 then
28359
28360 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
28361
28362 fi
28363
28364 # Look for BSD style subsecond timestamps in struct stat
28365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
28366 printf %s "checking for tv_nsec2 in struct stat... " >&6; }
28367 if test ${ac_cv_stat_tv_nsec2+y}
28368 then :
28369 printf %s "(cached) " >&6
28370 else case e in #(
28371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28372 /* end confdefs.h. */
28373 #include <sys/stat.h>
28374 int
28375 main (void)
28376 {
28377
28378 struct stat st;
28379 st.st_mtimespec.tv_nsec = 1;
28380
28381 ;
28382 return 0;
28383 }
28384 _ACEOF
28385 if ac_fn_c_try_compile "$LINENO"
28386 then :
28387 ac_cv_stat_tv_nsec2=yes
28388 else case e in #(
28389 e) ac_cv_stat_tv_nsec2=no ;;
28390 esac
28391 fi
28392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28393 esac
28394 fi
28395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
28396 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
28397 if test "$ac_cv_stat_tv_nsec2" = yes
28398 then
28399
28400 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
28401
28402 fi
28403
28404 have_curses=no
28405 have_panel=no
28406
28407
28408
28409 # Check for ncursesw/panelw first. If that fails, try ncurses/panel.
28410
28411
28412
28413 pkg_failed=no
28414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
28415 printf %s "checking for ncursesw... " >&6; }
28416
28417 if test -n "$CURSES_CFLAGS"; then
28418 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
28419 elif test -n "$PKG_CONFIG"; then
28420 if test -n "$PKG_CONFIG" && \
28421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
28422 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
28423 ac_status=$?
28424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28425 test $ac_status = 0; }; then
28426 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
28427 test "x$?" != "x0" && pkg_failed=yes
28428 else
28429 pkg_failed=yes
28430 fi
28431 else
28432 pkg_failed=untried
28433 fi
28434 if test -n "$CURSES_LIBS"; then
28435 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
28436 elif test -n "$PKG_CONFIG"; then
28437 if test -n "$PKG_CONFIG" && \
28438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
28439 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
28440 ac_status=$?
28441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28442 test $ac_status = 0; }; then
28443 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
28444 test "x$?" != "x0" && pkg_failed=yes
28445 else
28446 pkg_failed=yes
28447 fi
28448 else
28449 pkg_failed=untried
28450 fi
28451
28452
28453
28454 if test $pkg_failed = yes; then
28455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28456 printf "%s\n" "no" >&6; }
28457
28458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28459 _pkg_short_errors_supported=yes
28460 else
28461 _pkg_short_errors_supported=no
28462 fi
28463 if test $_pkg_short_errors_supported = yes; then
28464 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
28465 else
28466 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
28467 fi
28468 # Put the nasty error message in config.log where it belongs
28469 echo "$CURSES_PKG_ERRORS" >&5
28470
28471 have_curses=no
28472 elif test $pkg_failed = untried; then
28473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28474 printf "%s\n" "no" >&6; }
28475 have_curses=no
28476 else
28477 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
28478 CURSES_LIBS=$pkg_cv_CURSES_LIBS
28479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480 printf "%s\n" "yes" >&6; }
28481
28482 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
28483
28484 have_curses=yes
28485
28486 pkg_failed=no
28487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
28488 printf %s "checking for panelw... " >&6; }
28489
28490 if test -n "$PANEL_CFLAGS"; then
28491 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
28492 elif test -n "$PKG_CONFIG"; then
28493 if test -n "$PKG_CONFIG" && \
28494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
28495 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
28496 ac_status=$?
28497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498 test $ac_status = 0; }; then
28499 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
28500 test "x$?" != "x0" && pkg_failed=yes
28501 else
28502 pkg_failed=yes
28503 fi
28504 else
28505 pkg_failed=untried
28506 fi
28507 if test -n "$PANEL_LIBS"; then
28508 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
28509 elif test -n "$PKG_CONFIG"; then
28510 if test -n "$PKG_CONFIG" && \
28511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
28512 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
28513 ac_status=$?
28514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28515 test $ac_status = 0; }; then
28516 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 2>/dev/null`
28517 test "x$?" != "x0" && pkg_failed=yes
28518 else
28519 pkg_failed=yes
28520 fi
28521 else
28522 pkg_failed=untried
28523 fi
28524
28525
28526
28527 if test $pkg_failed = yes; then
28528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28529 printf "%s\n" "no" >&6; }
28530
28531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28532 _pkg_short_errors_supported=yes
28533 else
28534 _pkg_short_errors_supported=no
28535 fi
28536 if test $_pkg_short_errors_supported = yes; then
28537 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
28538 else
28539 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
28540 fi
28541 # Put the nasty error message in config.log where it belongs
28542 echo "$PANEL_PKG_ERRORS" >&5
28543
28544 have_panel=no
28545 elif test $pkg_failed = untried; then
28546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28547 printf "%s\n" "no" >&6; }
28548 have_panel=no
28549 else
28550 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
28551 PANEL_LIBS=$pkg_cv_PANEL_LIBS
28552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28553 printf "%s\n" "yes" >&6; }
28554
28555 printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h
28556
28557 have_panel=yes
28558 fi
28559 fi
28560
28561
28562 if test "x$have_curses" = xno
28563 then :
28564
28565
28566
28567 pkg_failed=no
28568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
28569 printf %s "checking for ncurses... " >&6; }
28570
28571 if test -n "$CURSES_CFLAGS"; then
28572 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
28573 elif test -n "$PKG_CONFIG"; then
28574 if test -n "$PKG_CONFIG" && \
28575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
28576 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
28577 ac_status=$?
28578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28579 test $ac_status = 0; }; then
28580 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
28581 test "x$?" != "x0" && pkg_failed=yes
28582 else
28583 pkg_failed=yes
28584 fi
28585 else
28586 pkg_failed=untried
28587 fi
28588 if test -n "$CURSES_LIBS"; then
28589 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
28590 elif test -n "$PKG_CONFIG"; then
28591 if test -n "$PKG_CONFIG" && \
28592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
28593 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
28594 ac_status=$?
28595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28596 test $ac_status = 0; }; then
28597 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
28598 test "x$?" != "x0" && pkg_failed=yes
28599 else
28600 pkg_failed=yes
28601 fi
28602 else
28603 pkg_failed=untried
28604 fi
28605
28606
28607
28608 if test $pkg_failed = yes; then
28609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28610 printf "%s\n" "no" >&6; }
28611
28612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28613 _pkg_short_errors_supported=yes
28614 else
28615 _pkg_short_errors_supported=no
28616 fi
28617 if test $_pkg_short_errors_supported = yes; then
28618 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
28619 else
28620 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
28621 fi
28622 # Put the nasty error message in config.log where it belongs
28623 echo "$CURSES_PKG_ERRORS" >&5
28624
28625 have_curses=no
28626 elif test $pkg_failed = untried; then
28627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28628 printf "%s\n" "no" >&6; }
28629 have_curses=no
28630 else
28631 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
28632 CURSES_LIBS=$pkg_cv_CURSES_LIBS
28633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28634 printf "%s\n" "yes" >&6; }
28635
28636 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
28637
28638 have_curses=yes
28639
28640 pkg_failed=no
28641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
28642 printf %s "checking for panel... " >&6; }
28643
28644 if test -n "$PANEL_CFLAGS"; then
28645 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
28646 elif test -n "$PKG_CONFIG"; then
28647 if test -n "$PKG_CONFIG" && \
28648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
28649 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
28650 ac_status=$?
28651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28652 test $ac_status = 0; }; then
28653 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
28654 test "x$?" != "x0" && pkg_failed=yes
28655 else
28656 pkg_failed=yes
28657 fi
28658 else
28659 pkg_failed=untried
28660 fi
28661 if test -n "$PANEL_LIBS"; then
28662 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
28663 elif test -n "$PKG_CONFIG"; then
28664 if test -n "$PKG_CONFIG" && \
28665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
28666 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
28667 ac_status=$?
28668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28669 test $ac_status = 0; }; then
28670 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 2>/dev/null`
28671 test "x$?" != "x0" && pkg_failed=yes
28672 else
28673 pkg_failed=yes
28674 fi
28675 else
28676 pkg_failed=untried
28677 fi
28678
28679
28680
28681 if test $pkg_failed = yes; then
28682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28683 printf "%s\n" "no" >&6; }
28684
28685 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28686 _pkg_short_errors_supported=yes
28687 else
28688 _pkg_short_errors_supported=no
28689 fi
28690 if test $_pkg_short_errors_supported = yes; then
28691 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
28692 else
28693 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
28694 fi
28695 # Put the nasty error message in config.log where it belongs
28696 echo "$PANEL_PKG_ERRORS" >&5
28697
28698 have_panel=no
28699 elif test $pkg_failed = untried; then
28700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28701 printf "%s\n" "no" >&6; }
28702 have_panel=no
28703 else
28704 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
28705 PANEL_LIBS=$pkg_cv_PANEL_LIBS
28706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28707 printf "%s\n" "yes" >&6; }
28708
28709 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
28710
28711 have_panel=yes
28712 fi
28713 fi
28714
28715
28716 fi
28717
28718 save_CFLAGS=$CFLAGS
28719 save_CPPFLAGS=$CPPFLAGS
28720 save_LDFLAGS=$LDFLAGS
28721 save_LIBS=$LIBS
28722
28723
28724 # Make sure we've got the header defines.
28725 as_fn_append CPPFLAGS " $CURSES_CFLAGS $PANEL_CFLAGS"
28726 ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default"
28727 if test "x$ac_cv_header_ncursesw_curses_h" = xyes
28728 then :
28729 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
28730
28731 fi
28732 ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
28733 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
28734 then :
28735 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
28736
28737 fi
28738 ac_fn_c_check_header_compile "$LINENO" "ncursesw/panel.h" "ac_cv_header_ncursesw_panel_h" "$ac_includes_default"
28739 if test "x$ac_cv_header_ncursesw_panel_h" = xyes
28740 then :
28741 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h
28742
28743 fi
28744 ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
28745 if test "x$ac_cv_header_ncurses_curses_h" = xyes
28746 then :
28747 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
28748
28749 fi
28750 ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
28751 if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
28752 then :
28753 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
28754
28755 fi
28756 ac_fn_c_check_header_compile "$LINENO" "ncurses/panel.h" "ac_cv_header_ncurses_panel_h" "$ac_includes_default"
28757 if test "x$ac_cv_header_ncurses_panel_h" = xyes
28758 then :
28759 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h
28760
28761 fi
28762 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
28763 if test "x$ac_cv_header_curses_h" = xyes
28764 then :
28765 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
28766
28767 fi
28768 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_ncurses_h" = xyes
28770 then :
28771 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
28772
28773 fi
28774 ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
28775 if test "x$ac_cv_header_panel_h" = xyes
28776 then :
28777 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
28778
28779 fi
28780
28781
28782 # Check that we're able to link with crucial curses/panel functions. This
28783 # also serves as a fallback in case pkg-config failed.
28784 as_fn_append LIBS " $CURSES_LIBS $PANEL_LIBS"
28785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
28786 printf %s "checking for library containing initscr... " >&6; }
28787 if test ${ac_cv_search_initscr+y}
28788 then :
28789 printf %s "(cached) " >&6
28790 else case e in #(
28791 e) ac_func_search_save_LIBS=$LIBS
28792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793 /* end confdefs.h. */
28794
28795 /* Override any GCC internal prototype to avoid an error.
28796 Use char because int might match the return type of a GCC
28797 builtin and then its argument prototype would still apply.
28798 The 'extern "C"' is for builds by C++ compilers;
28799 although this is not generally supported in C code supporting it here
28800 has little cost and some practical benefit (sr 110532). */
28801 #ifdef __cplusplus
28802 extern "C"
28803 #endif
28804 char initscr (void);
28805 int
28806 main (void)
28807 {
28808 return initscr ();
28809 ;
28810 return 0;
28811 }
28812 _ACEOF
28813 for ac_lib in '' ncursesw ncurses
28814 do
28815 if test -z "$ac_lib"; then
28816 ac_res="none required"
28817 else
28818 ac_res=-l$ac_lib
28819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28820 fi
28821 if ac_fn_c_try_link "$LINENO"
28822 then :
28823 ac_cv_search_initscr=$ac_res
28824 fi
28825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28826 conftest$ac_exeext
28827 if test ${ac_cv_search_initscr+y}
28828 then :
28829 break
28830 fi
28831 done
28832 if test ${ac_cv_search_initscr+y}
28833 then :
28834
28835 else case e in #(
28836 e) ac_cv_search_initscr=no ;;
28837 esac
28838 fi
28839 rm conftest.$ac_ext
28840 LIBS=$ac_func_search_save_LIBS ;;
28841 esac
28842 fi
28843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
28844 printf "%s\n" "$ac_cv_search_initscr" >&6; }
28845 ac_res=$ac_cv_search_initscr
28846 if test "$ac_res" != no
28847 then :
28848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28849 if test "x$have_curses" = xno
28850 then :
28851 have_curses=yes
28852 CURSES_LIBS=${CURSES_LIBS-"$ac_cv_search_initscr"}
28853 fi
28854 else case e in #(
28855 e) have_curses=no ;;
28856 esac
28857 fi
28858
28859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing update_panels" >&5
28860 printf %s "checking for library containing update_panels... " >&6; }
28861 if test ${ac_cv_search_update_panels+y}
28862 then :
28863 printf %s "(cached) " >&6
28864 else case e in #(
28865 e) ac_func_search_save_LIBS=$LIBS
28866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28867 /* end confdefs.h. */
28868
28869 /* Override any GCC internal prototype to avoid an error.
28870 Use char because int might match the return type of a GCC
28871 builtin and then its argument prototype would still apply.
28872 The 'extern "C"' is for builds by C++ compilers;
28873 although this is not generally supported in C code supporting it here
28874 has little cost and some practical benefit (sr 110532). */
28875 #ifdef __cplusplus
28876 extern "C"
28877 #endif
28878 char update_panels (void);
28879 int
28880 main (void)
28881 {
28882 return update_panels ();
28883 ;
28884 return 0;
28885 }
28886 _ACEOF
28887 for ac_lib in '' panelw panel
28888 do
28889 if test -z "$ac_lib"; then
28890 ac_res="none required"
28891 else
28892 ac_res=-l$ac_lib
28893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28894 fi
28895 if ac_fn_c_try_link "$LINENO"
28896 then :
28897 ac_cv_search_update_panels=$ac_res
28898 fi
28899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28900 conftest$ac_exeext
28901 if test ${ac_cv_search_update_panels+y}
28902 then :
28903 break
28904 fi
28905 done
28906 if test ${ac_cv_search_update_panels+y}
28907 then :
28908
28909 else case e in #(
28910 e) ac_cv_search_update_panels=no ;;
28911 esac
28912 fi
28913 rm conftest.$ac_ext
28914 LIBS=$ac_func_search_save_LIBS ;;
28915 esac
28916 fi
28917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_update_panels" >&5
28918 printf "%s\n" "$ac_cv_search_update_panels" >&6; }
28919 ac_res=$ac_cv_search_update_panels
28920 if test "$ac_res" != no
28921 then :
28922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28923 if test "x$have_panel" = xno
28924 then :
28925 have_panel=yes
28926 PANEL_LIBS=${PANEL_LIBS-"$ac_cv_search_update_panels"}
28927 fi
28928 else case e in #(
28929 e) have_panel=no ;;
28930 esac
28931 fi
28932
28933
28934
28935
28936 if test "have_curses" != "no"
28937 then :
28938
28939 CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
28940
28941 if test "x$ac_sys_system" = xDarwin
28942 then :
28943
28944
28945 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1"
28946
28947 fi
28948
28949 PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
28950
28951 if test "x$have_curses" = xno
28952 then :
28953
28954 else case e in #(
28955 e)
28956 save_curses_cppflags=$CPPFLAGS
28957 as_fn_append CPPFLAGS " $CURSES_CFLAGS"
28958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether curses supports wide characters" >&5
28959 printf %s "checking whether curses supports wide characters... " >&6; }
28960 if test ${ac_cv_curses_wide+y}
28961 then :
28962 printf %s "(cached) " >&6
28963 else case e in #(
28964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28965 /* end confdefs.h. */
28966
28967 #define NCURSES_OPAQUE 0
28968 #if defined(HAVE_NCURSESW_NCURSES_H)
28969 # include <ncursesw/ncurses.h>
28970 #elif defined(HAVE_NCURSESW_CURSES_H)
28971 # include <ncursesw/curses.h>
28972 #elif defined(HAVE_NCURSES_NCURSES_H)
28973 # include <ncurses/ncurses.h>
28974 #elif defined(HAVE_NCURSES_CURSES_H)
28975 # include <ncurses/curses.h>
28976 #elif defined(HAVE_NCURSES_H)
28977 # include <ncurses.h>
28978 #elif defined(HAVE_CURSES_H)
28979 # include <curses.h>
28980 #endif
28981
28982 int
28983 main (void)
28984 {
28985
28986 cchar_t wcval;
28987 setcchar(&wcval, L"x", A_NORMAL, 0, NULL);
28988 add_wch(&wcval);
28989
28990 ;
28991 return 0;
28992 }
28993 _ACEOF
28994 if ac_fn_c_try_link "$LINENO"
28995 then :
28996 ac_cv_curses_wide=yes
28997 else case e in #(
28998 e) ac_cv_curses_wide=no ;;
28999 esac
29000 fi
29001 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29002 conftest$ac_exeext conftest.$ac_ext ;;
29003 esac
29004 fi
29005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_curses_wide" >&5
29006 printf "%s\n" "$ac_cv_curses_wide" >&6; }
29007 CPPFLAGS=$save_curses_cppflags
29008 if test "x$ac_cv_curses_wide" = xyes
29009 then :
29010 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
29011
29012 fi
29013 ;;
29014 esac
29015 fi
29016
29017 # On Solaris, term.h requires curses.h
29018 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
29019 #define NCURSES_OPAQUE 0
29020 #if defined(HAVE_NCURSESW_NCURSES_H)
29021 # include <ncursesw/ncurses.h>
29022 #elif defined(HAVE_NCURSESW_CURSES_H)
29023 # include <ncursesw/curses.h>
29024 #elif defined(HAVE_NCURSES_NCURSES_H)
29025 # include <ncurses/ncurses.h>
29026 #elif defined(HAVE_NCURSES_CURSES_H)
29027 # include <ncurses/curses.h>
29028 #elif defined(HAVE_NCURSES_H)
29029 # include <ncurses.h>
29030 #elif defined(HAVE_CURSES_H)
29031 # include <curses.h>
29032 #endif
29033
29034 "
29035 if test "x$ac_cv_header_term_h" = xyes
29036 then :
29037 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
29038
29039 fi
29040
29041
29042 # On HP/UX 11.0, mvwdelch is a block with a return statement
29043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
29044 printf %s "checking whether mvwdelch is an expression... " >&6; }
29045 if test ${ac_cv_mvwdelch_is_expression+y}
29046 then :
29047 printf %s "(cached) " >&6
29048 else case e in #(
29049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29051
29052 #define NCURSES_OPAQUE 0
29053 #if defined(HAVE_NCURSESW_NCURSES_H)
29054 # include <ncursesw/ncurses.h>
29055 #elif defined(HAVE_NCURSESW_CURSES_H)
29056 # include <ncursesw/curses.h>
29057 #elif defined(HAVE_NCURSES_NCURSES_H)
29058 # include <ncurses/ncurses.h>
29059 #elif defined(HAVE_NCURSES_CURSES_H)
29060 # include <ncurses/curses.h>
29061 #elif defined(HAVE_NCURSES_H)
29062 # include <ncurses.h>
29063 #elif defined(HAVE_CURSES_H)
29064 # include <curses.h>
29065 #endif
29066
29067 int
29068 main (void)
29069 {
29070
29071 int rtn;
29072 rtn = mvwdelch(0,0,0);
29073
29074 ;
29075 return 0;
29076 }
29077 _ACEOF
29078 if ac_fn_c_try_compile "$LINENO"
29079 then :
29080 ac_cv_mvwdelch_is_expression=yes
29081 else case e in #(
29082 e) ac_cv_mvwdelch_is_expression=no ;;
29083 esac
29084 fi
29085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29086 esac
29087 fi
29088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
29089 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
29090
29091 if test "$ac_cv_mvwdelch_is_expression" = yes
29092 then
29093
29094 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
29095
29096 fi
29097
29098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
29099 printf %s "checking whether WINDOW has _flags... " >&6; }
29100 if test ${ac_cv_window_has_flags+y}
29101 then :
29102 printf %s "(cached) " >&6
29103 else case e in #(
29104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29105 /* end confdefs.h. */
29106
29107 #define NCURSES_OPAQUE 0
29108 #if defined(HAVE_NCURSESW_NCURSES_H)
29109 # include <ncursesw/ncurses.h>
29110 #elif defined(HAVE_NCURSESW_CURSES_H)
29111 # include <ncursesw/curses.h>
29112 #elif defined(HAVE_NCURSES_NCURSES_H)
29113 # include <ncurses/ncurses.h>
29114 #elif defined(HAVE_NCURSES_CURSES_H)
29115 # include <ncurses/curses.h>
29116 #elif defined(HAVE_NCURSES_H)
29117 # include <ncurses.h>
29118 #elif defined(HAVE_CURSES_H)
29119 # include <curses.h>
29120 #endif
29121
29122 int
29123 main (void)
29124 {
29125
29126 WINDOW *w;
29127 w->_flags = 0;
29128
29129 ;
29130 return 0;
29131 }
29132 _ACEOF
29133 if ac_fn_c_try_compile "$LINENO"
29134 then :
29135 ac_cv_window_has_flags=yes
29136 else case e in #(
29137 e) ac_cv_window_has_flags=no ;;
29138 esac
29139 fi
29140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29141 esac
29142 fi
29143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
29144 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
29145
29146
29147 if test "$ac_cv_window_has_flags" = yes
29148 then
29149
29150 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
29151
29152 fi
29153
29154
29155
29156
29157
29158
29159
29160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
29161 printf %s "checking for curses function is_pad... " >&6; }
29162 if test ${ac_cv_lib_curses_is_pad+y}
29163 then :
29164 printf %s "(cached) " >&6
29165 else case e in #(
29166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29167 /* end confdefs.h. */
29168
29169 #define NCURSES_OPAQUE 0
29170 #if defined(HAVE_NCURSESW_NCURSES_H)
29171 # include <ncursesw/ncurses.h>
29172 #elif defined(HAVE_NCURSESW_CURSES_H)
29173 # include <ncursesw/curses.h>
29174 #elif defined(HAVE_NCURSES_NCURSES_H)
29175 # include <ncurses/ncurses.h>
29176 #elif defined(HAVE_NCURSES_CURSES_H)
29177 # include <ncurses/curses.h>
29178 #elif defined(HAVE_NCURSES_H)
29179 # include <ncurses.h>
29180 #elif defined(HAVE_CURSES_H)
29181 # include <curses.h>
29182 #endif
29183
29184 int
29185 main (void)
29186 {
29187
29188 #ifndef is_pad
29189 void *x=is_pad
29190 #endif
29191
29192 ;
29193 return 0;
29194 }
29195 _ACEOF
29196 if ac_fn_c_try_compile "$LINENO"
29197 then :
29198 ac_cv_lib_curses_is_pad=yes
29199 else case e in #(
29200 e) ac_cv_lib_curses_is_pad=no ;;
29201 esac
29202 fi
29203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29204 ;;
29205 esac
29206 fi
29207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
29208 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
29209 if test "x$ac_cv_lib_curses_is_pad" = xyes
29210 then :
29211
29212 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
29213
29214 fi
29215
29216
29217
29218
29219
29220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
29221 printf %s "checking for curses function is_term_resized... " >&6; }
29222 if test ${ac_cv_lib_curses_is_term_resized+y}
29223 then :
29224 printf %s "(cached) " >&6
29225 else case e in #(
29226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29227 /* end confdefs.h. */
29228
29229 #define NCURSES_OPAQUE 0
29230 #if defined(HAVE_NCURSESW_NCURSES_H)
29231 # include <ncursesw/ncurses.h>
29232 #elif defined(HAVE_NCURSESW_CURSES_H)
29233 # include <ncursesw/curses.h>
29234 #elif defined(HAVE_NCURSES_NCURSES_H)
29235 # include <ncurses/ncurses.h>
29236 #elif defined(HAVE_NCURSES_CURSES_H)
29237 # include <ncurses/curses.h>
29238 #elif defined(HAVE_NCURSES_H)
29239 # include <ncurses.h>
29240 #elif defined(HAVE_CURSES_H)
29241 # include <curses.h>
29242 #endif
29243
29244 int
29245 main (void)
29246 {
29247
29248 #ifndef is_term_resized
29249 void *x=is_term_resized
29250 #endif
29251
29252 ;
29253 return 0;
29254 }
29255 _ACEOF
29256 if ac_fn_c_try_compile "$LINENO"
29257 then :
29258 ac_cv_lib_curses_is_term_resized=yes
29259 else case e in #(
29260 e) ac_cv_lib_curses_is_term_resized=no ;;
29261 esac
29262 fi
29263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29264 ;;
29265 esac
29266 fi
29267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
29268 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
29269 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
29270 then :
29271
29272 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
29273
29274 fi
29275
29276
29277
29278
29279
29280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
29281 printf %s "checking for curses function resize_term... " >&6; }
29282 if test ${ac_cv_lib_curses_resize_term+y}
29283 then :
29284 printf %s "(cached) " >&6
29285 else case e in #(
29286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287 /* end confdefs.h. */
29288
29289 #define NCURSES_OPAQUE 0
29290 #if defined(HAVE_NCURSESW_NCURSES_H)
29291 # include <ncursesw/ncurses.h>
29292 #elif defined(HAVE_NCURSESW_CURSES_H)
29293 # include <ncursesw/curses.h>
29294 #elif defined(HAVE_NCURSES_NCURSES_H)
29295 # include <ncurses/ncurses.h>
29296 #elif defined(HAVE_NCURSES_CURSES_H)
29297 # include <ncurses/curses.h>
29298 #elif defined(HAVE_NCURSES_H)
29299 # include <ncurses.h>
29300 #elif defined(HAVE_CURSES_H)
29301 # include <curses.h>
29302 #endif
29303
29304 int
29305 main (void)
29306 {
29307
29308 #ifndef resize_term
29309 void *x=resize_term
29310 #endif
29311
29312 ;
29313 return 0;
29314 }
29315 _ACEOF
29316 if ac_fn_c_try_compile "$LINENO"
29317 then :
29318 ac_cv_lib_curses_resize_term=yes
29319 else case e in #(
29320 e) ac_cv_lib_curses_resize_term=no ;;
29321 esac
29322 fi
29323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29324 ;;
29325 esac
29326 fi
29327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
29328 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
29329 if test "x$ac_cv_lib_curses_resize_term" = xyes
29330 then :
29331
29332 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
29333
29334 fi
29335
29336
29337
29338
29339
29340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
29341 printf %s "checking for curses function resizeterm... " >&6; }
29342 if test ${ac_cv_lib_curses_resizeterm+y}
29343 then :
29344 printf %s "(cached) " >&6
29345 else case e in #(
29346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29347 /* end confdefs.h. */
29348
29349 #define NCURSES_OPAQUE 0
29350 #if defined(HAVE_NCURSESW_NCURSES_H)
29351 # include <ncursesw/ncurses.h>
29352 #elif defined(HAVE_NCURSESW_CURSES_H)
29353 # include <ncursesw/curses.h>
29354 #elif defined(HAVE_NCURSES_NCURSES_H)
29355 # include <ncurses/ncurses.h>
29356 #elif defined(HAVE_NCURSES_CURSES_H)
29357 # include <ncurses/curses.h>
29358 #elif defined(HAVE_NCURSES_H)
29359 # include <ncurses.h>
29360 #elif defined(HAVE_CURSES_H)
29361 # include <curses.h>
29362 #endif
29363
29364 int
29365 main (void)
29366 {
29367
29368 #ifndef resizeterm
29369 void *x=resizeterm
29370 #endif
29371
29372 ;
29373 return 0;
29374 }
29375 _ACEOF
29376 if ac_fn_c_try_compile "$LINENO"
29377 then :
29378 ac_cv_lib_curses_resizeterm=yes
29379 else case e in #(
29380 e) ac_cv_lib_curses_resizeterm=no ;;
29381 esac
29382 fi
29383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29384 ;;
29385 esac
29386 fi
29387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
29388 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
29389 if test "x$ac_cv_lib_curses_resizeterm" = xyes
29390 then :
29391
29392 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
29393
29394 fi
29395
29396
29397
29398
29399
29400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
29401 printf %s "checking for curses function immedok... " >&6; }
29402 if test ${ac_cv_lib_curses_immedok+y}
29403 then :
29404 printf %s "(cached) " >&6
29405 else case e in #(
29406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29407 /* end confdefs.h. */
29408
29409 #define NCURSES_OPAQUE 0
29410 #if defined(HAVE_NCURSESW_NCURSES_H)
29411 # include <ncursesw/ncurses.h>
29412 #elif defined(HAVE_NCURSESW_CURSES_H)
29413 # include <ncursesw/curses.h>
29414 #elif defined(HAVE_NCURSES_NCURSES_H)
29415 # include <ncurses/ncurses.h>
29416 #elif defined(HAVE_NCURSES_CURSES_H)
29417 # include <ncurses/curses.h>
29418 #elif defined(HAVE_NCURSES_H)
29419 # include <ncurses.h>
29420 #elif defined(HAVE_CURSES_H)
29421 # include <curses.h>
29422 #endif
29423
29424 int
29425 main (void)
29426 {
29427
29428 #ifndef immedok
29429 void *x=immedok
29430 #endif
29431
29432 ;
29433 return 0;
29434 }
29435 _ACEOF
29436 if ac_fn_c_try_compile "$LINENO"
29437 then :
29438 ac_cv_lib_curses_immedok=yes
29439 else case e in #(
29440 e) ac_cv_lib_curses_immedok=no ;;
29441 esac
29442 fi
29443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29444 ;;
29445 esac
29446 fi
29447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
29448 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
29449 if test "x$ac_cv_lib_curses_immedok" = xyes
29450 then :
29451
29452 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
29453
29454 fi
29455
29456
29457
29458
29459
29460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
29461 printf %s "checking for curses function syncok... " >&6; }
29462 if test ${ac_cv_lib_curses_syncok+y}
29463 then :
29464 printf %s "(cached) " >&6
29465 else case e in #(
29466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29467 /* end confdefs.h. */
29468
29469 #define NCURSES_OPAQUE 0
29470 #if defined(HAVE_NCURSESW_NCURSES_H)
29471 # include <ncursesw/ncurses.h>
29472 #elif defined(HAVE_NCURSESW_CURSES_H)
29473 # include <ncursesw/curses.h>
29474 #elif defined(HAVE_NCURSES_NCURSES_H)
29475 # include <ncurses/ncurses.h>
29476 #elif defined(HAVE_NCURSES_CURSES_H)
29477 # include <ncurses/curses.h>
29478 #elif defined(HAVE_NCURSES_H)
29479 # include <ncurses.h>
29480 #elif defined(HAVE_CURSES_H)
29481 # include <curses.h>
29482 #endif
29483
29484 int
29485 main (void)
29486 {
29487
29488 #ifndef syncok
29489 void *x=syncok
29490 #endif
29491
29492 ;
29493 return 0;
29494 }
29495 _ACEOF
29496 if ac_fn_c_try_compile "$LINENO"
29497 then :
29498 ac_cv_lib_curses_syncok=yes
29499 else case e in #(
29500 e) ac_cv_lib_curses_syncok=no ;;
29501 esac
29502 fi
29503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29504 ;;
29505 esac
29506 fi
29507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
29508 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
29509 if test "x$ac_cv_lib_curses_syncok" = xyes
29510 then :
29511
29512 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
29513
29514 fi
29515
29516
29517
29518
29519
29520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
29521 printf %s "checking for curses function wchgat... " >&6; }
29522 if test ${ac_cv_lib_curses_wchgat+y}
29523 then :
29524 printf %s "(cached) " >&6
29525 else case e in #(
29526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29527 /* end confdefs.h. */
29528
29529 #define NCURSES_OPAQUE 0
29530 #if defined(HAVE_NCURSESW_NCURSES_H)
29531 # include <ncursesw/ncurses.h>
29532 #elif defined(HAVE_NCURSESW_CURSES_H)
29533 # include <ncursesw/curses.h>
29534 #elif defined(HAVE_NCURSES_NCURSES_H)
29535 # include <ncurses/ncurses.h>
29536 #elif defined(HAVE_NCURSES_CURSES_H)
29537 # include <ncurses/curses.h>
29538 #elif defined(HAVE_NCURSES_H)
29539 # include <ncurses.h>
29540 #elif defined(HAVE_CURSES_H)
29541 # include <curses.h>
29542 #endif
29543
29544 int
29545 main (void)
29546 {
29547
29548 #ifndef wchgat
29549 void *x=wchgat
29550 #endif
29551
29552 ;
29553 return 0;
29554 }
29555 _ACEOF
29556 if ac_fn_c_try_compile "$LINENO"
29557 then :
29558 ac_cv_lib_curses_wchgat=yes
29559 else case e in #(
29560 e) ac_cv_lib_curses_wchgat=no ;;
29561 esac
29562 fi
29563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29564 ;;
29565 esac
29566 fi
29567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
29568 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
29569 if test "x$ac_cv_lib_curses_wchgat" = xyes
29570 then :
29571
29572 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
29573
29574 fi
29575
29576
29577
29578
29579
29580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
29581 printf %s "checking for curses function filter... " >&6; }
29582 if test ${ac_cv_lib_curses_filter+y}
29583 then :
29584 printf %s "(cached) " >&6
29585 else case e in #(
29586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29588
29589 #define NCURSES_OPAQUE 0
29590 #if defined(HAVE_NCURSESW_NCURSES_H)
29591 # include <ncursesw/ncurses.h>
29592 #elif defined(HAVE_NCURSESW_CURSES_H)
29593 # include <ncursesw/curses.h>
29594 #elif defined(HAVE_NCURSES_NCURSES_H)
29595 # include <ncurses/ncurses.h>
29596 #elif defined(HAVE_NCURSES_CURSES_H)
29597 # include <ncurses/curses.h>
29598 #elif defined(HAVE_NCURSES_H)
29599 # include <ncurses.h>
29600 #elif defined(HAVE_CURSES_H)
29601 # include <curses.h>
29602 #endif
29603
29604 int
29605 main (void)
29606 {
29607
29608 #ifndef filter
29609 void *x=filter
29610 #endif
29611
29612 ;
29613 return 0;
29614 }
29615 _ACEOF
29616 if ac_fn_c_try_compile "$LINENO"
29617 then :
29618 ac_cv_lib_curses_filter=yes
29619 else case e in #(
29620 e) ac_cv_lib_curses_filter=no ;;
29621 esac
29622 fi
29623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29624 ;;
29625 esac
29626 fi
29627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
29628 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
29629 if test "x$ac_cv_lib_curses_filter" = xyes
29630 then :
29631
29632 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
29633
29634 fi
29635
29636
29637
29638
29639
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
29641 printf %s "checking for curses function has_key... " >&6; }
29642 if test ${ac_cv_lib_curses_has_key+y}
29643 then :
29644 printf %s "(cached) " >&6
29645 else case e in #(
29646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29647 /* end confdefs.h. */
29648
29649 #define NCURSES_OPAQUE 0
29650 #if defined(HAVE_NCURSESW_NCURSES_H)
29651 # include <ncursesw/ncurses.h>
29652 #elif defined(HAVE_NCURSESW_CURSES_H)
29653 # include <ncursesw/curses.h>
29654 #elif defined(HAVE_NCURSES_NCURSES_H)
29655 # include <ncurses/ncurses.h>
29656 #elif defined(HAVE_NCURSES_CURSES_H)
29657 # include <ncurses/curses.h>
29658 #elif defined(HAVE_NCURSES_H)
29659 # include <ncurses.h>
29660 #elif defined(HAVE_CURSES_H)
29661 # include <curses.h>
29662 #endif
29663
29664 int
29665 main (void)
29666 {
29667
29668 #ifndef has_key
29669 void *x=has_key
29670 #endif
29671
29672 ;
29673 return 0;
29674 }
29675 _ACEOF
29676 if ac_fn_c_try_compile "$LINENO"
29677 then :
29678 ac_cv_lib_curses_has_key=yes
29679 else case e in #(
29680 e) ac_cv_lib_curses_has_key=no ;;
29681 esac
29682 fi
29683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29684 ;;
29685 esac
29686 fi
29687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
29688 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
29689 if test "x$ac_cv_lib_curses_has_key" = xyes
29690 then :
29691
29692 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
29693
29694 fi
29695
29696
29697
29698
29699
29700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
29701 printf %s "checking for curses function typeahead... " >&6; }
29702 if test ${ac_cv_lib_curses_typeahead+y}
29703 then :
29704 printf %s "(cached) " >&6
29705 else case e in #(
29706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29707 /* end confdefs.h. */
29708
29709 #define NCURSES_OPAQUE 0
29710 #if defined(HAVE_NCURSESW_NCURSES_H)
29711 # include <ncursesw/ncurses.h>
29712 #elif defined(HAVE_NCURSESW_CURSES_H)
29713 # include <ncursesw/curses.h>
29714 #elif defined(HAVE_NCURSES_NCURSES_H)
29715 # include <ncurses/ncurses.h>
29716 #elif defined(HAVE_NCURSES_CURSES_H)
29717 # include <ncurses/curses.h>
29718 #elif defined(HAVE_NCURSES_H)
29719 # include <ncurses.h>
29720 #elif defined(HAVE_CURSES_H)
29721 # include <curses.h>
29722 #endif
29723
29724 int
29725 main (void)
29726 {
29727
29728 #ifndef typeahead
29729 void *x=typeahead
29730 #endif
29731
29732 ;
29733 return 0;
29734 }
29735 _ACEOF
29736 if ac_fn_c_try_compile "$LINENO"
29737 then :
29738 ac_cv_lib_curses_typeahead=yes
29739 else case e in #(
29740 e) ac_cv_lib_curses_typeahead=no ;;
29741 esac
29742 fi
29743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29744 ;;
29745 esac
29746 fi
29747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
29748 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
29749 if test "x$ac_cv_lib_curses_typeahead" = xyes
29750 then :
29751
29752 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
29753
29754 fi
29755
29756
29757
29758
29759
29760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
29761 printf %s "checking for curses function use_env... " >&6; }
29762 if test ${ac_cv_lib_curses_use_env+y}
29763 then :
29764 printf %s "(cached) " >&6
29765 else case e in #(
29766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29767 /* end confdefs.h. */
29768
29769 #define NCURSES_OPAQUE 0
29770 #if defined(HAVE_NCURSESW_NCURSES_H)
29771 # include <ncursesw/ncurses.h>
29772 #elif defined(HAVE_NCURSESW_CURSES_H)
29773 # include <ncursesw/curses.h>
29774 #elif defined(HAVE_NCURSES_NCURSES_H)
29775 # include <ncurses/ncurses.h>
29776 #elif defined(HAVE_NCURSES_CURSES_H)
29777 # include <ncurses/curses.h>
29778 #elif defined(HAVE_NCURSES_H)
29779 # include <ncurses.h>
29780 #elif defined(HAVE_CURSES_H)
29781 # include <curses.h>
29782 #endif
29783
29784 int
29785 main (void)
29786 {
29787
29788 #ifndef use_env
29789 void *x=use_env
29790 #endif
29791
29792 ;
29793 return 0;
29794 }
29795 _ACEOF
29796 if ac_fn_c_try_compile "$LINENO"
29797 then :
29798 ac_cv_lib_curses_use_env=yes
29799 else case e in #(
29800 e) ac_cv_lib_curses_use_env=no ;;
29801 esac
29802 fi
29803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29804 ;;
29805 esac
29806 fi
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
29808 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
29809 if test "x$ac_cv_lib_curses_use_env" = xyes
29810 then :
29811
29812 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
29813
29814 fi
29815
29816
29817
29818
29819
29820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function set_escdelay" >&5
29821 printf %s "checking for curses function set_escdelay... " >&6; }
29822 if test ${ac_cv_lib_curses_set_escdelay+y}
29823 then :
29824 printf %s "(cached) " >&6
29825 else case e in #(
29826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29827 /* end confdefs.h. */
29828
29829 #define NCURSES_OPAQUE 0
29830 #if defined(HAVE_NCURSESW_NCURSES_H)
29831 # include <ncursesw/ncurses.h>
29832 #elif defined(HAVE_NCURSESW_CURSES_H)
29833 # include <ncursesw/curses.h>
29834 #elif defined(HAVE_NCURSES_NCURSES_H)
29835 # include <ncurses/ncurses.h>
29836 #elif defined(HAVE_NCURSES_CURSES_H)
29837 # include <ncurses/curses.h>
29838 #elif defined(HAVE_NCURSES_H)
29839 # include <ncurses.h>
29840 #elif defined(HAVE_CURSES_H)
29841 # include <curses.h>
29842 #endif
29843
29844 int
29845 main (void)
29846 {
29847
29848 #ifndef set_escdelay
29849 void *x=set_escdelay
29850 #endif
29851
29852 ;
29853 return 0;
29854 }
29855 _ACEOF
29856 if ac_fn_c_try_compile "$LINENO"
29857 then :
29858 ac_cv_lib_curses_set_escdelay=yes
29859 else case e in #(
29860 e) ac_cv_lib_curses_set_escdelay=no ;;
29861 esac
29862 fi
29863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29864 ;;
29865 esac
29866 fi
29867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_set_escdelay" >&5
29868 printf "%s\n" "$ac_cv_lib_curses_set_escdelay" >&6; }
29869 if test "x$ac_cv_lib_curses_set_escdelay" = xyes
29870 then :
29871
29872 printf "%s\n" "#define HAVE_CURSES_SET_ESCDELAY 1" >>confdefs.h
29873
29874 fi
29875
29876
29877
29878
29879
29880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function set_tabsize" >&5
29881 printf %s "checking for curses function set_tabsize... " >&6; }
29882 if test ${ac_cv_lib_curses_set_tabsize+y}
29883 then :
29884 printf %s "(cached) " >&6
29885 else case e in #(
29886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29887 /* end confdefs.h. */
29888
29889 #define NCURSES_OPAQUE 0
29890 #if defined(HAVE_NCURSESW_NCURSES_H)
29891 # include <ncursesw/ncurses.h>
29892 #elif defined(HAVE_NCURSESW_CURSES_H)
29893 # include <ncursesw/curses.h>
29894 #elif defined(HAVE_NCURSES_NCURSES_H)
29895 # include <ncurses/ncurses.h>
29896 #elif defined(HAVE_NCURSES_CURSES_H)
29897 # include <ncurses/curses.h>
29898 #elif defined(HAVE_NCURSES_H)
29899 # include <ncurses.h>
29900 #elif defined(HAVE_CURSES_H)
29901 # include <curses.h>
29902 #endif
29903
29904 int
29905 main (void)
29906 {
29907
29908 #ifndef set_tabsize
29909 void *x=set_tabsize
29910 #endif
29911
29912 ;
29913 return 0;
29914 }
29915 _ACEOF
29916 if ac_fn_c_try_compile "$LINENO"
29917 then :
29918 ac_cv_lib_curses_set_tabsize=yes
29919 else case e in #(
29920 e) ac_cv_lib_curses_set_tabsize=no ;;
29921 esac
29922 fi
29923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29924 ;;
29925 esac
29926 fi
29927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_set_tabsize" >&5
29928 printf "%s\n" "$ac_cv_lib_curses_set_tabsize" >&6; }
29929 if test "x$ac_cv_lib_curses_set_tabsize" = xyes
29930 then :
29931
29932 printf "%s\n" "#define HAVE_CURSES_SET_TABSIZE 1" >>confdefs.h
29933
29934 fi
29935
29936
29937
29938
29939
29940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses variable ESCDELAY" >&5
29941 printf %s "checking for curses variable ESCDELAY... " >&6; }
29942 if test ${ac_cv_lib_curses_ESCDELAY+y}
29943 then :
29944 printf %s "(cached) " >&6
29945 else case e in #(
29946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29947 /* end confdefs.h. */
29948
29949 #define NCURSES_OPAQUE 0
29950 #if defined(HAVE_NCURSESW_NCURSES_H)
29951 # include <ncursesw/ncurses.h>
29952 #elif defined(HAVE_NCURSESW_CURSES_H)
29953 # include <ncursesw/curses.h>
29954 #elif defined(HAVE_NCURSES_NCURSES_H)
29955 # include <ncurses/ncurses.h>
29956 #elif defined(HAVE_NCURSES_CURSES_H)
29957 # include <ncurses/curses.h>
29958 #elif defined(HAVE_NCURSES_H)
29959 # include <ncurses.h>
29960 #elif defined(HAVE_CURSES_H)
29961 # include <curses.h>
29962 #endif
29963
29964 int
29965 main (void)
29966 {
29967
29968 int x = ESCDELAY; (void)x;
29969
29970 ;
29971 return 0;
29972 }
29973 _ACEOF
29974 if ac_fn_c_try_compile "$LINENO"
29975 then :
29976 ac_cv_lib_curses_ESCDELAY=yes
29977 else case e in #(
29978 e) ac_cv_lib_curses_ESCDELAY=no ;;
29979 esac
29980 fi
29981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29982 ;;
29983 esac
29984 fi
29985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_ESCDELAY" >&5
29986 printf "%s\n" "$ac_cv_lib_curses_ESCDELAY" >&6; }
29987 if test "x$ac_cv_lib_curses_ESCDELAY" = xyes
29988 then :
29989
29990 printf "%s\n" "#define HAVE_CURSES_ESCDELAY 1" >>confdefs.h
29991
29992 fi
29993
29994
29995
29996
29997
29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses variable TABSIZE" >&5
29999 printf %s "checking for curses variable TABSIZE... " >&6; }
30000 if test ${ac_cv_lib_curses_TABSIZE+y}
30001 then :
30002 printf %s "(cached) " >&6
30003 else case e in #(
30004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30005 /* end confdefs.h. */
30006
30007 #define NCURSES_OPAQUE 0
30008 #if defined(HAVE_NCURSESW_NCURSES_H)
30009 # include <ncursesw/ncurses.h>
30010 #elif defined(HAVE_NCURSESW_CURSES_H)
30011 # include <ncursesw/curses.h>
30012 #elif defined(HAVE_NCURSES_NCURSES_H)
30013 # include <ncurses/ncurses.h>
30014 #elif defined(HAVE_NCURSES_CURSES_H)
30015 # include <ncurses/curses.h>
30016 #elif defined(HAVE_NCURSES_H)
30017 # include <ncurses.h>
30018 #elif defined(HAVE_CURSES_H)
30019 # include <curses.h>
30020 #endif
30021
30022 int
30023 main (void)
30024 {
30025
30026 int x = TABSIZE; (void)x;
30027
30028 ;
30029 return 0;
30030 }
30031 _ACEOF
30032 if ac_fn_c_try_compile "$LINENO"
30033 then :
30034 ac_cv_lib_curses_TABSIZE=yes
30035 else case e in #(
30036 e) ac_cv_lib_curses_TABSIZE=no ;;
30037 esac
30038 fi
30039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30040 ;;
30041 esac
30042 fi
30043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_TABSIZE" >&5
30044 printf "%s\n" "$ac_cv_lib_curses_TABSIZE" >&6; }
30045 if test "x$ac_cv_lib_curses_TABSIZE" = xyes
30046 then :
30047
30048 printf "%s\n" "#define HAVE_CURSES_TABSIZE 1" >>confdefs.h
30049
30050 fi
30051
30052
30053
30054
30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses-style curses function getmouse" >&5
30056 printf %s "checking for ncurses-style curses function getmouse... " >&6; }
30057 if test ${ac_cv_lib_curses_getmouse+y}
30058 then :
30059 printf %s "(cached) " >&6
30060 else case e in #(
30061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30062 /* end confdefs.h. */
30063
30064 #define NCURSES_OPAQUE 0
30065 #if defined(HAVE_NCURSESW_NCURSES_H)
30066 # include <ncursesw/ncurses.h>
30067 #elif defined(HAVE_NCURSESW_CURSES_H)
30068 # include <ncursesw/curses.h>
30069 #elif defined(HAVE_NCURSES_NCURSES_H)
30070 # include <ncurses/ncurses.h>
30071 #elif defined(HAVE_NCURSES_CURSES_H)
30072 # include <ncurses/curses.h>
30073 #elif defined(HAVE_NCURSES_H)
30074 # include <ncurses.h>
30075 #elif defined(HAVE_CURSES_H)
30076 # include <curses.h>
30077 #endif
30078
30079 int
30080 main (void)
30081 {
30082 MEVENT event; (void)getmouse(&event);
30083 ;
30084 return 0;
30085 }
30086 _ACEOF
30087 if ac_fn_c_try_compile "$LINENO"
30088 then :
30089 ac_cv_lib_curses_getmouse=yes
30090 else case e in #(
30091 e) ac_cv_lib_curses_getmouse=no ;;
30092 esac
30093 fi
30094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30095 esac
30096 fi
30097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_getmouse" >&5
30098 printf "%s\n" "$ac_cv_lib_curses_getmouse" >&6; }
30099 if test "x$ac_cv_lib_curses_getmouse" = xyes
30100 then :
30101
30102 printf "%s\n" "#define HAVE_CURSES_GETMOUSE 1" >>confdefs.h
30103
30104 fi
30105 CPPFLAGS=$ac_save_cppflags
30106
30107 fi
30108 CFLAGS=$save_CFLAGS
30109 CPPFLAGS=$save_CPPFLAGS
30110 LDFLAGS=$save_LDFLAGS
30111 LIBS=$save_LIBS
30112
30113
30114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
30115 printf "%s\n" "$as_me: checking for device files" >&6;}
30116
30117 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
30118 ac_cv_file__dev_ptmx=no
30119 ac_cv_file__dev_ptc=no
30120 else
30121 if test "x$cross_compiling" = xyes; then
30122 if test "${ac_cv_file__dev_ptmx+set}" != set; then
30123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
30124 printf %s "checking for /dev/ptmx... " >&6; }
30125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
30126 printf "%s\n" "not set" >&6; }
30127 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
30128 fi
30129 if test "${ac_cv_file__dev_ptc+set}" != set; then
30130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
30131 printf %s "checking for /dev/ptc... " >&6; }
30132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
30133 printf "%s\n" "not set" >&6; }
30134 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
30135 fi
30136 fi
30137
30138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
30139 printf %s "checking for /dev/ptmx... " >&6; }
30140 if test ${ac_cv_file__dev_ptmx+y}
30141 then :
30142 printf %s "(cached) " >&6
30143 else case e in #(
30144 e) test "$cross_compiling" = yes &&
30145 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
30146 if test -r "/dev/ptmx"; then
30147 ac_cv_file__dev_ptmx=yes
30148 else
30149 ac_cv_file__dev_ptmx=no
30150 fi ;;
30151 esac
30152 fi
30153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
30154 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
30155 if test "x$ac_cv_file__dev_ptmx" = xyes
30156 then :
30157
30158 fi
30159
30160 if test "x$ac_cv_file__dev_ptmx" = xyes; then
30161
30162 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
30163
30164 fi
30165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
30166 printf %s "checking for /dev/ptc... " >&6; }
30167 if test ${ac_cv_file__dev_ptc+y}
30168 then :
30169 printf %s "(cached) " >&6
30170 else case e in #(
30171 e) test "$cross_compiling" = yes &&
30172 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
30173 if test -r "/dev/ptc"; then
30174 ac_cv_file__dev_ptc=yes
30175 else
30176 ac_cv_file__dev_ptc=no
30177 fi ;;
30178 esac
30179 fi
30180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
30181 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
30182 if test "x$ac_cv_file__dev_ptc" = xyes
30183 then :
30184
30185 fi
30186
30187 if test "x$ac_cv_file__dev_ptc" = xyes; then
30188
30189 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
30190
30191 fi
30192 fi
30193
30194 if test $ac_sys_system = Darwin
30195 then
30196 LIBS="$LIBS -framework CoreFoundation"
30197 fi
30198
30199 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
30200 #ifdef HAVE_SYS_TYPES_H
30201 #include <sys/types.h>
30202 #endif
30203 #ifdef HAVE_SYS_SOCKET_H
30204 #include <sys/socket.h>
30205 #endif
30206
30207 "
30208 if test "x$ac_cv_type_socklen_t" = xyes
30209 then :
30210
30211 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
30212
30213
30214 else case e in #(
30215 e)
30216 printf "%s\n" "#define socklen_t int" >>confdefs.h
30217 ;;
30218 esac
30219 fi
30220
30221
30222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
30223 printf %s "checking for broken mbstowcs... " >&6; }
30224 if test ${ac_cv_broken_mbstowcs+y}
30225 then :
30226 printf %s "(cached) " >&6
30227 else case e in #(
30228 e) if test "$cross_compiling" = yes
30229 then :
30230 ac_cv_broken_mbstowcs=no
30231 else case e in #(
30232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30233 /* end confdefs.h. */
30234
30235 #include <stddef.h>
30236 #include <stdio.h>
30237 #include <stdlib.h>
30238 int main(void) {
30239 size_t len = -1;
30240 const char *str = "text";
30241 len = mbstowcs(NULL, str, 0);
30242 return (len != 4);
30243 }
30244
30245 _ACEOF
30246 if ac_fn_c_try_run "$LINENO"
30247 then :
30248 ac_cv_broken_mbstowcs=no
30249 else case e in #(
30250 e) ac_cv_broken_mbstowcs=yes ;;
30251 esac
30252 fi
30253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30254 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30255 esac
30256 fi
30257 ;;
30258 esac
30259 fi
30260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
30261 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
30262 if test "$ac_cv_broken_mbstowcs" = yes
30263 then
30264
30265 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
30266
30267 fi
30268
30269 # Check for --with-computed-gotos
30270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
30271 printf %s "checking for --with-computed-gotos... " >&6; }
30272
30273 # Check whether --with-computed-gotos was given.
30274 if test ${with_computed_gotos+y}
30275 then :
30276 withval=$with_computed_gotos;
30277 if test "$withval" = yes
30278 then
30279
30280 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
30281
30282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30283 printf "%s\n" "yes" >&6; }
30284 fi
30285 if test "$withval" = no
30286 then
30287
30288 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
30289
30290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30291 printf "%s\n" "no" >&6; }
30292 fi
30293
30294 else case e in #(
30295 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
30296 printf "%s\n" "no value specified" >&6; } ;;
30297 esac
30298 fi
30299
30300
30301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
30302 printf %s "checking whether $CC supports computed gotos... " >&6; }
30303 if test ${ac_cv_computed_gotos+y}
30304 then :
30305 printf %s "(cached) " >&6
30306 else case e in #(
30307 e) if test "$cross_compiling" = yes
30308 then :
30309 if test "${with_computed_gotos+set}" = set; then
30310 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
30311 else
30312 ac_cv_computed_gotos=no
30313 fi
30314 else case e in #(
30315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316 /* end confdefs.h. */
30317
30318 int main(int argc, char **argv)
30319 {
30320 static void *targets[1] = { &&LABEL1 };
30321 goto LABEL2;
30322 LABEL1:
30323 return 0;
30324 LABEL2:
30325 goto *targets[0];
30326 return 1;
30327 }
30328
30329 _ACEOF
30330 if ac_fn_c_try_run "$LINENO"
30331 then :
30332 ac_cv_computed_gotos=yes
30333 else case e in #(
30334 e) ac_cv_computed_gotos=no ;;
30335 esac
30336 fi
30337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30338 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30339 esac
30340 fi
30341 ;;
30342 esac
30343 fi
30344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
30345 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
30346 case "$ac_cv_computed_gotos" in yes*)
30347
30348 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
30349
30350 esac
30351
30352 # Check for --with-tail-call-interp
30353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tail-call-interp" >&5
30354 printf %s "checking for --with-tail-call-interp... " >&6; }
30355
30356 # Check whether --with-tail-call-interp was given.
30357 if test ${with_tail_call_interp+y}
30358 then :
30359 withval=$with_tail_call_interp;
30360 if test "$withval" = yes
30361 then
30362
30363 printf "%s\n" "#define Py_TAIL_CALL_INTERP 1" >>confdefs.h
30364
30365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30366 printf "%s\n" "yes" >&6; }
30367 fi
30368 if test "$withval" = no
30369 then
30370
30371 printf "%s\n" "#define Py_TAIL_CALL_INTERP 0" >>confdefs.h
30372
30373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30374 printf "%s\n" "no" >&6; }
30375 fi
30376
30377 else case e in #(
30378 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
30379 printf "%s\n" "no value specified" >&6; } ;;
30380 esac
30381 fi
30382
30383
30384 # Check for --with-remote-debug
30385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-remote-debug" >&5
30386 printf %s "checking for --with-remote-debug... " >&6; }
30387
30388 # Check whether --with-remote-debug was given.
30389 if test ${with_remote_debug+y}
30390 then :
30391 withval=$with_remote_debug;
30392 else case e in #(
30393 e) with_remote_debug=yes ;;
30394 esac
30395 fi
30396
30397
30398 if test "$with_remote_debug" = yes; then
30399
30400 printf "%s\n" "#define Py_REMOTE_DEBUG 1" >>confdefs.h
30401
30402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30403 printf "%s\n" "yes" >&6; }
30404 else
30405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30406 printf "%s\n" "no" >&6; }
30407 fi
30408
30409
30410 case $ac_sys_system in
30411 AIX*)
30412
30413 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
30414 ;;
30415 esac
30416
30417
30418
30419
30420 for h in `(cd $srcdir;echo Python/thread_*.h)`
30421 do
30422 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
30423 done
30424
30425
30426 SRCDIRS="\
30427 Modules \
30428 Modules/_ctypes \
30429 Modules/_decimal \
30430 Modules/_decimal/libmpdec \
30431 Modules/_hacl \
30432 Modules/_io \
30433 Modules/_multiprocessing \
30434 Modules/_sqlite \
30435 Modules/_sre \
30436 Modules/_testcapi \
30437 Modules/_testinternalcapi \
30438 Modules/_testlimitedcapi \
30439 Modules/_xxtestfuzz \
30440 Modules/_zstd \
30441 Modules/cjkcodecs \
30442 Modules/expat \
30443 Objects \
30444 Objects/mimalloc \
30445 Objects/mimalloc/prim \
30446 Parser \
30447 Parser/tokenizer \
30448 Parser/lexer \
30449 Programs \
30450 Python \
30451 Python/frozen_modules"
30452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
30453 printf %s "checking for build directories... " >&6; }
30454 for dir in $SRCDIRS; do
30455 if test ! -d $dir; then
30456 mkdir $dir
30457 fi
30458 done
30459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
30460 printf "%s\n" "done" >&6; }
30461
30462 # Availability of -O2:
30463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
30464 printf %s "checking for -O2... " >&6; }
30465 if test ${ac_cv_compile_o2+y}
30466 then :
30467 printf %s "(cached) " >&6
30468 else case e in #(
30469 e)
30470 saved_cflags="$CFLAGS"
30471 CFLAGS="-O2"
30472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30473 /* end confdefs.h. */
30474
30475 int
30476 main (void)
30477 {
30478
30479 ;
30480 return 0;
30481 }
30482 _ACEOF
30483 if ac_fn_c_try_compile "$LINENO"
30484 then :
30485 ac_cv_compile_o2=yes
30486 else case e in #(
30487 e) ac_cv_compile_o2=no ;;
30488 esac
30489 fi
30490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30491 CFLAGS="$saved_cflags"
30492 ;;
30493 esac
30494 fi
30495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
30496 printf "%s\n" "$ac_cv_compile_o2" >&6; }
30497
30498 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
30499 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
30500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
30501 printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
30502 saved_cflags="$CFLAGS"
30503 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
30504 if test "$ac_cv_compile_o2" = no; then
30505 CFLAGS=""
30506 fi
30507 if test "$cross_compiling" = yes
30508 then :
30509 have_glibc_memmove_bug=undefined
30510 else case e in #(
30511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30512 /* end confdefs.h. */
30513
30514 #include <stdio.h>
30515 #include <stdlib.h>
30516 #include <string.h>
30517 void foo(void *p, void *q) { memmove(p, q, 19); }
30518 int main(void) {
30519 char a[32] = "123456789000000000";
30520 foo(&a[9], a);
30521 if (strcmp(a, "123456789123456789000000000") != 0)
30522 return 1;
30523 foo(a, &a[9]);
30524 if (strcmp(a, "123456789000000000") != 0)
30525 return 1;
30526 return 0;
30527 }
30528
30529 _ACEOF
30530 if ac_fn_c_try_run "$LINENO"
30531 then :
30532 have_glibc_memmove_bug=no
30533 else case e in #(
30534 e) have_glibc_memmove_bug=yes ;;
30535 esac
30536 fi
30537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30538 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30539 esac
30540 fi
30541
30542 CFLAGS="$saved_cflags"
30543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
30544 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
30545 if test "$have_glibc_memmove_bug" = yes; then
30546
30547 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
30548
30549 fi
30550
30551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to manually block large inlining in ceval.c" >&5
30552 printf %s "checking if we need to manually block large inlining in ceval.c... " >&6; }
30553 if test "$cross_compiling" = yes
30554 then :
30555 block_huge_inlining_in_ceval=undefined
30556 else case e in #(
30557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30558 /* end confdefs.h. */
30559
30560 int main(void) {
30561 // See gh-148284: Clang 22 seems to have interactions with inlining
30562 // and the stackref buffer which cause 40 kB of stack usage on x86-64
30563 // in buggy versions of _PyEval_EvalFrameDefault() in computed goto
30564 // interpreter. The normal usage seen is normally 1-2 kB.
30565 #if defined(__clang__) && (__clang_major__ == 22)
30566 return 1;
30567 #else
30568 return 0;
30569 #endif
30570 }
30571
30572 _ACEOF
30573 if ac_fn_c_try_run "$LINENO"
30574 then :
30575 block_huge_inlining_in_ceval=no
30576 else case e in #(
30577 e) block_huge_inlining_in_ceval=yes ;;
30578 esac
30579 fi
30580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30581 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30582 esac
30583 fi
30584
30585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $block_huge_inlining_in_ceval" >&5
30586 printf "%s\n" "$block_huge_inlining_in_ceval" >&6; }
30587
30588 if test "$block_huge_inlining_in_ceval" = yes && test "$ac_cv_computed_gotos" = yes; then
30589 # gh-148284: Suppress inlining of functions whose stack size exceeds
30590 # 512 bytes. This number should be tuned to follow the C stack
30591 # consumption in _PyEval_EvalFrameDefault() on computed goto
30592 # interpreter.
30593 CFLAGS_CEVAL="$CFLAGS_CEVAL -finline-max-stacksize=512"
30594 fi
30595
30596
30597 if test "$ac_cv_gcc_asm_for_x87" = yes; then
30598 # Some versions of gcc miscompile inline asm:
30599 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
30600 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
30601 case $ac_cv_cc_name in
30602 gcc)
30603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
30604 printf %s "checking for gcc ipa-pure-const bug... " >&6; }
30605 saved_cflags="$CFLAGS"
30606 CFLAGS="-O2"
30607 if test "$cross_compiling" = yes
30608 then :
30609 have_ipa_pure_const_bug=undefined
30610 else case e in #(
30611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30612 /* end confdefs.h. */
30613
30614 __attribute__((noinline)) int
30615 foo(int *p) {
30616 int r;
30617 asm ( "movl \$6, (%1)\n\t"
30618 "xorl %0, %0\n\t"
30619 : "=r" (r) : "r" (p) : "memory"
30620 );
30621 return r;
30622 }
30623 int main(void) {
30624 int p = 8;
30625 if ((foo(&p) ? : p) != 6)
30626 return 1;
30627 return 0;
30628 }
30629
30630 _ACEOF
30631 if ac_fn_c_try_run "$LINENO"
30632 then :
30633 have_ipa_pure_const_bug=no
30634 else case e in #(
30635 e) have_ipa_pure_const_bug=yes ;;
30636 esac
30637 fi
30638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30639 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30640 esac
30641 fi
30642
30643 CFLAGS="$saved_cflags"
30644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
30645 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
30646 if test "$have_ipa_pure_const_bug" = yes; then
30647
30648 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
30649
30650 fi
30651 ;;
30652 esac
30653 fi
30654
30655 # ensurepip option
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
30657 printf %s "checking for ensurepip... " >&6; }
30658
30659 # Check whether --with-ensurepip was given.
30660 if test ${with_ensurepip+y}
30661 then :
30662 withval=$with_ensurepip;
30663 else case e in #(
30664 e)
30665 case $ac_sys_system in #(
30666 Emscripten) :
30667 with_ensurepip=no ;; #(
30668 WASI) :
30669 with_ensurepip=no ;; #(
30670 iOS) :
30671 with_ensurepip=no ;; #(
30672 *) :
30673 with_ensurepip=upgrade
30674 ;;
30675 esac
30676 ;;
30677 esac
30678 fi
30679
30680 case $with_ensurepip in #(
30681 yes|upgrade) :
30682 ENSUREPIP=upgrade ;; #(
30683 install) :
30684 ENSUREPIP=install ;; #(
30685 no) :
30686 ENSUREPIP=no ;; #(
30687 *) :
30688 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
30689 esac
30690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
30691 printf "%s\n" "$ENSUREPIP" >&6; }
30692
30693
30694 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
30695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
30696 printf %s "checking if the dirent structure of a d_type field... " >&6; }
30697 if test ${ac_cv_dirent_d_type+y}
30698 then :
30699 printf %s "(cached) " >&6
30700 else case e in #(
30701 e)
30702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30703 /* end confdefs.h. */
30704
30705
30706 #include <dirent.h>
30707
30708 int main(void) {
30709 struct dirent entry;
30710 return entry.d_type == DT_UNKNOWN;
30711 }
30712
30713
30714 _ACEOF
30715 if ac_fn_c_try_link "$LINENO"
30716 then :
30717 ac_cv_dirent_d_type=yes
30718 else case e in #(
30719 e) ac_cv_dirent_d_type=no ;;
30720 esac
30721 fi
30722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30723 conftest$ac_exeext conftest.$ac_ext
30724 ;;
30725 esac
30726 fi
30727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
30728 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
30729
30730 if test "x$ac_cv_dirent_d_type" = xyes
30731 then :
30732
30733
30734 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
30735
30736
30737 fi
30738
30739 # check if the Linux getrandom() syscall is available
30740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
30741 printf %s "checking for the Linux getrandom() syscall... " >&6; }
30742 if test ${ac_cv_getrandom_syscall+y}
30743 then :
30744 printf %s "(cached) " >&6
30745 else case e in #(
30746 e)
30747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748 /* end confdefs.h. */
30749
30750
30751 #include <stddef.h>
30752 #include <unistd.h>
30753 #include <sys/syscall.h>
30754 #include <linux/random.h>
30755
30756 int main(void) {
30757 char buffer[1];
30758 const size_t buflen = sizeof(buffer);
30759 const int flags = GRND_NONBLOCK;
30760 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
30761 (void)syscall(SYS_getrandom, buffer, buflen, flags);
30762 return 0;
30763 }
30764
30765
30766 _ACEOF
30767 if ac_fn_c_try_link "$LINENO"
30768 then :
30769 ac_cv_getrandom_syscall=yes
30770 else case e in #(
30771 e) ac_cv_getrandom_syscall=no ;;
30772 esac
30773 fi
30774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30775 conftest$ac_exeext conftest.$ac_ext
30776 ;;
30777 esac
30778 fi
30779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
30780 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
30781
30782 if test "x$ac_cv_getrandom_syscall" = xyes
30783 then :
30784
30785
30786 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
30787
30788
30789 fi
30790
30791 # check if the getrandom() function is available
30792 # the test was written for the Solaris function of <sys/random.h>
30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
30794 printf %s "checking for the getrandom() function... " >&6; }
30795 if test ${ac_cv_func_getrandom+y}
30796 then :
30797 printf %s "(cached) " >&6
30798 else case e in #(
30799 e)
30800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30801 /* end confdefs.h. */
30802
30803
30804 #include <stddef.h>
30805 #include <sys/random.h>
30806
30807 int main(void) {
30808 char buffer[1];
30809 const size_t buflen = sizeof(buffer);
30810 const int flags = 0;
30811 /* ignore the result, Python checks for ENOSYS at runtime */
30812 (void)getrandom(buffer, buflen, flags);
30813 return 0;
30814 }
30815
30816
30817 _ACEOF
30818 if ac_fn_c_try_link "$LINENO"
30819 then :
30820 ac_cv_func_getrandom=yes
30821 else case e in #(
30822 e) ac_cv_func_getrandom=no ;;
30823 esac
30824 fi
30825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30826 conftest$ac_exeext conftest.$ac_ext
30827 ;;
30828 esac
30829 fi
30830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
30831 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
30832
30833 if test "x$ac_cv_func_getrandom" = xyes
30834 then :
30835
30836
30837 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
30838
30839
30840 fi
30841
30842 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
30843 # shm_* may only be available if linking against librt
30844 POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing'
30845 save_CFLAGS=$CFLAGS
30846 save_CPPFLAGS=$CPPFLAGS
30847 save_LDFLAGS=$LDFLAGS
30848 save_LIBS=$LIBS
30849
30850
30851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
30852 printf %s "checking for library containing shm_open... " >&6; }
30853 if test ${ac_cv_search_shm_open+y}
30854 then :
30855 printf %s "(cached) " >&6
30856 else case e in #(
30857 e) ac_func_search_save_LIBS=$LIBS
30858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30859 /* end confdefs.h. */
30860
30861 /* Override any GCC internal prototype to avoid an error.
30862 Use char because int might match the return type of a GCC
30863 builtin and then its argument prototype would still apply.
30864 The 'extern "C"' is for builds by C++ compilers;
30865 although this is not generally supported in C code supporting it here
30866 has little cost and some practical benefit (sr 110532). */
30867 #ifdef __cplusplus
30868 extern "C"
30869 #endif
30870 char shm_open (void);
30871 int
30872 main (void)
30873 {
30874 return shm_open ();
30875 ;
30876 return 0;
30877 }
30878 _ACEOF
30879 for ac_lib in '' rt
30880 do
30881 if test -z "$ac_lib"; then
30882 ac_res="none required"
30883 else
30884 ac_res=-l$ac_lib
30885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30886 fi
30887 if ac_fn_c_try_link "$LINENO"
30888 then :
30889 ac_cv_search_shm_open=$ac_res
30890 fi
30891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30892 conftest$ac_exeext
30893 if test ${ac_cv_search_shm_open+y}
30894 then :
30895 break
30896 fi
30897 done
30898 if test ${ac_cv_search_shm_open+y}
30899 then :
30900
30901 else case e in #(
30902 e) ac_cv_search_shm_open=no ;;
30903 esac
30904 fi
30905 rm conftest.$ac_ext
30906 LIBS=$ac_func_search_save_LIBS ;;
30907 esac
30908 fi
30909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
30910 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
30911 ac_res=$ac_cv_search_shm_open
30912 if test "$ac_res" != no
30913 then :
30914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30915
30916 fi
30917
30918 if test "x$ac_cv_search_shm_open" = x-lrt
30919 then :
30920 POSIXSHMEM_LIBS="-lrt"
30921 fi
30922
30923 save_ac_includes_default=$ac_includes_default
30924 ac_includes_default="\
30925 ${ac_includes_default}
30926 #ifndef __cplusplus
30927 # ifdef HAVE_SYS_MMAN_H
30928 # include <sys/mman.h>
30929 # endif
30930 #endif
30931 "
30932
30933 for ac_func in shm_open shm_unlink
30934 do :
30935 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
30936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30937 if eval test \"x\$"$as_ac_var"\" = x"yes"
30938 then :
30939 cat >>confdefs.h <<_ACEOF
30940 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
30941 _ACEOF
30942 have_posix_shmem=yes
30943 else case e in #(
30944 e) have_posix_shmem=no ;;
30945 esac
30946 fi
30947
30948 done
30949 ac_includes_default=$save_ac_includes_default
30950
30951 CFLAGS=$save_CFLAGS
30952 CPPFLAGS=$save_CPPFLAGS
30953 LDFLAGS=$save_LDFLAGS
30954 LIBS=$save_LIBS
30955
30956
30957
30958 # Check for usable OpenSSL
30959
30960 found=false
30961
30962 # Check whether --with-openssl was given.
30963 if test ${with_openssl+y}
30964 then :
30965 withval=$with_openssl;
30966 case "$withval" in
30967 "" | y | ye | yes | n | no)
30968 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
30969 ;;
30970 *) ssldirs="$withval"
30971 ;;
30972 esac
30973
30974 else case e in #(
30975 e)
30976 # if pkg-config is installed and openssl has installed a .pc file,
30977 # then use that information and don't search ssldirs
30978 if test -n "$ac_tool_prefix"; then
30979 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30980 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30982 printf %s "checking for $ac_word... " >&6; }
30983 if test ${ac_cv_prog_PKG_CONFIG+y}
30984 then :
30985 printf %s "(cached) " >&6
30986 else case e in #(
30987 e) if test -n "$PKG_CONFIG"; then
30988 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
30989 else
30990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30991 for as_dir in $PATH
30992 do
30993 IFS=$as_save_IFS
30994 case $as_dir in #(((
30995 '') as_dir=./ ;;
30996 */) ;;
30997 *) as_dir=$as_dir/ ;;
30998 esac
30999 for ac_exec_ext in '' $ac_executable_extensions; do
31000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31001 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
31002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31003 break 2
31004 fi
31005 done
31006 done
31007 IFS=$as_save_IFS
31008
31009 fi ;;
31010 esac
31011 fi
31012 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
31013 if test -n "$PKG_CONFIG"; then
31014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
31015 printf "%s\n" "$PKG_CONFIG" >&6; }
31016 else
31017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31018 printf "%s\n" "no" >&6; }
31019 fi
31020
31021
31022 fi
31023 if test -z "$ac_cv_prog_PKG_CONFIG"; then
31024 ac_ct_PKG_CONFIG=$PKG_CONFIG
31025 # Extract the first word of "pkg-config", so it can be a program name with args.
31026 set dummy pkg-config; ac_word=$2
31027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31028 printf %s "checking for $ac_word... " >&6; }
31029 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
31030 then :
31031 printf %s "(cached) " >&6
31032 else case e in #(
31033 e) if test -n "$ac_ct_PKG_CONFIG"; then
31034 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
31035 else
31036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31037 for as_dir in $PATH
31038 do
31039 IFS=$as_save_IFS
31040 case $as_dir in #(((
31041 '') as_dir=./ ;;
31042 */) ;;
31043 *) as_dir=$as_dir/ ;;
31044 esac
31045 for ac_exec_ext in '' $ac_executable_extensions; do
31046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31047 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
31048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31049 break 2
31050 fi
31051 done
31052 done
31053 IFS=$as_save_IFS
31054
31055 fi ;;
31056 esac
31057 fi
31058 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
31059 if test -n "$ac_ct_PKG_CONFIG"; then
31060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
31061 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
31062 else
31063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064 printf "%s\n" "no" >&6; }
31065 fi
31066
31067 if test "x$ac_ct_PKG_CONFIG" = x; then
31068 PKG_CONFIG=""
31069 else
31070 case $cross_compiling:$ac_tool_warned in
31071 yes:)
31072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31074 ac_tool_warned=yes ;;
31075 esac
31076 PKG_CONFIG=$ac_ct_PKG_CONFIG
31077 fi
31078 else
31079 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
31080 fi
31081
31082 if test x"$PKG_CONFIG" != x""; then
31083 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
31084 if test $? = 0; then
31085 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
31086 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
31087 found=true
31088 fi
31089 fi
31090
31091 # no such luck; use some default ssldirs
31092 if ! $found; then
31093 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
31094 fi
31095
31096 ;;
31097 esac
31098 fi
31099
31100
31101
31102 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
31103 # an 'openssl' subdirectory
31104
31105 if ! $found; then
31106 OPENSSL_INCLUDES=
31107 for ssldir in $ssldirs; do
31108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
31109 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
31110 if test -f "$ssldir/include/openssl/ssl.h"; then
31111 OPENSSL_INCLUDES="-I$ssldir/include"
31112 OPENSSL_LDFLAGS="-L$ssldir/lib"
31113 OPENSSL_LIBS="-lssl -lcrypto"
31114 found=true
31115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31116 printf "%s\n" "yes" >&6; }
31117 break
31118 else
31119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31120 printf "%s\n" "no" >&6; }
31121 fi
31122 done
31123
31124 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
31125 # it will just work!
31126 fi
31127
31128 # try the preprocessor and linker with our new flags,
31129 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
31130
31131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
31132 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
31133 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
31134 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
31135
31136 save_LIBS="$LIBS"
31137 save_LDFLAGS="$LDFLAGS"
31138 save_CPPFLAGS="$CPPFLAGS"
31139 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
31140 LIBS="$OPENSSL_LIBS $LIBS"
31141 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
31142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31143 /* end confdefs.h. */
31144 #include <openssl/ssl.h>
31145 int
31146 main (void)
31147 {
31148 SSL_new(NULL)
31149 ;
31150 return 0;
31151 }
31152 _ACEOF
31153 if ac_fn_c_try_link "$LINENO"
31154 then :
31155
31156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31157 printf "%s\n" "yes" >&6; }
31158 have_openssl=yes
31159
31160 else case e in #(
31161 e)
31162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31163 printf "%s\n" "no" >&6; }
31164 have_openssl=no
31165 ;;
31166 esac
31167 fi
31168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31169 conftest$ac_exeext conftest.$ac_ext
31170 CPPFLAGS="$save_CPPFLAGS"
31171 LDFLAGS="$save_LDFLAGS"
31172 LIBS="$save_LIBS"
31173
31174
31175
31176
31177
31178
31179 # rpath to libssl and libcrypto
31180 if test "x$GNULD" = xyes
31181 then :
31182
31183 rpath_arg="-Wl,--enable-new-dtags,-rpath="
31184
31185 else case e in #(
31186 e)
31187 if test "$ac_sys_system" = "Darwin"
31188 then
31189 rpath_arg="-Wl,-rpath,"
31190 else
31191 rpath_arg="-Wl,-rpath="
31192 fi
31193 ;;
31194 esac
31195 fi
31196
31197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
31198 printf %s "checking for --with-openssl-rpath... " >&6; }
31199
31200 # Check whether --with-openssl-rpath was given.
31201 if test ${with_openssl_rpath+y}
31202 then :
31203 withval=$with_openssl_rpath;
31204 else case e in #(
31205 e) with_openssl_rpath=no
31206 ;;
31207 esac
31208 fi
31209
31210 case $with_openssl_rpath in #(
31211 auto|yes) :
31212
31213 OPENSSL_RPATH=auto
31214 for arg in "$OPENSSL_LDFLAGS"; do
31215 case $arg in #(
31216 -L*) :
31217 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
31218 ;; #(
31219 *) :
31220 ;;
31221 esac
31222 done
31223 ;; #(
31224 no) :
31225 OPENSSL_RPATH= ;; #(
31226 *) :
31227 if test -d "$with_openssl_rpath"
31228 then :
31229
31230 OPENSSL_RPATH="$with_openssl_rpath"
31231 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath"
31232
31233 else case e in #(
31234 e) as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 ;;
31235 esac
31236 fi
31237
31238 ;;
31239 esac
31240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
31241 printf "%s\n" "$OPENSSL_RPATH" >&6; }
31242
31243 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
31244 # Requires static OpenSSL build with position-independent code. Some features
31245 # like DSO engines or external OSSL providers don't work. Only tested with GCC
31246 # and clang on X86_64.
31247 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
31248 then :
31249
31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
31251 printf %s "checking for unsupported static openssl build... " >&6; }
31252 new_OPENSSL_LIBS=
31253 for arg in $OPENSSL_LIBS; do
31254 case $arg in #(
31255 -l*) :
31256
31257 libname=$(echo $arg | cut -c3-)
31258 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
31259 ;; #(
31260 *) :
31261 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg"
31262 ;;
31263 esac
31264 done
31265 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS"
31266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
31267 printf "%s\n" "$OPENSSL_LIBS" >&6; }
31268
31269 fi
31270
31271 LIBCRYPTO_LIBS=
31272 for arg in $OPENSSL_LIBS; do
31273 case $arg in #(
31274 -l*ssl*|-Wl*ssl*) :
31275 ;; #(
31276 *) :
31277 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg"
31278 ;;
31279 esac
31280 done
31281
31282 # check if OpenSSL libraries work as expected
31283 save_CFLAGS=$CFLAGS
31284 save_CPPFLAGS=$CPPFLAGS
31285 save_LDFLAGS=$LDFLAGS
31286 save_LIBS=$LIBS
31287
31288
31289 LIBS="$LIBS $OPENSSL_LIBS"
31290 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
31291 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
31292
31293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
31294 printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; }
31295 if test ${ac_cv_working_openssl_ssl+y}
31296 then :
31297 printf %s "(cached) " >&6
31298 else case e in #(
31299 e)
31300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31301 /* end confdefs.h. */
31302
31303 #include <openssl/opensslv.h>
31304 #include <openssl/ssl.h>
31305 #if OPENSSL_VERSION_NUMBER < 0x10101000L
31306 #error "OpenSSL >= 1.1.1 is required"
31307 #endif
31308 static void keylog_cb(const SSL *ssl, const char *line) {}
31309
31310 int
31311 main (void)
31312 {
31313
31314 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
31315 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
31316 SSL *ssl = SSL_new(ctx);
31317 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
31318 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
31319 SSL_free(ssl);
31320 SSL_CTX_free(ctx);
31321
31322 ;
31323 return 0;
31324 }
31325 _ACEOF
31326 if ac_fn_c_try_link "$LINENO"
31327 then :
31328 ac_cv_working_openssl_ssl=yes
31329 else case e in #(
31330 e) ac_cv_working_openssl_ssl=no ;;
31331 esac
31332 fi
31333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31334 conftest$ac_exeext conftest.$ac_ext
31335 ;;
31336 esac
31337 fi
31338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
31339 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
31340
31341 CFLAGS=$save_CFLAGS
31342 CPPFLAGS=$save_CPPFLAGS
31343 LDFLAGS=$save_LDFLAGS
31344 LIBS=$save_LIBS
31345
31346
31347
31348 save_CFLAGS=$CFLAGS
31349 save_CPPFLAGS=$CPPFLAGS
31350 save_LDFLAGS=$LDFLAGS
31351 save_LIBS=$LIBS
31352
31353
31354 LIBS="$LIBS $LIBCRYPTO_LIBS"
31355 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
31356 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
31357
31358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
31359 printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; }
31360 if test ${ac_cv_working_openssl_hashlib+y}
31361 then :
31362 printf %s "(cached) " >&6
31363 else case e in #(
31364 e)
31365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31366 /* end confdefs.h. */
31367
31368 #include <openssl/opensslv.h>
31369 #include <openssl/evp.h>
31370 #if OPENSSL_VERSION_NUMBER < 0x10101000L
31371 #error "OpenSSL >= 1.1.1 is required"
31372 #endif
31373
31374 int
31375 main (void)
31376 {
31377
31378 OBJ_nid2sn(NID_md5);
31379 OBJ_nid2sn(NID_sha1);
31380 OBJ_nid2sn(NID_sha3_512);
31381 OBJ_nid2sn(NID_blake2b512);
31382 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
31383
31384 ;
31385 return 0;
31386 }
31387 _ACEOF
31388 if ac_fn_c_try_link "$LINENO"
31389 then :
31390 ac_cv_working_openssl_hashlib=yes
31391 else case e in #(
31392 e) ac_cv_working_openssl_hashlib=no ;;
31393 esac
31394 fi
31395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31396 conftest$ac_exeext conftest.$ac_ext
31397 ;;
31398 esac
31399 fi
31400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
31401 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
31402
31403 CFLAGS=$save_CFLAGS
31404 CPPFLAGS=$save_CPPFLAGS
31405 LDFLAGS=$save_LDFLAGS
31406 LIBS=$save_LIBS
31407
31408
31409
31410 # ssl module default cipher suite string
31411
31412
31413
31414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
31415 printf %s "checking for --with-ssl-default-suites... " >&6; }
31416
31417 # Check whether --with-ssl-default-suites was given.
31418 if test ${with_ssl_default_suites+y}
31419 then :
31420 withval=$with_ssl_default_suites;
31421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
31422 printf "%s\n" "$withval" >&6; }
31423 case "$withval" in
31424 python)
31425 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
31426
31427 ;;
31428 openssl)
31429 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
31430
31431 ;;
31432 *)
31433 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
31434
31435 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
31436
31437 ;;
31438 esac
31439
31440 else case e in #(
31441 e)
31442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
31443 printf "%s\n" "python" >&6; }
31444 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
31445
31446 ;;
31447 esac
31448 fi
31449
31450
31451 # builtin hash modules
31452 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
31453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
31454 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
31455
31456 # Check whether --with-builtin-hashlib-hashes was given.
31457 if test ${with_builtin_hashlib_hashes+y}
31458 then :
31459 withval=$with_builtin_hashlib_hashes;
31460 case $with_builtin_hashlib_hashes in #(
31461 yes) :
31462 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #(
31463 no) :
31464 with_builtin_hashlib_hashes=""
31465 ;; #(
31466 *) :
31467 ;;
31468 esac
31469
31470 else case e in #(
31471 e) with_builtin_hashlib_hashes=$default_hashlib_hashes ;;
31472 esac
31473 fi
31474
31475
31476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
31477 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
31478
31479 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
31480
31481
31482 as_save_IFS=$IFS
31483 IFS=,
31484 for builtin_hash in $with_builtin_hashlib_hashes; do
31485 case $builtin_hash in #(
31486 md5) :
31487 with_builtin_md5=yes ;; #(
31488 sha1) :
31489 with_builtin_sha1=yes ;; #(
31490 sha2) :
31491 with_builtin_sha2=yes ;; #(
31492 sha3) :
31493 with_builtin_sha3=yes ;; #(
31494 blake2) :
31495 with_builtin_blake2=yes
31496 ;; #(
31497 *) :
31498 ;;
31499 esac
31500 done
31501 IFS=$as_save_IFS
31502
31503 # Check whether to disable test modules. Once set, setup.py will not build
31504 # test extension modules and "make install" will not install test suites.
31505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
31506 printf %s "checking for --disable-test-modules... " >&6; }
31507 # Check whether --enable-test-modules was given.
31508 if test ${enable_test_modules+y}
31509 then :
31510 enableval=$enable_test_modules;
31511 if test "x$enable_test_modules" = xyes
31512 then :
31513 TEST_MODULES=yes
31514 else case e in #(
31515 e) TEST_MODULES=no ;;
31516 esac
31517 fi
31518
31519 else case e in #(
31520 e) TEST_MODULES=yes ;;
31521 esac
31522 fi
31523
31524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
31525 printf "%s\n" "$TEST_MODULES" >&6; }
31526
31527
31528 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
31529 # On Linux aarch64, GCC may require programs and libraries to be linked
31530 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
31531 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
31532 # compiler flags.
31533 #
31534 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
31535 # and 2-byte operations, but not for 8-byte operations.
31536 #
31537 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
31538 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
31539 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
31540 # anymore. <pyport.h> cannot be included alone, it's designed to be included
31541 # by <Python.h>: it expects other includes and macros to be defined.
31542 save_CPPFLAGS=$CPPFLAGS
31543 CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
31544
31545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
31546 printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; }
31547 if test ${ac_cv_libatomic_needed+y}
31548 then :
31549 printf %s "(cached) " >&6
31550 else case e in #(
31551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31552 /* end confdefs.h. */
31553
31554 // pyatomic.h needs uint64_t and Py_ssize_t types
31555 #include <stdint.h> // int64_t, intptr_t
31556 #ifdef HAVE_SYS_TYPES_H
31557 # include <sys/types.h> // ssize_t
31558 #endif
31559 // Code adapted from Include/pyport.h
31560 #if HAVE_SSIZE_T
31561 typedef ssize_t Py_ssize_t;
31562 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
31563 typedef intptr_t Py_ssize_t;
31564 #else
31565 # error "unable to define Py_ssize_t"
31566 #endif
31567
31568 #include "pyatomic.h"
31569
31570 int main()
31571 {
31572 uint64_t value;
31573 _Py_atomic_store_uint64(&value, 2);
31574 if (_Py_atomic_or_uint64(&value, 8) != 2) {
31575 return 1; // error
31576 }
31577 if (_Py_atomic_load_uint64(&value) != 10) {
31578 return 1; // error
31579 }
31580 uint8_t byte = 0xb8;
31581 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
31582 return 1; // error
31583 }
31584 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
31585 return 1; // error
31586 }
31587 return 0; // all good
31588 }
31589
31590 _ACEOF
31591 if ac_fn_c_try_link "$LINENO"
31592 then :
31593 ac_cv_libatomic_needed=no
31594 else case e in #(
31595 e) ac_cv_libatomic_needed=yes ;;
31596 esac
31597 fi
31598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31599 conftest$ac_exeext conftest.$ac_ext ;;
31600 esac
31601 fi
31602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
31603 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
31604
31605 if test "x$ac_cv_libatomic_needed" = xyes
31606 then :
31607 LIBS="${LIBS} -latomic"
31608 LIBATOMIC=${LIBATOMIC-"-latomic"}
31609 fi
31610 CPPFLAGS=$save_CPPFLAGS
31611
31612
31613 # gh-59705: Maximum length in bytes of a thread name
31614 case "$ac_sys_system" in
31615 Linux*) _PYTHREAD_NAME_MAXLEN=15;; # Linux and Android
31616 SunOS*) _PYTHREAD_NAME_MAXLEN=31;;
31617 NetBSD*) _PYTHREAD_NAME_MAXLEN=15;; # gh-131268
31618 Darwin) _PYTHREAD_NAME_MAXLEN=63;;
31619 iOS) _PYTHREAD_NAME_MAXLEN=63;;
31620 FreeBSD*) _PYTHREAD_NAME_MAXLEN=19;; # gh-131268
31621 OpenBSD*) _PYTHREAD_NAME_MAXLEN=23;; # gh-131268
31622 *) _PYTHREAD_NAME_MAXLEN=;;
31623 esac
31624 if test -n "$_PYTHREAD_NAME_MAXLEN"; then
31625
31626 printf "%s\n" "#define _PYTHREAD_NAME_MAXLEN $_PYTHREAD_NAME_MAXLEN" >>confdefs.h
31627
31628 fi
31629
31630
31631
31632 # stdlib
31633
31634
31635 # stdlib not available
31636 case $ac_sys_system in #(
31637 AIX) :
31638
31639
31640 py_cv_module__scproxy=n/a
31641 ;; #(
31642 VxWorks*) :
31643
31644
31645 py_cv_module__scproxy=n/a
31646 py_cv_module_termios=n/a
31647 py_cv_module_grp=n/a
31648 ;; #(
31649 Darwin) :
31650 ;; #(
31651 iOS) :
31652
31653
31654
31655 py_cv_module__curses=n/a
31656 py_cv_module__curses_panel=n/a
31657 py_cv_module__gdbm=n/a
31658 py_cv_module__multiprocessing=n/a
31659 py_cv_module__posixshmem=n/a
31660 py_cv_module__posixsubprocess=n/a
31661 py_cv_module__scproxy=n/a
31662 py_cv_module__tkinter=n/a
31663 py_cv_module_grp=n/a
31664 py_cv_module_nis=n/a
31665 py_cv_module_readline=n/a
31666 py_cv_module_pwd=n/a
31667 py_cv_module_spwd=n/a
31668 py_cv_module_syslog=n/a
31669 py_cv_module_=n/a
31670
31671 ;; #(
31672 CYGWIN*) :
31673
31674
31675 py_cv_module__scproxy=n/a
31676 ;; #(
31677 QNX*) :
31678
31679
31680 py_cv_module__scproxy=n/a
31681 ;; #(
31682 FreeBSD*) :
31683
31684
31685 py_cv_module__scproxy=n/a
31686 ;; #(
31687 Emscripten) :
31688
31689
31690
31691 py_cv_module__curses=n/a
31692 py_cv_module__curses_panel=n/a
31693 py_cv_module__dbm=n/a
31694 py_cv_module__gdbm=n/a
31695 py_cv_module__multiprocessing=n/a
31696 py_cv_module__posixshmem=n/a
31697 py_cv_module__posixsubprocess=n/a
31698 py_cv_module__scproxy=n/a
31699 py_cv_module__tkinter=n/a
31700 py_cv_module__interpreters=n/a
31701 py_cv_module__interpchannels=n/a
31702 py_cv_module__interpqueues=n/a
31703 py_cv_module_grp=n/a
31704 py_cv_module_pwd=n/a
31705 py_cv_module_resource=n/a
31706 py_cv_module_syslog=n/a
31707 py_cv_module_=n/a
31708
31709
31710
31711 py_cv_module_readline=n/a
31712 py_cv_module_=n/a
31713
31714 ;; #(
31715 WASI) :
31716
31717
31718
31719 py_cv_module__curses=n/a
31720 py_cv_module__curses_panel=n/a
31721 py_cv_module__dbm=n/a
31722 py_cv_module__gdbm=n/a
31723 py_cv_module__multiprocessing=n/a
31724 py_cv_module__posixshmem=n/a
31725 py_cv_module__posixsubprocess=n/a
31726 py_cv_module__scproxy=n/a
31727 py_cv_module__tkinter=n/a
31728 py_cv_module__interpreters=n/a
31729 py_cv_module__interpchannels=n/a
31730 py_cv_module__interpqueues=n/a
31731 py_cv_module_grp=n/a
31732 py_cv_module_pwd=n/a
31733 py_cv_module_resource=n/a
31734 py_cv_module_syslog=n/a
31735 py_cv_module_=n/a
31736
31737
31738
31739 py_cv_module__ctypes_test=n/a
31740 py_cv_module__remote_debugging=n/a
31741 py_cv_module__testimportmultiple=n/a
31742 py_cv_module__testmultiphase=n/a
31743 py_cv_module__testsinglephase=n/a
31744 py_cv_module_fcntl=n/a
31745 py_cv_module_mmap=n/a
31746 py_cv_module_termios=n/a
31747 py_cv_module_xxlimited=n/a
31748 py_cv_module_xxlimited_35=n/a
31749 py_cv_module_=n/a
31750
31751 ;; #(
31752 *) :
31753
31754
31755 py_cv_module__scproxy=n/a
31756
31757 ;;
31758 esac
31759
31760
31761 case $host_cpu in #(
31762 wasm32|wasm64) :
31763 MODULE_BUILDTYPE=static ;; #(
31764 *) :
31765 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
31766 ;;
31767 esac
31768
31769
31770
31771 MODULE_BLOCK=
31772
31773
31774
31775
31776
31777
31778 if test "$py_cv_module__io" != "n/a"
31779 then :
31780 py_cv_module__io=yes
31781 fi
31782 if test "$py_cv_module__io" = yes; then
31783 MODULE__IO_TRUE=
31784 MODULE__IO_FALSE='#'
31785 else
31786 MODULE__IO_TRUE='#'
31787 MODULE__IO_FALSE=
31788 fi
31789
31790 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl"
31791 if test "x$py_cv_module__io" = xyes
31792 then :
31793
31794 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
31795
31796
31797 fi
31798
31799
31800 if test "$py_cv_module_time" != "n/a"
31801 then :
31802 py_cv_module_time=yes
31803 fi
31804 if test "$py_cv_module_time" = yes; then
31805 MODULE_TIME_TRUE=
31806 MODULE_TIME_FALSE='#'
31807 else
31808 MODULE_TIME_TRUE='#'
31809 MODULE_TIME_FALSE=
31810 fi
31811
31812 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl"
31813 if test "x$py_cv_module_time" = xyes
31814 then :
31815
31816
31817 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
31818
31819 fi
31820
31821
31822
31823 if test "$py_cv_module_array" != "n/a"
31824 then :
31825 py_cv_module_array=yes
31826 fi
31827 if test "$py_cv_module_array" = yes; then
31828 MODULE_ARRAY_TRUE=
31829 MODULE_ARRAY_FALSE='#'
31830 else
31831 MODULE_ARRAY_TRUE='#'
31832 MODULE_ARRAY_FALSE=
31833 fi
31834
31835 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
31836 if test "x$py_cv_module_array" = xyes
31837 then :
31838
31839
31840
31841
31842 fi
31843
31844
31845 if test "$py_cv_module__asyncio" != "n/a"
31846 then :
31847 py_cv_module__asyncio=yes
31848 fi
31849 if test "$py_cv_module__asyncio" = yes; then
31850 MODULE__ASYNCIO_TRUE=
31851 MODULE__ASYNCIO_FALSE='#'
31852 else
31853 MODULE__ASYNCIO_TRUE='#'
31854 MODULE__ASYNCIO_FALSE=
31855 fi
31856
31857 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
31858 if test "x$py_cv_module__asyncio" = xyes
31859 then :
31860
31861
31862
31863
31864 fi
31865
31866
31867 if test "$py_cv_module__bisect" != "n/a"
31868 then :
31869 py_cv_module__bisect=yes
31870 fi
31871 if test "$py_cv_module__bisect" = yes; then
31872 MODULE__BISECT_TRUE=
31873 MODULE__BISECT_FALSE='#'
31874 else
31875 MODULE__BISECT_TRUE='#'
31876 MODULE__BISECT_FALSE=
31877 fi
31878
31879 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
31880 if test "x$py_cv_module__bisect" = xyes
31881 then :
31882
31883
31884
31885
31886 fi
31887
31888
31889 if test "$py_cv_module__csv" != "n/a"
31890 then :
31891 py_cv_module__csv=yes
31892 fi
31893 if test "$py_cv_module__csv" = yes; then
31894 MODULE__CSV_TRUE=
31895 MODULE__CSV_FALSE='#'
31896 else
31897 MODULE__CSV_TRUE='#'
31898 MODULE__CSV_FALSE=
31899 fi
31900
31901 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
31902 if test "x$py_cv_module__csv" = xyes
31903 then :
31904
31905
31906
31907
31908 fi
31909
31910
31911 if test "$py_cv_module__heapq" != "n/a"
31912 then :
31913 py_cv_module__heapq=yes
31914 fi
31915 if test "$py_cv_module__heapq" = yes; then
31916 MODULE__HEAPQ_TRUE=
31917 MODULE__HEAPQ_FALSE='#'
31918 else
31919 MODULE__HEAPQ_TRUE='#'
31920 MODULE__HEAPQ_FALSE=
31921 fi
31922
31923 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
31924 if test "x$py_cv_module__heapq" = xyes
31925 then :
31926
31927
31928
31929
31930 fi
31931
31932
31933 if test "$py_cv_module__json" != "n/a"
31934 then :
31935 py_cv_module__json=yes
31936 fi
31937 if test "$py_cv_module__json" = yes; then
31938 MODULE__JSON_TRUE=
31939 MODULE__JSON_FALSE='#'
31940 else
31941 MODULE__JSON_TRUE='#'
31942 MODULE__JSON_FALSE=
31943 fi
31944
31945 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl"
31946 if test "x$py_cv_module__json" = xyes
31947 then :
31948
31949
31950
31951
31952 fi
31953
31954
31955 if test "$py_cv_module__lsprof" != "n/a"
31956 then :
31957 py_cv_module__lsprof=yes
31958 fi
31959 if test "$py_cv_module__lsprof" = yes; then
31960 MODULE__LSPROF_TRUE=
31961 MODULE__LSPROF_FALSE='#'
31962 else
31963 MODULE__LSPROF_TRUE='#'
31964 MODULE__LSPROF_FALSE=
31965 fi
31966
31967 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
31968 if test "x$py_cv_module__lsprof" = xyes
31969 then :
31970
31971
31972
31973
31974 fi
31975
31976
31977 if test "$py_cv_module__pickle" != "n/a"
31978 then :
31979 py_cv_module__pickle=yes
31980 fi
31981 if test "$py_cv_module__pickle" = yes; then
31982 MODULE__PICKLE_TRUE=
31983 MODULE__PICKLE_FALSE='#'
31984 else
31985 MODULE__PICKLE_TRUE='#'
31986 MODULE__PICKLE_FALSE=
31987 fi
31988
31989 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
31990 if test "x$py_cv_module__pickle" = xyes
31991 then :
31992
31993
31994
31995
31996 fi
31997
31998
31999 if test "$py_cv_module__posixsubprocess" != "n/a"
32000 then :
32001 py_cv_module__posixsubprocess=yes
32002 fi
32003 if test "$py_cv_module__posixsubprocess" = yes; then
32004 MODULE__POSIXSUBPROCESS_TRUE=
32005 MODULE__POSIXSUBPROCESS_FALSE='#'
32006 else
32007 MODULE__POSIXSUBPROCESS_TRUE='#'
32008 MODULE__POSIXSUBPROCESS_FALSE=
32009 fi
32010
32011 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
32012 if test "x$py_cv_module__posixsubprocess" = xyes
32013 then :
32014
32015
32016
32017
32018 fi
32019
32020
32021 if test "$py_cv_module__queue" != "n/a"
32022 then :
32023 py_cv_module__queue=yes
32024 fi
32025 if test "$py_cv_module__queue" = yes; then
32026 MODULE__QUEUE_TRUE=
32027 MODULE__QUEUE_FALSE='#'
32028 else
32029 MODULE__QUEUE_TRUE='#'
32030 MODULE__QUEUE_FALSE=
32031 fi
32032
32033 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
32034 if test "x$py_cv_module__queue" = xyes
32035 then :
32036
32037
32038
32039
32040 fi
32041
32042
32043 if test "$py_cv_module__random" != "n/a"
32044 then :
32045 py_cv_module__random=yes
32046 fi
32047 if test "$py_cv_module__random" = yes; then
32048 MODULE__RANDOM_TRUE=
32049 MODULE__RANDOM_FALSE='#'
32050 else
32051 MODULE__RANDOM_TRUE='#'
32052 MODULE__RANDOM_FALSE=
32053 fi
32054
32055 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
32056 if test "x$py_cv_module__random" = xyes
32057 then :
32058
32059
32060
32061
32062 fi
32063
32064
32065 if test "$py_cv_module__remote_debugging" != "n/a"
32066 then :
32067 py_cv_module__remote_debugging=yes
32068 fi
32069 if test "$py_cv_module__remote_debugging" = yes; then
32070 MODULE__REMOTE_DEBUGGING_TRUE=
32071 MODULE__REMOTE_DEBUGGING_FALSE='#'
32072 else
32073 MODULE__REMOTE_DEBUGGING_TRUE='#'
32074 MODULE__REMOTE_DEBUGGING_FALSE=
32075 fi
32076
32077 as_fn_append MODULE_BLOCK "MODULE__REMOTE_DEBUGGING_STATE=$py_cv_module__remote_debugging$as_nl"
32078 if test "x$py_cv_module__remote_debugging" = xyes
32079 then :
32080
32081
32082
32083
32084 fi
32085
32086
32087 if test "$py_cv_module_select" != "n/a"
32088 then :
32089 py_cv_module_select=yes
32090 fi
32091 if test "$py_cv_module_select" = yes; then
32092 MODULE_SELECT_TRUE=
32093 MODULE_SELECT_FALSE='#'
32094 else
32095 MODULE_SELECT_TRUE='#'
32096 MODULE_SELECT_FALSE=
32097 fi
32098
32099 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
32100 if test "x$py_cv_module_select" = xyes
32101 then :
32102
32103
32104
32105
32106 fi
32107
32108
32109 if test "$py_cv_module__struct" != "n/a"
32110 then :
32111 py_cv_module__struct=yes
32112 fi
32113 if test "$py_cv_module__struct" = yes; then
32114 MODULE__STRUCT_TRUE=
32115 MODULE__STRUCT_FALSE='#'
32116 else
32117 MODULE__STRUCT_TRUE='#'
32118 MODULE__STRUCT_FALSE=
32119 fi
32120
32121 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
32122 if test "x$py_cv_module__struct" = xyes
32123 then :
32124
32125
32126
32127
32128 fi
32129
32130
32131 if test "$py_cv_module__types" != "n/a"
32132 then :
32133 py_cv_module__types=yes
32134 fi
32135 if test "$py_cv_module__types" = yes; then
32136 MODULE__TYPES_TRUE=
32137 MODULE__TYPES_FALSE='#'
32138 else
32139 MODULE__TYPES_TRUE='#'
32140 MODULE__TYPES_FALSE=
32141 fi
32142
32143 as_fn_append MODULE_BLOCK "MODULE__TYPES_STATE=$py_cv_module__types$as_nl"
32144 if test "x$py_cv_module__types" = xyes
32145 then :
32146
32147
32148
32149
32150 fi
32151
32152
32153 if test "$py_cv_module__typing" != "n/a"
32154 then :
32155 py_cv_module__typing=yes
32156 fi
32157 if test "$py_cv_module__typing" = yes; then
32158 MODULE__TYPING_TRUE=
32159 MODULE__TYPING_FALSE='#'
32160 else
32161 MODULE__TYPING_TRUE='#'
32162 MODULE__TYPING_FALSE=
32163 fi
32164
32165 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
32166 if test "x$py_cv_module__typing" = xyes
32167 then :
32168
32169
32170
32171
32172 fi
32173
32174
32175 if test "$py_cv_module__interpreters" != "n/a"
32176 then :
32177 py_cv_module__interpreters=yes
32178 fi
32179 if test "$py_cv_module__interpreters" = yes; then
32180 MODULE__INTERPRETERS_TRUE=
32181 MODULE__INTERPRETERS_FALSE='#'
32182 else
32183 MODULE__INTERPRETERS_TRUE='#'
32184 MODULE__INTERPRETERS_FALSE=
32185 fi
32186
32187 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
32188 if test "x$py_cv_module__interpreters" = xyes
32189 then :
32190
32191
32192
32193
32194 fi
32195
32196
32197 if test "$py_cv_module__interpchannels" != "n/a"
32198 then :
32199 py_cv_module__interpchannels=yes
32200 fi
32201 if test "$py_cv_module__interpchannels" = yes; then
32202 MODULE__INTERPCHANNELS_TRUE=
32203 MODULE__INTERPCHANNELS_FALSE='#'
32204 else
32205 MODULE__INTERPCHANNELS_TRUE='#'
32206 MODULE__INTERPCHANNELS_FALSE=
32207 fi
32208
32209 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
32210 if test "x$py_cv_module__interpchannels" = xyes
32211 then :
32212
32213
32214
32215
32216 fi
32217
32218
32219 if test "$py_cv_module__interpqueues" != "n/a"
32220 then :
32221 py_cv_module__interpqueues=yes
32222 fi
32223 if test "$py_cv_module__interpqueues" = yes; then
32224 MODULE__INTERPQUEUES_TRUE=
32225 MODULE__INTERPQUEUES_FALSE='#'
32226 else
32227 MODULE__INTERPQUEUES_TRUE='#'
32228 MODULE__INTERPQUEUES_FALSE=
32229 fi
32230
32231 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
32232 if test "x$py_cv_module__interpqueues" = xyes
32233 then :
32234
32235
32236
32237
32238 fi
32239
32240
32241 if test "$py_cv_module__zoneinfo" != "n/a"
32242 then :
32243 py_cv_module__zoneinfo=yes
32244 fi
32245 if test "$py_cv_module__zoneinfo" = yes; then
32246 MODULE__ZONEINFO_TRUE=
32247 MODULE__ZONEINFO_FALSE='#'
32248 else
32249 MODULE__ZONEINFO_TRUE='#'
32250 MODULE__ZONEINFO_FALSE=
32251 fi
32252
32253 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
32254 if test "x$py_cv_module__zoneinfo" = xyes
32255 then :
32256
32257
32258
32259
32260 fi
32261
32262
32263
32264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
32265 printf %s "checking for stdlib extension module _multiprocessing... " >&6; }
32266 if test "$py_cv_module__multiprocessing" != "n/a"
32267 then :
32268
32269 if true
32270 then :
32271 if test "$ac_cv_func_sem_unlink" = "yes"
32272 then :
32273 py_cv_module__multiprocessing=yes
32274 else case e in #(
32275 e) py_cv_module__multiprocessing=missing ;;
32276 esac
32277 fi
32278 else case e in #(
32279 e) py_cv_module__multiprocessing=disabled ;;
32280 esac
32281 fi
32282
32283 fi
32284 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
32285 if test "x$py_cv_module__multiprocessing" = xyes
32286 then :
32287
32288 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
32289
32290
32291 fi
32292 if test "$py_cv_module__multiprocessing" = yes; then
32293 MODULE__MULTIPROCESSING_TRUE=
32294 MODULE__MULTIPROCESSING_FALSE='#'
32295 else
32296 MODULE__MULTIPROCESSING_TRUE='#'
32297 MODULE__MULTIPROCESSING_FALSE=
32298 fi
32299
32300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
32301 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
32302
32303
32304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
32305 printf %s "checking for stdlib extension module _posixshmem... " >&6; }
32306 if test "$py_cv_module__posixshmem" != "n/a"
32307 then :
32308
32309 if true
32310 then :
32311 if test "$have_posix_shmem" = "yes"
32312 then :
32313 py_cv_module__posixshmem=yes
32314 else case e in #(
32315 e) py_cv_module__posixshmem=missing ;;
32316 esac
32317 fi
32318 else case e in #(
32319 e) py_cv_module__posixshmem=disabled ;;
32320 esac
32321 fi
32322
32323 fi
32324 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
32325 if test "x$py_cv_module__posixshmem" = xyes
32326 then :
32327
32328 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
32329 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
32330
32331 fi
32332 if test "$py_cv_module__posixshmem" = yes; then
32333 MODULE__POSIXSHMEM_TRUE=
32334 MODULE__POSIXSHMEM_FALSE='#'
32335 else
32336 MODULE__POSIXSHMEM_TRUE='#'
32337 MODULE__POSIXSHMEM_FALSE=
32338 fi
32339
32340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
32341 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
32342
32343
32344
32345 if test "$py_cv_module__statistics" != "n/a"
32346 then :
32347 py_cv_module__statistics=yes
32348 fi
32349 if test "$py_cv_module__statistics" = yes; then
32350 MODULE__STATISTICS_TRUE=
32351 MODULE__STATISTICS_FALSE='#'
32352 else
32353 MODULE__STATISTICS_TRUE='#'
32354 MODULE__STATISTICS_FALSE=
32355 fi
32356
32357 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
32358 if test "x$py_cv_module__statistics" = xyes
32359 then :
32360
32361
32362 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
32363
32364 fi
32365
32366
32367 if test "$py_cv_module_cmath" != "n/a"
32368 then :
32369 py_cv_module_cmath=yes
32370 fi
32371 if test "$py_cv_module_cmath" = yes; then
32372 MODULE_CMATH_TRUE=
32373 MODULE_CMATH_FALSE='#'
32374 else
32375 MODULE_CMATH_TRUE='#'
32376 MODULE_CMATH_FALSE=
32377 fi
32378
32379 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
32380 if test "x$py_cv_module_cmath" = xyes
32381 then :
32382
32383
32384 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
32385
32386 fi
32387
32388
32389 if test "$py_cv_module_math" != "n/a"
32390 then :
32391 py_cv_module_math=yes
32392 fi
32393 if test "$py_cv_module_math" = yes; then
32394 MODULE_MATH_TRUE=
32395 MODULE_MATH_FALSE='#'
32396 else
32397 MODULE_MATH_TRUE='#'
32398 MODULE_MATH_FALSE=
32399 fi
32400
32401 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl"
32402 if test "x$py_cv_module_math" = xyes
32403 then :
32404
32405
32406 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl"
32407
32408 fi
32409
32410
32411
32412 if test "$py_cv_module__datetime" != "n/a"
32413 then :
32414 py_cv_module__datetime=yes
32415 fi
32416 if test "$py_cv_module__datetime" = yes; then
32417 MODULE__DATETIME_TRUE=
32418 MODULE__DATETIME_FALSE='#'
32419 else
32420 MODULE__DATETIME_TRUE='#'
32421 MODULE__DATETIME_FALSE=
32422 fi
32423
32424 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
32425 if test "x$py_cv_module__datetime" = xyes
32426 then :
32427
32428
32429 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
32430
32431 fi
32432
32433
32434
32435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
32436 printf %s "checking for stdlib extension module fcntl... " >&6; }
32437 if test "$py_cv_module_fcntl" != "n/a"
32438 then :
32439
32440 if true
32441 then :
32442 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
32443 then :
32444 py_cv_module_fcntl=yes
32445 else case e in #(
32446 e) py_cv_module_fcntl=missing ;;
32447 esac
32448 fi
32449 else case e in #(
32450 e) py_cv_module_fcntl=disabled ;;
32451 esac
32452 fi
32453
32454 fi
32455 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
32456 if test "x$py_cv_module_fcntl" = xyes
32457 then :
32458
32459
32460 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
32461
32462 fi
32463 if test "$py_cv_module_fcntl" = yes; then
32464 MODULE_FCNTL_TRUE=
32465 MODULE_FCNTL_FALSE='#'
32466 else
32467 MODULE_FCNTL_TRUE='#'
32468 MODULE_FCNTL_FALSE=
32469 fi
32470
32471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
32472 printf "%s\n" "$py_cv_module_fcntl" >&6; }
32473
32474
32475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
32476 printf %s "checking for stdlib extension module mmap... " >&6; }
32477 if test "$py_cv_module_mmap" != "n/a"
32478 then :
32479
32480 if true
32481 then :
32482 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
32483 then :
32484 py_cv_module_mmap=yes
32485 else case e in #(
32486 e) py_cv_module_mmap=missing ;;
32487 esac
32488 fi
32489 else case e in #(
32490 e) py_cv_module_mmap=disabled ;;
32491 esac
32492 fi
32493
32494 fi
32495 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
32496 if test "x$py_cv_module_mmap" = xyes
32497 then :
32498
32499
32500
32501
32502 fi
32503 if test "$py_cv_module_mmap" = yes; then
32504 MODULE_MMAP_TRUE=
32505 MODULE_MMAP_FALSE='#'
32506 else
32507 MODULE_MMAP_TRUE='#'
32508 MODULE_MMAP_FALSE=
32509 fi
32510
32511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
32512 printf "%s\n" "$py_cv_module_mmap" >&6; }
32513
32514
32515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
32516 printf %s "checking for stdlib extension module _socket... " >&6; }
32517 if test "$py_cv_module__socket" != "n/a"
32518 then :
32519
32520 if true
32521 then :
32522 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"
32523 then :
32524 py_cv_module__socket=yes
32525 else case e in #(
32526 e) py_cv_module__socket=missing ;;
32527 esac
32528 fi
32529 else case e in #(
32530 e) py_cv_module__socket=disabled ;;
32531 esac
32532 fi
32533
32534 fi
32535 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
32536 if test "x$py_cv_module__socket" = xyes
32537 then :
32538
32539
32540 as_fn_append MODULE_BLOCK "MODULE__SOCKET_LDFLAGS=$SOCKET_LIBS$as_nl"
32541
32542 fi
32543 if test "$py_cv_module__socket" = yes; then
32544 MODULE__SOCKET_TRUE=
32545 MODULE__SOCKET_FALSE='#'
32546 else
32547 MODULE__SOCKET_TRUE='#'
32548 MODULE__SOCKET_FALSE=
32549 fi
32550
32551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
32552 printf "%s\n" "$py_cv_module__socket" >&6; }
32553
32554
32555
32556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
32557 printf %s "checking for stdlib extension module grp... " >&6; }
32558 if test "$py_cv_module_grp" != "n/a"
32559 then :
32560
32561 if true
32562 then :
32563 if test "$ac_cv_func_getgrent" = "yes" &&
32564 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }
32565 then :
32566 py_cv_module_grp=yes
32567 else case e in #(
32568 e) py_cv_module_grp=missing ;;
32569 esac
32570 fi
32571 else case e in #(
32572 e) py_cv_module_grp=disabled ;;
32573 esac
32574 fi
32575
32576 fi
32577 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
32578 if test "x$py_cv_module_grp" = xyes
32579 then :
32580
32581
32582
32583
32584 fi
32585 if test "$py_cv_module_grp" = yes; then
32586 MODULE_GRP_TRUE=
32587 MODULE_GRP_FALSE='#'
32588 else
32589 MODULE_GRP_TRUE='#'
32590 MODULE_GRP_FALSE=
32591 fi
32592
32593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
32594 printf "%s\n" "$py_cv_module_grp" >&6; }
32595
32596
32597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
32598 printf %s "checking for stdlib extension module pwd... " >&6; }
32599 if test "$py_cv_module_pwd" != "n/a"
32600 then :
32601
32602 if true
32603 then :
32604 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
32605 then :
32606 py_cv_module_pwd=yes
32607 else case e in #(
32608 e) py_cv_module_pwd=missing ;;
32609 esac
32610 fi
32611 else case e in #(
32612 e) py_cv_module_pwd=disabled ;;
32613 esac
32614 fi
32615
32616 fi
32617 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
32618 if test "x$py_cv_module_pwd" = xyes
32619 then :
32620
32621
32622
32623
32624 fi
32625 if test "$py_cv_module_pwd" = yes; then
32626 MODULE_PWD_TRUE=
32627 MODULE_PWD_FALSE='#'
32628 else
32629 MODULE_PWD_TRUE='#'
32630 MODULE_PWD_FALSE=
32631 fi
32632
32633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
32634 printf "%s\n" "$py_cv_module_pwd" >&6; }
32635
32636
32637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
32638 printf %s "checking for stdlib extension module resource... " >&6; }
32639 if test "$py_cv_module_resource" != "n/a"
32640 then :
32641
32642 if true
32643 then :
32644 if test "$ac_cv_header_sys_resource_h" = yes
32645 then :
32646 py_cv_module_resource=yes
32647 else case e in #(
32648 e) py_cv_module_resource=missing ;;
32649 esac
32650 fi
32651 else case e in #(
32652 e) py_cv_module_resource=disabled ;;
32653 esac
32654 fi
32655
32656 fi
32657 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
32658 if test "x$py_cv_module_resource" = xyes
32659 then :
32660
32661
32662
32663
32664 fi
32665 if test "$py_cv_module_resource" = yes; then
32666 MODULE_RESOURCE_TRUE=
32667 MODULE_RESOURCE_FALSE='#'
32668 else
32669 MODULE_RESOURCE_TRUE='#'
32670 MODULE_RESOURCE_FALSE=
32671 fi
32672
32673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
32674 printf "%s\n" "$py_cv_module_resource" >&6; }
32675
32676
32677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
32678 printf %s "checking for stdlib extension module _scproxy... " >&6; }
32679 if test "$py_cv_module__scproxy" != "n/a"
32680 then :
32681
32682 if test "$ac_sys_system" = "Darwin"
32683 then :
32684 if true
32685 then :
32686 py_cv_module__scproxy=yes
32687 else case e in #(
32688 e) py_cv_module__scproxy=missing ;;
32689 esac
32690 fi
32691 else case e in #(
32692 e) py_cv_module__scproxy=disabled ;;
32693 esac
32694 fi
32695
32696 fi
32697 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
32698 if test "x$py_cv_module__scproxy" = xyes
32699 then :
32700
32701
32702 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
32703
32704 fi
32705 if test "$py_cv_module__scproxy" = yes; then
32706 MODULE__SCPROXY_TRUE=
32707 MODULE__SCPROXY_FALSE='#'
32708 else
32709 MODULE__SCPROXY_TRUE='#'
32710 MODULE__SCPROXY_FALSE=
32711 fi
32712
32713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
32714 printf "%s\n" "$py_cv_module__scproxy" >&6; }
32715
32716
32717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
32718 printf %s "checking for stdlib extension module syslog... " >&6; }
32719 if test "$py_cv_module_syslog" != "n/a"
32720 then :
32721
32722 if true
32723 then :
32724 if test "$ac_cv_header_syslog_h" = yes
32725 then :
32726 py_cv_module_syslog=yes
32727 else case e in #(
32728 e) py_cv_module_syslog=missing ;;
32729 esac
32730 fi
32731 else case e in #(
32732 e) py_cv_module_syslog=disabled ;;
32733 esac
32734 fi
32735
32736 fi
32737 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
32738 if test "x$py_cv_module_syslog" = xyes
32739 then :
32740
32741
32742
32743
32744 fi
32745 if test "$py_cv_module_syslog" = yes; then
32746 MODULE_SYSLOG_TRUE=
32747 MODULE_SYSLOG_FALSE='#'
32748 else
32749 MODULE_SYSLOG_TRUE='#'
32750 MODULE_SYSLOG_FALSE=
32751 fi
32752
32753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
32754 printf "%s\n" "$py_cv_module_syslog" >&6; }
32755
32756
32757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
32758 printf %s "checking for stdlib extension module termios... " >&6; }
32759 if test "$py_cv_module_termios" != "n/a"
32760 then :
32761
32762 if true
32763 then :
32764 if test "$ac_cv_header_termios_h" = yes
32765 then :
32766 py_cv_module_termios=yes
32767 else case e in #(
32768 e) py_cv_module_termios=missing ;;
32769 esac
32770 fi
32771 else case e in #(
32772 e) py_cv_module_termios=disabled ;;
32773 esac
32774 fi
32775
32776 fi
32777 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
32778 if test "x$py_cv_module_termios" = xyes
32779 then :
32780
32781
32782
32783
32784 fi
32785 if test "$py_cv_module_termios" = yes; then
32786 MODULE_TERMIOS_TRUE=
32787 MODULE_TERMIOS_FALSE='#'
32788 else
32789 MODULE_TERMIOS_TRUE='#'
32790 MODULE_TERMIOS_FALSE=
32791 fi
32792
32793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
32794 printf "%s\n" "$py_cv_module_termios" >&6; }
32795
32796
32797
32798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
32799 printf %s "checking for stdlib extension module pyexpat... " >&6; }
32800 if test "$py_cv_module_pyexpat" != "n/a"
32801 then :
32802
32803 if true
32804 then :
32805 if test "$ac_cv_header_sys_time_h" = "yes"
32806 then :
32807 py_cv_module_pyexpat=yes
32808 else case e in #(
32809 e) py_cv_module_pyexpat=missing ;;
32810 esac
32811 fi
32812 else case e in #(
32813 e) py_cv_module_pyexpat=disabled ;;
32814 esac
32815 fi
32816
32817 fi
32818 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
32819 if test "x$py_cv_module_pyexpat" = xyes
32820 then :
32821
32822 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
32823 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
32824
32825 fi
32826 if test "$py_cv_module_pyexpat" = yes; then
32827 MODULE_PYEXPAT_TRUE=
32828 MODULE_PYEXPAT_FALSE='#'
32829 else
32830 MODULE_PYEXPAT_TRUE='#'
32831 MODULE_PYEXPAT_FALSE=
32832 fi
32833
32834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
32835 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
32836
32837
32838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
32839 printf %s "checking for stdlib extension module _elementtree... " >&6; }
32840 if test "$py_cv_module__elementtree" != "n/a"
32841 then :
32842
32843 if true
32844 then :
32845 if true
32846 then :
32847 py_cv_module__elementtree=yes
32848 else case e in #(
32849 e) py_cv_module__elementtree=missing ;;
32850 esac
32851 fi
32852 else case e in #(
32853 e) py_cv_module__elementtree=disabled ;;
32854 esac
32855 fi
32856
32857 fi
32858 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
32859 if test "x$py_cv_module__elementtree" = xyes
32860 then :
32861
32862 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
32863
32864
32865 fi
32866 if test "$py_cv_module__elementtree" = yes; then
32867 MODULE__ELEMENTTREE_TRUE=
32868 MODULE__ELEMENTTREE_FALSE='#'
32869 else
32870 MODULE__ELEMENTTREE_TRUE='#'
32871 MODULE__ELEMENTTREE_FALSE=
32872 fi
32873
32874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
32875 printf "%s\n" "$py_cv_module__elementtree" >&6; }
32876
32877
32878 if test "$py_cv_module__codecs_cn" != "n/a"
32879 then :
32880 py_cv_module__codecs_cn=yes
32881 fi
32882 if test "$py_cv_module__codecs_cn" = yes; then
32883 MODULE__CODECS_CN_TRUE=
32884 MODULE__CODECS_CN_FALSE='#'
32885 else
32886 MODULE__CODECS_CN_TRUE='#'
32887 MODULE__CODECS_CN_FALSE=
32888 fi
32889
32890 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
32891 if test "x$py_cv_module__codecs_cn" = xyes
32892 then :
32893
32894
32895
32896
32897 fi
32898
32899
32900 if test "$py_cv_module__codecs_hk" != "n/a"
32901 then :
32902 py_cv_module__codecs_hk=yes
32903 fi
32904 if test "$py_cv_module__codecs_hk" = yes; then
32905 MODULE__CODECS_HK_TRUE=
32906 MODULE__CODECS_HK_FALSE='#'
32907 else
32908 MODULE__CODECS_HK_TRUE='#'
32909 MODULE__CODECS_HK_FALSE=
32910 fi
32911
32912 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
32913 if test "x$py_cv_module__codecs_hk" = xyes
32914 then :
32915
32916
32917
32918
32919 fi
32920
32921
32922 if test "$py_cv_module__codecs_iso2022" != "n/a"
32923 then :
32924 py_cv_module__codecs_iso2022=yes
32925 fi
32926 if test "$py_cv_module__codecs_iso2022" = yes; then
32927 MODULE__CODECS_ISO2022_TRUE=
32928 MODULE__CODECS_ISO2022_FALSE='#'
32929 else
32930 MODULE__CODECS_ISO2022_TRUE='#'
32931 MODULE__CODECS_ISO2022_FALSE=
32932 fi
32933
32934 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
32935 if test "x$py_cv_module__codecs_iso2022" = xyes
32936 then :
32937
32938
32939
32940
32941 fi
32942
32943
32944 if test "$py_cv_module__codecs_jp" != "n/a"
32945 then :
32946 py_cv_module__codecs_jp=yes
32947 fi
32948 if test "$py_cv_module__codecs_jp" = yes; then
32949 MODULE__CODECS_JP_TRUE=
32950 MODULE__CODECS_JP_FALSE='#'
32951 else
32952 MODULE__CODECS_JP_TRUE='#'
32953 MODULE__CODECS_JP_FALSE=
32954 fi
32955
32956 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
32957 if test "x$py_cv_module__codecs_jp" = xyes
32958 then :
32959
32960
32961
32962
32963 fi
32964
32965
32966 if test "$py_cv_module__codecs_kr" != "n/a"
32967 then :
32968 py_cv_module__codecs_kr=yes
32969 fi
32970 if test "$py_cv_module__codecs_kr" = yes; then
32971 MODULE__CODECS_KR_TRUE=
32972 MODULE__CODECS_KR_FALSE='#'
32973 else
32974 MODULE__CODECS_KR_TRUE='#'
32975 MODULE__CODECS_KR_FALSE=
32976 fi
32977
32978 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
32979 if test "x$py_cv_module__codecs_kr" = xyes
32980 then :
32981
32982
32983
32984
32985 fi
32986
32987
32988 if test "$py_cv_module__codecs_tw" != "n/a"
32989 then :
32990 py_cv_module__codecs_tw=yes
32991 fi
32992 if test "$py_cv_module__codecs_tw" = yes; then
32993 MODULE__CODECS_TW_TRUE=
32994 MODULE__CODECS_TW_FALSE='#'
32995 else
32996 MODULE__CODECS_TW_TRUE='#'
32997 MODULE__CODECS_TW_FALSE=
32998 fi
32999
33000 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
33001 if test "x$py_cv_module__codecs_tw" = xyes
33002 then :
33003
33004
33005
33006
33007 fi
33008
33009
33010 if test "$py_cv_module__multibytecodec" != "n/a"
33011 then :
33012 py_cv_module__multibytecodec=yes
33013 fi
33014 if test "$py_cv_module__multibytecodec" = yes; then
33015 MODULE__MULTIBYTECODEC_TRUE=
33016 MODULE__MULTIBYTECODEC_FALSE='#'
33017 else
33018 MODULE__MULTIBYTECODEC_TRUE='#'
33019 MODULE__MULTIBYTECODEC_FALSE=
33020 fi
33021
33022 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
33023 if test "x$py_cv_module__multibytecodec" = xyes
33024 then :
33025
33026
33027
33028
33029 fi
33030
33031
33032 if test "$py_cv_module_unicodedata" != "n/a"
33033 then :
33034 py_cv_module_unicodedata=yes
33035 fi
33036 if test "$py_cv_module_unicodedata" = yes; then
33037 MODULE_UNICODEDATA_TRUE=
33038 MODULE_UNICODEDATA_FALSE='#'
33039 else
33040 MODULE_UNICODEDATA_TRUE='#'
33041 MODULE_UNICODEDATA_FALSE=
33042 fi
33043
33044 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
33045 if test "x$py_cv_module_unicodedata" = xyes
33046 then :
33047
33048
33049
33050
33051 fi
33052
33053
33054 ###############################################################################
33055 # HACL* compilation and linking configuration (contact: @picnixz)
33056 #
33057 # Used by the HACL*-based implementations of cryptographic primitives.
33058 #
33059 # CPython provides a vendored copy of a subset of the HACL* project used
33060 # to build extension modules of cryptographic primitives. On WASI, HACL*
33061 # sources must be statically linked with the extension modules; on other
33062 # platforms, the extension modules may assume that HACL* has been compiled
33063 # as a shared library.
33064 #
33065 # Example for MD5:
33066 #
33067 # * Compile Modules/_hacl/Hacl_Hash_MD5.c into Modules/_hacl/Hacl_Hash_MD5.o.
33068 # * Decide whether the object files are to be passed to the linker (emulate
33069 # a shared library without having to install it) or if we need to create
33070 # a static library for WASI. The following summarizes the values taken by
33071 # the MODULE_<NAME>_LDFLAGS variable depending on the linkage type:
33072 # - shared: MODULE__MD5_LDFLAGS is set to LIBHACL_MD5_OBJS
33073 # - static: MODULE__MD5_LDFLAGS is set to Modules/_hacl/libHacl_Hash_MD5.a
33074 # * Compile Modules/md5module.c into Modules/md5module.o.
33075 # * Link Modules/md5module.o using $(MODULE__MD5_LDFLAGS)
33076 # and get Modules/_md5$(EXT_SUFFIX).
33077 #
33078 # LIBHACL_FLAG_I: '-I' flags passed to $(CC) for HACL* and HACL*-based modules
33079 # LIBHACL_FLAG_D: '-D' flags passed to $(CC) for HACL* and HACL*-based modules
33080 # LIBHACL_CFLAGS: compiler flags passed for HACL* and HACL*-based modules
33081 # LIBHACL_LDFLAGS: linker flags passed for HACL* and HACL*-based modules
33082 LIBHACL_FLAG_I='-I$(srcdir)/Modules/_hacl -I$(srcdir)/Modules/_hacl/include'
33083 LIBHACL_FLAG_D='-D_BSD_SOURCE -D_DEFAULT_SOURCE'
33084 case "$ac_sys_system" in
33085 Linux*)
33086 if test "$ac_cv_func_explicit_bzero" = "no"; then
33087 LIBHACL_FLAG_D="${LIBHACL_FLAG_D} -DLINUX_NO_EXPLICIT_BZERO"
33088 fi
33089 ;;
33090 esac
33091 LIBHACL_CFLAGS="${LIBHACL_FLAG_I} ${LIBHACL_FLAG_D} \$(PY_STDMODULE_CFLAGS) \$(CCSHARED)"
33092
33093 LIBHACL_LDFLAGS= # for now, no specific linker flags are needed
33094
33095
33096 if test "$UNIVERSAL_ARCHS" = "universal2" -o \
33097 \( "$build_cpu" = "aarch64" -a "$build_vendor" = "apple" \)
33098 then
33099 use_hacl_universal2_impl=yes
33100 else
33101 use_hacl_universal2_impl=no
33102 fi
33103
33104 # The SIMD files use aligned_alloc, which is not available on older versions of
33105 # Android.
33106 # The *mmintrin.h headers are x86-family-specific, so can't be used on WASI.
33107 if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || \
33108 { test -n "$ANDROID_API_LEVEL" && test "$ANDROID_API_LEVEL" -ge 28; }
33109 then
33110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse -msse2 -msse3 -msse4.1 -msse4.2" >&5
33111 printf %s "checking whether C compiler accepts -msse -msse2 -msse3 -msse4.1 -msse4.2... " >&6; }
33112 if test ${ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2+y}
33113 then :
33114 printf %s "(cached) " >&6
33115 else case e in #(
33116 e)
33117 ax_check_save_flags=$CFLAGS
33118 CFLAGS="$CFLAGS -Werror -msse -msse2 -msse3 -msse4.1 -msse4.2"
33119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33120 /* end confdefs.h. */
33121
33122 int
33123 main (void)
33124 {
33125
33126 ;
33127 return 0;
33128 }
33129 _ACEOF
33130 if ac_fn_c_try_compile "$LINENO"
33131 then :
33132 ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2=yes
33133 else case e in #(
33134 e) ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2=no ;;
33135 esac
33136 fi
33137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33138 CFLAGS=$ax_check_save_flags ;;
33139 esac
33140 fi
33141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" >&5
33142 printf "%s\n" "$ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" >&6; }
33143 if test "x$ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" = xyes
33144 then :
33145
33146 LIBHACL_SIMD128_FLAGS="-msse -msse2 -msse3 -msse4.1 -msse4.2"
33147
33148
33149 printf "%s\n" "#define _Py_HACL_CAN_COMPILE_VEC128 1" >>confdefs.h
33150
33151
33152 # macOS universal2 builds *support* the -msse etc flags because they're
33153 # available on x86_64. However, performance of the HACL SIMD128 implementation
33154 # isn't great, so it's disabled on ARM64.
33155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* SIMD128 implementation" >&5
33156 printf %s "checking for HACL* SIMD128 implementation... " >&6; }
33157 if test "$use_hacl_universal2_impl" = "yes"; then
33158 LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128_universal2.o"
33159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: universal2" >&5
33160 printf "%s\n" "universal2" >&6; }
33161 else
33162 LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128.o"
33163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: standard" >&5
33164 printf "%s\n" "standard" >&6; }
33165 fi
33166
33167
33168 else case e in #(
33169 e) : ;;
33170 esac
33171 fi
33172
33173 fi
33174
33175
33176
33177 # The SIMD files use aligned_alloc, which is not available on older versions of
33178 # Android.
33179 # The *mmintrin.h headers are x86-family-specific, so can't be used on WASI.
33180 #
33181 # Although AVX support is not guaranteed on Android
33182 # (https://developer.android.com/ndk/guides/abis#86-64), this is safe because we do a
33183 # runtime CPUID check.
33184 if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || \
33185 { test -n "$ANDROID_API_LEVEL" && test "$ANDROID_API_LEVEL" -ge 28; }
33186 then
33187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
33188 printf %s "checking whether C compiler accepts -mavx2... " >&6; }
33189 if test ${ax_cv_check_cflags__Werror__mavx2+y}
33190 then :
33191 printf %s "(cached) " >&6
33192 else case e in #(
33193 e)
33194 ax_check_save_flags=$CFLAGS
33195 CFLAGS="$CFLAGS -Werror -mavx2"
33196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197 /* end confdefs.h. */
33198
33199 int
33200 main (void)
33201 {
33202
33203 ;
33204 return 0;
33205 }
33206 _ACEOF
33207 if ac_fn_c_try_compile "$LINENO"
33208 then :
33209 ax_cv_check_cflags__Werror__mavx2=yes
33210 else case e in #(
33211 e) ax_cv_check_cflags__Werror__mavx2=no ;;
33212 esac
33213 fi
33214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33215 CFLAGS=$ax_check_save_flags ;;
33216 esac
33217 fi
33218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5
33219 printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; }
33220 if test "x$ax_cv_check_cflags__Werror__mavx2" = xyes
33221 then :
33222
33223 LIBHACL_SIMD256_FLAGS="-mavx2"
33224
33225 printf "%s\n" "#define _Py_HACL_CAN_COMPILE_VEC256 1" >>confdefs.h
33226
33227
33228 # macOS universal2 builds *support* the -mavx2 compiler flag because it's
33229 # available on x86_64; but the HACL SIMD256 build then fails because the
33230 # implementation requires symbols that aren't available on ARM64. Use a
33231 # wrapped implementation if we're building for universal2.
33232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* SIMD256 implementation" >&5
33233 printf %s "checking for HACL* SIMD256 implementation... " >&6; }
33234 if test "$use_hacl_universal2_impl" = "yes"; then
33235 LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256_universal2.o"
33236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: universal2" >&5
33237 printf "%s\n" "universal2" >&6; }
33238 else
33239 LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256.o"
33240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: standard" >&5
33241 printf "%s\n" "standard" >&6; }
33242 fi
33243
33244 else case e in #(
33245 e) : ;;
33246 esac
33247 fi
33248
33249 fi
33250
33251
33252 ### end(HACL* configuration)
33253
33254 ###############################################################################
33255 # HACL*-based cryptographic primitives
33256
33257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* library linking type" >&5
33258 printf %s "checking for HACL* library linking type... " >&6; }
33259 if test "$ac_sys_system" = "WASI" || test "$MODULE_BUILDTYPE" = "static"; then
33260 LIBHACL_LDEPS_LIBTYPE=STATIC
33261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
33262 printf "%s\n" "static" >&6; }
33263 else
33264 LIBHACL_LDEPS_LIBTYPE=SHARED
33265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
33266 printf "%s\n" "shared" >&6; }
33267 fi
33268 # Used to complete the "MODULE_<NAME>_LDEPS" Makefile variable.
33269 # The LDEPS variable is a Makefile rule prerequisite.
33270
33271
33272
33273
33274
33275
33276 LIBHACL_MD5_LDFLAGS=LIBHACL_MD5_LIB_${LIBHACL_LDEPS_LIBTYPE}
33277
33278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
33279 printf %s "checking for stdlib extension module _md5... " >&6; }
33280 if test "$py_cv_module__md5" != "n/a"
33281 then :
33282
33283 if test "$with_builtin_md5" = yes
33284 then :
33285 if true
33286 then :
33287 py_cv_module__md5=yes
33288 else case e in #(
33289 e) py_cv_module__md5=missing ;;
33290 esac
33291 fi
33292 else case e in #(
33293 e) py_cv_module__md5=disabled ;;
33294 esac
33295 fi
33296
33297 fi
33298 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
33299 if test "x$py_cv_module__md5" = xyes
33300 then :
33301
33302 as_fn_append MODULE_BLOCK "MODULE__MD5_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33303 as_fn_append MODULE_BLOCK "MODULE__MD5_LDFLAGS=\$($LIBHACL_MD5_LDFLAGS)$as_nl"
33304
33305 fi
33306 if test "$py_cv_module__md5" = yes; then
33307 MODULE__MD5_TRUE=
33308 MODULE__MD5_FALSE='#'
33309 else
33310 MODULE__MD5_TRUE='#'
33311 MODULE__MD5_FALSE=
33312 fi
33313
33314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
33315 printf "%s\n" "$py_cv_module__md5" >&6; }
33316
33317
33318
33319
33320
33321 LIBHACL_SHA1_LDFLAGS=LIBHACL_SHA1_LIB_${LIBHACL_LDEPS_LIBTYPE}
33322
33323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
33324 printf %s "checking for stdlib extension module _sha1... " >&6; }
33325 if test "$py_cv_module__sha1" != "n/a"
33326 then :
33327
33328 if test "$with_builtin_sha1" = yes
33329 then :
33330 if true
33331 then :
33332 py_cv_module__sha1=yes
33333 else case e in #(
33334 e) py_cv_module__sha1=missing ;;
33335 esac
33336 fi
33337 else case e in #(
33338 e) py_cv_module__sha1=disabled ;;
33339 esac
33340 fi
33341
33342 fi
33343 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
33344 if test "x$py_cv_module__sha1" = xyes
33345 then :
33346
33347 as_fn_append MODULE_BLOCK "MODULE__SHA1_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33348 as_fn_append MODULE_BLOCK "MODULE__SHA1_LDFLAGS=\$($LIBHACL_SHA1_LDFLAGS)$as_nl"
33349
33350 fi
33351 if test "$py_cv_module__sha1" = yes; then
33352 MODULE__SHA1_TRUE=
33353 MODULE__SHA1_FALSE='#'
33354 else
33355 MODULE__SHA1_TRUE='#'
33356 MODULE__SHA1_FALSE=
33357 fi
33358
33359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
33360 printf "%s\n" "$py_cv_module__sha1" >&6; }
33361
33362
33363
33364
33365
33366 LIBHACL_SHA2_LDFLAGS=LIBHACL_SHA2_LIB_${LIBHACL_LDEPS_LIBTYPE}
33367
33368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
33369 printf %s "checking for stdlib extension module _sha2... " >&6; }
33370 if test "$py_cv_module__sha2" != "n/a"
33371 then :
33372
33373 if test "$with_builtin_sha2" = yes
33374 then :
33375 if true
33376 then :
33377 py_cv_module__sha2=yes
33378 else case e in #(
33379 e) py_cv_module__sha2=missing ;;
33380 esac
33381 fi
33382 else case e in #(
33383 e) py_cv_module__sha2=disabled ;;
33384 esac
33385 fi
33386
33387 fi
33388 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
33389 if test "x$py_cv_module__sha2" = xyes
33390 then :
33391
33392 as_fn_append MODULE_BLOCK "MODULE__SHA2_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33393 as_fn_append MODULE_BLOCK "MODULE__SHA2_LDFLAGS=\$($LIBHACL_SHA2_LDFLAGS)$as_nl"
33394
33395 fi
33396 if test "$py_cv_module__sha2" = yes; then
33397 MODULE__SHA2_TRUE=
33398 MODULE__SHA2_FALSE='#'
33399 else
33400 MODULE__SHA2_TRUE='#'
33401 MODULE__SHA2_FALSE=
33402 fi
33403
33404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
33405 printf "%s\n" "$py_cv_module__sha2" >&6; }
33406
33407
33408
33409
33410
33411 LIBHACL_SHA3_LDFLAGS=LIBHACL_SHA3_LIB_${LIBHACL_LDEPS_LIBTYPE}
33412
33413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
33414 printf %s "checking for stdlib extension module _sha3... " >&6; }
33415 if test "$py_cv_module__sha3" != "n/a"
33416 then :
33417
33418 if test "$with_builtin_sha3" = yes
33419 then :
33420 if true
33421 then :
33422 py_cv_module__sha3=yes
33423 else case e in #(
33424 e) py_cv_module__sha3=missing ;;
33425 esac
33426 fi
33427 else case e in #(
33428 e) py_cv_module__sha3=disabled ;;
33429 esac
33430 fi
33431
33432 fi
33433 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
33434 if test "x$py_cv_module__sha3" = xyes
33435 then :
33436
33437 as_fn_append MODULE_BLOCK "MODULE__SHA3_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33438 as_fn_append MODULE_BLOCK "MODULE__SHA3_LDFLAGS=\$($LIBHACL_SHA3_LDFLAGS)$as_nl"
33439
33440 fi
33441 if test "$py_cv_module__sha3" = yes; then
33442 MODULE__SHA3_TRUE=
33443 MODULE__SHA3_FALSE='#'
33444 else
33445 MODULE__SHA3_TRUE='#'
33446 MODULE__SHA3_FALSE=
33447 fi
33448
33449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
33450 printf "%s\n" "$py_cv_module__sha3" >&6; }
33451
33452
33453
33454
33455
33456 LIBHACL_BLAKE2_LDFLAGS=LIBHACL_BLAKE2_LIB_${LIBHACL_LDEPS_LIBTYPE}
33457
33458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
33459 printf %s "checking for stdlib extension module _blake2... " >&6; }
33460 if test "$py_cv_module__blake2" != "n/a"
33461 then :
33462
33463 if test "$with_builtin_blake2" = yes
33464 then :
33465 if true
33466 then :
33467 py_cv_module__blake2=yes
33468 else case e in #(
33469 e) py_cv_module__blake2=missing ;;
33470 esac
33471 fi
33472 else case e in #(
33473 e) py_cv_module__blake2=disabled ;;
33474 esac
33475 fi
33476
33477 fi
33478 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
33479 if test "x$py_cv_module__blake2" = xyes
33480 then :
33481
33482 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33483 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=\$($LIBHACL_BLAKE2_LDFLAGS)$as_nl"
33484
33485 fi
33486 if test "$py_cv_module__blake2" = yes; then
33487 MODULE__BLAKE2_TRUE=
33488 MODULE__BLAKE2_FALSE='#'
33489 else
33490 MODULE__BLAKE2_TRUE='#'
33491 MODULE__BLAKE2_FALSE=
33492 fi
33493
33494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
33495 printf "%s\n" "$py_cv_module__blake2" >&6; }
33496
33497
33498
33499
33500
33501
33502 LIBHACL_HMAC_LDFLAGS=LIBHACL_HMAC_LIB_${LIBHACL_LDEPS_LIBTYPE}
33503
33504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hmac" >&5
33505 printf %s "checking for stdlib extension module _hmac... " >&6; }
33506 if test "$py_cv_module__hmac" != "n/a"
33507 then :
33508
33509 if test "$ac_sys_system" != "Emscripten"
33510 then :
33511 if true
33512 then :
33513 py_cv_module__hmac=yes
33514 else case e in #(
33515 e) py_cv_module__hmac=missing ;;
33516 esac
33517 fi
33518 else case e in #(
33519 e) py_cv_module__hmac=disabled ;;
33520 esac
33521 fi
33522
33523 fi
33524 as_fn_append MODULE_BLOCK "MODULE__HMAC_STATE=$py_cv_module__hmac$as_nl"
33525 if test "x$py_cv_module__hmac" = xyes
33526 then :
33527
33528 as_fn_append MODULE_BLOCK "MODULE__HMAC_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33529 as_fn_append MODULE_BLOCK "MODULE__HMAC_LDFLAGS=\$($LIBHACL_HMAC_LDFLAGS)$as_nl"
33530
33531 fi
33532 if test "$py_cv_module__hmac" = yes; then
33533 MODULE__HMAC_TRUE=
33534 MODULE__HMAC_FALSE='#'
33535 else
33536 MODULE__HMAC_TRUE='#'
33537 MODULE__HMAC_FALSE=
33538 fi
33539
33540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hmac" >&5
33541 printf "%s\n" "$py_cv_module__hmac" >&6; }
33542
33543
33544
33545 ### end(cryptographic primitives)
33546
33547
33548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
33549 printf %s "checking for stdlib extension module _ctypes... " >&6; }
33550 if test "$py_cv_module__ctypes" != "n/a"
33551 then :
33552
33553 if true
33554 then :
33555 if test "$have_libffi" = yes
33556 then :
33557 py_cv_module__ctypes=yes
33558 else case e in #(
33559 e) py_cv_module__ctypes=missing ;;
33560 esac
33561 fi
33562 else case e in #(
33563 e) py_cv_module__ctypes=disabled ;;
33564 esac
33565 fi
33566
33567 fi
33568 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
33569 if test "x$py_cv_module__ctypes" = xyes
33570 then :
33571
33572 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
33573 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
33574
33575 fi
33576 if test "$py_cv_module__ctypes" = yes; then
33577 MODULE__CTYPES_TRUE=
33578 MODULE__CTYPES_FALSE='#'
33579 else
33580 MODULE__CTYPES_TRUE='#'
33581 MODULE__CTYPES_FALSE=
33582 fi
33583
33584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
33585 printf "%s\n" "$py_cv_module__ctypes" >&6; }
33586
33587
33588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
33589 printf %s "checking for stdlib extension module _curses... " >&6; }
33590 if test "$py_cv_module__curses" != "n/a"
33591 then :
33592
33593 if true
33594 then :
33595 if test "$have_curses" = "yes"
33596 then :
33597 py_cv_module__curses=yes
33598 else case e in #(
33599 e) py_cv_module__curses=missing ;;
33600 esac
33601 fi
33602 else case e in #(
33603 e) py_cv_module__curses=disabled ;;
33604 esac
33605 fi
33606
33607 fi
33608 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
33609 if test "x$py_cv_module__curses" = xyes
33610 then :
33611
33612 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
33613 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS
33614 $as_nl"
33615
33616 fi
33617 if test "$py_cv_module__curses" = yes; then
33618 MODULE__CURSES_TRUE=
33619 MODULE__CURSES_FALSE='#'
33620 else
33621 MODULE__CURSES_TRUE='#'
33622 MODULE__CURSES_FALSE=
33623 fi
33624
33625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
33626 printf "%s\n" "$py_cv_module__curses" >&6; }
33627
33628
33629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
33630 printf %s "checking for stdlib extension module _curses_panel... " >&6; }
33631 if test "$py_cv_module__curses_panel" != "n/a"
33632 then :
33633
33634 if true
33635 then :
33636 if test "$have_curses" = "yes" && test "$have_panel" = "yes"
33637 then :
33638 py_cv_module__curses_panel=yes
33639 else case e in #(
33640 e) py_cv_module__curses_panel=missing ;;
33641 esac
33642 fi
33643 else case e in #(
33644 e) py_cv_module__curses_panel=disabled ;;
33645 esac
33646 fi
33647
33648 fi
33649 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
33650 if test "x$py_cv_module__curses_panel" = xyes
33651 then :
33652
33653 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
33654 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
33655 $as_nl"
33656
33657 fi
33658 if test "$py_cv_module__curses_panel" = yes; then
33659 MODULE__CURSES_PANEL_TRUE=
33660 MODULE__CURSES_PANEL_FALSE='#'
33661 else
33662 MODULE__CURSES_PANEL_TRUE='#'
33663 MODULE__CURSES_PANEL_FALSE=
33664 fi
33665
33666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
33667 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
33668
33669
33670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
33671 printf %s "checking for stdlib extension module _decimal... " >&6; }
33672 if test "$py_cv_module__decimal" != "n/a"
33673 then :
33674
33675 if true
33676 then :
33677 if test "$have_mpdec" = "yes"
33678 then :
33679 py_cv_module__decimal=yes
33680 else case e in #(
33681 e) py_cv_module__decimal=missing ;;
33682 esac
33683 fi
33684 else case e in #(
33685 e) py_cv_module__decimal=disabled ;;
33686 esac
33687 fi
33688
33689 fi
33690 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
33691 if test "x$py_cv_module__decimal" = xyes
33692 then :
33693
33694 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
33695 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
33696
33697 fi
33698 if test "$py_cv_module__decimal" = yes; then
33699 MODULE__DECIMAL_TRUE=
33700 MODULE__DECIMAL_FALSE='#'
33701 else
33702 MODULE__DECIMAL_TRUE='#'
33703 MODULE__DECIMAL_FALSE=
33704 fi
33705
33706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
33707 printf "%s\n" "$py_cv_module__decimal" >&6; }
33708
33709
33710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
33711 printf %s "checking for stdlib extension module _dbm... " >&6; }
33712 if test "$py_cv_module__dbm" != "n/a"
33713 then :
33714
33715 if test -n "$with_dbmliborder"
33716 then :
33717 if test "$have_dbm" != "no"
33718 then :
33719 py_cv_module__dbm=yes
33720 else case e in #(
33721 e) py_cv_module__dbm=missing ;;
33722 esac
33723 fi
33724 else case e in #(
33725 e) py_cv_module__dbm=disabled ;;
33726 esac
33727 fi
33728
33729 fi
33730 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
33731 if test "x$py_cv_module__dbm" = xyes
33732 then :
33733
33734 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
33735 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
33736
33737 fi
33738 if test "$py_cv_module__dbm" = yes; then
33739 MODULE__DBM_TRUE=
33740 MODULE__DBM_FALSE='#'
33741 else
33742 MODULE__DBM_TRUE='#'
33743 MODULE__DBM_FALSE=
33744 fi
33745
33746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
33747 printf "%s\n" "$py_cv_module__dbm" >&6; }
33748
33749
33750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
33751 printf %s "checking for stdlib extension module _gdbm... " >&6; }
33752 if test "$py_cv_module__gdbm" != "n/a"
33753 then :
33754
33755 if test "$have_gdbm_dbmliborder" = yes
33756 then :
33757 if test "$have_gdbm" = yes
33758 then :
33759 py_cv_module__gdbm=yes
33760 else case e in #(
33761 e) py_cv_module__gdbm=missing ;;
33762 esac
33763 fi
33764 else case e in #(
33765 e) py_cv_module__gdbm=disabled ;;
33766 esac
33767 fi
33768
33769 fi
33770 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
33771 if test "x$py_cv_module__gdbm" = xyes
33772 then :
33773
33774 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
33775 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
33776
33777 fi
33778 if test "$py_cv_module__gdbm" = yes; then
33779 MODULE__GDBM_TRUE=
33780 MODULE__GDBM_FALSE='#'
33781 else
33782 MODULE__GDBM_TRUE='#'
33783 MODULE__GDBM_FALSE=
33784 fi
33785
33786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
33787 printf "%s\n" "$py_cv_module__gdbm" >&6; }
33788
33789
33790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
33791 printf %s "checking for stdlib extension module readline... " >&6; }
33792 if test "$py_cv_module_readline" != "n/a"
33793 then :
33794
33795 if true
33796 then :
33797 if test "$with_readline" != "no"
33798 then :
33799 py_cv_module_readline=yes
33800 else case e in #(
33801 e) py_cv_module_readline=missing ;;
33802 esac
33803 fi
33804 else case e in #(
33805 e) py_cv_module_readline=disabled ;;
33806 esac
33807 fi
33808
33809 fi
33810 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
33811 if test "x$py_cv_module_readline" = xyes
33812 then :
33813
33814 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
33815 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
33816
33817 fi
33818 if test "$py_cv_module_readline" = yes; then
33819 MODULE_READLINE_TRUE=
33820 MODULE_READLINE_FALSE='#'
33821 else
33822 MODULE_READLINE_TRUE='#'
33823 MODULE_READLINE_FALSE=
33824 fi
33825
33826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
33827 printf "%s\n" "$py_cv_module_readline" >&6; }
33828
33829
33830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
33831 printf %s "checking for stdlib extension module _sqlite3... " >&6; }
33832 if test "$py_cv_module__sqlite3" != "n/a"
33833 then :
33834
33835 if test "$have_sqlite3" = "yes"
33836 then :
33837 if test "$have_supported_sqlite3" = "yes"
33838 then :
33839 py_cv_module__sqlite3=yes
33840 else case e in #(
33841 e) py_cv_module__sqlite3=missing ;;
33842 esac
33843 fi
33844 else case e in #(
33845 e) py_cv_module__sqlite3=disabled ;;
33846 esac
33847 fi
33848
33849 fi
33850 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
33851 if test "x$py_cv_module__sqlite3" = xyes
33852 then :
33853
33854 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
33855 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
33856
33857 fi
33858 if test "$py_cv_module__sqlite3" = yes; then
33859 MODULE__SQLITE3_TRUE=
33860 MODULE__SQLITE3_FALSE='#'
33861 else
33862 MODULE__SQLITE3_TRUE='#'
33863 MODULE__SQLITE3_FALSE=
33864 fi
33865
33866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
33867 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
33868
33869
33870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
33871 printf %s "checking for stdlib extension module _tkinter... " >&6; }
33872 if test "$py_cv_module__tkinter" != "n/a"
33873 then :
33874
33875 if true
33876 then :
33877 if test "$have_tcltk" = "yes"
33878 then :
33879 py_cv_module__tkinter=yes
33880 else case e in #(
33881 e) py_cv_module__tkinter=missing ;;
33882 esac
33883 fi
33884 else case e in #(
33885 e) py_cv_module__tkinter=disabled ;;
33886 esac
33887 fi
33888
33889 fi
33890 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
33891 if test "x$py_cv_module__tkinter" = xyes
33892 then :
33893
33894 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
33895 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
33896
33897 fi
33898 if test "$py_cv_module__tkinter" = yes; then
33899 MODULE__TKINTER_TRUE=
33900 MODULE__TKINTER_FALSE='#'
33901 else
33902 MODULE__TKINTER_TRUE='#'
33903 MODULE__TKINTER_FALSE=
33904 fi
33905
33906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
33907 printf "%s\n" "$py_cv_module__tkinter" >&6; }
33908
33909
33910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
33911 printf %s "checking for stdlib extension module _uuid... " >&6; }
33912 if test "$py_cv_module__uuid" != "n/a"
33913 then :
33914
33915 if true
33916 then :
33917 if test "$have_uuid" = "yes"
33918 then :
33919 py_cv_module__uuid=yes
33920 else case e in #(
33921 e) py_cv_module__uuid=missing ;;
33922 esac
33923 fi
33924 else case e in #(
33925 e) py_cv_module__uuid=disabled ;;
33926 esac
33927 fi
33928
33929 fi
33930 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
33931 if test "x$py_cv_module__uuid" = xyes
33932 then :
33933
33934 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
33935 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
33936
33937 fi
33938 if test "$py_cv_module__uuid" = yes; then
33939 MODULE__UUID_TRUE=
33940 MODULE__UUID_FALSE='#'
33941 else
33942 MODULE__UUID_TRUE='#'
33943 MODULE__UUID_FALSE=
33944 fi
33945
33946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
33947 printf "%s\n" "$py_cv_module__uuid" >&6; }
33948
33949
33950
33951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
33952 printf %s "checking for stdlib extension module zlib... " >&6; }
33953 if test "$py_cv_module_zlib" != "n/a"
33954 then :
33955
33956 if true
33957 then :
33958 if test "$have_zlib" = yes
33959 then :
33960 py_cv_module_zlib=yes
33961 else case e in #(
33962 e) py_cv_module_zlib=missing ;;
33963 esac
33964 fi
33965 else case e in #(
33966 e) py_cv_module_zlib=disabled ;;
33967 esac
33968 fi
33969
33970 fi
33971 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
33972 if test "x$py_cv_module_zlib" = xyes
33973 then :
33974
33975 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
33976 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
33977
33978 fi
33979 if test "$py_cv_module_zlib" = yes; then
33980 MODULE_ZLIB_TRUE=
33981 MODULE_ZLIB_FALSE='#'
33982 else
33983 MODULE_ZLIB_TRUE='#'
33984 MODULE_ZLIB_FALSE=
33985 fi
33986
33987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
33988 printf "%s\n" "$py_cv_module_zlib" >&6; }
33989
33990
33991 if test "$py_cv_module_binascii" != "n/a"
33992 then :
33993 py_cv_module_binascii=yes
33994 fi
33995 if test "$py_cv_module_binascii" = yes; then
33996 MODULE_BINASCII_TRUE=
33997 MODULE_BINASCII_FALSE='#'
33998 else
33999 MODULE_BINASCII_TRUE='#'
34000 MODULE_BINASCII_FALSE=
34001 fi
34002
34003 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
34004 if test "x$py_cv_module_binascii" = xyes
34005 then :
34006
34007 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
34008 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
34009
34010 fi
34011
34012
34013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
34014 printf %s "checking for stdlib extension module _bz2... " >&6; }
34015 if test "$py_cv_module__bz2" != "n/a"
34016 then :
34017
34018 if true
34019 then :
34020 if test "$have_bzip2" = yes
34021 then :
34022 py_cv_module__bz2=yes
34023 else case e in #(
34024 e) py_cv_module__bz2=missing ;;
34025 esac
34026 fi
34027 else case e in #(
34028 e) py_cv_module__bz2=disabled ;;
34029 esac
34030 fi
34031
34032 fi
34033 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
34034 if test "x$py_cv_module__bz2" = xyes
34035 then :
34036
34037 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
34038 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
34039
34040 fi
34041 if test "$py_cv_module__bz2" = yes; then
34042 MODULE__BZ2_TRUE=
34043 MODULE__BZ2_FALSE='#'
34044 else
34045 MODULE__BZ2_TRUE='#'
34046 MODULE__BZ2_FALSE=
34047 fi
34048
34049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
34050 printf "%s\n" "$py_cv_module__bz2" >&6; }
34051
34052
34053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
34054 printf %s "checking for stdlib extension module _lzma... " >&6; }
34055 if test "$py_cv_module__lzma" != "n/a"
34056 then :
34057
34058 if true
34059 then :
34060 if test "$have_liblzma" = yes
34061 then :
34062 py_cv_module__lzma=yes
34063 else case e in #(
34064 e) py_cv_module__lzma=missing ;;
34065 esac
34066 fi
34067 else case e in #(
34068 e) py_cv_module__lzma=disabled ;;
34069 esac
34070 fi
34071
34072 fi
34073 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
34074 if test "x$py_cv_module__lzma" = xyes
34075 then :
34076
34077 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
34078 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
34079
34080 fi
34081 if test "$py_cv_module__lzma" = yes; then
34082 MODULE__LZMA_TRUE=
34083 MODULE__LZMA_FALSE='#'
34084 else
34085 MODULE__LZMA_TRUE='#'
34086 MODULE__LZMA_FALSE=
34087 fi
34088
34089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
34090 printf "%s\n" "$py_cv_module__lzma" >&6; }
34091
34092
34093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _zstd" >&5
34094 printf %s "checking for stdlib extension module _zstd... " >&6; }
34095 if test "$py_cv_module__zstd" != "n/a"
34096 then :
34097
34098 if true
34099 then :
34100 if test "$have_libzstd" = yes
34101 then :
34102 py_cv_module__zstd=yes
34103 else case e in #(
34104 e) py_cv_module__zstd=missing ;;
34105 esac
34106 fi
34107 else case e in #(
34108 e) py_cv_module__zstd=disabled ;;
34109 esac
34110 fi
34111
34112 fi
34113 as_fn_append MODULE_BLOCK "MODULE__ZSTD_STATE=$py_cv_module__zstd$as_nl"
34114 if test "x$py_cv_module__zstd" = xyes
34115 then :
34116
34117 as_fn_append MODULE_BLOCK "MODULE__ZSTD_CFLAGS=$LIBZSTD_CFLAGS$as_nl"
34118 as_fn_append MODULE_BLOCK "MODULE__ZSTD_LDFLAGS=$LIBZSTD_LIBS$as_nl"
34119
34120 fi
34121 if test "$py_cv_module__zstd" = yes; then
34122 MODULE__ZSTD_TRUE=
34123 MODULE__ZSTD_FALSE='#'
34124 else
34125 MODULE__ZSTD_TRUE='#'
34126 MODULE__ZSTD_FALSE=
34127 fi
34128
34129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__zstd" >&5
34130 printf "%s\n" "$py_cv_module__zstd" >&6; }
34131
34132
34133
34134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
34135 printf %s "checking for stdlib extension module _ssl... " >&6; }
34136 if test "$py_cv_module__ssl" != "n/a"
34137 then :
34138
34139 if true
34140 then :
34141 if test "$ac_cv_working_openssl_ssl" = yes
34142 then :
34143 py_cv_module__ssl=yes
34144 else case e in #(
34145 e) py_cv_module__ssl=missing ;;
34146 esac
34147 fi
34148 else case e in #(
34149 e) py_cv_module__ssl=disabled ;;
34150 esac
34151 fi
34152
34153 fi
34154 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
34155 if test "x$py_cv_module__ssl" = xyes
34156 then :
34157
34158 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
34159 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
34160
34161 fi
34162 if test "$py_cv_module__ssl" = yes; then
34163 MODULE__SSL_TRUE=
34164 MODULE__SSL_FALSE='#'
34165 else
34166 MODULE__SSL_TRUE='#'
34167 MODULE__SSL_FALSE=
34168 fi
34169
34170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
34171 printf "%s\n" "$py_cv_module__ssl" >&6; }
34172
34173
34174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
34175 printf %s "checking for stdlib extension module _hashlib... " >&6; }
34176 if test "$py_cv_module__hashlib" != "n/a"
34177 then :
34178
34179 if true
34180 then :
34181 if test "$ac_cv_working_openssl_hashlib" = yes
34182 then :
34183 py_cv_module__hashlib=yes
34184 else case e in #(
34185 e) py_cv_module__hashlib=missing ;;
34186 esac
34187 fi
34188 else case e in #(
34189 e) py_cv_module__hashlib=disabled ;;
34190 esac
34191 fi
34192
34193 fi
34194 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
34195 if test "x$py_cv_module__hashlib" = xyes
34196 then :
34197
34198 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
34199 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
34200
34201 fi
34202 if test "$py_cv_module__hashlib" = yes; then
34203 MODULE__HASHLIB_TRUE=
34204 MODULE__HASHLIB_FALSE='#'
34205 else
34206 MODULE__HASHLIB_TRUE='#'
34207 MODULE__HASHLIB_FALSE=
34208 fi
34209
34210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
34211 printf "%s\n" "$py_cv_module__hashlib" >&6; }
34212
34213
34214
34215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
34216 printf %s "checking for stdlib extension module _testcapi... " >&6; }
34217 if test "$py_cv_module__testcapi" != "n/a"
34218 then :
34219
34220 if test "$TEST_MODULES" = yes
34221 then :
34222 if true
34223 then :
34224 py_cv_module__testcapi=yes
34225 else case e in #(
34226 e) py_cv_module__testcapi=missing ;;
34227 esac
34228 fi
34229 else case e in #(
34230 e) py_cv_module__testcapi=disabled ;;
34231 esac
34232 fi
34233
34234 fi
34235 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
34236 if test "x$py_cv_module__testcapi" = xyes
34237 then :
34238
34239
34240 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
34241
34242 fi
34243 if test "$py_cv_module__testcapi" = yes; then
34244 MODULE__TESTCAPI_TRUE=
34245 MODULE__TESTCAPI_FALSE='#'
34246 else
34247 MODULE__TESTCAPI_TRUE='#'
34248 MODULE__TESTCAPI_FALSE=
34249 fi
34250
34251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
34252 printf "%s\n" "$py_cv_module__testcapi" >&6; }
34253
34254
34255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
34256 printf %s "checking for stdlib extension module _testclinic... " >&6; }
34257 if test "$py_cv_module__testclinic" != "n/a"
34258 then :
34259
34260 if test "$TEST_MODULES" = yes
34261 then :
34262 if true
34263 then :
34264 py_cv_module__testclinic=yes
34265 else case e in #(
34266 e) py_cv_module__testclinic=missing ;;
34267 esac
34268 fi
34269 else case e in #(
34270 e) py_cv_module__testclinic=disabled ;;
34271 esac
34272 fi
34273
34274 fi
34275 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
34276 if test "x$py_cv_module__testclinic" = xyes
34277 then :
34278
34279
34280
34281
34282 fi
34283 if test "$py_cv_module__testclinic" = yes; then
34284 MODULE__TESTCLINIC_TRUE=
34285 MODULE__TESTCLINIC_FALSE='#'
34286 else
34287 MODULE__TESTCLINIC_TRUE='#'
34288 MODULE__TESTCLINIC_FALSE=
34289 fi
34290
34291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
34292 printf "%s\n" "$py_cv_module__testclinic" >&6; }
34293
34294
34295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
34296 printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
34297 if test "$py_cv_module__testclinic_limited" != "n/a"
34298 then :
34299
34300 if test "$TEST_MODULES" = yes
34301 then :
34302 if true
34303 then :
34304 py_cv_module__testclinic_limited=yes
34305 else case e in #(
34306 e) py_cv_module__testclinic_limited=missing ;;
34307 esac
34308 fi
34309 else case e in #(
34310 e) py_cv_module__testclinic_limited=disabled ;;
34311 esac
34312 fi
34313
34314 fi
34315 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
34316 if test "x$py_cv_module__testclinic_limited" = xyes
34317 then :
34318
34319
34320
34321
34322 fi
34323 if test "$py_cv_module__testclinic_limited" = yes; then
34324 MODULE__TESTCLINIC_LIMITED_TRUE=
34325 MODULE__TESTCLINIC_LIMITED_FALSE='#'
34326 else
34327 MODULE__TESTCLINIC_LIMITED_TRUE='#'
34328 MODULE__TESTCLINIC_LIMITED_FALSE=
34329 fi
34330
34331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
34332 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
34333
34334
34335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
34336 printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
34337 if test "$py_cv_module__testlimitedcapi" != "n/a"
34338 then :
34339
34340 if test "$TEST_MODULES" = yes
34341 then :
34342 if true
34343 then :
34344 py_cv_module__testlimitedcapi=yes
34345 else case e in #(
34346 e) py_cv_module__testlimitedcapi=missing ;;
34347 esac
34348 fi
34349 else case e in #(
34350 e) py_cv_module__testlimitedcapi=disabled ;;
34351 esac
34352 fi
34353
34354 fi
34355 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
34356 if test "x$py_cv_module__testlimitedcapi" = xyes
34357 then :
34358
34359
34360
34361
34362 fi
34363 if test "$py_cv_module__testlimitedcapi" = yes; then
34364 MODULE__TESTLIMITEDCAPI_TRUE=
34365 MODULE__TESTLIMITEDCAPI_FALSE='#'
34366 else
34367 MODULE__TESTLIMITEDCAPI_TRUE='#'
34368 MODULE__TESTLIMITEDCAPI_FALSE=
34369 fi
34370
34371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
34372 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
34373
34374
34375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
34376 printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
34377 if test "$py_cv_module__testinternalcapi" != "n/a"
34378 then :
34379
34380 if test "$TEST_MODULES" = yes
34381 then :
34382 if true
34383 then :
34384 py_cv_module__testinternalcapi=yes
34385 else case e in #(
34386 e) py_cv_module__testinternalcapi=missing ;;
34387 esac
34388 fi
34389 else case e in #(
34390 e) py_cv_module__testinternalcapi=disabled ;;
34391 esac
34392 fi
34393
34394 fi
34395 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
34396 if test "x$py_cv_module__testinternalcapi" = xyes
34397 then :
34398
34399
34400
34401
34402 fi
34403 if test "$py_cv_module__testinternalcapi" = yes; then
34404 MODULE__TESTINTERNALCAPI_TRUE=
34405 MODULE__TESTINTERNALCAPI_FALSE='#'
34406 else
34407 MODULE__TESTINTERNALCAPI_TRUE='#'
34408 MODULE__TESTINTERNALCAPI_FALSE=
34409 fi
34410
34411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
34412 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
34413
34414
34415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
34416 printf %s "checking for stdlib extension module _testbuffer... " >&6; }
34417 if test "$py_cv_module__testbuffer" != "n/a"
34418 then :
34419
34420 if test "$TEST_MODULES" = yes
34421 then :
34422 if true
34423 then :
34424 py_cv_module__testbuffer=yes
34425 else case e in #(
34426 e) py_cv_module__testbuffer=missing ;;
34427 esac
34428 fi
34429 else case e in #(
34430 e) py_cv_module__testbuffer=disabled ;;
34431 esac
34432 fi
34433
34434 fi
34435 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
34436 if test "x$py_cv_module__testbuffer" = xyes
34437 then :
34438
34439
34440
34441
34442 fi
34443 if test "$py_cv_module__testbuffer" = yes; then
34444 MODULE__TESTBUFFER_TRUE=
34445 MODULE__TESTBUFFER_FALSE='#'
34446 else
34447 MODULE__TESTBUFFER_TRUE='#'
34448 MODULE__TESTBUFFER_FALSE=
34449 fi
34450
34451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
34452 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
34453
34454
34455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
34456 printf %s "checking for stdlib extension module _testimportmultiple... " >&6; }
34457 if test "$py_cv_module__testimportmultiple" != "n/a"
34458 then :
34459
34460 if test "$TEST_MODULES" = yes
34461 then :
34462 if test "$ac_cv_func_dlopen" = yes
34463 then :
34464 py_cv_module__testimportmultiple=yes
34465 else case e in #(
34466 e) py_cv_module__testimportmultiple=missing ;;
34467 esac
34468 fi
34469 else case e in #(
34470 e) py_cv_module__testimportmultiple=disabled ;;
34471 esac
34472 fi
34473
34474 fi
34475 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
34476 if test "x$py_cv_module__testimportmultiple" = xyes
34477 then :
34478
34479
34480
34481
34482 fi
34483 if test "$py_cv_module__testimportmultiple" = yes; then
34484 MODULE__TESTIMPORTMULTIPLE_TRUE=
34485 MODULE__TESTIMPORTMULTIPLE_FALSE='#'
34486 else
34487 MODULE__TESTIMPORTMULTIPLE_TRUE='#'
34488 MODULE__TESTIMPORTMULTIPLE_FALSE=
34489 fi
34490
34491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
34492 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
34493
34494
34495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
34496 printf %s "checking for stdlib extension module _testmultiphase... " >&6; }
34497 if test "$py_cv_module__testmultiphase" != "n/a"
34498 then :
34499
34500 if test "$TEST_MODULES" = yes
34501 then :
34502 if test "$ac_cv_func_dlopen" = yes
34503 then :
34504 py_cv_module__testmultiphase=yes
34505 else case e in #(
34506 e) py_cv_module__testmultiphase=missing ;;
34507 esac
34508 fi
34509 else case e in #(
34510 e) py_cv_module__testmultiphase=disabled ;;
34511 esac
34512 fi
34513
34514 fi
34515 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
34516 if test "x$py_cv_module__testmultiphase" = xyes
34517 then :
34518
34519
34520
34521
34522 fi
34523 if test "$py_cv_module__testmultiphase" = yes; then
34524 MODULE__TESTMULTIPHASE_TRUE=
34525 MODULE__TESTMULTIPHASE_FALSE='#'
34526 else
34527 MODULE__TESTMULTIPHASE_TRUE='#'
34528 MODULE__TESTMULTIPHASE_FALSE=
34529 fi
34530
34531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
34532 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
34533
34534
34535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
34536 printf %s "checking for stdlib extension module _testsinglephase... " >&6; }
34537 if test "$py_cv_module__testsinglephase" != "n/a"
34538 then :
34539
34540 if test "$TEST_MODULES" = yes
34541 then :
34542 if test "$ac_cv_func_dlopen" = yes
34543 then :
34544 py_cv_module__testsinglephase=yes
34545 else case e in #(
34546 e) py_cv_module__testsinglephase=missing ;;
34547 esac
34548 fi
34549 else case e in #(
34550 e) py_cv_module__testsinglephase=disabled ;;
34551 esac
34552 fi
34553
34554 fi
34555 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
34556 if test "x$py_cv_module__testsinglephase" = xyes
34557 then :
34558
34559
34560
34561
34562 fi
34563 if test "$py_cv_module__testsinglephase" = yes; then
34564 MODULE__TESTSINGLEPHASE_TRUE=
34565 MODULE__TESTSINGLEPHASE_FALSE='#'
34566 else
34567 MODULE__TESTSINGLEPHASE_TRUE='#'
34568 MODULE__TESTSINGLEPHASE_FALSE=
34569 fi
34570
34571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
34572 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
34573
34574
34575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
34576 printf %s "checking for stdlib extension module xxsubtype... " >&6; }
34577 if test "$py_cv_module_xxsubtype" != "n/a"
34578 then :
34579
34580 if test "$TEST_MODULES" = yes
34581 then :
34582 if true
34583 then :
34584 py_cv_module_xxsubtype=yes
34585 else case e in #(
34586 e) py_cv_module_xxsubtype=missing ;;
34587 esac
34588 fi
34589 else case e in #(
34590 e) py_cv_module_xxsubtype=disabled ;;
34591 esac
34592 fi
34593
34594 fi
34595 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
34596 if test "x$py_cv_module_xxsubtype" = xyes
34597 then :
34598
34599
34600
34601
34602 fi
34603 if test "$py_cv_module_xxsubtype" = yes; then
34604 MODULE_XXSUBTYPE_TRUE=
34605 MODULE_XXSUBTYPE_FALSE='#'
34606 else
34607 MODULE_XXSUBTYPE_TRUE='#'
34608 MODULE_XXSUBTYPE_FALSE=
34609 fi
34610
34611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
34612 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
34613
34614
34615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
34616 printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; }
34617 if test "$py_cv_module__xxtestfuzz" != "n/a"
34618 then :
34619
34620 if test "$TEST_MODULES" = yes
34621 then :
34622 if true
34623 then :
34624 py_cv_module__xxtestfuzz=yes
34625 else case e in #(
34626 e) py_cv_module__xxtestfuzz=missing ;;
34627 esac
34628 fi
34629 else case e in #(
34630 e) py_cv_module__xxtestfuzz=disabled ;;
34631 esac
34632 fi
34633
34634 fi
34635 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
34636 if test "x$py_cv_module__xxtestfuzz" = xyes
34637 then :
34638
34639
34640
34641
34642 fi
34643 if test "$py_cv_module__xxtestfuzz" = yes; then
34644 MODULE__XXTESTFUZZ_TRUE=
34645 MODULE__XXTESTFUZZ_FALSE='#'
34646 else
34647 MODULE__XXTESTFUZZ_TRUE='#'
34648 MODULE__XXTESTFUZZ_FALSE=
34649 fi
34650
34651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
34652 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
34653
34654
34655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
34656 printf %s "checking for stdlib extension module _ctypes_test... " >&6; }
34657 if test "$py_cv_module__ctypes_test" != "n/a"
34658 then :
34659
34660 if test "$TEST_MODULES" = yes
34661 then :
34662 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
34663 then :
34664 py_cv_module__ctypes_test=yes
34665 else case e in #(
34666 e) py_cv_module__ctypes_test=missing ;;
34667 esac
34668 fi
34669 else case e in #(
34670 e) py_cv_module__ctypes_test=disabled ;;
34671 esac
34672 fi
34673
34674 fi
34675 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
34676 if test "x$py_cv_module__ctypes_test" = xyes
34677 then :
34678
34679
34680 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl"
34681
34682 fi
34683 if test "$py_cv_module__ctypes_test" = yes; then
34684 MODULE__CTYPES_TEST_TRUE=
34685 MODULE__CTYPES_TEST_FALSE='#'
34686 else
34687 MODULE__CTYPES_TEST_TRUE='#'
34688 MODULE__CTYPES_TEST_FALSE=
34689 fi
34690
34691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
34692 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
34693
34694
34695
34696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
34697 printf %s "checking for stdlib extension module xxlimited... " >&6; }
34698 if test "$py_cv_module_xxlimited" != "n/a"
34699 then :
34700
34701 if test "$TEST_MODULES" = yes
34702 then :
34703 if test "$ac_cv_func_dlopen" = yes
34704 then :
34705 py_cv_module_xxlimited=yes
34706 else case e in #(
34707 e) py_cv_module_xxlimited=missing ;;
34708 esac
34709 fi
34710 else case e in #(
34711 e) py_cv_module_xxlimited=disabled ;;
34712 esac
34713 fi
34714
34715 fi
34716 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
34717 if test "x$py_cv_module_xxlimited" = xyes
34718 then :
34719
34720
34721
34722
34723 fi
34724 if test "$py_cv_module_xxlimited" = yes; then
34725 MODULE_XXLIMITED_TRUE=
34726 MODULE_XXLIMITED_FALSE='#'
34727 else
34728 MODULE_XXLIMITED_TRUE='#'
34729 MODULE_XXLIMITED_FALSE=
34730 fi
34731
34732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
34733 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
34734
34735
34736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
34737 printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
34738 if test "$py_cv_module_xxlimited_35" != "n/a"
34739 then :
34740
34741 if test "$TEST_MODULES" = yes
34742 then :
34743 if test "$ac_cv_func_dlopen" = yes
34744 then :
34745 py_cv_module_xxlimited_35=yes
34746 else case e in #(
34747 e) py_cv_module_xxlimited_35=missing ;;
34748 esac
34749 fi
34750 else case e in #(
34751 e) py_cv_module_xxlimited_35=disabled ;;
34752 esac
34753 fi
34754
34755 fi
34756 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
34757 if test "x$py_cv_module_xxlimited_35" = xyes
34758 then :
34759
34760
34761
34762
34763 fi
34764 if test "$py_cv_module_xxlimited_35" = yes; then
34765 MODULE_XXLIMITED_35_TRUE=
34766 MODULE_XXLIMITED_35_FALSE='#'
34767 else
34768 MODULE_XXLIMITED_35_TRUE='#'
34769 MODULE_XXLIMITED_35_FALSE=
34770 fi
34771
34772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
34773 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
34774
34775
34776 # substitute multiline block, must come after last PY_STDLIB_MOD()
34777
34778
34779 # generate output files
34780 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
34781
34782 ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
34783
34784 ac_config_files="$ac_config_files Modules/ld_so_aix"
34785
34786 # Generate files like pyconfig.h
34787 cat >confcache <<\_ACEOF
34788 # This file is a shell script that caches the results of configure
34789 # tests run on this system so they can be shared between configure
34790 # scripts and configure runs, see configure's option --config-cache.
34791 # It is not useful on other systems. If it contains results you don't
34792 # want to keep, you may remove or edit it.
34793 #
34794 # config.status only pays attention to the cache file if you give it
34795 # the --recheck option to rerun configure.
34796 #
34797 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
34798 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
34799 # following values.
34800
34801 _ACEOF
34802
34803 # The following way of writing the cache mishandles newlines in values,
34804 # but we know of no workaround that is simple, portable, and efficient.
34805 # So, we kill variables containing newlines.
34806 # Ultrix sh set writes to stderr and can't be redirected directly,
34807 # and sets the high bit in the cache file unless we assign to the vars.
34808 (
34809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34810 eval ac_val=\$$ac_var
34811 case $ac_val in #(
34812 *${as_nl}*)
34813 case $ac_var in #(
34814 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34815 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34816 esac
34817 case $ac_var in #(
34818 _ | IFS | as_nl) ;; #(
34819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34820 *) { eval $ac_var=; unset $ac_var;} ;;
34821 esac ;;
34822 esac
34823 done
34824
34825 (set) 2>&1 |
34826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34827 *${as_nl}ac_space=\ *)
34828 # 'set' does not quote correctly, so add quotes: double-quote
34829 # substitution turns \\\\ into \\, and sed turns \\ into \.
34830 sed -n \
34831 "s/'/'\\\\''/g;
34832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34833 ;; #(
34834 *)
34835 # 'set' quotes correctly as required by POSIX, so do not add quotes.
34836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34837 ;;
34838 esac |
34839 sort
34840 ) |
34841 sed '
34842 /^ac_cv_env_/b end
34843 t clear
34844 :clear
34845 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34846 t end
34847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34848 :end' >>confcache
34849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34850 if test -w "$cache_file"; then
34851 if test "x$cache_file" != "x/dev/null"; then
34852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34853 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34854 if test ! -f "$cache_file" || test -h "$cache_file"; then
34855 cat confcache >"$cache_file"
34856 else
34857 case $cache_file in #(
34858 */* | ?:*)
34859 mv -f confcache "$cache_file"$$ &&
34860 mv -f "$cache_file"$$ "$cache_file" ;; #(
34861 *)
34862 mv -f confcache "$cache_file" ;;
34863 esac
34864 fi
34865 fi
34866 else
34867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34868 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34869 fi
34870 fi
34871 rm -f confcache
34872
34873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34874 # Let make expand exec_prefix.
34875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34876
34877 DEFS=-DHAVE_CONFIG_H
34878
34879 ac_libobjs=
34880 ac_ltlibobjs=
34881 U=
34882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34883 # 1. Remove the extension, and $U if already installed.
34884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34885 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34887 # will be set to the directory where LIBOBJS objects are built.
34888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34890 done
34891 LIBOBJS=$ac_libobjs
34892
34893 LTLIBOBJS=$ac_ltlibobjs
34894
34895
34896
34897 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
34898 as_fn_error $? "conditional \"MODULE__IO\" was never defined.
34899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34900 fi
34901 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
34902 as_fn_error $? "conditional \"MODULE_TIME\" was never defined.
34903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34904 fi
34905 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
34906 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
34907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34908 fi
34909 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
34910 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
34911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34912 fi
34913 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
34914 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined.
34915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34916 fi
34917 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
34918 as_fn_error $? "conditional \"MODULE__CSV\" was never defined.
34919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34920 fi
34921 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
34922 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined.
34923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34924 fi
34925 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
34926 as_fn_error $? "conditional \"MODULE__JSON\" was never defined.
34927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34928 fi
34929 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
34930 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined.
34931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34932 fi
34933 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
34934 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined.
34935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34936 fi
34937 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
34938 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
34939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34940 fi
34941 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
34942 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined.
34943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34944 fi
34945 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
34946 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined.
34947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34948 fi
34949 if test -z "${MODULE__REMOTE_DEBUGGING_TRUE}" && test -z "${MODULE__REMOTE_DEBUGGING_FALSE}"; then
34950 as_fn_error $? "conditional \"MODULE__REMOTE_DEBUGGING\" was never defined.
34951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34952 fi
34953 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
34954 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined.
34955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34956 fi
34957 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
34958 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined.
34959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34960 fi
34961 if test -z "${MODULE__TYPES_TRUE}" && test -z "${MODULE__TYPES_FALSE}"; then
34962 as_fn_error $? "conditional \"MODULE__TYPES\" was never defined.
34963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34964 fi
34965 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
34966 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined.
34967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34968 fi
34969 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
34970 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined.
34971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34972 fi
34973 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
34974 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined.
34975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34976 fi
34977 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
34978 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined.
34979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34980 fi
34981 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
34982 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
34983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34984 fi
34985 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
34986 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
34987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34988 fi
34989 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
34990 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
34991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34992 fi
34993 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
34994 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined.
34995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34996 fi
34997 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
34998 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined.
34999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35000 fi
35001 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
35002 as_fn_error $? "conditional \"MODULE_MATH\" was never defined.
35003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35004 fi
35005 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
35006 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined.
35007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35008 fi
35009 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
35010 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined.
35011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35012 fi
35013 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
35014 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
35015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35016 fi
35017 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
35018 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined.
35019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35020 fi
35021 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
35022 as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
35023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35024 fi
35025 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
35026 as_fn_error $? "conditional \"MODULE_PWD\" was never defined.
35027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35028 fi
35029 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
35030 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined.
35031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35032 fi
35033 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
35034 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined.
35035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35036 fi
35037 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
35038 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined.
35039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35040 fi
35041 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
35042 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined.
35043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35044 fi
35045 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
35046 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined.
35047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35048 fi
35049 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
35050 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined.
35051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35052 fi
35053 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
35054 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined.
35055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35056 fi
35057 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
35058 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined.
35059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35060 fi
35061 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
35062 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined.
35063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35064 fi
35065 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
35066 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined.
35067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35068 fi
35069 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
35070 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined.
35071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35072 fi
35073 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
35074 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined.
35075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35076 fi
35077 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
35078 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined.
35079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35080 fi
35081 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
35082 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined.
35083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35084 fi
35085 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
35086 as_fn_error $? "conditional \"MODULE__MD5\" was never defined.
35087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35088 fi
35089 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
35090 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined.
35091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35092 fi
35093 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
35094 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined.
35095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35096 fi
35097 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
35098 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined.
35099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35100 fi
35101 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
35102 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined.
35103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35104 fi
35105 if test -z "${MODULE__HMAC_TRUE}" && test -z "${MODULE__HMAC_FALSE}"; then
35106 as_fn_error $? "conditional \"MODULE__HMAC\" was never defined.
35107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35108 fi
35109 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
35110 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined.
35111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35112 fi
35113 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
35114 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined.
35115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35116 fi
35117 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
35118 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined.
35119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35120 fi
35121 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
35122 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined.
35123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35124 fi
35125 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
35126 as_fn_error $? "conditional \"MODULE__DBM\" was never defined.
35127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35128 fi
35129 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
35130 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined.
35131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35132 fi
35133 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
35134 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined.
35135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35136 fi
35137 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
35138 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined.
35139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35140 fi
35141 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
35142 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined.
35143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35144 fi
35145 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
35146 as_fn_error $? "conditional \"MODULE__UUID\" was never defined.
35147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35148 fi
35149 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
35150 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined.
35151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35152 fi
35153 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
35154 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined.
35155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35156 fi
35157 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
35158 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined.
35159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35160 fi
35161 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
35162 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined.
35163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35164 fi
35165 if test -z "${MODULE__ZSTD_TRUE}" && test -z "${MODULE__ZSTD_FALSE}"; then
35166 as_fn_error $? "conditional \"MODULE__ZSTD\" was never defined.
35167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35168 fi
35169 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
35170 as_fn_error $? "conditional \"MODULE__SSL\" was never defined.
35171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35172 fi
35173 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
35174 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined.
35175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35176 fi
35177 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
35178 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined.
35179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35180 fi
35181 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
35182 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
35183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35184 fi
35185 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
35186 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
35187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35188 fi
35189 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
35190 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
35191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35192 fi
35193 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
35194 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
35195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35196 fi
35197 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
35198 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined.
35199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35200 fi
35201 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
35202 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
35203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35204 fi
35205 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
35206 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined.
35207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35208 fi
35209 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
35210 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
35211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35212 fi
35213 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
35214 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined.
35215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35216 fi
35217 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
35218 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined.
35219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35220 fi
35221 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
35222 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined.
35223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35224 fi
35225 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
35226 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined.
35227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35228 fi
35229 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
35230 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined.
35231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35232 fi
35233
35234 : "${CONFIG_STATUS=./config.status}"
35235 ac_write_fail=0
35236 ac_clean_files_save=$ac_clean_files
35237 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35239 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
35240 as_write_fail=0
35241 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35242 #! $SHELL
35243 # Generated by $as_me.
35244 # Run this file to recreate the current configuration.
35245 # Compiler output produced by configure, useful for debugging
35246 # configure, is in config.log if it exists.
35247
35248 debug=false
35249 ac_cs_recheck=false
35250 ac_cs_silent=false
35251
35252 SHELL=\${CONFIG_SHELL-$SHELL}
35253 export SHELL
35254 _ASEOF
35255 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35256 ## -------------------- ##
35257 ## M4sh Initialization. ##
35258 ## -------------------- ##
35259
35260 # Be more Bourne compatible
35261 DUALCASE=1; export DUALCASE # for MKS sh
35262 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
35263 then :
35264 emulate sh
35265 NULLCMD=:
35266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35267 # is contrary to our usage. Disable this feature.
35268 alias -g '${1+"$@"}'='"$@"'
35269 setopt NO_GLOB_SUBST
35270 else case e in #(
35271 e) case `(set -o) 2>/dev/null` in #(
35272 *posix*) :
35273 set -o posix ;; #(
35274 *) :
35275 ;;
35276 esac ;;
35277 esac
35278 fi
35279
35280
35281
35282 # Reset variables that may have inherited troublesome values from
35283 # the environment.
35284
35285 # IFS needs to be set, to space, tab, and newline, in precisely that order.
35286 # (If _AS_PATH_WALK were called with IFS unset, it would have the
35287 # side effect of setting IFS to empty, thus disabling word splitting.)
35288 # Quoting is to prevent editors from complaining about space-tab.
35289 as_nl='
35290 '
35291 export as_nl
35292 IFS=" "" $as_nl"
35293
35294 PS1='$ '
35295 PS2='> '
35296 PS4='+ '
35297
35298 # Ensure predictable behavior from utilities with locale-dependent output.
35299 LC_ALL=C
35300 export LC_ALL
35301 LANGUAGE=C
35302 export LANGUAGE
35303
35304 # We cannot yet rely on "unset" to work, but we need these variables
35305 # to be unset--not just set to an empty or harmless value--now, to
35306 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
35307 # also avoids known problems related to "unset" and subshell syntax
35308 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
35309 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
35310 do eval test \${$as_var+y} \
35311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35312 done
35313
35314 # Ensure that fds 0, 1, and 2 are open.
35315 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
35316 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
35317 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
35318
35319 # The user is always right.
35320 if ${PATH_SEPARATOR+false} :; then
35321 PATH_SEPARATOR=:
35322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35324 PATH_SEPARATOR=';'
35325 }
35326 fi
35327
35328
35329 # Find who we are. Look in the path if we contain no directory separator.
35330 as_myself=
35331 case $0 in #((
35332 *[\\/]* ) as_myself=$0 ;;
35333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35334 for as_dir in $PATH
35335 do
35336 IFS=$as_save_IFS
35337 case $as_dir in #(((
35338 '') as_dir=./ ;;
35339 */) ;;
35340 *) as_dir=$as_dir/ ;;
35341 esac
35342 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
35343 done
35344 IFS=$as_save_IFS
35345
35346 ;;
35347 esac
35348 # We did not find ourselves, most probably we were run as 'sh COMMAND'
35349 # in which case we are not to be found in the path.
35350 if test "x$as_myself" = x; then
35351 as_myself=$0
35352 fi
35353 if test ! -f "$as_myself"; then
35354 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35355 exit 1
35356 fi
35357
35358
35359
35360 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35361 # ----------------------------------------
35362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35364 # script with STATUS, using 1 if that was 0.
35365 as_fn_error ()
35366 {
35367 as_status=$1; test $as_status -eq 0 && as_status=1
35368 if test "$4"; then
35369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35371 fi
35372 printf "%s\n" "$as_me: error: $2" >&2
35373 as_fn_exit $as_status
35374 } # as_fn_error
35375
35376
35377 # as_fn_set_status STATUS
35378 # -----------------------
35379 # Set $? to STATUS, without forking.
35380 as_fn_set_status ()
35381 {
35382 return $1
35383 } # as_fn_set_status
35384
35385 # as_fn_exit STATUS
35386 # -----------------
35387 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35388 as_fn_exit ()
35389 {
35390 set +e
35391 as_fn_set_status $1
35392 exit $1
35393 } # as_fn_exit
35394
35395 # as_fn_unset VAR
35396 # ---------------
35397 # Portably unset VAR.
35398 as_fn_unset ()
35399 {
35400 { eval $1=; unset $1;}
35401 }
35402 as_unset=as_fn_unset
35403
35404 # as_fn_append VAR VALUE
35405 # ----------------------
35406 # Append the text in VALUE to the end of the definition contained in VAR. Take
35407 # advantage of any shell optimizations that allow amortized linear growth over
35408 # repeated appends, instead of the typical quadratic growth present in naive
35409 # implementations.
35410 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
35411 then :
35412 eval 'as_fn_append ()
35413 {
35414 eval $1+=\$2
35415 }'
35416 else case e in #(
35417 e) as_fn_append ()
35418 {
35419 eval $1=\$$1\$2
35420 } ;;
35421 esac
35422 fi # as_fn_append
35423
35424 # as_fn_arith ARG...
35425 # ------------------
35426 # Perform arithmetic evaluation on the ARGs, and store the result in the
35427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35428 # must be portable across $(()) and expr.
35429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
35430 then :
35431 eval 'as_fn_arith ()
35432 {
35433 as_val=$(( $* ))
35434 }'
35435 else case e in #(
35436 e) as_fn_arith ()
35437 {
35438 as_val=`expr "$@" || test $? -eq 1`
35439 } ;;
35440 esac
35441 fi # as_fn_arith
35442
35443
35444 if expr a : '\(a\)' >/dev/null 2>&1 &&
35445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35446 as_expr=expr
35447 else
35448 as_expr=false
35449 fi
35450
35451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35452 as_basename=basename
35453 else
35454 as_basename=false
35455 fi
35456
35457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35458 as_dirname=dirname
35459 else
35460 as_dirname=false
35461 fi
35462
35463 as_me=`$as_basename -- "$0" ||
35464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35465 X"$0" : 'X\(//\)$' \| \
35466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35467 printf "%s\n" X/"$0" |
35468 sed '/^.*\/\([^/][^/]*\)\/*$/{
35469 s//\1/
35470 q
35471 }
35472 /^X\/\(\/\/\)$/{
35473 s//\1/
35474 q
35475 }
35476 /^X\/\(\/\).*/{
35477 s//\1/
35478 q
35479 }
35480 s/.*/./; q'`
35481
35482 # Avoid depending upon Character Ranges.
35483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35486 as_cr_digits='0123456789'
35487 as_cr_alnum=$as_cr_Letters$as_cr_digits
35488
35489
35490 # Determine whether it's possible to make 'echo' print without a newline.
35491 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
35492 # for compatibility with existing Makefiles.
35493 ECHO_C= ECHO_N= ECHO_T=
35494 case `echo -n x` in #(((((
35495 -n*)
35496 case `echo 'xy\c'` in
35497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35498 xy) ECHO_C='\c';;
35499 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35500 ECHO_T=' ';;
35501 esac;;
35502 *)
35503 ECHO_N='-n';;
35504 esac
35505
35506 # For backward compatibility with old third-party macros, we provide
35507 # the shell variables $as_echo and $as_echo_n. New code should use
35508 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
35509 as_echo='printf %s\n'
35510 as_echo_n='printf %s'
35511
35512 rm -f conf$$ conf$$.exe conf$$.file
35513 if test -d conf$$.dir; then
35514 rm -f conf$$.dir/conf$$.file
35515 else
35516 rm -f conf$$.dir
35517 mkdir conf$$.dir 2>/dev/null
35518 fi
35519 if (echo >conf$$.file) 2>/dev/null; then
35520 if ln -s conf$$.file conf$$ 2>/dev/null; then
35521 as_ln_s='ln -s'
35522 # ... but there are two gotchas:
35523 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
35524 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
35525 # In both cases, we have to default to 'cp -pR'.
35526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35527 as_ln_s='cp -pR'
35528 elif ln conf$$.file conf$$ 2>/dev/null; then
35529 as_ln_s=ln
35530 else
35531 as_ln_s='cp -pR'
35532 fi
35533 else
35534 as_ln_s='cp -pR'
35535 fi
35536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35537 rmdir conf$$.dir 2>/dev/null
35538
35539
35540 # as_fn_mkdir_p
35541 # -------------
35542 # Create "$as_dir" as a directory, including parents if necessary.
35543 as_fn_mkdir_p ()
35544 {
35545
35546 case $as_dir in #(
35547 -*) as_dir=./$as_dir;;
35548 esac
35549 test -d "$as_dir" || eval $as_mkdir_p || {
35550 as_dirs=
35551 while :; do
35552 case $as_dir in #(
35553 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35554 *) as_qdir=$as_dir;;
35555 esac
35556 as_dirs="'$as_qdir' $as_dirs"
35557 as_dir=`$as_dirname -- "$as_dir" ||
35558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35559 X"$as_dir" : 'X\(//\)[^/]' \| \
35560 X"$as_dir" : 'X\(//\)$' \| \
35561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35562 printf "%s\n" X"$as_dir" |
35563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35564 s//\1/
35565 q
35566 }
35567 /^X\(\/\/\)[^/].*/{
35568 s//\1/
35569 q
35570 }
35571 /^X\(\/\/\)$/{
35572 s//\1/
35573 q
35574 }
35575 /^X\(\/\).*/{
35576 s//\1/
35577 q
35578 }
35579 s/.*/./; q'`
35580 test -d "$as_dir" && break
35581 done
35582 test -z "$as_dirs" || eval "mkdir $as_dirs"
35583 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35584
35585
35586 } # as_fn_mkdir_p
35587 if mkdir -p . 2>/dev/null; then
35588 as_mkdir_p='mkdir -p "$as_dir"'
35589 else
35590 test -d ./-p && rmdir ./-p
35591 as_mkdir_p=false
35592 fi
35593
35594
35595 # as_fn_executable_p FILE
35596 # -----------------------
35597 # Test if FILE is an executable regular file.
35598 as_fn_executable_p ()
35599 {
35600 test -f "$1" && test -x "$1"
35601 } # as_fn_executable_p
35602 as_test_x='test -x'
35603 as_executable_p=as_fn_executable_p
35604
35605 # Sed expression to map a string onto a valid CPP name.
35606 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35607 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
35608
35609 # Sed expression to map a string onto a valid variable name.
35610 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35611 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
35612
35613
35614 exec 6>&1
35615 ## ----------------------------------- ##
35616 ## Main body of $CONFIG_STATUS script. ##
35617 ## ----------------------------------- ##
35618 _ASEOF
35619 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35620
35621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35622 # Save the log message, to keep $0 and so on meaningful, and to
35623 # report actual input values of CONFIG_FILES etc. instead of their
35624 # values after options handling.
35625 ac_log="
35626 This file was extended by python $as_me 3.14, which was
35627 generated by GNU Autoconf 2.72. Invocation command line was
35628
35629 CONFIG_FILES = $CONFIG_FILES
35630 CONFIG_HEADERS = $CONFIG_HEADERS
35631 CONFIG_LINKS = $CONFIG_LINKS
35632 CONFIG_COMMANDS = $CONFIG_COMMANDS
35633 $ $0 $@
35634
35635 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35636 "
35637
35638 _ACEOF
35639
35640 case $ac_config_files in *"
35641 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35642 esac
35643
35644 case $ac_config_headers in *"
35645 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35646 esac
35647
35648
35649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35650 # Files that config.status was made for.
35651 config_files="$ac_config_files"
35652 config_headers="$ac_config_headers"
35653
35654 _ACEOF
35655
35656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35657 ac_cs_usage="\
35658 '$as_me' instantiates files and other configuration actions
35659 from templates according to the current configuration. Unless the files
35660 and actions are specified as TAGs, all are instantiated by default.
35661
35662 Usage: $0 [OPTION]... [TAG]...
35663
35664 -h, --help print this help, then exit
35665 -V, --version print version number and configuration settings, then exit
35666 --config print configuration, then exit
35667 -q, --quiet, --silent
35668 do not print progress messages
35669 -d, --debug don't remove temporary files
35670 --recheck update $as_me by reconfiguring in the same conditions
35671 --file=FILE[:TEMPLATE]
35672 instantiate the configuration file FILE
35673 --header=FILE[:TEMPLATE]
35674 instantiate the configuration header FILE
35675
35676 Configuration files:
35677 $config_files
35678
35679 Configuration headers:
35680 $config_headers
35681
35682 Report bugs to <https://github.com/python/cpython/issues/>."
35683
35684 _ACEOF
35685 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
35686 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
35687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35688 ac_cs_config='$ac_cs_config_escaped'
35689 ac_cs_version="\\
35690 python config.status 3.14
35691 configured by $0, generated by GNU Autoconf 2.72,
35692 with options \\"\$ac_cs_config\\"
35693
35694 Copyright (C) 2023 Free Software Foundation, Inc.
35695 This config.status script is free software; the Free Software Foundation
35696 gives unlimited permission to copy, distribute and modify it."
35697
35698 ac_pwd='$ac_pwd'
35699 srcdir='$srcdir'
35700 INSTALL='$INSTALL'
35701 MKDIR_P='$MKDIR_P'
35702 test -n "\$AWK" || AWK=awk
35703 _ACEOF
35704
35705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35706 # The default lists apply if the user does not specify any file.
35707 ac_need_defaults=:
35708 while test $# != 0
35709 do
35710 case $1 in
35711 --*=?*)
35712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35714 ac_shift=:
35715 ;;
35716 --*=)
35717 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35718 ac_optarg=
35719 ac_shift=:
35720 ;;
35721 *)
35722 ac_option=$1
35723 ac_optarg=$2
35724 ac_shift=shift
35725 ;;
35726 esac
35727
35728 case $ac_option in
35729 # Handling of the options.
35730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35731 ac_cs_recheck=: ;;
35732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35733 printf "%s\n" "$ac_cs_version"; exit ;;
35734 --config | --confi | --conf | --con | --co | --c )
35735 printf "%s\n" "$ac_cs_config"; exit ;;
35736 --debug | --debu | --deb | --de | --d | -d )
35737 debug=: ;;
35738 --file | --fil | --fi | --f )
35739 $ac_shift
35740 case $ac_optarg in
35741 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35742 '') as_fn_error $? "missing file argument" ;;
35743 esac
35744 as_fn_append CONFIG_FILES " '$ac_optarg'"
35745 ac_need_defaults=false;;
35746 --header | --heade | --head | --hea )
35747 $ac_shift
35748 case $ac_optarg in
35749 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35750 esac
35751 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35752 ac_need_defaults=false;;
35753 --he | --h)
35754 # Conflict between --help and --header
35755 as_fn_error $? "ambiguous option: '$1'
35756 Try '$0 --help' for more information.";;
35757 --help | --hel | -h )
35758 printf "%s\n" "$ac_cs_usage"; exit ;;
35759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35760 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35761 ac_cs_silent=: ;;
35762
35763 # This is an error.
35764 -*) as_fn_error $? "unrecognized option: '$1'
35765 Try '$0 --help' for more information." ;;
35766
35767 *) as_fn_append ac_config_targets " $1"
35768 ac_need_defaults=false ;;
35769
35770 esac
35771 shift
35772 done
35773
35774 ac_configure_extra_args=
35775
35776 if $ac_cs_silent; then
35777 exec 6>/dev/null
35778 ac_configure_extra_args="$ac_configure_extra_args --silent"
35779 fi
35780
35781 _ACEOF
35782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35783 if \$ac_cs_recheck; then
35784 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35785 shift
35786 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
35787 CONFIG_SHELL='$SHELL'
35788 export CONFIG_SHELL
35789 exec "\$@"
35790 fi
35791
35792 _ACEOF
35793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35794 exec 5>>config.log
35795 {
35796 echo
35797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35798 ## Running $as_me. ##
35799 _ASBOX
35800 printf "%s\n" "$ac_log"
35801 } >&5
35802
35803 _ACEOF
35804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35805 _ACEOF
35806
35807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35808
35809 # Handling of arguments.
35810 for ac_config_target in $ac_config_targets
35811 do
35812 case $ac_config_target in
35813 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
35814 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
35815 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
35816 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
35817 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
35818 "Apple/iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES Apple/iOS/Resources/Info.plist" ;;
35819 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
35820 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
35821 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
35822 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
35823 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;;
35824 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;;
35825 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
35826
35827 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
35828 esac
35829 done
35830
35831
35832 # If the user did not use the arguments to specify the items to instantiate,
35833 # then the envvar interface is used. Set only those that are not.
35834 # We use the long form for the default assignment because of an extremely
35835 # bizarre bug on SunOS 4.1.3.
35836 if $ac_need_defaults; then
35837 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35838 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35839 fi
35840
35841 # Have a temporary directory for convenience. Make it in the build tree
35842 # simply because there is no reason against having it here, and in addition,
35843 # creating and moving files from /tmp can sometimes cause problems.
35844 # Hook for its removal unless debugging.
35845 # Note that there is a small window in which the directory will not be cleaned:
35846 # after its creation but before its name has been assigned to '$tmp'.
35847 $debug ||
35848 {
35849 tmp= ac_tmp=
35850 trap 'exit_status=$?
35851 : "${ac_tmp:=$tmp}"
35852 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35853 ' 0
35854 trap 'as_fn_exit 1' 1 2 13 15
35855 }
35856 # Create a (secure) tmp directory for tmp files.
35857
35858 {
35859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35860 test -d "$tmp"
35861 } ||
35862 {
35863 tmp=./conf$$-$RANDOM
35864 (umask 077 && mkdir "$tmp")
35865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35866 ac_tmp=$tmp
35867
35868 # Set up the scripts for CONFIG_FILES section.
35869 # No need to generate them if there are no CONFIG_FILES.
35870 # This happens for instance with './config.status config.h'.
35871 if test -n "$CONFIG_FILES"; then
35872
35873
35874 ac_cr=`echo X | tr X '\015'`
35875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35876 # But we know of no other shell where ac_cr would be empty at this
35877 # point, so we can use a bashism as a fallback.
35878 if test "x$ac_cr" = x; then
35879 eval ac_cr=\$\'\\r\'
35880 fi
35881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35883 ac_cs_awk_cr='\\r'
35884 else
35885 ac_cs_awk_cr=$ac_cr
35886 fi
35887
35888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35889 _ACEOF
35890
35891
35892 {
35893 echo "cat >conf$$subs.awk <<_ACEOF" &&
35894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35895 echo "_ACEOF"
35896 } >conf$$subs.sh ||
35897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35899 ac_delim='%!_!# '
35900 for ac_last_try in false false false false false :; do
35901 . ./conf$$subs.sh ||
35902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35903
35904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35905 if test $ac_delim_n = $ac_delim_num; then
35906 break
35907 elif $ac_last_try; then
35908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35909 else
35910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35911 fi
35912 done
35913 rm -f conf$$subs.sh
35914
35915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35917 _ACEOF
35918 sed -n '
35919 h
35920 s/^/S["/; s/!.*/"]=/
35921 p
35922 g
35923 s/^[^!]*!//
35924 :repl
35925 t repl
35926 s/'"$ac_delim"'$//
35927 t delim
35928 :nl
35929 h
35930 s/\(.\{148\}\)..*/\1/
35931 t more1
35932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35933 p
35934 n
35935 b repl
35936 :more1
35937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35938 p
35939 g
35940 s/.\{148\}//
35941 t nl
35942 :delim
35943 h
35944 s/\(.\{148\}\)..*/\1/
35945 t more2
35946 s/["\\]/\\&/g; s/^/"/; s/$/"/
35947 p
35948 b
35949 :more2
35950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35951 p
35952 g
35953 s/.\{148\}//
35954 t delim
35955 ' <conf$$subs.awk | sed '
35956 /^[^""]/{
35957 N
35958 s/\n//
35959 }
35960 ' >>$CONFIG_STATUS || ac_write_fail=1
35961 rm -f conf$$subs.awk
35962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35963 _ACAWK
35964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35965 for (key in S) S_is_set[key] = 1
35966 FS = ""
35967
35968 }
35969 {
35970 line = $ 0
35971 nfields = split(line, field, "@")
35972 substed = 0
35973 len = length(field[1])
35974 for (i = 2; i < nfields; i++) {
35975 key = field[i]
35976 keylen = length(key)
35977 if (S_is_set[key]) {
35978 value = S[key]
35979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35980 len += length(value) + length(field[++i])
35981 substed = 1
35982 } else
35983 len += 1 + keylen
35984 }
35985
35986 print line
35987 }
35988
35989 _ACAWK
35990 _ACEOF
35991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35994 else
35995 cat
35996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35998 _ACEOF
35999
36000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36002 # trailing colons and then remove the whole line if VPATH becomes empty
36003 # (actually we leave an empty line to preserve line numbers).
36004 if test "x$srcdir" = x.; then
36005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36006 h
36007 s///
36008 s/^/:/
36009 s/[ ]*$/:/
36010 s/:\$(srcdir):/:/g
36011 s/:\${srcdir}:/:/g
36012 s/:@srcdir@:/:/g
36013 s/^:*//
36014 s/:*$//
36015 x
36016 s/\(=[ ]*\).*/\1/
36017 G
36018 s/\n//
36019 s/^[^=]*=[ ]*$//
36020 }'
36021 fi
36022
36023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36024 fi # test -n "$CONFIG_FILES"
36025
36026 # Set up the scripts for CONFIG_HEADERS section.
36027 # No need to generate them if there are no CONFIG_HEADERS.
36028 # This happens for instance with './config.status Makefile'.
36029 if test -n "$CONFIG_HEADERS"; then
36030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36031 BEGIN {
36032 _ACEOF
36033
36034 # Transform confdefs.h into an awk script 'defines.awk', embedded as
36035 # here-document in config.status, that substitutes the proper values into
36036 # config.h.in to produce config.h.
36037
36038 # Create a delimiter string that does not exist in confdefs.h, to ease
36039 # handling of long lines.
36040 ac_delim='%!_!# '
36041 for ac_last_try in false false :; do
36042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36043 if test -z "$ac_tt"; then
36044 break
36045 elif $ac_last_try; then
36046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36047 else
36048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36049 fi
36050 done
36051
36052 # For the awk script, D is an array of macro values keyed by name,
36053 # likewise P contains macro parameters if any. Preserve backslash
36054 # newline sequences.
36055
36056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36057 sed -n '
36058 s/.\{148\}/&'"$ac_delim"'/g
36059 t rset
36060 :rset
36061 s/^[ ]*#[ ]*define[ ][ ]*/ /
36062 t def
36063 d
36064 :def
36065 s/\\$//
36066 t bsnl
36067 s/["\\]/\\&/g
36068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36069 D["\1"]=" \3"/p
36070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36071 d
36072 :bsnl
36073 s/["\\]/\\&/g
36074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36075 D["\1"]=" \3\\\\\\n"\\/p
36076 t cont
36077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36078 t cont
36079 d
36080 :cont
36081 n
36082 s/.\{148\}/&'"$ac_delim"'/g
36083 t clear
36084 :clear
36085 s/\\$//
36086 t bsnlc
36087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36088 d
36089 :bsnlc
36090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36091 b cont
36092 ' <confdefs.h | sed '
36093 s/'"$ac_delim"'/"\\\
36094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36095
36096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36097 for (key in D) D_is_set[key] = 1
36098 FS = ""
36099 }
36100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36101 line = \$ 0
36102 split(line, arg, " ")
36103 if (arg[1] == "#") {
36104 defundef = arg[2]
36105 mac1 = arg[3]
36106 } else {
36107 defundef = substr(arg[1], 2)
36108 mac1 = arg[2]
36109 }
36110 split(mac1, mac2, "(") #)
36111 macro = mac2[1]
36112 prefix = substr(line, 1, index(line, defundef) - 1)
36113 if (D_is_set[macro]) {
36114 # Preserve the white space surrounding the "#".
36115 print prefix "define", macro P[macro] D[macro]
36116 next
36117 } else {
36118 # Replace #undef with comments. This is necessary, for example,
36119 # in the case of _POSIX_SOURCE, which is predefined and required
36120 # on some systems where configure will not decide to define it.
36121 if (defundef == "undef") {
36122 print "/*", prefix defundef, macro, "*/"
36123 next
36124 }
36125 }
36126 }
36127 { print }
36128 _ACAWK
36129 _ACEOF
36130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36132 fi # test -n "$CONFIG_HEADERS"
36133
36134
36135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
36136 shift
36137 for ac_tag
36138 do
36139 case $ac_tag in
36140 :[FHLC]) ac_mode=$ac_tag; continue;;
36141 esac
36142 case $ac_mode$ac_tag in
36143 :[FHL]*:*);;
36144 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
36145 :[FH]-) ac_tag=-:-;;
36146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36147 esac
36148 ac_save_IFS=$IFS
36149 IFS=:
36150 set x $ac_tag
36151 IFS=$ac_save_IFS
36152 shift
36153 ac_file=$1
36154 shift
36155
36156 case $ac_mode in
36157 :L) ac_source=$1;;
36158 :[FH])
36159 ac_file_inputs=
36160 for ac_f
36161 do
36162 case $ac_f in
36163 -) ac_f="$ac_tmp/stdin";;
36164 *) # Look for the file first in the build tree, then in the source tree
36165 # (if the path is not absolute). The absolute path cannot be DOS-style,
36166 # because $ac_f cannot contain ':'.
36167 test -f "$ac_f" ||
36168 case $ac_f in
36169 [\\/$]*) false;;
36170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36171 esac ||
36172 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
36173 esac
36174 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36175 as_fn_append ac_file_inputs " '$ac_f'"
36176 done
36177
36178 # Let's still pretend it is 'configure' which instantiates (i.e., don't
36179 # use $as_me), people would be surprised to read:
36180 # /* config.h. Generated by config.status. */
36181 configure_input='Generated from '`
36182 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36183 `' by configure.'
36184 if test x"$ac_file" != x-; then
36185 configure_input="$ac_file. $configure_input"
36186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36187 printf "%s\n" "$as_me: creating $ac_file" >&6;}
36188 fi
36189 # Neutralize special characters interpreted by sed in replacement strings.
36190 case $configure_input in #(
36191 *\&* | *\|* | *\\* )
36192 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
36193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36194 *) ac_sed_conf_input=$configure_input;;
36195 esac
36196
36197 case $ac_tag in
36198 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36200 esac
36201 ;;
36202 esac
36203
36204 ac_dir=`$as_dirname -- "$ac_file" ||
36205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36206 X"$ac_file" : 'X\(//\)[^/]' \| \
36207 X"$ac_file" : 'X\(//\)$' \| \
36208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36209 printf "%s\n" X"$ac_file" |
36210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36211 s//\1/
36212 q
36213 }
36214 /^X\(\/\/\)[^/].*/{
36215 s//\1/
36216 q
36217 }
36218 /^X\(\/\/\)$/{
36219 s//\1/
36220 q
36221 }
36222 /^X\(\/\).*/{
36223 s//\1/
36224 q
36225 }
36226 s/.*/./; q'`
36227 as_dir="$ac_dir"; as_fn_mkdir_p
36228 ac_builddir=.
36229
36230 case "$ac_dir" in
36231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36232 *)
36233 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36234 # A ".." for each directory in $ac_dir_suffix.
36235 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36236 case $ac_top_builddir_sub in
36237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36239 esac ;;
36240 esac
36241 ac_abs_top_builddir=$ac_pwd
36242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36243 # for backward compatibility:
36244 ac_top_builddir=$ac_top_build_prefix
36245
36246 case $srcdir in
36247 .) # We are building in place.
36248 ac_srcdir=.
36249 ac_top_srcdir=$ac_top_builddir_sub
36250 ac_abs_top_srcdir=$ac_pwd ;;
36251 [\\/]* | ?:[\\/]* ) # Absolute name.
36252 ac_srcdir=$srcdir$ac_dir_suffix;
36253 ac_top_srcdir=$srcdir
36254 ac_abs_top_srcdir=$srcdir ;;
36255 *) # Relative name.
36256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36257 ac_top_srcdir=$ac_top_build_prefix$srcdir
36258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36259 esac
36260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36261
36262
36263 case $ac_mode in
36264 :F)
36265 #
36266 # CONFIG_FILE
36267 #
36268
36269 case $INSTALL in
36270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36272 esac
36273 ac_MKDIR_P=$MKDIR_P
36274 case $MKDIR_P in
36275 [\\/$]* | ?:[\\/]* ) ;;
36276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36277 esac
36278 _ACEOF
36279
36280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36281 # If the template does not know about datarootdir, expand it.
36282 # FIXME: This hack should be removed a few years after 2.60.
36283 ac_datarootdir_hack=; ac_datarootdir_seen=
36284 ac_sed_dataroot='
36285 /datarootdir/ {
36286 p
36287 q
36288 }
36289 /@datadir@/p
36290 /@docdir@/p
36291 /@infodir@/p
36292 /@localedir@/p
36293 /@mandir@/p'
36294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36295 *datarootdir*) ac_datarootdir_seen=yes;;
36296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36298 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36299 _ACEOF
36300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36301 ac_datarootdir_hack='
36302 s&@datadir@&$datadir&g
36303 s&@docdir@&$docdir&g
36304 s&@infodir@&$infodir&g
36305 s&@localedir@&$localedir&g
36306 s&@mandir@&$mandir&g
36307 s&\\\${datarootdir}&$datarootdir&g' ;;
36308 esac
36309 _ACEOF
36310
36311 # Neutralize VPATH when '$srcdir' = '.'.
36312 # Shell code in configure.ac might set extrasub.
36313 # FIXME: do we really want to maintain this feature?
36314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36315 ac_sed_extra="$ac_vpsub
36316 $extrasub
36317 _ACEOF
36318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36319 :t
36320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36321 s|@configure_input@|$ac_sed_conf_input|;t t
36322 s&@top_builddir@&$ac_top_builddir_sub&;t t
36323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36324 s&@srcdir@&$ac_srcdir&;t t
36325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36326 s&@top_srcdir@&$ac_top_srcdir&;t t
36327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36328 s&@builddir@&$ac_builddir&;t t
36329 s&@abs_builddir@&$ac_abs_builddir&;t t
36330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36331 s&@INSTALL@&$ac_INSTALL&;t t
36332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36333 $ac_datarootdir_hack
36334 "
36335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36337
36338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36341 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
36343 which seems to be undefined. Please make sure it is defined" >&5
36344 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
36345 which seems to be undefined. Please make sure it is defined" >&2;}
36346
36347 rm -f "$ac_tmp/stdin"
36348 case $ac_file in
36349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36351 esac \
36352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36353 ;;
36354 :H)
36355 #
36356 # CONFIG_HEADER
36357 #
36358 if test x"$ac_file" != x-; then
36359 {
36360 printf "%s\n" "/* $configure_input */" >&1 \
36361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36362 } >"$ac_tmp/config.h" \
36363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36366 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
36367 else
36368 rm -f "$ac_file"
36369 mv "$ac_tmp/config.h" "$ac_file" \
36370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36371 fi
36372 else
36373 printf "%s\n" "/* $configure_input */" >&1 \
36374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36375 || as_fn_error $? "could not create -" "$LINENO" 5
36376 fi
36377 ;;
36378
36379
36380 esac
36381
36382
36383 case $ac_file$ac_mode in
36384 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
36385
36386 esac
36387 done # for ac_tag
36388
36389
36390 as_fn_exit 0
36391 _ACEOF
36392 ac_clean_files=$ac_clean_files_save
36393
36394 test $ac_write_fail = 0 ||
36395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36396
36397
36398 # configure is writing to config.log, and then calls config.status.
36399 # config.status does its own redirection, appending to config.log.
36400 # Unfortunately, on DOS this fails, as config.log is still kept open
36401 # by configure, so config.status won't be able to write to it; its
36402 # output is simply discarded. So we exec the FD to /dev/null,
36403 # effectively closing config.log, so it can be properly (re)opened and
36404 # appended to by config.status. When coming back to configure, we
36405 # need to make the FD available again.
36406 if test "$no_create" != yes; then
36407 ac_cs_success=:
36408 ac_config_status_args=
36409 test "$silent" = yes &&
36410 ac_config_status_args="$ac_config_status_args --quiet"
36411 exec 5>/dev/null
36412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36413 exec 5>>config.log
36414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36415 # would make configure fail if this is the last instruction.
36416 $ac_cs_success || as_fn_exit 1
36417 fi
36418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36420 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36421 fi
36422
36423
36424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
36425 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
36426 if test ! -f Modules/Setup.local
36427 then
36428 echo "# Edit this file for local setup changes" >Modules/Setup.local
36429 fi
36430
36431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
36432 printf "%s\n" "$as_me: creating Makefile" >&6;}
36433 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
36434 -s Modules \
36435 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup
36436 if test $? -ne 0; then
36437 as_fn_error $? "makesetup failed" "$LINENO" 5
36438 fi
36439
36440 mv config.c Modules
36441
36442 if test -z "$PKG_CONFIG"; then
36443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
36444 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
36445 fi
36446
36447 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
36448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
36449
36450 If you want a release build with all stable optimizations active (PGO, etc),
36451 please run ./configure --enable-optimizations
36452 " >&5
36453 printf "%s\n" "$as_me:
36454
36455 If you want a release build with all stable optimizations active (PGO, etc),
36456 please run ./configure --enable-optimizations
36457 " >&6;}
36458 fi
36459
36460 if test "x$PY_SUPPORT_TIER" = x0
36461 then :
36462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
36463
36464 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
36465 CPython core team, see https://peps.python.org/pep-0011/ for more information.
36466 " >&5
36467 printf "%s\n" "$as_me: WARNING:
36468
36469 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
36470 CPython core team, see https://peps.python.org/pep-0011/ for more information.
36471 " >&2;}
36472 fi
36473
36474 if test "$ac_cv_header_stdatomic_h" != "yes"; then
36475 { 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
36476 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;}
36477 fi
36478