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 case $enable_wasm_dynamic_linking in #(
9791 yes) :
9792 ac_cv_func_dlopen=yes ;; #(
9793 no) :
9794 ac_cv_func_dlopen=no ;; #(
9795 missing) :
9796
9797 ;; #(
9798 *) :
9799 ;;
9800 esac
9801
9802
9803
9804
9805
9806
9807
9808
9809 # The -arch flags for universal builds on macOS
9810 UNIVERSAL_ARCH_FLAGS=
9811
9812
9813
9814
9815 # tweak BASECFLAGS based on compiler and platform
9816 if test "x$with_strict_overflow" = xyes
9817 then :
9818 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9819 else case e in #(
9820 e) BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS" ;;
9821 esac
9822 fi
9823
9824 # Enable flags that warn and protect for potential security vulnerabilities.
9825 # These flags should be enabled by default for all builds.
9826
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-safety" >&5
9828 printf %s "checking for --enable-safety... " >&6; }
9829 # Check whether --enable-safety was given.
9830 if test ${enable_safety+y}
9831 then :
9832 enableval=$enable_safety; if test "x$disable_safety" = xyes
9833 then :
9834 enable_safety=no
9835 else case e in #(
9836 e) enable_safety=yes ;;
9837 esac
9838 fi
9839 else case e in #(
9840 e) enable_safety=no ;;
9841 esac
9842 fi
9843
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_safety" >&5
9845 printf "%s\n" "$enable_safety" >&6; }
9846
9847 if test "$enable_safety" = "yes"
9848 then
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-strong" >&5
9850 printf %s "checking whether C compiler accepts -fstack-protector-strong... " >&6; }
9851 if test ${ax_cv_check_cflags__Werror__fstack_protector_strong+y}
9852 then :
9853 printf %s "(cached) " >&6
9854 else case e in #(
9855 e)
9856 ax_check_save_flags=$CFLAGS
9857 CFLAGS="$CFLAGS -Werror -fstack-protector-strong"
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860
9861 int
9862 main (void)
9863 {
9864
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_compile "$LINENO"
9870 then :
9871 ax_cv_check_cflags__Werror__fstack_protector_strong=yes
9872 else case e in #(
9873 e) ax_cv_check_cflags__Werror__fstack_protector_strong=no ;;
9874 esac
9875 fi
9876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9877 CFLAGS=$ax_check_save_flags ;;
9878 esac
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_strong" >&5
9881 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_strong" >&6; }
9882 if test "x$ax_cv_check_cflags__Werror__fstack_protector_strong" = xyes
9883 then :
9884 CFLAGS_NODIST="$CFLAGS_NODIST -fstack-protector-strong"
9885 else case e in #(
9886 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fstack-protector-strong not supported" >&5
9887 printf "%s\n" "$as_me: WARNING: -fstack-protector-strong not supported" >&2;} ;;
9888 esac
9889 fi
9890
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wtrampolines" >&5
9892 printf %s "checking whether C compiler accepts -Wtrampolines... " >&6; }
9893 if test ${ax_cv_check_cflags__Werror__Wtrampolines+y}
9894 then :
9895 printf %s "(cached) " >&6
9896 else case e in #(
9897 e)
9898 ax_check_save_flags=$CFLAGS
9899 CFLAGS="$CFLAGS -Werror -Wtrampolines"
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902
9903 int
9904 main (void)
9905 {
9906
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"
9912 then :
9913 ax_cv_check_cflags__Werror__Wtrampolines=yes
9914 else case e in #(
9915 e) ax_cv_check_cflags__Werror__Wtrampolines=no ;;
9916 esac
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9919 CFLAGS=$ax_check_save_flags ;;
9920 esac
9921 fi
9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wtrampolines" >&5
9923 printf "%s\n" "$ax_cv_check_cflags__Werror__Wtrampolines" >&6; }
9924 if test "x$ax_cv_check_cflags__Werror__Wtrampolines" = xyes
9925 then :
9926 CFLAGS_NODIST="$CFLAGS_NODIST -Wtrampolines"
9927 else case e in #(
9928 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wtrampolines not supported" >&5
9929 printf "%s\n" "$as_me: WARNING: -Wtrampolines not supported" >&2;} ;;
9930 esac
9931 fi
9932
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wimplicit-fallthrough" >&5
9934 printf %s "checking whether C compiler accepts -Wimplicit-fallthrough... " >&6; }
9935 if test ${ax_cv_check_cflags__Werror__Wimplicit_fallthrough+y}
9936 then :
9937 printf %s "(cached) " >&6
9938 else case e in #(
9939 e)
9940 ax_check_save_flags=$CFLAGS
9941 CFLAGS="$CFLAGS -Werror -Wimplicit-fallthrough"
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9944
9945 int
9946 main (void)
9947 {
9948
9949 ;
9950 return 0;
9951 }
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"
9954 then :
9955 ax_cv_check_cflags__Werror__Wimplicit_fallthrough=yes
9956 else case e in #(
9957 e) ax_cv_check_cflags__Werror__Wimplicit_fallthrough=no ;;
9958 esac
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9961 CFLAGS=$ax_check_save_flags ;;
9962 esac
9963 fi
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&5
9965 printf "%s\n" "$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" >&6; }
9966 if test "x$ax_cv_check_cflags__Werror__Wimplicit_fallthrough" = xyes
9967 then :
9968 CFLAGS_NODIST="$CFLAGS_NODIST -Wimplicit-fallthrough"
9969 else case e in #(
9970 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wimplicit-fallthrough not supported" >&5
9971 printf "%s\n" "$as_me: WARNING: -Wimplicit-fallthrough not supported" >&2;} ;;
9972 esac
9973 fi
9974
9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=format-security" >&5
9976 printf %s "checking whether C compiler accepts -Werror=format-security... " >&6; }
9977 if test ${ax_cv_check_cflags__Werror__Werror_format_security+y}
9978 then :
9979 printf %s "(cached) " >&6
9980 else case e in #(
9981 e)
9982 ax_check_save_flags=$CFLAGS
9983 CFLAGS="$CFLAGS -Werror -Werror=format-security"
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986
9987 int
9988 main (void)
9989 {
9990
9991 ;
9992 return 0;
9993 }
9994 _ACEOF
9995 if ac_fn_c_try_compile "$LINENO"
9996 then :
9997 ax_cv_check_cflags__Werror__Werror_format_security=yes
9998 else case e in #(
9999 e) ax_cv_check_cflags__Werror__Werror_format_security=no ;;
10000 esac
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003 CFLAGS=$ax_check_save_flags ;;
10004 esac
10005 fi
10006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Werror_format_security" >&5
10007 printf "%s\n" "$ax_cv_check_cflags__Werror__Werror_format_security" >&6; }
10008 if test "x$ax_cv_check_cflags__Werror__Werror_format_security" = xyes
10009 then :
10010 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=format-security"
10011 else case e in #(
10012 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Werror=format-security not supported" >&5
10013 printf "%s\n" "$as_me: WARNING: -Werror=format-security not supported" >&2;} ;;
10014 esac
10015 fi
10016
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wbidi-chars=any" >&5
10018 printf %s "checking whether C compiler accepts -Wbidi-chars=any... " >&6; }
10019 if test ${ax_cv_check_cflags__Werror__Wbidi_chars_any+y}
10020 then :
10021 printf %s "(cached) " >&6
10022 else case e in #(
10023 e)
10024 ax_check_save_flags=$CFLAGS
10025 CFLAGS="$CFLAGS -Werror -Wbidi-chars=any"
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028
10029 int
10030 main (void)
10031 {
10032
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_compile "$LINENO"
10038 then :
10039 ax_cv_check_cflags__Werror__Wbidi_chars_any=yes
10040 else case e in #(
10041 e) ax_cv_check_cflags__Werror__Wbidi_chars_any=no ;;
10042 esac
10043 fi
10044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 CFLAGS=$ax_check_save_flags ;;
10046 esac
10047 fi
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wbidi_chars_any" >&5
10049 printf "%s\n" "$ax_cv_check_cflags__Werror__Wbidi_chars_any" >&6; }
10050 if test "x$ax_cv_check_cflags__Werror__Wbidi_chars_any" = xyes
10051 then :
10052 CFLAGS_NODIST="$CFLAGS_NODIST -Wbidi-chars=any"
10053 else case e in #(
10054 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wbidi-chars=any not supported" >&5
10055 printf "%s\n" "$as_me: WARNING: -Wbidi-chars=any not supported" >&2;} ;;
10056 esac
10057 fi
10058
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
10060 printf %s "checking whether C compiler accepts -Wall... " >&6; }
10061 if test ${ax_cv_check_cflags__Werror__Wall+y}
10062 then :
10063 printf %s "(cached) " >&6
10064 else case e in #(
10065 e)
10066 ax_check_save_flags=$CFLAGS
10067 CFLAGS="$CFLAGS -Werror -Wall"
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070
10071 int
10072 main (void)
10073 {
10074
10075 ;
10076 return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_compile "$LINENO"
10080 then :
10081 ax_cv_check_cflags__Werror__Wall=yes
10082 else case e in #(
10083 e) ax_cv_check_cflags__Werror__Wall=no ;;
10084 esac
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10087 CFLAGS=$ax_check_save_flags ;;
10088 esac
10089 fi
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wall" >&5
10091 printf "%s\n" "$ax_cv_check_cflags__Werror__Wall" >&6; }
10092 if test "x$ax_cv_check_cflags__Werror__Wall" = xyes
10093 then :
10094 CFLAGS_NODIST="$CFLAGS_NODIST -Wall"
10095 else case e in #(
10096 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -Wall not supported" >&5
10097 printf "%s\n" "$as_me: WARNING: -Wall not supported" >&2;} ;;
10098 esac
10099 fi
10100
10101 fi
10102
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-slower-safety" >&5
10104 printf %s "checking for --enable-slower-safety... " >&6; }
10105 # Check whether --enable-slower-safety was given.
10106 if test ${enable_slower_safety+y}
10107 then :
10108 enableval=$enable_slower_safety; if test "x$disable_slower_safety" = xyes
10109 then :
10110 enable_slower_safety=no
10111 else case e in #(
10112 e) enable_slower_safety=yes ;;
10113 esac
10114 fi
10115 else case e in #(
10116 e) enable_slower_safety=no ;;
10117 esac
10118 fi
10119
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_slower_safety" >&5
10121 printf "%s\n" "$enable_slower_safety" >&6; }
10122
10123 if test "$enable_slower_safety" = "yes"
10124 then
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=3" >&5
10126 printf %s "checking whether C compiler accepts -D_FORTIFY_SOURCE=3... " >&6; }
10127 if test ${ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3+y}
10128 then :
10129 printf %s "(cached) " >&6
10130 else case e in #(
10131 e)
10132 ax_check_save_flags=$CFLAGS
10133 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=3"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136
10137 int
10138 main (void)
10139 {
10140
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"
10146 then :
10147 ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3=yes
10148 else case e in #(
10149 e) ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3=no ;;
10150 esac
10151 fi
10152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10153 CFLAGS=$ax_check_save_flags ;;
10154 esac
10155 fi
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" >&5
10157 printf "%s\n" "$ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" >&6; }
10158 if test "x$ax_cv_check_cflags__Werror__D_FORTIFY_SOURCE_3" = xyes
10159 then :
10160 CFLAGS_NODIST="$CFLAGS_NODIST -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
10161 else case e in #(
10162 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -D_FORTIFY_SOURCE=3 not supported" >&5
10163 printf "%s\n" "$as_me: WARNING: -D_FORTIFY_SOURCE=3 not supported" >&2;} ;;
10164 esac
10165 fi
10166
10167 fi
10168
10169 if test "x$ac_cv_gcc_compat" = xyes
10170 then :
10171
10172 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
10173
10174
10175
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
10177 printf %s "checking if we can add -Wextra... " >&6; }
10178 if test ${ac_cv_enable_extra_warning+y}
10179 then :
10180 printf %s "(cached) " >&6
10181 else case e in #(
10182 e)
10183 py_cflags=$CFLAGS
10184 as_fn_append CFLAGS " -Wextra -Werror"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187
10188 int
10189 main (void)
10190 {
10191
10192 ;
10193 return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_compile "$LINENO"
10197 then :
10198 ac_cv_enable_extra_warning=yes
10199 else case e in #(
10200 e) ac_cv_enable_extra_warning=no ;;
10201 esac
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10204 CFLAGS=$py_cflags
10205 ;;
10206 esac
10207 fi
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
10209 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
10210
10211
10212 if test "x$ac_cv_enable_extra_warning" = xyes
10213 then :
10214 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
10215 fi
10216
10217 # Python doesn't violate C99 aliasing rules, but older versions of
10218 # GCC produce warnings for legal Python code. Enable
10219 # -fno-strict-aliasing on versions of GCC that support but produce
10220 # warnings. See Issue3326
10221 ac_save_cc="$CC"
10222 CC="$CC -fno-strict-aliasing"
10223 save_CFLAGS="$CFLAGS"
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
10225 printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
10226 if test ${ac_cv_no_strict_aliasing+y}
10227 then :
10228 printf %s "(cached) " >&6
10229 else case e in #(
10230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10232
10233
10234 int
10235 main (void)
10236 {
10237
10238 ;
10239 return 0;
10240 }
10241
10242 _ACEOF
10243 if ac_fn_c_try_compile "$LINENO"
10244 then :
10245
10246 CC="$ac_save_cc -fstrict-aliasing"
10247 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250
10251 void f(int **x) {}
10252 int
10253 main (void)
10254 {
10255 double *x; f((int **) &x);
10256 ;
10257 return 0;
10258 }
10259
10260 _ACEOF
10261 if ac_fn_c_try_compile "$LINENO"
10262 then :
10263
10264 ac_cv_no_strict_aliasing=no
10265
10266 else case e in #(
10267 e)
10268 ac_cv_no_strict_aliasing=yes
10269 ;;
10270 esac
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10273
10274 else case e in #(
10275 e)
10276 ac_cv_no_strict_aliasing=no
10277 ;;
10278 esac
10279 fi
10280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10281 esac
10282 fi
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
10284 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
10285 CFLAGS="$save_CFLAGS"
10286 CC="$ac_save_cc"
10287 if test "x$ac_cv_no_strict_aliasing" = xyes
10288 then :
10289 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
10290 fi
10291
10292 # ICC doesn't recognize the option, but only emits a warning
10293 ## XXX does it emit an unused result warning and can it be disabled?
10294 case "$ac_cv_cc_name" in #(
10295 icc) :
10296 ac_cv_disable_unused_result_warning=no
10297
10298
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
10300 printf %s "checking if we can disable $CC unused-result warning... " >&6; }
10301 if test ${ac_cv_disable_unused_result_warning+y}
10302 then :
10303 printf %s "(cached) " >&6
10304 else case e in #(
10305 e)
10306 py_cflags=$CFLAGS
10307 as_fn_append CFLAGS " -Wunused-result -Werror"
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310
10311 int
10312 main (void)
10313 {
10314
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_compile "$LINENO"
10320 then :
10321 ac_cv_disable_unused_result_warning=yes
10322 else case e in #(
10323 e) ac_cv_disable_unused_result_warning=no ;;
10324 esac
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10327 CFLAGS=$py_cflags
10328 ;;
10329 esac
10330 fi
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
10332 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
10333
10334 ;; #(
10335 *) :
10336 ;;
10337 esac
10338 if test "x$ac_cv_disable_unused_result_warning" = xyes
10339 then :
10340 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
10341 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
10342 fi
10343
10344
10345
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
10347 printf %s "checking if we can disable $CC unused-parameter warning... " >&6; }
10348 if test ${ac_cv_disable_unused_parameter_warning+y}
10349 then :
10350 printf %s "(cached) " >&6
10351 else case e in #(
10352 e)
10353 py_cflags=$CFLAGS
10354 as_fn_append CFLAGS " -Wunused-parameter -Werror"
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357
10358 int
10359 main (void)
10360 {
10361
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"
10367 then :
10368 ac_cv_disable_unused_parameter_warning=yes
10369 else case e in #(
10370 e) ac_cv_disable_unused_parameter_warning=no ;;
10371 esac
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10374 CFLAGS=$py_cflags
10375 ;;
10376 esac
10377 fi
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
10379 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
10380
10381
10382 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
10383 then :
10384 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
10385 fi
10386
10387
10388
10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
10390 printf %s "checking if we can disable $CC int-conversion warning... " >&6; }
10391 if test ${ac_cv_disable_int_conversion_warning+y}
10392 then :
10393 printf %s "(cached) " >&6
10394 else case e in #(
10395 e)
10396 py_cflags=$CFLAGS
10397 as_fn_append CFLAGS " -Wint-conversion -Werror"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400
10401 int
10402 main (void)
10403 {
10404
10405 ;
10406 return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_c_try_compile "$LINENO"
10410 then :
10411 ac_cv_disable_int_conversion_warning=yes
10412 else case e in #(
10413 e) ac_cv_disable_int_conversion_warning=no ;;
10414 esac
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10417 CFLAGS=$py_cflags
10418 ;;
10419 esac
10420 fi
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
10422 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
10423
10424
10425 if test "x$ac_cv_disable_int_conversion" = xyes
10426 then :
10427 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion"
10428 fi
10429
10430
10431
10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
10433 printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; }
10434 if test ${ac_cv_disable_missing_field_initializers_warning+y}
10435 then :
10436 printf %s "(cached) " >&6
10437 else case e in #(
10438 e)
10439 py_cflags=$CFLAGS
10440 as_fn_append CFLAGS " -Wmissing-field-initializers -Werror"
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443
10444 int
10445 main (void)
10446 {
10447
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"
10453 then :
10454 ac_cv_disable_missing_field_initializers_warning=yes
10455 else case e in #(
10456 e) ac_cv_disable_missing_field_initializers_warning=no ;;
10457 esac
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10460 CFLAGS=$py_cflags
10461 ;;
10462 esac
10463 fi
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
10465 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
10466
10467
10468 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
10469 then :
10470 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
10471 fi
10472
10473
10474
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
10476 printf %s "checking if we can enable $CC sign-compare warning... " >&6; }
10477 if test ${ac_cv_enable_sign_compare_warning+y}
10478 then :
10479 printf %s "(cached) " >&6
10480 else case e in #(
10481 e)
10482 py_cflags=$CFLAGS
10483 as_fn_append CFLAGS " -Wsign-compare -Werror"
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486
10487 int
10488 main (void)
10489 {
10490
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"
10496 then :
10497 ac_cv_enable_sign_compare_warning=yes
10498 else case e in #(
10499 e) ac_cv_enable_sign_compare_warning=no ;;
10500 esac
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10503 CFLAGS=$py_cflags
10504 ;;
10505 esac
10506 fi
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
10508 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
10509
10510
10511 if test "x$ac_cv_enable_sign_compare_warning" = xyes
10512 then :
10513 BASECFLAGS="$BASECFLAGS -Wsign-compare"
10514 fi
10515
10516
10517
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
10519 printf %s "checking if we can enable $CC unreachable-code warning... " >&6; }
10520 if test ${ac_cv_enable_unreachable_code_warning+y}
10521 then :
10522 printf %s "(cached) " >&6
10523 else case e in #(
10524 e)
10525 py_cflags=$CFLAGS
10526 as_fn_append CFLAGS " -Wunreachable-code -Werror"
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529
10530 int
10531 main (void)
10532 {
10533
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"
10539 then :
10540 ac_cv_enable_unreachable_code_warning=yes
10541 else case e in #(
10542 e) ac_cv_enable_unreachable_code_warning=no ;;
10543 esac
10544 fi
10545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10546 CFLAGS=$py_cflags
10547 ;;
10548 esac
10549 fi
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
10551 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
10552
10553
10554 # Don't enable unreachable code warning in debug mode, since it usually
10555 # results in non-standard code paths.
10556 # Issue #24324: Unfortunately, the unreachable code warning does not work
10557 # correctly on gcc and has been silently removed from the compiler.
10558 # It is supported on clang but on OS X systems gcc may be an alias
10559 # for clang. Try to determine if the compiler is not really gcc and,
10560 # if so, only then enable the warning.
10561 if test $ac_cv_enable_unreachable_code_warning = yes && \
10562 test "$Py_DEBUG" != "true" && \
10563 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
10564 then
10565 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
10566 else
10567 ac_cv_enable_unreachable_code_warning=no
10568 fi
10569
10570
10571
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
10573 printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; }
10574 if test ${ac_cv_enable_strict_prototypes_warning+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else case e in #(
10578 e)
10579 py_cflags=$CFLAGS
10580 as_fn_append CFLAGS " -Wstrict-prototypes -Werror"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583
10584 int
10585 main (void)
10586 {
10587
10588 ;
10589 return 0;
10590 }
10591 _ACEOF
10592 if ac_fn_c_try_compile "$LINENO"
10593 then :
10594 ac_cv_enable_strict_prototypes_warning=yes
10595 else case e in #(
10596 e) ac_cv_enable_strict_prototypes_warning=no ;;
10597 esac
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10600 CFLAGS=$py_cflags
10601 ;;
10602 esac
10603 fi
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10605 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10606
10607
10608 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10609 then :
10610 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
10611 fi
10612
10613 ac_save_cc="$CC"
10614 CC="$CC -Werror=implicit-function-declaration"
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10616 printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; }
10617 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10618 then :
10619 printf %s "(cached) " >&6
10620 else case e in #(
10621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623
10624
10625 int
10626 main (void)
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632
10633 _ACEOF
10634 if ac_fn_c_try_compile "$LINENO"
10635 then :
10636
10637 ac_cv_enable_implicit_function_declaration_error=yes
10638
10639 else case e in #(
10640 e)
10641 ac_cv_enable_implicit_function_declaration_error=no
10642 ;;
10643 esac
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10646 esac
10647 fi
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10649 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10650 CC="$ac_save_cc"
10651
10652 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10653 then :
10654 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10655 fi
10656
10657 ac_save_cc="$CC"
10658 CC="$CC -fvisibility=hidden"
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10660 printf %s "checking if we can use visibility in $CC... " >&6; }
10661 if test ${ac_cv_enable_visibility+y}
10662 then :
10663 printf %s "(cached) " >&6
10664 else case e in #(
10665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667
10668
10669 int
10670 main (void)
10671 {
10672
10673 ;
10674 return 0;
10675 }
10676
10677 _ACEOF
10678 if ac_fn_c_try_compile "$LINENO"
10679 then :
10680
10681 ac_cv_enable_visibility=yes
10682
10683 else case e in #(
10684 e)
10685 ac_cv_enable_visibility=no
10686 ;;
10687 esac
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10690 esac
10691 fi
10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10693 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10694 CC="$ac_save_cc"
10695
10696 if test "x$ac_cv_enable_visibility" = xyes
10697 then :
10698 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden"
10699 fi
10700
10701 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10702 # support. Without this, treatment of subnormals doesn't follow
10703 # the standard.
10704 case $host in
10705 alpha*)
10706 BASECFLAGS="$BASECFLAGS -mieee"
10707 ;;
10708 esac
10709
10710 case $ac_sys_system in
10711 SCO_SV*)
10712 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
10713 ;;
10714
10715 Darwin*)
10716 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10717 # used to be here, but non-Apple gcc doesn't accept them.
10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10719 printf %s "checking which compiler should be used... " >&6; }
10720 case "${UNIVERSALSDK}" in
10721 */MacOSX10.4u.sdk)
10722 # Build using 10.4 SDK, force usage of gcc when the
10723 # compiler is gcc, otherwise the user will get very
10724 # confusing error messages when building on OSX 10.6
10725 CC=gcc-4.0
10726 CPP=cpp-4.0
10727 ;;
10728 esac
10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10730 printf "%s\n" "$CC" >&6; }
10731
10732 # Error on unguarded use of new symbols, which will fail at runtime for
10733 # users on older versions of macOS
10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunguarded-availability" >&5
10735 printf %s "checking whether C compiler accepts -Wunguarded-availability... " >&6; }
10736 if test ${ax_cv_check_cflags__Werror__Wunguarded_availability+y}
10737 then :
10738 printf %s "(cached) " >&6
10739 else case e in #(
10740 e)
10741 ax_check_save_flags=$CFLAGS
10742 CFLAGS="$CFLAGS -Werror -Wunguarded-availability"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745
10746 int
10747 main (void)
10748 {
10749
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_compile "$LINENO"
10755 then :
10756 ax_cv_check_cflags__Werror__Wunguarded_availability=yes
10757 else case e in #(
10758 e) ax_cv_check_cflags__Werror__Wunguarded_availability=no ;;
10759 esac
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10762 CFLAGS=$ax_check_save_flags ;;
10763 esac
10764 fi
10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wunguarded_availability" >&5
10766 printf "%s\n" "$ax_cv_check_cflags__Werror__Wunguarded_availability" >&6; }
10767 if test "x$ax_cv_check_cflags__Werror__Wunguarded_availability" = xyes
10768 then :
10769 as_fn_append CFLAGS_NODIST " -Werror=unguarded-availability"
10770 else case e in #(
10771 e) : ;;
10772 esac
10773 fi
10774
10775
10776 LIPO_INTEL64_FLAGS=""
10777 if test "${enable_universalsdk}"
10778 then
10779 case "$UNIVERSAL_ARCHS" in
10780 32-bit)
10781 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
10782 LIPO_32BIT_FLAGS=""
10783 ARCH_RUN_32BIT=""
10784 ARCH_TRIPLES=`echo {ppc,i386}-apple-darwin`
10785 ;;
10786 64-bit)
10787 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
10788 LIPO_32BIT_FLAGS=""
10789 ARCH_RUN_32BIT="true"
10790 ARCH_TRIPLES=`echo {ppc64,x86_64}-apple-darwin`
10791 ;;
10792 all)
10793 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10794 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10795 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10796 ARCH_TRIPLES=`echo {i386,ppc,ppc64,x86_64}-apple-darwin`
10797 ;;
10798 universal2)
10799 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64"
10800 LIPO_32BIT_FLAGS=""
10801 LIPO_INTEL64_FLAGS="-extract x86_64"
10802 ARCH_RUN_32BIT="true"
10803 ARCH_TRIPLES=`echo {aarch64,x86_64}-apple-darwin`
10804 ;;
10805 intel)
10806 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
10807 LIPO_32BIT_FLAGS="-extract i386"
10808 ARCH_RUN_32BIT="/usr/bin/arch -i386"
10809 ARCH_TRIPLES=`echo {i386,x86_64}-apple-darwin`
10810 ;;
10811 intel-32)
10812 UNIVERSAL_ARCH_FLAGS="-arch i386"
10813 LIPO_32BIT_FLAGS=""
10814 ARCH_RUN_32BIT=""
10815 ARCH_TRIPLES=i386-apple-darwin
10816 ;;
10817 intel-64)
10818 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
10819 LIPO_32BIT_FLAGS=""
10820 ARCH_RUN_32BIT="true"
10821 ARCH_TRIPLES=x86_64-apple-darwin
10822 ;;
10823 3-way)
10824 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
10825 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
10826 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
10827 ARCH_TRIPLES=`echo {i386,ppc,x86_64}-apple-darwin`
10828 ;;
10829 *)
10830 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10831 ;;
10832 esac
10833
10834 if test "${UNIVERSALSDK}" != "/"
10835 then
10836 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10837 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10838 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10839 else
10840 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10841 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10842 fi
10843 fi
10844
10845 # Calculate an appropriate deployment target for this build:
10846 # The deployment target value is used explicitly to enable certain
10847 # features are enabled (such as builtin libedit support for readline)
10848 # through the use of Apple's Availability Macros and is used as a
10849 # component of the string returned by distutils.get_platform().
10850 #
10851 # Use the value from:
10852 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10853 # 2. the operating system version of the build machine if >= 10.6
10854 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10855 # below to pick either 10.3, 10.4, or 10.5 as the target.
10856 # 4. If we are running on OS X 10.2 or earlier, good luck!
10857
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10859 printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10860 cur_target_major=`sw_vers -productVersion | \
10861 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10862 cur_target_minor=`sw_vers -productVersion | \
10863 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10864 cur_target="${cur_target_major}.${cur_target_minor}"
10865 if test ${cur_target_major} -eq 10 && \
10866 test ${cur_target_minor} -ge 3 && \
10867 test ${cur_target_minor} -le 5
10868 then
10869 # OS X 10.3 through 10.5
10870 cur_target=10.3
10871 if test ${enable_universalsdk}
10872 then
10873 case "$UNIVERSAL_ARCHS" in
10874 all|3-way|intel|64-bit)
10875 # These configurations were first supported in 10.5
10876 cur_target='10.5'
10877 ;;
10878 esac
10879 else
10880 if test `/usr/bin/arch` = "i386"
10881 then
10882 # 10.4 was the first release to support Intel archs
10883 cur_target="10.4"
10884 fi
10885 fi
10886 fi
10887 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10888
10889 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10890 # environment with a value that is the same as what we'll use
10891 # in the Makefile to ensure that we'll get the same compiler
10892 # environment during configure and build time.
10893 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10894 export MACOSX_DEPLOYMENT_TARGET
10895 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10897 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10898
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10900 printf %s "checking if specified universal architectures work... " >&6; }
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903 #include <stdio.h>
10904 int
10905 main (void)
10906 {
10907 printf("%d", 42);
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"
10913 then :
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915 printf "%s\n" "yes" >&6; }
10916 else case e in #(
10917 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 printf "%s\n" "no" >&6; }
10919 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10920 ;;
10921 esac
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10924 conftest$ac_exeext conftest.$ac_ext
10925
10926 # end of Darwin* tests
10927 ;;
10928 esac
10929
10930 else case e in #(
10931 e)
10932 case $ac_sys_system in
10933 OpenUNIX*|UnixWare*)
10934 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10935 ;;
10936 SCO_SV*)
10937 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
10938 ;;
10939 esac
10940 ;;
10941 esac
10942 fi
10943
10944 # Check for --enable-experimental-jit:
10945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5
10946 printf %s "checking for --enable-experimental-jit... " >&6; }
10947 # Check whether --enable-experimental-jit was given.
10948 if test ${enable_experimental_jit+y}
10949 then :
10950 enableval=$enable_experimental_jit;
10951 else case e in #(
10952 e) enable_experimental_jit=no ;;
10953 esac
10954 fi
10955
10956 case $enable_experimental_jit in
10957 no) jit_flags=""; tier2_flags="" ;;
10958 yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;;
10959 yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;;
10960 interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;;
10961 interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option
10962 *) as_fn_error $? "invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;;
10963 esac
10964 if ${tier2_flags:+false} :
10965 then :
10966
10967 else case e in #(
10968 e) as_fn_append CFLAGS_NODIST " $tier2_flags" ;;
10969 esac
10970 fi
10971 if ${jit_flags:+false} :
10972 then :
10973
10974 else case e in #(
10975 e) as_fn_append CFLAGS_NODIST " $jit_flags"
10976 REGEN_JIT_COMMAND="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py ${ARCH_TRIPLES:-$host} --output-dir . --pyconfig-dir . --cflags=\"$CFLAGS_JIT\""
10977 JIT_STENCILS_H="jit_stencils.h"
10978 if test "x$Py_DEBUG" = xtrue
10979 then :
10980 as_fn_append REGEN_JIT_COMMAND " --debug"
10981 fi ;;
10982 esac
10983 fi
10984
10985
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5
10987 printf "%s\n" "$tier2_flags $jit_flags" >&6; }
10988
10989 if test "$disable_gil" = "yes" -a "$enable_experimental_jit" != "no"; then
10990 # GH-133171: This configuration builds the JIT but never actually uses it,
10991 # which is surprising (and strictly worse than not building it at all):
10992 as_fn_error $? "--enable-experimental-jit cannot be used with --disable-gil." "$LINENO" 5
10993 fi
10994
10995 case "$ac_cv_cc_name" in
10996 mpicc)
10997 CFLAGS_NODIST="$CFLAGS_NODIST"
10998 ;;
10999 icc)
11000 # ICC needs -fp-model strict or floats behave badly
11001 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
11002 ;;
11003 xlc)
11004 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
11005 ;;
11006 esac
11007
11008 if test "$assertions" = 'true'; then
11009 :
11010 else
11011 OPT="-DNDEBUG $OPT"
11012 fi
11013
11014 if test "$ac_arch_flags"
11015 then
11016 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
11017 fi
11018
11019 # On some compilers, pthreads are available without further options
11020 # (e.g. MacOS X). On some of these systems, the compiler will not
11021 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
11022 # So we have to see first whether pthreads are available without
11023 # options before we can check whether -Kpthread improves anything.
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
11025 printf %s "checking whether pthreads are available without options... " >&6; }
11026 if test ${ac_cv_pthread_is_default+y}
11027 then :
11028 printf %s "(cached) " >&6
11029 else case e in #(
11030 e) if test "$cross_compiling" = yes
11031 then :
11032 ac_cv_pthread_is_default=no
11033 else case e in #(
11034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036
11037 #include <stdio.h>
11038 #include <pthread.h>
11039
11040 void* routine(void* p){return NULL;}
11041
11042 int main(void){
11043 pthread_t p;
11044 if(pthread_create(&p,NULL,routine,NULL)!=0)
11045 return 1;
11046 (void)pthread_detach(p);
11047 return 0;
11048 }
11049
11050 _ACEOF
11051 if ac_fn_c_try_run "$LINENO"
11052 then :
11053
11054 ac_cv_pthread_is_default=yes
11055 ac_cv_kthread=no
11056 ac_cv_pthread=no
11057
11058 else case e in #(
11059 e) ac_cv_pthread_is_default=no ;;
11060 esac
11061 fi
11062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11063 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11064 esac
11065 fi
11066
11067 ;;
11068 esac
11069 fi
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
11071 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
11072
11073
11074 if test $ac_cv_pthread_is_default = yes
11075 then
11076 ac_cv_kpthread=no
11077 else
11078 # -Kpthread, if available, provides the right #defines
11079 # and linker options to make pthread_create available
11080 # Some compilers won't report that they do not support -Kpthread,
11081 # so we need to run a program to see whether it really made the
11082 # function available.
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
11084 printf %s "checking whether $CC accepts -Kpthread... " >&6; }
11085 if test ${ac_cv_kpthread+y}
11086 then :
11087 printf %s "(cached) " >&6
11088 else case e in #(
11089 e) ac_save_cc="$CC"
11090 CC="$CC -Kpthread"
11091 if test "$cross_compiling" = yes
11092 then :
11093 ac_cv_kpthread=no
11094 else case e in #(
11095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11097
11098 #include <stdio.h>
11099 #include <pthread.h>
11100
11101 void* routine(void* p){return NULL;}
11102
11103 int main(void){
11104 pthread_t p;
11105 if(pthread_create(&p,NULL,routine,NULL)!=0)
11106 return 1;
11107 (void)pthread_detach(p);
11108 return 0;
11109 }
11110
11111 _ACEOF
11112 if ac_fn_c_try_run "$LINENO"
11113 then :
11114 ac_cv_kpthread=yes
11115 else case e in #(
11116 e) ac_cv_kpthread=no ;;
11117 esac
11118 fi
11119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11120 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11121 esac
11122 fi
11123
11124 CC="$ac_save_cc" ;;
11125 esac
11126 fi
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
11128 printf "%s\n" "$ac_cv_kpthread" >&6; }
11129 fi
11130
11131 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
11132 then
11133 # -Kthread, if available, provides the right #defines
11134 # and linker options to make pthread_create available
11135 # Some compilers won't report that they do not support -Kthread,
11136 # so we need to run a program to see whether it really made the
11137 # function available.
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
11139 printf %s "checking whether $CC accepts -Kthread... " >&6; }
11140 if test ${ac_cv_kthread+y}
11141 then :
11142 printf %s "(cached) " >&6
11143 else case e in #(
11144 e) ac_save_cc="$CC"
11145 CC="$CC -Kthread"
11146 if test "$cross_compiling" = yes
11147 then :
11148 ac_cv_kthread=no
11149 else case e in #(
11150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152
11153 #include <stdio.h>
11154 #include <pthread.h>
11155
11156 void* routine(void* p){return NULL;}
11157
11158 int main(void){
11159 pthread_t p;
11160 if(pthread_create(&p,NULL,routine,NULL)!=0)
11161 return 1;
11162 (void)pthread_detach(p);
11163 return 0;
11164 }
11165
11166 _ACEOF
11167 if ac_fn_c_try_run "$LINENO"
11168 then :
11169 ac_cv_kthread=yes
11170 else case e in #(
11171 e) ac_cv_kthread=no ;;
11172 esac
11173 fi
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11176 esac
11177 fi
11178
11179 CC="$ac_save_cc" ;;
11180 esac
11181 fi
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
11183 printf "%s\n" "$ac_cv_kthread" >&6; }
11184 fi
11185
11186 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
11187 then
11188 # -pthread, if available, provides the right #defines
11189 # and linker options to make pthread_create available
11190 # Some compilers won't report that they do not support -pthread,
11191 # so we need to run a program to see whether it really made the
11192 # function available.
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
11194 printf %s "checking whether $CC accepts -pthread... " >&6; }
11195 if test ${ac_cv_pthread+y}
11196 then :
11197 printf %s "(cached) " >&6
11198 else case e in #(
11199 e) ac_save_cc="$CC"
11200 CC="$CC -pthread"
11201 if test "$cross_compiling" = yes
11202 then :
11203 ac_cv_pthread=no
11204 else case e in #(
11205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207
11208 #include <stdio.h>
11209 #include <pthread.h>
11210
11211 void* routine(void* p){return NULL;}
11212
11213 int main(void){
11214 pthread_t p;
11215 if(pthread_create(&p,NULL,routine,NULL)!=0)
11216 return 1;
11217 (void)pthread_detach(p);
11218 return 0;
11219 }
11220
11221 _ACEOF
11222 if ac_fn_c_try_run "$LINENO"
11223 then :
11224 ac_cv_pthread=yes
11225 else case e in #(
11226 e) ac_cv_pthread=no ;;
11227 esac
11228 fi
11229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11230 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11231 esac
11232 fi
11233
11234 CC="$ac_save_cc" ;;
11235 esac
11236 fi
11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
11238 printf "%s\n" "$ac_cv_pthread" >&6; }
11239 fi
11240
11241 # If we have set a CC compiler flag for thread support then
11242 # check if it works for CXX, too.
11243 if test ! -z "$CXX"
11244 then
11245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
11246 printf %s "checking whether $CXX also accepts flags for thread support... " >&6; }
11247 if test ${ac_cv_cxx_thread+y}
11248 then :
11249 printf %s "(cached) " >&6
11250 else case e in #(
11251 e) ac_save_cxx="$CXX"
11252
11253 if test "$ac_cv_kpthread" = "yes"
11254 then
11255 CXX="$CXX -Kpthread"
11256 ac_cv_cxx_thread=yes
11257 elif test "$ac_cv_kthread" = "yes"
11258 then
11259 CXX="$CXX -Kthread"
11260 ac_cv_cxx_thread=yes
11261 elif test "$ac_cv_pthread" = "yes"
11262 then
11263 CXX="$CXX -pthread"
11264 ac_cv_cxx_thread=yes
11265 else
11266 ac_cv_cxx_thread=no
11267 fi
11268
11269 if test $ac_cv_cxx_thread = yes
11270 then
11271 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
11272 $CXX -c conftest.$ac_ext 2>&5
11273 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
11274 && test -s conftest$ac_exeext && ./conftest$ac_exeext
11275 then
11276 ac_cv_cxx_thread=yes
11277 else
11278 ac_cv_cxx_thread=no
11279 fi
11280 rm -fr conftest*
11281 fi
11282 CXX="$ac_save_cxx" ;;
11283 esac
11284 fi
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
11286 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
11287 else
11288 ac_cv_cxx_thread=no
11289 fi
11290
11291
11292
11293 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
11294
11295
11296 # checks for header files
11297 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
11298 if test "x$ac_cv_header_alloca_h" = xyes
11299 then :
11300 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
11301
11302 fi
11303 ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
11304 if test "x$ac_cv_header_asm_types_h" = xyes
11305 then :
11306 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
11307
11308 fi
11309 ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
11310 if test "x$ac_cv_header_bluetooth_h" = xyes
11311 then :
11312 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
11313
11314 fi
11315 ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
11316 if test "x$ac_cv_header_conio_h" = xyes
11317 then :
11318 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
11319
11320 fi
11321 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
11322 if test "x$ac_cv_header_direct_h" = xyes
11323 then :
11324 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
11325
11326 fi
11327 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11328 if test "x$ac_cv_header_dlfcn_h" = xyes
11329 then :
11330 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11331
11332 fi
11333 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
11334 if test "x$ac_cv_header_endian_h" = xyes
11335 then :
11336 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
11337
11338 fi
11339 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11340 if test "x$ac_cv_header_errno_h" = xyes
11341 then :
11342 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11343
11344 fi
11345 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11346 if test "x$ac_cv_header_fcntl_h" = xyes
11347 then :
11348 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11349
11350 fi
11351 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
11352 if test "x$ac_cv_header_grp_h" = xyes
11353 then :
11354 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
11355
11356 fi
11357 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
11358 if test "x$ac_cv_header_io_h" = xyes
11359 then :
11360 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
11361
11362 fi
11363 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11364 if test "x$ac_cv_header_langinfo_h" = xyes
11365 then :
11366 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
11367
11368 fi
11369 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11370 if test "x$ac_cv_header_libintl_h" = xyes
11371 then :
11372 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
11373
11374 fi
11375 ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
11376 if test "x$ac_cv_header_libutil_h" = xyes
11377 then :
11378 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
11379
11380 fi
11381 ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
11382 if test "x$ac_cv_header_linux_auxvec_h" = xyes
11383 then :
11384 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
11385
11386 fi
11387 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
11388 if test "x$ac_cv_header_sys_auxv_h" = xyes
11389 then :
11390 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
11391
11392 fi
11393 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
11394 if test "x$ac_cv_header_linux_fs_h" = xyes
11395 then :
11396 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
11397
11398 fi
11399 ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
11400 if test "x$ac_cv_header_linux_limits_h" = xyes
11401 then :
11402 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
11403
11404 fi
11405 ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
11406 if test "x$ac_cv_header_linux_memfd_h" = xyes
11407 then :
11408 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
11409
11410 fi
11411 ac_fn_c_check_header_compile "$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "$ac_includes_default"
11412 if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes
11413 then :
11414 printf "%s\n" "#define HAVE_LINUX_NETFILTER_IPV4_H 1" >>confdefs.h
11415
11416 fi
11417 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
11418 if test "x$ac_cv_header_linux_random_h" = xyes
11419 then :
11420 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
11421
11422 fi
11423 ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
11424 if test "x$ac_cv_header_linux_soundcard_h" = xyes
11425 then :
11426 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
11427
11428 fi
11429 ac_fn_c_check_header_compile "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
11430 if test "x$ac_cv_header_linux_sched_h" = xyes
11431 then :
11432 printf "%s\n" "#define HAVE_LINUX_SCHED_H 1" >>confdefs.h
11433
11434 fi
11435 ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
11436 if test "x$ac_cv_header_linux_tipc_h" = xyes
11437 then :
11438 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
11439
11440 fi
11441 ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
11442 if test "x$ac_cv_header_linux_wait_h" = xyes
11443 then :
11444 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
11445
11446 fi
11447 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
11448 if test "x$ac_cv_header_netdb_h" = xyes
11449 then :
11450 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
11451
11452 fi
11453 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
11454 if test "x$ac_cv_header_net_ethernet_h" = xyes
11455 then :
11456 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
11457
11458 fi
11459 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_netinet_in_h" = xyes
11461 then :
11462 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
11463
11464 fi
11465 ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
11466 if test "x$ac_cv_header_netpacket_packet_h" = xyes
11467 then :
11468 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
11469
11470 fi
11471 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
11472 if test "x$ac_cv_header_poll_h" = xyes
11473 then :
11474 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
11475
11476 fi
11477 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
11478 if test "x$ac_cv_header_process_h" = xyes
11479 then :
11480 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
11481
11482 fi
11483 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11484 if test "x$ac_cv_header_pthread_h" = xyes
11485 then :
11486 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11487
11488 fi
11489 ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
11490 if test "x$ac_cv_header_pty_h" = xyes
11491 then :
11492 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
11493
11494 fi
11495 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11496 if test "x$ac_cv_header_sched_h" = xyes
11497 then :
11498 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
11499
11500 fi
11501 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11502 if test "x$ac_cv_header_setjmp_h" = xyes
11503 then :
11504 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11505
11506 fi
11507 ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
11508 if test "x$ac_cv_header_shadow_h" = xyes
11509 then :
11510 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
11511
11512 fi
11513 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11514 if test "x$ac_cv_header_signal_h" = xyes
11515 then :
11516 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11517
11518 fi
11519 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
11520 if test "x$ac_cv_header_spawn_h" = xyes
11521 then :
11522 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
11523
11524 fi
11525 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
11526 if test "x$ac_cv_header_stropts_h" = xyes
11527 then :
11528 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
11529
11530 fi
11531 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
11532 if test "x$ac_cv_header_sys_audioio_h" = xyes
11533 then :
11534 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
11535
11536 fi
11537 ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
11538 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
11539 then :
11540 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
11541
11542 fi
11543 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
11544 if test "x$ac_cv_header_sys_devpoll_h" = xyes
11545 then :
11546 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
11547
11548 fi
11549 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
11550 if test "x$ac_cv_header_sys_endian_h" = xyes
11551 then :
11552 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
11553
11554 fi
11555 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
11556 if test "x$ac_cv_header_sys_epoll_h" = xyes
11557 then :
11558 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
11559
11560 fi
11561 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
11562 if test "x$ac_cv_header_sys_event_h" = xyes
11563 then :
11564 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
11565
11566 fi
11567 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
11568 if test "x$ac_cv_header_sys_eventfd_h" = xyes
11569 then :
11570 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
11571
11572 fi
11573 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
11574 if test "x$ac_cv_header_sys_file_h" = xyes
11575 then :
11576 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
11577
11578 fi
11579 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
11580 if test "x$ac_cv_header_sys_ioctl_h" = xyes
11581 then :
11582 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
11583
11584 fi
11585 ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
11586 if test "x$ac_cv_header_sys_kern_control_h" = xyes
11587 then :
11588 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
11589
11590 fi
11591 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11592 if test "x$ac_cv_header_sys_loadavg_h" = xyes
11593 then :
11594 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
11595
11596 fi
11597 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
11598 if test "x$ac_cv_header_sys_lock_h" = xyes
11599 then :
11600 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
11601
11602 fi
11603 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
11604 if test "x$ac_cv_header_sys_memfd_h" = xyes
11605 then :
11606 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
11607
11608 fi
11609 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11610 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11611 then :
11612 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
11613
11614 fi
11615 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11616 if test "x$ac_cv_header_sys_mman_h" = xyes
11617 then :
11618 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
11619
11620 fi
11621 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
11622 if test "x$ac_cv_header_sys_modem_h" = xyes
11623 then :
11624 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
11625
11626 fi
11627 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11628 if test "x$ac_cv_header_sys_param_h" = xyes
11629 then :
11630 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11631
11632 fi
11633 ac_fn_c_check_header_compile "$LINENO" "sys/pidfd.h" "ac_cv_header_sys_pidfd_h" "$ac_includes_default"
11634 if test "x$ac_cv_header_sys_pidfd_h" = xyes
11635 then :
11636 printf "%s\n" "#define HAVE_SYS_PIDFD_H 1" >>confdefs.h
11637
11638 fi
11639 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
11640 if test "x$ac_cv_header_sys_poll_h" = xyes
11641 then :
11642 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
11643
11644 fi
11645 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
11646 if test "x$ac_cv_header_sys_random_h" = xyes
11647 then :
11648 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
11649
11650 fi
11651 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11652 if test "x$ac_cv_header_sys_resource_h" = xyes
11653 then :
11654 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11655
11656 fi
11657 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11658 if test "x$ac_cv_header_sys_select_h" = xyes
11659 then :
11660 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11661
11662 fi
11663 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
11664 if test "x$ac_cv_header_sys_sendfile_h" = xyes
11665 then :
11666 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
11667
11668 fi
11669 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11670 if test "x$ac_cv_header_sys_socket_h" = xyes
11671 then :
11672 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
11673
11674 fi
11675 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11676 if test "x$ac_cv_header_sys_soundcard_h" = xyes
11677 then :
11678 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
11679
11680 fi
11681 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
11682 if test "x$ac_cv_header_sys_stat_h" = xyes
11683 then :
11684 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
11685
11686 fi
11687 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
11688 if test "x$ac_cv_header_sys_statvfs_h" = xyes
11689 then :
11690 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
11691
11692 fi
11693 ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
11694 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
11695 then :
11696 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
11697
11698 fi
11699 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
11700 if test "x$ac_cv_header_sys_syscall_h" = xyes
11701 then :
11702 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
11703
11704 fi
11705 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11706 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11707 then :
11708 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
11709
11710 fi
11711 ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
11712 if test "x$ac_cv_header_sys_termio_h" = xyes
11713 then :
11714 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
11715
11716 fi
11717 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11718 if test "x$ac_cv_header_sys_time_h" = xyes
11719 then :
11720 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11721
11722 fi
11723 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11724 if test "x$ac_cv_header_sys_times_h" = xyes
11725 then :
11726 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11727
11728 fi
11729 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11730 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11731 then :
11732 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11733
11734 fi
11735 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11736 if test "x$ac_cv_header_sys_types_h" = xyes
11737 then :
11738 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11739
11740 fi
11741 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11742 if test "x$ac_cv_header_sys_uio_h" = xyes
11743 then :
11744 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11745
11746 fi
11747 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11748 if test "x$ac_cv_header_sys_un_h" = xyes
11749 then :
11750 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11751
11752 fi
11753 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11754 if test "x$ac_cv_header_sys_utsname_h" = xyes
11755 then :
11756 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11757
11758 fi
11759 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11760 if test "x$ac_cv_header_sys_wait_h" = xyes
11761 then :
11762 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11763
11764 fi
11765 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11766 if test "x$ac_cv_header_sys_xattr_h" = xyes
11767 then :
11768 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11769
11770 fi
11771 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11772 if test "x$ac_cv_header_sysexits_h" = xyes
11773 then :
11774 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11775
11776 fi
11777 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11778 if test "x$ac_cv_header_syslog_h" = xyes
11779 then :
11780 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11781
11782 fi
11783 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11784 if test "x$ac_cv_header_termios_h" = xyes
11785 then :
11786 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11787
11788 fi
11789 ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11790 if test "x$ac_cv_header_util_h" = xyes
11791 then :
11792 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11793
11794 fi
11795 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11796 if test "x$ac_cv_header_utime_h" = xyes
11797 then :
11798 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11799
11800 fi
11801 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11802 if test "x$ac_cv_header_utmp_h" = xyes
11803 then :
11804 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11805
11806 fi
11807
11808 ac_header_dirent=no
11809 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11810 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11812 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11813 if eval test \${$as_ac_Header+y}
11814 then :
11815 printf %s "(cached) " >&6
11816 else case e in #(
11817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #include <$ac_hdr>
11821
11822 int
11823 main (void)
11824 {
11825 if ((DIR *) 0)
11826 return 0;
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_compile "$LINENO"
11832 then :
11833 eval "$as_ac_Header=yes"
11834 else case e in #(
11835 e) eval "$as_ac_Header=no" ;;
11836 esac
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11839 esac
11840 fi
11841 eval ac_res=\$$as_ac_Header
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11843 printf "%s\n" "$ac_res" >&6; }
11844 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11845 then :
11846 cat >>confdefs.h <<_ACEOF
11847 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
11848 _ACEOF
11849
11850 ac_header_dirent=$ac_hdr; break
11851 fi
11852
11853 done
11854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11855 if test $ac_header_dirent = dirent.h; then
11856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11857 printf %s "checking for library containing opendir... " >&6; }
11858 if test ${ac_cv_search_opendir+y}
11859 then :
11860 printf %s "(cached) " >&6
11861 else case e in #(
11862 e) ac_func_search_save_LIBS=$LIBS
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply.
11869 The 'extern "C"' is for builds by C++ compilers;
11870 although this is not generally supported in C code supporting it here
11871 has little cost and some practical benefit (sr 110532). */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char opendir (void);
11876 int
11877 main (void)
11878 {
11879 return opendir ();
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 for ac_lib in '' dir
11885 do
11886 if test -z "$ac_lib"; then
11887 ac_res="none required"
11888 else
11889 ac_res=-l$ac_lib
11890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11891 fi
11892 if ac_fn_c_try_link "$LINENO"
11893 then :
11894 ac_cv_search_opendir=$ac_res
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11897 conftest$ac_exeext
11898 if test ${ac_cv_search_opendir+y}
11899 then :
11900 break
11901 fi
11902 done
11903 if test ${ac_cv_search_opendir+y}
11904 then :
11905
11906 else case e in #(
11907 e) ac_cv_search_opendir=no ;;
11908 esac
11909 fi
11910 rm conftest.$ac_ext
11911 LIBS=$ac_func_search_save_LIBS ;;
11912 esac
11913 fi
11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11915 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11916 ac_res=$ac_cv_search_opendir
11917 if test "$ac_res" != no
11918 then :
11919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11920
11921 fi
11922
11923 else
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11925 printf %s "checking for library containing opendir... " >&6; }
11926 if test ${ac_cv_search_opendir+y}
11927 then :
11928 printf %s "(cached) " >&6
11929 else case e in #(
11930 e) ac_func_search_save_LIBS=$LIBS
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933
11934 /* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply.
11937 The 'extern "C"' is for builds by C++ compilers;
11938 although this is not generally supported in C code supporting it here
11939 has little cost and some practical benefit (sr 110532). */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char opendir (void);
11944 int
11945 main (void)
11946 {
11947 return opendir ();
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 for ac_lib in '' x
11953 do
11954 if test -z "$ac_lib"; then
11955 ac_res="none required"
11956 else
11957 ac_res=-l$ac_lib
11958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11959 fi
11960 if ac_fn_c_try_link "$LINENO"
11961 then :
11962 ac_cv_search_opendir=$ac_res
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11965 conftest$ac_exeext
11966 if test ${ac_cv_search_opendir+y}
11967 then :
11968 break
11969 fi
11970 done
11971 if test ${ac_cv_search_opendir+y}
11972 then :
11973
11974 else case e in #(
11975 e) ac_cv_search_opendir=no ;;
11976 esac
11977 fi
11978 rm conftest.$ac_ext
11979 LIBS=$ac_func_search_save_LIBS ;;
11980 esac
11981 fi
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11983 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11984 ac_res=$ac_cv_search_opendir
11985 if test "$ac_res" != no
11986 then :
11987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11988
11989 fi
11990
11991 fi
11992
11993
11994 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11995 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11996 then :
11997
11998 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11999
12000 fi
12001
12002 if test $ac_cv_header_sys_mkdev_h = no; then
12003 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12004 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12005 then :
12006
12007 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12008
12009 fi
12010
12011 fi
12012
12013
12014 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
12015 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
12016 SAVE_CFLAGS=$CFLAGS
12017 CFLAGS="-std=c99 $CFLAGS"
12018 ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
12019 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
12020 then :
12021 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
12022
12023 fi
12024
12025 CFLAGS=$SAVE_CFLAGS
12026
12027 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
12028 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
12029 #include <stdlib.h>
12030 #include <stddef.h>
12031 #ifdef HAVE_SYS_SOCKET_H
12032 # include <sys/socket.h>
12033 #endif
12034
12035 "
12036 if test "x$ac_cv_header_net_if_h" = xyes
12037 then :
12038 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12039
12040 fi
12041
12042
12043 # On Linux, netlink.h requires asm/types.h
12044 # On FreeBSD, netlink.h is located in netlink/netlink.h
12045 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
12046 #ifdef HAVE_ASM_TYPES_H
12047 #include <asm/types.h>
12048 #endif
12049 #ifdef HAVE_SYS_SOCKET_H
12050 #include <sys/socket.h>
12051 #endif
12052
12053 "
12054 if test "x$ac_cv_header_linux_netlink_h" = xyes
12055 then :
12056 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
12057
12058 fi
12059 ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
12060 #ifdef HAVE_ASM_TYPES_H
12061 #include <asm/types.h>
12062 #endif
12063 #ifdef HAVE_SYS_SOCKET_H
12064 #include <sys/socket.h>
12065 #endif
12066
12067 "
12068 if test "x$ac_cv_header_netlink_netlink_h" = xyes
12069 then :
12070 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
12071
12072 fi
12073
12074
12075 # On Linux, qrtr.h requires asm/types.h
12076 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
12077 #ifdef HAVE_ASM_TYPES_H
12078 #include <asm/types.h>
12079 #endif
12080 #ifdef HAVE_SYS_SOCKET_H
12081 #include <sys/socket.h>
12082 #endif
12083
12084 "
12085 if test "x$ac_cv_header_linux_qrtr_h" = xyes
12086 then :
12087 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
12088
12089 fi
12090
12091
12092 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
12093 #ifdef HAVE_SYS_SOCKET_H
12094 #include <sys/socket.h>
12095 #endif
12096
12097 "
12098 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
12099 then :
12100 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
12101
12102 fi
12103
12104
12105 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
12106 # On NetBSD, netcan/can.h requires sys/socket.h
12107 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
12108 #ifdef HAVE_SYS_SOCKET_H
12109 #include <sys/socket.h>
12110 #endif
12111
12112 "
12113 if test "x$ac_cv_header_linux_can_h" = xyes
12114 then :
12115 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
12116
12117 fi
12118 ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
12119 #ifdef HAVE_SYS_SOCKET_H
12120 #include <sys/socket.h>
12121 #endif
12122
12123 "
12124 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
12125 then :
12126 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
12127
12128 fi
12129 ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
12130 #ifdef HAVE_SYS_SOCKET_H
12131 #include <sys/socket.h>
12132 #endif
12133
12134 "
12135 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
12136 then :
12137 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
12138
12139 fi
12140 ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
12141 #ifdef HAVE_SYS_SOCKET_H
12142 #include <sys/socket.h>
12143 #endif
12144
12145 "
12146 if test "x$ac_cv_header_linux_can_raw_h" = xyes
12147 then :
12148 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
12149
12150 fi
12151 ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
12152 #ifdef HAVE_SYS_SOCKET_H
12153 #include <sys/socket.h>
12154 #endif
12155
12156 "
12157 if test "x$ac_cv_header_netcan_can_h" = xyes
12158 then :
12159 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
12160
12161 fi
12162
12163
12164 # Check for clock_t in time.h.
12165 ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
12166 "
12167 if test "x$ac_cv_type_clock_t" = xyes
12168 then :
12169
12170 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
12171
12172
12173 else case e in #(
12174 e)
12175 printf "%s\n" "#define clock_t long" >>confdefs.h
12176 ;;
12177 esac
12178 fi
12179
12180
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
12182 printf %s "checking for makedev... " >&6; }
12183 if test ${ac_cv_func_makedev+y}
12184 then :
12185 printf %s "(cached) " >&6
12186 else case e in #(
12187 e)
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190
12191 #if defined(MAJOR_IN_MKDEV)
12192 #include <sys/mkdev.h>
12193 #elif defined(MAJOR_IN_SYSMACROS)
12194 #include <sys/sysmacros.h>
12195 #else
12196 #include <sys/types.h>
12197 #endif
12198
12199 int
12200 main (void)
12201 {
12202
12203 makedev(0, 0)
12204 ;
12205 return 0;
12206 }
12207
12208 _ACEOF
12209 if ac_fn_c_try_link "$LINENO"
12210 then :
12211 ac_cv_func_makedev=yes
12212 else case e in #(
12213 e) ac_cv_func_makedev=no ;;
12214 esac
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12217 conftest$ac_exeext conftest.$ac_ext
12218 ;;
12219 esac
12220 fi
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
12222 printf "%s\n" "$ac_cv_func_makedev" >&6; }
12223
12224 if test "x$ac_cv_func_makedev" = xyes
12225 then :
12226
12227
12228 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
12229
12230
12231 fi
12232
12233 # byte swapping
12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
12235 printf %s "checking for le64toh... " >&6; }
12236 if test ${ac_cv_func_le64toh+y}
12237 then :
12238 printf %s "(cached) " >&6
12239 else case e in #(
12240 e)
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243
12244 #ifdef HAVE_ENDIAN_H
12245 #include <endian.h>
12246 #elif defined(HAVE_SYS_ENDIAN_H)
12247 #include <sys/endian.h>
12248 #endif
12249
12250 int
12251 main (void)
12252 {
12253
12254 le64toh(1)
12255 ;
12256 return 0;
12257 }
12258
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"
12261 then :
12262 ac_cv_func_le64toh=yes
12263 else case e in #(
12264 e) ac_cv_func_le64toh=no ;;
12265 esac
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12268 conftest$ac_exeext conftest.$ac_ext
12269 ;;
12270 esac
12271 fi
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
12273 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
12274
12275 if test "x$ac_cv_func_le64toh" = xyes
12276 then :
12277
12278
12279 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
12280
12281
12282 fi
12283
12284 use_lfs=yes
12285 # Don't use largefile support for GNU/Hurd
12286 case $ac_sys_system in GNU*)
12287 use_lfs=no
12288 esac
12289
12290 if test "$use_lfs" = "yes"; then
12291 # Two defines needed to enable largefile support on various platforms
12292 # These may affect some typedefs
12293 case $ac_sys_system/$ac_sys_release in
12294 AIX*)
12295
12296 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12297
12298 ;;
12299 esac
12300
12301 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
12302
12303
12304 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12305
12306 fi
12307
12308 # Add some code to confdefs.h so that the test for off_t works on SCO
12309 cat >> confdefs.h <<\EOF
12310 #if defined(SCO_DS)
12311 #undef _OFF_T
12312 #endif
12313 EOF
12314
12315 # Type availability checks
12316 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12317 if test "x$ac_cv_type_mode_t" = xyes
12318 then :
12319
12320 else case e in #(
12321 e)
12322 printf "%s\n" "#define mode_t int" >>confdefs.h
12323 ;;
12324 esac
12325 fi
12326
12327 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12328 if test "x$ac_cv_type_off_t" = xyes
12329 then :
12330
12331 else case e in #(
12332 e)
12333 printf "%s\n" "#define off_t long int" >>confdefs.h
12334 ;;
12335 esac
12336 fi
12337
12338
12339 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12340 "
12341 if test "x$ac_cv_type_pid_t" = xyes
12342 then :
12343
12344 else case e in #(
12345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347
12348 #if defined _WIN64 && !defined __CYGWIN__
12349 LLP64
12350 #endif
12351
12352 int
12353 main (void)
12354 {
12355
12356 ;
12357 return 0;
12358 }
12359
12360 _ACEOF
12361 if ac_fn_c_try_compile "$LINENO"
12362 then :
12363 ac_pid_type='int'
12364 else case e in #(
12365 e) ac_pid_type='__int64' ;;
12366 esac
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12369
12370 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12371
12372 ;;
12373 esac
12374 fi
12375
12376
12377
12378 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
12379
12380 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12381 if test "x$ac_cv_type_size_t" = xyes
12382 then :
12383
12384 else case e in #(
12385 e)
12386 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12387 ;;
12388 esac
12389 fi
12390
12391 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
12392 if test "x$ac_cv_type_uid_t" = xyes
12393 then :
12394
12395 else case e in #(
12396 e)
12397 printf "%s\n" "#define uid_t int" >>confdefs.h
12398 ;;
12399 esac
12400 fi
12401
12402 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
12403 if test "x$ac_cv_type_gid_t" = xyes
12404 then :
12405
12406 else case e in #(
12407 e)
12408 printf "%s\n" "#define gid_t int" >>confdefs.h
12409 ;;
12410 esac
12411 fi
12412
12413
12414 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12415 if test "x$ac_cv_type_ssize_t" = xyes
12416 then :
12417
12418 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
12419
12420
12421 fi
12422
12423 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
12424 if test "x$ac_cv_type___uint128_t" = xyes
12425 then :
12426
12427 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
12428
12429
12430 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
12431
12432 fi
12433
12434
12435 # Sizes and alignments of various common basic types
12436 # ANSI C requires sizeof(char) == 1, so no need to check it
12437 # The cast to long int works around a bug in the HP C Compiler
12438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12439 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12440 # This bug is HP SR number 8606223364.
12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12442 printf %s "checking size of int... " >&6; }
12443 if test ${ac_cv_sizeof_int+y}
12444 then :
12445 printf %s "(cached) " >&6
12446 else case e in #(
12447 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12448 then :
12449
12450 else case e in #(
12451 e) if test "$ac_cv_type_int" = yes; then
12452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12453 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12454 as_fn_error 77 "cannot compute sizeof (int)
12455 See 'config.log' for more details" "$LINENO" 5; }
12456 else
12457 ac_cv_sizeof_int=0
12458 fi ;;
12459 esac
12460 fi
12461 ;;
12462 esac
12463 fi
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12465 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12466
12467
12468
12469 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12470
12471
12472 # The cast to long int works around a bug in the HP C Compiler
12473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12474 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12475 # This bug is HP SR number 8606223364.
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12477 printf %s "checking size of long... " >&6; }
12478 if test ${ac_cv_sizeof_long+y}
12479 then :
12480 printf %s "(cached) " >&6
12481 else case e in #(
12482 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12483 then :
12484
12485 else case e in #(
12486 e) if test "$ac_cv_type_long" = yes; then
12487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12488 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12489 as_fn_error 77 "cannot compute sizeof (long)
12490 See 'config.log' for more details" "$LINENO" 5; }
12491 else
12492 ac_cv_sizeof_long=0
12493 fi ;;
12494 esac
12495 fi
12496 ;;
12497 esac
12498 fi
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12500 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12501
12502
12503
12504 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12505
12506
12507 # The cast to long int works around a bug in the HP C Compiler,
12508 # see AC_CHECK_SIZEOF for more information.
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
12510 printf %s "checking alignment of long... " >&6; }
12511 if test ${ac_cv_alignof_long+y}
12512 then :
12513 printf %s "(cached) " >&6
12514 else case e in #(
12515 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
12516 typedef struct { char x; long y; } ac__type_alignof_;"
12517 then :
12518
12519 else case e in #(
12520 e) if test "$ac_cv_type_long" = yes; then
12521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12522 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12523 as_fn_error 77 "cannot compute alignment of long
12524 See 'config.log' for more details" "$LINENO" 5; }
12525 else
12526 ac_cv_alignof_long=0
12527 fi ;;
12528 esac
12529 fi
12530 ;;
12531 esac
12532 fi
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
12534 printf "%s\n" "$ac_cv_alignof_long" >&6; }
12535
12536
12537
12538 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
12539
12540
12541 # The cast to long int works around a bug in the HP C Compiler
12542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12543 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12544 # This bug is HP SR number 8606223364.
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12546 printf %s "checking size of long long... " >&6; }
12547 if test ${ac_cv_sizeof_long_long+y}
12548 then :
12549 printf %s "(cached) " >&6
12550 else case e in #(
12551 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12552 then :
12553
12554 else case e in #(
12555 e) if test "$ac_cv_type_long_long" = yes; then
12556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12557 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12558 as_fn_error 77 "cannot compute sizeof (long long)
12559 See 'config.log' for more details" "$LINENO" 5; }
12560 else
12561 ac_cv_sizeof_long_long=0
12562 fi ;;
12563 esac
12564 fi
12565 ;;
12566 esac
12567 fi
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12569 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12570
12571
12572
12573 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12574
12575
12576 # The cast to long int works around a bug in the HP C Compiler
12577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12578 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12579 # This bug is HP SR number 8606223364.
12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12581 printf %s "checking size of void *... " >&6; }
12582 if test ${ac_cv_sizeof_void_p+y}
12583 then :
12584 printf %s "(cached) " >&6
12585 else case e in #(
12586 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
12587 then :
12588
12589 else case e in #(
12590 e) if test "$ac_cv_type_void_p" = yes; then
12591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12593 as_fn_error 77 "cannot compute sizeof (void *)
12594 See 'config.log' for more details" "$LINENO" 5; }
12595 else
12596 ac_cv_sizeof_void_p=0
12597 fi ;;
12598 esac
12599 fi
12600 ;;
12601 esac
12602 fi
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12604 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
12605
12606
12607
12608 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
12609
12610
12611 # The cast to long int works around a bug in the HP C Compiler
12612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12613 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12614 # This bug is HP SR number 8606223364.
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12616 printf %s "checking size of short... " >&6; }
12617 if test ${ac_cv_sizeof_short+y}
12618 then :
12619 printf %s "(cached) " >&6
12620 else case e in #(
12621 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12622 then :
12623
12624 else case e in #(
12625 e) if test "$ac_cv_type_short" = yes; then
12626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12627 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12628 as_fn_error 77 "cannot compute sizeof (short)
12629 See 'config.log' for more details" "$LINENO" 5; }
12630 else
12631 ac_cv_sizeof_short=0
12632 fi ;;
12633 esac
12634 fi
12635 ;;
12636 esac
12637 fi
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12639 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12640
12641
12642
12643 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12644
12645
12646 # The cast to long int works around a bug in the HP C Compiler
12647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12648 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12649 # This bug is HP SR number 8606223364.
12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
12651 printf %s "checking size of float... " >&6; }
12652 if test ${ac_cv_sizeof_float+y}
12653 then :
12654 printf %s "(cached) " >&6
12655 else case e in #(
12656 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
12657 then :
12658
12659 else case e in #(
12660 e) if test "$ac_cv_type_float" = yes; then
12661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12662 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12663 as_fn_error 77 "cannot compute sizeof (float)
12664 See 'config.log' for more details" "$LINENO" 5; }
12665 else
12666 ac_cv_sizeof_float=0
12667 fi ;;
12668 esac
12669 fi
12670 ;;
12671 esac
12672 fi
12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
12674 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
12675
12676
12677
12678 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
12679
12680
12681 # The cast to long int works around a bug in the HP C Compiler
12682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12683 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12684 # This bug is HP SR number 8606223364.
12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12686 printf %s "checking size of double... " >&6; }
12687 if test ${ac_cv_sizeof_double+y}
12688 then :
12689 printf %s "(cached) " >&6
12690 else case e in #(
12691 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
12692 then :
12693
12694 else case e in #(
12695 e) if test "$ac_cv_type_double" = yes; then
12696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12697 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12698 as_fn_error 77 "cannot compute sizeof (double)
12699 See 'config.log' for more details" "$LINENO" 5; }
12700 else
12701 ac_cv_sizeof_double=0
12702 fi ;;
12703 esac
12704 fi
12705 ;;
12706 esac
12707 fi
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12709 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
12710
12711
12712
12713 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
12714
12715
12716 # The cast to long int works around a bug in the HP C Compiler
12717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12718 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12719 # This bug is HP SR number 8606223364.
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
12721 printf %s "checking size of fpos_t... " >&6; }
12722 if test ${ac_cv_sizeof_fpos_t+y}
12723 then :
12724 printf %s "(cached) " >&6
12725 else case e in #(
12726 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
12727 then :
12728
12729 else case e in #(
12730 e) if test "$ac_cv_type_fpos_t" = yes; then
12731 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12732 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12733 as_fn_error 77 "cannot compute sizeof (fpos_t)
12734 See 'config.log' for more details" "$LINENO" 5; }
12735 else
12736 ac_cv_sizeof_fpos_t=0
12737 fi ;;
12738 esac
12739 fi
12740 ;;
12741 esac
12742 fi
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
12744 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
12745
12746
12747
12748 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
12749
12750
12751 # The cast to long int works around a bug in the HP C Compiler
12752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12753 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12754 # This bug is HP SR number 8606223364.
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12756 printf %s "checking size of size_t... " >&6; }
12757 if test ${ac_cv_sizeof_size_t+y}
12758 then :
12759 printf %s "(cached) " >&6
12760 else case e in #(
12761 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12762 then :
12763
12764 else case e in #(
12765 e) if test "$ac_cv_type_size_t" = yes; then
12766 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12767 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12768 as_fn_error 77 "cannot compute sizeof (size_t)
12769 See 'config.log' for more details" "$LINENO" 5; }
12770 else
12771 ac_cv_sizeof_size_t=0
12772 fi ;;
12773 esac
12774 fi
12775 ;;
12776 esac
12777 fi
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12779 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12780
12781
12782
12783 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12784
12785
12786 # The cast to long int works around a bug in the HP C Compiler,
12787 # see AC_CHECK_SIZEOF for more information.
12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12789 printf %s "checking alignment of size_t... " >&6; }
12790 if test ${ac_cv_alignof_size_t+y}
12791 then :
12792 printf %s "(cached) " >&6
12793 else case e in #(
12794 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12795 typedef struct { char x; size_t y; } ac__type_alignof_;"
12796 then :
12797
12798 else case e in #(
12799 e) if test "$ac_cv_type_size_t" = yes; then
12800 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12801 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12802 as_fn_error 77 "cannot compute alignment of size_t
12803 See 'config.log' for more details" "$LINENO" 5; }
12804 else
12805 ac_cv_alignof_size_t=0
12806 fi ;;
12807 esac
12808 fi
12809 ;;
12810 esac
12811 fi
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12813 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12814
12815
12816
12817 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12818
12819
12820 # The cast to long int works around a bug in the HP C Compiler
12821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12822 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12823 # This bug is HP SR number 8606223364.
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12825 printf %s "checking size of pid_t... " >&6; }
12826 if test ${ac_cv_sizeof_pid_t+y}
12827 then :
12828 printf %s "(cached) " >&6
12829 else case e in #(
12830 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12831 then :
12832
12833 else case e in #(
12834 e) if test "$ac_cv_type_pid_t" = yes; then
12835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12836 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12837 as_fn_error 77 "cannot compute sizeof (pid_t)
12838 See 'config.log' for more details" "$LINENO" 5; }
12839 else
12840 ac_cv_sizeof_pid_t=0
12841 fi ;;
12842 esac
12843 fi
12844 ;;
12845 esac
12846 fi
12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12848 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12849
12850
12851
12852 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12853
12854
12855 # The cast to long int works around a bug in the HP C Compiler
12856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12857 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12858 # This bug is HP SR number 8606223364.
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12860 printf %s "checking size of uintptr_t... " >&6; }
12861 if test ${ac_cv_sizeof_uintptr_t+y}
12862 then :
12863 printf %s "(cached) " >&6
12864 else case e in #(
12865 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12866 then :
12867
12868 else case e in #(
12869 e) if test "$ac_cv_type_uintptr_t" = yes; then
12870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12872 as_fn_error 77 "cannot compute sizeof (uintptr_t)
12873 See 'config.log' for more details" "$LINENO" 5; }
12874 else
12875 ac_cv_sizeof_uintptr_t=0
12876 fi ;;
12877 esac
12878 fi
12879 ;;
12880 esac
12881 fi
12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12883 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12884
12885
12886
12887 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12888
12889
12890 # The cast to long int works around a bug in the HP C Compiler,
12891 # see AC_CHECK_SIZEOF for more information.
12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12893 printf %s "checking alignment of max_align_t... " >&6; }
12894 if test ${ac_cv_alignof_max_align_t+y}
12895 then :
12896 printf %s "(cached) " >&6
12897 else case e in #(
12898 e) if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12899 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12900 then :
12901
12902 else case e in #(
12903 e) if test "$ac_cv_type_max_align_t" = yes; then
12904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12905 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12906 as_fn_error 77 "cannot compute alignment of max_align_t
12907 See 'config.log' for more details" "$LINENO" 5; }
12908 else
12909 ac_cv_alignof_max_align_t=0
12910 fi ;;
12911 esac
12912 fi
12913 ;;
12914 esac
12915 fi
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12917 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12918
12919
12920
12921 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12922
12923
12924
12925
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12927 printf %s "checking for long double... " >&6; }
12928 if test ${ac_cv_type_long_double+y}
12929 then :
12930 printf %s "(cached) " >&6
12931 else case e in #(
12932 e) if test "$GCC" = yes; then
12933 ac_cv_type_long_double=yes
12934 else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 /* The Stardent Vistra knows sizeof (long double), but does
12938 not support it. */
12939 long double foo = 0.0L;
12940 int
12941 main (void)
12942 {
12943 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12944 sizeof (double) <= sizeof (long double))];
12945 test_array [0] = 0;
12946 return test_array [0];
12947
12948 ;
12949 return 0;
12950 }
12951 _ACEOF
12952 if ac_fn_c_try_compile "$LINENO"
12953 then :
12954 ac_cv_type_long_double=yes
12955 else case e in #(
12956 e) ac_cv_type_long_double=no ;;
12957 esac
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 fi ;;
12961 esac
12962 fi
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12964 printf "%s\n" "$ac_cv_type_long_double" >&6; }
12965 if test $ac_cv_type_long_double = yes; then
12966
12967 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12968
12969 fi
12970
12971 # The cast to long int works around a bug in the HP C Compiler
12972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12973 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
12974 # This bug is HP SR number 8606223364.
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12976 printf %s "checking size of long double... " >&6; }
12977 if test ${ac_cv_sizeof_long_double+y}
12978 then :
12979 printf %s "(cached) " >&6
12980 else case e in #(
12981 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
12982 then :
12983
12984 else case e in #(
12985 e) if test "$ac_cv_type_long_double" = yes; then
12986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12987 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12988 as_fn_error 77 "cannot compute sizeof (long double)
12989 See 'config.log' for more details" "$LINENO" 5; }
12990 else
12991 ac_cv_sizeof_long_double=0
12992 fi ;;
12993 esac
12994 fi
12995 ;;
12996 esac
12997 fi
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12999 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
13000
13001
13002
13003 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
13004
13005
13006
13007 # The cast to long int works around a bug in the HP C Compiler
13008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13009 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13010 # This bug is HP SR number 8606223364.
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
13012 printf %s "checking size of _Bool... " >&6; }
13013 if test ${ac_cv_sizeof__Bool+y}
13014 then :
13015 printf %s "(cached) " >&6
13016 else case e in #(
13017 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
13018 then :
13019
13020 else case e in #(
13021 e) if test "$ac_cv_type__Bool" = yes; then
13022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13023 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13024 as_fn_error 77 "cannot compute sizeof (_Bool)
13025 See 'config.log' for more details" "$LINENO" 5; }
13026 else
13027 ac_cv_sizeof__Bool=0
13028 fi ;;
13029 esac
13030 fi
13031 ;;
13032 esac
13033 fi
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
13035 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
13036
13037
13038
13039 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
13040
13041
13042
13043 # The cast to long int works around a bug in the HP C Compiler
13044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13045 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13046 # This bug is HP SR number 8606223364.
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
13048 printf %s "checking size of off_t... " >&6; }
13049 if test ${ac_cv_sizeof_off_t+y}
13050 then :
13051 printf %s "(cached) " >&6
13052 else case e in #(
13053 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
13054 #ifdef HAVE_SYS_TYPES_H
13055 #include <sys/types.h>
13056 #endif
13057
13058 "
13059 then :
13060
13061 else case e in #(
13062 e) if test "$ac_cv_type_off_t" = yes; then
13063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13064 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13065 as_fn_error 77 "cannot compute sizeof (off_t)
13066 See 'config.log' for more details" "$LINENO" 5; }
13067 else
13068 ac_cv_sizeof_off_t=0
13069 fi ;;
13070 esac
13071 fi
13072 ;;
13073 esac
13074 fi
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
13076 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
13077
13078
13079
13080 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
13081
13082
13083
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
13085 printf %s "checking whether to enable large file support... " >&6; }
13086 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13087 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13088 have_largefile_support="yes"
13089 else
13090 have_largefile_support="no"
13091 fi
13092 if test "x$have_largefile_support" = xyes
13093 then :
13094
13095
13096 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
13097
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099 printf "%s\n" "yes" >&6; }
13100
13101 else case e in #(
13102 e)
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 printf "%s\n" "no" >&6; }
13105 ;;
13106 esac
13107 fi
13108
13109 # The cast to long int works around a bug in the HP C Compiler
13110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13111 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13112 # This bug is HP SR number 8606223364.
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
13114 printf %s "checking size of time_t... " >&6; }
13115 if test ${ac_cv_sizeof_time_t+y}
13116 then :
13117 printf %s "(cached) " >&6
13118 else case e in #(
13119 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
13120 #ifdef HAVE_SYS_TYPES_H
13121 #include <sys/types.h>
13122 #endif
13123 #ifdef HAVE_TIME_H
13124 #include <time.h>
13125 #endif
13126
13127 "
13128 then :
13129
13130 else case e in #(
13131 e) if test "$ac_cv_type_time_t" = yes; then
13132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13133 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13134 as_fn_error 77 "cannot compute sizeof (time_t)
13135 See 'config.log' for more details" "$LINENO" 5; }
13136 else
13137 ac_cv_sizeof_time_t=0
13138 fi ;;
13139 esac
13140 fi
13141 ;;
13142 esac
13143 fi
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
13145 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
13146
13147
13148
13149 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
13150
13151
13152
13153 # if have pthread_t then define SIZEOF_PTHREAD_T
13154 ac_save_cc="$CC"
13155 if test "$ac_cv_kpthread" = "yes"
13156 then CC="$CC -Kpthread"
13157 elif test "$ac_cv_kthread" = "yes"
13158 then CC="$CC -Kthread"
13159 elif test "$ac_cv_pthread" = "yes"
13160 then CC="$CC -pthread"
13161 fi
13162
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
13164 printf %s "checking for pthread_t... " >&6; }
13165 if test ${ac_cv_have_pthread_t+y}
13166 then :
13167 printf %s "(cached) " >&6
13168 else case e in #(
13169 e)
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172
13173 #include <pthread.h>
13174 int
13175 main (void)
13176 {
13177 pthread_t x; x = *(pthread_t*)0;
13178 ;
13179 return 0;
13180 }
13181
13182 _ACEOF
13183 if ac_fn_c_try_compile "$LINENO"
13184 then :
13185 ac_cv_have_pthread_t=yes
13186 else case e in #(
13187 e) ac_cv_have_pthread_t=no ;;
13188 esac
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13191 ;;
13192 esac
13193 fi
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
13195 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
13196 if test "x$ac_cv_have_pthread_t" = xyes
13197 then :
13198
13199 # The cast to long int works around a bug in the HP C Compiler
13200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13201 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13202 # This bug is HP SR number 8606223364.
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
13204 printf %s "checking size of pthread_t... " >&6; }
13205 if test ${ac_cv_sizeof_pthread_t+y}
13206 then :
13207 printf %s "(cached) " >&6
13208 else case e in #(
13209 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
13210 #ifdef HAVE_PTHREAD_H
13211 #include <pthread.h>
13212 #endif
13213
13214 "
13215 then :
13216
13217 else case e in #(
13218 e) if test "$ac_cv_type_pthread_t" = yes; then
13219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13220 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13221 as_fn_error 77 "cannot compute sizeof (pthread_t)
13222 See 'config.log' for more details" "$LINENO" 5; }
13223 else
13224 ac_cv_sizeof_pthread_t=0
13225 fi ;;
13226 esac
13227 fi
13228 ;;
13229 esac
13230 fi
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
13232 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
13233
13234
13235
13236 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
13237
13238
13239
13240 fi
13241
13242 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
13243 # This checking will be unnecessary after removing deprecated TLS API.
13244 # The cast to long int works around a bug in the HP C Compiler
13245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13246 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
13247 # This bug is HP SR number 8606223364.
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
13249 printf %s "checking size of pthread_key_t... " >&6; }
13250 if test ${ac_cv_sizeof_pthread_key_t+y}
13251 then :
13252 printf %s "(cached) " >&6
13253 else case e in #(
13254 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
13255 "
13256 then :
13257
13258 else case e in #(
13259 e) if test "$ac_cv_type_pthread_key_t" = yes; then
13260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13261 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13262 as_fn_error 77 "cannot compute sizeof (pthread_key_t)
13263 See 'config.log' for more details" "$LINENO" 5; }
13264 else
13265 ac_cv_sizeof_pthread_key_t=0
13266 fi ;;
13267 esac
13268 fi
13269 ;;
13270 esac
13271 fi
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
13273 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
13274
13275
13276
13277 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
13278
13279
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
13281 printf %s "checking whether pthread_key_t is compatible with int... " >&6; }
13282 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
13283 then :
13284 printf %s "(cached) " >&6
13285 else case e in #(
13286 e)
13287 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290 #include <pthread.h>
13291 int
13292 main (void)
13293 {
13294 pthread_key_t k; k * 1;
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_c_try_compile "$LINENO"
13300 then :
13301 ac_cv_pthread_key_t_is_arithmetic_type=yes
13302 else case e in #(
13303 e) ac_cv_pthread_key_t_is_arithmetic_type=no
13304 ;;
13305 esac
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13308 else
13309 ac_cv_pthread_key_t_is_arithmetic_type=no
13310 fi
13311 ;;
13312 esac
13313 fi
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
13315 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
13316 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
13317 then :
13318
13319
13320 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
13321
13322
13323 fi
13324
13325 CC="$ac_save_cc"
13326
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
13328 printf %s "checking for --enable-framework... " >&6; }
13329 if test "$enable_framework"
13330 then
13331 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13332 # -F. is needed to allow linking to the framework while
13333 # in the build location.
13334
13335 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
13336
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 printf "%s\n" "yes" >&6; }
13339 if test $enable_shared = "yes"
13340 then
13341 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
13342 fi
13343 else
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 printf "%s\n" "no" >&6; }
13346 fi
13347
13348 # Check for --with-dsymutil
13349
13350
13351 DSYMUTIL=
13352 DSYMUTIL_PATH=
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
13354 printf %s "checking for --with-dsymutil... " >&6; }
13355
13356 # Check whether --with-dsymutil was given.
13357 if test ${with_dsymutil+y}
13358 then :
13359 withval=$with_dsymutil;
13360 if test "$withval" != no
13361 then
13362 if test "$MACHDEP" != "darwin"; then
13363 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5
13364 fi
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13366 printf "%s\n" "yes" >&6; };
13367 DSYMUTIL='true'
13368 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 printf "%s\n" "no" >&6; }; DSYMUTIL=
13370 fi
13371 else case e in #(
13372 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 printf "%s\n" "no" >&6; } ;;
13374 esac
13375 fi
13376
13377
13378 if test "$DSYMUTIL"; then
13379 # Extract the first word of "dsymutil", so it can be a program name with args.
13380 set dummy dsymutil; ac_word=$2
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382 printf %s "checking for $ac_word... " >&6; }
13383 if test ${ac_cv_path_DSYMUTIL_PATH+y}
13384 then :
13385 printf %s "(cached) " >&6
13386 else case e in #(
13387 e) case $DSYMUTIL_PATH in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path.
13390 ;;
13391 *)
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $PATH
13394 do
13395 IFS=$as_save_IFS
13396 case $as_dir in #(((
13397 '') as_dir=./ ;;
13398 */) ;;
13399 *) as_dir=$as_dir/ ;;
13400 esac
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13403 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext"
13404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13405 break 2
13406 fi
13407 done
13408 done
13409 IFS=$as_save_IFS
13410
13411 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found"
13412 ;;
13413 esac ;;
13414 esac
13415 fi
13416 DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH
13417 if test -n "$DSYMUTIL_PATH"; then
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
13419 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
13420 else
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 printf "%s\n" "no" >&6; }
13423 fi
13424
13425
13426 if test "$DSYMUTIL_PATH" = "not found"; then
13427 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5
13428 fi
13429 fi
13430
13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
13432 printf %s "checking for dyld... " >&6; }
13433 case $ac_sys_system/$ac_sys_release in
13434 Darwin/*)
13435
13436 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
13437
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
13439 printf "%s\n" "always on for Darwin" >&6; }
13440 ;;
13441 *)
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 printf "%s\n" "no" >&6; }
13444 ;;
13445 esac
13446
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
13448 printf %s "checking for --with-address-sanitizer... " >&6; }
13449
13450 # Check whether --with-address_sanitizer was given.
13451 if test ${with_address_sanitizer+y}
13452 then :
13453 withval=$with_address_sanitizer;
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13455 printf "%s\n" "$withval" >&6; }
13456 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
13457 LDFLAGS="-fsanitize=address $LDFLAGS"
13458 # ASan works by controlling memory allocation, our own malloc interferes.
13459 with_pymalloc="no"
13460
13461 else case e in #(
13462 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463 printf "%s\n" "no" >&6; } ;;
13464 esac
13465 fi
13466
13467
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
13469 printf %s "checking for --with-memory-sanitizer... " >&6; }
13470
13471 # Check whether --with-memory_sanitizer was given.
13472 if test ${with_memory_sanitizer+y}
13473 then :
13474 withval=$with_memory_sanitizer;
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13476 printf "%s\n" "$withval" >&6; }
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
13478 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
13479 if test ${ax_cv_check_cflags___fsanitize_memory+y}
13480 then :
13481 printf %s "(cached) " >&6
13482 else case e in #(
13483 e)
13484 ax_check_save_flags=$CFLAGS
13485 CFLAGS="$CFLAGS -fsanitize=memory"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488
13489 int
13490 main (void)
13491 {
13492
13493 ;
13494 return 0;
13495 }
13496 _ACEOF
13497 if ac_fn_c_try_compile "$LINENO"
13498 then :
13499 ax_cv_check_cflags___fsanitize_memory=yes
13500 else case e in #(
13501 e) ax_cv_check_cflags___fsanitize_memory=no ;;
13502 esac
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13505 CFLAGS=$ax_check_save_flags ;;
13506 esac
13507 fi
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
13509 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
13510 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
13511 then :
13512
13513 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
13514 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
13515
13516 else case e in #(
13517 e) as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5 ;;
13518 esac
13519 fi
13520
13521 # MSan works by controlling memory allocation, our own malloc interferes.
13522 with_pymalloc="no"
13523
13524 else case e in #(
13525 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 printf "%s\n" "no" >&6; } ;;
13527 esac
13528 fi
13529
13530
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
13532 printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; }
13533
13534 # Check whether --with-undefined_behavior_sanitizer was given.
13535 if test ${with_undefined_behavior_sanitizer+y}
13536 then :
13537 withval=$with_undefined_behavior_sanitizer;
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13539 printf "%s\n" "$withval" >&6; }
13540 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
13541 LDFLAGS="-fsanitize=undefined $LDFLAGS"
13542 with_ubsan="yes"
13543
13544 else case e in #(
13545 e)
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547 printf "%s\n" "no" >&6; }
13548 with_ubsan="no"
13549 ;;
13550 esac
13551 fi
13552
13553
13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
13555 printf %s "checking for --with-thread-sanitizer... " >&6; }
13556
13557 # Check whether --with-thread_sanitizer was given.
13558 if test ${with_thread_sanitizer+y}
13559 then :
13560 withval=$with_thread_sanitizer;
13561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13562 printf "%s\n" "$withval" >&6; }
13563 BASECFLAGS="-fsanitize=thread $BASECFLAGS"
13564 LDFLAGS="-fsanitize=thread $LDFLAGS"
13565 with_tsan="yes"
13566
13567 else case e in #(
13568 e)
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 printf "%s\n" "no" >&6; }
13571 with_tsan="no"
13572 ;;
13573 esac
13574 fi
13575
13576
13577 # Set info about shared libraries.
13578
13579
13580
13581
13582
13583
13584
13585 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
13586 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
13588 printf %s "checking the extension of shared libraries... " >&6; }
13589 if test -z "$SHLIB_SUFFIX"; then
13590 case $ac_sys_system in
13591 hp*|HP*)
13592 case `uname -m` in
13593 ia64) SHLIB_SUFFIX=.so;;
13594 *) SHLIB_SUFFIX=.sl;;
13595 esac
13596 ;;
13597 CYGWIN*) SHLIB_SUFFIX=.dll;;
13598 *) SHLIB_SUFFIX=.so;;
13599 esac
13600 fi
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
13602 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
13603
13604 # LDSHARED is the ld *command* used to create shared library
13605 # -- "cc -G" on SunOS 5.x.
13606 # (Shared libraries in this instance are shared modules to be loaded into
13607 # Python, as opposed to building Python itself as a shared library.)
13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
13609 printf %s "checking LDSHARED... " >&6; }
13610 if test -z "$LDSHARED"
13611 then
13612 case $ac_sys_system/$ac_sys_release in
13613 AIX*)
13614 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13615 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
13616 ;;
13617 SunOS/5*)
13618 if test "$ac_cv_gcc_compat" = "yes" ; then
13619 LDSHARED='$(CC) -shared'
13620 LDCXXSHARED='$(CXX) -shared'
13621 else
13622 LDSHARED='$(CC) -G'
13623 LDCXXSHARED='$(CXX) -G'
13624 fi ;;
13625 hp*|HP*)
13626 if test "$ac_cv_gcc_compat" = "yes" ; then
13627 LDSHARED='$(CC) -shared'
13628 LDCXXSHARED='$(CXX) -shared'
13629 else
13630 LDSHARED='$(CC) -b'
13631 LDCXXSHARED='$(CXX) -b'
13632 fi ;;
13633 Darwin/1.3*)
13634 LDSHARED='$(CC) -bundle'
13635 LDCXXSHARED='$(CXX) -bundle'
13636 if test "$enable_framework" ; then
13637 # Link against the framework. All externals should be defined.
13638 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13639 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13640 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13641 else
13642 # No framework. Ignore undefined symbols, assuming they come from Python
13643 LDSHARED="$LDSHARED -undefined suppress"
13644 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
13645 fi ;;
13646 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
13647 LDSHARED='$(CC) -bundle'
13648 LDCXXSHARED='$(CXX) -bundle'
13649 if test "$enable_framework" ; then
13650 # Link against the framework. All externals should be defined.
13651 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13652 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13653 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13654 else
13655 # No framework, use the Python app as bundle-loader
13656 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13657 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13658 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13659 fi ;;
13660 Darwin/*)
13661 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13662 # This allows an extension to be used in any Python
13663
13664 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13665 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13666 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
13667 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13668 if test ${dep_target_major} -eq 10 && \
13669 test ${dep_target_minor} -le 2
13670 then
13671 # building for OS X 10.0 through 10.2
13672 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
13673 else
13674 # building for OS X 10.3 and later
13675 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
13676 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
13677 BLDSHARED="$LDSHARED"
13678 fi
13679 ;;
13680 iOS/*)
13681 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13682 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
13683 BLDSHARED="$LDSHARED"
13684 ;;
13685 Emscripten*|WASI*)
13686 LDSHARED='$(CC) -shared'
13687 LDCXXSHARED='$(CXX) -shared';;
13688 Linux*|GNU*|QNX*|VxWorks*|Haiku*)
13689 LDSHARED='$(CC) -shared'
13690 LDCXXSHARED='$(CXX) -shared';;
13691 FreeBSD*)
13692 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13693 then
13694 LDSHARED='$(CC) -shared'
13695 LDCXXSHARED='$(CXX) -shared'
13696 else
13697 LDSHARED="ld -Bshareable"
13698 fi;;
13699 OpenBSD*)
13700 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13701 then
13702 LDSHARED='$(CC) -shared $(CCSHARED)'
13703 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13704 else
13705 case `uname -r` in
13706 [01].* | 2.[0-7] | 2.[0-7].*)
13707 LDSHARED="ld -Bshareable ${LDFLAGS}"
13708 ;;
13709 *)
13710 LDSHARED='$(CC) -shared $(CCSHARED)'
13711 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
13712 ;;
13713 esac
13714 fi;;
13715 NetBSD*|DragonFly*)
13716 LDSHARED='$(CC) -shared'
13717 LDCXXSHARED='$(CXX) -shared';;
13718 OpenUNIX*|UnixWare*)
13719 if test "$ac_cv_gcc_compat" = "yes" ; then
13720 LDSHARED='$(CC) -shared'
13721 LDCXXSHARED='$(CXX) -shared'
13722 else
13723 LDSHARED='$(CC) -G'
13724 LDCXXSHARED='$(CXX) -G'
13725 fi;;
13726 SCO_SV*)
13727 LDSHARED='$(CC) -Wl,-G,-Bexport'
13728 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
13729 WASI*)
13730 if test "x$enable_wasm_dynamic_linking" = xyes
13731 then :
13732
13733
13734 fi;;
13735 CYGWIN*)
13736 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
13737 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
13738 *) LDSHARED="ld";;
13739 esac
13740 fi
13741
13742 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
13743 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1'
13744 fi
13745
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
13747 printf "%s\n" "$LDSHARED" >&6; }
13748 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
13749
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
13751 printf %s "checking BLDSHARED flags... " >&6; }
13752 BLDSHARED=${BLDSHARED-$LDSHARED}
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
13754 printf "%s\n" "$BLDSHARED" >&6; }
13755
13756 # CCSHARED are the C *flags* used to create objects to go into a shared
13757 # library (module) -- this is only needed for a few systems
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
13759 printf %s "checking CCSHARED... " >&6; }
13760 if test -z "$CCSHARED"
13761 then
13762 case $ac_sys_system/$ac_sys_release in
13763 SunOS*) if test "$ac_cv_gcc_compat" = "yes";
13764 then CCSHARED="-fPIC";
13765 elif test `uname -p` = sparc;
13766 then CCSHARED="-xcode=pic32";
13767 else CCSHARED="-Kpic";
13768 fi;;
13769 hp*|HP*) if test "$ac_cv_gcc_compat" = "yes";
13770 then CCSHARED="-fPIC";
13771 else CCSHARED="+z";
13772 fi;;
13773 Linux*|GNU*) CCSHARED="-fPIC";;
13774 Emscripten*|WASI*)
13775 if test "x$enable_wasm_dynamic_linking" = xyes
13776 then :
13777
13778 CCSHARED="-fPIC"
13779
13780 fi;;
13781 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
13782 Haiku*) CCSHARED="-fPIC";;
13783 OpenUNIX*|UnixWare*)
13784 if test "$ac_cv_gcc_compat" = "yes"
13785 then CCSHARED="-fPIC"
13786 else CCSHARED="-KPIC"
13787 fi;;
13788 SCO_SV*)
13789 if test "$ac_cv_gcc_compat" = "yes"
13790 then CCSHARED="-fPIC"
13791 else CCSHARED="-Kpic -belf"
13792 fi;;
13793 VxWorks*)
13794 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13795 esac
13796 fi
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13798 printf "%s\n" "$CCSHARED" >&6; }
13799 # LINKFORSHARED are the flags passed to the $(CC) command that links
13800 # the python executable -- this is only needed for a few systems
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13802 printf %s "checking LINKFORSHARED... " >&6; }
13803 if test -z "$LINKFORSHARED"
13804 then
13805 case $ac_sys_system/$ac_sys_release in
13806 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
13807 hp*|HP*)
13808 LINKFORSHARED="-Wl,-E -Wl,+s";;
13809 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13810 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
13811 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
13812 # -u libsys_s pulls in all symbols in libsys
13813 Darwin/*|iOS/*)
13814 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
13815
13816 # Issue #18075: the default maximum stack size (8MBytes) is too
13817 # small for the default recursion limit. Increase the stack size
13818 # to ensure that tests don't crash
13819 stack_size="1000000" # 16 MB
13820 if test "$with_ubsan" = "yes"
13821 then
13822 # Undefined behavior sanitizer requires an even deeper stack
13823 stack_size="4000000" # 64 MB
13824 fi
13825
13826
13827 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13828
13829
13830 if test $ac_sys_system = "Darwin"; then
13831 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13832
13833 if test "$enable_framework"; then
13834 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13835 fi
13836 LINKFORSHARED="$LINKFORSHARED"
13837 elif test $ac_sys_system = "iOS"; then
13838 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13839 fi
13840 ;;
13841 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
13842 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
13843 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
13844 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
13845 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13846 then
13847 LINKFORSHARED="-Wl,--export-dynamic"
13848 fi;;
13849 SunOS/5*) if test "$ac_cv_gcc_compat" = "yes"; then
13850 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
13851 then
13852 LINKFORSHARED="-Xlinker --export-dynamic"
13853 fi
13854 fi
13855 ;;
13856 CYGWIN*)
13857 if test $enable_shared = "no"
13858 then
13859 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
13860 fi;;
13861 QNX*)
13862 # -Wl,-E causes the symbols to be added to the dynamic
13863 # symbol table so that they can be found when a module
13864 # is loaded. -N 2048K causes the stack size to be set
13865 # to 2048 kilobytes so that the stack doesn't overflow
13866 # when running test_compile.py.
13867 LINKFORSHARED='-Wl,-E -N 2048K';;
13868 VxWorks*)
13869 LINKFORSHARED='-Wl,-export-dynamic';;
13870 esac
13871 fi
13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13873 printf "%s\n" "$LINKFORSHARED" >&6; }
13874
13875
13876
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13878 printf %s "checking CFLAGSFORSHARED... " >&6; }
13879 if test ! "$LIBRARY" = "$LDLIBRARY"
13880 then
13881 case $ac_sys_system in
13882 CYGWIN*)
13883 # Cygwin needs CCSHARED when building extension DLLs
13884 # but not when building the interpreter DLL.
13885 CFLAGSFORSHARED='';;
13886 *)
13887 CFLAGSFORSHARED='$(CCSHARED)'
13888 esac
13889 fi
13890
13891 if test "x$enable_wasm_dynamic_linking" = xyes
13892 then :
13893
13894 CFLAGSFORSHARED='$(CCSHARED)'
13895
13896 fi
13897
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13899 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13900
13901 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13902 # library (with --enable-shared).
13903 # For platforms on which shared libraries are not allowed to have unresolved
13904 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13905 # if it is not required, since it creates a dependency of the shared library
13906 # to LIBS. This, in turn, means that applications linking the shared libpython
13907 # don't need to link LIBS explicitly. The default should be only changed
13908 # on systems where this approach causes problems.
13909
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13911 printf %s "checking SHLIBS... " >&6; }
13912 case "$ac_sys_system" in
13913 *)
13914 SHLIBS='$(LIBS)';;
13915 esac
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13917 printf "%s\n" "$SHLIBS" >&6; }
13918
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13920 printf %s "checking perf trampoline... " >&6; }
13921 case $PLATFORM_TRIPLET in #(
13922 x86_64-linux-gnu) :
13923 perf_trampoline=yes ;; #(
13924 aarch64-linux-gnu) :
13925 perf_trampoline=yes ;; #(
13926 *) :
13927 perf_trampoline=no
13928 ;;
13929 esac
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13931 printf "%s\n" "$perf_trampoline" >&6; }
13932
13933 if test "x$perf_trampoline" = xyes
13934 then :
13935
13936
13937 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
13938
13939 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o
13940
13941 if test "x$Py_DEBUG" = xtrue
13942 then :
13943
13944 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
13945
13946 fi
13947
13948 fi
13949
13950
13951 # checks for libraries
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
13953 printf %s "checking for sendfile in -lsendfile... " >&6; }
13954 if test ${ac_cv_lib_sendfile_sendfile+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else case e in #(
13958 e) ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lsendfile $LIBS"
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962
13963 /* Override any GCC internal prototype to avoid an error.
13964 Use char because int might match the return type of a GCC
13965 builtin and then its argument prototype would still apply.
13966 The 'extern "C"' is for builds by C++ compilers;
13967 although this is not generally supported in C code supporting it here
13968 has little cost and some practical benefit (sr 110532). */
13969 #ifdef __cplusplus
13970 extern "C"
13971 #endif
13972 char sendfile (void);
13973 int
13974 main (void)
13975 {
13976 return sendfile ();
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"
13982 then :
13983 ac_cv_lib_sendfile_sendfile=yes
13984 else case e in #(
13985 e) ac_cv_lib_sendfile_sendfile=no ;;
13986 esac
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13989 conftest$ac_exeext conftest.$ac_ext
13990 LIBS=$ac_check_lib_save_LIBS ;;
13991 esac
13992 fi
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
13994 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
13995 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
13996 then :
13997 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
13998
13999 LIBS="-lsendfile $LIBS"
14000
14001 fi
14002
14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14004 printf %s "checking for dlopen in -ldl... " >&6; }
14005 if test ${ac_cv_lib_dl_dlopen+y}
14006 then :
14007 printf %s "(cached) " >&6
14008 else case e in #(
14009 e) ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-ldl $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply.
14017 The 'extern "C"' is for builds by C++ compilers;
14018 although this is not generally supported in C code supporting it here
14019 has little cost and some practical benefit (sr 110532). */
14020 #ifdef __cplusplus
14021 extern "C"
14022 #endif
14023 char dlopen (void);
14024 int
14025 main (void)
14026 {
14027 return dlopen ();
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"
14033 then :
14034 ac_cv_lib_dl_dlopen=yes
14035 else case e in #(
14036 e) ac_cv_lib_dl_dlopen=no ;;
14037 esac
14038 fi
14039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14040 conftest$ac_exeext conftest.$ac_ext
14041 LIBS=$ac_check_lib_save_LIBS ;;
14042 esac
14043 fi
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14045 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14046 if test "x$ac_cv_lib_dl_dlopen" = xyes
14047 then :
14048 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
14049
14050 LIBS="-ldl $LIBS"
14051
14052 fi
14053 # Dynamic linking for SunOS/Solaris and SYSV
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14055 printf %s "checking for shl_load in -ldld... " >&6; }
14056 if test ${ac_cv_lib_dld_shl_load+y}
14057 then :
14058 printf %s "(cached) " >&6
14059 else case e in #(
14060 e) ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-ldld $LIBS"
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064
14065 /* Override any GCC internal prototype to avoid an error.
14066 Use char because int might match the return type of a GCC
14067 builtin and then its argument prototype would still apply.
14068 The 'extern "C"' is for builds by C++ compilers;
14069 although this is not generally supported in C code supporting it here
14070 has little cost and some practical benefit (sr 110532). */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char shl_load (void);
14075 int
14076 main (void)
14077 {
14078 return shl_load ();
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 if ac_fn_c_try_link "$LINENO"
14084 then :
14085 ac_cv_lib_dld_shl_load=yes
14086 else case e in #(
14087 e) ac_cv_lib_dld_shl_load=no ;;
14088 esac
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS=$ac_check_lib_save_LIBS ;;
14093 esac
14094 fi
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14096 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14097 if test "x$ac_cv_lib_dld_shl_load" = xyes
14098 then :
14099 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
14100
14101 LIBS="-ldld $LIBS"
14102
14103 fi
14104 # Dynamic linking for HP-UX
14105
14106
14107 for ac_header in execinfo.h link.h dlfcn.h
14108 do :
14109 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
14110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14111 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14112 then :
14113 cat >>confdefs.h <<_ACEOF
14114 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
14115 _ACEOF
14116
14117
14118 for ac_func in backtrace dladdr1
14119 do :
14120 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
14121 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14122 if eval test \"x\$"$as_ac_var"\" = x"yes"
14123 then :
14124 cat >>confdefs.h <<_ACEOF
14125 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
14126 _ACEOF
14127
14128 # dladdr1 requires -ldl
14129 ac_cv_require_ldl=yes
14130
14131 fi
14132
14133 done
14134
14135 fi
14136
14137 done
14138
14139 if test "x$ac_cv_require_ldl" = xyes
14140 then :
14141
14142 if test "x$ac_cv_lib_dl_dlopen" = xyes
14143 then :
14144
14145 else case e in #(
14146 e)
14147 as_fn_append LDFLAGS " -ldl"
14148 ;;
14149 esac
14150 fi
14151
14152 fi
14153
14154
14155
14156
14157
14158
14159 have_uuid=missing
14160
14161 for ac_header in uuid.h
14162 do :
14163 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_uuid_h" = xyes
14165 then :
14166 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
14167
14168
14169 for ac_func in uuid_create uuid_enc_be
14170 do :
14171 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
14172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14173 if eval test \"x\$"$as_ac_var"\" = x"yes"
14174 then :
14175 cat >>confdefs.h <<_ACEOF
14176 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
14177 _ACEOF
14178
14179 have_uuid=yes
14180 ac_cv_have_uuid_h=yes
14181 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14182 LIBUUID_LIBS=${LIBUUID_LIBS-""}
14183
14184 fi
14185
14186 done
14187
14188 fi
14189
14190 done
14191
14192 if test "x$have_uuid" = xmissing
14193 then :
14194
14195
14196 pkg_failed=no
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
14198 printf %s "checking for uuid >= 2.20... " >&6; }
14199
14200 if test -n "$LIBUUID_CFLAGS"; then
14201 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
14202 elif test -n "$PKG_CONFIG"; then
14203 if test -n "$PKG_CONFIG" && \
14204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
14205 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
14206 ac_status=$?
14207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208 test $ac_status = 0; }; then
14209 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
14210 test "x$?" != "x0" && pkg_failed=yes
14211 else
14212 pkg_failed=yes
14213 fi
14214 else
14215 pkg_failed=untried
14216 fi
14217 if test -n "$LIBUUID_LIBS"; then
14218 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
14219 elif test -n "$PKG_CONFIG"; then
14220 if test -n "$PKG_CONFIG" && \
14221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
14222 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
14223 ac_status=$?
14224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
14227 test "x$?" != "x0" && pkg_failed=yes
14228 else
14229 pkg_failed=yes
14230 fi
14231 else
14232 pkg_failed=untried
14233 fi
14234
14235
14236
14237 if test $pkg_failed = yes; then
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 printf "%s\n" "no" >&6; }
14240
14241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14242 _pkg_short_errors_supported=yes
14243 else
14244 _pkg_short_errors_supported=no
14245 fi
14246 if test $_pkg_short_errors_supported = yes; then
14247 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
14248 else
14249 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
14250 fi
14251 # Put the nasty error message in config.log where it belongs
14252 echo "$LIBUUID_PKG_ERRORS" >&5
14253
14254
14255 save_CFLAGS=$CFLAGS
14256 save_CPPFLAGS=$CPPFLAGS
14257 save_LDFLAGS=$LDFLAGS
14258 save_LIBS=$LIBS
14259
14260
14261 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
14262 LIBS="$LIBS $LIBUUID_LIBS"
14263 for ac_header in uuid/uuid.h
14264 do :
14265 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14266 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14267 then :
14268 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14269
14270 ac_cv_have_uuid_uuid_h=yes
14271 py_check_lib_save_LIBS=$LIBS
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
14273 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
14274 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
14275 then :
14276 printf %s "(cached) " >&6
14277 else case e in #(
14278 e) ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-luuid $LIBS"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply.
14286 The 'extern "C"' is for builds by C++ compilers;
14287 although this is not generally supported in C code supporting it here
14288 has little cost and some practical benefit (sr 110532). */
14289 #ifdef __cplusplus
14290 extern "C"
14291 #endif
14292 char uuid_generate_time (void);
14293 int
14294 main (void)
14295 {
14296 return uuid_generate_time ();
14297 ;
14298 return 0;
14299 }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"
14302 then :
14303 ac_cv_lib_uuid_uuid_generate_time=yes
14304 else case e in #(
14305 e) ac_cv_lib_uuid_uuid_generate_time=no ;;
14306 esac
14307 fi
14308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14309 conftest$ac_exeext conftest.$ac_ext
14310 LIBS=$ac_check_lib_save_LIBS ;;
14311 esac
14312 fi
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
14314 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
14315 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
14316 then :
14317 have_uuid=yes
14318 fi
14319
14320 LIBS=$py_check_lib_save_LIBS
14321
14322 py_check_lib_save_LIBS=$LIBS
14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
14324 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
14325 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
14326 then :
14327 printf %s "(cached) " >&6
14328 else case e in #(
14329 e) ac_check_lib_save_LIBS=$LIBS
14330 LIBS="-luuid $LIBS"
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333
14334 /* Override any GCC internal prototype to avoid an error.
14335 Use char because int might match the return type of a GCC
14336 builtin and then its argument prototype would still apply.
14337 The 'extern "C"' is for builds by C++ compilers;
14338 although this is not generally supported in C code supporting it here
14339 has little cost and some practical benefit (sr 110532). */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 char uuid_generate_time_safe (void);
14344 int
14345 main (void)
14346 {
14347 return uuid_generate_time_safe ();
14348 ;
14349 return 0;
14350 }
14351 _ACEOF
14352 if ac_fn_c_try_link "$LINENO"
14353 then :
14354 ac_cv_lib_uuid_uuid_generate_time_safe=yes
14355 else case e in #(
14356 e) ac_cv_lib_uuid_uuid_generate_time_safe=no ;;
14357 esac
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14360 conftest$ac_exeext conftest.$ac_ext
14361 LIBS=$ac_check_lib_save_LIBS ;;
14362 esac
14363 fi
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
14365 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
14366 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
14367 then :
14368
14369 have_uuid=yes
14370 ac_cv_have_uuid_generate_time_safe=yes
14371
14372 fi
14373
14374 LIBS=$py_check_lib_save_LIBS
14375
14376 fi
14377
14378 done
14379 if test "x$have_uuid" = xyes
14380 then :
14381
14382 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14383 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
14384
14385 fi
14386
14387 CFLAGS=$save_CFLAGS
14388 CPPFLAGS=$save_CPPFLAGS
14389 LDFLAGS=$save_LDFLAGS
14390 LIBS=$save_LIBS
14391
14392
14393
14394
14395 elif test $pkg_failed = untried; then
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 printf "%s\n" "no" >&6; }
14398
14399 save_CFLAGS=$CFLAGS
14400 save_CPPFLAGS=$CPPFLAGS
14401 save_LDFLAGS=$LDFLAGS
14402 save_LIBS=$LIBS
14403
14404
14405 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS"
14406 LIBS="$LIBS $LIBUUID_LIBS"
14407 for ac_header in uuid/uuid.h
14408 do :
14409 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14410 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14411 then :
14412 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14413
14414 ac_cv_have_uuid_uuid_h=yes
14415 py_check_lib_save_LIBS=$LIBS
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
14417 printf %s "checking for uuid_generate_time in -luuid... " >&6; }
14418 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
14419 then :
14420 printf %s "(cached) " >&6
14421 else case e in #(
14422 e) ac_check_lib_save_LIBS=$LIBS
14423 LIBS="-luuid $LIBS"
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply.
14430 The 'extern "C"' is for builds by C++ compilers;
14431 although this is not generally supported in C code supporting it here
14432 has little cost and some practical benefit (sr 110532). */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 char uuid_generate_time (void);
14437 int
14438 main (void)
14439 {
14440 return uuid_generate_time ();
14441 ;
14442 return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_link "$LINENO"
14446 then :
14447 ac_cv_lib_uuid_uuid_generate_time=yes
14448 else case e in #(
14449 e) ac_cv_lib_uuid_uuid_generate_time=no ;;
14450 esac
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14453 conftest$ac_exeext conftest.$ac_ext
14454 LIBS=$ac_check_lib_save_LIBS ;;
14455 esac
14456 fi
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
14458 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
14459 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
14460 then :
14461 have_uuid=yes
14462 fi
14463
14464 LIBS=$py_check_lib_save_LIBS
14465
14466 py_check_lib_save_LIBS=$LIBS
14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
14468 printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; }
14469 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
14470 then :
14471 printf %s "(cached) " >&6
14472 else case e in #(
14473 e) ac_check_lib_save_LIBS=$LIBS
14474 LIBS="-luuid $LIBS"
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply.
14481 The 'extern "C"' is for builds by C++ compilers;
14482 although this is not generally supported in C code supporting it here
14483 has little cost and some practical benefit (sr 110532). */
14484 #ifdef __cplusplus
14485 extern "C"
14486 #endif
14487 char uuid_generate_time_safe (void);
14488 int
14489 main (void)
14490 {
14491 return uuid_generate_time_safe ();
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"
14497 then :
14498 ac_cv_lib_uuid_uuid_generate_time_safe=yes
14499 else case e in #(
14500 e) ac_cv_lib_uuid_uuid_generate_time_safe=no ;;
14501 esac
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14504 conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS ;;
14506 esac
14507 fi
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
14509 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
14510 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
14511 then :
14512
14513 have_uuid=yes
14514 ac_cv_have_uuid_generate_time_safe=yes
14515
14516 fi
14517
14518 LIBS=$py_check_lib_save_LIBS
14519
14520 fi
14521
14522 done
14523 if test "x$have_uuid" = xyes
14524 then :
14525
14526 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14527 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"}
14528
14529 fi
14530
14531 CFLAGS=$save_CFLAGS
14532 CPPFLAGS=$save_CPPFLAGS
14533 LDFLAGS=$save_LDFLAGS
14534 LIBS=$save_LIBS
14535
14536
14537
14538
14539 else
14540 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
14541 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543 printf "%s\n" "yes" >&6; }
14544 have_uuid=yes
14545 ac_cv_have_uuid_generate_time_safe=yes
14546 # The uuid.h file to include may be <uuid.h> *or* <uuid/uuid.h>.
14547 # Since pkg-config --cflags uuid may return -I/usr/include/uuid,
14548 # it's possible to write '#include <uuid.h>' in _uuidmodule.c,
14549 # assuming that the compiler flags are properly updated.
14550 #
14551 # Ideally, we should have defined HAVE_UUID_H if and only if
14552 # #include <uuid.h> can be written, *without* assuming extra
14553 # include path.
14554 ac_cv_have_uuid_h=yes
14555
14556 fi
14557
14558 fi
14559
14560 if test "x$have_uuid" = xmissing
14561 then :
14562
14563 for ac_header in uuid/uuid.h
14564 do :
14565 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14566 if test "x$ac_cv_header_uuid_uuid_h" = xyes
14567 then :
14568 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14569
14570 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
14571 if test "x$ac_cv_func_uuid_generate_time" = xyes
14572 then :
14573
14574 have_uuid=yes
14575 ac_cv_have_uuid_uuid_h=yes
14576 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""}
14577 LIBUUID_LIBS=${LIBUUID_LIBS-""}
14578
14579 fi
14580
14581
14582 fi
14583
14584 done
14585
14586 fi
14587
14588 if test "x$ac_cv_have_uuid_h" = xyes
14589 then :
14590 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
14591
14592 fi
14593 if test "x$ac_cv_have_uuid_uuid_h" = xyes
14594 then :
14595 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
14596
14597 fi
14598 if test "x$ac_cv_have_uuid_generate_time_safe" = xyes
14599 then :
14600
14601 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
14602
14603
14604 fi
14605
14606 # gh-124228: While the libuuid library is available on NetBSD, it supports only UUID version 4.
14607 # This restriction inhibits the proper generation of time-based UUIDs.
14608 if test "$ac_sys_system" = "NetBSD"; then
14609 have_uuid=missing
14610 printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h
14611
14612 fi
14613
14614 if test "x$have_uuid" = xmissing
14615 then :
14616 have_uuid=no
14617 fi
14618
14619 # gh-132710: The UUID node is fetched by using libuuid when possible
14620 # and cached. While the node is constant within the same process,
14621 # different interpreters may have different values as libuuid may
14622 # randomize the node value if the latter cannot be deduced.
14623 #
14624 # Consumers may define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC
14625 # to indicate that libuuid is unstable and should not be relied
14626 # upon to deduce the MAC address.
14627
14628
14629 if test "$have_uuid" = "yes" -a "$HAVE_UUID_GENERATE_TIME_SAFE" = "1"
14630 then
14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if uuid_generate_time_safe() node value is stable" >&5
14632 printf %s "checking if uuid_generate_time_safe() node value is stable... " >&6; }
14633 save_CFLAGS=$CFLAGS
14634 save_CPPFLAGS=$CPPFLAGS
14635 save_LDFLAGS=$LDFLAGS
14636 save_LIBS=$LIBS
14637
14638
14639 # Be sure to add the extra include path if we used pkg-config
14640 # as HAVE_UUID_H may be set even though <uuid.h> is only reachable
14641 # by adding extra -I flags.
14642 #
14643 # If the following script does not compile, we simply assume that
14644 # libuuid is missing.
14645 CFLAGS="$CFLAGS $LIBUUID_CFLAGS"
14646 LIBS="$LIBS $LIBUUID_LIBS"
14647 if test "$cross_compiling" = yes
14648 then :
14649
14650
14651 else case e in #(
14652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14654
14655 #include <inttypes.h> // PRIu64
14656 #include <stdint.h> // uint64_t
14657 #include <stdio.h> // fopen(), fclose()
14658
14659 #ifdef HAVE_UUID_H
14660 #include <uuid.h>
14661 #else
14662 #include <uuid/uuid.h>
14663 #endif
14664
14665 #define ERR 1
14666 int main(void) {
14667 uuid_t uuid; // unsigned char[16]
14668 (void)uuid_generate_time_safe(uuid);
14669 uint64_t node = 0;
14670 for (size_t i = 0; i < 6; i++) {
14671 node |= (uint64_t)uuid[15 - i] << (8 * i);
14672 }
14673 FILE *fp = fopen("conftest.out", "w");
14674 if (fp == NULL) {
14675 return ERR;
14676 }
14677 int rc = fprintf(fp, "%" PRIu64 "\n", node) >= 0;
14678 rc |= fclose(fp);
14679 return rc == 0 ? 0 : ERR;
14680 }
14681 _ACEOF
14682 if ac_fn_c_try_run "$LINENO"
14683 then :
14684
14685 py_cv_uuid_node1=`cat conftest.out`
14686
14687 fi
14688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14689 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14690 esac
14691 fi
14692
14693 CFLAGS=$save_CFLAGS
14694 CPPFLAGS=$save_CPPFLAGS
14695 LDFLAGS=$save_LDFLAGS
14696 LIBS=$save_LIBS
14697
14698
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_node2=`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 if test -n "$py_cv_uuid_node1" -a "$py_cv_uuid_node1" = "$py_cv_uuid_node2"
14766 then
14767 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE_STABLE_MAC 1" >>confdefs.h
14768
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stable" >&5
14770 printf "%s\n" "stable" >&6; }
14771 else
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unstable" >&5
14773 printf "%s\n" "unstable" >&6; }
14774 fi
14775 fi
14776
14777 # 'Real Time' functions on Solaris
14778 # posix4 on Solaris 2.6
14779 # pthread (first!) on Linux
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
14781 printf %s "checking for library containing sem_init... " >&6; }
14782 if test ${ac_cv_search_sem_init+y}
14783 then :
14784 printf %s "(cached) " >&6
14785 else case e in #(
14786 e) ac_func_search_save_LIBS=$LIBS
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply.
14793 The 'extern "C"' is for builds by C++ compilers;
14794 although this is not generally supported in C code supporting it here
14795 has little cost and some practical benefit (sr 110532). */
14796 #ifdef __cplusplus
14797 extern "C"
14798 #endif
14799 char sem_init (void);
14800 int
14801 main (void)
14802 {
14803 return sem_init ();
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 for ac_lib in '' pthread rt posix4
14809 do
14810 if test -z "$ac_lib"; then
14811 ac_res="none required"
14812 else
14813 ac_res=-l$ac_lib
14814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14815 fi
14816 if ac_fn_c_try_link "$LINENO"
14817 then :
14818 ac_cv_search_sem_init=$ac_res
14819 fi
14820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14821 conftest$ac_exeext
14822 if test ${ac_cv_search_sem_init+y}
14823 then :
14824 break
14825 fi
14826 done
14827 if test ${ac_cv_search_sem_init+y}
14828 then :
14829
14830 else case e in #(
14831 e) ac_cv_search_sem_init=no ;;
14832 esac
14833 fi
14834 rm conftest.$ac_ext
14835 LIBS=$ac_func_search_save_LIBS ;;
14836 esac
14837 fi
14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
14839 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
14840 ac_res=$ac_cv_search_sem_init
14841 if test "$ac_res" != no
14842 then :
14843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14844
14845 fi
14846
14847
14848 # check if we need libintl for locale functions
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
14850 printf %s "checking for textdomain in -lintl... " >&6; }
14851 if test ${ac_cv_lib_intl_textdomain+y}
14852 then :
14853 printf %s "(cached) " >&6
14854 else case e in #(
14855 e) ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lintl $LIBS"
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply.
14863 The 'extern "C"' is for builds by C++ compilers;
14864 although this is not generally supported in C code supporting it here
14865 has little cost and some practical benefit (sr 110532). */
14866 #ifdef __cplusplus
14867 extern "C"
14868 #endif
14869 char textdomain (void);
14870 int
14871 main (void)
14872 {
14873 return textdomain ();
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"
14879 then :
14880 ac_cv_lib_intl_textdomain=yes
14881 else case e in #(
14882 e) ac_cv_lib_intl_textdomain=no ;;
14883 esac
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14886 conftest$ac_exeext conftest.$ac_ext
14887 LIBS=$ac_check_lib_save_LIBS ;;
14888 esac
14889 fi
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
14891 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
14892 if test "x$ac_cv_lib_intl_textdomain" = xyes
14893 then :
14894
14895 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
14896
14897 LIBS="-lintl $LIBS"
14898 fi
14899
14900
14901 # checks for system dependent C++ extensions support
14902 case "$ac_sys_system" in
14903 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
14904 printf %s "checking for genuine AIX C++ extensions support... " >&6; }
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14907
14908 #include <load.h>
14909 int
14910 main (void)
14911 {
14912 loadAndInit("", 0, "")
14913 ;
14914 return 0;
14915 }
14916
14917 _ACEOF
14918 if ac_fn_c_try_link "$LINENO"
14919 then :
14920
14921
14922 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
14923
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14925 printf "%s\n" "yes" >&6; }
14926
14927 else case e in #(
14928 e)
14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14930 printf "%s\n" "no" >&6; }
14931 ;;
14932 esac
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14935 conftest$ac_exeext conftest.$ac_ext
14936 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
14937 # of the AIX system used to build/package Python executable. This tag serves
14938 # as a baseline for bdist module packages
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
14940 printf %s "checking for the system builddate... " >&6; }
14941 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }')
14942
14943 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
14944
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
14946 printf "%s\n" "$AIX_BUILDDATE" >&6; }
14947 ;;
14948 *) ;;
14949 esac
14950
14951 # check for systems that require aligned memory access
14952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
14953 printf %s "checking aligned memory access is required... " >&6; }
14954 if test ${ac_cv_aligned_required+y}
14955 then :
14956 printf %s "(cached) " >&6
14957 else case e in #(
14958 e) if test "$cross_compiling" = yes
14959 then :
14960
14961 # "yes" changes the hash function to FNV, which causes problems with Numba
14962 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
14963 if test "$ac_sys_system" = "Linux-android"; then
14964 ac_cv_aligned_required=no
14965 else
14966 ac_cv_aligned_required=yes
14967 fi
14968 else case e in #(
14969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971
14972 int main(void)
14973 {
14974 char s[16];
14975 int i, *p1, *p2;
14976 for (i=0; i < 16; i++)
14977 s[i] = i;
14978 p1 = (int*)(s+1);
14979 p2 = (int*)(s+2);
14980 if (*p1 == *p2)
14981 return 1;
14982 return 0;
14983 }
14984 _ACEOF
14985 if ac_fn_c_try_run "$LINENO"
14986 then :
14987 ac_cv_aligned_required=no
14988 else case e in #(
14989 e) ac_cv_aligned_required=yes ;;
14990 esac
14991 fi
14992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14993 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14994 esac
14995 fi
14996
14997 ;;
14998 esac
14999 fi
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
15001 printf "%s\n" "$ac_cv_aligned_required" >&6; }
15002 if test "$ac_cv_aligned_required" = yes ; then
15003
15004 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
15005
15006 fi
15007
15008 # str, bytes and memoryview hash algorithm
15009
15010
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
15012 printf %s "checking for --with-hash-algorithm... " >&6; }
15013
15014 # Check whether --with-hash_algorithm was given.
15015 if test ${with_hash_algorithm+y}
15016 then :
15017 withval=$with_hash_algorithm;
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
15019 printf "%s\n" "$withval" >&6; }
15020 case "$withval" in
15021 siphash13)
15022 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
15023
15024 ;;
15025 siphash24)
15026 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
15027
15028 ;;
15029 fnv)
15030 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
15031
15032 ;;
15033 *)
15034 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5
15035 ;;
15036 esac
15037
15038 else case e in #(
15039 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
15040 printf "%s\n" "default" >&6; } ;;
15041 esac
15042 fi
15043
15044
15045 validate_tzpath() {
15046 # Checks that each element of the path is an absolute path
15047 if test -z "$1"; then
15048 # Empty string is allowed: it indicates no system TZPATH
15049 return 0
15050 fi
15051
15052 # Bad paths are those that don't start with /
15053 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then
15054 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
15055 return 1;
15056 fi
15057 }
15058
15059 TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
15061 printf %s "checking for --with-tzpath... " >&6; }
15062
15063 # Check whether --with-tzpath was given.
15064 if test ${with_tzpath+y}
15065 then :
15066 withval=$with_tzpath;
15067 case "$withval" in
15068 yes)
15069 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5
15070 ;;
15071 *)
15072 validate_tzpath "$withval"
15073 TZPATH="$withval"
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
15075 printf "%s\n" "\"$withval\"" >&6; }
15076 ;;
15077 esac
15078
15079 else case e in #(
15080 e) validate_tzpath "$TZPATH"
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
15082 printf "%s\n" "\"$TZPATH\"" >&6; } ;;
15083 esac
15084 fi
15085
15086
15087
15088 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
15090 printf %s "checking for t_open in -lnsl... " >&6; }
15091 if test ${ac_cv_lib_nsl_t_open+y}
15092 then :
15093 printf %s "(cached) " >&6
15094 else case e in #(
15095 e) ac_check_lib_save_LIBS=$LIBS
15096 LIBS="-lnsl $LIBS"
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply.
15103 The 'extern "C"' is for builds by C++ compilers;
15104 although this is not generally supported in C code supporting it here
15105 has little cost and some practical benefit (sr 110532). */
15106 #ifdef __cplusplus
15107 extern "C"
15108 #endif
15109 char t_open (void);
15110 int
15111 main (void)
15112 {
15113 return t_open ();
15114 ;
15115 return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_link "$LINENO"
15119 then :
15120 ac_cv_lib_nsl_t_open=yes
15121 else case e in #(
15122 e) ac_cv_lib_nsl_t_open=no ;;
15123 esac
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15126 conftest$ac_exeext conftest.$ac_ext
15127 LIBS=$ac_check_lib_save_LIBS ;;
15128 esac
15129 fi
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
15131 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
15132 if test "x$ac_cv_lib_nsl_t_open" = xyes
15133 then :
15134 LIBS="-lnsl $LIBS"
15135 fi
15136 # SVR4
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15138 printf %s "checking for socket in -lsocket... " >&6; }
15139 if test ${ac_cv_lib_socket_socket+y}
15140 then :
15141 printf %s "(cached) " >&6
15142 else case e in #(
15143 e) ac_check_lib_save_LIBS=$LIBS
15144 LIBS="-lsocket $LIBS $LIBS"
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply.
15151 The 'extern "C"' is for builds by C++ compilers;
15152 although this is not generally supported in C code supporting it here
15153 has little cost and some practical benefit (sr 110532). */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 char socket (void);
15158 int
15159 main (void)
15160 {
15161 return socket ();
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_link "$LINENO"
15167 then :
15168 ac_cv_lib_socket_socket=yes
15169 else case e in #(
15170 e) ac_cv_lib_socket_socket=no ;;
15171 esac
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS ;;
15176 esac
15177 fi
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15179 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
15180 if test "x$ac_cv_lib_socket_socket" = xyes
15181 then :
15182 LIBS="-lsocket $LIBS"
15183 fi
15184 # SVR4 sockets
15185
15186 case $ac_sys_system/$ac_sys_release in
15187 Haiku*)
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
15189 printf %s "checking for socket in -lnetwork... " >&6; }
15190 if test ${ac_cv_lib_network_socket+y}
15191 then :
15192 printf %s "(cached) " >&6
15193 else case e in #(
15194 e) ac_check_lib_save_LIBS=$LIBS
15195 LIBS="-lnetwork $LIBS $LIBS"
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply.
15202 The 'extern "C"' is for builds by C++ compilers;
15203 although this is not generally supported in C code supporting it here
15204 has little cost and some practical benefit (sr 110532). */
15205 #ifdef __cplusplus
15206 extern "C"
15207 #endif
15208 char socket (void);
15209 int
15210 main (void)
15211 {
15212 return socket ();
15213 ;
15214 return 0;
15215 }
15216 _ACEOF
15217 if ac_fn_c_try_link "$LINENO"
15218 then :
15219 ac_cv_lib_network_socket=yes
15220 else case e in #(
15221 e) ac_cv_lib_network_socket=no ;;
15222 esac
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS ;;
15227 esac
15228 fi
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
15230 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
15231 if test "x$ac_cv_lib_network_socket" = xyes
15232 then :
15233 LIBS="-lnetwork $LIBS"
15234 fi
15235
15236 ;;
15237 esac
15238
15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
15240 printf %s "checking for --with-libs... " >&6; }
15241
15242 # Check whether --with-libs was given.
15243 if test ${with_libs+y}
15244 then :
15245 withval=$with_libs;
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
15247 printf "%s\n" "$withval" >&6; }
15248 LIBS="$withval $LIBS"
15249
15250 else case e in #(
15251 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 printf "%s\n" "no" >&6; } ;;
15253 esac
15254 fi
15255
15256
15257 # Check for use of the system expat library
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
15259 printf %s "checking for --with-system-expat... " >&6; }
15260
15261 # Check whether --with-system_expat was given.
15262 if test ${with_system_expat+y}
15263 then :
15264 withval=$with_system_expat;
15265 else case e in #(
15266 e) with_system_expat="no" ;;
15267 esac
15268 fi
15269
15270
15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
15272 printf "%s\n" "$with_system_expat" >&6; }
15273
15274 if test "x$with_system_expat" = xyes
15275 then :
15276
15277 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""}
15278 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"}
15279 LIBEXPAT_INTERNAL=
15280
15281 else case e in #(
15282 e)
15283 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat"
15284 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)"
15285 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
15286 ;;
15287 esac
15288 fi
15289
15290
15291
15292
15293 have_libffi=missing
15294 if test "x$ac_sys_system" = xDarwin
15295 then :
15296
15297 save_CFLAGS=$CFLAGS
15298 save_CPPFLAGS=$CPPFLAGS
15299 save_LDFLAGS=$LDFLAGS
15300 save_LIBS=$LIBS
15301
15302
15303 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS"
15304 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_ffi_h" = xyes
15306 then :
15307
15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15309 printf %s "checking for ffi_call in -lffi... " >&6; }
15310 if test ${ac_cv_lib_ffi_ffi_call+y}
15311 then :
15312 printf %s "(cached) " >&6
15313 else case e in #(
15314 e) ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-lffi $LIBS"
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply.
15322 The 'extern "C"' is for builds by C++ compilers;
15323 although this is not generally supported in C code supporting it here
15324 has little cost and some practical benefit (sr 110532). */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char ffi_call (void);
15329 int
15330 main (void)
15331 {
15332 return ffi_call ();
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"
15338 then :
15339 ac_cv_lib_ffi_ffi_call=yes
15340 else case e in #(
15341 e) ac_cv_lib_ffi_ffi_call=no ;;
15342 esac
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15345 conftest$ac_exeext conftest.$ac_ext
15346 LIBS=$ac_check_lib_save_LIBS ;;
15347 esac
15348 fi
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15350 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15351 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15352 then :
15353
15354 have_libffi=yes
15355 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
15356 LIBFFI_LIBS="-lffi"
15357
15358 fi
15359
15360
15361 fi
15362
15363
15364 CFLAGS=$save_CFLAGS
15365 CPPFLAGS=$save_CPPFLAGS
15366 LDFLAGS=$save_LDFLAGS
15367 LIBS=$save_LIBS
15368
15369
15370
15371 fi
15372 if test "x$have_libffi" = xmissing
15373 then :
15374
15375
15376 pkg_failed=no
15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
15378 printf %s "checking for libffi... " >&6; }
15379
15380 if test -n "$LIBFFI_CFLAGS"; then
15381 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
15382 elif test -n "$PKG_CONFIG"; then
15383 if test -n "$PKG_CONFIG" && \
15384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15385 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15386 ac_status=$?
15387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15388 test $ac_status = 0; }; then
15389 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
15390 test "x$?" != "x0" && pkg_failed=yes
15391 else
15392 pkg_failed=yes
15393 fi
15394 else
15395 pkg_failed=untried
15396 fi
15397 if test -n "$LIBFFI_LIBS"; then
15398 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
15399 elif test -n "$PKG_CONFIG"; then
15400 if test -n "$PKG_CONFIG" && \
15401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
15402 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
15403 ac_status=$?
15404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 test $ac_status = 0; }; then
15406 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
15407 test "x$?" != "x0" && pkg_failed=yes
15408 else
15409 pkg_failed=yes
15410 fi
15411 else
15412 pkg_failed=untried
15413 fi
15414
15415
15416
15417 if test $pkg_failed = yes; then
15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 printf "%s\n" "no" >&6; }
15420
15421 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15422 _pkg_short_errors_supported=yes
15423 else
15424 _pkg_short_errors_supported=no
15425 fi
15426 if test $_pkg_short_errors_supported = yes; then
15427 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
15428 else
15429 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
15430 fi
15431 # Put the nasty error message in config.log where it belongs
15432 echo "$LIBFFI_PKG_ERRORS" >&5
15433
15434
15435 save_CFLAGS=$CFLAGS
15436 save_CPPFLAGS=$CPPFLAGS
15437 save_LDFLAGS=$LDFLAGS
15438 save_LIBS=$LIBS
15439
15440
15441 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15442 LIBS="$LIBS $LIBFFI_LIBS"
15443 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15444 if test "x$ac_cv_header_ffi_h" = xyes
15445 then :
15446
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15448 printf %s "checking for ffi_call in -lffi... " >&6; }
15449 if test ${ac_cv_lib_ffi_ffi_call+y}
15450 then :
15451 printf %s "(cached) " >&6
15452 else case e in #(
15453 e) ac_check_lib_save_LIBS=$LIBS
15454 LIBS="-lffi $LIBS"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply.
15461 The 'extern "C"' is for builds by C++ compilers;
15462 although this is not generally supported in C code supporting it here
15463 has little cost and some practical benefit (sr 110532). */
15464 #ifdef __cplusplus
15465 extern "C"
15466 #endif
15467 char ffi_call (void);
15468 int
15469 main (void)
15470 {
15471 return ffi_call ();
15472 ;
15473 return 0;
15474 }
15475 _ACEOF
15476 if ac_fn_c_try_link "$LINENO"
15477 then :
15478 ac_cv_lib_ffi_ffi_call=yes
15479 else case e in #(
15480 e) ac_cv_lib_ffi_ffi_call=no ;;
15481 esac
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS ;;
15486 esac
15487 fi
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15489 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15490 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15491 then :
15492
15493 have_libffi=yes
15494 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
15495 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
15496
15497 else case e in #(
15498 e) have_libffi=no ;;
15499 esac
15500 fi
15501
15502
15503 fi
15504
15505
15506 CFLAGS=$save_CFLAGS
15507 CPPFLAGS=$save_CPPFLAGS
15508 LDFLAGS=$save_LDFLAGS
15509 LIBS=$save_LIBS
15510
15511
15512
15513 elif test $pkg_failed = untried; then
15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15515 printf "%s\n" "no" >&6; }
15516
15517 save_CFLAGS=$CFLAGS
15518 save_CPPFLAGS=$CPPFLAGS
15519 save_LDFLAGS=$LDFLAGS
15520 save_LIBS=$LIBS
15521
15522
15523 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15524 LIBS="$LIBS $LIBFFI_LIBS"
15525 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
15526 if test "x$ac_cv_header_ffi_h" = xyes
15527 then :
15528
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
15530 printf %s "checking for ffi_call in -lffi... " >&6; }
15531 if test ${ac_cv_lib_ffi_ffi_call+y}
15532 then :
15533 printf %s "(cached) " >&6
15534 else case e in #(
15535 e) ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lffi $LIBS"
15537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply.
15543 The 'extern "C"' is for builds by C++ compilers;
15544 although this is not generally supported in C code supporting it here
15545 has little cost and some practical benefit (sr 110532). */
15546 #ifdef __cplusplus
15547 extern "C"
15548 #endif
15549 char ffi_call (void);
15550 int
15551 main (void)
15552 {
15553 return ffi_call ();
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"
15559 then :
15560 ac_cv_lib_ffi_ffi_call=yes
15561 else case e in #(
15562 e) ac_cv_lib_ffi_ffi_call=no ;;
15563 esac
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15566 conftest$ac_exeext conftest.$ac_ext
15567 LIBS=$ac_check_lib_save_LIBS ;;
15568 esac
15569 fi
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
15571 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
15572 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
15573 then :
15574
15575 have_libffi=yes
15576 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""}
15577 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"}
15578
15579 else case e in #(
15580 e) have_libffi=no ;;
15581 esac
15582 fi
15583
15584
15585 fi
15586
15587
15588 CFLAGS=$save_CFLAGS
15589 CPPFLAGS=$save_CPPFLAGS
15590 LDFLAGS=$save_LDFLAGS
15591 LIBS=$save_LIBS
15592
15593
15594
15595 else
15596 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
15597 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15599 printf "%s\n" "yes" >&6; }
15600 have_libffi=yes
15601 fi
15602
15603 fi
15604
15605 if test "x$have_libffi" = xyes
15606 then :
15607
15608 ctypes_malloc_closure=no
15609 case $ac_sys_system in #(
15610 Darwin) :
15611
15612 ctypes_malloc_closure=yes
15613 ;; #(
15614 iOS) :
15615
15616 ctypes_malloc_closure=yes
15617 ;; #(
15618 sunos5) :
15619 as_fn_append LIBFFI_LIBS " -mimpure-text"
15620 ;; #(
15621 *) :
15622 ;;
15623 esac
15624 if test "x$ctypes_malloc_closure" = xyes
15625 then :
15626
15627 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c
15628 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1"
15629
15630 fi
15631
15632
15633 if test "x$ac_cv_lib_dl_dlopen" = xyes
15634 then :
15635 as_fn_append LIBFFI_LIBS " -ldl"
15636 fi
15637
15638 save_CFLAGS=$CFLAGS
15639 save_CPPFLAGS=$CPPFLAGS
15640 save_LDFLAGS=$LDFLAGS
15641 save_LIBS=$LIBS
15642
15643
15644 CFLAGS="$CFLAGS $LIBFFI_CFLAGS"
15645 LIBS="$LIBS $LIBFFI_LIBS"
15646
15647
15648
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
15650 printf %s "checking for ffi_prep_cif_var... " >&6; }
15651 if test ${ac_cv_func_ffi_prep_cif_var+y}
15652 then :
15653 printf %s "(cached) " >&6
15654 else case e in #(
15655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 #include <ffi.h>
15658 int
15659 main (void)
15660 {
15661 void *x=ffi_prep_cif_var
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_compile "$LINENO"
15667 then :
15668 ac_cv_func_ffi_prep_cif_var=yes
15669 else case e in #(
15670 e) ac_cv_func_ffi_prep_cif_var=no ;;
15671 esac
15672 fi
15673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15674 ;;
15675 esac
15676 fi
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
15678 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
15679 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
15680 then :
15681
15682 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
15683
15684 fi
15685
15686
15687
15688
15689
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
15691 printf %s "checking for ffi_prep_closure_loc... " >&6; }
15692 if test ${ac_cv_func_ffi_prep_closure_loc+y}
15693 then :
15694 printf %s "(cached) " >&6
15695 else case e in #(
15696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <ffi.h>
15699 int
15700 main (void)
15701 {
15702 void *x=ffi_prep_closure_loc
15703 ;
15704 return 0;
15705 }
15706 _ACEOF
15707 if ac_fn_c_try_compile "$LINENO"
15708 then :
15709 ac_cv_func_ffi_prep_closure_loc=yes
15710 else case e in #(
15711 e) ac_cv_func_ffi_prep_closure_loc=no ;;
15712 esac
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15715 ;;
15716 esac
15717 fi
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
15719 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
15720 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
15721 then :
15722
15723 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
15724
15725 fi
15726
15727
15728
15729
15730
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
15732 printf %s "checking for ffi_closure_alloc... " >&6; }
15733 if test ${ac_cv_func_ffi_closure_alloc+y}
15734 then :
15735 printf %s "(cached) " >&6
15736 else case e in #(
15737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739 #include <ffi.h>
15740 int
15741 main (void)
15742 {
15743 void *x=ffi_closure_alloc
15744 ;
15745 return 0;
15746 }
15747 _ACEOF
15748 if ac_fn_c_try_compile "$LINENO"
15749 then :
15750 ac_cv_func_ffi_closure_alloc=yes
15751 else case e in #(
15752 e) ac_cv_func_ffi_closure_alloc=no ;;
15753 esac
15754 fi
15755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15756 ;;
15757 esac
15758 fi
15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
15760 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
15761 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
15762 then :
15763
15764 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
15765
15766 fi
15767
15768
15769
15770
15771 CFLAGS=$save_CFLAGS
15772 CPPFLAGS=$save_CPPFLAGS
15773 LDFLAGS=$save_LDFLAGS
15774 LIBS=$save_LIBS
15775
15776
15777
15778 fi
15779
15780 # Check for libffi with real complex double support.
15781 # This is a workaround, since FFI_TARGET_HAS_COMPLEX_TYPE was defined in libffi v3.2.1,
15782 # but real support was provided only in libffi v3.3.0.
15783 # See https://github.com/python/cpython/issues/125206 for more details.
15784 #
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libffi has complex type support" >&5
15786 printf %s "checking libffi has complex type support... " >&6; }
15787 if test ${ac_cv_ffi_complex_double_supported+y}
15788 then :
15789 printf %s "(cached) " >&6
15790 else case e in #(
15791 e) save_CFLAGS=$CFLAGS
15792 save_CPPFLAGS=$CPPFLAGS
15793 save_LDFLAGS=$LDFLAGS
15794 save_LIBS=$LIBS
15795
15796
15797 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS"
15798 LIBS="$LIBS $LIBFFI_LIBS"
15799 if test "$cross_compiling" = yes
15800 then :
15801 ac_cv_ffi_complex_double_supported=no
15802 else case e in #(
15803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805
15806 #include <complex.h>
15807 #include <ffi.h>
15808 int z_is_expected(double complex z)
15809 {
15810 const double complex expected = 1.25 - 0.5 * I;
15811 return z == expected;
15812 }
15813 int main(void)
15814 {
15815 double complex z = 1.25 - 0.5 * I;
15816 ffi_type *args[1] = {&ffi_type_complex_double};
15817 void *values[1] = {&z};
15818 ffi_cif cif;
15819 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
15820 &ffi_type_sint, args) != FFI_OK)
15821 {
15822 return 2;
15823 }
15824 ffi_arg rc;
15825 ffi_call(&cif, FFI_FN(z_is_expected), &rc, values);
15826 return !rc;
15827 }
15828
15829 _ACEOF
15830 if ac_fn_c_try_run "$LINENO"
15831 then :
15832 ac_cv_ffi_complex_double_supported=yes
15833 else case e in #(
15834 e) ac_cv_ffi_complex_double_supported=no ;;
15835 esac
15836 fi
15837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15838 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15839 esac
15840 fi
15841
15842
15843 CFLAGS=$save_CFLAGS
15844 CPPFLAGS=$save_CPPFLAGS
15845 LDFLAGS=$save_LDFLAGS
15846 LIBS=$save_LIBS
15847
15848 ;;
15849 esac
15850 fi
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ffi_complex_double_supported" >&5
15852 printf "%s\n" "$ac_cv_ffi_complex_double_supported" >&6; }
15853 if test "$ac_cv_ffi_complex_double_supported" = "yes"; then
15854
15855 printf "%s\n" "#define _Py_FFI_SUPPORT_C_COMPLEX 1" >>confdefs.h
15856
15857 fi
15858
15859 # Check for use of the system libmpdec library
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
15861 printf %s "checking for --with-system-libmpdec... " >&6; }
15862
15863 # Check whether --with-system_libmpdec was given.
15864 if test ${with_system_libmpdec+y}
15865 then :
15866 withval=$with_system_libmpdec;
15867 else case e in #(
15868 e) with_system_libmpdec="yes" ;;
15869 esac
15870 fi
15871
15872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
15873 printf "%s\n" "$with_system_libmpdec" >&6; }
15874
15875
15876
15877 if test "x$with_system_libmpdec" = xyes
15878 then :
15879
15880 pkg_failed=no
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec >= 2.5.0" >&5
15882 printf %s "checking for libmpdec >= 2.5.0... " >&6; }
15883
15884 if test -n "$LIBMPDEC_CFLAGS"; then
15885 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS"
15886 elif test -n "$PKG_CONFIG"; then
15887 if test -n "$PKG_CONFIG" && \
15888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15889 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15890 ac_status=$?
15891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; then
15893 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec >= 2.5.0" 2>/dev/null`
15894 test "x$?" != "x0" && pkg_failed=yes
15895 else
15896 pkg_failed=yes
15897 fi
15898 else
15899 pkg_failed=untried
15900 fi
15901 if test -n "$LIBMPDEC_LIBS"; then
15902 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS"
15903 elif test -n "$PKG_CONFIG"; then
15904 if test -n "$PKG_CONFIG" && \
15905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5
15906 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5
15907 ac_status=$?
15908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909 test $ac_status = 0; }; then
15910 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec >= 2.5.0" 2>/dev/null`
15911 test "x$?" != "x0" && pkg_failed=yes
15912 else
15913 pkg_failed=yes
15914 fi
15915 else
15916 pkg_failed=untried
15917 fi
15918
15919
15920
15921 if test $pkg_failed = yes; then
15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923 printf "%s\n" "no" >&6; }
15924
15925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15926 _pkg_short_errors_supported=yes
15927 else
15928 _pkg_short_errors_supported=no
15929 fi
15930 if test $_pkg_short_errors_supported = yes; then
15931 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
15932 else
15933 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1`
15934 fi
15935 # Put the nasty error message in config.log where it belongs
15936 echo "$LIBMPDEC_PKG_ERRORS" >&5
15937
15938 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
15939 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
15940 LIBMPDEC_INTERNAL=
15941 elif test $pkg_failed = untried; then
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 printf "%s\n" "no" >&6; }
15944 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""}
15945 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"}
15946 LIBMPDEC_INTERNAL=
15947 else
15948 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS
15949 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951 printf "%s\n" "yes" >&6; }
15952
15953 fi
15954 else case e in #(
15955 e) LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
15956 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
15957 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
15958 have_mpdec=yes
15959 with_system_libmpdec=no ;;
15960 esac
15961 fi
15962
15963 if test "x$with_system_libmpdec" = xyes
15964 then :
15965 save_CFLAGS=$CFLAGS
15966 save_CPPFLAGS=$CPPFLAGS
15967 save_LDFLAGS=$LDFLAGS
15968 save_LIBS=$LIBS
15969
15970
15971 CPPFLAGS="$CPPFLAGS $LIBMPDEC_CFLAGS"
15972 LIBS="$LIBS $LIBMPDEC_LIBS"
15973
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976
15977
15978 #include <mpdecimal.h>
15979 #if MPD_VERSION_HEX < 0x02050000
15980 # error "mpdecimal 2.5.0 or higher required"
15981 #endif
15982
15983 int
15984 main (void)
15985 {
15986 const char *x = mpd_version();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"
15992 then :
15993 have_mpdec=yes
15994 else case e in #(
15995 e) have_mpdec=no ;;
15996 esac
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15999 conftest$ac_exeext conftest.$ac_ext
16000
16001 CFLAGS=$save_CFLAGS
16002 CPPFLAGS=$save_CPPFLAGS
16003 LDFLAGS=$save_LDFLAGS
16004 LIBS=$save_LIBS
16005
16006
16007 else case e in #(
16008 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
16009 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;} ;;
16010 esac
16011 fi
16012
16013 if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no"
16014 then :
16015 { 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
16016 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;}
16017 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec"
16018 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)"
16019 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
16020 have_mpdec=yes
16021 with_system_libmpdec=no
16022 fi
16023
16024 # Disable forced inlining in debug builds, see GH-94847
16025 if test "x$with_pydebug" = xyes
16026 then :
16027 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
16028 fi
16029
16030 # Check whether _decimal should use a coroutine-local or thread-local context
16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
16032 printf %s "checking for --with-decimal-contextvar... " >&6; }
16033
16034 # Check whether --with-decimal_contextvar was given.
16035 if test ${with_decimal_contextvar+y}
16036 then :
16037 withval=$with_decimal_contextvar;
16038 else case e in #(
16039 e) with_decimal_contextvar="yes" ;;
16040 esac
16041 fi
16042
16043
16044 if test "$with_decimal_contextvar" != "no"
16045 then
16046
16047 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
16048
16049 fi
16050
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
16052 printf "%s\n" "$with_decimal_contextvar" >&6; }
16053
16054 if test "x$with_system_libmpdec" = xno
16055 then :
16056 # Check for libmpdec machine flavor
16057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
16058 printf %s "checking for decimal libmpdec machine... " >&6; }
16059 case $ac_sys_system in #(
16060 Darwin*) :
16061 libmpdec_system=Darwin ;; #(
16062 SunOS*) :
16063 libmpdec_system=sunos ;; #(
16064 *) :
16065 libmpdec_system=other
16066 ;;
16067 esac
16068
16069 libmpdec_machine=unknown
16070 if test "$libmpdec_system" = Darwin; then
16071 # universal here means: build libmpdec with the same arch options
16072 # the python interpreter was built with
16073 libmpdec_machine=universal
16074 elif test $ac_cv_sizeof_size_t -eq 8; then
16075 if test "$ac_cv_gcc_asm_for_x64" = yes; then
16076 libmpdec_machine=x64
16077 elif test "$ac_cv_type___uint128_t" = yes; then
16078 libmpdec_machine=uint128
16079 else
16080 libmpdec_machine=ansi64
16081 fi
16082 elif test $ac_cv_sizeof_size_t -eq 4; then
16083 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then
16084 case $ac_cv_cc_name in #(
16085 *gcc*) :
16086 libmpdec_machine=ppro ;; #(
16087 *clang*) :
16088 libmpdec_machine=ppro ;; #(
16089 *) :
16090 libmpdec_machine=ansi32
16091 ;;
16092 esac
16093 else
16094 libmpdec_machine=ansi32
16095 fi
16096 fi
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
16098 printf "%s\n" "$libmpdec_machine" >&6; }
16099
16100 case $libmpdec_machine in #(
16101 x64) :
16102 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #(
16103 uint128) :
16104 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
16105 ansi64) :
16106 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #(
16107 ppro) :
16108 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
16109 ansi32) :
16110 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #(
16111 ansi-legacy) :
16112 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
16113 universal) :
16114 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #(
16115 *) :
16116 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5
16117 ;;
16118 esac
16119 fi
16120
16121 if test "$have_ipa_pure_const_bug" = yes; then
16122 # Some versions of gcc miscompile inline asm:
16123 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
16124 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16125 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const"
16126 fi
16127
16128 if test "$have_glibc_memmove_bug" = yes; then
16129 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16130 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16131 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE"
16132 fi
16133
16134
16135
16136
16137
16138
16139
16140
16141 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
16142 then :
16143
16144 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3"
16145 LIBSQLITE3_LIBS="-sUSE_SQLITE3"
16146
16147 fi
16148
16149
16150
16151
16152
16153 pkg_failed=no
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
16155 printf %s "checking for sqlite3 >= 3.15.2... " >&6; }
16156
16157 if test -n "$LIBSQLITE3_CFLAGS"; then
16158 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS"
16159 elif test -n "$PKG_CONFIG"; then
16160 if test -n "$PKG_CONFIG" && \
16161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
16162 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
16163 ac_status=$?
16164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; then
16166 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
16167 test "x$?" != "x0" && pkg_failed=yes
16168 else
16169 pkg_failed=yes
16170 fi
16171 else
16172 pkg_failed=untried
16173 fi
16174 if test -n "$LIBSQLITE3_LIBS"; then
16175 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS"
16176 elif test -n "$PKG_CONFIG"; then
16177 if test -n "$PKG_CONFIG" && \
16178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
16179 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
16180 ac_status=$?
16181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16182 test $ac_status = 0; }; then
16183 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
16184 test "x$?" != "x0" && pkg_failed=yes
16185 else
16186 pkg_failed=yes
16187 fi
16188 else
16189 pkg_failed=untried
16190 fi
16191
16192
16193
16194 if test $pkg_failed = yes; then
16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 printf "%s\n" "no" >&6; }
16197
16198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16199 _pkg_short_errors_supported=yes
16200 else
16201 _pkg_short_errors_supported=no
16202 fi
16203 if test $_pkg_short_errors_supported = yes; then
16204 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
16205 else
16206 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
16207 fi
16208 # Put the nasty error message in config.log where it belongs
16209 echo "$LIBSQLITE3_PKG_ERRORS" >&5
16210
16211
16212 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
16213 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
16214
16215
16216 elif test $pkg_failed = untried; then
16217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218 printf "%s\n" "no" >&6; }
16219
16220 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""}
16221 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"}
16222
16223
16224 else
16225 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS
16226 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228 printf "%s\n" "yes" >&6; }
16229
16230 fi
16231 as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite'
16232
16233
16234
16235 save_CFLAGS=$CFLAGS
16236 save_CPPFLAGS=$CPPFLAGS
16237 save_LDFLAGS=$LDFLAGS
16238 save_LIBS=$LIBS
16239
16240
16241 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS"
16242 LIBS="$LIBS $LIBSQLITE3_LIBS"
16243
16244 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
16245 if test "x$ac_cv_header_sqlite3_h" = xyes
16246 then :
16247
16248 have_sqlite3=yes
16249
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252
16253
16254 #include <sqlite3.h>
16255 #if SQLITE_VERSION_NUMBER < 3015002
16256 # error "SQLite 3.15.2 or higher required"
16257 #endif
16258
16259 int
16260 main (void)
16261 {
16262
16263 ;
16264 return 0;
16265 }
16266
16267 _ACEOF
16268 if ac_fn_c_try_compile "$LINENO"
16269 then :
16270
16271 have_supported_sqlite3=yes
16272
16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
16274 printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; }
16275 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
16276 then :
16277 printf %s "(cached) " >&6
16278 else case e in #(
16279 e) ac_check_lib_save_LIBS=$LIBS
16280 LIBS="-lsqlite3 $LIBS"
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply.
16287 The 'extern "C"' is for builds by C++ compilers;
16288 although this is not generally supported in C code supporting it here
16289 has little cost and some practical benefit (sr 110532). */
16290 #ifdef __cplusplus
16291 extern "C"
16292 #endif
16293 char sqlite3_bind_double (void);
16294 int
16295 main (void)
16296 {
16297 return sqlite3_bind_double ();
16298 ;
16299 return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_c_try_link "$LINENO"
16303 then :
16304 ac_cv_lib_sqlite3_sqlite3_bind_double=yes
16305 else case e in #(
16306 e) ac_cv_lib_sqlite3_sqlite3_bind_double=no ;;
16307 esac
16308 fi
16309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16310 conftest$ac_exeext conftest.$ac_ext
16311 LIBS=$ac_check_lib_save_LIBS ;;
16312 esac
16313 fi
16314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
16315 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
16316 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
16317 then :
16318 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16319
16320 LIBS="-lsqlite3 $LIBS"
16321
16322 else case e in #(
16323 e)
16324 have_supported_sqlite3=no
16325 ;;
16326 esac
16327 fi
16328
16329
16330
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
16332 printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
16333 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
16334 then :
16335 printf %s "(cached) " >&6
16336 else case e in #(
16337 e) ac_check_lib_save_LIBS=$LIBS
16338 LIBS="-lsqlite3 $LIBS"
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341
16342 /* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply.
16345 The 'extern "C"' is for builds by C++ compilers;
16346 although this is not generally supported in C code supporting it here
16347 has little cost and some practical benefit (sr 110532). */
16348 #ifdef __cplusplus
16349 extern "C"
16350 #endif
16351 char sqlite3_column_decltype (void);
16352 int
16353 main (void)
16354 {
16355 return sqlite3_column_decltype ();
16356 ;
16357 return 0;
16358 }
16359 _ACEOF
16360 if ac_fn_c_try_link "$LINENO"
16361 then :
16362 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes
16363 else case e in #(
16364 e) ac_cv_lib_sqlite3_sqlite3_column_decltype=no ;;
16365 esac
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16368 conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS ;;
16370 esac
16371 fi
16372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
16373 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
16374 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
16375 then :
16376 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16377
16378 LIBS="-lsqlite3 $LIBS"
16379
16380 else case e in #(
16381 e)
16382 have_supported_sqlite3=no
16383 ;;
16384 esac
16385 fi
16386
16387
16388
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
16390 printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; }
16391 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
16392 then :
16393 printf %s "(cached) " >&6
16394 else case e in #(
16395 e) ac_check_lib_save_LIBS=$LIBS
16396 LIBS="-lsqlite3 $LIBS"
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply.
16403 The 'extern "C"' is for builds by C++ compilers;
16404 although this is not generally supported in C code supporting it here
16405 has little cost and some practical benefit (sr 110532). */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char sqlite3_column_double (void);
16410 int
16411 main (void)
16412 {
16413 return sqlite3_column_double ();
16414 ;
16415 return 0;
16416 }
16417 _ACEOF
16418 if ac_fn_c_try_link "$LINENO"
16419 then :
16420 ac_cv_lib_sqlite3_sqlite3_column_double=yes
16421 else case e in #(
16422 e) ac_cv_lib_sqlite3_sqlite3_column_double=no ;;
16423 esac
16424 fi
16425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16426 conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS ;;
16428 esac
16429 fi
16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
16431 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
16432 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
16433 then :
16434 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16435
16436 LIBS="-lsqlite3 $LIBS"
16437
16438 else case e in #(
16439 e)
16440 have_supported_sqlite3=no
16441 ;;
16442 esac
16443 fi
16444
16445
16446
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
16448 printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; }
16449 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
16450 then :
16451 printf %s "(cached) " >&6
16452 else case e in #(
16453 e) ac_check_lib_save_LIBS=$LIBS
16454 LIBS="-lsqlite3 $LIBS"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply.
16461 The 'extern "C"' is for builds by C++ compilers;
16462 although this is not generally supported in C code supporting it here
16463 has little cost and some practical benefit (sr 110532). */
16464 #ifdef __cplusplus
16465 extern "C"
16466 #endif
16467 char sqlite3_complete (void);
16468 int
16469 main (void)
16470 {
16471 return sqlite3_complete ();
16472 ;
16473 return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"
16477 then :
16478 ac_cv_lib_sqlite3_sqlite3_complete=yes
16479 else case e in #(
16480 e) ac_cv_lib_sqlite3_sqlite3_complete=no ;;
16481 esac
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16484 conftest$ac_exeext conftest.$ac_ext
16485 LIBS=$ac_check_lib_save_LIBS ;;
16486 esac
16487 fi
16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
16489 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
16490 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
16491 then :
16492 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16493
16494 LIBS="-lsqlite3 $LIBS"
16495
16496 else case e in #(
16497 e)
16498 have_supported_sqlite3=no
16499 ;;
16500 esac
16501 fi
16502
16503
16504
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
16506 printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
16507 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
16508 then :
16509 printf %s "(cached) " >&6
16510 else case e in #(
16511 e) ac_check_lib_save_LIBS=$LIBS
16512 LIBS="-lsqlite3 $LIBS"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515
16516 /* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply.
16519 The 'extern "C"' is for builds by C++ compilers;
16520 although this is not generally supported in C code supporting it here
16521 has little cost and some practical benefit (sr 110532). */
16522 #ifdef __cplusplus
16523 extern "C"
16524 #endif
16525 char sqlite3_progress_handler (void);
16526 int
16527 main (void)
16528 {
16529 return sqlite3_progress_handler ();
16530 ;
16531 return 0;
16532 }
16533 _ACEOF
16534 if ac_fn_c_try_link "$LINENO"
16535 then :
16536 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes
16537 else case e in #(
16538 e) ac_cv_lib_sqlite3_sqlite3_progress_handler=no ;;
16539 esac
16540 fi
16541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16542 conftest$ac_exeext conftest.$ac_ext
16543 LIBS=$ac_check_lib_save_LIBS ;;
16544 esac
16545 fi
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
16547 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
16548 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
16549 then :
16550 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16551
16552 LIBS="-lsqlite3 $LIBS"
16553
16554 else case e in #(
16555 e)
16556 have_supported_sqlite3=no
16557 ;;
16558 esac
16559 fi
16560
16561
16562
16563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
16564 printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; }
16565 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
16566 then :
16567 printf %s "(cached) " >&6
16568 else case e in #(
16569 e) ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lsqlite3 $LIBS"
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573
16574 /* Override any GCC internal prototype to avoid an error.
16575 Use char because int might match the return type of a GCC
16576 builtin and then its argument prototype would still apply.
16577 The 'extern "C"' is for builds by C++ compilers;
16578 although this is not generally supported in C code supporting it here
16579 has little cost and some practical benefit (sr 110532). */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char sqlite3_result_double (void);
16584 int
16585 main (void)
16586 {
16587 return sqlite3_result_double ();
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"
16593 then :
16594 ac_cv_lib_sqlite3_sqlite3_result_double=yes
16595 else case e in #(
16596 e) ac_cv_lib_sqlite3_sqlite3_result_double=no ;;
16597 esac
16598 fi
16599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16600 conftest$ac_exeext conftest.$ac_ext
16601 LIBS=$ac_check_lib_save_LIBS ;;
16602 esac
16603 fi
16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
16605 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
16606 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
16607 then :
16608 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16609
16610 LIBS="-lsqlite3 $LIBS"
16611
16612 else case e in #(
16613 e)
16614 have_supported_sqlite3=no
16615 ;;
16616 esac
16617 fi
16618
16619
16620
16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
16622 printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
16623 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
16624 then :
16625 printf %s "(cached) " >&6
16626 else case e in #(
16627 e) ac_check_lib_save_LIBS=$LIBS
16628 LIBS="-lsqlite3 $LIBS"
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631
16632 /* Override any GCC internal prototype to avoid an error.
16633 Use char because int might match the return type of a GCC
16634 builtin and then its argument prototype would still apply.
16635 The 'extern "C"' is for builds by C++ compilers;
16636 although this is not generally supported in C code supporting it here
16637 has little cost and some practical benefit (sr 110532). */
16638 #ifdef __cplusplus
16639 extern "C"
16640 #endif
16641 char sqlite3_set_authorizer (void);
16642 int
16643 main (void)
16644 {
16645 return sqlite3_set_authorizer ();
16646 ;
16647 return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_c_try_link "$LINENO"
16651 then :
16652 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes
16653 else case e in #(
16654 e) ac_cv_lib_sqlite3_sqlite3_set_authorizer=no ;;
16655 esac
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16658 conftest$ac_exeext conftest.$ac_ext
16659 LIBS=$ac_check_lib_save_LIBS ;;
16660 esac
16661 fi
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
16663 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
16664 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
16665 then :
16666 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16667
16668 LIBS="-lsqlite3 $LIBS"
16669
16670 else case e in #(
16671 e)
16672 have_supported_sqlite3=no
16673 ;;
16674 esac
16675 fi
16676
16677
16678
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
16680 printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
16681 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else case e in #(
16685 e) ac_check_lib_save_LIBS=$LIBS
16686 LIBS="-lsqlite3 $LIBS"
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply.
16693 The 'extern "C"' is for builds by C++ compilers;
16694 although this is not generally supported in C code supporting it here
16695 has little cost and some practical benefit (sr 110532). */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 char sqlite3_trace_v2 (void);
16700 int
16701 main (void)
16702 {
16703 return sqlite3_trace_v2 ();
16704 ;
16705 return 0;
16706 }
16707 _ACEOF
16708 if ac_fn_c_try_link "$LINENO"
16709 then :
16710 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes
16711 else case e in #(
16712 e) ac_cv_lib_sqlite3_sqlite3_trace_v2=no ;;
16713 esac
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16716 conftest$ac_exeext conftest.$ac_ext
16717 LIBS=$ac_check_lib_save_LIBS ;;
16718 esac
16719 fi
16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
16721 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
16722 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
16723 then :
16724 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16725
16726 LIBS="-lsqlite3 $LIBS"
16727
16728 else case e in #(
16729 e)
16730
16731
16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
16733 printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; }
16734 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
16735 then :
16736 printf %s "(cached) " >&6
16737 else case e in #(
16738 e) ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lsqlite3 $LIBS"
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply.
16746 The 'extern "C"' is for builds by C++ compilers;
16747 although this is not generally supported in C code supporting it here
16748 has little cost and some practical benefit (sr 110532). */
16749 #ifdef __cplusplus
16750 extern "C"
16751 #endif
16752 char sqlite3_trace (void);
16753 int
16754 main (void)
16755 {
16756 return sqlite3_trace ();
16757 ;
16758 return 0;
16759 }
16760 _ACEOF
16761 if ac_fn_c_try_link "$LINENO"
16762 then :
16763 ac_cv_lib_sqlite3_sqlite3_trace=yes
16764 else case e in #(
16765 e) ac_cv_lib_sqlite3_sqlite3_trace=no ;;
16766 esac
16767 fi
16768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16769 conftest$ac_exeext conftest.$ac_ext
16770 LIBS=$ac_check_lib_save_LIBS ;;
16771 esac
16772 fi
16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
16774 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
16775 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
16776 then :
16777 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16778
16779 LIBS="-lsqlite3 $LIBS"
16780
16781 else case e in #(
16782 e)
16783 have_supported_sqlite3=no
16784 ;;
16785 esac
16786 fi
16787
16788
16789
16790 ;;
16791 esac
16792 fi
16793
16794
16795
16796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
16797 printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; }
16798 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
16799 then :
16800 printf %s "(cached) " >&6
16801 else case e in #(
16802 e) ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-lsqlite3 $LIBS"
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806
16807 /* Override any GCC internal prototype to avoid an error.
16808 Use char because int might match the return type of a GCC
16809 builtin and then its argument prototype would still apply.
16810 The 'extern "C"' is for builds by C++ compilers;
16811 although this is not generally supported in C code supporting it here
16812 has little cost and some practical benefit (sr 110532). */
16813 #ifdef __cplusplus
16814 extern "C"
16815 #endif
16816 char sqlite3_value_double (void);
16817 int
16818 main (void)
16819 {
16820 return sqlite3_value_double ();
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 if ac_fn_c_try_link "$LINENO"
16826 then :
16827 ac_cv_lib_sqlite3_sqlite3_value_double=yes
16828 else case e in #(
16829 e) ac_cv_lib_sqlite3_sqlite3_value_double=no ;;
16830 esac
16831 fi
16832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16833 conftest$ac_exeext conftest.$ac_ext
16834 LIBS=$ac_check_lib_save_LIBS ;;
16835 esac
16836 fi
16837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
16838 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
16839 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
16840 then :
16841 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
16842
16843 LIBS="-lsqlite3 $LIBS"
16844
16845 else case e in #(
16846 e)
16847 have_supported_sqlite3=no
16848 ;;
16849 esac
16850 fi
16851
16852
16853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
16854 printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
16855 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
16856 then :
16857 printf %s "(cached) " >&6
16858 else case e in #(
16859 e) ac_check_lib_save_LIBS=$LIBS
16860 LIBS="-lsqlite3 $LIBS"
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863
16864 /* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply.
16867 The 'extern "C"' is for builds by C++ compilers;
16868 although this is not generally supported in C code supporting it here
16869 has little cost and some practical benefit (sr 110532). */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char sqlite3_load_extension (void);
16874 int
16875 main (void)
16876 {
16877 return sqlite3_load_extension ();
16878 ;
16879 return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"
16883 then :
16884 ac_cv_lib_sqlite3_sqlite3_load_extension=yes
16885 else case e in #(
16886 e) ac_cv_lib_sqlite3_sqlite3_load_extension=no ;;
16887 esac
16888 fi
16889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16890 conftest$ac_exeext conftest.$ac_ext
16891 LIBS=$ac_check_lib_save_LIBS ;;
16892 esac
16893 fi
16894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
16895 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
16896 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
16897 then :
16898 have_sqlite3_load_extension=yes
16899 else case e in #(
16900 e) have_sqlite3_load_extension=no
16901 ;;
16902 esac
16903 fi
16904
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
16906 printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; }
16907 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
16908 then :
16909 printf %s "(cached) " >&6
16910 else case e in #(
16911 e) ac_check_lib_save_LIBS=$LIBS
16912 LIBS="-lsqlite3 $LIBS"
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915
16916 /* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply.
16919 The 'extern "C"' is for builds by C++ compilers;
16920 although this is not generally supported in C code supporting it here
16921 has little cost and some practical benefit (sr 110532). */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char sqlite3_serialize (void);
16926 int
16927 main (void)
16928 {
16929 return sqlite3_serialize ();
16930 ;
16931 return 0;
16932 }
16933 _ACEOF
16934 if ac_fn_c_try_link "$LINENO"
16935 then :
16936 ac_cv_lib_sqlite3_sqlite3_serialize=yes
16937 else case e in #(
16938 e) ac_cv_lib_sqlite3_sqlite3_serialize=no ;;
16939 esac
16940 fi
16941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16942 conftest$ac_exeext conftest.$ac_ext
16943 LIBS=$ac_check_lib_save_LIBS ;;
16944 esac
16945 fi
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
16947 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
16948 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
16949 then :
16950
16951
16952 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
16953
16954
16955 fi
16956
16957
16958 else case e in #(
16959 e)
16960 have_supported_sqlite3=no
16961 ;;
16962 esac
16963 fi
16964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16965
16966 fi
16967
16968
16969 CFLAGS=$save_CFLAGS
16970 CPPFLAGS=$save_CPPFLAGS
16971 LDFLAGS=$save_LDFLAGS
16972 LIBS=$save_LIBS
16973
16974
16975
16976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
16977 printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; }
16978 # Check whether --enable-loadable-sqlite-extensions was given.
16979 if test ${enable_loadable_sqlite_extensions+y}
16980 then :
16981 enableval=$enable_loadable_sqlite_extensions;
16982 if test "x$have_sqlite3_load_extension" = xno
16983 then :
16984
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
16986 printf "%s\n" "n/a" >&6; }
16987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
16988 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
16989
16990 else case e in #(
16991 e)
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16993 printf "%s\n" "yes" >&6; }
16994
16995 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
16996
16997 ;;
16998 esac
16999 fi
17000
17001 else case e in #(
17002 e)
17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 printf "%s\n" "no" >&6; }
17005
17006 ;;
17007 esac
17008 fi
17009
17010
17011 found_tcltk=no
17012 for _QUERY in \
17013 "tcl >= 8.5.12 tk >= 8.5.12" \
17014 "tcl8.6 tk8.6" \
17015 "tcl86 tk86" \
17016 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
17017 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
17018 ; do
17019 if test -n "$PKG_CONFIG" && \
17020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17021 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17022 ac_status=$?
17023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17024 test $ac_status = 0; }; then
17025
17026
17027 pkg_failed=no
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
17029 printf %s "checking for $_QUERY... " >&6; }
17030
17031 if test -n "$TCLTK_CFLAGS"; then
17032 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS"
17033 elif test -n "$PKG_CONFIG"; then
17034 if test -n "$PKG_CONFIG" && \
17035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17036 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17037 ac_status=$?
17038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; then
17040 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
17041 test "x$?" != "x0" && pkg_failed=yes
17042 else
17043 pkg_failed=yes
17044 fi
17045 else
17046 pkg_failed=untried
17047 fi
17048 if test -n "$TCLTK_LIBS"; then
17049 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS"
17050 elif test -n "$PKG_CONFIG"; then
17051 if test -n "$PKG_CONFIG" && \
17052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
17053 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
17054 ac_status=$?
17055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17056 test $ac_status = 0; }; then
17057 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
17058 test "x$?" != "x0" && pkg_failed=yes
17059 else
17060 pkg_failed=yes
17061 fi
17062 else
17063 pkg_failed=untried
17064 fi
17065
17066
17067
17068 if test $pkg_failed = yes; then
17069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 printf "%s\n" "no" >&6; }
17071
17072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17073 _pkg_short_errors_supported=yes
17074 else
17075 _pkg_short_errors_supported=no
17076 fi
17077 if test $_pkg_short_errors_supported = yes; then
17078 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
17079 else
17080 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
17081 fi
17082 # Put the nasty error message in config.log where it belongs
17083 echo "$TCLTK_PKG_ERRORS" >&5
17084
17085 found_tcltk=no
17086 elif test $pkg_failed = untried; then
17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 printf "%s\n" "no" >&6; }
17089 found_tcltk=no
17090 else
17091 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS
17092 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS
17093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17094 printf "%s\n" "yes" >&6; }
17095 found_tcltk=yes
17096 fi
17097
17098 fi
17099 if test "x$found_tcltk" = xyes
17100 then :
17101 break
17102 fi
17103 done
17104
17105 if test "x$found_tcltk" = xno
17106 then :
17107
17108 TCLTK_CFLAGS=${TCLTK_CFLAGS-""}
17109 TCLTK_LIBS=${TCLTK_LIBS-""}
17110
17111 fi
17112
17113 case $ac_sys_system in #(
17114 FreeBSD*) :
17115
17116 if test -n "$PKG_CONFIG" && \
17117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17118 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17119 ac_status=$?
17120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17121 test $ac_status = 0; }; then
17122
17123
17124 pkg_failed=no
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
17126 printf %s "checking for x11... " >&6; }
17127
17128 if test -n "$X11_CFLAGS"; then
17129 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
17130 elif test -n "$PKG_CONFIG"; then
17131 if test -n "$PKG_CONFIG" && \
17132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17133 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17134 ac_status=$?
17135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17136 test $ac_status = 0; }; then
17137 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
17138 test "x$?" != "x0" && pkg_failed=yes
17139 else
17140 pkg_failed=yes
17141 fi
17142 else
17143 pkg_failed=untried
17144 fi
17145 if test -n "$X11_LIBS"; then
17146 pkg_cv_X11_LIBS="$X11_LIBS"
17147 elif test -n "$PKG_CONFIG"; then
17148 if test -n "$PKG_CONFIG" && \
17149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
17150 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
17151 ac_status=$?
17152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17153 test $ac_status = 0; }; then
17154 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
17155 test "x$?" != "x0" && pkg_failed=yes
17156 else
17157 pkg_failed=yes
17158 fi
17159 else
17160 pkg_failed=untried
17161 fi
17162
17163
17164
17165 if test $pkg_failed = yes; then
17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 printf "%s\n" "no" >&6; }
17168
17169 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17170 _pkg_short_errors_supported=yes
17171 else
17172 _pkg_short_errors_supported=no
17173 fi
17174 if test $_pkg_short_errors_supported = yes; then
17175 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
17176 else
17177 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
17178 fi
17179 # Put the nasty error message in config.log where it belongs
17180 echo "$X11_PKG_ERRORS" >&5
17181
17182 as_fn_error $? "Package requirements (x11) were not met:
17183
17184 $X11_PKG_ERRORS
17185
17186 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17187 installed software in a non-standard prefix.
17188
17189 Alternatively, you may set the environment variables X11_CFLAGS
17190 and X11_LIBS to avoid the need to call pkg-config.
17191 See the pkg-config man page for more details." "$LINENO" 5
17192 elif test $pkg_failed = untried; then
17193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17194 printf "%s\n" "no" >&6; }
17195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17196 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17197 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17198 is in your PATH or set the PKG_CONFIG environment variable to the full
17199 path to pkg-config.
17200
17201 Alternatively, you may set the environment variables X11_CFLAGS
17202 and X11_LIBS to avoid the need to call pkg-config.
17203 See the pkg-config man page for more details.
17204
17205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17206 See 'config.log' for more details" "$LINENO" 5; }
17207 else
17208 X11_CFLAGS=$pkg_cv_X11_CFLAGS
17209 X11_LIBS=$pkg_cv_X11_LIBS
17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17211 printf "%s\n" "yes" >&6; }
17212
17213 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS"
17214 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS"
17215
17216 fi
17217
17218 fi
17219
17220 ;; #(
17221 *) :
17222 ;;
17223 esac
17224
17225 save_CFLAGS=$CFLAGS
17226 save_CPPFLAGS=$CPPFLAGS
17227 save_LDFLAGS=$LDFLAGS
17228 save_LIBS=$LIBS
17229
17230
17231 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS"
17232 LIBS="$LIBS $TCLTK_LIBS"
17233
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236
17237
17238 #include <tcl.h>
17239 #include <tk.h>
17240 #if defined(TK_HEX_VERSION)
17241 # if TK_HEX_VERSION < 0x0805020c
17242 # error "Tk older than 8.5.12 not supported"
17243 # endif
17244 #endif
17245 #if (TCL_MAJOR_VERSION < 8) || \
17246 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
17247 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
17248 # error "Tcl older than 8.5.12 not supported"
17249 #endif
17250 #if (TK_MAJOR_VERSION < 8) || \
17251 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
17252 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
17253 # error "Tk older than 8.5.12 not supported"
17254 #endif
17255
17256 int
17257 main (void)
17258 {
17259
17260 void *x1 = Tcl_Init;
17261 void *x2 = Tk_Init;
17262
17263 ;
17264 return 0;
17265 }
17266
17267 _ACEOF
17268 if ac_fn_c_try_link "$LINENO"
17269 then :
17270
17271 have_tcltk=yes
17272 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1"
17273
17274 else case e in #(
17275 e)
17276 have_tcltk=no
17277 ;;
17278 esac
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17281 conftest$ac_exeext conftest.$ac_ext
17282
17283 CFLAGS=$save_CFLAGS
17284 CPPFLAGS=$save_CPPFLAGS
17285 LDFLAGS=$save_LDFLAGS
17286 LIBS=$save_LIBS
17287
17288
17289
17290
17291
17292 save_CFLAGS=$CFLAGS
17293 save_CPPFLAGS=$CPPFLAGS
17294 save_LDFLAGS=$LDFLAGS
17295 save_LIBS=$LIBS
17296
17297
17298 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS"
17299 LIBS="$LIBS $GDBM_LIBS"
17300 for ac_header in gdbm.h
17301 do :
17302 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
17303 if test "x$ac_cv_header_gdbm_h" = xyes
17304 then :
17305 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
17306
17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
17308 printf %s "checking for gdbm_open in -lgdbm... " >&6; }
17309 if test ${ac_cv_lib_gdbm_gdbm_open+y}
17310 then :
17311 printf %s "(cached) " >&6
17312 else case e in #(
17313 e) ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lgdbm $LIBS"
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17317
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply.
17321 The 'extern "C"' is for builds by C++ compilers;
17322 although this is not generally supported in C code supporting it here
17323 has little cost and some practical benefit (sr 110532). */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 char gdbm_open (void);
17328 int
17329 main (void)
17330 {
17331 return gdbm_open ();
17332 ;
17333 return 0;
17334 }
17335 _ACEOF
17336 if ac_fn_c_try_link "$LINENO"
17337 then :
17338 ac_cv_lib_gdbm_gdbm_open=yes
17339 else case e in #(
17340 e) ac_cv_lib_gdbm_gdbm_open=no ;;
17341 esac
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LIBS=$ac_check_lib_save_LIBS ;;
17346 esac
17347 fi
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
17349 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
17350 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
17351 then :
17352
17353 have_gdbm=yes
17354 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"}
17355
17356 else case e in #(
17357 e) have_gdbm=no ;;
17358 esac
17359 fi
17360
17361
17362 else case e in #(
17363 e) have_gdbm=no ;;
17364 esac
17365 fi
17366
17367 done
17368
17369 CFLAGS=$save_CFLAGS
17370 CPPFLAGS=$save_CPPFLAGS
17371 LDFLAGS=$save_LDFLAGS
17372 LIBS=$save_LIBS
17373
17374
17375
17376 for ac_header in ndbm.h
17377 do :
17378 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
17379 if test "x$ac_cv_header_ndbm_h" = xyes
17380 then :
17381 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
17382
17383 save_CFLAGS=$CFLAGS
17384 save_CPPFLAGS=$CPPFLAGS
17385 save_LDFLAGS=$LDFLAGS
17386 save_LIBS=$LIBS
17387
17388
17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
17390 printf %s "checking for library containing dbm_open... " >&6; }
17391 if test ${ac_cv_search_dbm_open+y}
17392 then :
17393 printf %s "(cached) " >&6
17394 else case e in #(
17395 e) ac_func_search_save_LIBS=$LIBS
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply.
17402 The 'extern "C"' is for builds by C++ compilers;
17403 although this is not generally supported in C code supporting it here
17404 has little cost and some practical benefit (sr 110532). */
17405 #ifdef __cplusplus
17406 extern "C"
17407 #endif
17408 char dbm_open (void);
17409 int
17410 main (void)
17411 {
17412 return dbm_open ();
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 for ac_lib in '' ndbm gdbm_compat
17418 do
17419 if test -z "$ac_lib"; then
17420 ac_res="none required"
17421 else
17422 ac_res=-l$ac_lib
17423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17424 fi
17425 if ac_fn_c_try_link "$LINENO"
17426 then :
17427 ac_cv_search_dbm_open=$ac_res
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17430 conftest$ac_exeext
17431 if test ${ac_cv_search_dbm_open+y}
17432 then :
17433 break
17434 fi
17435 done
17436 if test ${ac_cv_search_dbm_open+y}
17437 then :
17438
17439 else case e in #(
17440 e) ac_cv_search_dbm_open=no ;;
17441 esac
17442 fi
17443 rm conftest.$ac_ext
17444 LIBS=$ac_func_search_save_LIBS ;;
17445 esac
17446 fi
17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
17448 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
17449 ac_res=$ac_cv_search_dbm_open
17450 if test "$ac_res" != no
17451 then :
17452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17453
17454 fi
17455
17456
17457 CFLAGS=$save_CFLAGS
17458 CPPFLAGS=$save_CPPFLAGS
17459 LDFLAGS=$save_LDFLAGS
17460 LIBS=$save_LIBS
17461
17462
17463
17464 fi
17465
17466 done
17467
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
17469 printf %s "checking for ndbm presence and linker args... " >&6; }
17470 case $ac_cv_search_dbm_open in #(
17471 *ndbm*|*gdbm_compat*) :
17472
17473 dbm_ndbm="$ac_cv_search_dbm_open"
17474 have_ndbm=yes
17475 ;; #(
17476 none*) :
17477
17478 dbm_ndbm=""
17479 have_ndbm=yes
17480 ;; #(
17481 no) :
17482 have_ndbm=no
17483 ;; #(
17484 *) :
17485 ;;
17486 esac
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
17488 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
17489
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm/ndbm.h" >&5
17491 printf %s "checking for gdbm/ndbm.h... " >&6; }
17492 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
17493 then :
17494 printf %s "(cached) " >&6
17495 else case e in #(
17496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498 #include <gdbm/ndbm.h>
17499 _ACEOF
17500 if ac_fn_c_try_cpp "$LINENO"
17501 then :
17502 ac_cv_header_gdbm_slash_ndbm_h=yes
17503 else case e in #(
17504 e) ac_cv_header_gdbm_slash_ndbm_h=no ;;
17505 esac
17506 fi
17507 rm -f conftest.err conftest.i conftest.$ac_ext ;;
17508 esac
17509 fi
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_gdbm_slash_ndbm_h" >&5
17511 printf "%s\n" "$ac_cv_header_gdbm_slash_ndbm_h" >&6; }
17512 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
17513 then :
17514
17515
17516 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
17517
17518
17519 fi
17520
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm-ndbm.h" >&5
17522 printf %s "checking for gdbm-ndbm.h... " >&6; }
17523 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
17524 then :
17525 printf %s "(cached) " >&6
17526 else case e in #(
17527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <gdbm-ndbm.h>
17530 _ACEOF
17531 if ac_fn_c_try_cpp "$LINENO"
17532 then :
17533 ac_cv_header_gdbm_dash_ndbm_h=yes
17534 else case e in #(
17535 e) ac_cv_header_gdbm_dash_ndbm_h=no ;;
17536 esac
17537 fi
17538 rm -f conftest.err conftest.i conftest.$ac_ext ;;
17539 esac
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_gdbm_dash_ndbm_h" >&5
17542 printf "%s\n" "$ac_cv_header_gdbm_dash_ndbm_h" >&6; }
17543 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
17544 then :
17545
17546
17547 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
17548
17549
17550 fi
17551
17552 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
17553 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
17554 save_CFLAGS=$CFLAGS
17555 save_CPPFLAGS=$CPPFLAGS
17556 save_LDFLAGS=$LDFLAGS
17557 save_LIBS=$LIBS
17558
17559
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
17561 printf %s "checking for library containing dbm_open... " >&6; }
17562 if test ${ac_cv_search_dbm_open+y}
17563 then :
17564 printf %s "(cached) " >&6
17565 else case e in #(
17566 e) ac_func_search_save_LIBS=$LIBS
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569
17570 /* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply.
17573 The 'extern "C"' is for builds by C++ compilers;
17574 although this is not generally supported in C code supporting it here
17575 has little cost and some practical benefit (sr 110532). */
17576 #ifdef __cplusplus
17577 extern "C"
17578 #endif
17579 char dbm_open (void);
17580 int
17581 main (void)
17582 {
17583 return dbm_open ();
17584 ;
17585 return 0;
17586 }
17587 _ACEOF
17588 for ac_lib in '' gdbm_compat
17589 do
17590 if test -z "$ac_lib"; then
17591 ac_res="none required"
17592 else
17593 ac_res=-l$ac_lib
17594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17595 fi
17596 if ac_fn_c_try_link "$LINENO"
17597 then :
17598 ac_cv_search_dbm_open=$ac_res
17599 fi
17600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17601 conftest$ac_exeext
17602 if test ${ac_cv_search_dbm_open+y}
17603 then :
17604 break
17605 fi
17606 done
17607 if test ${ac_cv_search_dbm_open+y}
17608 then :
17609
17610 else case e in #(
17611 e) ac_cv_search_dbm_open=no ;;
17612 esac
17613 fi
17614 rm conftest.$ac_ext
17615 LIBS=$ac_func_search_save_LIBS ;;
17616 esac
17617 fi
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
17619 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
17620 ac_res=$ac_cv_search_dbm_open
17621 if test "$ac_res" != no
17622 then :
17623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17624 have_gdbm_compat=yes
17625 else case e in #(
17626 e) have_gdbm_compat=no ;;
17627 esac
17628 fi
17629
17630
17631 CFLAGS=$save_CFLAGS
17632 CPPFLAGS=$save_CPPFLAGS
17633 LDFLAGS=$save_LDFLAGS
17634 LIBS=$save_LIBS
17635
17636
17637 fi
17638
17639 # Check for libdb >= 5 with dbm_open()
17640 # db.h re-defines the name of the function
17641 for ac_header in db.h
17642 do :
17643 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
17644 if test "x$ac_cv_header_db_h" = xyes
17645 then :
17646 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
17647
17648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
17649 printf %s "checking for libdb... " >&6; }
17650 if test ${ac_cv_have_libdb+y}
17651 then :
17652 printf %s "(cached) " >&6
17653 else case e in #(
17654 e)
17655 save_CFLAGS=$CFLAGS
17656 save_CPPFLAGS=$CPPFLAGS
17657 save_LDFLAGS=$LDFLAGS
17658 save_LIBS=$LIBS
17659
17660
17661 LIBS="$LIBS -ldb"
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17664
17665 #define DB_DBM_HSEARCH 1
17666 #include <db.h>
17667 #if DB_VERSION_MAJOR < 5
17668 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
17669 #endif
17670
17671 int
17672 main (void)
17673 {
17674 DBM *dbm = dbm_open(NULL, 0, 0)
17675 ;
17676 return 0;
17677 }
17678
17679 _ACEOF
17680 if ac_fn_c_try_link "$LINENO"
17681 then :
17682 ac_cv_have_libdb=yes
17683 else case e in #(
17684 e) ac_cv_have_libdb=no ;;
17685 esac
17686 fi
17687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17688 conftest$ac_exeext conftest.$ac_ext
17689
17690 CFLAGS=$save_CFLAGS
17691 CPPFLAGS=$save_CPPFLAGS
17692 LDFLAGS=$save_LDFLAGS
17693 LIBS=$save_LIBS
17694
17695
17696 ;;
17697 esac
17698 fi
17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
17700 printf "%s\n" "$ac_cv_have_libdb" >&6; }
17701 if test "x$ac_cv_have_libdb" = xyes
17702 then :
17703
17704
17705 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
17706
17707
17708 fi
17709
17710 fi
17711
17712 done
17713
17714 # Check for --with-dbmliborder
17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
17716 printf %s "checking for --with-dbmliborder... " >&6; }
17717
17718 # Check whether --with-dbmliborder was given.
17719 if test ${with_dbmliborder+y}
17720 then :
17721 withval=$with_dbmliborder;
17722 else case e in #(
17723 e) with_dbmliborder=gdbm:ndbm:bdb ;;
17724 esac
17725 fi
17726
17727
17728 have_gdbm_dbmliborder=no
17729 as_save_IFS=$IFS
17730 IFS=:
17731 for db in $with_dbmliborder; do
17732 case $db in #(
17733 ndbm) :
17734 ;; #(
17735 gdbm) :
17736 have_gdbm_dbmliborder=yes ;; #(
17737 bdb) :
17738 ;; #(
17739 *) :
17740 with_dbmliborder=error
17741 ;;
17742 esac
17743 done
17744 IFS=$as_save_IFS
17745 if test "x$with_dbmliborder" = xerror
17746 then :
17747
17748 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
17749
17750 fi
17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
17752 printf "%s\n" "$with_dbmliborder" >&6; }
17753
17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
17755 printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; }
17756 have_dbm=no
17757 as_save_IFS=$IFS
17758 IFS=:
17759 for db in $with_dbmliborder; do
17760 case "$db" in
17761 ndbm)
17762 if test "$have_ndbm" = yes; then
17763 DBM_CFLAGS="-DUSE_NDBM"
17764 DBM_LIBS="$dbm_ndbm"
17765 have_dbm=yes
17766 break
17767 fi
17768 ;;
17769 gdbm)
17770 if test "$have_gdbm_compat" = yes; then
17771 DBM_CFLAGS="-DUSE_GDBM_COMPAT"
17772 DBM_LIBS="-lgdbm_compat"
17773 have_dbm=yes
17774 break
17775 fi
17776 ;;
17777 bdb)
17778 if test "$ac_cv_have_libdb" = yes; then
17779 DBM_CFLAGS="-DUSE_BERKDB"
17780 DBM_LIBS="-ldb"
17781 have_dbm=yes
17782 break
17783 fi
17784 ;;
17785 esac
17786 done
17787 IFS=$as_save_IFS
17788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
17789 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
17790
17791 # Templates for things AC_DEFINEd more than once.
17792 # For a single AC_DEFINE, no template is needed.
17793
17794
17795 if test "$ac_cv_pthread_is_default" = yes
17796 then
17797 # Defining _REENTRANT on system with POSIX threads should not hurt.
17798 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17799
17800 posix_threads=yes
17801 if test "$ac_sys_system" = "SunOS"; then
17802 CFLAGS="$CFLAGS -D_REENTRANT"
17803 fi
17804 elif test "$ac_cv_kpthread" = "yes"
17805 then
17806 CC="$CC -Kpthread"
17807 if test "$ac_cv_cxx_thread" = "yes"; then
17808 CXX="$CXX -Kpthread"
17809 fi
17810 posix_threads=yes
17811 elif test "$ac_cv_kthread" = "yes"
17812 then
17813 CC="$CC -Kthread"
17814 if test "$ac_cv_cxx_thread" = "yes"; then
17815 CXX="$CXX -Kthread"
17816 fi
17817 posix_threads=yes
17818 elif test "$ac_cv_pthread" = "yes"
17819 then
17820 CC="$CC -pthread"
17821 if test "$ac_cv_cxx_thread" = "yes"; then
17822 CXX="$CXX -pthread"
17823 fi
17824 posix_threads=yes
17825 else
17826 if test ! -z "$withval" -a -d "$withval"
17827 then LDFLAGS="$LDFLAGS -L$withval"
17828 fi
17829
17830 # According to the POSIX spec, a pthreads implementation must
17831 # define _POSIX_THREADS in unistd.h. Some apparently don't
17832 # (e.g. gnu pth with pthread emulation)
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
17834 printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; }
17835
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
17837 printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; }
17838 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
17839 then :
17840 printf %s "(cached) " >&6
17841 else case e in #(
17842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17844 #include <unistd.h>
17845 int
17846 main (void)
17847 {
17848
17849 #ifdef _POSIX_THREADS
17850 int ok;
17851 (void)ok;
17852 #else
17853 choke me
17854 #endif
17855
17856 ;
17857 return 0;
17858 }
17859 _ACEOF
17860 if ac_fn_c_try_compile "$LINENO"
17861 then :
17862 ac_cv_defined__POSIX_THREADS_unistd_h=yes
17863 else case e in #(
17864 e) ac_cv_defined__POSIX_THREADS_unistd_h=no ;;
17865 esac
17866 fi
17867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17868 esac
17869 fi
17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
17871 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
17872 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
17873 then :
17874 unistd_defines_pthreads=yes
17875 else case e in #(
17876 e) unistd_defines_pthreads=no ;;
17877 esac
17878 fi
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
17880 printf "%s\n" "$unistd_defines_pthreads" >&6; }
17881
17882 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17883
17884 # Just looking for pthread_create in libpthread is not enough:
17885 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
17886 # So we really have to include pthread.h, and then link.
17887 _libs=$LIBS
17888 LIBS="$LIBS -lpthread"
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17890 printf %s "checking for pthread_create in -lpthread... " >&6; }
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893
17894 #include <stdio.h>
17895 #include <stdlib.h>
17896 #include <pthread.h>
17897
17898 void * start_routine (void *arg) { exit (0); }
17899 int
17900 main (void)
17901 {
17902
17903 pthread_create (NULL, NULL, start_routine, NULL)
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 if ac_fn_c_try_link "$LINENO"
17909 then :
17910
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912 printf "%s\n" "yes" >&6; }
17913 posix_threads=yes
17914
17915 else case e in #(
17916 e)
17917 LIBS=$_libs
17918 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
17919 if test "x$ac_cv_func_pthread_detach" = xyes
17920 then :
17921
17922 posix_threads=yes
17923
17924 else case e in #(
17925 e)
17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
17927 printf %s "checking for pthread_create in -lpthreads... " >&6; }
17928 if test ${ac_cv_lib_pthreads_pthread_create+y}
17929 then :
17930 printf %s "(cached) " >&6
17931 else case e in #(
17932 e) ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lpthreads $LIBS"
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply.
17940 The 'extern "C"' is for builds by C++ compilers;
17941 although this is not generally supported in C code supporting it here
17942 has little cost and some practical benefit (sr 110532). */
17943 #ifdef __cplusplus
17944 extern "C"
17945 #endif
17946 char pthread_create (void);
17947 int
17948 main (void)
17949 {
17950 return pthread_create ();
17951 ;
17952 return 0;
17953 }
17954 _ACEOF
17955 if ac_fn_c_try_link "$LINENO"
17956 then :
17957 ac_cv_lib_pthreads_pthread_create=yes
17958 else case e in #(
17959 e) ac_cv_lib_pthreads_pthread_create=no ;;
17960 esac
17961 fi
17962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS ;;
17965 esac
17966 fi
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
17968 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
17969 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
17970 then :
17971
17972 posix_threads=yes
17973 LIBS="$LIBS -lpthreads"
17974
17975 else case e in #(
17976 e)
17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
17978 printf %s "checking for pthread_create in -lc_r... " >&6; }
17979 if test ${ac_cv_lib_c_r_pthread_create+y}
17980 then :
17981 printf %s "(cached) " >&6
17982 else case e in #(
17983 e) ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-lc_r $LIBS"
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply.
17991 The 'extern "C"' is for builds by C++ compilers;
17992 although this is not generally supported in C code supporting it here
17993 has little cost and some practical benefit (sr 110532). */
17994 #ifdef __cplusplus
17995 extern "C"
17996 #endif
17997 char pthread_create (void);
17998 int
17999 main (void)
18000 {
18001 return pthread_create ();
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_c_try_link "$LINENO"
18007 then :
18008 ac_cv_lib_c_r_pthread_create=yes
18009 else case e in #(
18010 e) ac_cv_lib_c_r_pthread_create=no ;;
18011 esac
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS=$ac_check_lib_save_LIBS ;;
18016 esac
18017 fi
18018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
18019 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
18020 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
18021 then :
18022
18023 posix_threads=yes
18024 LIBS="$LIBS -lc_r"
18025
18026 else case e in #(
18027 e)
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
18029 printf %s "checking for __pthread_create_system in -lpthread... " >&6; }
18030 if test ${ac_cv_lib_pthread___pthread_create_system+y}
18031 then :
18032 printf %s "(cached) " >&6
18033 else case e in #(
18034 e) ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-lpthread $LIBS"
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18038
18039 /* Override any GCC internal prototype to avoid an error.
18040 Use char because int might match the return type of a GCC
18041 builtin and then its argument prototype would still apply.
18042 The 'extern "C"' is for builds by C++ compilers;
18043 although this is not generally supported in C code supporting it here
18044 has little cost and some practical benefit (sr 110532). */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char __pthread_create_system (void);
18049 int
18050 main (void)
18051 {
18052 return __pthread_create_system ();
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"
18058 then :
18059 ac_cv_lib_pthread___pthread_create_system=yes
18060 else case e in #(
18061 e) ac_cv_lib_pthread___pthread_create_system=no ;;
18062 esac
18063 fi
18064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS ;;
18067 esac
18068 fi
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
18070 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
18071 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
18072 then :
18073
18074 posix_threads=yes
18075 LIBS="$LIBS -lpthread"
18076
18077 else case e in #(
18078 e)
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
18080 printf %s "checking for pthread_create in -lcma... " >&6; }
18081 if test ${ac_cv_lib_cma_pthread_create+y}
18082 then :
18083 printf %s "(cached) " >&6
18084 else case e in #(
18085 e) ac_check_lib_save_LIBS=$LIBS
18086 LIBS="-lcma $LIBS"
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089
18090 /* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply.
18093 The 'extern "C"' is for builds by C++ compilers;
18094 although this is not generally supported in C code supporting it here
18095 has little cost and some practical benefit (sr 110532). */
18096 #ifdef __cplusplus
18097 extern "C"
18098 #endif
18099 char pthread_create (void);
18100 int
18101 main (void)
18102 {
18103 return pthread_create ();
18104 ;
18105 return 0;
18106 }
18107 _ACEOF
18108 if ac_fn_c_try_link "$LINENO"
18109 then :
18110 ac_cv_lib_cma_pthread_create=yes
18111 else case e in #(
18112 e) ac_cv_lib_cma_pthread_create=no ;;
18113 esac
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18116 conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS ;;
18118 esac
18119 fi
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
18121 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
18122 if test "x$ac_cv_lib_cma_pthread_create" = xyes
18123 then :
18124
18125 posix_threads=yes
18126 LIBS="$LIBS -lcma"
18127
18128 else case e in #(
18129 e)
18130 case $ac_sys_system in #(
18131 WASI) :
18132 posix_threads=stub ;; #(
18133 *) :
18134 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5
18135 ;;
18136 esac
18137 ;;
18138 esac
18139 fi
18140 ;;
18141 esac
18142 fi
18143 ;;
18144 esac
18145 fi
18146 ;;
18147 esac
18148 fi
18149 ;;
18150 esac
18151 fi
18152 ;;
18153 esac
18154 fi
18155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18156 conftest$ac_exeext conftest.$ac_ext
18157
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
18159 printf %s "checking for usconfig in -lmpc... " >&6; }
18160 if test ${ac_cv_lib_mpc_usconfig+y}
18161 then :
18162 printf %s "(cached) " >&6
18163 else case e in #(
18164 e) ac_check_lib_save_LIBS=$LIBS
18165 LIBS="-lmpc $LIBS"
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply.
18172 The 'extern "C"' is for builds by C++ compilers;
18173 although this is not generally supported in C code supporting it here
18174 has little cost and some practical benefit (sr 110532). */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char usconfig (void);
18179 int
18180 main (void)
18181 {
18182 return usconfig ();
18183 ;
18184 return 0;
18185 }
18186 _ACEOF
18187 if ac_fn_c_try_link "$LINENO"
18188 then :
18189 ac_cv_lib_mpc_usconfig=yes
18190 else case e in #(
18191 e) ac_cv_lib_mpc_usconfig=no ;;
18192 esac
18193 fi
18194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18195 conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS ;;
18197 esac
18198 fi
18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
18200 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
18201 if test "x$ac_cv_lib_mpc_usconfig" = xyes
18202 then :
18203
18204 LIBS="$LIBS -lmpc"
18205
18206 fi
18207
18208
18209 fi
18210
18211 if test "$posix_threads" = "yes"; then
18212 if test "$unistd_defines_pthreads" = "no"; then
18213
18214 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
18215
18216 fi
18217
18218 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
18219 case $ac_sys_system/$ac_sys_release in
18220 SunOS/5.6)
18221 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
18222
18223 ;;
18224 SunOS/5.8)
18225 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18226
18227 ;;
18228 AIX/*)
18229 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18230
18231 ;;
18232 NetBSD/*)
18233 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
18234
18235 ;;
18236 esac
18237
18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
18239 printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
18240 if test ${ac_cv_pthread_system_supported+y}
18241 then :
18242 printf %s "(cached) " >&6
18243 else case e in #(
18244 e) if test "$cross_compiling" = yes
18245 then :
18246 ac_cv_pthread_system_supported=no
18247 else case e in #(
18248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250
18251 #include <stdio.h>
18252 #include <pthread.h>
18253 void *foo(void *parm) {
18254 return NULL;
18255 }
18256 int main(void) {
18257 pthread_attr_t attr;
18258 pthread_t id;
18259 if (pthread_attr_init(&attr)) return (-1);
18260 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
18261 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
18262 return (0);
18263 }
18264 _ACEOF
18265 if ac_fn_c_try_run "$LINENO"
18266 then :
18267 ac_cv_pthread_system_supported=yes
18268 else case e in #(
18269 e) ac_cv_pthread_system_supported=no ;;
18270 esac
18271 fi
18272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18273 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18274 esac
18275 fi
18276
18277 ;;
18278 esac
18279 fi
18280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
18281 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
18282 if test "$ac_cv_pthread_system_supported" = "yes"; then
18283
18284 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
18285
18286 fi
18287
18288 for ac_func in pthread_sigmask
18289 do :
18290 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
18291 if test "x$ac_cv_func_pthread_sigmask" = xyes
18292 then :
18293 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
18294 case $ac_sys_system in
18295 CYGWIN*)
18296
18297 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
18298
18299 ;;
18300 esac
18301 fi
18302
18303 done
18304 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
18305 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
18306 then :
18307 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
18308
18309 fi
18310
18311 fi
18312
18313 if test "x$posix_threads" = xstub
18314 then :
18315
18316
18317 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
18318
18319
18320 fi
18321
18322 # Check for enable-ipv6
18323
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
18325 printf %s "checking if --enable-ipv6 is specified... " >&6; }
18326 # Check whether --enable-ipv6 was given.
18327 if test ${enable_ipv6+y}
18328 then :
18329 enableval=$enable_ipv6; case "$enableval" in
18330 no)
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 printf "%s\n" "no" >&6; }
18333 ipv6=no
18334 ;;
18335 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18336 printf "%s\n" "yes" >&6; }
18337 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
18338
18339 ipv6=yes
18340 ;;
18341 esac
18342 else case e in #(
18343 e)
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346 /* AF_INET6 available check */
18347 #include <sys/types.h>
18348 #include <sys/socket.h>
18349 int
18350 main (void)
18351 {
18352 int domain = AF_INET6;
18353 ;
18354 return 0;
18355 }
18356 _ACEOF
18357 if ac_fn_c_try_compile "$LINENO"
18358 then :
18359
18360 ipv6=yes
18361
18362 else case e in #(
18363 e)
18364 ipv6=no
18365 ;;
18366 esac
18367 fi
18368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18369
18370 case $ac_sys_system in #(
18371 WASI) :
18372 ipv6=no
18373 ;; #(
18374 *) :
18375 ;;
18376 esac
18377
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
18379 printf "%s\n" "$ipv6" >&6; }
18380
18381 if test "$ipv6" = "yes"; then
18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
18383 printf %s "checking if RFC2553 API is available... " >&6; }
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386
18387 #include <sys/types.h>
18388 #include <netinet/in.h>
18389 int
18390 main (void)
18391 {
18392 struct sockaddr_in6 x;
18393 x.sin6_scope_id;
18394 ;
18395 return 0;
18396 }
18397
18398 _ACEOF
18399 if ac_fn_c_try_compile "$LINENO"
18400 then :
18401
18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18403 printf "%s\n" "yes" >&6; }
18404 ipv6=yes
18405
18406 else case e in #(
18407 e)
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 printf "%s\n" "no" >&6; }
18410 ipv6=no
18411 ;;
18412 esac
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18415 fi
18416
18417 if test "$ipv6" = "yes"; then
18418 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
18419
18420 fi
18421 ;;
18422 esac
18423 fi
18424
18425
18426 ipv6type=unknown
18427 ipv6lib=none
18428 ipv6trylibc=no
18429
18430 if test "$ipv6" = yes -a "$cross_compiling" = no; then
18431 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
18432 do
18433 case $i in
18434 inria)
18435
18436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
18437 printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
18438 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
18439 then :
18440 printf %s "(cached) " >&6
18441 else case e in #(
18442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18444 #include <netinet/in.h>
18445 int
18446 main (void)
18447 {
18448
18449 #ifdef IPV6_INRIA_VERSION
18450 int ok;
18451 (void)ok;
18452 #else
18453 choke me
18454 #endif
18455
18456 ;
18457 return 0;
18458 }
18459 _ACEOF
18460 if ac_fn_c_try_compile "$LINENO"
18461 then :
18462 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes
18463 else case e in #(
18464 e) ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no ;;
18465 esac
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18468 esac
18469 fi
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
18471 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
18472 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
18473 then :
18474 ipv6type=$i
18475 fi
18476 ;;
18477 kame)
18478
18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
18480 printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; }
18481 if test ${ac_cv_defined___KAME___netinet_in_h+y}
18482 then :
18483 printf %s "(cached) " >&6
18484 else case e in #(
18485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 #include <netinet/in.h>
18488 int
18489 main (void)
18490 {
18491
18492 #ifdef __KAME__
18493 int ok;
18494 (void)ok;
18495 #else
18496 choke me
18497 #endif
18498
18499 ;
18500 return 0;
18501 }
18502 _ACEOF
18503 if ac_fn_c_try_compile "$LINENO"
18504 then :
18505 ac_cv_defined___KAME___netinet_in_h=yes
18506 else case e in #(
18507 e) ac_cv_defined___KAME___netinet_in_h=no ;;
18508 esac
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18511 esac
18512 fi
18513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
18514 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
18515 if test $ac_cv_defined___KAME___netinet_in_h != "no"
18516 then :
18517 ipv6type=$i
18518 ipv6lib=inet6
18519 ipv6libdir=/usr/local/v6/lib
18520 ipv6trylibc=yes
18521 fi
18522 ;;
18523 linux-glibc)
18524
18525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
18526 printf %s "checking for __GLIBC__ defined in features.h... " >&6; }
18527 if test ${ac_cv_defined___GLIBC___features_h+y}
18528 then :
18529 printf %s "(cached) " >&6
18530 else case e in #(
18531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18533 #include <features.h>
18534 int
18535 main (void)
18536 {
18537
18538 #ifdef __GLIBC__
18539 int ok;
18540 (void)ok;
18541 #else
18542 choke me
18543 #endif
18544
18545 ;
18546 return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_compile "$LINENO"
18550 then :
18551 ac_cv_defined___GLIBC___features_h=yes
18552 else case e in #(
18553 e) ac_cv_defined___GLIBC___features_h=no ;;
18554 esac
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18557 esac
18558 fi
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
18560 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
18561 if test $ac_cv_defined___GLIBC___features_h != "no"
18562 then :
18563 ipv6type=$i
18564 ipv6trylibc=yes
18565 fi
18566 ;;
18567 linux-inet6)
18568 if test -d /usr/inet6; then
18569 ipv6type=$i
18570 ipv6lib=inet6
18571 ipv6libdir=/usr/inet6/lib
18572 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
18573 fi
18574 ;;
18575 solaris)
18576 if test -f /etc/netconfig; then
18577 if $GREP -q tcp6 /etc/netconfig; then
18578 ipv6type=$i
18579 ipv6trylibc=yes
18580 fi
18581 fi
18582 ;;
18583 toshiba)
18584
18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
18586 printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
18587 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
18588 then :
18589 printf %s "(cached) " >&6
18590 else case e in #(
18591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 #include <sys/param.h>
18594 int
18595 main (void)
18596 {
18597
18598 #ifdef _TOSHIBA_INET6
18599 int ok;
18600 (void)ok;
18601 #else
18602 choke me
18603 #endif
18604
18605 ;
18606 return 0;
18607 }
18608 _ACEOF
18609 if ac_fn_c_try_compile "$LINENO"
18610 then :
18611 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes
18612 else case e in #(
18613 e) ac_cv_defined__TOSHIBA_INET6_sys_param_h=no ;;
18614 esac
18615 fi
18616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18617 esac
18618 fi
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
18620 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
18621 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
18622 then :
18623 ipv6type=$i
18624 ipv6lib=inet6
18625 ipv6libdir=/usr/local/v6/lib
18626 fi
18627 ;;
18628 v6d)
18629
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
18631 printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
18632 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
18633 then :
18634 printf %s "(cached) " >&6
18635 else case e in #(
18636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637 /* end confdefs.h. */
18638 #include </usr/local/v6/include/sys/v6config.h>
18639 int
18640 main (void)
18641 {
18642
18643 #ifdef __V6D__
18644 int ok;
18645 (void)ok;
18646 #else
18647 choke me
18648 #endif
18649
18650 ;
18651 return 0;
18652 }
18653 _ACEOF
18654 if ac_fn_c_try_compile "$LINENO"
18655 then :
18656 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes
18657 else case e in #(
18658 e) ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no ;;
18659 esac
18660 fi
18661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18662 esac
18663 fi
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
18665 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
18666 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
18667 then :
18668 ipv6type=$i
18669 ipv6lib=v6
18670 ipv6libdir=/usr/local/v6/lib
18671 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
18672 fi
18673 ;;
18674 zeta)
18675
18676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
18677 printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
18678 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
18679 then :
18680 printf %s "(cached) " >&6
18681 else case e in #(
18682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18684 #include <sys/param.h>
18685 int
18686 main (void)
18687 {
18688
18689 #ifdef _ZETA_MINAMI_INET6
18690 int ok;
18691 (void)ok;
18692 #else
18693 choke me
18694 #endif
18695
18696 ;
18697 return 0;
18698 }
18699 _ACEOF
18700 if ac_fn_c_try_compile "$LINENO"
18701 then :
18702 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes
18703 else case e in #(
18704 e) ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no ;;
18705 esac
18706 fi
18707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18708 esac
18709 fi
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
18711 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
18712 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
18713 then :
18714 ipv6type=$i
18715 ipv6lib=inet6
18716 ipv6libdir=/usr/local/v6/lib
18717 fi
18718 ;;
18719 esac
18720 if test "$ipv6type" != "unknown"; then
18721 break
18722 fi
18723 done
18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
18725 printf %s "checking ipv6 stack type... " >&6; }
18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
18727 printf "%s\n" "$ipv6type" >&6; }
18728 fi
18729
18730 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
18732 printf %s "checking ipv6 library... " >&6; }
18733 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
18734 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
18736 printf "%s\n" "lib$ipv6lib" >&6; }
18737 else
18738 if test "x$ipv6trylibc" = xyes
18739 then :
18740
18741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
18742 printf "%s\n" "libc" >&6; }
18743
18744 else case e in #(
18745 e)
18746 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
18747 ;;
18748 esac
18749 fi
18750 fi
18751 fi
18752
18753
18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
18755 printf %s "checking CAN_RAW_FD_FRAMES... " >&6; }
18756 if test ${ac_cv_can_raw_fd_frames+y}
18757 then :
18758 printf %s "(cached) " >&6
18759 else case e in #(
18760 e)
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763 /* CAN_RAW_FD_FRAMES available check */
18764 #include <linux/can/raw.h>
18765 int
18766 main (void)
18767 {
18768 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
18769 ;
18770 return 0;
18771 }
18772 _ACEOF
18773 if ac_fn_c_try_compile "$LINENO"
18774 then :
18775 ac_cv_can_raw_fd_frames=yes
18776 else case e in #(
18777 e) ac_cv_can_raw_fd_frames=no ;;
18778 esac
18779 fi
18780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18781 ;;
18782 esac
18783 fi
18784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
18785 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
18786 if test "x$ac_cv_can_raw_fd_frames" = xyes
18787 then :
18788
18789
18790 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
18791
18792
18793 fi
18794
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
18796 printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; }
18797 if test ${ac_cv_can_raw_join_filters+y}
18798 then :
18799 printf %s "(cached) " >&6
18800 else case e in #(
18801 e)
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804
18805 #include <linux/can/raw.h>
18806 int
18807 main (void)
18808 {
18809 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
18810 ;
18811 return 0;
18812 }
18813 _ACEOF
18814 if ac_fn_c_try_compile "$LINENO"
18815 then :
18816 ac_cv_can_raw_join_filters=yes
18817 else case e in #(
18818 e) ac_cv_can_raw_join_filters=no ;;
18819 esac
18820 fi
18821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18822 ;;
18823 esac
18824 fi
18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
18826 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
18827 if test "x$ac_cv_can_raw_join_filters" = xyes
18828 then :
18829
18830
18831 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
18832
18833
18834 fi
18835
18836 # Check for --with-doc-strings
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
18838 printf %s "checking for --with-doc-strings... " >&6; }
18839
18840 # Check whether --with-doc-strings was given.
18841 if test ${with_doc_strings+y}
18842 then :
18843 withval=$with_doc_strings;
18844 fi
18845
18846
18847 if test -z "$with_doc_strings"
18848 then with_doc_strings="yes"
18849 fi
18850 if test "$with_doc_strings" != "no"
18851 then
18852
18853 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
18854
18855 fi
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
18857 printf "%s\n" "$with_doc_strings" >&6; }
18858
18859 # Check for stdatomic.h, required for mimalloc.
18860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
18861 printf %s "checking for stdatomic.h... " >&6; }
18862 if test ${ac_cv_header_stdatomic_h+y}
18863 then :
18864 printf %s "(cached) " >&6
18865 else case e in #(
18866 e)
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18869
18870
18871 #include <stdatomic.h>
18872 atomic_int int_var;
18873 atomic_uintptr_t uintptr_var;
18874 int main() {
18875 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
18876 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
18877 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
18878 return 0;
18879 }
18880
18881
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"
18884 then :
18885 ac_cv_header_stdatomic_h=yes
18886 else case e in #(
18887 e) ac_cv_header_stdatomic_h=no ;;
18888 esac
18889 fi
18890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18891 conftest$ac_exeext conftest.$ac_ext
18892 ;;
18893 esac
18894 fi
18895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
18896 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
18897
18898 if test "x$ac_cv_header_stdatomic_h" = xyes
18899 then :
18900
18901
18902 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
18903
18904
18905 fi
18906
18907 # Check for GCC >= 4.7 and clang __atomic builtin functions
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
18909 printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
18910 if test ${ac_cv_builtin_atomic+y}
18911 then :
18912 printf %s "(cached) " >&6
18913 else case e in #(
18914 e)
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918
18919 int val;
18920 int main() {
18921 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
18922 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
18923 return 0;
18924 }
18925
18926
18927 _ACEOF
18928 if ac_fn_c_try_link "$LINENO"
18929 then :
18930 ac_cv_builtin_atomic=yes
18931 else case e in #(
18932 e) ac_cv_builtin_atomic=no ;;
18933 esac
18934 fi
18935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18936 conftest$ac_exeext conftest.$ac_ext
18937 ;;
18938 esac
18939 fi
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
18941 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
18942
18943 if test "x$ac_cv_builtin_atomic" = xyes
18944 then :
18945
18946
18947 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
18948
18949
18950 fi
18951
18952 # --with-mimalloc
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
18954 printf %s "checking for --with-mimalloc... " >&6; }
18955
18956 # Check whether --with-mimalloc was given.
18957 if test ${with_mimalloc+y}
18958 then :
18959 withval=$with_mimalloc;
18960 else case e in #(
18961 e) with_mimalloc="$ac_cv_header_stdatomic_h"
18962 ;;
18963 esac
18964 fi
18965
18966
18967 if test "$with_mimalloc" != no; then
18968 if test "$ac_cv_header_stdatomic_h" != yes; then
18969 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
18970 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
18971 fi
18972 with_mimalloc=yes
18973
18974 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
18975
18976 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)'
18977
18978 elif test "$disable_gil" = "yes"; then
18979 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
18980 fi
18981
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
18983 printf "%s\n" "$with_mimalloc" >&6; }
18984 INSTALL_MIMALLOC=$with_mimalloc
18985
18986
18987
18988 # Check for Python-specific malloc support
18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
18990 printf %s "checking for --with-pymalloc... " >&6; }
18991
18992 # Check whether --with-pymalloc was given.
18993 if test ${with_pymalloc+y}
18994 then :
18995 withval=$with_pymalloc;
18996 fi
18997
18998
18999 if test -z "$with_pymalloc"
19000 then
19001 case $ac_sys_system in #(
19002 Emscripten) :
19003 with_pymalloc="no" ;; #(
19004 WASI) :
19005 with_pymalloc="no" ;; #(
19006 *) :
19007 with_pymalloc="yes"
19008 ;;
19009 esac
19010 fi
19011 if test "$with_pymalloc" != "no"
19012 then
19013
19014 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
19015
19016 fi
19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
19018 printf "%s\n" "$with_pymalloc" >&6; }
19019
19020 # Check for --with-c-locale-coercion
19021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
19022 printf %s "checking for --with-c-locale-coercion... " >&6; }
19023
19024 # Check whether --with-c-locale-coercion was given.
19025 if test ${with_c_locale_coercion+y}
19026 then :
19027 withval=$with_c_locale_coercion;
19028 fi
19029
19030
19031 if test -z "$with_c_locale_coercion"
19032 then
19033 with_c_locale_coercion="yes"
19034 fi
19035 if test "$with_c_locale_coercion" != "no"
19036 then
19037
19038 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
19039
19040 fi
19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
19042 printf "%s\n" "$with_c_locale_coercion" >&6; }
19043
19044 # Check for Valgrind support
19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
19046 printf %s "checking for --with-valgrind... " >&6; }
19047
19048 # Check whether --with-valgrind was given.
19049 if test ${with_valgrind+y}
19050 then :
19051 withval=$with_valgrind;
19052 else case e in #(
19053 e) with_valgrind=no
19054 ;;
19055 esac
19056 fi
19057
19058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
19059 printf "%s\n" "$with_valgrind" >&6; }
19060 if test "$with_valgrind" != no; then
19061 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
19062 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
19063 then :
19064
19065 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
19066
19067 else case e in #(
19068 e) as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
19069 ;;
19070 esac
19071 fi
19072
19073 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
19074 fi
19075
19076 # Check for DTrace support
19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
19078 printf %s "checking for --with-dtrace... " >&6; }
19079
19080 # Check whether --with-dtrace was given.
19081 if test ${with_dtrace+y}
19082 then :
19083 withval=$with_dtrace;
19084 else case e in #(
19085 e) with_dtrace=no ;;
19086 esac
19087 fi
19088
19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
19090 printf "%s\n" "$with_dtrace" >&6; }
19091
19092
19093
19094
19095
19096 DTRACE=
19097 DTRACE_HEADERS=
19098 DTRACE_OBJS=
19099
19100 if test "$with_dtrace" = "yes"
19101 then
19102 # Extract the first word of "dtrace", so it can be a program name with args.
19103 set dummy dtrace; ac_word=$2
19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19105 printf %s "checking for $ac_word... " >&6; }
19106 if test ${ac_cv_path_DTRACE+y}
19107 then :
19108 printf %s "(cached) " >&6
19109 else case e in #(
19110 e) case $DTRACE in
19111 [\\/]* | ?:[\\/]*)
19112 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
19113 ;;
19114 *)
19115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116 for as_dir in $PATH
19117 do
19118 IFS=$as_save_IFS
19119 case $as_dir in #(((
19120 '') as_dir=./ ;;
19121 */) ;;
19122 *) as_dir=$as_dir/ ;;
19123 esac
19124 for ac_exec_ext in '' $ac_executable_extensions; do
19125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19126 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
19127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19128 break 2
19129 fi
19130 done
19131 done
19132 IFS=$as_save_IFS
19133
19134 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
19135 ;;
19136 esac ;;
19137 esac
19138 fi
19139 DTRACE=$ac_cv_path_DTRACE
19140 if test -n "$DTRACE"; then
19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
19142 printf "%s\n" "$DTRACE" >&6; }
19143 else
19144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19145 printf "%s\n" "no" >&6; }
19146 fi
19147
19148
19149 if test "$DTRACE" = "not found"; then
19150 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5
19151 fi
19152
19153 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
19154
19155 DTRACE_HEADERS="Include/pydtrace_probes.h"
19156
19157 # On OS X, DTrace providers do not need to be explicitly compiled and
19158 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
19159 # generation flag '-G'. We check for presence of this flag, rather than
19160 # hardcoding support by OS, in the interest of robustness.
19161 #
19162 # NetBSD DTrace requires the -x nolibs flag to avoid system library conflicts
19163 # and uses header generation for testing instead of object generation.
19164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
19165 printf %s "checking whether DTrace probes require linking... " >&6; }
19166 if test ${ac_cv_dtrace_link+y}
19167 then :
19168 printf %s "(cached) " >&6
19169 else case e in #(
19170 e)
19171 ac_cv_dtrace_link=no
19172 echo 'BEGIN{}' > conftest.d
19173 case $host in
19174 *netbsd*)
19175 DTRACE_TEST_FLAGS="-x nolibs -h"
19176 ;;
19177 *)
19178 DTRACE_TEST_FLAGS="-G"
19179 ;;
19180 esac
19181 "$DTRACE" $DFLAGS $DTRACE_TEST_FLAGS -s conftest.d -o conftest.o > /dev/null 2>&1 && \
19182 ac_cv_dtrace_link=yes
19183 ;;
19184 esac
19185 fi
19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
19187 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
19188 if test "$ac_cv_dtrace_link" = "yes"; then
19189 DTRACE_OBJS="Python/pydtrace.o"
19190 fi
19191 # Set NetBSD-specific DTrace flags in DFLAGS
19192 case $host in
19193 *netbsd*)
19194 DFLAGS="$DFLAGS -x nolibs"
19195 ;;
19196 esac
19197 fi
19198
19199 PLATFORM_HEADERS=
19200 PLATFORM_OBJS=
19201
19202 case $ac_sys_system in #(
19203 Emscripten) :
19204
19205 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o Python/emscripten_trampoline_wasm.o Python/emscripten_syscalls.o'
19206 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
19207 ;; #(
19208 *) :
19209 ;;
19210 esac
19211
19212
19213
19214 # -I${DLINCLDIR} is added to the compile rule for importdl.o
19215
19216 DLINCLDIR=.
19217
19218 # the dlopen() function means we might want to use dynload_shlib.o. some
19219 # platforms have dlopen(), but don't want to use it.
19220 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19221 if test "x$ac_cv_func_dlopen" = xyes
19222 then :
19223 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
19224
19225 fi
19226
19227
19228 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
19229 # loading of modules.
19230
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
19232 printf %s "checking DYNLOADFILE... " >&6; }
19233 if test -z "$DYNLOADFILE"
19234 then
19235 case $ac_sys_system/$ac_sys_release in
19236 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
19237 *)
19238 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
19239 # out any dynamic loading
19240 if test "$ac_cv_func_dlopen" = yes
19241 then DYNLOADFILE="dynload_shlib.o"
19242 else DYNLOADFILE="dynload_stub.o"
19243 fi
19244 ;;
19245 esac
19246 fi
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
19248 printf "%s\n" "$DYNLOADFILE" >&6; }
19249 if test "$DYNLOADFILE" != "dynload_stub.o"
19250 then
19251
19252 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
19253
19254 fi
19255
19256 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
19257
19258
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
19260 printf %s "checking MACHDEP_OBJS... " >&6; }
19261 if test -z "$MACHDEP_OBJS"
19262 then
19263 MACHDEP_OBJS=$extra_machdep_objs
19264 else
19265 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
19266 fi
19267 if test -z "$MACHDEP_OBJS"; then
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
19269 printf "%s\n" "none" >&6; }
19270 else
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
19272 printf "%s\n" "$MACHDEP_OBJS" >&6; }
19273 fi
19274
19275 if test "$ac_sys_system" = "Linux-android"; then
19276 # When these functions are used in an unprivileged process, they crash rather
19277 # than returning an error.
19278 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname
19279 setregid setresgid setresuid setreuid setuid"
19280
19281 # These functions are unimplemented and always return an error
19282 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
19283 blocked_funcs="$blocked_funcs sem_open sem_unlink"
19284
19285 # Before API level 23, when fchmodat is called with the unimplemented flag
19286 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
19287 # follows the symlink.
19288 if test "$ANDROID_API_LEVEL" -lt 23; then
19289 blocked_funcs="$blocked_funcs fchmodat"
19290 fi
19291
19292 for name in $blocked_funcs; do
19293 as_func_var=`printf "%s\n" "ac_cv_func_$name" | sed "$as_sed_sh"`
19294
19295 eval "$as_func_var=no"
19296
19297 done
19298 fi
19299
19300 # checks for library functions
19301 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
19302 if test "x$ac_cv_func_accept4" = xyes
19303 then :
19304 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
19305
19306 fi
19307 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
19308 if test "x$ac_cv_func_alarm" = xyes
19309 then :
19310 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
19311
19312 fi
19313 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19314 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
19315 then :
19316 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
19317
19318 fi
19319 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
19320 if test "x$ac_cv_func_chmod" = xyes
19321 then :
19322 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
19323
19324 fi
19325 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
19326 if test "x$ac_cv_func_chown" = xyes
19327 then :
19328 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
19329
19330 fi
19331 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
19332 if test "x$ac_cv_func_clock" = xyes
19333 then :
19334 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
19335
19336 fi
19337 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
19338 if test "x$ac_cv_func_closefrom" = xyes
19339 then :
19340 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
19341
19342 fi
19343 ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range"
19344 if test "x$ac_cv_func_close_range" = xyes
19345 then :
19346 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
19347
19348 fi
19349 ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr"
19350 if test "x$ac_cv_func_confstr" = xyes
19351 then :
19352 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
19353
19354 fi
19355 ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
19356 if test "x$ac_cv_func_copy_file_range" = xyes
19357 then :
19358 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
19359
19360 fi
19361 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
19362 if test "x$ac_cv_func_ctermid" = xyes
19363 then :
19364 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
19365
19366 fi
19367 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
19368 if test "x$ac_cv_func_dladdr" = xyes
19369 then :
19370 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
19371
19372 fi
19373 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
19374 if test "x$ac_cv_func_dup" = xyes
19375 then :
19376 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
19377
19378 fi
19379 ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv"
19380 if test "x$ac_cv_func_execv" = xyes
19381 then :
19382 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
19383
19384 fi
19385 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
19386 if test "x$ac_cv_func_explicit_bzero" = xyes
19387 then :
19388 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
19389
19390 fi
19391 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
19392 if test "x$ac_cv_func_explicit_memset" = xyes
19393 then :
19394 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
19395
19396 fi
19397 ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat"
19398 if test "x$ac_cv_func_faccessat" = xyes
19399 then :
19400 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
19401
19402 fi
19403 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
19404 if test "x$ac_cv_func_fchmod" = xyes
19405 then :
19406 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
19407
19408 fi
19409 ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
19410 if test "x$ac_cv_func_fchmodat" = xyes
19411 then :
19412 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
19413
19414 fi
19415 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19416 if test "x$ac_cv_func_fchown" = xyes
19417 then :
19418 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
19419
19420 fi
19421 ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat"
19422 if test "x$ac_cv_func_fchownat" = xyes
19423 then :
19424 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
19425
19426 fi
19427 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
19428 if test "x$ac_cv_func_fdopendir" = xyes
19429 then :
19430 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
19431
19432 fi
19433 ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk"
19434 if test "x$ac_cv_func_fdwalk" = xyes
19435 then :
19436 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
19437
19438 fi
19439 ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
19440 if test "x$ac_cv_func_fexecve" = xyes
19441 then :
19442 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
19443
19444 fi
19445 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19446 if test "x$ac_cv_func_fork" = xyes
19447 then :
19448 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
19449
19450 fi
19451 ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1"
19452 if test "x$ac_cv_func_fork1" = xyes
19453 then :
19454 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
19455
19456 fi
19457 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf"
19458 if test "x$ac_cv_func_fpathconf" = xyes
19459 then :
19460 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
19461
19462 fi
19463 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
19464 if test "x$ac_cv_func_fstatat" = xyes
19465 then :
19466 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
19467
19468 fi
19469 ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
19470 if test "x$ac_cv_func_ftime" = xyes
19471 then :
19472 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
19473
19474 fi
19475 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
19476 if test "x$ac_cv_func_ftruncate" = xyes
19477 then :
19478 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
19479
19480 fi
19481 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
19482 if test "x$ac_cv_func_futimens" = xyes
19483 then :
19484 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
19485
19486 fi
19487 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
19488 if test "x$ac_cv_func_futimes" = xyes
19489 then :
19490 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
19491
19492 fi
19493 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
19494 if test "x$ac_cv_func_futimesat" = xyes
19495 then :
19496 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
19497
19498 fi
19499 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
19500 if test "x$ac_cv_func_gai_strerror" = xyes
19501 then :
19502 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
19503
19504 fi
19505 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
19506 if test "x$ac_cv_func_getegid" = xyes
19507 then :
19508 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
19509
19510 fi
19511 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19512 if test "x$ac_cv_func_geteuid" = xyes
19513 then :
19514 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
19515
19516 fi
19517 ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
19518 if test "x$ac_cv_func_getgid" = xyes
19519 then :
19520 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
19521
19522 fi
19523 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
19524 if test "x$ac_cv_func_getgrent" = xyes
19525 then :
19526 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
19527
19528 fi
19529 ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid"
19530 if test "x$ac_cv_func_getgrgid" = xyes
19531 then :
19532 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
19533
19534 fi
19535 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
19536 if test "x$ac_cv_func_getgrgid_r" = xyes
19537 then :
19538 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
19539
19540 fi
19541 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
19542 if test "x$ac_cv_func_getgrnam_r" = xyes
19543 then :
19544 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
19545
19546 fi
19547 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
19548 if test "x$ac_cv_func_getgrouplist" = xyes
19549 then :
19550 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
19551
19552 fi
19553 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
19554 if test "x$ac_cv_func_gethostname" = xyes
19555 then :
19556 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
19557
19558 fi
19559 ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer"
19560 if test "x$ac_cv_func_getitimer" = xyes
19561 then :
19562 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
19563
19564 fi
19565 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19566 if test "x$ac_cv_func_getloadavg" = xyes
19567 then :
19568 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
19569
19570 fi
19571 ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin"
19572 if test "x$ac_cv_func_getlogin" = xyes
19573 then :
19574 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
19575
19576 fi
19577 ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r"
19578 if test "x$ac_cv_func_getlogin_r" = xyes
19579 then :
19580 printf "%s\n" "#define HAVE_GETLOGIN_R 1" >>confdefs.h
19581
19582 fi
19583 ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
19584 if test "x$ac_cv_func_getpeername" = xyes
19585 then :
19586 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
19587
19588 fi
19589 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
19590 if test "x$ac_cv_func_getpgid" = xyes
19591 then :
19592 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
19593
19594 fi
19595 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
19596 if test "x$ac_cv_func_getpid" = xyes
19597 then :
19598 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
19599
19600 fi
19601 ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
19602 if test "x$ac_cv_func_getppid" = xyes
19603 then :
19604 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
19605
19606 fi
19607 ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority"
19608 if test "x$ac_cv_func_getpriority" = xyes
19609 then :
19610 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
19611
19612 fi
19613 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
19614 if test "x$ac_cv_func__getpty" = xyes
19615 then :
19616 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
19617
19618 fi
19619 ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent"
19620 if test "x$ac_cv_func_getpwent" = xyes
19621 then :
19622 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
19623
19624 fi
19625 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
19626 if test "x$ac_cv_func_getpwnam_r" = xyes
19627 then :
19628 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
19629
19630 fi
19631 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
19632 if test "x$ac_cv_func_getpwuid" = xyes
19633 then :
19634 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
19635
19636 fi
19637 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
19638 if test "x$ac_cv_func_getpwuid_r" = xyes
19639 then :
19640 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
19641
19642 fi
19643 ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
19644 if test "x$ac_cv_func_getresgid" = xyes
19645 then :
19646 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
19647
19648 fi
19649 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
19650 if test "x$ac_cv_func_getresuid" = xyes
19651 then :
19652 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
19653
19654 fi
19655 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
19656 if test "x$ac_cv_func_getrusage" = xyes
19657 then :
19658 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
19659
19660 fi
19661 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
19662 if test "x$ac_cv_func_getsid" = xyes
19663 then :
19664 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
19665
19666 fi
19667 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
19668 if test "x$ac_cv_func_getspent" = xyes
19669 then :
19670 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
19671
19672 fi
19673 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
19674 if test "x$ac_cv_func_getspnam" = xyes
19675 then :
19676 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
19677
19678 fi
19679 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
19680 if test "x$ac_cv_func_getuid" = xyes
19681 then :
19682 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
19683
19684 fi
19685 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
19686 if test "x$ac_cv_func_getwd" = xyes
19687 then :
19688 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
19689
19690 fi
19691 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19692 if test "x$ac_cv_func_grantpt" = xyes
19693 then :
19694 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
19695
19696 fi
19697 ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
19698 if test "x$ac_cv_func_if_nameindex" = xyes
19699 then :
19700 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
19701
19702 fi
19703 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
19704 if test "x$ac_cv_func_initgroups" = xyes
19705 then :
19706 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
19707
19708 fi
19709 ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
19710 if test "x$ac_cv_func_kill" = xyes
19711 then :
19712 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
19713
19714 fi
19715 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
19716 if test "x$ac_cv_func_killpg" = xyes
19717 then :
19718 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
19719
19720 fi
19721 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
19722 if test "x$ac_cv_func_lchown" = xyes
19723 then :
19724 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
19725
19726 fi
19727 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
19728 if test "x$ac_cv_func_linkat" = xyes
19729 then :
19730 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
19731
19732 fi
19733 ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
19734 if test "x$ac_cv_func_lockf" = xyes
19735 then :
19736 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
19737
19738 fi
19739 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19740 if test "x$ac_cv_func_lstat" = xyes
19741 then :
19742 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
19743
19744 fi
19745 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
19746 if test "x$ac_cv_func_lutimes" = xyes
19747 then :
19748 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
19749
19750 fi
19751 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
19752 if test "x$ac_cv_func_madvise" = xyes
19753 then :
19754 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
19755
19756 fi
19757 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
19758 if test "x$ac_cv_func_mbrtowc" = xyes
19759 then :
19760 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
19761
19762 fi
19763 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
19764 if test "x$ac_cv_func_memrchr" = xyes
19765 then :
19766 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
19767
19768 fi
19769 ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
19770 if test "x$ac_cv_func_mkdirat" = xyes
19771 then :
19772 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
19773
19774 fi
19775 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
19776 if test "x$ac_cv_func_mkfifo" = xyes
19777 then :
19778 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
19779
19780 fi
19781 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
19782 if test "x$ac_cv_func_mkfifoat" = xyes
19783 then :
19784 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
19785
19786 fi
19787 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
19788 if test "x$ac_cv_func_mknod" = xyes
19789 then :
19790 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
19791
19792 fi
19793 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
19794 if test "x$ac_cv_func_mknodat" = xyes
19795 then :
19796 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
19797
19798 fi
19799 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
19800 if test "x$ac_cv_func_mktime" = xyes
19801 then :
19802 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
19803
19804 fi
19805 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19806 if test "x$ac_cv_func_mmap" = xyes
19807 then :
19808 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
19809
19810 fi
19811 ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
19812 if test "x$ac_cv_func_mremap" = xyes
19813 then :
19814 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
19815
19816 fi
19817 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
19818 if test "x$ac_cv_func_nice" = xyes
19819 then :
19820 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
19821
19822 fi
19823 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
19824 if test "x$ac_cv_func_openat" = xyes
19825 then :
19826 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
19827
19828 fi
19829 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
19830 if test "x$ac_cv_func_opendir" = xyes
19831 then :
19832 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
19833
19834 fi
19835 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
19836 if test "x$ac_cv_func_pathconf" = xyes
19837 then :
19838 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
19839
19840 fi
19841 ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause"
19842 if test "x$ac_cv_func_pause" = xyes
19843 then :
19844 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
19845
19846 fi
19847 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
19848 if test "x$ac_cv_func_pipe" = xyes
19849 then :
19850 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
19851
19852 fi
19853 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
19854 if test "x$ac_cv_func_plock" = xyes
19855 then :
19856 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
19857
19858 fi
19859 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19860 if test "x$ac_cv_func_poll" = xyes
19861 then :
19862 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
19863
19864 fi
19865 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
19866 if test "x$ac_cv_func_posix_fadvise" = xyes
19867 then :
19868 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
19869
19870 fi
19871 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19872 if test "x$ac_cv_func_posix_fallocate" = xyes
19873 then :
19874 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
19875
19876 fi
19877 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
19878 if test "x$ac_cv_func_posix_openpt" = xyes
19879 then :
19880 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
19881
19882 fi
19883 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
19884 if test "x$ac_cv_func_posix_spawn" = xyes
19885 then :
19886 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
19887
19888 fi
19889 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
19890 if test "x$ac_cv_func_posix_spawnp" = xyes
19891 then :
19892 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
19893
19894 fi
19895 ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
19896 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
19897 then :
19898 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
19899
19900 fi
19901 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
19902 if test "x$ac_cv_func_pread" = xyes
19903 then :
19904 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
19905
19906 fi
19907 ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv"
19908 if test "x$ac_cv_func_preadv" = xyes
19909 then :
19910 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
19911
19912 fi
19913 ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2"
19914 if test "x$ac_cv_func_preadv2" = xyes
19915 then :
19916 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
19917
19918 fi
19919 ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
19920 if test "x$ac_cv_func_process_vm_readv" = xyes
19921 then :
19922 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
19923
19924 fi
19925 ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
19926 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
19927 then :
19928 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
19929
19930 fi
19931 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
19932 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
19933 then :
19934 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
19935
19936 fi
19937 ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init"
19938 if test "x$ac_cv_func_pthread_init" = xyes
19939 then :
19940 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
19941
19942 fi
19943 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19944 if test "x$ac_cv_func_pthread_kill" = xyes
19945 then :
19946 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
19947
19948 fi
19949 ac_fn_c_check_func "$LINENO" "pthread_get_name_np" "ac_cv_func_pthread_get_name_np"
19950 if test "x$ac_cv_func_pthread_get_name_np" = xyes
19951 then :
19952 printf "%s\n" "#define HAVE_PTHREAD_GET_NAME_NP 1" >>confdefs.h
19953
19954 fi
19955 ac_fn_c_check_func "$LINENO" "pthread_getname_np" "ac_cv_func_pthread_getname_np"
19956 if test "x$ac_cv_func_pthread_getname_np" = xyes
19957 then :
19958 printf "%s\n" "#define HAVE_PTHREAD_GETNAME_NP 1" >>confdefs.h
19959
19960 fi
19961 ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
19962 if test "x$ac_cv_func_pthread_set_name_np" = xyes
19963 then :
19964 printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
19965
19966 fi
19967 ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
19968 if test "x$ac_cv_func_pthread_setname_np" = xyes
19969 then :
19970 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
19971
19972 fi
19973 ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
19974 if test "x$ac_cv_func_pthread_getattr_np" = xyes
19975 then :
19976 printf "%s\n" "#define HAVE_PTHREAD_GETATTR_NP 1" >>confdefs.h
19977
19978 fi
19979 ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
19980 if test "x$ac_cv_func_ptsname" = xyes
19981 then :
19982 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
19983
19984 fi
19985 ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
19986 if test "x$ac_cv_func_ptsname_r" = xyes
19987 then :
19988 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
19989
19990 fi
19991 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
19992 if test "x$ac_cv_func_pwrite" = xyes
19993 then :
19994 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
19995
19996 fi
19997 ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev"
19998 if test "x$ac_cv_func_pwritev" = xyes
19999 then :
20000 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
20001
20002 fi
20003 ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2"
20004 if test "x$ac_cv_func_pwritev2" = xyes
20005 then :
20006 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
20007
20008 fi
20009 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
20010 if test "x$ac_cv_func_readlink" = xyes
20011 then :
20012 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
20013
20014 fi
20015 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
20016 if test "x$ac_cv_func_readlinkat" = xyes
20017 then :
20018 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
20019
20020 fi
20021 ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv"
20022 if test "x$ac_cv_func_readv" = xyes
20023 then :
20024 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
20025
20026 fi
20027 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
20028 if test "x$ac_cv_func_realpath" = xyes
20029 then :
20030 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
20031
20032 fi
20033 ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat"
20034 if test "x$ac_cv_func_renameat" = xyes
20035 then :
20036 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
20037
20038 fi
20039 ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
20040 if test "x$ac_cv_func_rtpSpawn" = xyes
20041 then :
20042 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
20043
20044 fi
20045 ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
20046 if test "x$ac_cv_func_sched_get_priority_max" = xyes
20047 then :
20048 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
20049
20050 fi
20051 ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
20052 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
20053 then :
20054 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
20055
20056 fi
20057 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
20058 if test "x$ac_cv_func_sched_setaffinity" = xyes
20059 then :
20060 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
20061
20062 fi
20063 ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
20064 if test "x$ac_cv_func_sched_setparam" = xyes
20065 then :
20066 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
20067
20068 fi
20069 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
20070 if test "x$ac_cv_func_sched_setscheduler" = xyes
20071 then :
20072 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
20073
20074 fi
20075 ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
20076 if test "x$ac_cv_func_sem_clockwait" = xyes
20077 then :
20078 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
20079
20080 fi
20081 ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
20082 if test "x$ac_cv_func_sem_getvalue" = xyes
20083 then :
20084 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
20085
20086 fi
20087 ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open"
20088 if test "x$ac_cv_func_sem_open" = xyes
20089 then :
20090 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
20091
20092 fi
20093 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
20094 if test "x$ac_cv_func_sem_timedwait" = xyes
20095 then :
20096 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
20097
20098 fi
20099 ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
20100 if test "x$ac_cv_func_sem_unlink" = xyes
20101 then :
20102 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
20103
20104 fi
20105 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
20106 if test "x$ac_cv_func_sendfile" = xyes
20107 then :
20108 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
20109
20110 fi
20111 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
20112 if test "x$ac_cv_func_setegid" = xyes
20113 then :
20114 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
20115
20116 fi
20117 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
20118 if test "x$ac_cv_func_seteuid" = xyes
20119 then :
20120 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
20121
20122 fi
20123 ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid"
20124 if test "x$ac_cv_func_setgid" = xyes
20125 then :
20126 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
20127
20128 fi
20129 ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname"
20130 if test "x$ac_cv_func_sethostname" = xyes
20131 then :
20132 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
20133
20134 fi
20135 ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
20136 if test "x$ac_cv_func_setitimer" = xyes
20137 then :
20138 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
20139
20140 fi
20141 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
20142 if test "x$ac_cv_func_setlocale" = xyes
20143 then :
20144 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
20145
20146 fi
20147 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
20148 if test "x$ac_cv_func_setpgid" = xyes
20149 then :
20150 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
20151
20152 fi
20153 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
20154 if test "x$ac_cv_func_setpgrp" = xyes
20155 then :
20156 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
20157
20158 fi
20159 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
20160 if test "x$ac_cv_func_setpriority" = xyes
20161 then :
20162 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
20163
20164 fi
20165 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20166 if test "x$ac_cv_func_setregid" = xyes
20167 then :
20168 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
20169
20170 fi
20171 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20172 if test "x$ac_cv_func_setresgid" = xyes
20173 then :
20174 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
20175
20176 fi
20177 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20178 if test "x$ac_cv_func_setresuid" = xyes
20179 then :
20180 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
20181
20182 fi
20183 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20184 if test "x$ac_cv_func_setreuid" = xyes
20185 then :
20186 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
20187
20188 fi
20189 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
20190 if test "x$ac_cv_func_setsid" = xyes
20191 then :
20192 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
20193
20194 fi
20195 ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
20196 if test "x$ac_cv_func_setuid" = xyes
20197 then :
20198 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
20199
20200 fi
20201 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
20202 if test "x$ac_cv_func_setvbuf" = xyes
20203 then :
20204 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
20205
20206 fi
20207 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
20208 if test "x$ac_cv_func_shutdown" = xyes
20209 then :
20210 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
20211
20212 fi
20213 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
20214 if test "x$ac_cv_func_sigaction" = xyes
20215 then :
20216 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
20217
20218 fi
20219 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
20220 if test "x$ac_cv_func_sigaltstack" = xyes
20221 then :
20222 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
20223
20224 fi
20225 ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset"
20226 if test "x$ac_cv_func_sigfillset" = xyes
20227 then :
20228 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
20229
20230 fi
20231 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
20232 if test "x$ac_cv_func_siginterrupt" = xyes
20233 then :
20234 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
20235
20236 fi
20237 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
20238 if test "x$ac_cv_func_sigpending" = xyes
20239 then :
20240 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
20241
20242 fi
20243 ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse"
20244 if test "x$ac_cv_func_sigrelse" = xyes
20245 then :
20246 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
20247
20248 fi
20249 ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
20250 if test "x$ac_cv_func_sigtimedwait" = xyes
20251 then :
20252 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
20253
20254 fi
20255 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20256 if test "x$ac_cv_func_sigwait" = xyes
20257 then :
20258 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
20259
20260 fi
20261 ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
20262 if test "x$ac_cv_func_sigwaitinfo" = xyes
20263 then :
20264 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
20265
20266 fi
20267 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20268 if test "x$ac_cv_func_snprintf" = xyes
20269 then :
20270 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
20271
20272 fi
20273 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
20274 if test "x$ac_cv_func_splice" = xyes
20275 then :
20276 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
20277
20278 fi
20279 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20280 if test "x$ac_cv_func_strftime" = xyes
20281 then :
20282 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
20283
20284 fi
20285 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20286 if test "x$ac_cv_func_strlcpy" = xyes
20287 then :
20288 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20289
20290 fi
20291 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
20292 if test "x$ac_cv_func_strsignal" = xyes
20293 then :
20294 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
20295
20296 fi
20297 ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat"
20298 if test "x$ac_cv_func_symlinkat" = xyes
20299 then :
20300 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
20301
20302 fi
20303 ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync"
20304 if test "x$ac_cv_func_sync" = xyes
20305 then :
20306 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
20307
20308 fi
20309 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20310 if test "x$ac_cv_func_sysconf" = xyes
20311 then :
20312 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20313
20314 fi
20315 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
20316 if test "x$ac_cv_func_tcgetpgrp" = xyes
20317 then :
20318 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
20319
20320 fi
20321 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
20322 if test "x$ac_cv_func_tcsetpgrp" = xyes
20323 then :
20324 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
20325
20326 fi
20327 ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
20328 if test "x$ac_cv_func_tempnam" = xyes
20329 then :
20330 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
20331
20332 fi
20333 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
20334 if test "x$ac_cv_func_timegm" = xyes
20335 then :
20336 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
20337
20338 fi
20339 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
20340 if test "x$ac_cv_func_times" = xyes
20341 then :
20342 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
20343
20344 fi
20345 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
20346 if test "x$ac_cv_func_tmpfile" = xyes
20347 then :
20348 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
20349
20350 fi
20351 ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam"
20352 if test "x$ac_cv_func_tmpnam" = xyes
20353 then :
20354 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
20355
20356 fi
20357 ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
20358 if test "x$ac_cv_func_tmpnam_r" = xyes
20359 then :
20360 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
20361
20362 fi
20363 ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
20364 if test "x$ac_cv_func_truncate" = xyes
20365 then :
20366 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
20367
20368 fi
20369 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
20370 if test "x$ac_cv_func_ttyname_r" = xyes
20371 then :
20372 printf "%s\n" "#define HAVE_TTYNAME_R 1" >>confdefs.h
20373
20374 fi
20375 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
20376 if test "x$ac_cv_func_umask" = xyes
20377 then :
20378 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
20379
20380 fi
20381 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
20382 if test "x$ac_cv_func_uname" = xyes
20383 then :
20384 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
20385
20386 fi
20387 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
20388 if test "x$ac_cv_func_unlinkat" = xyes
20389 then :
20390 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
20391
20392 fi
20393 ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt"
20394 if test "x$ac_cv_func_unlockpt" = xyes
20395 then :
20396 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
20397
20398 fi
20399 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
20400 if test "x$ac_cv_func_utimensat" = xyes
20401 then :
20402 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
20403
20404 fi
20405 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
20406 if test "x$ac_cv_func_utimes" = xyes
20407 then :
20408 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
20409
20410 fi
20411 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
20412 if test "x$ac_cv_func_vfork" = xyes
20413 then :
20414 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
20415
20416 fi
20417 ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait"
20418 if test "x$ac_cv_func_wait" = xyes
20419 then :
20420 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
20421
20422 fi
20423 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
20424 if test "x$ac_cv_func_wait3" = xyes
20425 then :
20426 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
20427
20428 fi
20429 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
20430 if test "x$ac_cv_func_wait4" = xyes
20431 then :
20432 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
20433
20434 fi
20435 ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid"
20436 if test "x$ac_cv_func_waitid" = xyes
20437 then :
20438 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
20439
20440 fi
20441 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
20442 if test "x$ac_cv_func_waitpid" = xyes
20443 then :
20444 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
20445
20446 fi
20447 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
20448 if test "x$ac_cv_func_wcscoll" = xyes
20449 then :
20450 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
20451
20452 fi
20453 ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime"
20454 if test "x$ac_cv_func_wcsftime" = xyes
20455 then :
20456 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
20457
20458 fi
20459 ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
20460 if test "x$ac_cv_func_wcsxfrm" = xyes
20461 then :
20462 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
20463
20464 fi
20465 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
20466 if test "x$ac_cv_func_wmemcmp" = xyes
20467 then :
20468 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
20469
20470 fi
20471 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
20472 if test "x$ac_cv_func_writev" = xyes
20473 then :
20474 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
20475
20476 fi
20477
20478
20479 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
20480 # links. Some libc implementations have a stub lchmod implementation that always
20481 # returns an error.
20482 if test "$MACHDEP" != linux; then
20483 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
20484 if test "x$ac_cv_func_lchmod" = xyes
20485 then :
20486 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
20487
20488 fi
20489
20490 fi
20491
20492 # iOS defines some system methods that can be linked (so they are
20493 # found by configure), but either raise a compilation error (because the
20494 # header definition prevents usage - autoconf doesn't use the headers), or
20495 # raise an error if used at runtime. Force these symbols off.
20496 if test "$ac_sys_system" != "iOS" ; then
20497 ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3"
20498 if test "x$ac_cv_func_dup3" = xyes
20499 then :
20500 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
20501
20502 fi
20503 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20504 if test "x$ac_cv_func_getentropy" = xyes
20505 then :
20506 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
20507
20508 fi
20509 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
20510 if test "x$ac_cv_func_getgroups" = xyes
20511 then :
20512 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
20513
20514 fi
20515 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
20516 if test "x$ac_cv_func_pipe2" = xyes
20517 then :
20518 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
20519
20520 fi
20521 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
20522 if test "x$ac_cv_func_system" = xyes
20523 then :
20524 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
20525
20526 fi
20527
20528 fi
20529
20530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20531 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20532 if test ${ac_cv_c_undeclared_builtin_options+y}
20533 then :
20534 printf %s "(cached) " >&6
20535 else case e in #(
20536 e) ac_save_CFLAGS=$CFLAGS
20537 ac_cv_c_undeclared_builtin_options='cannot detect'
20538 for ac_arg in '' -fno-builtin; do
20539 CFLAGS="$ac_save_CFLAGS $ac_arg"
20540 # This test program should *not* compile successfully.
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20543
20544 int
20545 main (void)
20546 {
20547 (void) strchr;
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_c_try_compile "$LINENO"
20553 then :
20554
20555 else case e in #(
20556 e) # This test program should compile successfully.
20557 # No library function is consistently available on
20558 # freestanding implementations, so test against a dummy
20559 # declaration. Include always-available headers on the
20560 # off chance that they somehow elicit warnings.
20561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20562 /* end confdefs.h. */
20563 #include <float.h>
20564 #include <limits.h>
20565 #include <stdarg.h>
20566 #include <stddef.h>
20567 extern void ac_decl (int, char *);
20568
20569 int
20570 main (void)
20571 {
20572 (void) ac_decl (0, (char *) 0);
20573 (void) ac_decl;
20574
20575 ;
20576 return 0;
20577 }
20578 _ACEOF
20579 if ac_fn_c_try_compile "$LINENO"
20580 then :
20581 if test x"$ac_arg" = x
20582 then :
20583 ac_cv_c_undeclared_builtin_options='none needed'
20584 else case e in #(
20585 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20586 esac
20587 fi
20588 break
20589 fi
20590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20591 esac
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20594 done
20595 CFLAGS=$ac_save_CFLAGS
20596 ;;
20597 esac
20598 fi
20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20600 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20601 case $ac_cv_c_undeclared_builtin_options in #(
20602 'cannot detect') :
20603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20604 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20605 as_fn_error $? "cannot make $CC report undeclared builtins
20606 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20607 'none needed') :
20608 ac_c_undeclared_builtin_options='' ;; #(
20609 *) :
20610 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20611 esac
20612
20613 ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
20614 #include <dirent.h>
20615 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20616 if test "x$ac_cv_have_decl_dirfd" = xyes
20617 then :
20618
20619 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
20620
20621 fi
20622
20623 # For some functions, having a definition is not sufficient, since
20624 # we want to take their address.
20625
20626
20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
20628 printf %s "checking for chroot... " >&6; }
20629 if test ${ac_cv_func_chroot+y}
20630 then :
20631 printf %s "(cached) " >&6
20632 else case e in #(
20633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635 #include <unistd.h>
20636 int
20637 main (void)
20638 {
20639 void *x=chroot
20640 ;
20641 return 0;
20642 }
20643 _ACEOF
20644 if ac_fn_c_try_compile "$LINENO"
20645 then :
20646 ac_cv_func_chroot=yes
20647 else case e in #(
20648 e) ac_cv_func_chroot=no ;;
20649 esac
20650 fi
20651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20652 ;;
20653 esac
20654 fi
20655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
20656 printf "%s\n" "$ac_cv_func_chroot" >&6; }
20657 if test "x$ac_cv_func_chroot" = xyes
20658 then :
20659
20660 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
20661
20662 fi
20663
20664
20665
20666
20667
20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
20669 printf %s "checking for link... " >&6; }
20670 if test ${ac_cv_func_link+y}
20671 then :
20672 printf %s "(cached) " >&6
20673 else case e in #(
20674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h. */
20676 #include <unistd.h>
20677 int
20678 main (void)
20679 {
20680 void *x=link
20681 ;
20682 return 0;
20683 }
20684 _ACEOF
20685 if ac_fn_c_try_compile "$LINENO"
20686 then :
20687 ac_cv_func_link=yes
20688 else case e in #(
20689 e) ac_cv_func_link=no ;;
20690 esac
20691 fi
20692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20693 ;;
20694 esac
20695 fi
20696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
20697 printf "%s\n" "$ac_cv_func_link" >&6; }
20698 if test "x$ac_cv_func_link" = xyes
20699 then :
20700
20701 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
20702
20703 fi
20704
20705
20706
20707
20708
20709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
20710 printf %s "checking for symlink... " >&6; }
20711 if test ${ac_cv_func_symlink+y}
20712 then :
20713 printf %s "(cached) " >&6
20714 else case e in #(
20715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717 #include <unistd.h>
20718 int
20719 main (void)
20720 {
20721 void *x=symlink
20722 ;
20723 return 0;
20724 }
20725 _ACEOF
20726 if ac_fn_c_try_compile "$LINENO"
20727 then :
20728 ac_cv_func_symlink=yes
20729 else case e in #(
20730 e) ac_cv_func_symlink=no ;;
20731 esac
20732 fi
20733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20734 ;;
20735 esac
20736 fi
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
20738 printf "%s\n" "$ac_cv_func_symlink" >&6; }
20739 if test "x$ac_cv_func_symlink" = xyes
20740 then :
20741
20742 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
20743
20744 fi
20745
20746
20747
20748
20749
20750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
20751 printf %s "checking for fchdir... " >&6; }
20752 if test ${ac_cv_func_fchdir+y}
20753 then :
20754 printf %s "(cached) " >&6
20755 else case e in #(
20756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h. */
20758 #include <unistd.h>
20759 int
20760 main (void)
20761 {
20762 void *x=fchdir
20763 ;
20764 return 0;
20765 }
20766 _ACEOF
20767 if ac_fn_c_try_compile "$LINENO"
20768 then :
20769 ac_cv_func_fchdir=yes
20770 else case e in #(
20771 e) ac_cv_func_fchdir=no ;;
20772 esac
20773 fi
20774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20775 ;;
20776 esac
20777 fi
20778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
20779 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
20780 if test "x$ac_cv_func_fchdir" = xyes
20781 then :
20782
20783 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
20784
20785 fi
20786
20787
20788
20789
20790
20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
20792 printf %s "checking for fsync... " >&6; }
20793 if test ${ac_cv_func_fsync+y}
20794 then :
20795 printf %s "(cached) " >&6
20796 else case e in #(
20797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20799 #include <unistd.h>
20800 int
20801 main (void)
20802 {
20803 void *x=fsync
20804 ;
20805 return 0;
20806 }
20807 _ACEOF
20808 if ac_fn_c_try_compile "$LINENO"
20809 then :
20810 ac_cv_func_fsync=yes
20811 else case e in #(
20812 e) ac_cv_func_fsync=no ;;
20813 esac
20814 fi
20815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20816 ;;
20817 esac
20818 fi
20819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
20820 printf "%s\n" "$ac_cv_func_fsync" >&6; }
20821 if test "x$ac_cv_func_fsync" = xyes
20822 then :
20823
20824 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
20825
20826 fi
20827
20828
20829
20830
20831
20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
20833 printf %s "checking for fdatasync... " >&6; }
20834 if test ${ac_cv_func_fdatasync+y}
20835 then :
20836 printf %s "(cached) " >&6
20837 else case e in #(
20838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <unistd.h>
20841 int
20842 main (void)
20843 {
20844 void *x=fdatasync
20845 ;
20846 return 0;
20847 }
20848 _ACEOF
20849 if ac_fn_c_try_compile "$LINENO"
20850 then :
20851 ac_cv_func_fdatasync=yes
20852 else case e in #(
20853 e) ac_cv_func_fdatasync=no ;;
20854 esac
20855 fi
20856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20857 ;;
20858 esac
20859 fi
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
20861 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
20862 if test "x$ac_cv_func_fdatasync" = xyes
20863 then :
20864
20865 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
20866
20867 fi
20868
20869
20870
20871
20872
20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
20874 printf %s "checking for epoll_create... " >&6; }
20875 if test ${ac_cv_func_epoll_create+y}
20876 then :
20877 printf %s "(cached) " >&6
20878 else case e in #(
20879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20881 #include <sys/epoll.h>
20882 int
20883 main (void)
20884 {
20885 void *x=epoll_create
20886 ;
20887 return 0;
20888 }
20889 _ACEOF
20890 if ac_fn_c_try_compile "$LINENO"
20891 then :
20892 ac_cv_func_epoll_create=yes
20893 else case e in #(
20894 e) ac_cv_func_epoll_create=no ;;
20895 esac
20896 fi
20897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20898 ;;
20899 esac
20900 fi
20901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
20902 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
20903 if test "x$ac_cv_func_epoll_create" = xyes
20904 then :
20905
20906 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
20907
20908 fi
20909
20910
20911
20912
20913
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
20915 printf %s "checking for epoll_create1... " >&6; }
20916 if test ${ac_cv_func_epoll_create1+y}
20917 then :
20918 printf %s "(cached) " >&6
20919 else case e in #(
20920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h. */
20922 #include <sys/epoll.h>
20923 int
20924 main (void)
20925 {
20926 void *x=epoll_create1
20927 ;
20928 return 0;
20929 }
20930 _ACEOF
20931 if ac_fn_c_try_compile "$LINENO"
20932 then :
20933 ac_cv_func_epoll_create1=yes
20934 else case e in #(
20935 e) ac_cv_func_epoll_create1=no ;;
20936 esac
20937 fi
20938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20939 ;;
20940 esac
20941 fi
20942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
20943 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
20944 if test "x$ac_cv_func_epoll_create1" = xyes
20945 then :
20946
20947 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20948
20949 fi
20950
20951
20952
20953
20954
20955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
20956 printf %s "checking for kqueue... " >&6; }
20957 if test ${ac_cv_func_kqueue+y}
20958 then :
20959 printf %s "(cached) " >&6
20960 else case e in #(
20961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20963
20964 #include <sys/types.h>
20965 #include <sys/event.h>
20966
20967 int
20968 main (void)
20969 {
20970 void *x=kqueue
20971 ;
20972 return 0;
20973 }
20974 _ACEOF
20975 if ac_fn_c_try_compile "$LINENO"
20976 then :
20977 ac_cv_func_kqueue=yes
20978 else case e in #(
20979 e) ac_cv_func_kqueue=no ;;
20980 esac
20981 fi
20982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20983 ;;
20984 esac
20985 fi
20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
20987 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
20988 if test "x$ac_cv_func_kqueue" = xyes
20989 then :
20990
20991 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
20992
20993 fi
20994
20995
20996
20997
20998
20999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
21000 printf %s "checking for prlimit... " >&6; }
21001 if test ${ac_cv_func_prlimit+y}
21002 then :
21003 printf %s "(cached) " >&6
21004 else case e in #(
21005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21007
21008 #include <sys/time.h>
21009 #include <sys/resource.h>
21010
21011 int
21012 main (void)
21013 {
21014 void *x=prlimit
21015 ;
21016 return 0;
21017 }
21018 _ACEOF
21019 if ac_fn_c_try_compile "$LINENO"
21020 then :
21021 ac_cv_func_prlimit=yes
21022 else case e in #(
21023 e) ac_cv_func_prlimit=no ;;
21024 esac
21025 fi
21026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21027 ;;
21028 esac
21029 fi
21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
21031 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
21032 if test "x$ac_cv_func_prlimit" = xyes
21033 then :
21034
21035 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
21036
21037 fi
21038
21039
21040
21041
21042
21043
21044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
21045 printf %s "checking for _dyld_shared_cache_contains_path... " >&6; }
21046 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
21047 then :
21048 printf %s "(cached) " >&6
21049 else case e in #(
21050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052 #include <mach-o/dyld.h>
21053 int
21054 main (void)
21055 {
21056 void *x=_dyld_shared_cache_contains_path
21057 ;
21058 return 0;
21059 }
21060 _ACEOF
21061 if ac_fn_c_try_compile "$LINENO"
21062 then :
21063 ac_cv_func__dyld_shared_cache_contains_path=yes
21064 else case e in #(
21065 e) ac_cv_func__dyld_shared_cache_contains_path=no ;;
21066 esac
21067 fi
21068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21069 ;;
21070 esac
21071 fi
21072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
21073 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
21074 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
21075 then :
21076
21077 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
21078
21079 fi
21080
21081
21082
21083
21084
21085
21086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
21087 printf %s "checking for memfd_create... " >&6; }
21088 if test ${ac_cv_func_memfd_create+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 #ifdef HAVE_SYS_MMAN_H
21096 #include <sys/mman.h>
21097 #endif
21098 #ifdef HAVE_SYS_MEMFD_H
21099 #include <sys/memfd.h>
21100 #endif
21101
21102 int
21103 main (void)
21104 {
21105 void *x=memfd_create
21106 ;
21107 return 0;
21108 }
21109 _ACEOF
21110 if ac_fn_c_try_compile "$LINENO"
21111 then :
21112 ac_cv_func_memfd_create=yes
21113 else case e in #(
21114 e) ac_cv_func_memfd_create=no ;;
21115 esac
21116 fi
21117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21118 ;;
21119 esac
21120 fi
21121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
21122 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
21123 if test "x$ac_cv_func_memfd_create" = xyes
21124 then :
21125
21126 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
21127
21128 fi
21129
21130
21131
21132
21133
21134
21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
21136 printf %s "checking for eventfd... " >&6; }
21137 if test ${ac_cv_func_eventfd+y}
21138 then :
21139 printf %s "(cached) " >&6
21140 else case e in #(
21141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21143
21144 #ifdef HAVE_SYS_EVENTFD_H
21145 #include <sys/eventfd.h>
21146 #endif
21147
21148 int
21149 main (void)
21150 {
21151 void *x=eventfd
21152 ;
21153 return 0;
21154 }
21155 _ACEOF
21156 if ac_fn_c_try_compile "$LINENO"
21157 then :
21158 ac_cv_func_eventfd=yes
21159 else case e in #(
21160 e) ac_cv_func_eventfd=no ;;
21161 esac
21162 fi
21163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21164 ;;
21165 esac
21166 fi
21167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
21168 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
21169 if test "x$ac_cv_func_eventfd" = xyes
21170 then :
21171
21172 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
21173
21174 fi
21175
21176
21177
21178
21179
21180
21181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
21182 printf %s "checking for timerfd_create... " >&6; }
21183 if test ${ac_cv_func_timerfd_create+y}
21184 then :
21185 printf %s "(cached) " >&6
21186 else case e in #(
21187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21189
21190 #ifdef HAVE_SYS_TIMERFD_H
21191 #include <sys/timerfd.h>
21192 #endif
21193
21194 int
21195 main (void)
21196 {
21197 void *x=timerfd_create
21198 ;
21199 return 0;
21200 }
21201 _ACEOF
21202 if ac_fn_c_try_compile "$LINENO"
21203 then :
21204 ac_cv_func_timerfd_create=yes
21205 else case e in #(
21206 e) ac_cv_func_timerfd_create=no ;;
21207 esac
21208 fi
21209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21210 ;;
21211 esac
21212 fi
21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
21214 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
21215 if test "x$ac_cv_func_timerfd_create" = xyes
21216 then :
21217
21218 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
21219
21220 fi
21221
21222
21223
21224
21225 # On some systems (eg. FreeBSD 5), we would find a definition of the
21226 # functions ctermid_r, setgroups in the library, but no prototype
21227 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
21228 # address to avoid compiler warnings and potential miscompilations
21229 # because of the missing prototypes.
21230
21231
21232
21233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
21234 printf %s "checking for ctermid_r... " >&6; }
21235 if test ${ac_cv_func_ctermid_r+y}
21236 then :
21237 printf %s "(cached) " >&6
21238 else case e in #(
21239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21240 /* end confdefs.h. */
21241 #include <stdio.h>
21242 int
21243 main (void)
21244 {
21245 void *x=ctermid_r
21246 ;
21247 return 0;
21248 }
21249 _ACEOF
21250 if ac_fn_c_try_compile "$LINENO"
21251 then :
21252 ac_cv_func_ctermid_r=yes
21253 else case e in #(
21254 e) ac_cv_func_ctermid_r=no ;;
21255 esac
21256 fi
21257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21258 ;;
21259 esac
21260 fi
21261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
21262 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
21263 if test "x$ac_cv_func_ctermid_r" = xyes
21264 then :
21265
21266 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
21267
21268 fi
21269
21270
21271
21272
21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
21274 printf %s "checking for flock declaration... " >&6; }
21275 if test ${ac_cv_flock_decl+y}
21276 then :
21277 printf %s "(cached) " >&6
21278 else case e in #(
21279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h. */
21281 #include <sys/file.h>
21282 int
21283 main (void)
21284 {
21285 void* p = flock
21286
21287 ;
21288 return 0;
21289 }
21290 _ACEOF
21291 if ac_fn_c_try_compile "$LINENO"
21292 then :
21293 ac_cv_flock_decl=yes
21294 else case e in #(
21295 e) ac_cv_flock_decl=no
21296 ;;
21297 esac
21298 fi
21299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21300 ;;
21301 esac
21302 fi
21303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
21304 printf "%s\n" "$ac_cv_flock_decl" >&6; }
21305 if test "x$ac_cv_flock_decl" = xyes
21306 then :
21307
21308 for ac_func in flock
21309 do :
21310 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
21311 if test "x$ac_cv_func_flock" = xyes
21312 then :
21313 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
21314
21315 else case e in #(
21316 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
21317 printf %s "checking for flock in -lbsd... " >&6; }
21318 if test ${ac_cv_lib_bsd_flock+y}
21319 then :
21320 printf %s "(cached) " >&6
21321 else case e in #(
21322 e) ac_check_lib_save_LIBS=$LIBS
21323 LIBS="-lbsd $LIBS"
21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h. */
21326
21327 /* Override any GCC internal prototype to avoid an error.
21328 Use char because int might match the return type of a GCC
21329 builtin and then its argument prototype would still apply.
21330 The 'extern "C"' is for builds by C++ compilers;
21331 although this is not generally supported in C code supporting it here
21332 has little cost and some practical benefit (sr 110532). */
21333 #ifdef __cplusplus
21334 extern "C"
21335 #endif
21336 char flock (void);
21337 int
21338 main (void)
21339 {
21340 return flock ();
21341 ;
21342 return 0;
21343 }
21344 _ACEOF
21345 if ac_fn_c_try_link "$LINENO"
21346 then :
21347 ac_cv_lib_bsd_flock=yes
21348 else case e in #(
21349 e) ac_cv_lib_bsd_flock=no ;;
21350 esac
21351 fi
21352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21353 conftest$ac_exeext conftest.$ac_ext
21354 LIBS=$ac_check_lib_save_LIBS ;;
21355 esac
21356 fi
21357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
21358 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
21359 if test "x$ac_cv_lib_bsd_flock" = xyes
21360 then :
21361 FCNTL_LIBS="-lbsd"
21362 fi
21363 ;;
21364 esac
21365 fi
21366
21367 done
21368 fi
21369
21370
21371
21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
21373 printf %s "checking for getpagesize... " >&6; }
21374 if test ${ac_cv_func_getpagesize+y}
21375 then :
21376 printf %s "(cached) " >&6
21377 else case e in #(
21378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21380 #include <unistd.h>
21381 int
21382 main (void)
21383 {
21384 void *x=getpagesize
21385 ;
21386 return 0;
21387 }
21388 _ACEOF
21389 if ac_fn_c_try_compile "$LINENO"
21390 then :
21391 ac_cv_func_getpagesize=yes
21392 else case e in #(
21393 e) ac_cv_func_getpagesize=no ;;
21394 esac
21395 fi
21396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21397 ;;
21398 esac
21399 fi
21400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
21401 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
21402 if test "x$ac_cv_func_getpagesize" = xyes
21403 then :
21404
21405 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
21406
21407 fi
21408
21409
21410
21411
21412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
21413 printf %s "checking for broken unsetenv... " >&6; }
21414 if test ${ac_cv_broken_unsetenv+y}
21415 then :
21416 printf %s "(cached) " >&6
21417 else case e in #(
21418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21420 #include <stdlib.h>
21421 int
21422 main (void)
21423 {
21424 int res = unsetenv("DUMMY")
21425 ;
21426 return 0;
21427 }
21428 _ACEOF
21429 if ac_fn_c_try_compile "$LINENO"
21430 then :
21431 ac_cv_broken_unsetenv=no
21432 else case e in #(
21433 e) ac_cv_broken_unsetenv=yes
21434 ;;
21435 esac
21436 fi
21437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21438 ;;
21439 esac
21440 fi
21441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
21442 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
21443 if test "x$ac_cv_broken_unsetenv" = xyes
21444 then :
21445
21446
21447 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
21448
21449
21450 fi
21451
21452 for ac_prog in true
21453 do
21454 # Extract the first word of "$ac_prog", so it can be a program name with args.
21455 set dummy $ac_prog; ac_word=$2
21456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21457 printf %s "checking for $ac_word... " >&6; }
21458 if test ${ac_cv_prog_TRUE+y}
21459 then :
21460 printf %s "(cached) " >&6
21461 else case e in #(
21462 e) if test -n "$TRUE"; then
21463 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
21464 else
21465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21466 for as_dir in $PATH
21467 do
21468 IFS=$as_save_IFS
21469 case $as_dir in #(((
21470 '') as_dir=./ ;;
21471 */) ;;
21472 *) as_dir=$as_dir/ ;;
21473 esac
21474 for ac_exec_ext in '' $ac_executable_extensions; do
21475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21476 ac_cv_prog_TRUE="$ac_prog"
21477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21478 break 2
21479 fi
21480 done
21481 done
21482 IFS=$as_save_IFS
21483
21484 fi ;;
21485 esac
21486 fi
21487 TRUE=$ac_cv_prog_TRUE
21488 if test -n "$TRUE"; then
21489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
21490 printf "%s\n" "$TRUE" >&6; }
21491 else
21492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 printf "%s\n" "no" >&6; }
21494 fi
21495
21496
21497 test -n "$TRUE" && break
21498 done
21499 test -n "$TRUE" || TRUE="/bin/true"
21500
21501
21502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
21503 printf %s "checking for inet_aton in -lc... " >&6; }
21504 if test ${ac_cv_lib_c_inet_aton+y}
21505 then :
21506 printf %s "(cached) " >&6
21507 else case e in #(
21508 e) ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-lc $LIBS"
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21512
21513 /* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply.
21516 The 'extern "C"' is for builds by C++ compilers;
21517 although this is not generally supported in C code supporting it here
21518 has little cost and some practical benefit (sr 110532). */
21519 #ifdef __cplusplus
21520 extern "C"
21521 #endif
21522 char inet_aton (void);
21523 int
21524 main (void)
21525 {
21526 return inet_aton ();
21527 ;
21528 return 0;
21529 }
21530 _ACEOF
21531 if ac_fn_c_try_link "$LINENO"
21532 then :
21533 ac_cv_lib_c_inet_aton=yes
21534 else case e in #(
21535 e) ac_cv_lib_c_inet_aton=no ;;
21536 esac
21537 fi
21538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21539 conftest$ac_exeext conftest.$ac_ext
21540 LIBS=$ac_check_lib_save_LIBS ;;
21541 esac
21542 fi
21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
21544 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
21545 if test "x$ac_cv_lib_c_inet_aton" = xyes
21546 then :
21547 $ac_cv_prog_TRUE
21548 else case e in #(
21549 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
21550 printf %s "checking for inet_aton in -lresolv... " >&6; }
21551 if test ${ac_cv_lib_resolv_inet_aton+y}
21552 then :
21553 printf %s "(cached) " >&6
21554 else case e in #(
21555 e) ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lresolv $LIBS"
21557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h. */
21559
21560 /* Override any GCC internal prototype to avoid an error.
21561 Use char because int might match the return type of a GCC
21562 builtin and then its argument prototype would still apply.
21563 The 'extern "C"' is for builds by C++ compilers;
21564 although this is not generally supported in C code supporting it here
21565 has little cost and some practical benefit (sr 110532). */
21566 #ifdef __cplusplus
21567 extern "C"
21568 #endif
21569 char inet_aton (void);
21570 int
21571 main (void)
21572 {
21573 return inet_aton ();
21574 ;
21575 return 0;
21576 }
21577 _ACEOF
21578 if ac_fn_c_try_link "$LINENO"
21579 then :
21580 ac_cv_lib_resolv_inet_aton=yes
21581 else case e in #(
21582 e) ac_cv_lib_resolv_inet_aton=no ;;
21583 esac
21584 fi
21585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21586 conftest$ac_exeext conftest.$ac_ext
21587 LIBS=$ac_check_lib_save_LIBS ;;
21588 esac
21589 fi
21590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
21591 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
21592 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
21593 then :
21594 SOCKET_LIBS="-lresolv"
21595 fi
21596
21597 ;;
21598 esac
21599 fi
21600
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lc" >&5
21602 printf %s "checking for hstrerror in -lc... " >&6; }
21603 if test ${ac_cv_lib_c_hstrerror+y}
21604 then :
21605 printf %s "(cached) " >&6
21606 else case e in #(
21607 e) ac_check_lib_save_LIBS=$LIBS
21608 LIBS="-lc $LIBS"
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply.
21615 The 'extern "C"' is for builds by C++ compilers;
21616 although this is not generally supported in C code supporting it here
21617 has little cost and some practical benefit (sr 110532). */
21618 #ifdef __cplusplus
21619 extern "C"
21620 #endif
21621 char hstrerror (void);
21622 int
21623 main (void)
21624 {
21625 return hstrerror ();
21626 ;
21627 return 0;
21628 }
21629 _ACEOF
21630 if ac_fn_c_try_link "$LINENO"
21631 then :
21632 ac_cv_lib_c_hstrerror=yes
21633 else case e in #(
21634 e) ac_cv_lib_c_hstrerror=no ;;
21635 esac
21636 fi
21637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21638 conftest$ac_exeext conftest.$ac_ext
21639 LIBS=$ac_check_lib_save_LIBS ;;
21640 esac
21641 fi
21642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_hstrerror" >&5
21643 printf "%s\n" "$ac_cv_lib_c_hstrerror" >&6; }
21644 if test "x$ac_cv_lib_c_hstrerror" = xyes
21645 then :
21646 $ac_cv_prog_TRUE
21647 else case e in #(
21648 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
21649 printf %s "checking for hstrerror in -lresolv... " >&6; }
21650 if test ${ac_cv_lib_resolv_hstrerror+y}
21651 then :
21652 printf %s "(cached) " >&6
21653 else case e in #(
21654 e) ac_check_lib_save_LIBS=$LIBS
21655 LIBS="-lresolv $LIBS"
21656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21658
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply.
21662 The 'extern "C"' is for builds by C++ compilers;
21663 although this is not generally supported in C code supporting it here
21664 has little cost and some practical benefit (sr 110532). */
21665 #ifdef __cplusplus
21666 extern "C"
21667 #endif
21668 char hstrerror (void);
21669 int
21670 main (void)
21671 {
21672 return hstrerror ();
21673 ;
21674 return 0;
21675 }
21676 _ACEOF
21677 if ac_fn_c_try_link "$LINENO"
21678 then :
21679 ac_cv_lib_resolv_hstrerror=yes
21680 else case e in #(
21681 e) ac_cv_lib_resolv_hstrerror=no ;;
21682 esac
21683 fi
21684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21685 conftest$ac_exeext conftest.$ac_ext
21686 LIBS=$ac_check_lib_save_LIBS ;;
21687 esac
21688 fi
21689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
21690 printf "%s\n" "$ac_cv_lib_resolv_hstrerror" >&6; }
21691 if test "x$ac_cv_lib_resolv_hstrerror" = xyes
21692 then :
21693 SOCKET_LIBS="-lresolv"
21694 fi
21695
21696 ;;
21697 esac
21698 fi
21699
21700
21701 # On Tru64, chflags seems to be present, but calling it will
21702 # exit Python
21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
21704 printf %s "checking for chflags... " >&6; }
21705 if test ${ac_cv_have_chflags+y}
21706 then :
21707 printf %s "(cached) " >&6
21708 else case e in #(
21709 e) if test "$cross_compiling" = yes
21710 then :
21711 ac_cv_have_chflags=cross
21712 else case e in #(
21713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21715
21716 #include <sys/stat.h>
21717 #include <unistd.h>
21718 int main(int argc, char *argv[])
21719 {
21720 if(chflags(argv[0], 0) != 0)
21721 return 1;
21722 return 0;
21723 }
21724
21725 _ACEOF
21726 if ac_fn_c_try_run "$LINENO"
21727 then :
21728 ac_cv_have_chflags=yes
21729 else case e in #(
21730 e) ac_cv_have_chflags=no ;;
21731 esac
21732 fi
21733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21734 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21735 esac
21736 fi
21737
21738 ;;
21739 esac
21740 fi
21741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
21742 printf "%s\n" "$ac_cv_have_chflags" >&6; }
21743 if test "$ac_cv_have_chflags" = cross ; then
21744 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
21745 if test "x$ac_cv_func_chflags" = xyes
21746 then :
21747 ac_cv_have_chflags="yes"
21748 else case e in #(
21749 e) ac_cv_have_chflags="no" ;;
21750 esac
21751 fi
21752
21753 fi
21754 if test "$ac_cv_have_chflags" = yes ; then
21755
21756 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
21757
21758 fi
21759
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
21761 printf %s "checking for lchflags... " >&6; }
21762 if test ${ac_cv_have_lchflags+y}
21763 then :
21764 printf %s "(cached) " >&6
21765 else case e in #(
21766 e) if test "$cross_compiling" = yes
21767 then :
21768 ac_cv_have_lchflags=cross
21769 else case e in #(
21770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21771 /* end confdefs.h. */
21772
21773 #include <sys/stat.h>
21774 #include <unistd.h>
21775 int main(int argc, char *argv[])
21776 {
21777 if(lchflags(argv[0], 0) != 0)
21778 return 1;
21779 return 0;
21780 }
21781
21782 _ACEOF
21783 if ac_fn_c_try_run "$LINENO"
21784 then :
21785 ac_cv_have_lchflags=yes
21786 else case e in #(
21787 e) ac_cv_have_lchflags=no ;;
21788 esac
21789 fi
21790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21791 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21792 esac
21793 fi
21794
21795 ;;
21796 esac
21797 fi
21798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
21799 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
21800 if test "$ac_cv_have_lchflags" = cross ; then
21801 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
21802 if test "x$ac_cv_func_lchflags" = xyes
21803 then :
21804 ac_cv_have_lchflags="yes"
21805 else case e in #(
21806 e) ac_cv_have_lchflags="no" ;;
21807 esac
21808 fi
21809
21810 fi
21811 if test "$ac_cv_have_lchflags" = yes ; then
21812
21813 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
21814
21815 fi
21816
21817
21818
21819
21820
21821
21822 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
21823 then :
21824
21825 ZLIB_CFLAGS="-sUSE_ZLIB"
21826 ZLIB_LIBS="-sUSE_ZLIB"
21827
21828 fi
21829
21830
21831
21832
21833
21834 pkg_failed=no
21835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
21836 printf %s "checking for zlib >= 1.2.0... " >&6; }
21837
21838 if test -n "$ZLIB_CFLAGS"; then
21839 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
21840 elif test -n "$PKG_CONFIG"; then
21841 if test -n "$PKG_CONFIG" && \
21842 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
21843 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
21844 ac_status=$?
21845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21846 test $ac_status = 0; }; then
21847 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
21848 test "x$?" != "x0" && pkg_failed=yes
21849 else
21850 pkg_failed=yes
21851 fi
21852 else
21853 pkg_failed=untried
21854 fi
21855 if test -n "$ZLIB_LIBS"; then
21856 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
21857 elif test -n "$PKG_CONFIG"; then
21858 if test -n "$PKG_CONFIG" && \
21859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
21860 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
21861 ac_status=$?
21862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21863 test $ac_status = 0; }; then
21864 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
21865 test "x$?" != "x0" && pkg_failed=yes
21866 else
21867 pkg_failed=yes
21868 fi
21869 else
21870 pkg_failed=untried
21871 fi
21872
21873
21874
21875 if test $pkg_failed = yes; then
21876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21877 printf "%s\n" "no" >&6; }
21878
21879 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21880 _pkg_short_errors_supported=yes
21881 else
21882 _pkg_short_errors_supported=no
21883 fi
21884 if test $_pkg_short_errors_supported = yes; then
21885 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
21886 else
21887 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
21888 fi
21889 # Put the nasty error message in config.log where it belongs
21890 echo "$ZLIB_PKG_ERRORS" >&5
21891
21892
21893 save_CFLAGS=$CFLAGS
21894 save_CPPFLAGS=$CPPFLAGS
21895 save_LDFLAGS=$LDFLAGS
21896 save_LIBS=$LIBS
21897
21898
21899 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
21900 LIBS="$LIBS $ZLIB_LIBS"
21901 for ac_header in zlib.h
21902 do :
21903 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21904 if test "x$ac_cv_header_zlib_h" = xyes
21905 then :
21906 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
21907
21908 py_check_lib_save_LIBS=$LIBS
21909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
21910 printf %s "checking for gzread in -lz... " >&6; }
21911 if test ${ac_cv_lib_z_gzread+y}
21912 then :
21913 printf %s "(cached) " >&6
21914 else case e in #(
21915 e) ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lz $LIBS"
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21919
21920 /* Override any GCC internal prototype to avoid an error.
21921 Use char because int might match the return type of a GCC
21922 builtin and then its argument prototype would still apply.
21923 The 'extern "C"' is for builds by C++ compilers;
21924 although this is not generally supported in C code supporting it here
21925 has little cost and some practical benefit (sr 110532). */
21926 #ifdef __cplusplus
21927 extern "C"
21928 #endif
21929 char gzread (void);
21930 int
21931 main (void)
21932 {
21933 return gzread ();
21934 ;
21935 return 0;
21936 }
21937 _ACEOF
21938 if ac_fn_c_try_link "$LINENO"
21939 then :
21940 ac_cv_lib_z_gzread=yes
21941 else case e in #(
21942 e) ac_cv_lib_z_gzread=no ;;
21943 esac
21944 fi
21945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21946 conftest$ac_exeext conftest.$ac_ext
21947 LIBS=$ac_check_lib_save_LIBS ;;
21948 esac
21949 fi
21950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
21951 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
21952 if test "x$ac_cv_lib_z_gzread" = xyes
21953 then :
21954 have_zlib=yes
21955 else case e in #(
21956 e) have_zlib=no ;;
21957 esac
21958 fi
21959
21960 LIBS=$py_check_lib_save_LIBS
21961
21962
21963 else case e in #(
21964 e) have_zlib=no ;;
21965 esac
21966 fi
21967
21968 done
21969 if test "x$have_zlib" = xyes
21970 then :
21971
21972 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
21973 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
21974 py_check_lib_save_LIBS=$LIBS
21975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
21976 printf %s "checking for inflateCopy in -lz... " >&6; }
21977 if test ${ac_cv_lib_z_inflateCopy+y}
21978 then :
21979 printf %s "(cached) " >&6
21980 else case e in #(
21981 e) ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lz $LIBS"
21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21984 /* end confdefs.h. */
21985
21986 /* Override any GCC internal prototype to avoid an error.
21987 Use char because int might match the return type of a GCC
21988 builtin and then its argument prototype would still apply.
21989 The 'extern "C"' is for builds by C++ compilers;
21990 although this is not generally supported in C code supporting it here
21991 has little cost and some practical benefit (sr 110532). */
21992 #ifdef __cplusplus
21993 extern "C"
21994 #endif
21995 char inflateCopy (void);
21996 int
21997 main (void)
21998 {
21999 return inflateCopy ();
22000 ;
22001 return 0;
22002 }
22003 _ACEOF
22004 if ac_fn_c_try_link "$LINENO"
22005 then :
22006 ac_cv_lib_z_inflateCopy=yes
22007 else case e in #(
22008 e) ac_cv_lib_z_inflateCopy=no ;;
22009 esac
22010 fi
22011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22012 conftest$ac_exeext conftest.$ac_ext
22013 LIBS=$ac_check_lib_save_LIBS ;;
22014 esac
22015 fi
22016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
22017 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
22018 if test "x$ac_cv_lib_z_inflateCopy" = xyes
22019 then :
22020 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22021
22022 fi
22023
22024 LIBS=$py_check_lib_save_LIBS
22025
22026
22027 fi
22028
22029 CFLAGS=$save_CFLAGS
22030 CPPFLAGS=$save_CPPFLAGS
22031 LDFLAGS=$save_LDFLAGS
22032 LIBS=$save_LIBS
22033
22034
22035
22036 elif test $pkg_failed = untried; then
22037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 printf "%s\n" "no" >&6; }
22039
22040 save_CFLAGS=$CFLAGS
22041 save_CPPFLAGS=$CPPFLAGS
22042 save_LDFLAGS=$LDFLAGS
22043 save_LIBS=$LIBS
22044
22045
22046 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
22047 LIBS="$LIBS $ZLIB_LIBS"
22048 for ac_header in zlib.h
22049 do :
22050 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22051 if test "x$ac_cv_header_zlib_h" = xyes
22052 then :
22053 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
22054
22055 py_check_lib_save_LIBS=$LIBS
22056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
22057 printf %s "checking for gzread in -lz... " >&6; }
22058 if test ${ac_cv_lib_z_gzread+y}
22059 then :
22060 printf %s "(cached) " >&6
22061 else case e in #(
22062 e) ac_check_lib_save_LIBS=$LIBS
22063 LIBS="-lz $LIBS"
22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065 /* end confdefs.h. */
22066
22067 /* Override any GCC internal prototype to avoid an error.
22068 Use char because int might match the return type of a GCC
22069 builtin and then its argument prototype would still apply.
22070 The 'extern "C"' is for builds by C++ compilers;
22071 although this is not generally supported in C code supporting it here
22072 has little cost and some practical benefit (sr 110532). */
22073 #ifdef __cplusplus
22074 extern "C"
22075 #endif
22076 char gzread (void);
22077 int
22078 main (void)
22079 {
22080 return gzread ();
22081 ;
22082 return 0;
22083 }
22084 _ACEOF
22085 if ac_fn_c_try_link "$LINENO"
22086 then :
22087 ac_cv_lib_z_gzread=yes
22088 else case e in #(
22089 e) ac_cv_lib_z_gzread=no ;;
22090 esac
22091 fi
22092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22093 conftest$ac_exeext conftest.$ac_ext
22094 LIBS=$ac_check_lib_save_LIBS ;;
22095 esac
22096 fi
22097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
22098 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
22099 if test "x$ac_cv_lib_z_gzread" = xyes
22100 then :
22101 have_zlib=yes
22102 else case e in #(
22103 e) have_zlib=no ;;
22104 esac
22105 fi
22106
22107 LIBS=$py_check_lib_save_LIBS
22108
22109
22110 else case e in #(
22111 e) have_zlib=no ;;
22112 esac
22113 fi
22114
22115 done
22116 if test "x$have_zlib" = xyes
22117 then :
22118
22119 ZLIB_CFLAGS=${ZLIB_CFLAGS-""}
22120 ZLIB_LIBS=${ZLIB_LIBS-"-lz"}
22121 py_check_lib_save_LIBS=$LIBS
22122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
22123 printf %s "checking for inflateCopy in -lz... " >&6; }
22124 if test ${ac_cv_lib_z_inflateCopy+y}
22125 then :
22126 printf %s "(cached) " >&6
22127 else case e in #(
22128 e) ac_check_lib_save_LIBS=$LIBS
22129 LIBS="-lz $LIBS"
22130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h. */
22132
22133 /* Override any GCC internal prototype to avoid an error.
22134 Use char because int might match the return type of a GCC
22135 builtin and then its argument prototype would still apply.
22136 The 'extern "C"' is for builds by C++ compilers;
22137 although this is not generally supported in C code supporting it here
22138 has little cost and some practical benefit (sr 110532). */
22139 #ifdef __cplusplus
22140 extern "C"
22141 #endif
22142 char inflateCopy (void);
22143 int
22144 main (void)
22145 {
22146 return inflateCopy ();
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 if ac_fn_c_try_link "$LINENO"
22152 then :
22153 ac_cv_lib_z_inflateCopy=yes
22154 else case e in #(
22155 e) ac_cv_lib_z_inflateCopy=no ;;
22156 esac
22157 fi
22158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22159 conftest$ac_exeext conftest.$ac_ext
22160 LIBS=$ac_check_lib_save_LIBS ;;
22161 esac
22162 fi
22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
22164 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
22165 if test "x$ac_cv_lib_z_inflateCopy" = xyes
22166 then :
22167 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22168
22169 fi
22170
22171 LIBS=$py_check_lib_save_LIBS
22172
22173
22174 fi
22175
22176 CFLAGS=$save_CFLAGS
22177 CPPFLAGS=$save_CPPFLAGS
22178 LDFLAGS=$save_LDFLAGS
22179 LIBS=$save_LIBS
22180
22181
22182
22183 else
22184 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
22185 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
22186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22187 printf "%s\n" "yes" >&6; }
22188
22189 have_zlib=yes
22190 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
22191
22192
22193 fi
22194
22195 if test "x$have_zlib" = xyes
22196 then :
22197
22198 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
22199 BINASCII_LIBS="$ZLIB_LIBS"
22200
22201 fi
22202
22203
22204
22205
22206 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
22207 then :
22208
22209 BZIP2_CFLAGS="-sUSE_BZIP2"
22210 BZIP2_LIBS="-sUSE_BZIP2"
22211
22212 fi
22213
22214
22215
22216
22217
22218 pkg_failed=no
22219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
22220 printf %s "checking for bzip2... " >&6; }
22221
22222 if test -n "$BZIP2_CFLAGS"; then
22223 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
22224 elif test -n "$PKG_CONFIG"; then
22225 if test -n "$PKG_CONFIG" && \
22226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
22227 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
22228 ac_status=$?
22229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230 test $ac_status = 0; }; then
22231 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
22232 test "x$?" != "x0" && pkg_failed=yes
22233 else
22234 pkg_failed=yes
22235 fi
22236 else
22237 pkg_failed=untried
22238 fi
22239 if test -n "$BZIP2_LIBS"; then
22240 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
22241 elif test -n "$PKG_CONFIG"; then
22242 if test -n "$PKG_CONFIG" && \
22243 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
22244 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
22245 ac_status=$?
22246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247 test $ac_status = 0; }; then
22248 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
22249 test "x$?" != "x0" && pkg_failed=yes
22250 else
22251 pkg_failed=yes
22252 fi
22253 else
22254 pkg_failed=untried
22255 fi
22256
22257
22258
22259 if test $pkg_failed = yes; then
22260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22261 printf "%s\n" "no" >&6; }
22262
22263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22264 _pkg_short_errors_supported=yes
22265 else
22266 _pkg_short_errors_supported=no
22267 fi
22268 if test $_pkg_short_errors_supported = yes; then
22269 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
22270 else
22271 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
22272 fi
22273 # Put the nasty error message in config.log where it belongs
22274 echo "$BZIP2_PKG_ERRORS" >&5
22275
22276
22277 save_CFLAGS=$CFLAGS
22278 save_CPPFLAGS=$CPPFLAGS
22279 save_LDFLAGS=$LDFLAGS
22280 save_LIBS=$LIBS
22281
22282
22283 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
22284 LIBS="$LIBS $BZIP2_LIBS"
22285 for ac_header in bzlib.h
22286 do :
22287 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
22288 if test "x$ac_cv_header_bzlib_h" = xyes
22289 then :
22290 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
22291
22292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
22293 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
22294 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
22295 then :
22296 printf %s "(cached) " >&6
22297 else case e in #(
22298 e) ac_check_lib_save_LIBS=$LIBS
22299 LIBS="-lbz2 $LIBS"
22300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22301 /* end confdefs.h. */
22302
22303 /* Override any GCC internal prototype to avoid an error.
22304 Use char because int might match the return type of a GCC
22305 builtin and then its argument prototype would still apply.
22306 The 'extern "C"' is for builds by C++ compilers;
22307 although this is not generally supported in C code supporting it here
22308 has little cost and some practical benefit (sr 110532). */
22309 #ifdef __cplusplus
22310 extern "C"
22311 #endif
22312 char BZ2_bzCompress (void);
22313 int
22314 main (void)
22315 {
22316 return BZ2_bzCompress ();
22317 ;
22318 return 0;
22319 }
22320 _ACEOF
22321 if ac_fn_c_try_link "$LINENO"
22322 then :
22323 ac_cv_lib_bz2_BZ2_bzCompress=yes
22324 else case e in #(
22325 e) ac_cv_lib_bz2_BZ2_bzCompress=no ;;
22326 esac
22327 fi
22328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22329 conftest$ac_exeext conftest.$ac_ext
22330 LIBS=$ac_check_lib_save_LIBS ;;
22331 esac
22332 fi
22333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
22334 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
22335 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
22336 then :
22337 have_bzip2=yes
22338 else case e in #(
22339 e) have_bzip2=no ;;
22340 esac
22341 fi
22342
22343
22344 else case e in #(
22345 e) have_bzip2=no ;;
22346 esac
22347 fi
22348
22349 done
22350 if test "x$have_bzip2" = xyes
22351 then :
22352
22353 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
22354 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
22355
22356 fi
22357
22358 CFLAGS=$save_CFLAGS
22359 CPPFLAGS=$save_CPPFLAGS
22360 LDFLAGS=$save_LDFLAGS
22361 LIBS=$save_LIBS
22362
22363
22364
22365 elif test $pkg_failed = untried; then
22366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22367 printf "%s\n" "no" >&6; }
22368
22369 save_CFLAGS=$CFLAGS
22370 save_CPPFLAGS=$CPPFLAGS
22371 save_LDFLAGS=$LDFLAGS
22372 save_LIBS=$LIBS
22373
22374
22375 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS"
22376 LIBS="$LIBS $BZIP2_LIBS"
22377 for ac_header in bzlib.h
22378 do :
22379 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
22380 if test "x$ac_cv_header_bzlib_h" = xyes
22381 then :
22382 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
22383
22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
22385 printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; }
22386 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
22387 then :
22388 printf %s "(cached) " >&6
22389 else case e in #(
22390 e) ac_check_lib_save_LIBS=$LIBS
22391 LIBS="-lbz2 $LIBS"
22392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393 /* end confdefs.h. */
22394
22395 /* Override any GCC internal prototype to avoid an error.
22396 Use char because int might match the return type of a GCC
22397 builtin and then its argument prototype would still apply.
22398 The 'extern "C"' is for builds by C++ compilers;
22399 although this is not generally supported in C code supporting it here
22400 has little cost and some practical benefit (sr 110532). */
22401 #ifdef __cplusplus
22402 extern "C"
22403 #endif
22404 char BZ2_bzCompress (void);
22405 int
22406 main (void)
22407 {
22408 return BZ2_bzCompress ();
22409 ;
22410 return 0;
22411 }
22412 _ACEOF
22413 if ac_fn_c_try_link "$LINENO"
22414 then :
22415 ac_cv_lib_bz2_BZ2_bzCompress=yes
22416 else case e in #(
22417 e) ac_cv_lib_bz2_BZ2_bzCompress=no ;;
22418 esac
22419 fi
22420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22421 conftest$ac_exeext conftest.$ac_ext
22422 LIBS=$ac_check_lib_save_LIBS ;;
22423 esac
22424 fi
22425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
22426 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
22427 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
22428 then :
22429 have_bzip2=yes
22430 else case e in #(
22431 e) have_bzip2=no ;;
22432 esac
22433 fi
22434
22435
22436 else case e in #(
22437 e) have_bzip2=no ;;
22438 esac
22439 fi
22440
22441 done
22442 if test "x$have_bzip2" = xyes
22443 then :
22444
22445 BZIP2_CFLAGS=${BZIP2_CFLAGS-""}
22446 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"}
22447
22448 fi
22449
22450 CFLAGS=$save_CFLAGS
22451 CPPFLAGS=$save_CPPFLAGS
22452 LDFLAGS=$save_LDFLAGS
22453 LIBS=$save_LIBS
22454
22455
22456
22457 else
22458 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
22459 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
22460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22461 printf "%s\n" "yes" >&6; }
22462 have_bzip2=yes
22463 fi
22464
22465
22466 pkg_failed=no
22467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
22468 printf %s "checking for liblzma... " >&6; }
22469
22470 if test -n "$LIBLZMA_CFLAGS"; then
22471 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS"
22472 elif test -n "$PKG_CONFIG"; then
22473 if test -n "$PKG_CONFIG" && \
22474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
22475 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
22476 ac_status=$?
22477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; then
22479 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
22480 test "x$?" != "x0" && pkg_failed=yes
22481 else
22482 pkg_failed=yes
22483 fi
22484 else
22485 pkg_failed=untried
22486 fi
22487 if test -n "$LIBLZMA_LIBS"; then
22488 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS"
22489 elif test -n "$PKG_CONFIG"; then
22490 if test -n "$PKG_CONFIG" && \
22491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
22492 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
22493 ac_status=$?
22494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22495 test $ac_status = 0; }; then
22496 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
22497 test "x$?" != "x0" && pkg_failed=yes
22498 else
22499 pkg_failed=yes
22500 fi
22501 else
22502 pkg_failed=untried
22503 fi
22504
22505
22506
22507 if test $pkg_failed = yes; then
22508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22509 printf "%s\n" "no" >&6; }
22510
22511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22512 _pkg_short_errors_supported=yes
22513 else
22514 _pkg_short_errors_supported=no
22515 fi
22516 if test $_pkg_short_errors_supported = yes; then
22517 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
22518 else
22519 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
22520 fi
22521 # Put the nasty error message in config.log where it belongs
22522 echo "$LIBLZMA_PKG_ERRORS" >&5
22523
22524
22525 save_CFLAGS=$CFLAGS
22526 save_CPPFLAGS=$CPPFLAGS
22527 save_LDFLAGS=$LDFLAGS
22528 save_LIBS=$LIBS
22529
22530
22531 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
22532 LIBS="$LIBS $LIBLZMA_LIBS"
22533 for ac_header in lzma.h
22534 do :
22535 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
22536 if test "x$ac_cv_header_lzma_h" = xyes
22537 then :
22538 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
22539
22540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
22541 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
22542 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
22543 then :
22544 printf %s "(cached) " >&6
22545 else case e in #(
22546 e) ac_check_lib_save_LIBS=$LIBS
22547 LIBS="-llzma $LIBS"
22548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22550
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply.
22554 The 'extern "C"' is for builds by C++ compilers;
22555 although this is not generally supported in C code supporting it here
22556 has little cost and some practical benefit (sr 110532). */
22557 #ifdef __cplusplus
22558 extern "C"
22559 #endif
22560 char lzma_easy_encoder (void);
22561 int
22562 main (void)
22563 {
22564 return lzma_easy_encoder ();
22565 ;
22566 return 0;
22567 }
22568 _ACEOF
22569 if ac_fn_c_try_link "$LINENO"
22570 then :
22571 ac_cv_lib_lzma_lzma_easy_encoder=yes
22572 else case e in #(
22573 e) ac_cv_lib_lzma_lzma_easy_encoder=no ;;
22574 esac
22575 fi
22576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22577 conftest$ac_exeext conftest.$ac_ext
22578 LIBS=$ac_check_lib_save_LIBS ;;
22579 esac
22580 fi
22581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
22582 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
22583 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
22584 then :
22585 have_liblzma=yes
22586 else case e in #(
22587 e) have_liblzma=no ;;
22588 esac
22589 fi
22590
22591
22592 else case e in #(
22593 e) have_liblzma=no ;;
22594 esac
22595 fi
22596
22597 done
22598 if test "x$have_liblzma" = xyes
22599 then :
22600
22601 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
22602 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
22603
22604 fi
22605
22606 CFLAGS=$save_CFLAGS
22607 CPPFLAGS=$save_CPPFLAGS
22608 LDFLAGS=$save_LDFLAGS
22609 LIBS=$save_LIBS
22610
22611
22612
22613 elif test $pkg_failed = untried; then
22614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22615 printf "%s\n" "no" >&6; }
22616
22617 save_CFLAGS=$CFLAGS
22618 save_CPPFLAGS=$CPPFLAGS
22619 save_LDFLAGS=$LDFLAGS
22620 save_LIBS=$LIBS
22621
22622
22623 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS"
22624 LIBS="$LIBS $LIBLZMA_LIBS"
22625 for ac_header in lzma.h
22626 do :
22627 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
22628 if test "x$ac_cv_header_lzma_h" = xyes
22629 then :
22630 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
22631
22632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
22633 printf %s "checking for lzma_easy_encoder in -llzma... " >&6; }
22634 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
22635 then :
22636 printf %s "(cached) " >&6
22637 else case e in #(
22638 e) ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-llzma $LIBS"
22640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22641 /* end confdefs.h. */
22642
22643 /* Override any GCC internal prototype to avoid an error.
22644 Use char because int might match the return type of a GCC
22645 builtin and then its argument prototype would still apply.
22646 The 'extern "C"' is for builds by C++ compilers;
22647 although this is not generally supported in C code supporting it here
22648 has little cost and some practical benefit (sr 110532). */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char lzma_easy_encoder (void);
22653 int
22654 main (void)
22655 {
22656 return lzma_easy_encoder ();
22657 ;
22658 return 0;
22659 }
22660 _ACEOF
22661 if ac_fn_c_try_link "$LINENO"
22662 then :
22663 ac_cv_lib_lzma_lzma_easy_encoder=yes
22664 else case e in #(
22665 e) ac_cv_lib_lzma_lzma_easy_encoder=no ;;
22666 esac
22667 fi
22668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22669 conftest$ac_exeext conftest.$ac_ext
22670 LIBS=$ac_check_lib_save_LIBS ;;
22671 esac
22672 fi
22673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
22674 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
22675 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
22676 then :
22677 have_liblzma=yes
22678 else case e in #(
22679 e) have_liblzma=no ;;
22680 esac
22681 fi
22682
22683
22684 else case e in #(
22685 e) have_liblzma=no ;;
22686 esac
22687 fi
22688
22689 done
22690 if test "x$have_liblzma" = xyes
22691 then :
22692
22693 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""}
22694 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"}
22695
22696 fi
22697
22698 CFLAGS=$save_CFLAGS
22699 CPPFLAGS=$save_CPPFLAGS
22700 LDFLAGS=$save_LDFLAGS
22701 LIBS=$save_LIBS
22702
22703
22704
22705 else
22706 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS
22707 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS
22708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22709 printf "%s\n" "yes" >&6; }
22710 have_liblzma=yes
22711 fi
22712
22713
22714 pkg_failed=no
22715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.5" >&5
22716 printf %s "checking for libzstd >= 1.4.5... " >&6; }
22717
22718 if test -n "$LIBZSTD_CFLAGS"; then
22719 pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
22720 elif test -n "$PKG_CONFIG"; then
22721 if test -n "$PKG_CONFIG" && \
22722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.5\""; } >&5
22723 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.5") 2>&5
22724 ac_status=$?
22725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22726 test $ac_status = 0; }; then
22727 pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.5" 2>/dev/null`
22728 test "x$?" != "x0" && pkg_failed=yes
22729 else
22730 pkg_failed=yes
22731 fi
22732 else
22733 pkg_failed=untried
22734 fi
22735 if test -n "$LIBZSTD_LIBS"; then
22736 pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
22737 elif test -n "$PKG_CONFIG"; then
22738 if test -n "$PKG_CONFIG" && \
22739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.5\""; } >&5
22740 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.5") 2>&5
22741 ac_status=$?
22742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; then
22744 pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.5" 2>/dev/null`
22745 test "x$?" != "x0" && pkg_failed=yes
22746 else
22747 pkg_failed=yes
22748 fi
22749 else
22750 pkg_failed=untried
22751 fi
22752
22753
22754
22755 if test $pkg_failed = yes; then
22756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22757 printf "%s\n" "no" >&6; }
22758
22759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22760 _pkg_short_errors_supported=yes
22761 else
22762 _pkg_short_errors_supported=no
22763 fi
22764 if test $_pkg_short_errors_supported = yes; then
22765 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.5" 2>&1`
22766 else
22767 LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.5" 2>&1`
22768 fi
22769 # Put the nasty error message in config.log where it belongs
22770 echo "$LIBZSTD_PKG_ERRORS" >&5
22771
22772
22773 save_CFLAGS=$CFLAGS
22774 save_CPPFLAGS=$CPPFLAGS
22775 save_LDFLAGS=$LDFLAGS
22776 save_LIBS=$LIBS
22777
22778
22779 CPPFLAGS="$CPPFLAGS $LIBZSTD_CFLAGS"
22780 CFLAGS="$CFLAGS $LIBZSTD_CFLAGS"
22781 LIBS="$LIBS $LIBZSTD_LIBS"
22782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZDICT_finalizeDictionary" >&5
22783 printf %s "checking for library containing ZDICT_finalizeDictionary... " >&6; }
22784 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22785 then :
22786 printf %s "(cached) " >&6
22787 else case e in #(
22788 e) ac_func_search_save_LIBS=$LIBS
22789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22790 /* end confdefs.h. */
22791
22792 /* Override any GCC internal prototype to avoid an error.
22793 Use char because int might match the return type of a GCC
22794 builtin and then its argument prototype would still apply.
22795 The 'extern "C"' is for builds by C++ compilers;
22796 although this is not generally supported in C code supporting it here
22797 has little cost and some practical benefit (sr 110532). */
22798 #ifdef __cplusplus
22799 extern "C"
22800 #endif
22801 char ZDICT_finalizeDictionary (void);
22802 int
22803 main (void)
22804 {
22805 return ZDICT_finalizeDictionary ();
22806 ;
22807 return 0;
22808 }
22809 _ACEOF
22810 for ac_lib in '' zstd
22811 do
22812 if test -z "$ac_lib"; then
22813 ac_res="none required"
22814 else
22815 ac_res=-l$ac_lib
22816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22817 fi
22818 if ac_fn_c_try_link "$LINENO"
22819 then :
22820 ac_cv_search_ZDICT_finalizeDictionary=$ac_res
22821 fi
22822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22823 conftest$ac_exeext
22824 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22825 then :
22826 break
22827 fi
22828 done
22829 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22830 then :
22831
22832 else case e in #(
22833 e) ac_cv_search_ZDICT_finalizeDictionary=no ;;
22834 esac
22835 fi
22836 rm conftest.$ac_ext
22837 LIBS=$ac_func_search_save_LIBS ;;
22838 esac
22839 fi
22840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZDICT_finalizeDictionary" >&5
22841 printf "%s\n" "$ac_cv_search_ZDICT_finalizeDictionary" >&6; }
22842 ac_res=$ac_cv_search_ZDICT_finalizeDictionary
22843 if test "$ac_res" != no
22844 then :
22845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22846
22847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ZSTD_VERSION_NUMBER >= 1.4.5" >&5
22848 printf %s "checking ZSTD_VERSION_NUMBER >= 1.4.5... " >&6; }
22849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22850 /* end confdefs.h. */
22851
22852 #include "zstd.h"
22853 int
22854 main (void)
22855 {
22856
22857 #if ZSTD_VERSION_NUMBER < 10405
22858 # error "zstd version is too old"
22859 #endif
22860
22861 ;
22862 return 0;
22863 }
22864
22865 _ACEOF
22866 if ac_fn_c_try_compile "$LINENO"
22867 then :
22868
22869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22870 printf "%s\n" "yes" >&6; }
22871 for ac_header in zstd.h zdict.h
22872 do :
22873 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
22874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22875 if eval test \"x\$"$as_ac_Header"\" = x"yes"
22876 then :
22877 cat >>confdefs.h <<_ACEOF
22878 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
22879 _ACEOF
22880 have_libzstd=yes
22881 else case e in #(
22882 e) have_libzstd=no ;;
22883 esac
22884 fi
22885
22886 done
22887
22888 else case e in #(
22889 e)
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891 printf "%s\n" "no" >&6; }
22892 have_libzstd=no
22893 ;;
22894 esac
22895 fi
22896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22897
22898 else case e in #(
22899 e) have_libzstd=no ;;
22900 esac
22901 fi
22902
22903 if test "x$have_libzstd" = xyes
22904 then :
22905
22906 LIBZSTD_CFLAGS=${LIBZSTD_CFLAGS-""}
22907 LIBZSTD_LIBS=${LIBZSTD_LIBS-"-lzstd"}
22908
22909 fi
22910
22911 CFLAGS=$save_CFLAGS
22912 CPPFLAGS=$save_CPPFLAGS
22913 LDFLAGS=$save_LDFLAGS
22914 LIBS=$save_LIBS
22915
22916
22917
22918 elif test $pkg_failed = untried; then
22919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920 printf "%s\n" "no" >&6; }
22921
22922 save_CFLAGS=$CFLAGS
22923 save_CPPFLAGS=$CPPFLAGS
22924 save_LDFLAGS=$LDFLAGS
22925 save_LIBS=$LIBS
22926
22927
22928 CPPFLAGS="$CPPFLAGS $LIBZSTD_CFLAGS"
22929 CFLAGS="$CFLAGS $LIBZSTD_CFLAGS"
22930 LIBS="$LIBS $LIBZSTD_LIBS"
22931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZDICT_finalizeDictionary" >&5
22932 printf %s "checking for library containing ZDICT_finalizeDictionary... " >&6; }
22933 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22934 then :
22935 printf %s "(cached) " >&6
22936 else case e in #(
22937 e) ac_func_search_save_LIBS=$LIBS
22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22940
22941 /* Override any GCC internal prototype to avoid an error.
22942 Use char because int might match the return type of a GCC
22943 builtin and then its argument prototype would still apply.
22944 The 'extern "C"' is for builds by C++ compilers;
22945 although this is not generally supported in C code supporting it here
22946 has little cost and some practical benefit (sr 110532). */
22947 #ifdef __cplusplus
22948 extern "C"
22949 #endif
22950 char ZDICT_finalizeDictionary (void);
22951 int
22952 main (void)
22953 {
22954 return ZDICT_finalizeDictionary ();
22955 ;
22956 return 0;
22957 }
22958 _ACEOF
22959 for ac_lib in '' zstd
22960 do
22961 if test -z "$ac_lib"; then
22962 ac_res="none required"
22963 else
22964 ac_res=-l$ac_lib
22965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22966 fi
22967 if ac_fn_c_try_link "$LINENO"
22968 then :
22969 ac_cv_search_ZDICT_finalizeDictionary=$ac_res
22970 fi
22971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22972 conftest$ac_exeext
22973 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22974 then :
22975 break
22976 fi
22977 done
22978 if test ${ac_cv_search_ZDICT_finalizeDictionary+y}
22979 then :
22980
22981 else case e in #(
22982 e) ac_cv_search_ZDICT_finalizeDictionary=no ;;
22983 esac
22984 fi
22985 rm conftest.$ac_ext
22986 LIBS=$ac_func_search_save_LIBS ;;
22987 esac
22988 fi
22989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZDICT_finalizeDictionary" >&5
22990 printf "%s\n" "$ac_cv_search_ZDICT_finalizeDictionary" >&6; }
22991 ac_res=$ac_cv_search_ZDICT_finalizeDictionary
22992 if test "$ac_res" != no
22993 then :
22994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22995
22996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ZSTD_VERSION_NUMBER >= 1.4.5" >&5
22997 printf %s "checking ZSTD_VERSION_NUMBER >= 1.4.5... " >&6; }
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23000
23001 #include "zstd.h"
23002 int
23003 main (void)
23004 {
23005
23006 #if ZSTD_VERSION_NUMBER < 10405
23007 # error "zstd version is too old"
23008 #endif
23009
23010 ;
23011 return 0;
23012 }
23013
23014 _ACEOF
23015 if ac_fn_c_try_compile "$LINENO"
23016 then :
23017
23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23019 printf "%s\n" "yes" >&6; }
23020 for ac_header in zstd.h zdict.h
23021 do :
23022 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
23023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23024 if eval test \"x\$"$as_ac_Header"\" = x"yes"
23025 then :
23026 cat >>confdefs.h <<_ACEOF
23027 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
23028 _ACEOF
23029 have_libzstd=yes
23030 else case e in #(
23031 e) have_libzstd=no ;;
23032 esac
23033 fi
23034
23035 done
23036
23037 else case e in #(
23038 e)
23039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23040 printf "%s\n" "no" >&6; }
23041 have_libzstd=no
23042 ;;
23043 esac
23044 fi
23045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23046
23047 else case e in #(
23048 e) have_libzstd=no ;;
23049 esac
23050 fi
23051
23052 if test "x$have_libzstd" = xyes
23053 then :
23054
23055 LIBZSTD_CFLAGS=${LIBZSTD_CFLAGS-""}
23056 LIBZSTD_LIBS=${LIBZSTD_LIBS-"-lzstd"}
23057
23058 fi
23059
23060 CFLAGS=$save_CFLAGS
23061 CPPFLAGS=$save_CPPFLAGS
23062 LDFLAGS=$save_LDFLAGS
23063 LIBS=$save_LIBS
23064
23065
23066
23067 else
23068 LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
23069 LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
23070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23071 printf "%s\n" "yes" >&6; }
23072 have_libzstd=yes
23073 fi
23074
23075
23076
23077
23078
23079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
23080 printf %s "checking for hstrerror... " >&6; }
23081 if test ${ac_cv_func_hstrerror+y}
23082 then :
23083 printf %s "(cached) " >&6
23084 else case e in #(
23085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23087 #include <netdb.h>
23088 int
23089 main (void)
23090 {
23091 void *x=hstrerror
23092 ;
23093 return 0;
23094 }
23095 _ACEOF
23096 if ac_fn_c_try_compile "$LINENO"
23097 then :
23098 ac_cv_func_hstrerror=yes
23099 else case e in #(
23100 e) ac_cv_func_hstrerror=no ;;
23101 esac
23102 fi
23103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23104 ;;
23105 esac
23106 fi
23107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
23108 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
23109 if test "x$ac_cv_func_hstrerror" = xyes
23110 then :
23111
23112 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
23113
23114 fi
23115
23116
23117
23118
23119
23120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
23121 printf %s "checking for getservbyname... " >&6; }
23122 if test ${ac_cv_func_getservbyname+y}
23123 then :
23124 printf %s "(cached) " >&6
23125 else case e in #(
23126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23127 /* end confdefs.h. */
23128 #include <netdb.h>
23129 int
23130 main (void)
23131 {
23132 void *x=getservbyname
23133 ;
23134 return 0;
23135 }
23136 _ACEOF
23137 if ac_fn_c_try_compile "$LINENO"
23138 then :
23139 ac_cv_func_getservbyname=yes
23140 else case e in #(
23141 e) ac_cv_func_getservbyname=no ;;
23142 esac
23143 fi
23144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23145 ;;
23146 esac
23147 fi
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
23149 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
23150 if test "x$ac_cv_func_getservbyname" = xyes
23151 then :
23152
23153 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
23154
23155 fi
23156
23157
23158
23159
23160
23161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
23162 printf %s "checking for getservbyport... " >&6; }
23163 if test ${ac_cv_func_getservbyport+y}
23164 then :
23165 printf %s "(cached) " >&6
23166 else case e in #(
23167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23169 #include <netdb.h>
23170 int
23171 main (void)
23172 {
23173 void *x=getservbyport
23174 ;
23175 return 0;
23176 }
23177 _ACEOF
23178 if ac_fn_c_try_compile "$LINENO"
23179 then :
23180 ac_cv_func_getservbyport=yes
23181 else case e in #(
23182 e) ac_cv_func_getservbyport=no ;;
23183 esac
23184 fi
23185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23186 ;;
23187 esac
23188 fi
23189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
23190 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
23191 if test "x$ac_cv_func_getservbyport" = xyes
23192 then :
23193
23194 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
23195
23196 fi
23197
23198
23199
23200
23201
23202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
23203 printf %s "checking for gethostbyname... " >&6; }
23204 if test ${ac_cv_func_gethostbyname+y}
23205 then :
23206 printf %s "(cached) " >&6
23207 else case e in #(
23208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23210 #include <netdb.h>
23211 int
23212 main (void)
23213 {
23214 void *x=gethostbyname
23215 ;
23216 return 0;
23217 }
23218 _ACEOF
23219 if ac_fn_c_try_compile "$LINENO"
23220 then :
23221 ac_cv_func_gethostbyname=yes
23222 else case e in #(
23223 e) ac_cv_func_gethostbyname=no ;;
23224 esac
23225 fi
23226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23227 ;;
23228 esac
23229 fi
23230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
23231 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
23232 if test "x$ac_cv_func_gethostbyname" = xyes
23233 then :
23234
23235 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23236
23237 fi
23238
23239
23240
23241
23242
23243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
23244 printf %s "checking for gethostbyaddr... " >&6; }
23245 if test ${ac_cv_func_gethostbyaddr+y}
23246 then :
23247 printf %s "(cached) " >&6
23248 else case e in #(
23249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h. */
23251 #include <netdb.h>
23252 int
23253 main (void)
23254 {
23255 void *x=gethostbyaddr
23256 ;
23257 return 0;
23258 }
23259 _ACEOF
23260 if ac_fn_c_try_compile "$LINENO"
23261 then :
23262 ac_cv_func_gethostbyaddr=yes
23263 else case e in #(
23264 e) ac_cv_func_gethostbyaddr=no ;;
23265 esac
23266 fi
23267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23268 ;;
23269 esac
23270 fi
23271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
23272 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
23273 if test "x$ac_cv_func_gethostbyaddr" = xyes
23274 then :
23275
23276 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
23277
23278 fi
23279
23280
23281
23282
23283
23284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
23285 printf %s "checking for getprotobyname... " >&6; }
23286 if test ${ac_cv_func_getprotobyname+y}
23287 then :
23288 printf %s "(cached) " >&6
23289 else case e in #(
23290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h. */
23292 #include <netdb.h>
23293 int
23294 main (void)
23295 {
23296 void *x=getprotobyname
23297 ;
23298 return 0;
23299 }
23300 _ACEOF
23301 if ac_fn_c_try_compile "$LINENO"
23302 then :
23303 ac_cv_func_getprotobyname=yes
23304 else case e in #(
23305 e) ac_cv_func_getprotobyname=no ;;
23306 esac
23307 fi
23308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23309 ;;
23310 esac
23311 fi
23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
23313 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
23314 if test "x$ac_cv_func_getprotobyname" = xyes
23315 then :
23316
23317 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
23318
23319 fi
23320
23321
23322
23323
23324
23325
23326
23327
23328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
23329 printf %s "checking for inet_aton... " >&6; }
23330 if test ${ac_cv_func_inet_aton+y}
23331 then :
23332 printf %s "(cached) " >&6
23333 else case e in #(
23334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335 /* end confdefs.h. */
23336
23337 #include <sys/types.h>
23338 #include <sys/socket.h>
23339 #include <netinet/in.h>
23340 #include <arpa/inet.h>
23341
23342 int
23343 main (void)
23344 {
23345 void *x=inet_aton
23346 ;
23347 return 0;
23348 }
23349 _ACEOF
23350 if ac_fn_c_try_compile "$LINENO"
23351 then :
23352 ac_cv_func_inet_aton=yes
23353 else case e in #(
23354 e) ac_cv_func_inet_aton=no ;;
23355 esac
23356 fi
23357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23358 ;;
23359 esac
23360 fi
23361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
23362 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
23363 if test "x$ac_cv_func_inet_aton" = xyes
23364 then :
23365
23366 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
23367
23368 fi
23369
23370
23371
23372
23373
23374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
23375 printf %s "checking for inet_ntoa... " >&6; }
23376 if test ${ac_cv_func_inet_ntoa+y}
23377 then :
23378 printf %s "(cached) " >&6
23379 else case e in #(
23380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h. */
23382
23383 #include <sys/types.h>
23384 #include <sys/socket.h>
23385 #include <netinet/in.h>
23386 #include <arpa/inet.h>
23387
23388 int
23389 main (void)
23390 {
23391 void *x=inet_ntoa
23392 ;
23393 return 0;
23394 }
23395 _ACEOF
23396 if ac_fn_c_try_compile "$LINENO"
23397 then :
23398 ac_cv_func_inet_ntoa=yes
23399 else case e in #(
23400 e) ac_cv_func_inet_ntoa=no ;;
23401 esac
23402 fi
23403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23404 ;;
23405 esac
23406 fi
23407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
23408 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
23409 if test "x$ac_cv_func_inet_ntoa" = xyes
23410 then :
23411
23412 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
23413
23414 fi
23415
23416
23417
23418
23419
23420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
23421 printf %s "checking for inet_pton... " >&6; }
23422 if test ${ac_cv_func_inet_pton+y}
23423 then :
23424 printf %s "(cached) " >&6
23425 else case e in #(
23426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427 /* end confdefs.h. */
23428
23429 #include <sys/types.h>
23430 #include <sys/socket.h>
23431 #include <netinet/in.h>
23432 #include <arpa/inet.h>
23433
23434 int
23435 main (void)
23436 {
23437 void *x=inet_pton
23438 ;
23439 return 0;
23440 }
23441 _ACEOF
23442 if ac_fn_c_try_compile "$LINENO"
23443 then :
23444 ac_cv_func_inet_pton=yes
23445 else case e in #(
23446 e) ac_cv_func_inet_pton=no ;;
23447 esac
23448 fi
23449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23450 ;;
23451 esac
23452 fi
23453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
23454 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
23455 if test "x$ac_cv_func_inet_pton" = xyes
23456 then :
23457
23458 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
23459
23460 fi
23461
23462
23463
23464
23465
23466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
23467 printf %s "checking for getpeername... " >&6; }
23468 if test ${ac_cv_func_getpeername+y}
23469 then :
23470 printf %s "(cached) " >&6
23471 else case e in #(
23472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23474
23475 #include <sys/types.h>
23476 #include <sys/socket.h>
23477 #include <netinet/in.h>
23478 #include <arpa/inet.h>
23479
23480 int
23481 main (void)
23482 {
23483 void *x=getpeername
23484 ;
23485 return 0;
23486 }
23487 _ACEOF
23488 if ac_fn_c_try_compile "$LINENO"
23489 then :
23490 ac_cv_func_getpeername=yes
23491 else case e in #(
23492 e) ac_cv_func_getpeername=no ;;
23493 esac
23494 fi
23495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23496 ;;
23497 esac
23498 fi
23499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
23500 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
23501 if test "x$ac_cv_func_getpeername" = xyes
23502 then :
23503
23504 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
23505
23506 fi
23507
23508
23509
23510
23511
23512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
23513 printf %s "checking for getsockname... " >&6; }
23514 if test ${ac_cv_func_getsockname+y}
23515 then :
23516 printf %s "(cached) " >&6
23517 else case e in #(
23518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23519 /* end confdefs.h. */
23520
23521 #include <sys/types.h>
23522 #include <sys/socket.h>
23523 #include <netinet/in.h>
23524 #include <arpa/inet.h>
23525
23526 int
23527 main (void)
23528 {
23529 void *x=getsockname
23530 ;
23531 return 0;
23532 }
23533 _ACEOF
23534 if ac_fn_c_try_compile "$LINENO"
23535 then :
23536 ac_cv_func_getsockname=yes
23537 else case e in #(
23538 e) ac_cv_func_getsockname=no ;;
23539 esac
23540 fi
23541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23542 ;;
23543 esac
23544 fi
23545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
23546 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
23547 if test "x$ac_cv_func_getsockname" = xyes
23548 then :
23549
23550 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
23551
23552 fi
23553
23554
23555
23556
23557
23558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
23559 printf %s "checking for accept... " >&6; }
23560 if test ${ac_cv_func_accept+y}
23561 then :
23562 printf %s "(cached) " >&6
23563 else case e in #(
23564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23565 /* end confdefs.h. */
23566
23567 #include <sys/types.h>
23568 #include <sys/socket.h>
23569 #include <netinet/in.h>
23570 #include <arpa/inet.h>
23571
23572 int
23573 main (void)
23574 {
23575 void *x=accept
23576 ;
23577 return 0;
23578 }
23579 _ACEOF
23580 if ac_fn_c_try_compile "$LINENO"
23581 then :
23582 ac_cv_func_accept=yes
23583 else case e in #(
23584 e) ac_cv_func_accept=no ;;
23585 esac
23586 fi
23587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23588 ;;
23589 esac
23590 fi
23591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
23592 printf "%s\n" "$ac_cv_func_accept" >&6; }
23593 if test "x$ac_cv_func_accept" = xyes
23594 then :
23595
23596 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
23597
23598 fi
23599
23600
23601
23602
23603
23604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
23605 printf %s "checking for bind... " >&6; }
23606 if test ${ac_cv_func_bind+y}
23607 then :
23608 printf %s "(cached) " >&6
23609 else case e in #(
23610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23611 /* end confdefs.h. */
23612
23613 #include <sys/types.h>
23614 #include <sys/socket.h>
23615 #include <netinet/in.h>
23616 #include <arpa/inet.h>
23617
23618 int
23619 main (void)
23620 {
23621 void *x=bind
23622 ;
23623 return 0;
23624 }
23625 _ACEOF
23626 if ac_fn_c_try_compile "$LINENO"
23627 then :
23628 ac_cv_func_bind=yes
23629 else case e in #(
23630 e) ac_cv_func_bind=no ;;
23631 esac
23632 fi
23633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23634 ;;
23635 esac
23636 fi
23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
23638 printf "%s\n" "$ac_cv_func_bind" >&6; }
23639 if test "x$ac_cv_func_bind" = xyes
23640 then :
23641
23642 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
23643
23644 fi
23645
23646
23647
23648
23649
23650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
23651 printf %s "checking for connect... " >&6; }
23652 if test ${ac_cv_func_connect+y}
23653 then :
23654 printf %s "(cached) " >&6
23655 else case e in #(
23656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h. */
23658
23659 #include <sys/types.h>
23660 #include <sys/socket.h>
23661 #include <netinet/in.h>
23662 #include <arpa/inet.h>
23663
23664 int
23665 main (void)
23666 {
23667 void *x=connect
23668 ;
23669 return 0;
23670 }
23671 _ACEOF
23672 if ac_fn_c_try_compile "$LINENO"
23673 then :
23674 ac_cv_func_connect=yes
23675 else case e in #(
23676 e) ac_cv_func_connect=no ;;
23677 esac
23678 fi
23679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23680 ;;
23681 esac
23682 fi
23683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
23684 printf "%s\n" "$ac_cv_func_connect" >&6; }
23685 if test "x$ac_cv_func_connect" = xyes
23686 then :
23687
23688 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
23689
23690 fi
23691
23692
23693
23694
23695
23696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
23697 printf %s "checking for listen... " >&6; }
23698 if test ${ac_cv_func_listen+y}
23699 then :
23700 printf %s "(cached) " >&6
23701 else case e in #(
23702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23704
23705 #include <sys/types.h>
23706 #include <sys/socket.h>
23707 #include <netinet/in.h>
23708 #include <arpa/inet.h>
23709
23710 int
23711 main (void)
23712 {
23713 void *x=listen
23714 ;
23715 return 0;
23716 }
23717 _ACEOF
23718 if ac_fn_c_try_compile "$LINENO"
23719 then :
23720 ac_cv_func_listen=yes
23721 else case e in #(
23722 e) ac_cv_func_listen=no ;;
23723 esac
23724 fi
23725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23726 ;;
23727 esac
23728 fi
23729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
23730 printf "%s\n" "$ac_cv_func_listen" >&6; }
23731 if test "x$ac_cv_func_listen" = xyes
23732 then :
23733
23734 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
23735
23736 fi
23737
23738
23739
23740
23741
23742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
23743 printf %s "checking for recvfrom... " >&6; }
23744 if test ${ac_cv_func_recvfrom+y}
23745 then :
23746 printf %s "(cached) " >&6
23747 else case e in #(
23748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h. */
23750
23751 #include <sys/types.h>
23752 #include <sys/socket.h>
23753 #include <netinet/in.h>
23754 #include <arpa/inet.h>
23755
23756 int
23757 main (void)
23758 {
23759 void *x=recvfrom
23760 ;
23761 return 0;
23762 }
23763 _ACEOF
23764 if ac_fn_c_try_compile "$LINENO"
23765 then :
23766 ac_cv_func_recvfrom=yes
23767 else case e in #(
23768 e) ac_cv_func_recvfrom=no ;;
23769 esac
23770 fi
23771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23772 ;;
23773 esac
23774 fi
23775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
23776 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
23777 if test "x$ac_cv_func_recvfrom" = xyes
23778 then :
23779
23780 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
23781
23782 fi
23783
23784
23785
23786
23787
23788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
23789 printf %s "checking for sendto... " >&6; }
23790 if test ${ac_cv_func_sendto+y}
23791 then :
23792 printf %s "(cached) " >&6
23793 else case e in #(
23794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23795 /* end confdefs.h. */
23796
23797 #include <sys/types.h>
23798 #include <sys/socket.h>
23799 #include <netinet/in.h>
23800 #include <arpa/inet.h>
23801
23802 int
23803 main (void)
23804 {
23805 void *x=sendto
23806 ;
23807 return 0;
23808 }
23809 _ACEOF
23810 if ac_fn_c_try_compile "$LINENO"
23811 then :
23812 ac_cv_func_sendto=yes
23813 else case e in #(
23814 e) ac_cv_func_sendto=no ;;
23815 esac
23816 fi
23817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23818 ;;
23819 esac
23820 fi
23821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
23822 printf "%s\n" "$ac_cv_func_sendto" >&6; }
23823 if test "x$ac_cv_func_sendto" = xyes
23824 then :
23825
23826 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
23827
23828 fi
23829
23830
23831
23832
23833
23834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
23835 printf %s "checking for setsockopt... " >&6; }
23836 if test ${ac_cv_func_setsockopt+y}
23837 then :
23838 printf %s "(cached) " >&6
23839 else case e in #(
23840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h. */
23842
23843 #include <sys/types.h>
23844 #include <sys/socket.h>
23845 #include <netinet/in.h>
23846 #include <arpa/inet.h>
23847
23848 int
23849 main (void)
23850 {
23851 void *x=setsockopt
23852 ;
23853 return 0;
23854 }
23855 _ACEOF
23856 if ac_fn_c_try_compile "$LINENO"
23857 then :
23858 ac_cv_func_setsockopt=yes
23859 else case e in #(
23860 e) ac_cv_func_setsockopt=no ;;
23861 esac
23862 fi
23863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23864 ;;
23865 esac
23866 fi
23867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
23868 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
23869 if test "x$ac_cv_func_setsockopt" = xyes
23870 then :
23871
23872 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
23873
23874 fi
23875
23876
23877
23878
23879
23880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
23881 printf %s "checking for socket... " >&6; }
23882 if test ${ac_cv_func_socket+y}
23883 then :
23884 printf %s "(cached) " >&6
23885 else case e in #(
23886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888
23889 #include <sys/types.h>
23890 #include <sys/socket.h>
23891 #include <netinet/in.h>
23892 #include <arpa/inet.h>
23893
23894 int
23895 main (void)
23896 {
23897 void *x=socket
23898 ;
23899 return 0;
23900 }
23901 _ACEOF
23902 if ac_fn_c_try_compile "$LINENO"
23903 then :
23904 ac_cv_func_socket=yes
23905 else case e in #(
23906 e) ac_cv_func_socket=no ;;
23907 esac
23908 fi
23909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23910 ;;
23911 esac
23912 fi
23913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
23914 printf "%s\n" "$ac_cv_func_socket" >&6; }
23915 if test "x$ac_cv_func_socket" = xyes
23916 then :
23917
23918 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
23919
23920 fi
23921
23922
23923
23924
23925 # On some systems, setgroups is in unistd.h, on others, in grp.h
23926
23927
23928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
23929 printf %s "checking for setgroups... " >&6; }
23930 if test ${ac_cv_func_setgroups+y}
23931 then :
23932 printf %s "(cached) " >&6
23933 else case e in #(
23934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h. */
23936
23937 #include <unistd.h>
23938 #ifdef HAVE_GRP_H
23939 #include <grp.h>
23940 #endif
23941
23942 int
23943 main (void)
23944 {
23945 void *x=setgroups
23946 ;
23947 return 0;
23948 }
23949 _ACEOF
23950 if ac_fn_c_try_compile "$LINENO"
23951 then :
23952 ac_cv_func_setgroups=yes
23953 else case e in #(
23954 e) ac_cv_func_setgroups=no ;;
23955 esac
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23958 ;;
23959 esac
23960 fi
23961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
23962 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
23963 if test "x$ac_cv_func_setgroups" = xyes
23964 then :
23965
23966 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
23967
23968 fi
23969
23970
23971
23972
23973 ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
23974 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23975 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
23976 then :
23977
23978 printf "%s\n" "#define HAVE_MAXLOGNAME 1" >>confdefs.h
23979
23980 fi
23981
23982 ac_fn_check_decl "$LINENO" "UT_NAMESIZE" "ac_cv_have_decl_UT_NAMESIZE" "#include <utmp.h>
23983 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23984 if test "x$ac_cv_have_decl_UT_NAMESIZE" = xyes
23985 then :
23986 ac_have_decl=1
23987 else case e in #(
23988 e) ac_have_decl=0 ;;
23989 esac
23990 fi
23991 printf "%s\n" "#define HAVE_DECL_UT_NAMESIZE $ac_have_decl" >>confdefs.h
23992 if test $ac_have_decl = 1
23993 then :
23994
23995 printf "%s\n" "#define HAVE_UT_NAMESIZE 1" >>confdefs.h
23996
23997 fi
23998
23999
24000 # check for openpty, login_tty, and forkpty
24001
24002
24003 for ac_func in openpty
24004 do :
24005 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
24006 if test "x$ac_cv_func_openpty" = xyes
24007 then :
24008 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24009
24010 else case e in #(
24011 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
24012 printf %s "checking for openpty in -lutil... " >&6; }
24013 if test ${ac_cv_lib_util_openpty+y}
24014 then :
24015 printf %s "(cached) " >&6
24016 else case e in #(
24017 e) ac_check_lib_save_LIBS=$LIBS
24018 LIBS="-lutil $LIBS"
24019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24020 /* end confdefs.h. */
24021
24022 /* Override any GCC internal prototype to avoid an error.
24023 Use char because int might match the return type of a GCC
24024 builtin and then its argument prototype would still apply.
24025 The 'extern "C"' is for builds by C++ compilers;
24026 although this is not generally supported in C code supporting it here
24027 has little cost and some practical benefit (sr 110532). */
24028 #ifdef __cplusplus
24029 extern "C"
24030 #endif
24031 char openpty (void);
24032 int
24033 main (void)
24034 {
24035 return openpty ();
24036 ;
24037 return 0;
24038 }
24039 _ACEOF
24040 if ac_fn_c_try_link "$LINENO"
24041 then :
24042 ac_cv_lib_util_openpty=yes
24043 else case e in #(
24044 e) ac_cv_lib_util_openpty=no ;;
24045 esac
24046 fi
24047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24048 conftest$ac_exeext conftest.$ac_ext
24049 LIBS=$ac_check_lib_save_LIBS ;;
24050 esac
24051 fi
24052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
24053 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
24054 if test "x$ac_cv_lib_util_openpty" = xyes
24055 then :
24056 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24057 LIBS="$LIBS -lutil"
24058 else case e in #(
24059 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
24060 printf %s "checking for openpty in -lbsd... " >&6; }
24061 if test ${ac_cv_lib_bsd_openpty+y}
24062 then :
24063 printf %s "(cached) " >&6
24064 else case e in #(
24065 e) ac_check_lib_save_LIBS=$LIBS
24066 LIBS="-lbsd $LIBS"
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24069
24070 /* Override any GCC internal prototype to avoid an error.
24071 Use char because int might match the return type of a GCC
24072 builtin and then its argument prototype would still apply.
24073 The 'extern "C"' is for builds by C++ compilers;
24074 although this is not generally supported in C code supporting it here
24075 has little cost and some practical benefit (sr 110532). */
24076 #ifdef __cplusplus
24077 extern "C"
24078 #endif
24079 char openpty (void);
24080 int
24081 main (void)
24082 {
24083 return openpty ();
24084 ;
24085 return 0;
24086 }
24087 _ACEOF
24088 if ac_fn_c_try_link "$LINENO"
24089 then :
24090 ac_cv_lib_bsd_openpty=yes
24091 else case e in #(
24092 e) ac_cv_lib_bsd_openpty=no ;;
24093 esac
24094 fi
24095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24096 conftest$ac_exeext conftest.$ac_ext
24097 LIBS=$ac_check_lib_save_LIBS ;;
24098 esac
24099 fi
24100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
24101 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
24102 if test "x$ac_cv_lib_bsd_openpty" = xyes
24103 then :
24104 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
24105 LIBS="$LIBS -lbsd"
24106 fi
24107 ;;
24108 esac
24109 fi
24110 ;;
24111 esac
24112 fi
24113
24114 done
24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
24116 printf %s "checking for library containing login_tty... " >&6; }
24117 if test ${ac_cv_search_login_tty+y}
24118 then :
24119 printf %s "(cached) " >&6
24120 else case e in #(
24121 e) ac_func_search_save_LIBS=$LIBS
24122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123 /* end confdefs.h. */
24124
24125 /* Override any GCC internal prototype to avoid an error.
24126 Use char because int might match the return type of a GCC
24127 builtin and then its argument prototype would still apply.
24128 The 'extern "C"' is for builds by C++ compilers;
24129 although this is not generally supported in C code supporting it here
24130 has little cost and some practical benefit (sr 110532). */
24131 #ifdef __cplusplus
24132 extern "C"
24133 #endif
24134 char login_tty (void);
24135 int
24136 main (void)
24137 {
24138 return login_tty ();
24139 ;
24140 return 0;
24141 }
24142 _ACEOF
24143 for ac_lib in '' util
24144 do
24145 if test -z "$ac_lib"; then
24146 ac_res="none required"
24147 else
24148 ac_res=-l$ac_lib
24149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24150 fi
24151 if ac_fn_c_try_link "$LINENO"
24152 then :
24153 ac_cv_search_login_tty=$ac_res
24154 fi
24155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24156 conftest$ac_exeext
24157 if test ${ac_cv_search_login_tty+y}
24158 then :
24159 break
24160 fi
24161 done
24162 if test ${ac_cv_search_login_tty+y}
24163 then :
24164
24165 else case e in #(
24166 e) ac_cv_search_login_tty=no ;;
24167 esac
24168 fi
24169 rm conftest.$ac_ext
24170 LIBS=$ac_func_search_save_LIBS ;;
24171 esac
24172 fi
24173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
24174 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
24175 ac_res=$ac_cv_search_login_tty
24176 if test "$ac_res" != no
24177 then :
24178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24179
24180 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
24181
24182
24183 fi
24184
24185
24186 for ac_func in forkpty
24187 do :
24188 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
24189 if test "x$ac_cv_func_forkpty" = xyes
24190 then :
24191 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24192
24193 else case e in #(
24194 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
24195 printf %s "checking for forkpty in -lutil... " >&6; }
24196 if test ${ac_cv_lib_util_forkpty+y}
24197 then :
24198 printf %s "(cached) " >&6
24199 else case e in #(
24200 e) ac_check_lib_save_LIBS=$LIBS
24201 LIBS="-lutil $LIBS"
24202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24203 /* end confdefs.h. */
24204
24205 /* Override any GCC internal prototype to avoid an error.
24206 Use char because int might match the return type of a GCC
24207 builtin and then its argument prototype would still apply.
24208 The 'extern "C"' is for builds by C++ compilers;
24209 although this is not generally supported in C code supporting it here
24210 has little cost and some practical benefit (sr 110532). */
24211 #ifdef __cplusplus
24212 extern "C"
24213 #endif
24214 char forkpty (void);
24215 int
24216 main (void)
24217 {
24218 return forkpty ();
24219 ;
24220 return 0;
24221 }
24222 _ACEOF
24223 if ac_fn_c_try_link "$LINENO"
24224 then :
24225 ac_cv_lib_util_forkpty=yes
24226 else case e in #(
24227 e) ac_cv_lib_util_forkpty=no ;;
24228 esac
24229 fi
24230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24231 conftest$ac_exeext conftest.$ac_ext
24232 LIBS=$ac_check_lib_save_LIBS ;;
24233 esac
24234 fi
24235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
24236 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
24237 if test "x$ac_cv_lib_util_forkpty" = xyes
24238 then :
24239 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24240 LIBS="$LIBS -lutil"
24241 else case e in #(
24242 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
24243 printf %s "checking for forkpty in -lbsd... " >&6; }
24244 if test ${ac_cv_lib_bsd_forkpty+y}
24245 then :
24246 printf %s "(cached) " >&6
24247 else case e in #(
24248 e) ac_check_lib_save_LIBS=$LIBS
24249 LIBS="-lbsd $LIBS"
24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24251 /* end confdefs.h. */
24252
24253 /* Override any GCC internal prototype to avoid an error.
24254 Use char because int might match the return type of a GCC
24255 builtin and then its argument prototype would still apply.
24256 The 'extern "C"' is for builds by C++ compilers;
24257 although this is not generally supported in C code supporting it here
24258 has little cost and some practical benefit (sr 110532). */
24259 #ifdef __cplusplus
24260 extern "C"
24261 #endif
24262 char forkpty (void);
24263 int
24264 main (void)
24265 {
24266 return forkpty ();
24267 ;
24268 return 0;
24269 }
24270 _ACEOF
24271 if ac_fn_c_try_link "$LINENO"
24272 then :
24273 ac_cv_lib_bsd_forkpty=yes
24274 else case e in #(
24275 e) ac_cv_lib_bsd_forkpty=no ;;
24276 esac
24277 fi
24278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24279 conftest$ac_exeext conftest.$ac_ext
24280 LIBS=$ac_check_lib_save_LIBS ;;
24281 esac
24282 fi
24283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
24284 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
24285 if test "x$ac_cv_lib_bsd_forkpty" = xyes
24286 then :
24287 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
24288 LIBS="$LIBS -lbsd"
24289 fi
24290 ;;
24291 esac
24292 fi
24293 ;;
24294 esac
24295 fi
24296
24297 done
24298
24299 # check for long file support functions
24300 ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64"
24301 if test "x$ac_cv_func_fseek64" = xyes
24302 then :
24303 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
24304
24305 fi
24306 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
24307 if test "x$ac_cv_func_fseeko" = xyes
24308 then :
24309 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
24310
24311 fi
24312 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
24313 if test "x$ac_cv_func_fstatvfs" = xyes
24314 then :
24315 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
24316
24317 fi
24318 ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64"
24319 if test "x$ac_cv_func_ftell64" = xyes
24320 then :
24321 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
24322
24323 fi
24324 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
24325 if test "x$ac_cv_func_ftello" = xyes
24326 then :
24327 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
24328
24329 fi
24330 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
24331 if test "x$ac_cv_func_statvfs" = xyes
24332 then :
24333 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
24334
24335 fi
24336
24337
24338 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
24339 if test "x$ac_cv_func_dup2" = xyes
24340 then :
24341 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
24342
24343 else case e in #(
24344 e) case " $LIBOBJS " in
24345 *" dup2.$ac_objext "* ) ;;
24346 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
24347 ;;
24348 esac
24349 ;;
24350 esac
24351 fi
24352
24353
24354 for ac_func in getpgrp
24355 do :
24356 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
24357 if test "x$ac_cv_func_getpgrp" = xyes
24358 then :
24359 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
24360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24361 /* end confdefs.h. */
24362 #include <unistd.h>
24363 int
24364 main (void)
24365 {
24366 getpgrp(0);
24367 ;
24368 return 0;
24369 }
24370 _ACEOF
24371 if ac_fn_c_try_compile "$LINENO"
24372 then :
24373
24374 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
24375
24376 fi
24377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24378 fi
24379
24380 done
24381
24382 for ac_func in setpgrp
24383 do :
24384 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
24385 if test "x$ac_cv_func_setpgrp" = xyes
24386 then :
24387 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
24388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h. */
24390 #include <unistd.h>
24391 int
24392 main (void)
24393 {
24394 setpgrp(0,0);
24395 ;
24396 return 0;
24397 }
24398 _ACEOF
24399 if ac_fn_c_try_compile "$LINENO"
24400 then :
24401
24402 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
24403
24404 fi
24405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24406 fi
24407
24408 done
24409
24410 # check for namespace functions
24411 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
24412 if test "x$ac_cv_func_setns" = xyes
24413 then :
24414 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
24415
24416 fi
24417 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
24418 if test "x$ac_cv_func_unshare" = xyes
24419 then :
24420 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
24421
24422 fi
24423
24424
24425
24426 for ac_func in clock_gettime
24427 do :
24428 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
24429 if test "x$ac_cv_func_clock_gettime" = xyes
24430 then :
24431 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24432
24433 else case e in #(
24434 e)
24435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24436 printf %s "checking for clock_gettime in -lrt... " >&6; }
24437 if test ${ac_cv_lib_rt_clock_gettime+y}
24438 then :
24439 printf %s "(cached) " >&6
24440 else case e in #(
24441 e) ac_check_lib_save_LIBS=$LIBS
24442 LIBS="-lrt $LIBS"
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h. */
24445
24446 /* Override any GCC internal prototype to avoid an error.
24447 Use char because int might match the return type of a GCC
24448 builtin and then its argument prototype would still apply.
24449 The 'extern "C"' is for builds by C++ compilers;
24450 although this is not generally supported in C code supporting it here
24451 has little cost and some practical benefit (sr 110532). */
24452 #ifdef __cplusplus
24453 extern "C"
24454 #endif
24455 char clock_gettime (void);
24456 int
24457 main (void)
24458 {
24459 return clock_gettime ();
24460 ;
24461 return 0;
24462 }
24463 _ACEOF
24464 if ac_fn_c_try_link "$LINENO"
24465 then :
24466 ac_cv_lib_rt_clock_gettime=yes
24467 else case e in #(
24468 e) ac_cv_lib_rt_clock_gettime=no ;;
24469 esac
24470 fi
24471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24472 conftest$ac_exeext conftest.$ac_ext
24473 LIBS=$ac_check_lib_save_LIBS ;;
24474 esac
24475 fi
24476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24477 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
24478 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
24479 then :
24480
24481 LIBS="$LIBS -lrt"
24482 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24483
24484
24485 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
24486
24487
24488 fi
24489
24490 ;;
24491 esac
24492 fi
24493
24494 done
24495
24496
24497 for ac_func in clock_getres
24498 do :
24499 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
24500 if test "x$ac_cv_func_clock_getres" = xyes
24501 then :
24502 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
24503
24504 else case e in #(
24505 e)
24506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
24507 printf %s "checking for clock_getres in -lrt... " >&6; }
24508 if test ${ac_cv_lib_rt_clock_getres+y}
24509 then :
24510 printf %s "(cached) " >&6
24511 else case e in #(
24512 e) ac_check_lib_save_LIBS=$LIBS
24513 LIBS="-lrt $LIBS"
24514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h. */
24516
24517 /* Override any GCC internal prototype to avoid an error.
24518 Use char because int might match the return type of a GCC
24519 builtin and then its argument prototype would still apply.
24520 The 'extern "C"' is for builds by C++ compilers;
24521 although this is not generally supported in C code supporting it here
24522 has little cost and some practical benefit (sr 110532). */
24523 #ifdef __cplusplus
24524 extern "C"
24525 #endif
24526 char clock_getres (void);
24527 int
24528 main (void)
24529 {
24530 return clock_getres ();
24531 ;
24532 return 0;
24533 }
24534 _ACEOF
24535 if ac_fn_c_try_link "$LINENO"
24536 then :
24537 ac_cv_lib_rt_clock_getres=yes
24538 else case e in #(
24539 e) ac_cv_lib_rt_clock_getres=no ;;
24540 esac
24541 fi
24542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24543 conftest$ac_exeext conftest.$ac_ext
24544 LIBS=$ac_check_lib_save_LIBS ;;
24545 esac
24546 fi
24547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
24548 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
24549 if test "x$ac_cv_lib_rt_clock_getres" = xyes
24550 then :
24551
24552 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
24553
24554
24555 fi
24556
24557 ;;
24558 esac
24559 fi
24560
24561 done
24562
24563 # On Android and iOS, clock_settime can be linked (so it is found by
24564 # configure), but when used in an unprivileged process, it crashes rather than
24565 # returning an error. Force the symbol off.
24566 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
24567 then
24568
24569 for ac_func in clock_settime
24570 do :
24571 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
24572 if test "x$ac_cv_func_clock_settime" = xyes
24573 then :
24574 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
24575
24576 else case e in #(
24577 e)
24578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
24579 printf %s "checking for clock_settime in -lrt... " >&6; }
24580 if test ${ac_cv_lib_rt_clock_settime+y}
24581 then :
24582 printf %s "(cached) " >&6
24583 else case e in #(
24584 e) ac_check_lib_save_LIBS=$LIBS
24585 LIBS="-lrt $LIBS"
24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24587 /* end confdefs.h. */
24588
24589 /* Override any GCC internal prototype to avoid an error.
24590 Use char because int might match the return type of a GCC
24591 builtin and then its argument prototype would still apply.
24592 The 'extern "C"' is for builds by C++ compilers;
24593 although this is not generally supported in C code supporting it here
24594 has little cost and some practical benefit (sr 110532). */
24595 #ifdef __cplusplus
24596 extern "C"
24597 #endif
24598 char clock_settime (void);
24599 int
24600 main (void)
24601 {
24602 return clock_settime ();
24603 ;
24604 return 0;
24605 }
24606 _ACEOF
24607 if ac_fn_c_try_link "$LINENO"
24608 then :
24609 ac_cv_lib_rt_clock_settime=yes
24610 else case e in #(
24611 e) ac_cv_lib_rt_clock_settime=no ;;
24612 esac
24613 fi
24614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24615 conftest$ac_exeext conftest.$ac_ext
24616 LIBS=$ac_check_lib_save_LIBS ;;
24617 esac
24618 fi
24619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
24620 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
24621 if test "x$ac_cv_lib_rt_clock_settime" = xyes
24622 then :
24623
24624 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
24625
24626
24627 fi
24628
24629 ;;
24630 esac
24631 fi
24632
24633 done
24634 fi
24635
24636 # On Android before API level 23, clock_nanosleep returns the wrong value when
24637 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
24638 if ! { test "$ac_sys_system" = "Linux-android" &&
24639 test "$ANDROID_API_LEVEL" -lt 23; }; then
24640
24641 for ac_func in clock_nanosleep
24642 do :
24643 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
24644 if test "x$ac_cv_func_clock_nanosleep" = xyes
24645 then :
24646 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
24647
24648 else case e in #(
24649 e)
24650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
24651 printf %s "checking for clock_nanosleep in -lrt... " >&6; }
24652 if test ${ac_cv_lib_rt_clock_nanosleep+y}
24653 then :
24654 printf %s "(cached) " >&6
24655 else case e in #(
24656 e) ac_check_lib_save_LIBS=$LIBS
24657 LIBS="-lrt $LIBS"
24658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24659 /* end confdefs.h. */
24660
24661 /* Override any GCC internal prototype to avoid an error.
24662 Use char because int might match the return type of a GCC
24663 builtin and then its argument prototype would still apply.
24664 The 'extern "C"' is for builds by C++ compilers;
24665 although this is not generally supported in C code supporting it here
24666 has little cost and some practical benefit (sr 110532). */
24667 #ifdef __cplusplus
24668 extern "C"
24669 #endif
24670 char clock_nanosleep (void);
24671 int
24672 main (void)
24673 {
24674 return clock_nanosleep ();
24675 ;
24676 return 0;
24677 }
24678 _ACEOF
24679 if ac_fn_c_try_link "$LINENO"
24680 then :
24681 ac_cv_lib_rt_clock_nanosleep=yes
24682 else case e in #(
24683 e) ac_cv_lib_rt_clock_nanosleep=no ;;
24684 esac
24685 fi
24686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24687 conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS ;;
24689 esac
24690 fi
24691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
24692 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
24693 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
24694 then :
24695
24696 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
24697
24698
24699 fi
24700
24701 ;;
24702 esac
24703 fi
24704
24705 done
24706 fi
24707
24708
24709 for ac_func in nanosleep
24710 do :
24711 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24712 if test "x$ac_cv_func_nanosleep" = xyes
24713 then :
24714 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24715
24716 else case e in #(
24717 e)
24718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
24719 printf %s "checking for nanosleep in -lrt... " >&6; }
24720 if test ${ac_cv_lib_rt_nanosleep+y}
24721 then :
24722 printf %s "(cached) " >&6
24723 else case e in #(
24724 e) ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lrt $LIBS"
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24728
24729 /* Override any GCC internal prototype to avoid an error.
24730 Use char because int might match the return type of a GCC
24731 builtin and then its argument prototype would still apply.
24732 The 'extern "C"' is for builds by C++ compilers;
24733 although this is not generally supported in C code supporting it here
24734 has little cost and some practical benefit (sr 110532). */
24735 #ifdef __cplusplus
24736 extern "C"
24737 #endif
24738 char nanosleep (void);
24739 int
24740 main (void)
24741 {
24742 return nanosleep ();
24743 ;
24744 return 0;
24745 }
24746 _ACEOF
24747 if ac_fn_c_try_link "$LINENO"
24748 then :
24749 ac_cv_lib_rt_nanosleep=yes
24750 else case e in #(
24751 e) ac_cv_lib_rt_nanosleep=no ;;
24752 esac
24753 fi
24754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24755 conftest$ac_exeext conftest.$ac_ext
24756 LIBS=$ac_check_lib_save_LIBS ;;
24757 esac
24758 fi
24759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
24760 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
24761 if test "x$ac_cv_lib_rt_nanosleep" = xyes
24762 then :
24763
24764 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
24765
24766
24767 fi
24768
24769 ;;
24770 esac
24771 fi
24772
24773 done
24774
24775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
24776 printf %s "checking for major, minor, and makedev... " >&6; }
24777 if test ${ac_cv_device_macros+y}
24778 then :
24779 printf %s "(cached) " >&6
24780 else case e in #(
24781 e)
24782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24783 /* end confdefs.h. */
24784
24785 #if defined(MAJOR_IN_MKDEV)
24786 #include <sys/mkdev.h>
24787 #elif defined(MAJOR_IN_SYSMACROS)
24788 #include <sys/types.h>
24789 #include <sys/sysmacros.h>
24790 #else
24791 #include <sys/types.h>
24792 #endif
24793
24794 int
24795 main (void)
24796 {
24797
24798 makedev(major(0),minor(0));
24799
24800 ;
24801 return 0;
24802 }
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"
24805 then :
24806 ac_cv_device_macros=yes
24807 else case e in #(
24808 e) ac_cv_device_macros=no ;;
24809 esac
24810 fi
24811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24812 conftest$ac_exeext conftest.$ac_ext
24813 ;;
24814 esac
24815 fi
24816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
24817 printf "%s\n" "$ac_cv_device_macros" >&6; }
24818 if test "x$ac_cv_device_macros" = xyes
24819 then :
24820
24821
24822 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
24823
24824
24825 fi
24826
24827
24828 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
24829
24830
24831 # On OSF/1 V5.1, getaddrinfo is available, but a define
24832 # for [no]getaddrinfo in netdb.h.
24833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
24834 printf %s "checking for getaddrinfo... " >&6; }
24835 if test ${ac_cv_func_getaddrinfo+y}
24836 then :
24837 printf %s "(cached) " >&6
24838 else case e in #(
24839 e)
24840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24841 /* end confdefs.h. */
24842
24843 #include <sys/types.h>
24844 #include <sys/socket.h>
24845 #include <netdb.h>
24846 #include <stdio.h>
24847
24848 int
24849 main (void)
24850 {
24851 getaddrinfo(NULL, NULL, NULL, NULL);
24852 ;
24853 return 0;
24854 }
24855 _ACEOF
24856 if ac_fn_c_try_link "$LINENO"
24857 then :
24858 ac_cv_func_getaddrinfo=yes
24859 else case e in #(
24860 e) ac_cv_func_getaddrinfo=no ;;
24861 esac
24862 fi
24863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24864 conftest$ac_exeext conftest.$ac_ext
24865 ;;
24866 esac
24867 fi
24868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
24869 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
24870
24871 if test "x$ac_cv_func_getaddrinfo" = xyes
24872 then :
24873
24874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
24875 printf %s "checking getaddrinfo bug... " >&6; }
24876 if test ${ac_cv_buggy_getaddrinfo+y}
24877 then :
24878 printf %s "(cached) " >&6
24879 else case e in #(
24880 e) if test "$cross_compiling" = yes
24881 then :
24882
24883 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
24884 ac_cv_buggy_getaddrinfo="no"
24885 elif test "${enable_ipv6+set}" = set; then
24886 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
24887 else
24888 ac_cv_buggy_getaddrinfo=yes
24889 fi
24890 else case e in #(
24891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24892 /* end confdefs.h. */
24893
24894 #include <stdio.h>
24895 #include <sys/types.h>
24896 #include <netdb.h>
24897 #include <string.h>
24898 #include <sys/socket.h>
24899 #include <netinet/in.h>
24900
24901 int main(void)
24902 {
24903 int passive, gaierr, inet4 = 0, inet6 = 0;
24904 struct addrinfo hints, *ai, *aitop;
24905 char straddr[INET6_ADDRSTRLEN], strport[16];
24906
24907 for (passive = 0; passive <= 1; passive++) {
24908 memset(&hints, 0, sizeof(hints));
24909 hints.ai_family = AF_UNSPEC;
24910 hints.ai_flags = passive ? AI_PASSIVE : 0;
24911 hints.ai_socktype = SOCK_STREAM;
24912 hints.ai_protocol = IPPROTO_TCP;
24913 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
24914 (void)gai_strerror(gaierr);
24915 goto bad;
24916 }
24917 for (ai = aitop; ai; ai = ai->ai_next) {
24918 if (ai->ai_addr == NULL ||
24919 ai->ai_addrlen == 0 ||
24920 getnameinfo(ai->ai_addr, ai->ai_addrlen,
24921 straddr, sizeof(straddr), strport, sizeof(strport),
24922 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
24923 goto bad;
24924 }
24925 switch (ai->ai_family) {
24926 case AF_INET:
24927 if (strcmp(strport, "54321") != 0) {
24928 goto bad;
24929 }
24930 if (passive) {
24931 if (strcmp(straddr, "0.0.0.0") != 0) {
24932 goto bad;
24933 }
24934 } else {
24935 if (strcmp(straddr, "127.0.0.1") != 0) {
24936 goto bad;
24937 }
24938 }
24939 inet4++;
24940 break;
24941 case AF_INET6:
24942 if (strcmp(strport, "54321") != 0) {
24943 goto bad;
24944 }
24945 if (passive) {
24946 if (strcmp(straddr, "::") != 0) {
24947 goto bad;
24948 }
24949 } else {
24950 if (strcmp(straddr, "::1") != 0) {
24951 goto bad;
24952 }
24953 }
24954 inet6++;
24955 break;
24956 case AF_UNSPEC:
24957 goto bad;
24958 break;
24959 default:
24960 /* another family support? */
24961 break;
24962 }
24963 }
24964 freeaddrinfo(aitop);
24965 aitop = NULL;
24966 }
24967
24968 if (!(inet4 == 0 || inet4 == 2))
24969 goto bad;
24970 if (!(inet6 == 0 || inet6 == 2))
24971 goto bad;
24972
24973 if (aitop)
24974 freeaddrinfo(aitop);
24975 return 0;
24976
24977 bad:
24978 if (aitop)
24979 freeaddrinfo(aitop);
24980 return 1;
24981 }
24982
24983 _ACEOF
24984 if ac_fn_c_try_run "$LINENO"
24985 then :
24986 ac_cv_buggy_getaddrinfo=no
24987 else case e in #(
24988 e) ac_cv_buggy_getaddrinfo=yes ;;
24989 esac
24990 fi
24991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24992 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24993 esac
24994 fi
24995 ;;
24996 esac
24997 fi
24998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
24999 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
25000
25001
25002 fi
25003
25004 if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes
25005 then
25006 if test "x$ipv6" = xyes
25007 then :
25008
25009 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
25010
25011 fi
25012 else
25013
25014 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
25015
25016 fi
25017
25018 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
25019 if test "x$ac_cv_func_getnameinfo" = xyes
25020 then :
25021 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
25022
25023 fi
25024
25025
25026 # checks for structures
25027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25028 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25029 if test ${ac_cv_struct_tm+y}
25030 then :
25031 printf %s "(cached) " >&6
25032 else case e in #(
25033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h. */
25035 #include <sys/types.h>
25036 #include <time.h>
25037
25038 int
25039 main (void)
25040 {
25041 struct tm tm;
25042 int *p = &tm.tm_sec;
25043 return !p;
25044 ;
25045 return 0;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_compile "$LINENO"
25049 then :
25050 ac_cv_struct_tm=time.h
25051 else case e in #(
25052 e) ac_cv_struct_tm=sys/time.h ;;
25053 esac
25054 fi
25055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25056 esac
25057 fi
25058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25059 printf "%s\n" "$ac_cv_struct_tm" >&6; }
25060 if test $ac_cv_struct_tm = sys/time.h; then
25061
25062 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
25063
25064 fi
25065
25066 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25067 #include <$ac_cv_struct_tm>
25068
25069 "
25070 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
25071 then :
25072
25073 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
25074
25075
25076 fi
25077
25078 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25079
25080 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
25081
25082 else
25083 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25084 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25085 if test "x$ac_cv_have_decl_tzname" = xyes
25086 then :
25087 ac_have_decl=1
25088 else case e in #(
25089 e) ac_have_decl=0 ;;
25090 esac
25091 fi
25092 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
25093
25094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25095 printf %s "checking for tzname... " >&6; }
25096 if test ${ac_cv_var_tzname+y}
25097 then :
25098 printf %s "(cached) " >&6
25099 else case e in #(
25100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101 /* end confdefs.h. */
25102 #include <time.h>
25103 #if !HAVE_DECL_TZNAME
25104 extern char *tzname[];
25105 #endif
25106
25107 int
25108 main (void)
25109 {
25110 return tzname[0][0];
25111 ;
25112 return 0;
25113 }
25114 _ACEOF
25115 if ac_fn_c_try_link "$LINENO"
25116 then :
25117 ac_cv_var_tzname=yes
25118 else case e in #(
25119 e) ac_cv_var_tzname=no ;;
25120 esac
25121 fi
25122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25123 conftest$ac_exeext conftest.$ac_ext ;;
25124 esac
25125 fi
25126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25127 printf "%s\n" "$ac_cv_var_tzname" >&6; }
25128 if test $ac_cv_var_tzname = yes; then
25129
25130 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
25131
25132 fi
25133 fi
25134
25135 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
25136 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
25137 then :
25138
25139 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
25140
25141
25142 fi
25143
25144 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25145 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
25146 then :
25147
25148 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
25149
25150
25151 fi
25152
25153 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
25154 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
25155 then :
25156
25157 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
25158
25159
25160 fi
25161
25162 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
25163 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
25164 then :
25165
25166 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
25167
25168
25169 fi
25170
25171 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
25172 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
25173 then :
25174
25175 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
25176
25177
25178 fi
25179
25180 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25181 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
25182 then :
25183
25184 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
25185
25186
25187 fi
25188
25189 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
25190 #include <sys/types.h>
25191 #include <pwd.h>
25192
25193 "
25194 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
25195 then :
25196
25197 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
25198
25199
25200 fi
25201 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
25202 #include <sys/types.h>
25203 #include <pwd.h>
25204
25205 "
25206 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
25207 then :
25208
25209 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
25210
25211
25212 fi
25213
25214 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
25215 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
25216 "
25217 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
25218 then :
25219
25220 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
25221
25222
25223 fi
25224
25225
25226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
25227 printf %s "checking for time.h that defines altzone... " >&6; }
25228 if test ${ac_cv_header_time_altzone+y}
25229 then :
25230 printf %s "(cached) " >&6
25231 else case e in #(
25232 e)
25233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25234 /* end confdefs.h. */
25235 #include <time.h>
25236 int
25237 main (void)
25238 {
25239 return altzone;
25240 ;
25241 return 0;
25242 }
25243 _ACEOF
25244 if ac_fn_c_try_compile "$LINENO"
25245 then :
25246 ac_cv_header_time_altzone=yes
25247 else case e in #(
25248 e) ac_cv_header_time_altzone=no ;;
25249 esac
25250 fi
25251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25252 ;;
25253 esac
25254 fi
25255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
25256 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
25257 if test $ac_cv_header_time_altzone = yes; then
25258
25259 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
25260
25261 fi
25262
25263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
25264 printf %s "checking for addrinfo... " >&6; }
25265 if test ${ac_cv_struct_addrinfo+y}
25266 then :
25267 printf %s "(cached) " >&6
25268 else case e in #(
25269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25270 /* end confdefs.h. */
25271 #include <netdb.h>
25272 int
25273 main (void)
25274 {
25275 struct addrinfo a
25276 ;
25277 return 0;
25278 }
25279 _ACEOF
25280 if ac_fn_c_try_compile "$LINENO"
25281 then :
25282 ac_cv_struct_addrinfo=yes
25283 else case e in #(
25284 e) ac_cv_struct_addrinfo=no ;;
25285 esac
25286 fi
25287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25288 esac
25289 fi
25290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
25291 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
25292 if test $ac_cv_struct_addrinfo = yes; then
25293
25294 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
25295
25296 fi
25297
25298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
25299 printf %s "checking for sockaddr_storage... " >&6; }
25300 if test ${ac_cv_struct_sockaddr_storage+y}
25301 then :
25302 printf %s "(cached) " >&6
25303 else case e in #(
25304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25306
25307 # include <sys/types.h>
25308 # include <sys/socket.h>
25309 int
25310 main (void)
25311 {
25312 struct sockaddr_storage s
25313 ;
25314 return 0;
25315 }
25316 _ACEOF
25317 if ac_fn_c_try_compile "$LINENO"
25318 then :
25319 ac_cv_struct_sockaddr_storage=yes
25320 else case e in #(
25321 e) ac_cv_struct_sockaddr_storage=no ;;
25322 esac
25323 fi
25324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25325 esac
25326 fi
25327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
25328 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
25329 if test $ac_cv_struct_sockaddr_storage = yes; then
25330
25331 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
25332
25333 fi
25334
25335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
25336 printf %s "checking for sockaddr_alg... " >&6; }
25337 if test ${ac_cv_struct_sockaddr_alg+y}
25338 then :
25339 printf %s "(cached) " >&6
25340 else case e in #(
25341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25343
25344 # include <sys/types.h>
25345 # include <sys/socket.h>
25346 # include <linux/if_alg.h>
25347 int
25348 main (void)
25349 {
25350 struct sockaddr_alg s
25351 ;
25352 return 0;
25353 }
25354 _ACEOF
25355 if ac_fn_c_try_compile "$LINENO"
25356 then :
25357 ac_cv_struct_sockaddr_alg=yes
25358 else case e in #(
25359 e) ac_cv_struct_sockaddr_alg=no ;;
25360 esac
25361 fi
25362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25363 esac
25364 fi
25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
25366 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
25367 if test $ac_cv_struct_sockaddr_alg = yes; then
25368
25369 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
25370
25371 fi
25372
25373 # checks for compiler characteristics
25374
25375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25376 printf %s "checking for an ANSI C-conforming const... " >&6; }
25377 if test ${ac_cv_c_const+y}
25378 then :
25379 printf %s "(cached) " >&6
25380 else case e in #(
25381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25382 /* end confdefs.h. */
25383
25384 int
25385 main (void)
25386 {
25387
25388 #ifndef __cplusplus
25389 /* Ultrix mips cc rejects this sort of thing. */
25390 typedef int charset[2];
25391 const charset cs = { 0, 0 };
25392 /* SunOS 4.1.1 cc rejects this. */
25393 char const *const *pcpcc;
25394 char **ppc;
25395 /* NEC SVR4.0.2 mips cc rejects this. */
25396 struct point {int x, y;};
25397 static struct point const zero = {0,0};
25398 /* IBM XL C 1.02.0.0 rejects this.
25399 It does not let you subtract one const X* pointer from another in
25400 an arm of an if-expression whose if-part is not a constant
25401 expression */
25402 const char *g = "string";
25403 pcpcc = &g + (g ? g-g : 0);
25404 /* HPUX 7.0 cc rejects these. */
25405 ++pcpcc;
25406 ppc = (char**) pcpcc;
25407 pcpcc = (char const *const *) ppc;
25408 { /* SCO 3.2v4 cc rejects this sort of thing. */
25409 char tx;
25410 char *t = &tx;
25411 char const *s = 0 ? (char *) 0 : (char const *) 0;
25412
25413 *t++ = 0;
25414 if (s) return 0;
25415 }
25416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25417 int x[] = {25, 17};
25418 const int *foo = &x[0];
25419 ++foo;
25420 }
25421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25422 typedef const int *iptr;
25423 iptr p = 0;
25424 ++p;
25425 }
25426 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
25427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25428 struct s { int j; const int *ap[3]; } bx;
25429 struct s *b = &bx; b->j = 5;
25430 }
25431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25432 const int foo = 10;
25433 if (!foo) return 0;
25434 }
25435 return !cs[0] && !zero.x;
25436 #endif
25437
25438 ;
25439 return 0;
25440 }
25441 _ACEOF
25442 if ac_fn_c_try_compile "$LINENO"
25443 then :
25444 ac_cv_c_const=yes
25445 else case e in #(
25446 e) ac_cv_c_const=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_c_const" >&5
25453 printf "%s\n" "$ac_cv_c_const" >&6; }
25454 if test $ac_cv_c_const = no; then
25455
25456 printf "%s\n" "#define const /**/" >>confdefs.h
25457
25458 fi
25459
25460
25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
25462 printf %s "checking for working signed char... " >&6; }
25463 if test ${ac_cv_working_signed_char_c+y}
25464 then :
25465 printf %s "(cached) " >&6
25466 else case e in #(
25467 e)
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25470
25471 int
25472 main (void)
25473 {
25474 signed char c;
25475 ;
25476 return 0;
25477 }
25478 _ACEOF
25479 if ac_fn_c_try_compile "$LINENO"
25480 then :
25481 ac_cv_working_signed_char_c=yes
25482 else case e in #(
25483 e) ac_cv_working_signed_char_c=no ;;
25484 esac
25485 fi
25486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25487 ;;
25488 esac
25489 fi
25490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
25491 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
25492 if test "x$ac_cv_working_signed_char_c" = xno
25493 then :
25494
25495
25496 printf "%s\n" "#define signed /**/" >>confdefs.h
25497
25498
25499 fi
25500
25501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
25502 printf %s "checking for prototypes... " >&6; }
25503 if test ${ac_cv_function_prototypes+y}
25504 then :
25505 printf %s "(cached) " >&6
25506 else case e in #(
25507 e)
25508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25510 int foo(int x) { return 0; }
25511 int
25512 main (void)
25513 {
25514 return foo(10);
25515 ;
25516 return 0;
25517 }
25518 _ACEOF
25519 if ac_fn_c_try_compile "$LINENO"
25520 then :
25521 ac_cv_function_prototypes=yes
25522 else case e in #(
25523 e) ac_cv_function_prototypes=no ;;
25524 esac
25525 fi
25526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25527 ;;
25528 esac
25529 fi
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
25531 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
25532 if test "x$ac_cv_function_prototypes" = xyes
25533 then :
25534
25535
25536 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
25537
25538
25539 fi
25540
25541
25542 # check for socketpair
25543
25544
25545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
25546 printf %s "checking for socketpair... " >&6; }
25547 if test ${ac_cv_func_socketpair+y}
25548 then :
25549 printf %s "(cached) " >&6
25550 else case e in #(
25551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552 /* end confdefs.h. */
25553
25554 #include <sys/types.h>
25555 #include <sys/socket.h>
25556
25557 int
25558 main (void)
25559 {
25560 void *x=socketpair
25561 ;
25562 return 0;
25563 }
25564 _ACEOF
25565 if ac_fn_c_try_compile "$LINENO"
25566 then :
25567 ac_cv_func_socketpair=yes
25568 else case e in #(
25569 e) ac_cv_func_socketpair=no ;;
25570 esac
25571 fi
25572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25573 ;;
25574 esac
25575 fi
25576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
25577 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
25578 if test "x$ac_cv_func_socketpair" = xyes
25579 then :
25580
25581 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
25582
25583 fi
25584
25585
25586
25587
25588 # check if sockaddr has sa_len member
25589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
25590 printf %s "checking if sockaddr has sa_len member... " >&6; }
25591 if test ${ac_cv_struct_sockaddr_sa_len+y}
25592 then :
25593 printf %s "(cached) " >&6
25594 else case e in #(
25595 e)
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25598 #include <sys/types.h>
25599 #include <sys/socket.h>
25600 int
25601 main (void)
25602 {
25603 struct sockaddr x;
25604 x.sa_len = 0;
25605 ;
25606 return 0;
25607 }
25608 _ACEOF
25609 if ac_fn_c_try_compile "$LINENO"
25610 then :
25611 ac_cv_struct_sockaddr_sa_len=yes
25612 else case e in #(
25613 e) ac_cv_struct_sockaddr_sa_len=no ;;
25614 esac
25615 fi
25616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25617 ;;
25618 esac
25619 fi
25620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
25621 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
25622 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
25623 then :
25624
25625
25626 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
25627
25628
25629 fi
25630
25631 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
25632
25633
25634 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
25635 if test "x$ac_cv_func_gethostbyname_r" = xyes
25636 then :
25637 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25638
25639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
25640 printf %s "checking gethostbyname_r with 6 args... " >&6; }
25641 OLD_CFLAGS=$CFLAGS
25642 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25645
25646 # include <netdb.h>
25647
25648 int
25649 main (void)
25650 {
25651
25652 char *name;
25653 struct hostent *he, *res;
25654 char buffer[2048];
25655 int buflen = 2048;
25656 int h_errnop;
25657
25658 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
25659
25660 ;
25661 return 0;
25662 }
25663 _ACEOF
25664 if ac_fn_c_try_compile "$LINENO"
25665 then :
25666
25667 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25668
25669
25670 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
25671
25672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25673 printf "%s\n" "yes" >&6; }
25674
25675 else case e in #(
25676 e)
25677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25678 printf "%s\n" "no" >&6; }
25679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
25680 printf %s "checking gethostbyname_r with 5 args... " >&6; }
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25683
25684 # include <netdb.h>
25685
25686 int
25687 main (void)
25688 {
25689
25690 char *name;
25691 struct hostent *he;
25692 char buffer[2048];
25693 int buflen = 2048;
25694 int h_errnop;
25695
25696 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
25697
25698 ;
25699 return 0;
25700 }
25701 _ACEOF
25702 if ac_fn_c_try_compile "$LINENO"
25703 then :
25704
25705 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25706
25707
25708 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
25709
25710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25711 printf "%s\n" "yes" >&6; }
25712
25713 else case e in #(
25714 e)
25715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25716 printf "%s\n" "no" >&6; }
25717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
25718 printf %s "checking gethostbyname_r with 3 args... " >&6; }
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25721
25722 # include <netdb.h>
25723
25724 int
25725 main (void)
25726 {
25727
25728 char *name;
25729 struct hostent *he;
25730 struct hostent_data data;
25731
25732 (void) gethostbyname_r(name, he, &data);
25733
25734 ;
25735 return 0;
25736 }
25737 _ACEOF
25738 if ac_fn_c_try_compile "$LINENO"
25739 then :
25740
25741 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
25742
25743
25744 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
25745
25746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25747 printf "%s\n" "yes" >&6; }
25748
25749 else case e in #(
25750 e)
25751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25752 printf "%s\n" "no" >&6; }
25753 ;;
25754 esac
25755 fi
25756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25757 ;;
25758 esac
25759 fi
25760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25761 ;;
25762 esac
25763 fi
25764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25765 CFLAGS=$OLD_CFLAGS
25766
25767 else case e in #(
25768 e)
25769 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25770 if test "x$ac_cv_func_gethostbyname" = xyes
25771 then :
25772 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
25773
25774 fi
25775
25776 ;;
25777 esac
25778 fi
25779
25780
25781
25782
25783
25784
25785
25786 # checks for system services
25787 # (none yet)
25788
25789 # Linux requires this for correct f.p. operations
25790 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
25791 if test "x$ac_cv_func___fpu_control" = xyes
25792 then :
25793
25794 else case e in #(
25795 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
25796 printf %s "checking for __fpu_control in -lieee... " >&6; }
25797 if test ${ac_cv_lib_ieee___fpu_control+y}
25798 then :
25799 printf %s "(cached) " >&6
25800 else case e in #(
25801 e) ac_check_lib_save_LIBS=$LIBS
25802 LIBS="-lieee $LIBS"
25803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25804 /* end confdefs.h. */
25805
25806 /* Override any GCC internal prototype to avoid an error.
25807 Use char because int might match the return type of a GCC
25808 builtin and then its argument prototype would still apply.
25809 The 'extern "C"' is for builds by C++ compilers;
25810 although this is not generally supported in C code supporting it here
25811 has little cost and some practical benefit (sr 110532). */
25812 #ifdef __cplusplus
25813 extern "C"
25814 #endif
25815 char __fpu_control (void);
25816 int
25817 main (void)
25818 {
25819 return __fpu_control ();
25820 ;
25821 return 0;
25822 }
25823 _ACEOF
25824 if ac_fn_c_try_link "$LINENO"
25825 then :
25826 ac_cv_lib_ieee___fpu_control=yes
25827 else case e in #(
25828 e) ac_cv_lib_ieee___fpu_control=no ;;
25829 esac
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25832 conftest$ac_exeext conftest.$ac_ext
25833 LIBS=$ac_check_lib_save_LIBS ;;
25834 esac
25835 fi
25836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
25837 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
25838 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
25839 then :
25840 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
25841
25842 LIBS="-lieee $LIBS"
25843
25844 fi
25845
25846 ;;
25847 esac
25848 fi
25849
25850
25851 # check for --with-libm=...
25852
25853 case $ac_sys_system in
25854 Darwin) ;;
25855 *) LIBM=-lm
25856 esac
25857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
25858 printf %s "checking for --with-libm=STRING... " >&6; }
25859
25860 # Check whether --with-libm was given.
25861 if test ${with_libm+y}
25862 then :
25863 withval=$with_libm;
25864 if test "$withval" = no
25865 then LIBM=
25866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
25867 printf "%s\n" "force LIBM empty" >&6; }
25868 elif test "$withval" != yes
25869 then LIBM=$withval
25870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
25871 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
25872 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
25873 fi
25874 else case e in #(
25875 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
25876 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } ;;
25877 esac
25878 fi
25879
25880
25881 # check for --with-libc=...
25882
25883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
25884 printf %s "checking for --with-libc=STRING... " >&6; }
25885
25886 # Check whether --with-libc was given.
25887 if test ${with_libc+y}
25888 then :
25889 withval=$with_libc;
25890 if test "$withval" = no
25891 then LIBC=
25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
25893 printf "%s\n" "force LIBC empty" >&6; }
25894 elif test "$withval" != yes
25895 then LIBC=$withval
25896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
25897 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
25898 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
25899 fi
25900 else case e in #(
25901 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
25902 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } ;;
25903 esac
25904 fi
25905
25906
25907 # **************************************
25908 # * Check for gcc x64 inline assembler *
25909 # **************************************
25910
25911
25912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
25913 printf %s "checking for x64 gcc inline assembler... " >&6; }
25914 if test ${ac_cv_gcc_asm_for_x64+y}
25915 then :
25916 printf %s "(cached) " >&6
25917 else case e in #(
25918 e)
25919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h. */
25921
25922 int
25923 main (void)
25924 {
25925
25926 __asm__ __volatile__ ("movq %rcx, %rax");
25927
25928 ;
25929 return 0;
25930 }
25931 _ACEOF
25932 if ac_fn_c_try_link "$LINENO"
25933 then :
25934 ac_cv_gcc_asm_for_x64=yes
25935 else case e in #(
25936 e) ac_cv_gcc_asm_for_x64=no ;;
25937 esac
25938 fi
25939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25940 conftest$ac_exeext conftest.$ac_ext
25941 ;;
25942 esac
25943 fi
25944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
25945 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
25946
25947 if test "x$ac_cv_gcc_asm_for_x64" = xyes
25948 then :
25949
25950
25951 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
25952
25953
25954 fi
25955
25956 # **************************************************
25957 # * Check for various properties of floating point *
25958 # **************************************************
25959
25960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
25961 printf %s "checking whether float word ordering is bigendian... " >&6; }
25962 if test ${ax_cv_c_float_words_bigendian+y}
25963 then :
25964 printf %s "(cached) " >&6
25965 else case e in #(
25966 e)
25967
25968 ax_cv_c_float_words_bigendian=unknown
25969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25970 /* end confdefs.h. */
25971
25972
25973 #include <stdlib.h>
25974
25975 static double m[] = {9.090423496703681e+223, 0.0};
25976
25977 int main (int argc, char *argv[])
25978 {
25979 m[atoi (argv[1])] += atof (argv[2]);
25980 return m[atoi (argv[3])] > 0.0;
25981 }
25982
25983
25984 _ACEOF
25985 if ac_fn_c_try_link "$LINENO"
25986 then :
25987
25988
25989 if grep noonsees conftest* > /dev/null ; then
25990 ax_cv_c_float_words_bigendian=yes
25991 fi
25992 if grep seesnoon conftest* >/dev/null ; then
25993 if test "$ax_cv_c_float_words_bigendian" = unknown; then
25994 ax_cv_c_float_words_bigendian=no
25995 else
25996 ax_cv_c_float_words_bigendian=unknown
25997 fi
25998 fi
25999
26000
26001 fi
26002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26003 conftest$ac_exeext conftest.$ac_ext ;;
26004 esac
26005 fi
26006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
26007 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
26008
26009 case $ax_cv_c_float_words_bigendian in
26010 yes)
26011
26012 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
26013 ;;
26014 no)
26015
26016 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
26017 ;;
26018 *)
26019 case $host_cpu in #(
26020 *arm*) :
26021 # Some ARM platforms use a mixed-endian representation for
26022 # doubles. While Python doesn't currently have full support
26023 # for these platforms (see e.g., issue 1762561), we can at
26024 # least make sure that float <-> string conversions work.
26025 # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case,
26026 # but if it's not big or little, then it must be this?
26027
26028 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
26029 ;; #(
26030 *) :
26031 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 ;;
26032 esac ;;
26033 esac
26034
26035
26036
26037 # The short float repr introduced in Python 3.1 requires the
26038 # correctly-rounded string <-> double conversion functions from
26039 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
26040 # rounding; this is a problem on x86, where the x87 FPU has a default
26041 # rounding precision of 64 bits. For gcc/x86, we can fix this by
26042 # using inline assembler to get and set the x87 FPU control word.
26043
26044 # This inline assembler syntax may also work for suncc and icc,
26045 # so we try it on all platforms.
26046
26047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
26048 printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
26049 if test ${ac_cv_gcc_asm_for_x87+y}
26050 then :
26051 printf %s "(cached) " >&6
26052 else case e in #(
26053 e)
26054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h. */
26056
26057 int
26058 main (void)
26059 {
26060
26061 unsigned short cw;
26062 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
26063 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
26064
26065 ;
26066 return 0;
26067 }
26068 _ACEOF
26069 if ac_fn_c_try_link "$LINENO"
26070 then :
26071 ac_cv_gcc_asm_for_x87=yes
26072 else case e in #(
26073 e) ac_cv_gcc_asm_for_x87=no ;;
26074 esac
26075 fi
26076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26077 conftest$ac_exeext conftest.$ac_ext
26078 ;;
26079 esac
26080 fi
26081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
26082 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
26083 if test "x$ac_cv_gcc_asm_for_x87" = xyes
26084 then :
26085
26086
26087 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
26088
26089
26090 fi
26091
26092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
26093 printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
26094 if test ${ac_cv_gcc_asm_for_mc68881+y}
26095 then :
26096 printf %s "(cached) " >&6
26097 else case e in #(
26098 e)
26099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26100 /* end confdefs.h. */
26101
26102 int
26103 main (void)
26104 {
26105
26106 unsigned int fpcr;
26107 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=dm" (fpcr));
26108 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "dm" (fpcr));
26109
26110 ;
26111 return 0;
26112 }
26113 _ACEOF
26114 if ac_fn_c_try_link "$LINENO"
26115 then :
26116 ac_cv_gcc_asm_for_mc68881=yes
26117 else case e in #(
26118 e) ac_cv_gcc_asm_for_mc68881=no ;;
26119 esac
26120 fi
26121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26122 conftest$ac_exeext conftest.$ac_ext
26123 ;;
26124 esac
26125 fi
26126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
26127 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
26128 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
26129 then :
26130
26131
26132 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
26133
26134
26135 fi
26136
26137 # Detect whether system arithmetic is subject to x87-style double
26138 # rounding issues. The result of this test has little meaning on non
26139 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
26140 # mode is round-to-nearest and double rounding issues are present, and
26141 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
26142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
26143 printf %s "checking for x87-style double rounding... " >&6; }
26144 if test ${ac_cv_x87_double_rounding+y}
26145 then :
26146 printf %s "(cached) " >&6
26147 else case e in #(
26148 e)
26149 # $BASECFLAGS may affect the result
26150 ac_save_cc="$CC"
26151 CC="$CC $BASECFLAGS"
26152 if test "$cross_compiling" = yes
26153 then :
26154 ac_cv_x87_double_rounding=no
26155 else case e in #(
26156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26157 /* end confdefs.h. */
26158
26159 #include <stdlib.h>
26160 #include <math.h>
26161 int main(void) {
26162 volatile double x, y, z;
26163 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
26164 x = 0.99999999999999989; /* 1-2**-53 */
26165 y = 1./x;
26166 if (y != 1.)
26167 exit(0);
26168 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
26169 x = 1e16;
26170 y = 2.99999;
26171 z = x + y;
26172 if (z != 1e16+4.)
26173 exit(0);
26174 /* both tests show evidence of double rounding */
26175 exit(1);
26176 }
26177
26178 _ACEOF
26179 if ac_fn_c_try_run "$LINENO"
26180 then :
26181 ac_cv_x87_double_rounding=no
26182 else case e in #(
26183 e) ac_cv_x87_double_rounding=yes ;;
26184 esac
26185 fi
26186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26187 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26188 esac
26189 fi
26190
26191 CC="$ac_save_cc"
26192 ;;
26193 esac
26194 fi
26195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
26196 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
26197
26198 if test "x$ac_cv_x87_double_rounding" = xyes
26199 then :
26200
26201
26202 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
26203
26204
26205 fi
26206
26207 # ************************************
26208 # * Check for mathematical functions *
26209 # ************************************
26210
26211 LIBS_SAVE=$LIBS
26212 LIBS="$LIBS $LIBM"
26213
26214
26215 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2
26216 do :
26217 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
26218 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26219 if eval test \"x\$"$as_ac_var"\" = x"yes"
26220 then :
26221 cat >>confdefs.h <<_ACEOF
26222 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
26223 _ACEOF
26224
26225 else case e in #(
26226 e) as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5
26227 ;;
26228 esac
26229 fi
26230
26231 done
26232 LIBS=$LIBS_SAVE
26233
26234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
26235 printf %s "checking whether POSIX semaphores are enabled... " >&6; }
26236 if test ${ac_cv_posix_semaphores_enabled+y}
26237 then :
26238 printf %s "(cached) " >&6
26239 else case e in #(
26240 e) if test "$cross_compiling" = yes
26241 then :
26242 ac_cv_posix_semaphores_enabled=yes
26243 else case e in #(
26244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h. */
26246
26247
26248 #include <unistd.h>
26249 #include <fcntl.h>
26250 #include <stdio.h>
26251 #include <semaphore.h>
26252 #include <sys/stat.h>
26253
26254 int main(void) {
26255 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
26256 if (a == SEM_FAILED) {
26257 perror("sem_open");
26258 return 1;
26259 }
26260 sem_close(a);
26261 sem_unlink("/autoconf");
26262 return 0;
26263 }
26264
26265
26266 _ACEOF
26267 if ac_fn_c_try_run "$LINENO"
26268 then :
26269 ac_cv_posix_semaphores_enabled=yes
26270 else case e in #(
26271 e) ac_cv_posix_semaphores_enabled=no ;;
26272 esac
26273 fi
26274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26275 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26276 esac
26277 fi
26278
26279 ;;
26280 esac
26281 fi
26282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
26283 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
26284 if test "x$ac_cv_posix_semaphores_enabled" = xno
26285 then :
26286
26287
26288 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
26289
26290
26291 fi
26292
26293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
26294 printf %s "checking for broken sem_getvalue... " >&6; }
26295 if test ${ac_cv_broken_sem_getvalue+y}
26296 then :
26297 printf %s "(cached) " >&6
26298 else case e in #(
26299 e) if test "$cross_compiling" = yes
26300 then :
26301 ac_cv_broken_sem_getvalue=yes
26302 else case e in #(
26303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26304 /* end confdefs.h. */
26305
26306
26307 #include <unistd.h>
26308 #include <fcntl.h>
26309 #include <stdio.h>
26310 #include <semaphore.h>
26311 #include <sys/stat.h>
26312
26313 int main(void){
26314 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
26315 int count;
26316 int res;
26317 if(a==SEM_FAILED){
26318 perror("sem_open");
26319 return 1;
26320
26321 }
26322 res = sem_getvalue(a, &count);
26323 sem_close(a);
26324 sem_unlink("/autocftw");
26325 return res==-1 ? 1 : 0;
26326 }
26327
26328
26329 _ACEOF
26330 if ac_fn_c_try_run "$LINENO"
26331 then :
26332 ac_cv_broken_sem_getvalue=no
26333 else case e in #(
26334 e) ac_cv_broken_sem_getvalue=yes ;;
26335 esac
26336 fi
26337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26338 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26339 esac
26340 fi
26341
26342 ;;
26343 esac
26344 fi
26345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
26346 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
26347 if test "x$ac_cv_broken_sem_getvalue" = xyes
26348 then :
26349
26350
26351 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
26352
26353
26354 fi
26355
26356 ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
26357 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26358 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
26359 then :
26360 ac_have_decl=1
26361 else case e in #(
26362 e) ac_have_decl=0 ;;
26363 esac
26364 fi
26365 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
26366 ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
26367 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26368 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
26369 then :
26370 ac_have_decl=1
26371 else case e in #(
26372 e) ac_have_decl=0 ;;
26373 esac
26374 fi
26375 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
26376 ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
26377 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26378 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
26379 then :
26380 ac_have_decl=1
26381 else case e in #(
26382 e) ac_have_decl=0 ;;
26383 esac
26384 fi
26385 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
26386 ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
26387 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26388 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
26389 then :
26390 ac_have_decl=1
26391 else case e in #(
26392 e) ac_have_decl=0 ;;
26393 esac
26394 fi
26395 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
26396 ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
26397 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26398 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
26399 then :
26400 ac_have_decl=1
26401 else case e in #(
26402 e) ac_have_decl=0 ;;
26403 esac
26404 fi
26405 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
26406 ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
26407 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26408 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
26409 then :
26410 ac_have_decl=1
26411 else case e in #(
26412 e) ac_have_decl=0 ;;
26413 esac
26414 fi
26415 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
26416 ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
26417 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26418 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
26419 then :
26420 ac_have_decl=1
26421 else case e in #(
26422 e) ac_have_decl=0 ;;
26423 esac
26424 fi
26425 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
26426 ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
26427 " "$ac_c_undeclared_builtin_options" "CFLAGS"
26428 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
26429 then :
26430 ac_have_decl=1
26431 else case e in #(
26432 e) ac_have_decl=0 ;;
26433 esac
26434 fi
26435 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
26436
26437
26438 # determine what size digit to use for Python's longs
26439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
26440 printf %s "checking digit size for Python's longs... " >&6; }
26441 # Check whether --enable-big-digits was given.
26442 if test ${enable_big_digits+y}
26443 then :
26444 enableval=$enable_big_digits; case $enable_big_digits in
26445 yes)
26446 enable_big_digits=30 ;;
26447 no)
26448 enable_big_digits=15 ;;
26449 15|30)
26450 ;;
26451 *)
26452 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
26453 esac
26454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
26455 printf "%s\n" "$enable_big_digits" >&6; }
26456
26457 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
26458
26459
26460 else case e in #(
26461 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
26462 printf "%s\n" "no value specified" >&6; } ;;
26463 esac
26464 fi
26465
26466
26467 # check for wchar.h
26468 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
26469 if test "x$ac_cv_header_wchar_h" = xyes
26470 then :
26471
26472
26473 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
26474
26475 wchar_h="yes"
26476
26477 else case e in #(
26478 e) wchar_h="no"
26479 ;;
26480 esac
26481 fi
26482
26483
26484 # determine wchar_t size
26485 if test "$wchar_h" = yes
26486 then
26487 # The cast to long int works around a bug in the HP C Compiler
26488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26489 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
26490 # This bug is HP SR number 8606223364.
26491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
26492 printf %s "checking size of wchar_t... " >&6; }
26493 if test ${ac_cv_sizeof_wchar_t+y}
26494 then :
26495 printf %s "(cached) " >&6
26496 else case e in #(
26497 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
26498 "
26499 then :
26500
26501 else case e in #(
26502 e) if test "$ac_cv_type_wchar_t" = yes; then
26503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
26504 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
26505 as_fn_error 77 "cannot compute sizeof (wchar_t)
26506 See 'config.log' for more details" "$LINENO" 5; }
26507 else
26508 ac_cv_sizeof_wchar_t=0
26509 fi ;;
26510 esac
26511 fi
26512 ;;
26513 esac
26514 fi
26515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
26516 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
26517
26518
26519
26520 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
26521
26522
26523 fi
26524
26525 # check whether wchar_t is signed or not
26526 if test "$wchar_h" = yes
26527 then
26528 # check whether wchar_t is signed or not
26529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
26530 printf %s "checking whether wchar_t is signed... " >&6; }
26531 if test ${ac_cv_wchar_t_signed+y}
26532 then :
26533 printf %s "(cached) " >&6
26534 else case e in #(
26535 e)
26536 if test "$cross_compiling" = yes
26537 then :
26538 ac_cv_wchar_t_signed=yes
26539 else case e in #(
26540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26541 /* end confdefs.h. */
26542
26543 #include <wchar.h>
26544 int main()
26545 {
26546 /* Success: exit code 0 */
26547 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
26548 }
26549
26550 _ACEOF
26551 if ac_fn_c_try_run "$LINENO"
26552 then :
26553 ac_cv_wchar_t_signed=yes
26554 else case e in #(
26555 e) ac_cv_wchar_t_signed=no ;;
26556 esac
26557 fi
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26559 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26560 esac
26561 fi
26562 ;;
26563 esac
26564 fi
26565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
26566 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
26567 fi
26568
26569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
26570 printf %s "checking whether wchar_t is usable... " >&6; }
26571 # wchar_t is only usable if it maps to an unsigned type
26572 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
26573 -a "$ac_cv_wchar_t_signed" = "no"
26574 then
26575
26576 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
26577
26578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26579 printf "%s\n" "yes" >&6; }
26580 else
26581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26582 printf "%s\n" "no" >&6; }
26583 fi
26584
26585 case $ac_sys_system/$ac_sys_release in
26586 SunOS/*)
26587 if test -f /etc/os-release; then
26588 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release)
26589 if test "x$OS_NAME" = "xOracle Solaris"; then
26590 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
26591 # non-Unicode locales is not Unicode and hence cannot be used directly.
26592 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
26593
26594 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
26595
26596 fi
26597 fi
26598 ;;
26599 esac
26600
26601 # check for endianness
26602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26603 printf %s "checking whether byte ordering is bigendian... " >&6; }
26604 if test ${ac_cv_c_bigendian+y}
26605 then :
26606 printf %s "(cached) " >&6
26607 else case e in #(
26608 e) ac_cv_c_bigendian=unknown
26609 # See if we're dealing with a universal compiler.
26610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26611 /* end confdefs.h. */
26612 #ifndef __APPLE_CC__
26613 not a universal capable compiler
26614 #endif
26615 typedef int dummy;
26616
26617 _ACEOF
26618 if ac_fn_c_try_compile "$LINENO"
26619 then :
26620
26621 # Check for potential -arch flags. It is not universal unless
26622 # there are at least two -arch flags with different values.
26623 ac_arch=
26624 ac_prev=
26625 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26626 if test -n "$ac_prev"; then
26627 case $ac_word in
26628 i?86 | x86_64 | ppc | ppc64)
26629 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26630 ac_arch=$ac_word
26631 else
26632 ac_cv_c_bigendian=universal
26633 break
26634 fi
26635 ;;
26636 esac
26637 ac_prev=
26638 elif test "x$ac_word" = "x-arch"; then
26639 ac_prev=arch
26640 fi
26641 done
26642 fi
26643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26644 if test $ac_cv_c_bigendian = unknown; then
26645 # See if sys/param.h defines the BYTE_ORDER macro.
26646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h. */
26648 #include <sys/types.h>
26649 #include <sys/param.h>
26650
26651 int
26652 main (void)
26653 {
26654 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
26655 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
26656 && LITTLE_ENDIAN)
26657 bogus endian macros
26658 #endif
26659
26660 ;
26661 return 0;
26662 }
26663 _ACEOF
26664 if ac_fn_c_try_compile "$LINENO"
26665 then :
26666 # It does; now see whether it defined to BIG_ENDIAN or not.
26667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26668 /* end confdefs.h. */
26669 #include <sys/types.h>
26670 #include <sys/param.h>
26671
26672 int
26673 main (void)
26674 {
26675 #if BYTE_ORDER != BIG_ENDIAN
26676 not big endian
26677 #endif
26678
26679 ;
26680 return 0;
26681 }
26682 _ACEOF
26683 if ac_fn_c_try_compile "$LINENO"
26684 then :
26685 ac_cv_c_bigendian=yes
26686 else case e in #(
26687 e) ac_cv_c_bigendian=no ;;
26688 esac
26689 fi
26690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26691 fi
26692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26693 fi
26694 if test $ac_cv_c_bigendian = unknown; then
26695 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26697 /* end confdefs.h. */
26698 #include <limits.h>
26699
26700 int
26701 main (void)
26702 {
26703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26704 bogus endian macros
26705 #endif
26706
26707 ;
26708 return 0;
26709 }
26710 _ACEOF
26711 if ac_fn_c_try_compile "$LINENO"
26712 then :
26713 # It does; now see whether it defined to _BIG_ENDIAN or not.
26714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26715 /* end confdefs.h. */
26716 #include <limits.h>
26717
26718 int
26719 main (void)
26720 {
26721 #ifndef _BIG_ENDIAN
26722 not big endian
26723 #endif
26724
26725 ;
26726 return 0;
26727 }
26728 _ACEOF
26729 if ac_fn_c_try_compile "$LINENO"
26730 then :
26731 ac_cv_c_bigendian=yes
26732 else case e in #(
26733 e) ac_cv_c_bigendian=no ;;
26734 esac
26735 fi
26736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26737 fi
26738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26739 fi
26740 if test $ac_cv_c_bigendian = unknown; then
26741 # Compile a test program.
26742 if test "$cross_compiling" = yes
26743 then :
26744 # Try to guess by grepping values from an object file.
26745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746 /* end confdefs.h. */
26747 unsigned short int ascii_mm[] =
26748 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26749 unsigned short int ascii_ii[] =
26750 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26751 int use_ascii (int i) {
26752 return ascii_mm[i] + ascii_ii[i];
26753 }
26754 unsigned short int ebcdic_ii[] =
26755 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26756 unsigned short int ebcdic_mm[] =
26757 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26758 int use_ebcdic (int i) {
26759 return ebcdic_mm[i] + ebcdic_ii[i];
26760 }
26761 int
26762 main (int argc, char **argv)
26763 {
26764 /* Intimidate the compiler so that it does not
26765 optimize the arrays away. */
26766 char *p = argv[0];
26767 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
26768 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
26769 return use_ascii (argc) == use_ebcdic (*p);
26770 }
26771 _ACEOF
26772 if ac_fn_c_try_link "$LINENO"
26773 then :
26774 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
26775 ac_cv_c_bigendian=yes
26776 fi
26777 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
26778 if test "$ac_cv_c_bigendian" = unknown; then
26779 ac_cv_c_bigendian=no
26780 else
26781 # finding both strings is unlikely to happen, but who knows?
26782 ac_cv_c_bigendian=unknown
26783 fi
26784 fi
26785 fi
26786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26787 conftest$ac_exeext conftest.$ac_ext
26788 else case e in #(
26789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790 /* end confdefs.h. */
26791 $ac_includes_default
26792 int
26793 main (void)
26794 {
26795
26796 /* Are we little or big endian? From Harbison&Steele. */
26797 union
26798 {
26799 long int l;
26800 char c[sizeof (long int)];
26801 } u;
26802 u.l = 1;
26803 return u.c[sizeof (long int) - 1] == 1;
26804
26805 ;
26806 return 0;
26807 }
26808 _ACEOF
26809 if ac_fn_c_try_run "$LINENO"
26810 then :
26811 ac_cv_c_bigendian=no
26812 else case e in #(
26813 e) ac_cv_c_bigendian=yes ;;
26814 esac
26815 fi
26816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26817 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
26818 esac
26819 fi
26820
26821 fi ;;
26822 esac
26823 fi
26824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26825 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
26826 case $ac_cv_c_bigendian in #(
26827 yes)
26828 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
26829 ;; #(
26830 no)
26831 ;; #(
26832 universal)
26833
26834 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26835
26836 ;; #(
26837 *)
26838 as_fn_error $? "unknown endianness
26839 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26840 esac
26841
26842
26843 # ABI version string for Python extension modules. This appears between the
26844 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
26845 # from the following attributes which affect the ABI of this Python build (in
26846 # this order):
26847 #
26848 # * The Python implementation (always 'cpython-' for us)
26849 # * The major and minor version numbers
26850 # * --disable-gil (adds a 't')
26851 # * --with-pydebug (adds a 'd')
26852 #
26853 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
26854 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
26855 # libraries would be named 'foo.cpython-32dmu.so'.
26856 #
26857 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
26858 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
26859
26860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
26861 printf %s "checking ABIFLAGS... " >&6; }
26862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
26863 printf "%s\n" "$ABIFLAGS" >&6; }
26864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
26865 printf %s "checking SOABI... " >&6; }
26866 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
26867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
26868 printf "%s\n" "$SOABI" >&6; }
26869
26870 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
26871 # are ABI compatible
26872 if test "$Py_DEBUG" = 'true'; then
26873 # Similar to SOABI but remove "d" flag from ABIFLAGS
26874
26875 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
26876
26877 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
26878
26879 fi
26880
26881
26882 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
26883
26884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
26885 printf %s "checking LDVERSION... " >&6; }
26886 LDVERSION='$(VERSION)$(ABIFLAGS)'
26887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
26888 printf "%s\n" "$LDVERSION" >&6; }
26889
26890 # Configure the flags and dependencies used when compiling shared modules.
26891 # Do not rename LIBPYTHON - it's accessed via sysconfig by package build
26892 # systems (e.g. Meson) to decide whether to link extension modules against
26893 # libpython.
26894
26895
26896 MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
26897 LIBPYTHON=''
26898
26899 # On Android and Cygwin the shared libraries must be linked with libpython.
26900 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then
26901 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
26902 LIBPYTHON="\$(BLDLIBRARY)"
26903 fi
26904
26905 # On iOS the shared libraries must be linked with the Python framework
26906 if test "$ac_sys_system" = "iOS"; then
26907 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
26908 fi
26909
26910
26911
26912 BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)'
26913
26914
26915 # Check for --with-platlibdir
26916 # /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD)
26917
26918 PLATLIBDIR="lib"
26919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
26920 printf %s "checking for --with-platlibdir... " >&6; }
26921
26922 # Check whether --with-platlibdir was given.
26923 if test ${with_platlibdir+y}
26924 then :
26925 withval=$with_platlibdir;
26926 # ignore 3 options:
26927 # --with-platlibdir
26928 # --with-platlibdir=
26929 # --without-platlibdir
26930 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
26931 then
26932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26933 printf "%s\n" "yes" >&6; }
26934 PLATLIBDIR="$withval"
26935 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)'
26936 else
26937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26938 printf "%s\n" "no" >&6; }
26939 fi
26940 else case e in #(
26941 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26942 printf "%s\n" "no" >&6; } ;;
26943 esac
26944 fi
26945
26946
26947
26948
26949 if test x$PLATFORM_TRIPLET = x; then
26950 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}"
26951 else
26952 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
26953 fi
26954
26955
26956 # Check for --with-wheel-pkg-dir=PATH
26957
26958 WHEEL_PKG_DIR=""
26959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
26960 printf %s "checking for --with-wheel-pkg-dir... " >&6; }
26961
26962 # Check whether --with-wheel-pkg-dir was given.
26963 if test ${with_wheel_pkg_dir+y}
26964 then :
26965 withval=$with_wheel_pkg_dir;
26966 if test -n "$withval"; then
26967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968 printf "%s\n" "yes" >&6; }
26969 WHEEL_PKG_DIR="$withval"
26970 else
26971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26972 printf "%s\n" "no" >&6; }
26973 fi
26974 else case e in #(
26975 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976 printf "%s\n" "no" >&6; } ;;
26977 esac
26978 fi
26979
26980
26981 # Check whether right shifting a negative integer extends the sign bit
26982 # or fills with zeros (like the Cray J90, according to Tim Peters).
26983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
26984 printf %s "checking whether right shift extends the sign bit... " >&6; }
26985 if test ${ac_cv_rshift_extends_sign+y}
26986 then :
26987 printf %s "(cached) " >&6
26988 else case e in #(
26989 e)
26990 if test "$cross_compiling" = yes
26991 then :
26992 ac_cv_rshift_extends_sign=yes
26993 else case e in #(
26994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h. */
26996
26997 int main(void)
26998 {
26999 return (((-1)>>3 == -1) ? 0 : 1);
27000 }
27001
27002 _ACEOF
27003 if ac_fn_c_try_run "$LINENO"
27004 then :
27005 ac_cv_rshift_extends_sign=yes
27006 else case e in #(
27007 e) ac_cv_rshift_extends_sign=no ;;
27008 esac
27009 fi
27010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27011 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
27012 esac
27013 fi
27014 ;;
27015 esac
27016 fi
27017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
27018 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
27019 if test "$ac_cv_rshift_extends_sign" = no
27020 then
27021
27022 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
27023
27024 fi
27025
27026 # check for getc_unlocked and related locking functions
27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
27028 printf %s "checking for getc_unlocked() and friends... " >&6; }
27029 if test ${ac_cv_have_getc_unlocked+y}
27030 then :
27031 printf %s "(cached) " >&6
27032 else case e in #(
27033 e)
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h. */
27036 #include <stdio.h>
27037 int
27038 main (void)
27039 {
27040
27041 FILE *f = fopen("/dev/null", "r");
27042 flockfile(f);
27043 getc_unlocked(f);
27044 funlockfile(f);
27045
27046 ;
27047 return 0;
27048 }
27049 _ACEOF
27050 if ac_fn_c_try_link "$LINENO"
27051 then :
27052 ac_cv_have_getc_unlocked=yes
27053 else case e in #(
27054 e) ac_cv_have_getc_unlocked=no ;;
27055 esac
27056 fi
27057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27058 conftest$ac_exeext conftest.$ac_ext ;;
27059 esac
27060 fi
27061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
27062 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
27063 if test "$ac_cv_have_getc_unlocked" = yes
27064 then
27065
27066 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
27067
27068 fi
27069
27070
27071
27072
27073
27074 # Check whether --with-readline was given.
27075 if test ${with_readline+y}
27076 then :
27077 withval=$with_readline;
27078 case $with_readline in #(
27079 editline|edit) :
27080 with_readline=edit ;; #(
27081 yes|readline) :
27082 with_readline=readline ;; #(
27083 no) :
27084 ;; #(
27085 *) :
27086 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
27087 ;;
27088 esac
27089
27090 else case e in #(
27091 e) with_readline=readline
27092 ;;
27093 esac
27094 fi
27095
27096
27097 if test "x$with_readline" = xreadline
27098 then :
27099
27100
27101 pkg_failed=no
27102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
27103 printf %s "checking for readline... " >&6; }
27104
27105 if test -n "$LIBREADLINE_CFLAGS"; then
27106 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS"
27107 elif test -n "$PKG_CONFIG"; then
27108 if test -n "$PKG_CONFIG" && \
27109 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
27110 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
27111 ac_status=$?
27112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27113 test $ac_status = 0; }; then
27114 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
27115 test "x$?" != "x0" && pkg_failed=yes
27116 else
27117 pkg_failed=yes
27118 fi
27119 else
27120 pkg_failed=untried
27121 fi
27122 if test -n "$LIBREADLINE_LIBS"; then
27123 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS"
27124 elif test -n "$PKG_CONFIG"; then
27125 if test -n "$PKG_CONFIG" && \
27126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
27127 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
27128 ac_status=$?
27129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; then
27131 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
27132 test "x$?" != "x0" && pkg_failed=yes
27133 else
27134 pkg_failed=yes
27135 fi
27136 else
27137 pkg_failed=untried
27138 fi
27139
27140
27141
27142 if test $pkg_failed = yes; then
27143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27144 printf "%s\n" "no" >&6; }
27145
27146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27147 _pkg_short_errors_supported=yes
27148 else
27149 _pkg_short_errors_supported=no
27150 fi
27151 if test $_pkg_short_errors_supported = yes; then
27152 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
27153 else
27154 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
27155 fi
27156 # Put the nasty error message in config.log where it belongs
27157 echo "$LIBREADLINE_PKG_ERRORS" >&5
27158
27159
27160 save_CFLAGS=$CFLAGS
27161 save_CPPFLAGS=$CPPFLAGS
27162 save_LDFLAGS=$LDFLAGS
27163 save_LIBS=$LIBS
27164
27165
27166 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
27167 LIBS="$LIBS $LIBREADLINE_LIBS"
27168 for ac_header in readline/readline.h
27169 do :
27170 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27171 if test "x$ac_cv_header_readline_readline_h" = xyes
27172 then :
27173 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
27174
27175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
27176 printf %s "checking for readline in -lreadline... " >&6; }
27177 if test ${ac_cv_lib_readline_readline+y}
27178 then :
27179 printf %s "(cached) " >&6
27180 else case e in #(
27181 e) ac_check_lib_save_LIBS=$LIBS
27182 LIBS="-lreadline $LIBS"
27183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27184 /* end confdefs.h. */
27185
27186 /* Override any GCC internal prototype to avoid an error.
27187 Use char because int might match the return type of a GCC
27188 builtin and then its argument prototype would still apply.
27189 The 'extern "C"' is for builds by C++ compilers;
27190 although this is not generally supported in C code supporting it here
27191 has little cost and some practical benefit (sr 110532). */
27192 #ifdef __cplusplus
27193 extern "C"
27194 #endif
27195 char readline (void);
27196 int
27197 main (void)
27198 {
27199 return readline ();
27200 ;
27201 return 0;
27202 }
27203 _ACEOF
27204 if ac_fn_c_try_link "$LINENO"
27205 then :
27206 ac_cv_lib_readline_readline=yes
27207 else case e in #(
27208 e) ac_cv_lib_readline_readline=no ;;
27209 esac
27210 fi
27211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27212 conftest$ac_exeext conftest.$ac_ext
27213 LIBS=$ac_check_lib_save_LIBS ;;
27214 esac
27215 fi
27216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
27217 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
27218 if test "x$ac_cv_lib_readline_readline" = xyes
27219 then :
27220
27221 LIBREADLINE=readline
27222 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
27223 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
27224
27225 else case e in #(
27226 e) with_readline=no ;;
27227 esac
27228 fi
27229
27230
27231 else case e in #(
27232 e) with_readline=no ;;
27233 esac
27234 fi
27235
27236 done
27237
27238 CFLAGS=$save_CFLAGS
27239 CPPFLAGS=$save_CPPFLAGS
27240 LDFLAGS=$save_LDFLAGS
27241 LIBS=$save_LIBS
27242
27243
27244
27245 elif test $pkg_failed = untried; then
27246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27247 printf "%s\n" "no" >&6; }
27248
27249 save_CFLAGS=$CFLAGS
27250 save_CPPFLAGS=$CPPFLAGS
27251 save_LDFLAGS=$LDFLAGS
27252 save_LIBS=$LIBS
27253
27254
27255 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS"
27256 LIBS="$LIBS $LIBREADLINE_LIBS"
27257 for ac_header in readline/readline.h
27258 do :
27259 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27260 if test "x$ac_cv_header_readline_readline_h" = xyes
27261 then :
27262 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
27263
27264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
27265 printf %s "checking for readline in -lreadline... " >&6; }
27266 if test ${ac_cv_lib_readline_readline+y}
27267 then :
27268 printf %s "(cached) " >&6
27269 else case e in #(
27270 e) ac_check_lib_save_LIBS=$LIBS
27271 LIBS="-lreadline $LIBS"
27272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27273 /* end confdefs.h. */
27274
27275 /* Override any GCC internal prototype to avoid an error.
27276 Use char because int might match the return type of a GCC
27277 builtin and then its argument prototype would still apply.
27278 The 'extern "C"' is for builds by C++ compilers;
27279 although this is not generally supported in C code supporting it here
27280 has little cost and some practical benefit (sr 110532). */
27281 #ifdef __cplusplus
27282 extern "C"
27283 #endif
27284 char readline (void);
27285 int
27286 main (void)
27287 {
27288 return readline ();
27289 ;
27290 return 0;
27291 }
27292 _ACEOF
27293 if ac_fn_c_try_link "$LINENO"
27294 then :
27295 ac_cv_lib_readline_readline=yes
27296 else case e in #(
27297 e) ac_cv_lib_readline_readline=no ;;
27298 esac
27299 fi
27300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27301 conftest$ac_exeext conftest.$ac_ext
27302 LIBS=$ac_check_lib_save_LIBS ;;
27303 esac
27304 fi
27305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
27306 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
27307 if test "x$ac_cv_lib_readline_readline" = xyes
27308 then :
27309
27310 LIBREADLINE=readline
27311 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""}
27312 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"}
27313
27314 else case e in #(
27315 e) with_readline=no ;;
27316 esac
27317 fi
27318
27319
27320 else case e in #(
27321 e) with_readline=no ;;
27322 esac
27323 fi
27324
27325 done
27326
27327 CFLAGS=$save_CFLAGS
27328 CPPFLAGS=$save_CPPFLAGS
27329 LDFLAGS=$save_LDFLAGS
27330 LIBS=$save_LIBS
27331
27332
27333
27334 else
27335 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS
27336 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS
27337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27338 printf "%s\n" "yes" >&6; }
27339
27340 LIBREADLINE=readline
27341 READLINE_CFLAGS=$LIBREADLINE_CFLAGS
27342 READLINE_LIBS=$LIBREADLINE_LIBS
27343
27344 fi
27345
27346 fi
27347
27348 if test "x$with_readline" = xedit
27349 then :
27350
27351
27352 pkg_failed=no
27353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
27354 printf %s "checking for libedit... " >&6; }
27355
27356 if test -n "$LIBEDIT_CFLAGS"; then
27357 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
27358 elif test -n "$PKG_CONFIG"; then
27359 if test -n "$PKG_CONFIG" && \
27360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
27361 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
27362 ac_status=$?
27363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; then
27365 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
27366 test "x$?" != "x0" && pkg_failed=yes
27367 else
27368 pkg_failed=yes
27369 fi
27370 else
27371 pkg_failed=untried
27372 fi
27373 if test -n "$LIBEDIT_LIBS"; then
27374 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
27375 elif test -n "$PKG_CONFIG"; then
27376 if test -n "$PKG_CONFIG" && \
27377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
27378 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
27379 ac_status=$?
27380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381 test $ac_status = 0; }; then
27382 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
27383 test "x$?" != "x0" && pkg_failed=yes
27384 else
27385 pkg_failed=yes
27386 fi
27387 else
27388 pkg_failed=untried
27389 fi
27390
27391
27392
27393 if test $pkg_failed = yes; then
27394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27395 printf "%s\n" "no" >&6; }
27396
27397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27398 _pkg_short_errors_supported=yes
27399 else
27400 _pkg_short_errors_supported=no
27401 fi
27402 if test $_pkg_short_errors_supported = yes; then
27403 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
27404 else
27405 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
27406 fi
27407 # Put the nasty error message in config.log where it belongs
27408 echo "$LIBEDIT_PKG_ERRORS" >&5
27409
27410
27411 save_CFLAGS=$CFLAGS
27412 save_CPPFLAGS=$CPPFLAGS
27413 save_LDFLAGS=$LDFLAGS
27414 save_LIBS=$LIBS
27415
27416
27417 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
27418 LIBS="$LIBS $LIBEDIT_LIBS"
27419 for ac_header in editline/readline.h
27420 do :
27421 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
27422 if test "x$ac_cv_header_editline_readline_h" = xyes
27423 then :
27424 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
27425
27426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
27427 printf %s "checking for readline in -ledit... " >&6; }
27428 if test ${ac_cv_lib_edit_readline+y}
27429 then :
27430 printf %s "(cached) " >&6
27431 else case e in #(
27432 e) ac_check_lib_save_LIBS=$LIBS
27433 LIBS="-ledit $LIBS"
27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h. */
27436
27437 /* Override any GCC internal prototype to avoid an error.
27438 Use char because int might match the return type of a GCC
27439 builtin and then its argument prototype would still apply.
27440 The 'extern "C"' is for builds by C++ compilers;
27441 although this is not generally supported in C code supporting it here
27442 has little cost and some practical benefit (sr 110532). */
27443 #ifdef __cplusplus
27444 extern "C"
27445 #endif
27446 char readline (void);
27447 int
27448 main (void)
27449 {
27450 return readline ();
27451 ;
27452 return 0;
27453 }
27454 _ACEOF
27455 if ac_fn_c_try_link "$LINENO"
27456 then :
27457 ac_cv_lib_edit_readline=yes
27458 else case e in #(
27459 e) ac_cv_lib_edit_readline=no ;;
27460 esac
27461 fi
27462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27463 conftest$ac_exeext conftest.$ac_ext
27464 LIBS=$ac_check_lib_save_LIBS ;;
27465 esac
27466 fi
27467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
27468 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
27469 if test "x$ac_cv_lib_edit_readline" = xyes
27470 then :
27471
27472 LIBREADLINE=edit
27473 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27474
27475 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
27476 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
27477
27478 else case e in #(
27479 e) with_readline=no ;;
27480 esac
27481 fi
27482
27483
27484 else case e in #(
27485 e) with_readline=no ;;
27486 esac
27487 fi
27488
27489 done
27490
27491 CFLAGS=$save_CFLAGS
27492 CPPFLAGS=$save_CPPFLAGS
27493 LDFLAGS=$save_LDFLAGS
27494 LIBS=$save_LIBS
27495
27496
27497
27498 elif test $pkg_failed = untried; then
27499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27500 printf "%s\n" "no" >&6; }
27501
27502 save_CFLAGS=$CFLAGS
27503 save_CPPFLAGS=$CPPFLAGS
27504 save_LDFLAGS=$LDFLAGS
27505 save_LIBS=$LIBS
27506
27507
27508 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS"
27509 LIBS="$LIBS $LIBEDIT_LIBS"
27510 for ac_header in editline/readline.h
27511 do :
27512 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
27513 if test "x$ac_cv_header_editline_readline_h" = xyes
27514 then :
27515 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
27516
27517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
27518 printf %s "checking for readline in -ledit... " >&6; }
27519 if test ${ac_cv_lib_edit_readline+y}
27520 then :
27521 printf %s "(cached) " >&6
27522 else case e in #(
27523 e) ac_check_lib_save_LIBS=$LIBS
27524 LIBS="-ledit $LIBS"
27525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27526 /* end confdefs.h. */
27527
27528 /* Override any GCC internal prototype to avoid an error.
27529 Use char because int might match the return type of a GCC
27530 builtin and then its argument prototype would still apply.
27531 The 'extern "C"' is for builds by C++ compilers;
27532 although this is not generally supported in C code supporting it here
27533 has little cost and some practical benefit (sr 110532). */
27534 #ifdef __cplusplus
27535 extern "C"
27536 #endif
27537 char readline (void);
27538 int
27539 main (void)
27540 {
27541 return readline ();
27542 ;
27543 return 0;
27544 }
27545 _ACEOF
27546 if ac_fn_c_try_link "$LINENO"
27547 then :
27548 ac_cv_lib_edit_readline=yes
27549 else case e in #(
27550 e) ac_cv_lib_edit_readline=no ;;
27551 esac
27552 fi
27553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27554 conftest$ac_exeext conftest.$ac_ext
27555 LIBS=$ac_check_lib_save_LIBS ;;
27556 esac
27557 fi
27558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
27559 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
27560 if test "x$ac_cv_lib_edit_readline" = xyes
27561 then :
27562
27563 LIBREADLINE=edit
27564 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27565
27566 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""}
27567 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"}
27568
27569 else case e in #(
27570 e) with_readline=no ;;
27571 esac
27572 fi
27573
27574
27575 else case e in #(
27576 e) with_readline=no ;;
27577 esac
27578 fi
27579
27580 done
27581
27582 CFLAGS=$save_CFLAGS
27583 CPPFLAGS=$save_CPPFLAGS
27584 LDFLAGS=$save_LDFLAGS
27585 LIBS=$save_LIBS
27586
27587
27588
27589 else
27590 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
27591 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
27592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27593 printf "%s\n" "yes" >&6; }
27594
27595 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
27596
27597 LIBREADLINE=edit
27598 READLINE_CFLAGS=$LIBEDIT_CFLAGS
27599 READLINE_LIBS=$LIBEDIT_LIBS
27600
27601 fi
27602
27603 fi
27604
27605 READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
27606
27607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
27608 printf %s "checking how to link readline... " >&6; }
27609 if test "x$with_readline" = xno
27610 then :
27611
27612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27613 printf "%s\n" "no" >&6; }
27614
27615 else case e in #(
27616 e)
27617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
27618 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
27619
27620 save_CFLAGS=$CFLAGS
27621 save_CPPFLAGS=$CPPFLAGS
27622 save_LDFLAGS=$LDFLAGS
27623 save_LIBS=$LIBS
27624
27625
27626 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
27627 LIBS="$LIBS $READLINE_LIBS"
27628 LIBS_SAVE=$LIBS
27629
27630
27631
27632 # check for readline 2.2
27633 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
27634 #include <stdio.h> /* Must be first for Gnu Readline */
27635 #ifdef WITH_EDITLINE
27636 # include <editline/readline.h>
27637 #else
27638 # include <readline/readline.h>
27639 # include <readline/history.h>
27640 #endif
27641
27642 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27643 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
27644 then :
27645
27646
27647 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
27648
27649
27650 fi
27651
27652 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
27653 #include <stdio.h> /* Must be first for Gnu Readline */
27654 #ifdef WITH_EDITLINE
27655 # include <editline/readline.h>
27656 #else
27657 # include <readline/readline.h>
27658 # include <readline/history.h>
27659 #endif
27660
27661 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27662 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
27663 then :
27664
27665
27666 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
27667
27668
27669 fi
27670
27671 # check for readline 4.0
27672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
27673 printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
27674 if test ${ac_cv_readline_rl_pre_input_hook+y}
27675 then :
27676 printf %s "(cached) " >&6
27677 else case e in #(
27678 e)
27679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27680 /* end confdefs.h. */
27681
27682 #include <stdio.h> /* Must be first for Gnu Readline */
27683 #ifdef WITH_EDITLINE
27684 # include <editline/readline.h>
27685 #else
27686 # include <readline/readline.h>
27687 # include <readline/history.h>
27688 #endif
27689
27690 int
27691 main (void)
27692 {
27693 void *x = rl_pre_input_hook
27694 ;
27695 return 0;
27696 }
27697 _ACEOF
27698 if ac_fn_c_try_link "$LINENO"
27699 then :
27700 ac_cv_readline_rl_pre_input_hook=yes
27701 else case e in #(
27702 e) ac_cv_readline_rl_pre_input_hook=no
27703 ;;
27704 esac
27705 fi
27706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27707 conftest$ac_exeext conftest.$ac_ext
27708 ;;
27709 esac
27710 fi
27711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
27712 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
27713 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
27714 then :
27715
27716
27717 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
27718
27719
27720 fi
27721
27722 # also in 4.0
27723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
27724 printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
27725 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
27726 then :
27727 printf %s "(cached) " >&6
27728 else case e in #(
27729 e)
27730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27731 /* end confdefs.h. */
27732
27733 #include <stdio.h> /* Must be first for Gnu Readline */
27734 #ifdef WITH_EDITLINE
27735 # include <editline/readline.h>
27736 #else
27737 # include <readline/readline.h>
27738 # include <readline/history.h>
27739 #endif
27740
27741 int
27742 main (void)
27743 {
27744 void *x = rl_completion_display_matches_hook
27745 ;
27746 return 0;
27747 }
27748 _ACEOF
27749 if ac_fn_c_try_link "$LINENO"
27750 then :
27751 ac_cv_readline_rl_completion_display_matches_hook=yes
27752 else case e in #(
27753 e) ac_cv_readline_rl_completion_display_matches_hook=no
27754 ;;
27755 esac
27756 fi
27757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27758 conftest$ac_exeext conftest.$ac_ext
27759 ;;
27760 esac
27761 fi
27762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
27763 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
27764 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
27765 then :
27766
27767
27768 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
27769
27770
27771 fi
27772
27773 # also in 4.0, but not in editline
27774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
27775 printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
27776 if test ${ac_cv_readline_rl_resize_terminal+y}
27777 then :
27778 printf %s "(cached) " >&6
27779 else case e in #(
27780 e)
27781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h. */
27783
27784 #include <stdio.h> /* Must be first for Gnu Readline */
27785 #ifdef WITH_EDITLINE
27786 # include <editline/readline.h>
27787 #else
27788 # include <readline/readline.h>
27789 # include <readline/history.h>
27790 #endif
27791
27792 int
27793 main (void)
27794 {
27795 void *x = rl_resize_terminal
27796 ;
27797 return 0;
27798 }
27799 _ACEOF
27800 if ac_fn_c_try_link "$LINENO"
27801 then :
27802 ac_cv_readline_rl_resize_terminal=yes
27803 else case e in #(
27804 e) ac_cv_readline_rl_resize_terminal=no
27805 ;;
27806 esac
27807 fi
27808 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27809 conftest$ac_exeext conftest.$ac_ext
27810 ;;
27811 esac
27812 fi
27813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
27814 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
27815 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
27816 then :
27817
27818
27819 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
27820
27821
27822 fi
27823
27824 # check for readline 4.2
27825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
27826 printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
27827 if test ${ac_cv_readline_rl_completion_matches+y}
27828 then :
27829 printf %s "(cached) " >&6
27830 else case e in #(
27831 e)
27832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833 /* end confdefs.h. */
27834
27835 #include <stdio.h> /* Must be first for Gnu Readline */
27836 #ifdef WITH_EDITLINE
27837 # include <editline/readline.h>
27838 #else
27839 # include <readline/readline.h>
27840 # include <readline/history.h>
27841 #endif
27842
27843 int
27844 main (void)
27845 {
27846 void *x = rl_completion_matches
27847 ;
27848 return 0;
27849 }
27850 _ACEOF
27851 if ac_fn_c_try_link "$LINENO"
27852 then :
27853 ac_cv_readline_rl_completion_matches=yes
27854 else case e in #(
27855 e) ac_cv_readline_rl_completion_matches=no
27856 ;;
27857 esac
27858 fi
27859 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27860 conftest$ac_exeext conftest.$ac_ext
27861 ;;
27862 esac
27863 fi
27864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
27865 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
27866 if test "x$ac_cv_readline_rl_completion_matches" = xyes
27867 then :
27868
27869
27870 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
27871
27872
27873 fi
27874
27875 # also in readline 4.2
27876 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
27877 #include <stdio.h> /* Must be first for Gnu Readline */
27878 #ifdef WITH_EDITLINE
27879 # include <editline/readline.h>
27880 #else
27881 # include <readline/readline.h>
27882 # include <readline/history.h>
27883 #endif
27884
27885 " "$ac_c_undeclared_builtin_options" "CFLAGS"
27886 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
27887 then :
27888
27889
27890 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
27891
27892
27893 fi
27894
27895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
27896 printf %s "checking for append_history in -l$LIBREADLINE... " >&6; }
27897 if test ${ac_cv_readline_append_history+y}
27898 then :
27899 printf %s "(cached) " >&6
27900 else case e in #(
27901 e)
27902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27903 /* end confdefs.h. */
27904
27905 #include <stdio.h> /* Must be first for Gnu Readline */
27906 #ifdef WITH_EDITLINE
27907 # include <editline/readline.h>
27908 #else
27909 # include <readline/readline.h>
27910 # include <readline/history.h>
27911 #endif
27912
27913 int
27914 main (void)
27915 {
27916 void *x = append_history
27917 ;
27918 return 0;
27919 }
27920 _ACEOF
27921 if ac_fn_c_try_link "$LINENO"
27922 then :
27923 ac_cv_readline_append_history=yes
27924 else case e in #(
27925 e) ac_cv_readline_append_history=no
27926 ;;
27927 esac
27928 fi
27929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27930 conftest$ac_exeext conftest.$ac_ext
27931 ;;
27932 esac
27933 fi
27934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
27935 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
27936 if test "x$ac_cv_readline_append_history" = xyes
27937 then :
27938
27939
27940 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
27941
27942
27943 fi
27944
27945 # in readline as well as newer editline (April 2023)
27946 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
27947 #include <stdio.h> /* Must be first for Gnu Readline */
27948 #ifdef WITH_EDITLINE
27949 # include <editline/readline.h>
27950 #else
27951 # include <readline/readline.h>
27952 # include <readline/history.h>
27953 #endif
27954
27955 "
27956 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
27957 then :
27958
27959 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
27960
27961
27962 fi
27963
27964
27965 # Some editline versions declare rl_startup_hook as taking no args, others
27966 # declare it as taking 2.
27967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
27968 printf %s "checking if rl_startup_hook takes arguments... " >&6; }
27969 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
27970 then :
27971 printf %s "(cached) " >&6
27972 else case e in #(
27973 e)
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27976
27977 #include <stdio.h> /* Must be first for Gnu Readline */
27978 #ifdef WITH_EDITLINE
27979 # include <editline/readline.h>
27980 #else
27981 # include <readline/readline.h>
27982 # include <readline/history.h>
27983 #endif
27984
27985 extern int test_hook_func(const char *text, int state);
27986 int
27987 main (void)
27988 {
27989 rl_startup_hook=test_hook_func;
27990 ;
27991 return 0;
27992 }
27993 _ACEOF
27994 if ac_fn_c_try_compile "$LINENO"
27995 then :
27996 ac_cv_readline_rl_startup_hook_takes_args=yes
27997 else case e in #(
27998 e) ac_cv_readline_rl_startup_hook_takes_args=no
27999 ;;
28000 esac
28001 fi
28002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28003 ;;
28004 esac
28005 fi
28006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
28007 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
28008 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
28009 then :
28010
28011
28012 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
28013
28014
28015 fi
28016
28017
28018
28019 CFLAGS=$save_CFLAGS
28020 CPPFLAGS=$save_CPPFLAGS
28021 LDFLAGS=$save_LDFLAGS
28022 LIBS=$save_LIBS
28023
28024 ;;
28025 esac
28026 fi
28027
28028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
28029 printf %s "checking for broken nice()... " >&6; }
28030 if test ${ac_cv_broken_nice+y}
28031 then :
28032 printf %s "(cached) " >&6
28033 else case e in #(
28034 e)
28035 if test "$cross_compiling" = yes
28036 then :
28037 ac_cv_broken_nice=no
28038 else case e in #(
28039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040 /* end confdefs.h. */
28041
28042 #include <stdlib.h>
28043 #include <unistd.h>
28044 int main(void)
28045 {
28046 int val1 = nice(1);
28047 if (val1 != -1 && val1 == nice(2))
28048 exit(0);
28049 exit(1);
28050 }
28051
28052 _ACEOF
28053 if ac_fn_c_try_run "$LINENO"
28054 then :
28055 ac_cv_broken_nice=yes
28056 else case e in #(
28057 e) ac_cv_broken_nice=no ;;
28058 esac
28059 fi
28060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28061 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28062 esac
28063 fi
28064 ;;
28065 esac
28066 fi
28067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
28068 printf "%s\n" "$ac_cv_broken_nice" >&6; }
28069 if test "$ac_cv_broken_nice" = yes
28070 then
28071
28072 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
28073
28074 fi
28075
28076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
28077 printf %s "checking for broken poll()... " >&6; }
28078 if test ${ac_cv_broken_poll+y}
28079 then :
28080 printf %s "(cached) " >&6
28081 else case e in #(
28082 e) if test "$cross_compiling" = yes
28083 then :
28084 ac_cv_broken_poll=no
28085 else case e in #(
28086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28087 /* end confdefs.h. */
28088
28089 #include <poll.h>
28090 #include <unistd.h>
28091
28092 int main(void)
28093 {
28094 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
28095 int poll_test;
28096
28097 close (42);
28098
28099 poll_test = poll(&poll_struct, 1, 0);
28100 if (poll_test < 0)
28101 return 0;
28102 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
28103 return 0;
28104 else
28105 return 1;
28106 }
28107
28108 _ACEOF
28109 if ac_fn_c_try_run "$LINENO"
28110 then :
28111 ac_cv_broken_poll=yes
28112 else case e in #(
28113 e) ac_cv_broken_poll=no ;;
28114 esac
28115 fi
28116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28117 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28118 esac
28119 fi
28120 ;;
28121 esac
28122 fi
28123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
28124 printf "%s\n" "$ac_cv_broken_poll" >&6; }
28125 if test "$ac_cv_broken_poll" = yes
28126 then
28127
28128 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
28129
28130 fi
28131
28132 # check tzset(3) exists and works like we expect it to
28133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
28134 printf %s "checking for working tzset()... " >&6; }
28135 if test ${ac_cv_working_tzset+y}
28136 then :
28137 printf %s "(cached) " >&6
28138 else case e in #(
28139 e)
28140 if test "$cross_compiling" = yes
28141 then :
28142 ac_cv_working_tzset=no
28143 else case e in #(
28144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28145 /* end confdefs.h. */
28146
28147 #include <stdlib.h>
28148 #include <time.h>
28149 #include <string.h>
28150
28151 #if HAVE_TZNAME
28152 extern char *tzname[];
28153 #endif
28154
28155 int main(void)
28156 {
28157 /* Note that we need to ensure that not only does tzset(3)
28158 do 'something' with localtime, but it works as documented
28159 in the library reference and as expected by the test suite.
28160 This includes making sure that tzname is set properly if
28161 tm->tm_zone does not exist since it is the alternative way
28162 of getting timezone info.
28163
28164 Red Hat 6.2 doesn't understand the southern hemisphere
28165 after New Year's Day.
28166 */
28167
28168 time_t groundhogday = 1044144000; /* GMT-based */
28169 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
28170
28171 putenv("TZ=UTC+0");
28172 tzset();
28173 if (localtime(&groundhogday)->tm_hour != 0)
28174 exit(1);
28175 #if HAVE_TZNAME
28176 /* For UTC, tzname[1] is sometimes "", sometimes " " */
28177 if (strcmp(tzname[0], "UTC") ||
28178 (tzname[1][0] != 0 && tzname[1][0] != ' '))
28179 exit(1);
28180 #endif
28181
28182 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
28183 tzset();
28184 if (localtime(&groundhogday)->tm_hour != 19)
28185 exit(1);
28186 #if HAVE_TZNAME
28187 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
28188 exit(1);
28189 #endif
28190
28191 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
28192 tzset();
28193 if (localtime(&groundhogday)->tm_hour != 11)
28194 exit(1);
28195 #if HAVE_TZNAME
28196 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
28197 exit(1);
28198 #endif
28199
28200 #if HAVE_STRUCT_TM_TM_ZONE
28201 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
28202 exit(1);
28203 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
28204 exit(1);
28205 #endif
28206
28207 exit(0);
28208 }
28209
28210 _ACEOF
28211 if ac_fn_c_try_run "$LINENO"
28212 then :
28213 ac_cv_working_tzset=yes
28214 else case e in #(
28215 e) ac_cv_working_tzset=no ;;
28216 esac
28217 fi
28218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28219 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28220 esac
28221 fi
28222 ;;
28223 esac
28224 fi
28225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
28226 printf "%s\n" "$ac_cv_working_tzset" >&6; }
28227 if test "$ac_cv_working_tzset" = yes
28228 then
28229
28230 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
28231
28232 fi
28233
28234 # Look for subsecond timestamps in struct stat
28235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
28236 printf %s "checking for tv_nsec in struct stat... " >&6; }
28237 if test ${ac_cv_stat_tv_nsec+y}
28238 then :
28239 printf %s "(cached) " >&6
28240 else case e in #(
28241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28243 #include <sys/stat.h>
28244 int
28245 main (void)
28246 {
28247
28248 struct stat st;
28249 st.st_mtim.tv_nsec = 1;
28250
28251 ;
28252 return 0;
28253 }
28254 _ACEOF
28255 if ac_fn_c_try_compile "$LINENO"
28256 then :
28257 ac_cv_stat_tv_nsec=yes
28258 else case e in #(
28259 e) ac_cv_stat_tv_nsec=no ;;
28260 esac
28261 fi
28262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28263 esac
28264 fi
28265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
28266 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
28267 if test "$ac_cv_stat_tv_nsec" = yes
28268 then
28269
28270 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
28271
28272 fi
28273
28274 # Look for BSD style subsecond timestamps in struct stat
28275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
28276 printf %s "checking for tv_nsec2 in struct stat... " >&6; }
28277 if test ${ac_cv_stat_tv_nsec2+y}
28278 then :
28279 printf %s "(cached) " >&6
28280 else case e in #(
28281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28282 /* end confdefs.h. */
28283 #include <sys/stat.h>
28284 int
28285 main (void)
28286 {
28287
28288 struct stat st;
28289 st.st_mtimespec.tv_nsec = 1;
28290
28291 ;
28292 return 0;
28293 }
28294 _ACEOF
28295 if ac_fn_c_try_compile "$LINENO"
28296 then :
28297 ac_cv_stat_tv_nsec2=yes
28298 else case e in #(
28299 e) ac_cv_stat_tv_nsec2=no ;;
28300 esac
28301 fi
28302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28303 esac
28304 fi
28305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
28306 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
28307 if test "$ac_cv_stat_tv_nsec2" = yes
28308 then
28309
28310 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
28311
28312 fi
28313
28314 have_curses=no
28315 have_panel=no
28316
28317
28318
28319 # Check for ncursesw/panelw first. If that fails, try ncurses/panel.
28320
28321
28322
28323 pkg_failed=no
28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
28325 printf %s "checking for ncursesw... " >&6; }
28326
28327 if test -n "$CURSES_CFLAGS"; then
28328 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
28329 elif test -n "$PKG_CONFIG"; then
28330 if test -n "$PKG_CONFIG" && \
28331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
28332 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
28333 ac_status=$?
28334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28335 test $ac_status = 0; }; then
28336 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
28337 test "x$?" != "x0" && pkg_failed=yes
28338 else
28339 pkg_failed=yes
28340 fi
28341 else
28342 pkg_failed=untried
28343 fi
28344 if test -n "$CURSES_LIBS"; then
28345 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
28346 elif test -n "$PKG_CONFIG"; then
28347 if test -n "$PKG_CONFIG" && \
28348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
28349 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
28350 ac_status=$?
28351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28352 test $ac_status = 0; }; then
28353 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
28354 test "x$?" != "x0" && pkg_failed=yes
28355 else
28356 pkg_failed=yes
28357 fi
28358 else
28359 pkg_failed=untried
28360 fi
28361
28362
28363
28364 if test $pkg_failed = yes; then
28365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28366 printf "%s\n" "no" >&6; }
28367
28368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28369 _pkg_short_errors_supported=yes
28370 else
28371 _pkg_short_errors_supported=no
28372 fi
28373 if test $_pkg_short_errors_supported = yes; then
28374 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
28375 else
28376 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
28377 fi
28378 # Put the nasty error message in config.log where it belongs
28379 echo "$CURSES_PKG_ERRORS" >&5
28380
28381 have_curses=no
28382 elif test $pkg_failed = untried; then
28383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28384 printf "%s\n" "no" >&6; }
28385 have_curses=no
28386 else
28387 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
28388 CURSES_LIBS=$pkg_cv_CURSES_LIBS
28389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28390 printf "%s\n" "yes" >&6; }
28391
28392 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
28393
28394 have_curses=yes
28395
28396 pkg_failed=no
28397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
28398 printf %s "checking for panelw... " >&6; }
28399
28400 if test -n "$PANEL_CFLAGS"; then
28401 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
28402 elif test -n "$PKG_CONFIG"; then
28403 if test -n "$PKG_CONFIG" && \
28404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
28405 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
28406 ac_status=$?
28407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28408 test $ac_status = 0; }; then
28409 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
28410 test "x$?" != "x0" && pkg_failed=yes
28411 else
28412 pkg_failed=yes
28413 fi
28414 else
28415 pkg_failed=untried
28416 fi
28417 if test -n "$PANEL_LIBS"; then
28418 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
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 \"panelw\""; } >&5
28422 ($PKG_CONFIG --exists --print-errors "panelw") 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_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 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
28435
28436
28437 if test $pkg_failed = yes; then
28438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28439 printf "%s\n" "no" >&6; }
28440
28441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28442 _pkg_short_errors_supported=yes
28443 else
28444 _pkg_short_errors_supported=no
28445 fi
28446 if test $_pkg_short_errors_supported = yes; then
28447 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
28448 else
28449 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
28450 fi
28451 # Put the nasty error message in config.log where it belongs
28452 echo "$PANEL_PKG_ERRORS" >&5
28453
28454 have_panel=no
28455 elif test $pkg_failed = untried; then
28456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28457 printf "%s\n" "no" >&6; }
28458 have_panel=no
28459 else
28460 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
28461 PANEL_LIBS=$pkg_cv_PANEL_LIBS
28462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463 printf "%s\n" "yes" >&6; }
28464
28465 printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h
28466
28467 have_panel=yes
28468 fi
28469 fi
28470
28471
28472 if test "x$have_curses" = xno
28473 then :
28474
28475
28476
28477 pkg_failed=no
28478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
28479 printf %s "checking for ncurses... " >&6; }
28480
28481 if test -n "$CURSES_CFLAGS"; then
28482 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS"
28483 elif test -n "$PKG_CONFIG"; then
28484 if test -n "$PKG_CONFIG" && \
28485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
28486 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
28487 ac_status=$?
28488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; then
28490 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
28491 test "x$?" != "x0" && pkg_failed=yes
28492 else
28493 pkg_failed=yes
28494 fi
28495 else
28496 pkg_failed=untried
28497 fi
28498 if test -n "$CURSES_LIBS"; then
28499 pkg_cv_CURSES_LIBS="$CURSES_LIBS"
28500 elif test -n "$PKG_CONFIG"; then
28501 if test -n "$PKG_CONFIG" && \
28502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
28503 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
28504 ac_status=$?
28505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28506 test $ac_status = 0; }; then
28507 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
28508 test "x$?" != "x0" && pkg_failed=yes
28509 else
28510 pkg_failed=yes
28511 fi
28512 else
28513 pkg_failed=untried
28514 fi
28515
28516
28517
28518 if test $pkg_failed = yes; then
28519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520 printf "%s\n" "no" >&6; }
28521
28522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28523 _pkg_short_errors_supported=yes
28524 else
28525 _pkg_short_errors_supported=no
28526 fi
28527 if test $_pkg_short_errors_supported = yes; then
28528 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
28529 else
28530 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
28531 fi
28532 # Put the nasty error message in config.log where it belongs
28533 echo "$CURSES_PKG_ERRORS" >&5
28534
28535 have_curses=no
28536 elif test $pkg_failed = untried; then
28537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28538 printf "%s\n" "no" >&6; }
28539 have_curses=no
28540 else
28541 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS
28542 CURSES_LIBS=$pkg_cv_CURSES_LIBS
28543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28544 printf "%s\n" "yes" >&6; }
28545
28546 printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h
28547
28548 have_curses=yes
28549
28550 pkg_failed=no
28551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
28552 printf %s "checking for panel... " >&6; }
28553
28554 if test -n "$PANEL_CFLAGS"; then
28555 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS"
28556 elif test -n "$PKG_CONFIG"; then
28557 if test -n "$PKG_CONFIG" && \
28558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
28559 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
28560 ac_status=$?
28561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28562 test $ac_status = 0; }; then
28563 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
28564 test "x$?" != "x0" && pkg_failed=yes
28565 else
28566 pkg_failed=yes
28567 fi
28568 else
28569 pkg_failed=untried
28570 fi
28571 if test -n "$PANEL_LIBS"; then
28572 pkg_cv_PANEL_LIBS="$PANEL_LIBS"
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 \"panel\""; } >&5
28576 ($PKG_CONFIG --exists --print-errors "panel") 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_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 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
28589
28590
28591 if test $pkg_failed = yes; then
28592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28593 printf "%s\n" "no" >&6; }
28594
28595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28596 _pkg_short_errors_supported=yes
28597 else
28598 _pkg_short_errors_supported=no
28599 fi
28600 if test $_pkg_short_errors_supported = yes; then
28601 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
28602 else
28603 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
28604 fi
28605 # Put the nasty error message in config.log where it belongs
28606 echo "$PANEL_PKG_ERRORS" >&5
28607
28608 have_panel=no
28609 elif test $pkg_failed = untried; then
28610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28611 printf "%s\n" "no" >&6; }
28612 have_panel=no
28613 else
28614 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS
28615 PANEL_LIBS=$pkg_cv_PANEL_LIBS
28616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28617 printf "%s\n" "yes" >&6; }
28618
28619 printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h
28620
28621 have_panel=yes
28622 fi
28623 fi
28624
28625
28626 fi
28627
28628 save_CFLAGS=$CFLAGS
28629 save_CPPFLAGS=$CPPFLAGS
28630 save_LDFLAGS=$LDFLAGS
28631 save_LIBS=$LIBS
28632
28633
28634 # Make sure we've got the header defines.
28635 as_fn_append CPPFLAGS " $CURSES_CFLAGS $PANEL_CFLAGS"
28636 ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default"
28637 if test "x$ac_cv_header_ncursesw_curses_h" = xyes
28638 then :
28639 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
28640
28641 fi
28642 ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
28643 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes
28644 then :
28645 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h
28646
28647 fi
28648 ac_fn_c_check_header_compile "$LINENO" "ncursesw/panel.h" "ac_cv_header_ncursesw_panel_h" "$ac_includes_default"
28649 if test "x$ac_cv_header_ncursesw_panel_h" = xyes
28650 then :
28651 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h
28652
28653 fi
28654 ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
28655 if test "x$ac_cv_header_ncurses_curses_h" = xyes
28656 then :
28657 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
28658
28659 fi
28660 ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
28661 if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
28662 then :
28663 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
28664
28665 fi
28666 ac_fn_c_check_header_compile "$LINENO" "ncurses/panel.h" "ac_cv_header_ncurses_panel_h" "$ac_includes_default"
28667 if test "x$ac_cv_header_ncurses_panel_h" = xyes
28668 then :
28669 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h
28670
28671 fi
28672 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
28673 if test "x$ac_cv_header_curses_h" = xyes
28674 then :
28675 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
28676
28677 fi
28678 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
28679 if test "x$ac_cv_header_ncurses_h" = xyes
28680 then :
28681 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
28682
28683 fi
28684 ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
28685 if test "x$ac_cv_header_panel_h" = xyes
28686 then :
28687 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
28688
28689 fi
28690
28691
28692 # Check that we're able to link with crucial curses/panel functions. This
28693 # also serves as a fallback in case pkg-config failed.
28694 as_fn_append LIBS " $CURSES_LIBS $PANEL_LIBS"
28695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5
28696 printf %s "checking for library containing initscr... " >&6; }
28697 if test ${ac_cv_search_initscr+y}
28698 then :
28699 printf %s "(cached) " >&6
28700 else case e in #(
28701 e) ac_func_search_save_LIBS=$LIBS
28702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28703 /* end confdefs.h. */
28704
28705 /* Override any GCC internal prototype to avoid an error.
28706 Use char because int might match the return type of a GCC
28707 builtin and then its argument prototype would still apply.
28708 The 'extern "C"' is for builds by C++ compilers;
28709 although this is not generally supported in C code supporting it here
28710 has little cost and some practical benefit (sr 110532). */
28711 #ifdef __cplusplus
28712 extern "C"
28713 #endif
28714 char initscr (void);
28715 int
28716 main (void)
28717 {
28718 return initscr ();
28719 ;
28720 return 0;
28721 }
28722 _ACEOF
28723 for ac_lib in '' ncursesw ncurses
28724 do
28725 if test -z "$ac_lib"; then
28726 ac_res="none required"
28727 else
28728 ac_res=-l$ac_lib
28729 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28730 fi
28731 if ac_fn_c_try_link "$LINENO"
28732 then :
28733 ac_cv_search_initscr=$ac_res
28734 fi
28735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28736 conftest$ac_exeext
28737 if test ${ac_cv_search_initscr+y}
28738 then :
28739 break
28740 fi
28741 done
28742 if test ${ac_cv_search_initscr+y}
28743 then :
28744
28745 else case e in #(
28746 e) ac_cv_search_initscr=no ;;
28747 esac
28748 fi
28749 rm conftest.$ac_ext
28750 LIBS=$ac_func_search_save_LIBS ;;
28751 esac
28752 fi
28753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5
28754 printf "%s\n" "$ac_cv_search_initscr" >&6; }
28755 ac_res=$ac_cv_search_initscr
28756 if test "$ac_res" != no
28757 then :
28758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28759 if test "x$have_curses" = xno
28760 then :
28761 have_curses=yes
28762 CURSES_LIBS=${CURSES_LIBS-"$ac_cv_search_initscr"}
28763 fi
28764 else case e in #(
28765 e) have_curses=no ;;
28766 esac
28767 fi
28768
28769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing update_panels" >&5
28770 printf %s "checking for library containing update_panels... " >&6; }
28771 if test ${ac_cv_search_update_panels+y}
28772 then :
28773 printf %s "(cached) " >&6
28774 else case e in #(
28775 e) ac_func_search_save_LIBS=$LIBS
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28778
28779 /* Override any GCC internal prototype to avoid an error.
28780 Use char because int might match the return type of a GCC
28781 builtin and then its argument prototype would still apply.
28782 The 'extern "C"' is for builds by C++ compilers;
28783 although this is not generally supported in C code supporting it here
28784 has little cost and some practical benefit (sr 110532). */
28785 #ifdef __cplusplus
28786 extern "C"
28787 #endif
28788 char update_panels (void);
28789 int
28790 main (void)
28791 {
28792 return update_panels ();
28793 ;
28794 return 0;
28795 }
28796 _ACEOF
28797 for ac_lib in '' panelw panel
28798 do
28799 if test -z "$ac_lib"; then
28800 ac_res="none required"
28801 else
28802 ac_res=-l$ac_lib
28803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28804 fi
28805 if ac_fn_c_try_link "$LINENO"
28806 then :
28807 ac_cv_search_update_panels=$ac_res
28808 fi
28809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28810 conftest$ac_exeext
28811 if test ${ac_cv_search_update_panels+y}
28812 then :
28813 break
28814 fi
28815 done
28816 if test ${ac_cv_search_update_panels+y}
28817 then :
28818
28819 else case e in #(
28820 e) ac_cv_search_update_panels=no ;;
28821 esac
28822 fi
28823 rm conftest.$ac_ext
28824 LIBS=$ac_func_search_save_LIBS ;;
28825 esac
28826 fi
28827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_update_panels" >&5
28828 printf "%s\n" "$ac_cv_search_update_panels" >&6; }
28829 ac_res=$ac_cv_search_update_panels
28830 if test "$ac_res" != no
28831 then :
28832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28833 if test "x$have_panel" = xno
28834 then :
28835 have_panel=yes
28836 PANEL_LIBS=${PANEL_LIBS-"$ac_cv_search_update_panels"}
28837 fi
28838 else case e in #(
28839 e) have_panel=no ;;
28840 esac
28841 fi
28842
28843
28844
28845
28846 if test "have_curses" != "no"
28847 then :
28848
28849 CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
28850
28851 if test "x$ac_sys_system" = xDarwin
28852 then :
28853
28854
28855 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1"
28856
28857 fi
28858
28859 PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g')
28860
28861 # On Solaris, term.h requires curses.h
28862 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
28863 #define NCURSES_OPAQUE 0
28864 #if defined(HAVE_NCURSESW_NCURSES_H)
28865 # include <ncursesw/ncurses.h>
28866 #elif defined(HAVE_NCURSESW_CURSES_H)
28867 # include <ncursesw/curses.h>
28868 #elif defined(HAVE_NCURSES_NCURSES_H)
28869 # include <ncurses/ncurses.h>
28870 #elif defined(HAVE_NCURSES_CURSES_H)
28871 # include <ncurses/curses.h>
28872 #elif defined(HAVE_NCURSES_H)
28873 # include <ncurses.h>
28874 #elif defined(HAVE_CURSES_H)
28875 # include <curses.h>
28876 #endif
28877
28878 "
28879 if test "x$ac_cv_header_term_h" = xyes
28880 then :
28881 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
28882
28883 fi
28884
28885
28886 # On HP/UX 11.0, mvwdelch is a block with a return statement
28887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
28888 printf %s "checking whether mvwdelch is an expression... " >&6; }
28889 if test ${ac_cv_mvwdelch_is_expression+y}
28890 then :
28891 printf %s "(cached) " >&6
28892 else case e in #(
28893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28894 /* end confdefs.h. */
28895
28896 #define NCURSES_OPAQUE 0
28897 #if defined(HAVE_NCURSESW_NCURSES_H)
28898 # include <ncursesw/ncurses.h>
28899 #elif defined(HAVE_NCURSESW_CURSES_H)
28900 # include <ncursesw/curses.h>
28901 #elif defined(HAVE_NCURSES_NCURSES_H)
28902 # include <ncurses/ncurses.h>
28903 #elif defined(HAVE_NCURSES_CURSES_H)
28904 # include <ncurses/curses.h>
28905 #elif defined(HAVE_NCURSES_H)
28906 # include <ncurses.h>
28907 #elif defined(HAVE_CURSES_H)
28908 # include <curses.h>
28909 #endif
28910
28911 int
28912 main (void)
28913 {
28914
28915 int rtn;
28916 rtn = mvwdelch(0,0,0);
28917
28918 ;
28919 return 0;
28920 }
28921 _ACEOF
28922 if ac_fn_c_try_compile "$LINENO"
28923 then :
28924 ac_cv_mvwdelch_is_expression=yes
28925 else case e in #(
28926 e) ac_cv_mvwdelch_is_expression=no ;;
28927 esac
28928 fi
28929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28930 esac
28931 fi
28932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
28933 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
28934
28935 if test "$ac_cv_mvwdelch_is_expression" = yes
28936 then
28937
28938 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
28939
28940 fi
28941
28942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
28943 printf %s "checking whether WINDOW has _flags... " >&6; }
28944 if test ${ac_cv_window_has_flags+y}
28945 then :
28946 printf %s "(cached) " >&6
28947 else case e in #(
28948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28949 /* end confdefs.h. */
28950
28951 #define NCURSES_OPAQUE 0
28952 #if defined(HAVE_NCURSESW_NCURSES_H)
28953 # include <ncursesw/ncurses.h>
28954 #elif defined(HAVE_NCURSESW_CURSES_H)
28955 # include <ncursesw/curses.h>
28956 #elif defined(HAVE_NCURSES_NCURSES_H)
28957 # include <ncurses/ncurses.h>
28958 #elif defined(HAVE_NCURSES_CURSES_H)
28959 # include <ncurses/curses.h>
28960 #elif defined(HAVE_NCURSES_H)
28961 # include <ncurses.h>
28962 #elif defined(HAVE_CURSES_H)
28963 # include <curses.h>
28964 #endif
28965
28966 int
28967 main (void)
28968 {
28969
28970 WINDOW *w;
28971 w->_flags = 0;
28972
28973 ;
28974 return 0;
28975 }
28976 _ACEOF
28977 if ac_fn_c_try_compile "$LINENO"
28978 then :
28979 ac_cv_window_has_flags=yes
28980 else case e in #(
28981 e) ac_cv_window_has_flags=no ;;
28982 esac
28983 fi
28984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
28985 esac
28986 fi
28987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
28988 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
28989
28990
28991 if test "$ac_cv_window_has_flags" = yes
28992 then
28993
28994 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
28995
28996 fi
28997
28998
28999
29000
29001
29002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
29003 printf %s "checking for curses function is_pad... " >&6; }
29004 if test ${ac_cv_lib_curses_is_pad+y}
29005 then :
29006 printf %s "(cached) " >&6
29007 else case e in #(
29008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29009 /* end confdefs.h. */
29010
29011 #define NCURSES_OPAQUE 0
29012 #if defined(HAVE_NCURSESW_NCURSES_H)
29013 # include <ncursesw/ncurses.h>
29014 #elif defined(HAVE_NCURSESW_CURSES_H)
29015 # include <ncursesw/curses.h>
29016 #elif defined(HAVE_NCURSES_NCURSES_H)
29017 # include <ncurses/ncurses.h>
29018 #elif defined(HAVE_NCURSES_CURSES_H)
29019 # include <ncurses/curses.h>
29020 #elif defined(HAVE_NCURSES_H)
29021 # include <ncurses.h>
29022 #elif defined(HAVE_CURSES_H)
29023 # include <curses.h>
29024 #endif
29025
29026 int
29027 main (void)
29028 {
29029
29030 #ifndef is_pad
29031 void *x=is_pad
29032 #endif
29033
29034 ;
29035 return 0;
29036 }
29037 _ACEOF
29038 if ac_fn_c_try_compile "$LINENO"
29039 then :
29040 ac_cv_lib_curses_is_pad=yes
29041 else case e in #(
29042 e) ac_cv_lib_curses_is_pad=no ;;
29043 esac
29044 fi
29045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29046 ;;
29047 esac
29048 fi
29049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
29050 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
29051 if test "x$ac_cv_lib_curses_is_pad" = xyes
29052 then :
29053
29054 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
29055
29056 fi
29057
29058
29059
29060
29061
29062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
29063 printf %s "checking for curses function is_term_resized... " >&6; }
29064 if test ${ac_cv_lib_curses_is_term_resized+y}
29065 then :
29066 printf %s "(cached) " >&6
29067 else case e in #(
29068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29069 /* end confdefs.h. */
29070
29071 #define NCURSES_OPAQUE 0
29072 #if defined(HAVE_NCURSESW_NCURSES_H)
29073 # include <ncursesw/ncurses.h>
29074 #elif defined(HAVE_NCURSESW_CURSES_H)
29075 # include <ncursesw/curses.h>
29076 #elif defined(HAVE_NCURSES_NCURSES_H)
29077 # include <ncurses/ncurses.h>
29078 #elif defined(HAVE_NCURSES_CURSES_H)
29079 # include <ncurses/curses.h>
29080 #elif defined(HAVE_NCURSES_H)
29081 # include <ncurses.h>
29082 #elif defined(HAVE_CURSES_H)
29083 # include <curses.h>
29084 #endif
29085
29086 int
29087 main (void)
29088 {
29089
29090 #ifndef is_term_resized
29091 void *x=is_term_resized
29092 #endif
29093
29094 ;
29095 return 0;
29096 }
29097 _ACEOF
29098 if ac_fn_c_try_compile "$LINENO"
29099 then :
29100 ac_cv_lib_curses_is_term_resized=yes
29101 else case e in #(
29102 e) ac_cv_lib_curses_is_term_resized=no ;;
29103 esac
29104 fi
29105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29106 ;;
29107 esac
29108 fi
29109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
29110 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
29111 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
29112 then :
29113
29114 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
29115
29116 fi
29117
29118
29119
29120
29121
29122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
29123 printf %s "checking for curses function resize_term... " >&6; }
29124 if test ${ac_cv_lib_curses_resize_term+y}
29125 then :
29126 printf %s "(cached) " >&6
29127 else case e in #(
29128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h. */
29130
29131 #define NCURSES_OPAQUE 0
29132 #if defined(HAVE_NCURSESW_NCURSES_H)
29133 # include <ncursesw/ncurses.h>
29134 #elif defined(HAVE_NCURSESW_CURSES_H)
29135 # include <ncursesw/curses.h>
29136 #elif defined(HAVE_NCURSES_NCURSES_H)
29137 # include <ncurses/ncurses.h>
29138 #elif defined(HAVE_NCURSES_CURSES_H)
29139 # include <ncurses/curses.h>
29140 #elif defined(HAVE_NCURSES_H)
29141 # include <ncurses.h>
29142 #elif defined(HAVE_CURSES_H)
29143 # include <curses.h>
29144 #endif
29145
29146 int
29147 main (void)
29148 {
29149
29150 #ifndef resize_term
29151 void *x=resize_term
29152 #endif
29153
29154 ;
29155 return 0;
29156 }
29157 _ACEOF
29158 if ac_fn_c_try_compile "$LINENO"
29159 then :
29160 ac_cv_lib_curses_resize_term=yes
29161 else case e in #(
29162 e) ac_cv_lib_curses_resize_term=no ;;
29163 esac
29164 fi
29165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29166 ;;
29167 esac
29168 fi
29169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
29170 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
29171 if test "x$ac_cv_lib_curses_resize_term" = xyes
29172 then :
29173
29174 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
29175
29176 fi
29177
29178
29179
29180
29181
29182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
29183 printf %s "checking for curses function resizeterm... " >&6; }
29184 if test ${ac_cv_lib_curses_resizeterm+y}
29185 then :
29186 printf %s "(cached) " >&6
29187 else case e in #(
29188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29189 /* end confdefs.h. */
29190
29191 #define NCURSES_OPAQUE 0
29192 #if defined(HAVE_NCURSESW_NCURSES_H)
29193 # include <ncursesw/ncurses.h>
29194 #elif defined(HAVE_NCURSESW_CURSES_H)
29195 # include <ncursesw/curses.h>
29196 #elif defined(HAVE_NCURSES_NCURSES_H)
29197 # include <ncurses/ncurses.h>
29198 #elif defined(HAVE_NCURSES_CURSES_H)
29199 # include <ncurses/curses.h>
29200 #elif defined(HAVE_NCURSES_H)
29201 # include <ncurses.h>
29202 #elif defined(HAVE_CURSES_H)
29203 # include <curses.h>
29204 #endif
29205
29206 int
29207 main (void)
29208 {
29209
29210 #ifndef resizeterm
29211 void *x=resizeterm
29212 #endif
29213
29214 ;
29215 return 0;
29216 }
29217 _ACEOF
29218 if ac_fn_c_try_compile "$LINENO"
29219 then :
29220 ac_cv_lib_curses_resizeterm=yes
29221 else case e in #(
29222 e) ac_cv_lib_curses_resizeterm=no ;;
29223 esac
29224 fi
29225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29226 ;;
29227 esac
29228 fi
29229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
29230 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
29231 if test "x$ac_cv_lib_curses_resizeterm" = xyes
29232 then :
29233
29234 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
29235
29236 fi
29237
29238
29239
29240
29241
29242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
29243 printf %s "checking for curses function immedok... " >&6; }
29244 if test ${ac_cv_lib_curses_immedok+y}
29245 then :
29246 printf %s "(cached) " >&6
29247 else case e in #(
29248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29249 /* end confdefs.h. */
29250
29251 #define NCURSES_OPAQUE 0
29252 #if defined(HAVE_NCURSESW_NCURSES_H)
29253 # include <ncursesw/ncurses.h>
29254 #elif defined(HAVE_NCURSESW_CURSES_H)
29255 # include <ncursesw/curses.h>
29256 #elif defined(HAVE_NCURSES_NCURSES_H)
29257 # include <ncurses/ncurses.h>
29258 #elif defined(HAVE_NCURSES_CURSES_H)
29259 # include <ncurses/curses.h>
29260 #elif defined(HAVE_NCURSES_H)
29261 # include <ncurses.h>
29262 #elif defined(HAVE_CURSES_H)
29263 # include <curses.h>
29264 #endif
29265
29266 int
29267 main (void)
29268 {
29269
29270 #ifndef immedok
29271 void *x=immedok
29272 #endif
29273
29274 ;
29275 return 0;
29276 }
29277 _ACEOF
29278 if ac_fn_c_try_compile "$LINENO"
29279 then :
29280 ac_cv_lib_curses_immedok=yes
29281 else case e in #(
29282 e) ac_cv_lib_curses_immedok=no ;;
29283 esac
29284 fi
29285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29286 ;;
29287 esac
29288 fi
29289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
29290 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
29291 if test "x$ac_cv_lib_curses_immedok" = xyes
29292 then :
29293
29294 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
29295
29296 fi
29297
29298
29299
29300
29301
29302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
29303 printf %s "checking for curses function syncok... " >&6; }
29304 if test ${ac_cv_lib_curses_syncok+y}
29305 then :
29306 printf %s "(cached) " >&6
29307 else case e in #(
29308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29309 /* end confdefs.h. */
29310
29311 #define NCURSES_OPAQUE 0
29312 #if defined(HAVE_NCURSESW_NCURSES_H)
29313 # include <ncursesw/ncurses.h>
29314 #elif defined(HAVE_NCURSESW_CURSES_H)
29315 # include <ncursesw/curses.h>
29316 #elif defined(HAVE_NCURSES_NCURSES_H)
29317 # include <ncurses/ncurses.h>
29318 #elif defined(HAVE_NCURSES_CURSES_H)
29319 # include <ncurses/curses.h>
29320 #elif defined(HAVE_NCURSES_H)
29321 # include <ncurses.h>
29322 #elif defined(HAVE_CURSES_H)
29323 # include <curses.h>
29324 #endif
29325
29326 int
29327 main (void)
29328 {
29329
29330 #ifndef syncok
29331 void *x=syncok
29332 #endif
29333
29334 ;
29335 return 0;
29336 }
29337 _ACEOF
29338 if ac_fn_c_try_compile "$LINENO"
29339 then :
29340 ac_cv_lib_curses_syncok=yes
29341 else case e in #(
29342 e) ac_cv_lib_curses_syncok=no ;;
29343 esac
29344 fi
29345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29346 ;;
29347 esac
29348 fi
29349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
29350 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
29351 if test "x$ac_cv_lib_curses_syncok" = xyes
29352 then :
29353
29354 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
29355
29356 fi
29357
29358
29359
29360
29361
29362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
29363 printf %s "checking for curses function wchgat... " >&6; }
29364 if test ${ac_cv_lib_curses_wchgat+y}
29365 then :
29366 printf %s "(cached) " >&6
29367 else case e in #(
29368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29369 /* end confdefs.h. */
29370
29371 #define NCURSES_OPAQUE 0
29372 #if defined(HAVE_NCURSESW_NCURSES_H)
29373 # include <ncursesw/ncurses.h>
29374 #elif defined(HAVE_NCURSESW_CURSES_H)
29375 # include <ncursesw/curses.h>
29376 #elif defined(HAVE_NCURSES_NCURSES_H)
29377 # include <ncurses/ncurses.h>
29378 #elif defined(HAVE_NCURSES_CURSES_H)
29379 # include <ncurses/curses.h>
29380 #elif defined(HAVE_NCURSES_H)
29381 # include <ncurses.h>
29382 #elif defined(HAVE_CURSES_H)
29383 # include <curses.h>
29384 #endif
29385
29386 int
29387 main (void)
29388 {
29389
29390 #ifndef wchgat
29391 void *x=wchgat
29392 #endif
29393
29394 ;
29395 return 0;
29396 }
29397 _ACEOF
29398 if ac_fn_c_try_compile "$LINENO"
29399 then :
29400 ac_cv_lib_curses_wchgat=yes
29401 else case e in #(
29402 e) ac_cv_lib_curses_wchgat=no ;;
29403 esac
29404 fi
29405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29406 ;;
29407 esac
29408 fi
29409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
29410 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
29411 if test "x$ac_cv_lib_curses_wchgat" = xyes
29412 then :
29413
29414 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
29415
29416 fi
29417
29418
29419
29420
29421
29422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
29423 printf %s "checking for curses function filter... " >&6; }
29424 if test ${ac_cv_lib_curses_filter+y}
29425 then :
29426 printf %s "(cached) " >&6
29427 else case e in #(
29428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29429 /* end confdefs.h. */
29430
29431 #define NCURSES_OPAQUE 0
29432 #if defined(HAVE_NCURSESW_NCURSES_H)
29433 # include <ncursesw/ncurses.h>
29434 #elif defined(HAVE_NCURSESW_CURSES_H)
29435 # include <ncursesw/curses.h>
29436 #elif defined(HAVE_NCURSES_NCURSES_H)
29437 # include <ncurses/ncurses.h>
29438 #elif defined(HAVE_NCURSES_CURSES_H)
29439 # include <ncurses/curses.h>
29440 #elif defined(HAVE_NCURSES_H)
29441 # include <ncurses.h>
29442 #elif defined(HAVE_CURSES_H)
29443 # include <curses.h>
29444 #endif
29445
29446 int
29447 main (void)
29448 {
29449
29450 #ifndef filter
29451 void *x=filter
29452 #endif
29453
29454 ;
29455 return 0;
29456 }
29457 _ACEOF
29458 if ac_fn_c_try_compile "$LINENO"
29459 then :
29460 ac_cv_lib_curses_filter=yes
29461 else case e in #(
29462 e) ac_cv_lib_curses_filter=no ;;
29463 esac
29464 fi
29465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29466 ;;
29467 esac
29468 fi
29469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
29470 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
29471 if test "x$ac_cv_lib_curses_filter" = xyes
29472 then :
29473
29474 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
29475
29476 fi
29477
29478
29479
29480
29481
29482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
29483 printf %s "checking for curses function has_key... " >&6; }
29484 if test ${ac_cv_lib_curses_has_key+y}
29485 then :
29486 printf %s "(cached) " >&6
29487 else case e in #(
29488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29489 /* end confdefs.h. */
29490
29491 #define NCURSES_OPAQUE 0
29492 #if defined(HAVE_NCURSESW_NCURSES_H)
29493 # include <ncursesw/ncurses.h>
29494 #elif defined(HAVE_NCURSESW_CURSES_H)
29495 # include <ncursesw/curses.h>
29496 #elif defined(HAVE_NCURSES_NCURSES_H)
29497 # include <ncurses/ncurses.h>
29498 #elif defined(HAVE_NCURSES_CURSES_H)
29499 # include <ncurses/curses.h>
29500 #elif defined(HAVE_NCURSES_H)
29501 # include <ncurses.h>
29502 #elif defined(HAVE_CURSES_H)
29503 # include <curses.h>
29504 #endif
29505
29506 int
29507 main (void)
29508 {
29509
29510 #ifndef has_key
29511 void *x=has_key
29512 #endif
29513
29514 ;
29515 return 0;
29516 }
29517 _ACEOF
29518 if ac_fn_c_try_compile "$LINENO"
29519 then :
29520 ac_cv_lib_curses_has_key=yes
29521 else case e in #(
29522 e) ac_cv_lib_curses_has_key=no ;;
29523 esac
29524 fi
29525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29526 ;;
29527 esac
29528 fi
29529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
29530 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
29531 if test "x$ac_cv_lib_curses_has_key" = xyes
29532 then :
29533
29534 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
29535
29536 fi
29537
29538
29539
29540
29541
29542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
29543 printf %s "checking for curses function typeahead... " >&6; }
29544 if test ${ac_cv_lib_curses_typeahead+y}
29545 then :
29546 printf %s "(cached) " >&6
29547 else case e in #(
29548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29549 /* end confdefs.h. */
29550
29551 #define NCURSES_OPAQUE 0
29552 #if defined(HAVE_NCURSESW_NCURSES_H)
29553 # include <ncursesw/ncurses.h>
29554 #elif defined(HAVE_NCURSESW_CURSES_H)
29555 # include <ncursesw/curses.h>
29556 #elif defined(HAVE_NCURSES_NCURSES_H)
29557 # include <ncurses/ncurses.h>
29558 #elif defined(HAVE_NCURSES_CURSES_H)
29559 # include <ncurses/curses.h>
29560 #elif defined(HAVE_NCURSES_H)
29561 # include <ncurses.h>
29562 #elif defined(HAVE_CURSES_H)
29563 # include <curses.h>
29564 #endif
29565
29566 int
29567 main (void)
29568 {
29569
29570 #ifndef typeahead
29571 void *x=typeahead
29572 #endif
29573
29574 ;
29575 return 0;
29576 }
29577 _ACEOF
29578 if ac_fn_c_try_compile "$LINENO"
29579 then :
29580 ac_cv_lib_curses_typeahead=yes
29581 else case e in #(
29582 e) ac_cv_lib_curses_typeahead=no ;;
29583 esac
29584 fi
29585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29586 ;;
29587 esac
29588 fi
29589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
29590 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
29591 if test "x$ac_cv_lib_curses_typeahead" = xyes
29592 then :
29593
29594 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
29595
29596 fi
29597
29598
29599
29600
29601
29602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
29603 printf %s "checking for curses function use_env... " >&6; }
29604 if test ${ac_cv_lib_curses_use_env+y}
29605 then :
29606 printf %s "(cached) " >&6
29607 else case e in #(
29608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29609 /* end confdefs.h. */
29610
29611 #define NCURSES_OPAQUE 0
29612 #if defined(HAVE_NCURSESW_NCURSES_H)
29613 # include <ncursesw/ncurses.h>
29614 #elif defined(HAVE_NCURSESW_CURSES_H)
29615 # include <ncursesw/curses.h>
29616 #elif defined(HAVE_NCURSES_NCURSES_H)
29617 # include <ncurses/ncurses.h>
29618 #elif defined(HAVE_NCURSES_CURSES_H)
29619 # include <ncurses/curses.h>
29620 #elif defined(HAVE_NCURSES_H)
29621 # include <ncurses.h>
29622 #elif defined(HAVE_CURSES_H)
29623 # include <curses.h>
29624 #endif
29625
29626 int
29627 main (void)
29628 {
29629
29630 #ifndef use_env
29631 void *x=use_env
29632 #endif
29633
29634 ;
29635 return 0;
29636 }
29637 _ACEOF
29638 if ac_fn_c_try_compile "$LINENO"
29639 then :
29640 ac_cv_lib_curses_use_env=yes
29641 else case e in #(
29642 e) ac_cv_lib_curses_use_env=no ;;
29643 esac
29644 fi
29645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29646 ;;
29647 esac
29648 fi
29649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
29650 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
29651 if test "x$ac_cv_lib_curses_use_env" = xyes
29652 then :
29653
29654 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
29655
29656 fi
29657
29658
29659
29660 CPPFLAGS=$ac_save_cppflags
29661
29662 fi
29663 CFLAGS=$save_CFLAGS
29664 CPPFLAGS=$save_CPPFLAGS
29665 LDFLAGS=$save_LDFLAGS
29666 LIBS=$save_LIBS
29667
29668
29669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
29670 printf "%s\n" "$as_me: checking for device files" >&6;}
29671
29672 if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then
29673 ac_cv_file__dev_ptmx=no
29674 ac_cv_file__dev_ptc=no
29675 else
29676 if test "x$cross_compiling" = xyes; then
29677 if test "${ac_cv_file__dev_ptmx+set}" != set; then
29678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
29679 printf %s "checking for /dev/ptmx... " >&6; }
29680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
29681 printf "%s\n" "not set" >&6; }
29682 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
29683 fi
29684 if test "${ac_cv_file__dev_ptc+set}" != set; then
29685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
29686 printf %s "checking for /dev/ptc... " >&6; }
29687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
29688 printf "%s\n" "not set" >&6; }
29689 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
29690 fi
29691 fi
29692
29693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
29694 printf %s "checking for /dev/ptmx... " >&6; }
29695 if test ${ac_cv_file__dev_ptmx+y}
29696 then :
29697 printf %s "(cached) " >&6
29698 else case e in #(
29699 e) test "$cross_compiling" = yes &&
29700 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
29701 if test -r "/dev/ptmx"; then
29702 ac_cv_file__dev_ptmx=yes
29703 else
29704 ac_cv_file__dev_ptmx=no
29705 fi ;;
29706 esac
29707 fi
29708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
29709 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
29710 if test "x$ac_cv_file__dev_ptmx" = xyes
29711 then :
29712
29713 fi
29714
29715 if test "x$ac_cv_file__dev_ptmx" = xyes; then
29716
29717 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
29718
29719 fi
29720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
29721 printf %s "checking for /dev/ptc... " >&6; }
29722 if test ${ac_cv_file__dev_ptc+y}
29723 then :
29724 printf %s "(cached) " >&6
29725 else case e in #(
29726 e) test "$cross_compiling" = yes &&
29727 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
29728 if test -r "/dev/ptc"; then
29729 ac_cv_file__dev_ptc=yes
29730 else
29731 ac_cv_file__dev_ptc=no
29732 fi ;;
29733 esac
29734 fi
29735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
29736 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
29737 if test "x$ac_cv_file__dev_ptc" = xyes
29738 then :
29739
29740 fi
29741
29742 if test "x$ac_cv_file__dev_ptc" = xyes; then
29743
29744 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
29745
29746 fi
29747 fi
29748
29749 if test $ac_sys_system = Darwin
29750 then
29751 LIBS="$LIBS -framework CoreFoundation"
29752 fi
29753
29754 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
29755 #ifdef HAVE_SYS_TYPES_H
29756 #include <sys/types.h>
29757 #endif
29758 #ifdef HAVE_SYS_SOCKET_H
29759 #include <sys/socket.h>
29760 #endif
29761
29762 "
29763 if test "x$ac_cv_type_socklen_t" = xyes
29764 then :
29765
29766 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
29767
29768
29769 else case e in #(
29770 e)
29771 printf "%s\n" "#define socklen_t int" >>confdefs.h
29772 ;;
29773 esac
29774 fi
29775
29776
29777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
29778 printf %s "checking for broken mbstowcs... " >&6; }
29779 if test ${ac_cv_broken_mbstowcs+y}
29780 then :
29781 printf %s "(cached) " >&6
29782 else case e in #(
29783 e) if test "$cross_compiling" = yes
29784 then :
29785 ac_cv_broken_mbstowcs=no
29786 else case e in #(
29787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29788 /* end confdefs.h. */
29789
29790 #include <stddef.h>
29791 #include <stdio.h>
29792 #include <stdlib.h>
29793 int main(void) {
29794 size_t len = -1;
29795 const char *str = "text";
29796 len = mbstowcs(NULL, str, 0);
29797 return (len != 4);
29798 }
29799
29800 _ACEOF
29801 if ac_fn_c_try_run "$LINENO"
29802 then :
29803 ac_cv_broken_mbstowcs=no
29804 else case e in #(
29805 e) ac_cv_broken_mbstowcs=yes ;;
29806 esac
29807 fi
29808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29809 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29810 esac
29811 fi
29812 ;;
29813 esac
29814 fi
29815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
29816 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
29817 if test "$ac_cv_broken_mbstowcs" = yes
29818 then
29819
29820 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
29821
29822 fi
29823
29824 # Check for --with-computed-gotos
29825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
29826 printf %s "checking for --with-computed-gotos... " >&6; }
29827
29828 # Check whether --with-computed-gotos was given.
29829 if test ${with_computed_gotos+y}
29830 then :
29831 withval=$with_computed_gotos;
29832 if test "$withval" = yes
29833 then
29834
29835 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
29836
29837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29838 printf "%s\n" "yes" >&6; }
29839 fi
29840 if test "$withval" = no
29841 then
29842
29843 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
29844
29845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29846 printf "%s\n" "no" >&6; }
29847 fi
29848
29849 else case e in #(
29850 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
29851 printf "%s\n" "no value specified" >&6; } ;;
29852 esac
29853 fi
29854
29855
29856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
29857 printf %s "checking whether $CC supports computed gotos... " >&6; }
29858 if test ${ac_cv_computed_gotos+y}
29859 then :
29860 printf %s "(cached) " >&6
29861 else case e in #(
29862 e) if test "$cross_compiling" = yes
29863 then :
29864 if test "${with_computed_gotos+set}" = set; then
29865 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
29866 else
29867 ac_cv_computed_gotos=no
29868 fi
29869 else case e in #(
29870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29871 /* end confdefs.h. */
29872
29873 int main(int argc, char **argv)
29874 {
29875 static void *targets[1] = { &&LABEL1 };
29876 goto LABEL2;
29877 LABEL1:
29878 return 0;
29879 LABEL2:
29880 goto *targets[0];
29881 return 1;
29882 }
29883
29884 _ACEOF
29885 if ac_fn_c_try_run "$LINENO"
29886 then :
29887 ac_cv_computed_gotos=yes
29888 else case e in #(
29889 e) ac_cv_computed_gotos=no ;;
29890 esac
29891 fi
29892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29893 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29894 esac
29895 fi
29896 ;;
29897 esac
29898 fi
29899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
29900 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
29901 case "$ac_cv_computed_gotos" in yes*)
29902
29903 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
29904
29905 esac
29906
29907 # Check for --with-tail-call-interp
29908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tail-call-interp" >&5
29909 printf %s "checking for --with-tail-call-interp... " >&6; }
29910
29911 # Check whether --with-tail-call-interp was given.
29912 if test ${with_tail_call_interp+y}
29913 then :
29914 withval=$with_tail_call_interp;
29915 if test "$withval" = yes
29916 then
29917
29918 printf "%s\n" "#define Py_TAIL_CALL_INTERP 1" >>confdefs.h
29919
29920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29921 printf "%s\n" "yes" >&6; }
29922 fi
29923 if test "$withval" = no
29924 then
29925
29926 printf "%s\n" "#define Py_TAIL_CALL_INTERP 0" >>confdefs.h
29927
29928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29929 printf "%s\n" "no" >&6; }
29930 fi
29931
29932 else case e in #(
29933 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
29934 printf "%s\n" "no value specified" >&6; } ;;
29935 esac
29936 fi
29937
29938
29939 # Check for --with-remote-debug
29940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-remote-debug" >&5
29941 printf %s "checking for --with-remote-debug... " >&6; }
29942
29943 # Check whether --with-remote-debug was given.
29944 if test ${with_remote_debug+y}
29945 then :
29946 withval=$with_remote_debug;
29947 else case e in #(
29948 e) with_remote_debug=yes ;;
29949 esac
29950 fi
29951
29952
29953 if test "$with_remote_debug" = yes; then
29954
29955 printf "%s\n" "#define Py_REMOTE_DEBUG 1" >>confdefs.h
29956
29957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958 printf "%s\n" "yes" >&6; }
29959 else
29960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29961 printf "%s\n" "no" >&6; }
29962 fi
29963
29964
29965 case $ac_sys_system in
29966 AIX*)
29967
29968 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
29969 ;;
29970 esac
29971
29972
29973
29974
29975 for h in `(cd $srcdir;echo Python/thread_*.h)`
29976 do
29977 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
29978 done
29979
29980
29981 SRCDIRS="\
29982 Modules \
29983 Modules/_ctypes \
29984 Modules/_decimal \
29985 Modules/_decimal/libmpdec \
29986 Modules/_hacl \
29987 Modules/_io \
29988 Modules/_multiprocessing \
29989 Modules/_sqlite \
29990 Modules/_sre \
29991 Modules/_testcapi \
29992 Modules/_testinternalcapi \
29993 Modules/_testlimitedcapi \
29994 Modules/_xxtestfuzz \
29995 Modules/_zstd \
29996 Modules/cjkcodecs \
29997 Modules/expat \
29998 Objects \
29999 Objects/mimalloc \
30000 Objects/mimalloc/prim \
30001 Parser \
30002 Parser/tokenizer \
30003 Parser/lexer \
30004 Programs \
30005 Python \
30006 Python/frozen_modules"
30007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
30008 printf %s "checking for build directories... " >&6; }
30009 for dir in $SRCDIRS; do
30010 if test ! -d $dir; then
30011 mkdir $dir
30012 fi
30013 done
30014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
30015 printf "%s\n" "done" >&6; }
30016
30017 # Availability of -O2:
30018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
30019 printf %s "checking for -O2... " >&6; }
30020 if test ${ac_cv_compile_o2+y}
30021 then :
30022 printf %s "(cached) " >&6
30023 else case e in #(
30024 e)
30025 saved_cflags="$CFLAGS"
30026 CFLAGS="-O2"
30027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30028 /* end confdefs.h. */
30029
30030 int
30031 main (void)
30032 {
30033
30034 ;
30035 return 0;
30036 }
30037 _ACEOF
30038 if ac_fn_c_try_compile "$LINENO"
30039 then :
30040 ac_cv_compile_o2=yes
30041 else case e in #(
30042 e) ac_cv_compile_o2=no ;;
30043 esac
30044 fi
30045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30046 CFLAGS="$saved_cflags"
30047 ;;
30048 esac
30049 fi
30050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
30051 printf "%s\n" "$ac_cv_compile_o2" >&6; }
30052
30053 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
30054 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
30056 printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
30057 saved_cflags="$CFLAGS"
30058 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
30059 if test "$ac_cv_compile_o2" = no; then
30060 CFLAGS=""
30061 fi
30062 if test "$cross_compiling" = yes
30063 then :
30064 have_glibc_memmove_bug=undefined
30065 else case e in #(
30066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30067 /* end confdefs.h. */
30068
30069 #include <stdio.h>
30070 #include <stdlib.h>
30071 #include <string.h>
30072 void foo(void *p, void *q) { memmove(p, q, 19); }
30073 int main(void) {
30074 char a[32] = "123456789000000000";
30075 foo(&a[9], a);
30076 if (strcmp(a, "123456789123456789000000000") != 0)
30077 return 1;
30078 foo(a, &a[9]);
30079 if (strcmp(a, "123456789000000000") != 0)
30080 return 1;
30081 return 0;
30082 }
30083
30084 _ACEOF
30085 if ac_fn_c_try_run "$LINENO"
30086 then :
30087 have_glibc_memmove_bug=no
30088 else case e in #(
30089 e) have_glibc_memmove_bug=yes ;;
30090 esac
30091 fi
30092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30093 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30094 esac
30095 fi
30096
30097 CFLAGS="$saved_cflags"
30098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
30099 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
30100 if test "$have_glibc_memmove_bug" = yes; then
30101
30102 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
30103
30104 fi
30105
30106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to manually block large inlining in ceval.c" >&5
30107 printf %s "checking if we need to manually block large inlining in ceval.c... " >&6; }
30108 if test "$cross_compiling" = yes
30109 then :
30110 block_huge_inlining_in_ceval=undefined
30111 else case e in #(
30112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30113 /* end confdefs.h. */
30114
30115 int main(void) {
30116 // See gh-148284: Clang 22 seems to have interactions with inlining
30117 // and the stackref buffer which cause 40 kB of stack usage on x86-64
30118 // in buggy versions of _PyEval_EvalFrameDefault() in computed goto
30119 // interpreter. The normal usage seen is normally 1-2 kB.
30120 #if defined(__clang__) && (__clang_major__ == 22)
30121 return 1;
30122 #else
30123 return 0;
30124 #endif
30125 }
30126
30127 _ACEOF
30128 if ac_fn_c_try_run "$LINENO"
30129 then :
30130 block_huge_inlining_in_ceval=no
30131 else case e in #(
30132 e) block_huge_inlining_in_ceval=yes ;;
30133 esac
30134 fi
30135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30136 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30137 esac
30138 fi
30139
30140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $block_huge_inlining_in_ceval" >&5
30141 printf "%s\n" "$block_huge_inlining_in_ceval" >&6; }
30142
30143 if test "$block_huge_inlining_in_ceval" = yes && test "$ac_cv_computed_gotos" = yes; then
30144 # gh-148284: Suppress inlining of functions whose stack size exceeds
30145 # 512 bytes. This number should be tuned to follow the C stack
30146 # consumption in _PyEval_EvalFrameDefault() on computed goto
30147 # interpreter.
30148 CFLAGS_CEVAL="$CFLAGS_CEVAL -finline-max-stacksize=512"
30149 fi
30150
30151
30152 if test "$ac_cv_gcc_asm_for_x87" = yes; then
30153 # Some versions of gcc miscompile inline asm:
30154 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
30155 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
30156 case $ac_cv_cc_name in
30157 gcc)
30158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
30159 printf %s "checking for gcc ipa-pure-const bug... " >&6; }
30160 saved_cflags="$CFLAGS"
30161 CFLAGS="-O2"
30162 if test "$cross_compiling" = yes
30163 then :
30164 have_ipa_pure_const_bug=undefined
30165 else case e in #(
30166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30167 /* end confdefs.h. */
30168
30169 __attribute__((noinline)) int
30170 foo(int *p) {
30171 int r;
30172 asm ( "movl \$6, (%1)\n\t"
30173 "xorl %0, %0\n\t"
30174 : "=r" (r) : "r" (p) : "memory"
30175 );
30176 return r;
30177 }
30178 int main(void) {
30179 int p = 8;
30180 if ((foo(&p) ? : p) != 6)
30181 return 1;
30182 return 0;
30183 }
30184
30185 _ACEOF
30186 if ac_fn_c_try_run "$LINENO"
30187 then :
30188 have_ipa_pure_const_bug=no
30189 else case e in #(
30190 e) have_ipa_pure_const_bug=yes ;;
30191 esac
30192 fi
30193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30194 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
30195 esac
30196 fi
30197
30198 CFLAGS="$saved_cflags"
30199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
30200 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
30201 if test "$have_ipa_pure_const_bug" = yes; then
30202
30203 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
30204
30205 fi
30206 ;;
30207 esac
30208 fi
30209
30210 # ensurepip option
30211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
30212 printf %s "checking for ensurepip... " >&6; }
30213
30214 # Check whether --with-ensurepip was given.
30215 if test ${with_ensurepip+y}
30216 then :
30217 withval=$with_ensurepip;
30218 else case e in #(
30219 e)
30220 case $ac_sys_system in #(
30221 Emscripten) :
30222 with_ensurepip=no ;; #(
30223 WASI) :
30224 with_ensurepip=no ;; #(
30225 iOS) :
30226 with_ensurepip=no ;; #(
30227 *) :
30228 with_ensurepip=upgrade
30229 ;;
30230 esac
30231 ;;
30232 esac
30233 fi
30234
30235 case $with_ensurepip in #(
30236 yes|upgrade) :
30237 ENSUREPIP=upgrade ;; #(
30238 install) :
30239 ENSUREPIP=install ;; #(
30240 no) :
30241 ENSUREPIP=no ;; #(
30242 *) :
30243 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
30244 esac
30245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
30246 printf "%s\n" "$ENSUREPIP" >&6; }
30247
30248
30249 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
30250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
30251 printf %s "checking if the dirent structure of a d_type field... " >&6; }
30252 if test ${ac_cv_dirent_d_type+y}
30253 then :
30254 printf %s "(cached) " >&6
30255 else case e in #(
30256 e)
30257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30258 /* end confdefs.h. */
30259
30260
30261 #include <dirent.h>
30262
30263 int main(void) {
30264 struct dirent entry;
30265 return entry.d_type == DT_UNKNOWN;
30266 }
30267
30268
30269 _ACEOF
30270 if ac_fn_c_try_link "$LINENO"
30271 then :
30272 ac_cv_dirent_d_type=yes
30273 else case e in #(
30274 e) ac_cv_dirent_d_type=no ;;
30275 esac
30276 fi
30277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30278 conftest$ac_exeext conftest.$ac_ext
30279 ;;
30280 esac
30281 fi
30282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
30283 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
30284
30285 if test "x$ac_cv_dirent_d_type" = xyes
30286 then :
30287
30288
30289 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
30290
30291
30292 fi
30293
30294 # check if the Linux getrandom() syscall is available
30295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
30296 printf %s "checking for the Linux getrandom() syscall... " >&6; }
30297 if test ${ac_cv_getrandom_syscall+y}
30298 then :
30299 printf %s "(cached) " >&6
30300 else case e in #(
30301 e)
30302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303 /* end confdefs.h. */
30304
30305
30306 #include <stddef.h>
30307 #include <unistd.h>
30308 #include <sys/syscall.h>
30309 #include <linux/random.h>
30310
30311 int main(void) {
30312 char buffer[1];
30313 const size_t buflen = sizeof(buffer);
30314 const int flags = GRND_NONBLOCK;
30315 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
30316 (void)syscall(SYS_getrandom, buffer, buflen, flags);
30317 return 0;
30318 }
30319
30320
30321 _ACEOF
30322 if ac_fn_c_try_link "$LINENO"
30323 then :
30324 ac_cv_getrandom_syscall=yes
30325 else case e in #(
30326 e) ac_cv_getrandom_syscall=no ;;
30327 esac
30328 fi
30329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30330 conftest$ac_exeext conftest.$ac_ext
30331 ;;
30332 esac
30333 fi
30334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
30335 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
30336
30337 if test "x$ac_cv_getrandom_syscall" = xyes
30338 then :
30339
30340
30341 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
30342
30343
30344 fi
30345
30346 # check if the getrandom() function is available
30347 # the test was written for the Solaris function of <sys/random.h>
30348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
30349 printf %s "checking for the getrandom() function... " >&6; }
30350 if test ${ac_cv_func_getrandom+y}
30351 then :
30352 printf %s "(cached) " >&6
30353 else case e in #(
30354 e)
30355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30356 /* end confdefs.h. */
30357
30358
30359 #include <stddef.h>
30360 #include <sys/random.h>
30361
30362 int main(void) {
30363 char buffer[1];
30364 const size_t buflen = sizeof(buffer);
30365 const int flags = 0;
30366 /* ignore the result, Python checks for ENOSYS at runtime */
30367 (void)getrandom(buffer, buflen, flags);
30368 return 0;
30369 }
30370
30371
30372 _ACEOF
30373 if ac_fn_c_try_link "$LINENO"
30374 then :
30375 ac_cv_func_getrandom=yes
30376 else case e in #(
30377 e) ac_cv_func_getrandom=no ;;
30378 esac
30379 fi
30380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30381 conftest$ac_exeext conftest.$ac_ext
30382 ;;
30383 esac
30384 fi
30385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
30386 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
30387
30388 if test "x$ac_cv_func_getrandom" = xyes
30389 then :
30390
30391
30392 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
30393
30394
30395 fi
30396
30397 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
30398 # shm_* may only be available if linking against librt
30399 POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing'
30400 save_CFLAGS=$CFLAGS
30401 save_CPPFLAGS=$CPPFLAGS
30402 save_LDFLAGS=$LDFLAGS
30403 save_LIBS=$LIBS
30404
30405
30406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
30407 printf %s "checking for library containing shm_open... " >&6; }
30408 if test ${ac_cv_search_shm_open+y}
30409 then :
30410 printf %s "(cached) " >&6
30411 else case e in #(
30412 e) ac_func_search_save_LIBS=$LIBS
30413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30414 /* end confdefs.h. */
30415
30416 /* Override any GCC internal prototype to avoid an error.
30417 Use char because int might match the return type of a GCC
30418 builtin and then its argument prototype would still apply.
30419 The 'extern "C"' is for builds by C++ compilers;
30420 although this is not generally supported in C code supporting it here
30421 has little cost and some practical benefit (sr 110532). */
30422 #ifdef __cplusplus
30423 extern "C"
30424 #endif
30425 char shm_open (void);
30426 int
30427 main (void)
30428 {
30429 return shm_open ();
30430 ;
30431 return 0;
30432 }
30433 _ACEOF
30434 for ac_lib in '' rt
30435 do
30436 if test -z "$ac_lib"; then
30437 ac_res="none required"
30438 else
30439 ac_res=-l$ac_lib
30440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30441 fi
30442 if ac_fn_c_try_link "$LINENO"
30443 then :
30444 ac_cv_search_shm_open=$ac_res
30445 fi
30446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30447 conftest$ac_exeext
30448 if test ${ac_cv_search_shm_open+y}
30449 then :
30450 break
30451 fi
30452 done
30453 if test ${ac_cv_search_shm_open+y}
30454 then :
30455
30456 else case e in #(
30457 e) ac_cv_search_shm_open=no ;;
30458 esac
30459 fi
30460 rm conftest.$ac_ext
30461 LIBS=$ac_func_search_save_LIBS ;;
30462 esac
30463 fi
30464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
30465 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
30466 ac_res=$ac_cv_search_shm_open
30467 if test "$ac_res" != no
30468 then :
30469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30470
30471 fi
30472
30473 if test "x$ac_cv_search_shm_open" = x-lrt
30474 then :
30475 POSIXSHMEM_LIBS="-lrt"
30476 fi
30477
30478 save_ac_includes_default=$ac_includes_default
30479 ac_includes_default="\
30480 ${ac_includes_default}
30481 #ifndef __cplusplus
30482 # ifdef HAVE_SYS_MMAN_H
30483 # include <sys/mman.h>
30484 # endif
30485 #endif
30486 "
30487
30488 for ac_func in shm_open shm_unlink
30489 do :
30490 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
30491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30492 if eval test \"x\$"$as_ac_var"\" = x"yes"
30493 then :
30494 cat >>confdefs.h <<_ACEOF
30495 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
30496 _ACEOF
30497 have_posix_shmem=yes
30498 else case e in #(
30499 e) have_posix_shmem=no ;;
30500 esac
30501 fi
30502
30503 done
30504 ac_includes_default=$save_ac_includes_default
30505
30506 CFLAGS=$save_CFLAGS
30507 CPPFLAGS=$save_CPPFLAGS
30508 LDFLAGS=$save_LDFLAGS
30509 LIBS=$save_LIBS
30510
30511
30512
30513 # Check for usable OpenSSL
30514
30515 found=false
30516
30517 # Check whether --with-openssl was given.
30518 if test ${with_openssl+y}
30519 then :
30520 withval=$with_openssl;
30521 case "$withval" in
30522 "" | y | ye | yes | n | no)
30523 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
30524 ;;
30525 *) ssldirs="$withval"
30526 ;;
30527 esac
30528
30529 else case e in #(
30530 e)
30531 # if pkg-config is installed and openssl has installed a .pc file,
30532 # then use that information and don't search ssldirs
30533 if test -n "$ac_tool_prefix"; then
30534 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30535 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30537 printf %s "checking for $ac_word... " >&6; }
30538 if test ${ac_cv_prog_PKG_CONFIG+y}
30539 then :
30540 printf %s "(cached) " >&6
30541 else case e in #(
30542 e) if test -n "$PKG_CONFIG"; then
30543 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
30544 else
30545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30546 for as_dir in $PATH
30547 do
30548 IFS=$as_save_IFS
30549 case $as_dir in #(((
30550 '') as_dir=./ ;;
30551 */) ;;
30552 *) as_dir=$as_dir/ ;;
30553 esac
30554 for ac_exec_ext in '' $ac_executable_extensions; do
30555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30556 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
30557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30558 break 2
30559 fi
30560 done
30561 done
30562 IFS=$as_save_IFS
30563
30564 fi ;;
30565 esac
30566 fi
30567 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
30568 if test -n "$PKG_CONFIG"; then
30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
30570 printf "%s\n" "$PKG_CONFIG" >&6; }
30571 else
30572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30573 printf "%s\n" "no" >&6; }
30574 fi
30575
30576
30577 fi
30578 if test -z "$ac_cv_prog_PKG_CONFIG"; then
30579 ac_ct_PKG_CONFIG=$PKG_CONFIG
30580 # Extract the first word of "pkg-config", so it can be a program name with args.
30581 set dummy pkg-config; ac_word=$2
30582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30583 printf %s "checking for $ac_word... " >&6; }
30584 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
30585 then :
30586 printf %s "(cached) " >&6
30587 else case e in #(
30588 e) if test -n "$ac_ct_PKG_CONFIG"; then
30589 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
30590 else
30591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30592 for as_dir in $PATH
30593 do
30594 IFS=$as_save_IFS
30595 case $as_dir in #(((
30596 '') as_dir=./ ;;
30597 */) ;;
30598 *) as_dir=$as_dir/ ;;
30599 esac
30600 for ac_exec_ext in '' $ac_executable_extensions; do
30601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30602 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
30603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30604 break 2
30605 fi
30606 done
30607 done
30608 IFS=$as_save_IFS
30609
30610 fi ;;
30611 esac
30612 fi
30613 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
30614 if test -n "$ac_ct_PKG_CONFIG"; then
30615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
30616 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
30617 else
30618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30619 printf "%s\n" "no" >&6; }
30620 fi
30621
30622 if test "x$ac_ct_PKG_CONFIG" = x; then
30623 PKG_CONFIG=""
30624 else
30625 case $cross_compiling:$ac_tool_warned in
30626 yes:)
30627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30629 ac_tool_warned=yes ;;
30630 esac
30631 PKG_CONFIG=$ac_ct_PKG_CONFIG
30632 fi
30633 else
30634 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
30635 fi
30636
30637 if test x"$PKG_CONFIG" != x""; then
30638 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
30639 if test $? = 0; then
30640 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
30641 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
30642 found=true
30643 fi
30644 fi
30645
30646 # no such luck; use some default ssldirs
30647 if ! $found; then
30648 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
30649 fi
30650
30651 ;;
30652 esac
30653 fi
30654
30655
30656
30657 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
30658 # an 'openssl' subdirectory
30659
30660 if ! $found; then
30661 OPENSSL_INCLUDES=
30662 for ssldir in $ssldirs; do
30663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
30664 printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
30665 if test -f "$ssldir/include/openssl/ssl.h"; then
30666 OPENSSL_INCLUDES="-I$ssldir/include"
30667 OPENSSL_LDFLAGS="-L$ssldir/lib"
30668 OPENSSL_LIBS="-lssl -lcrypto"
30669 found=true
30670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30671 printf "%s\n" "yes" >&6; }
30672 break
30673 else
30674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30675 printf "%s\n" "no" >&6; }
30676 fi
30677 done
30678
30679 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
30680 # it will just work!
30681 fi
30682
30683 # try the preprocessor and linker with our new flags,
30684 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
30685
30686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
30687 printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
30688 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
30689 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
30690
30691 save_LIBS="$LIBS"
30692 save_LDFLAGS="$LDFLAGS"
30693 save_CPPFLAGS="$CPPFLAGS"
30694 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
30695 LIBS="$OPENSSL_LIBS $LIBS"
30696 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
30697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30698 /* end confdefs.h. */
30699 #include <openssl/ssl.h>
30700 int
30701 main (void)
30702 {
30703 SSL_new(NULL)
30704 ;
30705 return 0;
30706 }
30707 _ACEOF
30708 if ac_fn_c_try_link "$LINENO"
30709 then :
30710
30711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30712 printf "%s\n" "yes" >&6; }
30713 have_openssl=yes
30714
30715 else case e in #(
30716 e)
30717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 printf "%s\n" "no" >&6; }
30719 have_openssl=no
30720 ;;
30721 esac
30722 fi
30723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30724 conftest$ac_exeext conftest.$ac_ext
30725 CPPFLAGS="$save_CPPFLAGS"
30726 LDFLAGS="$save_LDFLAGS"
30727 LIBS="$save_LIBS"
30728
30729
30730
30731
30732
30733
30734 # rpath to libssl and libcrypto
30735 if test "x$GNULD" = xyes
30736 then :
30737
30738 rpath_arg="-Wl,--enable-new-dtags,-rpath="
30739
30740 else case e in #(
30741 e)
30742 if test "$ac_sys_system" = "Darwin"
30743 then
30744 rpath_arg="-Wl,-rpath,"
30745 else
30746 rpath_arg="-Wl,-rpath="
30747 fi
30748 ;;
30749 esac
30750 fi
30751
30752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
30753 printf %s "checking for --with-openssl-rpath... " >&6; }
30754
30755 # Check whether --with-openssl-rpath was given.
30756 if test ${with_openssl_rpath+y}
30757 then :
30758 withval=$with_openssl_rpath;
30759 else case e in #(
30760 e) with_openssl_rpath=no
30761 ;;
30762 esac
30763 fi
30764
30765 case $with_openssl_rpath in #(
30766 auto|yes) :
30767
30768 OPENSSL_RPATH=auto
30769 for arg in "$OPENSSL_LDFLAGS"; do
30770 case $arg in #(
30771 -L*) :
30772 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
30773 ;; #(
30774 *) :
30775 ;;
30776 esac
30777 done
30778 ;; #(
30779 no) :
30780 OPENSSL_RPATH= ;; #(
30781 *) :
30782 if test -d "$with_openssl_rpath"
30783 then :
30784
30785 OPENSSL_RPATH="$with_openssl_rpath"
30786 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath"
30787
30788 else case e in #(
30789 e) as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 ;;
30790 esac
30791 fi
30792
30793 ;;
30794 esac
30795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
30796 printf "%s\n" "$OPENSSL_RPATH" >&6; }
30797
30798 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
30799 # Requires static OpenSSL build with position-independent code. Some features
30800 # like DSO engines or external OSSL providers don't work. Only tested with GCC
30801 # and clang on X86_64.
30802 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
30803 then :
30804
30805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
30806 printf %s "checking for unsupported static openssl build... " >&6; }
30807 new_OPENSSL_LIBS=
30808 for arg in $OPENSSL_LIBS; do
30809 case $arg in #(
30810 -l*) :
30811
30812 libname=$(echo $arg | cut -c3-)
30813 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
30814 ;; #(
30815 *) :
30816 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg"
30817 ;;
30818 esac
30819 done
30820 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS"
30821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
30822 printf "%s\n" "$OPENSSL_LIBS" >&6; }
30823
30824 fi
30825
30826 LIBCRYPTO_LIBS=
30827 for arg in $OPENSSL_LIBS; do
30828 case $arg in #(
30829 -l*ssl*|-Wl*ssl*) :
30830 ;; #(
30831 *) :
30832 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg"
30833 ;;
30834 esac
30835 done
30836
30837 # check if OpenSSL libraries work as expected
30838 save_CFLAGS=$CFLAGS
30839 save_CPPFLAGS=$CPPFLAGS
30840 save_LDFLAGS=$LDFLAGS
30841 save_LIBS=$LIBS
30842
30843
30844 LIBS="$LIBS $OPENSSL_LIBS"
30845 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
30846 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
30847
30848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
30849 printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; }
30850 if test ${ac_cv_working_openssl_ssl+y}
30851 then :
30852 printf %s "(cached) " >&6
30853 else case e in #(
30854 e)
30855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30856 /* end confdefs.h. */
30857
30858 #include <openssl/opensslv.h>
30859 #include <openssl/ssl.h>
30860 #if OPENSSL_VERSION_NUMBER < 0x10101000L
30861 #error "OpenSSL >= 1.1.1 is required"
30862 #endif
30863 static void keylog_cb(const SSL *ssl, const char *line) {}
30864
30865 int
30866 main (void)
30867 {
30868
30869 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
30870 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
30871 SSL *ssl = SSL_new(ctx);
30872 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
30873 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
30874 SSL_free(ssl);
30875 SSL_CTX_free(ctx);
30876
30877 ;
30878 return 0;
30879 }
30880 _ACEOF
30881 if ac_fn_c_try_link "$LINENO"
30882 then :
30883 ac_cv_working_openssl_ssl=yes
30884 else case e in #(
30885 e) ac_cv_working_openssl_ssl=no ;;
30886 esac
30887 fi
30888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30889 conftest$ac_exeext conftest.$ac_ext
30890 ;;
30891 esac
30892 fi
30893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
30894 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
30895
30896 CFLAGS=$save_CFLAGS
30897 CPPFLAGS=$save_CPPFLAGS
30898 LDFLAGS=$save_LDFLAGS
30899 LIBS=$save_LIBS
30900
30901
30902
30903 save_CFLAGS=$CFLAGS
30904 save_CPPFLAGS=$CPPFLAGS
30905 save_LDFLAGS=$LDFLAGS
30906 save_LIBS=$LIBS
30907
30908
30909 LIBS="$LIBS $LIBCRYPTO_LIBS"
30910 CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
30911 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
30912
30913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
30914 printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; }
30915 if test ${ac_cv_working_openssl_hashlib+y}
30916 then :
30917 printf %s "(cached) " >&6
30918 else case e in #(
30919 e)
30920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30921 /* end confdefs.h. */
30922
30923 #include <openssl/opensslv.h>
30924 #include <openssl/evp.h>
30925 #if OPENSSL_VERSION_NUMBER < 0x10101000L
30926 #error "OpenSSL >= 1.1.1 is required"
30927 #endif
30928
30929 int
30930 main (void)
30931 {
30932
30933 OBJ_nid2sn(NID_md5);
30934 OBJ_nid2sn(NID_sha1);
30935 OBJ_nid2sn(NID_sha3_512);
30936 OBJ_nid2sn(NID_blake2b512);
30937 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
30938
30939 ;
30940 return 0;
30941 }
30942 _ACEOF
30943 if ac_fn_c_try_link "$LINENO"
30944 then :
30945 ac_cv_working_openssl_hashlib=yes
30946 else case e in #(
30947 e) ac_cv_working_openssl_hashlib=no ;;
30948 esac
30949 fi
30950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30951 conftest$ac_exeext conftest.$ac_ext
30952 ;;
30953 esac
30954 fi
30955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
30956 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
30957
30958 CFLAGS=$save_CFLAGS
30959 CPPFLAGS=$save_CPPFLAGS
30960 LDFLAGS=$save_LDFLAGS
30961 LIBS=$save_LIBS
30962
30963
30964
30965 # ssl module default cipher suite string
30966
30967
30968
30969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
30970 printf %s "checking for --with-ssl-default-suites... " >&6; }
30971
30972 # Check whether --with-ssl-default-suites was given.
30973 if test ${with_ssl_default_suites+y}
30974 then :
30975 withval=$with_ssl_default_suites;
30976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
30977 printf "%s\n" "$withval" >&6; }
30978 case "$withval" in
30979 python)
30980 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
30981
30982 ;;
30983 openssl)
30984 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
30985
30986 ;;
30987 *)
30988 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
30989
30990 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
30991
30992 ;;
30993 esac
30994
30995 else case e in #(
30996 e)
30997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
30998 printf "%s\n" "python" >&6; }
30999 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
31000
31001 ;;
31002 esac
31003 fi
31004
31005
31006 # builtin hash modules
31007 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
31008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
31009 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
31010
31011 # Check whether --with-builtin-hashlib-hashes was given.
31012 if test ${with_builtin_hashlib_hashes+y}
31013 then :
31014 withval=$with_builtin_hashlib_hashes;
31015 case $with_builtin_hashlib_hashes in #(
31016 yes) :
31017 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #(
31018 no) :
31019 with_builtin_hashlib_hashes=""
31020 ;; #(
31021 *) :
31022 ;;
31023 esac
31024
31025 else case e in #(
31026 e) with_builtin_hashlib_hashes=$default_hashlib_hashes ;;
31027 esac
31028 fi
31029
31030
31031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
31032 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
31033
31034 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
31035
31036
31037 as_save_IFS=$IFS
31038 IFS=,
31039 for builtin_hash in $with_builtin_hashlib_hashes; do
31040 case $builtin_hash in #(
31041 md5) :
31042 with_builtin_md5=yes ;; #(
31043 sha1) :
31044 with_builtin_sha1=yes ;; #(
31045 sha2) :
31046 with_builtin_sha2=yes ;; #(
31047 sha3) :
31048 with_builtin_sha3=yes ;; #(
31049 blake2) :
31050 with_builtin_blake2=yes
31051 ;; #(
31052 *) :
31053 ;;
31054 esac
31055 done
31056 IFS=$as_save_IFS
31057
31058 # Check whether to disable test modules. Once set, setup.py will not build
31059 # test extension modules and "make install" will not install test suites.
31060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
31061 printf %s "checking for --disable-test-modules... " >&6; }
31062 # Check whether --enable-test-modules was given.
31063 if test ${enable_test_modules+y}
31064 then :
31065 enableval=$enable_test_modules;
31066 if test "x$enable_test_modules" = xyes
31067 then :
31068 TEST_MODULES=yes
31069 else case e in #(
31070 e) TEST_MODULES=no ;;
31071 esac
31072 fi
31073
31074 else case e in #(
31075 e) TEST_MODULES=yes ;;
31076 esac
31077 fi
31078
31079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
31080 printf "%s\n" "$TEST_MODULES" >&6; }
31081
31082
31083 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
31084 # On Linux aarch64, GCC may require programs and libraries to be linked
31085 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
31086 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
31087 # compiler flags.
31088 #
31089 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
31090 # and 2-byte operations, but not for 8-byte operations.
31091 #
31092 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
31093 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
31094 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
31095 # anymore. <pyport.h> cannot be included alone, it's designed to be included
31096 # by <Python.h>: it expects other includes and macros to be defined.
31097 save_CPPFLAGS=$CPPFLAGS
31098 CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
31099
31100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
31101 printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; }
31102 if test ${ac_cv_libatomic_needed+y}
31103 then :
31104 printf %s "(cached) " >&6
31105 else case e in #(
31106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31107 /* end confdefs.h. */
31108
31109 // pyatomic.h needs uint64_t and Py_ssize_t types
31110 #include <stdint.h> // int64_t, intptr_t
31111 #ifdef HAVE_SYS_TYPES_H
31112 # include <sys/types.h> // ssize_t
31113 #endif
31114 // Code adapted from Include/pyport.h
31115 #if HAVE_SSIZE_T
31116 typedef ssize_t Py_ssize_t;
31117 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
31118 typedef intptr_t Py_ssize_t;
31119 #else
31120 # error "unable to define Py_ssize_t"
31121 #endif
31122
31123 #include "pyatomic.h"
31124
31125 int main()
31126 {
31127 uint64_t value;
31128 _Py_atomic_store_uint64(&value, 2);
31129 if (_Py_atomic_or_uint64(&value, 8) != 2) {
31130 return 1; // error
31131 }
31132 if (_Py_atomic_load_uint64(&value) != 10) {
31133 return 1; // error
31134 }
31135 uint8_t byte = 0xb8;
31136 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
31137 return 1; // error
31138 }
31139 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
31140 return 1; // error
31141 }
31142 return 0; // all good
31143 }
31144
31145 _ACEOF
31146 if ac_fn_c_try_link "$LINENO"
31147 then :
31148 ac_cv_libatomic_needed=no
31149 else case e in #(
31150 e) ac_cv_libatomic_needed=yes ;;
31151 esac
31152 fi
31153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31154 conftest$ac_exeext conftest.$ac_ext ;;
31155 esac
31156 fi
31157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
31158 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
31159
31160 if test "x$ac_cv_libatomic_needed" = xyes
31161 then :
31162 LIBS="${LIBS} -latomic"
31163 LIBATOMIC=${LIBATOMIC-"-latomic"}
31164 fi
31165 CPPFLAGS=$save_CPPFLAGS
31166
31167
31168 # gh-59705: Maximum length in bytes of a thread name
31169 case "$ac_sys_system" in
31170 Linux*) _PYTHREAD_NAME_MAXLEN=15;; # Linux and Android
31171 SunOS*) _PYTHREAD_NAME_MAXLEN=31;;
31172 NetBSD*) _PYTHREAD_NAME_MAXLEN=15;; # gh-131268
31173 Darwin) _PYTHREAD_NAME_MAXLEN=63;;
31174 iOS) _PYTHREAD_NAME_MAXLEN=63;;
31175 FreeBSD*) _PYTHREAD_NAME_MAXLEN=19;; # gh-131268
31176 OpenBSD*) _PYTHREAD_NAME_MAXLEN=23;; # gh-131268
31177 *) _PYTHREAD_NAME_MAXLEN=;;
31178 esac
31179 if test -n "$_PYTHREAD_NAME_MAXLEN"; then
31180
31181 printf "%s\n" "#define _PYTHREAD_NAME_MAXLEN $_PYTHREAD_NAME_MAXLEN" >>confdefs.h
31182
31183 fi
31184
31185
31186
31187 # stdlib
31188
31189
31190 # stdlib not available
31191 case $ac_sys_system in #(
31192 AIX) :
31193
31194
31195 py_cv_module__scproxy=n/a
31196 ;; #(
31197 VxWorks*) :
31198
31199
31200 py_cv_module__scproxy=n/a
31201 py_cv_module_termios=n/a
31202 py_cv_module_grp=n/a
31203 ;; #(
31204 Darwin) :
31205 ;; #(
31206 iOS) :
31207
31208
31209
31210 py_cv_module__curses=n/a
31211 py_cv_module__curses_panel=n/a
31212 py_cv_module__gdbm=n/a
31213 py_cv_module__multiprocessing=n/a
31214 py_cv_module__posixshmem=n/a
31215 py_cv_module__posixsubprocess=n/a
31216 py_cv_module__scproxy=n/a
31217 py_cv_module__tkinter=n/a
31218 py_cv_module_grp=n/a
31219 py_cv_module_nis=n/a
31220 py_cv_module_readline=n/a
31221 py_cv_module_pwd=n/a
31222 py_cv_module_spwd=n/a
31223 py_cv_module_syslog=n/a
31224 py_cv_module_=n/a
31225
31226 ;; #(
31227 CYGWIN*) :
31228
31229
31230 py_cv_module__scproxy=n/a
31231 ;; #(
31232 QNX*) :
31233
31234
31235 py_cv_module__scproxy=n/a
31236 ;; #(
31237 FreeBSD*) :
31238
31239
31240 py_cv_module__scproxy=n/a
31241 ;; #(
31242 Emscripten) :
31243
31244
31245
31246 py_cv_module__curses=n/a
31247 py_cv_module__curses_panel=n/a
31248 py_cv_module__dbm=n/a
31249 py_cv_module__gdbm=n/a
31250 py_cv_module__multiprocessing=n/a
31251 py_cv_module__posixshmem=n/a
31252 py_cv_module__posixsubprocess=n/a
31253 py_cv_module__scproxy=n/a
31254 py_cv_module__tkinter=n/a
31255 py_cv_module__interpreters=n/a
31256 py_cv_module__interpchannels=n/a
31257 py_cv_module__interpqueues=n/a
31258 py_cv_module_grp=n/a
31259 py_cv_module_pwd=n/a
31260 py_cv_module_resource=n/a
31261 py_cv_module_syslog=n/a
31262 py_cv_module_=n/a
31263
31264
31265
31266 py_cv_module_readline=n/a
31267 py_cv_module_=n/a
31268
31269 ;; #(
31270 WASI) :
31271
31272
31273
31274 py_cv_module__curses=n/a
31275 py_cv_module__curses_panel=n/a
31276 py_cv_module__dbm=n/a
31277 py_cv_module__gdbm=n/a
31278 py_cv_module__multiprocessing=n/a
31279 py_cv_module__posixshmem=n/a
31280 py_cv_module__posixsubprocess=n/a
31281 py_cv_module__scproxy=n/a
31282 py_cv_module__tkinter=n/a
31283 py_cv_module__interpreters=n/a
31284 py_cv_module__interpchannels=n/a
31285 py_cv_module__interpqueues=n/a
31286 py_cv_module_grp=n/a
31287 py_cv_module_pwd=n/a
31288 py_cv_module_resource=n/a
31289 py_cv_module_syslog=n/a
31290 py_cv_module_=n/a
31291
31292
31293
31294 py_cv_module__ctypes_test=n/a
31295 py_cv_module__remote_debugging=n/a
31296 py_cv_module__testimportmultiple=n/a
31297 py_cv_module__testmultiphase=n/a
31298 py_cv_module__testsinglephase=n/a
31299 py_cv_module_fcntl=n/a
31300 py_cv_module_mmap=n/a
31301 py_cv_module_termios=n/a
31302 py_cv_module_xxlimited=n/a
31303 py_cv_module_xxlimited_35=n/a
31304 py_cv_module_=n/a
31305
31306 ;; #(
31307 *) :
31308
31309
31310 py_cv_module__scproxy=n/a
31311
31312 ;;
31313 esac
31314
31315
31316 case $host_cpu in #(
31317 wasm32|wasm64) :
31318 MODULE_BUILDTYPE=static ;; #(
31319 *) :
31320 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
31321 ;;
31322 esac
31323
31324
31325
31326 MODULE_BLOCK=
31327
31328
31329
31330
31331
31332
31333 if test "$py_cv_module__io" != "n/a"
31334 then :
31335 py_cv_module__io=yes
31336 fi
31337 if test "$py_cv_module__io" = yes; then
31338 MODULE__IO_TRUE=
31339 MODULE__IO_FALSE='#'
31340 else
31341 MODULE__IO_TRUE='#'
31342 MODULE__IO_FALSE=
31343 fi
31344
31345 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl"
31346 if test "x$py_cv_module__io" = xyes
31347 then :
31348
31349 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
31350
31351
31352 fi
31353
31354
31355 if test "$py_cv_module_time" != "n/a"
31356 then :
31357 py_cv_module_time=yes
31358 fi
31359 if test "$py_cv_module_time" = yes; then
31360 MODULE_TIME_TRUE=
31361 MODULE_TIME_FALSE='#'
31362 else
31363 MODULE_TIME_TRUE='#'
31364 MODULE_TIME_FALSE=
31365 fi
31366
31367 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl"
31368 if test "x$py_cv_module_time" = xyes
31369 then :
31370
31371
31372 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
31373
31374 fi
31375
31376
31377
31378 if test "$py_cv_module_array" != "n/a"
31379 then :
31380 py_cv_module_array=yes
31381 fi
31382 if test "$py_cv_module_array" = yes; then
31383 MODULE_ARRAY_TRUE=
31384 MODULE_ARRAY_FALSE='#'
31385 else
31386 MODULE_ARRAY_TRUE='#'
31387 MODULE_ARRAY_FALSE=
31388 fi
31389
31390 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
31391 if test "x$py_cv_module_array" = xyes
31392 then :
31393
31394
31395
31396
31397 fi
31398
31399
31400 if test "$py_cv_module__asyncio" != "n/a"
31401 then :
31402 py_cv_module__asyncio=yes
31403 fi
31404 if test "$py_cv_module__asyncio" = yes; then
31405 MODULE__ASYNCIO_TRUE=
31406 MODULE__ASYNCIO_FALSE='#'
31407 else
31408 MODULE__ASYNCIO_TRUE='#'
31409 MODULE__ASYNCIO_FALSE=
31410 fi
31411
31412 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
31413 if test "x$py_cv_module__asyncio" = xyes
31414 then :
31415
31416
31417
31418
31419 fi
31420
31421
31422 if test "$py_cv_module__bisect" != "n/a"
31423 then :
31424 py_cv_module__bisect=yes
31425 fi
31426 if test "$py_cv_module__bisect" = yes; then
31427 MODULE__BISECT_TRUE=
31428 MODULE__BISECT_FALSE='#'
31429 else
31430 MODULE__BISECT_TRUE='#'
31431 MODULE__BISECT_FALSE=
31432 fi
31433
31434 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
31435 if test "x$py_cv_module__bisect" = xyes
31436 then :
31437
31438
31439
31440
31441 fi
31442
31443
31444 if test "$py_cv_module__csv" != "n/a"
31445 then :
31446 py_cv_module__csv=yes
31447 fi
31448 if test "$py_cv_module__csv" = yes; then
31449 MODULE__CSV_TRUE=
31450 MODULE__CSV_FALSE='#'
31451 else
31452 MODULE__CSV_TRUE='#'
31453 MODULE__CSV_FALSE=
31454 fi
31455
31456 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
31457 if test "x$py_cv_module__csv" = xyes
31458 then :
31459
31460
31461
31462
31463 fi
31464
31465
31466 if test "$py_cv_module__heapq" != "n/a"
31467 then :
31468 py_cv_module__heapq=yes
31469 fi
31470 if test "$py_cv_module__heapq" = yes; then
31471 MODULE__HEAPQ_TRUE=
31472 MODULE__HEAPQ_FALSE='#'
31473 else
31474 MODULE__HEAPQ_TRUE='#'
31475 MODULE__HEAPQ_FALSE=
31476 fi
31477
31478 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
31479 if test "x$py_cv_module__heapq" = xyes
31480 then :
31481
31482
31483
31484
31485 fi
31486
31487
31488 if test "$py_cv_module__json" != "n/a"
31489 then :
31490 py_cv_module__json=yes
31491 fi
31492 if test "$py_cv_module__json" = yes; then
31493 MODULE__JSON_TRUE=
31494 MODULE__JSON_FALSE='#'
31495 else
31496 MODULE__JSON_TRUE='#'
31497 MODULE__JSON_FALSE=
31498 fi
31499
31500 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl"
31501 if test "x$py_cv_module__json" = xyes
31502 then :
31503
31504
31505
31506
31507 fi
31508
31509
31510 if test "$py_cv_module__lsprof" != "n/a"
31511 then :
31512 py_cv_module__lsprof=yes
31513 fi
31514 if test "$py_cv_module__lsprof" = yes; then
31515 MODULE__LSPROF_TRUE=
31516 MODULE__LSPROF_FALSE='#'
31517 else
31518 MODULE__LSPROF_TRUE='#'
31519 MODULE__LSPROF_FALSE=
31520 fi
31521
31522 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
31523 if test "x$py_cv_module__lsprof" = xyes
31524 then :
31525
31526
31527
31528
31529 fi
31530
31531
31532 if test "$py_cv_module__pickle" != "n/a"
31533 then :
31534 py_cv_module__pickle=yes
31535 fi
31536 if test "$py_cv_module__pickle" = yes; then
31537 MODULE__PICKLE_TRUE=
31538 MODULE__PICKLE_FALSE='#'
31539 else
31540 MODULE__PICKLE_TRUE='#'
31541 MODULE__PICKLE_FALSE=
31542 fi
31543
31544 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
31545 if test "x$py_cv_module__pickle" = xyes
31546 then :
31547
31548
31549
31550
31551 fi
31552
31553
31554 if test "$py_cv_module__posixsubprocess" != "n/a"
31555 then :
31556 py_cv_module__posixsubprocess=yes
31557 fi
31558 if test "$py_cv_module__posixsubprocess" = yes; then
31559 MODULE__POSIXSUBPROCESS_TRUE=
31560 MODULE__POSIXSUBPROCESS_FALSE='#'
31561 else
31562 MODULE__POSIXSUBPROCESS_TRUE='#'
31563 MODULE__POSIXSUBPROCESS_FALSE=
31564 fi
31565
31566 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
31567 if test "x$py_cv_module__posixsubprocess" = xyes
31568 then :
31569
31570
31571
31572
31573 fi
31574
31575
31576 if test "$py_cv_module__queue" != "n/a"
31577 then :
31578 py_cv_module__queue=yes
31579 fi
31580 if test "$py_cv_module__queue" = yes; then
31581 MODULE__QUEUE_TRUE=
31582 MODULE__QUEUE_FALSE='#'
31583 else
31584 MODULE__QUEUE_TRUE='#'
31585 MODULE__QUEUE_FALSE=
31586 fi
31587
31588 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
31589 if test "x$py_cv_module__queue" = xyes
31590 then :
31591
31592
31593
31594
31595 fi
31596
31597
31598 if test "$py_cv_module__random" != "n/a"
31599 then :
31600 py_cv_module__random=yes
31601 fi
31602 if test "$py_cv_module__random" = yes; then
31603 MODULE__RANDOM_TRUE=
31604 MODULE__RANDOM_FALSE='#'
31605 else
31606 MODULE__RANDOM_TRUE='#'
31607 MODULE__RANDOM_FALSE=
31608 fi
31609
31610 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
31611 if test "x$py_cv_module__random" = xyes
31612 then :
31613
31614
31615
31616
31617 fi
31618
31619
31620 if test "$py_cv_module__remote_debugging" != "n/a"
31621 then :
31622 py_cv_module__remote_debugging=yes
31623 fi
31624 if test "$py_cv_module__remote_debugging" = yes; then
31625 MODULE__REMOTE_DEBUGGING_TRUE=
31626 MODULE__REMOTE_DEBUGGING_FALSE='#'
31627 else
31628 MODULE__REMOTE_DEBUGGING_TRUE='#'
31629 MODULE__REMOTE_DEBUGGING_FALSE=
31630 fi
31631
31632 as_fn_append MODULE_BLOCK "MODULE__REMOTE_DEBUGGING_STATE=$py_cv_module__remote_debugging$as_nl"
31633 if test "x$py_cv_module__remote_debugging" = xyes
31634 then :
31635
31636
31637
31638
31639 fi
31640
31641
31642 if test "$py_cv_module_select" != "n/a"
31643 then :
31644 py_cv_module_select=yes
31645 fi
31646 if test "$py_cv_module_select" = yes; then
31647 MODULE_SELECT_TRUE=
31648 MODULE_SELECT_FALSE='#'
31649 else
31650 MODULE_SELECT_TRUE='#'
31651 MODULE_SELECT_FALSE=
31652 fi
31653
31654 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
31655 if test "x$py_cv_module_select" = xyes
31656 then :
31657
31658
31659
31660
31661 fi
31662
31663
31664 if test "$py_cv_module__struct" != "n/a"
31665 then :
31666 py_cv_module__struct=yes
31667 fi
31668 if test "$py_cv_module__struct" = yes; then
31669 MODULE__STRUCT_TRUE=
31670 MODULE__STRUCT_FALSE='#'
31671 else
31672 MODULE__STRUCT_TRUE='#'
31673 MODULE__STRUCT_FALSE=
31674 fi
31675
31676 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
31677 if test "x$py_cv_module__struct" = xyes
31678 then :
31679
31680
31681
31682
31683 fi
31684
31685
31686 if test "$py_cv_module__types" != "n/a"
31687 then :
31688 py_cv_module__types=yes
31689 fi
31690 if test "$py_cv_module__types" = yes; then
31691 MODULE__TYPES_TRUE=
31692 MODULE__TYPES_FALSE='#'
31693 else
31694 MODULE__TYPES_TRUE='#'
31695 MODULE__TYPES_FALSE=
31696 fi
31697
31698 as_fn_append MODULE_BLOCK "MODULE__TYPES_STATE=$py_cv_module__types$as_nl"
31699 if test "x$py_cv_module__types" = xyes
31700 then :
31701
31702
31703
31704
31705 fi
31706
31707
31708 if test "$py_cv_module__typing" != "n/a"
31709 then :
31710 py_cv_module__typing=yes
31711 fi
31712 if test "$py_cv_module__typing" = yes; then
31713 MODULE__TYPING_TRUE=
31714 MODULE__TYPING_FALSE='#'
31715 else
31716 MODULE__TYPING_TRUE='#'
31717 MODULE__TYPING_FALSE=
31718 fi
31719
31720 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
31721 if test "x$py_cv_module__typing" = xyes
31722 then :
31723
31724
31725
31726
31727 fi
31728
31729
31730 if test "$py_cv_module__interpreters" != "n/a"
31731 then :
31732 py_cv_module__interpreters=yes
31733 fi
31734 if test "$py_cv_module__interpreters" = yes; then
31735 MODULE__INTERPRETERS_TRUE=
31736 MODULE__INTERPRETERS_FALSE='#'
31737 else
31738 MODULE__INTERPRETERS_TRUE='#'
31739 MODULE__INTERPRETERS_FALSE=
31740 fi
31741
31742 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
31743 if test "x$py_cv_module__interpreters" = xyes
31744 then :
31745
31746
31747
31748
31749 fi
31750
31751
31752 if test "$py_cv_module__interpchannels" != "n/a"
31753 then :
31754 py_cv_module__interpchannels=yes
31755 fi
31756 if test "$py_cv_module__interpchannels" = yes; then
31757 MODULE__INTERPCHANNELS_TRUE=
31758 MODULE__INTERPCHANNELS_FALSE='#'
31759 else
31760 MODULE__INTERPCHANNELS_TRUE='#'
31761 MODULE__INTERPCHANNELS_FALSE=
31762 fi
31763
31764 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
31765 if test "x$py_cv_module__interpchannels" = xyes
31766 then :
31767
31768
31769
31770
31771 fi
31772
31773
31774 if test "$py_cv_module__interpqueues" != "n/a"
31775 then :
31776 py_cv_module__interpqueues=yes
31777 fi
31778 if test "$py_cv_module__interpqueues" = yes; then
31779 MODULE__INTERPQUEUES_TRUE=
31780 MODULE__INTERPQUEUES_FALSE='#'
31781 else
31782 MODULE__INTERPQUEUES_TRUE='#'
31783 MODULE__INTERPQUEUES_FALSE=
31784 fi
31785
31786 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
31787 if test "x$py_cv_module__interpqueues" = xyes
31788 then :
31789
31790
31791
31792
31793 fi
31794
31795
31796 if test "$py_cv_module__zoneinfo" != "n/a"
31797 then :
31798 py_cv_module__zoneinfo=yes
31799 fi
31800 if test "$py_cv_module__zoneinfo" = yes; then
31801 MODULE__ZONEINFO_TRUE=
31802 MODULE__ZONEINFO_FALSE='#'
31803 else
31804 MODULE__ZONEINFO_TRUE='#'
31805 MODULE__ZONEINFO_FALSE=
31806 fi
31807
31808 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
31809 if test "x$py_cv_module__zoneinfo" = xyes
31810 then :
31811
31812
31813
31814
31815 fi
31816
31817
31818
31819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
31820 printf %s "checking for stdlib extension module _multiprocessing... " >&6; }
31821 if test "$py_cv_module__multiprocessing" != "n/a"
31822 then :
31823
31824 if true
31825 then :
31826 if test "$ac_cv_func_sem_unlink" = "yes"
31827 then :
31828 py_cv_module__multiprocessing=yes
31829 else case e in #(
31830 e) py_cv_module__multiprocessing=missing ;;
31831 esac
31832 fi
31833 else case e in #(
31834 e) py_cv_module__multiprocessing=disabled ;;
31835 esac
31836 fi
31837
31838 fi
31839 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
31840 if test "x$py_cv_module__multiprocessing" = xyes
31841 then :
31842
31843 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
31844
31845
31846 fi
31847 if test "$py_cv_module__multiprocessing" = yes; then
31848 MODULE__MULTIPROCESSING_TRUE=
31849 MODULE__MULTIPROCESSING_FALSE='#'
31850 else
31851 MODULE__MULTIPROCESSING_TRUE='#'
31852 MODULE__MULTIPROCESSING_FALSE=
31853 fi
31854
31855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
31856 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
31857
31858
31859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
31860 printf %s "checking for stdlib extension module _posixshmem... " >&6; }
31861 if test "$py_cv_module__posixshmem" != "n/a"
31862 then :
31863
31864 if true
31865 then :
31866 if test "$have_posix_shmem" = "yes"
31867 then :
31868 py_cv_module__posixshmem=yes
31869 else case e in #(
31870 e) py_cv_module__posixshmem=missing ;;
31871 esac
31872 fi
31873 else case e in #(
31874 e) py_cv_module__posixshmem=disabled ;;
31875 esac
31876 fi
31877
31878 fi
31879 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
31880 if test "x$py_cv_module__posixshmem" = xyes
31881 then :
31882
31883 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
31884 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
31885
31886 fi
31887 if test "$py_cv_module__posixshmem" = yes; then
31888 MODULE__POSIXSHMEM_TRUE=
31889 MODULE__POSIXSHMEM_FALSE='#'
31890 else
31891 MODULE__POSIXSHMEM_TRUE='#'
31892 MODULE__POSIXSHMEM_FALSE=
31893 fi
31894
31895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
31896 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
31897
31898
31899
31900 if test "$py_cv_module__statistics" != "n/a"
31901 then :
31902 py_cv_module__statistics=yes
31903 fi
31904 if test "$py_cv_module__statistics" = yes; then
31905 MODULE__STATISTICS_TRUE=
31906 MODULE__STATISTICS_FALSE='#'
31907 else
31908 MODULE__STATISTICS_TRUE='#'
31909 MODULE__STATISTICS_FALSE=
31910 fi
31911
31912 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
31913 if test "x$py_cv_module__statistics" = xyes
31914 then :
31915
31916
31917 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
31918
31919 fi
31920
31921
31922 if test "$py_cv_module_cmath" != "n/a"
31923 then :
31924 py_cv_module_cmath=yes
31925 fi
31926 if test "$py_cv_module_cmath" = yes; then
31927 MODULE_CMATH_TRUE=
31928 MODULE_CMATH_FALSE='#'
31929 else
31930 MODULE_CMATH_TRUE='#'
31931 MODULE_CMATH_FALSE=
31932 fi
31933
31934 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
31935 if test "x$py_cv_module_cmath" = xyes
31936 then :
31937
31938
31939 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
31940
31941 fi
31942
31943
31944 if test "$py_cv_module_math" != "n/a"
31945 then :
31946 py_cv_module_math=yes
31947 fi
31948 if test "$py_cv_module_math" = yes; then
31949 MODULE_MATH_TRUE=
31950 MODULE_MATH_FALSE='#'
31951 else
31952 MODULE_MATH_TRUE='#'
31953 MODULE_MATH_FALSE=
31954 fi
31955
31956 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl"
31957 if test "x$py_cv_module_math" = xyes
31958 then :
31959
31960
31961 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl"
31962
31963 fi
31964
31965
31966
31967 if test "$py_cv_module__datetime" != "n/a"
31968 then :
31969 py_cv_module__datetime=yes
31970 fi
31971 if test "$py_cv_module__datetime" = yes; then
31972 MODULE__DATETIME_TRUE=
31973 MODULE__DATETIME_FALSE='#'
31974 else
31975 MODULE__DATETIME_TRUE='#'
31976 MODULE__DATETIME_FALSE=
31977 fi
31978
31979 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
31980 if test "x$py_cv_module__datetime" = xyes
31981 then :
31982
31983
31984 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
31985
31986 fi
31987
31988
31989
31990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
31991 printf %s "checking for stdlib extension module fcntl... " >&6; }
31992 if test "$py_cv_module_fcntl" != "n/a"
31993 then :
31994
31995 if true
31996 then :
31997 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
31998 then :
31999 py_cv_module_fcntl=yes
32000 else case e in #(
32001 e) py_cv_module_fcntl=missing ;;
32002 esac
32003 fi
32004 else case e in #(
32005 e) py_cv_module_fcntl=disabled ;;
32006 esac
32007 fi
32008
32009 fi
32010 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
32011 if test "x$py_cv_module_fcntl" = xyes
32012 then :
32013
32014
32015 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
32016
32017 fi
32018 if test "$py_cv_module_fcntl" = yes; then
32019 MODULE_FCNTL_TRUE=
32020 MODULE_FCNTL_FALSE='#'
32021 else
32022 MODULE_FCNTL_TRUE='#'
32023 MODULE_FCNTL_FALSE=
32024 fi
32025
32026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
32027 printf "%s\n" "$py_cv_module_fcntl" >&6; }
32028
32029
32030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
32031 printf %s "checking for stdlib extension module mmap... " >&6; }
32032 if test "$py_cv_module_mmap" != "n/a"
32033 then :
32034
32035 if true
32036 then :
32037 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
32038 then :
32039 py_cv_module_mmap=yes
32040 else case e in #(
32041 e) py_cv_module_mmap=missing ;;
32042 esac
32043 fi
32044 else case e in #(
32045 e) py_cv_module_mmap=disabled ;;
32046 esac
32047 fi
32048
32049 fi
32050 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
32051 if test "x$py_cv_module_mmap" = xyes
32052 then :
32053
32054
32055
32056
32057 fi
32058 if test "$py_cv_module_mmap" = yes; then
32059 MODULE_MMAP_TRUE=
32060 MODULE_MMAP_FALSE='#'
32061 else
32062 MODULE_MMAP_TRUE='#'
32063 MODULE_MMAP_FALSE=
32064 fi
32065
32066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
32067 printf "%s\n" "$py_cv_module_mmap" >&6; }
32068
32069
32070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
32071 printf %s "checking for stdlib extension module _socket... " >&6; }
32072 if test "$py_cv_module__socket" != "n/a"
32073 then :
32074
32075 if true
32076 then :
32077 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"
32078 then :
32079 py_cv_module__socket=yes
32080 else case e in #(
32081 e) py_cv_module__socket=missing ;;
32082 esac
32083 fi
32084 else case e in #(
32085 e) py_cv_module__socket=disabled ;;
32086 esac
32087 fi
32088
32089 fi
32090 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
32091 if test "x$py_cv_module__socket" = xyes
32092 then :
32093
32094
32095 as_fn_append MODULE_BLOCK "MODULE__SOCKET_LDFLAGS=$SOCKET_LIBS$as_nl"
32096
32097 fi
32098 if test "$py_cv_module__socket" = yes; then
32099 MODULE__SOCKET_TRUE=
32100 MODULE__SOCKET_FALSE='#'
32101 else
32102 MODULE__SOCKET_TRUE='#'
32103 MODULE__SOCKET_FALSE=
32104 fi
32105
32106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
32107 printf "%s\n" "$py_cv_module__socket" >&6; }
32108
32109
32110
32111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
32112 printf %s "checking for stdlib extension module grp... " >&6; }
32113 if test "$py_cv_module_grp" != "n/a"
32114 then :
32115
32116 if true
32117 then :
32118 if test "$ac_cv_func_getgrent" = "yes" &&
32119 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }
32120 then :
32121 py_cv_module_grp=yes
32122 else case e in #(
32123 e) py_cv_module_grp=missing ;;
32124 esac
32125 fi
32126 else case e in #(
32127 e) py_cv_module_grp=disabled ;;
32128 esac
32129 fi
32130
32131 fi
32132 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
32133 if test "x$py_cv_module_grp" = xyes
32134 then :
32135
32136
32137
32138
32139 fi
32140 if test "$py_cv_module_grp" = yes; then
32141 MODULE_GRP_TRUE=
32142 MODULE_GRP_FALSE='#'
32143 else
32144 MODULE_GRP_TRUE='#'
32145 MODULE_GRP_FALSE=
32146 fi
32147
32148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
32149 printf "%s\n" "$py_cv_module_grp" >&6; }
32150
32151
32152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
32153 printf %s "checking for stdlib extension module pwd... " >&6; }
32154 if test "$py_cv_module_pwd" != "n/a"
32155 then :
32156
32157 if true
32158 then :
32159 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
32160 then :
32161 py_cv_module_pwd=yes
32162 else case e in #(
32163 e) py_cv_module_pwd=missing ;;
32164 esac
32165 fi
32166 else case e in #(
32167 e) py_cv_module_pwd=disabled ;;
32168 esac
32169 fi
32170
32171 fi
32172 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
32173 if test "x$py_cv_module_pwd" = xyes
32174 then :
32175
32176
32177
32178
32179 fi
32180 if test "$py_cv_module_pwd" = yes; then
32181 MODULE_PWD_TRUE=
32182 MODULE_PWD_FALSE='#'
32183 else
32184 MODULE_PWD_TRUE='#'
32185 MODULE_PWD_FALSE=
32186 fi
32187
32188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
32189 printf "%s\n" "$py_cv_module_pwd" >&6; }
32190
32191
32192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
32193 printf %s "checking for stdlib extension module resource... " >&6; }
32194 if test "$py_cv_module_resource" != "n/a"
32195 then :
32196
32197 if true
32198 then :
32199 if test "$ac_cv_header_sys_resource_h" = yes
32200 then :
32201 py_cv_module_resource=yes
32202 else case e in #(
32203 e) py_cv_module_resource=missing ;;
32204 esac
32205 fi
32206 else case e in #(
32207 e) py_cv_module_resource=disabled ;;
32208 esac
32209 fi
32210
32211 fi
32212 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
32213 if test "x$py_cv_module_resource" = xyes
32214 then :
32215
32216
32217
32218
32219 fi
32220 if test "$py_cv_module_resource" = yes; then
32221 MODULE_RESOURCE_TRUE=
32222 MODULE_RESOURCE_FALSE='#'
32223 else
32224 MODULE_RESOURCE_TRUE='#'
32225 MODULE_RESOURCE_FALSE=
32226 fi
32227
32228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
32229 printf "%s\n" "$py_cv_module_resource" >&6; }
32230
32231
32232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
32233 printf %s "checking for stdlib extension module _scproxy... " >&6; }
32234 if test "$py_cv_module__scproxy" != "n/a"
32235 then :
32236
32237 if test "$ac_sys_system" = "Darwin"
32238 then :
32239 if true
32240 then :
32241 py_cv_module__scproxy=yes
32242 else case e in #(
32243 e) py_cv_module__scproxy=missing ;;
32244 esac
32245 fi
32246 else case e in #(
32247 e) py_cv_module__scproxy=disabled ;;
32248 esac
32249 fi
32250
32251 fi
32252 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
32253 if test "x$py_cv_module__scproxy" = xyes
32254 then :
32255
32256
32257 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
32258
32259 fi
32260 if test "$py_cv_module__scproxy" = yes; then
32261 MODULE__SCPROXY_TRUE=
32262 MODULE__SCPROXY_FALSE='#'
32263 else
32264 MODULE__SCPROXY_TRUE='#'
32265 MODULE__SCPROXY_FALSE=
32266 fi
32267
32268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
32269 printf "%s\n" "$py_cv_module__scproxy" >&6; }
32270
32271
32272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
32273 printf %s "checking for stdlib extension module syslog... " >&6; }
32274 if test "$py_cv_module_syslog" != "n/a"
32275 then :
32276
32277 if true
32278 then :
32279 if test "$ac_cv_header_syslog_h" = yes
32280 then :
32281 py_cv_module_syslog=yes
32282 else case e in #(
32283 e) py_cv_module_syslog=missing ;;
32284 esac
32285 fi
32286 else case e in #(
32287 e) py_cv_module_syslog=disabled ;;
32288 esac
32289 fi
32290
32291 fi
32292 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
32293 if test "x$py_cv_module_syslog" = xyes
32294 then :
32295
32296
32297
32298
32299 fi
32300 if test "$py_cv_module_syslog" = yes; then
32301 MODULE_SYSLOG_TRUE=
32302 MODULE_SYSLOG_FALSE='#'
32303 else
32304 MODULE_SYSLOG_TRUE='#'
32305 MODULE_SYSLOG_FALSE=
32306 fi
32307
32308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
32309 printf "%s\n" "$py_cv_module_syslog" >&6; }
32310
32311
32312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
32313 printf %s "checking for stdlib extension module termios... " >&6; }
32314 if test "$py_cv_module_termios" != "n/a"
32315 then :
32316
32317 if true
32318 then :
32319 if test "$ac_cv_header_termios_h" = yes
32320 then :
32321 py_cv_module_termios=yes
32322 else case e in #(
32323 e) py_cv_module_termios=missing ;;
32324 esac
32325 fi
32326 else case e in #(
32327 e) py_cv_module_termios=disabled ;;
32328 esac
32329 fi
32330
32331 fi
32332 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
32333 if test "x$py_cv_module_termios" = xyes
32334 then :
32335
32336
32337
32338
32339 fi
32340 if test "$py_cv_module_termios" = yes; then
32341 MODULE_TERMIOS_TRUE=
32342 MODULE_TERMIOS_FALSE='#'
32343 else
32344 MODULE_TERMIOS_TRUE='#'
32345 MODULE_TERMIOS_FALSE=
32346 fi
32347
32348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
32349 printf "%s\n" "$py_cv_module_termios" >&6; }
32350
32351
32352
32353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
32354 printf %s "checking for stdlib extension module pyexpat... " >&6; }
32355 if test "$py_cv_module_pyexpat" != "n/a"
32356 then :
32357
32358 if true
32359 then :
32360 if test "$ac_cv_header_sys_time_h" = "yes"
32361 then :
32362 py_cv_module_pyexpat=yes
32363 else case e in #(
32364 e) py_cv_module_pyexpat=missing ;;
32365 esac
32366 fi
32367 else case e in #(
32368 e) py_cv_module_pyexpat=disabled ;;
32369 esac
32370 fi
32371
32372 fi
32373 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
32374 if test "x$py_cv_module_pyexpat" = xyes
32375 then :
32376
32377 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
32378 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
32379
32380 fi
32381 if test "$py_cv_module_pyexpat" = yes; then
32382 MODULE_PYEXPAT_TRUE=
32383 MODULE_PYEXPAT_FALSE='#'
32384 else
32385 MODULE_PYEXPAT_TRUE='#'
32386 MODULE_PYEXPAT_FALSE=
32387 fi
32388
32389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
32390 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
32391
32392
32393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
32394 printf %s "checking for stdlib extension module _elementtree... " >&6; }
32395 if test "$py_cv_module__elementtree" != "n/a"
32396 then :
32397
32398 if true
32399 then :
32400 if true
32401 then :
32402 py_cv_module__elementtree=yes
32403 else case e in #(
32404 e) py_cv_module__elementtree=missing ;;
32405 esac
32406 fi
32407 else case e in #(
32408 e) py_cv_module__elementtree=disabled ;;
32409 esac
32410 fi
32411
32412 fi
32413 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
32414 if test "x$py_cv_module__elementtree" = xyes
32415 then :
32416
32417 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
32418
32419
32420 fi
32421 if test "$py_cv_module__elementtree" = yes; then
32422 MODULE__ELEMENTTREE_TRUE=
32423 MODULE__ELEMENTTREE_FALSE='#'
32424 else
32425 MODULE__ELEMENTTREE_TRUE='#'
32426 MODULE__ELEMENTTREE_FALSE=
32427 fi
32428
32429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
32430 printf "%s\n" "$py_cv_module__elementtree" >&6; }
32431
32432
32433 if test "$py_cv_module__codecs_cn" != "n/a"
32434 then :
32435 py_cv_module__codecs_cn=yes
32436 fi
32437 if test "$py_cv_module__codecs_cn" = yes; then
32438 MODULE__CODECS_CN_TRUE=
32439 MODULE__CODECS_CN_FALSE='#'
32440 else
32441 MODULE__CODECS_CN_TRUE='#'
32442 MODULE__CODECS_CN_FALSE=
32443 fi
32444
32445 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
32446 if test "x$py_cv_module__codecs_cn" = xyes
32447 then :
32448
32449
32450
32451
32452 fi
32453
32454
32455 if test "$py_cv_module__codecs_hk" != "n/a"
32456 then :
32457 py_cv_module__codecs_hk=yes
32458 fi
32459 if test "$py_cv_module__codecs_hk" = yes; then
32460 MODULE__CODECS_HK_TRUE=
32461 MODULE__CODECS_HK_FALSE='#'
32462 else
32463 MODULE__CODECS_HK_TRUE='#'
32464 MODULE__CODECS_HK_FALSE=
32465 fi
32466
32467 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
32468 if test "x$py_cv_module__codecs_hk" = xyes
32469 then :
32470
32471
32472
32473
32474 fi
32475
32476
32477 if test "$py_cv_module__codecs_iso2022" != "n/a"
32478 then :
32479 py_cv_module__codecs_iso2022=yes
32480 fi
32481 if test "$py_cv_module__codecs_iso2022" = yes; then
32482 MODULE__CODECS_ISO2022_TRUE=
32483 MODULE__CODECS_ISO2022_FALSE='#'
32484 else
32485 MODULE__CODECS_ISO2022_TRUE='#'
32486 MODULE__CODECS_ISO2022_FALSE=
32487 fi
32488
32489 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
32490 if test "x$py_cv_module__codecs_iso2022" = xyes
32491 then :
32492
32493
32494
32495
32496 fi
32497
32498
32499 if test "$py_cv_module__codecs_jp" != "n/a"
32500 then :
32501 py_cv_module__codecs_jp=yes
32502 fi
32503 if test "$py_cv_module__codecs_jp" = yes; then
32504 MODULE__CODECS_JP_TRUE=
32505 MODULE__CODECS_JP_FALSE='#'
32506 else
32507 MODULE__CODECS_JP_TRUE='#'
32508 MODULE__CODECS_JP_FALSE=
32509 fi
32510
32511 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
32512 if test "x$py_cv_module__codecs_jp" = xyes
32513 then :
32514
32515
32516
32517
32518 fi
32519
32520
32521 if test "$py_cv_module__codecs_kr" != "n/a"
32522 then :
32523 py_cv_module__codecs_kr=yes
32524 fi
32525 if test "$py_cv_module__codecs_kr" = yes; then
32526 MODULE__CODECS_KR_TRUE=
32527 MODULE__CODECS_KR_FALSE='#'
32528 else
32529 MODULE__CODECS_KR_TRUE='#'
32530 MODULE__CODECS_KR_FALSE=
32531 fi
32532
32533 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
32534 if test "x$py_cv_module__codecs_kr" = xyes
32535 then :
32536
32537
32538
32539
32540 fi
32541
32542
32543 if test "$py_cv_module__codecs_tw" != "n/a"
32544 then :
32545 py_cv_module__codecs_tw=yes
32546 fi
32547 if test "$py_cv_module__codecs_tw" = yes; then
32548 MODULE__CODECS_TW_TRUE=
32549 MODULE__CODECS_TW_FALSE='#'
32550 else
32551 MODULE__CODECS_TW_TRUE='#'
32552 MODULE__CODECS_TW_FALSE=
32553 fi
32554
32555 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
32556 if test "x$py_cv_module__codecs_tw" = xyes
32557 then :
32558
32559
32560
32561
32562 fi
32563
32564
32565 if test "$py_cv_module__multibytecodec" != "n/a"
32566 then :
32567 py_cv_module__multibytecodec=yes
32568 fi
32569 if test "$py_cv_module__multibytecodec" = yes; then
32570 MODULE__MULTIBYTECODEC_TRUE=
32571 MODULE__MULTIBYTECODEC_FALSE='#'
32572 else
32573 MODULE__MULTIBYTECODEC_TRUE='#'
32574 MODULE__MULTIBYTECODEC_FALSE=
32575 fi
32576
32577 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
32578 if test "x$py_cv_module__multibytecodec" = xyes
32579 then :
32580
32581
32582
32583
32584 fi
32585
32586
32587 if test "$py_cv_module_unicodedata" != "n/a"
32588 then :
32589 py_cv_module_unicodedata=yes
32590 fi
32591 if test "$py_cv_module_unicodedata" = yes; then
32592 MODULE_UNICODEDATA_TRUE=
32593 MODULE_UNICODEDATA_FALSE='#'
32594 else
32595 MODULE_UNICODEDATA_TRUE='#'
32596 MODULE_UNICODEDATA_FALSE=
32597 fi
32598
32599 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
32600 if test "x$py_cv_module_unicodedata" = xyes
32601 then :
32602
32603
32604
32605
32606 fi
32607
32608
32609 ###############################################################################
32610 # HACL* compilation and linking configuration (contact: @picnixz)
32611 #
32612 # Used by the HACL*-based implementations of cryptographic primitives.
32613 #
32614 # CPython provides a vendored copy of a subset of the HACL* project used
32615 # to build extension modules of cryptographic primitives. On WASI, HACL*
32616 # sources must be statically linked with the extension modules; on other
32617 # platforms, the extension modules may assume that HACL* has been compiled
32618 # as a shared library.
32619 #
32620 # Example for MD5:
32621 #
32622 # * Compile Modules/_hacl/Hacl_Hash_MD5.c into Modules/_hacl/Hacl_Hash_MD5.o.
32623 # * Decide whether the object files are to be passed to the linker (emulate
32624 # a shared library without having to install it) or if we need to create
32625 # a static library for WASI. The following summarizes the values taken by
32626 # the MODULE_<NAME>_LDFLAGS variable depending on the linkage type:
32627 # - shared: MODULE__MD5_LDFLAGS is set to LIBHACL_MD5_OBJS
32628 # - static: MODULE__MD5_LDFLAGS is set to Modules/_hacl/libHacl_Hash_MD5.a
32629 # * Compile Modules/md5module.c into Modules/md5module.o.
32630 # * Link Modules/md5module.o using $(MODULE__MD5_LDFLAGS)
32631 # and get Modules/_md5$(EXT_SUFFIX).
32632 #
32633 # LIBHACL_FLAG_I: '-I' flags passed to $(CC) for HACL* and HACL*-based modules
32634 # LIBHACL_FLAG_D: '-D' flags passed to $(CC) for HACL* and HACL*-based modules
32635 # LIBHACL_CFLAGS: compiler flags passed for HACL* and HACL*-based modules
32636 # LIBHACL_LDFLAGS: linker flags passed for HACL* and HACL*-based modules
32637 LIBHACL_FLAG_I='-I$(srcdir)/Modules/_hacl -I$(srcdir)/Modules/_hacl/include'
32638 LIBHACL_FLAG_D='-D_BSD_SOURCE -D_DEFAULT_SOURCE'
32639 case "$ac_sys_system" in
32640 Linux*)
32641 if test "$ac_cv_func_explicit_bzero" = "no"; then
32642 LIBHACL_FLAG_D="${LIBHACL_FLAG_D} -DLINUX_NO_EXPLICIT_BZERO"
32643 fi
32644 ;;
32645 esac
32646 LIBHACL_CFLAGS="${LIBHACL_FLAG_I} ${LIBHACL_FLAG_D} \$(PY_STDMODULE_CFLAGS) \$(CCSHARED)"
32647
32648 LIBHACL_LDFLAGS= # for now, no specific linker flags are needed
32649
32650
32651 if test "$UNIVERSAL_ARCHS" = "universal2" -o \
32652 \( "$build_cpu" = "aarch64" -a "$build_vendor" = "apple" \)
32653 then
32654 use_hacl_universal2_impl=yes
32655 else
32656 use_hacl_universal2_impl=no
32657 fi
32658
32659 # The SIMD files use aligned_alloc, which is not available on older versions of
32660 # Android.
32661 # The *mmintrin.h headers are x86-family-specific, so can't be used on WASI.
32662 if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || \
32663 { test -n "$ANDROID_API_LEVEL" && test "$ANDROID_API_LEVEL" -ge 28; }
32664 then
32665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse -msse2 -msse3 -msse4.1 -msse4.2" >&5
32666 printf %s "checking whether C compiler accepts -msse -msse2 -msse3 -msse4.1 -msse4.2... " >&6; }
32667 if test ${ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2+y}
32668 then :
32669 printf %s "(cached) " >&6
32670 else case e in #(
32671 e)
32672 ax_check_save_flags=$CFLAGS
32673 CFLAGS="$CFLAGS -Werror -msse -msse2 -msse3 -msse4.1 -msse4.2"
32674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32675 /* end confdefs.h. */
32676
32677 int
32678 main (void)
32679 {
32680
32681 ;
32682 return 0;
32683 }
32684 _ACEOF
32685 if ac_fn_c_try_compile "$LINENO"
32686 then :
32687 ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2=yes
32688 else case e in #(
32689 e) ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2=no ;;
32690 esac
32691 fi
32692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32693 CFLAGS=$ax_check_save_flags ;;
32694 esac
32695 fi
32696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" >&5
32697 printf "%s\n" "$ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" >&6; }
32698 if test "x$ax_cv_check_cflags__Werror__msse__msse2__msse3__msse4_1__msse4_2" = xyes
32699 then :
32700
32701 LIBHACL_SIMD128_FLAGS="-msse -msse2 -msse3 -msse4.1 -msse4.2"
32702
32703
32704 printf "%s\n" "#define _Py_HACL_CAN_COMPILE_VEC128 1" >>confdefs.h
32705
32706
32707 # macOS universal2 builds *support* the -msse etc flags because they're
32708 # available on x86_64. However, performance of the HACL SIMD128 implementation
32709 # isn't great, so it's disabled on ARM64.
32710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* SIMD128 implementation" >&5
32711 printf %s "checking for HACL* SIMD128 implementation... " >&6; }
32712 if test "$use_hacl_universal2_impl" = "yes"; then
32713 LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128_universal2.o"
32714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: universal2" >&5
32715 printf "%s\n" "universal2" >&6; }
32716 else
32717 LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128.o"
32718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: standard" >&5
32719 printf "%s\n" "standard" >&6; }
32720 fi
32721
32722
32723 else case e in #(
32724 e) : ;;
32725 esac
32726 fi
32727
32728 fi
32729
32730
32731
32732 # The SIMD files use aligned_alloc, which is not available on older versions of
32733 # Android.
32734 # The *mmintrin.h headers are x86-family-specific, so can't be used on WASI.
32735 #
32736 # Although AVX support is not guaranteed on Android
32737 # (https://developer.android.com/ndk/guides/abis#86-64), this is safe because we do a
32738 # runtime CPUID check.
32739 if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || \
32740 { test -n "$ANDROID_API_LEVEL" && test "$ANDROID_API_LEVEL" -ge 28; }
32741 then
32742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
32743 printf %s "checking whether C compiler accepts -mavx2... " >&6; }
32744 if test ${ax_cv_check_cflags__Werror__mavx2+y}
32745 then :
32746 printf %s "(cached) " >&6
32747 else case e in #(
32748 e)
32749 ax_check_save_flags=$CFLAGS
32750 CFLAGS="$CFLAGS -Werror -mavx2"
32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h. */
32753
32754 int
32755 main (void)
32756 {
32757
32758 ;
32759 return 0;
32760 }
32761 _ACEOF
32762 if ac_fn_c_try_compile "$LINENO"
32763 then :
32764 ax_cv_check_cflags__Werror__mavx2=yes
32765 else case e in #(
32766 e) ax_cv_check_cflags__Werror__mavx2=no ;;
32767 esac
32768 fi
32769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32770 CFLAGS=$ax_check_save_flags ;;
32771 esac
32772 fi
32773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5
32774 printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; }
32775 if test "x$ax_cv_check_cflags__Werror__mavx2" = xyes
32776 then :
32777
32778 LIBHACL_SIMD256_FLAGS="-mavx2"
32779
32780 printf "%s\n" "#define _Py_HACL_CAN_COMPILE_VEC256 1" >>confdefs.h
32781
32782
32783 # macOS universal2 builds *support* the -mavx2 compiler flag because it's
32784 # available on x86_64; but the HACL SIMD256 build then fails because the
32785 # implementation requires symbols that aren't available on ARM64. Use a
32786 # wrapped implementation if we're building for universal2.
32787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* SIMD256 implementation" >&5
32788 printf %s "checking for HACL* SIMD256 implementation... " >&6; }
32789 if test "$use_hacl_universal2_impl" = "yes"; then
32790 LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256_universal2.o"
32791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: universal2" >&5
32792 printf "%s\n" "universal2" >&6; }
32793 else
32794 LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256.o"
32795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: standard" >&5
32796 printf "%s\n" "standard" >&6; }
32797 fi
32798
32799 else case e in #(
32800 e) : ;;
32801 esac
32802 fi
32803
32804 fi
32805
32806
32807 ### end(HACL* configuration)
32808
32809 ###############################################################################
32810 # HACL*-based cryptographic primitives
32811
32812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HACL* library linking type" >&5
32813 printf %s "checking for HACL* library linking type... " >&6; }
32814 if test "$ac_sys_system" = "WASI" || test "$MODULE_BUILDTYPE" = "static"; then
32815 LIBHACL_LDEPS_LIBTYPE=STATIC
32816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
32817 printf "%s\n" "static" >&6; }
32818 else
32819 LIBHACL_LDEPS_LIBTYPE=SHARED
32820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
32821 printf "%s\n" "shared" >&6; }
32822 fi
32823 # Used to complete the "MODULE_<NAME>_LDEPS" Makefile variable.
32824 # The LDEPS variable is a Makefile rule prerequisite.
32825
32826
32827
32828
32829
32830
32831 LIBHACL_MD5_LDFLAGS=LIBHACL_MD5_LIB_${LIBHACL_LDEPS_LIBTYPE}
32832
32833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
32834 printf %s "checking for stdlib extension module _md5... " >&6; }
32835 if test "$py_cv_module__md5" != "n/a"
32836 then :
32837
32838 if test "$with_builtin_md5" = yes
32839 then :
32840 if true
32841 then :
32842 py_cv_module__md5=yes
32843 else case e in #(
32844 e) py_cv_module__md5=missing ;;
32845 esac
32846 fi
32847 else case e in #(
32848 e) py_cv_module__md5=disabled ;;
32849 esac
32850 fi
32851
32852 fi
32853 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
32854 if test "x$py_cv_module__md5" = xyes
32855 then :
32856
32857 as_fn_append MODULE_BLOCK "MODULE__MD5_CFLAGS=$LIBHACL_CFLAGS$as_nl"
32858 as_fn_append MODULE_BLOCK "MODULE__MD5_LDFLAGS=\$($LIBHACL_MD5_LDFLAGS)$as_nl"
32859
32860 fi
32861 if test "$py_cv_module__md5" = yes; then
32862 MODULE__MD5_TRUE=
32863 MODULE__MD5_FALSE='#'
32864 else
32865 MODULE__MD5_TRUE='#'
32866 MODULE__MD5_FALSE=
32867 fi
32868
32869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
32870 printf "%s\n" "$py_cv_module__md5" >&6; }
32871
32872
32873
32874
32875
32876 LIBHACL_SHA1_LDFLAGS=LIBHACL_SHA1_LIB_${LIBHACL_LDEPS_LIBTYPE}
32877
32878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
32879 printf %s "checking for stdlib extension module _sha1... " >&6; }
32880 if test "$py_cv_module__sha1" != "n/a"
32881 then :
32882
32883 if test "$with_builtin_sha1" = yes
32884 then :
32885 if true
32886 then :
32887 py_cv_module__sha1=yes
32888 else case e in #(
32889 e) py_cv_module__sha1=missing ;;
32890 esac
32891 fi
32892 else case e in #(
32893 e) py_cv_module__sha1=disabled ;;
32894 esac
32895 fi
32896
32897 fi
32898 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
32899 if test "x$py_cv_module__sha1" = xyes
32900 then :
32901
32902 as_fn_append MODULE_BLOCK "MODULE__SHA1_CFLAGS=$LIBHACL_CFLAGS$as_nl"
32903 as_fn_append MODULE_BLOCK "MODULE__SHA1_LDFLAGS=\$($LIBHACL_SHA1_LDFLAGS)$as_nl"
32904
32905 fi
32906 if test "$py_cv_module__sha1" = yes; then
32907 MODULE__SHA1_TRUE=
32908 MODULE__SHA1_FALSE='#'
32909 else
32910 MODULE__SHA1_TRUE='#'
32911 MODULE__SHA1_FALSE=
32912 fi
32913
32914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
32915 printf "%s\n" "$py_cv_module__sha1" >&6; }
32916
32917
32918
32919
32920
32921 LIBHACL_SHA2_LDFLAGS=LIBHACL_SHA2_LIB_${LIBHACL_LDEPS_LIBTYPE}
32922
32923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
32924 printf %s "checking for stdlib extension module _sha2... " >&6; }
32925 if test "$py_cv_module__sha2" != "n/a"
32926 then :
32927
32928 if test "$with_builtin_sha2" = yes
32929 then :
32930 if true
32931 then :
32932 py_cv_module__sha2=yes
32933 else case e in #(
32934 e) py_cv_module__sha2=missing ;;
32935 esac
32936 fi
32937 else case e in #(
32938 e) py_cv_module__sha2=disabled ;;
32939 esac
32940 fi
32941
32942 fi
32943 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
32944 if test "x$py_cv_module__sha2" = xyes
32945 then :
32946
32947 as_fn_append MODULE_BLOCK "MODULE__SHA2_CFLAGS=$LIBHACL_CFLAGS$as_nl"
32948 as_fn_append MODULE_BLOCK "MODULE__SHA2_LDFLAGS=\$($LIBHACL_SHA2_LDFLAGS)$as_nl"
32949
32950 fi
32951 if test "$py_cv_module__sha2" = yes; then
32952 MODULE__SHA2_TRUE=
32953 MODULE__SHA2_FALSE='#'
32954 else
32955 MODULE__SHA2_TRUE='#'
32956 MODULE__SHA2_FALSE=
32957 fi
32958
32959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
32960 printf "%s\n" "$py_cv_module__sha2" >&6; }
32961
32962
32963
32964
32965
32966 LIBHACL_SHA3_LDFLAGS=LIBHACL_SHA3_LIB_${LIBHACL_LDEPS_LIBTYPE}
32967
32968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
32969 printf %s "checking for stdlib extension module _sha3... " >&6; }
32970 if test "$py_cv_module__sha3" != "n/a"
32971 then :
32972
32973 if test "$with_builtin_sha3" = yes
32974 then :
32975 if true
32976 then :
32977 py_cv_module__sha3=yes
32978 else case e in #(
32979 e) py_cv_module__sha3=missing ;;
32980 esac
32981 fi
32982 else case e in #(
32983 e) py_cv_module__sha3=disabled ;;
32984 esac
32985 fi
32986
32987 fi
32988 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
32989 if test "x$py_cv_module__sha3" = xyes
32990 then :
32991
32992 as_fn_append MODULE_BLOCK "MODULE__SHA3_CFLAGS=$LIBHACL_CFLAGS$as_nl"
32993 as_fn_append MODULE_BLOCK "MODULE__SHA3_LDFLAGS=\$($LIBHACL_SHA3_LDFLAGS)$as_nl"
32994
32995 fi
32996 if test "$py_cv_module__sha3" = yes; then
32997 MODULE__SHA3_TRUE=
32998 MODULE__SHA3_FALSE='#'
32999 else
33000 MODULE__SHA3_TRUE='#'
33001 MODULE__SHA3_FALSE=
33002 fi
33003
33004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
33005 printf "%s\n" "$py_cv_module__sha3" >&6; }
33006
33007
33008
33009
33010
33011 LIBHACL_BLAKE2_LDFLAGS=LIBHACL_BLAKE2_LIB_${LIBHACL_LDEPS_LIBTYPE}
33012
33013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
33014 printf %s "checking for stdlib extension module _blake2... " >&6; }
33015 if test "$py_cv_module__blake2" != "n/a"
33016 then :
33017
33018 if test "$with_builtin_blake2" = yes
33019 then :
33020 if true
33021 then :
33022 py_cv_module__blake2=yes
33023 else case e in #(
33024 e) py_cv_module__blake2=missing ;;
33025 esac
33026 fi
33027 else case e in #(
33028 e) py_cv_module__blake2=disabled ;;
33029 esac
33030 fi
33031
33032 fi
33033 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
33034 if test "x$py_cv_module__blake2" = xyes
33035 then :
33036
33037 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33038 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=\$($LIBHACL_BLAKE2_LDFLAGS)$as_nl"
33039
33040 fi
33041 if test "$py_cv_module__blake2" = yes; then
33042 MODULE__BLAKE2_TRUE=
33043 MODULE__BLAKE2_FALSE='#'
33044 else
33045 MODULE__BLAKE2_TRUE='#'
33046 MODULE__BLAKE2_FALSE=
33047 fi
33048
33049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
33050 printf "%s\n" "$py_cv_module__blake2" >&6; }
33051
33052
33053
33054
33055
33056
33057 LIBHACL_HMAC_LDFLAGS=LIBHACL_HMAC_LIB_${LIBHACL_LDEPS_LIBTYPE}
33058
33059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hmac" >&5
33060 printf %s "checking for stdlib extension module _hmac... " >&6; }
33061 if test "$py_cv_module__hmac" != "n/a"
33062 then :
33063
33064 if test "$ac_sys_system" != "Emscripten"
33065 then :
33066 if true
33067 then :
33068 py_cv_module__hmac=yes
33069 else case e in #(
33070 e) py_cv_module__hmac=missing ;;
33071 esac
33072 fi
33073 else case e in #(
33074 e) py_cv_module__hmac=disabled ;;
33075 esac
33076 fi
33077
33078 fi
33079 as_fn_append MODULE_BLOCK "MODULE__HMAC_STATE=$py_cv_module__hmac$as_nl"
33080 if test "x$py_cv_module__hmac" = xyes
33081 then :
33082
33083 as_fn_append MODULE_BLOCK "MODULE__HMAC_CFLAGS=$LIBHACL_CFLAGS$as_nl"
33084 as_fn_append MODULE_BLOCK "MODULE__HMAC_LDFLAGS=\$($LIBHACL_HMAC_LDFLAGS)$as_nl"
33085
33086 fi
33087 if test "$py_cv_module__hmac" = yes; then
33088 MODULE__HMAC_TRUE=
33089 MODULE__HMAC_FALSE='#'
33090 else
33091 MODULE__HMAC_TRUE='#'
33092 MODULE__HMAC_FALSE=
33093 fi
33094
33095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hmac" >&5
33096 printf "%s\n" "$py_cv_module__hmac" >&6; }
33097
33098
33099
33100 ### end(cryptographic primitives)
33101
33102
33103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
33104 printf %s "checking for stdlib extension module _ctypes... " >&6; }
33105 if test "$py_cv_module__ctypes" != "n/a"
33106 then :
33107
33108 if true
33109 then :
33110 if test "$have_libffi" = yes
33111 then :
33112 py_cv_module__ctypes=yes
33113 else case e in #(
33114 e) py_cv_module__ctypes=missing ;;
33115 esac
33116 fi
33117 else case e in #(
33118 e) py_cv_module__ctypes=disabled ;;
33119 esac
33120 fi
33121
33122 fi
33123 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
33124 if test "x$py_cv_module__ctypes" = xyes
33125 then :
33126
33127 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
33128 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
33129
33130 fi
33131 if test "$py_cv_module__ctypes" = yes; then
33132 MODULE__CTYPES_TRUE=
33133 MODULE__CTYPES_FALSE='#'
33134 else
33135 MODULE__CTYPES_TRUE='#'
33136 MODULE__CTYPES_FALSE=
33137 fi
33138
33139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
33140 printf "%s\n" "$py_cv_module__ctypes" >&6; }
33141
33142
33143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
33144 printf %s "checking for stdlib extension module _curses... " >&6; }
33145 if test "$py_cv_module__curses" != "n/a"
33146 then :
33147
33148 if true
33149 then :
33150 if test "$have_curses" = "yes"
33151 then :
33152 py_cv_module__curses=yes
33153 else case e in #(
33154 e) py_cv_module__curses=missing ;;
33155 esac
33156 fi
33157 else case e in #(
33158 e) py_cv_module__curses=disabled ;;
33159 esac
33160 fi
33161
33162 fi
33163 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
33164 if test "x$py_cv_module__curses" = xyes
33165 then :
33166
33167 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
33168 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS
33169 $as_nl"
33170
33171 fi
33172 if test "$py_cv_module__curses" = yes; then
33173 MODULE__CURSES_TRUE=
33174 MODULE__CURSES_FALSE='#'
33175 else
33176 MODULE__CURSES_TRUE='#'
33177 MODULE__CURSES_FALSE=
33178 fi
33179
33180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
33181 printf "%s\n" "$py_cv_module__curses" >&6; }
33182
33183
33184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
33185 printf %s "checking for stdlib extension module _curses_panel... " >&6; }
33186 if test "$py_cv_module__curses_panel" != "n/a"
33187 then :
33188
33189 if true
33190 then :
33191 if test "$have_curses" = "yes" && test "$have_panel" = "yes"
33192 then :
33193 py_cv_module__curses_panel=yes
33194 else case e in #(
33195 e) py_cv_module__curses_panel=missing ;;
33196 esac
33197 fi
33198 else case e in #(
33199 e) py_cv_module__curses_panel=disabled ;;
33200 esac
33201 fi
33202
33203 fi
33204 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
33205 if test "x$py_cv_module__curses_panel" = xyes
33206 then :
33207
33208 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
33209 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
33210 $as_nl"
33211
33212 fi
33213 if test "$py_cv_module__curses_panel" = yes; then
33214 MODULE__CURSES_PANEL_TRUE=
33215 MODULE__CURSES_PANEL_FALSE='#'
33216 else
33217 MODULE__CURSES_PANEL_TRUE='#'
33218 MODULE__CURSES_PANEL_FALSE=
33219 fi
33220
33221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
33222 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
33223
33224
33225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
33226 printf %s "checking for stdlib extension module _decimal... " >&6; }
33227 if test "$py_cv_module__decimal" != "n/a"
33228 then :
33229
33230 if true
33231 then :
33232 if test "$have_mpdec" = "yes"
33233 then :
33234 py_cv_module__decimal=yes
33235 else case e in #(
33236 e) py_cv_module__decimal=missing ;;
33237 esac
33238 fi
33239 else case e in #(
33240 e) py_cv_module__decimal=disabled ;;
33241 esac
33242 fi
33243
33244 fi
33245 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
33246 if test "x$py_cv_module__decimal" = xyes
33247 then :
33248
33249 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
33250 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
33251
33252 fi
33253 if test "$py_cv_module__decimal" = yes; then
33254 MODULE__DECIMAL_TRUE=
33255 MODULE__DECIMAL_FALSE='#'
33256 else
33257 MODULE__DECIMAL_TRUE='#'
33258 MODULE__DECIMAL_FALSE=
33259 fi
33260
33261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
33262 printf "%s\n" "$py_cv_module__decimal" >&6; }
33263
33264
33265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
33266 printf %s "checking for stdlib extension module _dbm... " >&6; }
33267 if test "$py_cv_module__dbm" != "n/a"
33268 then :
33269
33270 if test -n "$with_dbmliborder"
33271 then :
33272 if test "$have_dbm" != "no"
33273 then :
33274 py_cv_module__dbm=yes
33275 else case e in #(
33276 e) py_cv_module__dbm=missing ;;
33277 esac
33278 fi
33279 else case e in #(
33280 e) py_cv_module__dbm=disabled ;;
33281 esac
33282 fi
33283
33284 fi
33285 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
33286 if test "x$py_cv_module__dbm" = xyes
33287 then :
33288
33289 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
33290 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
33291
33292 fi
33293 if test "$py_cv_module__dbm" = yes; then
33294 MODULE__DBM_TRUE=
33295 MODULE__DBM_FALSE='#'
33296 else
33297 MODULE__DBM_TRUE='#'
33298 MODULE__DBM_FALSE=
33299 fi
33300
33301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
33302 printf "%s\n" "$py_cv_module__dbm" >&6; }
33303
33304
33305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
33306 printf %s "checking for stdlib extension module _gdbm... " >&6; }
33307 if test "$py_cv_module__gdbm" != "n/a"
33308 then :
33309
33310 if test "$have_gdbm_dbmliborder" = yes
33311 then :
33312 if test "$have_gdbm" = yes
33313 then :
33314 py_cv_module__gdbm=yes
33315 else case e in #(
33316 e) py_cv_module__gdbm=missing ;;
33317 esac
33318 fi
33319 else case e in #(
33320 e) py_cv_module__gdbm=disabled ;;
33321 esac
33322 fi
33323
33324 fi
33325 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
33326 if test "x$py_cv_module__gdbm" = xyes
33327 then :
33328
33329 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
33330 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
33331
33332 fi
33333 if test "$py_cv_module__gdbm" = yes; then
33334 MODULE__GDBM_TRUE=
33335 MODULE__GDBM_FALSE='#'
33336 else
33337 MODULE__GDBM_TRUE='#'
33338 MODULE__GDBM_FALSE=
33339 fi
33340
33341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
33342 printf "%s\n" "$py_cv_module__gdbm" >&6; }
33343
33344
33345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
33346 printf %s "checking for stdlib extension module readline... " >&6; }
33347 if test "$py_cv_module_readline" != "n/a"
33348 then :
33349
33350 if true
33351 then :
33352 if test "$with_readline" != "no"
33353 then :
33354 py_cv_module_readline=yes
33355 else case e in #(
33356 e) py_cv_module_readline=missing ;;
33357 esac
33358 fi
33359 else case e in #(
33360 e) py_cv_module_readline=disabled ;;
33361 esac
33362 fi
33363
33364 fi
33365 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
33366 if test "x$py_cv_module_readline" = xyes
33367 then :
33368
33369 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
33370 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
33371
33372 fi
33373 if test "$py_cv_module_readline" = yes; then
33374 MODULE_READLINE_TRUE=
33375 MODULE_READLINE_FALSE='#'
33376 else
33377 MODULE_READLINE_TRUE='#'
33378 MODULE_READLINE_FALSE=
33379 fi
33380
33381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
33382 printf "%s\n" "$py_cv_module_readline" >&6; }
33383
33384
33385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
33386 printf %s "checking for stdlib extension module _sqlite3... " >&6; }
33387 if test "$py_cv_module__sqlite3" != "n/a"
33388 then :
33389
33390 if test "$have_sqlite3" = "yes"
33391 then :
33392 if test "$have_supported_sqlite3" = "yes"
33393 then :
33394 py_cv_module__sqlite3=yes
33395 else case e in #(
33396 e) py_cv_module__sqlite3=missing ;;
33397 esac
33398 fi
33399 else case e in #(
33400 e) py_cv_module__sqlite3=disabled ;;
33401 esac
33402 fi
33403
33404 fi
33405 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
33406 if test "x$py_cv_module__sqlite3" = xyes
33407 then :
33408
33409 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
33410 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
33411
33412 fi
33413 if test "$py_cv_module__sqlite3" = yes; then
33414 MODULE__SQLITE3_TRUE=
33415 MODULE__SQLITE3_FALSE='#'
33416 else
33417 MODULE__SQLITE3_TRUE='#'
33418 MODULE__SQLITE3_FALSE=
33419 fi
33420
33421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
33422 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
33423
33424
33425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
33426 printf %s "checking for stdlib extension module _tkinter... " >&6; }
33427 if test "$py_cv_module__tkinter" != "n/a"
33428 then :
33429
33430 if true
33431 then :
33432 if test "$have_tcltk" = "yes"
33433 then :
33434 py_cv_module__tkinter=yes
33435 else case e in #(
33436 e) py_cv_module__tkinter=missing ;;
33437 esac
33438 fi
33439 else case e in #(
33440 e) py_cv_module__tkinter=disabled ;;
33441 esac
33442 fi
33443
33444 fi
33445 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
33446 if test "x$py_cv_module__tkinter" = xyes
33447 then :
33448
33449 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
33450 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
33451
33452 fi
33453 if test "$py_cv_module__tkinter" = yes; then
33454 MODULE__TKINTER_TRUE=
33455 MODULE__TKINTER_FALSE='#'
33456 else
33457 MODULE__TKINTER_TRUE='#'
33458 MODULE__TKINTER_FALSE=
33459 fi
33460
33461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
33462 printf "%s\n" "$py_cv_module__tkinter" >&6; }
33463
33464
33465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
33466 printf %s "checking for stdlib extension module _uuid... " >&6; }
33467 if test "$py_cv_module__uuid" != "n/a"
33468 then :
33469
33470 if true
33471 then :
33472 if test "$have_uuid" = "yes"
33473 then :
33474 py_cv_module__uuid=yes
33475 else case e in #(
33476 e) py_cv_module__uuid=missing ;;
33477 esac
33478 fi
33479 else case e in #(
33480 e) py_cv_module__uuid=disabled ;;
33481 esac
33482 fi
33483
33484 fi
33485 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
33486 if test "x$py_cv_module__uuid" = xyes
33487 then :
33488
33489 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
33490 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
33491
33492 fi
33493 if test "$py_cv_module__uuid" = yes; then
33494 MODULE__UUID_TRUE=
33495 MODULE__UUID_FALSE='#'
33496 else
33497 MODULE__UUID_TRUE='#'
33498 MODULE__UUID_FALSE=
33499 fi
33500
33501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
33502 printf "%s\n" "$py_cv_module__uuid" >&6; }
33503
33504
33505
33506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
33507 printf %s "checking for stdlib extension module zlib... " >&6; }
33508 if test "$py_cv_module_zlib" != "n/a"
33509 then :
33510
33511 if true
33512 then :
33513 if test "$have_zlib" = yes
33514 then :
33515 py_cv_module_zlib=yes
33516 else case e in #(
33517 e) py_cv_module_zlib=missing ;;
33518 esac
33519 fi
33520 else case e in #(
33521 e) py_cv_module_zlib=disabled ;;
33522 esac
33523 fi
33524
33525 fi
33526 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
33527 if test "x$py_cv_module_zlib" = xyes
33528 then :
33529
33530 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
33531 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
33532
33533 fi
33534 if test "$py_cv_module_zlib" = yes; then
33535 MODULE_ZLIB_TRUE=
33536 MODULE_ZLIB_FALSE='#'
33537 else
33538 MODULE_ZLIB_TRUE='#'
33539 MODULE_ZLIB_FALSE=
33540 fi
33541
33542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
33543 printf "%s\n" "$py_cv_module_zlib" >&6; }
33544
33545
33546 if test "$py_cv_module_binascii" != "n/a"
33547 then :
33548 py_cv_module_binascii=yes
33549 fi
33550 if test "$py_cv_module_binascii" = yes; then
33551 MODULE_BINASCII_TRUE=
33552 MODULE_BINASCII_FALSE='#'
33553 else
33554 MODULE_BINASCII_TRUE='#'
33555 MODULE_BINASCII_FALSE=
33556 fi
33557
33558 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
33559 if test "x$py_cv_module_binascii" = xyes
33560 then :
33561
33562 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
33563 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
33564
33565 fi
33566
33567
33568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
33569 printf %s "checking for stdlib extension module _bz2... " >&6; }
33570 if test "$py_cv_module__bz2" != "n/a"
33571 then :
33572
33573 if true
33574 then :
33575 if test "$have_bzip2" = yes
33576 then :
33577 py_cv_module__bz2=yes
33578 else case e in #(
33579 e) py_cv_module__bz2=missing ;;
33580 esac
33581 fi
33582 else case e in #(
33583 e) py_cv_module__bz2=disabled ;;
33584 esac
33585 fi
33586
33587 fi
33588 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
33589 if test "x$py_cv_module__bz2" = xyes
33590 then :
33591
33592 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
33593 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
33594
33595 fi
33596 if test "$py_cv_module__bz2" = yes; then
33597 MODULE__BZ2_TRUE=
33598 MODULE__BZ2_FALSE='#'
33599 else
33600 MODULE__BZ2_TRUE='#'
33601 MODULE__BZ2_FALSE=
33602 fi
33603
33604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
33605 printf "%s\n" "$py_cv_module__bz2" >&6; }
33606
33607
33608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
33609 printf %s "checking for stdlib extension module _lzma... " >&6; }
33610 if test "$py_cv_module__lzma" != "n/a"
33611 then :
33612
33613 if true
33614 then :
33615 if test "$have_liblzma" = yes
33616 then :
33617 py_cv_module__lzma=yes
33618 else case e in #(
33619 e) py_cv_module__lzma=missing ;;
33620 esac
33621 fi
33622 else case e in #(
33623 e) py_cv_module__lzma=disabled ;;
33624 esac
33625 fi
33626
33627 fi
33628 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
33629 if test "x$py_cv_module__lzma" = xyes
33630 then :
33631
33632 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
33633 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
33634
33635 fi
33636 if test "$py_cv_module__lzma" = yes; then
33637 MODULE__LZMA_TRUE=
33638 MODULE__LZMA_FALSE='#'
33639 else
33640 MODULE__LZMA_TRUE='#'
33641 MODULE__LZMA_FALSE=
33642 fi
33643
33644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
33645 printf "%s\n" "$py_cv_module__lzma" >&6; }
33646
33647
33648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _zstd" >&5
33649 printf %s "checking for stdlib extension module _zstd... " >&6; }
33650 if test "$py_cv_module__zstd" != "n/a"
33651 then :
33652
33653 if true
33654 then :
33655 if test "$have_libzstd" = yes
33656 then :
33657 py_cv_module__zstd=yes
33658 else case e in #(
33659 e) py_cv_module__zstd=missing ;;
33660 esac
33661 fi
33662 else case e in #(
33663 e) py_cv_module__zstd=disabled ;;
33664 esac
33665 fi
33666
33667 fi
33668 as_fn_append MODULE_BLOCK "MODULE__ZSTD_STATE=$py_cv_module__zstd$as_nl"
33669 if test "x$py_cv_module__zstd" = xyes
33670 then :
33671
33672 as_fn_append MODULE_BLOCK "MODULE__ZSTD_CFLAGS=$LIBZSTD_CFLAGS$as_nl"
33673 as_fn_append MODULE_BLOCK "MODULE__ZSTD_LDFLAGS=$LIBZSTD_LIBS$as_nl"
33674
33675 fi
33676 if test "$py_cv_module__zstd" = yes; then
33677 MODULE__ZSTD_TRUE=
33678 MODULE__ZSTD_FALSE='#'
33679 else
33680 MODULE__ZSTD_TRUE='#'
33681 MODULE__ZSTD_FALSE=
33682 fi
33683
33684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__zstd" >&5
33685 printf "%s\n" "$py_cv_module__zstd" >&6; }
33686
33687
33688
33689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
33690 printf %s "checking for stdlib extension module _ssl... " >&6; }
33691 if test "$py_cv_module__ssl" != "n/a"
33692 then :
33693
33694 if true
33695 then :
33696 if test "$ac_cv_working_openssl_ssl" = yes
33697 then :
33698 py_cv_module__ssl=yes
33699 else case e in #(
33700 e) py_cv_module__ssl=missing ;;
33701 esac
33702 fi
33703 else case e in #(
33704 e) py_cv_module__ssl=disabled ;;
33705 esac
33706 fi
33707
33708 fi
33709 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
33710 if test "x$py_cv_module__ssl" = xyes
33711 then :
33712
33713 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
33714 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
33715
33716 fi
33717 if test "$py_cv_module__ssl" = yes; then
33718 MODULE__SSL_TRUE=
33719 MODULE__SSL_FALSE='#'
33720 else
33721 MODULE__SSL_TRUE='#'
33722 MODULE__SSL_FALSE=
33723 fi
33724
33725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
33726 printf "%s\n" "$py_cv_module__ssl" >&6; }
33727
33728
33729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
33730 printf %s "checking for stdlib extension module _hashlib... " >&6; }
33731 if test "$py_cv_module__hashlib" != "n/a"
33732 then :
33733
33734 if true
33735 then :
33736 if test "$ac_cv_working_openssl_hashlib" = yes
33737 then :
33738 py_cv_module__hashlib=yes
33739 else case e in #(
33740 e) py_cv_module__hashlib=missing ;;
33741 esac
33742 fi
33743 else case e in #(
33744 e) py_cv_module__hashlib=disabled ;;
33745 esac
33746 fi
33747
33748 fi
33749 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
33750 if test "x$py_cv_module__hashlib" = xyes
33751 then :
33752
33753 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
33754 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
33755
33756 fi
33757 if test "$py_cv_module__hashlib" = yes; then
33758 MODULE__HASHLIB_TRUE=
33759 MODULE__HASHLIB_FALSE='#'
33760 else
33761 MODULE__HASHLIB_TRUE='#'
33762 MODULE__HASHLIB_FALSE=
33763 fi
33764
33765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
33766 printf "%s\n" "$py_cv_module__hashlib" >&6; }
33767
33768
33769
33770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
33771 printf %s "checking for stdlib extension module _testcapi... " >&6; }
33772 if test "$py_cv_module__testcapi" != "n/a"
33773 then :
33774
33775 if test "$TEST_MODULES" = yes
33776 then :
33777 if true
33778 then :
33779 py_cv_module__testcapi=yes
33780 else case e in #(
33781 e) py_cv_module__testcapi=missing ;;
33782 esac
33783 fi
33784 else case e in #(
33785 e) py_cv_module__testcapi=disabled ;;
33786 esac
33787 fi
33788
33789 fi
33790 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
33791 if test "x$py_cv_module__testcapi" = xyes
33792 then :
33793
33794
33795 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
33796
33797 fi
33798 if test "$py_cv_module__testcapi" = yes; then
33799 MODULE__TESTCAPI_TRUE=
33800 MODULE__TESTCAPI_FALSE='#'
33801 else
33802 MODULE__TESTCAPI_TRUE='#'
33803 MODULE__TESTCAPI_FALSE=
33804 fi
33805
33806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
33807 printf "%s\n" "$py_cv_module__testcapi" >&6; }
33808
33809
33810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
33811 printf %s "checking for stdlib extension module _testclinic... " >&6; }
33812 if test "$py_cv_module__testclinic" != "n/a"
33813 then :
33814
33815 if test "$TEST_MODULES" = yes
33816 then :
33817 if true
33818 then :
33819 py_cv_module__testclinic=yes
33820 else case e in #(
33821 e) py_cv_module__testclinic=missing ;;
33822 esac
33823 fi
33824 else case e in #(
33825 e) py_cv_module__testclinic=disabled ;;
33826 esac
33827 fi
33828
33829 fi
33830 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
33831 if test "x$py_cv_module__testclinic" = xyes
33832 then :
33833
33834
33835
33836
33837 fi
33838 if test "$py_cv_module__testclinic" = yes; then
33839 MODULE__TESTCLINIC_TRUE=
33840 MODULE__TESTCLINIC_FALSE='#'
33841 else
33842 MODULE__TESTCLINIC_TRUE='#'
33843 MODULE__TESTCLINIC_FALSE=
33844 fi
33845
33846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
33847 printf "%s\n" "$py_cv_module__testclinic" >&6; }
33848
33849
33850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
33851 printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
33852 if test "$py_cv_module__testclinic_limited" != "n/a"
33853 then :
33854
33855 if test "$TEST_MODULES" = yes
33856 then :
33857 if true
33858 then :
33859 py_cv_module__testclinic_limited=yes
33860 else case e in #(
33861 e) py_cv_module__testclinic_limited=missing ;;
33862 esac
33863 fi
33864 else case e in #(
33865 e) py_cv_module__testclinic_limited=disabled ;;
33866 esac
33867 fi
33868
33869 fi
33870 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
33871 if test "x$py_cv_module__testclinic_limited" = xyes
33872 then :
33873
33874
33875
33876
33877 fi
33878 if test "$py_cv_module__testclinic_limited" = yes; then
33879 MODULE__TESTCLINIC_LIMITED_TRUE=
33880 MODULE__TESTCLINIC_LIMITED_FALSE='#'
33881 else
33882 MODULE__TESTCLINIC_LIMITED_TRUE='#'
33883 MODULE__TESTCLINIC_LIMITED_FALSE=
33884 fi
33885
33886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
33887 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
33888
33889
33890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
33891 printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
33892 if test "$py_cv_module__testlimitedcapi" != "n/a"
33893 then :
33894
33895 if test "$TEST_MODULES" = yes
33896 then :
33897 if true
33898 then :
33899 py_cv_module__testlimitedcapi=yes
33900 else case e in #(
33901 e) py_cv_module__testlimitedcapi=missing ;;
33902 esac
33903 fi
33904 else case e in #(
33905 e) py_cv_module__testlimitedcapi=disabled ;;
33906 esac
33907 fi
33908
33909 fi
33910 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
33911 if test "x$py_cv_module__testlimitedcapi" = xyes
33912 then :
33913
33914
33915
33916
33917 fi
33918 if test "$py_cv_module__testlimitedcapi" = yes; then
33919 MODULE__TESTLIMITEDCAPI_TRUE=
33920 MODULE__TESTLIMITEDCAPI_FALSE='#'
33921 else
33922 MODULE__TESTLIMITEDCAPI_TRUE='#'
33923 MODULE__TESTLIMITEDCAPI_FALSE=
33924 fi
33925
33926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
33927 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
33928
33929
33930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
33931 printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
33932 if test "$py_cv_module__testinternalcapi" != "n/a"
33933 then :
33934
33935 if test "$TEST_MODULES" = yes
33936 then :
33937 if true
33938 then :
33939 py_cv_module__testinternalcapi=yes
33940 else case e in #(
33941 e) py_cv_module__testinternalcapi=missing ;;
33942 esac
33943 fi
33944 else case e in #(
33945 e) py_cv_module__testinternalcapi=disabled ;;
33946 esac
33947 fi
33948
33949 fi
33950 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
33951 if test "x$py_cv_module__testinternalcapi" = xyes
33952 then :
33953
33954
33955
33956
33957 fi
33958 if test "$py_cv_module__testinternalcapi" = yes; then
33959 MODULE__TESTINTERNALCAPI_TRUE=
33960 MODULE__TESTINTERNALCAPI_FALSE='#'
33961 else
33962 MODULE__TESTINTERNALCAPI_TRUE='#'
33963 MODULE__TESTINTERNALCAPI_FALSE=
33964 fi
33965
33966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
33967 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
33968
33969
33970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
33971 printf %s "checking for stdlib extension module _testbuffer... " >&6; }
33972 if test "$py_cv_module__testbuffer" != "n/a"
33973 then :
33974
33975 if test "$TEST_MODULES" = yes
33976 then :
33977 if true
33978 then :
33979 py_cv_module__testbuffer=yes
33980 else case e in #(
33981 e) py_cv_module__testbuffer=missing ;;
33982 esac
33983 fi
33984 else case e in #(
33985 e) py_cv_module__testbuffer=disabled ;;
33986 esac
33987 fi
33988
33989 fi
33990 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
33991 if test "x$py_cv_module__testbuffer" = xyes
33992 then :
33993
33994
33995
33996
33997 fi
33998 if test "$py_cv_module__testbuffer" = yes; then
33999 MODULE__TESTBUFFER_TRUE=
34000 MODULE__TESTBUFFER_FALSE='#'
34001 else
34002 MODULE__TESTBUFFER_TRUE='#'
34003 MODULE__TESTBUFFER_FALSE=
34004 fi
34005
34006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
34007 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
34008
34009
34010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
34011 printf %s "checking for stdlib extension module _testimportmultiple... " >&6; }
34012 if test "$py_cv_module__testimportmultiple" != "n/a"
34013 then :
34014
34015 if test "$TEST_MODULES" = yes
34016 then :
34017 if test "$ac_cv_func_dlopen" = yes
34018 then :
34019 py_cv_module__testimportmultiple=yes
34020 else case e in #(
34021 e) py_cv_module__testimportmultiple=missing ;;
34022 esac
34023 fi
34024 else case e in #(
34025 e) py_cv_module__testimportmultiple=disabled ;;
34026 esac
34027 fi
34028
34029 fi
34030 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
34031 if test "x$py_cv_module__testimportmultiple" = xyes
34032 then :
34033
34034
34035
34036
34037 fi
34038 if test "$py_cv_module__testimportmultiple" = yes; then
34039 MODULE__TESTIMPORTMULTIPLE_TRUE=
34040 MODULE__TESTIMPORTMULTIPLE_FALSE='#'
34041 else
34042 MODULE__TESTIMPORTMULTIPLE_TRUE='#'
34043 MODULE__TESTIMPORTMULTIPLE_FALSE=
34044 fi
34045
34046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
34047 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
34048
34049
34050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
34051 printf %s "checking for stdlib extension module _testmultiphase... " >&6; }
34052 if test "$py_cv_module__testmultiphase" != "n/a"
34053 then :
34054
34055 if test "$TEST_MODULES" = yes
34056 then :
34057 if test "$ac_cv_func_dlopen" = yes
34058 then :
34059 py_cv_module__testmultiphase=yes
34060 else case e in #(
34061 e) py_cv_module__testmultiphase=missing ;;
34062 esac
34063 fi
34064 else case e in #(
34065 e) py_cv_module__testmultiphase=disabled ;;
34066 esac
34067 fi
34068
34069 fi
34070 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
34071 if test "x$py_cv_module__testmultiphase" = xyes
34072 then :
34073
34074
34075
34076
34077 fi
34078 if test "$py_cv_module__testmultiphase" = yes; then
34079 MODULE__TESTMULTIPHASE_TRUE=
34080 MODULE__TESTMULTIPHASE_FALSE='#'
34081 else
34082 MODULE__TESTMULTIPHASE_TRUE='#'
34083 MODULE__TESTMULTIPHASE_FALSE=
34084 fi
34085
34086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
34087 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
34088
34089
34090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
34091 printf %s "checking for stdlib extension module _testsinglephase... " >&6; }
34092 if test "$py_cv_module__testsinglephase" != "n/a"
34093 then :
34094
34095 if test "$TEST_MODULES" = yes
34096 then :
34097 if test "$ac_cv_func_dlopen" = yes
34098 then :
34099 py_cv_module__testsinglephase=yes
34100 else case e in #(
34101 e) py_cv_module__testsinglephase=missing ;;
34102 esac
34103 fi
34104 else case e in #(
34105 e) py_cv_module__testsinglephase=disabled ;;
34106 esac
34107 fi
34108
34109 fi
34110 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
34111 if test "x$py_cv_module__testsinglephase" = xyes
34112 then :
34113
34114
34115
34116
34117 fi
34118 if test "$py_cv_module__testsinglephase" = yes; then
34119 MODULE__TESTSINGLEPHASE_TRUE=
34120 MODULE__TESTSINGLEPHASE_FALSE='#'
34121 else
34122 MODULE__TESTSINGLEPHASE_TRUE='#'
34123 MODULE__TESTSINGLEPHASE_FALSE=
34124 fi
34125
34126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
34127 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
34128
34129
34130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
34131 printf %s "checking for stdlib extension module xxsubtype... " >&6; }
34132 if test "$py_cv_module_xxsubtype" != "n/a"
34133 then :
34134
34135 if test "$TEST_MODULES" = yes
34136 then :
34137 if true
34138 then :
34139 py_cv_module_xxsubtype=yes
34140 else case e in #(
34141 e) py_cv_module_xxsubtype=missing ;;
34142 esac
34143 fi
34144 else case e in #(
34145 e) py_cv_module_xxsubtype=disabled ;;
34146 esac
34147 fi
34148
34149 fi
34150 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
34151 if test "x$py_cv_module_xxsubtype" = xyes
34152 then :
34153
34154
34155
34156
34157 fi
34158 if test "$py_cv_module_xxsubtype" = yes; then
34159 MODULE_XXSUBTYPE_TRUE=
34160 MODULE_XXSUBTYPE_FALSE='#'
34161 else
34162 MODULE_XXSUBTYPE_TRUE='#'
34163 MODULE_XXSUBTYPE_FALSE=
34164 fi
34165
34166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
34167 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
34168
34169
34170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
34171 printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; }
34172 if test "$py_cv_module__xxtestfuzz" != "n/a"
34173 then :
34174
34175 if test "$TEST_MODULES" = yes
34176 then :
34177 if true
34178 then :
34179 py_cv_module__xxtestfuzz=yes
34180 else case e in #(
34181 e) py_cv_module__xxtestfuzz=missing ;;
34182 esac
34183 fi
34184 else case e in #(
34185 e) py_cv_module__xxtestfuzz=disabled ;;
34186 esac
34187 fi
34188
34189 fi
34190 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
34191 if test "x$py_cv_module__xxtestfuzz" = xyes
34192 then :
34193
34194
34195
34196
34197 fi
34198 if test "$py_cv_module__xxtestfuzz" = yes; then
34199 MODULE__XXTESTFUZZ_TRUE=
34200 MODULE__XXTESTFUZZ_FALSE='#'
34201 else
34202 MODULE__XXTESTFUZZ_TRUE='#'
34203 MODULE__XXTESTFUZZ_FALSE=
34204 fi
34205
34206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
34207 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
34208
34209
34210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
34211 printf %s "checking for stdlib extension module _ctypes_test... " >&6; }
34212 if test "$py_cv_module__ctypes_test" != "n/a"
34213 then :
34214
34215 if test "$TEST_MODULES" = yes
34216 then :
34217 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
34218 then :
34219 py_cv_module__ctypes_test=yes
34220 else case e in #(
34221 e) py_cv_module__ctypes_test=missing ;;
34222 esac
34223 fi
34224 else case e in #(
34225 e) py_cv_module__ctypes_test=disabled ;;
34226 esac
34227 fi
34228
34229 fi
34230 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
34231 if test "x$py_cv_module__ctypes_test" = xyes
34232 then :
34233
34234 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_CFLAGS=$LIBFFI_CFLAGS$as_nl"
34235 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBFFI_LIBS $LIBM$as_nl"
34236
34237 fi
34238 if test "$py_cv_module__ctypes_test" = yes; then
34239 MODULE__CTYPES_TEST_TRUE=
34240 MODULE__CTYPES_TEST_FALSE='#'
34241 else
34242 MODULE__CTYPES_TEST_TRUE='#'
34243 MODULE__CTYPES_TEST_FALSE=
34244 fi
34245
34246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
34247 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
34248
34249
34250
34251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
34252 printf %s "checking for stdlib extension module xxlimited... " >&6; }
34253 if test "$py_cv_module_xxlimited" != "n/a"
34254 then :
34255
34256 if test "$TEST_MODULES" = yes
34257 then :
34258 if test "$ac_cv_func_dlopen" = yes
34259 then :
34260 py_cv_module_xxlimited=yes
34261 else case e in #(
34262 e) py_cv_module_xxlimited=missing ;;
34263 esac
34264 fi
34265 else case e in #(
34266 e) py_cv_module_xxlimited=disabled ;;
34267 esac
34268 fi
34269
34270 fi
34271 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
34272 if test "x$py_cv_module_xxlimited" = xyes
34273 then :
34274
34275
34276
34277
34278 fi
34279 if test "$py_cv_module_xxlimited" = yes; then
34280 MODULE_XXLIMITED_TRUE=
34281 MODULE_XXLIMITED_FALSE='#'
34282 else
34283 MODULE_XXLIMITED_TRUE='#'
34284 MODULE_XXLIMITED_FALSE=
34285 fi
34286
34287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
34288 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
34289
34290
34291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
34292 printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
34293 if test "$py_cv_module_xxlimited_35" != "n/a"
34294 then :
34295
34296 if test "$TEST_MODULES" = yes
34297 then :
34298 if test "$ac_cv_func_dlopen" = yes
34299 then :
34300 py_cv_module_xxlimited_35=yes
34301 else case e in #(
34302 e) py_cv_module_xxlimited_35=missing ;;
34303 esac
34304 fi
34305 else case e in #(
34306 e) py_cv_module_xxlimited_35=disabled ;;
34307 esac
34308 fi
34309
34310 fi
34311 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
34312 if test "x$py_cv_module_xxlimited_35" = xyes
34313 then :
34314
34315
34316
34317
34318 fi
34319 if test "$py_cv_module_xxlimited_35" = yes; then
34320 MODULE_XXLIMITED_35_TRUE=
34321 MODULE_XXLIMITED_35_FALSE='#'
34322 else
34323 MODULE_XXLIMITED_35_TRUE='#'
34324 MODULE_XXLIMITED_35_FALSE=
34325 fi
34326
34327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
34328 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
34329
34330
34331 # substitute multiline block, must come after last PY_STDLIB_MOD()
34332
34333
34334 # generate output files
34335 ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
34336
34337 ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
34338
34339 ac_config_files="$ac_config_files Modules/ld_so_aix"
34340
34341 # Generate files like pyconfig.h
34342 cat >confcache <<\_ACEOF
34343 # This file is a shell script that caches the results of configure
34344 # tests run on this system so they can be shared between configure
34345 # scripts and configure runs, see configure's option --config-cache.
34346 # It is not useful on other systems. If it contains results you don't
34347 # want to keep, you may remove or edit it.
34348 #
34349 # config.status only pays attention to the cache file if you give it
34350 # the --recheck option to rerun configure.
34351 #
34352 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
34353 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
34354 # following values.
34355
34356 _ACEOF
34357
34358 # The following way of writing the cache mishandles newlines in values,
34359 # but we know of no workaround that is simple, portable, and efficient.
34360 # So, we kill variables containing newlines.
34361 # Ultrix sh set writes to stderr and can't be redirected directly,
34362 # and sets the high bit in the cache file unless we assign to the vars.
34363 (
34364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34365 eval ac_val=\$$ac_var
34366 case $ac_val in #(
34367 *${as_nl}*)
34368 case $ac_var in #(
34369 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34370 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34371 esac
34372 case $ac_var in #(
34373 _ | IFS | as_nl) ;; #(
34374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34375 *) { eval $ac_var=; unset $ac_var;} ;;
34376 esac ;;
34377 esac
34378 done
34379
34380 (set) 2>&1 |
34381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34382 *${as_nl}ac_space=\ *)
34383 # 'set' does not quote correctly, so add quotes: double-quote
34384 # substitution turns \\\\ into \\, and sed turns \\ into \.
34385 sed -n \
34386 "s/'/'\\\\''/g;
34387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34388 ;; #(
34389 *)
34390 # 'set' quotes correctly as required by POSIX, so do not add quotes.
34391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34392 ;;
34393 esac |
34394 sort
34395 ) |
34396 sed '
34397 /^ac_cv_env_/b end
34398 t clear
34399 :clear
34400 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34401 t end
34402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34403 :end' >>confcache
34404 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34405 if test -w "$cache_file"; then
34406 if test "x$cache_file" != "x/dev/null"; then
34407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34408 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34409 if test ! -f "$cache_file" || test -h "$cache_file"; then
34410 cat confcache >"$cache_file"
34411 else
34412 case $cache_file in #(
34413 */* | ?:*)
34414 mv -f confcache "$cache_file"$$ &&
34415 mv -f "$cache_file"$$ "$cache_file" ;; #(
34416 *)
34417 mv -f confcache "$cache_file" ;;
34418 esac
34419 fi
34420 fi
34421 else
34422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34423 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34424 fi
34425 fi
34426 rm -f confcache
34427
34428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34429 # Let make expand exec_prefix.
34430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34431
34432 DEFS=-DHAVE_CONFIG_H
34433
34434 ac_libobjs=
34435 ac_ltlibobjs=
34436 U=
34437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34438 # 1. Remove the extension, and $U if already installed.
34439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34440 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34442 # will be set to the directory where LIBOBJS objects are built.
34443 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34444 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34445 done
34446 LIBOBJS=$ac_libobjs
34447
34448 LTLIBOBJS=$ac_ltlibobjs
34449
34450
34451
34452 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
34453 as_fn_error $? "conditional \"MODULE__IO\" was never defined.
34454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34455 fi
34456 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
34457 as_fn_error $? "conditional \"MODULE_TIME\" was never defined.
34458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34459 fi
34460 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
34461 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined.
34462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34463 fi
34464 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
34465 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined.
34466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34467 fi
34468 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
34469 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined.
34470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34471 fi
34472 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
34473 as_fn_error $? "conditional \"MODULE__CSV\" was never defined.
34474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34475 fi
34476 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
34477 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined.
34478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34479 fi
34480 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
34481 as_fn_error $? "conditional \"MODULE__JSON\" was never defined.
34482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34483 fi
34484 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
34485 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined.
34486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34487 fi
34488 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
34489 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined.
34490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34491 fi
34492 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
34493 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
34494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34495 fi
34496 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
34497 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined.
34498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34499 fi
34500 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
34501 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined.
34502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34503 fi
34504 if test -z "${MODULE__REMOTE_DEBUGGING_TRUE}" && test -z "${MODULE__REMOTE_DEBUGGING_FALSE}"; then
34505 as_fn_error $? "conditional \"MODULE__REMOTE_DEBUGGING\" was never defined.
34506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34507 fi
34508 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
34509 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined.
34510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34511 fi
34512 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
34513 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined.
34514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34515 fi
34516 if test -z "${MODULE__TYPES_TRUE}" && test -z "${MODULE__TYPES_FALSE}"; then
34517 as_fn_error $? "conditional \"MODULE__TYPES\" was never defined.
34518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34519 fi
34520 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
34521 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined.
34522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34523 fi
34524 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
34525 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined.
34526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34527 fi
34528 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
34529 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined.
34530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34531 fi
34532 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
34533 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined.
34534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34535 fi
34536 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
34537 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined.
34538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34539 fi
34540 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
34541 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined.
34542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34543 fi
34544 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
34545 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined.
34546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34547 fi
34548 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
34549 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined.
34550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34551 fi
34552 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
34553 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined.
34554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34555 fi
34556 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
34557 as_fn_error $? "conditional \"MODULE_MATH\" was never defined.
34558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34559 fi
34560 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
34561 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined.
34562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34563 fi
34564 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
34565 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined.
34566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34567 fi
34568 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
34569 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined.
34570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34571 fi
34572 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
34573 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined.
34574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34575 fi
34576 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
34577 as_fn_error $? "conditional \"MODULE_GRP\" was never defined.
34578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34579 fi
34580 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
34581 as_fn_error $? "conditional \"MODULE_PWD\" was never defined.
34582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34583 fi
34584 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
34585 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined.
34586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34587 fi
34588 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
34589 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined.
34590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34591 fi
34592 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
34593 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined.
34594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34595 fi
34596 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
34597 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined.
34598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34599 fi
34600 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
34601 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined.
34602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34603 fi
34604 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
34605 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined.
34606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34607 fi
34608 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
34609 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined.
34610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34611 fi
34612 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
34613 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined.
34614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34615 fi
34616 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
34617 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined.
34618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34619 fi
34620 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
34621 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined.
34622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34623 fi
34624 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
34625 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined.
34626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34627 fi
34628 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
34629 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined.
34630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34631 fi
34632 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
34633 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined.
34634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34635 fi
34636 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
34637 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined.
34638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34639 fi
34640 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
34641 as_fn_error $? "conditional \"MODULE__MD5\" was never defined.
34642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34643 fi
34644 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
34645 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined.
34646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34647 fi
34648 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
34649 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined.
34650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34651 fi
34652 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
34653 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined.
34654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34655 fi
34656 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
34657 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined.
34658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34659 fi
34660 if test -z "${MODULE__HMAC_TRUE}" && test -z "${MODULE__HMAC_FALSE}"; then
34661 as_fn_error $? "conditional \"MODULE__HMAC\" was never defined.
34662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34663 fi
34664 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
34665 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined.
34666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34667 fi
34668 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
34669 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined.
34670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34671 fi
34672 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
34673 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined.
34674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34675 fi
34676 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
34677 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined.
34678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34679 fi
34680 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
34681 as_fn_error $? "conditional \"MODULE__DBM\" was never defined.
34682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34683 fi
34684 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
34685 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined.
34686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34687 fi
34688 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
34689 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined.
34690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34691 fi
34692 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
34693 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined.
34694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34695 fi
34696 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
34697 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined.
34698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34699 fi
34700 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
34701 as_fn_error $? "conditional \"MODULE__UUID\" was never defined.
34702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34703 fi
34704 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
34705 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined.
34706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34707 fi
34708 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
34709 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined.
34710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34711 fi
34712 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
34713 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined.
34714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34715 fi
34716 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
34717 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined.
34718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34719 fi
34720 if test -z "${MODULE__ZSTD_TRUE}" && test -z "${MODULE__ZSTD_FALSE}"; then
34721 as_fn_error $? "conditional \"MODULE__ZSTD\" was never defined.
34722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34723 fi
34724 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
34725 as_fn_error $? "conditional \"MODULE__SSL\" was never defined.
34726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34727 fi
34728 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
34729 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined.
34730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34731 fi
34732 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
34733 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined.
34734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34735 fi
34736 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
34737 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
34738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34739 fi
34740 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
34741 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
34742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34743 fi
34744 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
34745 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
34746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34747 fi
34748 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
34749 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
34750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34751 fi
34752 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
34753 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined.
34754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34755 fi
34756 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
34757 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
34758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34759 fi
34760 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
34761 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined.
34762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34763 fi
34764 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
34765 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
34766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34767 fi
34768 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
34769 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined.
34770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34771 fi
34772 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
34773 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined.
34774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34775 fi
34776 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
34777 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined.
34778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34779 fi
34780 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
34781 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined.
34782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34783 fi
34784 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
34785 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined.
34786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34787 fi
34788
34789 : "${CONFIG_STATUS=./config.status}"
34790 ac_write_fail=0
34791 ac_clean_files_save=$ac_clean_files
34792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34794 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
34795 as_write_fail=0
34796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34797 #! $SHELL
34798 # Generated by $as_me.
34799 # Run this file to recreate the current configuration.
34800 # Compiler output produced by configure, useful for debugging
34801 # configure, is in config.log if it exists.
34802
34803 debug=false
34804 ac_cs_recheck=false
34805 ac_cs_silent=false
34806
34807 SHELL=\${CONFIG_SHELL-$SHELL}
34808 export SHELL
34809 _ASEOF
34810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34811 ## -------------------- ##
34812 ## M4sh Initialization. ##
34813 ## -------------------- ##
34814
34815 # Be more Bourne compatible
34816 DUALCASE=1; export DUALCASE # for MKS sh
34817 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
34818 then :
34819 emulate sh
34820 NULLCMD=:
34821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34822 # is contrary to our usage. Disable this feature.
34823 alias -g '${1+"$@"}'='"$@"'
34824 setopt NO_GLOB_SUBST
34825 else case e in #(
34826 e) case `(set -o) 2>/dev/null` in #(
34827 *posix*) :
34828 set -o posix ;; #(
34829 *) :
34830 ;;
34831 esac ;;
34832 esac
34833 fi
34834
34835
34836
34837 # Reset variables that may have inherited troublesome values from
34838 # the environment.
34839
34840 # IFS needs to be set, to space, tab, and newline, in precisely that order.
34841 # (If _AS_PATH_WALK were called with IFS unset, it would have the
34842 # side effect of setting IFS to empty, thus disabling word splitting.)
34843 # Quoting is to prevent editors from complaining about space-tab.
34844 as_nl='
34845 '
34846 export as_nl
34847 IFS=" "" $as_nl"
34848
34849 PS1='$ '
34850 PS2='> '
34851 PS4='+ '
34852
34853 # Ensure predictable behavior from utilities with locale-dependent output.
34854 LC_ALL=C
34855 export LC_ALL
34856 LANGUAGE=C
34857 export LANGUAGE
34858
34859 # We cannot yet rely on "unset" to work, but we need these variables
34860 # to be unset--not just set to an empty or harmless value--now, to
34861 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
34862 # also avoids known problems related to "unset" and subshell syntax
34863 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
34864 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
34865 do eval test \${$as_var+y} \
34866 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34867 done
34868
34869 # Ensure that fds 0, 1, and 2 are open.
34870 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
34871 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
34872 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
34873
34874 # The user is always right.
34875 if ${PATH_SEPARATOR+false} :; then
34876 PATH_SEPARATOR=:
34877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34879 PATH_SEPARATOR=';'
34880 }
34881 fi
34882
34883
34884 # Find who we are. Look in the path if we contain no directory separator.
34885 as_myself=
34886 case $0 in #((
34887 *[\\/]* ) as_myself=$0 ;;
34888 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34889 for as_dir in $PATH
34890 do
34891 IFS=$as_save_IFS
34892 case $as_dir in #(((
34893 '') as_dir=./ ;;
34894 */) ;;
34895 *) as_dir=$as_dir/ ;;
34896 esac
34897 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
34898 done
34899 IFS=$as_save_IFS
34900
34901 ;;
34902 esac
34903 # We did not find ourselves, most probably we were run as 'sh COMMAND'
34904 # in which case we are not to be found in the path.
34905 if test "x$as_myself" = x; then
34906 as_myself=$0
34907 fi
34908 if test ! -f "$as_myself"; then
34909 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34910 exit 1
34911 fi
34912
34913
34914
34915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34916 # ----------------------------------------
34917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34919 # script with STATUS, using 1 if that was 0.
34920 as_fn_error ()
34921 {
34922 as_status=$1; test $as_status -eq 0 && as_status=1
34923 if test "$4"; then
34924 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34926 fi
34927 printf "%s\n" "$as_me: error: $2" >&2
34928 as_fn_exit $as_status
34929 } # as_fn_error
34930
34931
34932 # as_fn_set_status STATUS
34933 # -----------------------
34934 # Set $? to STATUS, without forking.
34935 as_fn_set_status ()
34936 {
34937 return $1
34938 } # as_fn_set_status
34939
34940 # as_fn_exit STATUS
34941 # -----------------
34942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34943 as_fn_exit ()
34944 {
34945 set +e
34946 as_fn_set_status $1
34947 exit $1
34948 } # as_fn_exit
34949
34950 # as_fn_unset VAR
34951 # ---------------
34952 # Portably unset VAR.
34953 as_fn_unset ()
34954 {
34955 { eval $1=; unset $1;}
34956 }
34957 as_unset=as_fn_unset
34958
34959 # as_fn_append VAR VALUE
34960 # ----------------------
34961 # Append the text in VALUE to the end of the definition contained in VAR. Take
34962 # advantage of any shell optimizations that allow amortized linear growth over
34963 # repeated appends, instead of the typical quadratic growth present in naive
34964 # implementations.
34965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
34966 then :
34967 eval 'as_fn_append ()
34968 {
34969 eval $1+=\$2
34970 }'
34971 else case e in #(
34972 e) as_fn_append ()
34973 {
34974 eval $1=\$$1\$2
34975 } ;;
34976 esac
34977 fi # as_fn_append
34978
34979 # as_fn_arith ARG...
34980 # ------------------
34981 # Perform arithmetic evaluation on the ARGs, and store the result in the
34982 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34983 # must be portable across $(()) and expr.
34984 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
34985 then :
34986 eval 'as_fn_arith ()
34987 {
34988 as_val=$(( $* ))
34989 }'
34990 else case e in #(
34991 e) as_fn_arith ()
34992 {
34993 as_val=`expr "$@" || test $? -eq 1`
34994 } ;;
34995 esac
34996 fi # as_fn_arith
34997
34998
34999 if expr a : '\(a\)' >/dev/null 2>&1 &&
35000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35001 as_expr=expr
35002 else
35003 as_expr=false
35004 fi
35005
35006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35007 as_basename=basename
35008 else
35009 as_basename=false
35010 fi
35011
35012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35013 as_dirname=dirname
35014 else
35015 as_dirname=false
35016 fi
35017
35018 as_me=`$as_basename -- "$0" ||
35019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35020 X"$0" : 'X\(//\)$' \| \
35021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35022 printf "%s\n" X/"$0" |
35023 sed '/^.*\/\([^/][^/]*\)\/*$/{
35024 s//\1/
35025 q
35026 }
35027 /^X\/\(\/\/\)$/{
35028 s//\1/
35029 q
35030 }
35031 /^X\/\(\/\).*/{
35032 s//\1/
35033 q
35034 }
35035 s/.*/./; q'`
35036
35037 # Avoid depending upon Character Ranges.
35038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35041 as_cr_digits='0123456789'
35042 as_cr_alnum=$as_cr_Letters$as_cr_digits
35043
35044
35045 # Determine whether it's possible to make 'echo' print without a newline.
35046 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
35047 # for compatibility with existing Makefiles.
35048 ECHO_C= ECHO_N= ECHO_T=
35049 case `echo -n x` in #(((((
35050 -n*)
35051 case `echo 'xy\c'` in
35052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35053 xy) ECHO_C='\c';;
35054 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35055 ECHO_T=' ';;
35056 esac;;
35057 *)
35058 ECHO_N='-n';;
35059 esac
35060
35061 # For backward compatibility with old third-party macros, we provide
35062 # the shell variables $as_echo and $as_echo_n. New code should use
35063 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
35064 as_echo='printf %s\n'
35065 as_echo_n='printf %s'
35066
35067 rm -f conf$$ conf$$.exe conf$$.file
35068 if test -d conf$$.dir; then
35069 rm -f conf$$.dir/conf$$.file
35070 else
35071 rm -f conf$$.dir
35072 mkdir conf$$.dir 2>/dev/null
35073 fi
35074 if (echo >conf$$.file) 2>/dev/null; then
35075 if ln -s conf$$.file conf$$ 2>/dev/null; then
35076 as_ln_s='ln -s'
35077 # ... but there are two gotchas:
35078 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
35079 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
35080 # In both cases, we have to default to 'cp -pR'.
35081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35082 as_ln_s='cp -pR'
35083 elif ln conf$$.file conf$$ 2>/dev/null; then
35084 as_ln_s=ln
35085 else
35086 as_ln_s='cp -pR'
35087 fi
35088 else
35089 as_ln_s='cp -pR'
35090 fi
35091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35092 rmdir conf$$.dir 2>/dev/null
35093
35094
35095 # as_fn_mkdir_p
35096 # -------------
35097 # Create "$as_dir" as a directory, including parents if necessary.
35098 as_fn_mkdir_p ()
35099 {
35100
35101 case $as_dir in #(
35102 -*) as_dir=./$as_dir;;
35103 esac
35104 test -d "$as_dir" || eval $as_mkdir_p || {
35105 as_dirs=
35106 while :; do
35107 case $as_dir in #(
35108 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35109 *) as_qdir=$as_dir;;
35110 esac
35111 as_dirs="'$as_qdir' $as_dirs"
35112 as_dir=`$as_dirname -- "$as_dir" ||
35113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35114 X"$as_dir" : 'X\(//\)[^/]' \| \
35115 X"$as_dir" : 'X\(//\)$' \| \
35116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35117 printf "%s\n" X"$as_dir" |
35118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35119 s//\1/
35120 q
35121 }
35122 /^X\(\/\/\)[^/].*/{
35123 s//\1/
35124 q
35125 }
35126 /^X\(\/\/\)$/{
35127 s//\1/
35128 q
35129 }
35130 /^X\(\/\).*/{
35131 s//\1/
35132 q
35133 }
35134 s/.*/./; q'`
35135 test -d "$as_dir" && break
35136 done
35137 test -z "$as_dirs" || eval "mkdir $as_dirs"
35138 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35139
35140
35141 } # as_fn_mkdir_p
35142 if mkdir -p . 2>/dev/null; then
35143 as_mkdir_p='mkdir -p "$as_dir"'
35144 else
35145 test -d ./-p && rmdir ./-p
35146 as_mkdir_p=false
35147 fi
35148
35149
35150 # as_fn_executable_p FILE
35151 # -----------------------
35152 # Test if FILE is an executable regular file.
35153 as_fn_executable_p ()
35154 {
35155 test -f "$1" && test -x "$1"
35156 } # as_fn_executable_p
35157 as_test_x='test -x'
35158 as_executable_p=as_fn_executable_p
35159
35160 # Sed expression to map a string onto a valid CPP name.
35161 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35162 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
35163
35164 # Sed expression to map a string onto a valid variable name.
35165 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35166 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
35167
35168
35169 exec 6>&1
35170 ## ----------------------------------- ##
35171 ## Main body of $CONFIG_STATUS script. ##
35172 ## ----------------------------------- ##
35173 _ASEOF
35174 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35175
35176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35177 # Save the log message, to keep $0 and so on meaningful, and to
35178 # report actual input values of CONFIG_FILES etc. instead of their
35179 # values after options handling.
35180 ac_log="
35181 This file was extended by python $as_me 3.14, which was
35182 generated by GNU Autoconf 2.72. Invocation command line was
35183
35184 CONFIG_FILES = $CONFIG_FILES
35185 CONFIG_HEADERS = $CONFIG_HEADERS
35186 CONFIG_LINKS = $CONFIG_LINKS
35187 CONFIG_COMMANDS = $CONFIG_COMMANDS
35188 $ $0 $@
35189
35190 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35191 "
35192
35193 _ACEOF
35194
35195 case $ac_config_files in *"
35196 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35197 esac
35198
35199 case $ac_config_headers in *"
35200 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35201 esac
35202
35203
35204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35205 # Files that config.status was made for.
35206 config_files="$ac_config_files"
35207 config_headers="$ac_config_headers"
35208
35209 _ACEOF
35210
35211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35212 ac_cs_usage="\
35213 '$as_me' instantiates files and other configuration actions
35214 from templates according to the current configuration. Unless the files
35215 and actions are specified as TAGs, all are instantiated by default.
35216
35217 Usage: $0 [OPTION]... [TAG]...
35218
35219 -h, --help print this help, then exit
35220 -V, --version print version number and configuration settings, then exit
35221 --config print configuration, then exit
35222 -q, --quiet, --silent
35223 do not print progress messages
35224 -d, --debug don't remove temporary files
35225 --recheck update $as_me by reconfiguring in the same conditions
35226 --file=FILE[:TEMPLATE]
35227 instantiate the configuration file FILE
35228 --header=FILE[:TEMPLATE]
35229 instantiate the configuration header FILE
35230
35231 Configuration files:
35232 $config_files
35233
35234 Configuration headers:
35235 $config_headers
35236
35237 Report bugs to <https://github.com/python/cpython/issues/>."
35238
35239 _ACEOF
35240 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
35241 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
35242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35243 ac_cs_config='$ac_cs_config_escaped'
35244 ac_cs_version="\\
35245 python config.status 3.14
35246 configured by $0, generated by GNU Autoconf 2.72,
35247 with options \\"\$ac_cs_config\\"
35248
35249 Copyright (C) 2023 Free Software Foundation, Inc.
35250 This config.status script is free software; the Free Software Foundation
35251 gives unlimited permission to copy, distribute and modify it."
35252
35253 ac_pwd='$ac_pwd'
35254 srcdir='$srcdir'
35255 INSTALL='$INSTALL'
35256 MKDIR_P='$MKDIR_P'
35257 test -n "\$AWK" || AWK=awk
35258 _ACEOF
35259
35260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35261 # The default lists apply if the user does not specify any file.
35262 ac_need_defaults=:
35263 while test $# != 0
35264 do
35265 case $1 in
35266 --*=?*)
35267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35269 ac_shift=:
35270 ;;
35271 --*=)
35272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35273 ac_optarg=
35274 ac_shift=:
35275 ;;
35276 *)
35277 ac_option=$1
35278 ac_optarg=$2
35279 ac_shift=shift
35280 ;;
35281 esac
35282
35283 case $ac_option in
35284 # Handling of the options.
35285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35286 ac_cs_recheck=: ;;
35287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35288 printf "%s\n" "$ac_cs_version"; exit ;;
35289 --config | --confi | --conf | --con | --co | --c )
35290 printf "%s\n" "$ac_cs_config"; exit ;;
35291 --debug | --debu | --deb | --de | --d | -d )
35292 debug=: ;;
35293 --file | --fil | --fi | --f )
35294 $ac_shift
35295 case $ac_optarg in
35296 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35297 '') as_fn_error $? "missing file argument" ;;
35298 esac
35299 as_fn_append CONFIG_FILES " '$ac_optarg'"
35300 ac_need_defaults=false;;
35301 --header | --heade | --head | --hea )
35302 $ac_shift
35303 case $ac_optarg in
35304 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35305 esac
35306 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35307 ac_need_defaults=false;;
35308 --he | --h)
35309 # Conflict between --help and --header
35310 as_fn_error $? "ambiguous option: '$1'
35311 Try '$0 --help' for more information.";;
35312 --help | --hel | -h )
35313 printf "%s\n" "$ac_cs_usage"; exit ;;
35314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35316 ac_cs_silent=: ;;
35317
35318 # This is an error.
35319 -*) as_fn_error $? "unrecognized option: '$1'
35320 Try '$0 --help' for more information." ;;
35321
35322 *) as_fn_append ac_config_targets " $1"
35323 ac_need_defaults=false ;;
35324
35325 esac
35326 shift
35327 done
35328
35329 ac_configure_extra_args=
35330
35331 if $ac_cs_silent; then
35332 exec 6>/dev/null
35333 ac_configure_extra_args="$ac_configure_extra_args --silent"
35334 fi
35335
35336 _ACEOF
35337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35338 if \$ac_cs_recheck; then
35339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35340 shift
35341 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
35342 CONFIG_SHELL='$SHELL'
35343 export CONFIG_SHELL
35344 exec "\$@"
35345 fi
35346
35347 _ACEOF
35348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35349 exec 5>>config.log
35350 {
35351 echo
35352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35353 ## Running $as_me. ##
35354 _ASBOX
35355 printf "%s\n" "$ac_log"
35356 } >&5
35357
35358 _ACEOF
35359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35360 _ACEOF
35361
35362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35363
35364 # Handling of arguments.
35365 for ac_config_target in $ac_config_targets
35366 do
35367 case $ac_config_target in
35368 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
35369 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
35370 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
35371 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
35372 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
35373 "Apple/iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES Apple/iOS/Resources/Info.plist" ;;
35374 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
35375 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
35376 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
35377 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
35378 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;;
35379 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;;
35380 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
35381
35382 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
35383 esac
35384 done
35385
35386
35387 # If the user did not use the arguments to specify the items to instantiate,
35388 # then the envvar interface is used. Set only those that are not.
35389 # We use the long form for the default assignment because of an extremely
35390 # bizarre bug on SunOS 4.1.3.
35391 if $ac_need_defaults; then
35392 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35393 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35394 fi
35395
35396 # Have a temporary directory for convenience. Make it in the build tree
35397 # simply because there is no reason against having it here, and in addition,
35398 # creating and moving files from /tmp can sometimes cause problems.
35399 # Hook for its removal unless debugging.
35400 # Note that there is a small window in which the directory will not be cleaned:
35401 # after its creation but before its name has been assigned to '$tmp'.
35402 $debug ||
35403 {
35404 tmp= ac_tmp=
35405 trap 'exit_status=$?
35406 : "${ac_tmp:=$tmp}"
35407 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35408 ' 0
35409 trap 'as_fn_exit 1' 1 2 13 15
35410 }
35411 # Create a (secure) tmp directory for tmp files.
35412
35413 {
35414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35415 test -d "$tmp"
35416 } ||
35417 {
35418 tmp=./conf$$-$RANDOM
35419 (umask 077 && mkdir "$tmp")
35420 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35421 ac_tmp=$tmp
35422
35423 # Set up the scripts for CONFIG_FILES section.
35424 # No need to generate them if there are no CONFIG_FILES.
35425 # This happens for instance with './config.status config.h'.
35426 if test -n "$CONFIG_FILES"; then
35427
35428
35429 ac_cr=`echo X | tr X '\015'`
35430 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35431 # But we know of no other shell where ac_cr would be empty at this
35432 # point, so we can use a bashism as a fallback.
35433 if test "x$ac_cr" = x; then
35434 eval ac_cr=\$\'\\r\'
35435 fi
35436 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35437 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35438 ac_cs_awk_cr='\\r'
35439 else
35440 ac_cs_awk_cr=$ac_cr
35441 fi
35442
35443 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35444 _ACEOF
35445
35446
35447 {
35448 echo "cat >conf$$subs.awk <<_ACEOF" &&
35449 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35450 echo "_ACEOF"
35451 } >conf$$subs.sh ||
35452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35453 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35454 ac_delim='%!_!# '
35455 for ac_last_try in false false false false false :; do
35456 . ./conf$$subs.sh ||
35457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35458
35459 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35460 if test $ac_delim_n = $ac_delim_num; then
35461 break
35462 elif $ac_last_try; then
35463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35464 else
35465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35466 fi
35467 done
35468 rm -f conf$$subs.sh
35469
35470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35471 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35472 _ACEOF
35473 sed -n '
35474 h
35475 s/^/S["/; s/!.*/"]=/
35476 p
35477 g
35478 s/^[^!]*!//
35479 :repl
35480 t repl
35481 s/'"$ac_delim"'$//
35482 t delim
35483 :nl
35484 h
35485 s/\(.\{148\}\)..*/\1/
35486 t more1
35487 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35488 p
35489 n
35490 b repl
35491 :more1
35492 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35493 p
35494 g
35495 s/.\{148\}//
35496 t nl
35497 :delim
35498 h
35499 s/\(.\{148\}\)..*/\1/
35500 t more2
35501 s/["\\]/\\&/g; s/^/"/; s/$/"/
35502 p
35503 b
35504 :more2
35505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35506 p
35507 g
35508 s/.\{148\}//
35509 t delim
35510 ' <conf$$subs.awk | sed '
35511 /^[^""]/{
35512 N
35513 s/\n//
35514 }
35515 ' >>$CONFIG_STATUS || ac_write_fail=1
35516 rm -f conf$$subs.awk
35517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35518 _ACAWK
35519 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35520 for (key in S) S_is_set[key] = 1
35521 FS = ""
35522
35523 }
35524 {
35525 line = $ 0
35526 nfields = split(line, field, "@")
35527 substed = 0
35528 len = length(field[1])
35529 for (i = 2; i < nfields; i++) {
35530 key = field[i]
35531 keylen = length(key)
35532 if (S_is_set[key]) {
35533 value = S[key]
35534 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35535 len += length(value) + length(field[++i])
35536 substed = 1
35537 } else
35538 len += 1 + keylen
35539 }
35540
35541 print line
35542 }
35543
35544 _ACAWK
35545 _ACEOF
35546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35547 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35548 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35549 else
35550 cat
35551 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35552 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35553 _ACEOF
35554
35555 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35556 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35557 # trailing colons and then remove the whole line if VPATH becomes empty
35558 # (actually we leave an empty line to preserve line numbers).
35559 if test "x$srcdir" = x.; then
35560 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35561 h
35562 s///
35563 s/^/:/
35564 s/[ ]*$/:/
35565 s/:\$(srcdir):/:/g
35566 s/:\${srcdir}:/:/g
35567 s/:@srcdir@:/:/g
35568 s/^:*//
35569 s/:*$//
35570 x
35571 s/\(=[ ]*\).*/\1/
35572 G
35573 s/\n//
35574 s/^[^=]*=[ ]*$//
35575 }'
35576 fi
35577
35578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35579 fi # test -n "$CONFIG_FILES"
35580
35581 # Set up the scripts for CONFIG_HEADERS section.
35582 # No need to generate them if there are no CONFIG_HEADERS.
35583 # This happens for instance with './config.status Makefile'.
35584 if test -n "$CONFIG_HEADERS"; then
35585 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35586 BEGIN {
35587 _ACEOF
35588
35589 # Transform confdefs.h into an awk script 'defines.awk', embedded as
35590 # here-document in config.status, that substitutes the proper values into
35591 # config.h.in to produce config.h.
35592
35593 # Create a delimiter string that does not exist in confdefs.h, to ease
35594 # handling of long lines.
35595 ac_delim='%!_!# '
35596 for ac_last_try in false false :; do
35597 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35598 if test -z "$ac_tt"; then
35599 break
35600 elif $ac_last_try; then
35601 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35602 else
35603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35604 fi
35605 done
35606
35607 # For the awk script, D is an array of macro values keyed by name,
35608 # likewise P contains macro parameters if any. Preserve backslash
35609 # newline sequences.
35610
35611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35612 sed -n '
35613 s/.\{148\}/&'"$ac_delim"'/g
35614 t rset
35615 :rset
35616 s/^[ ]*#[ ]*define[ ][ ]*/ /
35617 t def
35618 d
35619 :def
35620 s/\\$//
35621 t bsnl
35622 s/["\\]/\\&/g
35623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35624 D["\1"]=" \3"/p
35625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35626 d
35627 :bsnl
35628 s/["\\]/\\&/g
35629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35630 D["\1"]=" \3\\\\\\n"\\/p
35631 t cont
35632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35633 t cont
35634 d
35635 :cont
35636 n
35637 s/.\{148\}/&'"$ac_delim"'/g
35638 t clear
35639 :clear
35640 s/\\$//
35641 t bsnlc
35642 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35643 d
35644 :bsnlc
35645 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35646 b cont
35647 ' <confdefs.h | sed '
35648 s/'"$ac_delim"'/"\\\
35649 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35650
35651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35652 for (key in D) D_is_set[key] = 1
35653 FS = ""
35654 }
35655 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35656 line = \$ 0
35657 split(line, arg, " ")
35658 if (arg[1] == "#") {
35659 defundef = arg[2]
35660 mac1 = arg[3]
35661 } else {
35662 defundef = substr(arg[1], 2)
35663 mac1 = arg[2]
35664 }
35665 split(mac1, mac2, "(") #)
35666 macro = mac2[1]
35667 prefix = substr(line, 1, index(line, defundef) - 1)
35668 if (D_is_set[macro]) {
35669 # Preserve the white space surrounding the "#".
35670 print prefix "define", macro P[macro] D[macro]
35671 next
35672 } else {
35673 # Replace #undef with comments. This is necessary, for example,
35674 # in the case of _POSIX_SOURCE, which is predefined and required
35675 # on some systems where configure will not decide to define it.
35676 if (defundef == "undef") {
35677 print "/*", prefix defundef, macro, "*/"
35678 next
35679 }
35680 }
35681 }
35682 { print }
35683 _ACAWK
35684 _ACEOF
35685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35686 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35687 fi # test -n "$CONFIG_HEADERS"
35688
35689
35690 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
35691 shift
35692 for ac_tag
35693 do
35694 case $ac_tag in
35695 :[FHLC]) ac_mode=$ac_tag; continue;;
35696 esac
35697 case $ac_mode$ac_tag in
35698 :[FHL]*:*);;
35699 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
35700 :[FH]-) ac_tag=-:-;;
35701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35702 esac
35703 ac_save_IFS=$IFS
35704 IFS=:
35705 set x $ac_tag
35706 IFS=$ac_save_IFS
35707 shift
35708 ac_file=$1
35709 shift
35710
35711 case $ac_mode in
35712 :L) ac_source=$1;;
35713 :[FH])
35714 ac_file_inputs=
35715 for ac_f
35716 do
35717 case $ac_f in
35718 -) ac_f="$ac_tmp/stdin";;
35719 *) # Look for the file first in the build tree, then in the source tree
35720 # (if the path is not absolute). The absolute path cannot be DOS-style,
35721 # because $ac_f cannot contain ':'.
35722 test -f "$ac_f" ||
35723 case $ac_f in
35724 [\\/$]*) false;;
35725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35726 esac ||
35727 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
35728 esac
35729 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35730 as_fn_append ac_file_inputs " '$ac_f'"
35731 done
35732
35733 # Let's still pretend it is 'configure' which instantiates (i.e., don't
35734 # use $as_me), people would be surprised to read:
35735 # /* config.h. Generated by config.status. */
35736 configure_input='Generated from '`
35737 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35738 `' by configure.'
35739 if test x"$ac_file" != x-; then
35740 configure_input="$ac_file. $configure_input"
35741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35742 printf "%s\n" "$as_me: creating $ac_file" >&6;}
35743 fi
35744 # Neutralize special characters interpreted by sed in replacement strings.
35745 case $configure_input in #(
35746 *\&* | *\|* | *\\* )
35747 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
35748 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35749 *) ac_sed_conf_input=$configure_input;;
35750 esac
35751
35752 case $ac_tag in
35753 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35755 esac
35756 ;;
35757 esac
35758
35759 ac_dir=`$as_dirname -- "$ac_file" ||
35760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35761 X"$ac_file" : 'X\(//\)[^/]' \| \
35762 X"$ac_file" : 'X\(//\)$' \| \
35763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35764 printf "%s\n" X"$ac_file" |
35765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35766 s//\1/
35767 q
35768 }
35769 /^X\(\/\/\)[^/].*/{
35770 s//\1/
35771 q
35772 }
35773 /^X\(\/\/\)$/{
35774 s//\1/
35775 q
35776 }
35777 /^X\(\/\).*/{
35778 s//\1/
35779 q
35780 }
35781 s/.*/./; q'`
35782 as_dir="$ac_dir"; as_fn_mkdir_p
35783 ac_builddir=.
35784
35785 case "$ac_dir" in
35786 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35787 *)
35788 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
35789 # A ".." for each directory in $ac_dir_suffix.
35790 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35791 case $ac_top_builddir_sub in
35792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35794 esac ;;
35795 esac
35796 ac_abs_top_builddir=$ac_pwd
35797 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35798 # for backward compatibility:
35799 ac_top_builddir=$ac_top_build_prefix
35800
35801 case $srcdir in
35802 .) # We are building in place.
35803 ac_srcdir=.
35804 ac_top_srcdir=$ac_top_builddir_sub
35805 ac_abs_top_srcdir=$ac_pwd ;;
35806 [\\/]* | ?:[\\/]* ) # Absolute name.
35807 ac_srcdir=$srcdir$ac_dir_suffix;
35808 ac_top_srcdir=$srcdir
35809 ac_abs_top_srcdir=$srcdir ;;
35810 *) # Relative name.
35811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35812 ac_top_srcdir=$ac_top_build_prefix$srcdir
35813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35814 esac
35815 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35816
35817
35818 case $ac_mode in
35819 :F)
35820 #
35821 # CONFIG_FILE
35822 #
35823
35824 case $INSTALL in
35825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35826 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35827 esac
35828 ac_MKDIR_P=$MKDIR_P
35829 case $MKDIR_P in
35830 [\\/$]* | ?:[\\/]* ) ;;
35831 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35832 esac
35833 _ACEOF
35834
35835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35836 # If the template does not know about datarootdir, expand it.
35837 # FIXME: This hack should be removed a few years after 2.60.
35838 ac_datarootdir_hack=; ac_datarootdir_seen=
35839 ac_sed_dataroot='
35840 /datarootdir/ {
35841 p
35842 q
35843 }
35844 /@datadir@/p
35845 /@docdir@/p
35846 /@infodir@/p
35847 /@localedir@/p
35848 /@mandir@/p'
35849 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35850 *datarootdir*) ac_datarootdir_seen=yes;;
35851 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35853 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35854 _ACEOF
35855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35856 ac_datarootdir_hack='
35857 s&@datadir@&$datadir&g
35858 s&@docdir@&$docdir&g
35859 s&@infodir@&$infodir&g
35860 s&@localedir@&$localedir&g
35861 s&@mandir@&$mandir&g
35862 s&\\\${datarootdir}&$datarootdir&g' ;;
35863 esac
35864 _ACEOF
35865
35866 # Neutralize VPATH when '$srcdir' = '.'.
35867 # Shell code in configure.ac might set extrasub.
35868 # FIXME: do we really want to maintain this feature?
35869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35870 ac_sed_extra="$ac_vpsub
35871 $extrasub
35872 _ACEOF
35873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35874 :t
35875 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35876 s|@configure_input@|$ac_sed_conf_input|;t t
35877 s&@top_builddir@&$ac_top_builddir_sub&;t t
35878 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35879 s&@srcdir@&$ac_srcdir&;t t
35880 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35881 s&@top_srcdir@&$ac_top_srcdir&;t t
35882 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35883 s&@builddir@&$ac_builddir&;t t
35884 s&@abs_builddir@&$ac_abs_builddir&;t t
35885 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35886 s&@INSTALL@&$ac_INSTALL&;t t
35887 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35888 $ac_datarootdir_hack
35889 "
35890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35891 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35892
35893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35894 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35896 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
35898 which seems to be undefined. Please make sure it is defined" >&5
35899 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
35900 which seems to be undefined. Please make sure it is defined" >&2;}
35901
35902 rm -f "$ac_tmp/stdin"
35903 case $ac_file in
35904 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35905 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35906 esac \
35907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35908 ;;
35909 :H)
35910 #
35911 # CONFIG_HEADER
35912 #
35913 if test x"$ac_file" != x-; then
35914 {
35915 printf "%s\n" "/* $configure_input */" >&1 \
35916 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35917 } >"$ac_tmp/config.h" \
35918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35919 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35921 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
35922 else
35923 rm -f "$ac_file"
35924 mv "$ac_tmp/config.h" "$ac_file" \
35925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35926 fi
35927 else
35928 printf "%s\n" "/* $configure_input */" >&1 \
35929 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35930 || as_fn_error $? "could not create -" "$LINENO" 5
35931 fi
35932 ;;
35933
35934
35935 esac
35936
35937
35938 case $ac_file$ac_mode in
35939 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
35940
35941 esac
35942 done # for ac_tag
35943
35944
35945 as_fn_exit 0
35946 _ACEOF
35947 ac_clean_files=$ac_clean_files_save
35948
35949 test $ac_write_fail = 0 ||
35950 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35951
35952
35953 # configure is writing to config.log, and then calls config.status.
35954 # config.status does its own redirection, appending to config.log.
35955 # Unfortunately, on DOS this fails, as config.log is still kept open
35956 # by configure, so config.status won't be able to write to it; its
35957 # output is simply discarded. So we exec the FD to /dev/null,
35958 # effectively closing config.log, so it can be properly (re)opened and
35959 # appended to by config.status. When coming back to configure, we
35960 # need to make the FD available again.
35961 if test "$no_create" != yes; then
35962 ac_cs_success=:
35963 ac_config_status_args=
35964 test "$silent" = yes &&
35965 ac_config_status_args="$ac_config_status_args --quiet"
35966 exec 5>/dev/null
35967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35968 exec 5>>config.log
35969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35970 # would make configure fail if this is the last instruction.
35971 $ac_cs_success || as_fn_exit 1
35972 fi
35973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35975 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35976 fi
35977
35978
35979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
35980 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
35981 if test ! -f Modules/Setup.local
35982 then
35983 echo "# Edit this file for local setup changes" >Modules/Setup.local
35984 fi
35985
35986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
35987 printf "%s\n" "$as_me: creating Makefile" >&6;}
35988 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
35989 -s Modules \
35990 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup
35991 if test $? -ne 0; then
35992 as_fn_error $? "makesetup failed" "$LINENO" 5
35993 fi
35994
35995 mv config.c Modules
35996
35997 if test -z "$PKG_CONFIG"; then
35998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
35999 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
36000 fi
36001
36002 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
36003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
36004
36005 If you want a release build with all stable optimizations active (PGO, etc),
36006 please run ./configure --enable-optimizations
36007 " >&5
36008 printf "%s\n" "$as_me:
36009
36010 If you want a release build with all stable optimizations active (PGO, etc),
36011 please run ./configure --enable-optimizations
36012 " >&6;}
36013 fi
36014
36015 if test "x$PY_SUPPORT_TIER" = x0
36016 then :
36017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
36018
36019 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
36020 CPython core team, see https://peps.python.org/pep-0011/ for more information.
36021 " >&5
36022 printf "%s\n" "$as_me: WARNING:
36023
36024 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
36025 CPython core team, see https://peps.python.org/pep-0011/ for more information.
36026 " >&2;}
36027 fi
36028
36029 if test "$ac_cv_header_stdatomic_h" != "yes"; then
36030 { 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
36031 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;}
36032 fi
36033