1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for python 3.11. 4# 5# Report bugs to <https://github.com/python/cpython/issues/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 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. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export 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). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${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 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 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. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $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'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell [email protected] and 271$0: https://github.com/python/cpython/issues/ about your 272$0: system, including any error possibly output before this 273$0: message. Then install a modern shell, or manually run 274$0: the script under such a shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316# as_fn_nop 317# --------- 318# Do nothing but, unlike ":", preserve the value of $?. 319as_fn_nop () 320{ 321 return $? 322} 323as_nop=as_fn_nop 324 325# as_fn_mkdir_p 326# ------------- 327# Create "$as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 341 as_dirs="'$as_qdir' $as_dirs" 342 as_dir=`$as_dirname -- "$as_dir" || 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \ 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 347printf "%s\n" X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} # as_fn_mkdir_p 372 373# as_fn_executable_p FILE 374# ----------------------- 375# Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 378 test -f "$1" && test -x "$1" 379} # as_fn_executable_p 380# as_fn_append VAR VALUE 381# ---------------------- 382# Append the text in VALUE to the end of the definition contained in VAR. Take 383# advantage of any shell optimizations that allow amortized linear growth over 384# repeated appends, instead of the typical quadratic growth present in naive 385# implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 387then : 388 eval 'as_fn_append () 389 { 390 eval $1+=\$2 391 }' 392else $as_nop 393 as_fn_append () 394 { 395 eval $1=\$$1\$2 396 } 397fi # as_fn_append 398 399# as_fn_arith ARG... 400# ------------------ 401# Perform arithmetic evaluation on the ARGs, and store the result in the 402# global $as_val. Take advantage of shells that can avoid forks. The arguments 403# must be portable across $(()) and expr. 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 405then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else $as_nop 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417# as_fn_nop 418# --------- 419# Do nothing but, unlike ":", preserve the value of $?. 420as_fn_nop () 421{ 422 return $? 423} 424as_nop=as_fn_nop 425 426# as_fn_error STATUS ERROR [LINENO LOG_FD] 427# ---------------------------------------- 428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 430# script with STATUS, using 1 if that was 0. 431as_fn_error () 432{ 433 as_status=$1; test $as_status -eq 0 && as_status=1 434 if test "$4"; then 435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 fi 438 printf "%s\n" "$as_me: error: $2" >&2 439 as_fn_exit $as_status 440} # as_fn_error 441 442if expr a : '\(a\)' >/dev/null 2>&1 && 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 444 as_expr=expr 445else 446 as_expr=false 447fi 448 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 450 as_basename=basename 451else 452 as_basename=false 453fi 454 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 456 as_dirname=dirname 457else 458 as_dirname=false 459fi 460 461as_me=`$as_basename -- "$0" || 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 463 X"$0" : 'X\(//\)$' \| \ 464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 465printf "%s\n" X/"$0" | 466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 467 s//\1/ 468 q 469 } 470 /^X\/\(\/\/\)$/{ 471 s//\1/ 472 q 473 } 474 /^X\/\(\/\).*/{ 475 s//\1/ 476 q 477 } 478 s/.*/./; q'` 479 480# Avoid depending upon Character Ranges. 481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 484as_cr_digits='0123456789' 485as_cr_alnum=$as_cr_Letters$as_cr_digits 486 487 488 as_lineno_1=$LINENO as_lineno_1a=$LINENO 489 as_lineno_2=$LINENO as_lineno_2a=$LINENO 490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 493 sed -n ' 494 p 495 /[$]LINENO/= 496 ' <$as_myself | 497 sed ' 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 560 # In both cases, we have to default to `cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590 591test -n "$DJDIR" || exec 7<&0 </dev/null 592exec 6>&1 593 594# Name of the host. 595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 596# so uname gets run too. 597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 598 599# 600# Initializations. 601# 602ac_default_prefix=/usr/local 603ac_clean_files= 604ac_config_libobj_dir=. 605LIBOBJS= 606cross_compiling=no 607subdirs= 608MFLAGS= 609MAKEFLAGS= 610 611# Identity of this package. 612PACKAGE_NAME='python' 613PACKAGE_TARNAME='python' 614PACKAGE_VERSION='3.11' 615PACKAGE_STRING='python 3.11' 616PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/' 617PACKAGE_URL='' 618 619ac_unique_file="Include/object.h" 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652ac_subst_vars='LTLIBOBJS 653MODULE_BLOCK 654MODULE_XXLIMITED_35_FALSE 655MODULE_XXLIMITED_35_TRUE 656MODULE_XXLIMITED_FALSE 657MODULE_XXLIMITED_TRUE 658MODULE__CTYPES_TEST_FALSE 659MODULE__CTYPES_TEST_TRUE 660MODULE__XXTESTFUZZ_FALSE 661MODULE__XXTESTFUZZ_TRUE 662MODULE__TESTMULTIPHASE_FALSE 663MODULE__TESTMULTIPHASE_TRUE 664MODULE__TESTIMPORTMULTIPLE_FALSE 665MODULE__TESTIMPORTMULTIPLE_TRUE 666MODULE__TESTBUFFER_FALSE 667MODULE__TESTBUFFER_TRUE 668MODULE__TESTINTERNALCAPI_FALSE 669MODULE__TESTINTERNALCAPI_TRUE 670MODULE__TESTCLINIC_FALSE 671MODULE__TESTCLINIC_TRUE 672MODULE__TESTCAPI_FALSE 673MODULE__TESTCAPI_TRUE 674MODULE__HASHLIB_FALSE 675MODULE__HASHLIB_TRUE 676MODULE__SSL_FALSE 677MODULE__SSL_TRUE 678MODULE__LZMA_FALSE 679MODULE__LZMA_TRUE 680MODULE__BZ2_FALSE 681MODULE__BZ2_TRUE 682MODULE_BINASCII_FALSE 683MODULE_BINASCII_TRUE 684MODULE_ZLIB_FALSE 685MODULE_ZLIB_TRUE 686MODULE__UUID_FALSE 687MODULE__UUID_TRUE 688MODULE__TKINTER_FALSE 689MODULE__TKINTER_TRUE 690MODULE__SQLITE3_FALSE 691MODULE__SQLITE3_TRUE 692MODULE_NIS_FALSE 693MODULE_NIS_TRUE 694MODULE__GDBM_FALSE 695MODULE__GDBM_TRUE 696MODULE__DECIMAL_FALSE 697MODULE__DECIMAL_TRUE 698MODULE__CRYPT_FALSE 699MODULE__CRYPT_TRUE 700MODULE__BLAKE2_FALSE 701MODULE__BLAKE2_TRUE 702MODULE__SHA3_FALSE 703MODULE__SHA3_TRUE 704MODULE__SHA512_FALSE 705MODULE__SHA512_TRUE 706MODULE__SHA256_FALSE 707MODULE__SHA256_TRUE 708MODULE__SHA1_FALSE 709MODULE__SHA1_TRUE 710MODULE__MD5_FALSE 711MODULE__MD5_TRUE 712MODULE_UNICODEDATA_FALSE 713MODULE_UNICODEDATA_TRUE 714MODULE__MULTIBYTECODEC_FALSE 715MODULE__MULTIBYTECODEC_TRUE 716MODULE__CODECS_TW_FALSE 717MODULE__CODECS_TW_TRUE 718MODULE__CODECS_KR_FALSE 719MODULE__CODECS_KR_TRUE 720MODULE__CODECS_JP_FALSE 721MODULE__CODECS_JP_TRUE 722MODULE__CODECS_ISO2022_FALSE 723MODULE__CODECS_ISO2022_TRUE 724MODULE__CODECS_HK_FALSE 725MODULE__CODECS_HK_TRUE 726MODULE__CODECS_CN_FALSE 727MODULE__CODECS_CN_TRUE 728MODULE__ELEMENTTREE_FALSE 729MODULE__ELEMENTTREE_TRUE 730MODULE_PYEXPAT_FALSE 731MODULE_PYEXPAT_TRUE 732MODULE_TERMIOS_FALSE 733MODULE_TERMIOS_TRUE 734MODULE_SYSLOG_FALSE 735MODULE_SYSLOG_TRUE 736MODULE_SPWD_FALSE 737MODULE_SPWD_TRUE 738MODULE__SCPROXY_FALSE 739MODULE__SCPROXY_TRUE 740MODULE_RESOURCE_FALSE 741MODULE_RESOURCE_TRUE 742MODULE_PWD_FALSE 743MODULE_PWD_TRUE 744MODULE_OSSAUDIODEV_FALSE 745MODULE_OSSAUDIODEV_TRUE 746MODULE_GRP_FALSE 747MODULE_GRP_TRUE 748MODULE__SOCKET_FALSE 749MODULE__SOCKET_TRUE 750MODULE_MMAP_FALSE 751MODULE_MMAP_TRUE 752MODULE_FCNTL_FALSE 753MODULE_FCNTL_TRUE 754MODULE__DATETIME_FALSE 755MODULE__DATETIME_TRUE 756MODULE_MATH_FALSE 757MODULE_MATH_TRUE 758MODULE_CMATH_FALSE 759MODULE_CMATH_TRUE 760MODULE__STATISTICS_FALSE 761MODULE__STATISTICS_TRUE 762MODULE_AUDIOOP_FALSE 763MODULE_AUDIOOP_TRUE 764MODULE__POSIXSHMEM_FALSE 765MODULE__POSIXSHMEM_TRUE 766MODULE__MULTIPROCESSING_FALSE 767MODULE__MULTIPROCESSING_TRUE 768MODULE__ZONEINFO_FALSE 769MODULE__ZONEINFO_TRUE 770MODULE__XXSUBINTERPRETERS_FALSE 771MODULE__XXSUBINTERPRETERS_TRUE 772MODULE__TYPING_FALSE 773MODULE__TYPING_TRUE 774MODULE__STRUCT_FALSE 775MODULE__STRUCT_TRUE 776MODULE_SELECT_FALSE 777MODULE_SELECT_TRUE 778MODULE__RANDOM_FALSE 779MODULE__RANDOM_TRUE 780MODULE__QUEUE_FALSE 781MODULE__QUEUE_TRUE 782MODULE__POSIXSUBPROCESS_FALSE 783MODULE__POSIXSUBPROCESS_TRUE 784MODULE__PICKLE_FALSE 785MODULE__PICKLE_TRUE 786MODULE__OPCODE_FALSE 787MODULE__OPCODE_TRUE 788MODULE__LSPROF_FALSE 789MODULE__LSPROF_TRUE 790MODULE__JSON_FALSE 791MODULE__JSON_TRUE 792MODULE__HEAPQ_FALSE 793MODULE__HEAPQ_TRUE 794MODULE__CSV_FALSE 795MODULE__CSV_TRUE 796MODULE__CONTEXTVARS_FALSE 797MODULE__CONTEXTVARS_TRUE 798MODULE__BISECT_FALSE 799MODULE__BISECT_TRUE 800MODULE__ASYNCIO_FALSE 801MODULE__ASYNCIO_TRUE 802MODULE_ARRAY_FALSE 803MODULE_ARRAY_TRUE 804MODULE_TIME_FALSE 805MODULE_TIME_TRUE 806MODULE__IO_FALSE 807MODULE__IO_TRUE 808MODULES_SETUP_STDLIB 809MODULE_BUILDTYPE 810TEST_MODULES 811LIBB2_LIBS 812LIBB2_CFLAGS 813OPENSSL_RPATH 814OPENSSL_LDFLAGS 815OPENSSL_LIBS 816OPENSSL_INCLUDES 817ENSUREPIP 818SRCDIRS 819THREADHEADERS 820WHEEL_PKG_DIR 821LIBPL 822PY_ENABLE_SHARED 823PLATLIBDIR 824BINLIBDEST 825LIBPYTHON 826EXT_SUFFIX 827ALT_SOABI 828SOABI 829LIBC 830LIBM 831HAVE_GETHOSTBYNAME 832HAVE_GETHOSTBYNAME_R 833HAVE_GETHOSTBYNAME_R_3_ARG 834HAVE_GETHOSTBYNAME_R_5_ARG 835HAVE_GETHOSTBYNAME_R_6_ARG 836LIBCRYPT_LIBS 837LIBCRYPT_CFLAGS 838LIBOBJS 839LIBLZMA_LIBS 840LIBLZMA_CFLAGS 841BZIP2_LIBS 842BZIP2_CFLAGS 843ZLIB_LIBS 844ZLIB_CFLAGS 845TRUE 846MACHDEP_OBJS 847DYNLOADFILE 848DLINCLDIR 849PLATFORM_OBJS 850PLATFORM_HEADERS 851DTRACE_OBJS 852DTRACE_HEADERS 853DFLAGS 854DTRACE 855GDBM_LIBS 856GDBM_CFLAGS 857X11_LIBS 858X11_CFLAGS 859TCLTK_LIBS 860TCLTK_CFLAGS 861LIBSQLITE3_LIBS 862LIBSQLITE3_CFLAGS 863LIBNSL_LIBS 864LIBNSL_CFLAGS 865LIBMPDEC_INTERNAL 866LIBMPDEC_LDFLAGS 867LIBMPDEC_CFLAGS 868LIBFFI_INCLUDEDIR 869LIBEXPAT_INTERNAL 870LIBEXPAT_LDFLAGS 871LIBEXPAT_CFLAGS 872TZPATH 873LIBUUID_LIBS 874LIBUUID_CFLAGS 875SHLIBS 876CFLAGSFORSHARED 877LINKFORSHARED 878CCSHARED 879BLDSHARED 880LDCXXSHARED 881LDSHARED 882SHLIB_SUFFIX 883LIBTOOL_CRUFT 884OTHER_LIBTOOL_OPT 885UNIVERSAL_ARCH_FLAGS 886WASM_STDLIB 887WASM_ASSETS_DIR 888LDFLAGS_NOLTO 889LDFLAGS_NODIST 890CFLAGS_NODIST 891BASECFLAGS 892CFLAGS_ALIASING 893OPT 894LLVM_PROF_FOUND 895LLVM_PROFDATA 896LLVM_PROF_ERR 897LLVM_PROF_FILE 898LLVM_PROF_MERGER 899PGO_PROF_USE_FLAG 900PGO_PROF_GEN_FLAG 901LLVM_AR_FOUND 902LLVM_AR 903PROFILE_TASK 904DEF_MAKE_RULE 905DEF_MAKE_ALL_RULE 906ABIFLAGS 907LN 908MKDIR_P 909INSTALL_DATA 910INSTALL_SCRIPT 911INSTALL_PROGRAM 912ac_ct_READELF 913READELF 914ARFLAGS 915ac_ct_AR 916AR 917LINK_PYTHON_OBJS 918LINK_PYTHON_DEPS 919LIBRARY_DEPS 920NODE 921HOSTRUNNER 922STATIC_LIBPYTHON 923GNULD 924EXPORTSFROM 925EXPORTSYMS 926LINKCC 927LDVERSION 928RUNSHARED 929INSTSONAME 930LDLIBRARYDIR 931PY3LIBRARY 932BLDLIBRARY 933DLLLIBRARY 934LDLIBRARY 935LIBRARY 936BUILDEXEEXT 937NO_AS_NEEDED 938MULTIARCH_CPPFLAGS 939PLATFORM_TRIPLET 940MULTIARCH 941ac_ct_CXX 942MAINCC 943CXX 944EGREP 945SED 946GREP 947CPP 948OBJEXT 949EXEEXT 950ac_ct_CC 951CPPFLAGS 952LDFLAGS 953CFLAGS 954CC 955EXPORT_MACOSX_DEPLOYMENT_TARGET 956CONFIGURE_MACOSX_DEPLOYMENT_TARGET 957_PYTHON_HOST_PLATFORM 958MACHDEP 959FRAMEWORKINSTALLAPPSPREFIX 960FRAMEWORKUNIXTOOLSPREFIX 961FRAMEWORKPYTHONW 962FRAMEWORKALTINSTALLLAST 963FRAMEWORKALTINSTALLFIRST 964FRAMEWORKINSTALLLAST 965FRAMEWORKINSTALLFIRST 966PYTHONFRAMEWORKINSTALLDIR 967PYTHONFRAMEWORKPREFIX 968PYTHONFRAMEWORKDIR 969PYTHONFRAMEWORKIDENTIFIER 970PYTHONFRAMEWORK 971LIPO_INTEL64_FLAGS 972LIPO_32BIT_FLAGS 973ARCH_RUN_32BIT 974UNIVERSALSDK 975PKG_CONFIG_LIBDIR 976PKG_CONFIG_PATH 977PKG_CONFIG 978CONFIG_ARGS 979SOVERSION 980VERSION 981PYTHON_FOR_REGEN 982PYTHON_FOR_BUILD_DEPS 983FREEZE_MODULE_DEPS 984FREEZE_MODULE 985FREEZE_MODULE_BOOTSTRAP_DEPS 986FREEZE_MODULE_BOOTSTRAP 987PYTHON_FOR_FREEZE 988PYTHON_FOR_BUILD 989host_os 990host_vendor 991host_cpu 992host 993build_os 994build_vendor 995build_cpu 996build 997HAS_GIT 998GITBRANCH 999GITTAG 1000GITVERSION 1001BASECPPFLAGS 1002target_alias 1003host_alias 1004build_alias 1005LIBS 1006ECHO_T 1007ECHO_N 1008ECHO_C 1009DEFS 1010mandir 1011localedir 1012libdir 1013psdir 1014pdfdir 1015dvidir 1016htmldir 1017infodir 1018docdir 1019oldincludedir 1020includedir 1021runstatedir 1022localstatedir 1023sharedstatedir 1024sysconfdir 1025datadir 1026datarootdir 1027libexecdir 1028sbindir 1029bindir 1030program_transform_name 1031prefix 1032exec_prefix 1033PACKAGE_URL 1034PACKAGE_BUGREPORT 1035PACKAGE_STRING 1036PACKAGE_VERSION 1037PACKAGE_TARNAME 1038PACKAGE_NAME 1039PATH_SEPARATOR 1040SHELL' 1041ac_subst_files='' 1042ac_user_opts=' 1043enable_option_checking 1044with_build_python 1045with_pkg_config 1046enable_universalsdk 1047with_universal_archs 1048with_framework_name 1049enable_framework 1050with_cxx_main 1051with_emscripten_target 1052enable_wasm_dynamic_linking 1053enable_wasm_pthreads 1054with_suffix 1055enable_shared 1056with_static_libpython 1057enable_profiling 1058with_pydebug 1059with_trace_refs 1060enable_pystats 1061with_assertions 1062enable_optimizations 1063with_lto 1064with_address_sanitizer 1065with_memory_sanitizer 1066with_undefined_behavior_sanitizer 1067with_hash_algorithm 1068with_tzpath 1069with_libs 1070with_system_expat 1071with_system_ffi 1072with_system_libmpdec 1073with_decimal_contextvar 1074enable_loadable_sqlite_extensions 1075with_dbmliborder 1076enable_ipv6 1077with_doc_strings 1078with_pymalloc 1079with_freelists 1080with_c_locale_coercion 1081with_valgrind 1082with_dtrace 1083with_libm 1084with_libc 1085enable_big_digits 1086with_platlibdir 1087with_wheel_pkg_dir 1088with_readline 1089with_computed_gotos 1090with_ensurepip 1091with_openssl 1092with_openssl_rpath 1093with_ssl_default_suites 1094with_builtin_hashlib_hashes 1095enable_test_modules 1096' 1097 ac_precious_vars='build_alias 1098host_alias 1099target_alias 1100PKG_CONFIG 1101PKG_CONFIG_PATH 1102PKG_CONFIG_LIBDIR 1103MACHDEP 1104CC 1105CFLAGS 1106LDFLAGS 1107LIBS 1108CPPFLAGS 1109CPP 1110HOSTRUNNER 1111PROFILE_TASK 1112LIBUUID_CFLAGS 1113LIBUUID_LIBS 1114LIBNSL_CFLAGS 1115LIBNSL_LIBS 1116LIBSQLITE3_CFLAGS 1117LIBSQLITE3_LIBS 1118TCLTK_CFLAGS 1119TCLTK_LIBS 1120X11_CFLAGS 1121X11_LIBS 1122GDBM_CFLAGS 1123GDBM_LIBS 1124ZLIB_CFLAGS 1125ZLIB_LIBS 1126BZIP2_CFLAGS 1127BZIP2_LIBS 1128LIBLZMA_CFLAGS 1129LIBLZMA_LIBS 1130LIBCRYPT_CFLAGS 1131LIBCRYPT_LIBS 1132LIBB2_CFLAGS 1133LIBB2_LIBS' 1134 1135 1136# Initialize some variables set by options. 1137ac_init_help= 1138ac_init_version=false 1139ac_unrecognized_opts= 1140ac_unrecognized_sep= 1141# The variables have the same names as the options, with 1142# dashes changed to underlines. 1143cache_file=/dev/null 1144exec_prefix=NONE 1145no_create= 1146no_recursion= 1147prefix=NONE 1148program_prefix=NONE 1149program_suffix=NONE 1150program_transform_name=s,x,x, 1151silent= 1152site= 1153srcdir= 1154verbose= 1155x_includes=NONE 1156x_libraries=NONE 1157 1158# Installation directory options. 1159# These are left unexpanded so users can "make install exec_prefix=/foo" 1160# and all the variables that are supposed to be based on exec_prefix 1161# by default will actually change. 1162# Use braces instead of parens because sh, perl, etc. also accept them. 1163# (The list follows the same order as the GNU Coding Standards.) 1164bindir='${exec_prefix}/bin' 1165sbindir='${exec_prefix}/sbin' 1166libexecdir='${exec_prefix}/libexec' 1167datarootdir='${prefix}/share' 1168datadir='${datarootdir}' 1169sysconfdir='${prefix}/etc' 1170sharedstatedir='${prefix}/com' 1171localstatedir='${prefix}/var' 1172runstatedir='${localstatedir}/run' 1173includedir='${prefix}/include' 1174oldincludedir='/usr/include' 1175docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1176infodir='${datarootdir}/info' 1177htmldir='${docdir}' 1178dvidir='${docdir}' 1179pdfdir='${docdir}' 1180psdir='${docdir}' 1181libdir='${exec_prefix}/lib' 1182localedir='${datarootdir}/locale' 1183mandir='${datarootdir}/man' 1184 1185ac_prev= 1186ac_dashdash= 1187for ac_option 1188do 1189 # If the previous option needs an argument, assign it. 1190 if test -n "$ac_prev"; then 1191 eval $ac_prev=\$ac_option 1192 ac_prev= 1193 continue 1194 fi 1195 1196 case $ac_option in 1197 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1198 *=) ac_optarg= ;; 1199 *) ac_optarg=yes ;; 1200 esac 1201 1202 case $ac_dashdash$ac_option in 1203 --) 1204 ac_dashdash=yes ;; 1205 1206 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1207 ac_prev=bindir ;; 1208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1209 bindir=$ac_optarg ;; 1210 1211 -build | --build | --buil | --bui | --bu) 1212 ac_prev=build_alias ;; 1213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1214 build_alias=$ac_optarg ;; 1215 1216 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1218 ac_prev=cache_file ;; 1219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1221 cache_file=$ac_optarg ;; 1222 1223 --config-cache | -C) 1224 cache_file=config.cache ;; 1225 1226 -datadir | --datadir | --datadi | --datad) 1227 ac_prev=datadir ;; 1228 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1229 datadir=$ac_optarg ;; 1230 1231 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1232 | --dataroo | --dataro | --datar) 1233 ac_prev=datarootdir ;; 1234 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1235 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1236 datarootdir=$ac_optarg ;; 1237 1238 -disable-* | --disable-*) 1239 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1240 # Reject names that are not valid shell variable names. 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1242 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1243 ac_useropt_orig=$ac_useropt 1244 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1245 case $ac_user_opts in 1246 *" 1247"enable_$ac_useropt" 1248"*) ;; 1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1250 ac_unrecognized_sep=', ';; 1251 esac 1252 eval enable_$ac_useropt=no ;; 1253 1254 -docdir | --docdir | --docdi | --doc | --do) 1255 ac_prev=docdir ;; 1256 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1257 docdir=$ac_optarg ;; 1258 1259 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1260 ac_prev=dvidir ;; 1261 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1262 dvidir=$ac_optarg ;; 1263 1264 -enable-* | --enable-*) 1265 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1266 # Reject names that are not valid shell variable names. 1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1268 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1269 ac_useropt_orig=$ac_useropt 1270 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1271 case $ac_user_opts in 1272 *" 1273"enable_$ac_useropt" 1274"*) ;; 1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1276 ac_unrecognized_sep=', ';; 1277 esac 1278 eval enable_$ac_useropt=\$ac_optarg ;; 1279 1280 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1281 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1282 | --exec | --exe | --ex) 1283 ac_prev=exec_prefix ;; 1284 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1285 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1286 | --exec=* | --exe=* | --ex=*) 1287 exec_prefix=$ac_optarg ;; 1288 1289 -gas | --gas | --ga | --g) 1290 # Obsolete; use --with-gas. 1291 with_gas=yes ;; 1292 1293 -help | --help | --hel | --he | -h) 1294 ac_init_help=long ;; 1295 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1296 ac_init_help=recursive ;; 1297 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1298 ac_init_help=short ;; 1299 1300 -host | --host | --hos | --ho) 1301 ac_prev=host_alias ;; 1302 -host=* | --host=* | --hos=* | --ho=*) 1303 host_alias=$ac_optarg ;; 1304 1305 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1306 ac_prev=htmldir ;; 1307 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1308 | --ht=*) 1309 htmldir=$ac_optarg ;; 1310 1311 -includedir | --includedir | --includedi | --included | --include \ 1312 | --includ | --inclu | --incl | --inc) 1313 ac_prev=includedir ;; 1314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1315 | --includ=* | --inclu=* | --incl=* | --inc=*) 1316 includedir=$ac_optarg ;; 1317 1318 -infodir | --infodir | --infodi | --infod | --info | --inf) 1319 ac_prev=infodir ;; 1320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1321 infodir=$ac_optarg ;; 1322 1323 -libdir | --libdir | --libdi | --libd) 1324 ac_prev=libdir ;; 1325 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1326 libdir=$ac_optarg ;; 1327 1328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1329 | --libexe | --libex | --libe) 1330 ac_prev=libexecdir ;; 1331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1332 | --libexe=* | --libex=* | --libe=*) 1333 libexecdir=$ac_optarg ;; 1334 1335 -localedir | --localedir | --localedi | --localed | --locale) 1336 ac_prev=localedir ;; 1337 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1338 localedir=$ac_optarg ;; 1339 1340 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1341 | --localstate | --localstat | --localsta | --localst | --locals) 1342 ac_prev=localstatedir ;; 1343 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1344 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1345 localstatedir=$ac_optarg ;; 1346 1347 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1348 ac_prev=mandir ;; 1349 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1350 mandir=$ac_optarg ;; 1351 1352 -nfp | --nfp | --nf) 1353 # Obsolete; use --without-fp. 1354 with_fp=no ;; 1355 1356 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1357 | --no-cr | --no-c | -n) 1358 no_create=yes ;; 1359 1360 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1361 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1362 no_recursion=yes ;; 1363 1364 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1365 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1366 | --oldin | --oldi | --old | --ol | --o) 1367 ac_prev=oldincludedir ;; 1368 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1369 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1370 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1371 oldincludedir=$ac_optarg ;; 1372 1373 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1374 ac_prev=prefix ;; 1375 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1376 prefix=$ac_optarg ;; 1377 1378 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1379 | --program-pre | --program-pr | --program-p) 1380 ac_prev=program_prefix ;; 1381 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1382 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1383 program_prefix=$ac_optarg ;; 1384 1385 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1386 | --program-suf | --program-su | --program-s) 1387 ac_prev=program_suffix ;; 1388 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1389 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1390 program_suffix=$ac_optarg ;; 1391 1392 -program-transform-name | --program-transform-name \ 1393 | --program-transform-nam | --program-transform-na \ 1394 | --program-transform-n | --program-transform- \ 1395 | --program-transform | --program-transfor \ 1396 | --program-transfo | --program-transf \ 1397 | --program-trans | --program-tran \ 1398 | --progr-tra | --program-tr | --program-t) 1399 ac_prev=program_transform_name ;; 1400 -program-transform-name=* | --program-transform-name=* \ 1401 | --program-transform-nam=* | --program-transform-na=* \ 1402 | --program-transform-n=* | --program-transform-=* \ 1403 | --program-transform=* | --program-transfor=* \ 1404 | --program-transfo=* | --program-transf=* \ 1405 | --program-trans=* | --program-tran=* \ 1406 | --progr-tra=* | --program-tr=* | --program-t=*) 1407 program_transform_name=$ac_optarg ;; 1408 1409 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1410 ac_prev=pdfdir ;; 1411 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1412 pdfdir=$ac_optarg ;; 1413 1414 -psdir | --psdir | --psdi | --psd | --ps) 1415 ac_prev=psdir ;; 1416 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1417 psdir=$ac_optarg ;; 1418 1419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1420 | -silent | --silent | --silen | --sile | --sil) 1421 silent=yes ;; 1422 1423 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1424 | --runstate | --runstat | --runsta | --runst | --runs \ 1425 | --run | --ru | --r) 1426 ac_prev=runstatedir ;; 1427 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1428 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1429 | --run=* | --ru=* | --r=*) 1430 runstatedir=$ac_optarg ;; 1431 1432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1433 ac_prev=sbindir ;; 1434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1435 | --sbi=* | --sb=*) 1436 sbindir=$ac_optarg ;; 1437 1438 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1440 | --sharedst | --shareds | --shared | --share | --shar \ 1441 | --sha | --sh) 1442 ac_prev=sharedstatedir ;; 1443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1446 | --sha=* | --sh=*) 1447 sharedstatedir=$ac_optarg ;; 1448 1449 -site | --site | --sit) 1450 ac_prev=site ;; 1451 -site=* | --site=* | --sit=*) 1452 site=$ac_optarg ;; 1453 1454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1455 ac_prev=srcdir ;; 1456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1457 srcdir=$ac_optarg ;; 1458 1459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1460 | --syscon | --sysco | --sysc | --sys | --sy) 1461 ac_prev=sysconfdir ;; 1462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1464 sysconfdir=$ac_optarg ;; 1465 1466 -target | --target | --targe | --targ | --tar | --ta | --t) 1467 ac_prev=target_alias ;; 1468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1469 target_alias=$ac_optarg ;; 1470 1471 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1472 verbose=yes ;; 1473 1474 -version | --version | --versio | --versi | --vers | -V) 1475 ac_init_version=: ;; 1476 1477 -with-* | --with-*) 1478 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1479 # Reject names that are not valid shell variable names. 1480 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1481 as_fn_error $? "invalid package name: \`$ac_useropt'" 1482 ac_useropt_orig=$ac_useropt 1483 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1484 case $ac_user_opts in 1485 *" 1486"with_$ac_useropt" 1487"*) ;; 1488 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1489 ac_unrecognized_sep=', ';; 1490 esac 1491 eval with_$ac_useropt=\$ac_optarg ;; 1492 1493 -without-* | --without-*) 1494 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1495 # Reject names that are not valid shell variable names. 1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1497 as_fn_error $? "invalid package name: \`$ac_useropt'" 1498 ac_useropt_orig=$ac_useropt 1499 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1500 case $ac_user_opts in 1501 *" 1502"with_$ac_useropt" 1503"*) ;; 1504 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1505 ac_unrecognized_sep=', ';; 1506 esac 1507 eval with_$ac_useropt=no ;; 1508 1509 --x) 1510 # Obsolete; use --with-x. 1511 with_x=yes ;; 1512 1513 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1514 | --x-incl | --x-inc | --x-in | --x-i) 1515 ac_prev=x_includes ;; 1516 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1517 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1518 x_includes=$ac_optarg ;; 1519 1520 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1521 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1522 ac_prev=x_libraries ;; 1523 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1524 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1525 x_libraries=$ac_optarg ;; 1526 1527 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1528Try \`$0 --help' for more information" 1529 ;; 1530 1531 *=*) 1532 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1533 # Reject names that are not valid shell variable names. 1534 case $ac_envvar in #( 1535 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1536 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1537 esac 1538 eval $ac_envvar=\$ac_optarg 1539 export $ac_envvar ;; 1540 1541 *) 1542 # FIXME: should be removed in autoconf 3.0. 1543 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1544 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1545 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1546 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1547 ;; 1548 1549 esac 1550done 1551 1552if test -n "$ac_prev"; then 1553 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1554 as_fn_error $? "missing argument to $ac_option" 1555fi 1556 1557if test -n "$ac_unrecognized_opts"; then 1558 case $enable_option_checking in 1559 no) ;; 1560 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1561 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1562 esac 1563fi 1564 1565# Check all directory arguments for consistency. 1566for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1567 datadir sysconfdir sharedstatedir localstatedir includedir \ 1568 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1569 libdir localedir mandir runstatedir 1570do 1571 eval ac_val=\$$ac_var 1572 # Remove trailing slashes. 1573 case $ac_val in 1574 */ ) 1575 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1576 eval $ac_var=\$ac_val;; 1577 esac 1578 # Be sure to have absolute directory names. 1579 case $ac_val in 1580 [\\/$]* | ?:[\\/]* ) continue;; 1581 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1582 esac 1583 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1584done 1585 1586# There might be people who depend on the old broken behavior: `$host' 1587# used to hold the argument of --host etc. 1588# FIXME: To remove some day. 1589build=$build_alias 1590host=$host_alias 1591target=$target_alias 1592 1593# FIXME: To remove some day. 1594if test "x$host_alias" != x; then 1595 if test "x$build_alias" = x; then 1596 cross_compiling=maybe 1597 elif test "x$build_alias" != "x$host_alias"; then 1598 cross_compiling=yes 1599 fi 1600fi 1601 1602ac_tool_prefix= 1603test -n "$host_alias" && ac_tool_prefix=$host_alias- 1604 1605test "$silent" = yes && exec 6>/dev/null 1606 1607 1608ac_pwd=`pwd` && test -n "$ac_pwd" && 1609ac_ls_di=`ls -di .` && 1610ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1611 as_fn_error $? "working directory cannot be determined" 1612test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1613 as_fn_error $? "pwd does not report name of working directory" 1614 1615 1616# Find the source files, if location was not specified. 1617if test -z "$srcdir"; then 1618 ac_srcdir_defaulted=yes 1619 # Try the directory containing this script, then the parent directory. 1620 ac_confdir=`$as_dirname -- "$as_myself" || 1621$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1622 X"$as_myself" : 'X\(//\)[^/]' \| \ 1623 X"$as_myself" : 'X\(//\)$' \| \ 1624 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1625printf "%s\n" X"$as_myself" | 1626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1627 s//\1/ 1628 q 1629 } 1630 /^X\(\/\/\)[^/].*/{ 1631 s//\1/ 1632 q 1633 } 1634 /^X\(\/\/\)$/{ 1635 s//\1/ 1636 q 1637 } 1638 /^X\(\/\).*/{ 1639 s//\1/ 1640 q 1641 } 1642 s/.*/./; q'` 1643 srcdir=$ac_confdir 1644 if test ! -r "$srcdir/$ac_unique_file"; then 1645 srcdir=.. 1646 fi 1647else 1648 ac_srcdir_defaulted=no 1649fi 1650if test ! -r "$srcdir/$ac_unique_file"; then 1651 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1652 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1653fi 1654ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1655ac_abs_confdir=`( 1656 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1657 pwd)` 1658# When building in place, set srcdir=. 1659if test "$ac_abs_confdir" = "$ac_pwd"; then 1660 srcdir=. 1661fi 1662# Remove unnecessary trailing slashes from srcdir. 1663# Double slashes in file names in object file debugging info 1664# mess up M-x gdb in Emacs. 1665case $srcdir in 1666*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1667esac 1668for ac_var in $ac_precious_vars; do 1669 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1670 eval ac_env_${ac_var}_value=\$${ac_var} 1671 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1672 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1673done 1674 1675# 1676# Report the --help message. 1677# 1678if test "$ac_init_help" = "long"; then 1679 # Omit some internal or obsolete options to make the list less imposing. 1680 # This message is too long to be a string in the A/UX 3.1 sh. 1681 cat <<_ACEOF 1682\`configure' configures python 3.11 to adapt to many kinds of systems. 1683 1684Usage: $0 [OPTION]... [VAR=VALUE]... 1685 1686To assign environment variables (e.g., CC, CFLAGS...), specify them as 1687VAR=VALUE. See below for descriptions of some of the useful variables. 1688 1689Defaults for the options are specified in brackets. 1690 1691Configuration: 1692 -h, --help display this help and exit 1693 --help=short display options specific to this package 1694 --help=recursive display the short help of all the included packages 1695 -V, --version display version information and exit 1696 -q, --quiet, --silent do not print \`checking ...' messages 1697 --cache-file=FILE cache test results in FILE [disabled] 1698 -C, --config-cache alias for \`--cache-file=config.cache' 1699 -n, --no-create do not create output files 1700 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1701 1702Installation directories: 1703 --prefix=PREFIX install architecture-independent files in PREFIX 1704 [$ac_default_prefix] 1705 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1706 [PREFIX] 1707 1708By default, \`make install' will install all the files in 1709\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1710an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1711for instance \`--prefix=\$HOME'. 1712 1713For better control, use the options below. 1714 1715Fine tuning of the installation directories: 1716 --bindir=DIR user executables [EPREFIX/bin] 1717 --sbindir=DIR system admin executables [EPREFIX/sbin] 1718 --libexecdir=DIR program executables [EPREFIX/libexec] 1719 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1720 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1721 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1722 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1723 --libdir=DIR object code libraries [EPREFIX/lib] 1724 --includedir=DIR C header files [PREFIX/include] 1725 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1726 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1727 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1728 --infodir=DIR info documentation [DATAROOTDIR/info] 1729 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1730 --mandir=DIR man documentation [DATAROOTDIR/man] 1731 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1732 --htmldir=DIR html documentation [DOCDIR] 1733 --dvidir=DIR dvi documentation [DOCDIR] 1734 --pdfdir=DIR pdf documentation [DOCDIR] 1735 --psdir=DIR ps documentation [DOCDIR] 1736_ACEOF 1737 1738 cat <<\_ACEOF 1739 1740System types: 1741 --build=BUILD configure for building on BUILD [guessed] 1742 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1743_ACEOF 1744fi 1745 1746if test -n "$ac_init_help"; then 1747 case $ac_init_help in 1748 short | recursive ) echo "Configuration of python 3.11:";; 1749 esac 1750 cat <<\_ACEOF 1751 1752Optional Features: 1753 --disable-option-checking ignore unrecognized --enable/--with options 1754 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1755 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1756 --enable-universalsdk[=SDKDIR] 1757 create a universal binary build. SDKDIR specifies 1758 which macOS SDK should be used to perform the build, 1759 see Mac/README.rst. (default is no) 1760 --enable-framework[=INSTALLDIR] 1761 create a Python.framework rather than a traditional 1762 Unix install. optional INSTALLDIR specifies the 1763 installation path. see Mac/README.rst (default is 1764 no) 1765 --enable-wasm-dynamic-linking 1766 Enable dynamic linking support for WebAssembly 1767 (default is no) 1768 --enable-wasm-pthreads Enable pthread emulation for WebAssembly (default is 1769 no) 1770 --enable-shared enable building a shared Python library (default is 1771 no) 1772 --enable-profiling enable C-level code profiling with gprof (default is 1773 no) 1774 --enable-pystats enable internal statistics gathering (default is no) 1775 --enable-optimizations enable expensive, stable optimizations (PGO, etc.) 1776 (default is no) 1777 --enable-loadable-sqlite-extensions 1778 support loadable extensions in the sqlite3 module, 1779 see Doc/library/sqlite3.rst (default is no) 1780 --enable-ipv6 enable ipv6 (with ipv4) support, see 1781 Doc/library/socket.rst (default is yes if supported) 1782 --enable-big-digits[=15|30] 1783 use big digits (30 or 15 bits) for Python longs 1784 (default is 30)] 1785 --disable-test-modules don't build nor install test modules 1786 1787Optional Packages: 1788 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1789 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1790 --with-build-python=python3.11 1791 path to build python binary for cross compiling 1792 (default: _bootstrap_python or python3.11) 1793 --with-pkg-config=[yes|no|check] 1794 use pkg-config to detect build options (default is 1795 check) 1796 --with-universal-archs=ARCH 1797 specify the kind of macOS universal binary that 1798 should be created. This option is only valid when 1799 --enable-universalsdk is set; options are: 1800 ("universal2", "intel-64", "intel-32", "intel", 1801 "32-bit", "64-bit", "3-way", or "all") see 1802 Mac/README.rst 1803 --with-framework-name=FRAMEWORK 1804 specify the name for the python framework on macOS 1805 only valid when --enable-framework is set. see 1806 Mac/README.rst (default is 'Python') 1807 --with-cxx-main[=COMPILER] 1808 compile main() and link Python executable with C++ 1809 compiler specified in COMPILER (default is $CXX) 1810 --with-emscripten-target=[browser|node] 1811 Emscripten platform 1812 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty, 1813 yes is mapped to '.exe') 1814 --without-static-libpython 1815 do not build libpythonMAJOR.MINOR.a and do not 1816 install python.o (default is yes) 1817 --with-pydebug build with Py_DEBUG defined (default is no) 1818 --with-trace-refs enable tracing references for debugging purpose 1819 (default is no) 1820 --with-assertions build with C assertions enabled (default is no) 1821 --with-lto=[full|thin|no|yes] 1822 enable Link-Time-Optimization in any build (default 1823 is no) 1824 --with-address-sanitizer 1825 enable AddressSanitizer memory error detector, 1826 'asan' (default is no) 1827 --with-memory-sanitizer enable MemorySanitizer allocation error detector, 1828 'msan' (default is no) 1829 --with-undefined-behavior-sanitizer 1830 enable UndefinedBehaviorSanitizer undefined 1831 behaviour detector, 'ubsan' (default is no) 1832 --with-hash-algorithm=[fnv|siphash13|siphash24] 1833 select hash algorithm for use in Python/pyhash.c 1834 (default is SipHash13) 1835 --with-tzpath=<list of absolute paths separated by pathsep> 1836 Select the default time zone search path for zoneinfo.TZPATH 1837 1838 --with-libs='lib1 ...' link against additional libs (default is no) 1839 --with-system-expat build pyexpat module using an installed expat 1840 library, see Doc/library/pyexpat.rst (default is no) 1841 --with-system-ffi build _ctypes module using an installed ffi library, 1842 see Doc/library/ctypes.rst (default is 1843 system-dependent) 1844 --with-system-libmpdec build _decimal module using an installed libmpdec 1845 library, see Doc/library/decimal.rst (default is no) 1846 --with-decimal-contextvar 1847 build _decimal module using a coroutine-local rather 1848 than a thread-local context (default is yes) 1849 --with-dbmliborder=db1:db2:... 1850 override order to check db backends for dbm; a valid 1851 value is a colon separated string with the backend 1852 names `ndbm', `gdbm' and `bdb'. 1853 --with-doc-strings enable documentation strings (default is yes) 1854 --with-pymalloc enable specialized mallocs (default is yes) 1855 --with-freelists enable object freelists (default is yes) 1856 --with-c-locale-coercion 1857 enable C locale coercion to a UTF-8 based locale 1858 (default is yes) 1859 --with-valgrind enable Valgrind support (default is no) 1860 --with-dtrace enable DTrace support (default is no) 1861 --with-libm=STRING override libm math library to STRING (default is 1862 system-dependent) 1863 --with-libc=STRING override libc C library to STRING (default is 1864 system-dependent) 1865 --with-platlibdir=DIRNAME 1866 Python library directory name (default is "lib") 1867 --with-wheel-pkg-dir=PATH 1868 Directory of wheel packages used by ensurepip 1869 (default: none) 1870 --with(out)-readline[=editline] 1871 use Editline for backend or disable readline module 1872 --with-computed-gotos enable computed gotos in evaluation loop (enabled by 1873 default on supported compilers) 1874 --with-ensurepip[=install|upgrade|no] 1875 "install" or "upgrade" using bundled pip (default is 1876 upgrade) 1877 --with-openssl=DIR root of the OpenSSL directory 1878 --with-openssl-rpath=[DIR|auto|no] 1879 Set runtime library directory (rpath) for OpenSSL 1880 libraries, no (default): don't set rpath, auto: 1881 auto-detect rpath from --with-openssl and 1882 pkg-config, DIR: set an explicit rpath 1883 --with-ssl-default-suites=[python|openssl|STRING] 1884 override default cipher suites string, python: use 1885 Python's preferred selection (default), openssl: 1886 leave OpenSSL's defaults untouched, STRING: use a 1887 custom string, python and STRING also set TLS 1.2 as 1888 minimum TLS version 1889 --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 1890 builtin hash modules, md5, sha1, sha256, sha512, 1891 sha3 (with shake), blake2 1892 1893Some influential environment variables: 1894 PKG_CONFIG path to pkg-config utility 1895 PKG_CONFIG_PATH 1896 directories to add to pkg-config's search path 1897 PKG_CONFIG_LIBDIR 1898 path overriding pkg-config's built-in search path 1899 MACHDEP name for machine-dependent library files 1900 CC C compiler command 1901 CFLAGS C compiler flags 1902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1903 nonstandard directory <lib dir> 1904 LIBS libraries to pass to the linker, e.g. -l<library> 1905 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1906 you have headers in a nonstandard directory <include dir> 1907 CPP C preprocessor 1908 HOSTRUNNER Program to run CPython for the host platform 1909 PROFILE_TASK 1910 Python args for PGO generation task 1911 LIBUUID_CFLAGS 1912 C compiler flags for LIBUUID, overriding pkg-config 1913 LIBUUID_LIBS 1914 linker flags for LIBUUID, overriding pkg-config 1915 LIBNSL_CFLAGS 1916 C compiler flags for LIBNSL, overriding pkg-config 1917 LIBNSL_LIBS linker flags for LIBNSL, overriding pkg-config 1918 LIBSQLITE3_CFLAGS 1919 C compiler flags for LIBSQLITE3, overriding pkg-config 1920 LIBSQLITE3_LIBS 1921 linker flags for LIBSQLITE3, overriding pkg-config 1922 TCLTK_CFLAGS 1923 C compiler flags for TCLTK, overriding pkg-config 1924 TCLTK_LIBS linker flags for TCLTK, overriding pkg-config 1925 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1926 X11_LIBS linker flags for X11, overriding pkg-config 1927 GDBM_CFLAGS C compiler flags for gdbm 1928 GDBM_LIBS additional linker flags for gdbm 1929 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1930 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1931 BZIP2_CFLAGS 1932 C compiler flags for BZIP2, overriding pkg-config 1933 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config 1934 LIBLZMA_CFLAGS 1935 C compiler flags for LIBLZMA, overriding pkg-config 1936 LIBLZMA_LIBS 1937 linker flags for LIBLZMA, overriding pkg-config 1938 LIBCRYPT_CFLAGS 1939 C compiler flags for LIBCRYPT, overriding pkg-config 1940 LIBCRYPT_LIBS 1941 linker flags for LIBCRYPT, overriding pkg-config 1942 LIBB2_CFLAGS 1943 C compiler flags for LIBB2, overriding pkg-config 1944 LIBB2_LIBS linker flags for LIBB2, overriding pkg-config 1945 1946Use these variables to override the choices made by `configure' or to help 1947it to find libraries and programs with nonstandard names/locations. 1948 1949Report bugs to <https://github.com/python/cpython/issues/>. 1950_ACEOF 1951ac_status=$? 1952fi 1953 1954if test "$ac_init_help" = "recursive"; then 1955 # If there are subdirs, report their specific --help. 1956 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1957 test -d "$ac_dir" || 1958 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1959 continue 1960 ac_builddir=. 1961 1962case "$ac_dir" in 1963.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1964*) 1965 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1966 # A ".." for each directory in $ac_dir_suffix. 1967 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1968 case $ac_top_builddir_sub in 1969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1971 esac ;; 1972esac 1973ac_abs_top_builddir=$ac_pwd 1974ac_abs_builddir=$ac_pwd$ac_dir_suffix 1975# for backward compatibility: 1976ac_top_builddir=$ac_top_build_prefix 1977 1978case $srcdir in 1979 .) # We are building in place. 1980 ac_srcdir=. 1981 ac_top_srcdir=$ac_top_builddir_sub 1982 ac_abs_top_srcdir=$ac_pwd ;; 1983 [\\/]* | ?:[\\/]* ) # Absolute name. 1984 ac_srcdir=$srcdir$ac_dir_suffix; 1985 ac_top_srcdir=$srcdir 1986 ac_abs_top_srcdir=$srcdir ;; 1987 *) # Relative name. 1988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1989 ac_top_srcdir=$ac_top_build_prefix$srcdir 1990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1991esac 1992ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1993 1994 cd "$ac_dir" || { ac_status=$?; continue; } 1995 # Check for configure.gnu first; this name is used for a wrapper for 1996 # Metaconfig's "Configure" on case-insensitive file systems. 1997 if test -f "$ac_srcdir/configure.gnu"; then 1998 echo && 1999 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2000 elif test -f "$ac_srcdir/configure"; then 2001 echo && 2002 $SHELL "$ac_srcdir/configure" --help=recursive 2003 else 2004 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2005 fi || ac_status=$? 2006 cd "$ac_pwd" || { ac_status=$?; break; } 2007 done 2008fi 2009 2010test -n "$ac_init_help" && exit $ac_status 2011if $ac_init_version; then 2012 cat <<\_ACEOF 2013python configure 3.11 2014generated by GNU Autoconf 2.71 2015 2016Copyright (C) 2021 Free Software Foundation, Inc. 2017This configure script is free software; the Free Software Foundation 2018gives unlimited permission to copy, distribute and modify it. 2019_ACEOF 2020 exit 2021fi 2022 2023## ------------------------ ## 2024## Autoconf initialization. ## 2025## ------------------------ ## 2026 2027# ac_fn_c_try_compile LINENO 2028# -------------------------- 2029# Try to compile conftest.$ac_ext, and return whether this succeeded. 2030ac_fn_c_try_compile () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 rm -f conftest.$ac_objext conftest.beam 2034 if { { ac_try="$ac_compile" 2035case "(($ac_try" in 2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2037 *) ac_try_echo=$ac_try;; 2038esac 2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2040printf "%s\n" "$ac_try_echo"; } >&5 2041 (eval "$ac_compile") 2>conftest.err 2042 ac_status=$? 2043 if test -s conftest.err; then 2044 grep -v '^ *+' conftest.err >conftest.er1 2045 cat conftest.er1 >&5 2046 mv -f conftest.er1 conftest.err 2047 fi 2048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2049 test $ac_status = 0; } && { 2050 test -z "$ac_c_werror_flag" || 2051 test ! -s conftest.err 2052 } && test -s conftest.$ac_objext 2053then : 2054 ac_retval=0 2055else $as_nop 2056 printf "%s\n" "$as_me: failed program was:" >&5 2057sed 's/^/| /' conftest.$ac_ext >&5 2058 2059 ac_retval=1 2060fi 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 as_fn_set_status $ac_retval 2063 2064} # ac_fn_c_try_compile 2065 2066# ac_fn_c_try_cpp LINENO 2067# ---------------------- 2068# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2069ac_fn_c_try_cpp () 2070{ 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 if { { ac_try="$ac_cpp conftest.$ac_ext" 2073case "(($ac_try" in 2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2075 *) ac_try_echo=$ac_try;; 2076esac 2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2078printf "%s\n" "$ac_try_echo"; } >&5 2079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2080 ac_status=$? 2081 if test -s conftest.err; then 2082 grep -v '^ *+' conftest.err >conftest.er1 2083 cat conftest.er1 >&5 2084 mv -f conftest.er1 conftest.err 2085 fi 2086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2087 test $ac_status = 0; } > conftest.i && { 2088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2089 test ! -s conftest.err 2090 } 2091then : 2092 ac_retval=0 2093else $as_nop 2094 printf "%s\n" "$as_me: failed program was:" >&5 2095sed 's/^/| /' conftest.$ac_ext >&5 2096 2097 ac_retval=1 2098fi 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 as_fn_set_status $ac_retval 2101 2102} # ac_fn_c_try_cpp 2103 2104# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2105# ------------------------------------------------------- 2106# Tests whether HEADER exists and can be compiled using the include files in 2107# INCLUDES, setting the cache variable VAR accordingly. 2108ac_fn_c_check_header_compile () 2109{ 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2112printf %s "checking for $2... " >&6; } 2113if eval test \${$3+y} 2114then : 2115 printf %s "(cached) " >&6 2116else $as_nop 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120#include <$2> 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO" 2123then : 2124 eval "$3=yes" 2125else $as_nop 2126 eval "$3=no" 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2129fi 2130eval ac_res=\$$3 2131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2132printf "%s\n" "$ac_res" >&6; } 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2134 2135} # ac_fn_c_check_header_compile 2136 2137# ac_fn_c_try_link LINENO 2138# ----------------------- 2139# Try to link conftest.$ac_ext, and return whether this succeeded. 2140ac_fn_c_try_link () 2141{ 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2144 if { { ac_try="$ac_link" 2145case "(($ac_try" in 2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2147 *) ac_try_echo=$ac_try;; 2148esac 2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2150printf "%s\n" "$ac_try_echo"; } >&5 2151 (eval "$ac_link") 2>conftest.err 2152 ac_status=$? 2153 if test -s conftest.err; then 2154 grep -v '^ *+' conftest.err >conftest.er1 2155 cat conftest.er1 >&5 2156 mv -f conftest.er1 conftest.err 2157 fi 2158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2159 test $ac_status = 0; } && { 2160 test -z "$ac_c_werror_flag" || 2161 test ! -s conftest.err 2162 } && test -s conftest$ac_exeext && { 2163 test "$cross_compiling" = yes || 2164 test -x conftest$ac_exeext 2165 } 2166then : 2167 ac_retval=0 2168else $as_nop 2169 printf "%s\n" "$as_me: failed program was:" >&5 2170sed 's/^/| /' conftest.$ac_ext >&5 2171 2172 ac_retval=1 2173fi 2174 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2175 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2176 # interfere with the next link command; also delete a directory that is 2177 # left behind by Apple's compiler. We do this before executing the actions. 2178 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2180 as_fn_set_status $ac_retval 2181 2182} # ac_fn_c_try_link 2183 2184# ac_fn_c_try_run LINENO 2185# ---------------------- 2186# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2187# executables *can* be run. 2188ac_fn_c_try_run () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 if { { ac_try="$ac_link" 2192case "(($ac_try" in 2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2194 *) ac_try_echo=$ac_try;; 2195esac 2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2197printf "%s\n" "$ac_try_echo"; } >&5 2198 (eval "$ac_link") 2>&5 2199 ac_status=$? 2200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2201 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2202 { { case "(($ac_try" in 2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2204 *) ac_try_echo=$ac_try;; 2205esac 2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2207printf "%s\n" "$ac_try_echo"; } >&5 2208 (eval "$ac_try") 2>&5 2209 ac_status=$? 2210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; }; } 2212then : 2213 ac_retval=0 2214else $as_nop 2215 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2216 printf "%s\n" "$as_me: failed program was:" >&5 2217sed 's/^/| /' conftest.$ac_ext >&5 2218 2219 ac_retval=$ac_status 2220fi 2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2223 as_fn_set_status $ac_retval 2224 2225} # ac_fn_c_try_run 2226 2227# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2228# ------------------------------------------- 2229# Tests whether TYPE exists after having included INCLUDES, setting cache 2230# variable VAR accordingly. 2231ac_fn_c_check_type () 2232{ 2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2235printf %s "checking for $2... " >&6; } 2236if eval test \${$3+y} 2237then : 2238 printf %s "(cached) " >&6 2239else $as_nop 2240 eval "$3=no" 2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2242/* end confdefs.h. */ 2243$4 2244int 2245main (void) 2246{ 2247if (sizeof ($2)) 2248 return 0; 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253if ac_fn_c_try_compile "$LINENO" 2254then : 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257$4 2258int 2259main (void) 2260{ 2261if (sizeof (($2))) 2262 return 0; 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267if ac_fn_c_try_compile "$LINENO" 2268then : 2269 2270else $as_nop 2271 eval "$3=yes" 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2274fi 2275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2276fi 2277eval ac_res=\$$3 2278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2279printf "%s\n" "$ac_res" >&6; } 2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2281 2282} # ac_fn_c_check_type 2283 2284# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2285# -------------------------------------------- 2286# Tries to find the compile-time value of EXPR in a program that includes 2287# INCLUDES, setting VAR accordingly. Returns whether the value could be 2288# computed 2289ac_fn_c_compute_int () 2290{ 2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2292 if test "$cross_compiling" = yes; then 2293 # Depending upon the size, compute the lo and hi bounds. 2294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main (void) 2299{ 2300static int test_array [1 - 2 * !(($2) >= 0)]; 2301test_array [0] = 0; 2302return test_array [0]; 2303 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_c_try_compile "$LINENO" 2309then : 2310 ac_lo=0 ac_mid=0 2311 while :; do 2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2313/* end confdefs.h. */ 2314$4 2315int 2316main (void) 2317{ 2318static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2319test_array [0] = 0; 2320return test_array [0]; 2321 2322 ; 2323 return 0; 2324} 2325_ACEOF 2326if ac_fn_c_try_compile "$LINENO" 2327then : 2328 ac_hi=$ac_mid; break 2329else $as_nop 2330 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2331 if test $ac_lo -le $ac_mid; then 2332 ac_lo= ac_hi= 2333 break 2334 fi 2335 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2336fi 2337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2338 done 2339else $as_nop 2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2341/* end confdefs.h. */ 2342$4 2343int 2344main (void) 2345{ 2346static int test_array [1 - 2 * !(($2) < 0)]; 2347test_array [0] = 0; 2348return test_array [0]; 2349 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354if ac_fn_c_try_compile "$LINENO" 2355then : 2356 ac_hi=-1 ac_mid=-1 2357 while :; do 2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2359/* end confdefs.h. */ 2360$4 2361int 2362main (void) 2363{ 2364static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2365test_array [0] = 0; 2366return test_array [0]; 2367 2368 ; 2369 return 0; 2370} 2371_ACEOF 2372if ac_fn_c_try_compile "$LINENO" 2373then : 2374 ac_lo=$ac_mid; break 2375else $as_nop 2376 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2377 if test $ac_mid -le $ac_hi; then 2378 ac_lo= ac_hi= 2379 break 2380 fi 2381 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2382fi 2383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2384 done 2385else $as_nop 2386 ac_lo= ac_hi= 2387fi 2388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2389fi 2390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2391# Binary search between lo and hi bounds. 2392while test "x$ac_lo" != "x$ac_hi"; do 2393 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2395/* end confdefs.h. */ 2396$4 2397int 2398main (void) 2399{ 2400static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2401test_array [0] = 0; 2402return test_array [0]; 2403 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408if ac_fn_c_try_compile "$LINENO" 2409then : 2410 ac_hi=$ac_mid 2411else $as_nop 2412 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2413fi 2414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2415done 2416case $ac_lo in #(( 2417?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2418'') ac_retval=1 ;; 2419esac 2420 else 2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2422/* end confdefs.h. */ 2423$4 2424static long int longval (void) { return $2; } 2425static unsigned long int ulongval (void) { return $2; } 2426#include <stdio.h> 2427#include <stdlib.h> 2428int 2429main (void) 2430{ 2431 2432 FILE *f = fopen ("conftest.val", "w"); 2433 if (! f) 2434 return 1; 2435 if (($2) < 0) 2436 { 2437 long int i = longval (); 2438 if (i != ($2)) 2439 return 1; 2440 fprintf (f, "%ld", i); 2441 } 2442 else 2443 { 2444 unsigned long int i = ulongval (); 2445 if (i != ($2)) 2446 return 1; 2447 fprintf (f, "%lu", i); 2448 } 2449 /* Do not output a trailing newline, as this causes \r\n confusion 2450 on some platforms. */ 2451 return ferror (f) || fclose (f) != 0; 2452 2453 ; 2454 return 0; 2455} 2456_ACEOF 2457if ac_fn_c_try_run "$LINENO" 2458then : 2459 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2460else $as_nop 2461 ac_retval=1 2462fi 2463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2464 conftest.$ac_objext conftest.beam conftest.$ac_ext 2465rm -f conftest.val 2466 2467 fi 2468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2469 as_fn_set_status $ac_retval 2470 2471} # ac_fn_c_compute_int 2472 2473# ac_fn_c_check_func LINENO FUNC VAR 2474# ---------------------------------- 2475# Tests whether FUNC exists, setting the cache variable VAR accordingly 2476ac_fn_c_check_func () 2477{ 2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2480printf %s "checking for $2... " >&6; } 2481if eval test \${$3+y} 2482then : 2483 printf %s "(cached) " >&6 2484else $as_nop 2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2486/* end confdefs.h. */ 2487/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2488 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2489#define $2 innocuous_$2 2490 2491/* System header to define __stub macros and hopefully few prototypes, 2492 which can conflict with char $2 (); below. */ 2493 2494#include <limits.h> 2495#undef $2 2496 2497/* Override any GCC internal prototype to avoid an error. 2498 Use char because int might match the return type of a GCC 2499 builtin and then its argument prototype would still apply. */ 2500#ifdef __cplusplus 2501extern "C" 2502#endif 2503char $2 (); 2504/* The GNU C library defines this for functions which it implements 2505 to always fail with ENOSYS. Some functions are actually named 2506 something starting with __ and the normal name is an alias. */ 2507#if defined __stub_$2 || defined __stub___$2 2508choke me 2509#endif 2510 2511int 2512main (void) 2513{ 2514return $2 (); 2515 ; 2516 return 0; 2517} 2518_ACEOF 2519if ac_fn_c_try_link "$LINENO" 2520then : 2521 eval "$3=yes" 2522else $as_nop 2523 eval "$3=no" 2524fi 2525rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2526 conftest$ac_exeext conftest.$ac_ext 2527fi 2528eval ac_res=\$$3 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2530printf "%s\n" "$ac_res" >&6; } 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 2533} # ac_fn_c_check_func 2534 2535# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2536# ------------------------------------------------------------------ 2537# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2538# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2539ac_fn_check_decl () 2540{ 2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2542 as_decl_name=`echo $2|sed 's/ *(.*//'` 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2544printf %s "checking whether $as_decl_name is declared... " >&6; } 2545if eval test \${$3+y} 2546then : 2547 printf %s "(cached) " >&6 2548else $as_nop 2549 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2550 eval ac_save_FLAGS=\$$6 2551 as_fn_append $6 " $5" 2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2553/* end confdefs.h. */ 2554$4 2555int 2556main (void) 2557{ 2558#ifndef $as_decl_name 2559#ifdef __cplusplus 2560 (void) $as_decl_use; 2561#else 2562 (void) $as_decl_name; 2563#endif 2564#endif 2565 2566 ; 2567 return 0; 2568} 2569_ACEOF 2570if ac_fn_c_try_compile "$LINENO" 2571then : 2572 eval "$3=yes" 2573else $as_nop 2574 eval "$3=no" 2575fi 2576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2577 eval $6=\$ac_save_FLAGS 2578 2579fi 2580eval ac_res=\$$3 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2582printf "%s\n" "$ac_res" >&6; } 2583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2584 2585} # ac_fn_check_decl 2586 2587# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2588# ---------------------------------------------------- 2589# Tries to find if the field MEMBER exists in type AGGR, after including 2590# INCLUDES, setting cache variable VAR accordingly. 2591ac_fn_c_check_member () 2592{ 2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2595printf %s "checking for $2.$3... " >&6; } 2596if eval test \${$4+y} 2597then : 2598 printf %s "(cached) " >&6 2599else $as_nop 2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2601/* end confdefs.h. */ 2602$5 2603int 2604main (void) 2605{ 2606static $2 ac_aggr; 2607if (ac_aggr.$3) 2608return 0; 2609 ; 2610 return 0; 2611} 2612_ACEOF 2613if ac_fn_c_try_compile "$LINENO" 2614then : 2615 eval "$4=yes" 2616else $as_nop 2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2618/* end confdefs.h. */ 2619$5 2620int 2621main (void) 2622{ 2623static $2 ac_aggr; 2624if (sizeof ac_aggr.$3) 2625return 0; 2626 ; 2627 return 0; 2628} 2629_ACEOF 2630if ac_fn_c_try_compile "$LINENO" 2631then : 2632 eval "$4=yes" 2633else $as_nop 2634 eval "$4=no" 2635fi 2636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2637fi 2638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2639fi 2640eval ac_res=\$$4 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2642printf "%s\n" "$ac_res" >&6; } 2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2644 2645} # ac_fn_c_check_member 2646ac_configure_args_raw= 2647for ac_arg 2648do 2649 case $ac_arg in 2650 *\'*) 2651 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2652 esac 2653 as_fn_append ac_configure_args_raw " '$ac_arg'" 2654done 2655 2656case $ac_configure_args_raw in 2657 *$as_nl*) 2658 ac_safe_unquote= ;; 2659 *) 2660 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2661 ac_unsafe_a="$ac_unsafe_z#~" 2662 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2663 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2664esac 2665 2666cat >config.log <<_ACEOF 2667This file contains any messages produced by compilers while 2668running configure, to aid debugging if configure makes a mistake. 2669 2670It was created by python $as_me 3.11, which was 2671generated by GNU Autoconf 2.71. Invocation command line was 2672 2673 $ $0$ac_configure_args_raw 2674 2675_ACEOF 2676exec 5>>config.log 2677{ 2678cat <<_ASUNAME 2679## --------- ## 2680## Platform. ## 2681## --------- ## 2682 2683hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2684uname -m = `(uname -m) 2>/dev/null || echo unknown` 2685uname -r = `(uname -r) 2>/dev/null || echo unknown` 2686uname -s = `(uname -s) 2>/dev/null || echo unknown` 2687uname -v = `(uname -v) 2>/dev/null || echo unknown` 2688 2689/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2690/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2691 2692/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2693/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2694/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2695/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2696/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2697/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2698/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2699 2700_ASUNAME 2701 2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH 2704do 2705 IFS=$as_save_IFS 2706 case $as_dir in #((( 2707 '') as_dir=./ ;; 2708 */) ;; 2709 *) as_dir=$as_dir/ ;; 2710 esac 2711 printf "%s\n" "PATH: $as_dir" 2712 done 2713IFS=$as_save_IFS 2714 2715} >&5 2716 2717cat >&5 <<_ACEOF 2718 2719 2720## ----------- ## 2721## Core tests. ## 2722## ----------- ## 2723 2724_ACEOF 2725 2726 2727# Keep a trace of the command line. 2728# Strip out --no-create and --no-recursion so they do not pile up. 2729# Strip out --silent because we don't want to record it for future runs. 2730# Also quote any args containing shell meta-characters. 2731# Make two passes to allow for proper duplicate-argument suppression. 2732ac_configure_args= 2733ac_configure_args0= 2734ac_configure_args1= 2735ac_must_keep_next=false 2736for ac_pass in 1 2 2737do 2738 for ac_arg 2739 do 2740 case $ac_arg in 2741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2743 | -silent | --silent | --silen | --sile | --sil) 2744 continue ;; 2745 *\'*) 2746 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2747 esac 2748 case $ac_pass in 2749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2750 2) 2751 as_fn_append ac_configure_args1 " '$ac_arg'" 2752 if test $ac_must_keep_next = true; then 2753 ac_must_keep_next=false # Got value, back to normal. 2754 else 2755 case $ac_arg in 2756 *=* | --config-cache | -C | -disable-* | --disable-* \ 2757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2759 | -with-* | --with-* | -without-* | --without-* | --x) 2760 case "$ac_configure_args0 " in 2761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2762 esac 2763 ;; 2764 -* ) ac_must_keep_next=true ;; 2765 esac 2766 fi 2767 as_fn_append ac_configure_args " '$ac_arg'" 2768 ;; 2769 esac 2770 done 2771done 2772{ ac_configure_args0=; unset ac_configure_args0;} 2773{ ac_configure_args1=; unset ac_configure_args1;} 2774 2775# When interrupted or exit'd, cleanup temporary files, and complete 2776# config.log. We remove comments because anyway the quotes in there 2777# would cause problems or look ugly. 2778# WARNING: Use '\'' to represent an apostrophe within the trap. 2779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2780trap 'exit_status=$? 2781 # Sanitize IFS. 2782 IFS=" "" $as_nl" 2783 # Save into config.log some information that might help in debugging. 2784 { 2785 echo 2786 2787 printf "%s\n" "## ---------------- ## 2788## Cache variables. ## 2789## ---------------- ##" 2790 echo 2791 # The following way of writing the cache mishandles newlines in values, 2792( 2793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2794 eval ac_val=\$$ac_var 2795 case $ac_val in #( 2796 *${as_nl}*) 2797 case $ac_var in #( 2798 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2799printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2800 esac 2801 case $ac_var in #( 2802 _ | IFS | as_nl) ;; #( 2803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2804 *) { eval $ac_var=; unset $ac_var;} ;; 2805 esac ;; 2806 esac 2807 done 2808 (set) 2>&1 | 2809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2810 *${as_nl}ac_space=\ *) 2811 sed -n \ 2812 "s/'\''/'\''\\\\'\'''\''/g; 2813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2814 ;; #( 2815 *) 2816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2817 ;; 2818 esac | 2819 sort 2820) 2821 echo 2822 2823 printf "%s\n" "## ----------------- ## 2824## Output variables. ## 2825## ----------------- ##" 2826 echo 2827 for ac_var in $ac_subst_vars 2828 do 2829 eval ac_val=\$$ac_var 2830 case $ac_val in 2831 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2832 esac 2833 printf "%s\n" "$ac_var='\''$ac_val'\''" 2834 done | sort 2835 echo 2836 2837 if test -n "$ac_subst_files"; then 2838 printf "%s\n" "## ------------------- ## 2839## File substitutions. ## 2840## ------------------- ##" 2841 echo 2842 for ac_var in $ac_subst_files 2843 do 2844 eval ac_val=\$$ac_var 2845 case $ac_val in 2846 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2847 esac 2848 printf "%s\n" "$ac_var='\''$ac_val'\''" 2849 done | sort 2850 echo 2851 fi 2852 2853 if test -s confdefs.h; then 2854 printf "%s\n" "## ----------- ## 2855## confdefs.h. ## 2856## ----------- ##" 2857 echo 2858 cat confdefs.h 2859 echo 2860 fi 2861 test "$ac_signal" != 0 && 2862 printf "%s\n" "$as_me: caught signal $ac_signal" 2863 printf "%s\n" "$as_me: exit $exit_status" 2864 } >&5 2865 rm -f core *.core core.conftest.* && 2866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2867 exit $exit_status 2868' 0 2869for ac_signal in 1 2 13 15; do 2870 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2871done 2872ac_signal=0 2873 2874# confdefs.h avoids OS command line length limits that DEFS can exceed. 2875rm -f -r conftest* confdefs.h 2876 2877printf "%s\n" "/* confdefs.h */" > confdefs.h 2878 2879# Predefined preprocessor variables. 2880 2881printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2882 2883printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2884 2885printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2886 2887printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2888 2889printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2890 2891printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2892 2893 2894# Let the site file select an alternate cache file if it wants to. 2895# Prefer an explicitly selected file to automatically selected ones. 2896if test -n "$CONFIG_SITE"; then 2897 ac_site_files="$CONFIG_SITE" 2898elif test "x$prefix" != xNONE; then 2899 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2900else 2901 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2902fi 2903 2904for ac_site_file in $ac_site_files 2905do 2906 case $ac_site_file in #( 2907 */*) : 2908 ;; #( 2909 *) : 2910 ac_site_file=./$ac_site_file ;; 2911esac 2912 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2914printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2915 sed 's/^/| /' "$ac_site_file" >&5 2916 . "$ac_site_file" \ 2917 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2918printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2919as_fn_error $? "failed to load site script $ac_site_file 2920See \`config.log' for more details" "$LINENO" 5; } 2921 fi 2922done 2923 2924if test -r "$cache_file"; then 2925 # Some versions of bash will fail to source /dev/null (special files 2926 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2927 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2929printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2930 case $cache_file in 2931 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2932 *) . "./$cache_file";; 2933 esac 2934 fi 2935else 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2937printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2938 >$cache_file 2939fi 2940 2941# Test code for whether the C compiler supports C89 (global declarations) 2942ac_c_conftest_c89_globals=' 2943/* Does the compiler advertise C89 conformance? 2944 Do not test the value of __STDC__, because some compilers set it to 0 2945 while being otherwise adequately conformant. */ 2946#if !defined __STDC__ 2947# error "Compiler does not advertise C89 conformance" 2948#endif 2949 2950#include <stddef.h> 2951#include <stdarg.h> 2952struct stat; 2953/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2954struct buf { int x; }; 2955struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2956static char *e (p, i) 2957 char **p; 2958 int i; 2959{ 2960 return p[i]; 2961} 2962static char *f (char * (*g) (char **, int), char **p, ...) 2963{ 2964 char *s; 2965 va_list v; 2966 va_start (v,p); 2967 s = g (p, va_arg (v,int)); 2968 va_end (v); 2969 return s; 2970} 2971 2972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2973 function prototypes and stuff, but not \xHH hex character constants. 2974 These do not provoke an error unfortunately, instead are silently treated 2975 as an "x". The following induces an error, until -std is added to get 2976 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2977 array size at least. It is necessary to write \x00 == 0 to get something 2978 that is true only with -std. */ 2979int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2980 2981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2982 inside strings and character constants. */ 2983#define FOO(x) '\''x'\'' 2984int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2985 2986int test (int i, double x); 2987struct s1 {int (*f) (int a);}; 2988struct s2 {int (*f) (double a);}; 2989int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2990 int, int);' 2991 2992# Test code for whether the C compiler supports C89 (body of main). 2993ac_c_conftest_c89_main=' 2994ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2995' 2996 2997# Test code for whether the C compiler supports C99 (global declarations) 2998ac_c_conftest_c99_globals=' 2999// Does the compiler advertise C99 conformance? 3000#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3001# error "Compiler does not advertise C99 conformance" 3002#endif 3003 3004#include <stdbool.h> 3005extern int puts (const char *); 3006extern int printf (const char *, ...); 3007extern int dprintf (int, const char *, ...); 3008extern void *malloc (size_t); 3009 3010// Check varargs macros. These examples are taken from C99 6.10.3.5. 3011// dprintf is used instead of fprintf to avoid needing to declare 3012// FILE and stderr. 3013#define debug(...) dprintf (2, __VA_ARGS__) 3014#define showlist(...) puts (#__VA_ARGS__) 3015#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3016static void 3017test_varargs_macros (void) 3018{ 3019 int x = 1234; 3020 int y = 5678; 3021 debug ("Flag"); 3022 debug ("X = %d\n", x); 3023 showlist (The first, second, and third items.); 3024 report (x>y, "x is %d but y is %d", x, y); 3025} 3026 3027// Check long long types. 3028#define BIG64 18446744073709551615ull 3029#define BIG32 4294967295ul 3030#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3031#if !BIG_OK 3032 #error "your preprocessor is broken" 3033#endif 3034#if BIG_OK 3035#else 3036 #error "your preprocessor is broken" 3037#endif 3038static long long int bignum = -9223372036854775807LL; 3039static unsigned long long int ubignum = BIG64; 3040 3041struct incomplete_array 3042{ 3043 int datasize; 3044 double data[]; 3045}; 3046 3047struct named_init { 3048 int number; 3049 const wchar_t *name; 3050 double average; 3051}; 3052 3053typedef const char *ccp; 3054 3055static inline int 3056test_restrict (ccp restrict text) 3057{ 3058 // See if C++-style comments work. 3059 // Iterate through items via the restricted pointer. 3060 // Also check for declarations in for loops. 3061 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3062 continue; 3063 return 0; 3064} 3065 3066// Check varargs and va_copy. 3067static bool 3068test_varargs (const char *format, ...) 3069{ 3070 va_list args; 3071 va_start (args, format); 3072 va_list args_copy; 3073 va_copy (args_copy, args); 3074 3075 const char *str = ""; 3076 int number = 0; 3077 float fnumber = 0; 3078 3079 while (*format) 3080 { 3081 switch (*format++) 3082 { 3083 case '\''s'\'': // string 3084 str = va_arg (args_copy, const char *); 3085 break; 3086 case '\''d'\'': // int 3087 number = va_arg (args_copy, int); 3088 break; 3089 case '\''f'\'': // float 3090 fnumber = va_arg (args_copy, double); 3091 break; 3092 default: 3093 break; 3094 } 3095 } 3096 va_end (args_copy); 3097 va_end (args); 3098 3099 return *str && number && fnumber; 3100} 3101' 3102 3103# Test code for whether the C compiler supports C99 (body of main). 3104ac_c_conftest_c99_main=' 3105 // Check bool. 3106 _Bool success = false; 3107 success |= (argc != 0); 3108 3109 // Check restrict. 3110 if (test_restrict ("String literal") == 0) 3111 success = true; 3112 char *restrict newvar = "Another string"; 3113 3114 // Check varargs. 3115 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3116 test_varargs_macros (); 3117 3118 // Check flexible array members. 3119 struct incomplete_array *ia = 3120 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3121 ia->datasize = 10; 3122 for (int i = 0; i < ia->datasize; ++i) 3123 ia->data[i] = i * 1.234; 3124 3125 // Check named initializers. 3126 struct named_init ni = { 3127 .number = 34, 3128 .name = L"Test wide string", 3129 .average = 543.34343, 3130 }; 3131 3132 ni.number = 58; 3133 3134 int dynamic_array[ni.number]; 3135 dynamic_array[0] = argv[0][0]; 3136 dynamic_array[ni.number - 1] = 543; 3137 3138 // work around unused variable warnings 3139 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3140 || dynamic_array[ni.number - 1] != 543); 3141' 3142 3143# Test code for whether the C compiler supports C11 (global declarations) 3144ac_c_conftest_c11_globals=' 3145// Does the compiler advertise C11 conformance? 3146#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3147# error "Compiler does not advertise C11 conformance" 3148#endif 3149 3150// Check _Alignas. 3151char _Alignas (double) aligned_as_double; 3152char _Alignas (0) no_special_alignment; 3153extern char aligned_as_int; 3154char _Alignas (0) _Alignas (int) aligned_as_int; 3155 3156// Check _Alignof. 3157enum 3158{ 3159 int_alignment = _Alignof (int), 3160 int_array_alignment = _Alignof (int[100]), 3161 char_alignment = _Alignof (char) 3162}; 3163_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3164 3165// Check _Noreturn. 3166int _Noreturn does_not_return (void) { for (;;) continue; } 3167 3168// Check _Static_assert. 3169struct test_static_assert 3170{ 3171 int x; 3172 _Static_assert (sizeof (int) <= sizeof (long int), 3173 "_Static_assert does not work in struct"); 3174 long int y; 3175}; 3176 3177// Check UTF-8 literals. 3178#define u8 syntax error! 3179char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3180 3181// Check duplicate typedefs. 3182typedef long *long_ptr; 3183typedef long int *long_ptr; 3184typedef long_ptr long_ptr; 3185 3186// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3187struct anonymous 3188{ 3189 union { 3190 struct { int i; int j; }; 3191 struct { int k; long int l; } w; 3192 }; 3193 int m; 3194} v1; 3195' 3196 3197# Test code for whether the C compiler supports C11 (body of main). 3198ac_c_conftest_c11_main=' 3199 _Static_assert ((offsetof (struct anonymous, i) 3200 == offsetof (struct anonymous, w.k)), 3201 "Anonymous union alignment botch"); 3202 v1.i = 2; 3203 v1.w.k = 5; 3204 ok |= v1.i != 5; 3205' 3206 3207# Test code for whether the C compiler supports C11 (complete). 3208ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3209${ac_c_conftest_c99_globals} 3210${ac_c_conftest_c11_globals} 3211 3212int 3213main (int argc, char **argv) 3214{ 3215 int ok = 0; 3216 ${ac_c_conftest_c89_main} 3217 ${ac_c_conftest_c99_main} 3218 ${ac_c_conftest_c11_main} 3219 return ok; 3220} 3221" 3222 3223# Test code for whether the C compiler supports C99 (complete). 3224ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3225${ac_c_conftest_c99_globals} 3226 3227int 3228main (int argc, char **argv) 3229{ 3230 int ok = 0; 3231 ${ac_c_conftest_c89_main} 3232 ${ac_c_conftest_c99_main} 3233 return ok; 3234} 3235" 3236 3237# Test code for whether the C compiler supports C89 (complete). 3238ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3239 3240int 3241main (int argc, char **argv) 3242{ 3243 int ok = 0; 3244 ${ac_c_conftest_c89_main} 3245 return ok; 3246} 3247" 3248 3249as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3250as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3251as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3252as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3253as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3254as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3255as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3256as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3257as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3258as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3259as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3260 3261# Auxiliary files required by this configure script. 3262ac_aux_files="install-sh config.guess config.sub" 3263 3264# Locations in which to look for auxiliary files. 3265ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3266 3267# Search for a directory containing all of the required auxiliary files, 3268# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3269# If we don't find one directory that contains all the files we need, 3270# we report the set of missing files from the *first* directory in 3271# $ac_aux_dir_candidates and give up. 3272ac_missing_aux_files="" 3273ac_first_candidate=: 3274printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276as_found=false 3277for as_dir in $ac_aux_dir_candidates 3278do 3279 IFS=$as_save_IFS 3280 case $as_dir in #((( 3281 '') as_dir=./ ;; 3282 */) ;; 3283 *) as_dir=$as_dir/ ;; 3284 esac 3285 as_found=: 3286 3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3288 ac_aux_dir_found=yes 3289 ac_install_sh= 3290 for ac_aux in $ac_aux_files 3291 do 3292 # As a special case, if "install-sh" is required, that requirement 3293 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3294 # and $ac_install_sh is set appropriately for whichever one is found. 3295 if test x"$ac_aux" = x"install-sh" 3296 then 3297 if test -f "${as_dir}install-sh"; then 3298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3299 ac_install_sh="${as_dir}install-sh -c" 3300 elif test -f "${as_dir}install.sh"; then 3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3302 ac_install_sh="${as_dir}install.sh -c" 3303 elif test -f "${as_dir}shtool"; then 3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3305 ac_install_sh="${as_dir}shtool install -c" 3306 else 3307 ac_aux_dir_found=no 3308 if $ac_first_candidate; then 3309 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3310 else 3311 break 3312 fi 3313 fi 3314 else 3315 if test -f "${as_dir}${ac_aux}"; then 3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3317 else 3318 ac_aux_dir_found=no 3319 if $ac_first_candidate; then 3320 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3321 else 3322 break 3323 fi 3324 fi 3325 fi 3326 done 3327 if test "$ac_aux_dir_found" = yes; then 3328 ac_aux_dir="$as_dir" 3329 break 3330 fi 3331 ac_first_candidate=false 3332 3333 as_found=false 3334done 3335IFS=$as_save_IFS 3336if $as_found 3337then : 3338 3339else $as_nop 3340 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3341fi 3342 3343 3344# These three variables are undocumented and unsupported, 3345# and are intended to be withdrawn in a future Autoconf release. 3346# They can cause serious problems if a builder's source tree is in a directory 3347# whose full name contains unusual characters. 3348if test -f "${ac_aux_dir}config.guess"; then 3349 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3350fi 3351if test -f "${ac_aux_dir}config.sub"; then 3352 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3353fi 3354if test -f "$ac_aux_dir/configure"; then 3355 ac_configure="$SHELL ${ac_aux_dir}configure" 3356fi 3357 3358# Check that the precious variables saved in the cache have kept the same 3359# value. 3360ac_cache_corrupted=false 3361for ac_var in $ac_precious_vars; do 3362 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3363 eval ac_new_set=\$ac_env_${ac_var}_set 3364 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3365 eval ac_new_val=\$ac_env_${ac_var}_value 3366 case $ac_old_set,$ac_new_set in 3367 set,) 3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3369printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3370 ac_cache_corrupted=: ;; 3371 ,set) 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3373printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3374 ac_cache_corrupted=: ;; 3375 ,);; 3376 *) 3377 if test "x$ac_old_val" != "x$ac_new_val"; then 3378 # differences in whitespace do not lead to failure. 3379 ac_old_val_w=`echo x $ac_old_val` 3380 ac_new_val_w=`echo x $ac_new_val` 3381 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3383printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3384 ac_cache_corrupted=: 3385 else 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3387printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3388 eval $ac_var=\$ac_old_val 3389 fi 3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3391printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3393printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3394 fi;; 3395 esac 3396 # Pass precious variables to config.status. 3397 if test "$ac_new_set" = set; then 3398 case $ac_new_val in 3399 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3400 *) ac_arg=$ac_var=$ac_new_val ;; 3401 esac 3402 case " $ac_configure_args " in 3403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3404 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3405 esac 3406 fi 3407done 3408if $ac_cache_corrupted; then 3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3410printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3412printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3413 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3414 and start over" "$LINENO" 5 3415fi 3416## -------------------- ## 3417## Main body of script. ## 3418## -------------------- ## 3419 3420ac_ext=c 3421ac_cpp='$CPP $CPPFLAGS' 3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3424ac_compiler_gnu=$ac_cv_c_compiler_gnu 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 3438 # If we're building out-of-tree, we need to make sure the following 3439 # resources get picked up before their $srcdir counterparts. 3440 # Objects/ -> typeslots.inc 3441 # Include/ -> Python.h 3442 # Python/ -> importlib.h 3443 # (A side effect of this is that these resources will automatically be 3444 # regenerated when building out-of-tree, regardless of whether or not 3445 # the $srcdir counterpart is up-to-date. This is an acceptable trade 3446 # off.) 3447 BASECPPFLAGS="-IObjects -IInclude -IPython" 3448else 3449 BASECPPFLAGS="" 3450fi 3451 3452 3453 3454 3455 3456if test -e $srcdir/.git 3457then 3458# Extract the first word of "git", so it can be a program name with args. 3459set dummy git; ac_word=$2 3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3461printf %s "checking for $ac_word... " >&6; } 3462if test ${ac_cv_prog_HAS_GIT+y} 3463then : 3464 printf %s "(cached) " >&6 3465else $as_nop 3466 if test -n "$HAS_GIT"; then 3467 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 3468else 3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3470for as_dir in $PATH 3471do 3472 IFS=$as_save_IFS 3473 case $as_dir in #((( 3474 '') as_dir=./ ;; 3475 */) ;; 3476 *) as_dir=$as_dir/ ;; 3477 esac 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3480 ac_cv_prog_HAS_GIT="found" 3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3482 break 2 3483 fi 3484done 3485 done 3486IFS=$as_save_IFS 3487 3488 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 3489fi 3490fi 3491HAS_GIT=$ac_cv_prog_HAS_GIT 3492if test -n "$HAS_GIT"; then 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 3494printf "%s\n" "$HAS_GIT" >&6; } 3495else 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497printf "%s\n" "no" >&6; } 3498fi 3499 3500 3501else 3502HAS_GIT=no-repository 3503fi 3504if test $HAS_GIT = found 3505then 3506 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 3507 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 3508 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 3509else 3510 GITVERSION="" 3511 GITTAG="" 3512 GITBRANCH="" 3513fi 3514 3515 3516ac_config_headers="$ac_config_headers pyconfig.h" 3517 3518 3519 3520 3521 3522 # Make sure we can run config.sub. 3523$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3524 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3525 3526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3527printf %s "checking build system type... " >&6; } 3528if test ${ac_cv_build+y} 3529then : 3530 printf %s "(cached) " >&6 3531else $as_nop 3532 ac_build_alias=$build_alias 3533test "x$ac_build_alias" = x && 3534 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3535test "x$ac_build_alias" = x && 3536 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3537ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3538 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3539 3540fi 3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3542printf "%s\n" "$ac_cv_build" >&6; } 3543case $ac_cv_build in 3544*-*-*) ;; 3545*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3546esac 3547build=$ac_cv_build 3548ac_save_IFS=$IFS; IFS='-' 3549set x $ac_cv_build 3550shift 3551build_cpu=$1 3552build_vendor=$2 3553shift; shift 3554# Remember, the first character of IFS is used to create $*, 3555# except with old shells: 3556build_os=$* 3557IFS=$ac_save_IFS 3558case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3559 3560 3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3562printf %s "checking host system type... " >&6; } 3563if test ${ac_cv_host+y} 3564then : 3565 printf %s "(cached) " >&6 3566else $as_nop 3567 if test "x$host_alias" = x; then 3568 ac_cv_host=$ac_cv_build 3569else 3570 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3571 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3572fi 3573 3574fi 3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3576printf "%s\n" "$ac_cv_host" >&6; } 3577case $ac_cv_host in 3578*-*-*) ;; 3579*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3580esac 3581host=$ac_cv_host 3582ac_save_IFS=$IFS; IFS='-' 3583set x $ac_cv_host 3584shift 3585host_cpu=$1 3586host_vendor=$2 3587shift; shift 3588# Remember, the first character of IFS is used to create $*, 3589# except with old shells: 3590host_os=$* 3591IFS=$ac_save_IFS 3592case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3593 3594 3595 3596 3597 3598if test "x$cross_compiling" = xmaybe 3599then : 3600 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 3601 3602fi 3603 3604# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 3605rm -f pybuilddir.txt 3606 3607 3608# Check whether --with-build-python was given. 3609if test ${with_build_python+y} 3610then : 3611 withval=$with_build_python; 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5 3613printf %s "checking for --with-build-python... " >&6; } 3614 3615 if test "x$with_build_python" = xyes 3616then : 3617 with_build_python=python$PACKAGE_VERSION 3618fi 3619 if test "x$with_build_python" = xno 3620then : 3621 as_fn_error $? "invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5 3622fi 3623 3624 if ! $(command -v "$with_build_python" >/dev/null 2>&1); then 3625 as_fn_error $? "invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5 3626 fi 3627 build_python_ver=$($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") 3628 if test "$build_python_ver" != "$PACKAGE_VERSION"; then 3629 as_fn_error $? "\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5 3630 fi 3631 ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python 3632 PYTHON_FOR_FREEZE="$with_build_python" 3633 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$with_build_python 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5 3635printf "%s\n" "$with_build_python" >&6; } 3636 3637else $as_nop 3638 3639 if test "x$cross_compiling" = xyes 3640then : 3641 as_fn_error $? "Cross compiling requires --with-build-python" "$LINENO" 5 3642 3643fi 3644 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 3645 PYTHON_FOR_FREEZE="./_bootstrap_python" 3646 3647 3648fi 3649 3650 3651 3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5 3653printf %s "checking for Python interpreter freezing... " >&6; } 3654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5 3655printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; } 3656 3657 3658if test "x$cross_compiling" = xyes 3659then : 3660 3661 FREEZE_MODULE_BOOTSTRAP='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py' 3662 FREEZE_MODULE_BOOTSTRAP_DEPS='$(srcdir)/Programs/_freeze_module.py' 3663 FREEZE_MODULE='$(FREEZE_MODULE_BOOTSTRAP)' 3664 FREEZE_MODULE_DEPS='$(FREEZE_MODULE_BOOTSTRAP_DEPS)' 3665 PYTHON_FOR_BUILD_DEPS='' 3666 3667else $as_nop 3668 3669 FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module' 3670 FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module" 3671 FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py' 3672 FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py" 3673 PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)' 3674 3675 3676fi 3677 3678 3679 3680 3681 3682 3683for ac_prog in python$PACKAGE_VERSION python3.10 python3.9 python3.8 python3.7 python3.6 python3 python 3684do 3685 # Extract the first word of "$ac_prog", so it can be a program name with args. 3686set dummy $ac_prog; ac_word=$2 3687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3688printf %s "checking for $ac_word... " >&6; } 3689if test ${ac_cv_prog_PYTHON_FOR_REGEN+y} 3690then : 3691 printf %s "(cached) " >&6 3692else $as_nop 3693 if test -n "$PYTHON_FOR_REGEN"; then 3694 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 3695else 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 case $as_dir in #((( 3701 '') as_dir=./ ;; 3702 */) ;; 3703 *) as_dir=$as_dir/ ;; 3704 esac 3705 for ac_exec_ext in '' $ac_executable_extensions; do 3706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3707 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3709 break 2 3710 fi 3711done 3712 done 3713IFS=$as_save_IFS 3714 3715fi 3716fi 3717PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 3718if test -n "$PYTHON_FOR_REGEN"; then 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 3720printf "%s\n" "$PYTHON_FOR_REGEN" >&6; } 3721else 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3723printf "%s\n" "no" >&6; } 3724fi 3725 3726 3727 test -n "$PYTHON_FOR_REGEN" && break 3728done 3729test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 3730 3731 3732 3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5 3734printf %s "checking Python for regen version... " >&6; } 3735if command -v "$PYTHON_FOR_REGEN" >/dev/null 2>&1; then 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5 3737printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; } 3738else 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 3740printf "%s\n" "missing" >&6; } 3741fi 3742 3743 3744if test "$prefix" != "/"; then 3745 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 3746fi 3747 3748 3749 3750 3751# We don't use PACKAGE_ variables, and they cause conflicts 3752# with other autoconf-based packages that include Python.h 3753grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 3754rm confdefs.h 3755mv confdefs.h.new confdefs.h 3756 3757 3758VERSION=3.11 3759 3760# Version number of Python's own shared library file. 3761 3762SOVERSION=1.0 3763 3764# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3765# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 3766# them. 3767 3768printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3769 3770 3771# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3772# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 3773# them. 3774 3775printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h 3776 3777 3778# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3779# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 3780# them. 3781 3782printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3783 3784 3785 3786define_xopen_source=yes 3787 3788# Arguments passed to configure. 3789 3790CONFIG_ARGS="$ac_configure_args" 3791 3792 3793# Check whether --with-pkg-config was given. 3794if test ${with_pkg_config+y} 3795then : 3796 withval=$with_pkg_config; 3797else $as_nop 3798 with_pkg_config=check 3799 3800fi 3801 3802case $with_pkg_config in #( 3803 yes|check) : 3804 3805 if test -z "$PKG_CONFIG"; then 3806 { PKG_CONFIG=; unset PKG_CONFIG;} 3807 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 3808 { ac_cv_prog_ac_ct_PKG_CONFIG=; unset ac_cv_prog_ac_ct_PKG_CONFIG;} 3809 fi 3810 3811 3812 3813 3814 3815 3816 3817if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3818 if test -n "$ac_tool_prefix"; then 3819 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3820set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3822printf %s "checking for $ac_word... " >&6; } 3823if test ${ac_cv_path_PKG_CONFIG+y} 3824then : 3825 printf %s "(cached) " >&6 3826else $as_nop 3827 case $PKG_CONFIG in 3828 [\\/]* | ?:[\\/]*) 3829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3830 ;; 3831 *) 3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3833for as_dir in $PATH 3834do 3835 IFS=$as_save_IFS 3836 case $as_dir in #((( 3837 '') as_dir=./ ;; 3838 */) ;; 3839 *) as_dir=$as_dir/ ;; 3840 esac 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3843 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851 ;; 3852esac 3853fi 3854PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3855if test -n "$PKG_CONFIG"; then 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3857printf "%s\n" "$PKG_CONFIG" >&6; } 3858else 3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3860printf "%s\n" "no" >&6; } 3861fi 3862 3863 3864fi 3865if test -z "$ac_cv_path_PKG_CONFIG"; then 3866 ac_pt_PKG_CONFIG=$PKG_CONFIG 3867 # Extract the first word of "pkg-config", so it can be a program name with args. 3868set dummy pkg-config; ac_word=$2 3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870printf %s "checking for $ac_word... " >&6; } 3871if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 3872then : 3873 printf %s "(cached) " >&6 3874else $as_nop 3875 case $ac_pt_PKG_CONFIG in 3876 [\\/]* | ?:[\\/]*) 3877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3878 ;; 3879 *) 3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3881for as_dir in $PATH 3882do 3883 IFS=$as_save_IFS 3884 case $as_dir in #((( 3885 '') as_dir=./ ;; 3886 */) ;; 3887 *) as_dir=$as_dir/ ;; 3888 esac 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3891 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3893 break 2 3894 fi 3895done 3896 done 3897IFS=$as_save_IFS 3898 3899 ;; 3900esac 3901fi 3902ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3903if test -n "$ac_pt_PKG_CONFIG"; then 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3905printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 3906else 3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908printf "%s\n" "no" >&6; } 3909fi 3910 3911 if test "x$ac_pt_PKG_CONFIG" = x; then 3912 PKG_CONFIG="" 3913 else 3914 case $cross_compiling:$ac_tool_warned in 3915yes:) 3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3918ac_tool_warned=yes ;; 3919esac 3920 PKG_CONFIG=$ac_pt_PKG_CONFIG 3921 fi 3922else 3923 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3924fi 3925 3926fi 3927if test -n "$PKG_CONFIG"; then 3928 _pkg_min_version=0.9.0 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3930printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3931 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3933printf "%s\n" "yes" >&6; } 3934 else 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3936printf "%s\n" "no" >&6; } 3937 PKG_CONFIG="" 3938 fi 3939fi 3940 ;; #( 3941 no) : 3942 3943 PKG_CONFIG='' 3944 ac_cv_path_ac_pt_PKG_CONFIG='' 3945 ac_cv_prog_ac_ct_PKG_CONFIG='' 3946 ;; #( 3947 *) : 3948 as_fn_error $? "invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5 3949 ;; 3950esac 3951if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then 3952 as_fn_error $? "pkg-config is required" "$LINENO" 5] 3953fi 3954 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3956printf %s "checking for --enable-universalsdk... " >&6; } 3957# Check whether --enable-universalsdk was given. 3958if test ${enable_universalsdk+y} 3959then : 3960 enableval=$enable_universalsdk; 3961 case $enableval in 3962 yes) 3963 # Locate the best usable SDK, see Mac/README for more 3964 # information 3965 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3966 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3967 then 3968 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3969 if test ! -d "${enableval}" 3970 then 3971 enableval=/ 3972 fi 3973 fi 3974 ;; 3975 esac 3976 case $enableval in 3977 no) 3978 UNIVERSALSDK= 3979 enable_universalsdk= 3980 ;; 3981 *) 3982 UNIVERSALSDK=$enableval 3983 if test ! -d "${UNIVERSALSDK}" 3984 then 3985 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3986 fi 3987 ;; 3988 esac 3989 3990 3991else $as_nop 3992 3993 UNIVERSALSDK= 3994 enable_universalsdk= 3995 3996fi 3997 3998if test -n "${UNIVERSALSDK}" 3999then 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 4001printf "%s\n" "${UNIVERSALSDK}" >&6; } 4002else 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004printf "%s\n" "no" >&6; } 4005fi 4006 4007 4008 4009ARCH_RUN_32BIT="" 4010 4011# For backward compatibility reasons we prefer to select '32-bit' if available, 4012# otherwise use 'intel' 4013UNIVERSAL_ARCHS="32-bit" 4014if test "`uname -s`" = "Darwin" 4015then 4016 if test -n "${UNIVERSALSDK}" 4017 then 4018 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 4019 then 4020 UNIVERSAL_ARCHS="intel" 4021 fi 4022 fi 4023fi 4024 4025 4026 4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 4028printf %s "checking for --with-universal-archs... " >&6; } 4029 4030# Check whether --with-universal-archs was given. 4031if test ${with_universal_archs+y} 4032then : 4033 withval=$with_universal_archs; 4034 UNIVERSAL_ARCHS="$withval" 4035 4036fi 4037 4038if test -n "${UNIVERSALSDK}" 4039then 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 4041printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; } 4042else 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044printf "%s\n" "no" >&6; } 4045fi 4046 4047 4048# Check whether --with-framework-name was given. 4049if test ${with_framework_name+y} 4050then : 4051 withval=$with_framework_name; 4052 PYTHONFRAMEWORK=${withval} 4053 PYTHONFRAMEWORKDIR=${withval}.framework 4054 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 4055 4056else $as_nop 4057 4058 PYTHONFRAMEWORK=Python 4059 PYTHONFRAMEWORKDIR=Python.framework 4060 PYTHONFRAMEWORKIDENTIFIER=org.python.python 4061 4062fi 4063 4064# Check whether --enable-framework was given. 4065if test ${enable_framework+y} 4066then : 4067 enableval=$enable_framework; 4068 case $enableval in 4069 yes) 4070 enableval=/Library/Frameworks 4071 esac 4072 case $enableval in 4073 no) 4074 PYTHONFRAMEWORK= 4075 PYTHONFRAMEWORKDIR=no-framework 4076 PYTHONFRAMEWORKPREFIX= 4077 PYTHONFRAMEWORKINSTALLDIR= 4078 FRAMEWORKINSTALLFIRST= 4079 FRAMEWORKINSTALLLAST= 4080 FRAMEWORKALTINSTALLFIRST= 4081 FRAMEWORKALTINSTALLLAST= 4082 FRAMEWORKPYTHONW= 4083 if test "x${prefix}" = "xNONE"; then 4084 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4085 else 4086 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4087 fi 4088 enable_framework= 4089 ;; 4090 *) 4091 PYTHONFRAMEWORKPREFIX="${enableval}" 4092 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 4093 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 4094 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " 4095 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 4096 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 4097 FRAMEWORKPYTHONW="frameworkpythonw" 4098 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4099 4100 if test "x${prefix}" = "xNONE" ; then 4101 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4102 4103 else 4104 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4105 fi 4106 4107 case "${enableval}" in 4108 /System*) 4109 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4110 if test "${prefix}" = "NONE" ; then 4111 # See below 4112 FRAMEWORKUNIXTOOLSPREFIX="/usr" 4113 fi 4114 ;; 4115 4116 /Library*) 4117 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4118 ;; 4119 4120 */Library/Frameworks) 4121 MDIR="`dirname "${enableval}"`" 4122 MDIR="`dirname "${MDIR}"`" 4123 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 4124 4125 if test "${prefix}" = "NONE"; then 4126 # User hasn't specified the 4127 # --prefix option, but wants to install 4128 # the framework in a non-default location, 4129 # ensure that the compatibility links get 4130 # installed relative to that prefix as well 4131 # instead of in /usr/local. 4132 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 4133 fi 4134 ;; 4135 4136 *) 4137 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4138 ;; 4139 esac 4140 4141 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 4142 4143 # Add files for Mac specific code to the list of output 4144 # files: 4145 ac_config_files="$ac_config_files Mac/Makefile" 4146 4147 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 4148 4149 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 4150 4151 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 4152 4153 esac 4154 4155else $as_nop 4156 4157 PYTHONFRAMEWORK= 4158 PYTHONFRAMEWORKDIR=no-framework 4159 PYTHONFRAMEWORKPREFIX= 4160 PYTHONFRAMEWORKINSTALLDIR= 4161 FRAMEWORKINSTALLFIRST= 4162 FRAMEWORKINSTALLLAST= 4163 FRAMEWORKALTINSTALLFIRST= 4164 FRAMEWORKALTINSTALLLAST= 4165 FRAMEWORKPYTHONW= 4166 if test "x${prefix}" = "xNONE" ; then 4167 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4168 else 4169 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4170 fi 4171 enable_framework= 4172 4173 4174fi 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h 4191 4192 4193# Set name for machine-dependent library files 4194 4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 4196printf %s "checking MACHDEP... " >&6; } 4197if test -z "$MACHDEP" 4198then 4199 # avoid using uname for cross builds 4200 if test "$cross_compiling" = yes; then 4201 # ac_sys_system and ac_sys_release are used for setting 4202 # a lot of different things including 'define_xopen_source' 4203 # in the case statement below. 4204 case "$host" in 4205 *-*-linux-android*) 4206 ac_sys_system=Linux-android 4207 ;; 4208 *-*-linux*) 4209 ac_sys_system=Linux 4210 ;; 4211 *-*-cygwin*) 4212 ac_sys_system=Cygwin 4213 ;; 4214 *-*-vxworks*) 4215 ac_sys_system=VxWorks 4216 ;; 4217 *-*-emscripten) 4218 ac_sys_system=Emscripten 4219 ;; 4220 *-*-wasi) 4221 ac_sys_system=WASI 4222 ;; 4223 *) 4224 # for now, limit cross builds to known configurations 4225 MACHDEP="unknown" 4226 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 4227 esac 4228 ac_sys_release= 4229 else 4230 ac_sys_system=`uname -s` 4231 if test "$ac_sys_system" = "AIX" \ 4232 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 4233 ac_sys_release=`uname -v` 4234 else 4235 ac_sys_release=`uname -r` 4236 fi 4237 fi 4238 ac_md_system=`echo $ac_sys_system | 4239 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 4240 ac_md_release=`echo $ac_sys_release | 4241 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 4242 MACHDEP="$ac_md_system$ac_md_release" 4243 4244 case $MACHDEP in 4245 aix*) MACHDEP="aix";; 4246 linux*) MACHDEP="linux";; 4247 cygwin*) MACHDEP="cygwin";; 4248 darwin*) MACHDEP="darwin";; 4249 '') MACHDEP="unknown";; 4250 esac 4251fi 4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 4253printf "%s\n" "\"$MACHDEP\"" >&6; } 4254 4255 4256if test "$cross_compiling" = yes; then 4257 case "$host" in 4258 *-*-linux*) 4259 case "$host_cpu" in 4260 arm*) 4261 _host_cpu=arm 4262 ;; 4263 *) 4264 _host_cpu=$host_cpu 4265 esac 4266 ;; 4267 *-*-cygwin*) 4268 _host_cpu= 4269 ;; 4270 *-*-vxworks*) 4271 _host_cpu=$host_cpu 4272 ;; 4273 wasm32-*-* | wasm64-*-*) 4274 _host_cpu=$host_cpu 4275 ;; 4276 *) 4277 # for now, limit cross builds to known configurations 4278 MACHDEP="unknown" 4279 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 4280 esac 4281 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 4282fi 4283 4284# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 4285# disable features if it is defined, without any means to access these 4286# features as extensions. For these systems, we skip the definition of 4287# _XOPEN_SOURCE. Before adding a system to the list to gain access to 4288# some feature, make sure there is no alternative way to access this 4289# feature. Also, when using wildcards, make sure you have verified the 4290# need for not defining _XOPEN_SOURCE on all systems matching the 4291# wildcard, and that the wildcard does not include future systems 4292# (which may remove their limitations). 4293case $ac_sys_system/$ac_sys_release in 4294 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 4295 # even though select is a POSIX function. Reported by J. Ribbens. 4296 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 4297 # In addition, Stefan Krah confirms that issue #1244610 exists through 4298 # OpenBSD 4.6, but is fixed in 4.7. 4299 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 4300 define_xopen_source=no 4301 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 4302 # also defined. This can be overridden by defining _BSD_SOURCE 4303 # As this has a different meaning on Linux, only define it on OpenBSD 4304 4305printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h 4306 4307 ;; 4308 OpenBSD/*) 4309 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 4310 # also defined. This can be overridden by defining _BSD_SOURCE 4311 # As this has a different meaning on Linux, only define it on OpenBSD 4312 4313printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h 4314 4315 ;; 4316 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 4317 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 4318 # Marc Recht 4319 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 4320 define_xopen_source=no;; 4321 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 4322 # request to enable features supported by the standard as a request 4323 # to disable features not supported by the standard. The best way 4324 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 4325 # entirely and define __EXTENSIONS__ instead. 4326 SunOS/*) 4327 define_xopen_source=no;; 4328 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 4329 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 4330 # Reconfirmed for 7.1.4 by Martin v. Loewis. 4331 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 4332 define_xopen_source=no;; 4333 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 4334 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 4335 SCO_SV/3.2) 4336 define_xopen_source=no;; 4337 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 4338 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 4339 # identifies itself as Darwin/7.* 4340 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 4341 # disables platform specific features beyond repair. 4342 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 4343 # has no effect, don't bother defining them 4344 Darwin/[6789].*) 4345 define_xopen_source=no;; 4346 Darwin/[12][0-9].*) 4347 define_xopen_source=no;; 4348 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 4349 # defining NI_NUMERICHOST. 4350 QNX/6.3.2) 4351 define_xopen_source=no 4352 ;; 4353 # On VxWorks, defining _XOPEN_SOURCE causes compile failures 4354 # in network headers still using system V types. 4355 VxWorks/*) 4356 define_xopen_source=no 4357 ;; 4358 4359 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides 4360 # chroot() and other functions 4361 hp*|HP*) 4362 define_xopen_source=no 4363 ;; 4364 4365esac 4366 4367if test $define_xopen_source = yes 4368then 4369 # X/Open 7, incorporating POSIX.1-2008 4370 4371printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h 4372 4373 4374 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 4375 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 4376 # several APIs are not declared. Since this is also needed in some 4377 # cases for HP-UX, we define it globally. 4378 4379printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 4380 4381 4382 4383printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 4384 4385fi 4386 4387# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 4388case $ac_sys_system in 4389 hp*|HP*) 4390 define_stdc_a1=yes;; 4391 *) 4392 define_stdc_a1=no;; 4393esac 4394 4395if test $define_stdc_a1 = yes 4396then 4397 4398printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 4399 4400fi 4401 4402# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 4403# it may influence the way we can build extensions, so distutils 4404# needs to check it 4405 4406 4407CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 4408EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 4409 4410# checks for alternative programs 4411 4412# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 4413# for debug/optimization stuff. BASECFLAGS is for flags that are required 4414# just to get things to compile and link. Users are free to override OPT 4415# when running configure or make. The build should not break if they do. 4416# BASECFLAGS should generally not be messed with, however. 4417 4418# If the user switches compilers, we can't believe the cache 4419if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 4420then 4421 as_fn_error $? "cached CC is different -- throw away $cache_file 4422(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 4423fi 4424 4425# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 4426# when the compiler supports them, but we don't always want -O2, and 4427# we set -g later. 4428if test -z "$CFLAGS"; then 4429 CFLAGS= 4430fi 4431 4432case $host in #( 4433 wasm64-*-emscripten) : 4434 4435 as_fn_append CFLAGS " -sMEMORY64=1" 4436 as_fn_append LDFLAGS " -sMEMORY64=1" 4437 ;; #( 4438 *) : 4439 ;; 4440esac 4441 4442if test "$ac_sys_system" = "Darwin" 4443then 4444 # Compiler selection on MacOSX is more complicated than 4445 # AC_PROG_CC can handle, see Mac/README for more 4446 # information 4447 if test -z "${CC}" 4448 then 4449 found_gcc= 4450 found_clang= 4451 as_save_IFS=$IFS; IFS=: 4452 for as_dir in $PATH 4453 do 4454 IFS=$as_save_IFS 4455 if test -x "${as_dir}/gcc"; then 4456 if test -z "${found_gcc}"; then 4457 found_gcc="${as_dir}/gcc" 4458 fi 4459 fi 4460 if test -x "${as_dir}/clang"; then 4461 if test -z "${found_clang}"; then 4462 found_clang="${as_dir}/clang" 4463 fi 4464 fi 4465 done 4466 IFS=$as_save_IFS 4467 4468 if test -n "$found_gcc" -a -n "$found_clang" 4469 then 4470 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 4471 then 4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 4473printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 4474 CC="$found_clang" 4475 CXX="$found_clang++" 4476 fi 4477 4478 4479 elif test -z "$found_gcc" -a -n "$found_clang" 4480 then 4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 4482printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;} 4483 CC="$found_clang" 4484 CXX="$found_clang++" 4485 4486 elif test -z "$found_gcc" -a -z "$found_clang" 4487 then 4488 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 4489 if test -n "${found_clang}" 4490 then 4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 4492printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;} 4493 CC="${found_clang}" 4494 CXX="`/usr/bin/xcrun -find clang++`" 4495 4496 # else: use default behaviour 4497 fi 4498 fi 4499 fi 4500fi 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510ac_ext=c 4511ac_cpp='$CPP $CPPFLAGS' 4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4514ac_compiler_gnu=$ac_cv_c_compiler_gnu 4515if test -n "$ac_tool_prefix"; then 4516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4517set dummy ${ac_tool_prefix}gcc; ac_word=$2 4518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519printf %s "checking for $ac_word... " >&6; } 4520if test ${ac_cv_prog_CC+y} 4521then : 4522 printf %s "(cached) " >&6 4523else $as_nop 4524 if test -n "$CC"; then 4525 ac_cv_prog_CC="$CC" # Let the user override the test. 4526else 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 case $as_dir in #((( 4532 '') as_dir=./ ;; 4533 */) ;; 4534 *) as_dir=$as_dir/ ;; 4535 esac 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4538 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543 done 4544IFS=$as_save_IFS 4545 4546fi 4547fi 4548CC=$ac_cv_prog_CC 4549if test -n "$CC"; then 4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4551printf "%s\n" "$CC" >&6; } 4552else 4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554printf "%s\n" "no" >&6; } 4555fi 4556 4557 4558fi 4559if test -z "$ac_cv_prog_CC"; then 4560 ac_ct_CC=$CC 4561 # Extract the first word of "gcc", so it can be a program name with args. 4562set dummy gcc; ac_word=$2 4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564printf %s "checking for $ac_word... " >&6; } 4565if test ${ac_cv_prog_ac_ct_CC+y} 4566then : 4567 printf %s "(cached) " >&6 4568else $as_nop 4569 if test -n "$ac_ct_CC"; then 4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4571else 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 case $as_dir in #((( 4577 '') as_dir=./ ;; 4578 */) ;; 4579 *) as_dir=$as_dir/ ;; 4580 esac 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4583 ac_cv_prog_ac_ct_CC="gcc" 4584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4585 break 2 4586 fi 4587done 4588 done 4589IFS=$as_save_IFS 4590 4591fi 4592fi 4593ac_ct_CC=$ac_cv_prog_ac_ct_CC 4594if test -n "$ac_ct_CC"; then 4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4596printf "%s\n" "$ac_ct_CC" >&6; } 4597else 4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4599printf "%s\n" "no" >&6; } 4600fi 4601 4602 if test "x$ac_ct_CC" = x; then 4603 CC="" 4604 else 4605 case $cross_compiling:$ac_tool_warned in 4606yes:) 4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4609ac_tool_warned=yes ;; 4610esac 4611 CC=$ac_ct_CC 4612 fi 4613else 4614 CC="$ac_cv_prog_CC" 4615fi 4616 4617if test -z "$CC"; then 4618 if test -n "$ac_tool_prefix"; then 4619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4620set dummy ${ac_tool_prefix}cc; ac_word=$2 4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4622printf %s "checking for $ac_word... " >&6; } 4623if test ${ac_cv_prog_CC+y} 4624then : 4625 printf %s "(cached) " >&6 4626else $as_nop 4627 if test -n "$CC"; then 4628 ac_cv_prog_CC="$CC" # Let the user override the test. 4629else 4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631for as_dir in $PATH 4632do 4633 IFS=$as_save_IFS 4634 case $as_dir in #((( 4635 '') as_dir=./ ;; 4636 */) ;; 4637 *) as_dir=$as_dir/ ;; 4638 esac 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4641 ac_cv_prog_CC="${ac_tool_prefix}cc" 4642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646 done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651CC=$ac_cv_prog_CC 4652if test -n "$CC"; then 4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4654printf "%s\n" "$CC" >&6; } 4655else 4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657printf "%s\n" "no" >&6; } 4658fi 4659 4660 4661 fi 4662fi 4663if test -z "$CC"; then 4664 # Extract the first word of "cc", so it can be a program name with args. 4665set dummy cc; ac_word=$2 4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4667printf %s "checking for $ac_word... " >&6; } 4668if test ${ac_cv_prog_CC+y} 4669then : 4670 printf %s "(cached) " >&6 4671else $as_nop 4672 if test -n "$CC"; then 4673 ac_cv_prog_CC="$CC" # Let the user override the test. 4674else 4675 ac_prog_rejected=no 4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677for as_dir in $PATH 4678do 4679 IFS=$as_save_IFS 4680 case $as_dir in #((( 4681 '') as_dir=./ ;; 4682 */) ;; 4683 *) as_dir=$as_dir/ ;; 4684 esac 4685 for ac_exec_ext in '' $ac_executable_extensions; do 4686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4687 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4688 ac_prog_rejected=yes 4689 continue 4690 fi 4691 ac_cv_prog_CC="cc" 4692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4693 break 2 4694 fi 4695done 4696 done 4697IFS=$as_save_IFS 4698 4699if test $ac_prog_rejected = yes; then 4700 # We found a bogon in the path, so make sure we never use it. 4701 set dummy $ac_cv_prog_CC 4702 shift 4703 if test $# != 0; then 4704 # We chose a different compiler from the bogus one. 4705 # However, it has the same basename, so the bogon will be chosen 4706 # first if we set CC to just the basename; use the full file name. 4707 shift 4708 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4709 fi 4710fi 4711fi 4712fi 4713CC=$ac_cv_prog_CC 4714if test -n "$CC"; then 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4716printf "%s\n" "$CC" >&6; } 4717else 4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4719printf "%s\n" "no" >&6; } 4720fi 4721 4722 4723fi 4724if test -z "$CC"; then 4725 if test -n "$ac_tool_prefix"; then 4726 for ac_prog in cl.exe 4727 do 4728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4729set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4731printf %s "checking for $ac_word... " >&6; } 4732if test ${ac_cv_prog_CC+y} 4733then : 4734 printf %s "(cached) " >&6 4735else $as_nop 4736 if test -n "$CC"; then 4737 ac_cv_prog_CC="$CC" # Let the user override the test. 4738else 4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4740for as_dir in $PATH 4741do 4742 IFS=$as_save_IFS 4743 case $as_dir in #((( 4744 '') as_dir=./ ;; 4745 */) ;; 4746 *) as_dir=$as_dir/ ;; 4747 esac 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4752 break 2 4753 fi 4754done 4755 done 4756IFS=$as_save_IFS 4757 4758fi 4759fi 4760CC=$ac_cv_prog_CC 4761if test -n "$CC"; then 4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4763printf "%s\n" "$CC" >&6; } 4764else 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766printf "%s\n" "no" >&6; } 4767fi 4768 4769 4770 test -n "$CC" && break 4771 done 4772fi 4773if test -z "$CC"; then 4774 ac_ct_CC=$CC 4775 for ac_prog in cl.exe 4776do 4777 # Extract the first word of "$ac_prog", so it can be a program name with args. 4778set dummy $ac_prog; ac_word=$2 4779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780printf %s "checking for $ac_word... " >&6; } 4781if test ${ac_cv_prog_ac_ct_CC+y} 4782then : 4783 printf %s "(cached) " >&6 4784else $as_nop 4785 if test -n "$ac_ct_CC"; then 4786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4787else 4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789for as_dir in $PATH 4790do 4791 IFS=$as_save_IFS 4792 case $as_dir in #((( 4793 '') as_dir=./ ;; 4794 */) ;; 4795 *) as_dir=$as_dir/ ;; 4796 esac 4797 for ac_exec_ext in '' $ac_executable_extensions; do 4798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4799 ac_cv_prog_ac_ct_CC="$ac_prog" 4800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4801 break 2 4802 fi 4803done 4804 done 4805IFS=$as_save_IFS 4806 4807fi 4808fi 4809ac_ct_CC=$ac_cv_prog_ac_ct_CC 4810if test -n "$ac_ct_CC"; then 4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4812printf "%s\n" "$ac_ct_CC" >&6; } 4813else 4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4815printf "%s\n" "no" >&6; } 4816fi 4817 4818 4819 test -n "$ac_ct_CC" && break 4820done 4821 4822 if test "x$ac_ct_CC" = x; then 4823 CC="" 4824 else 4825 case $cross_compiling:$ac_tool_warned in 4826yes:) 4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4828printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4829ac_tool_warned=yes ;; 4830esac 4831 CC=$ac_ct_CC 4832 fi 4833fi 4834 4835fi 4836if test -z "$CC"; then 4837 if test -n "$ac_tool_prefix"; then 4838 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4839set dummy ${ac_tool_prefix}clang; ac_word=$2 4840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4841printf %s "checking for $ac_word... " >&6; } 4842if test ${ac_cv_prog_CC+y} 4843then : 4844 printf %s "(cached) " >&6 4845else $as_nop 4846 if test -n "$CC"; then 4847 ac_cv_prog_CC="$CC" # Let the user override the test. 4848else 4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850for as_dir in $PATH 4851do 4852 IFS=$as_save_IFS 4853 case $as_dir in #((( 4854 '') as_dir=./ ;; 4855 */) ;; 4856 *) as_dir=$as_dir/ ;; 4857 esac 4858 for ac_exec_ext in '' $ac_executable_extensions; do 4859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4860 ac_cv_prog_CC="${ac_tool_prefix}clang" 4861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4862 break 2 4863 fi 4864done 4865 done 4866IFS=$as_save_IFS 4867 4868fi 4869fi 4870CC=$ac_cv_prog_CC 4871if test -n "$CC"; then 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4873printf "%s\n" "$CC" >&6; } 4874else 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876printf "%s\n" "no" >&6; } 4877fi 4878 4879 4880fi 4881if test -z "$ac_cv_prog_CC"; then 4882 ac_ct_CC=$CC 4883 # Extract the first word of "clang", so it can be a program name with args. 4884set dummy clang; ac_word=$2 4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4886printf %s "checking for $ac_word... " >&6; } 4887if test ${ac_cv_prog_ac_ct_CC+y} 4888then : 4889 printf %s "(cached) " >&6 4890else $as_nop 4891 if test -n "$ac_ct_CC"; then 4892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4893else 4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895for as_dir in $PATH 4896do 4897 IFS=$as_save_IFS 4898 case $as_dir in #((( 4899 '') as_dir=./ ;; 4900 */) ;; 4901 *) as_dir=$as_dir/ ;; 4902 esac 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4905 ac_cv_prog_ac_ct_CC="clang" 4906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4907 break 2 4908 fi 4909done 4910 done 4911IFS=$as_save_IFS 4912 4913fi 4914fi 4915ac_ct_CC=$ac_cv_prog_ac_ct_CC 4916if test -n "$ac_ct_CC"; then 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4918printf "%s\n" "$ac_ct_CC" >&6; } 4919else 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4921printf "%s\n" "no" >&6; } 4922fi 4923 4924 if test "x$ac_ct_CC" = x; then 4925 CC="" 4926 else 4927 case $cross_compiling:$ac_tool_warned in 4928yes:) 4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4931ac_tool_warned=yes ;; 4932esac 4933 CC=$ac_ct_CC 4934 fi 4935else 4936 CC="$ac_cv_prog_CC" 4937fi 4938 4939fi 4940 4941 4942test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4944as_fn_error $? "no acceptable C compiler found in \$PATH 4945See \`config.log' for more details" "$LINENO" 5; } 4946 4947# Provide some information about the compiler. 4948printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4949set X $ac_compile 4950ac_compiler=$2 4951for ac_option in --version -v -V -qversion -version; do 4952 { { ac_try="$ac_compiler $ac_option >&5" 4953case "(($ac_try" in 4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4955 *) ac_try_echo=$ac_try;; 4956esac 4957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4958printf "%s\n" "$ac_try_echo"; } >&5 4959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4960 ac_status=$? 4961 if test -s conftest.err; then 4962 sed '10a\ 4963... rest of stderr output deleted ... 4964 10q' conftest.err >conftest.er1 4965 cat conftest.er1 >&5 4966 fi 4967 rm -f conftest.er1 conftest.err 4968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4969 test $ac_status = 0; } 4970done 4971 4972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973/* end confdefs.h. */ 4974 4975int 4976main (void) 4977{ 4978 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983ac_clean_files_save=$ac_clean_files 4984ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4985# Try to create an executable without -o first, disregard a.out. 4986# It will help us diagnose broken compilers, and finding out an intuition 4987# of exeext. 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4989printf %s "checking whether the C compiler works... " >&6; } 4990ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4991 4992# The possible output files: 4993ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4994 4995ac_rmfiles= 4996for ac_file in $ac_files 4997do 4998 case $ac_file in 4999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5000 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5001 esac 5002done 5003rm -f $ac_rmfiles 5004 5005if { { ac_try="$ac_link_default" 5006case "(($ac_try" in 5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5008 *) ac_try_echo=$ac_try;; 5009esac 5010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5011printf "%s\n" "$ac_try_echo"; } >&5 5012 (eval "$ac_link_default") 2>&5 5013 ac_status=$? 5014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5015 test $ac_status = 0; } 5016then : 5017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5019# in a Makefile. We should not override ac_cv_exeext if it was cached, 5020# so that the user can short-circuit this test for compilers unknown to 5021# Autoconf. 5022for ac_file in $ac_files '' 5023do 5024 test -f "$ac_file" || continue 5025 case $ac_file in 5026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5027 ;; 5028 [ab].out ) 5029 # We found the default executable, but exeext='' is most 5030 # certainly right. 5031 break;; 5032 *.* ) 5033 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5034 then :; else 5035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5036 fi 5037 # We set ac_cv_exeext here because the later test for it is not 5038 # safe: cross compilers may not add the suffix if given an `-o' 5039 # argument, so we may need to know it at that point already. 5040 # Even if this section looks crufty: it has the advantage of 5041 # actually working. 5042 break;; 5043 * ) 5044 break;; 5045 esac 5046done 5047test "$ac_cv_exeext" = no && ac_cv_exeext= 5048 5049else $as_nop 5050 ac_file='' 5051fi 5052if test -z "$ac_file" 5053then : 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5055printf "%s\n" "no" >&6; } 5056printf "%s\n" "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5060printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5061as_fn_error 77 "C compiler cannot create executables 5062See \`config.log' for more details" "$LINENO" 5; } 5063else $as_nop 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5065printf "%s\n" "yes" >&6; } 5066fi 5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5068printf %s "checking for C compiler default output file name... " >&6; } 5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5070printf "%s\n" "$ac_file" >&6; } 5071ac_exeext=$ac_cv_exeext 5072 5073rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5074ac_clean_files=$ac_clean_files_save 5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5076printf %s "checking for suffix of executables... " >&6; } 5077if { { ac_try="$ac_link" 5078case "(($ac_try" in 5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5080 *) ac_try_echo=$ac_try;; 5081esac 5082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5083printf "%s\n" "$ac_try_echo"; } >&5 5084 (eval "$ac_link") 2>&5 5085 ac_status=$? 5086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5087 test $ac_status = 0; } 5088then : 5089 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5090# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5091# work properly (i.e., refer to `conftest.exe'), while it won't with 5092# `rm'. 5093for ac_file in conftest.exe conftest conftest.*; do 5094 test -f "$ac_file" || continue 5095 case $ac_file in 5096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5097 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5098 break;; 5099 * ) break;; 5100 esac 5101done 5102else $as_nop 5103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5104printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5105as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5106See \`config.log' for more details" "$LINENO" 5; } 5107fi 5108rm -f conftest conftest$ac_cv_exeext 5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5110printf "%s\n" "$ac_cv_exeext" >&6; } 5111 5112rm -f conftest.$ac_ext 5113EXEEXT=$ac_cv_exeext 5114ac_exeext=$EXEEXT 5115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117#include <stdio.h> 5118int 5119main (void) 5120{ 5121FILE *f = fopen ("conftest.out", "w"); 5122 return ferror (f) || fclose (f) != 0; 5123 5124 ; 5125 return 0; 5126} 5127_ACEOF 5128ac_clean_files="$ac_clean_files conftest.out" 5129# Check that the compiler produces executables we can run. If not, either 5130# the compiler is broken, or we cross compile. 5131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5132printf %s "checking whether we are cross compiling... " >&6; } 5133if test "$cross_compiling" != yes; then 5134 { { ac_try="$ac_link" 5135case "(($ac_try" in 5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5137 *) ac_try_echo=$ac_try;; 5138esac 5139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5140printf "%s\n" "$ac_try_echo"; } >&5 5141 (eval "$ac_link") 2>&5 5142 ac_status=$? 5143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5144 test $ac_status = 0; } 5145 if { ac_try='./conftest$ac_cv_exeext' 5146 { { case "(($ac_try" in 5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5148 *) ac_try_echo=$ac_try;; 5149esac 5150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5151printf "%s\n" "$ac_try_echo"; } >&5 5152 (eval "$ac_try") 2>&5 5153 ac_status=$? 5154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5155 test $ac_status = 0; }; }; then 5156 cross_compiling=no 5157 else 5158 if test "$cross_compiling" = maybe; then 5159 cross_compiling=yes 5160 else 5161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5162printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5163as_fn_error 77 "cannot run C compiled programs. 5164If you meant to cross compile, use \`--host'. 5165See \`config.log' for more details" "$LINENO" 5; } 5166 fi 5167 fi 5168fi 5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5170printf "%s\n" "$cross_compiling" >&6; } 5171 5172rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5173ac_clean_files=$ac_clean_files_save 5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5175printf %s "checking for suffix of object files... " >&6; } 5176if test ${ac_cv_objext+y} 5177then : 5178 printf %s "(cached) " >&6 5179else $as_nop 5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5181/* end confdefs.h. */ 5182 5183int 5184main (void) 5185{ 5186 5187 ; 5188 return 0; 5189} 5190_ACEOF 5191rm -f conftest.o conftest.obj 5192if { { ac_try="$ac_compile" 5193case "(($ac_try" in 5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5195 *) ac_try_echo=$ac_try;; 5196esac 5197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5198printf "%s\n" "$ac_try_echo"; } >&5 5199 (eval "$ac_compile") 2>&5 5200 ac_status=$? 5201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5202 test $ac_status = 0; } 5203then : 5204 for ac_file in conftest.o conftest.obj conftest.*; do 5205 test -f "$ac_file" || continue; 5206 case $ac_file in 5207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5209 break;; 5210 esac 5211done 5212else $as_nop 5213 printf "%s\n" "$as_me: failed program was:" >&5 5214sed 's/^/| /' conftest.$ac_ext >&5 5215 5216{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5217printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5218as_fn_error $? "cannot compute suffix of object files: cannot compile 5219See \`config.log' for more details" "$LINENO" 5; } 5220fi 5221rm -f conftest.$ac_cv_objext conftest.$ac_ext 5222fi 5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5224printf "%s\n" "$ac_cv_objext" >&6; } 5225OBJEXT=$ac_cv_objext 5226ac_objext=$OBJEXT 5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5228printf %s "checking whether the compiler supports GNU C... " >&6; } 5229if test ${ac_cv_c_compiler_gnu+y} 5230then : 5231 printf %s "(cached) " >&6 5232else $as_nop 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235 5236int 5237main (void) 5238{ 5239#ifndef __GNUC__ 5240 choke me 5241#endif 5242 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247if ac_fn_c_try_compile "$LINENO" 5248then : 5249 ac_compiler_gnu=yes 5250else $as_nop 5251 ac_compiler_gnu=no 5252fi 5253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5254ac_cv_c_compiler_gnu=$ac_compiler_gnu 5255 5256fi 5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5258printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5259ac_compiler_gnu=$ac_cv_c_compiler_gnu 5260 5261if test $ac_compiler_gnu = yes; then 5262 GCC=yes 5263else 5264 GCC= 5265fi 5266ac_test_CFLAGS=${CFLAGS+y} 5267ac_save_CFLAGS=$CFLAGS 5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5269printf %s "checking whether $CC accepts -g... " >&6; } 5270if test ${ac_cv_prog_cc_g+y} 5271then : 5272 printf %s "(cached) " >&6 5273else $as_nop 5274 ac_save_c_werror_flag=$ac_c_werror_flag 5275 ac_c_werror_flag=yes 5276 ac_cv_prog_cc_g=no 5277 CFLAGS="-g" 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280 5281int 5282main (void) 5283{ 5284 5285 ; 5286 return 0; 5287} 5288_ACEOF 5289if ac_fn_c_try_compile "$LINENO" 5290then : 5291 ac_cv_prog_cc_g=yes 5292else $as_nop 5293 CFLAGS="" 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296 5297int 5298main (void) 5299{ 5300 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305if ac_fn_c_try_compile "$LINENO" 5306then : 5307 5308else $as_nop 5309 ac_c_werror_flag=$ac_save_c_werror_flag 5310 CFLAGS="-g" 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313 5314int 5315main (void) 5316{ 5317 5318 ; 5319 return 0; 5320} 5321_ACEOF 5322if ac_fn_c_try_compile "$LINENO" 5323then : 5324 ac_cv_prog_cc_g=yes 5325fi 5326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5327fi 5328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5331 ac_c_werror_flag=$ac_save_c_werror_flag 5332fi 5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5334printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5335if test $ac_test_CFLAGS; then 5336 CFLAGS=$ac_save_CFLAGS 5337elif test $ac_cv_prog_cc_g = yes; then 5338 if test "$GCC" = yes; then 5339 CFLAGS="-g -O2" 5340 else 5341 CFLAGS="-g" 5342 fi 5343else 5344 if test "$GCC" = yes; then 5345 CFLAGS="-O2" 5346 else 5347 CFLAGS= 5348 fi 5349fi 5350ac_prog_cc_stdc=no 5351if test x$ac_prog_cc_stdc = xno 5352then : 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5354printf %s "checking for $CC option to enable C11 features... " >&6; } 5355if test ${ac_cv_prog_cc_c11+y} 5356then : 5357 printf %s "(cached) " >&6 5358else $as_nop 5359 ac_cv_prog_cc_c11=no 5360ac_save_CC=$CC 5361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363$ac_c_conftest_c11_program 5364_ACEOF 5365for ac_arg in '' -std=gnu11 5366do 5367 CC="$ac_save_CC $ac_arg" 5368 if ac_fn_c_try_compile "$LINENO" 5369then : 5370 ac_cv_prog_cc_c11=$ac_arg 5371fi 5372rm -f core conftest.err conftest.$ac_objext conftest.beam 5373 test "x$ac_cv_prog_cc_c11" != "xno" && break 5374done 5375rm -f conftest.$ac_ext 5376CC=$ac_save_CC 5377fi 5378 5379if test "x$ac_cv_prog_cc_c11" = xno 5380then : 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5382printf "%s\n" "unsupported" >&6; } 5383else $as_nop 5384 if test "x$ac_cv_prog_cc_c11" = x 5385then : 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5387printf "%s\n" "none needed" >&6; } 5388else $as_nop 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5390printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5391 CC="$CC $ac_cv_prog_cc_c11" 5392fi 5393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5394 ac_prog_cc_stdc=c11 5395fi 5396fi 5397if test x$ac_prog_cc_stdc = xno 5398then : 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5400printf %s "checking for $CC option to enable C99 features... " >&6; } 5401if test ${ac_cv_prog_cc_c99+y} 5402then : 5403 printf %s "(cached) " >&6 5404else $as_nop 5405 ac_cv_prog_cc_c99=no 5406ac_save_CC=$CC 5407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409$ac_c_conftest_c99_program 5410_ACEOF 5411for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5412do 5413 CC="$ac_save_CC $ac_arg" 5414 if ac_fn_c_try_compile "$LINENO" 5415then : 5416 ac_cv_prog_cc_c99=$ac_arg 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.beam 5419 test "x$ac_cv_prog_cc_c99" != "xno" && break 5420done 5421rm -f conftest.$ac_ext 5422CC=$ac_save_CC 5423fi 5424 5425if test "x$ac_cv_prog_cc_c99" = xno 5426then : 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5428printf "%s\n" "unsupported" >&6; } 5429else $as_nop 5430 if test "x$ac_cv_prog_cc_c99" = x 5431then : 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5433printf "%s\n" "none needed" >&6; } 5434else $as_nop 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5436printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5437 CC="$CC $ac_cv_prog_cc_c99" 5438fi 5439 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5440 ac_prog_cc_stdc=c99 5441fi 5442fi 5443if test x$ac_prog_cc_stdc = xno 5444then : 5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5446printf %s "checking for $CC option to enable C89 features... " >&6; } 5447if test ${ac_cv_prog_cc_c89+y} 5448then : 5449 printf %s "(cached) " >&6 5450else $as_nop 5451 ac_cv_prog_cc_c89=no 5452ac_save_CC=$CC 5453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455$ac_c_conftest_c89_program 5456_ACEOF 5457for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5458do 5459 CC="$ac_save_CC $ac_arg" 5460 if ac_fn_c_try_compile "$LINENO" 5461then : 5462 ac_cv_prog_cc_c89=$ac_arg 5463fi 5464rm -f core conftest.err conftest.$ac_objext conftest.beam 5465 test "x$ac_cv_prog_cc_c89" != "xno" && break 5466done 5467rm -f conftest.$ac_ext 5468CC=$ac_save_CC 5469fi 5470 5471if test "x$ac_cv_prog_cc_c89" = xno 5472then : 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5474printf "%s\n" "unsupported" >&6; } 5475else $as_nop 5476 if test "x$ac_cv_prog_cc_c89" = x 5477then : 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5479printf "%s\n" "none needed" >&6; } 5480else $as_nop 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5482printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5483 CC="$CC $ac_cv_prog_cc_c89" 5484fi 5485 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5486 ac_prog_cc_stdc=c89 5487fi 5488fi 5489 5490ac_ext=c 5491ac_cpp='$CPP $CPPFLAGS' 5492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5494ac_compiler_gnu=$ac_cv_c_compiler_gnu 5495 5496ac_ext=c 5497ac_cpp='$CPP $CPPFLAGS' 5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5500ac_compiler_gnu=$ac_cv_c_compiler_gnu 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5502printf %s "checking how to run the C preprocessor... " >&6; } 5503# On Suns, sometimes $CPP names a directory. 5504if test -n "$CPP" && test -d "$CPP"; then 5505 CPP= 5506fi 5507if test -z "$CPP"; then 5508 if test ${ac_cv_prog_CPP+y} 5509then : 5510 printf %s "(cached) " >&6 5511else $as_nop 5512 # Double quotes because $CC needs to be expanded 5513 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5514 do 5515 ac_preproc_ok=false 5516for ac_c_preproc_warn_flag in '' yes 5517do 5518 # Use a header file that comes with gcc, so configuring glibc 5519 # with a fresh cross-compiler works. 5520 # On the NeXT, cc -E runs the code through the compiler's parser, 5521 # not just through cpp. "Syntax error" is here to catch this case. 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524#include <limits.h> 5525 Syntax error 5526_ACEOF 5527if ac_fn_c_try_cpp "$LINENO" 5528then : 5529 5530else $as_nop 5531 # Broken: fails on valid input. 5532continue 5533fi 5534rm -f conftest.err conftest.i conftest.$ac_ext 5535 5536 # OK, works on sane cases. Now check whether nonexistent headers 5537 # can be detected and how. 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540#include <ac_nonexistent.h> 5541_ACEOF 5542if ac_fn_c_try_cpp "$LINENO" 5543then : 5544 # Broken: success on invalid input. 5545continue 5546else $as_nop 5547 # Passes both tests. 5548ac_preproc_ok=: 5549break 5550fi 5551rm -f conftest.err conftest.i conftest.$ac_ext 5552 5553done 5554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5555rm -f conftest.i conftest.err conftest.$ac_ext 5556if $ac_preproc_ok 5557then : 5558 break 5559fi 5560 5561 done 5562 ac_cv_prog_CPP=$CPP 5563 5564fi 5565 CPP=$ac_cv_prog_CPP 5566else 5567 ac_cv_prog_CPP=$CPP 5568fi 5569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5570printf "%s\n" "$CPP" >&6; } 5571ac_preproc_ok=false 5572for ac_c_preproc_warn_flag in '' yes 5573do 5574 # Use a header file that comes with gcc, so configuring glibc 5575 # with a fresh cross-compiler works. 5576 # On the NeXT, cc -E runs the code through the compiler's parser, 5577 # not just through cpp. "Syntax error" is here to catch this case. 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580#include <limits.h> 5581 Syntax error 5582_ACEOF 5583if ac_fn_c_try_cpp "$LINENO" 5584then : 5585 5586else $as_nop 5587 # Broken: fails on valid input. 5588continue 5589fi 5590rm -f conftest.err conftest.i conftest.$ac_ext 5591 5592 # OK, works on sane cases. Now check whether nonexistent headers 5593 # can be detected and how. 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596#include <ac_nonexistent.h> 5597_ACEOF 5598if ac_fn_c_try_cpp "$LINENO" 5599then : 5600 # Broken: success on invalid input. 5601continue 5602else $as_nop 5603 # Passes both tests. 5604ac_preproc_ok=: 5605break 5606fi 5607rm -f conftest.err conftest.i conftest.$ac_ext 5608 5609done 5610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5611rm -f conftest.i conftest.err conftest.$ac_ext 5612if $ac_preproc_ok 5613then : 5614 5615else $as_nop 5616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5617printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5618as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5619See \`config.log' for more details" "$LINENO" 5; } 5620fi 5621 5622ac_ext=c 5623ac_cpp='$CPP $CPPFLAGS' 5624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5626ac_compiler_gnu=$ac_cv_c_compiler_gnu 5627 5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5629printf %s "checking for grep that handles long lines and -e... " >&6; } 5630if test ${ac_cv_path_GREP+y} 5631then : 5632 printf %s "(cached) " >&6 5633else $as_nop 5634 if test -z "$GREP"; then 5635 ac_path_GREP_found=false 5636 # Loop through the user's path and test for each of PROGNAME-LIST 5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5639do 5640 IFS=$as_save_IFS 5641 case $as_dir in #((( 5642 '') as_dir=./ ;; 5643 */) ;; 5644 *) as_dir=$as_dir/ ;; 5645 esac 5646 for ac_prog in grep ggrep 5647 do 5648 for ac_exec_ext in '' $ac_executable_extensions; do 5649 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5650 as_fn_executable_p "$ac_path_GREP" || continue 5651# Check for GNU ac_path_GREP and select it if it is found. 5652 # Check for GNU $ac_path_GREP 5653case `"$ac_path_GREP" --version 2>&1` in 5654*GNU*) 5655 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5656*) 5657 ac_count=0 5658 printf %s 0123456789 >"conftest.in" 5659 while : 5660 do 5661 cat "conftest.in" "conftest.in" >"conftest.tmp" 5662 mv "conftest.tmp" "conftest.in" 5663 cp "conftest.in" "conftest.nl" 5664 printf "%s\n" 'GREP' >> "conftest.nl" 5665 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5667 as_fn_arith $ac_count + 1 && ac_count=$as_val 5668 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5669 # Best one so far, save it but keep looking for a better one 5670 ac_cv_path_GREP="$ac_path_GREP" 5671 ac_path_GREP_max=$ac_count 5672 fi 5673 # 10*(2^10) chars as input seems more than enough 5674 test $ac_count -gt 10 && break 5675 done 5676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5677esac 5678 5679 $ac_path_GREP_found && break 3 5680 done 5681 done 5682 done 5683IFS=$as_save_IFS 5684 if test -z "$ac_cv_path_GREP"; then 5685 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5686 fi 5687else 5688 ac_cv_path_GREP=$GREP 5689fi 5690 5691fi 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5693printf "%s\n" "$ac_cv_path_GREP" >&6; } 5694 GREP="$ac_cv_path_GREP" 5695 5696 5697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5698printf %s "checking for a sed that does not truncate output... " >&6; } 5699if test ${ac_cv_path_SED+y} 5700then : 5701 printf %s "(cached) " >&6 5702else $as_nop 5703 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5704 for ac_i in 1 2 3 4 5 6 7; do 5705 ac_script="$ac_script$as_nl$ac_script" 5706 done 5707 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5708 { ac_script=; unset ac_script;} 5709 if test -z "$SED"; then 5710 ac_path_SED_found=false 5711 # Loop through the user's path and test for each of PROGNAME-LIST 5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 case $as_dir in #((( 5717 '') as_dir=./ ;; 5718 */) ;; 5719 *) as_dir=$as_dir/ ;; 5720 esac 5721 for ac_prog in sed gsed 5722 do 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5725 as_fn_executable_p "$ac_path_SED" || continue 5726# Check for GNU ac_path_SED and select it if it is found. 5727 # Check for GNU $ac_path_SED 5728case `"$ac_path_SED" --version 2>&1` in 5729*GNU*) 5730 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5731*) 5732 ac_count=0 5733 printf %s 0123456789 >"conftest.in" 5734 while : 5735 do 5736 cat "conftest.in" "conftest.in" >"conftest.tmp" 5737 mv "conftest.tmp" "conftest.in" 5738 cp "conftest.in" "conftest.nl" 5739 printf "%s\n" '' >> "conftest.nl" 5740 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5742 as_fn_arith $ac_count + 1 && ac_count=$as_val 5743 if test $ac_count -gt ${ac_path_SED_max-0}; then 5744 # Best one so far, save it but keep looking for a better one 5745 ac_cv_path_SED="$ac_path_SED" 5746 ac_path_SED_max=$ac_count 5747 fi 5748 # 10*(2^10) chars as input seems more than enough 5749 test $ac_count -gt 10 && break 5750 done 5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5752esac 5753 5754 $ac_path_SED_found && break 3 5755 done 5756 done 5757 done 5758IFS=$as_save_IFS 5759 if test -z "$ac_cv_path_SED"; then 5760 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5761 fi 5762else 5763 ac_cv_path_SED=$SED 5764fi 5765 5766fi 5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5768printf "%s\n" "$ac_cv_path_SED" >&6; } 5769 SED="$ac_cv_path_SED" 5770 rm -f conftest.sed 5771 5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5773printf %s "checking for egrep... " >&6; } 5774if test ${ac_cv_path_EGREP+y} 5775then : 5776 printf %s "(cached) " >&6 5777else $as_nop 5778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5779 then ac_cv_path_EGREP="$GREP -E" 5780 else 5781 if test -z "$EGREP"; then 5782 ac_path_EGREP_found=false 5783 # Loop through the user's path and test for each of PROGNAME-LIST 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5786do 5787 IFS=$as_save_IFS 5788 case $as_dir in #((( 5789 '') as_dir=./ ;; 5790 */) ;; 5791 *) as_dir=$as_dir/ ;; 5792 esac 5793 for ac_prog in egrep 5794 do 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5797 as_fn_executable_p "$ac_path_EGREP" || continue 5798# Check for GNU ac_path_EGREP and select it if it is found. 5799 # Check for GNU $ac_path_EGREP 5800case `"$ac_path_EGREP" --version 2>&1` in 5801*GNU*) 5802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5803*) 5804 ac_count=0 5805 printf %s 0123456789 >"conftest.in" 5806 while : 5807 do 5808 cat "conftest.in" "conftest.in" >"conftest.tmp" 5809 mv "conftest.tmp" "conftest.in" 5810 cp "conftest.in" "conftest.nl" 5811 printf "%s\n" 'EGREP' >> "conftest.nl" 5812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5814 as_fn_arith $ac_count + 1 && ac_count=$as_val 5815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5816 # Best one so far, save it but keep looking for a better one 5817 ac_cv_path_EGREP="$ac_path_EGREP" 5818 ac_path_EGREP_max=$ac_count 5819 fi 5820 # 10*(2^10) chars as input seems more than enough 5821 test $ac_count -gt 10 && break 5822 done 5823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5824esac 5825 5826 $ac_path_EGREP_found && break 3 5827 done 5828 done 5829 done 5830IFS=$as_save_IFS 5831 if test -z "$ac_cv_path_EGREP"; then 5832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5833 fi 5834else 5835 ac_cv_path_EGREP=$EGREP 5836fi 5837 5838 fi 5839fi 5840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5841printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5842 EGREP="$ac_cv_path_EGREP" 5843 5844 5845 5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5 5847printf %s "checking for CC compiler name... " >&6; } 5848if test ${ac_cv_cc_name+y} 5849then : 5850 printf %s "(cached) " >&6 5851else $as_nop 5852 5853cat > conftest.c <<EOF 5854#if defined(__INTEL_COMPILER) || defined(__ICC) 5855 icc 5856#elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__) 5857 xlc 5858#elif defined(_MSC_VER) 5859 msvc 5860#elif defined(__clang__) 5861 clang 5862#elif defined(__GNUC__) 5863 gcc 5864#else 5865# error unknown compiler 5866#endif 5867EOF 5868 5869if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5870 ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 5871else 5872 ac_cv_cc_name="unknown" 5873fi 5874rm -f conftest.c conftest.out 5875 5876fi 5877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5 5878printf "%s\n" "$ac_cv_cc_name" >&6; } 5879 5880# checks for UNIX variants that set C preprocessor variables 5881# may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS, 5882# _POSIX_SOURCE, _POSIX_1_SOURCE, and more 5883 5884ac_header= ac_cache= 5885for ac_item in $ac_header_c_list 5886do 5887 if test $ac_cache; then 5888 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5889 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5890 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5891 fi 5892 ac_header= ac_cache= 5893 elif test $ac_header; then 5894 ac_cache=$ac_item 5895 else 5896 ac_header=$ac_item 5897 fi 5898done 5899 5900 5901 5902 5903 5904 5905 5906 5907if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5908then : 5909 5910printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5911 5912fi 5913 5914 5915 5916 5917 5918 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5920printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5921if test ${ac_cv_safe_to_define___extensions__+y} 5922then : 5923 printf %s "(cached) " >&6 5924else $as_nop 5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927 5928# define __EXTENSIONS__ 1 5929 $ac_includes_default 5930int 5931main (void) 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938if ac_fn_c_try_compile "$LINENO" 5939then : 5940 ac_cv_safe_to_define___extensions__=yes 5941else $as_nop 5942 ac_cv_safe_to_define___extensions__=no 5943fi 5944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5945fi 5946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5947printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5948 5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5950printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5951if test ${ac_cv_should_define__xopen_source+y} 5952then : 5953 printf %s "(cached) " >&6 5954else $as_nop 5955 ac_cv_should_define__xopen_source=no 5956 if test $ac_cv_header_wchar_h = yes 5957then : 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960 5961 #include <wchar.h> 5962 mbstate_t x; 5963int 5964main (void) 5965{ 5966 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO" 5972then : 5973 5974else $as_nop 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977 5978 #define _XOPEN_SOURCE 500 5979 #include <wchar.h> 5980 mbstate_t x; 5981int 5982main (void) 5983{ 5984 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_compile "$LINENO" 5990then : 5991 ac_cv_should_define__xopen_source=yes 5992fi 5993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5994fi 5995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5996fi 5997fi 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5999printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6000 6001 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6002 6003 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6004 6005 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6006 6007 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6008 6009 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6010 6011 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6012 6013 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6014 6015 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6016 6017 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6018 6019 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6020 6021 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6022 6023 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6024 6025 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6026 6027 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6028 6029 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6030 6031 if test $ac_cv_header_minix_config_h = yes 6032then : 6033 MINIX=yes 6034 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6035 6036 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6037 6038 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6039 6040else $as_nop 6041 MINIX= 6042fi 6043 if test $ac_cv_safe_to_define___extensions__ = yes 6044then : 6045 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6046 6047fi 6048 if test $ac_cv_should_define__xopen_source = yes 6049then : 6050 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6051 6052fi 6053 6054 6055 6056 6057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 6058printf %s "checking for --with-cxx-main=<compiler>... " >&6; } 6059 6060# Check whether --with-cxx_main was given. 6061if test ${with_cxx_main+y} 6062then : 6063 withval=$with_cxx_main; 6064 6065 case $withval in 6066 no) with_cxx_main=no 6067 MAINCC='$(CC)';; 6068 yes) with_cxx_main=yes 6069 MAINCC='$(CXX)';; 6070 *) with_cxx_main=yes 6071 MAINCC=$withval 6072 if test -z "$CXX" 6073 then 6074 CXX=$withval 6075 fi;; 6076 esac 6077else $as_nop 6078 6079 with_cxx_main=no 6080 MAINCC='$(CC)' 6081 6082fi 6083 6084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 6085printf "%s\n" "$with_cxx_main" >&6; } 6086 6087preset_cxx="$CXX" 6088if test -z "$CXX" 6089then 6090 case "$CC" in 6091 gcc) if test -n "$ac_tool_prefix"; then 6092 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 6093set dummy ${ac_tool_prefix}g++; ac_word=$2 6094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6095printf %s "checking for $ac_word... " >&6; } 6096if test ${ac_cv_path_CXX+y} 6097then : 6098 printf %s "(cached) " >&6 6099else $as_nop 6100 case $CXX in 6101 [\\/]* | ?:[\\/]*) 6102 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6103 ;; 6104 *) 6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106for as_dir in notfound 6107do 6108 IFS=$as_save_IFS 6109 case $as_dir in #((( 6110 '') as_dir=./ ;; 6111 */) ;; 6112 *) as_dir=$as_dir/ ;; 6113 esac 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6116 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6118 break 2 6119 fi 6120done 6121 done 6122IFS=$as_save_IFS 6123 6124 ;; 6125esac 6126fi 6127CXX=$ac_cv_path_CXX 6128if test -n "$CXX"; then 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6130printf "%s\n" "$CXX" >&6; } 6131else 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133printf "%s\n" "no" >&6; } 6134fi 6135 6136 6137fi 6138if test -z "$ac_cv_path_CXX"; then 6139 ac_pt_CXX=$CXX 6140 # Extract the first word of "g++", so it can be a program name with args. 6141set dummy g++; ac_word=$2 6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143printf %s "checking for $ac_word... " >&6; } 6144if test ${ac_cv_path_ac_pt_CXX+y} 6145then : 6146 printf %s "(cached) " >&6 6147else $as_nop 6148 case $ac_pt_CXX in 6149 [\\/]* | ?:[\\/]*) 6150 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6151 ;; 6152 *) 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in notfound 6155do 6156 IFS=$as_save_IFS 6157 case $as_dir in #((( 6158 '') as_dir=./ ;; 6159 */) ;; 6160 *) as_dir=$as_dir/ ;; 6161 esac 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6164 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172 ;; 6173esac 6174fi 6175ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6176if test -n "$ac_pt_CXX"; then 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6178printf "%s\n" "$ac_pt_CXX" >&6; } 6179else 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6181printf "%s\n" "no" >&6; } 6182fi 6183 6184 if test "x$ac_pt_CXX" = x; then 6185 CXX="g++" 6186 else 6187 case $cross_compiling:$ac_tool_warned in 6188yes:) 6189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6191ac_tool_warned=yes ;; 6192esac 6193 CXX=$ac_pt_CXX 6194 fi 6195else 6196 CXX="$ac_cv_path_CXX" 6197fi 6198 ;; 6199 cc) if test -n "$ac_tool_prefix"; then 6200 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 6201set dummy ${ac_tool_prefix}c++; ac_word=$2 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6203printf %s "checking for $ac_word... " >&6; } 6204if test ${ac_cv_path_CXX+y} 6205then : 6206 printf %s "(cached) " >&6 6207else $as_nop 6208 case $CXX in 6209 [\\/]* | ?:[\\/]*) 6210 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6211 ;; 6212 *) 6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in notfound 6215do 6216 IFS=$as_save_IFS 6217 case $as_dir in #((( 6218 '') as_dir=./ ;; 6219 */) ;; 6220 *) as_dir=$as_dir/ ;; 6221 esac 6222 for ac_exec_ext in '' $ac_executable_extensions; do 6223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6224 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6226 break 2 6227 fi 6228done 6229 done 6230IFS=$as_save_IFS 6231 6232 ;; 6233esac 6234fi 6235CXX=$ac_cv_path_CXX 6236if test -n "$CXX"; then 6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6238printf "%s\n" "$CXX" >&6; } 6239else 6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241printf "%s\n" "no" >&6; } 6242fi 6243 6244 6245fi 6246if test -z "$ac_cv_path_CXX"; then 6247 ac_pt_CXX=$CXX 6248 # Extract the first word of "c++", so it can be a program name with args. 6249set dummy c++; ac_word=$2 6250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251printf %s "checking for $ac_word... " >&6; } 6252if test ${ac_cv_path_ac_pt_CXX+y} 6253then : 6254 printf %s "(cached) " >&6 6255else $as_nop 6256 case $ac_pt_CXX in 6257 [\\/]* | ?:[\\/]*) 6258 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6259 ;; 6260 *) 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262for as_dir in notfound 6263do 6264 IFS=$as_save_IFS 6265 case $as_dir in #((( 6266 '') as_dir=./ ;; 6267 */) ;; 6268 *) as_dir=$as_dir/ ;; 6269 esac 6270 for ac_exec_ext in '' $ac_executable_extensions; do 6271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6272 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6274 break 2 6275 fi 6276done 6277 done 6278IFS=$as_save_IFS 6279 6280 ;; 6281esac 6282fi 6283ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6284if test -n "$ac_pt_CXX"; then 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6286printf "%s\n" "$ac_pt_CXX" >&6; } 6287else 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6289printf "%s\n" "no" >&6; } 6290fi 6291 6292 if test "x$ac_pt_CXX" = x; then 6293 CXX="c++" 6294 else 6295 case $cross_compiling:$ac_tool_warned in 6296yes:) 6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6299ac_tool_warned=yes ;; 6300esac 6301 CXX=$ac_pt_CXX 6302 fi 6303else 6304 CXX="$ac_cv_path_CXX" 6305fi 6306 ;; 6307 clang|*/clang) if test -n "$ac_tool_prefix"; then 6308 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 6309set dummy ${ac_tool_prefix}clang++; ac_word=$2 6310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6311printf %s "checking for $ac_word... " >&6; } 6312if test ${ac_cv_path_CXX+y} 6313then : 6314 printf %s "(cached) " >&6 6315else $as_nop 6316 case $CXX in 6317 [\\/]* | ?:[\\/]*) 6318 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6319 ;; 6320 *) 6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6322for as_dir in notfound 6323do 6324 IFS=$as_save_IFS 6325 case $as_dir in #((( 6326 '') as_dir=./ ;; 6327 */) ;; 6328 *) as_dir=$as_dir/ ;; 6329 esac 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6332 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336done 6337 done 6338IFS=$as_save_IFS 6339 6340 ;; 6341esac 6342fi 6343CXX=$ac_cv_path_CXX 6344if test -n "$CXX"; then 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6346printf "%s\n" "$CXX" >&6; } 6347else 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6349printf "%s\n" "no" >&6; } 6350fi 6351 6352 6353fi 6354if test -z "$ac_cv_path_CXX"; then 6355 ac_pt_CXX=$CXX 6356 # Extract the first word of "clang++", so it can be a program name with args. 6357set dummy clang++; ac_word=$2 6358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6359printf %s "checking for $ac_word... " >&6; } 6360if test ${ac_cv_path_ac_pt_CXX+y} 6361then : 6362 printf %s "(cached) " >&6 6363else $as_nop 6364 case $ac_pt_CXX in 6365 [\\/]* | ?:[\\/]*) 6366 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6367 ;; 6368 *) 6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370for as_dir in notfound 6371do 6372 IFS=$as_save_IFS 6373 case $as_dir in #((( 6374 '') as_dir=./ ;; 6375 */) ;; 6376 *) as_dir=$as_dir/ ;; 6377 esac 6378 for ac_exec_ext in '' $ac_executable_extensions; do 6379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6380 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6382 break 2 6383 fi 6384done 6385 done 6386IFS=$as_save_IFS 6387 6388 ;; 6389esac 6390fi 6391ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6392if test -n "$ac_pt_CXX"; then 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6394printf "%s\n" "$ac_pt_CXX" >&6; } 6395else 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397printf "%s\n" "no" >&6; } 6398fi 6399 6400 if test "x$ac_pt_CXX" = x; then 6401 CXX="clang++" 6402 else 6403 case $cross_compiling:$ac_tool_warned in 6404yes:) 6405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6406printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6407ac_tool_warned=yes ;; 6408esac 6409 CXX=$ac_pt_CXX 6410 fi 6411else 6412 CXX="$ac_cv_path_CXX" 6413fi 6414 ;; 6415 icc|*/icc) if test -n "$ac_tool_prefix"; then 6416 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 6417set dummy ${ac_tool_prefix}icpc; ac_word=$2 6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6419printf %s "checking for $ac_word... " >&6; } 6420if test ${ac_cv_path_CXX+y} 6421then : 6422 printf %s "(cached) " >&6 6423else $as_nop 6424 case $CXX in 6425 [\\/]* | ?:[\\/]*) 6426 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6427 ;; 6428 *) 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in notfound 6431do 6432 IFS=$as_save_IFS 6433 case $as_dir in #((( 6434 '') as_dir=./ ;; 6435 */) ;; 6436 *) as_dir=$as_dir/ ;; 6437 esac 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6440 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444done 6445 done 6446IFS=$as_save_IFS 6447 6448 ;; 6449esac 6450fi 6451CXX=$ac_cv_path_CXX 6452if test -n "$CXX"; then 6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6454printf "%s\n" "$CXX" >&6; } 6455else 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457printf "%s\n" "no" >&6; } 6458fi 6459 6460 6461fi 6462if test -z "$ac_cv_path_CXX"; then 6463 ac_pt_CXX=$CXX 6464 # Extract the first word of "icpc", so it can be a program name with args. 6465set dummy icpc; ac_word=$2 6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467printf %s "checking for $ac_word... " >&6; } 6468if test ${ac_cv_path_ac_pt_CXX+y} 6469then : 6470 printf %s "(cached) " >&6 6471else $as_nop 6472 case $ac_pt_CXX in 6473 [\\/]* | ?:[\\/]*) 6474 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6475 ;; 6476 *) 6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in notfound 6479do 6480 IFS=$as_save_IFS 6481 case $as_dir in #((( 6482 '') as_dir=./ ;; 6483 */) ;; 6484 *) as_dir=$as_dir/ ;; 6485 esac 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6488 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496 ;; 6497esac 6498fi 6499ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6500if test -n "$ac_pt_CXX"; then 6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6502printf "%s\n" "$ac_pt_CXX" >&6; } 6503else 6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505printf "%s\n" "no" >&6; } 6506fi 6507 6508 if test "x$ac_pt_CXX" = x; then 6509 CXX="icpc" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 CXX=$ac_pt_CXX 6518 fi 6519else 6520 CXX="$ac_cv_path_CXX" 6521fi 6522 ;; 6523 esac 6524 if test "$CXX" = "notfound" 6525 then 6526 CXX="" 6527 fi 6528fi 6529if test -z "$CXX" 6530then 6531 if test -n "$ac_tool_prefix"; then 6532 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 6533 do 6534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6535set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537printf %s "checking for $ac_word... " >&6; } 6538if test ${ac_cv_prog_CXX+y} 6539then : 6540 printf %s "(cached) " >&6 6541else $as_nop 6542 if test -n "$CXX"; then 6543 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6544else 6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6546for as_dir in $PATH 6547do 6548 IFS=$as_save_IFS 6549 case $as_dir in #((( 6550 '') as_dir=./ ;; 6551 */) ;; 6552 *) as_dir=$as_dir/ ;; 6553 esac 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566CXX=$ac_cv_prog_CXX 6567if test -n "$CXX"; then 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6569printf "%s\n" "$CXX" >&6; } 6570else 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572printf "%s\n" "no" >&6; } 6573fi 6574 6575 6576 test -n "$CXX" && break 6577 done 6578fi 6579if test -z "$CXX"; then 6580 ac_ct_CXX=$CXX 6581 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 6582do 6583 # Extract the first word of "$ac_prog", so it can be a program name with args. 6584set dummy $ac_prog; ac_word=$2 6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586printf %s "checking for $ac_word... " >&6; } 6587if test ${ac_cv_prog_ac_ct_CXX+y} 6588then : 6589 printf %s "(cached) " >&6 6590else $as_nop 6591 if test -n "$ac_ct_CXX"; then 6592 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 case $as_dir in #((( 6599 '') as_dir=./ ;; 6600 */) ;; 6601 *) as_dir=$as_dir/ ;; 6602 esac 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6605 ac_cv_prog_ac_ct_CXX="$ac_prog" 6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6616if test -n "$ac_ct_CXX"; then 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6618printf "%s\n" "$ac_ct_CXX" >&6; } 6619else 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621printf "%s\n" "no" >&6; } 6622fi 6623 6624 6625 test -n "$ac_ct_CXX" && break 6626done 6627 6628 if test "x$ac_ct_CXX" = x; then 6629 CXX="notfound" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632yes:) 6633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635ac_tool_warned=yes ;; 6636esac 6637 CXX=$ac_ct_CXX 6638 fi 6639fi 6640 6641 if test "$CXX" = "notfound" 6642 then 6643 CXX="" 6644 fi 6645fi 6646if test "$preset_cxx" != "$CXX" 6647then 6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 6649 6650 By default, distutils will build C++ extension modules with \"$CXX\". 6651 If this is not intended, then set CXX on the configure command line. 6652 " >&5 6653printf "%s\n" "$as_me: 6654 6655 By default, distutils will build C++ extension modules with \"$CXX\". 6656 If this is not intended, then set CXX on the configure command line. 6657 " >&6;} 6658fi 6659 6660 6661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 6662printf %s "checking for the platform triplet based on compiler characteristics... " >&6; } 6663cat > conftest.c <<EOF 6664#undef bfin 6665#undef cris 6666#undef fr30 6667#undef linux 6668#undef hppa 6669#undef hpux 6670#undef i386 6671#undef mips 6672#undef powerpc 6673#undef sparc 6674#undef unix 6675#if defined(__ANDROID__) 6676 # Android is not a multiarch system. 6677#elif defined(__linux__) 6678# if defined(__x86_64__) && defined(__LP64__) 6679 x86_64-linux-gnu 6680# elif defined(__x86_64__) && defined(__ILP32__) 6681 x86_64-linux-gnux32 6682# elif defined(__i386__) 6683 i386-linux-gnu 6684# elif defined(__aarch64__) && defined(__AARCH64EL__) 6685# if defined(__ILP32__) 6686 aarch64_ilp32-linux-gnu 6687# else 6688 aarch64-linux-gnu 6689# endif 6690# elif defined(__aarch64__) && defined(__AARCH64EB__) 6691# if defined(__ILP32__) 6692 aarch64_be_ilp32-linux-gnu 6693# else 6694 aarch64_be-linux-gnu 6695# endif 6696# elif defined(__alpha__) 6697 alpha-linux-gnu 6698# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) 6699# if defined(__ARMEL__) 6700 arm-linux-gnueabihf 6701# else 6702 armeb-linux-gnueabihf 6703# endif 6704# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) 6705# if defined(__ARMEL__) 6706 arm-linux-gnueabi 6707# else 6708 armeb-linux-gnueabi 6709# endif 6710# elif defined(__hppa__) 6711 hppa-linux-gnu 6712# elif defined(__ia64__) 6713 ia64-linux-gnu 6714# elif defined(__m68k__) && !defined(__mcoldfire__) 6715 m68k-linux-gnu 6716# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) 6717# if _MIPS_SIM == _ABIO32 6718 mipsisa32r6el-linux-gnu 6719# elif _MIPS_SIM == _ABIN32 6720 mipsisa64r6el-linux-gnuabin32 6721# elif _MIPS_SIM == _ABI64 6722 mipsisa64r6el-linux-gnuabi64 6723# else 6724# error unknown platform triplet 6725# endif 6726# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) 6727# if _MIPS_SIM == _ABIO32 6728 mipsisa32r6-linux-gnu 6729# elif _MIPS_SIM == _ABIN32 6730 mipsisa64r6-linux-gnuabin32 6731# elif _MIPS_SIM == _ABI64 6732 mipsisa64r6-linux-gnuabi64 6733# else 6734# error unknown platform triplet 6735# endif 6736# elif defined(__mips_hard_float) && defined(_MIPSEL) 6737# if _MIPS_SIM == _ABIO32 6738 mipsel-linux-gnu 6739# elif _MIPS_SIM == _ABIN32 6740 mips64el-linux-gnuabin32 6741# elif _MIPS_SIM == _ABI64 6742 mips64el-linux-gnuabi64 6743# else 6744# error unknown platform triplet 6745# endif 6746# elif defined(__mips_hard_float) 6747# if _MIPS_SIM == _ABIO32 6748 mips-linux-gnu 6749# elif _MIPS_SIM == _ABIN32 6750 mips64-linux-gnuabin32 6751# elif _MIPS_SIM == _ABI64 6752 mips64-linux-gnuabi64 6753# else 6754# error unknown platform triplet 6755# endif 6756# elif defined(__or1k__) 6757 or1k-linux-gnu 6758# elif defined(__powerpc__) && defined(__SPE__) 6759 powerpc-linux-gnuspe 6760# elif defined(__powerpc64__) 6761# if defined(__LITTLE_ENDIAN__) 6762 powerpc64le-linux-gnu 6763# else 6764 powerpc64-linux-gnu 6765# endif 6766# elif defined(__powerpc__) 6767 powerpc-linux-gnu 6768# elif defined(__s390x__) 6769 s390x-linux-gnu 6770# elif defined(__s390__) 6771 s390-linux-gnu 6772# elif defined(__sh__) && defined(__LITTLE_ENDIAN__) 6773 sh4-linux-gnu 6774# elif defined(__sparc__) && defined(__arch64__) 6775 sparc64-linux-gnu 6776# elif defined(__sparc__) 6777 sparc-linux-gnu 6778# elif defined(__riscv) 6779# if __riscv_xlen == 32 6780 riscv32-linux-gnu 6781# elif __riscv_xlen == 64 6782 riscv64-linux-gnu 6783# else 6784# error unknown platform triplet 6785# endif 6786# else 6787# error unknown platform triplet 6788# endif 6789#elif defined(__FreeBSD_kernel__) 6790# if defined(__LP64__) 6791 x86_64-kfreebsd-gnu 6792# elif defined(__i386__) 6793 i386-kfreebsd-gnu 6794# else 6795# error unknown platform triplet 6796# endif 6797#elif defined(__gnu_hurd__) 6798 i386-gnu 6799#elif defined(__APPLE__) 6800 darwin 6801#elif defined(__VXWORKS__) 6802 vxworks 6803#elif defined(__wasm32__) 6804# if defined(__EMSCRIPTEN__) 6805 wasm32-emscripten 6806# elif defined(__wasi__) 6807 wasm32-wasi 6808# else 6809# error unknown wasm32 platform 6810# endif 6811#elif defined(__wasm64__) 6812# if defined(__EMSCRIPTEN__) 6813 wasm64-emscripten 6814# elif defined(__wasi__) 6815 wasm64-wasi 6816# else 6817# error unknown wasm64 platform 6818# endif 6819#else 6820# error unknown platform triplet 6821#endif 6822 6823EOF 6824 6825if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 6826 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 6827 case "$build_os" in 6828 linux-musl*) 6829 PLATFORM_TRIPLET=`echo "$PLATFORM_TRIPLET" | sed 's/linux-gnu/linux-musl/'` 6830 ;; 6831 esac 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 6833printf "%s\n" "$PLATFORM_TRIPLET" >&6; } 6834else 6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6836printf "%s\n" "none" >&6; } 6837fi 6838rm -f conftest.c conftest.out 6839 6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5 6841printf %s "checking for multiarch... " >&6; } 6842case $ac_sys_system in #( 6843 Darwin*) : 6844 MULTIARCH="" ;; #( 6845 FreeBSD*) : 6846 MULTIARCH="" ;; #( 6847 *) : 6848 MULTIARCH=$($CC --print-multiarch 2>/dev/null) 6849 ;; 6850esac 6851 6852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5 6853printf "%s\n" "$MULTIARCH" >&6; } 6854 6855if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 6856 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 6857 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 6858 fi 6859elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 6860 MULTIARCH=$PLATFORM_TRIPLET 6861fi 6862 6863 6864if test x$MULTIARCH != x; then 6865 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 6866fi 6867 6868 6869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5 6870printf %s "checking for PEP 11 support tier... " >&6; } 6871case $host/$ac_cv_cc_name in #( 6872 x86_64-*-linux-gnu/gcc) : 6873 PY_SUPPORT_TIER=1 ;; #( 6874 x86_64-apple-darwin*/clang) : 6875 PY_SUPPORT_TIER=1 ;; #( 6876 i686-pc-windows-msvc/msvc) : 6877 PY_SUPPORT_TIER=1 ;; #( 6878 x86_64-pc-windows-msvc/msvc) : 6879 PY_SUPPORT_TIER=1 ;; #( 6880 6881 aarch64-apple-darwin*/clang) : 6882 PY_SUPPORT_TIER=2 ;; #( 6883 aarch64-*-linux-gnu/gcc) : 6884 PY_SUPPORT_TIER=2 ;; #( 6885 aarch64-*-linux-gnu/clang) : 6886 PY_SUPPORT_TIER=2 ;; #( 6887 powerpc64le-*-linux-gnu/gcc) : 6888 PY_SUPPORT_TIER=2 ;; #( 6889 x86_64-*-linux-gnu/clang) : 6890 PY_SUPPORT_TIER=2 ;; #( 6891 6892 aarch64-pc-windows-msvc/msvc) : 6893 PY_SUPPORT_TIER=3 ;; #( 6894 armv7l-*-linux-gnueabihf/gcc) : 6895 PY_SUPPORT_TIER=3 ;; #( 6896 powerpc64le-*-linux-gnu/clang) : 6897 PY_SUPPORT_TIER=3 ;; #( 6898 s390x-*-linux-gnu/gcc) : 6899 PY_SUPPORT_TIER=3 ;; #( 6900 wasm32-unknown-emscripten/clang) : 6901 PY_SUPPORT_TIER=3 ;; #( 6902 wasm32-unknown-wasi/clang) : 6903 PY_SUPPORT_TIER=3 ;; #( 6904 x86_64-*-freebsd*/clang) : 6905 PY_SUPPORT_TIER=3 ;; #( 6906 *) : 6907 PY_SUPPORT_TIER=0 6908 ;; 6909esac 6910 6911case $PY_SUPPORT_TIER in #( 6912 1) : 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5 6914printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #( 6915 2) : 6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5 6917printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #( 6918 3) : 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5 6920printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #( 6921 *) : 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5 6923printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;} 6924 ;; 6925esac 6926 6927 6928printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h 6929 6930 6931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 6932printf %s "checking for -Wl,--no-as-needed... " >&6; } 6933if test ${ac_cv_wl_no_as_needed+y} 6934then : 6935 printf %s "(cached) " >&6 6936else $as_nop 6937 6938 save_LDFLAGS="$LDFLAGS" 6939 as_fn_append LDFLAGS -Wl,--no-as-needed 6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6941/* end confdefs.h. */ 6942 6943int 6944main (void) 6945{ 6946 6947 ; 6948 return 0; 6949} 6950_ACEOF 6951if ac_fn_c_try_link "$LINENO" 6952then : 6953 NO_AS_NEEDED="-Wl,--no-as-needed" 6954 ac_cv_wl_no_as_needed=yes 6955else $as_nop 6956 NO_AS_NEEDED="" 6957 ac_cv_wl_no_as_needed=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6960 conftest$ac_exeext conftest.$ac_ext 6961 LDFLAGS="$save_LDFLAGS" 6962 6963fi 6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5 6965printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; } 6966 6967 6968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 6969printf %s "checking for the Android API level... " >&6; } 6970cat > conftest.c <<EOF 6971#ifdef __ANDROID__ 6972android_api = __ANDROID_API__ 6973arm_arch = __ARM_ARCH 6974#else 6975#error not Android 6976#endif 6977EOF 6978 6979if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 6980 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 6981 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 6983printf "%s\n" "$ANDROID_API_LEVEL" >&6; } 6984 if test -z "$ANDROID_API_LEVEL"; then 6985 as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5 6986 fi 6987 6988printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h 6989 6990 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 6992printf %s "checking for the Android arm ABI... " >&6; } 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 6994printf "%s\n" "$_arm_arch" >&6; } 6995 if test "$_arm_arch" = 7; then 6996 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 6997 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 6998 fi 6999else 7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 7001printf "%s\n" "not Android" >&6; } 7002fi 7003rm -f conftest.c conftest.out 7004 7005# Check for unsupported systems 7006case $ac_sys_system/$ac_sys_release in #( 7007 atheos*|Linux*/1*) : 7008 7009 as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5 7010 7011 ;; #( 7012 *) : 7013 ;; 7014esac 7015 7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-emscripten-target" >&5 7017printf %s "checking for --with-emscripten-target... " >&6; } 7018 7019# Check whether --with-emscripten-target was given. 7020if test ${with_emscripten_target+y} 7021then : 7022 withval=$with_emscripten_target; 7023 if test "x$ac_sys_system" = xEmscripten 7024then : 7025 7026 case $with_emscripten_target in #( 7027 browser) : 7028 ac_sys_emscripten_target=browser ;; #( 7029 node) : 7030 ac_sys_emscripten_target=node ;; #( 7031 browser-debug) : 7032 ac_sys_emscripten_target=browser-debug ;; #( 7033 node-debug) : 7034 ac_sys_emscripten_target=node-debug ;; #( 7035 *) : 7036 as_fn_error $? "Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5 7037 ;; 7038esac 7039 7040else $as_nop 7041 7042 as_fn_error $? "--with-emscripten-target only applies to Emscripten" "$LINENO" 5 7043 7044fi 7045 7046else $as_nop 7047 7048 if test "x$ac_sys_system" = xEmscripten 7049then : 7050 ac_sys_emscripten_target=browser 7051fi 7052 7053fi 7054 7055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_sys_emscripten_target" >&5 7056printf "%s\n" "$ac_sys_emscripten_target" >&6; } 7057 7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5 7059printf %s "checking for --enable-wasm-dynamic-linking... " >&6; } 7060# Check whether --enable-wasm-dynamic-linking was given. 7061if test ${enable_wasm_dynamic_linking+y} 7062then : 7063 enableval=$enable_wasm_dynamic_linking; 7064 case $ac_sys_system in #( 7065 Emscripten) : 7066 ;; #( 7067 WASI) : 7068 as_fn_error $? "WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #( 7069 *) : 7070 as_fn_error $? "--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5 7071 ;; 7072esac 7073 7074else $as_nop 7075 7076 enable_wasm_dynamic_linking=missing 7077 7078fi 7079 7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5 7081printf "%s\n" "$enable_wasm_dynamic_linking" >&6; } 7082 7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5 7084printf %s "checking for --enable-wasm-pthreads... " >&6; } 7085# Check whether --enable-wasm-pthreads was given. 7086if test ${enable_wasm_pthreads+y} 7087then : 7088 enableval=$enable_wasm_pthreads; 7089 case $ac_sys_system in #( 7090 Emscripten) : 7091 ;; #( 7092 WASI) : 7093 as_fn_error $? "WASI threading is not implemented yet." "$LINENO" 5 ;; #( 7094 *) : 7095 as_fn_error $? "--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5 7096 ;; 7097esac 7098 7099else $as_nop 7100 7101 enable_wasm_pthreads=missing 7102 7103fi 7104 7105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5 7106printf "%s\n" "$enable_wasm_pthreads" >&6; } 7107 7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 7109printf %s "checking for --with-suffix... " >&6; } 7110 7111# Check whether --with-suffix was given. 7112if test ${with_suffix+y} 7113then : 7114 withval=$with_suffix; 7115 case $with_suffix in #( 7116 no) : 7117 EXEEXT= ;; #( 7118 yes) : 7119 EXEEXT=.exe ;; #( 7120 *) : 7121 EXEEXT=$with_suffix 7122 ;; 7123esac 7124 7125else $as_nop 7126 7127 case $ac_sys_system/$ac_sys_emscripten_target in #( 7128 Emscripten/browser*) : 7129 EXEEXT=.js ;; #( 7130 Emscripten/node*) : 7131 EXEEXT=.js ;; #( 7132 WASI/*) : 7133 EXEEXT=.wasm ;; #( 7134 *) : 7135 EXEEXT= 7136 ;; 7137esac 7138 7139fi 7140 7141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 7142printf "%s\n" "$EXEEXT" >&6; } 7143 7144# Test whether we're running on a non-case-sensitive system, in which 7145# case we give a warning if no ext is given 7146 7147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 7148printf %s "checking for case-insensitive build directory... " >&6; } 7149if test ! -d CaseSensitiveTestDir; then 7150mkdir CaseSensitiveTestDir 7151fi 7152 7153if test -d casesensitivetestdir && test -z "$EXEEXT" 7154then 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7156printf "%s\n" "yes" >&6; } 7157 BUILDEXEEXT=.exe 7158else 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160printf "%s\n" "no" >&6; } 7161 BUILDEXEEXT=$EXEEXT 7162fi 7163rmdir CaseSensitiveTestDir 7164 7165case $ac_sys_system in 7166hp*|HP*) 7167 case $CC in 7168 cc|*/cc) CC="$CC -Ae";; 7169 esac;; 7170esac 7171 7172 7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 7174printf %s "checking LIBRARY... " >&6; } 7175if test -z "$LIBRARY" 7176then 7177 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 7178fi 7179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 7180printf "%s\n" "$LIBRARY" >&6; } 7181 7182# LDLIBRARY is the name of the library to link against (as opposed to the 7183# name of the library into which to insert object files). BLDLIBRARY is also 7184# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 7185# is blank as the main program is not linked directly against LDLIBRARY. 7186# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 7187# systems without shared libraries, LDLIBRARY is the same as LIBRARY 7188# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 7189# DLLLIBRARY is the shared (i.e., DLL) library. 7190# 7191# RUNSHARED is used to run shared python without installed libraries 7192# 7193# INSTSONAME is the name of the shared library that will be use to install 7194# on the system - some systems like version suffix, others don't 7195# 7196# LDVERSION is the shared library version number, normally the Python version 7197# with the ABI build flags appended. 7198 7199 7200 7201 7202 7203 7204 7205 7206LDLIBRARY="$LIBRARY" 7207BLDLIBRARY='$(LDLIBRARY)' 7208INSTSONAME='$(LDLIBRARY)' 7209DLLLIBRARY='' 7210LDLIBRARYDIR='' 7211RUNSHARED='' 7212LDVERSION="$VERSION" 7213 7214# LINKCC is the command that links the python executable -- default is $(CC). 7215# If CXX is set, and if it is needed to link a main function that was 7216# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 7217# python might then depend on the C++ runtime 7218 7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 7220printf %s "checking LINKCC... " >&6; } 7221if test -z "$LINKCC" 7222then 7223 LINKCC='$(PURIFY) $(MAINCC)' 7224 case $ac_sys_system in 7225 QNX*) 7226 # qcc must be used because the other compilers do not 7227 # support -N. 7228 LINKCC=qcc;; 7229 esac 7230fi 7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 7232printf "%s\n" "$LINKCC" >&6; } 7233 7234# EXPORTSYMS holds the list of exported symbols for AIX. 7235# EXPORTSFROM holds the module name exporting symbols on AIX. 7236EXPORTSYMS= 7237EXPORTSFROM= 7238 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 7241printf %s "checking EXPORTSYMS... " >&6; } 7242case $ac_sys_system in 7243AIX*) 7244 EXPORTSYMS="Modules/python.exp" 7245 EXPORTSFROM=. # the main executable 7246 ;; 7247esac 7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 7249printf "%s\n" "$EXPORTSYMS" >&6; } 7250 7251# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 7252# make sure we default having it set to "no": this is used by 7253# distutils.unixccompiler to know if it should add --enable-new-dtags 7254# to linker command lines, and failing to detect GNU ld simply results 7255# in the same behaviour as before. 7256 7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7258printf %s "checking for GNU ld... " >&6; } 7259ac_prog=ld 7260if test "$GCC" = yes; then 7261 ac_prog=`$CC -print-prog-name=ld` 7262fi 7263case `"$ac_prog" -V 2>&1 < /dev/null` in 7264 *GNU*) 7265 GNULD=yes;; 7266 *) 7267 GNULD=no;; 7268esac 7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 7270printf "%s\n" "$GNULD" >&6; } 7271 7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 7273printf %s "checking for --enable-shared... " >&6; } 7274# Check whether --enable-shared was given. 7275if test ${enable_shared+y} 7276then : 7277 enableval=$enable_shared; 7278fi 7279 7280 7281if test -z "$enable_shared" 7282then 7283 case $ac_sys_system in 7284 CYGWIN*) 7285 enable_shared="yes";; 7286 *) 7287 enable_shared="no";; 7288 esac 7289fi 7290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 7291printf "%s\n" "$enable_shared" >&6; } 7292 7293# --with-static-libpython 7294STATIC_LIBPYTHON=1 7295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 7296printf %s "checking for --with-static-libpython... " >&6; } 7297 7298# Check whether --with-static-libpython was given. 7299if test ${with_static_libpython+y} 7300then : 7301 withval=$with_static_libpython; 7302if test "$withval" = no 7303then 7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7305printf "%s\n" "no" >&6; }; 7306 STATIC_LIBPYTHON=0 7307else 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7309printf "%s\n" "yes" >&6; }; 7310fi 7311else $as_nop 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7313printf "%s\n" "yes" >&6; } 7314fi 7315 7316 7317 7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 7319printf %s "checking for --enable-profiling... " >&6; } 7320# Check whether --enable-profiling was given. 7321if test ${enable_profiling+y} 7322then : 7323 enableval=$enable_profiling; 7324fi 7325 7326if test "x$enable_profiling" = xyes; then 7327 ac_save_cc="$CC" 7328 CC="$CC -pg" 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331int main(void) { return 0; } 7332_ACEOF 7333if ac_fn_c_try_link "$LINENO" 7334then : 7335 7336else $as_nop 7337 enable_profiling=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7340 conftest$ac_exeext conftest.$ac_ext 7341 CC="$ac_save_cc" 7342else 7343 enable_profiling=no 7344fi 7345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 7346printf "%s\n" "$enable_profiling" >&6; } 7347 7348if test "x$enable_profiling" = xyes; then 7349 BASECFLAGS="-pg $BASECFLAGS" 7350 LDFLAGS="-pg $LDFLAGS" 7351fi 7352 7353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 7354printf %s "checking LDLIBRARY... " >&6; } 7355 7356# MacOSX framework builds need more magic. LDLIBRARY is the dynamic 7357# library that we build, but we do not want to link against it (we 7358# will find it with a -framework option). For this reason there is an 7359# extra variable BLDLIBRARY against which Python and the extension 7360# modules are linked, BLDLIBRARY. This is normally the same as 7361# LDLIBRARY, but empty for MacOSX framework builds. 7362if test "$enable_framework" 7363then 7364 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 7365 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 7366 BLDLIBRARY='' 7367else 7368 BLDLIBRARY='$(LDLIBRARY)' 7369fi 7370 7371# Other platforms follow 7372if test $enable_shared = "yes"; then 7373 PY_ENABLE_SHARED=1 7374 7375printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h 7376 7377 case $ac_sys_system in 7378 CYGWIN*) 7379 LDLIBRARY='libpython$(LDVERSION).dll.a' 7380 DLLLIBRARY='libpython$(LDVERSION).dll' 7381 ;; 7382 SunOS*) 7383 LDLIBRARY='libpython$(LDVERSION).so' 7384 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 7385 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 7386 INSTSONAME="$LDLIBRARY".$SOVERSION 7387 if test "$with_pydebug" != yes 7388 then 7389 PY3LIBRARY=libpython3.so 7390 fi 7391 ;; 7392 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) 7393 LDLIBRARY='libpython$(LDVERSION).so' 7394 BLDLIBRARY='-L. -lpython$(LDVERSION)' 7395 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 7396 INSTSONAME="$LDLIBRARY".$SOVERSION 7397 if test "$with_pydebug" != yes 7398 then 7399 PY3LIBRARY=libpython3.so 7400 fi 7401 ;; 7402 hp*|HP*) 7403 case `uname -m` in 7404 ia64) 7405 LDLIBRARY='libpython$(LDVERSION).so' 7406 ;; 7407 *) 7408 LDLIBRARY='libpython$(LDVERSION).sl' 7409 ;; 7410 esac 7411 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 7412 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 7413 ;; 7414 Darwin*) 7415 LDLIBRARY='libpython$(LDVERSION).dylib' 7416 BLDLIBRARY='-L. -lpython$(LDVERSION)' 7417 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 7418 ;; 7419 AIX*) 7420 LDLIBRARY='libpython$(LDVERSION).so' 7421 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 7422 ;; 7423 7424 esac 7425else # shared is disabled 7426 PY_ENABLE_SHARED=0 7427 case $ac_sys_system in 7428 CYGWIN*) 7429 BLDLIBRARY='$(LIBRARY)' 7430 LDLIBRARY='libpython$(LDVERSION).dll.a' 7431 ;; 7432 esac 7433fi 7434 7435if test "$cross_compiling" = yes; then 7436 RUNSHARED= 7437fi 7438 7439 7440if test -z "$HOSTRUNNER" 7441then 7442 case $ac_sys_system/$ac_sys_emscripten_target in #( 7443 Emscripten/node*) : 7444 7445 if test -n "$ac_tool_prefix"; then 7446 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args. 7447set dummy ${ac_tool_prefix}node; ac_word=$2 7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7449printf %s "checking for $ac_word... " >&6; } 7450if test ${ac_cv_path_NODE+y} 7451then : 7452 printf %s "(cached) " >&6 7453else $as_nop 7454 case $NODE in 7455 [\\/]* | ?:[\\/]*) 7456 ac_cv_path_NODE="$NODE" # Let the user override the test with a path. 7457 ;; 7458 *) 7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7460for as_dir in $PATH 7461do 7462 IFS=$as_save_IFS 7463 case $as_dir in #((( 7464 '') as_dir=./ ;; 7465 */) ;; 7466 *) as_dir=$as_dir/ ;; 7467 esac 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7470 ac_cv_path_NODE="$as_dir$ac_word$ac_exec_ext" 7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478 ;; 7479esac 7480fi 7481NODE=$ac_cv_path_NODE 7482if test -n "$NODE"; then 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5 7484printf "%s\n" "$NODE" >&6; } 7485else 7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7487printf "%s\n" "no" >&6; } 7488fi 7489 7490 7491fi 7492if test -z "$ac_cv_path_NODE"; then 7493 ac_pt_NODE=$NODE 7494 # Extract the first word of "node", so it can be a program name with args. 7495set dummy node; ac_word=$2 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7497printf %s "checking for $ac_word... " >&6; } 7498if test ${ac_cv_path_ac_pt_NODE+y} 7499then : 7500 printf %s "(cached) " >&6 7501else $as_nop 7502 case $ac_pt_NODE in 7503 [\\/]* | ?:[\\/]*) 7504 ac_cv_path_ac_pt_NODE="$ac_pt_NODE" # Let the user override the test with a path. 7505 ;; 7506 *) 7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7508for as_dir in $PATH 7509do 7510 IFS=$as_save_IFS 7511 case $as_dir in #((( 7512 '') as_dir=./ ;; 7513 */) ;; 7514 *) as_dir=$as_dir/ ;; 7515 esac 7516 for ac_exec_ext in '' $ac_executable_extensions; do 7517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7518 ac_cv_path_ac_pt_NODE="$as_dir$ac_word$ac_exec_ext" 7519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7520 break 2 7521 fi 7522done 7523 done 7524IFS=$as_save_IFS 7525 7526 ;; 7527esac 7528fi 7529ac_pt_NODE=$ac_cv_path_ac_pt_NODE 7530if test -n "$ac_pt_NODE"; then 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5 7532printf "%s\n" "$ac_pt_NODE" >&6; } 7533else 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7535printf "%s\n" "no" >&6; } 7536fi 7537 7538 if test "x$ac_pt_NODE" = x; then 7539 NODE="node" 7540 else 7541 case $cross_compiling:$ac_tool_warned in 7542yes:) 7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7544printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7545ac_tool_warned=yes ;; 7546esac 7547 NODE=$ac_pt_NODE 7548 fi 7549else 7550 NODE="$ac_cv_path_NODE" 7551fi 7552 7553 HOSTRUNNER="$NODE" 7554 # bigint for ctypes c_longlong, c_longdouble 7555 # no longer available in Node 16 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bigint" >&5 7557printf %s "checking for node --experimental-wasm-bigint... " >&6; } 7558if test ${ac_cv_tool_node_wasm_bigint+y} 7559then : 7560 printf %s "(cached) " >&6 7561else $as_nop 7562 7563 if $NODE -v --experimental-wasm-bigint > /dev/null 2>&1; then 7564 ac_cv_tool_node_wasm_bigint=yes 7565 else 7566 ac_cv_tool_node_wasm_bigint=no 7567 fi 7568 7569fi 7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bigint" >&5 7571printf "%s\n" "$ac_cv_tool_node_wasm_bigint" >&6; } 7572 if test "x$ac_cv_tool_node_wasm_bigint" = xyes 7573then : 7574 7575 as_fn_append HOSTRUNNER " --experimental-wasm-bigint" 7576 7577fi 7578 7579 if test "x$enable_wasm_pthreads" = xyes 7580then : 7581 7582 as_fn_append HOSTRUNNER " --experimental-wasm-threads" 7583 # no longer available in Node 16 7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bulk-memory" >&5 7585printf %s "checking for node --experimental-wasm-bulk-memory... " >&6; } 7586if test ${ac_cv_tool_node_wasm_bulk_memory+y} 7587then : 7588 printf %s "(cached) " >&6 7589else $as_nop 7590 7591 if $NODE -v --experimental-wasm-bulk-memory > /dev/null 2>&1; then 7592 ac_cv_tool_node_wasm_bulk_memory=yes 7593 else 7594 ac_cv_tool_node_wasm_bulk_memory=no 7595 fi 7596 7597fi 7598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bulk_memory" >&5 7599printf "%s\n" "$ac_cv_tool_node_wasm_bulk_memory" >&6; } 7600 if test "x$ac_cv_tool_node_wasm_bulk_memory" = xyes 7601then : 7602 7603 as_fn_append HOSTRUNNER " --experimental-wasm-bulk-memory" 7604 7605fi 7606 7607fi 7608 7609 if test "x$host_cpu" = xwasm64 7610then : 7611 as_fn_append HOSTRUNNER " --experimental-wasm-memory64" 7612fi 7613 ;; #( 7614 WASI/*) : 7615 HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt) --mapdir /::$(srcdir) --' ;; #( 7616 *) : 7617 HOSTRUNNER='' 7618 ;; 7619esac 7620fi 7621 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5 7623printf %s "checking HOSTRUNNER... " >&6; } 7624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5 7625printf "%s\n" "$HOSTRUNNER" >&6; } 7626 7627if test -n "$HOSTRUNNER"; then 7628 PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD" 7629fi 7630 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 7632printf "%s\n" "$LDLIBRARY" >&6; } 7633 7634# LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable 7635case $ac_sys_system/$ac_sys_emscripten_target in #( 7636 Emscripten/browser*) : 7637 LIBRARY_DEPS='$(PY3LIBRARY) $(WASM_STDLIB) python.html python.worker.js' ;; #( 7638 *) : 7639 LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' 7640 ;; 7641esac 7642LINK_PYTHON_DEPS='$(LIBRARY_DEPS)' 7643if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then 7644 LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" 7645 if test "$STATIC_LIBPYTHON" = 1; then 7646 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" 7647 fi 7648 # Link Python program to the shared library 7649 LINK_PYTHON_OBJS='$(BLDLIBRARY)' 7650else 7651 if test "$STATIC_LIBPYTHON" = 0; then 7652 # Build Python needs object files but don't need to build 7653 # Python static library 7654 LINK_PYTHON_DEPS="$LIBRARY_DEPS \$(LIBRARY_OBJS)" 7655 fi 7656 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" 7657 # Link Python program to object files 7658 LINK_PYTHON_OBJS='$(LIBRARY_OBJS)' 7659fi 7660 7661 7662 7663 7664# ar program 7665 7666if test -n "$ac_tool_prefix"; then 7667 for ac_prog in ar aal 7668 do 7669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7670set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672printf %s "checking for $ac_word... " >&6; } 7673if test ${ac_cv_prog_AR+y} 7674then : 7675 printf %s "(cached) " >&6 7676else $as_nop 7677 if test -n "$AR"; then 7678 ac_cv_prog_AR="$AR" # Let the user override the test. 7679else 7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 case $as_dir in #((( 7685 '') as_dir=./ ;; 7686 */) ;; 7687 *) as_dir=$as_dir/ ;; 7688 esac 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695done 7696 done 7697IFS=$as_save_IFS 7698 7699fi 7700fi 7701AR=$ac_cv_prog_AR 7702if test -n "$AR"; then 7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7704printf "%s\n" "$AR" >&6; } 7705else 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707printf "%s\n" "no" >&6; } 7708fi 7709 7710 7711 test -n "$AR" && break 7712 done 7713fi 7714if test -z "$AR"; then 7715 ac_ct_AR=$AR 7716 for ac_prog in ar aal 7717do 7718 # Extract the first word of "$ac_prog", so it can be a program name with args. 7719set dummy $ac_prog; ac_word=$2 7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7721printf %s "checking for $ac_word... " >&6; } 7722if test ${ac_cv_prog_ac_ct_AR+y} 7723then : 7724 printf %s "(cached) " >&6 7725else $as_nop 7726 if test -n "$ac_ct_AR"; then 7727 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7728else 7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730for as_dir in $PATH 7731do 7732 IFS=$as_save_IFS 7733 case $as_dir in #((( 7734 '') as_dir=./ ;; 7735 */) ;; 7736 *) as_dir=$as_dir/ ;; 7737 esac 7738 for ac_exec_ext in '' $ac_executable_extensions; do 7739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7740 ac_cv_prog_ac_ct_AR="$ac_prog" 7741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7742 break 2 7743 fi 7744done 7745 done 7746IFS=$as_save_IFS 7747 7748fi 7749fi 7750ac_ct_AR=$ac_cv_prog_ac_ct_AR 7751if test -n "$ac_ct_AR"; then 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7753printf "%s\n" "$ac_ct_AR" >&6; } 7754else 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756printf "%s\n" "no" >&6; } 7757fi 7758 7759 7760 test -n "$ac_ct_AR" && break 7761done 7762 7763 if test "x$ac_ct_AR" = x; then 7764 AR="ar" 7765 else 7766 case $cross_compiling:$ac_tool_warned in 7767yes:) 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7769printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7770ac_tool_warned=yes ;; 7771esac 7772 AR=$ac_ct_AR 7773 fi 7774fi 7775 7776 7777# tweak ARFLAGS only if the user didn't set it on the command line 7778 7779if test -z "$ARFLAGS" 7780then 7781 ARFLAGS="rcs" 7782fi 7783 7784if test -n "$ac_tool_prefix"; then 7785 for ac_prog in readelf 7786 do 7787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7788set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7790printf %s "checking for $ac_word... " >&6; } 7791if test ${ac_cv_prog_READELF+y} 7792then : 7793 printf %s "(cached) " >&6 7794else $as_nop 7795 if test -n "$READELF"; then 7796 ac_cv_prog_READELF="$READELF" # Let the user override the test. 7797else 7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799for as_dir in $PATH 7800do 7801 IFS=$as_save_IFS 7802 case $as_dir in #((( 7803 '') as_dir=./ ;; 7804 */) ;; 7805 *) as_dir=$as_dir/ ;; 7806 esac 7807 for ac_exec_ext in '' $ac_executable_extensions; do 7808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7809 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" 7810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7811 break 2 7812 fi 7813done 7814 done 7815IFS=$as_save_IFS 7816 7817fi 7818fi 7819READELF=$ac_cv_prog_READELF 7820if test -n "$READELF"; then 7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 7822printf "%s\n" "$READELF" >&6; } 7823else 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7825printf "%s\n" "no" >&6; } 7826fi 7827 7828 7829 test -n "$READELF" && break 7830 done 7831fi 7832if test -z "$READELF"; then 7833 ac_ct_READELF=$READELF 7834 for ac_prog in readelf 7835do 7836 # Extract the first word of "$ac_prog", so it can be a program name with args. 7837set dummy $ac_prog; ac_word=$2 7838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7839printf %s "checking for $ac_word... " >&6; } 7840if test ${ac_cv_prog_ac_ct_READELF+y} 7841then : 7842 printf %s "(cached) " >&6 7843else $as_nop 7844 if test -n "$ac_ct_READELF"; then 7845 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 7846else 7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848for as_dir in $PATH 7849do 7850 IFS=$as_save_IFS 7851 case $as_dir in #((( 7852 '') as_dir=./ ;; 7853 */) ;; 7854 *) as_dir=$as_dir/ ;; 7855 esac 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7858 ac_cv_prog_ac_ct_READELF="$ac_prog" 7859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 7869if test -n "$ac_ct_READELF"; then 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 7871printf "%s\n" "$ac_ct_READELF" >&6; } 7872else 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874printf "%s\n" "no" >&6; } 7875fi 7876 7877 7878 test -n "$ac_ct_READELF" && break 7879done 7880 7881 if test "x$ac_ct_READELF" = x; then 7882 READELF=":" 7883 else 7884 case $cross_compiling:$ac_tool_warned in 7885yes:) 7886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7888ac_tool_warned=yes ;; 7889esac 7890 READELF=$ac_ct_READELF 7891 fi 7892fi 7893 7894if test "$cross_compiling" = yes; then 7895 case "$READELF" in 7896 readelf|:) 7897 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 7898 ;; 7899 esac 7900fi 7901 7902 7903 7904case $MACHDEP in 7905hp*|HP*) 7906 # install -d does not work on HP-UX 7907 if test -z "$INSTALL" 7908 then 7909 INSTALL="${srcdir}/install-sh -c" 7910 fi 7911esac 7912 7913 # Find a good install program. We prefer a C program (faster), 7914# so one script is as good as another. But avoid the broken or 7915# incompatible versions: 7916# SysV /etc/install, /usr/sbin/install 7917# SunOS /usr/etc/install 7918# IRIX /sbin/install 7919# AIX /bin/install 7920# AmigaOS /C/install, which installs bootblocks on floppy discs 7921# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7922# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7923# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7924# OS/2's system install, which has a completely different semantic 7925# ./install, which can be erroneously created by make from ./install.sh. 7926# Reject install programs that cannot install multiple files. 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 7928printf %s "checking for a BSD-compatible install... " >&6; } 7929if test -z "$INSTALL"; then 7930if test ${ac_cv_path_install+y} 7931then : 7932 printf %s "(cached) " >&6 7933else $as_nop 7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7935for as_dir in $PATH 7936do 7937 IFS=$as_save_IFS 7938 case $as_dir in #((( 7939 '') as_dir=./ ;; 7940 */) ;; 7941 *) as_dir=$as_dir/ ;; 7942 esac 7943 # Account for fact that we put trailing slashes in our PATH walk. 7944case $as_dir in #(( 7945 ./ | /[cC]/* | \ 7946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7947 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 7948 /usr/ucb/* ) ;; 7949 *) 7950 # OSF1 and SCO ODT 3.0 have their own names for install. 7951 # Don't use installbsd from OSF since it installs stuff as root 7952 # by default. 7953 for ac_prog in ginstall scoinst install; do 7954 for ac_exec_ext in '' $ac_executable_extensions; do 7955 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 7956 if test $ac_prog = install && 7957 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7958 # AIX install. It has an incompatible calling convention. 7959 : 7960 elif test $ac_prog = install && 7961 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7962 # program-specific install script used by HP pwplus--don't use. 7963 : 7964 else 7965 rm -rf conftest.one conftest.two conftest.dir 7966 echo one > conftest.one 7967 echo two > conftest.two 7968 mkdir conftest.dir 7969 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 7970 test -s conftest.one && test -s conftest.two && 7971 test -s conftest.dir/conftest.one && 7972 test -s conftest.dir/conftest.two 7973 then 7974 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 7975 break 3 7976 fi 7977 fi 7978 fi 7979 done 7980 done 7981 ;; 7982esac 7983 7984 done 7985IFS=$as_save_IFS 7986 7987rm -rf conftest.one conftest.two conftest.dir 7988 7989fi 7990 if test ${ac_cv_path_install+y}; then 7991 INSTALL=$ac_cv_path_install 7992 else 7993 # As a last resort, use the slow shell script. Don't cache a 7994 # value for INSTALL within a source directory, because that will 7995 # break other packages using the cache if that directory is 7996 # removed, or if the value is a relative name. 7997 INSTALL=$ac_install_sh 7998 fi 7999fi 8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8001printf "%s\n" "$INSTALL" >&6; } 8002 8003# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8004# It thinks the first close brace ends the variable substitution. 8005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8006 8007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8008 8009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8010 8011 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 8013printf %s "checking for a race-free mkdir -p... " >&6; } 8014if test -z "$MKDIR_P"; then 8015 if test ${ac_cv_path_mkdir+y} 8016then : 8017 printf %s "(cached) " >&6 8018else $as_nop 8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 8021do 8022 IFS=$as_save_IFS 8023 case $as_dir in #((( 8024 '') as_dir=./ ;; 8025 */) ;; 8026 *) as_dir=$as_dir/ ;; 8027 esac 8028 for ac_prog in mkdir gmkdir; do 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 8031 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 8032 'mkdir ('*'coreutils) '* | \ 8033 'BusyBox '* | \ 8034 'mkdir (fileutils) '4.1*) 8035 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 8036 break 3;; 8037 esac 8038 done 8039 done 8040 done 8041IFS=$as_save_IFS 8042 8043fi 8044 8045 test -d ./--version && rmdir ./--version 8046 if test ${ac_cv_path_mkdir+y}; then 8047 MKDIR_P="$ac_cv_path_mkdir -p" 8048 else 8049 # As a last resort, use the slow shell script. Don't cache a 8050 # value for MKDIR_P within a source directory, because that will 8051 # break other packages using the cache if that directory is 8052 # removed, or if the value is a relative name. 8053 MKDIR_P="$ac_install_sh -d" 8054 fi 8055fi 8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 8057printf "%s\n" "$MKDIR_P" >&6; } 8058 8059 8060# Not every filesystem supports hard links 8061 8062if test -z "$LN" ; then 8063 case $ac_sys_system in 8064 CYGWIN*) LN="ln -s";; 8065 *) LN=ln;; 8066 esac 8067fi 8068 8069# For calculating the .so ABI tag. 8070 8071ABIFLAGS="" 8072 8073# Check for --with-pydebug 8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 8075printf %s "checking for --with-pydebug... " >&6; } 8076 8077# Check whether --with-pydebug was given. 8078if test ${with_pydebug+y} 8079then : 8080 withval=$with_pydebug; 8081if test "$withval" != no 8082then 8083 8084printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h 8085 8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8087printf "%s\n" "yes" >&6; }; 8088 Py_DEBUG='true' 8089 ABIFLAGS="${ABIFLAGS}d" 8090else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8091printf "%s\n" "no" >&6; }; Py_DEBUG='false' 8092fi 8093else $as_nop 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8095printf "%s\n" "no" >&6; } 8096fi 8097 8098 8099# Check for --with-trace-refs 8100# --with-trace-refs 8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 8102printf %s "checking for --with-trace-refs... " >&6; } 8103 8104# Check whether --with-trace-refs was given. 8105if test ${with_trace_refs+y} 8106then : 8107 withval=$with_trace_refs; 8108else $as_nop 8109 with_trace_refs=no 8110fi 8111 8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 8113printf "%s\n" "$with_trace_refs" >&6; } 8114 8115if test "$with_trace_refs" = "yes" 8116then 8117 8118printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h 8119 8120fi 8121 8122 8123# Check for --enable-pystats 8124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5 8125printf %s "checking for --enable-pystats... " >&6; } 8126# Check whether --enable-pystats was given. 8127if test ${enable_pystats+y} 8128then : 8129 enableval=$enable_pystats; 8130else $as_nop 8131 enable_pystats=no 8132 8133fi 8134 8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5 8136printf "%s\n" "$enable_pystats" >&6; } 8137 8138if test "x$enable_pystats" = xyes 8139then : 8140 8141 8142printf "%s\n" "#define Py_STATS 1" >>confdefs.h 8143 8144 8145fi 8146 8147# Check for --with-assertions. 8148# This allows enabling assertions without Py_DEBUG. 8149assertions='false' 8150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 8151printf %s "checking for --with-assertions... " >&6; } 8152 8153# Check whether --with-assertions was given. 8154if test ${with_assertions+y} 8155then : 8156 withval=$with_assertions; 8157if test "$withval" != no 8158then 8159 assertions='true' 8160fi 8161fi 8162 8163if test "$assertions" = 'true'; then 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8165printf "%s\n" "yes" >&6; } 8166elif test "$Py_DEBUG" = 'true'; then 8167 assertions='true' 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 8169printf "%s\n" "implied by --with-pydebug" >&6; } 8170else 8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172printf "%s\n" "no" >&6; } 8173fi 8174 8175# Enable optimization flags 8176 8177 8178Py_OPT='false' 8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 8180printf %s "checking for --enable-optimizations... " >&6; } 8181# Check whether --enable-optimizations was given. 8182if test ${enable_optimizations+y} 8183then : 8184 enableval=$enable_optimizations; 8185if test "$enableval" != no 8186then 8187 Py_OPT='true' 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8189printf "%s\n" "yes" >&6; }; 8190else 8191 Py_OPT='false' 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193printf "%s\n" "no" >&6; }; 8194fi 8195else $as_nop 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8197printf "%s\n" "no" >&6; } 8198fi 8199 8200 8201if test "$Py_OPT" = 'true' ; then 8202 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 8203 # compile working code using it and both test_distutils and test_gdb are 8204 # broken when you do manage to get a toolchain that works with it. People 8205 # who want LTO need to use --with-lto themselves. 8206 DEF_MAKE_ALL_RULE="profile-opt" 8207 REQUIRE_PGO="yes" 8208 DEF_MAKE_RULE="build_all" 8209 case $CC in 8210 *gcc*) 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 8212printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } 8213if test ${ax_cv_check_cflags___fno_semantic_interposition+y} 8214then : 8215 printf %s "(cached) " >&6 8216else $as_nop 8217 8218 ax_check_save_flags=$CFLAGS 8219 CFLAGS="$CFLAGS -fno-semantic-interposition" 8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221/* end confdefs.h. */ 8222 8223int 8224main (void) 8225{ 8226 8227 ; 8228 return 0; 8229} 8230_ACEOF 8231if ac_fn_c_try_compile "$LINENO" 8232then : 8233 ax_cv_check_cflags___fno_semantic_interposition=yes 8234else $as_nop 8235 ax_cv_check_cflags___fno_semantic_interposition=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8238 CFLAGS=$ax_check_save_flags 8239fi 8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_semantic_interposition" >&5 8241printf "%s\n" "$ax_cv_check_cflags___fno_semantic_interposition" >&6; } 8242if test "x$ax_cv_check_cflags___fno_semantic_interposition" = xyes 8243then : 8244 8245 CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" 8246 LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" 8247 8248else $as_nop 8249 : 8250fi 8251 8252 ;; 8253 esac 8254elif test "$ac_sys_system" = "Emscripten" -o "$ac_sys_system" = "WASI"; then 8255 DEF_MAKE_ALL_RULE="build_wasm" 8256 REQUIRE_PGO="no" 8257 DEF_MAKE_RULE="all" 8258else 8259 DEF_MAKE_ALL_RULE="build_all" 8260 REQUIRE_PGO="no" 8261 DEF_MAKE_RULE="all" 8262fi 8263 8264 8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 8266printf %s "checking PROFILE_TASK... " >&6; } 8267if test -z "$PROFILE_TASK" 8268then 8269 PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)' 8270fi 8271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 8272printf "%s\n" "$PROFILE_TASK" >&6; } 8273 8274# Make llvm-related checks work on systems where llvm tools are not installed with their 8275# normal names in the default $PATH (ie: Ubuntu). They exist under the 8276# non-suffixed name in their versioned llvm directory. 8277 8278llvm_bin_dir='' 8279llvm_path="${PATH}" 8280if test "${CC}" = "clang" 8281then 8282 clang_bin=`which clang` 8283 # Some systems install clang elsewhere as a symlink to the real path 8284 # which is where the related llvm tools are located. 8285 if test -L "${clang_bin}" 8286 then 8287 clang_dir=`dirname "${clang_bin}"` 8288 clang_bin=`readlink "${clang_bin}"` 8289 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 8290 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 8291 fi 8292fi 8293 8294# Enable LTO flags 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 8296printf %s "checking for --with-lto... " >&6; } 8297 8298# Check whether --with-lto was given. 8299if test ${with_lto+y} 8300then : 8301 withval=$with_lto; 8302case "$withval" in 8303 full) 8304 Py_LTO='true' 8305 Py_LTO_POLICY='full' 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8307printf "%s\n" "yes" >&6; } 8308 ;; 8309 thin) 8310 Py_LTO='true' 8311 Py_LTO_POLICY='thin' 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8313printf "%s\n" "yes" >&6; } 8314 ;; 8315 yes) 8316 Py_LTO='true' 8317 Py_LTO_POLICY='default' 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8319printf "%s\n" "yes" >&6; } 8320 ;; 8321 no) 8322 Py_LTO='false' 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8324printf "%s\n" "no" >&6; } 8325 ;; 8326 *) 8327 Py_LTO='false' 8328 as_fn_error $? "unknown lto option: '$withval'" "$LINENO" 5 8329 ;; 8330esac 8331 8332else $as_nop 8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8334printf "%s\n" "no" >&6; } 8335fi 8336 8337if test "$Py_LTO" = 'true' ; then 8338 case $CC in 8339 *clang*) 8340 LDFLAGS_NOLTO="-fno-lto" 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5 8342printf %s "checking whether C compiler accepts -flto=thin... " >&6; } 8343if test ${ax_cv_check_cflags___flto_thin+y} 8344then : 8345 printf %s "(cached) " >&6 8346else $as_nop 8347 8348 ax_check_save_flags=$CFLAGS 8349 CFLAGS="$CFLAGS -flto=thin" 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352 8353int 8354main (void) 8355{ 8356 8357 ; 8358 return 0; 8359} 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO" 8362then : 8363 ax_cv_check_cflags___flto_thin=yes 8364else $as_nop 8365 ax_cv_check_cflags___flto_thin=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8368 CFLAGS=$ax_check_save_flags 8369fi 8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5 8371printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; } 8372if test "x$ax_cv_check_cflags___flto_thin" = xyes 8373then : 8374 LDFLAGS_NOLTO="-flto=thin" 8375else $as_nop 8376 LDFLAGS_NOLTO="-flto" 8377fi 8378 8379 8380 if test -n "$ac_tool_prefix"; then 8381 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. 8382set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 8383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8384printf %s "checking for $ac_word... " >&6; } 8385if test ${ac_cv_path_LLVM_AR+y} 8386then : 8387 printf %s "(cached) " >&6 8388else $as_nop 8389 case $LLVM_AR in 8390 [\\/]* | ?:[\\/]*) 8391 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. 8392 ;; 8393 *) 8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8395for as_dir in ${llvm_path} 8396do 8397 IFS=$as_save_IFS 8398 case $as_dir in #((( 8399 '') as_dir=./ ;; 8400 */) ;; 8401 *) as_dir=$as_dir/ ;; 8402 esac 8403 for ac_exec_ext in '' $ac_executable_extensions; do 8404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8405 ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext" 8406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8407 break 2 8408 fi 8409done 8410 done 8411IFS=$as_save_IFS 8412 8413 ;; 8414esac 8415fi 8416LLVM_AR=$ac_cv_path_LLVM_AR 8417if test -n "$LLVM_AR"; then 8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 8419printf "%s\n" "$LLVM_AR" >&6; } 8420else 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8422printf "%s\n" "no" >&6; } 8423fi 8424 8425 8426fi 8427if test -z "$ac_cv_path_LLVM_AR"; then 8428 ac_pt_LLVM_AR=$LLVM_AR 8429 # Extract the first word of "llvm-ar", so it can be a program name with args. 8430set dummy llvm-ar; ac_word=$2 8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8432printf %s "checking for $ac_word... " >&6; } 8433if test ${ac_cv_path_ac_pt_LLVM_AR+y} 8434then : 8435 printf %s "(cached) " >&6 8436else $as_nop 8437 case $ac_pt_LLVM_AR in 8438 [\\/]* | ?:[\\/]*) 8439 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. 8440 ;; 8441 *) 8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8443for as_dir in ${llvm_path} 8444do 8445 IFS=$as_save_IFS 8446 case $as_dir in #((( 8447 '') as_dir=./ ;; 8448 */) ;; 8449 *) as_dir=$as_dir/ ;; 8450 esac 8451 for ac_exec_ext in '' $ac_executable_extensions; do 8452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8453 ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext" 8454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8455 break 2 8456 fi 8457done 8458 done 8459IFS=$as_save_IFS 8460 8461 ;; 8462esac 8463fi 8464ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR 8465if test -n "$ac_pt_LLVM_AR"; then 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 8467printf "%s\n" "$ac_pt_LLVM_AR" >&6; } 8468else 8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8470printf "%s\n" "no" >&6; } 8471fi 8472 8473 if test "x$ac_pt_LLVM_AR" = x; then 8474 LLVM_AR="''" 8475 else 8476 case $cross_compiling:$ac_tool_warned in 8477yes:) 8478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8479printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8480ac_tool_warned=yes ;; 8481esac 8482 LLVM_AR=$ac_pt_LLVM_AR 8483 fi 8484else 8485 LLVM_AR="$ac_cv_path_LLVM_AR" 8486fi 8487 8488 8489 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" 8490 then 8491 LLVM_AR_FOUND="found" 8492 else 8493 LLVM_AR_FOUND="not-found" 8494 fi 8495 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" 8496 then 8497 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient 8498 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null` 8499 if test -n "${found_llvm_ar}" 8500 then 8501 LLVM_AR='/usr/bin/xcrun ar' 8502 LLVM_AR_FOUND=found 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 8504printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} 8505 fi 8506 fi 8507 if test $LLVM_AR_FOUND = not-found 8508 then 8509 LLVM_PROFR_ERR=yes 8510 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 8511 else 8512 LLVM_AR_ERR=no 8513 fi 8514 AR="${LLVM_AR}" 8515 case $ac_sys_system in 8516 Darwin*) 8517 # Any changes made here should be reflected in the GCC+Darwin case below 8518 if test $Py_LTO_POLICY = default 8519 then 8520 LTOFLAGS="-flto -Wl,-export_dynamic" 8521 LTOCFLAGS="-flto" 8522 else 8523 LTOFLAGS="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic" 8524 LTOCFLAGS="-flto=${Py_LTO_POLICY}" 8525 fi 8526 ;; 8527 *) 8528 if test $Py_LTO_POLICY = default 8529 then 8530 LTOFLAGS="-flto" 8531 else 8532 LTOFLAGS="-flto=${Py_LTO_POLICY}" 8533 fi 8534 ;; 8535 esac 8536 ;; 8537 *emcc*) 8538 if test "$Py_LTO_POLICY" != "default"; then 8539 as_fn_error $? "emcc supports only default lto." "$LINENO" 5 8540 fi 8541 LTOFLAGS="-flto" 8542 LTOCFLAGS="-flto" 8543 ;; 8544 *gcc*) 8545 if test $Py_LTO_POLICY = thin 8546 then 8547 as_fn_error $? "thin lto is not supported under gcc compiler." "$LINENO" 5 8548 fi 8549 LDFLAGS_NOLTO="-fno-lto" 8550 case $ac_sys_system in 8551 Darwin*) 8552 LTOFLAGS="-flto -Wl,-export_dynamic" 8553 LTOCFLAGS="-flto" 8554 ;; 8555 *) 8556 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 8557 ;; 8558 esac 8559 ;; 8560 esac 8561 8562 if test "$ac_cv_prog_cc_g" = "yes" 8563 then 8564 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 8565 # to get debug symbols. 8566 LTOFLAGS="$LTOFLAGS -g" 8567 fi 8568 8569 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}" 8570 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" 8571fi 8572 8573# Enable PGO flags. 8574 8575 8576 8577 8578 8579 8580if test -n "$ac_tool_prefix"; then 8581 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. 8582set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 8583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8584printf %s "checking for $ac_word... " >&6; } 8585if test ${ac_cv_path_LLVM_PROFDATA+y} 8586then : 8587 printf %s "(cached) " >&6 8588else $as_nop 8589 case $LLVM_PROFDATA in 8590 [\\/]* | ?:[\\/]*) 8591 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 8592 ;; 8593 *) 8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8595for as_dir in ${llvm_path} 8596do 8597 IFS=$as_save_IFS 8598 case $as_dir in #((( 8599 '') as_dir=./ ;; 8600 */) ;; 8601 *) as_dir=$as_dir/ ;; 8602 esac 8603 for ac_exec_ext in '' $ac_executable_extensions; do 8604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8605 ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" 8606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8607 break 2 8608 fi 8609done 8610 done 8611IFS=$as_save_IFS 8612 8613 ;; 8614esac 8615fi 8616LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 8617if test -n "$LLVM_PROFDATA"; then 8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 8619printf "%s\n" "$LLVM_PROFDATA" >&6; } 8620else 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8622printf "%s\n" "no" >&6; } 8623fi 8624 8625 8626fi 8627if test -z "$ac_cv_path_LLVM_PROFDATA"; then 8628 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 8629 # Extract the first word of "llvm-profdata", so it can be a program name with args. 8630set dummy llvm-profdata; ac_word=$2 8631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8632printf %s "checking for $ac_word... " >&6; } 8633if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y} 8634then : 8635 printf %s "(cached) " >&6 8636else $as_nop 8637 case $ac_pt_LLVM_PROFDATA in 8638 [\\/]* | ?:[\\/]*) 8639 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 8640 ;; 8641 *) 8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8643for as_dir in ${llvm_path} 8644do 8645 IFS=$as_save_IFS 8646 case $as_dir in #((( 8647 '') as_dir=./ ;; 8648 */) ;; 8649 *) as_dir=$as_dir/ ;; 8650 esac 8651 for ac_exec_ext in '' $ac_executable_extensions; do 8652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8653 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" 8654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8655 break 2 8656 fi 8657done 8658 done 8659IFS=$as_save_IFS 8660 8661 ;; 8662esac 8663fi 8664ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 8665if test -n "$ac_pt_LLVM_PROFDATA"; then 8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 8667printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; } 8668else 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8670printf "%s\n" "no" >&6; } 8671fi 8672 8673 if test "x$ac_pt_LLVM_PROFDATA" = x; then 8674 LLVM_PROFDATA="''" 8675 else 8676 case $cross_compiling:$ac_tool_warned in 8677yes:) 8678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8680ac_tool_warned=yes ;; 8681esac 8682 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 8683 fi 8684else 8685 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 8686fi 8687 8688 8689if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 8690then 8691 LLVM_PROF_FOUND="found" 8692else 8693 LLVM_PROF_FOUND="not-found" 8694fi 8695if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 8696then 8697 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 8698 if test -n "${found_llvm_profdata}" 8699 then 8700 # llvm-profdata isn't directly in $PATH in some cases. 8701 # https://apple.stackexchange.com/questions/197053/ 8702 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 8703 LLVM_PROF_FOUND=found 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 8705printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 8706 fi 8707fi 8708LLVM_PROF_ERR=no 8709case $CC in 8710 *clang*) 8711 # Any changes made here should be reflected in the GCC+Darwin case below 8712 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 8713 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 8714 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 8715 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 8716 if test $LLVM_PROF_FOUND = not-found 8717 then 8718 LLVM_PROF_ERR=yes 8719 if test "${REQUIRE_PGO}" = "yes" 8720 then 8721 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 8722 fi 8723 fi 8724 ;; 8725 *gcc*) 8726 case $ac_sys_system in 8727 Darwin*) 8728 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 8729 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 8730 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 8731 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 8732 if test "${LLVM_PROF_FOUND}" = "not-found" 8733 then 8734 LLVM_PROF_ERR=yes 8735 if test "${REQUIRE_PGO}" = "yes" 8736 then 8737 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 8738 fi 8739 fi 8740 ;; 8741 *) 8742 PGO_PROF_GEN_FLAG="-fprofile-generate" 8743 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 8744 LLVM_PROF_MERGER="true" 8745 LLVM_PROF_FILE="" 8746 ;; 8747 esac 8748 ;; 8749 *icc*) 8750 PGO_PROF_GEN_FLAG="-prof-gen" 8751 PGO_PROF_USE_FLAG="-prof-use" 8752 LLVM_PROF_MERGER="true" 8753 LLVM_PROF_FILE="" 8754 ;; 8755esac 8756 8757# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 8758# merged with this chunk of code? 8759 8760# Optimizer/debugger flags 8761# ------------------------ 8762# (The following bit of code is complicated enough - please keep things 8763# indented properly. Just pretend you're editing Python code. ;-) 8764 8765# There are two parallel sets of case statements below, one that checks to 8766# see if OPT was set and one that does BASECFLAGS setting based upon 8767# compiler and platform. BASECFLAGS tweaks need to be made even if the 8768# user set OPT. 8769 8770case $CC in 8771 *clang*) 8772 cc_is_clang=1 8773 ;; 8774 *) 8775 if $CC --version 2>&1 | grep -q clang 8776 then 8777 cc_is_clang=1 8778 else 8779 cc_is_clang= 8780 fi 8781esac 8782 8783# Check if CC supports -Og optimization level 8784save_CFLAGS=$CFLAGS 8785CFLAGS="-Og" 8786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5 8787printf %s "checking if $CC supports -Og optimization level... " >&6; } 8788if test ${ac_cv_cc_supports_og+y} 8789then : 8790 printf %s "(cached) " >&6 8791else $as_nop 8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8793/* end confdefs.h. */ 8794 8795 8796int 8797main (void) 8798{ 8799 8800 ; 8801 return 0; 8802} 8803 8804_ACEOF 8805if ac_fn_c_try_compile "$LINENO" 8806then : 8807 8808 ac_cv_cc_supports_og=yes 8809 8810else $as_nop 8811 8812 ac_cv_cc_supports_og=no 8813 8814fi 8815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8816 8817fi 8818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5 8819printf "%s\n" "$ac_cv_cc_supports_og" >&6; } 8820CFLAGS=$save_CFLAGS 8821 8822# Optimization messes up debuggers, so turn it off for 8823# debug builds. 8824PYDEBUG_CFLAGS="-O0" 8825if test "x$ac_cv_cc_supports_og" = xyes 8826then : 8827 PYDEBUG_CFLAGS="-Og" 8828fi 8829 8830# tweak OPT based on compiler and platform, only if the user didn't set 8831# it on the command line 8832 8833 8834if test "${OPT-unset}" = "unset" 8835then 8836 case $GCC in 8837 yes) 8838 # For gcc 4.x we need to use -fwrapv so lets check if its supported 8839 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 8840 WRAP="-fwrapv" 8841 fi 8842 8843 if test -n "${cc_is_clang}" 8844 then 8845 # Clang also needs -fwrapv 8846 WRAP="-fwrapv" 8847 # bpo-30104: disable strict aliasing to compile correctly dtoa.c, 8848 # see Makefile.pre.in for more information 8849 CFLAGS_ALIASING="-fno-strict-aliasing" 8850 fi 8851 8852 case $ac_cv_prog_cc_g in 8853 yes) 8854 if test "$Py_DEBUG" = 'true' ; then 8855 OPT="-g $PYDEBUG_CFLAGS -Wall" 8856 else 8857 OPT="-g $WRAP -O3 -Wall" 8858 fi 8859 ;; 8860 *) 8861 OPT="-O3 -Wall" 8862 ;; 8863 esac 8864 8865 case $ac_sys_system in 8866 SCO_SV*) OPT="$OPT -m486 -DSCO5" 8867 ;; 8868 esac 8869 ;; 8870 8871 *) 8872 OPT="-O" 8873 ;; 8874 esac 8875fi 8876 8877# WASM flags 8878case $ac_sys_system in #( 8879 Emscripten) : 8880 8881 if test "x$Py_DEBUG" = xyes 8882then : 8883 wasm_debug=yes 8884else $as_nop 8885 wasm_debug=no 8886fi 8887 8888 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520" 8889 8890 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT" 8891 8892 as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js" 8893 8894 if test "x$enable_wasm_dynamic_linking" = xyes 8895then : 8896 8897 as_fn_append LINKFORSHARED " -sMAIN_MODULE" 8898 8899fi 8900 8901 if test "x$enable_wasm_pthreads" = xyes 8902then : 8903 8904 as_fn_append CFLAGS_NODIST " -pthread" 8905 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS" 8906 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD" 8907 8908fi 8909 8910 case $ac_sys_emscripten_target in #( 8911 browser*) : 8912 8913 if test "x$ac_sys_emscripten_target" = xbrowser-debug 8914then : 8915 wasm_debug=yes 8916fi 8917 as_fn_append LINKFORSHARED " --preload-file=\$(WASM_ASSETS_DIR)" 8918 WASM_ASSETS_DIR=".\$(prefix)" 8919 WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py" 8920 WASM_LINKFORSHARED_DEBUG="-gsource-map --emit-symbol-map" 8921 ;; #( 8922 node*) : 8923 8924 if test "x$ac_sys_emscripten_target" = xnode-debug 8925then : 8926 wasm_debug=yes 8927fi 8928 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sNODERAWFS" 8929 as_fn_append LINKFORSHARED " -sEXIT_RUNTIME" 8930 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map" 8931 8932 ;; #( 8933 *) : 8934 ;; 8935esac 8936 8937 if test "x$wasm_debug" = xyes 8938then : 8939 8940 as_fn_append LDFLAGS_NODIST " -sASSERTIONS" 8941 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG" 8942 8943else $as_nop 8944 8945 as_fn_append LINKFORSHARED " -O2 -g0" 8946 8947fi 8948 ;; #( 8949 WASI) : 8950 8951 8952printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h 8953 8954 8955printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h 8956 8957 8958printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h 8959 8960 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks" 8961 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h 8962 8963 as_fn_append LDFLAGS_NODIST " -z stack-size=524288 -Wl,--stack-first -Wl,--initial-memory=10485760" 8964 8965 ;; #( 8966 *) : 8967 ;; 8968esac 8969 8970case $enable_wasm_dynamic_linking in #( 8971 yes) : 8972 ac_cv_func_dlopen=yes ;; #( 8973 no) : 8974 ac_cv_func_dlopen=no ;; #( 8975 missing) : 8976 8977 ;; #( 8978 *) : 8979 ;; 8980esac 8981 8982 8983 8984 8985 8986 8987 8988 8989# The -arch flags for universal builds on macOS 8990UNIVERSAL_ARCH_FLAGS= 8991 8992 8993 8994 8995# tweak BASECFLAGS based on compiler and platform 8996case $GCC in 8997yes) 8998 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11" 8999 9000 9001 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5 9003printf %s "checking if we can add -Wextra... " >&6; } 9004if test ${ac_cv_enable_extra_warning+y} 9005then : 9006 printf %s "(cached) " >&6 9007else $as_nop 9008 9009 py_cflags=$CFLAGS 9010 as_fn_append CFLAGS "-Wextra -Werror" 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013 9014int 9015main (void) 9016{ 9017 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022if ac_fn_c_try_compile "$LINENO" 9023then : 9024 ac_cv_enable_extra_warning=yes 9025else $as_nop 9026 ac_cv_enable_extra_warning=no 9027fi 9028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9029 CFLAGS=$py_cflags 9030 9031fi 9032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5 9033printf "%s\n" "$ac_cv_enable_extra_warning" >&6; } 9034 9035 9036 if test "x$ac_cv_enable_extra_warning" = xyes 9037then : 9038 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 9039fi 9040 9041 # Python doesn't violate C99 aliasing rules, but older versions of 9042 # GCC produce warnings for legal Python code. Enable 9043 # -fno-strict-aliasing on versions of GCC that support but produce 9044 # warnings. See Issue3326 9045 ac_save_cc="$CC" 9046 CC="$CC -fno-strict-aliasing" 9047 save_CFLAGS="$CFLAGS" 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 9049printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 9050if test ${ac_cv_no_strict_aliasing+y} 9051then : 9052 printf %s "(cached) " >&6 9053else $as_nop 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056 9057 9058int 9059main (void) 9060{ 9061 9062 ; 9063 return 0; 9064} 9065 9066_ACEOF 9067if ac_fn_c_try_compile "$LINENO" 9068then : 9069 9070 CC="$ac_save_cc -fstrict-aliasing" 9071 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074 9075 void f(int **x) {} 9076int 9077main (void) 9078{ 9079double *x; f((int **) &x); 9080 ; 9081 return 0; 9082} 9083 9084_ACEOF 9085if ac_fn_c_try_compile "$LINENO" 9086then : 9087 9088 ac_cv_no_strict_aliasing=no 9089 9090else $as_nop 9091 9092 ac_cv_no_strict_aliasing=yes 9093 9094fi 9095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9096 9097else $as_nop 9098 9099 ac_cv_no_strict_aliasing=no 9100 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9103fi 9104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 9105printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; } 9106 CFLAGS="$save_CFLAGS" 9107 CC="$ac_save_cc" 9108 if test "x$ac_cv_no_strict_aliasing" = xyes 9109then : 9110 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 9111fi 9112 9113 # ICC doesn't recognize the option, but only emits a warning 9114 ## XXX does it emit an unused result warning and can it be disabled? 9115 case $CC in #( 9116 *icc*) : 9117 ac_cv_disable_unused_result_warning=no 9118 9119 9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5 9121printf %s "checking if we can disable $CC unused-result warning... " >&6; } 9122if test ${ac_cv_disable_unused_result_warning+y} 9123then : 9124 printf %s "(cached) " >&6 9125else $as_nop 9126 9127 py_cflags=$CFLAGS 9128 as_fn_append CFLAGS "-Wunused-result -Werror" 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131 9132int 9133main (void) 9134{ 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_compile "$LINENO" 9141then : 9142 ac_cv_disable_unused_result_warning=yes 9143else $as_nop 9144 ac_cv_disable_unused_result_warning=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9147 CFLAGS=$py_cflags 9148 9149fi 9150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 9151printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; } 9152 9153 ;; #( 9154 *) : 9155 ;; 9156esac 9157 if test "x$ac_cv_disable_unused_result_warning" = xyes 9158then : 9159 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 9160 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 9161fi 9162 9163 9164 9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5 9166printf %s "checking if we can disable $CC unused-parameter warning... " >&6; } 9167if test ${ac_cv_disable_unused_parameter_warning+y} 9168then : 9169 printf %s "(cached) " >&6 9170else $as_nop 9171 9172 py_cflags=$CFLAGS 9173 as_fn_append CFLAGS "-Wunused-parameter -Werror" 9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9175/* end confdefs.h. */ 9176 9177int 9178main (void) 9179{ 9180 9181 ; 9182 return 0; 9183} 9184_ACEOF 9185if ac_fn_c_try_compile "$LINENO" 9186then : 9187 ac_cv_disable_unused_parameter_warning=yes 9188else $as_nop 9189 ac_cv_disable_unused_parameter_warning=no 9190fi 9191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9192 CFLAGS=$py_cflags 9193 9194fi 9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 9196printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; } 9197 9198 9199 if test "x$ac_cv_disable_unused_parameter_warning" = xyes 9200then : 9201 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 9202fi 9203 9204 9205 9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5 9207printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; } 9208if test ${ac_cv_disable_missing_field_initializers_warning+y} 9209then : 9210 printf %s "(cached) " >&6 9211else $as_nop 9212 9213 py_cflags=$CFLAGS 9214 as_fn_append CFLAGS "-Wmissing-field-initializers -Werror" 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217 9218int 9219main (void) 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_compile "$LINENO" 9227then : 9228 ac_cv_disable_missing_field_initializers_warning=yes 9229else $as_nop 9230 ac_cv_disable_missing_field_initializers_warning=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9233 CFLAGS=$py_cflags 9234 9235fi 9236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5 9237printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; } 9238 9239 9240 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes 9241then : 9242 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 9243fi 9244 9245 9246 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5 9248printf %s "checking if we can enable $CC sign-compare warning... " >&6; } 9249if test ${ac_cv_enable_sign_compare_warning+y} 9250then : 9251 printf %s "(cached) " >&6 9252else $as_nop 9253 9254 py_cflags=$CFLAGS 9255 as_fn_append CFLAGS "-Wsign-compare -Werror" 9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9257/* end confdefs.h. */ 9258 9259int 9260main (void) 9261{ 9262 9263 ; 9264 return 0; 9265} 9266_ACEOF 9267if ac_fn_c_try_compile "$LINENO" 9268then : 9269 ac_cv_enable_sign_compare_warning=yes 9270else $as_nop 9271 ac_cv_enable_sign_compare_warning=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9274 CFLAGS=$py_cflags 9275 9276fi 9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 9278printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; } 9279 9280 9281 if test "x$ac_cv_enable_sign_compare_warning" = xyes 9282then : 9283 BASECFLAGS="$BASECFLAGS -Wsign-compare" 9284fi 9285 9286 9287 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5 9289printf %s "checking if we can enable $CC unreachable-code warning... " >&6; } 9290if test ${ac_cv_enable_unreachable_code_warning+y} 9291then : 9292 printf %s "(cached) " >&6 9293else $as_nop 9294 9295 py_cflags=$CFLAGS 9296 as_fn_append CFLAGS "-Wunreachable-code -Werror" 9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299 9300int 9301main (void) 9302{ 9303 9304 ; 9305 return 0; 9306} 9307_ACEOF 9308if ac_fn_c_try_compile "$LINENO" 9309then : 9310 ac_cv_enable_unreachable_code_warning=yes 9311else $as_nop 9312 ac_cv_enable_unreachable_code_warning=no 9313fi 9314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9315 CFLAGS=$py_cflags 9316 9317fi 9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 9319printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; } 9320 9321 9322 # Don't enable unreachable code warning in debug mode, since it usually 9323 # results in non-standard code paths. 9324 # Issue #24324: Unfortunately, the unreachable code warning does not work 9325 # correctly on gcc and has been silently removed from the compiler. 9326 # It is supported on clang but on OS X systems gcc may be an alias 9327 # for clang. Try to determine if the compiler is not really gcc and, 9328 # if so, only then enable the warning. 9329 if test $ac_cv_enable_unreachable_code_warning = yes && \ 9330 test "$Py_DEBUG" != "true" && \ 9331 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 9332 then 9333 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 9334 else 9335 ac_cv_enable_unreachable_code_warning=no 9336 fi 9337 9338 9339 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5 9341printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; } 9342if test ${ac_cv_enable_strict_prototypes_warning+y} 9343then : 9344 printf %s "(cached) " >&6 9345else $as_nop 9346 9347 py_cflags=$CFLAGS 9348 as_fn_append CFLAGS "-Wstrict-prototypes -Werror" 9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9350/* end confdefs.h. */ 9351 9352int 9353main (void) 9354{ 9355 9356 ; 9357 return 0; 9358} 9359_ACEOF 9360if ac_fn_c_try_compile "$LINENO" 9361then : 9362 ac_cv_enable_strict_prototypes_warning=yes 9363else $as_nop 9364 ac_cv_enable_strict_prototypes_warning=no 9365fi 9366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9367 CFLAGS=$py_cflags 9368 9369fi 9370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 9371printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; } 9372 9373 9374 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes 9375then : 9376 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" 9377fi 9378 9379 ac_save_cc="$CC" 9380 CC="$CC -Werror=implicit-function-declaration" 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 9382printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; } 9383if test ${ac_cv_enable_implicit_function_declaration_error+y} 9384then : 9385 printf %s "(cached) " >&6 9386else $as_nop 9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389 9390 9391int 9392main (void) 9393{ 9394 9395 ; 9396 return 0; 9397} 9398 9399_ACEOF 9400if ac_fn_c_try_compile "$LINENO" 9401then : 9402 9403 ac_cv_enable_implicit_function_declaration_error=yes 9404 9405else $as_nop 9406 9407 ac_cv_enable_implicit_function_declaration_error=no 9408 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9411fi 9412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 9413printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; } 9414 CC="$ac_save_cc" 9415 9416 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes 9417then : 9418 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 9419fi 9420 9421 ac_save_cc="$CC" 9422 CC="$CC -fvisibility=hidden" 9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 9424printf %s "checking if we can use visibility in $CC... " >&6; } 9425if test ${ac_cv_enable_visibility+y} 9426then : 9427 printf %s "(cached) " >&6 9428else $as_nop 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430/* end confdefs.h. */ 9431 9432 9433int 9434main (void) 9435{ 9436 9437 ; 9438 return 0; 9439} 9440 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO" 9443then : 9444 9445 ac_cv_enable_visibility=yes 9446 9447else $as_nop 9448 9449 ac_cv_enable_visibility=no 9450 9451fi 9452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9453fi 9454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 9455printf "%s\n" "$ac_cv_enable_visibility" >&6; } 9456 CC="$ac_save_cc" 9457 9458 if test "x$ac_cv_enable_visibility" = xyes 9459then : 9460 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" 9461fi 9462 9463 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 9464 # support. Without this, treatment of subnormals doesn't follow 9465 # the standard. 9466 case $host in 9467 alpha*) 9468 BASECFLAGS="$BASECFLAGS -mieee" 9469 ;; 9470 esac 9471 9472 case $ac_sys_system in 9473 SCO_SV*) 9474 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 9475 ;; 9476 9477 Darwin*) 9478 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 9479 # used to be here, but non-Apple gcc doesn't accept them. 9480 if test "${CC}" = gcc 9481 then 9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 9483printf %s "checking which compiler should be used... " >&6; } 9484 case "${UNIVERSALSDK}" in 9485 */MacOSX10.4u.sdk) 9486 # Build using 10.4 SDK, force usage of gcc when the 9487 # compiler is gcc, otherwise the user will get very 9488 # confusing error messages when building on OSX 10.6 9489 CC=gcc-4.0 9490 CPP=cpp-4.0 9491 ;; 9492 esac 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 9494printf "%s\n" "$CC" >&6; } 9495 fi 9496 9497 LIPO_INTEL64_FLAGS="" 9498 if test "${enable_universalsdk}" 9499 then 9500 case "$UNIVERSAL_ARCHS" in 9501 32-bit) 9502 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 9503 LIPO_32BIT_FLAGS="" 9504 ARCH_RUN_32BIT="" 9505 ;; 9506 64-bit) 9507 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 9508 LIPO_32BIT_FLAGS="" 9509 ARCH_RUN_32BIT="true" 9510 ;; 9511 all) 9512 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 9513 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 9514 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 9515 ;; 9516 universal2) 9517 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" 9518 LIPO_32BIT_FLAGS="" 9519 LIPO_INTEL64_FLAGS="-extract x86_64" 9520 ARCH_RUN_32BIT="true" 9521 ;; 9522 intel) 9523 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 9524 LIPO_32BIT_FLAGS="-extract i386" 9525 ARCH_RUN_32BIT="/usr/bin/arch -i386" 9526 ;; 9527 intel-32) 9528 UNIVERSAL_ARCH_FLAGS="-arch i386" 9529 LIPO_32BIT_FLAGS="" 9530 ARCH_RUN_32BIT="" 9531 ;; 9532 intel-64) 9533 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 9534 LIPO_32BIT_FLAGS="" 9535 ARCH_RUN_32BIT="true" 9536 ;; 9537 3-way) 9538 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 9539 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 9540 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 9541 ;; 9542 *) 9543 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 9544 ;; 9545 esac 9546 9547 if test "${UNIVERSALSDK}" != "/" 9548 then 9549 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 9550 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 9551 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 9552 else 9553 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 9554 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 9555 fi 9556 fi 9557 9558 # Calculate an appropriate deployment target for this build: 9559 # The deployment target value is used explicitly to enable certain 9560 # features are enabled (such as builtin libedit support for readline) 9561 # through the use of Apple's Availability Macros and is used as a 9562 # component of the string returned by distutils.get_platform(). 9563 # 9564 # Use the value from: 9565 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 9566 # 2. the operating system version of the build machine if >= 10.6 9567 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 9568 # below to pick either 10.3, 10.4, or 10.5 as the target. 9569 # 4. If we are running on OS X 10.2 or earlier, good luck! 9570 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 9572printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 9573 cur_target_major=`sw_vers -productVersion | \ 9574 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 9575 cur_target_minor=`sw_vers -productVersion | \ 9576 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 9577 cur_target="${cur_target_major}.${cur_target_minor}" 9578 if test ${cur_target_major} -eq 10 && \ 9579 test ${cur_target_minor} -ge 3 && \ 9580 test ${cur_target_minor} -le 5 9581 then 9582 # OS X 10.3 through 10.5 9583 cur_target=10.3 9584 if test ${enable_universalsdk} 9585 then 9586 case "$UNIVERSAL_ARCHS" in 9587 all|3-way|intel|64-bit) 9588 # These configurations were first supported in 10.5 9589 cur_target='10.5' 9590 ;; 9591 esac 9592 else 9593 if test `/usr/bin/arch` = "i386" 9594 then 9595 # 10.4 was the first release to support Intel archs 9596 cur_target="10.4" 9597 fi 9598 fi 9599 fi 9600 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 9601 9602 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 9603 # environment with a value that is the same as what we'll use 9604 # in the Makefile to ensure that we'll get the same compiler 9605 # environment during configure and build time. 9606 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 9607 export MACOSX_DEPLOYMENT_TARGET 9608 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 9610printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; } 9611 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 9613printf %s "checking if specified universal architectures work... " >&6; } 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616#include <stdio.h> 9617int 9618main (void) 9619{ 9620printf("%d", 42); 9621 ; 9622 return 0; 9623} 9624_ACEOF 9625if ac_fn_c_try_link "$LINENO" 9626then : 9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9628printf "%s\n" "yes" >&6; } 9629else $as_nop 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9631printf "%s\n" "no" >&6; } 9632 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 9633 9634fi 9635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9636 conftest$ac_exeext conftest.$ac_ext 9637 9638 # end of Darwin* tests 9639 ;; 9640 esac 9641 ;; 9642 9643*) 9644 case $ac_sys_system in 9645 OpenUNIX*|UnixWare*) 9646 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 9647 ;; 9648 SCO_SV*) 9649 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 9650 ;; 9651 esac 9652 ;; 9653esac 9654 9655case "$CC" in 9656*icc*) 9657 # ICC needs -fp-model strict or floats behave badly 9658 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 9659 ;; 9660*xlc*) 9661 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" 9662 ;; 9663esac 9664 9665if test "$assertions" = 'true'; then 9666 : 9667else 9668 OPT="-DNDEBUG $OPT" 9669fi 9670 9671if test "$ac_arch_flags" 9672then 9673 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 9674fi 9675 9676# On some compilers, pthreads are available without further options 9677# (e.g. MacOS X). On some of these systems, the compiler will not 9678# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 9679# So we have to see first whether pthreads are available without 9680# options before we can check whether -Kpthread improves anything. 9681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 9682printf %s "checking whether pthreads are available without options... " >&6; } 9683if test ${ac_cv_pthread_is_default+y} 9684then : 9685 printf %s "(cached) " >&6 9686else $as_nop 9687 if test "$cross_compiling" = yes 9688then : 9689 ac_cv_pthread_is_default=no 9690else $as_nop 9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9692/* end confdefs.h. */ 9693 9694#include <stdio.h> 9695#include <pthread.h> 9696 9697void* routine(void* p){return NULL;} 9698 9699int main(void){ 9700 pthread_t p; 9701 if(pthread_create(&p,NULL,routine,NULL)!=0) 9702 return 1; 9703 (void)pthread_detach(p); 9704 return 0; 9705} 9706 9707_ACEOF 9708if ac_fn_c_try_run "$LINENO" 9709then : 9710 9711 ac_cv_pthread_is_default=yes 9712 ac_cv_kthread=no 9713 ac_cv_pthread=no 9714 9715else $as_nop 9716 ac_cv_pthread_is_default=no 9717fi 9718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9719 conftest.$ac_objext conftest.beam conftest.$ac_ext 9720fi 9721 9722 9723fi 9724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 9725printf "%s\n" "$ac_cv_pthread_is_default" >&6; } 9726 9727 9728if test $ac_cv_pthread_is_default = yes 9729then 9730 ac_cv_kpthread=no 9731else 9732# -Kpthread, if available, provides the right #defines 9733# and linker options to make pthread_create available 9734# Some compilers won't report that they do not support -Kpthread, 9735# so we need to run a program to see whether it really made the 9736# function available. 9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 9738printf %s "checking whether $CC accepts -Kpthread... " >&6; } 9739if test ${ac_cv_kpthread+y} 9740then : 9741 printf %s "(cached) " >&6 9742else $as_nop 9743 ac_save_cc="$CC" 9744CC="$CC -Kpthread" 9745if test "$cross_compiling" = yes 9746then : 9747 ac_cv_kpthread=no 9748else $as_nop 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751 9752#include <stdio.h> 9753#include <pthread.h> 9754 9755void* routine(void* p){return NULL;} 9756 9757int main(void){ 9758 pthread_t p; 9759 if(pthread_create(&p,NULL,routine,NULL)!=0) 9760 return 1; 9761 (void)pthread_detach(p); 9762 return 0; 9763} 9764 9765_ACEOF 9766if ac_fn_c_try_run "$LINENO" 9767then : 9768 ac_cv_kpthread=yes 9769else $as_nop 9770 ac_cv_kpthread=no 9771fi 9772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9773 conftest.$ac_objext conftest.beam conftest.$ac_ext 9774fi 9775 9776CC="$ac_save_cc" 9777fi 9778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 9779printf "%s\n" "$ac_cv_kpthread" >&6; } 9780fi 9781 9782if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 9783then 9784# -Kthread, if available, provides the right #defines 9785# and linker options to make pthread_create available 9786# Some compilers won't report that they do not support -Kthread, 9787# so we need to run a program to see whether it really made the 9788# function available. 9789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 9790printf %s "checking whether $CC accepts -Kthread... " >&6; } 9791if test ${ac_cv_kthread+y} 9792then : 9793 printf %s "(cached) " >&6 9794else $as_nop 9795 ac_save_cc="$CC" 9796CC="$CC -Kthread" 9797if test "$cross_compiling" = yes 9798then : 9799 ac_cv_kthread=no 9800else $as_nop 9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802/* end confdefs.h. */ 9803 9804#include <stdio.h> 9805#include <pthread.h> 9806 9807void* routine(void* p){return NULL;} 9808 9809int main(void){ 9810 pthread_t p; 9811 if(pthread_create(&p,NULL,routine,NULL)!=0) 9812 return 1; 9813 (void)pthread_detach(p); 9814 return 0; 9815} 9816 9817_ACEOF 9818if ac_fn_c_try_run "$LINENO" 9819then : 9820 ac_cv_kthread=yes 9821else $as_nop 9822 ac_cv_kthread=no 9823fi 9824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9825 conftest.$ac_objext conftest.beam conftest.$ac_ext 9826fi 9827 9828CC="$ac_save_cc" 9829fi 9830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 9831printf "%s\n" "$ac_cv_kthread" >&6; } 9832fi 9833 9834if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 9835then 9836# -pthread, if available, provides the right #defines 9837# and linker options to make pthread_create available 9838# Some compilers won't report that they do not support -pthread, 9839# so we need to run a program to see whether it really made the 9840# function available. 9841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 9842printf %s "checking whether $CC accepts -pthread... " >&6; } 9843if test ${ac_cv_pthread+y} 9844then : 9845 printf %s "(cached) " >&6 9846else $as_nop 9847 ac_save_cc="$CC" 9848CC="$CC -pthread" 9849if test "$cross_compiling" = yes 9850then : 9851 ac_cv_pthread=no 9852else $as_nop 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855 9856#include <stdio.h> 9857#include <pthread.h> 9858 9859void* routine(void* p){return NULL;} 9860 9861int main(void){ 9862 pthread_t p; 9863 if(pthread_create(&p,NULL,routine,NULL)!=0) 9864 return 1; 9865 (void)pthread_detach(p); 9866 return 0; 9867} 9868 9869_ACEOF 9870if ac_fn_c_try_run "$LINENO" 9871then : 9872 ac_cv_pthread=yes 9873else $as_nop 9874 ac_cv_pthread=no 9875fi 9876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9877 conftest.$ac_objext conftest.beam conftest.$ac_ext 9878fi 9879 9880CC="$ac_save_cc" 9881fi 9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 9883printf "%s\n" "$ac_cv_pthread" >&6; } 9884fi 9885 9886# If we have set a CC compiler flag for thread support then 9887# check if it works for CXX, too. 9888ac_cv_cxx_thread=no 9889if test ! -z "$CXX" 9890then 9891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 9892printf %s "checking whether $CXX also accepts flags for thread support... " >&6; } 9893ac_save_cxx="$CXX" 9894 9895if test "$ac_cv_kpthread" = "yes" 9896then 9897 CXX="$CXX -Kpthread" 9898 ac_cv_cxx_thread=yes 9899elif test "$ac_cv_kthread" = "yes" 9900then 9901 CXX="$CXX -Kthread" 9902 ac_cv_cxx_thread=yes 9903elif test "$ac_cv_pthread" = "yes" 9904then 9905 CXX="$CXX -pthread" 9906 ac_cv_cxx_thread=yes 9907fi 9908 9909if test $ac_cv_cxx_thread = yes 9910then 9911 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 9912 $CXX -c conftest.$ac_ext 2>&5 9913 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 9914 && test -s conftest$ac_exeext && ./conftest$ac_exeext 9915 then 9916 ac_cv_cxx_thread=yes 9917 else 9918 ac_cv_cxx_thread=no 9919 fi 9920 rm -fr conftest* 9921fi 9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 9923printf "%s\n" "$ac_cv_cxx_thread" >&6; } 9924fi 9925CXX="$ac_save_cxx" 9926 9927 9928 9929printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9930 9931 9932# checks for header files 9933ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 9934if test "x$ac_cv_header_alloca_h" = xyes 9935then : 9936 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 9937 9938fi 9939ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default" 9940if test "x$ac_cv_header_asm_types_h" = xyes 9941then : 9942 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h 9943 9944fi 9945ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default" 9946if test "x$ac_cv_header_bluetooth_h" = xyes 9947then : 9948 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h 9949 9950fi 9951ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default" 9952if test "x$ac_cv_header_conio_h" = xyes 9953then : 9954 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h 9955 9956fi 9957ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" 9958if test "x$ac_cv_header_crypt_h" = xyes 9959then : 9960 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h 9961 9962fi 9963ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" 9964if test "x$ac_cv_header_direct_h" = xyes 9965then : 9966 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h 9967 9968fi 9969ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 9970if test "x$ac_cv_header_dlfcn_h" = xyes 9971then : 9972 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9973 9974fi 9975ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 9976if test "x$ac_cv_header_endian_h" = xyes 9977then : 9978 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 9979 9980fi 9981ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 9982if test "x$ac_cv_header_errno_h" = xyes 9983then : 9984 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 9985 9986fi 9987ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 9988if test "x$ac_cv_header_fcntl_h" = xyes 9989then : 9990 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 9991 9992fi 9993ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 9994if test "x$ac_cv_header_grp_h" = xyes 9995then : 9996 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 9997 9998fi 9999ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" 10000if test "x$ac_cv_header_ieeefp_h" = xyes 10001then : 10002 printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h 10003 10004fi 10005ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 10006if test "x$ac_cv_header_io_h" = xyes 10007then : 10008 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 10009 10010fi 10011ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 10012if test "x$ac_cv_header_langinfo_h" = xyes 10013then : 10014 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h 10015 10016fi 10017ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 10018if test "x$ac_cv_header_libintl_h" = xyes 10019then : 10020 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h 10021 10022fi 10023ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 10024if test "x$ac_cv_header_libutil_h" = xyes 10025then : 10026 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h 10027 10028fi 10029ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default" 10030if test "x$ac_cv_header_linux_auxvec_h" = xyes 10031then : 10032 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h 10033 10034fi 10035ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default" 10036if test "x$ac_cv_header_sys_auxv_h" = xyes 10037then : 10038 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h 10039 10040fi 10041ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default" 10042if test "x$ac_cv_header_linux_memfd_h" = xyes 10043then : 10044 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h 10045 10046fi 10047ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default" 10048if test "x$ac_cv_header_linux_random_h" = xyes 10049then : 10050 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h 10051 10052fi 10053ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" 10054if test "x$ac_cv_header_linux_soundcard_h" = xyes 10055then : 10056 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h 10057 10058fi 10059ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default" 10060if test "x$ac_cv_header_linux_tipc_h" = xyes 10061then : 10062 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h 10063 10064fi 10065ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default" 10066if test "x$ac_cv_header_linux_wait_h" = xyes 10067then : 10068 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h 10069 10070fi 10071ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 10072if test "x$ac_cv_header_netdb_h" = xyes 10073then : 10074 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 10075 10076fi 10077ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 10078if test "x$ac_cv_header_netinet_in_h" = xyes 10079then : 10080 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 10081 10082fi 10083ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default" 10084if test "x$ac_cv_header_netpacket_packet_h" = xyes 10085then : 10086 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h 10087 10088fi 10089ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 10090if test "x$ac_cv_header_poll_h" = xyes 10091then : 10092 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 10093 10094fi 10095ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" 10096if test "x$ac_cv_header_process_h" = xyes 10097then : 10098 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h 10099 10100fi 10101ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10102if test "x$ac_cv_header_pthread_h" = xyes 10103then : 10104 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 10105 10106fi 10107ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 10108if test "x$ac_cv_header_pty_h" = xyes 10109then : 10110 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h 10111 10112fi 10113ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 10114if test "x$ac_cv_header_sched_h" = xyes 10115then : 10116 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 10117 10118fi 10119ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 10120if test "x$ac_cv_header_setjmp_h" = xyes 10121then : 10122 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h 10123 10124fi 10125ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 10126if test "x$ac_cv_header_shadow_h" = xyes 10127then : 10128 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h 10129 10130fi 10131ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 10132if test "x$ac_cv_header_signal_h" = xyes 10133then : 10134 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 10135 10136fi 10137ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 10138if test "x$ac_cv_header_spawn_h" = xyes 10139then : 10140 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 10141 10142fi 10143ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 10144if test "x$ac_cv_header_stropts_h" = xyes 10145then : 10146 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 10147 10148fi 10149ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default" 10150if test "x$ac_cv_header_sys_audioio_h" = xyes 10151then : 10152 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h 10153 10154fi 10155ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default" 10156if test "x$ac_cv_header_sys_bsdtty_h" = xyes 10157then : 10158 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h 10159 10160fi 10161ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" 10162if test "x$ac_cv_header_sys_devpoll_h" = xyes 10163then : 10164 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h 10165 10166fi 10167ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 10168if test "x$ac_cv_header_sys_endian_h" = xyes 10169then : 10170 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 10171 10172fi 10173ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 10174if test "x$ac_cv_header_sys_epoll_h" = xyes 10175then : 10176 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 10177 10178fi 10179ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 10180if test "x$ac_cv_header_sys_event_h" = xyes 10181then : 10182 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h 10183 10184fi 10185ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" 10186if test "x$ac_cv_header_sys_eventfd_h" = xyes 10187then : 10188 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 10189 10190fi 10191ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 10192if test "x$ac_cv_header_sys_file_h" = xyes 10193then : 10194 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 10195 10196fi 10197ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 10198if test "x$ac_cv_header_sys_ioctl_h" = xyes 10199then : 10200 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 10201 10202fi 10203ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default" 10204if test "x$ac_cv_header_sys_kern_control_h" = xyes 10205then : 10206 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h 10207 10208fi 10209ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" 10210if test "x$ac_cv_header_sys_loadavg_h" = xyes 10211then : 10212 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h 10213 10214fi 10215ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default" 10216if test "x$ac_cv_header_sys_lock_h" = xyes 10217then : 10218 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h 10219 10220fi 10221ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" 10222if test "x$ac_cv_header_sys_memfd_h" = xyes 10223then : 10224 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h 10225 10226fi 10227ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 10228if test "x$ac_cv_header_sys_mkdev_h" = xyes 10229then : 10230 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 10231 10232fi 10233ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 10234if test "x$ac_cv_header_sys_mman_h" = xyes 10235then : 10236 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 10237 10238fi 10239ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" 10240if test "x$ac_cv_header_sys_modem_h" = xyes 10241then : 10242 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h 10243 10244fi 10245ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 10246if test "x$ac_cv_header_sys_param_h" = xyes 10247then : 10248 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 10249 10250fi 10251ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 10252if test "x$ac_cv_header_sys_poll_h" = xyes 10253then : 10254 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 10255 10256fi 10257ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 10258if test "x$ac_cv_header_sys_random_h" = xyes 10259then : 10260 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 10261 10262fi 10263ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 10264if test "x$ac_cv_header_sys_resource_h" = xyes 10265then : 10266 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 10267 10268fi 10269ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 10270if test "x$ac_cv_header_sys_select_h" = xyes 10271then : 10272 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 10273 10274fi 10275ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" 10276if test "x$ac_cv_header_sys_sendfile_h" = xyes 10277then : 10278 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h 10279 10280fi 10281ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 10282if test "x$ac_cv_header_sys_socket_h" = xyes 10283then : 10284 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 10285 10286fi 10287ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 10288if test "x$ac_cv_header_sys_soundcard_h" = xyes 10289then : 10290 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h 10291 10292fi 10293ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 10294if test "x$ac_cv_header_sys_stat_h" = xyes 10295then : 10296 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 10297 10298fi 10299ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 10300if test "x$ac_cv_header_sys_statvfs_h" = xyes 10301then : 10302 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h 10303 10304fi 10305ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default" 10306if test "x$ac_cv_header_sys_sys_domain_h" = xyes 10307then : 10308 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h 10309 10310fi 10311ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 10312if test "x$ac_cv_header_sys_syscall_h" = xyes 10313then : 10314 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 10315 10316fi 10317ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 10318if test "x$ac_cv_header_sys_sysmacros_h" = xyes 10319then : 10320 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 10321 10322fi 10323ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" 10324if test "x$ac_cv_header_sys_termio_h" = xyes 10325then : 10326 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h 10327 10328fi 10329ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 10330if test "x$ac_cv_header_sys_time_h" = xyes 10331then : 10332 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 10333 10334fi 10335ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" 10336if test "x$ac_cv_header_sys_times_h" = xyes 10337then : 10338 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h 10339 10340fi 10341ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 10342if test "x$ac_cv_header_sys_types_h" = xyes 10343then : 10344 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 10345 10346fi 10347ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 10348if test "x$ac_cv_header_sys_uio_h" = xyes 10349then : 10350 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 10351 10352fi 10353ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 10354if test "x$ac_cv_header_sys_un_h" = xyes 10355then : 10356 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 10357 10358fi 10359ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 10360if test "x$ac_cv_header_sys_utsname_h" = xyes 10361then : 10362 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 10363 10364fi 10365ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 10366if test "x$ac_cv_header_sys_wait_h" = xyes 10367then : 10368 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10369 10370fi 10371ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" 10372if test "x$ac_cv_header_sys_xattr_h" = xyes 10373then : 10374 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h 10375 10376fi 10377ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 10378if test "x$ac_cv_header_sysexits_h" = xyes 10379then : 10380 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h 10381 10382fi 10383ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 10384if test "x$ac_cv_header_syslog_h" = xyes 10385then : 10386 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 10387 10388fi 10389ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 10390if test "x$ac_cv_header_termios_h" = xyes 10391then : 10392 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 10393 10394fi 10395ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 10396if test "x$ac_cv_header_util_h" = xyes 10397then : 10398 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 10399 10400fi 10401ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 10402if test "x$ac_cv_header_utime_h" = xyes 10403then : 10404 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 10405 10406fi 10407ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 10408if test "x$ac_cv_header_utmp_h" = xyes 10409then : 10410 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h 10411 10412fi 10413 10414ac_header_dirent=no 10415for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10416 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10418printf %s "checking for $ac_hdr that defines DIR... " >&6; } 10419if eval test \${$as_ac_Header+y} 10420then : 10421 printf %s "(cached) " >&6 10422else $as_nop 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425#include <sys/types.h> 10426#include <$ac_hdr> 10427 10428int 10429main (void) 10430{ 10431if ((DIR *) 0) 10432return 0; 10433 ; 10434 return 0; 10435} 10436_ACEOF 10437if ac_fn_c_try_compile "$LINENO" 10438then : 10439 eval "$as_ac_Header=yes" 10440else $as_nop 10441 eval "$as_ac_Header=no" 10442fi 10443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10444fi 10445eval ac_res=\$$as_ac_Header 10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10447printf "%s\n" "$ac_res" >&6; } 10448if eval test \"x\$"$as_ac_Header"\" = x"yes" 10449then : 10450 cat >>confdefs.h <<_ACEOF 10451#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 10452_ACEOF 10453 10454ac_header_dirent=$ac_hdr; break 10455fi 10456 10457done 10458# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10459if test $ac_header_dirent = dirent.h; then 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10461printf %s "checking for library containing opendir... " >&6; } 10462if test ${ac_cv_search_opendir+y} 10463then : 10464 printf %s "(cached) " >&6 10465else $as_nop 10466 ac_func_search_save_LIBS=$LIBS 10467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10468/* end confdefs.h. */ 10469 10470/* Override any GCC internal prototype to avoid an error. 10471 Use char because int might match the return type of a GCC 10472 builtin and then its argument prototype would still apply. */ 10473char opendir (); 10474int 10475main (void) 10476{ 10477return opendir (); 10478 ; 10479 return 0; 10480} 10481_ACEOF 10482for ac_lib in '' dir 10483do 10484 if test -z "$ac_lib"; then 10485 ac_res="none required" 10486 else 10487 ac_res=-l$ac_lib 10488 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10489 fi 10490 if ac_fn_c_try_link "$LINENO" 10491then : 10492 ac_cv_search_opendir=$ac_res 10493fi 10494rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10495 conftest$ac_exeext 10496 if test ${ac_cv_search_opendir+y} 10497then : 10498 break 10499fi 10500done 10501if test ${ac_cv_search_opendir+y} 10502then : 10503 10504else $as_nop 10505 ac_cv_search_opendir=no 10506fi 10507rm conftest.$ac_ext 10508LIBS=$ac_func_search_save_LIBS 10509fi 10510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10511printf "%s\n" "$ac_cv_search_opendir" >&6; } 10512ac_res=$ac_cv_search_opendir 10513if test "$ac_res" != no 10514then : 10515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10516 10517fi 10518 10519else 10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10521printf %s "checking for library containing opendir... " >&6; } 10522if test ${ac_cv_search_opendir+y} 10523then : 10524 printf %s "(cached) " >&6 10525else $as_nop 10526 ac_func_search_save_LIBS=$LIBS 10527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529 10530/* Override any GCC internal prototype to avoid an error. 10531 Use char because int might match the return type of a GCC 10532 builtin and then its argument prototype would still apply. */ 10533char opendir (); 10534int 10535main (void) 10536{ 10537return opendir (); 10538 ; 10539 return 0; 10540} 10541_ACEOF 10542for ac_lib in '' x 10543do 10544 if test -z "$ac_lib"; then 10545 ac_res="none required" 10546 else 10547 ac_res=-l$ac_lib 10548 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10549 fi 10550 if ac_fn_c_try_link "$LINENO" 10551then : 10552 ac_cv_search_opendir=$ac_res 10553fi 10554rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10555 conftest$ac_exeext 10556 if test ${ac_cv_search_opendir+y} 10557then : 10558 break 10559fi 10560done 10561if test ${ac_cv_search_opendir+y} 10562then : 10563 10564else $as_nop 10565 ac_cv_search_opendir=no 10566fi 10567rm conftest.$ac_ext 10568LIBS=$ac_func_search_save_LIBS 10569fi 10570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10571printf "%s\n" "$ac_cv_search_opendir" >&6; } 10572ac_res=$ac_cv_search_opendir 10573if test "$ac_res" != no 10574then : 10575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10576 10577fi 10578 10579fi 10580 10581 10582ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 10583if test "x$ac_cv_header_sys_mkdev_h" = xyes 10584then : 10585 10586printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 10587 10588fi 10589 10590if test $ac_cv_header_sys_mkdev_h = no; then 10591 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 10592if test "x$ac_cv_header_sys_sysmacros_h" = xyes 10593then : 10594 10595printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 10596 10597fi 10598 10599fi 10600 10601 10602# bluetooth/bluetooth.h has been known to not compile with -std=c99. 10603# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 10604SAVE_CFLAGS=$CFLAGS 10605CFLAGS="-std=c99 $CFLAGS" 10606ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 10607if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes 10608then : 10609 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h 10610 10611fi 10612 10613CFLAGS=$SAVE_CFLAGS 10614 10615# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 10616ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 10617#include <stdlib.h> 10618#include <stddef.h> 10619#ifdef HAVE_SYS_SOCKET_H 10620# include <sys/socket.h> 10621#endif 10622 10623" 10624if test "x$ac_cv_header_net_if_h" = xyes 10625then : 10626 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 10627 10628fi 10629 10630 10631# On Linux, netlink.h requires asm/types.h 10632ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 10633#ifdef HAVE_ASM_TYPES_H 10634#include <asm/types.h> 10635#endif 10636#ifdef HAVE_SYS_SOCKET_H 10637#include <sys/socket.h> 10638#endif 10639 10640" 10641if test "x$ac_cv_header_linux_netlink_h" = xyes 10642then : 10643 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h 10644 10645fi 10646 10647 10648# On Linux, qrtr.h requires asm/types.h 10649ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " 10650#ifdef HAVE_ASM_TYPES_H 10651#include <asm/types.h> 10652#endif 10653#ifdef HAVE_SYS_SOCKET_H 10654#include <sys/socket.h> 10655#endif 10656 10657" 10658if test "x$ac_cv_header_linux_qrtr_h" = xyes 10659then : 10660 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h 10661 10662fi 10663 10664 10665ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " 10666#ifdef HAVE_SYS_SOCKET_H 10667#include <sys/socket.h> 10668#endif 10669 10670" 10671if test "x$ac_cv_header_linux_vm_sockets_h" = xyes 10672then : 10673 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h 10674 10675fi 10676 10677 10678# On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h 10679# On NetBSD, netcan/can.h requires sys/socket.h 10680ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" " 10681#ifdef HAVE_SYS_SOCKET_H 10682#include <sys/socket.h> 10683#endif 10684 10685" 10686if test "x$ac_cv_header_linux_can_h" = xyes 10687then : 10688 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h 10689 10690fi 10691ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" " 10692#ifdef HAVE_SYS_SOCKET_H 10693#include <sys/socket.h> 10694#endif 10695 10696" 10697if test "x$ac_cv_header_linux_can_bcm_h" = xyes 10698then : 10699 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h 10700 10701fi 10702ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" " 10703#ifdef HAVE_SYS_SOCKET_H 10704#include <sys/socket.h> 10705#endif 10706 10707" 10708if test "x$ac_cv_header_linux_can_j1939_h" = xyes 10709then : 10710 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h 10711 10712fi 10713ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" " 10714#ifdef HAVE_SYS_SOCKET_H 10715#include <sys/socket.h> 10716#endif 10717 10718" 10719if test "x$ac_cv_header_linux_can_raw_h" = xyes 10720then : 10721 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h 10722 10723fi 10724ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" " 10725#ifdef HAVE_SYS_SOCKET_H 10726#include <sys/socket.h> 10727#endif 10728 10729" 10730if test "x$ac_cv_header_netcan_can_h" = xyes 10731then : 10732 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h 10733 10734fi 10735 10736 10737# checks for typedefs 10738 10739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 10740printf %s "checking for clock_t in time.h... " >&6; } 10741if test ${ac_cv_clock_t_time_h+y} 10742then : 10743 printf %s "(cached) " >&6 10744else $as_nop 10745 10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747/* end confdefs.h. */ 10748#include <time.h> 10749 10750_ACEOF 10751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10752 $EGREP "clock_t" >/dev/null 2>&1 10753then : 10754 ac_cv_clock_t_time_h=yes 10755else $as_nop 10756 ac_cv_clock_t_time_h=no 10757fi 10758rm -rf conftest* 10759 10760 10761fi 10762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_clock_t_time_h" >&5 10763printf "%s\n" "$ac_cv_clock_t_time_h" >&6; } 10764if test "x$ac_cv_clock_t_time_h" = xno 10765then : 10766 10767 10768printf "%s\n" "#define clock_t long" >>confdefs.h 10769 10770 10771fi 10772 10773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 10774printf %s "checking for makedev... " >&6; } 10775if test ${ac_cv_func_makedev+y} 10776then : 10777 printf %s "(cached) " >&6 10778else $as_nop 10779 10780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10781/* end confdefs.h. */ 10782 10783#if defined(MAJOR_IN_MKDEV) 10784#include <sys/mkdev.h> 10785#elif defined(MAJOR_IN_SYSMACROS) 10786#include <sys/sysmacros.h> 10787#else 10788#include <sys/types.h> 10789#endif 10790 10791int 10792main (void) 10793{ 10794 10795 makedev(0, 0) 10796 ; 10797 return 0; 10798} 10799 10800_ACEOF 10801if ac_fn_c_try_link "$LINENO" 10802then : 10803 ac_cv_func_makedev=yes 10804else $as_nop 10805 ac_cv_func_makedev=no 10806fi 10807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10808 conftest$ac_exeext conftest.$ac_ext 10809 10810fi 10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5 10812printf "%s\n" "$ac_cv_func_makedev" >&6; } 10813 10814if test "x$ac_cv_func_makedev" = xyes 10815then : 10816 10817 10818printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h 10819 10820 10821fi 10822 10823# byte swapping 10824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 10825printf %s "checking for le64toh... " >&6; } 10826if test ${ac_cv_func_le64toh+y} 10827then : 10828 printf %s "(cached) " >&6 10829else $as_nop 10830 10831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833 10834#ifdef HAVE_ENDIAN_H 10835#include <endian.h> 10836#elif defined(HAVE_SYS_ENDIAN_H) 10837#include <sys/endian.h> 10838#endif 10839 10840int 10841main (void) 10842{ 10843 10844 le64toh(1) 10845 ; 10846 return 0; 10847} 10848 10849_ACEOF 10850if ac_fn_c_try_link "$LINENO" 10851then : 10852 ac_cv_func_le64toh=yes 10853else $as_nop 10854 ac_cv_func_le64toh=no 10855fi 10856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10857 conftest$ac_exeext conftest.$ac_ext 10858 10859fi 10860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5 10861printf "%s\n" "$ac_cv_func_le64toh" >&6; } 10862 10863if test "x$ac_cv_func_le64toh" = xyes 10864then : 10865 10866 10867printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h 10868 10869 10870fi 10871 10872use_lfs=yes 10873# Don't use largefile support for GNU/Hurd 10874case $ac_sys_system in GNU*) 10875 use_lfs=no 10876esac 10877 10878if test "$use_lfs" = "yes"; then 10879# Two defines needed to enable largefile support on various platforms 10880# These may affect some typedefs 10881case $ac_sys_system/$ac_sys_release in 10882AIX*) 10883 10884printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 10885 10886 ;; 10887esac 10888 10889printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 10890 10891 10892printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 10893 10894fi 10895 10896# Add some code to confdefs.h so that the test for off_t works on SCO 10897cat >> confdefs.h <<\EOF 10898#if defined(SCO_DS) 10899#undef _OFF_T 10900#endif 10901EOF 10902 10903# Type availability checks 10904ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10905if test "x$ac_cv_type_mode_t" = xyes 10906then : 10907 10908else $as_nop 10909 10910printf "%s\n" "#define mode_t int" >>confdefs.h 10911 10912fi 10913 10914ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10915if test "x$ac_cv_type_off_t" = xyes 10916then : 10917 10918else $as_nop 10919 10920printf "%s\n" "#define off_t long int" >>confdefs.h 10921 10922fi 10923 10924 10925 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 10926" 10927if test "x$ac_cv_type_pid_t" = xyes 10928then : 10929 10930else $as_nop 10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10932/* end confdefs.h. */ 10933 10934 #if defined _WIN64 && !defined __CYGWIN__ 10935 LLP64 10936 #endif 10937 10938int 10939main (void) 10940{ 10941 10942 ; 10943 return 0; 10944} 10945 10946_ACEOF 10947if ac_fn_c_try_compile "$LINENO" 10948then : 10949 ac_pid_type='int' 10950else $as_nop 10951 ac_pid_type='__int64' 10952fi 10953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10954 10955printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 10956 10957 10958fi 10959 10960 10961 10962printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 10963 10964ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10965if test "x$ac_cv_type_size_t" = xyes 10966then : 10967 10968else $as_nop 10969 10970printf "%s\n" "#define size_t unsigned int" >>confdefs.h 10971 10972fi 10973 10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10975printf %s "checking for uid_t in sys/types.h... " >&6; } 10976if test ${ac_cv_type_uid_t+y} 10977then : 10978 printf %s "(cached) " >&6 10979else $as_nop 10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10981/* end confdefs.h. */ 10982#include <sys/types.h> 10983 10984_ACEOF 10985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10986 $EGREP "uid_t" >/dev/null 2>&1 10987then : 10988 ac_cv_type_uid_t=yes 10989else $as_nop 10990 ac_cv_type_uid_t=no 10991fi 10992rm -rf conftest* 10993 10994fi 10995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10996printf "%s\n" "$ac_cv_type_uid_t" >&6; } 10997if test $ac_cv_type_uid_t = no; then 10998 10999printf "%s\n" "#define uid_t int" >>confdefs.h 11000 11001 11002printf "%s\n" "#define gid_t int" >>confdefs.h 11003 11004fi 11005 11006 11007ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 11008if test "x$ac_cv_type_ssize_t" = xyes 11009then : 11010 11011printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h 11012 11013fi 11014 11015ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 11016if test "x$ac_cv_type___uint128_t" = xyes 11017then : 11018 11019printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 11020 11021fi 11022 11023 11024# Sizes and alignments of various common basic types 11025# ANSI C requires sizeof(char) == 1, so no need to check it 11026# The cast to long int works around a bug in the HP C Compiler 11027# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11028# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11029# This bug is HP SR number 8606223364. 11030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11031printf %s "checking size of int... " >&6; } 11032if test ${ac_cv_sizeof_int+y} 11033then : 11034 printf %s "(cached) " >&6 11035else $as_nop 11036 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 11037then : 11038 11039else $as_nop 11040 if test "$ac_cv_type_int" = yes; then 11041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11043as_fn_error 77 "cannot compute sizeof (int) 11044See \`config.log' for more details" "$LINENO" 5; } 11045 else 11046 ac_cv_sizeof_int=0 11047 fi 11048fi 11049 11050fi 11051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11052printf "%s\n" "$ac_cv_sizeof_int" >&6; } 11053 11054 11055 11056printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 11057 11058 11059# The cast to long int works around a bug in the HP C Compiler 11060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11062# This bug is HP SR number 8606223364. 11063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11064printf %s "checking size of long... " >&6; } 11065if test ${ac_cv_sizeof_long+y} 11066then : 11067 printf %s "(cached) " >&6 11068else $as_nop 11069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 11070then : 11071 11072else $as_nop 11073 if test "$ac_cv_type_long" = yes; then 11074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11075printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11076as_fn_error 77 "cannot compute sizeof (long) 11077See \`config.log' for more details" "$LINENO" 5; } 11078 else 11079 ac_cv_sizeof_long=0 11080 fi 11081fi 11082 11083fi 11084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11085printf "%s\n" "$ac_cv_sizeof_long" >&6; } 11086 11087 11088 11089printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 11090 11091 11092# The cast to long int works around a bug in the HP C Compiler, 11093# see AC_CHECK_SIZEOF for more information. 11094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 11095printf %s "checking alignment of long... " >&6; } 11096if test ${ac_cv_alignof_long+y} 11097then : 11098 printf %s "(cached) " >&6 11099else $as_nop 11100 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default 11101typedef struct { char x; long y; } ac__type_alignof_;" 11102then : 11103 11104else $as_nop 11105 if test "$ac_cv_type_long" = yes; then 11106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11107printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11108as_fn_error 77 "cannot compute alignment of long 11109See \`config.log' for more details" "$LINENO" 5; } 11110 else 11111 ac_cv_alignof_long=0 11112 fi 11113fi 11114 11115fi 11116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 11117printf "%s\n" "$ac_cv_alignof_long" >&6; } 11118 11119 11120 11121printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h 11122 11123 11124# The cast to long int works around a bug in the HP C Compiler 11125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11127# This bug is HP SR number 8606223364. 11128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 11129printf %s "checking size of long long... " >&6; } 11130if test ${ac_cv_sizeof_long_long+y} 11131then : 11132 printf %s "(cached) " >&6 11133else $as_nop 11134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 11135then : 11136 11137else $as_nop 11138 if test "$ac_cv_type_long_long" = yes; then 11139 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11141as_fn_error 77 "cannot compute sizeof (long long) 11142See \`config.log' for more details" "$LINENO" 5; } 11143 else 11144 ac_cv_sizeof_long_long=0 11145 fi 11146fi 11147 11148fi 11149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 11150printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 11151 11152 11153 11154printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 11155 11156 11157# The cast to long int works around a bug in the HP C Compiler 11158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11160# This bug is HP SR number 8606223364. 11161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11162printf %s "checking size of void *... " >&6; } 11163if test ${ac_cv_sizeof_void_p+y} 11164then : 11165 printf %s "(cached) " >&6 11166else $as_nop 11167 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 11168then : 11169 11170else $as_nop 11171 if test "$ac_cv_type_void_p" = yes; then 11172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11173printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11174as_fn_error 77 "cannot compute sizeof (void *) 11175See \`config.log' for more details" "$LINENO" 5; } 11176 else 11177 ac_cv_sizeof_void_p=0 11178 fi 11179fi 11180 11181fi 11182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11183printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 11184 11185 11186 11187printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 11188 11189 11190# The cast to long int works around a bug in the HP C Compiler 11191# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11192# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11193# This bug is HP SR number 8606223364. 11194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 11195printf %s "checking size of short... " >&6; } 11196if test ${ac_cv_sizeof_short+y} 11197then : 11198 printf %s "(cached) " >&6 11199else $as_nop 11200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 11201then : 11202 11203else $as_nop 11204 if test "$ac_cv_type_short" = yes; then 11205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11207as_fn_error 77 "cannot compute sizeof (short) 11208See \`config.log' for more details" "$LINENO" 5; } 11209 else 11210 ac_cv_sizeof_short=0 11211 fi 11212fi 11213 11214fi 11215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 11216printf "%s\n" "$ac_cv_sizeof_short" >&6; } 11217 11218 11219 11220printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 11221 11222 11223# The cast to long int works around a bug in the HP C Compiler 11224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11226# This bug is HP SR number 8606223364. 11227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 11228printf %s "checking size of float... " >&6; } 11229if test ${ac_cv_sizeof_float+y} 11230then : 11231 printf %s "(cached) " >&6 11232else $as_nop 11233 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" 11234then : 11235 11236else $as_nop 11237 if test "$ac_cv_type_float" = yes; then 11238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11239printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11240as_fn_error 77 "cannot compute sizeof (float) 11241See \`config.log' for more details" "$LINENO" 5; } 11242 else 11243 ac_cv_sizeof_float=0 11244 fi 11245fi 11246 11247fi 11248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 11249printf "%s\n" "$ac_cv_sizeof_float" >&6; } 11250 11251 11252 11253printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h 11254 11255 11256# The cast to long int works around a bug in the HP C Compiler 11257# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11258# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11259# This bug is HP SR number 8606223364. 11260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 11261printf %s "checking size of double... " >&6; } 11262if test ${ac_cv_sizeof_double+y} 11263then : 11264 printf %s "(cached) " >&6 11265else $as_nop 11266 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" 11267then : 11268 11269else $as_nop 11270 if test "$ac_cv_type_double" = yes; then 11271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11272printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11273as_fn_error 77 "cannot compute sizeof (double) 11274See \`config.log' for more details" "$LINENO" 5; } 11275 else 11276 ac_cv_sizeof_double=0 11277 fi 11278fi 11279 11280fi 11281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 11282printf "%s\n" "$ac_cv_sizeof_double" >&6; } 11283 11284 11285 11286printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h 11287 11288 11289# The cast to long int works around a bug in the HP C Compiler 11290# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11291# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11292# This bug is HP SR number 8606223364. 11293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 11294printf %s "checking size of fpos_t... " >&6; } 11295if test ${ac_cv_sizeof_fpos_t+y} 11296then : 11297 printf %s "(cached) " >&6 11298else $as_nop 11299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default" 11300then : 11301 11302else $as_nop 11303 if test "$ac_cv_type_fpos_t" = yes; then 11304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11305printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11306as_fn_error 77 "cannot compute sizeof (fpos_t) 11307See \`config.log' for more details" "$LINENO" 5; } 11308 else 11309 ac_cv_sizeof_fpos_t=0 11310 fi 11311fi 11312 11313fi 11314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 11315printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; } 11316 11317 11318 11319printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h 11320 11321 11322# The cast to long int works around a bug in the HP C Compiler 11323# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11324# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11325# This bug is HP SR number 8606223364. 11326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 11327printf %s "checking size of size_t... " >&6; } 11328if test ${ac_cv_sizeof_size_t+y} 11329then : 11330 printf %s "(cached) " >&6 11331else $as_nop 11332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 11333then : 11334 11335else $as_nop 11336 if test "$ac_cv_type_size_t" = yes; then 11337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11338printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11339as_fn_error 77 "cannot compute sizeof (size_t) 11340See \`config.log' for more details" "$LINENO" 5; } 11341 else 11342 ac_cv_sizeof_size_t=0 11343 fi 11344fi 11345 11346fi 11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 11348printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 11349 11350 11351 11352printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 11353 11354 11355# The cast to long int works around a bug in the HP C Compiler, 11356# see AC_CHECK_SIZEOF for more information. 11357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 11358printf %s "checking alignment of size_t... " >&6; } 11359if test ${ac_cv_alignof_size_t+y} 11360then : 11361 printf %s "(cached) " >&6 11362else $as_nop 11363 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default 11364typedef struct { char x; size_t y; } ac__type_alignof_;" 11365then : 11366 11367else $as_nop 11368 if test "$ac_cv_type_size_t" = yes; then 11369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11370printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11371as_fn_error 77 "cannot compute alignment of size_t 11372See \`config.log' for more details" "$LINENO" 5; } 11373 else 11374 ac_cv_alignof_size_t=0 11375 fi 11376fi 11377 11378fi 11379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5 11380printf "%s\n" "$ac_cv_alignof_size_t" >&6; } 11381 11382 11383 11384printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h 11385 11386 11387# The cast to long int works around a bug in the HP C Compiler 11388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11390# This bug is HP SR number 8606223364. 11391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 11392printf %s "checking size of pid_t... " >&6; } 11393if test ${ac_cv_sizeof_pid_t+y} 11394then : 11395 printf %s "(cached) " >&6 11396else $as_nop 11397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default" 11398then : 11399 11400else $as_nop 11401 if test "$ac_cv_type_pid_t" = yes; then 11402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11403printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11404as_fn_error 77 "cannot compute sizeof (pid_t) 11405See \`config.log' for more details" "$LINENO" 5; } 11406 else 11407 ac_cv_sizeof_pid_t=0 11408 fi 11409fi 11410 11411fi 11412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 11413printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; } 11414 11415 11416 11417printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h 11418 11419 11420# The cast to long int works around a bug in the HP C Compiler 11421# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11422# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11423# This bug is HP SR number 8606223364. 11424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 11425printf %s "checking size of uintptr_t... " >&6; } 11426if test ${ac_cv_sizeof_uintptr_t+y} 11427then : 11428 printf %s "(cached) " >&6 11429else $as_nop 11430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default" 11431then : 11432 11433else $as_nop 11434 if test "$ac_cv_type_uintptr_t" = yes; then 11435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11436printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11437as_fn_error 77 "cannot compute sizeof (uintptr_t) 11438See \`config.log' for more details" "$LINENO" 5; } 11439 else 11440 ac_cv_sizeof_uintptr_t=0 11441 fi 11442fi 11443 11444fi 11445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 11446printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; } 11447 11448 11449 11450printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h 11451 11452 11453 11454 11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 11456printf %s "checking for long double... " >&6; } 11457if test ${ac_cv_type_long_double+y} 11458then : 11459 printf %s "(cached) " >&6 11460else $as_nop 11461 if test "$GCC" = yes; then 11462 ac_cv_type_long_double=yes 11463 else 11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11465/* end confdefs.h. */ 11466/* The Stardent Vistra knows sizeof (long double), but does 11467 not support it. */ 11468 long double foo = 0.0L; 11469int 11470main (void) 11471{ 11472static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 11473 sizeof (double) <= sizeof (long double))]; 11474test_array [0] = 0; 11475return test_array [0]; 11476 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481if ac_fn_c_try_compile "$LINENO" 11482then : 11483 ac_cv_type_long_double=yes 11484else $as_nop 11485 ac_cv_type_long_double=no 11486fi 11487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11488 fi 11489fi 11490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 11491printf "%s\n" "$ac_cv_type_long_double" >&6; } 11492 if test $ac_cv_type_long_double = yes; then 11493 11494printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 11495 11496 fi 11497 11498# The cast to long int works around a bug in the HP C Compiler 11499# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11500# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11501# This bug is HP SR number 8606223364. 11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 11503printf %s "checking size of long double... " >&6; } 11504if test ${ac_cv_sizeof_long_double+y} 11505then : 11506 printf %s "(cached) " >&6 11507else $as_nop 11508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default" 11509then : 11510 11511else $as_nop 11512 if test "$ac_cv_type_long_double" = yes; then 11513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11515as_fn_error 77 "cannot compute sizeof (long double) 11516See \`config.log' for more details" "$LINENO" 5; } 11517 else 11518 ac_cv_sizeof_long_double=0 11519 fi 11520fi 11521 11522fi 11523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 11524printf "%s\n" "$ac_cv_sizeof_long_double" >&6; } 11525 11526 11527 11528printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h 11529 11530 11531 11532# The cast to long int works around a bug in the HP C Compiler 11533# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11534# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11535# This bug is HP SR number 8606223364. 11536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 11537printf %s "checking size of _Bool... " >&6; } 11538if test ${ac_cv_sizeof__Bool+y} 11539then : 11540 printf %s "(cached) " >&6 11541else $as_nop 11542 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default" 11543then : 11544 11545else $as_nop 11546 if test "$ac_cv_type__Bool" = yes; then 11547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11548printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11549as_fn_error 77 "cannot compute sizeof (_Bool) 11550See \`config.log' for more details" "$LINENO" 5; } 11551 else 11552 ac_cv_sizeof__Bool=0 11553 fi 11554fi 11555 11556fi 11557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 11558printf "%s\n" "$ac_cv_sizeof__Bool" >&6; } 11559 11560 11561 11562printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h 11563 11564 11565 11566# The cast to long int works around a bug in the HP C Compiler 11567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11569# This bug is HP SR number 8606223364. 11570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 11571printf %s "checking size of off_t... " >&6; } 11572if test ${ac_cv_sizeof_off_t+y} 11573then : 11574 printf %s "(cached) " >&6 11575else $as_nop 11576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 11577#ifdef HAVE_SYS_TYPES_H 11578#include <sys/types.h> 11579#endif 11580 11581" 11582then : 11583 11584else $as_nop 11585 if test "$ac_cv_type_off_t" = yes; then 11586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11587printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11588as_fn_error 77 "cannot compute sizeof (off_t) 11589See \`config.log' for more details" "$LINENO" 5; } 11590 else 11591 ac_cv_sizeof_off_t=0 11592 fi 11593fi 11594 11595fi 11596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 11597printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 11598 11599 11600 11601printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 11602 11603 11604 11605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 11606printf %s "checking whether to enable large file support... " >&6; } 11607if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 11608 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 11609 have_largefile_support="yes" 11610else 11611 have_largefile_support="no" 11612fi 11613case $ac_sys_system in #( 11614 Emscripten) : 11615 have_largefile_support="no" 11616 ;; #( 11617 *) : 11618 ;; 11619esac 11620if test "x$have_largefile_support" = xyes 11621then : 11622 11623 11624printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 11625 11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11627printf "%s\n" "yes" >&6; } 11628 11629else $as_nop 11630 11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11632printf "%s\n" "no" >&6; } 11633 11634fi 11635 11636# The cast to long int works around a bug in the HP C Compiler 11637# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11638# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11639# This bug is HP SR number 8606223364. 11640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 11641printf %s "checking size of time_t... " >&6; } 11642if test ${ac_cv_sizeof_time_t+y} 11643then : 11644 printf %s "(cached) " >&6 11645else $as_nop 11646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 11647#ifdef HAVE_SYS_TYPES_H 11648#include <sys/types.h> 11649#endif 11650#ifdef HAVE_TIME_H 11651#include <time.h> 11652#endif 11653 11654" 11655then : 11656 11657else $as_nop 11658 if test "$ac_cv_type_time_t" = yes; then 11659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11660printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11661as_fn_error 77 "cannot compute sizeof (time_t) 11662See \`config.log' for more details" "$LINENO" 5; } 11663 else 11664 ac_cv_sizeof_time_t=0 11665 fi 11666fi 11667 11668fi 11669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 11670printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 11671 11672 11673 11674printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 11675 11676 11677 11678# if have pthread_t then define SIZEOF_PTHREAD_T 11679ac_save_cc="$CC" 11680if test "$ac_cv_kpthread" = "yes" 11681then CC="$CC -Kpthread" 11682elif test "$ac_cv_kthread" = "yes" 11683then CC="$CC -Kthread" 11684elif test "$ac_cv_pthread" = "yes" 11685then CC="$CC -pthread" 11686fi 11687 11688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 11689printf %s "checking for pthread_t... " >&6; } 11690if test ${ac_cv_have_pthread_t+y} 11691then : 11692 printf %s "(cached) " >&6 11693else $as_nop 11694 11695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696/* end confdefs.h. */ 11697 11698 #include <pthread.h> 11699int 11700main (void) 11701{ 11702pthread_t x; x = *(pthread_t*)0; 11703 ; 11704 return 0; 11705} 11706 11707_ACEOF 11708if ac_fn_c_try_compile "$LINENO" 11709then : 11710 ac_cv_have_pthread_t=yes 11711else $as_nop 11712 ac_cv_have_pthread_t=no 11713fi 11714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11715 11716fi 11717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5 11718printf "%s\n" "$ac_cv_have_pthread_t" >&6; } 11719if test "x$ac_cv_have_pthread_t" = xyes 11720then : 11721 11722 # The cast to long int works around a bug in the HP C Compiler 11723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11725# This bug is HP SR number 8606223364. 11726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 11727printf %s "checking size of pthread_t... " >&6; } 11728if test ${ac_cv_sizeof_pthread_t+y} 11729then : 11730 printf %s "(cached) " >&6 11731else $as_nop 11732 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 11733#ifdef HAVE_PTHREAD_H 11734#include <pthread.h> 11735#endif 11736 11737" 11738then : 11739 11740else $as_nop 11741 if test "$ac_cv_type_pthread_t" = yes; then 11742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11743printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11744as_fn_error 77 "cannot compute sizeof (pthread_t) 11745See \`config.log' for more details" "$LINENO" 5; } 11746 else 11747 ac_cv_sizeof_pthread_t=0 11748 fi 11749fi 11750 11751fi 11752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 11753printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 11754 11755 11756 11757printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 11758 11759 11760 11761fi 11762 11763# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. 11764# This checking will be unnecessary after removing deprecated TLS API. 11765# The cast to long int works around a bug in the HP C Compiler 11766# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11767# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11768# This bug is HP SR number 8606223364. 11769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 11770printf %s "checking size of pthread_key_t... " >&6; } 11771if test ${ac_cv_sizeof_pthread_key_t+y} 11772then : 11773 printf %s "(cached) " >&6 11774else $as_nop 11775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> 11776" 11777then : 11778 11779else $as_nop 11780 if test "$ac_cv_type_pthread_key_t" = yes; then 11781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11782printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11783as_fn_error 77 "cannot compute sizeof (pthread_key_t) 11784See \`config.log' for more details" "$LINENO" 5; } 11785 else 11786 ac_cv_sizeof_pthread_key_t=0 11787 fi 11788fi 11789 11790fi 11791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 11792printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; } 11793 11794 11795 11796printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h 11797 11798 11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 11800printf %s "checking whether pthread_key_t is compatible with int... " >&6; } 11801if test ${ac_cv_pthread_key_t_is_arithmetic_type+y} 11802then : 11803 printf %s "(cached) " >&6 11804else $as_nop 11805 11806if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then 11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11808/* end confdefs.h. */ 11809#include <pthread.h> 11810int 11811main (void) 11812{ 11813pthread_key_t k; k * 1; 11814 ; 11815 return 0; 11816} 11817_ACEOF 11818if ac_fn_c_try_compile "$LINENO" 11819then : 11820 ac_cv_pthread_key_t_is_arithmetic_type=yes 11821else $as_nop 11822 ac_cv_pthread_key_t_is_arithmetic_type=no 11823 11824fi 11825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11826else 11827 ac_cv_pthread_key_t_is_arithmetic_type=no 11828fi 11829 11830fi 11831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5 11832printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; } 11833if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes 11834then : 11835 11836 11837printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h 11838 11839 11840fi 11841 11842CC="$ac_save_cc" 11843 11844 11845case $ac_sys_system/$ac_sys_release in 11846 Darwin/[01567]\..*) 11847 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 11848 ;; 11849 Darwin/*) 11850 OTHER_LIBTOOL_OPT="" 11851 ;; 11852esac 11853 11854 11855 11856case $ac_sys_system/$ac_sys_release in 11857 Darwin/[01567]\..*) 11858 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 11859 if test "${enable_universalsdk}"; then 11860 : 11861 else 11862 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 11863 fi 11864 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 11865 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 11866 Darwin/*) 11867 gcc_version=`gcc -dumpversion` 11868 if test ${gcc_version} '<' 4.0 11869 then 11870 LIBTOOL_CRUFT="-lcc_dynamic" 11871 else 11872 LIBTOOL_CRUFT="" 11873 fi 11874 if test "$cross_compiling" = yes 11875then : 11876 ac_osx_32bit=yes 11877else $as_nop 11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11879/* end confdefs.h. */ 11880 11881 #include <unistd.h> 11882 int main(int argc, char*argv[]) 11883 { 11884 if (sizeof(long) == 4) { 11885 return 0; 11886 } else { 11887 return 1; 11888 } 11889 } 11890 11891_ACEOF 11892if ac_fn_c_try_run "$LINENO" 11893then : 11894 ac_osx_32bit=yes 11895else $as_nop 11896 ac_osx_32bit=no 11897fi 11898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11899 conftest.$ac_objext conftest.beam conftest.$ac_ext 11900fi 11901 11902 11903 if test "${ac_osx_32bit}" = "yes"; then 11904 case `/usr/bin/arch` in 11905 i386) 11906 MACOSX_DEFAULT_ARCH="i386" 11907 ;; 11908 ppc) 11909 MACOSX_DEFAULT_ARCH="ppc" 11910 ;; 11911 *) 11912 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 11913 ;; 11914 esac 11915 else 11916 case `/usr/bin/arch` in 11917 i386) 11918 MACOSX_DEFAULT_ARCH="x86_64" 11919 ;; 11920 ppc) 11921 MACOSX_DEFAULT_ARCH="ppc64" 11922 ;; 11923 arm64) 11924 MACOSX_DEFAULT_ARCH="arm64" 11925 ;; 11926 *) 11927 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 11928 ;; 11929 esac 11930 11931 fi 11932 11933 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 11934 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 11935 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 11936esac 11937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 11938printf %s "checking for --enable-framework... " >&6; } 11939if test "$enable_framework" 11940then 11941 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 11942 # -F. is needed to allow linking to the framework while 11943 # in the build location. 11944 11945printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 11946 11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11948printf "%s\n" "yes" >&6; } 11949 if test $enable_shared = "yes" 11950 then 11951 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 11952 fi 11953else 11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11955printf "%s\n" "no" >&6; } 11956fi 11957 11958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 11959printf %s "checking for dyld... " >&6; } 11960case $ac_sys_system/$ac_sys_release in 11961 Darwin/*) 11962 11963printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h 11964 11965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 11966printf "%s\n" "always on for Darwin" >&6; } 11967 ;; 11968 *) 11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11970printf "%s\n" "no" >&6; } 11971 ;; 11972esac 11973 11974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 11975printf %s "checking for --with-address-sanitizer... " >&6; } 11976 11977# Check whether --with-address_sanitizer was given. 11978if test ${with_address_sanitizer+y} 11979then : 11980 withval=$with_address_sanitizer; 11981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 11982printf "%s\n" "$withval" >&6; } 11983BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 11984LDFLAGS="-fsanitize=address $LDFLAGS" 11985# ASan works by controlling memory allocation, our own malloc interferes. 11986with_pymalloc="no" 11987 11988else $as_nop 11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11990printf "%s\n" "no" >&6; } 11991fi 11992 11993 11994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 11995printf %s "checking for --with-memory-sanitizer... " >&6; } 11996 11997# Check whether --with-memory_sanitizer was given. 11998if test ${with_memory_sanitizer+y} 11999then : 12000 withval=$with_memory_sanitizer; 12001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12002printf "%s\n" "$withval" >&6; } 12003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5 12004printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; } 12005if test ${ax_cv_check_cflags___fsanitize_memory+y} 12006then : 12007 printf %s "(cached) " >&6 12008else $as_nop 12009 12010 ax_check_save_flags=$CFLAGS 12011 CFLAGS="$CFLAGS -fsanitize=memory" 12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12013/* end confdefs.h. */ 12014 12015int 12016main (void) 12017{ 12018 12019 ; 12020 return 0; 12021} 12022_ACEOF 12023if ac_fn_c_try_compile "$LINENO" 12024then : 12025 ax_cv_check_cflags___fsanitize_memory=yes 12026else $as_nop 12027 ax_cv_check_cflags___fsanitize_memory=no 12028fi 12029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12030 CFLAGS=$ax_check_save_flags 12031fi 12032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5 12033printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; } 12034if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes 12035then : 12036 12037BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" 12038LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" 12039 12040else $as_nop 12041 as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5 12042fi 12043 12044# MSan works by controlling memory allocation, our own malloc interferes. 12045with_pymalloc="no" 12046 12047else $as_nop 12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12049printf "%s\n" "no" >&6; } 12050fi 12051 12052 12053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 12054printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; } 12055 12056# Check whether --with-undefined_behavior_sanitizer was given. 12057if test ${with_undefined_behavior_sanitizer+y} 12058then : 12059 withval=$with_undefined_behavior_sanitizer; 12060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12061printf "%s\n" "$withval" >&6; } 12062BASECFLAGS="-fsanitize=undefined $BASECFLAGS" 12063LDFLAGS="-fsanitize=undefined $LDFLAGS" 12064with_ubsan="yes" 12065 12066else $as_nop 12067 12068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12069printf "%s\n" "no" >&6; } 12070with_ubsan="no" 12071 12072fi 12073 12074 12075# Set info about shared libraries. 12076 12077 12078 12079 12080 12081 12082 12083# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 12084# -- usually .so, .sl on HP-UX, .dll on Cygwin 12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 12086printf %s "checking the extension of shared libraries... " >&6; } 12087if test -z "$SHLIB_SUFFIX"; then 12088 case $ac_sys_system in 12089 hp*|HP*) 12090 case `uname -m` in 12091 ia64) SHLIB_SUFFIX=.so;; 12092 *) SHLIB_SUFFIX=.sl;; 12093 esac 12094 ;; 12095 CYGWIN*) SHLIB_SUFFIX=.dll;; 12096 *) SHLIB_SUFFIX=.so;; 12097 esac 12098fi 12099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 12100printf "%s\n" "$SHLIB_SUFFIX" >&6; } 12101 12102# LDSHARED is the ld *command* used to create shared library 12103# -- "cc -G" on SunOS 5.x. 12104# (Shared libraries in this instance are shared modules to be loaded into 12105# Python, as opposed to building Python itself as a shared library.) 12106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 12107printf %s "checking LDSHARED... " >&6; } 12108if test -z "$LDSHARED" 12109then 12110 case $ac_sys_system/$ac_sys_release in 12111 AIX*) 12112 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 12113 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 12114 ;; 12115 SunOS/5*) 12116 if test "$GCC" = "yes" ; then 12117 LDSHARED='$(CC) -shared' 12118 LDCXXSHARED='$(CXX) -shared' 12119 else 12120 LDSHARED='$(CC) -G' 12121 LDCXXSHARED='$(CXX) -G' 12122 fi ;; 12123 hp*|HP*) 12124 if test "$GCC" = "yes" ; then 12125 LDSHARED='$(CC) -shared' 12126 LDCXXSHARED='$(CXX) -shared' 12127 else 12128 LDSHARED='$(CC) -b' 12129 LDCXXSHARED='$(CXX) -b' 12130 fi ;; 12131 Darwin/1.3*) 12132 LDSHARED='$(CC) -bundle' 12133 LDCXXSHARED='$(CXX) -bundle' 12134 if test "$enable_framework" ; then 12135 # Link against the framework. All externals should be defined. 12136 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12137 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12138 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12139 else 12140 # No framework. Ignore undefined symbols, assuming they come from Python 12141 LDSHARED="$LDSHARED -undefined suppress" 12142 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 12143 fi ;; 12144 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 12145 LDSHARED='$(CC) -bundle' 12146 LDCXXSHARED='$(CXX) -bundle' 12147 if test "$enable_framework" ; then 12148 # Link against the framework. All externals should be defined. 12149 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12150 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12151 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12152 else 12153 # No framework, use the Python app as bundle-loader 12154 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 12155 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 12156 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 12157 fi ;; 12158 Darwin/*) 12159 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 12160 # This allows an extension to be used in any Python 12161 12162 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 12163 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 12164 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 12165 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 12166 if test ${dep_target_major} -eq 10 && \ 12167 test ${dep_target_minor} -le 2 12168 then 12169 # building for OS X 10.0 through 10.2 12170 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5 12171 else 12172 # building for OS X 10.3 and later 12173 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 12174 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 12175 BLDSHARED="$LDSHARED" 12176 fi 12177 ;; 12178 Emscripten|WASI) 12179 LDSHARED='$(CC) -shared' 12180 LDCXXSHARED='$(CXX) -shared';; 12181 Linux*|GNU*|QNX*|VxWorks*|Haiku*) 12182 LDSHARED='$(CC) -shared' 12183 LDCXXSHARED='$(CXX) -shared';; 12184 FreeBSD*) 12185 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 12186 then 12187 LDSHARED='$(CC) -shared' 12188 LDCXXSHARED='$(CXX) -shared' 12189 else 12190 LDSHARED="ld -Bshareable" 12191 fi;; 12192 OpenBSD*) 12193 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 12194 then 12195 LDSHARED='$(CC) -shared $(CCSHARED)' 12196 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 12197 else 12198 case `uname -r` in 12199 [01].* | 2.[0-7] | 2.[0-7].*) 12200 LDSHARED="ld -Bshareable ${LDFLAGS}" 12201 ;; 12202 *) 12203 LDSHARED='$(CC) -shared $(CCSHARED)' 12204 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 12205 ;; 12206 esac 12207 fi;; 12208 NetBSD*|DragonFly*) 12209 LDSHARED='$(CC) -shared' 12210 LDCXXSHARED='$(CXX) -shared';; 12211 OpenUNIX*|UnixWare*) 12212 if test "$GCC" = "yes" ; then 12213 LDSHARED='$(CC) -shared' 12214 LDCXXSHARED='$(CXX) -shared' 12215 else 12216 LDSHARED='$(CC) -G' 12217 LDCXXSHARED='$(CXX) -G' 12218 fi;; 12219 SCO_SV*) 12220 LDSHARED='$(CC) -Wl,-G,-Bexport' 12221 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 12222 WASI*) 12223 if test "x$enable_wasm_dynamic_linking" = xyes 12224then : 12225 12226 12227fi;; 12228 CYGWIN*) 12229 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 12230 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 12231 *) LDSHARED="ld";; 12232 esac 12233fi 12234 12235if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then 12236 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1' 12237fi 12238 12239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 12240printf "%s\n" "$LDSHARED" >&6; } 12241LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 12242 12243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5 12244printf %s "checking BLDSHARED flags... " >&6; } 12245BLDSHARED=${BLDSHARED-$LDSHARED} 12246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5 12247printf "%s\n" "$BLDSHARED" >&6; } 12248 12249# CCSHARED are the C *flags* used to create objects to go into a shared 12250# library (module) -- this is only needed for a few systems 12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 12252printf %s "checking CCSHARED... " >&6; } 12253if test -z "$CCSHARED" 12254then 12255 case $ac_sys_system/$ac_sys_release in 12256 SunOS*) if test "$GCC" = yes; 12257 then CCSHARED="-fPIC"; 12258 elif test `uname -p` = sparc; 12259 then CCSHARED="-xcode=pic32"; 12260 else CCSHARED="-Kpic"; 12261 fi;; 12262 hp*|HP*) if test "$GCC" = yes; 12263 then CCSHARED="-fPIC"; 12264 else CCSHARED="+z"; 12265 fi;; 12266 Linux-android*) ;; 12267 Linux*|GNU*) CCSHARED="-fPIC";; 12268 Emscripten*|WASI*) 12269 if test "x$enable_wasm_dynamic_linking" = xyes 12270then : 12271 12272 CCSHARED="-fPIC" 12273 12274fi;; 12275 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 12276 Haiku*) CCSHARED="-fPIC";; 12277 OpenUNIX*|UnixWare*) 12278 if test "$GCC" = "yes" 12279 then CCSHARED="-fPIC" 12280 else CCSHARED="-KPIC" 12281 fi;; 12282 SCO_SV*) 12283 if test "$GCC" = "yes" 12284 then CCSHARED="-fPIC" 12285 else CCSHARED="-Kpic -belf" 12286 fi;; 12287 VxWorks*) 12288 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" 12289 esac 12290fi 12291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 12292printf "%s\n" "$CCSHARED" >&6; } 12293# LINKFORSHARED are the flags passed to the $(CC) command that links 12294# the python executable -- this is only needed for a few systems 12295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 12296printf %s "checking LINKFORSHARED... " >&6; } 12297if test -z "$LINKFORSHARED" 12298then 12299 case $ac_sys_system/$ac_sys_release in 12300 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 12301 hp*|HP*) 12302 LINKFORSHARED="-Wl,-E -Wl,+s";; 12303# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 12304 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 12305 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 12306 # -u libsys_s pulls in all symbols in libsys 12307 Darwin/*) 12308 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 12309 12310 # Issue #18075: the default maximum stack size (8MBytes) is too 12311 # small for the default recursion limit. Increase the stack size 12312 # to ensure that tests don't crash 12313 stack_size="1000000" # 16 MB 12314 if test "$with_ubsan" = "yes" 12315 then 12316 # Undefined behavior sanitizer requires an even deeper stack 12317 stack_size="4000000" # 64 MB 12318 fi 12319 12320 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED" 12321 12322 12323printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h 12324 12325 12326 if test "$enable_framework" 12327 then 12328 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12329 fi 12330 LINKFORSHARED="$LINKFORSHARED";; 12331 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 12332 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 12333 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 12334 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 12335 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 12336 then 12337 LINKFORSHARED="-Wl,--export-dynamic" 12338 fi;; 12339 SunOS/5*) case $CC in 12340 *gcc*) 12341 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 12342 then 12343 LINKFORSHARED="-Xlinker --export-dynamic" 12344 fi;; 12345 esac;; 12346 CYGWIN*) 12347 if test $enable_shared = "no" 12348 then 12349 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 12350 fi;; 12351 QNX*) 12352 # -Wl,-E causes the symbols to be added to the dynamic 12353 # symbol table so that they can be found when a module 12354 # is loaded. -N 2048K causes the stack size to be set 12355 # to 2048 kilobytes so that the stack doesn't overflow 12356 # when running test_compile.py. 12357 LINKFORSHARED='-Wl,-E -N 2048K';; 12358 VxWorks*) 12359 LINKFORSHARED='-Wl,-export-dynamic';; 12360 esac 12361fi 12362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 12363printf "%s\n" "$LINKFORSHARED" >&6; } 12364 12365 12366 12367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 12368printf %s "checking CFLAGSFORSHARED... " >&6; } 12369if test ! "$LIBRARY" = "$LDLIBRARY" 12370then 12371 case $ac_sys_system in 12372 CYGWIN*) 12373 # Cygwin needs CCSHARED when building extension DLLs 12374 # but not when building the interpreter DLL. 12375 CFLAGSFORSHARED='';; 12376 *) 12377 CFLAGSFORSHARED='$(CCSHARED)' 12378 esac 12379fi 12380 12381if test "x$enable_wasm_dynamic_linking" = xyes 12382then : 12383 12384 CFLAGSFORSHARED='$(CCSHARED)' 12385 12386fi 12387 12388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 12389printf "%s\n" "$CFLAGSFORSHARED" >&6; } 12390 12391# SHLIBS are libraries (except -lc and -lm) to link to the python shared 12392# library (with --enable-shared). 12393# For platforms on which shared libraries are not allowed to have unresolved 12394# symbols, this must be set to $(LIBS) (expanded by make). We do this even 12395# if it is not required, since it creates a dependency of the shared library 12396# to LIBS. This, in turn, means that applications linking the shared libpython 12397# don't need to link LIBS explicitly. The default should be only changed 12398# on systems where this approach causes problems. 12399 12400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 12401printf %s "checking SHLIBS... " >&6; } 12402case "$ac_sys_system" in 12403 *) 12404 SHLIBS='$(LIBS)';; 12405esac 12406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 12407printf "%s\n" "$SHLIBS" >&6; } 12408 12409 12410# checks for libraries 12411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 12412printf %s "checking for sendfile in -lsendfile... " >&6; } 12413if test ${ac_cv_lib_sendfile_sendfile+y} 12414then : 12415 printf %s "(cached) " >&6 12416else $as_nop 12417 ac_check_lib_save_LIBS=$LIBS 12418LIBS="-lsendfile $LIBS" 12419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421 12422/* Override any GCC internal prototype to avoid an error. 12423 Use char because int might match the return type of a GCC 12424 builtin and then its argument prototype would still apply. */ 12425char sendfile (); 12426int 12427main (void) 12428{ 12429return sendfile (); 12430 ; 12431 return 0; 12432} 12433_ACEOF 12434if ac_fn_c_try_link "$LINENO" 12435then : 12436 ac_cv_lib_sendfile_sendfile=yes 12437else $as_nop 12438 ac_cv_lib_sendfile_sendfile=no 12439fi 12440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12441 conftest$ac_exeext conftest.$ac_ext 12442LIBS=$ac_check_lib_save_LIBS 12443fi 12444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 12445printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; } 12446if test "x$ac_cv_lib_sendfile_sendfile" = xyes 12447then : 12448 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h 12449 12450 LIBS="-lsendfile $LIBS" 12451 12452fi 12453 12454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12455printf %s "checking for dlopen in -ldl... " >&6; } 12456if test ${ac_cv_lib_dl_dlopen+y} 12457then : 12458 printf %s "(cached) " >&6 12459else $as_nop 12460 ac_check_lib_save_LIBS=$LIBS 12461LIBS="-ldl $LIBS" 12462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463/* end confdefs.h. */ 12464 12465/* Override any GCC internal prototype to avoid an error. 12466 Use char because int might match the return type of a GCC 12467 builtin and then its argument prototype would still apply. */ 12468char dlopen (); 12469int 12470main (void) 12471{ 12472return dlopen (); 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477if ac_fn_c_try_link "$LINENO" 12478then : 12479 ac_cv_lib_dl_dlopen=yes 12480else $as_nop 12481 ac_cv_lib_dl_dlopen=no 12482fi 12483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12484 conftest$ac_exeext conftest.$ac_ext 12485LIBS=$ac_check_lib_save_LIBS 12486fi 12487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12488printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12489if test "x$ac_cv_lib_dl_dlopen" = xyes 12490then : 12491 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 12492 12493 LIBS="-ldl $LIBS" 12494 12495fi 12496 # Dynamic linking for SunOS/Solaris and SYSV 12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12498printf %s "checking for shl_load in -ldld... " >&6; } 12499if test ${ac_cv_lib_dld_shl_load+y} 12500then : 12501 printf %s "(cached) " >&6 12502else $as_nop 12503 ac_check_lib_save_LIBS=$LIBS 12504LIBS="-ldld $LIBS" 12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507 12508/* Override any GCC internal prototype to avoid an error. 12509 Use char because int might match the return type of a GCC 12510 builtin and then its argument prototype would still apply. */ 12511char shl_load (); 12512int 12513main (void) 12514{ 12515return shl_load (); 12516 ; 12517 return 0; 12518} 12519_ACEOF 12520if ac_fn_c_try_link "$LINENO" 12521then : 12522 ac_cv_lib_dld_shl_load=yes 12523else $as_nop 12524 ac_cv_lib_dld_shl_load=no 12525fi 12526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12527 conftest$ac_exeext conftest.$ac_ext 12528LIBS=$ac_check_lib_save_LIBS 12529fi 12530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12531printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12532if test "x$ac_cv_lib_dld_shl_load" = xyes 12533then : 12534 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h 12535 12536 LIBS="-ldld $LIBS" 12537 12538fi 12539 # Dynamic linking for HP-UX 12540 12541 12542 12543 12544 12545have_uuid=missing 12546 12547 for ac_header in uuid.h 12548do : 12549 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" 12550if test "x$ac_cv_header_uuid_h" = xyes 12551then : 12552 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 12553 12554 12555 for ac_func in uuid_create uuid_enc_be 12556do : 12557 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 12558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12559if eval test \"x\$"$as_ac_var"\" = x"yes" 12560then : 12561 cat >>confdefs.h <<_ACEOF 12562#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 12563_ACEOF 12564 12565 have_uuid=yes 12566 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 12567 LIBUUID_LIBS=${LIBUUID_LIBS-""} 12568 12569fi 12570 12571done 12572 12573fi 12574 12575done 12576 12577if test "x$have_uuid" = xmissing 12578then : 12579 12580 12581pkg_failed=no 12582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5 12583printf %s "checking for LIBUUID... " >&6; } 12584 12585if test -n "$LIBUUID_CFLAGS"; then 12586 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 12587 elif test -n "$PKG_CONFIG"; then 12588 if test -n "$PKG_CONFIG" && \ 12589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5 12590 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5 12591 ac_status=$? 12592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12593 test $ac_status = 0; }; then 12594 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null` 12595 test "x$?" != "x0" && pkg_failed=yes 12596else 12597 pkg_failed=yes 12598fi 12599 else 12600 pkg_failed=untried 12601fi 12602if test -n "$LIBUUID_LIBS"; then 12603 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 12604 elif test -n "$PKG_CONFIG"; then 12605 if test -n "$PKG_CONFIG" && \ 12606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5 12607 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5 12608 ac_status=$? 12609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12610 test $ac_status = 0; }; then 12611 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null` 12612 test "x$?" != "x0" && pkg_failed=yes 12613else 12614 pkg_failed=yes 12615fi 12616 else 12617 pkg_failed=untried 12618fi 12619 12620 12621 12622if test $pkg_failed = yes; then 12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12624printf "%s\n" "no" >&6; } 12625 12626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12627 _pkg_short_errors_supported=yes 12628else 12629 _pkg_short_errors_supported=no 12630fi 12631 if test $_pkg_short_errors_supported = yes; then 12632 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1` 12633 else 12634 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1` 12635 fi 12636 # Put the nasty error message in config.log where it belongs 12637 echo "$LIBUUID_PKG_ERRORS" >&5 12638 12639 12640 save_CFLAGS=$CFLAGS 12641save_CPPFLAGS=$CPPFLAGS 12642save_LDFLAGS=$LDFLAGS 12643save_LIBS=$LIBS 12644 12645 12646 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS" 12647 LDFLAGS="$LDFLAGS $LIBUUID_LIBS" 12648 for ac_header in uuid/uuid.h 12649do : 12650 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 12651if test "x$ac_cv_header_uuid_uuid_h" = xyes 12652then : 12653 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 12654 12655 py_check_lib_save_LIBS=$LIBS 12656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5 12657printf %s "checking for uuid_generate_time in -luuid... " >&6; } 12658if test ${ac_cv_lib_uuid_uuid_generate_time+y} 12659then : 12660 printf %s "(cached) " >&6 12661else $as_nop 12662 ac_check_lib_save_LIBS=$LIBS 12663LIBS="-luuid $LIBS" 12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666 12667/* Override any GCC internal prototype to avoid an error. 12668 Use char because int might match the return type of a GCC 12669 builtin and then its argument prototype would still apply. */ 12670char uuid_generate_time (); 12671int 12672main (void) 12673{ 12674return uuid_generate_time (); 12675 ; 12676 return 0; 12677} 12678_ACEOF 12679if ac_fn_c_try_link "$LINENO" 12680then : 12681 ac_cv_lib_uuid_uuid_generate_time=yes 12682else $as_nop 12683 ac_cv_lib_uuid_uuid_generate_time=no 12684fi 12685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12686 conftest$ac_exeext conftest.$ac_ext 12687LIBS=$ac_check_lib_save_LIBS 12688fi 12689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5 12690printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; } 12691if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes 12692then : 12693 have_uuid=yes 12694fi 12695 12696LIBS=$py_check_lib_save_LIBS 12697 12698 py_check_lib_save_LIBS=$LIBS 12699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5 12700printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; } 12701if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y} 12702then : 12703 printf %s "(cached) " >&6 12704else $as_nop 12705 ac_check_lib_save_LIBS=$LIBS 12706LIBS="-luuid $LIBS" 12707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12708/* end confdefs.h. */ 12709 12710/* Override any GCC internal prototype to avoid an error. 12711 Use char because int might match the return type of a GCC 12712 builtin and then its argument prototype would still apply. */ 12713char uuid_generate_time_safe (); 12714int 12715main (void) 12716{ 12717return uuid_generate_time_safe (); 12718 ; 12719 return 0; 12720} 12721_ACEOF 12722if ac_fn_c_try_link "$LINENO" 12723then : 12724 ac_cv_lib_uuid_uuid_generate_time_safe=yes 12725else $as_nop 12726 ac_cv_lib_uuid_uuid_generate_time_safe=no 12727fi 12728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12729 conftest$ac_exeext conftest.$ac_ext 12730LIBS=$ac_check_lib_save_LIBS 12731fi 12732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5 12733printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; } 12734if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes 12735then : 12736 have_uuid=yes 12737 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 12738 12739 12740fi 12741 12742LIBS=$py_check_lib_save_LIBS 12743 12744 12745fi 12746 12747done 12748 if test "x$have_uuid" = xyes 12749then : 12750 12751 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 12752 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"} 12753 12754fi 12755 12756CFLAGS=$save_CFLAGS 12757CPPFLAGS=$save_CPPFLAGS 12758LDFLAGS=$save_LDFLAGS 12759LIBS=$save_LIBS 12760 12761 12762 12763 12764elif test $pkg_failed = untried; then 12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12766printf "%s\n" "no" >&6; } 12767 12768 save_CFLAGS=$CFLAGS 12769save_CPPFLAGS=$CPPFLAGS 12770save_LDFLAGS=$LDFLAGS 12771save_LIBS=$LIBS 12772 12773 12774 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS" 12775 LDFLAGS="$LDFLAGS $LIBUUID_LIBS" 12776 for ac_header in uuid/uuid.h 12777do : 12778 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 12779if test "x$ac_cv_header_uuid_uuid_h" = xyes 12780then : 12781 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 12782 12783 py_check_lib_save_LIBS=$LIBS 12784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5 12785printf %s "checking for uuid_generate_time in -luuid... " >&6; } 12786if test ${ac_cv_lib_uuid_uuid_generate_time+y} 12787then : 12788 printf %s "(cached) " >&6 12789else $as_nop 12790 ac_check_lib_save_LIBS=$LIBS 12791LIBS="-luuid $LIBS" 12792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12793/* end confdefs.h. */ 12794 12795/* Override any GCC internal prototype to avoid an error. 12796 Use char because int might match the return type of a GCC 12797 builtin and then its argument prototype would still apply. */ 12798char uuid_generate_time (); 12799int 12800main (void) 12801{ 12802return uuid_generate_time (); 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_c_try_link "$LINENO" 12808then : 12809 ac_cv_lib_uuid_uuid_generate_time=yes 12810else $as_nop 12811 ac_cv_lib_uuid_uuid_generate_time=no 12812fi 12813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12814 conftest$ac_exeext conftest.$ac_ext 12815LIBS=$ac_check_lib_save_LIBS 12816fi 12817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5 12818printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; } 12819if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes 12820then : 12821 have_uuid=yes 12822fi 12823 12824LIBS=$py_check_lib_save_LIBS 12825 12826 py_check_lib_save_LIBS=$LIBS 12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5 12828printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; } 12829if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y} 12830then : 12831 printf %s "(cached) " >&6 12832else $as_nop 12833 ac_check_lib_save_LIBS=$LIBS 12834LIBS="-luuid $LIBS" 12835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12836/* end confdefs.h. */ 12837 12838/* Override any GCC internal prototype to avoid an error. 12839 Use char because int might match the return type of a GCC 12840 builtin and then its argument prototype would still apply. */ 12841char uuid_generate_time_safe (); 12842int 12843main (void) 12844{ 12845return uuid_generate_time_safe (); 12846 ; 12847 return 0; 12848} 12849_ACEOF 12850if ac_fn_c_try_link "$LINENO" 12851then : 12852 ac_cv_lib_uuid_uuid_generate_time_safe=yes 12853else $as_nop 12854 ac_cv_lib_uuid_uuid_generate_time_safe=no 12855fi 12856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12857 conftest$ac_exeext conftest.$ac_ext 12858LIBS=$ac_check_lib_save_LIBS 12859fi 12860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5 12861printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; } 12862if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes 12863then : 12864 have_uuid=yes 12865 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 12866 12867 12868fi 12869 12870LIBS=$py_check_lib_save_LIBS 12871 12872 12873fi 12874 12875done 12876 if test "x$have_uuid" = xyes 12877then : 12878 12879 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 12880 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"} 12881 12882fi 12883 12884CFLAGS=$save_CFLAGS 12885CPPFLAGS=$save_CPPFLAGS 12886LDFLAGS=$save_LDFLAGS 12887LIBS=$save_LIBS 12888 12889 12890 12891 12892else 12893 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 12894 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12896printf "%s\n" "yes" >&6; } 12897 12898 have_uuid=yes 12899 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 12900 12901 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 12902 12903 12904fi 12905 12906fi 12907 12908if test "x$have_uuid" = xmissing 12909then : 12910 12911 for ac_header in uuid/uuid.h 12912do : 12913 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 12914if test "x$ac_cv_header_uuid_uuid_h" = xyes 12915then : 12916 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 12917 12918 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time" 12919if test "x$ac_cv_func_uuid_generate_time" = xyes 12920then : 12921 12922 have_uuid=yes 12923 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 12924 LIBUUID_LIBS=${LIBUUID_LIBS-""} 12925 12926fi 12927 12928 12929fi 12930 12931done 12932 12933fi 12934 12935if test "x$have_uuid" = xmissing 12936then : 12937 have_uuid=no 12938fi 12939 12940# 'Real Time' functions on Solaris 12941# posix4 on Solaris 2.6 12942# pthread (first!) on Linux 12943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 12944printf %s "checking for library containing sem_init... " >&6; } 12945if test ${ac_cv_search_sem_init+y} 12946then : 12947 printf %s "(cached) " >&6 12948else $as_nop 12949 ac_func_search_save_LIBS=$LIBS 12950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12951/* end confdefs.h. */ 12952 12953/* Override any GCC internal prototype to avoid an error. 12954 Use char because int might match the return type of a GCC 12955 builtin and then its argument prototype would still apply. */ 12956char sem_init (); 12957int 12958main (void) 12959{ 12960return sem_init (); 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965for ac_lib in '' pthread rt posix4 12966do 12967 if test -z "$ac_lib"; then 12968 ac_res="none required" 12969 else 12970 ac_res=-l$ac_lib 12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12972 fi 12973 if ac_fn_c_try_link "$LINENO" 12974then : 12975 ac_cv_search_sem_init=$ac_res 12976fi 12977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12978 conftest$ac_exeext 12979 if test ${ac_cv_search_sem_init+y} 12980then : 12981 break 12982fi 12983done 12984if test ${ac_cv_search_sem_init+y} 12985then : 12986 12987else $as_nop 12988 ac_cv_search_sem_init=no 12989fi 12990rm conftest.$ac_ext 12991LIBS=$ac_func_search_save_LIBS 12992fi 12993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 12994printf "%s\n" "$ac_cv_search_sem_init" >&6; } 12995ac_res=$ac_cv_search_sem_init 12996if test "$ac_res" != no 12997then : 12998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12999 13000fi 13001 13002 13003# check if we need libintl for locale functions 13004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 13005printf %s "checking for textdomain in -lintl... " >&6; } 13006if test ${ac_cv_lib_intl_textdomain+y} 13007then : 13008 printf %s "(cached) " >&6 13009else $as_nop 13010 ac_check_lib_save_LIBS=$LIBS 13011LIBS="-lintl $LIBS" 13012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13013/* end confdefs.h. */ 13014 13015/* Override any GCC internal prototype to avoid an error. 13016 Use char because int might match the return type of a GCC 13017 builtin and then its argument prototype would still apply. */ 13018char textdomain (); 13019int 13020main (void) 13021{ 13022return textdomain (); 13023 ; 13024 return 0; 13025} 13026_ACEOF 13027if ac_fn_c_try_link "$LINENO" 13028then : 13029 ac_cv_lib_intl_textdomain=yes 13030else $as_nop 13031 ac_cv_lib_intl_textdomain=no 13032fi 13033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13034 conftest$ac_exeext conftest.$ac_ext 13035LIBS=$ac_check_lib_save_LIBS 13036fi 13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 13038printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; } 13039if test "x$ac_cv_lib_intl_textdomain" = xyes 13040then : 13041 13042printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h 13043 13044 LIBS="-lintl $LIBS" 13045fi 13046 13047 13048# checks for system dependent C++ extensions support 13049case "$ac_sys_system" in 13050 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 13051printf %s "checking for genuine AIX C++ extensions support... " >&6; } 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054 13055 #include <load.h> 13056int 13057main (void) 13058{ 13059loadAndInit("", 0, "") 13060 ; 13061 return 0; 13062} 13063 13064_ACEOF 13065if ac_fn_c_try_link "$LINENO" 13066then : 13067 13068 13069printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 13070 13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13072printf "%s\n" "yes" >&6; } 13073 13074else $as_nop 13075 13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13077printf "%s\n" "no" >&6; } 13078 13079fi 13080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13081 conftest$ac_exeext conftest.$ac_ext 13082# BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag 13083# of the AIX system used to build/package Python executable. This tag serves 13084# as a baseline for bdist module packages 13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 13086printf %s "checking for the system builddate... " >&6; } 13087 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') 13088 13089printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h 13090 13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 13092printf "%s\n" "$AIX_BUILDDATE" >&6; } 13093 ;; 13094 *) ;; 13095esac 13096 13097# check for systems that require aligned memory access 13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 13099printf %s "checking aligned memory access is required... " >&6; } 13100if test ${ac_cv_aligned_required+y} 13101then : 13102 printf %s "(cached) " >&6 13103else $as_nop 13104 if test "$cross_compiling" = yes 13105then : 13106 ac_cv_aligned_required=yes 13107else $as_nop 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110 13111int main(void) 13112{ 13113 char s[16]; 13114 int i, *p1, *p2; 13115 for (i=0; i < 16; i++) 13116 s[i] = i; 13117 p1 = (int*)(s+1); 13118 p2 = (int*)(s+2); 13119 if (*p1 == *p2) 13120 return 1; 13121 return 0; 13122} 13123_ACEOF 13124if ac_fn_c_try_run "$LINENO" 13125then : 13126 ac_cv_aligned_required=no 13127else $as_nop 13128 ac_cv_aligned_required=yes 13129fi 13130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13131 conftest.$ac_objext conftest.beam conftest.$ac_ext 13132fi 13133 13134 13135fi 13136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 13137printf "%s\n" "$ac_cv_aligned_required" >&6; } 13138if test "$ac_cv_aligned_required" = yes ; then 13139 13140printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 13141 13142fi 13143 13144# str, bytes and memoryview hash algorithm 13145 13146 13147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 13148printf %s "checking for --with-hash-algorithm... " >&6; } 13149 13150# Check whether --with-hash_algorithm was given. 13151if test ${with_hash_algorithm+y} 13152then : 13153 withval=$with_hash_algorithm; 13154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 13155printf "%s\n" "$withval" >&6; } 13156case "$withval" in 13157 siphash13) 13158 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h 13159 13160 ;; 13161 siphash24) 13162 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h 13163 13164 ;; 13165 fnv) 13166 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h 13167 13168 ;; 13169 *) 13170 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 13171 ;; 13172esac 13173 13174else $as_nop 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 13176printf "%s\n" "default" >&6; } 13177fi 13178 13179 13180validate_tzpath() { 13181 # Checks that each element of the path is an absolute path 13182 if test -z "$1"; then 13183 # Empty string is allowed: it indicates no system TZPATH 13184 return 0 13185 fi 13186 13187 # Bad paths are those that don't start with / 13188 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then 13189 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 13190 return 1; 13191 fi 13192} 13193 13194TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" 13195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 13196printf %s "checking for --with-tzpath... " >&6; } 13197 13198# Check whether --with-tzpath was given. 13199if test ${with_tzpath+y} 13200then : 13201 withval=$with_tzpath; 13202case "$withval" in 13203 yes) 13204 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 13205 ;; 13206 *) 13207 validate_tzpath "$withval" 13208 TZPATH="$withval" 13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 13210printf "%s\n" "\"$withval\"" >&6; } 13211 ;; 13212esac 13213 13214else $as_nop 13215 validate_tzpath "$TZPATH" 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 13217printf "%s\n" "\"$TZPATH\"" >&6; } 13218fi 13219 13220 13221 13222# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 13223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 13224printf %s "checking for t_open in -lnsl... " >&6; } 13225if test ${ac_cv_lib_nsl_t_open+y} 13226then : 13227 printf %s "(cached) " >&6 13228else $as_nop 13229 ac_check_lib_save_LIBS=$LIBS 13230LIBS="-lnsl $LIBS" 13231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232/* end confdefs.h. */ 13233 13234/* Override any GCC internal prototype to avoid an error. 13235 Use char because int might match the return type of a GCC 13236 builtin and then its argument prototype would still apply. */ 13237char t_open (); 13238int 13239main (void) 13240{ 13241return t_open (); 13242 ; 13243 return 0; 13244} 13245_ACEOF 13246if ac_fn_c_try_link "$LINENO" 13247then : 13248 ac_cv_lib_nsl_t_open=yes 13249else $as_nop 13250 ac_cv_lib_nsl_t_open=no 13251fi 13252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13253 conftest$ac_exeext conftest.$ac_ext 13254LIBS=$ac_check_lib_save_LIBS 13255fi 13256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 13257printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; } 13258if test "x$ac_cv_lib_nsl_t_open" = xyes 13259then : 13260 LIBS="-lnsl $LIBS" 13261fi 13262 # SVR4 13263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 13264printf %s "checking for socket in -lsocket... " >&6; } 13265if test ${ac_cv_lib_socket_socket+y} 13266then : 13267 printf %s "(cached) " >&6 13268else $as_nop 13269 ac_check_lib_save_LIBS=$LIBS 13270LIBS="-lsocket $LIBS $LIBS" 13271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13272/* end confdefs.h. */ 13273 13274/* Override any GCC internal prototype to avoid an error. 13275 Use char because int might match the return type of a GCC 13276 builtin and then its argument prototype would still apply. */ 13277char socket (); 13278int 13279main (void) 13280{ 13281return socket (); 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286if ac_fn_c_try_link "$LINENO" 13287then : 13288 ac_cv_lib_socket_socket=yes 13289else $as_nop 13290 ac_cv_lib_socket_socket=no 13291fi 13292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13293 conftest$ac_exeext conftest.$ac_ext 13294LIBS=$ac_check_lib_save_LIBS 13295fi 13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 13297printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 13298if test "x$ac_cv_lib_socket_socket" = xyes 13299then : 13300 LIBS="-lsocket $LIBS" 13301fi 13302 # SVR4 sockets 13303 13304case $ac_sys_system/$ac_sys_release in 13305 Haiku*) 13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 13307printf %s "checking for socket in -lnetwork... " >&6; } 13308if test ${ac_cv_lib_network_socket+y} 13309then : 13310 printf %s "(cached) " >&6 13311else $as_nop 13312 ac_check_lib_save_LIBS=$LIBS 13313LIBS="-lnetwork $LIBS $LIBS" 13314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316 13317/* Override any GCC internal prototype to avoid an error. 13318 Use char because int might match the return type of a GCC 13319 builtin and then its argument prototype would still apply. */ 13320char socket (); 13321int 13322main (void) 13323{ 13324return socket (); 13325 ; 13326 return 0; 13327} 13328_ACEOF 13329if ac_fn_c_try_link "$LINENO" 13330then : 13331 ac_cv_lib_network_socket=yes 13332else $as_nop 13333 ac_cv_lib_network_socket=no 13334fi 13335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13336 conftest$ac_exeext conftest.$ac_ext 13337LIBS=$ac_check_lib_save_LIBS 13338fi 13339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 13340printf "%s\n" "$ac_cv_lib_network_socket" >&6; } 13341if test "x$ac_cv_lib_network_socket" = xyes 13342then : 13343 LIBS="-lnetwork $LIBS" 13344fi 13345 13346 ;; 13347esac 13348 13349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 13350printf %s "checking for --with-libs... " >&6; } 13351 13352# Check whether --with-libs was given. 13353if test ${with_libs+y} 13354then : 13355 withval=$with_libs; 13356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 13357printf "%s\n" "$withval" >&6; } 13358LIBS="$withval $LIBS" 13359 13360else $as_nop 13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13362printf "%s\n" "no" >&6; } 13363fi 13364 13365 13366# Check for use of the system expat library 13367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 13368printf %s "checking for --with-system-expat... " >&6; } 13369 13370# Check whether --with-system_expat was given. 13371if test ${with_system_expat+y} 13372then : 13373 withval=$with_system_expat; 13374else $as_nop 13375 with_system_expat="no" 13376fi 13377 13378 13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 13380printf "%s\n" "$with_system_expat" >&6; } 13381 13382if test "x$with_system_expat" = xyes 13383then : 13384 13385 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""} 13386 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"} 13387 LIBEXPAT_INTERNAL= 13388 13389else $as_nop 13390 13391 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat" 13392 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)" 13393 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)" 13394 13395fi 13396 13397 13398 13399 13400 13401# Check for use of the system libffi library 13402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 13403printf %s "checking for --with-system-ffi... " >&6; } 13404 13405# Check whether --with-system_ffi was given. 13406if test ${with_system_ffi+y} 13407then : 13408 withval=$with_system_ffi; 13409fi 13410 13411 13412if test "$ac_sys_system" = "Darwin" 13413then 13414 case "$with_system_ffi" in 13415 "") 13416 with_system_ffi="no" 13417 ;; 13418 yes|no) 13419 ;; 13420 *) 13421 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 13422 ;; 13423 esac 13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 13425printf "%s\n" "$with_system_ffi" >&6; } 13426else 13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13428printf "%s\n" "yes" >&6; } 13429 if test "$with_system_ffi" != "" 13430 then 13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 13432printf "%s\n" "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} 13433 fi 13434 with_system_ffi="yes" 13435fi 13436 13437if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 13438 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 13439else 13440 LIBFFI_INCLUDEDIR="" 13441fi 13442 13443 13444# Check for use of the system libmpdec library 13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 13446printf %s "checking for --with-system-libmpdec... " >&6; } 13447 13448# Check whether --with-system_libmpdec was given. 13449if test ${with_system_libmpdec+y} 13450then : 13451 withval=$with_system_libmpdec; 13452else $as_nop 13453 with_system_libmpdec="no" 13454fi 13455 13456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 13457printf "%s\n" "$with_system_libmpdec" >&6; } 13458 13459if test "x$with_system_libmpdec" = xyes 13460then : 13461 13462 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""} 13463 LIBMPDEC_LDFLAGS=${LIBMPDEC_LDFLAGS-"-lmpdec"} 13464 LIBMPDEC_INTERNAL= 13465 13466else $as_nop 13467 13468 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec" 13469 LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)" 13470 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)" 13471 13472 if test "x$with_pydebug" = xyes 13473then : 13474 13475 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE" 13476 13477fi 13478 13479fi 13480 13481 13482 13483 13484 13485# Check whether _decimal should use a coroutine-local or thread-local context 13486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 13487printf %s "checking for --with-decimal-contextvar... " >&6; } 13488 13489# Check whether --with-decimal_contextvar was given. 13490if test ${with_decimal_contextvar+y} 13491then : 13492 withval=$with_decimal_contextvar; 13493else $as_nop 13494 with_decimal_contextvar="yes" 13495fi 13496 13497 13498if test "$with_decimal_contextvar" != "no" 13499then 13500 13501printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h 13502 13503fi 13504 13505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 13506printf "%s\n" "$with_decimal_contextvar" >&6; } 13507 13508# Check for libmpdec machine flavor 13509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5 13510printf %s "checking for decimal libmpdec machine... " >&6; } 13511case $ac_sys_system in #( 13512 Darwin*) : 13513 libmpdec_system=Darwin ;; #( 13514 SunOS*) : 13515 libmpdec_system=sunos ;; #( 13516 *) : 13517 libmpdec_system=other 13518 ;; 13519esac 13520 13521libmpdec_machine=unknown 13522if test "$libmpdec_system" = Darwin; then 13523 # universal here means: build libmpdec with the same arch options 13524 # the python interpreter was built with 13525 libmpdec_machine=universal 13526elif test $ac_cv_sizeof_size_t -eq 8; then 13527 if test "$ac_cv_gcc_asm_for_x64" = yes; then 13528 libmpdec_machine=x64 13529 elif test "$ac_cv_type___uint128_t" = yes; then 13530 libmpdec_machine=uint128 13531 else 13532 libmpdec_machine=ansi64 13533 fi 13534elif test $ac_cv_sizeof_size_t -eq 4; then 13535 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then 13536 case $CC in #( 13537 *gcc*) : 13538 libmpdec_machine=ppro ;; #( 13539 *clang*) : 13540 libmpdec_machine=ppro ;; #( 13541 *) : 13542 libmpdec_machine=ansi32 13543 ;; 13544esac 13545 else 13546 libmpdec_machine=ansi32 13547 fi 13548fi 13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5 13550printf "%s\n" "$libmpdec_machine" >&6; } 13551 13552case $libmpdec_machine in #( 13553 x64) : 13554 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #( 13555 uint128) : 13556 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #( 13557 ansi64) : 13558 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #( 13559 ppro) : 13560 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #( 13561 ansi32) : 13562 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #( 13563 ansi-legacy) : 13564 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #( 13565 universal) : 13566 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #( 13567 *) : 13568 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5 13569 ;; 13570esac 13571 13572if test "$have_ipa_pure_const_bug" = yes; then 13573 # Some versions of gcc miscompile inline asm: 13574 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 13575 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 13576 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const" 13577fi 13578 13579if test "$have_glibc_memmove_bug" = yes; then 13580 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 13581 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 13582 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE" 13583fi 13584 13585 13586 13587pkg_failed=no 13588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNSL" >&5 13589printf %s "checking for LIBNSL... " >&6; } 13590 13591if test -n "$LIBNSL_CFLAGS"; then 13592 pkg_cv_LIBNSL_CFLAGS="$LIBNSL_CFLAGS" 13593 elif test -n "$PKG_CONFIG"; then 13594 if test -n "$PKG_CONFIG" && \ 13595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnsl\""; } >&5 13596 ($PKG_CONFIG --exists --print-errors "libnsl") 2>&5 13597 ac_status=$? 13598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13599 test $ac_status = 0; }; then 13600 pkg_cv_LIBNSL_CFLAGS=`$PKG_CONFIG --cflags "libnsl" 2>/dev/null` 13601 test "x$?" != "x0" && pkg_failed=yes 13602else 13603 pkg_failed=yes 13604fi 13605 else 13606 pkg_failed=untried 13607fi 13608if test -n "$LIBNSL_LIBS"; then 13609 pkg_cv_LIBNSL_LIBS="$LIBNSL_LIBS" 13610 elif test -n "$PKG_CONFIG"; then 13611 if test -n "$PKG_CONFIG" && \ 13612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnsl\""; } >&5 13613 ($PKG_CONFIG --exists --print-errors "libnsl") 2>&5 13614 ac_status=$? 13615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13616 test $ac_status = 0; }; then 13617 pkg_cv_LIBNSL_LIBS=`$PKG_CONFIG --libs "libnsl" 2>/dev/null` 13618 test "x$?" != "x0" && pkg_failed=yes 13619else 13620 pkg_failed=yes 13621fi 13622 else 13623 pkg_failed=untried 13624fi 13625 13626 13627 13628if test $pkg_failed = yes; then 13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13630printf "%s\n" "no" >&6; } 13631 13632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13633 _pkg_short_errors_supported=yes 13634else 13635 _pkg_short_errors_supported=no 13636fi 13637 if test $_pkg_short_errors_supported = yes; then 13638 LIBNSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnsl" 2>&1` 13639 else 13640 LIBNSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnsl" 2>&1` 13641 fi 13642 # Put the nasty error message in config.log where it belongs 13643 echo "$LIBNSL_PKG_ERRORS" >&5 13644 13645 13646 LIBNSL_CFLAGS=${LIBNSL_CFLAGS-""} 13647 save_CFLAGS=$CFLAGS 13648save_CPPFLAGS=$CPPFLAGS 13649save_LDFLAGS=$LDFLAGS 13650save_LIBS=$LIBS 13651 13652 13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5 13654printf %s "checking for library containing yp_match... " >&6; } 13655if test ${ac_cv_search_yp_match+y} 13656then : 13657 printf %s "(cached) " >&6 13658else $as_nop 13659 ac_func_search_save_LIBS=$LIBS 13660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662 13663/* Override any GCC internal prototype to avoid an error. 13664 Use char because int might match the return type of a GCC 13665 builtin and then its argument prototype would still apply. */ 13666char yp_match (); 13667int 13668main (void) 13669{ 13670return yp_match (); 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675for ac_lib in '' nsl 13676do 13677 if test -z "$ac_lib"; then 13678 ac_res="none required" 13679 else 13680 ac_res=-l$ac_lib 13681 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13682 fi 13683 if ac_fn_c_try_link "$LINENO" 13684then : 13685 ac_cv_search_yp_match=$ac_res 13686fi 13687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13688 conftest$ac_exeext 13689 if test ${ac_cv_search_yp_match+y} 13690then : 13691 break 13692fi 13693done 13694if test ${ac_cv_search_yp_match+y} 13695then : 13696 13697else $as_nop 13698 ac_cv_search_yp_match=no 13699fi 13700rm conftest.$ac_ext 13701LIBS=$ac_func_search_save_LIBS 13702fi 13703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_match" >&5 13704printf "%s\n" "$ac_cv_search_yp_match" >&6; } 13705ac_res=$ac_cv_search_yp_match 13706if test "$ac_res" != no 13707then : 13708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13709 have_nis=yes 13710else $as_nop 13711 have_nis=no 13712fi 13713 13714 13715CFLAGS=$save_CFLAGS 13716CPPFLAGS=$save_CPPFLAGS 13717LDFLAGS=$save_LDFLAGS 13718LIBS=$save_LIBS 13719 13720 13721 case $ac_cv_search_yp_match in #( 13722 no) : 13723 libnsl="" ;; #( 13724 "none required") : 13725 libnsl="" ;; #( 13726 *) : 13727 libnsl="$ac_cv_search_yp_match" 13728 ;; 13729esac 13730 LIBNSL_LIBS=${LIBNSL_LIBS-$libnsl} 13731 13732elif test $pkg_failed = untried; then 13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13734printf "%s\n" "no" >&6; } 13735 13736 LIBNSL_CFLAGS=${LIBNSL_CFLAGS-""} 13737 save_CFLAGS=$CFLAGS 13738save_CPPFLAGS=$CPPFLAGS 13739save_LDFLAGS=$LDFLAGS 13740save_LIBS=$LIBS 13741 13742 13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yp_match" >&5 13744printf %s "checking for library containing yp_match... " >&6; } 13745if test ${ac_cv_search_yp_match+y} 13746then : 13747 printf %s "(cached) " >&6 13748else $as_nop 13749 ac_func_search_save_LIBS=$LIBS 13750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751/* end confdefs.h. */ 13752 13753/* Override any GCC internal prototype to avoid an error. 13754 Use char because int might match the return type of a GCC 13755 builtin and then its argument prototype would still apply. */ 13756char yp_match (); 13757int 13758main (void) 13759{ 13760return yp_match (); 13761 ; 13762 return 0; 13763} 13764_ACEOF 13765for ac_lib in '' nsl 13766do 13767 if test -z "$ac_lib"; then 13768 ac_res="none required" 13769 else 13770 ac_res=-l$ac_lib 13771 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13772 fi 13773 if ac_fn_c_try_link "$LINENO" 13774then : 13775 ac_cv_search_yp_match=$ac_res 13776fi 13777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13778 conftest$ac_exeext 13779 if test ${ac_cv_search_yp_match+y} 13780then : 13781 break 13782fi 13783done 13784if test ${ac_cv_search_yp_match+y} 13785then : 13786 13787else $as_nop 13788 ac_cv_search_yp_match=no 13789fi 13790rm conftest.$ac_ext 13791LIBS=$ac_func_search_save_LIBS 13792fi 13793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_match" >&5 13794printf "%s\n" "$ac_cv_search_yp_match" >&6; } 13795ac_res=$ac_cv_search_yp_match 13796if test "$ac_res" != no 13797then : 13798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13799 have_nis=yes 13800else $as_nop 13801 have_nis=no 13802fi 13803 13804 13805CFLAGS=$save_CFLAGS 13806CPPFLAGS=$save_CPPFLAGS 13807LDFLAGS=$save_LDFLAGS 13808LIBS=$save_LIBS 13809 13810 13811 case $ac_cv_search_yp_match in #( 13812 no) : 13813 libnsl="" ;; #( 13814 "none required") : 13815 libnsl="" ;; #( 13816 *) : 13817 libnsl="$ac_cv_search_yp_match" 13818 ;; 13819esac 13820 LIBNSL_LIBS=${LIBNSL_LIBS-$libnsl} 13821 13822else 13823 LIBNSL_CFLAGS=$pkg_cv_LIBNSL_CFLAGS 13824 LIBNSL_LIBS=$pkg_cv_LIBNSL_LIBS 13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13826printf "%s\n" "yes" >&6; } 13827 have_nis=yes 13828fi 13829 13830if test "x$have_nis" = xyes 13831then : 13832 13833 save_CFLAGS=$CFLAGS 13834save_CPPFLAGS=$CPPFLAGS 13835save_LDFLAGS=$LDFLAGS 13836save_LIBS=$LIBS 13837 13838 13839 CPPFLAGS="$CPPFLAGS $LIBNSL_CFLAGS" 13840 ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default" 13841if test "x$ac_cv_header_rpc_rpc_h" = xyes 13842then : 13843 printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h 13844 13845fi 13846 13847 13848CFLAGS=$save_CFLAGS 13849CPPFLAGS=$save_CPPFLAGS 13850LDFLAGS=$save_LDFLAGS 13851LIBS=$save_LIBS 13852 13853 13854 13855fi 13856 13857case $ac_sys_system in #( 13858 NetBSD*) : 13859 OSSAUDIODEV_LIBS="-lossaudio" ;; #( 13860 *) : 13861 OSSAUDIODEV_LIBS="" 13862 ;; 13863esac 13864 13865 13866 13867 13868 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS" 13869then : 13870 13871 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3" 13872 LIBSQLITE3_LIBS="-sUSE_SQLITE3" 13873 13874fi 13875 13876 13877 13878 13879 13880pkg_failed=no 13881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBSQLITE3" >&5 13882printf %s "checking for LIBSQLITE3... " >&6; } 13883 13884if test -n "$LIBSQLITE3_CFLAGS"; then 13885 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS" 13886 elif test -n "$PKG_CONFIG"; then 13887 if test -n "$PKG_CONFIG" && \ 13888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.15\""; } >&5 13889 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.15") 2>&5 13890 ac_status=$? 13891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13892 test $ac_status = 0; }; then 13893 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.7.15" 2>/dev/null` 13894 test "x$?" != "x0" && pkg_failed=yes 13895else 13896 pkg_failed=yes 13897fi 13898 else 13899 pkg_failed=untried 13900fi 13901if test -n "$LIBSQLITE3_LIBS"; then 13902 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS" 13903 elif test -n "$PKG_CONFIG"; then 13904 if test -n "$PKG_CONFIG" && \ 13905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.15\""; } >&5 13906 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.15") 2>&5 13907 ac_status=$? 13908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13909 test $ac_status = 0; }; then 13910 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.7.15" 2>/dev/null` 13911 test "x$?" != "x0" && pkg_failed=yes 13912else 13913 pkg_failed=yes 13914fi 13915 else 13916 pkg_failed=untried 13917fi 13918 13919 13920 13921if test $pkg_failed = yes; then 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13923printf "%s\n" "no" >&6; } 13924 13925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13926 _pkg_short_errors_supported=yes 13927else 13928 _pkg_short_errors_supported=no 13929fi 13930 if test $_pkg_short_errors_supported = yes; then 13931 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.7.15" 2>&1` 13932 else 13933 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.7.15" 2>&1` 13934 fi 13935 # Put the nasty error message in config.log where it belongs 13936 echo "$LIBSQLITE3_PKG_ERRORS" >&5 13937 13938 13939 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""} 13940 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"} 13941 13942 13943elif test $pkg_failed = untried; then 13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945printf "%s\n" "no" >&6; } 13946 13947 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""} 13948 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"} 13949 13950 13951else 13952 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS 13953 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS 13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13955printf "%s\n" "yes" >&6; } 13956 13957fi 13958as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite' 13959 13960 13961 13962save_CFLAGS=$CFLAGS 13963save_CPPFLAGS=$CPPFLAGS 13964save_LDFLAGS=$LDFLAGS 13965save_LIBS=$LIBS 13966 13967 13968 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS" 13969 LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS" 13970 13971 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 13972if test "x$ac_cv_header_sqlite3_h" = xyes 13973then : 13974 13975 have_sqlite3=yes 13976 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979 13980 13981 #include <sqlite3.h> 13982 #if SQLITE_VERSION_NUMBER < 3007015 13983 # error "SQLite 3.7.15 or higher required" 13984 #endif 13985 13986int 13987main (void) 13988{ 13989 13990 ; 13991 return 0; 13992} 13993 13994_ACEOF 13995if ac_fn_c_try_compile "$LINENO" 13996then : 13997 13998 have_supported_sqlite3=yes 13999 14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5 14001printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; } 14002if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y} 14003then : 14004 printf %s "(cached) " >&6 14005else $as_nop 14006 ac_check_lib_save_LIBS=$LIBS 14007LIBS="-lsqlite3 $LIBS" 14008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009/* end confdefs.h. */ 14010 14011/* Override any GCC internal prototype to avoid an error. 14012 Use char because int might match the return type of a GCC 14013 builtin and then its argument prototype would still apply. */ 14014char sqlite3_bind_double (); 14015int 14016main (void) 14017{ 14018return sqlite3_bind_double (); 14019 ; 14020 return 0; 14021} 14022_ACEOF 14023if ac_fn_c_try_link "$LINENO" 14024then : 14025 ac_cv_lib_sqlite3_sqlite3_bind_double=yes 14026else $as_nop 14027 ac_cv_lib_sqlite3_sqlite3_bind_double=no 14028fi 14029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14030 conftest$ac_exeext conftest.$ac_ext 14031LIBS=$ac_check_lib_save_LIBS 14032fi 14033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5 14034printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; } 14035if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes 14036then : 14037 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14038 14039 LIBS="-lsqlite3 $LIBS" 14040 14041else $as_nop 14042 14043 have_supported_sqlite3=no 14044 14045fi 14046 14047 14048 14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5 14050printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; } 14051if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y} 14052then : 14053 printf %s "(cached) " >&6 14054else $as_nop 14055 ac_check_lib_save_LIBS=$LIBS 14056LIBS="-lsqlite3 $LIBS" 14057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058/* end confdefs.h. */ 14059 14060/* Override any GCC internal prototype to avoid an error. 14061 Use char because int might match the return type of a GCC 14062 builtin and then its argument prototype would still apply. */ 14063char sqlite3_column_decltype (); 14064int 14065main (void) 14066{ 14067return sqlite3_column_decltype (); 14068 ; 14069 return 0; 14070} 14071_ACEOF 14072if ac_fn_c_try_link "$LINENO" 14073then : 14074 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes 14075else $as_nop 14076 ac_cv_lib_sqlite3_sqlite3_column_decltype=no 14077fi 14078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14079 conftest$ac_exeext conftest.$ac_ext 14080LIBS=$ac_check_lib_save_LIBS 14081fi 14082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5 14083printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; } 14084if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes 14085then : 14086 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14087 14088 LIBS="-lsqlite3 $LIBS" 14089 14090else $as_nop 14091 14092 have_supported_sqlite3=no 14093 14094fi 14095 14096 14097 14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5 14099printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; } 14100if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y} 14101then : 14102 printf %s "(cached) " >&6 14103else $as_nop 14104 ac_check_lib_save_LIBS=$LIBS 14105LIBS="-lsqlite3 $LIBS" 14106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14107/* end confdefs.h. */ 14108 14109/* Override any GCC internal prototype to avoid an error. 14110 Use char because int might match the return type of a GCC 14111 builtin and then its argument prototype would still apply. */ 14112char sqlite3_column_double (); 14113int 14114main (void) 14115{ 14116return sqlite3_column_double (); 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121if ac_fn_c_try_link "$LINENO" 14122then : 14123 ac_cv_lib_sqlite3_sqlite3_column_double=yes 14124else $as_nop 14125 ac_cv_lib_sqlite3_sqlite3_column_double=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14128 conftest$ac_exeext conftest.$ac_ext 14129LIBS=$ac_check_lib_save_LIBS 14130fi 14131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5 14132printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; } 14133if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes 14134then : 14135 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14136 14137 LIBS="-lsqlite3 $LIBS" 14138 14139else $as_nop 14140 14141 have_supported_sqlite3=no 14142 14143fi 14144 14145 14146 14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5 14148printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; } 14149if test ${ac_cv_lib_sqlite3_sqlite3_complete+y} 14150then : 14151 printf %s "(cached) " >&6 14152else $as_nop 14153 ac_check_lib_save_LIBS=$LIBS 14154LIBS="-lsqlite3 $LIBS" 14155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157 14158/* Override any GCC internal prototype to avoid an error. 14159 Use char because int might match the return type of a GCC 14160 builtin and then its argument prototype would still apply. */ 14161char sqlite3_complete (); 14162int 14163main (void) 14164{ 14165return sqlite3_complete (); 14166 ; 14167 return 0; 14168} 14169_ACEOF 14170if ac_fn_c_try_link "$LINENO" 14171then : 14172 ac_cv_lib_sqlite3_sqlite3_complete=yes 14173else $as_nop 14174 ac_cv_lib_sqlite3_sqlite3_complete=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14177 conftest$ac_exeext conftest.$ac_ext 14178LIBS=$ac_check_lib_save_LIBS 14179fi 14180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5 14181printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; } 14182if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes 14183then : 14184 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14185 14186 LIBS="-lsqlite3 $LIBS" 14187 14188else $as_nop 14189 14190 have_supported_sqlite3=no 14191 14192fi 14193 14194 14195 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_enable_shared_cache in -lsqlite3" >&5 14197printf %s "checking for sqlite3_enable_shared_cache in -lsqlite3... " >&6; } 14198if test ${ac_cv_lib_sqlite3_sqlite3_enable_shared_cache+y} 14199then : 14200 printf %s "(cached) " >&6 14201else $as_nop 14202 ac_check_lib_save_LIBS=$LIBS 14203LIBS="-lsqlite3 $LIBS" 14204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14205/* end confdefs.h. */ 14206 14207/* Override any GCC internal prototype to avoid an error. 14208 Use char because int might match the return type of a GCC 14209 builtin and then its argument prototype would still apply. */ 14210char sqlite3_enable_shared_cache (); 14211int 14212main (void) 14213{ 14214return sqlite3_enable_shared_cache (); 14215 ; 14216 return 0; 14217} 14218_ACEOF 14219if ac_fn_c_try_link "$LINENO" 14220then : 14221 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=yes 14222else $as_nop 14223 ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14226 conftest$ac_exeext conftest.$ac_ext 14227LIBS=$ac_check_lib_save_LIBS 14228fi 14229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&5 14230printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&6; } 14231if test "x$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" = xyes 14232then : 14233 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14234 14235 LIBS="-lsqlite3 $LIBS" 14236 14237else $as_nop 14238 14239 have_supported_sqlite3=no 14240 14241fi 14242 14243 14244 14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5 14246printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; } 14247if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y} 14248then : 14249 printf %s "(cached) " >&6 14250else $as_nop 14251 ac_check_lib_save_LIBS=$LIBS 14252LIBS="-lsqlite3 $LIBS" 14253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254/* end confdefs.h. */ 14255 14256/* Override any GCC internal prototype to avoid an error. 14257 Use char because int might match the return type of a GCC 14258 builtin and then its argument prototype would still apply. */ 14259char sqlite3_progress_handler (); 14260int 14261main (void) 14262{ 14263return sqlite3_progress_handler (); 14264 ; 14265 return 0; 14266} 14267_ACEOF 14268if ac_fn_c_try_link "$LINENO" 14269then : 14270 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes 14271else $as_nop 14272 ac_cv_lib_sqlite3_sqlite3_progress_handler=no 14273fi 14274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14275 conftest$ac_exeext conftest.$ac_ext 14276LIBS=$ac_check_lib_save_LIBS 14277fi 14278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5 14279printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; } 14280if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes 14281then : 14282 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14283 14284 LIBS="-lsqlite3 $LIBS" 14285 14286else $as_nop 14287 14288 have_supported_sqlite3=no 14289 14290fi 14291 14292 14293 14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5 14295printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; } 14296if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y} 14297then : 14298 printf %s "(cached) " >&6 14299else $as_nop 14300 ac_check_lib_save_LIBS=$LIBS 14301LIBS="-lsqlite3 $LIBS" 14302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14303/* end confdefs.h. */ 14304 14305/* Override any GCC internal prototype to avoid an error. 14306 Use char because int might match the return type of a GCC 14307 builtin and then its argument prototype would still apply. */ 14308char sqlite3_result_double (); 14309int 14310main (void) 14311{ 14312return sqlite3_result_double (); 14313 ; 14314 return 0; 14315} 14316_ACEOF 14317if ac_fn_c_try_link "$LINENO" 14318then : 14319 ac_cv_lib_sqlite3_sqlite3_result_double=yes 14320else $as_nop 14321 ac_cv_lib_sqlite3_sqlite3_result_double=no 14322fi 14323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14324 conftest$ac_exeext conftest.$ac_ext 14325LIBS=$ac_check_lib_save_LIBS 14326fi 14327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5 14328printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; } 14329if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes 14330then : 14331 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14332 14333 LIBS="-lsqlite3 $LIBS" 14334 14335else $as_nop 14336 14337 have_supported_sqlite3=no 14338 14339fi 14340 14341 14342 14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5 14344printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; } 14345if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y} 14346then : 14347 printf %s "(cached) " >&6 14348else $as_nop 14349 ac_check_lib_save_LIBS=$LIBS 14350LIBS="-lsqlite3 $LIBS" 14351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353 14354/* Override any GCC internal prototype to avoid an error. 14355 Use char because int might match the return type of a GCC 14356 builtin and then its argument prototype would still apply. */ 14357char sqlite3_set_authorizer (); 14358int 14359main (void) 14360{ 14361return sqlite3_set_authorizer (); 14362 ; 14363 return 0; 14364} 14365_ACEOF 14366if ac_fn_c_try_link "$LINENO" 14367then : 14368 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes 14369else $as_nop 14370 ac_cv_lib_sqlite3_sqlite3_set_authorizer=no 14371fi 14372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14373 conftest$ac_exeext conftest.$ac_ext 14374LIBS=$ac_check_lib_save_LIBS 14375fi 14376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5 14377printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; } 14378if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes 14379then : 14380 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14381 14382 LIBS="-lsqlite3 $LIBS" 14383 14384else $as_nop 14385 14386 have_supported_sqlite3=no 14387 14388fi 14389 14390 14391 14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5 14393printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; } 14394if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y} 14395then : 14396 printf %s "(cached) " >&6 14397else $as_nop 14398 ac_check_lib_save_LIBS=$LIBS 14399LIBS="-lsqlite3 $LIBS" 14400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401/* end confdefs.h. */ 14402 14403/* Override any GCC internal prototype to avoid an error. 14404 Use char because int might match the return type of a GCC 14405 builtin and then its argument prototype would still apply. */ 14406char sqlite3_trace_v2 (); 14407int 14408main (void) 14409{ 14410return sqlite3_trace_v2 (); 14411 ; 14412 return 0; 14413} 14414_ACEOF 14415if ac_fn_c_try_link "$LINENO" 14416then : 14417 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes 14418else $as_nop 14419 ac_cv_lib_sqlite3_sqlite3_trace_v2=no 14420fi 14421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14422 conftest$ac_exeext conftest.$ac_ext 14423LIBS=$ac_check_lib_save_LIBS 14424fi 14425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5 14426printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; } 14427if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes 14428then : 14429 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14430 14431 LIBS="-lsqlite3 $LIBS" 14432 14433else $as_nop 14434 14435 14436 14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5 14438printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; } 14439if test ${ac_cv_lib_sqlite3_sqlite3_trace+y} 14440then : 14441 printf %s "(cached) " >&6 14442else $as_nop 14443 ac_check_lib_save_LIBS=$LIBS 14444LIBS="-lsqlite3 $LIBS" 14445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447 14448/* Override any GCC internal prototype to avoid an error. 14449 Use char because int might match the return type of a GCC 14450 builtin and then its argument prototype would still apply. */ 14451char sqlite3_trace (); 14452int 14453main (void) 14454{ 14455return sqlite3_trace (); 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460if ac_fn_c_try_link "$LINENO" 14461then : 14462 ac_cv_lib_sqlite3_sqlite3_trace=yes 14463else $as_nop 14464 ac_cv_lib_sqlite3_sqlite3_trace=no 14465fi 14466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14467 conftest$ac_exeext conftest.$ac_ext 14468LIBS=$ac_check_lib_save_LIBS 14469fi 14470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5 14471printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; } 14472if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes 14473then : 14474 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14475 14476 LIBS="-lsqlite3 $LIBS" 14477 14478else $as_nop 14479 14480 have_supported_sqlite3=no 14481 14482fi 14483 14484 14485 14486 14487fi 14488 14489 14490 14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5 14492printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; } 14493if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y} 14494then : 14495 printf %s "(cached) " >&6 14496else $as_nop 14497 ac_check_lib_save_LIBS=$LIBS 14498LIBS="-lsqlite3 $LIBS" 14499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500/* end confdefs.h. */ 14501 14502/* Override any GCC internal prototype to avoid an error. 14503 Use char because int might match the return type of a GCC 14504 builtin and then its argument prototype would still apply. */ 14505char sqlite3_value_double (); 14506int 14507main (void) 14508{ 14509return sqlite3_value_double (); 14510 ; 14511 return 0; 14512} 14513_ACEOF 14514if ac_fn_c_try_link "$LINENO" 14515then : 14516 ac_cv_lib_sqlite3_sqlite3_value_double=yes 14517else $as_nop 14518 ac_cv_lib_sqlite3_sqlite3_value_double=no 14519fi 14520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14521 conftest$ac_exeext conftest.$ac_ext 14522LIBS=$ac_check_lib_save_LIBS 14523fi 14524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5 14525printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; } 14526if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes 14527then : 14528 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 14529 14530 LIBS="-lsqlite3 $LIBS" 14531 14532else $as_nop 14533 14534 have_supported_sqlite3=no 14535 14536fi 14537 14538 14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 14540printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; } 14541if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y} 14542then : 14543 printf %s "(cached) " >&6 14544else $as_nop 14545 ac_check_lib_save_LIBS=$LIBS 14546LIBS="-lsqlite3 $LIBS" 14547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549 14550/* Override any GCC internal prototype to avoid an error. 14551 Use char because int might match the return type of a GCC 14552 builtin and then its argument prototype would still apply. */ 14553char sqlite3_load_extension (); 14554int 14555main (void) 14556{ 14557return sqlite3_load_extension (); 14558 ; 14559 return 0; 14560} 14561_ACEOF 14562if ac_fn_c_try_link "$LINENO" 14563then : 14564 ac_cv_lib_sqlite3_sqlite3_load_extension=yes 14565else $as_nop 14566 ac_cv_lib_sqlite3_sqlite3_load_extension=no 14567fi 14568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14569 conftest$ac_exeext conftest.$ac_ext 14570LIBS=$ac_check_lib_save_LIBS 14571fi 14572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 14573printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } 14574if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes 14575then : 14576 have_sqlite3_load_extension=yes 14577else $as_nop 14578 have_sqlite3_load_extension=no 14579 14580fi 14581 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5 14583printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; } 14584if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y} 14585then : 14586 printf %s "(cached) " >&6 14587else $as_nop 14588 ac_check_lib_save_LIBS=$LIBS 14589LIBS="-lsqlite3 $LIBS" 14590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14591/* end confdefs.h. */ 14592 14593/* Override any GCC internal prototype to avoid an error. 14594 Use char because int might match the return type of a GCC 14595 builtin and then its argument prototype would still apply. */ 14596char sqlite3_serialize (); 14597int 14598main (void) 14599{ 14600return sqlite3_serialize (); 14601 ; 14602 return 0; 14603} 14604_ACEOF 14605if ac_fn_c_try_link "$LINENO" 14606then : 14607 ac_cv_lib_sqlite3_sqlite3_serialize=yes 14608else $as_nop 14609 ac_cv_lib_sqlite3_sqlite3_serialize=no 14610fi 14611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14612 conftest$ac_exeext conftest.$ac_ext 14613LIBS=$ac_check_lib_save_LIBS 14614fi 14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5 14616printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; } 14617if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes 14618then : 14619 14620 14621printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h 14622 14623 14624fi 14625 14626 14627else $as_nop 14628 14629 have_supported_sqlite3=no 14630 14631fi 14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14633 14634fi 14635 14636 14637CFLAGS=$save_CFLAGS 14638CPPFLAGS=$save_CPPFLAGS 14639LDFLAGS=$save_LDFLAGS 14640LIBS=$save_LIBS 14641 14642 14643 14644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 14645printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; } 14646# Check whether --enable-loadable-sqlite-extensions was given. 14647if test ${enable_loadable_sqlite_extensions+y} 14648then : 14649 enableval=$enable_loadable_sqlite_extensions; 14650 if test "x$have_sqlite3_load_extension" = xno 14651then : 14652 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5 14654printf "%s\n" "n/a" >&6; } 14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5 14656printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;} 14657 14658else $as_nop 14659 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14661printf "%s\n" "yes" >&6; } 14662 14663printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h 14664 14665 14666fi 14667 14668else $as_nop 14669 14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14671printf "%s\n" "no" >&6; } 14672 14673 14674fi 14675 14676 14677found_tcltk=no 14678for _QUERY in \ 14679 "tcl >= 8.5.12 tk >= 8.5.12" \ 14680 "tcl8.6 tk8.6" \ 14681 "tcl86 tk86" \ 14682 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \ 14683 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \ 14684; do 14685 if test -n "$PKG_CONFIG" && \ 14686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 14687 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 14688 ac_status=$? 14689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14690 test $ac_status = 0; }; then 14691 14692 14693pkg_failed=no 14694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCLTK" >&5 14695printf %s "checking for TCLTK... " >&6; } 14696 14697if test -n "$TCLTK_CFLAGS"; then 14698 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS" 14699 elif test -n "$PKG_CONFIG"; then 14700 if test -n "$PKG_CONFIG" && \ 14701 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 14702 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 14703 ac_status=$? 14704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14705 test $ac_status = 0; }; then 14706 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null` 14707 test "x$?" != "x0" && pkg_failed=yes 14708else 14709 pkg_failed=yes 14710fi 14711 else 14712 pkg_failed=untried 14713fi 14714if test -n "$TCLTK_LIBS"; then 14715 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS" 14716 elif test -n "$PKG_CONFIG"; then 14717 if test -n "$PKG_CONFIG" && \ 14718 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 14719 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 14720 ac_status=$? 14721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14722 test $ac_status = 0; }; then 14723 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null` 14724 test "x$?" != "x0" && pkg_failed=yes 14725else 14726 pkg_failed=yes 14727fi 14728 else 14729 pkg_failed=untried 14730fi 14731 14732 14733 14734if test $pkg_failed = yes; then 14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14736printf "%s\n" "no" >&6; } 14737 14738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14739 _pkg_short_errors_supported=yes 14740else 14741 _pkg_short_errors_supported=no 14742fi 14743 if test $_pkg_short_errors_supported = yes; then 14744 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1` 14745 else 14746 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1` 14747 fi 14748 # Put the nasty error message in config.log where it belongs 14749 echo "$TCLTK_PKG_ERRORS" >&5 14750 14751 found_tcltk=no 14752elif test $pkg_failed = untried; then 14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14754printf "%s\n" "no" >&6; } 14755 found_tcltk=no 14756else 14757 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS 14758 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS 14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14760printf "%s\n" "yes" >&6; } 14761 found_tcltk=yes 14762fi 14763 14764fi 14765 if test "x$found_tcltk" = xyes 14766then : 14767 break 14768fi 14769done 14770 14771if test "x$found_tcltk" = xno 14772then : 14773 14774 TCLTK_CFLAGS=${TCLTK_CFLAGS-""} 14775 TCLTK_LIBS=${TCLTK_LIBS-""} 14776 14777fi 14778 14779case $ac_sys_system in #( 14780 FreeBSD*) : 14781 14782 if test -n "$PKG_CONFIG" && \ 14783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 14784 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 14785 ac_status=$? 14786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14787 test $ac_status = 0; }; then 14788 14789 14790pkg_failed=no 14791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 14792printf %s "checking for X11... " >&6; } 14793 14794if test -n "$X11_CFLAGS"; then 14795 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 14796 elif test -n "$PKG_CONFIG"; then 14797 if test -n "$PKG_CONFIG" && \ 14798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 14799 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 14800 ac_status=$? 14801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14802 test $ac_status = 0; }; then 14803 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 14804 test "x$?" != "x0" && pkg_failed=yes 14805else 14806 pkg_failed=yes 14807fi 14808 else 14809 pkg_failed=untried 14810fi 14811if test -n "$X11_LIBS"; then 14812 pkg_cv_X11_LIBS="$X11_LIBS" 14813 elif test -n "$PKG_CONFIG"; then 14814 if test -n "$PKG_CONFIG" && \ 14815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 14816 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 14817 ac_status=$? 14818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14819 test $ac_status = 0; }; then 14820 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 14821 test "x$?" != "x0" && pkg_failed=yes 14822else 14823 pkg_failed=yes 14824fi 14825 else 14826 pkg_failed=untried 14827fi 14828 14829 14830 14831if test $pkg_failed = yes; then 14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14833printf "%s\n" "no" >&6; } 14834 14835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14836 _pkg_short_errors_supported=yes 14837else 14838 _pkg_short_errors_supported=no 14839fi 14840 if test $_pkg_short_errors_supported = yes; then 14841 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 14842 else 14843 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 14844 fi 14845 # Put the nasty error message in config.log where it belongs 14846 echo "$X11_PKG_ERRORS" >&5 14847 14848 as_fn_error $? "Package requirements (x11) were not met: 14849 14850$X11_PKG_ERRORS 14851 14852Consider adjusting the PKG_CONFIG_PATH environment variable if you 14853installed software in a non-standard prefix. 14854 14855Alternatively, you may set the environment variables X11_CFLAGS 14856and X11_LIBS to avoid the need to call pkg-config. 14857See the pkg-config man page for more details." "$LINENO" 5 14858elif test $pkg_failed = untried; then 14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14860printf "%s\n" "no" >&6; } 14861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14862printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14863as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14864is in your PATH or set the PKG_CONFIG environment variable to the full 14865path to pkg-config. 14866 14867Alternatively, you may set the environment variables X11_CFLAGS 14868and X11_LIBS to avoid the need to call pkg-config. 14869See the pkg-config man page for more details. 14870 14871To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14872See \`config.log' for more details" "$LINENO" 5; } 14873else 14874 X11_CFLAGS=$pkg_cv_X11_CFLAGS 14875 X11_LIBS=$pkg_cv_X11_LIBS 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14877printf "%s\n" "yes" >&6; } 14878 14879 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS" 14880 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS" 14881 14882fi 14883 14884fi 14885 14886 ;; #( 14887 *) : 14888 ;; 14889esac 14890 14891save_CFLAGS=$CFLAGS 14892save_CPPFLAGS=$CPPFLAGS 14893save_LDFLAGS=$LDFLAGS 14894save_LIBS=$LIBS 14895 14896 14897 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS" 14898 LIBS="$TCLTK_LIBS $LDFLAGS" 14899 14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14901/* end confdefs.h. */ 14902 14903 14904 #include <tcl.h> 14905 #include <tk.h> 14906 #if defined(TK_HEX_VERSION) 14907 # if TK_HEX_VERSION < 0x0805020c 14908 # error "Tk older than 8.5.12 not supported" 14909 # endif 14910 #endif 14911 #if (TCL_MAJOR_VERSION < 8) || \ 14912 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \ 14913 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12)) 14914 # error "Tcl older than 8.5.12 not supported" 14915 #endif 14916 #if (TK_MAJOR_VERSION < 8) || \ 14917 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \ 14918 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12)) 14919 # error "Tk older than 8.5.12 not supported" 14920 #endif 14921 14922int 14923main (void) 14924{ 14925 14926 void *x1 = Tcl_Init; 14927 void *x2 = Tk_Init; 14928 14929 ; 14930 return 0; 14931} 14932 14933_ACEOF 14934if ac_fn_c_try_link "$LINENO" 14935then : 14936 14937 have_tcltk=yes 14938 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1" 14939 14940else $as_nop 14941 14942 have_tcltk=no 14943 14944fi 14945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14946 conftest$ac_exeext conftest.$ac_ext 14947 14948CFLAGS=$save_CFLAGS 14949CPPFLAGS=$save_CPPFLAGS 14950LDFLAGS=$save_LDFLAGS 14951LIBS=$save_LIBS 14952 14953 14954 14955 14956 14957save_CFLAGS=$CFLAGS 14958save_CPPFLAGS=$CPPFLAGS 14959save_LDFLAGS=$LDFLAGS 14960save_LIBS=$LIBS 14961 14962 14963 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS" 14964 LDFLAGS="$GDBM_LIBS $LDFLAGS" 14965 for ac_header in gdbm.h 14966do : 14967 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 14968if test "x$ac_cv_header_gdbm_h" = xyes 14969then : 14970 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h 14971 14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 14973printf %s "checking for gdbm_open in -lgdbm... " >&6; } 14974if test ${ac_cv_lib_gdbm_gdbm_open+y} 14975then : 14976 printf %s "(cached) " >&6 14977else $as_nop 14978 ac_check_lib_save_LIBS=$LIBS 14979LIBS="-lgdbm $LIBS" 14980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14981/* end confdefs.h. */ 14982 14983/* Override any GCC internal prototype to avoid an error. 14984 Use char because int might match the return type of a GCC 14985 builtin and then its argument prototype would still apply. */ 14986char gdbm_open (); 14987int 14988main (void) 14989{ 14990return gdbm_open (); 14991 ; 14992 return 0; 14993} 14994_ACEOF 14995if ac_fn_c_try_link "$LINENO" 14996then : 14997 ac_cv_lib_gdbm_gdbm_open=yes 14998else $as_nop 14999 ac_cv_lib_gdbm_gdbm_open=no 15000fi 15001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15002 conftest$ac_exeext conftest.$ac_ext 15003LIBS=$ac_check_lib_save_LIBS 15004fi 15005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 15006printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; } 15007if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes 15008then : 15009 15010 have_gdbm=yes 15011 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"} 15012 15013else $as_nop 15014 have_gdbm=no 15015fi 15016 15017 15018else $as_nop 15019 have_gdbm=no 15020fi 15021 15022done 15023 15024CFLAGS=$save_CFLAGS 15025CPPFLAGS=$save_CPPFLAGS 15026LDFLAGS=$save_LDFLAGS 15027LIBS=$save_LIBS 15028 15029 15030 15031# check for _dbmmodule.c dependencies 15032 for ac_header in ndbm.h 15033do : 15034 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 15035if test "x$ac_cv_header_ndbm_h" = xyes 15036then : 15037 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h 15038 15039 LIBS_SAVE="$LIBS" 15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5 15041printf %s "checking for dbm_open in -lndbm... " >&6; } 15042if test ${ac_cv_lib_ndbm_dbm_open+y} 15043then : 15044 printf %s "(cached) " >&6 15045else $as_nop 15046 ac_check_lib_save_LIBS=$LIBS 15047LIBS="-lndbm $LIBS" 15048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15049/* end confdefs.h. */ 15050 15051/* Override any GCC internal prototype to avoid an error. 15052 Use char because int might match the return type of a GCC 15053 builtin and then its argument prototype would still apply. */ 15054char dbm_open (); 15055int 15056main (void) 15057{ 15058return dbm_open (); 15059 ; 15060 return 0; 15061} 15062_ACEOF 15063if ac_fn_c_try_link "$LINENO" 15064then : 15065 ac_cv_lib_ndbm_dbm_open=yes 15066else $as_nop 15067 ac_cv_lib_ndbm_dbm_open=no 15068fi 15069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15070 conftest$ac_exeext conftest.$ac_ext 15071LIBS=$ac_check_lib_save_LIBS 15072fi 15073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5 15074printf "%s\n" "$ac_cv_lib_ndbm_dbm_open" >&6; } 15075if test "x$ac_cv_lib_ndbm_dbm_open" = xyes 15076then : 15077 printf "%s\n" "#define HAVE_LIBNDBM 1" >>confdefs.h 15078 15079 LIBS="-lndbm $LIBS" 15080 15081fi 15082 15083 LIBS="$LIBS_SAVE" 15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5 15085printf %s "checking for dbm_open in -lgdbm_compat... " >&6; } 15086if test ${ac_cv_lib_gdbm_compat_dbm_open+y} 15087then : 15088 printf %s "(cached) " >&6 15089else $as_nop 15090 ac_check_lib_save_LIBS=$LIBS 15091LIBS="-lgdbm_compat $LIBS" 15092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098char dbm_open (); 15099int 15100main (void) 15101{ 15102return dbm_open (); 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_link "$LINENO" 15108then : 15109 ac_cv_lib_gdbm_compat_dbm_open=yes 15110else $as_nop 15111 ac_cv_lib_gdbm_compat_dbm_open=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15114 conftest$ac_exeext conftest.$ac_ext 15115LIBS=$ac_check_lib_save_LIBS 15116fi 15117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5 15118printf "%s\n" "$ac_cv_lib_gdbm_compat_dbm_open" >&6; } 15119if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes 15120then : 15121 printf "%s\n" "#define HAVE_LIBGDBM_COMPAT 1" >>confdefs.h 15122 15123 LIBS="-lgdbm_compat $LIBS" 15124 15125fi 15126 15127 LIBS="$LIBS_SAVE" 15128 15129fi 15130 15131done 15132 15133# "gdbm-ndbm.h" and "gdbm/ndbm.h" are both normalized to "gdbm_ndbm_h" 15134# unset ac_cv_header_gdbm_ndbm_h to prevent false positive cache hits. 15135{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 15136if test ${ac_cv_header_gdbm_slash_ndbm_h+y} 15137then : 15138 printf %s "(cached) " >&6 15139else $as_nop 15140 15141 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 15142if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 15143then : 15144 ac_cv_header_gdbm_slash_ndbm_h=yes 15145else $as_nop 15146 ac_cv_header_gdbm_slash_ndbm_h=no 15147 15148fi 15149 15150 15151fi 15152 15153if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes 15154then : 15155 15156 15157printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h 15158 15159 15160fi 15161 15162{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 15163if test ${ac_cv_header_gdbm_dash_ndbm_h+y} 15164then : 15165 printf %s "(cached) " >&6 15166else $as_nop 15167 15168 ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 15169if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 15170then : 15171 ac_cv_header_gdbm_dash_ndbm_h=yes 15172else $as_nop 15173 ac_cv_header_gdbm_dash_ndbm_h=no 15174 15175fi 15176 15177 15178fi 15179 15180if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes 15181then : 15182 15183 15184printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h 15185 15186 15187fi 15188{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 15189 15190if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then 15191 LIBS_SAVE="$LIBS" 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5 15193printf %s "checking for dbm_open in -lgdbm_compat... " >&6; } 15194if test ${ac_cv_lib_gdbm_compat_dbm_open+y} 15195then : 15196 printf %s "(cached) " >&6 15197else $as_nop 15198 ac_check_lib_save_LIBS=$LIBS 15199LIBS="-lgdbm_compat $LIBS" 15200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15201/* end confdefs.h. */ 15202 15203/* Override any GCC internal prototype to avoid an error. 15204 Use char because int might match the return type of a GCC 15205 builtin and then its argument prototype would still apply. */ 15206char dbm_open (); 15207int 15208main (void) 15209{ 15210return dbm_open (); 15211 ; 15212 return 0; 15213} 15214_ACEOF 15215if ac_fn_c_try_link "$LINENO" 15216then : 15217 ac_cv_lib_gdbm_compat_dbm_open=yes 15218else $as_nop 15219 ac_cv_lib_gdbm_compat_dbm_open=no 15220fi 15221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15222 conftest$ac_exeext conftest.$ac_ext 15223LIBS=$ac_check_lib_save_LIBS 15224fi 15225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5 15226printf "%s\n" "$ac_cv_lib_gdbm_compat_dbm_open" >&6; } 15227if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes 15228then : 15229 printf "%s\n" "#define HAVE_LIBGDBM_COMPAT 1" >>confdefs.h 15230 15231 LIBS="-lgdbm_compat $LIBS" 15232 15233fi 15234 15235 LIBS="$LIBS_SAVE" 15236fi 15237 15238# Check for libdb >= 5 with dbm_open() 15239# db.h re-defines the name of the function 15240 for ac_header in db.h 15241do : 15242 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 15243if test "x$ac_cv_header_db_h" = xyes 15244then : 15245 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h 15246 15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5 15248printf %s "checking for libdb... " >&6; } 15249if test ${ac_cv_have_libdb+y} 15250then : 15251 printf %s "(cached) " >&6 15252else $as_nop 15253 15254 LIBS_SAVE="$LIBS" 15255 LIBS="$LIBS -ldb" 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257/* end confdefs.h. */ 15258 15259 #define DB_DBM_HSEARCH 1 15260 #include <db.h> 15261 #if DB_VERSION_MAJOR < 5 15262 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported." 15263 #endif 15264 15265int 15266main (void) 15267{ 15268DBM *dbm = dbm_open(NULL, 0, 0) 15269 ; 15270 return 0; 15271} 15272 15273_ACEOF 15274if ac_fn_c_try_link "$LINENO" 15275then : 15276 ac_cv_have_libdb=yes 15277else $as_nop 15278 ac_cv_have_libdb=no 15279fi 15280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15281 conftest$ac_exeext conftest.$ac_ext 15282 LIBS="$LIBS_SAVE" 15283 15284fi 15285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5 15286printf "%s\n" "$ac_cv_have_libdb" >&6; } 15287 if test "x$ac_cv_have_libdb" = xyes 15288then : 15289 15290 15291printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h 15292 15293 15294fi 15295 15296fi 15297 15298done 15299 15300# Check for --with-dbmliborder 15301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 15302printf %s "checking for --with-dbmliborder... " >&6; } 15303 15304# Check whether --with-dbmliborder was given. 15305if test ${with_dbmliborder+y} 15306then : 15307 withval=$with_dbmliborder; 15308else $as_nop 15309 with_dbmliborder=gdbm:ndbm:bdb 15310fi 15311 15312 15313have_gdbm_dbmliborder=no 15314as_save_IFS=$IFS 15315IFS=: 15316for db in $with_dbmliborder; do 15317 case $db in #( 15318 ndbm) : 15319 ;; #( 15320 gdbm) : 15321 have_gdbm_dbmliborder=yes ;; #( 15322 bdb) : 15323 ;; #( 15324 *) : 15325 with_dbmliborder=error 15326 ;; 15327esac 15328done 15329IFS=$as_save_IFS 15330if test "x$with_dbmliborder" = xerror 15331then : 15332 15333 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5 15334 15335fi 15336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 15337printf "%s\n" "$with_dbmliborder" >&6; } 15338 15339# Templates for things AC_DEFINEd more than once. 15340# For a single AC_DEFINE, no template is needed. 15341 15342 15343if test "$ac_cv_pthread_is_default" = yes 15344then 15345 # Defining _REENTRANT on system with POSIX threads should not hurt. 15346 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h 15347 15348 posix_threads=yes 15349 if test "$ac_sys_system" = "SunOS"; then 15350 CFLAGS="$CFLAGS -D_REENTRANT" 15351 fi 15352elif test "$ac_cv_kpthread" = "yes" 15353then 15354 CC="$CC -Kpthread" 15355 if test "$ac_cv_cxx_thread" = "yes"; then 15356 CXX="$CXX -Kpthread" 15357 fi 15358 posix_threads=yes 15359elif test "$ac_cv_kthread" = "yes" 15360then 15361 CC="$CC -Kthread" 15362 if test "$ac_cv_cxx_thread" = "yes"; then 15363 CXX="$CXX -Kthread" 15364 fi 15365 posix_threads=yes 15366elif test "$ac_cv_pthread" = "yes" 15367then 15368 CC="$CC -pthread" 15369 if test "$ac_cv_cxx_thread" = "yes"; then 15370 CXX="$CXX -pthread" 15371 fi 15372 posix_threads=yes 15373else 15374 if test ! -z "$withval" -a -d "$withval" 15375 then LDFLAGS="$LDFLAGS -L$withval" 15376 fi 15377 15378 # According to the POSIX spec, a pthreads implementation must 15379 # define _POSIX_THREADS in unistd.h. Some apparently don't 15380 # (e.g. gnu pth with pthread emulation) 15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 15382printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; } 15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15384/* end confdefs.h. */ 15385 15386#include <unistd.h> 15387#ifdef _POSIX_THREADS 15388yes 15389#endif 15390 15391_ACEOF 15392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15393 $EGREP "yes" >/dev/null 2>&1 15394then : 15395 unistd_defines_pthreads=yes 15396else $as_nop 15397 unistd_defines_pthreads=no 15398fi 15399rm -rf conftest* 15400 15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 15402printf "%s\n" "$unistd_defines_pthreads" >&6; } 15403 15404 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h 15405 15406 # Just looking for pthread_create in libpthread is not enough: 15407 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 15408 # So we really have to include pthread.h, and then link. 15409 _libs=$LIBS 15410 LIBS="$LIBS -lpthread" 15411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 15412printf %s "checking for pthread_create in -lpthread... " >&6; } 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415 15416#include <stdio.h> 15417#include <stdlib.h> 15418#include <pthread.h> 15419 15420void * start_routine (void *arg) { exit (0); } 15421int 15422main (void) 15423{ 15424 15425pthread_create (NULL, NULL, start_routine, NULL) 15426 ; 15427 return 0; 15428} 15429_ACEOF 15430if ac_fn_c_try_link "$LINENO" 15431then : 15432 15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15434printf "%s\n" "yes" >&6; } 15435 posix_threads=yes 15436 15437else $as_nop 15438 15439 LIBS=$_libs 15440 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 15441if test "x$ac_cv_func_pthread_detach" = xyes 15442then : 15443 15444 posix_threads=yes 15445 15446else $as_nop 15447 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 15449printf %s "checking for pthread_create in -lpthreads... " >&6; } 15450if test ${ac_cv_lib_pthreads_pthread_create+y} 15451then : 15452 printf %s "(cached) " >&6 15453else $as_nop 15454 ac_check_lib_save_LIBS=$LIBS 15455LIBS="-lpthreads $LIBS" 15456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458 15459/* Override any GCC internal prototype to avoid an error. 15460 Use char because int might match the return type of a GCC 15461 builtin and then its argument prototype would still apply. */ 15462char pthread_create (); 15463int 15464main (void) 15465{ 15466return pthread_create (); 15467 ; 15468 return 0; 15469} 15470_ACEOF 15471if ac_fn_c_try_link "$LINENO" 15472then : 15473 ac_cv_lib_pthreads_pthread_create=yes 15474else $as_nop 15475 ac_cv_lib_pthreads_pthread_create=no 15476fi 15477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15478 conftest$ac_exeext conftest.$ac_ext 15479LIBS=$ac_check_lib_save_LIBS 15480fi 15481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 15482printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; } 15483if test "x$ac_cv_lib_pthreads_pthread_create" = xyes 15484then : 15485 15486 posix_threads=yes 15487 LIBS="$LIBS -lpthreads" 15488 15489else $as_nop 15490 15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 15492printf %s "checking for pthread_create in -lc_r... " >&6; } 15493if test ${ac_cv_lib_c_r_pthread_create+y} 15494then : 15495 printf %s "(cached) " >&6 15496else $as_nop 15497 ac_check_lib_save_LIBS=$LIBS 15498LIBS="-lc_r $LIBS" 15499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15500/* end confdefs.h. */ 15501 15502/* Override any GCC internal prototype to avoid an error. 15503 Use char because int might match the return type of a GCC 15504 builtin and then its argument prototype would still apply. */ 15505char pthread_create (); 15506int 15507main (void) 15508{ 15509return pthread_create (); 15510 ; 15511 return 0; 15512} 15513_ACEOF 15514if ac_fn_c_try_link "$LINENO" 15515then : 15516 ac_cv_lib_c_r_pthread_create=yes 15517else $as_nop 15518 ac_cv_lib_c_r_pthread_create=no 15519fi 15520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15521 conftest$ac_exeext conftest.$ac_ext 15522LIBS=$ac_check_lib_save_LIBS 15523fi 15524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 15525printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; } 15526if test "x$ac_cv_lib_c_r_pthread_create" = xyes 15527then : 15528 15529 posix_threads=yes 15530 LIBS="$LIBS -lc_r" 15531 15532else $as_nop 15533 15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 15535printf %s "checking for __pthread_create_system in -lpthread... " >&6; } 15536if test ${ac_cv_lib_pthread___pthread_create_system+y} 15537then : 15538 printf %s "(cached) " >&6 15539else $as_nop 15540 ac_check_lib_save_LIBS=$LIBS 15541LIBS="-lpthread $LIBS" 15542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15543/* end confdefs.h. */ 15544 15545/* Override any GCC internal prototype to avoid an error. 15546 Use char because int might match the return type of a GCC 15547 builtin and then its argument prototype would still apply. */ 15548char __pthread_create_system (); 15549int 15550main (void) 15551{ 15552return __pthread_create_system (); 15553 ; 15554 return 0; 15555} 15556_ACEOF 15557if ac_fn_c_try_link "$LINENO" 15558then : 15559 ac_cv_lib_pthread___pthread_create_system=yes 15560else $as_nop 15561 ac_cv_lib_pthread___pthread_create_system=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15564 conftest$ac_exeext conftest.$ac_ext 15565LIBS=$ac_check_lib_save_LIBS 15566fi 15567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 15568printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; } 15569if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes 15570then : 15571 15572 posix_threads=yes 15573 LIBS="$LIBS -lpthread" 15574 15575else $as_nop 15576 15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 15578printf %s "checking for pthread_create in -lcma... " >&6; } 15579if test ${ac_cv_lib_cma_pthread_create+y} 15580then : 15581 printf %s "(cached) " >&6 15582else $as_nop 15583 ac_check_lib_save_LIBS=$LIBS 15584LIBS="-lcma $LIBS" 15585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587 15588/* Override any GCC internal prototype to avoid an error. 15589 Use char because int might match the return type of a GCC 15590 builtin and then its argument prototype would still apply. */ 15591char pthread_create (); 15592int 15593main (void) 15594{ 15595return pthread_create (); 15596 ; 15597 return 0; 15598} 15599_ACEOF 15600if ac_fn_c_try_link "$LINENO" 15601then : 15602 ac_cv_lib_cma_pthread_create=yes 15603else $as_nop 15604 ac_cv_lib_cma_pthread_create=no 15605fi 15606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15607 conftest$ac_exeext conftest.$ac_ext 15608LIBS=$ac_check_lib_save_LIBS 15609fi 15610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 15611printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; } 15612if test "x$ac_cv_lib_cma_pthread_create" = xyes 15613then : 15614 15615 posix_threads=yes 15616 LIBS="$LIBS -lcma" 15617 15618else $as_nop 15619 15620 case $ac_sys_system in #( 15621 WASI) : 15622 posix_threads=stub ;; #( 15623 *) : 15624 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 15625 ;; 15626esac 15627 15628fi 15629 15630fi 15631 15632fi 15633 15634fi 15635 15636fi 15637 15638fi 15639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15640 conftest$ac_exeext conftest.$ac_ext 15641 15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 15643printf %s "checking for usconfig in -lmpc... " >&6; } 15644if test ${ac_cv_lib_mpc_usconfig+y} 15645then : 15646 printf %s "(cached) " >&6 15647else $as_nop 15648 ac_check_lib_save_LIBS=$LIBS 15649LIBS="-lmpc $LIBS" 15650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15651/* end confdefs.h. */ 15652 15653/* Override any GCC internal prototype to avoid an error. 15654 Use char because int might match the return type of a GCC 15655 builtin and then its argument prototype would still apply. */ 15656char usconfig (); 15657int 15658main (void) 15659{ 15660return usconfig (); 15661 ; 15662 return 0; 15663} 15664_ACEOF 15665if ac_fn_c_try_link "$LINENO" 15666then : 15667 ac_cv_lib_mpc_usconfig=yes 15668else $as_nop 15669 ac_cv_lib_mpc_usconfig=no 15670fi 15671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15672 conftest$ac_exeext conftest.$ac_ext 15673LIBS=$ac_check_lib_save_LIBS 15674fi 15675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 15676printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; } 15677if test "x$ac_cv_lib_mpc_usconfig" = xyes 15678then : 15679 15680 LIBS="$LIBS -lmpc" 15681 15682fi 15683 15684 15685fi 15686 15687if test "$posix_threads" = "yes"; then 15688 if test "$unistd_defines_pthreads" = "no"; then 15689 15690printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h 15691 15692 fi 15693 15694 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 15695 case $ac_sys_system/$ac_sys_release in 15696 SunOS/5.6) 15697printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 15698 15699 ;; 15700 SunOS/5.8) 15701printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15702 15703 ;; 15704 AIX/*) 15705printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15706 15707 ;; 15708 NetBSD/*) 15709printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15710 15711 ;; 15712 esac 15713 15714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 15715printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 15716if test ${ac_cv_pthread_system_supported+y} 15717then : 15718 printf %s "(cached) " >&6 15719else $as_nop 15720 if test "$cross_compiling" = yes 15721then : 15722 ac_cv_pthread_system_supported=no 15723else $as_nop 15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15725/* end confdefs.h. */ 15726 15727 #include <stdio.h> 15728 #include <pthread.h> 15729 void *foo(void *parm) { 15730 return NULL; 15731 } 15732 int main(void) { 15733 pthread_attr_t attr; 15734 pthread_t id; 15735 if (pthread_attr_init(&attr)) return (-1); 15736 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); 15737 if (pthread_create(&id, &attr, foo, NULL)) return (-1); 15738 return (0); 15739 } 15740_ACEOF 15741if ac_fn_c_try_run "$LINENO" 15742then : 15743 ac_cv_pthread_system_supported=yes 15744else $as_nop 15745 ac_cv_pthread_system_supported=no 15746fi 15747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15748 conftest.$ac_objext conftest.beam conftest.$ac_ext 15749fi 15750 15751 15752fi 15753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 15754printf "%s\n" "$ac_cv_pthread_system_supported" >&6; } 15755 if test "$ac_cv_pthread_system_supported" = "yes"; then 15756 15757printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 15758 15759 fi 15760 15761 for ac_func in pthread_sigmask 15762do : 15763 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 15764if test "x$ac_cv_func_pthread_sigmask" = xyes 15765then : 15766 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 15767 case $ac_sys_system in 15768 CYGWIN*) 15769 15770printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 15771 15772 ;; 15773 esac 15774fi 15775 15776done 15777 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" 15778if test "x$ac_cv_func_pthread_getcpuclockid" = xyes 15779then : 15780 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h 15781 15782fi 15783 15784fi 15785 15786if test "x$posix_threads" = xstub 15787then : 15788 15789 15790printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h 15791 15792 15793fi 15794 15795# Check for enable-ipv6 15796 15797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 15798printf %s "checking if --enable-ipv6 is specified... " >&6; } 15799# Check whether --enable-ipv6 was given. 15800if test ${enable_ipv6+y} 15801then : 15802 enableval=$enable_ipv6; case "$enableval" in 15803 no) 15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15805printf "%s\n" "no" >&6; } 15806 ipv6=no 15807 ;; 15808 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15809printf "%s\n" "yes" >&6; } 15810 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h 15811 15812 ipv6=yes 15813 ;; 15814 esac 15815else $as_nop 15816 15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819 /* AF_INET6 available check */ 15820#include <sys/types.h> 15821#include <sys/socket.h> 15822int 15823main (void) 15824{ 15825int domain = AF_INET6; 15826 ; 15827 return 0; 15828} 15829_ACEOF 15830if ac_fn_c_try_compile "$LINENO" 15831then : 15832 15833 ipv6=yes 15834 15835else $as_nop 15836 15837 ipv6=no 15838 15839fi 15840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15841 15842case $ac_sys_system in #( 15843 WASI) : 15844 ipv6=no 15845 ;; #( 15846 *) : 15847 ;; 15848esac 15849 15850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5 15851printf "%s\n" "$ipv6" >&6; } 15852 15853if test "$ipv6" = "yes"; then 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 15855printf %s "checking if RFC2553 API is available... " >&6; } 15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857/* end confdefs.h. */ 15858 15859 #include <sys/types.h> 15860#include <netinet/in.h> 15861int 15862main (void) 15863{ 15864struct sockaddr_in6 x; 15865 x.sin6_scope_id; 15866 ; 15867 return 0; 15868} 15869 15870_ACEOF 15871if ac_fn_c_try_compile "$LINENO" 15872then : 15873 15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15875printf "%s\n" "yes" >&6; } 15876 ipv6=yes 15877 15878else $as_nop 15879 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15881printf "%s\n" "no" >&6; } 15882 ipv6=no 15883 15884fi 15885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15886fi 15887 15888if test "$ipv6" = "yes"; then 15889 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h 15890 15891fi 15892 15893fi 15894 15895 15896ipv6type=unknown 15897ipv6lib=none 15898ipv6trylibc=no 15899 15900if test "$ipv6" = "yes"; then 15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 15902printf %s "checking ipv6 stack type... " >&6; } 15903 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 15904 do 15905 case $i in 15906 inria) 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909 15910#include <netinet/in.h> 15911#ifdef IPV6_INRIA_VERSION 15912yes 15913#endif 15914_ACEOF 15915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15916 $EGREP "yes" >/dev/null 2>&1 15917then : 15918 ipv6type=$i 15919fi 15920rm -rf conftest* 15921 15922 ;; 15923 kame) 15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15925/* end confdefs.h. */ 15926 15927#include <netinet/in.h> 15928#ifdef __KAME__ 15929yes 15930#endif 15931_ACEOF 15932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15933 $EGREP "yes" >/dev/null 2>&1 15934then : 15935 ipv6type=$i; 15936 ipv6lib=inet6 15937 ipv6libdir=/usr/local/v6/lib 15938 ipv6trylibc=yes 15939fi 15940rm -rf conftest* 15941 15942 ;; 15943 linux-glibc) 15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946 15947#include <features.h> 15948#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 15949yes 15950#endif 15951_ACEOF 15952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15953 $EGREP "yes" >/dev/null 2>&1 15954then : 15955 ipv6type=$i; 15956 ipv6trylibc=yes 15957fi 15958rm -rf conftest* 15959 15960 ;; 15961 linux-inet6) 15962 if test -d /usr/inet6; then 15963 ipv6type=$i 15964 ipv6lib=inet6 15965 ipv6libdir=/usr/inet6/lib 15966 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 15967 fi 15968 ;; 15969 solaris) 15970 if test -f /etc/netconfig; then 15971 if $GREP -q tcp6 /etc/netconfig; then 15972 ipv6type=$i 15973 ipv6trylibc=yes 15974 fi 15975 fi 15976 ;; 15977 toshiba) 15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979/* end confdefs.h. */ 15980 15981#include <sys/param.h> 15982#ifdef _TOSHIBA_INET6 15983yes 15984#endif 15985_ACEOF 15986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15987 $EGREP "yes" >/dev/null 2>&1 15988then : 15989 ipv6type=$i; 15990 ipv6lib=inet6; 15991 ipv6libdir=/usr/local/v6/lib 15992fi 15993rm -rf conftest* 15994 15995 ;; 15996 v6d) 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999 16000#include </usr/local/v6/include/sys/v6config.h> 16001#ifdef __V6D__ 16002yes 16003#endif 16004_ACEOF 16005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16006 $EGREP "yes" >/dev/null 2>&1 16007then : 16008 ipv6type=$i; 16009 ipv6lib=v6; 16010 ipv6libdir=/usr/local/v6/lib; 16011 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 16012fi 16013rm -rf conftest* 16014 16015 ;; 16016 zeta) 16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16018/* end confdefs.h. */ 16019 16020#include <sys/param.h> 16021#ifdef _ZETA_MINAMI_INET6 16022yes 16023#endif 16024_ACEOF 16025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16026 $EGREP "yes" >/dev/null 2>&1 16027then : 16028 ipv6type=$i; 16029 ipv6lib=inet6; 16030 ipv6libdir=/usr/local/v6/lib 16031fi 16032rm -rf conftest* 16033 16034 ;; 16035 esac 16036 if test "$ipv6type" != "unknown"; then 16037 break 16038 fi 16039 done 16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 16041printf "%s\n" "$ipv6type" >&6; } 16042fi 16043 16044if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 16045 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 16046 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using lib$ipv6lib" >&5 16048printf "%s\n" "$as_me: using lib$ipv6lib" >&6;} 16049 else 16050 if test "x$ipv6trylibc" = xyes 16051then : 16052 16053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using libc" >&5 16054printf "%s\n" "$as_me: using libc" >&6;} 16055 16056else $as_nop 16057 16058 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 16059 16060fi 16061 fi 16062fi 16063 16064 16065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5 16066printf %s "checking CAN_RAW_FD_FRAMES... " >&6; } 16067if test ${ac_cv_can_raw_fd_frames+y} 16068then : 16069 printf %s "(cached) " >&6 16070else $as_nop 16071 16072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074 /* CAN_RAW_FD_FRAMES available check */ 16075#include <linux/can/raw.h> 16076int 16077main (void) 16078{ 16079int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 16080 ; 16081 return 0; 16082} 16083_ACEOF 16084if ac_fn_c_try_compile "$LINENO" 16085then : 16086 ac_cv_can_raw_fd_frames=yes 16087else $as_nop 16088 ac_cv_can_raw_fd_frames=no 16089fi 16090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16091 16092fi 16093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5 16094printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; } 16095if test "x$ac_cv_can_raw_fd_frames" = xyes 16096then : 16097 16098 16099printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 16100 16101 16102fi 16103 16104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 16105printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; } 16106if test ${ac_cv_can_raw_join_filters+y} 16107then : 16108 printf %s "(cached) " >&6 16109else $as_nop 16110 16111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16112/* end confdefs.h. */ 16113 16114#include <linux/can/raw.h> 16115int 16116main (void) 16117{ 16118int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; 16119 ; 16120 return 0; 16121} 16122_ACEOF 16123if ac_fn_c_try_compile "$LINENO" 16124then : 16125 ac_cv_can_raw_join_filters=yes 16126else $as_nop 16127 ac_cv_can_raw_join_filters=no 16128fi 16129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16130 16131fi 16132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5 16133printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; } 16134if test "x$ac_cv_can_raw_join_filters" = xyes 16135then : 16136 16137 16138printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h 16139 16140 16141fi 16142 16143# Check for --with-doc-strings 16144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 16145printf %s "checking for --with-doc-strings... " >&6; } 16146 16147# Check whether --with-doc-strings was given. 16148if test ${with_doc_strings+y} 16149then : 16150 withval=$with_doc_strings; 16151fi 16152 16153 16154if test -z "$with_doc_strings" 16155then with_doc_strings="yes" 16156fi 16157if test "$with_doc_strings" != "no" 16158then 16159 16160printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h 16161 16162fi 16163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 16164printf "%s\n" "$with_doc_strings" >&6; } 16165 16166# Check for Python-specific malloc support 16167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 16168printf %s "checking for --with-pymalloc... " >&6; } 16169 16170# Check whether --with-pymalloc was given. 16171if test ${with_pymalloc+y} 16172then : 16173 withval=$with_pymalloc; 16174fi 16175 16176 16177if test -z "$with_pymalloc" 16178then 16179 case $ac_sys_system in #( 16180 Emscripten) : 16181 with_pymalloc="no" ;; #( 16182 WASI) : 16183 with_pymalloc="no" ;; #( 16184 *) : 16185 with_pymalloc="yes" 16186 ;; 16187esac 16188fi 16189if test "$with_pymalloc" != "no" 16190then 16191 16192printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h 16193 16194fi 16195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 16196printf "%s\n" "$with_pymalloc" >&6; } 16197 16198# Check whether objects such as float, tuple and dict are using 16199# freelists to optimization memory allocation. 16200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5 16201printf %s "checking for --with-freelists... " >&6; } 16202 16203# Check whether --with-freelists was given. 16204if test ${with_freelists+y} 16205then : 16206 withval=$with_freelists; 16207fi 16208 16209 16210if test -z "$with_freelists" 16211then 16212 with_freelists="yes" 16213fi 16214if test "$with_freelists" != "no" 16215then 16216 16217printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h 16218 16219fi 16220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5 16221printf "%s\n" "$with_freelists" >&6; } 16222 16223# Check for --with-c-locale-coercion 16224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 16225printf %s "checking for --with-c-locale-coercion... " >&6; } 16226 16227# Check whether --with-c-locale-coercion was given. 16228if test ${with_c_locale_coercion+y} 16229then : 16230 withval=$with_c_locale_coercion; 16231fi 16232 16233 16234if test -z "$with_c_locale_coercion" 16235then 16236 with_c_locale_coercion="yes" 16237fi 16238if test "$with_c_locale_coercion" != "no" 16239then 16240 16241printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h 16242 16243fi 16244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 16245printf "%s\n" "$with_c_locale_coercion" >&6; } 16246 16247# Check for Valgrind support 16248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 16249printf %s "checking for --with-valgrind... " >&6; } 16250 16251# Check whether --with-valgrind was given. 16252if test ${with_valgrind+y} 16253then : 16254 withval=$with_valgrind; 16255else $as_nop 16256 with_valgrind=no 16257fi 16258 16259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 16260printf "%s\n" "$with_valgrind" >&6; } 16261if test "$with_valgrind" != no; then 16262 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 16263if test "x$ac_cv_header_valgrind_valgrind_h" = xyes 16264then : 16265 16266printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h 16267 16268else $as_nop 16269 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 16270 16271fi 16272 16273 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 16274fi 16275 16276# Check for DTrace support 16277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 16278printf %s "checking for --with-dtrace... " >&6; } 16279 16280# Check whether --with-dtrace was given. 16281if test ${with_dtrace+y} 16282then : 16283 withval=$with_dtrace; 16284else $as_nop 16285 with_dtrace=no 16286fi 16287 16288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 16289printf "%s\n" "$with_dtrace" >&6; } 16290 16291 16292 16293 16294 16295DTRACE= 16296DTRACE_HEADERS= 16297DTRACE_OBJS= 16298 16299if test "$with_dtrace" = "yes" 16300then 16301 # Extract the first word of "dtrace", so it can be a program name with args. 16302set dummy dtrace; ac_word=$2 16303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16304printf %s "checking for $ac_word... " >&6; } 16305if test ${ac_cv_path_DTRACE+y} 16306then : 16307 printf %s "(cached) " >&6 16308else $as_nop 16309 case $DTRACE in 16310 [\\/]* | ?:[\\/]*) 16311 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 16312 ;; 16313 *) 16314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16315for as_dir in $PATH 16316do 16317 IFS=$as_save_IFS 16318 case $as_dir in #((( 16319 '') as_dir=./ ;; 16320 */) ;; 16321 *) as_dir=$as_dir/ ;; 16322 esac 16323 for ac_exec_ext in '' $ac_executable_extensions; do 16324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16325 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 16326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16327 break 2 16328 fi 16329done 16330 done 16331IFS=$as_save_IFS 16332 16333 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 16334 ;; 16335esac 16336fi 16337DTRACE=$ac_cv_path_DTRACE 16338if test -n "$DTRACE"; then 16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 16340printf "%s\n" "$DTRACE" >&6; } 16341else 16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16343printf "%s\n" "no" >&6; } 16344fi 16345 16346 16347 if test "$DTRACE" = "not found"; then 16348 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 16349 fi 16350 16351printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h 16352 16353 DTRACE_HEADERS="Include/pydtrace_probes.h" 16354 16355 # On OS X, DTrace providers do not need to be explicitly compiled and 16356 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 16357 # generation flag '-G'. We check for presence of this flag, rather than 16358 # hardcoding support by OS, in the interest of robustness. 16359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 16360printf %s "checking whether DTrace probes require linking... " >&6; } 16361if test ${ac_cv_dtrace_link+y} 16362then : 16363 printf %s "(cached) " >&6 16364else $as_nop 16365 ac_cv_dtrace_link=no 16366 echo 'BEGIN{}' > conftest.d 16367 "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 16368 ac_cv_dtrace_link=yes 16369 16370fi 16371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 16372printf "%s\n" "$ac_cv_dtrace_link" >&6; } 16373 if test "$ac_cv_dtrace_link" = "yes"; then 16374 DTRACE_OBJS="Python/pydtrace.o" 16375 fi 16376fi 16377 16378PLATFORM_HEADERS= 16379PLATFORM_OBJS= 16380 16381case $ac_sys_system in #( 16382 Emscripten) : 16383 16384 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o' 16385 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h' 16386 ;; #( 16387 *) : 16388 ;; 16389esac 16390 16391 16392 16393# -I${DLINCLDIR} is added to the compile rule for importdl.o 16394 16395DLINCLDIR=. 16396 16397# the dlopen() function means we might want to use dynload_shlib.o. some 16398# platforms have dlopen(), but don't want to use it. 16399ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16400if test "x$ac_cv_func_dlopen" = xyes 16401then : 16402 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 16403 16404fi 16405 16406 16407# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 16408# loading of modules. 16409 16410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 16411printf %s "checking DYNLOADFILE... " >&6; } 16412if test -z "$DYNLOADFILE" 16413then 16414 case $ac_sys_system/$ac_sys_release in 16415 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 16416 *) 16417 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 16418 # out any dynamic loading 16419 if test "$ac_cv_func_dlopen" = yes 16420 then DYNLOADFILE="dynload_shlib.o" 16421 else DYNLOADFILE="dynload_stub.o" 16422 fi 16423 ;; 16424 esac 16425fi 16426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 16427printf "%s\n" "$DYNLOADFILE" >&6; } 16428if test "$DYNLOADFILE" != "dynload_stub.o" 16429then 16430 16431printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 16432 16433fi 16434 16435# MACHDEP_OBJS can be set to platform-specific object files needed by Python 16436 16437 16438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 16439printf %s "checking MACHDEP_OBJS... " >&6; } 16440if test -z "$MACHDEP_OBJS" 16441then 16442 MACHDEP_OBJS=$extra_machdep_objs 16443else 16444 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 16445fi 16446if test -z "$MACHDEP_OBJS"; then 16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 16448printf "%s\n" "none" >&6; } 16449else 16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 16451printf "%s\n" "$MACHDEP_OBJS" >&6; } 16452fi 16453 16454# checks for library functions 16455ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 16456if test "x$ac_cv_func_accept4" = xyes 16457then : 16458 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 16459 16460fi 16461ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 16462if test "x$ac_cv_func_alarm" = xyes 16463then : 16464 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 16465 16466fi 16467ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 16468if test "x$ac_cv_func_bind_textdomain_codeset" = xyes 16469then : 16470 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h 16471 16472fi 16473ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" 16474if test "x$ac_cv_func_chmod" = xyes 16475then : 16476 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h 16477 16478fi 16479ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 16480if test "x$ac_cv_func_chown" = xyes 16481then : 16482 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 16483 16484fi 16485ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock" 16486if test "x$ac_cv_func_clock" = xyes 16487then : 16488 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h 16489 16490fi 16491ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range" 16492if test "x$ac_cv_func_close_range" = xyes 16493then : 16494 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h 16495 16496fi 16497ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr" 16498if test "x$ac_cv_func_confstr" = xyes 16499then : 16500 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h 16501 16502fi 16503ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" 16504if test "x$ac_cv_func_copy_file_range" = xyes 16505then : 16506 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h 16507 16508fi 16509ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid" 16510if test "x$ac_cv_func_ctermid" = xyes 16511then : 16512 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h 16513 16514fi 16515ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup" 16516if test "x$ac_cv_func_dup" = xyes 16517then : 16518 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h 16519 16520fi 16521ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3" 16522if test "x$ac_cv_func_dup3" = xyes 16523then : 16524 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h 16525 16526fi 16527ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv" 16528if test "x$ac_cv_func_execv" = xyes 16529then : 16530 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h 16531 16532fi 16533ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 16534if test "x$ac_cv_func_explicit_bzero" = xyes 16535then : 16536 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 16537 16538fi 16539ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" 16540if test "x$ac_cv_func_explicit_memset" = xyes 16541then : 16542 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h 16543 16544fi 16545ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat" 16546if test "x$ac_cv_func_faccessat" = xyes 16547then : 16548 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h 16549 16550fi 16551ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" 16552if test "x$ac_cv_func_fchmod" = xyes 16553then : 16554 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h 16555 16556fi 16557ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" 16558if test "x$ac_cv_func_fchmodat" = xyes 16559then : 16560 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h 16561 16562fi 16563ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 16564if test "x$ac_cv_func_fchown" = xyes 16565then : 16566 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h 16567 16568fi 16569ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" 16570if test "x$ac_cv_func_fchownat" = xyes 16571then : 16572 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h 16573 16574fi 16575ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir" 16576if test "x$ac_cv_func_fdopendir" = xyes 16577then : 16578 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h 16579 16580fi 16581ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk" 16582if test "x$ac_cv_func_fdwalk" = xyes 16583then : 16584 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h 16585 16586fi 16587ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" 16588if test "x$ac_cv_func_fexecve" = xyes 16589then : 16590 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h 16591 16592fi 16593ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 16594if test "x$ac_cv_func_fork" = xyes 16595then : 16596 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 16597 16598fi 16599ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1" 16600if test "x$ac_cv_func_fork1" = xyes 16601then : 16602 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h 16603 16604fi 16605ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" 16606if test "x$ac_cv_func_fpathconf" = xyes 16607then : 16608 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h 16609 16610fi 16611ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" 16612if test "x$ac_cv_func_fstatat" = xyes 16613then : 16614 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h 16615 16616fi 16617ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" 16618if test "x$ac_cv_func_ftime" = xyes 16619then : 16620 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h 16621 16622fi 16623ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 16624if test "x$ac_cv_func_ftruncate" = xyes 16625then : 16626 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h 16627 16628fi 16629ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens" 16630if test "x$ac_cv_func_futimens" = xyes 16631then : 16632 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h 16633 16634fi 16635ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" 16636if test "x$ac_cv_func_futimes" = xyes 16637then : 16638 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h 16639 16640fi 16641ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat" 16642if test "x$ac_cv_func_futimesat" = xyes 16643then : 16644 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h 16645 16646fi 16647ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 16648if test "x$ac_cv_func_gai_strerror" = xyes 16649then : 16650 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 16651 16652fi 16653ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 16654if test "x$ac_cv_func_getegid" = xyes 16655then : 16656 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 16657 16658fi 16659ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 16660if test "x$ac_cv_func_getentropy" = xyes 16661then : 16662 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 16663 16664fi 16665ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 16666if test "x$ac_cv_func_geteuid" = xyes 16667then : 16668 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 16669 16670fi 16671ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 16672if test "x$ac_cv_func_getgid" = xyes 16673then : 16674 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h 16675 16676fi 16677ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid" 16678if test "x$ac_cv_func_getgrgid" = xyes 16679then : 16680 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h 16681 16682fi 16683ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" 16684if test "x$ac_cv_func_getgrgid_r" = xyes 16685then : 16686 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h 16687 16688fi 16689ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" 16690if test "x$ac_cv_func_getgrnam_r" = xyes 16691then : 16692 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h 16693 16694fi 16695ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" 16696if test "x$ac_cv_func_getgrouplist" = xyes 16697then : 16698 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h 16699 16700fi 16701ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" 16702if test "x$ac_cv_func_getgroups" = xyes 16703then : 16704 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h 16705 16706fi 16707ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 16708if test "x$ac_cv_func_gethostname" = xyes 16709then : 16710 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 16711 16712fi 16713ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer" 16714if test "x$ac_cv_func_getitimer" = xyes 16715then : 16716 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h 16717 16718fi 16719ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 16720if test "x$ac_cv_func_getloadavg" = xyes 16721then : 16722 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h 16723 16724fi 16725ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" 16726if test "x$ac_cv_func_getlogin" = xyes 16727then : 16728 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h 16729 16730fi 16731ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername" 16732if test "x$ac_cv_func_getpeername" = xyes 16733then : 16734 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 16735 16736fi 16737ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" 16738if test "x$ac_cv_func_getpgid" = xyes 16739then : 16740 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h 16741 16742fi 16743ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" 16744if test "x$ac_cv_func_getpid" = xyes 16745then : 16746 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h 16747 16748fi 16749ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid" 16750if test "x$ac_cv_func_getppid" = xyes 16751then : 16752 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h 16753 16754fi 16755ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" 16756if test "x$ac_cv_func_getpriority" = xyes 16757then : 16758 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h 16759 16760fi 16761ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" 16762if test "x$ac_cv_func__getpty" = xyes 16763then : 16764 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h 16765 16766fi 16767ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" 16768if test "x$ac_cv_func_getpwent" = xyes 16769then : 16770 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h 16771 16772fi 16773ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 16774if test "x$ac_cv_func_getpwnam_r" = xyes 16775then : 16776 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h 16777 16778fi 16779ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 16780if test "x$ac_cv_func_getpwuid" = xyes 16781then : 16782 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 16783 16784fi 16785ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 16786if test "x$ac_cv_func_getpwuid_r" = xyes 16787then : 16788 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h 16789 16790fi 16791ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid" 16792if test "x$ac_cv_func_getresgid" = xyes 16793then : 16794 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h 16795 16796fi 16797ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 16798if test "x$ac_cv_func_getresuid" = xyes 16799then : 16800 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 16801 16802fi 16803ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 16804if test "x$ac_cv_func_getrusage" = xyes 16805then : 16806 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 16807 16808fi 16809ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" 16810if test "x$ac_cv_func_getsid" = xyes 16811then : 16812 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h 16813 16814fi 16815ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" 16816if test "x$ac_cv_func_getspent" = xyes 16817then : 16818 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h 16819 16820fi 16821ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 16822if test "x$ac_cv_func_getspnam" = xyes 16823then : 16824 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 16825 16826fi 16827ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 16828if test "x$ac_cv_func_getuid" = xyes 16829then : 16830 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 16831 16832fi 16833ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" 16834if test "x$ac_cv_func_getwd" = xyes 16835then : 16836 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h 16837 16838fi 16839ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex" 16840if test "x$ac_cv_func_if_nameindex" = xyes 16841then : 16842 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h 16843 16844fi 16845ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 16846if test "x$ac_cv_func_initgroups" = xyes 16847then : 16848 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 16849 16850fi 16851ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 16852if test "x$ac_cv_func_kill" = xyes 16853then : 16854 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 16855 16856fi 16857ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" 16858if test "x$ac_cv_func_killpg" = xyes 16859then : 16860 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h 16861 16862fi 16863ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" 16864if test "x$ac_cv_func_lchown" = xyes 16865then : 16866 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h 16867 16868fi 16869ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat" 16870if test "x$ac_cv_func_linkat" = xyes 16871then : 16872 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h 16873 16874fi 16875ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf" 16876if test "x$ac_cv_func_lockf" = xyes 16877then : 16878 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h 16879 16880fi 16881ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 16882if test "x$ac_cv_func_lstat" = xyes 16883then : 16884 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h 16885 16886fi 16887ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" 16888if test "x$ac_cv_func_lutimes" = xyes 16889then : 16890 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h 16891 16892fi 16893ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise" 16894if test "x$ac_cv_func_madvise" = xyes 16895then : 16896 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h 16897 16898fi 16899ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" 16900if test "x$ac_cv_func_mbrtowc" = xyes 16901then : 16902 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 16903 16904fi 16905ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 16906if test "x$ac_cv_func_memrchr" = xyes 16907then : 16908 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 16909 16910fi 16911ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" 16912if test "x$ac_cv_func_mkdirat" = xyes 16913then : 16914 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h 16915 16916fi 16917ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" 16918if test "x$ac_cv_func_mkfifo" = xyes 16919then : 16920 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h 16921 16922fi 16923ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat" 16924if test "x$ac_cv_func_mkfifoat" = xyes 16925then : 16926 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h 16927 16928fi 16929ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" 16930if test "x$ac_cv_func_mknod" = xyes 16931then : 16932 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h 16933 16934fi 16935ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat" 16936if test "x$ac_cv_func_mknodat" = xyes 16937then : 16938 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h 16939 16940fi 16941ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 16942if test "x$ac_cv_func_mktime" = xyes 16943then : 16944 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h 16945 16946fi 16947ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 16948if test "x$ac_cv_func_mmap" = xyes 16949then : 16950 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 16951 16952fi 16953ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" 16954if test "x$ac_cv_func_mremap" = xyes 16955then : 16956 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h 16957 16958fi 16959ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice" 16960if test "x$ac_cv_func_nice" = xyes 16961then : 16962 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h 16963 16964fi 16965ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 16966if test "x$ac_cv_func_openat" = xyes 16967then : 16968 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h 16969 16970fi 16971ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 16972if test "x$ac_cv_func_opendir" = xyes 16973then : 16974 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h 16975 16976fi 16977ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" 16978if test "x$ac_cv_func_pathconf" = xyes 16979then : 16980 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h 16981 16982fi 16983ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause" 16984if test "x$ac_cv_func_pause" = xyes 16985then : 16986 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h 16987 16988fi 16989ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 16990if test "x$ac_cv_func_pipe" = xyes 16991then : 16992 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 16993 16994fi 16995ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 16996if test "x$ac_cv_func_pipe2" = xyes 16997then : 16998 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 16999 17000fi 17001ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock" 17002if test "x$ac_cv_func_plock" = xyes 17003then : 17004 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h 17005 17006fi 17007ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 17008if test "x$ac_cv_func_poll" = xyes 17009then : 17010 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 17011 17012fi 17013ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" 17014if test "x$ac_cv_func_posix_fadvise" = xyes 17015then : 17016 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 17017 17018fi 17019ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 17020if test "x$ac_cv_func_posix_fallocate" = xyes 17021then : 17022 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 17023 17024fi 17025ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" 17026if test "x$ac_cv_func_posix_spawn" = xyes 17027then : 17028 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h 17029 17030fi 17031ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 17032if test "x$ac_cv_func_posix_spawnp" = xyes 17033then : 17034 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 17035 17036fi 17037ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 17038if test "x$ac_cv_func_pread" = xyes 17039then : 17040 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 17041 17042fi 17043ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv" 17044if test "x$ac_cv_func_preadv" = xyes 17045then : 17046 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h 17047 17048fi 17049ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2" 17050if test "x$ac_cv_func_preadv2" = xyes 17051then : 17052 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h 17053 17054fi 17055ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" 17056if test "x$ac_cv_func_pthread_condattr_setclock" = xyes 17057then : 17058 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h 17059 17060fi 17061ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init" 17062if test "x$ac_cv_func_pthread_init" = xyes 17063then : 17064 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h 17065 17066fi 17067ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 17068if test "x$ac_cv_func_pthread_kill" = xyes 17069then : 17070 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h 17071 17072fi 17073ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 17074if test "x$ac_cv_func_pwrite" = xyes 17075then : 17076 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 17077 17078fi 17079ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev" 17080if test "x$ac_cv_func_pwritev" = xyes 17081then : 17082 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h 17083 17084fi 17085ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2" 17086if test "x$ac_cv_func_pwritev2" = xyes 17087then : 17088 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h 17089 17090fi 17091ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 17092if test "x$ac_cv_func_readlink" = xyes 17093then : 17094 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h 17095 17096fi 17097ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" 17098if test "x$ac_cv_func_readlinkat" = xyes 17099then : 17100 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h 17101 17102fi 17103ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 17104if test "x$ac_cv_func_readv" = xyes 17105then : 17106 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h 17107 17108fi 17109ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 17110if test "x$ac_cv_func_realpath" = xyes 17111then : 17112 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 17113 17114fi 17115ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat" 17116if test "x$ac_cv_func_renameat" = xyes 17117then : 17118 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h 17119 17120fi 17121ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn" 17122if test "x$ac_cv_func_rtpSpawn" = xyes 17123then : 17124 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h 17125 17126fi 17127ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max" 17128if test "x$ac_cv_func_sched_get_priority_max" = xyes 17129then : 17130 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h 17131 17132fi 17133ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval" 17134if test "x$ac_cv_func_sched_rr_get_interval" = xyes 17135then : 17136 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h 17137 17138fi 17139ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" 17140if test "x$ac_cv_func_sched_setaffinity" = xyes 17141then : 17142 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 17143 17144fi 17145ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam" 17146if test "x$ac_cv_func_sched_setparam" = xyes 17147then : 17148 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h 17149 17150fi 17151ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 17152if test "x$ac_cv_func_sched_setscheduler" = xyes 17153then : 17154 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h 17155 17156fi 17157ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait" 17158if test "x$ac_cv_func_sem_clockwait" = xyes 17159then : 17160 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h 17161 17162fi 17163ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue" 17164if test "x$ac_cv_func_sem_getvalue" = xyes 17165then : 17166 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h 17167 17168fi 17169ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open" 17170if test "x$ac_cv_func_sem_open" = xyes 17171then : 17172 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h 17173 17174fi 17175ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 17176if test "x$ac_cv_func_sem_timedwait" = xyes 17177then : 17178 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h 17179 17180fi 17181ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink" 17182if test "x$ac_cv_func_sem_unlink" = xyes 17183then : 17184 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h 17185 17186fi 17187ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 17188if test "x$ac_cv_func_sendfile" = xyes 17189then : 17190 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h 17191 17192fi 17193ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 17194if test "x$ac_cv_func_setegid" = xyes 17195then : 17196 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h 17197 17198fi 17199ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 17200if test "x$ac_cv_func_seteuid" = xyes 17201then : 17202 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 17203 17204fi 17205ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid" 17206if test "x$ac_cv_func_setgid" = xyes 17207then : 17208 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h 17209 17210fi 17211ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname" 17212if test "x$ac_cv_func_sethostname" = xyes 17213then : 17214 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h 17215 17216fi 17217ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 17218if test "x$ac_cv_func_setitimer" = xyes 17219then : 17220 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 17221 17222fi 17223ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 17224if test "x$ac_cv_func_setlocale" = xyes 17225then : 17226 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 17227 17228fi 17229ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" 17230if test "x$ac_cv_func_setpgid" = xyes 17231then : 17232 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h 17233 17234fi 17235ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 17236if test "x$ac_cv_func_setpgrp" = xyes 17237then : 17238 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h 17239 17240fi 17241ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" 17242if test "x$ac_cv_func_setpriority" = xyes 17243then : 17244 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h 17245 17246fi 17247ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 17248if test "x$ac_cv_func_setregid" = xyes 17249then : 17250 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 17251 17252fi 17253ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 17254if test "x$ac_cv_func_setresgid" = xyes 17255then : 17256 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 17257 17258fi 17259ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 17260if test "x$ac_cv_func_setresuid" = xyes 17261then : 17262 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 17263 17264fi 17265ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 17266if test "x$ac_cv_func_setreuid" = xyes 17267then : 17268 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 17269 17270fi 17271ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 17272if test "x$ac_cv_func_setsid" = xyes 17273then : 17274 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 17275 17276fi 17277ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid" 17278if test "x$ac_cv_func_setuid" = xyes 17279then : 17280 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h 17281 17282fi 17283ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" 17284if test "x$ac_cv_func_setvbuf" = xyes 17285then : 17286 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h 17287 17288fi 17289ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" 17290if test "x$ac_cv_func_shutdown" = xyes 17291then : 17292 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h 17293 17294fi 17295ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 17296if test "x$ac_cv_func_sigaction" = xyes 17297then : 17298 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 17299 17300fi 17301ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" 17302if test "x$ac_cv_func_sigaltstack" = xyes 17303then : 17304 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h 17305 17306fi 17307ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset" 17308if test "x$ac_cv_func_sigfillset" = xyes 17309then : 17310 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h 17311 17312fi 17313ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" 17314if test "x$ac_cv_func_siginterrupt" = xyes 17315then : 17316 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h 17317 17318fi 17319ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending" 17320if test "x$ac_cv_func_sigpending" = xyes 17321then : 17322 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h 17323 17324fi 17325ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse" 17326if test "x$ac_cv_func_sigrelse" = xyes 17327then : 17328 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h 17329 17330fi 17331ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait" 17332if test "x$ac_cv_func_sigtimedwait" = xyes 17333then : 17334 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h 17335 17336fi 17337ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 17338if test "x$ac_cv_func_sigwait" = xyes 17339then : 17340 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h 17341 17342fi 17343ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo" 17344if test "x$ac_cv_func_sigwaitinfo" = xyes 17345then : 17346 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h 17347 17348fi 17349ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 17350if test "x$ac_cv_func_snprintf" = xyes 17351then : 17352 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 17353 17354fi 17355ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" 17356if test "x$ac_cv_func_splice" = xyes 17357then : 17358 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h 17359 17360fi 17361ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 17362if test "x$ac_cv_func_strftime" = xyes 17363then : 17364 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 17365 17366fi 17367ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 17368if test "x$ac_cv_func_strlcpy" = xyes 17369then : 17370 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 17371 17372fi 17373ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" 17374if test "x$ac_cv_func_strsignal" = xyes 17375then : 17376 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h 17377 17378fi 17379ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat" 17380if test "x$ac_cv_func_symlinkat" = xyes 17381then : 17382 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h 17383 17384fi 17385ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" 17386if test "x$ac_cv_func_sync" = xyes 17387then : 17388 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h 17389 17390fi 17391ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 17392if test "x$ac_cv_func_sysconf" = xyes 17393then : 17394 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 17395 17396fi 17397ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system" 17398if test "x$ac_cv_func_system" = xyes 17399then : 17400 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h 17401 17402fi 17403ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp" 17404if test "x$ac_cv_func_tcgetpgrp" = xyes 17405then : 17406 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h 17407 17408fi 17409ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp" 17410if test "x$ac_cv_func_tcsetpgrp" = xyes 17411then : 17412 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h 17413 17414fi 17415ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" 17416if test "x$ac_cv_func_tempnam" = xyes 17417then : 17418 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h 17419 17420fi 17421ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 17422if test "x$ac_cv_func_timegm" = xyes 17423then : 17424 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 17425 17426fi 17427ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" 17428if test "x$ac_cv_func_times" = xyes 17429then : 17430 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h 17431 17432fi 17433ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile" 17434if test "x$ac_cv_func_tmpfile" = xyes 17435then : 17436 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h 17437 17438fi 17439ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam" 17440if test "x$ac_cv_func_tmpnam" = xyes 17441then : 17442 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h 17443 17444fi 17445ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r" 17446if test "x$ac_cv_func_tmpnam_r" = xyes 17447then : 17448 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h 17449 17450fi 17451ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate" 17452if test "x$ac_cv_func_truncate" = xyes 17453then : 17454 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h 17455 17456fi 17457ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname" 17458if test "x$ac_cv_func_ttyname" = xyes 17459then : 17460 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h 17461 17462fi 17463ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 17464if test "x$ac_cv_func_umask" = xyes 17465then : 17466 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 17467 17468fi 17469ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 17470if test "x$ac_cv_func_uname" = xyes 17471then : 17472 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 17473 17474fi 17475ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat" 17476if test "x$ac_cv_func_unlinkat" = xyes 17477then : 17478 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h 17479 17480fi 17481ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" 17482if test "x$ac_cv_func_utimensat" = xyes 17483then : 17484 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h 17485 17486fi 17487ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 17488if test "x$ac_cv_func_utimes" = xyes 17489then : 17490 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 17491 17492fi 17493ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 17494if test "x$ac_cv_func_vfork" = xyes 17495then : 17496 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h 17497 17498fi 17499ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait" 17500if test "x$ac_cv_func_wait" = xyes 17501then : 17502 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h 17503 17504fi 17505ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" 17506if test "x$ac_cv_func_wait3" = xyes 17507then : 17508 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h 17509 17510fi 17511ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" 17512if test "x$ac_cv_func_wait4" = xyes 17513then : 17514 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h 17515 17516fi 17517ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid" 17518if test "x$ac_cv_func_waitid" = xyes 17519then : 17520 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h 17521 17522fi 17523ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 17524if test "x$ac_cv_func_waitpid" = xyes 17525then : 17526 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h 17527 17528fi 17529ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" 17530if test "x$ac_cv_func_wcscoll" = xyes 17531then : 17532 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h 17533 17534fi 17535ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime" 17536if test "x$ac_cv_func_wcsftime" = xyes 17537then : 17538 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h 17539 17540fi 17541ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm" 17542if test "x$ac_cv_func_wcsxfrm" = xyes 17543then : 17544 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h 17545 17546fi 17547ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp" 17548if test "x$ac_cv_func_wmemcmp" = xyes 17549then : 17550 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h 17551 17552fi 17553ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 17554if test "x$ac_cv_func_writev" = xyes 17555then : 17556 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 17557 17558fi 17559 17560 17561# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 17562# links. Some libc implementations have a stub lchmod implementation that always 17563# returns an error. 17564if test "$MACHDEP" != linux; then 17565 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 17566if test "x$ac_cv_func_lchmod" = xyes 17567then : 17568 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h 17569 17570fi 17571 17572fi 17573 17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 17575printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 17576if test ${ac_cv_c_undeclared_builtin_options+y} 17577then : 17578 printf %s "(cached) " >&6 17579else $as_nop 17580 ac_save_CFLAGS=$CFLAGS 17581 ac_cv_c_undeclared_builtin_options='cannot detect' 17582 for ac_arg in '' -fno-builtin; do 17583 CFLAGS="$ac_save_CFLAGS $ac_arg" 17584 # This test program should *not* compile successfully. 17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17586/* end confdefs.h. */ 17587 17588int 17589main (void) 17590{ 17591(void) strchr; 17592 ; 17593 return 0; 17594} 17595_ACEOF 17596if ac_fn_c_try_compile "$LINENO" 17597then : 17598 17599else $as_nop 17600 # This test program should compile successfully. 17601 # No library function is consistently available on 17602 # freestanding implementations, so test against a dummy 17603 # declaration. Include always-available headers on the 17604 # off chance that they somehow elicit warnings. 17605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17606/* end confdefs.h. */ 17607#include <float.h> 17608#include <limits.h> 17609#include <stdarg.h> 17610#include <stddef.h> 17611extern void ac_decl (int, char *); 17612 17613int 17614main (void) 17615{ 17616(void) ac_decl (0, (char *) 0); 17617 (void) ac_decl; 17618 17619 ; 17620 return 0; 17621} 17622_ACEOF 17623if ac_fn_c_try_compile "$LINENO" 17624then : 17625 if test x"$ac_arg" = x 17626then : 17627 ac_cv_c_undeclared_builtin_options='none needed' 17628else $as_nop 17629 ac_cv_c_undeclared_builtin_options=$ac_arg 17630fi 17631 break 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17634fi 17635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17636 done 17637 CFLAGS=$ac_save_CFLAGS 17638 17639fi 17640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 17641printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 17642 case $ac_cv_c_undeclared_builtin_options in #( 17643 'cannot detect') : 17644 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17645printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17646as_fn_error $? "cannot make $CC report undeclared builtins 17647See \`config.log' for more details" "$LINENO" 5; } ;; #( 17648 'none needed') : 17649 ac_c_undeclared_builtin_options='' ;; #( 17650 *) : 17651 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 17652esac 17653 17654ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 17655 #include <dirent.h> 17656" "$ac_c_undeclared_builtin_options" "CFLAGS" 17657if test "x$ac_cv_have_decl_dirfd" = xyes 17658then : 17659 17660printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h 17661 17662fi 17663 17664 17665 17666# For some functions, having a definition is not sufficient, since 17667# we want to take their address. 17668 17669 17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 17671printf %s "checking for chroot... " >&6; } 17672if test ${ac_cv_func_chroot+y} 17673then : 17674 printf %s "(cached) " >&6 17675else $as_nop 17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17677/* end confdefs.h. */ 17678#include <unistd.h> 17679int 17680main (void) 17681{ 17682void *x=chroot 17683 ; 17684 return 0; 17685} 17686_ACEOF 17687if ac_fn_c_try_compile "$LINENO" 17688then : 17689 ac_cv_func_chroot=yes 17690else $as_nop 17691 ac_cv_func_chroot=no 17692fi 17693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17694 17695fi 17696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5 17697printf "%s\n" "$ac_cv_func_chroot" >&6; } 17698 if test "x$ac_cv_func_chroot" = xyes 17699then : 17700 17701printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 17702 17703fi 17704 17705 17706 17707 17708 17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5 17710printf %s "checking for link... " >&6; } 17711if test ${ac_cv_func_link+y} 17712then : 17713 printf %s "(cached) " >&6 17714else $as_nop 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717#include <unistd.h> 17718int 17719main (void) 17720{ 17721void *x=link 17722 ; 17723 return 0; 17724} 17725_ACEOF 17726if ac_fn_c_try_compile "$LINENO" 17727then : 17728 ac_cv_func_link=yes 17729else $as_nop 17730 ac_cv_func_link=no 17731fi 17732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17733 17734fi 17735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5 17736printf "%s\n" "$ac_cv_func_link" >&6; } 17737 if test "x$ac_cv_func_link" = xyes 17738then : 17739 17740printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h 17741 17742fi 17743 17744 17745 17746 17747 17748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 17749printf %s "checking for symlink... " >&6; } 17750if test ${ac_cv_func_symlink+y} 17751then : 17752 printf %s "(cached) " >&6 17753else $as_nop 17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17755/* end confdefs.h. */ 17756#include <unistd.h> 17757int 17758main (void) 17759{ 17760void *x=symlink 17761 ; 17762 return 0; 17763} 17764_ACEOF 17765if ac_fn_c_try_compile "$LINENO" 17766then : 17767 ac_cv_func_symlink=yes 17768else $as_nop 17769 ac_cv_func_symlink=no 17770fi 17771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17772 17773fi 17774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5 17775printf "%s\n" "$ac_cv_func_symlink" >&6; } 17776 if test "x$ac_cv_func_symlink" = xyes 17777then : 17778 17779printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h 17780 17781fi 17782 17783 17784 17785 17786 17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 17788printf %s "checking for fchdir... " >&6; } 17789if test ${ac_cv_func_fchdir+y} 17790then : 17791 printf %s "(cached) " >&6 17792else $as_nop 17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17794/* end confdefs.h. */ 17795#include <unistd.h> 17796int 17797main (void) 17798{ 17799void *x=fchdir 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804if ac_fn_c_try_compile "$LINENO" 17805then : 17806 ac_cv_func_fchdir=yes 17807else $as_nop 17808 ac_cv_func_fchdir=no 17809fi 17810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17811 17812fi 17813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5 17814printf "%s\n" "$ac_cv_func_fchdir" >&6; } 17815 if test "x$ac_cv_func_fchdir" = xyes 17816then : 17817 17818printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h 17819 17820fi 17821 17822 17823 17824 17825 17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 17827printf %s "checking for fsync... " >&6; } 17828if test ${ac_cv_func_fsync+y} 17829then : 17830 printf %s "(cached) " >&6 17831else $as_nop 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834#include <unistd.h> 17835int 17836main (void) 17837{ 17838void *x=fsync 17839 ; 17840 return 0; 17841} 17842_ACEOF 17843if ac_fn_c_try_compile "$LINENO" 17844then : 17845 ac_cv_func_fsync=yes 17846else $as_nop 17847 ac_cv_func_fsync=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17850 17851fi 17852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5 17853printf "%s\n" "$ac_cv_func_fsync" >&6; } 17854 if test "x$ac_cv_func_fsync" = xyes 17855then : 17856 17857printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 17858 17859fi 17860 17861 17862 17863 17864 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 17866printf %s "checking for fdatasync... " >&6; } 17867if test ${ac_cv_func_fdatasync+y} 17868then : 17869 printf %s "(cached) " >&6 17870else $as_nop 17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873#include <unistd.h> 17874int 17875main (void) 17876{ 17877void *x=fdatasync 17878 ; 17879 return 0; 17880} 17881_ACEOF 17882if ac_fn_c_try_compile "$LINENO" 17883then : 17884 ac_cv_func_fdatasync=yes 17885else $as_nop 17886 ac_cv_func_fdatasync=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17889 17890fi 17891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5 17892printf "%s\n" "$ac_cv_func_fdatasync" >&6; } 17893 if test "x$ac_cv_func_fdatasync" = xyes 17894then : 17895 17896printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h 17897 17898fi 17899 17900 17901 17902 17903 17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5 17905printf %s "checking for epoll_create... " >&6; } 17906if test ${ac_cv_func_epoll_create+y} 17907then : 17908 printf %s "(cached) " >&6 17909else $as_nop 17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911/* end confdefs.h. */ 17912#include <sys/epoll.h> 17913int 17914main (void) 17915{ 17916void *x=epoll_create 17917 ; 17918 return 0; 17919} 17920_ACEOF 17921if ac_fn_c_try_compile "$LINENO" 17922then : 17923 ac_cv_func_epoll_create=yes 17924else $as_nop 17925 ac_cv_func_epoll_create=no 17926fi 17927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17928 17929fi 17930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5 17931printf "%s\n" "$ac_cv_func_epoll_create" >&6; } 17932 if test "x$ac_cv_func_epoll_create" = xyes 17933then : 17934 17935printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 17936 17937fi 17938 17939 17940 17941 17942 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 17944printf %s "checking for epoll_create1... " >&6; } 17945if test ${ac_cv_func_epoll_create1+y} 17946then : 17947 printf %s "(cached) " >&6 17948else $as_nop 17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17950/* end confdefs.h. */ 17951#include <sys/epoll.h> 17952int 17953main (void) 17954{ 17955void *x=epoll_create1 17956 ; 17957 return 0; 17958} 17959_ACEOF 17960if ac_fn_c_try_compile "$LINENO" 17961then : 17962 ac_cv_func_epoll_create1=yes 17963else $as_nop 17964 ac_cv_func_epoll_create1=no 17965fi 17966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17967 17968fi 17969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5 17970printf "%s\n" "$ac_cv_func_epoll_create1" >&6; } 17971 if test "x$ac_cv_func_epoll_create1" = xyes 17972then : 17973 17974printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 17975 17976fi 17977 17978 17979 17980 17981 17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 17983printf %s "checking for kqueue... " >&6; } 17984if test ${ac_cv_func_kqueue+y} 17985then : 17986 printf %s "(cached) " >&6 17987else $as_nop 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990 17991#include <sys/types.h> 17992#include <sys/event.h> 17993 17994int 17995main (void) 17996{ 17997void *x=kqueue 17998 ; 17999 return 0; 18000} 18001_ACEOF 18002if ac_fn_c_try_compile "$LINENO" 18003then : 18004 ac_cv_func_kqueue=yes 18005else $as_nop 18006 ac_cv_func_kqueue=no 18007fi 18008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18009 18010fi 18011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5 18012printf "%s\n" "$ac_cv_func_kqueue" >&6; } 18013 if test "x$ac_cv_func_kqueue" = xyes 18014then : 18015 18016printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 18017 18018fi 18019 18020 18021 18022 18023 18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 18025printf %s "checking for prlimit... " >&6; } 18026if test ${ac_cv_func_prlimit+y} 18027then : 18028 printf %s "(cached) " >&6 18029else $as_nop 18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18031/* end confdefs.h. */ 18032 18033#include <sys/time.h> 18034#include <sys/resource.h> 18035 18036int 18037main (void) 18038{ 18039void *x=prlimit 18040 ; 18041 return 0; 18042} 18043_ACEOF 18044if ac_fn_c_try_compile "$LINENO" 18045then : 18046 ac_cv_func_prlimit=yes 18047else $as_nop 18048 ac_cv_func_prlimit=no 18049fi 18050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18051 18052fi 18053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5 18054printf "%s\n" "$ac_cv_func_prlimit" >&6; } 18055 if test "x$ac_cv_func_prlimit" = xyes 18056then : 18057 18058printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h 18059 18060fi 18061 18062 18063 18064 18065 18066 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 18068printf %s "checking for _dyld_shared_cache_contains_path... " >&6; } 18069if test ${ac_cv_func__dyld_shared_cache_contains_path+y} 18070then : 18071 printf %s "(cached) " >&6 18072else $as_nop 18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18074/* end confdefs.h. */ 18075#include <mach-o/dyld.h> 18076int 18077main (void) 18078{ 18079void *x=_dyld_shared_cache_contains_path 18080 ; 18081 return 0; 18082} 18083_ACEOF 18084if ac_fn_c_try_compile "$LINENO" 18085then : 18086 ac_cv_func__dyld_shared_cache_contains_path=yes 18087else $as_nop 18088 ac_cv_func__dyld_shared_cache_contains_path=no 18089fi 18090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18091 18092fi 18093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5 18094printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; } 18095 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes 18096then : 18097 18098printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h 18099 18100fi 18101 18102 18103 18104 18105 18106 18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 18108printf %s "checking for memfd_create... " >&6; } 18109if test ${ac_cv_func_memfd_create+y} 18110then : 18111 printf %s "(cached) " >&6 18112else $as_nop 18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18114/* end confdefs.h. */ 18115 18116#ifdef HAVE_SYS_MMAN_H 18117#include <sys/mman.h> 18118#endif 18119#ifdef HAVE_SYS_MEMFD_H 18120#include <sys/memfd.h> 18121#endif 18122 18123int 18124main (void) 18125{ 18126void *x=memfd_create 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_compile "$LINENO" 18132then : 18133 ac_cv_func_memfd_create=yes 18134else $as_nop 18135 ac_cv_func_memfd_create=no 18136fi 18137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18138 18139fi 18140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5 18141printf "%s\n" "$ac_cv_func_memfd_create" >&6; } 18142 if test "x$ac_cv_func_memfd_create" = xyes 18143then : 18144 18145printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 18146 18147fi 18148 18149 18150 18151 18152 18153 18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 18155printf %s "checking for eventfd... " >&6; } 18156if test ${ac_cv_func_eventfd+y} 18157then : 18158 printf %s "(cached) " >&6 18159else $as_nop 18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18161/* end confdefs.h. */ 18162 18163#ifdef HAVE_SYS_EVENTFD_H 18164#include <sys/eventfd.h> 18165#endif 18166 18167int 18168main (void) 18169{ 18170void *x=eventfd 18171 ; 18172 return 0; 18173} 18174_ACEOF 18175if ac_fn_c_try_compile "$LINENO" 18176then : 18177 ac_cv_func_eventfd=yes 18178else $as_nop 18179 ac_cv_func_eventfd=no 18180fi 18181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18182 18183fi 18184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5 18185printf "%s\n" "$ac_cv_func_eventfd" >&6; } 18186 if test "x$ac_cv_func_eventfd" = xyes 18187then : 18188 18189printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 18190 18191fi 18192 18193 18194 18195 18196# On some systems (eg. FreeBSD 5), we would find a definition of the 18197# functions ctermid_r, setgroups in the library, but no prototype 18198# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 18199# address to avoid compiler warnings and potential miscompilations 18200# because of the missing prototypes. 18201 18202 18203 18204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 18205printf %s "checking for ctermid_r... " >&6; } 18206if test ${ac_cv_func_ctermid_r+y} 18207then : 18208 printf %s "(cached) " >&6 18209else $as_nop 18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18211/* end confdefs.h. */ 18212#include <stdio.h> 18213int 18214main (void) 18215{ 18216void *x=ctermid_r 18217 ; 18218 return 0; 18219} 18220_ACEOF 18221if ac_fn_c_try_compile "$LINENO" 18222then : 18223 ac_cv_func_ctermid_r=yes 18224else $as_nop 18225 ac_cv_func_ctermid_r=no 18226fi 18227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18228 18229fi 18230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5 18231printf "%s\n" "$ac_cv_func_ctermid_r" >&6; } 18232 if test "x$ac_cv_func_ctermid_r" = xyes 18233then : 18234 18235printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h 18236 18237fi 18238 18239 18240 18241 18242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 18243printf %s "checking for flock declaration... " >&6; } 18244if test ${ac_cv_flock_decl+y} 18245then : 18246 printf %s "(cached) " >&6 18247else $as_nop 18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250#include <sys/file.h> 18251int 18252main (void) 18253{ 18254void* p = flock 18255 18256 ; 18257 return 0; 18258} 18259_ACEOF 18260if ac_fn_c_try_compile "$LINENO" 18261then : 18262 ac_cv_flock_decl=yes 18263else $as_nop 18264 ac_cv_flock_decl=no 18265 18266fi 18267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18268 18269fi 18270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 18271printf "%s\n" "$ac_cv_flock_decl" >&6; } 18272if test "x$ac_cv_flock_decl" = xyes 18273then : 18274 18275 for ac_func in flock 18276do : 18277 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 18278if test "x$ac_cv_func_flock" = xyes 18279then : 18280 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h 18281 18282else $as_nop 18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 18284printf %s "checking for flock in -lbsd... " >&6; } 18285if test ${ac_cv_lib_bsd_flock+y} 18286then : 18287 printf %s "(cached) " >&6 18288else $as_nop 18289 ac_check_lib_save_LIBS=$LIBS 18290LIBS="-lbsd $LIBS" 18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292/* end confdefs.h. */ 18293 18294/* Override any GCC internal prototype to avoid an error. 18295 Use char because int might match the return type of a GCC 18296 builtin and then its argument prototype would still apply. */ 18297char flock (); 18298int 18299main (void) 18300{ 18301return flock (); 18302 ; 18303 return 0; 18304} 18305_ACEOF 18306if ac_fn_c_try_link "$LINENO" 18307then : 18308 ac_cv_lib_bsd_flock=yes 18309else $as_nop 18310 ac_cv_lib_bsd_flock=no 18311fi 18312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18313 conftest$ac_exeext conftest.$ac_ext 18314LIBS=$ac_check_lib_save_LIBS 18315fi 18316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 18317printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; } 18318if test "x$ac_cv_lib_bsd_flock" = xyes 18319then : 18320 FCNTL_LIBS="-lbsd" 18321fi 18322 18323fi 18324 18325done 18326fi 18327 18328 18329 18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 18331printf %s "checking for getpagesize... " >&6; } 18332if test ${ac_cv_func_getpagesize+y} 18333then : 18334 printf %s "(cached) " >&6 18335else $as_nop 18336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18337/* end confdefs.h. */ 18338#include <unistd.h> 18339int 18340main (void) 18341{ 18342void *x=getpagesize 18343 ; 18344 return 0; 18345} 18346_ACEOF 18347if ac_fn_c_try_compile "$LINENO" 18348then : 18349 ac_cv_func_getpagesize=yes 18350else $as_nop 18351 ac_cv_func_getpagesize=no 18352fi 18353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18354 18355fi 18356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5 18357printf "%s\n" "$ac_cv_func_getpagesize" >&6; } 18358 if test "x$ac_cv_func_getpagesize" = xyes 18359then : 18360 18361printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h 18362 18363fi 18364 18365 18366 18367 18368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 18369printf %s "checking for broken unsetenv... " >&6; } 18370if test ${ac_cv_broken_unsetenv+y} 18371then : 18372 printf %s "(cached) " >&6 18373else $as_nop 18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18375/* end confdefs.h. */ 18376#include <stdlib.h> 18377int 18378main (void) 18379{ 18380int res = unsetenv("DUMMY") 18381 ; 18382 return 0; 18383} 18384_ACEOF 18385if ac_fn_c_try_compile "$LINENO" 18386then : 18387 ac_cv_broken_unsetenv=no 18388else $as_nop 18389 ac_cv_broken_unsetenv=yes 18390 18391fi 18392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18393 18394fi 18395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5 18396printf "%s\n" "$ac_cv_broken_unsetenv" >&6; } 18397if test "x$ac_cv_broken_unsetenv" = xyes 18398then : 18399 18400 18401printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 18402 18403 18404fi 18405 18406for ac_prog in true 18407do 18408 # Extract the first word of "$ac_prog", so it can be a program name with args. 18409set dummy $ac_prog; ac_word=$2 18410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18411printf %s "checking for $ac_word... " >&6; } 18412if test ${ac_cv_prog_TRUE+y} 18413then : 18414 printf %s "(cached) " >&6 18415else $as_nop 18416 if test -n "$TRUE"; then 18417 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 18418else 18419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18420for as_dir in $PATH 18421do 18422 IFS=$as_save_IFS 18423 case $as_dir in #((( 18424 '') as_dir=./ ;; 18425 */) ;; 18426 *) as_dir=$as_dir/ ;; 18427 esac 18428 for ac_exec_ext in '' $ac_executable_extensions; do 18429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18430 ac_cv_prog_TRUE="$ac_prog" 18431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18432 break 2 18433 fi 18434done 18435 done 18436IFS=$as_save_IFS 18437 18438fi 18439fi 18440TRUE=$ac_cv_prog_TRUE 18441if test -n "$TRUE"; then 18442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 18443printf "%s\n" "$TRUE" >&6; } 18444else 18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18446printf "%s\n" "no" >&6; } 18447fi 18448 18449 18450 test -n "$TRUE" && break 18451done 18452test -n "$TRUE" || TRUE="/bin/true" 18453 18454 18455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 18456printf %s "checking for inet_aton in -lc... " >&6; } 18457if test ${ac_cv_lib_c_inet_aton+y} 18458then : 18459 printf %s "(cached) " >&6 18460else $as_nop 18461 ac_check_lib_save_LIBS=$LIBS 18462LIBS="-lc $LIBS" 18463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18464/* end confdefs.h. */ 18465 18466/* Override any GCC internal prototype to avoid an error. 18467 Use char because int might match the return type of a GCC 18468 builtin and then its argument prototype would still apply. */ 18469char inet_aton (); 18470int 18471main (void) 18472{ 18473return inet_aton (); 18474 ; 18475 return 0; 18476} 18477_ACEOF 18478if ac_fn_c_try_link "$LINENO" 18479then : 18480 ac_cv_lib_c_inet_aton=yes 18481else $as_nop 18482 ac_cv_lib_c_inet_aton=no 18483fi 18484rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18485 conftest$ac_exeext conftest.$ac_ext 18486LIBS=$ac_check_lib_save_LIBS 18487fi 18488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 18489printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; } 18490if test "x$ac_cv_lib_c_inet_aton" = xyes 18491then : 18492 $ac_cv_prog_TRUE 18493else $as_nop 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 18495printf %s "checking for inet_aton in -lresolv... " >&6; } 18496if test ${ac_cv_lib_resolv_inet_aton+y} 18497then : 18498 printf %s "(cached) " >&6 18499else $as_nop 18500 ac_check_lib_save_LIBS=$LIBS 18501LIBS="-lresolv $LIBS" 18502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18503/* end confdefs.h. */ 18504 18505/* Override any GCC internal prototype to avoid an error. 18506 Use char because int might match the return type of a GCC 18507 builtin and then its argument prototype would still apply. */ 18508char inet_aton (); 18509int 18510main (void) 18511{ 18512return inet_aton (); 18513 ; 18514 return 0; 18515} 18516_ACEOF 18517if ac_fn_c_try_link "$LINENO" 18518then : 18519 ac_cv_lib_resolv_inet_aton=yes 18520else $as_nop 18521 ac_cv_lib_resolv_inet_aton=no 18522fi 18523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18524 conftest$ac_exeext conftest.$ac_ext 18525LIBS=$ac_check_lib_save_LIBS 18526fi 18527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 18528printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; } 18529if test "x$ac_cv_lib_resolv_inet_aton" = xyes 18530then : 18531 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h 18532 18533 LIBS="-lresolv $LIBS" 18534 18535fi 18536 18537 18538fi 18539 18540 18541# On Tru64, chflags seems to be present, but calling it will 18542# exit Python 18543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 18544printf %s "checking for chflags... " >&6; } 18545if test ${ac_cv_have_chflags+y} 18546then : 18547 printf %s "(cached) " >&6 18548else $as_nop 18549 if test "$cross_compiling" = yes 18550then : 18551 ac_cv_have_chflags=cross 18552else $as_nop 18553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18554/* end confdefs.h. */ 18555 18556#include <sys/stat.h> 18557#include <unistd.h> 18558int main(int argc, char *argv[]) 18559{ 18560 if(chflags(argv[0], 0) != 0) 18561 return 1; 18562 return 0; 18563} 18564 18565_ACEOF 18566if ac_fn_c_try_run "$LINENO" 18567then : 18568 ac_cv_have_chflags=yes 18569else $as_nop 18570 ac_cv_have_chflags=no 18571fi 18572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18573 conftest.$ac_objext conftest.beam conftest.$ac_ext 18574fi 18575 18576 18577fi 18578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 18579printf "%s\n" "$ac_cv_have_chflags" >&6; } 18580if test "$ac_cv_have_chflags" = cross ; then 18581 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 18582if test "x$ac_cv_func_chflags" = xyes 18583then : 18584 ac_cv_have_chflags="yes" 18585else $as_nop 18586 ac_cv_have_chflags="no" 18587fi 18588 18589fi 18590if test "$ac_cv_have_chflags" = yes ; then 18591 18592printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h 18593 18594fi 18595 18596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 18597printf %s "checking for lchflags... " >&6; } 18598if test ${ac_cv_have_lchflags+y} 18599then : 18600 printf %s "(cached) " >&6 18601else $as_nop 18602 if test "$cross_compiling" = yes 18603then : 18604 ac_cv_have_lchflags=cross 18605else $as_nop 18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18607/* end confdefs.h. */ 18608 18609#include <sys/stat.h> 18610#include <unistd.h> 18611int main(int argc, char *argv[]) 18612{ 18613 if(lchflags(argv[0], 0) != 0) 18614 return 1; 18615 return 0; 18616} 18617 18618_ACEOF 18619if ac_fn_c_try_run "$LINENO" 18620then : 18621 ac_cv_have_lchflags=yes 18622else $as_nop 18623 ac_cv_have_lchflags=no 18624fi 18625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18626 conftest.$ac_objext conftest.beam conftest.$ac_ext 18627fi 18628 18629 18630fi 18631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 18632printf "%s\n" "$ac_cv_have_lchflags" >&6; } 18633if test "$ac_cv_have_lchflags" = cross ; then 18634 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 18635if test "x$ac_cv_func_lchflags" = xyes 18636then : 18637 ac_cv_have_lchflags="yes" 18638else $as_nop 18639 ac_cv_have_lchflags="no" 18640fi 18641 18642fi 18643if test "$ac_cv_have_lchflags" = yes ; then 18644 18645printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h 18646 18647fi 18648 18649 18650 18651 18652 18653 18654 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS" 18655then : 18656 18657 ZLIB_CFLAGS="-sUSE_ZLIB" 18658 ZLIB_LIBS="-sUSE_ZLIB" 18659 18660fi 18661 18662 18663 18664 18665 18666pkg_failed=no 18667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 18668printf %s "checking for ZLIB... " >&6; } 18669 18670if test -n "$ZLIB_CFLAGS"; then 18671 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 18672 elif test -n "$PKG_CONFIG"; then 18673 if test -n "$PKG_CONFIG" && \ 18674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5 18675 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5 18676 ac_status=$? 18677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18678 test $ac_status = 0; }; then 18679 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null` 18680 test "x$?" != "x0" && pkg_failed=yes 18681else 18682 pkg_failed=yes 18683fi 18684 else 18685 pkg_failed=untried 18686fi 18687if test -n "$ZLIB_LIBS"; then 18688 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 18689 elif test -n "$PKG_CONFIG"; then 18690 if test -n "$PKG_CONFIG" && \ 18691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5 18692 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5 18693 ac_status=$? 18694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18695 test $ac_status = 0; }; then 18696 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null` 18697 test "x$?" != "x0" && pkg_failed=yes 18698else 18699 pkg_failed=yes 18700fi 18701 else 18702 pkg_failed=untried 18703fi 18704 18705 18706 18707if test $pkg_failed = yes; then 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18709printf "%s\n" "no" >&6; } 18710 18711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18712 _pkg_short_errors_supported=yes 18713else 18714 _pkg_short_errors_supported=no 18715fi 18716 if test $_pkg_short_errors_supported = yes; then 18717 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1` 18718 else 18719 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1` 18720 fi 18721 # Put the nasty error message in config.log where it belongs 18722 echo "$ZLIB_PKG_ERRORS" >&5 18723 18724 18725 save_CFLAGS=$CFLAGS 18726save_CPPFLAGS=$CPPFLAGS 18727save_LDFLAGS=$LDFLAGS 18728save_LIBS=$LIBS 18729 18730 18731 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" 18732 LDFLAGS="$LDFLAGS $ZLIB_LIBS" 18733 for ac_header in zlib.h 18734do : 18735 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18736if test "x$ac_cv_header_zlib_h" = xyes 18737then : 18738 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 18739 18740 py_check_lib_save_LIBS=$LIBS 18741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 18742printf %s "checking for gzread in -lz... " >&6; } 18743if test ${ac_cv_lib_z_gzread+y} 18744then : 18745 printf %s "(cached) " >&6 18746else $as_nop 18747 ac_check_lib_save_LIBS=$LIBS 18748LIBS="-lz $LIBS" 18749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18750/* end confdefs.h. */ 18751 18752/* Override any GCC internal prototype to avoid an error. 18753 Use char because int might match the return type of a GCC 18754 builtin and then its argument prototype would still apply. */ 18755char gzread (); 18756int 18757main (void) 18758{ 18759return gzread (); 18760 ; 18761 return 0; 18762} 18763_ACEOF 18764if ac_fn_c_try_link "$LINENO" 18765then : 18766 ac_cv_lib_z_gzread=yes 18767else $as_nop 18768 ac_cv_lib_z_gzread=no 18769fi 18770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18771 conftest$ac_exeext conftest.$ac_ext 18772LIBS=$ac_check_lib_save_LIBS 18773fi 18774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 18775printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 18776if test "x$ac_cv_lib_z_gzread" = xyes 18777then : 18778 have_zlib=yes 18779else $as_nop 18780 have_zlib=no 18781fi 18782 18783LIBS=$py_check_lib_save_LIBS 18784 18785 18786else $as_nop 18787 have_zlib=no 18788fi 18789 18790done 18791 if test "x$have_zlib" = xyes 18792then : 18793 18794 ZLIB_CFLAGS=${ZLIB_CFLAGS-""} 18795 ZLIB_LIBS=${ZLIB_LIBS-"-lz"} 18796 py_check_lib_save_LIBS=$LIBS 18797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 18798printf %s "checking for inflateCopy in -lz... " >&6; } 18799if test ${ac_cv_lib_z_inflateCopy+y} 18800then : 18801 printf %s "(cached) " >&6 18802else $as_nop 18803 ac_check_lib_save_LIBS=$LIBS 18804LIBS="-lz $LIBS" 18805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806/* end confdefs.h. */ 18807 18808/* Override any GCC internal prototype to avoid an error. 18809 Use char because int might match the return type of a GCC 18810 builtin and then its argument prototype would still apply. */ 18811char inflateCopy (); 18812int 18813main (void) 18814{ 18815return inflateCopy (); 18816 ; 18817 return 0; 18818} 18819_ACEOF 18820if ac_fn_c_try_link "$LINENO" 18821then : 18822 ac_cv_lib_z_inflateCopy=yes 18823else $as_nop 18824 ac_cv_lib_z_inflateCopy=no 18825fi 18826rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18827 conftest$ac_exeext conftest.$ac_ext 18828LIBS=$ac_check_lib_save_LIBS 18829fi 18830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 18831printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } 18832if test "x$ac_cv_lib_z_inflateCopy" = xyes 18833then : 18834 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 18835 18836fi 18837 18838LIBS=$py_check_lib_save_LIBS 18839 18840 18841fi 18842 18843CFLAGS=$save_CFLAGS 18844CPPFLAGS=$save_CPPFLAGS 18845LDFLAGS=$save_LDFLAGS 18846LIBS=$save_LIBS 18847 18848 18849 18850elif test $pkg_failed = untried; then 18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18852printf "%s\n" "no" >&6; } 18853 18854 save_CFLAGS=$CFLAGS 18855save_CPPFLAGS=$CPPFLAGS 18856save_LDFLAGS=$LDFLAGS 18857save_LIBS=$LIBS 18858 18859 18860 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" 18861 LDFLAGS="$LDFLAGS $ZLIB_LIBS" 18862 for ac_header in zlib.h 18863do : 18864 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18865if test "x$ac_cv_header_zlib_h" = xyes 18866then : 18867 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 18868 18869 py_check_lib_save_LIBS=$LIBS 18870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 18871printf %s "checking for gzread in -lz... " >&6; } 18872if test ${ac_cv_lib_z_gzread+y} 18873then : 18874 printf %s "(cached) " >&6 18875else $as_nop 18876 ac_check_lib_save_LIBS=$LIBS 18877LIBS="-lz $LIBS" 18878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18879/* end confdefs.h. */ 18880 18881/* Override any GCC internal prototype to avoid an error. 18882 Use char because int might match the return type of a GCC 18883 builtin and then its argument prototype would still apply. */ 18884char gzread (); 18885int 18886main (void) 18887{ 18888return gzread (); 18889 ; 18890 return 0; 18891} 18892_ACEOF 18893if ac_fn_c_try_link "$LINENO" 18894then : 18895 ac_cv_lib_z_gzread=yes 18896else $as_nop 18897 ac_cv_lib_z_gzread=no 18898fi 18899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18900 conftest$ac_exeext conftest.$ac_ext 18901LIBS=$ac_check_lib_save_LIBS 18902fi 18903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 18904printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 18905if test "x$ac_cv_lib_z_gzread" = xyes 18906then : 18907 have_zlib=yes 18908else $as_nop 18909 have_zlib=no 18910fi 18911 18912LIBS=$py_check_lib_save_LIBS 18913 18914 18915else $as_nop 18916 have_zlib=no 18917fi 18918 18919done 18920 if test "x$have_zlib" = xyes 18921then : 18922 18923 ZLIB_CFLAGS=${ZLIB_CFLAGS-""} 18924 ZLIB_LIBS=${ZLIB_LIBS-"-lz"} 18925 py_check_lib_save_LIBS=$LIBS 18926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 18927printf %s "checking for inflateCopy in -lz... " >&6; } 18928if test ${ac_cv_lib_z_inflateCopy+y} 18929then : 18930 printf %s "(cached) " >&6 18931else $as_nop 18932 ac_check_lib_save_LIBS=$LIBS 18933LIBS="-lz $LIBS" 18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18935/* end confdefs.h. */ 18936 18937/* Override any GCC internal prototype to avoid an error. 18938 Use char because int might match the return type of a GCC 18939 builtin and then its argument prototype would still apply. */ 18940char inflateCopy (); 18941int 18942main (void) 18943{ 18944return inflateCopy (); 18945 ; 18946 return 0; 18947} 18948_ACEOF 18949if ac_fn_c_try_link "$LINENO" 18950then : 18951 ac_cv_lib_z_inflateCopy=yes 18952else $as_nop 18953 ac_cv_lib_z_inflateCopy=no 18954fi 18955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18956 conftest$ac_exeext conftest.$ac_ext 18957LIBS=$ac_check_lib_save_LIBS 18958fi 18959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 18960printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } 18961if test "x$ac_cv_lib_z_inflateCopy" = xyes 18962then : 18963 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 18964 18965fi 18966 18967LIBS=$py_check_lib_save_LIBS 18968 18969 18970fi 18971 18972CFLAGS=$save_CFLAGS 18973CPPFLAGS=$save_CPPFLAGS 18974LDFLAGS=$save_LDFLAGS 18975LIBS=$save_LIBS 18976 18977 18978 18979else 18980 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 18981 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18983printf "%s\n" "yes" >&6; } 18984 18985 have_zlib=yes 18986 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 18987 18988 18989fi 18990 18991if test "x$have_zlib" = xyes 18992then : 18993 18994 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS" 18995 BINASCII_LIBS="$ZLIB_LIBS" 18996 18997fi 18998 18999 19000 19001 19002 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS" 19003then : 19004 19005 BZIP2_CFLAGS="-sUSE_BZIP2" 19006 BZIP2_LIBS="-sUSE_BZIP2" 19007 19008fi 19009 19010 19011 19012 19013 19014pkg_failed=no 19015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5 19016printf %s "checking for BZIP2... " >&6; } 19017 19018if test -n "$BZIP2_CFLAGS"; then 19019 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS" 19020 elif test -n "$PKG_CONFIG"; then 19021 if test -n "$PKG_CONFIG" && \ 19022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5 19023 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5 19024 ac_status=$? 19025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19026 test $ac_status = 0; }; then 19027 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null` 19028 test "x$?" != "x0" && pkg_failed=yes 19029else 19030 pkg_failed=yes 19031fi 19032 else 19033 pkg_failed=untried 19034fi 19035if test -n "$BZIP2_LIBS"; then 19036 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS" 19037 elif test -n "$PKG_CONFIG"; then 19038 if test -n "$PKG_CONFIG" && \ 19039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5 19040 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5 19041 ac_status=$? 19042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19043 test $ac_status = 0; }; then 19044 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null` 19045 test "x$?" != "x0" && pkg_failed=yes 19046else 19047 pkg_failed=yes 19048fi 19049 else 19050 pkg_failed=untried 19051fi 19052 19053 19054 19055if test $pkg_failed = yes; then 19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19057printf "%s\n" "no" >&6; } 19058 19059if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19060 _pkg_short_errors_supported=yes 19061else 19062 _pkg_short_errors_supported=no 19063fi 19064 if test $_pkg_short_errors_supported = yes; then 19065 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1` 19066 else 19067 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1` 19068 fi 19069 # Put the nasty error message in config.log where it belongs 19070 echo "$BZIP2_PKG_ERRORS" >&5 19071 19072 19073 save_CFLAGS=$CFLAGS 19074save_CPPFLAGS=$CPPFLAGS 19075save_LDFLAGS=$LDFLAGS 19076save_LIBS=$LIBS 19077 19078 19079 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS" 19080 LDFLAGS="$LDFLAGS $BZIP2_LIBS" 19081 for ac_header in bzlib.h 19082do : 19083 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 19084if test "x$ac_cv_header_bzlib_h" = xyes 19085then : 19086 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 19087 19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 19089printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; } 19090if test ${ac_cv_lib_bz2_BZ2_bzCompress+y} 19091then : 19092 printf %s "(cached) " >&6 19093else $as_nop 19094 ac_check_lib_save_LIBS=$LIBS 19095LIBS="-lbz2 $LIBS" 19096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19097/* end confdefs.h. */ 19098 19099/* Override any GCC internal prototype to avoid an error. 19100 Use char because int might match the return type of a GCC 19101 builtin and then its argument prototype would still apply. */ 19102char BZ2_bzCompress (); 19103int 19104main (void) 19105{ 19106return BZ2_bzCompress (); 19107 ; 19108 return 0; 19109} 19110_ACEOF 19111if ac_fn_c_try_link "$LINENO" 19112then : 19113 ac_cv_lib_bz2_BZ2_bzCompress=yes 19114else $as_nop 19115 ac_cv_lib_bz2_BZ2_bzCompress=no 19116fi 19117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19118 conftest$ac_exeext conftest.$ac_ext 19119LIBS=$ac_check_lib_save_LIBS 19120fi 19121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 19122printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 19123if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes 19124then : 19125 have_bzip2=yes 19126else $as_nop 19127 have_bzip2=no 19128fi 19129 19130 19131else $as_nop 19132 have_bzip2=no 19133fi 19134 19135done 19136 if test "x$have_bzip2" = xyes 19137then : 19138 19139 BZIP2_CFLAGS=${BZIP2_CFLAGS-""} 19140 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"} 19141 19142fi 19143 19144CFLAGS=$save_CFLAGS 19145CPPFLAGS=$save_CPPFLAGS 19146LDFLAGS=$save_LDFLAGS 19147LIBS=$save_LIBS 19148 19149 19150 19151elif test $pkg_failed = untried; then 19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19153printf "%s\n" "no" >&6; } 19154 19155 save_CFLAGS=$CFLAGS 19156save_CPPFLAGS=$CPPFLAGS 19157save_LDFLAGS=$LDFLAGS 19158save_LIBS=$LIBS 19159 19160 19161 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS" 19162 LDFLAGS="$LDFLAGS $BZIP2_LIBS" 19163 for ac_header in bzlib.h 19164do : 19165 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 19166if test "x$ac_cv_header_bzlib_h" = xyes 19167then : 19168 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 19169 19170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 19171printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; } 19172if test ${ac_cv_lib_bz2_BZ2_bzCompress+y} 19173then : 19174 printf %s "(cached) " >&6 19175else $as_nop 19176 ac_check_lib_save_LIBS=$LIBS 19177LIBS="-lbz2 $LIBS" 19178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19179/* end confdefs.h. */ 19180 19181/* Override any GCC internal prototype to avoid an error. 19182 Use char because int might match the return type of a GCC 19183 builtin and then its argument prototype would still apply. */ 19184char BZ2_bzCompress (); 19185int 19186main (void) 19187{ 19188return BZ2_bzCompress (); 19189 ; 19190 return 0; 19191} 19192_ACEOF 19193if ac_fn_c_try_link "$LINENO" 19194then : 19195 ac_cv_lib_bz2_BZ2_bzCompress=yes 19196else $as_nop 19197 ac_cv_lib_bz2_BZ2_bzCompress=no 19198fi 19199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19200 conftest$ac_exeext conftest.$ac_ext 19201LIBS=$ac_check_lib_save_LIBS 19202fi 19203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 19204printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 19205if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes 19206then : 19207 have_bzip2=yes 19208else $as_nop 19209 have_bzip2=no 19210fi 19211 19212 19213else $as_nop 19214 have_bzip2=no 19215fi 19216 19217done 19218 if test "x$have_bzip2" = xyes 19219then : 19220 19221 BZIP2_CFLAGS=${BZIP2_CFLAGS-""} 19222 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"} 19223 19224fi 19225 19226CFLAGS=$save_CFLAGS 19227CPPFLAGS=$save_CPPFLAGS 19228LDFLAGS=$save_LDFLAGS 19229LIBS=$save_LIBS 19230 19231 19232 19233else 19234 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS 19235 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS 19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19237printf "%s\n" "yes" >&6; } 19238 have_bzip2=yes 19239fi 19240 19241 19242pkg_failed=no 19243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBLZMA" >&5 19244printf %s "checking for LIBLZMA... " >&6; } 19245 19246if test -n "$LIBLZMA_CFLAGS"; then 19247 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS" 19248 elif test -n "$PKG_CONFIG"; then 19249 if test -n "$PKG_CONFIG" && \ 19250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 19251 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 19252 ac_status=$? 19253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19254 test $ac_status = 0; }; then 19255 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null` 19256 test "x$?" != "x0" && pkg_failed=yes 19257else 19258 pkg_failed=yes 19259fi 19260 else 19261 pkg_failed=untried 19262fi 19263if test -n "$LIBLZMA_LIBS"; then 19264 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS" 19265 elif test -n "$PKG_CONFIG"; then 19266 if test -n "$PKG_CONFIG" && \ 19267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 19268 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 19269 ac_status=$? 19270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19271 test $ac_status = 0; }; then 19272 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null` 19273 test "x$?" != "x0" && pkg_failed=yes 19274else 19275 pkg_failed=yes 19276fi 19277 else 19278 pkg_failed=untried 19279fi 19280 19281 19282 19283if test $pkg_failed = yes; then 19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19285printf "%s\n" "no" >&6; } 19286 19287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19288 _pkg_short_errors_supported=yes 19289else 19290 _pkg_short_errors_supported=no 19291fi 19292 if test $_pkg_short_errors_supported = yes; then 19293 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1` 19294 else 19295 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1` 19296 fi 19297 # Put the nasty error message in config.log where it belongs 19298 echo "$LIBLZMA_PKG_ERRORS" >&5 19299 19300 19301 save_CFLAGS=$CFLAGS 19302save_CPPFLAGS=$CPPFLAGS 19303save_LDFLAGS=$LDFLAGS 19304save_LIBS=$LIBS 19305 19306 19307 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS" 19308 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS" 19309 for ac_header in lzma.h 19310do : 19311 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 19312if test "x$ac_cv_header_lzma_h" = xyes 19313then : 19314 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 19315 19316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5 19317printf %s "checking for lzma_easy_encoder in -llzma... " >&6; } 19318if test ${ac_cv_lib_lzma_lzma_easy_encoder+y} 19319then : 19320 printf %s "(cached) " >&6 19321else $as_nop 19322 ac_check_lib_save_LIBS=$LIBS 19323LIBS="-llzma $LIBS" 19324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19325/* end confdefs.h. */ 19326 19327/* Override any GCC internal prototype to avoid an error. 19328 Use char because int might match the return type of a GCC 19329 builtin and then its argument prototype would still apply. */ 19330char lzma_easy_encoder (); 19331int 19332main (void) 19333{ 19334return lzma_easy_encoder (); 19335 ; 19336 return 0; 19337} 19338_ACEOF 19339if ac_fn_c_try_link "$LINENO" 19340then : 19341 ac_cv_lib_lzma_lzma_easy_encoder=yes 19342else $as_nop 19343 ac_cv_lib_lzma_lzma_easy_encoder=no 19344fi 19345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19346 conftest$ac_exeext conftest.$ac_ext 19347LIBS=$ac_check_lib_save_LIBS 19348fi 19349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5 19350printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; } 19351if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes 19352then : 19353 have_liblzma=yes 19354else $as_nop 19355 have_liblzma=no 19356fi 19357 19358 19359else $as_nop 19360 have_liblzma=no 19361fi 19362 19363done 19364 if test "x$have_liblzma" = xyes 19365then : 19366 19367 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""} 19368 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"} 19369 19370fi 19371 19372CFLAGS=$save_CFLAGS 19373CPPFLAGS=$save_CPPFLAGS 19374LDFLAGS=$save_LDFLAGS 19375LIBS=$save_LIBS 19376 19377 19378 19379elif test $pkg_failed = untried; then 19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19381printf "%s\n" "no" >&6; } 19382 19383 save_CFLAGS=$CFLAGS 19384save_CPPFLAGS=$CPPFLAGS 19385save_LDFLAGS=$LDFLAGS 19386save_LIBS=$LIBS 19387 19388 19389 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS" 19390 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS" 19391 for ac_header in lzma.h 19392do : 19393 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 19394if test "x$ac_cv_header_lzma_h" = xyes 19395then : 19396 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 19397 19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5 19399printf %s "checking for lzma_easy_encoder in -llzma... " >&6; } 19400if test ${ac_cv_lib_lzma_lzma_easy_encoder+y} 19401then : 19402 printf %s "(cached) " >&6 19403else $as_nop 19404 ac_check_lib_save_LIBS=$LIBS 19405LIBS="-llzma $LIBS" 19406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19407/* end confdefs.h. */ 19408 19409/* Override any GCC internal prototype to avoid an error. 19410 Use char because int might match the return type of a GCC 19411 builtin and then its argument prototype would still apply. */ 19412char lzma_easy_encoder (); 19413int 19414main (void) 19415{ 19416return lzma_easy_encoder (); 19417 ; 19418 return 0; 19419} 19420_ACEOF 19421if ac_fn_c_try_link "$LINENO" 19422then : 19423 ac_cv_lib_lzma_lzma_easy_encoder=yes 19424else $as_nop 19425 ac_cv_lib_lzma_lzma_easy_encoder=no 19426fi 19427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19428 conftest$ac_exeext conftest.$ac_ext 19429LIBS=$ac_check_lib_save_LIBS 19430fi 19431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5 19432printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; } 19433if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes 19434then : 19435 have_liblzma=yes 19436else $as_nop 19437 have_liblzma=no 19438fi 19439 19440 19441else $as_nop 19442 have_liblzma=no 19443fi 19444 19445done 19446 if test "x$have_liblzma" = xyes 19447then : 19448 19449 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""} 19450 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"} 19451 19452fi 19453 19454CFLAGS=$save_CFLAGS 19455CPPFLAGS=$save_CPPFLAGS 19456LDFLAGS=$save_LDFLAGS 19457LIBS=$save_LIBS 19458 19459 19460 19461else 19462 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS 19463 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS 19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19465printf "%s\n" "yes" >&6; } 19466 have_liblzma=yes 19467fi 19468 19469 19470 19471 19472 19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 19474printf %s "checking for hstrerror... " >&6; } 19475if test ${ac_cv_func_hstrerror+y} 19476then : 19477 printf %s "(cached) " >&6 19478else $as_nop 19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19480/* end confdefs.h. */ 19481#include <netdb.h> 19482int 19483main (void) 19484{ 19485void *x=hstrerror 19486 ; 19487 return 0; 19488} 19489_ACEOF 19490if ac_fn_c_try_compile "$LINENO" 19491then : 19492 ac_cv_func_hstrerror=yes 19493else $as_nop 19494 ac_cv_func_hstrerror=no 19495fi 19496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19497 19498fi 19499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5 19500printf "%s\n" "$ac_cv_func_hstrerror" >&6; } 19501 if test "x$ac_cv_func_hstrerror" = xyes 19502then : 19503 19504printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h 19505 19506fi 19507 19508 19509 19510 19511 19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5 19513printf %s "checking for getservbyname... " >&6; } 19514if test ${ac_cv_func_getservbyname+y} 19515then : 19516 printf %s "(cached) " >&6 19517else $as_nop 19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19519/* end confdefs.h. */ 19520#include <netdb.h> 19521int 19522main (void) 19523{ 19524void *x=getservbyname 19525 ; 19526 return 0; 19527} 19528_ACEOF 19529if ac_fn_c_try_compile "$LINENO" 19530then : 19531 ac_cv_func_getservbyname=yes 19532else $as_nop 19533 ac_cv_func_getservbyname=no 19534fi 19535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19536 19537fi 19538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5 19539printf "%s\n" "$ac_cv_func_getservbyname" >&6; } 19540 if test "x$ac_cv_func_getservbyname" = xyes 19541then : 19542 19543printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 19544 19545fi 19546 19547 19548 19549 19550 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5 19552printf %s "checking for getservbyport... " >&6; } 19553if test ${ac_cv_func_getservbyport+y} 19554then : 19555 printf %s "(cached) " >&6 19556else $as_nop 19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19558/* end confdefs.h. */ 19559#include <netdb.h> 19560int 19561main (void) 19562{ 19563void *x=getservbyport 19564 ; 19565 return 0; 19566} 19567_ACEOF 19568if ac_fn_c_try_compile "$LINENO" 19569then : 19570 ac_cv_func_getservbyport=yes 19571else $as_nop 19572 ac_cv_func_getservbyport=no 19573fi 19574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19575 19576fi 19577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5 19578printf "%s\n" "$ac_cv_func_getservbyport" >&6; } 19579 if test "x$ac_cv_func_getservbyport" = xyes 19580then : 19581 19582printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h 19583 19584fi 19585 19586 19587 19588 19589 19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 19591printf %s "checking for gethostbyname... " >&6; } 19592if test ${ac_cv_func_gethostbyname+y} 19593then : 19594 printf %s "(cached) " >&6 19595else $as_nop 19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19597/* end confdefs.h. */ 19598#include <netdb.h> 19599int 19600main (void) 19601{ 19602void *x=gethostbyname 19603 ; 19604 return 0; 19605} 19606_ACEOF 19607if ac_fn_c_try_compile "$LINENO" 19608then : 19609 ac_cv_func_gethostbyname=yes 19610else $as_nop 19611 ac_cv_func_gethostbyname=no 19612fi 19613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19614 19615fi 19616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5 19617printf "%s\n" "$ac_cv_func_gethostbyname" >&6; } 19618 if test "x$ac_cv_func_gethostbyname" = xyes 19619then : 19620 19621printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 19622 19623fi 19624 19625 19626 19627 19628 19629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5 19630printf %s "checking for gethostbyaddr... " >&6; } 19631if test ${ac_cv_func_gethostbyaddr+y} 19632then : 19633 printf %s "(cached) " >&6 19634else $as_nop 19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19636/* end confdefs.h. */ 19637#include <netdb.h> 19638int 19639main (void) 19640{ 19641void *x=gethostbyaddr 19642 ; 19643 return 0; 19644} 19645_ACEOF 19646if ac_fn_c_try_compile "$LINENO" 19647then : 19648 ac_cv_func_gethostbyaddr=yes 19649else $as_nop 19650 ac_cv_func_gethostbyaddr=no 19651fi 19652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19653 19654fi 19655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5 19656printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; } 19657 if test "x$ac_cv_func_gethostbyaddr" = xyes 19658then : 19659 19660printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h 19661 19662fi 19663 19664 19665 19666 19667 19668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5 19669printf %s "checking for getprotobyname... " >&6; } 19670if test ${ac_cv_func_getprotobyname+y} 19671then : 19672 printf %s "(cached) " >&6 19673else $as_nop 19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19675/* end confdefs.h. */ 19676#include <netdb.h> 19677int 19678main (void) 19679{ 19680void *x=getprotobyname 19681 ; 19682 return 0; 19683} 19684_ACEOF 19685if ac_fn_c_try_compile "$LINENO" 19686then : 19687 ac_cv_func_getprotobyname=yes 19688else $as_nop 19689 ac_cv_func_getprotobyname=no 19690fi 19691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19692 19693fi 19694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5 19695printf "%s\n" "$ac_cv_func_getprotobyname" >&6; } 19696 if test "x$ac_cv_func_getprotobyname" = xyes 19697then : 19698 19699printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h 19700 19701fi 19702 19703 19704 19705 19706 19707 19708 19709 19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 19711printf %s "checking for inet_aton... " >&6; } 19712if test ${ac_cv_func_inet_aton+y} 19713then : 19714 printf %s "(cached) " >&6 19715else $as_nop 19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19717/* end confdefs.h. */ 19718 19719#include <sys/types.h> 19720#include <sys/socket.h> 19721#include <netinet/in.h> 19722#include <arpa/inet.h> 19723 19724int 19725main (void) 19726{ 19727void *x=inet_aton 19728 ; 19729 return 0; 19730} 19731_ACEOF 19732if ac_fn_c_try_compile "$LINENO" 19733then : 19734 ac_cv_func_inet_aton=yes 19735else $as_nop 19736 ac_cv_func_inet_aton=no 19737fi 19738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19739 19740fi 19741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5 19742printf "%s\n" "$ac_cv_func_inet_aton" >&6; } 19743 if test "x$ac_cv_func_inet_aton" = xyes 19744then : 19745 19746printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 19747 19748fi 19749 19750 19751 19752 19753 19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5 19755printf %s "checking for inet_ntoa... " >&6; } 19756if test ${ac_cv_func_inet_ntoa+y} 19757then : 19758 printf %s "(cached) " >&6 19759else $as_nop 19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19761/* end confdefs.h. */ 19762 19763#include <sys/types.h> 19764#include <sys/socket.h> 19765#include <netinet/in.h> 19766#include <arpa/inet.h> 19767 19768int 19769main (void) 19770{ 19771void *x=inet_ntoa 19772 ; 19773 return 0; 19774} 19775_ACEOF 19776if ac_fn_c_try_compile "$LINENO" 19777then : 19778 ac_cv_func_inet_ntoa=yes 19779else $as_nop 19780 ac_cv_func_inet_ntoa=no 19781fi 19782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19783 19784fi 19785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5 19786printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; } 19787 if test "x$ac_cv_func_inet_ntoa" = xyes 19788then : 19789 19790printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h 19791 19792fi 19793 19794 19795 19796 19797 19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 19799printf %s "checking for inet_pton... " >&6; } 19800if test ${ac_cv_func_inet_pton+y} 19801then : 19802 printf %s "(cached) " >&6 19803else $as_nop 19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19805/* end confdefs.h. */ 19806 19807#include <sys/types.h> 19808#include <sys/socket.h> 19809#include <netinet/in.h> 19810#include <arpa/inet.h> 19811 19812int 19813main (void) 19814{ 19815void *x=inet_pton 19816 ; 19817 return 0; 19818} 19819_ACEOF 19820if ac_fn_c_try_compile "$LINENO" 19821then : 19822 ac_cv_func_inet_pton=yes 19823else $as_nop 19824 ac_cv_func_inet_pton=no 19825fi 19826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19827 19828fi 19829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5 19830printf "%s\n" "$ac_cv_func_inet_pton" >&6; } 19831 if test "x$ac_cv_func_inet_pton" = xyes 19832then : 19833 19834printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 19835 19836fi 19837 19838 19839 19840 19841 19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5 19843printf %s "checking for getpeername... " >&6; } 19844if test ${ac_cv_func_getpeername+y} 19845then : 19846 printf %s "(cached) " >&6 19847else $as_nop 19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19849/* end confdefs.h. */ 19850 19851#include <sys/types.h> 19852#include <sys/socket.h> 19853#include <netinet/in.h> 19854#include <arpa/inet.h> 19855 19856int 19857main (void) 19858{ 19859void *x=getpeername 19860 ; 19861 return 0; 19862} 19863_ACEOF 19864if ac_fn_c_try_compile "$LINENO" 19865then : 19866 ac_cv_func_getpeername=yes 19867else $as_nop 19868 ac_cv_func_getpeername=no 19869fi 19870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19871 19872fi 19873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5 19874printf "%s\n" "$ac_cv_func_getpeername" >&6; } 19875 if test "x$ac_cv_func_getpeername" = xyes 19876then : 19877 19878printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 19879 19880fi 19881 19882 19883 19884 19885 19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5 19887printf %s "checking for getsockname... " >&6; } 19888if test ${ac_cv_func_getsockname+y} 19889then : 19890 printf %s "(cached) " >&6 19891else $as_nop 19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19893/* end confdefs.h. */ 19894 19895#include <sys/types.h> 19896#include <sys/socket.h> 19897#include <netinet/in.h> 19898#include <arpa/inet.h> 19899 19900int 19901main (void) 19902{ 19903void *x=getsockname 19904 ; 19905 return 0; 19906} 19907_ACEOF 19908if ac_fn_c_try_compile "$LINENO" 19909then : 19910 ac_cv_func_getsockname=yes 19911else $as_nop 19912 ac_cv_func_getsockname=no 19913fi 19914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19915 19916fi 19917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5 19918printf "%s\n" "$ac_cv_func_getsockname" >&6; } 19919 if test "x$ac_cv_func_getsockname" = xyes 19920then : 19921 19922printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h 19923 19924fi 19925 19926 19927 19928 19929 19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5 19931printf %s "checking for accept... " >&6; } 19932if test ${ac_cv_func_accept+y} 19933then : 19934 printf %s "(cached) " >&6 19935else $as_nop 19936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19937/* end confdefs.h. */ 19938 19939#include <sys/types.h> 19940#include <sys/socket.h> 19941#include <netinet/in.h> 19942#include <arpa/inet.h> 19943 19944int 19945main (void) 19946{ 19947void *x=accept 19948 ; 19949 return 0; 19950} 19951_ACEOF 19952if ac_fn_c_try_compile "$LINENO" 19953then : 19954 ac_cv_func_accept=yes 19955else $as_nop 19956 ac_cv_func_accept=no 19957fi 19958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19959 19960fi 19961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5 19962printf "%s\n" "$ac_cv_func_accept" >&6; } 19963 if test "x$ac_cv_func_accept" = xyes 19964then : 19965 19966printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h 19967 19968fi 19969 19970 19971 19972 19973 19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5 19975printf %s "checking for bind... " >&6; } 19976if test ${ac_cv_func_bind+y} 19977then : 19978 printf %s "(cached) " >&6 19979else $as_nop 19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19981/* end confdefs.h. */ 19982 19983#include <sys/types.h> 19984#include <sys/socket.h> 19985#include <netinet/in.h> 19986#include <arpa/inet.h> 19987 19988int 19989main (void) 19990{ 19991void *x=bind 19992 ; 19993 return 0; 19994} 19995_ACEOF 19996if ac_fn_c_try_compile "$LINENO" 19997then : 19998 ac_cv_func_bind=yes 19999else $as_nop 20000 ac_cv_func_bind=no 20001fi 20002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20003 20004fi 20005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5 20006printf "%s\n" "$ac_cv_func_bind" >&6; } 20007 if test "x$ac_cv_func_bind" = xyes 20008then : 20009 20010printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h 20011 20012fi 20013 20014 20015 20016 20017 20018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5 20019printf %s "checking for connect... " >&6; } 20020if test ${ac_cv_func_connect+y} 20021then : 20022 printf %s "(cached) " >&6 20023else $as_nop 20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20025/* end confdefs.h. */ 20026 20027#include <sys/types.h> 20028#include <sys/socket.h> 20029#include <netinet/in.h> 20030#include <arpa/inet.h> 20031 20032int 20033main (void) 20034{ 20035void *x=connect 20036 ; 20037 return 0; 20038} 20039_ACEOF 20040if ac_fn_c_try_compile "$LINENO" 20041then : 20042 ac_cv_func_connect=yes 20043else $as_nop 20044 ac_cv_func_connect=no 20045fi 20046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20047 20048fi 20049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5 20050printf "%s\n" "$ac_cv_func_connect" >&6; } 20051 if test "x$ac_cv_func_connect" = xyes 20052then : 20053 20054printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h 20055 20056fi 20057 20058 20059 20060 20061 20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5 20063printf %s "checking for listen... " >&6; } 20064if test ${ac_cv_func_listen+y} 20065then : 20066 printf %s "(cached) " >&6 20067else $as_nop 20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20069/* end confdefs.h. */ 20070 20071#include <sys/types.h> 20072#include <sys/socket.h> 20073#include <netinet/in.h> 20074#include <arpa/inet.h> 20075 20076int 20077main (void) 20078{ 20079void *x=listen 20080 ; 20081 return 0; 20082} 20083_ACEOF 20084if ac_fn_c_try_compile "$LINENO" 20085then : 20086 ac_cv_func_listen=yes 20087else $as_nop 20088 ac_cv_func_listen=no 20089fi 20090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20091 20092fi 20093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5 20094printf "%s\n" "$ac_cv_func_listen" >&6; } 20095 if test "x$ac_cv_func_listen" = xyes 20096then : 20097 20098printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h 20099 20100fi 20101 20102 20103 20104 20105 20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5 20107printf %s "checking for recvfrom... " >&6; } 20108if test ${ac_cv_func_recvfrom+y} 20109then : 20110 printf %s "(cached) " >&6 20111else $as_nop 20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20113/* end confdefs.h. */ 20114 20115#include <sys/types.h> 20116#include <sys/socket.h> 20117#include <netinet/in.h> 20118#include <arpa/inet.h> 20119 20120int 20121main (void) 20122{ 20123void *x=recvfrom 20124 ; 20125 return 0; 20126} 20127_ACEOF 20128if ac_fn_c_try_compile "$LINENO" 20129then : 20130 ac_cv_func_recvfrom=yes 20131else $as_nop 20132 ac_cv_func_recvfrom=no 20133fi 20134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20135 20136fi 20137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5 20138printf "%s\n" "$ac_cv_func_recvfrom" >&6; } 20139 if test "x$ac_cv_func_recvfrom" = xyes 20140then : 20141 20142printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h 20143 20144fi 20145 20146 20147 20148 20149 20150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5 20151printf %s "checking for sendto... " >&6; } 20152if test ${ac_cv_func_sendto+y} 20153then : 20154 printf %s "(cached) " >&6 20155else $as_nop 20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20157/* end confdefs.h. */ 20158 20159#include <sys/types.h> 20160#include <sys/socket.h> 20161#include <netinet/in.h> 20162#include <arpa/inet.h> 20163 20164int 20165main (void) 20166{ 20167void *x=sendto 20168 ; 20169 return 0; 20170} 20171_ACEOF 20172if ac_fn_c_try_compile "$LINENO" 20173then : 20174 ac_cv_func_sendto=yes 20175else $as_nop 20176 ac_cv_func_sendto=no 20177fi 20178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20179 20180fi 20181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5 20182printf "%s\n" "$ac_cv_func_sendto" >&6; } 20183 if test "x$ac_cv_func_sendto" = xyes 20184then : 20185 20186printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h 20187 20188fi 20189 20190 20191 20192 20193 20194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 20195printf %s "checking for setsockopt... " >&6; } 20196if test ${ac_cv_func_setsockopt+y} 20197then : 20198 printf %s "(cached) " >&6 20199else $as_nop 20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20201/* end confdefs.h. */ 20202 20203#include <sys/types.h> 20204#include <sys/socket.h> 20205#include <netinet/in.h> 20206#include <arpa/inet.h> 20207 20208int 20209main (void) 20210{ 20211void *x=setsockopt 20212 ; 20213 return 0; 20214} 20215_ACEOF 20216if ac_fn_c_try_compile "$LINENO" 20217then : 20218 ac_cv_func_setsockopt=yes 20219else $as_nop 20220 ac_cv_func_setsockopt=no 20221fi 20222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20223 20224fi 20225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5 20226printf "%s\n" "$ac_cv_func_setsockopt" >&6; } 20227 if test "x$ac_cv_func_setsockopt" = xyes 20228then : 20229 20230printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 20231 20232fi 20233 20234 20235 20236 20237 20238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 20239printf %s "checking for socket... " >&6; } 20240if test ${ac_cv_func_socket+y} 20241then : 20242 printf %s "(cached) " >&6 20243else $as_nop 20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20245/* end confdefs.h. */ 20246 20247#include <sys/types.h> 20248#include <sys/socket.h> 20249#include <netinet/in.h> 20250#include <arpa/inet.h> 20251 20252int 20253main (void) 20254{ 20255void *x=socket 20256 ; 20257 return 0; 20258} 20259_ACEOF 20260if ac_fn_c_try_compile "$LINENO" 20261then : 20262 ac_cv_func_socket=yes 20263else $as_nop 20264 ac_cv_func_socket=no 20265fi 20266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20267 20268fi 20269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5 20270printf "%s\n" "$ac_cv_func_socket" >&6; } 20271 if test "x$ac_cv_func_socket" = xyes 20272then : 20273 20274printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 20275 20276fi 20277 20278 20279 20280 20281# On some systems, setgroups is in unistd.h, on others, in grp.h 20282 20283 20284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 20285printf %s "checking for setgroups... " >&6; } 20286if test ${ac_cv_func_setgroups+y} 20287then : 20288 printf %s "(cached) " >&6 20289else $as_nop 20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20291/* end confdefs.h. */ 20292 20293#include <unistd.h> 20294#ifdef HAVE_GRP_H 20295#include <grp.h> 20296#endif 20297 20298int 20299main (void) 20300{ 20301void *x=setgroups 20302 ; 20303 return 0; 20304} 20305_ACEOF 20306if ac_fn_c_try_compile "$LINENO" 20307then : 20308 ac_cv_func_setgroups=yes 20309else $as_nop 20310 ac_cv_func_setgroups=no 20311fi 20312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20313 20314fi 20315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5 20316printf "%s\n" "$ac_cv_func_setgroups" >&6; } 20317 if test "x$ac_cv_func_setgroups" = xyes 20318then : 20319 20320printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h 20321 20322fi 20323 20324 20325 20326 20327# check for openpty, login_tty, and forkpty 20328 20329 20330 for ac_func in openpty 20331do : 20332 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 20333if test "x$ac_cv_func_openpty" = xyes 20334then : 20335 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 20336 20337else $as_nop 20338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 20339printf %s "checking for openpty in -lutil... " >&6; } 20340if test ${ac_cv_lib_util_openpty+y} 20341then : 20342 printf %s "(cached) " >&6 20343else $as_nop 20344 ac_check_lib_save_LIBS=$LIBS 20345LIBS="-lutil $LIBS" 20346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20347/* end confdefs.h. */ 20348 20349/* Override any GCC internal prototype to avoid an error. 20350 Use char because int might match the return type of a GCC 20351 builtin and then its argument prototype would still apply. */ 20352char openpty (); 20353int 20354main (void) 20355{ 20356return openpty (); 20357 ; 20358 return 0; 20359} 20360_ACEOF 20361if ac_fn_c_try_link "$LINENO" 20362then : 20363 ac_cv_lib_util_openpty=yes 20364else $as_nop 20365 ac_cv_lib_util_openpty=no 20366fi 20367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20368 conftest$ac_exeext conftest.$ac_ext 20369LIBS=$ac_check_lib_save_LIBS 20370fi 20371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 20372printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } 20373if test "x$ac_cv_lib_util_openpty" = xyes 20374then : 20375 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 20376 LIBS="$LIBS -lutil" 20377else $as_nop 20378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 20379printf %s "checking for openpty in -lbsd... " >&6; } 20380if test ${ac_cv_lib_bsd_openpty+y} 20381then : 20382 printf %s "(cached) " >&6 20383else $as_nop 20384 ac_check_lib_save_LIBS=$LIBS 20385LIBS="-lbsd $LIBS" 20386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20387/* end confdefs.h. */ 20388 20389/* Override any GCC internal prototype to avoid an error. 20390 Use char because int might match the return type of a GCC 20391 builtin and then its argument prototype would still apply. */ 20392char openpty (); 20393int 20394main (void) 20395{ 20396return openpty (); 20397 ; 20398 return 0; 20399} 20400_ACEOF 20401if ac_fn_c_try_link "$LINENO" 20402then : 20403 ac_cv_lib_bsd_openpty=yes 20404else $as_nop 20405 ac_cv_lib_bsd_openpty=no 20406fi 20407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20408 conftest$ac_exeext conftest.$ac_ext 20409LIBS=$ac_check_lib_save_LIBS 20410fi 20411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 20412printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; } 20413if test "x$ac_cv_lib_bsd_openpty" = xyes 20414then : 20415 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 20416 LIBS="$LIBS -lbsd" 20417fi 20418 20419 20420fi 20421 20422 20423fi 20424 20425done 20426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5 20427printf %s "checking for library containing login_tty... " >&6; } 20428if test ${ac_cv_search_login_tty+y} 20429then : 20430 printf %s "(cached) " >&6 20431else $as_nop 20432 ac_func_search_save_LIBS=$LIBS 20433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20434/* end confdefs.h. */ 20435 20436/* Override any GCC internal prototype to avoid an error. 20437 Use char because int might match the return type of a GCC 20438 builtin and then its argument prototype would still apply. */ 20439char login_tty (); 20440int 20441main (void) 20442{ 20443return login_tty (); 20444 ; 20445 return 0; 20446} 20447_ACEOF 20448for ac_lib in '' util 20449do 20450 if test -z "$ac_lib"; then 20451 ac_res="none required" 20452 else 20453 ac_res=-l$ac_lib 20454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20455 fi 20456 if ac_fn_c_try_link "$LINENO" 20457then : 20458 ac_cv_search_login_tty=$ac_res 20459fi 20460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20461 conftest$ac_exeext 20462 if test ${ac_cv_search_login_tty+y} 20463then : 20464 break 20465fi 20466done 20467if test ${ac_cv_search_login_tty+y} 20468then : 20469 20470else $as_nop 20471 ac_cv_search_login_tty=no 20472fi 20473rm conftest.$ac_ext 20474LIBS=$ac_func_search_save_LIBS 20475fi 20476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5 20477printf "%s\n" "$ac_cv_search_login_tty" >&6; } 20478ac_res=$ac_cv_search_login_tty 20479if test "$ac_res" != no 20480then : 20481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20482 20483printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h 20484 20485 20486fi 20487 20488 20489 for ac_func in forkpty 20490do : 20491 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 20492if test "x$ac_cv_func_forkpty" = xyes 20493then : 20494 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 20495 20496else $as_nop 20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 20498printf %s "checking for forkpty in -lutil... " >&6; } 20499if test ${ac_cv_lib_util_forkpty+y} 20500then : 20501 printf %s "(cached) " >&6 20502else $as_nop 20503 ac_check_lib_save_LIBS=$LIBS 20504LIBS="-lutil $LIBS" 20505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20506/* end confdefs.h. */ 20507 20508/* Override any GCC internal prototype to avoid an error. 20509 Use char because int might match the return type of a GCC 20510 builtin and then its argument prototype would still apply. */ 20511char forkpty (); 20512int 20513main (void) 20514{ 20515return forkpty (); 20516 ; 20517 return 0; 20518} 20519_ACEOF 20520if ac_fn_c_try_link "$LINENO" 20521then : 20522 ac_cv_lib_util_forkpty=yes 20523else $as_nop 20524 ac_cv_lib_util_forkpty=no 20525fi 20526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20527 conftest$ac_exeext conftest.$ac_ext 20528LIBS=$ac_check_lib_save_LIBS 20529fi 20530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 20531printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; } 20532if test "x$ac_cv_lib_util_forkpty" = xyes 20533then : 20534 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 20535 LIBS="$LIBS -lutil" 20536else $as_nop 20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 20538printf %s "checking for forkpty in -lbsd... " >&6; } 20539if test ${ac_cv_lib_bsd_forkpty+y} 20540then : 20541 printf %s "(cached) " >&6 20542else $as_nop 20543 ac_check_lib_save_LIBS=$LIBS 20544LIBS="-lbsd $LIBS" 20545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20546/* end confdefs.h. */ 20547 20548/* Override any GCC internal prototype to avoid an error. 20549 Use char because int might match the return type of a GCC 20550 builtin and then its argument prototype would still apply. */ 20551char forkpty (); 20552int 20553main (void) 20554{ 20555return forkpty (); 20556 ; 20557 return 0; 20558} 20559_ACEOF 20560if ac_fn_c_try_link "$LINENO" 20561then : 20562 ac_cv_lib_bsd_forkpty=yes 20563else $as_nop 20564 ac_cv_lib_bsd_forkpty=no 20565fi 20566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20567 conftest$ac_exeext conftest.$ac_ext 20568LIBS=$ac_check_lib_save_LIBS 20569fi 20570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 20571printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; } 20572if test "x$ac_cv_lib_bsd_forkpty" = xyes 20573then : 20574 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 20575 LIBS="$LIBS -lbsd" 20576fi 20577 20578 20579fi 20580 20581 20582fi 20583 20584done 20585 20586# check for long file support functions 20587ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64" 20588if test "x$ac_cv_func_fseek64" = xyes 20589then : 20590 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h 20591 20592fi 20593ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" 20594if test "x$ac_cv_func_fseeko" = xyes 20595then : 20596 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 20597 20598fi 20599ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs" 20600if test "x$ac_cv_func_fstatvfs" = xyes 20601then : 20602 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h 20603 20604fi 20605ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64" 20606if test "x$ac_cv_func_ftell64" = xyes 20607then : 20608 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h 20609 20610fi 20611ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" 20612if test "x$ac_cv_func_ftello" = xyes 20613then : 20614 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h 20615 20616fi 20617ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" 20618if test "x$ac_cv_func_statvfs" = xyes 20619then : 20620 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h 20621 20622fi 20623 20624 20625ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 20626if test "x$ac_cv_func_dup2" = xyes 20627then : 20628 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h 20629 20630else $as_nop 20631 case " $LIBOBJS " in 20632 *" dup2.$ac_objext "* ) ;; 20633 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 20634 ;; 20635esac 20636 20637fi 20638 20639 20640 for ac_func in getpgrp 20641do : 20642 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 20643if test "x$ac_cv_func_getpgrp" = xyes 20644then : 20645 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h 20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20647/* end confdefs.h. */ 20648#include <unistd.h> 20649int 20650main (void) 20651{ 20652getpgrp(0); 20653 ; 20654 return 0; 20655} 20656_ACEOF 20657if ac_fn_c_try_compile "$LINENO" 20658then : 20659 20660printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 20661 20662fi 20663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20664 20665fi 20666 20667done 20668 20669 for ac_func in setpgrp 20670do : 20671 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 20672if test "x$ac_cv_func_setpgrp" = xyes 20673then : 20674 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h 20675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20676/* end confdefs.h. */ 20677#include <unistd.h> 20678int 20679main (void) 20680{ 20681setpgrp(0,0); 20682 ; 20683 return 0; 20684} 20685_ACEOF 20686if ac_fn_c_try_compile "$LINENO" 20687then : 20688 20689printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 20690 20691fi 20692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20693 20694fi 20695 20696done 20697 20698 20699 20700 20701pkg_failed=no 20702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBCRYPT" >&5 20703printf %s "checking for LIBCRYPT... " >&6; } 20704 20705if test -n "$LIBCRYPT_CFLAGS"; then 20706 pkg_cv_LIBCRYPT_CFLAGS="$LIBCRYPT_CFLAGS" 20707 elif test -n "$PKG_CONFIG"; then 20708 if test -n "$PKG_CONFIG" && \ 20709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxcrypt >= 3.1.1\""; } >&5 20710 ($PKG_CONFIG --exists --print-errors "libxcrypt >= 3.1.1") 2>&5 20711 ac_status=$? 20712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20713 test $ac_status = 0; }; then 20714 pkg_cv_LIBCRYPT_CFLAGS=`$PKG_CONFIG --cflags "libxcrypt >= 3.1.1" 2>/dev/null` 20715 test "x$?" != "x0" && pkg_failed=yes 20716else 20717 pkg_failed=yes 20718fi 20719 else 20720 pkg_failed=untried 20721fi 20722if test -n "$LIBCRYPT_LIBS"; then 20723 pkg_cv_LIBCRYPT_LIBS="$LIBCRYPT_LIBS" 20724 elif test -n "$PKG_CONFIG"; then 20725 if test -n "$PKG_CONFIG" && \ 20726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxcrypt >= 3.1.1\""; } >&5 20727 ($PKG_CONFIG --exists --print-errors "libxcrypt >= 3.1.1") 2>&5 20728 ac_status=$? 20729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20730 test $ac_status = 0; }; then 20731 pkg_cv_LIBCRYPT_LIBS=`$PKG_CONFIG --libs "libxcrypt >= 3.1.1" 2>/dev/null` 20732 test "x$?" != "x0" && pkg_failed=yes 20733else 20734 pkg_failed=yes 20735fi 20736 else 20737 pkg_failed=untried 20738fi 20739 20740 20741 20742if test $pkg_failed = yes; then 20743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20744printf "%s\n" "no" >&6; } 20745 20746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20747 _pkg_short_errors_supported=yes 20748else 20749 _pkg_short_errors_supported=no 20750fi 20751 if test $_pkg_short_errors_supported = yes; then 20752 LIBCRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxcrypt >= 3.1.1" 2>&1` 20753 else 20754 LIBCRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxcrypt >= 3.1.1" 2>&1` 20755 fi 20756 # Put the nasty error message in config.log where it belongs 20757 echo "$LIBCRYPT_PKG_ERRORS" >&5 20758 20759 20760 save_CFLAGS=$CFLAGS 20761save_CPPFLAGS=$CPPFLAGS 20762save_LDFLAGS=$LDFLAGS 20763save_LIBS=$LIBS 20764 20765 20766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 20767printf %s "checking for library containing crypt_r... " >&6; } 20768if test ${ac_cv_search_crypt_r+y} 20769then : 20770 printf %s "(cached) " >&6 20771else $as_nop 20772 ac_func_search_save_LIBS=$LIBS 20773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20774/* end confdefs.h. */ 20775 20776/* Override any GCC internal prototype to avoid an error. 20777 Use char because int might match the return type of a GCC 20778 builtin and then its argument prototype would still apply. */ 20779char crypt_r (); 20780int 20781main (void) 20782{ 20783return crypt_r (); 20784 ; 20785 return 0; 20786} 20787_ACEOF 20788for ac_lib in '' crypt 20789do 20790 if test -z "$ac_lib"; then 20791 ac_res="none required" 20792 else 20793 ac_res=-l$ac_lib 20794 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20795 fi 20796 if ac_fn_c_try_link "$LINENO" 20797then : 20798 ac_cv_search_crypt_r=$ac_res 20799fi 20800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20801 conftest$ac_exeext 20802 if test ${ac_cv_search_crypt_r+y} 20803then : 20804 break 20805fi 20806done 20807if test ${ac_cv_search_crypt_r+y} 20808then : 20809 20810else $as_nop 20811 ac_cv_search_crypt_r=no 20812fi 20813rm conftest.$ac_ext 20814LIBS=$ac_func_search_save_LIBS 20815fi 20816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 20817printf "%s\n" "$ac_cv_search_crypt_r" >&6; } 20818ac_res=$ac_cv_search_crypt_r 20819if test "$ac_res" != no 20820then : 20821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20822 20823 printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h 20824 20825 if test "$ac_cv_search_crypt_r" = "none required"; then 20826 libcrypt= 20827 else 20828 libcrypt="$ac_cv_search_crypt_r" 20829 fi 20830 LIBCRYPT_LIBS=${LIBCRYPT_LIBS-$libcrypt} 20831 20832fi 20833 20834 20835CFLAGS=$save_CFLAGS 20836CPPFLAGS=$save_CPPFLAGS 20837LDFLAGS=$save_LDFLAGS 20838LIBS=$save_LIBS 20839 20840 20841 20842elif test $pkg_failed = untried; then 20843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20844printf "%s\n" "no" >&6; } 20845 20846 save_CFLAGS=$CFLAGS 20847save_CPPFLAGS=$CPPFLAGS 20848save_LDFLAGS=$LDFLAGS 20849save_LIBS=$LIBS 20850 20851 20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 20853printf %s "checking for library containing crypt_r... " >&6; } 20854if test ${ac_cv_search_crypt_r+y} 20855then : 20856 printf %s "(cached) " >&6 20857else $as_nop 20858 ac_func_search_save_LIBS=$LIBS 20859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20860/* end confdefs.h. */ 20861 20862/* Override any GCC internal prototype to avoid an error. 20863 Use char because int might match the return type of a GCC 20864 builtin and then its argument prototype would still apply. */ 20865char crypt_r (); 20866int 20867main (void) 20868{ 20869return crypt_r (); 20870 ; 20871 return 0; 20872} 20873_ACEOF 20874for ac_lib in '' crypt 20875do 20876 if test -z "$ac_lib"; then 20877 ac_res="none required" 20878 else 20879 ac_res=-l$ac_lib 20880 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20881 fi 20882 if ac_fn_c_try_link "$LINENO" 20883then : 20884 ac_cv_search_crypt_r=$ac_res 20885fi 20886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20887 conftest$ac_exeext 20888 if test ${ac_cv_search_crypt_r+y} 20889then : 20890 break 20891fi 20892done 20893if test ${ac_cv_search_crypt_r+y} 20894then : 20895 20896else $as_nop 20897 ac_cv_search_crypt_r=no 20898fi 20899rm conftest.$ac_ext 20900LIBS=$ac_func_search_save_LIBS 20901fi 20902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 20903printf "%s\n" "$ac_cv_search_crypt_r" >&6; } 20904ac_res=$ac_cv_search_crypt_r 20905if test "$ac_res" != no 20906then : 20907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20908 20909 printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h 20910 20911 if test "$ac_cv_search_crypt_r" = "none required"; then 20912 libcrypt= 20913 else 20914 libcrypt="$ac_cv_search_crypt_r" 20915 fi 20916 LIBCRYPT_LIBS=${LIBCRYPT_LIBS-$libcrypt} 20917 20918fi 20919 20920 20921CFLAGS=$save_CFLAGS 20922CPPFLAGS=$save_CPPFLAGS 20923LDFLAGS=$save_LDFLAGS 20924LIBS=$save_LIBS 20925 20926 20927 20928else 20929 LIBCRYPT_CFLAGS=$pkg_cv_LIBCRYPT_CFLAGS 20930 LIBCRYPT_LIBS=$pkg_cv_LIBCRYPT_LIBS 20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20932printf "%s\n" "yes" >&6; } 20933 20934 printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h 20935 20936 20937fi 20938 20939save_CFLAGS=$CFLAGS 20940save_CPPFLAGS=$CPPFLAGS 20941save_LDFLAGS=$LDFLAGS 20942save_LIBS=$LIBS 20943 20944 20945 CPPFLAGS="$CPPFLAGS $LIBCRYPT_CFLAGS" 20946 LIBS="$LIBCRYPT_LIBS $LIBS" 20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt or crypt_r" >&5 20948printf %s "checking for crypt or crypt_r... " >&6; } 20949if test ${ac_cv_crypt_crypt+y} 20950then : 20951 printf %s "(cached) " >&6 20952else $as_nop 20953 20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20955/* end confdefs.h. */ 20956 20957 #ifdef HAVE_CRYPT_H 20958 #include <crypt.h> 20959 #endif 20960 #include <unistd.h> 20961 20962int 20963main (void) 20964{ 20965 20966 #ifdef HAVE_CRYPT_R 20967 void *x = crypt_r; 20968 #else 20969 void *x = crypt; 20970 #endif 20971 20972 ; 20973 return 0; 20974} 20975 20976_ACEOF 20977if ac_fn_c_try_link "$LINENO" 20978then : 20979 ac_cv_crypt_crypt=yes 20980else $as_nop 20981 ac_cv_crypt_crypt=no 20982fi 20983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20984 conftest$ac_exeext conftest.$ac_ext 20985 20986fi 20987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_crypt" >&5 20988printf "%s\n" "$ac_cv_crypt_crypt" >&6; } 20989 20990CFLAGS=$save_CFLAGS 20991CPPFLAGS=$save_CPPFLAGS 20992LDFLAGS=$save_LDFLAGS 20993LIBS=$save_LIBS 20994 20995 20996 20997 20998 for ac_func in clock_gettime 20999do : 21000 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 21001if test "x$ac_cv_func_clock_gettime" = xyes 21002then : 21003 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 21004 21005else $as_nop 21006 21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 21008printf %s "checking for clock_gettime in -lrt... " >&6; } 21009if test ${ac_cv_lib_rt_clock_gettime+y} 21010then : 21011 printf %s "(cached) " >&6 21012else $as_nop 21013 ac_check_lib_save_LIBS=$LIBS 21014LIBS="-lrt $LIBS" 21015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21016/* end confdefs.h. */ 21017 21018/* Override any GCC internal prototype to avoid an error. 21019 Use char because int might match the return type of a GCC 21020 builtin and then its argument prototype would still apply. */ 21021char clock_gettime (); 21022int 21023main (void) 21024{ 21025return clock_gettime (); 21026 ; 21027 return 0; 21028} 21029_ACEOF 21030if ac_fn_c_try_link "$LINENO" 21031then : 21032 ac_cv_lib_rt_clock_gettime=yes 21033else $as_nop 21034 ac_cv_lib_rt_clock_gettime=no 21035fi 21036rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21037 conftest$ac_exeext conftest.$ac_ext 21038LIBS=$ac_check_lib_save_LIBS 21039fi 21040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 21041printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 21042if test "x$ac_cv_lib_rt_clock_gettime" = xyes 21043then : 21044 21045 LIBS="$LIBS -lrt" 21046 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 21047 21048 21049printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h 21050 21051 21052fi 21053 21054 21055fi 21056 21057done 21058 21059 21060 for ac_func in clock_getres 21061do : 21062 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 21063if test "x$ac_cv_func_clock_getres" = xyes 21064then : 21065 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 21066 21067else $as_nop 21068 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 21070printf %s "checking for clock_getres in -lrt... " >&6; } 21071if test ${ac_cv_lib_rt_clock_getres+y} 21072then : 21073 printf %s "(cached) " >&6 21074else $as_nop 21075 ac_check_lib_save_LIBS=$LIBS 21076LIBS="-lrt $LIBS" 21077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21078/* end confdefs.h. */ 21079 21080/* Override any GCC internal prototype to avoid an error. 21081 Use char because int might match the return type of a GCC 21082 builtin and then its argument prototype would still apply. */ 21083char clock_getres (); 21084int 21085main (void) 21086{ 21087return clock_getres (); 21088 ; 21089 return 0; 21090} 21091_ACEOF 21092if ac_fn_c_try_link "$LINENO" 21093then : 21094 ac_cv_lib_rt_clock_getres=yes 21095else $as_nop 21096 ac_cv_lib_rt_clock_getres=no 21097fi 21098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21099 conftest$ac_exeext conftest.$ac_ext 21100LIBS=$ac_check_lib_save_LIBS 21101fi 21102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 21103printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; } 21104if test "x$ac_cv_lib_rt_clock_getres" = xyes 21105then : 21106 21107 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 21108 21109 21110fi 21111 21112 21113fi 21114 21115done 21116 21117 21118 for ac_func in clock_settime 21119do : 21120 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 21121if test "x$ac_cv_func_clock_settime" = xyes 21122then : 21123 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 21124 21125else $as_nop 21126 21127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 21128printf %s "checking for clock_settime in -lrt... " >&6; } 21129if test ${ac_cv_lib_rt_clock_settime+y} 21130then : 21131 printf %s "(cached) " >&6 21132else $as_nop 21133 ac_check_lib_save_LIBS=$LIBS 21134LIBS="-lrt $LIBS" 21135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21136/* end confdefs.h. */ 21137 21138/* Override any GCC internal prototype to avoid an error. 21139 Use char because int might match the return type of a GCC 21140 builtin and then its argument prototype would still apply. */ 21141char clock_settime (); 21142int 21143main (void) 21144{ 21145return clock_settime (); 21146 ; 21147 return 0; 21148} 21149_ACEOF 21150if ac_fn_c_try_link "$LINENO" 21151then : 21152 ac_cv_lib_rt_clock_settime=yes 21153else $as_nop 21154 ac_cv_lib_rt_clock_settime=no 21155fi 21156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21157 conftest$ac_exeext conftest.$ac_ext 21158LIBS=$ac_check_lib_save_LIBS 21159fi 21160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 21161printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; } 21162if test "x$ac_cv_lib_rt_clock_settime" = xyes 21163then : 21164 21165 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 21166 21167 21168fi 21169 21170 21171fi 21172 21173done 21174 21175 21176 for ac_func in clock_nanosleep 21177do : 21178 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep" 21179if test "x$ac_cv_func_clock_nanosleep" = xyes 21180then : 21181 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h 21182 21183else $as_nop 21184 21185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5 21186printf %s "checking for clock_nanosleep in -lrt... " >&6; } 21187if test ${ac_cv_lib_rt_clock_nanosleep+y} 21188then : 21189 printf %s "(cached) " >&6 21190else $as_nop 21191 ac_check_lib_save_LIBS=$LIBS 21192LIBS="-lrt $LIBS" 21193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21194/* end confdefs.h. */ 21195 21196/* Override any GCC internal prototype to avoid an error. 21197 Use char because int might match the return type of a GCC 21198 builtin and then its argument prototype would still apply. */ 21199char clock_nanosleep (); 21200int 21201main (void) 21202{ 21203return clock_nanosleep (); 21204 ; 21205 return 0; 21206} 21207_ACEOF 21208if ac_fn_c_try_link "$LINENO" 21209then : 21210 ac_cv_lib_rt_clock_nanosleep=yes 21211else $as_nop 21212 ac_cv_lib_rt_clock_nanosleep=no 21213fi 21214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21215 conftest$ac_exeext conftest.$ac_ext 21216LIBS=$ac_check_lib_save_LIBS 21217fi 21218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5 21219printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; } 21220if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes 21221then : 21222 21223 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h 21224 21225 21226fi 21227 21228 21229fi 21230 21231done 21232 21233 21234 for ac_func in nanosleep 21235do : 21236 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 21237if test "x$ac_cv_func_nanosleep" = xyes 21238then : 21239 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 21240 21241else $as_nop 21242 21243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 21244printf %s "checking for nanosleep in -lrt... " >&6; } 21245if test ${ac_cv_lib_rt_nanosleep+y} 21246then : 21247 printf %s "(cached) " >&6 21248else $as_nop 21249 ac_check_lib_save_LIBS=$LIBS 21250LIBS="-lrt $LIBS" 21251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21252/* end confdefs.h. */ 21253 21254/* Override any GCC internal prototype to avoid an error. 21255 Use char because int might match the return type of a GCC 21256 builtin and then its argument prototype would still apply. */ 21257char nanosleep (); 21258int 21259main (void) 21260{ 21261return nanosleep (); 21262 ; 21263 return 0; 21264} 21265_ACEOF 21266if ac_fn_c_try_link "$LINENO" 21267then : 21268 ac_cv_lib_rt_nanosleep=yes 21269else $as_nop 21270 ac_cv_lib_rt_nanosleep=no 21271fi 21272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21273 conftest$ac_exeext conftest.$ac_ext 21274LIBS=$ac_check_lib_save_LIBS 21275fi 21276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 21277printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 21278if test "x$ac_cv_lib_rt_nanosleep" = xyes 21279then : 21280 21281 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 21282 21283 21284fi 21285 21286 21287fi 21288 21289done 21290 21291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5 21292printf %s "checking for major, minor, and makedev... " >&6; } 21293if test ${ac_cv_device_macros+y} 21294then : 21295 printf %s "(cached) " >&6 21296else $as_nop 21297 21298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21299/* end confdefs.h. */ 21300 21301#if defined(MAJOR_IN_MKDEV) 21302#include <sys/mkdev.h> 21303#elif defined(MAJOR_IN_SYSMACROS) 21304#include <sys/sysmacros.h> 21305#else 21306#include <sys/types.h> 21307#endif 21308 21309int 21310main (void) 21311{ 21312 21313 makedev(major(0),minor(0)); 21314 21315 ; 21316 return 0; 21317} 21318_ACEOF 21319if ac_fn_c_try_link "$LINENO" 21320then : 21321 ac_cv_device_macros=yes 21322else $as_nop 21323 ac_cv_device_macros=no 21324fi 21325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21326 conftest$ac_exeext conftest.$ac_ext 21327 21328fi 21329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5 21330printf "%s\n" "$ac_cv_device_macros" >&6; } 21331if test "x$ac_cv_device_macros" = xyes 21332then : 21333 21334 21335printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 21336 21337 21338fi 21339 21340 21341printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 21342 21343 21344# On OSF/1 V5.1, getaddrinfo is available, but a define 21345# for [no]getaddrinfo in netdb.h. 21346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 21347printf %s "checking for getaddrinfo... " >&6; } 21348if test ${ac_cv_func_getaddrinfo+y} 21349then : 21350 printf %s "(cached) " >&6 21351else $as_nop 21352 21353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21354/* end confdefs.h. */ 21355 21356#include <sys/types.h> 21357#include <sys/socket.h> 21358#include <netdb.h> 21359#include <stdio.h> 21360 21361int 21362main (void) 21363{ 21364getaddrinfo(NULL, NULL, NULL, NULL); 21365 ; 21366 return 0; 21367} 21368_ACEOF 21369if ac_fn_c_try_link "$LINENO" 21370then : 21371 ac_cv_func_getaddrinfo=yes 21372else $as_nop 21373 ac_cv_func_getaddrinfo=no 21374fi 21375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21376 conftest$ac_exeext conftest.$ac_ext 21377 21378fi 21379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 21380printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 21381 21382if test "x$ac_cv_func_getaddrinfo" = xyes 21383then : 21384 21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 21386printf %s "checking getaddrinfo bug... " >&6; } 21387if test ${ac_cv_buggy_getaddrinfo+y} 21388then : 21389 printf %s "(cached) " >&6 21390else $as_nop 21391 if test "$cross_compiling" = yes 21392then : 21393 21394if test "${enable_ipv6+set}" = set; then 21395 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 21396else 21397 ac_cv_buggy_getaddrinfo=yes 21398fi 21399else $as_nop 21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21401/* end confdefs.h. */ 21402 21403#include <stdio.h> 21404#include <sys/types.h> 21405#include <netdb.h> 21406#include <string.h> 21407#include <sys/socket.h> 21408#include <netinet/in.h> 21409 21410int main(void) 21411{ 21412 int passive, gaierr, inet4 = 0, inet6 = 0; 21413 struct addrinfo hints, *ai, *aitop; 21414 char straddr[INET6_ADDRSTRLEN], strport[16]; 21415 21416 for (passive = 0; passive <= 1; passive++) { 21417 memset(&hints, 0, sizeof(hints)); 21418 hints.ai_family = AF_UNSPEC; 21419 hints.ai_flags = passive ? AI_PASSIVE : 0; 21420 hints.ai_socktype = SOCK_STREAM; 21421 hints.ai_protocol = IPPROTO_TCP; 21422 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 21423 (void)gai_strerror(gaierr); 21424 goto bad; 21425 } 21426 for (ai = aitop; ai; ai = ai->ai_next) { 21427 if (ai->ai_addr == NULL || 21428 ai->ai_addrlen == 0 || 21429 getnameinfo(ai->ai_addr, ai->ai_addrlen, 21430 straddr, sizeof(straddr), strport, sizeof(strport), 21431 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 21432 goto bad; 21433 } 21434 switch (ai->ai_family) { 21435 case AF_INET: 21436 if (strcmp(strport, "54321") != 0) { 21437 goto bad; 21438 } 21439 if (passive) { 21440 if (strcmp(straddr, "0.0.0.0") != 0) { 21441 goto bad; 21442 } 21443 } else { 21444 if (strcmp(straddr, "127.0.0.1") != 0) { 21445 goto bad; 21446 } 21447 } 21448 inet4++; 21449 break; 21450 case AF_INET6: 21451 if (strcmp(strport, "54321") != 0) { 21452 goto bad; 21453 } 21454 if (passive) { 21455 if (strcmp(straddr, "::") != 0) { 21456 goto bad; 21457 } 21458 } else { 21459 if (strcmp(straddr, "::1") != 0) { 21460 goto bad; 21461 } 21462 } 21463 inet6++; 21464 break; 21465 case AF_UNSPEC: 21466 goto bad; 21467 break; 21468 default: 21469 /* another family support? */ 21470 break; 21471 } 21472 } 21473 freeaddrinfo(aitop); 21474 aitop = NULL; 21475 } 21476 21477 if (!(inet4 == 0 || inet4 == 2)) 21478 goto bad; 21479 if (!(inet6 == 0 || inet6 == 2)) 21480 goto bad; 21481 21482 if (aitop) 21483 freeaddrinfo(aitop); 21484 return 0; 21485 21486 bad: 21487 if (aitop) 21488 freeaddrinfo(aitop); 21489 return 1; 21490} 21491 21492_ACEOF 21493if ac_fn_c_try_run "$LINENO" 21494then : 21495 ac_cv_buggy_getaddrinfo=no 21496else $as_nop 21497 ac_cv_buggy_getaddrinfo=yes 21498fi 21499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21500 conftest.$ac_objext conftest.beam conftest.$ac_ext 21501fi 21502 21503fi 21504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 21505printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; } 21506 21507 21508fi 21509 21510if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes 21511then 21512 if test "x$ipv6" = xyes 21513then : 21514 21515 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5 21516 21517fi 21518else 21519 21520printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21521 21522fi 21523 21524ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 21525if test "x$ac_cv_func_getnameinfo" = xyes 21526then : 21527 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 21528 21529fi 21530 21531 21532if test "x$ac_cv_header_sys_time_h" = xyes 21533then : 21534 21535 21536printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 21537 21538 21539fi 21540 21541# checks for structures 21542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 21543printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 21544if test ${ac_cv_struct_tm+y} 21545then : 21546 printf %s "(cached) " >&6 21547else $as_nop 21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21549/* end confdefs.h. */ 21550#include <sys/types.h> 21551#include <time.h> 21552 21553int 21554main (void) 21555{ 21556struct tm tm; 21557 int *p = &tm.tm_sec; 21558 return !p; 21559 ; 21560 return 0; 21561} 21562_ACEOF 21563if ac_fn_c_try_compile "$LINENO" 21564then : 21565 ac_cv_struct_tm=time.h 21566else $as_nop 21567 ac_cv_struct_tm=sys/time.h 21568fi 21569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21570fi 21571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 21572printf "%s\n" "$ac_cv_struct_tm" >&6; } 21573if test $ac_cv_struct_tm = sys/time.h; then 21574 21575printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 21576 21577fi 21578 21579ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 21580#include <$ac_cv_struct_tm> 21581 21582" 21583if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 21584then : 21585 21586printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 21587 21588 21589fi 21590 21591if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 21592 21593printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 21594 21595else 21596 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 21597" "$ac_c_undeclared_builtin_options" "CFLAGS" 21598if test "x$ac_cv_have_decl_tzname" = xyes 21599then : 21600 ac_have_decl=1 21601else $as_nop 21602 ac_have_decl=0 21603fi 21604printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 21605 21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 21607printf %s "checking for tzname... " >&6; } 21608if test ${ac_cv_var_tzname+y} 21609then : 21610 printf %s "(cached) " >&6 21611else $as_nop 21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21613/* end confdefs.h. */ 21614#include <time.h> 21615#if !HAVE_DECL_TZNAME 21616extern char *tzname[]; 21617#endif 21618 21619int 21620main (void) 21621{ 21622return tzname[0][0]; 21623 ; 21624 return 0; 21625} 21626_ACEOF 21627if ac_fn_c_try_link "$LINENO" 21628then : 21629 ac_cv_var_tzname=yes 21630else $as_nop 21631 ac_cv_var_tzname=no 21632fi 21633rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21634 conftest$ac_exeext conftest.$ac_ext 21635fi 21636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 21637printf "%s\n" "$ac_cv_var_tzname" >&6; } 21638 if test $ac_cv_var_tzname = yes; then 21639 21640printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 21641 21642 fi 21643fi 21644 21645ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 21646if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 21647then : 21648 21649printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 21650 21651 21652fi 21653 21654ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 21655if test "x$ac_cv_member_struct_stat_st_blksize" = xyes 21656then : 21657 21658printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h 21659 21660 21661fi 21662 21663ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 21664if test "x$ac_cv_member_struct_stat_st_flags" = xyes 21665then : 21666 21667printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h 21668 21669 21670fi 21671 21672ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 21673if test "x$ac_cv_member_struct_stat_st_gen" = xyes 21674then : 21675 21676printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h 21677 21678 21679fi 21680 21681ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 21682if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes 21683then : 21684 21685printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h 21686 21687 21688fi 21689 21690ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 21691if test "x$ac_cv_member_struct_stat_st_blocks" = xyes 21692then : 21693 21694printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h 21695 21696 21697fi 21698 21699ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 21700 #include <sys/types.h> 21701 #include <pwd.h> 21702 21703" 21704if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes 21705then : 21706 21707printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h 21708 21709 21710fi 21711ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 21712 #include <sys/types.h> 21713 #include <pwd.h> 21714 21715" 21716if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes 21717then : 21718 21719printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h 21720 21721 21722fi 21723 21724# Issue #21085: In Cygwin, siginfo_t does not have si_band field. 21725ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 21726" 21727if test "x$ac_cv_member_siginfo_t_si_band" = xyes 21728then : 21729 21730printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h 21731 21732 21733fi 21734 21735 21736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 21737printf %s "checking for time.h that defines altzone... " >&6; } 21738if test ${ac_cv_header_time_altzone+y} 21739then : 21740 printf %s "(cached) " >&6 21741else $as_nop 21742 21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21744/* end confdefs.h. */ 21745#include <time.h> 21746int 21747main (void) 21748{ 21749return altzone; 21750 ; 21751 return 0; 21752} 21753_ACEOF 21754if ac_fn_c_try_compile "$LINENO" 21755then : 21756 ac_cv_header_time_altzone=yes 21757else $as_nop 21758 ac_cv_header_time_altzone=no 21759fi 21760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21761 21762fi 21763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 21764printf "%s\n" "$ac_cv_header_time_altzone" >&6; } 21765if test $ac_cv_header_time_altzone = yes; then 21766 21767printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h 21768 21769fi 21770 21771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 21772printf %s "checking for addrinfo... " >&6; } 21773if test ${ac_cv_struct_addrinfo+y} 21774then : 21775 printf %s "(cached) " >&6 21776else $as_nop 21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21778/* end confdefs.h. */ 21779#include <netdb.h> 21780int 21781main (void) 21782{ 21783struct addrinfo a 21784 ; 21785 return 0; 21786} 21787_ACEOF 21788if ac_fn_c_try_compile "$LINENO" 21789then : 21790 ac_cv_struct_addrinfo=yes 21791else $as_nop 21792 ac_cv_struct_addrinfo=no 21793fi 21794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21795fi 21796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 21797printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } 21798if test $ac_cv_struct_addrinfo = yes; then 21799 21800printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h 21801 21802fi 21803 21804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 21805printf %s "checking for sockaddr_storage... " >&6; } 21806if test ${ac_cv_struct_sockaddr_storage+y} 21807then : 21808 printf %s "(cached) " >&6 21809else $as_nop 21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21811/* end confdefs.h. */ 21812 21813# include <sys/types.h> 21814# include <sys/socket.h> 21815int 21816main (void) 21817{ 21818struct sockaddr_storage s 21819 ; 21820 return 0; 21821} 21822_ACEOF 21823if ac_fn_c_try_compile "$LINENO" 21824then : 21825 ac_cv_struct_sockaddr_storage=yes 21826else $as_nop 21827 ac_cv_struct_sockaddr_storage=no 21828fi 21829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21830fi 21831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 21832printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; } 21833if test $ac_cv_struct_sockaddr_storage = yes; then 21834 21835printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 21836 21837fi 21838 21839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 21840printf %s "checking for sockaddr_alg... " >&6; } 21841if test ${ac_cv_struct_sockaddr_alg+y} 21842then : 21843 printf %s "(cached) " >&6 21844else $as_nop 21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21846/* end confdefs.h. */ 21847 21848# include <sys/types.h> 21849# include <sys/socket.h> 21850# include <linux/if_alg.h> 21851int 21852main (void) 21853{ 21854struct sockaddr_alg s 21855 ; 21856 return 0; 21857} 21858_ACEOF 21859if ac_fn_c_try_compile "$LINENO" 21860then : 21861 ac_cv_struct_sockaddr_alg=yes 21862else $as_nop 21863 ac_cv_struct_sockaddr_alg=no 21864fi 21865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21866fi 21867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 21868printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; } 21869if test $ac_cv_struct_sockaddr_alg = yes; then 21870 21871printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 21872 21873fi 21874 21875# checks for compiler characteristics 21876 21877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 21878printf %s "checking for an ANSI C-conforming const... " >&6; } 21879if test ${ac_cv_c_const+y} 21880then : 21881 printf %s "(cached) " >&6 21882else $as_nop 21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21884/* end confdefs.h. */ 21885 21886int 21887main (void) 21888{ 21889 21890#ifndef __cplusplus 21891 /* Ultrix mips cc rejects this sort of thing. */ 21892 typedef int charset[2]; 21893 const charset cs = { 0, 0 }; 21894 /* SunOS 4.1.1 cc rejects this. */ 21895 char const *const *pcpcc; 21896 char **ppc; 21897 /* NEC SVR4.0.2 mips cc rejects this. */ 21898 struct point {int x, y;}; 21899 static struct point const zero = {0,0}; 21900 /* IBM XL C 1.02.0.0 rejects this. 21901 It does not let you subtract one const X* pointer from another in 21902 an arm of an if-expression whose if-part is not a constant 21903 expression */ 21904 const char *g = "string"; 21905 pcpcc = &g + (g ? g-g : 0); 21906 /* HPUX 7.0 cc rejects these. */ 21907 ++pcpcc; 21908 ppc = (char**) pcpcc; 21909 pcpcc = (char const *const *) ppc; 21910 { /* SCO 3.2v4 cc rejects this sort of thing. */ 21911 char tx; 21912 char *t = &tx; 21913 char const *s = 0 ? (char *) 0 : (char const *) 0; 21914 21915 *t++ = 0; 21916 if (s) return 0; 21917 } 21918 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21919 int x[] = {25, 17}; 21920 const int *foo = &x[0]; 21921 ++foo; 21922 } 21923 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21924 typedef const int *iptr; 21925 iptr p = 0; 21926 ++p; 21927 } 21928 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 21929 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21930 struct s { int j; const int *ap[3]; } bx; 21931 struct s *b = &bx; b->j = 5; 21932 } 21933 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21934 const int foo = 10; 21935 if (!foo) return 0; 21936 } 21937 return !cs[0] && !zero.x; 21938#endif 21939 21940 ; 21941 return 0; 21942} 21943_ACEOF 21944if ac_fn_c_try_compile "$LINENO" 21945then : 21946 ac_cv_c_const=yes 21947else $as_nop 21948 ac_cv_c_const=no 21949fi 21950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21951fi 21952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 21953printf "%s\n" "$ac_cv_c_const" >&6; } 21954if test $ac_cv_c_const = no; then 21955 21956printf "%s\n" "#define const /**/" >>confdefs.h 21957 21958fi 21959 21960 21961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 21962printf %s "checking for working signed char... " >&6; } 21963if test ${ac_cv_working_signed_char_c+y} 21964then : 21965 printf %s "(cached) " >&6 21966else $as_nop 21967 21968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21969/* end confdefs.h. */ 21970 21971int 21972main (void) 21973{ 21974signed char c; 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979if ac_fn_c_try_compile "$LINENO" 21980then : 21981 ac_cv_working_signed_char_c=yes 21982else $as_nop 21983 ac_cv_working_signed_char_c=no 21984fi 21985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21986 21987fi 21988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5 21989printf "%s\n" "$ac_cv_working_signed_char_c" >&6; } 21990if test "x$ac_cv_working_signed_char_c" = xno 21991then : 21992 21993 21994printf "%s\n" "#define signed /**/" >>confdefs.h 21995 21996 21997fi 21998 21999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 22000printf %s "checking for prototypes... " >&6; } 22001if test ${ac_cv_function_prototypes+y} 22002then : 22003 printf %s "(cached) " >&6 22004else $as_nop 22005 22006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22007/* end confdefs.h. */ 22008int foo(int x) { return 0; } 22009int 22010main (void) 22011{ 22012return foo(10); 22013 ; 22014 return 0; 22015} 22016_ACEOF 22017if ac_fn_c_try_compile "$LINENO" 22018then : 22019 ac_cv_function_prototypes=yes 22020else $as_nop 22021 ac_cv_function_prototypes=no 22022fi 22023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22024 22025fi 22026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5 22027printf "%s\n" "$ac_cv_function_prototypes" >&6; } 22028if test "x$ac_cv_function_prototypes" = xyes 22029then : 22030 22031 22032printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h 22033 22034 22035fi 22036 22037works=no 22038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 22039printf %s "checking for variable length prototypes and stdarg.h... " >&6; } 22040if test ${ac_cv_stdarg_prototypes+y} 22041then : 22042 printf %s "(cached) " >&6 22043else $as_nop 22044 22045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22046/* end confdefs.h. */ 22047 22048#include <stdarg.h> 22049int foo(int x, ...) { 22050 va_list va; 22051 va_start(va, x); 22052 va_arg(va, int); 22053 va_arg(va, char *); 22054 va_arg(va, double); 22055 return 0; 22056} 22057 22058int 22059main (void) 22060{ 22061return foo(10, "", 3.14); 22062 ; 22063 return 0; 22064} 22065_ACEOF 22066if ac_fn_c_try_compile "$LINENO" 22067then : 22068 ac_cv_stdarg_prototypes=yes 22069else $as_nop 22070 ac_cv_stdarg_prototypes=no 22071fi 22072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22073 22074fi 22075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stdarg_prototypes" >&5 22076printf "%s\n" "$ac_cv_stdarg_prototypes" >&6; } 22077if test "x$ac_cv_stdarg_prototypes" = xyes 22078then : 22079 22080 22081printf "%s\n" "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 22082 22083 22084fi 22085 22086 22087# check for socketpair 22088 22089 22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 22091printf %s "checking for socketpair... " >&6; } 22092if test ${ac_cv_func_socketpair+y} 22093then : 22094 printf %s "(cached) " >&6 22095else $as_nop 22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22097/* end confdefs.h. */ 22098 22099#include <sys/types.h> 22100#include <sys/socket.h> 22101 22102int 22103main (void) 22104{ 22105void *x=socketpair 22106 ; 22107 return 0; 22108} 22109_ACEOF 22110if ac_fn_c_try_compile "$LINENO" 22111then : 22112 ac_cv_func_socketpair=yes 22113else $as_nop 22114 ac_cv_func_socketpair=no 22115fi 22116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22117 22118fi 22119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5 22120printf "%s\n" "$ac_cv_func_socketpair" >&6; } 22121 if test "x$ac_cv_func_socketpair" = xyes 22122then : 22123 22124printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 22125 22126fi 22127 22128 22129 22130 22131# check if sockaddr has sa_len member 22132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 22133printf %s "checking if sockaddr has sa_len member... " >&6; } 22134if test ${ac_cv_struct_sockaddr_sa_len+y} 22135then : 22136 printf %s "(cached) " >&6 22137else $as_nop 22138 22139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22140/* end confdefs.h. */ 22141#include <sys/types.h> 22142#include <sys/socket.h> 22143int 22144main (void) 22145{ 22146struct sockaddr x; 22147x.sa_len = 0; 22148 ; 22149 return 0; 22150} 22151_ACEOF 22152if ac_fn_c_try_compile "$LINENO" 22153then : 22154 ac_cv_struct_sockaddr_sa_len=yes 22155else $as_nop 22156 ac_cv_struct_sockaddr_sa_len=no 22157fi 22158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22159 22160fi 22161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5 22162printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; } 22163if test "x$ac_cv_struct_sockaddr_sa_len" = xyes 22164then : 22165 22166 22167printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 22168 22169 22170fi 22171 22172# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 22173 22174 22175ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 22176if test "x$ac_cv_func_gethostbyname_r" = xyes 22177then : 22178 22179 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 22180 22181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 22182printf %s "checking gethostbyname_r with 6 args... " >&6; } 22183 OLD_CFLAGS=$CFLAGS 22184 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22186/* end confdefs.h. */ 22187 22188# include <netdb.h> 22189 22190int 22191main (void) 22192{ 22193 22194 char *name; 22195 struct hostent *he, *res; 22196 char buffer[2048]; 22197 int buflen = 2048; 22198 int h_errnop; 22199 22200 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 22201 22202 ; 22203 return 0; 22204} 22205_ACEOF 22206if ac_fn_c_try_compile "$LINENO" 22207then : 22208 22209 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 22210 22211 22212printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 22213 22214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22215printf "%s\n" "yes" >&6; } 22216 22217else $as_nop 22218 22219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22220printf "%s\n" "no" >&6; } 22221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 22222printf %s "checking gethostbyname_r with 5 args... " >&6; } 22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22224/* end confdefs.h. */ 22225 22226# include <netdb.h> 22227 22228int 22229main (void) 22230{ 22231 22232 char *name; 22233 struct hostent *he; 22234 char buffer[2048]; 22235 int buflen = 2048; 22236 int h_errnop; 22237 22238 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 22239 22240 ; 22241 return 0; 22242} 22243_ACEOF 22244if ac_fn_c_try_compile "$LINENO" 22245then : 22246 22247 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 22248 22249 22250printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 22251 22252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22253printf "%s\n" "yes" >&6; } 22254 22255else $as_nop 22256 22257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22258printf "%s\n" "no" >&6; } 22259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 22260printf %s "checking gethostbyname_r with 3 args... " >&6; } 22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22262/* end confdefs.h. */ 22263 22264# include <netdb.h> 22265 22266int 22267main (void) 22268{ 22269 22270 char *name; 22271 struct hostent *he; 22272 struct hostent_data data; 22273 22274 (void) gethostbyname_r(name, he, &data); 22275 22276 ; 22277 return 0; 22278} 22279_ACEOF 22280if ac_fn_c_try_compile "$LINENO" 22281then : 22282 22283 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 22284 22285 22286printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 22287 22288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22289printf "%s\n" "yes" >&6; } 22290 22291else $as_nop 22292 22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22294printf "%s\n" "no" >&6; } 22295 22296fi 22297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22298 22299fi 22300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22301 22302fi 22303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22304 CFLAGS=$OLD_CFLAGS 22305 22306else $as_nop 22307 22308 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 22309if test "x$ac_cv_func_gethostbyname" = xyes 22310then : 22311 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 22312 22313fi 22314 22315 22316fi 22317 22318 22319 22320 22321 22322 22323 22324# checks for system services 22325# (none yet) 22326 22327# Linux requires this for correct f.p. operations 22328ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 22329if test "x$ac_cv_func___fpu_control" = xyes 22330then : 22331 22332else $as_nop 22333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 22334printf %s "checking for __fpu_control in -lieee... " >&6; } 22335if test ${ac_cv_lib_ieee___fpu_control+y} 22336then : 22337 printf %s "(cached) " >&6 22338else $as_nop 22339 ac_check_lib_save_LIBS=$LIBS 22340LIBS="-lieee $LIBS" 22341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22342/* end confdefs.h. */ 22343 22344/* Override any GCC internal prototype to avoid an error. 22345 Use char because int might match the return type of a GCC 22346 builtin and then its argument prototype would still apply. */ 22347char __fpu_control (); 22348int 22349main (void) 22350{ 22351return __fpu_control (); 22352 ; 22353 return 0; 22354} 22355_ACEOF 22356if ac_fn_c_try_link "$LINENO" 22357then : 22358 ac_cv_lib_ieee___fpu_control=yes 22359else $as_nop 22360 ac_cv_lib_ieee___fpu_control=no 22361fi 22362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22363 conftest$ac_exeext conftest.$ac_ext 22364LIBS=$ac_check_lib_save_LIBS 22365fi 22366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 22367printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; } 22368if test "x$ac_cv_lib_ieee___fpu_control" = xyes 22369then : 22370 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h 22371 22372 LIBS="-lieee $LIBS" 22373 22374fi 22375 22376 22377fi 22378 22379 22380# check for --with-libm=... 22381 22382case $ac_sys_system in 22383Darwin) ;; 22384*) LIBM=-lm 22385esac 22386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 22387printf %s "checking for --with-libm=STRING... " >&6; } 22388 22389# Check whether --with-libm was given. 22390if test ${with_libm+y} 22391then : 22392 withval=$with_libm; 22393if test "$withval" = no 22394then LIBM= 22395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 22396printf "%s\n" "force LIBM empty" >&6; } 22397elif test "$withval" != yes 22398then LIBM=$withval 22399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 22400printf "%s\n" "set LIBM=\"$withval\"" >&6; } 22401else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 22402fi 22403else $as_nop 22404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 22405printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } 22406fi 22407 22408 22409# check for --with-libc=... 22410 22411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 22412printf %s "checking for --with-libc=STRING... " >&6; } 22413 22414# Check whether --with-libc was given. 22415if test ${with_libc+y} 22416then : 22417 withval=$with_libc; 22418if test "$withval" = no 22419then LIBC= 22420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 22421printf "%s\n" "force LIBC empty" >&6; } 22422elif test "$withval" != yes 22423then LIBC=$withval 22424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 22425printf "%s\n" "set LIBC=\"$withval\"" >&6; } 22426else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 22427fi 22428else $as_nop 22429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 22430printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } 22431fi 22432 22433 22434# ************************************** 22435# * Check for gcc x64 inline assembler * 22436# ************************************** 22437 22438 22439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 22440printf %s "checking for x64 gcc inline assembler... " >&6; } 22441if test ${ac_cv_gcc_asm_for_x64+y} 22442then : 22443 printf %s "(cached) " >&6 22444else $as_nop 22445 22446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22447/* end confdefs.h. */ 22448 22449int 22450main (void) 22451{ 22452 22453 __asm__ __volatile__ ("movq %rcx, %rax"); 22454 22455 ; 22456 return 0; 22457} 22458_ACEOF 22459if ac_fn_c_try_link "$LINENO" 22460then : 22461 ac_cv_gcc_asm_for_x64=yes 22462else $as_nop 22463 ac_cv_gcc_asm_for_x64=no 22464fi 22465rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22466 conftest$ac_exeext conftest.$ac_ext 22467 22468fi 22469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5 22470printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; } 22471 22472if test "x$ac_cv_gcc_asm_for_x64" = xyes 22473then : 22474 22475 22476printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 22477 22478 22479fi 22480 22481# ************************************************** 22482# * Check for various properties of floating point * 22483# ************************************************** 22484 22485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 22486printf %s "checking whether float word ordering is bigendian... " >&6; } 22487if test ${ax_cv_c_float_words_bigendian+y} 22488then : 22489 printf %s "(cached) " >&6 22490else $as_nop 22491 22492 22493ax_cv_c_float_words_bigendian=unknown 22494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22495/* end confdefs.h. */ 22496 22497 22498double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; 22499 22500 22501_ACEOF 22502if ac_fn_c_try_compile "$LINENO" 22503then : 22504 22505 22506if grep noonsees conftest.$ac_objext >/dev/null ; then 22507 ax_cv_c_float_words_bigendian=yes 22508fi 22509if grep seesnoon conftest.$ac_objext >/dev/null ; then 22510 if test "$ax_cv_c_float_words_bigendian" = unknown; then 22511 ax_cv_c_float_words_bigendian=no 22512 else 22513 ax_cv_c_float_words_bigendian=unknown 22514 fi 22515fi 22516 22517 22518fi 22519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22520fi 22521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 22522printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; } 22523 22524case $ax_cv_c_float_words_bigendian in 22525 yes) 22526 22527printf "%s\n" "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h 22528 ;; 22529 no) 22530 ;; 22531 *) 22532 as_fn_error $? " 22533 22534Unknown float word ordering. You need to manually preset 22535ax_cv_c_float_words_bigendian=no (or yes) according to your system. 22536 22537 " "$LINENO" 5 ;; 22538esac 22539 22540 22541if test "$ax_cv_c_float_words_bigendian" = "yes" 22542then 22543 22544printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 22545 22546elif test "$ax_cv_c_float_words_bigendian" = "no" 22547then 22548 22549printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 22550 22551else 22552 # Some ARM platforms use a mixed-endian representation for doubles. 22553 # While Python doesn't currently have full support for these platforms 22554 # (see e.g., issue 1762561), we can at least make sure that float <-> string 22555 # conversions work. 22556 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big 22557 # or little, then it must be this? 22558 22559printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 22560 22561fi 22562 22563# The short float repr introduced in Python 3.1 requires the 22564# correctly-rounded string <-> double conversion functions from 22565# Python/dtoa.c, which in turn require that the FPU uses 53-bit 22566# rounding; this is a problem on x86, where the x87 FPU has a default 22567# rounding precision of 64 bits. For gcc/x86, we can fix this by 22568# using inline assembler to get and set the x87 FPU control word. 22569 22570# This inline assembler syntax may also work for suncc and icc, 22571# so we try it on all platforms. 22572 22573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 22574printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 22575if test ${ac_cv_gcc_asm_for_x87+y} 22576then : 22577 printf %s "(cached) " >&6 22578else $as_nop 22579 22580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22581/* end confdefs.h. */ 22582 22583int 22584main (void) 22585{ 22586 22587 unsigned short cw; 22588 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 22589 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 22590 22591 ; 22592 return 0; 22593} 22594_ACEOF 22595if ac_fn_c_try_link "$LINENO" 22596then : 22597 ac_cv_gcc_asm_for_x87=yes 22598else $as_nop 22599 ac_cv_gcc_asm_for_x87=no 22600fi 22601rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22602 conftest$ac_exeext conftest.$ac_ext 22603 22604fi 22605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5 22606printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; } 22607if test "x$ac_cv_gcc_asm_for_x87" = xyes 22608then : 22609 22610 22611printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 22612 22613 22614fi 22615 22616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 22617printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 22618if test ${ac_cv_gcc_asm_for_mc68881+y} 22619then : 22620 printf %s "(cached) " >&6 22621else $as_nop 22622 22623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22624/* end confdefs.h. */ 22625 22626int 22627main (void) 22628{ 22629 22630 unsigned int fpcr; 22631 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 22632 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 22633 22634 ; 22635 return 0; 22636} 22637_ACEOF 22638if ac_fn_c_try_link "$LINENO" 22639then : 22640 ac_cv_gcc_asm_for_mc68881=yes 22641else $as_nop 22642 ac_cv_gcc_asm_for_mc68881=no 22643fi 22644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22645 conftest$ac_exeext conftest.$ac_ext 22646 22647fi 22648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5 22649printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; } 22650if test "x$ac_cv_gcc_asm_for_mc68881" = xyes 22651then : 22652 22653 22654printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 22655 22656 22657fi 22658 22659# Detect whether system arithmetic is subject to x87-style double 22660# rounding issues. The result of this test has little meaning on non 22661# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 22662# mode is round-to-nearest and double rounding issues are present, and 22663# 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info. 22664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 22665printf %s "checking for x87-style double rounding... " >&6; } 22666if test ${ac_cv_x87_double_rounding+y} 22667then : 22668 printf %s "(cached) " >&6 22669else $as_nop 22670 22671# $BASECFLAGS may affect the result 22672ac_save_cc="$CC" 22673CC="$CC $BASECFLAGS" 22674if test "$cross_compiling" = yes 22675then : 22676 ac_cv_x87_double_rounding=no 22677else $as_nop 22678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22679/* end confdefs.h. */ 22680 22681#include <stdlib.h> 22682#include <math.h> 22683int main(void) { 22684 volatile double x, y, z; 22685 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 22686 x = 0.99999999999999989; /* 1-2**-53 */ 22687 y = 1./x; 22688 if (y != 1.) 22689 exit(0); 22690 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 22691 x = 1e16; 22692 y = 2.99999; 22693 z = x + y; 22694 if (z != 1e16+4.) 22695 exit(0); 22696 /* both tests show evidence of double rounding */ 22697 exit(1); 22698} 22699 22700_ACEOF 22701if ac_fn_c_try_run "$LINENO" 22702then : 22703 ac_cv_x87_double_rounding=no 22704else $as_nop 22705 ac_cv_x87_double_rounding=yes 22706fi 22707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22708 conftest.$ac_objext conftest.beam conftest.$ac_ext 22709fi 22710 22711CC="$ac_save_cc" 22712 22713fi 22714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 22715printf "%s\n" "$ac_cv_x87_double_rounding" >&6; } 22716 22717if test "x$ac_cv_x87_double_rounding" = xyes 22718then : 22719 22720 22721printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 22722 22723 22724fi 22725 22726# ************************************ 22727# * Check for mathematical functions * 22728# ************************************ 22729 22730LIBS_SAVE=$LIBS 22731LIBS="$LIBS $LIBM" 22732 22733 22734 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2 22735do : 22736 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 22737ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22738if eval test \"x\$"$as_ac_var"\" = x"yes" 22739then : 22740 cat >>confdefs.h <<_ACEOF 22741#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 22742_ACEOF 22743 22744else $as_nop 22745 as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5 22746 22747fi 22748 22749done 22750LIBS=$LIBS_SAVE 22751 22752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 22753printf %s "checking whether POSIX semaphores are enabled... " >&6; } 22754if test ${ac_cv_posix_semaphores_enabled+y} 22755then : 22756 printf %s "(cached) " >&6 22757else $as_nop 22758 if test "$cross_compiling" = yes 22759then : 22760 ac_cv_posix_semaphores_enabled=yes 22761else $as_nop 22762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22763/* end confdefs.h. */ 22764 22765 22766 #include <unistd.h> 22767 #include <fcntl.h> 22768 #include <stdio.h> 22769 #include <semaphore.h> 22770 #include <sys/stat.h> 22771 22772 int main(void) { 22773 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 22774 if (a == SEM_FAILED) { 22775 perror("sem_open"); 22776 return 1; 22777 } 22778 sem_close(a); 22779 sem_unlink("/autoconf"); 22780 return 0; 22781 } 22782 22783 22784_ACEOF 22785if ac_fn_c_try_run "$LINENO" 22786then : 22787 ac_cv_posix_semaphores_enabled=yes 22788else $as_nop 22789 ac_cv_posix_semaphores_enabled=no 22790fi 22791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22792 conftest.$ac_objext conftest.beam conftest.$ac_ext 22793fi 22794 22795 22796fi 22797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 22798printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; } 22799if test "x$ac_cv_posix_semaphores_enabled" = xno 22800then : 22801 22802 22803printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 22804 22805 22806fi 22807 22808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 22809printf %s "checking for broken sem_getvalue... " >&6; } 22810if test ${ac_cv_broken_sem_getvalue+y} 22811then : 22812 printf %s "(cached) " >&6 22813else $as_nop 22814 if test "$cross_compiling" = yes 22815then : 22816 ac_cv_broken_sem_getvalue=yes 22817else $as_nop 22818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22819/* end confdefs.h. */ 22820 22821 22822 #include <unistd.h> 22823 #include <fcntl.h> 22824 #include <stdio.h> 22825 #include <semaphore.h> 22826 #include <sys/stat.h> 22827 22828 int main(void){ 22829 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 22830 int count; 22831 int res; 22832 if(a==SEM_FAILED){ 22833 perror("sem_open"); 22834 return 1; 22835 22836 } 22837 res = sem_getvalue(a, &count); 22838 sem_close(a); 22839 sem_unlink("/autocftw"); 22840 return res==-1 ? 1 : 0; 22841 } 22842 22843 22844_ACEOF 22845if ac_fn_c_try_run "$LINENO" 22846then : 22847 ac_cv_broken_sem_getvalue=no 22848else $as_nop 22849 ac_cv_broken_sem_getvalue=yes 22850fi 22851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22852 conftest.$ac_objext conftest.beam conftest.$ac_ext 22853fi 22854 22855 22856fi 22857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 22858printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; } 22859if test "x$ac_cv_broken_sem_getvalue" = xyes 22860then : 22861 22862 22863printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 22864 22865 22866fi 22867 22868ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 22869" "$ac_c_undeclared_builtin_options" "CFLAGS" 22870if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes 22871then : 22872 ac_have_decl=1 22873else $as_nop 22874 ac_have_decl=0 22875fi 22876printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h 22877ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 22878" "$ac_c_undeclared_builtin_options" "CFLAGS" 22879if test "x$ac_cv_have_decl_RTLD_NOW" = xyes 22880then : 22881 ac_have_decl=1 22882else $as_nop 22883 ac_have_decl=0 22884fi 22885printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h 22886ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 22887" "$ac_c_undeclared_builtin_options" "CFLAGS" 22888if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes 22889then : 22890 ac_have_decl=1 22891else $as_nop 22892 ac_have_decl=0 22893fi 22894printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h 22895ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 22896" "$ac_c_undeclared_builtin_options" "CFLAGS" 22897if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes 22898then : 22899 ac_have_decl=1 22900else $as_nop 22901 ac_have_decl=0 22902fi 22903printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h 22904ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 22905" "$ac_c_undeclared_builtin_options" "CFLAGS" 22906if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes 22907then : 22908 ac_have_decl=1 22909else $as_nop 22910 ac_have_decl=0 22911fi 22912printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h 22913ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 22914" "$ac_c_undeclared_builtin_options" "CFLAGS" 22915if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes 22916then : 22917 ac_have_decl=1 22918else $as_nop 22919 ac_have_decl=0 22920fi 22921printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h 22922ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 22923" "$ac_c_undeclared_builtin_options" "CFLAGS" 22924if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes 22925then : 22926 ac_have_decl=1 22927else $as_nop 22928 ac_have_decl=0 22929fi 22930printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h 22931ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> 22932" "$ac_c_undeclared_builtin_options" "CFLAGS" 22933if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes 22934then : 22935 ac_have_decl=1 22936else $as_nop 22937 ac_have_decl=0 22938fi 22939printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h 22940 22941 22942# determine what size digit to use for Python's longs 22943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 22944printf %s "checking digit size for Python's longs... " >&6; } 22945# Check whether --enable-big-digits was given. 22946if test ${enable_big_digits+y} 22947then : 22948 enableval=$enable_big_digits; case $enable_big_digits in 22949yes) 22950 enable_big_digits=30 ;; 22951no) 22952 enable_big_digits=15 ;; 2295315|30) 22954 ;; 22955*) 22956 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 22957esac 22958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 22959printf "%s\n" "$enable_big_digits" >&6; } 22960 22961printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h 22962 22963 22964else $as_nop 22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 22966printf "%s\n" "no value specified" >&6; } 22967fi 22968 22969 22970# check for wchar.h 22971ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 22972if test "x$ac_cv_header_wchar_h" = xyes 22973then : 22974 22975 22976printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 22977 22978 wchar_h="yes" 22979 22980else $as_nop 22981 wchar_h="no" 22982 22983fi 22984 22985 22986# determine wchar_t size 22987if test "$wchar_h" = yes 22988then 22989 # The cast to long int works around a bug in the HP C Compiler 22990# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22991# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22992# This bug is HP SR number 8606223364. 22993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 22994printf %s "checking size of wchar_t... " >&6; } 22995if test ${ac_cv_sizeof_wchar_t+y} 22996then : 22997 printf %s "(cached) " >&6 22998else $as_nop 22999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 23000" 23001then : 23002 23003else $as_nop 23004 if test "$ac_cv_type_wchar_t" = yes; then 23005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23006printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23007as_fn_error 77 "cannot compute sizeof (wchar_t) 23008See \`config.log' for more details" "$LINENO" 5; } 23009 else 23010 ac_cv_sizeof_wchar_t=0 23011 fi 23012fi 23013 23014fi 23015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 23016printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } 23017 23018 23019 23020printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h 23021 23022 23023fi 23024 23025# check whether wchar_t is signed or not 23026if test "$wchar_h" = yes 23027then 23028 # check whether wchar_t is signed or not 23029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 23030printf %s "checking whether wchar_t is signed... " >&6; } 23031if test ${ac_cv_wchar_t_signed+y} 23032then : 23033 printf %s "(cached) " >&6 23034else $as_nop 23035 23036 if test "$cross_compiling" = yes 23037then : 23038 ac_cv_wchar_t_signed=yes 23039else $as_nop 23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23041/* end confdefs.h. */ 23042 23043 #include <wchar.h> 23044 int main() 23045 { 23046 /* Success: exit code 0 */ 23047 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 23048 } 23049 23050_ACEOF 23051if ac_fn_c_try_run "$LINENO" 23052then : 23053 ac_cv_wchar_t_signed=yes 23054else $as_nop 23055 ac_cv_wchar_t_signed=no 23056fi 23057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23058 conftest.$ac_objext conftest.beam conftest.$ac_ext 23059fi 23060 23061fi 23062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 23063printf "%s\n" "$ac_cv_wchar_t_signed" >&6; } 23064fi 23065 23066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 23067printf %s "checking whether wchar_t is usable... " >&6; } 23068# wchar_t is only usable if it maps to an unsigned type 23069if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 23070 -a "$ac_cv_wchar_t_signed" = "no" 23071then 23072 23073printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 23074 23075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23076printf "%s\n" "yes" >&6; } 23077else 23078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23079printf "%s\n" "no" >&6; } 23080fi 23081 23082case $ac_sys_system/$ac_sys_release in 23083SunOS/*) 23084 if test -f /etc/os-release; then 23085 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) 23086 if test "x$OS_NAME" = "xOracle Solaris"; then 23087 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in 23088 # non-Unicode locales is not Unicode and hence cannot be used directly. 23089 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html 23090 23091printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h 23092 23093 fi 23094 fi 23095 ;; 23096esac 23097 23098# check for endianness 23099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 23100printf %s "checking whether byte ordering is bigendian... " >&6; } 23101if test ${ac_cv_c_bigendian+y} 23102then : 23103 printf %s "(cached) " >&6 23104else $as_nop 23105 ac_cv_c_bigendian=unknown 23106 # See if we're dealing with a universal compiler. 23107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23108/* end confdefs.h. */ 23109#ifndef __APPLE_CC__ 23110 not a universal capable compiler 23111 #endif 23112 typedef int dummy; 23113 23114_ACEOF 23115if ac_fn_c_try_compile "$LINENO" 23116then : 23117 23118 # Check for potential -arch flags. It is not universal unless 23119 # there are at least two -arch flags with different values. 23120 ac_arch= 23121 ac_prev= 23122 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 23123 if test -n "$ac_prev"; then 23124 case $ac_word in 23125 i?86 | x86_64 | ppc | ppc64) 23126 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 23127 ac_arch=$ac_word 23128 else 23129 ac_cv_c_bigendian=universal 23130 break 23131 fi 23132 ;; 23133 esac 23134 ac_prev= 23135 elif test "x$ac_word" = "x-arch"; then 23136 ac_prev=arch 23137 fi 23138 done 23139fi 23140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23141 if test $ac_cv_c_bigendian = unknown; then 23142 # See if sys/param.h defines the BYTE_ORDER macro. 23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23144/* end confdefs.h. */ 23145#include <sys/types.h> 23146 #include <sys/param.h> 23147 23148int 23149main (void) 23150{ 23151#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 23152 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 23153 && LITTLE_ENDIAN) 23154 bogus endian macros 23155 #endif 23156 23157 ; 23158 return 0; 23159} 23160_ACEOF 23161if ac_fn_c_try_compile "$LINENO" 23162then : 23163 # It does; now see whether it defined to BIG_ENDIAN or not. 23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23165/* end confdefs.h. */ 23166#include <sys/types.h> 23167 #include <sys/param.h> 23168 23169int 23170main (void) 23171{ 23172#if BYTE_ORDER != BIG_ENDIAN 23173 not big endian 23174 #endif 23175 23176 ; 23177 return 0; 23178} 23179_ACEOF 23180if ac_fn_c_try_compile "$LINENO" 23181then : 23182 ac_cv_c_bigendian=yes 23183else $as_nop 23184 ac_cv_c_bigendian=no 23185fi 23186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23187fi 23188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23189 fi 23190 if test $ac_cv_c_bigendian = unknown; then 23191 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23193/* end confdefs.h. */ 23194#include <limits.h> 23195 23196int 23197main (void) 23198{ 23199#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 23200 bogus endian macros 23201 #endif 23202 23203 ; 23204 return 0; 23205} 23206_ACEOF 23207if ac_fn_c_try_compile "$LINENO" 23208then : 23209 # It does; now see whether it defined to _BIG_ENDIAN or not. 23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23211/* end confdefs.h. */ 23212#include <limits.h> 23213 23214int 23215main (void) 23216{ 23217#ifndef _BIG_ENDIAN 23218 not big endian 23219 #endif 23220 23221 ; 23222 return 0; 23223} 23224_ACEOF 23225if ac_fn_c_try_compile "$LINENO" 23226then : 23227 ac_cv_c_bigendian=yes 23228else $as_nop 23229 ac_cv_c_bigendian=no 23230fi 23231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23232fi 23233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23234 fi 23235 if test $ac_cv_c_bigendian = unknown; then 23236 # Compile a test program. 23237 if test "$cross_compiling" = yes 23238then : 23239 # Try to guess by grepping values from an object file. 23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23241/* end confdefs.h. */ 23242unsigned short int ascii_mm[] = 23243 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 23244 unsigned short int ascii_ii[] = 23245 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 23246 int use_ascii (int i) { 23247 return ascii_mm[i] + ascii_ii[i]; 23248 } 23249 unsigned short int ebcdic_ii[] = 23250 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 23251 unsigned short int ebcdic_mm[] = 23252 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 23253 int use_ebcdic (int i) { 23254 return ebcdic_mm[i] + ebcdic_ii[i]; 23255 } 23256 extern int foo; 23257 23258int 23259main (void) 23260{ 23261return use_ascii (foo) == use_ebcdic (foo); 23262 ; 23263 return 0; 23264} 23265_ACEOF 23266if ac_fn_c_try_compile "$LINENO" 23267then : 23268 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 23269 ac_cv_c_bigendian=yes 23270 fi 23271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 23272 if test "$ac_cv_c_bigendian" = unknown; then 23273 ac_cv_c_bigendian=no 23274 else 23275 # finding both strings is unlikely to happen, but who knows? 23276 ac_cv_c_bigendian=unknown 23277 fi 23278 fi 23279fi 23280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23281else $as_nop 23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23283/* end confdefs.h. */ 23284$ac_includes_default 23285int 23286main (void) 23287{ 23288 23289 /* Are we little or big endian? From Harbison&Steele. */ 23290 union 23291 { 23292 long int l; 23293 char c[sizeof (long int)]; 23294 } u; 23295 u.l = 1; 23296 return u.c[sizeof (long int) - 1] == 1; 23297 23298 ; 23299 return 0; 23300} 23301_ACEOF 23302if ac_fn_c_try_run "$LINENO" 23303then : 23304 ac_cv_c_bigendian=no 23305else $as_nop 23306 ac_cv_c_bigendian=yes 23307fi 23308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23309 conftest.$ac_objext conftest.beam conftest.$ac_ext 23310fi 23311 23312 fi 23313fi 23314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 23315printf "%s\n" "$ac_cv_c_bigendian" >&6; } 23316 case $ac_cv_c_bigendian in #( 23317 yes) 23318 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 23319;; #( 23320 no) 23321 ;; #( 23322 universal) 23323 23324printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 23325 23326 ;; #( 23327 *) 23328 as_fn_error $? "unknown endianness 23329 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 23330 esac 23331 23332 23333# ABI version string for Python extension modules. This appears between the 23334# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 23335# from the following attributes which affect the ABI of this Python build (in 23336# this order): 23337# 23338# * The Python implementation (always 'cpython-' for us) 23339# * The major and minor version numbers 23340# * --with-pydebug (adds a 'd') 23341# 23342# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 23343# would get a shared library ABI version tag of 'cpython-32dmu' and shared 23344# libraries would be named 'foo.cpython-32dmu.so'. 23345# 23346# In Python 3.2 and older, --with-wide-unicode added a 'u' flag. 23347# In Python 3.7 and older, --with-pymalloc added a 'm' flag. 23348 23349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 23350printf %s "checking ABIFLAGS... " >&6; } 23351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 23352printf "%s\n" "$ABIFLAGS" >&6; } 23353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 23354printf %s "checking SOABI... " >&6; } 23355SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 23356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 23357printf "%s\n" "$SOABI" >&6; } 23358 23359# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI 23360if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then 23361 # Similar to SOABI but remove "d" flag from ABIFLAGS 23362 23363 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 23364 23365printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h 23366 23367fi 23368 23369 23370EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} 23371 23372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 23373printf %s "checking LDVERSION... " >&6; } 23374LDVERSION='$(VERSION)$(ABIFLAGS)' 23375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 23376printf "%s\n" "$LDVERSION" >&6; } 23377 23378# On Android and Cygwin the shared libraries must be linked with libpython. 23379 23380if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then 23381 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" 23382else 23383 LIBPYTHON='' 23384fi 23385 23386 23387 23388BINLIBDEST='$(LIBDIR)/python$(VERSION)' 23389 23390 23391# Check for --with-platlibdir 23392# /usr/$LIDIRNAME/python$VERSION 23393 23394PLATLIBDIR="lib" 23395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 23396printf %s "checking for --with-platlibdir... " >&6; } 23397 23398# Check whether --with-platlibdir was given. 23399if test ${with_platlibdir+y} 23400then : 23401 withval=$with_platlibdir; 23402# ignore 3 options: 23403# --with-platlibdir 23404# --with-platlibdir= 23405# --without-platlibdir 23406if test -n "$withval" -a "$withval" != yes -a "$withval" != no 23407then 23408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23409printf "%s\n" "yes" >&6; } 23410 PLATLIBDIR="$withval" 23411 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' 23412else 23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23414printf "%s\n" "no" >&6; } 23415fi 23416else $as_nop 23417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23418printf "%s\n" "no" >&6; } 23419fi 23420 23421 23422 23423 23424if test x$PLATFORM_TRIPLET = x; then 23425 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" 23426else 23427 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 23428fi 23429 23430 23431# Check for --with-wheel-pkg-dir=PATH 23432 23433WHEEL_PKG_DIR="" 23434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 23435printf %s "checking for --with-wheel-pkg-dir... " >&6; } 23436 23437# Check whether --with-wheel-pkg-dir was given. 23438if test ${with_wheel_pkg_dir+y} 23439then : 23440 withval=$with_wheel_pkg_dir; 23441if test -n "$withval"; then 23442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23443printf "%s\n" "yes" >&6; } 23444 WHEEL_PKG_DIR="$withval" 23445else 23446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23447printf "%s\n" "no" >&6; } 23448fi 23449else $as_nop 23450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23451printf "%s\n" "no" >&6; } 23452fi 23453 23454 23455# Check whether right shifting a negative integer extends the sign bit 23456# or fills with zeros (like the Cray J90, according to Tim Peters). 23457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 23458printf %s "checking whether right shift extends the sign bit... " >&6; } 23459if test ${ac_cv_rshift_extends_sign+y} 23460then : 23461 printf %s "(cached) " >&6 23462else $as_nop 23463 23464if test "$cross_compiling" = yes 23465then : 23466 ac_cv_rshift_extends_sign=yes 23467else $as_nop 23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23469/* end confdefs.h. */ 23470 23471int main(void) 23472{ 23473 return (((-1)>>3 == -1) ? 0 : 1); 23474} 23475 23476_ACEOF 23477if ac_fn_c_try_run "$LINENO" 23478then : 23479 ac_cv_rshift_extends_sign=yes 23480else $as_nop 23481 ac_cv_rshift_extends_sign=no 23482fi 23483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23484 conftest.$ac_objext conftest.beam conftest.$ac_ext 23485fi 23486 23487fi 23488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 23489printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; } 23490if test "$ac_cv_rshift_extends_sign" = no 23491then 23492 23493printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 23494 23495fi 23496 23497# check for getc_unlocked and related locking functions 23498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 23499printf %s "checking for getc_unlocked() and friends... " >&6; } 23500if test ${ac_cv_have_getc_unlocked+y} 23501then : 23502 printf %s "(cached) " >&6 23503else $as_nop 23504 23505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23506/* end confdefs.h. */ 23507#include <stdio.h> 23508int 23509main (void) 23510{ 23511 23512 FILE *f = fopen("/dev/null", "r"); 23513 flockfile(f); 23514 getc_unlocked(f); 23515 funlockfile(f); 23516 23517 ; 23518 return 0; 23519} 23520_ACEOF 23521if ac_fn_c_try_link "$LINENO" 23522then : 23523 ac_cv_have_getc_unlocked=yes 23524else $as_nop 23525 ac_cv_have_getc_unlocked=no 23526fi 23527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23528 conftest$ac_exeext conftest.$ac_ext 23529fi 23530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 23531printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; } 23532if test "$ac_cv_have_getc_unlocked" = yes 23533then 23534 23535printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 23536 23537fi 23538 23539 23540# Check whether --with-readline was given. 23541if test ${with_readline+y} 23542then : 23543 withval=$with_readline; 23544else $as_nop 23545 with_readline=yes 23546fi 23547 23548 23549# check where readline lives 23550py_cv_lib_readline=no 23551# save the value of LIBS so we don't actually link Python with readline 23552LIBS_no_readline=$LIBS 23553 23554if test "$with_readline" != no; then 23555 case "$with_readline" in 23556 editline|edit) 23557 LIBREADLINE=edit 23558 23559printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h 23560 23561 ;; 23562 yes|readline) 23563 LIBREADLINE=readline 23564 ;; 23565 *) 23566 as_fn_error $? "proper usage is --with(out)-readline[=editline]" "$LINENO" 5 23567 ;; 23568 esac 23569 23570 # On some systems we need to link readline to a termcap compatible 23571 # library. NOTE: Keep the precedence of listed libraries synchronised 23572 # with setup.py. 23573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 23574printf %s "checking how to link readline libs... " >&6; } 23575 for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do 23576 if test -z "$py_libtermcap"; then 23577 READLINE_LIBS="-l$LIBREADLINE" 23578 else 23579 READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap" 23580 fi 23581 LIBS="$READLINE_LIBS $LIBS_no_readline" 23582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23583/* end confdefs.h. */ 23584 23585/* Override any GCC internal prototype to avoid an error. 23586 Use char because int might match the return type of a GCC 23587 builtin and then its argument prototype would still apply. */ 23588char readline (); 23589int 23590main (void) 23591{ 23592return readline (); 23593 ; 23594 return 0; 23595} 23596_ACEOF 23597if ac_fn_c_try_link "$LINENO" 23598then : 23599 py_cv_lib_readline=yes 23600fi 23601rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23602 conftest$ac_exeext conftest.$ac_ext 23603 if test $py_cv_lib_readline = yes; then 23604 break 23605 fi 23606 done 23607 23608 # Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts 23609 #AC_SUBST([READLINE_LIBS]) 23610 if test $py_cv_lib_readline = no; then 23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 23612printf "%s\n" "none" >&6; } 23613 else 23614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 23615printf "%s\n" "$READLINE_LIBS" >&6; } 23616 23617printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h 23618 23619 fi 23620fi 23621 23622if test "$py_cv_lib_readline" = yes; then 23623 # check for readline 2.2 23624 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" " 23625#include <stdio.h> /* Must be first for Gnu Readline */ 23626#ifdef WITH_EDITLINE 23627# include <editline/readline.h> 23628#else 23629# include <readline/readline.h> 23630#endif 23631 23632" "$ac_c_undeclared_builtin_options" "CFLAGS" 23633if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes 23634then : 23635 23636printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 23637 23638fi 23639 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" " 23640#include <stdio.h> /* Must be first for Gnu Readline */ 23641#ifdef WITH_EDITLINE 23642# include <editline/readline.h> 23643#else 23644# include <readline/readline.h> 23645#endif 23646 23647" "$ac_c_undeclared_builtin_options" "CFLAGS" 23648if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes 23649then : 23650 23651printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 23652 23653fi 23654 23655 # check for readline 4.0 23656 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_pre_input_hook" | $as_tr_sh` 23657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 23658printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } 23659if eval test \${$as_ac_Lib+y} 23660then : 23661 printf %s "(cached) " >&6 23662else $as_nop 23663 ac_check_lib_save_LIBS=$LIBS 23664LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" 23665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23666/* end confdefs.h. */ 23667 23668/* Override any GCC internal prototype to avoid an error. 23669 Use char because int might match the return type of a GCC 23670 builtin and then its argument prototype would still apply. */ 23671char rl_pre_input_hook (); 23672int 23673main (void) 23674{ 23675return rl_pre_input_hook (); 23676 ; 23677 return 0; 23678} 23679_ACEOF 23680if ac_fn_c_try_link "$LINENO" 23681then : 23682 eval "$as_ac_Lib=yes" 23683else $as_nop 23684 eval "$as_ac_Lib=no" 23685fi 23686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23687 conftest$ac_exeext conftest.$ac_ext 23688LIBS=$ac_check_lib_save_LIBS 23689fi 23690eval ac_res=\$$as_ac_Lib 23691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23692printf "%s\n" "$ac_res" >&6; } 23693if eval test \"x\$"$as_ac_Lib"\" = x"yes" 23694then : 23695 23696printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 23697 23698fi 23699 23700 23701 # also in 4.0 23702 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_display_matches_hook" | $as_tr_sh` 23703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 23704printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } 23705if eval test \${$as_ac_Lib+y} 23706then : 23707 printf %s "(cached) " >&6 23708else $as_nop 23709 ac_check_lib_save_LIBS=$LIBS 23710LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" 23711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23712/* end confdefs.h. */ 23713 23714/* Override any GCC internal prototype to avoid an error. 23715 Use char because int might match the return type of a GCC 23716 builtin and then its argument prototype would still apply. */ 23717char rl_completion_display_matches_hook (); 23718int 23719main (void) 23720{ 23721return rl_completion_display_matches_hook (); 23722 ; 23723 return 0; 23724} 23725_ACEOF 23726if ac_fn_c_try_link "$LINENO" 23727then : 23728 eval "$as_ac_Lib=yes" 23729else $as_nop 23730 eval "$as_ac_Lib=no" 23731fi 23732rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23733 conftest$ac_exeext conftest.$ac_ext 23734LIBS=$ac_check_lib_save_LIBS 23735fi 23736eval ac_res=\$$as_ac_Lib 23737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23738printf "%s\n" "$ac_res" >&6; } 23739if eval test \"x\$"$as_ac_Lib"\" = x"yes" 23740then : 23741 23742printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 23743 23744fi 23745 23746 23747 # also in 4.0, but not in editline 23748 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_resize_terminal" | $as_tr_sh` 23749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 23750printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } 23751if eval test \${$as_ac_Lib+y} 23752then : 23753 printf %s "(cached) " >&6 23754else $as_nop 23755 ac_check_lib_save_LIBS=$LIBS 23756LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" 23757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23758/* end confdefs.h. */ 23759 23760/* Override any GCC internal prototype to avoid an error. 23761 Use char because int might match the return type of a GCC 23762 builtin and then its argument prototype would still apply. */ 23763char rl_resize_terminal (); 23764int 23765main (void) 23766{ 23767return rl_resize_terminal (); 23768 ; 23769 return 0; 23770} 23771_ACEOF 23772if ac_fn_c_try_link "$LINENO" 23773then : 23774 eval "$as_ac_Lib=yes" 23775else $as_nop 23776 eval "$as_ac_Lib=no" 23777fi 23778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23779 conftest$ac_exeext conftest.$ac_ext 23780LIBS=$ac_check_lib_save_LIBS 23781fi 23782eval ac_res=\$$as_ac_Lib 23783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23784printf "%s\n" "$ac_res" >&6; } 23785if eval test \"x\$"$as_ac_Lib"\" = x"yes" 23786then : 23787 23788printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 23789 23790fi 23791 23792 23793 # check for readline 4.2 23794 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_rl_completion_matches" | $as_tr_sh` 23795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 23796printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } 23797if eval test \${$as_ac_Lib+y} 23798then : 23799 printf %s "(cached) " >&6 23800else $as_nop 23801 ac_check_lib_save_LIBS=$LIBS 23802LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" 23803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23804/* end confdefs.h. */ 23805 23806/* Override any GCC internal prototype to avoid an error. 23807 Use char because int might match the return type of a GCC 23808 builtin and then its argument prototype would still apply. */ 23809char rl_completion_matches (); 23810int 23811main (void) 23812{ 23813return rl_completion_matches (); 23814 ; 23815 return 0; 23816} 23817_ACEOF 23818if ac_fn_c_try_link "$LINENO" 23819then : 23820 eval "$as_ac_Lib=yes" 23821else $as_nop 23822 eval "$as_ac_Lib=no" 23823fi 23824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23825 conftest$ac_exeext conftest.$ac_ext 23826LIBS=$ac_check_lib_save_LIBS 23827fi 23828eval ac_res=\$$as_ac_Lib 23829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23830printf "%s\n" "$ac_res" >&6; } 23831if eval test \"x\$"$as_ac_Lib"\" = x"yes" 23832then : 23833 23834printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 23835 23836fi 23837 23838 23839 # also in readline 4.2 23840 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" " 23841#include <stdio.h> /* Must be first for Gnu Readline */ 23842#ifdef WITH_EDITLINE 23843# include <editline/readline.h> 23844#else 23845# include <readline/readline.h> 23846#endif 23847 23848" "$ac_c_undeclared_builtin_options" "CFLAGS" 23849if test "x$ac_cv_have_decl_rl_catch_signals" = xyes 23850then : 23851 23852printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 23853 23854fi 23855 23856 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBREADLINE""_append_history" | $as_tr_sh` 23857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 23858printf %s "checking for append_history in -l$LIBREADLINE... " >&6; } 23859if eval test \${$as_ac_Lib+y} 23860then : 23861 printf %s "(cached) " >&6 23862else $as_nop 23863 ac_check_lib_save_LIBS=$LIBS 23864LIBS="-l$LIBREADLINE $READLINE_LIBS $LIBS" 23865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23866/* end confdefs.h. */ 23867 23868/* Override any GCC internal prototype to avoid an error. 23869 Use char because int might match the return type of a GCC 23870 builtin and then its argument prototype would still apply. */ 23871char append_history (); 23872int 23873main (void) 23874{ 23875return append_history (); 23876 ; 23877 return 0; 23878} 23879_ACEOF 23880if ac_fn_c_try_link "$LINENO" 23881then : 23882 eval "$as_ac_Lib=yes" 23883else $as_nop 23884 eval "$as_ac_Lib=no" 23885fi 23886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23887 conftest$ac_exeext conftest.$ac_ext 23888LIBS=$ac_check_lib_save_LIBS 23889fi 23890eval ac_res=\$$as_ac_Lib 23891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23892printf "%s\n" "$ac_res" >&6; } 23893if eval test \"x\$"$as_ac_Lib"\" = x"yes" 23894then : 23895 23896printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 23897 23898fi 23899 23900fi 23901 23902# End of readline checks: restore LIBS 23903LIBS=$LIBS_no_readline 23904 23905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 23906printf %s "checking for broken nice()... " >&6; } 23907if test ${ac_cv_broken_nice+y} 23908then : 23909 printf %s "(cached) " >&6 23910else $as_nop 23911 23912if test "$cross_compiling" = yes 23913then : 23914 ac_cv_broken_nice=no 23915else $as_nop 23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23917/* end confdefs.h. */ 23918 23919#include <stdlib.h> 23920#include <unistd.h> 23921int main(void) 23922{ 23923 int val1 = nice(1); 23924 if (val1 != -1 && val1 == nice(2)) 23925 exit(0); 23926 exit(1); 23927} 23928 23929_ACEOF 23930if ac_fn_c_try_run "$LINENO" 23931then : 23932 ac_cv_broken_nice=yes 23933else $as_nop 23934 ac_cv_broken_nice=no 23935fi 23936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23937 conftest.$ac_objext conftest.beam conftest.$ac_ext 23938fi 23939 23940fi 23941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 23942printf "%s\n" "$ac_cv_broken_nice" >&6; } 23943if test "$ac_cv_broken_nice" = yes 23944then 23945 23946printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h 23947 23948fi 23949 23950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 23951printf %s "checking for broken poll()... " >&6; } 23952if test ${ac_cv_broken_poll+y} 23953then : 23954 printf %s "(cached) " >&6 23955else $as_nop 23956 if test "$cross_compiling" = yes 23957then : 23958 ac_cv_broken_poll=no 23959else $as_nop 23960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23961/* end confdefs.h. */ 23962 23963#include <poll.h> 23964#include <unistd.h> 23965 23966int main(void) 23967{ 23968 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 23969 int poll_test; 23970 23971 close (42); 23972 23973 poll_test = poll(&poll_struct, 1, 0); 23974 if (poll_test < 0) 23975 return 0; 23976 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 23977 return 0; 23978 else 23979 return 1; 23980} 23981 23982_ACEOF 23983if ac_fn_c_try_run "$LINENO" 23984then : 23985 ac_cv_broken_poll=yes 23986else $as_nop 23987 ac_cv_broken_poll=no 23988fi 23989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23990 conftest.$ac_objext conftest.beam conftest.$ac_ext 23991fi 23992 23993fi 23994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 23995printf "%s\n" "$ac_cv_broken_poll" >&6; } 23996if test "$ac_cv_broken_poll" = yes 23997then 23998 23999printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h 24000 24001fi 24002 24003# check tzset(3) exists and works like we expect it to 24004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 24005printf %s "checking for working tzset()... " >&6; } 24006if test ${ac_cv_working_tzset+y} 24007then : 24008 printf %s "(cached) " >&6 24009else $as_nop 24010 24011if test "$cross_compiling" = yes 24012then : 24013 ac_cv_working_tzset=no 24014else $as_nop 24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24016/* end confdefs.h. */ 24017 24018#include <stdlib.h> 24019#include <time.h> 24020#include <string.h> 24021 24022#if HAVE_TZNAME 24023extern char *tzname[]; 24024#endif 24025 24026int main(void) 24027{ 24028 /* Note that we need to ensure that not only does tzset(3) 24029 do 'something' with localtime, but it works as documented 24030 in the library reference and as expected by the test suite. 24031 This includes making sure that tzname is set properly if 24032 tm->tm_zone does not exist since it is the alternative way 24033 of getting timezone info. 24034 24035 Red Hat 6.2 doesn't understand the southern hemisphere 24036 after New Year's Day. 24037 */ 24038 24039 time_t groundhogday = 1044144000; /* GMT-based */ 24040 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 24041 24042 putenv("TZ=UTC+0"); 24043 tzset(); 24044 if (localtime(&groundhogday)->tm_hour != 0) 24045 exit(1); 24046#if HAVE_TZNAME 24047 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 24048 if (strcmp(tzname[0], "UTC") || 24049 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 24050 exit(1); 24051#endif 24052 24053 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 24054 tzset(); 24055 if (localtime(&groundhogday)->tm_hour != 19) 24056 exit(1); 24057#if HAVE_TZNAME 24058 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 24059 exit(1); 24060#endif 24061 24062 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 24063 tzset(); 24064 if (localtime(&groundhogday)->tm_hour != 11) 24065 exit(1); 24066#if HAVE_TZNAME 24067 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 24068 exit(1); 24069#endif 24070 24071#if HAVE_STRUCT_TM_TM_ZONE 24072 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 24073 exit(1); 24074 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 24075 exit(1); 24076#endif 24077 24078 exit(0); 24079} 24080 24081_ACEOF 24082if ac_fn_c_try_run "$LINENO" 24083then : 24084 ac_cv_working_tzset=yes 24085else $as_nop 24086 ac_cv_working_tzset=no 24087fi 24088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24089 conftest.$ac_objext conftest.beam conftest.$ac_ext 24090fi 24091 24092fi 24093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 24094printf "%s\n" "$ac_cv_working_tzset" >&6; } 24095if test "$ac_cv_working_tzset" = yes 24096then 24097 24098printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h 24099 24100fi 24101 24102# Look for subsecond timestamps in struct stat 24103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 24104printf %s "checking for tv_nsec in struct stat... " >&6; } 24105if test ${ac_cv_stat_tv_nsec+y} 24106then : 24107 printf %s "(cached) " >&6 24108else $as_nop 24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24110/* end confdefs.h. */ 24111#include <sys/stat.h> 24112int 24113main (void) 24114{ 24115 24116struct stat st; 24117st.st_mtim.tv_nsec = 1; 24118 24119 ; 24120 return 0; 24121} 24122_ACEOF 24123if ac_fn_c_try_compile "$LINENO" 24124then : 24125 ac_cv_stat_tv_nsec=yes 24126else $as_nop 24127 ac_cv_stat_tv_nsec=no 24128fi 24129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24130fi 24131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 24132printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; } 24133if test "$ac_cv_stat_tv_nsec" = yes 24134then 24135 24136printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 24137 24138fi 24139 24140# Look for BSD style subsecond timestamps in struct stat 24141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 24142printf %s "checking for tv_nsec2 in struct stat... " >&6; } 24143if test ${ac_cv_stat_tv_nsec2+y} 24144then : 24145 printf %s "(cached) " >&6 24146else $as_nop 24147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24148/* end confdefs.h. */ 24149#include <sys/stat.h> 24150int 24151main (void) 24152{ 24153 24154struct stat st; 24155st.st_mtimespec.tv_nsec = 1; 24156 24157 ; 24158 return 0; 24159} 24160_ACEOF 24161if ac_fn_c_try_compile "$LINENO" 24162then : 24163 ac_cv_stat_tv_nsec2=yes 24164else $as_nop 24165 ac_cv_stat_tv_nsec2=no 24166fi 24167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24168fi 24169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 24170printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; } 24171if test "$ac_cv_stat_tv_nsec2" = yes 24172then 24173 24174printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 24175 24176fi 24177 24178# first curses header check 24179ac_save_cppflags="$CPPFLAGS" 24180if test "$cross_compiling" = no; then 24181 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 24182fi 24183 24184ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 24185if test "x$ac_cv_header_curses_h" = xyes 24186then : 24187 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h 24188 24189fi 24190ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 24191if test "x$ac_cv_header_ncurses_h" = xyes 24192then : 24193 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h 24194 24195fi 24196 24197 24198# On Solaris, term.h requires curses.h 24199ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 24200#ifdef HAVE_CURSES_H 24201#include <curses.h> 24202#endif 24203 24204" 24205if test "x$ac_cv_header_term_h" = xyes 24206then : 24207 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h 24208 24209fi 24210 24211 24212# On HP/UX 11.0, mvwdelch is a block with a return statement 24213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 24214printf %s "checking whether mvwdelch is an expression... " >&6; } 24215if test ${ac_cv_mvwdelch_is_expression+y} 24216then : 24217 printf %s "(cached) " >&6 24218else $as_nop 24219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24220/* end confdefs.h. */ 24221#include <curses.h> 24222int 24223main (void) 24224{ 24225 24226 int rtn; 24227 rtn = mvwdelch(0,0,0); 24228 24229 ; 24230 return 0; 24231} 24232_ACEOF 24233if ac_fn_c_try_compile "$LINENO" 24234then : 24235 ac_cv_mvwdelch_is_expression=yes 24236else $as_nop 24237 ac_cv_mvwdelch_is_expression=no 24238fi 24239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24240fi 24241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 24242printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; } 24243 24244if test "$ac_cv_mvwdelch_is_expression" = yes 24245then 24246 24247printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 24248 24249fi 24250 24251# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque 24252# structs since version 5.7. If the macro is defined as zero before including 24253# [n]curses.h, ncurses will expose fields of the structs regardless of the 24254# configuration. 24255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 24256printf %s "checking whether WINDOW has _flags... " >&6; } 24257if test ${ac_cv_window_has_flags+y} 24258then : 24259 printf %s "(cached) " >&6 24260else $as_nop 24261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24262/* end confdefs.h. */ 24263 24264 #define NCURSES_OPAQUE 0 24265 #include <curses.h> 24266 24267int 24268main (void) 24269{ 24270 24271 WINDOW *w; 24272 w->_flags = 0; 24273 24274 ; 24275 return 0; 24276} 24277_ACEOF 24278if ac_fn_c_try_compile "$LINENO" 24279then : 24280 ac_cv_window_has_flags=yes 24281else $as_nop 24282 ac_cv_window_has_flags=no 24283fi 24284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24285fi 24286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 24287printf "%s\n" "$ac_cv_window_has_flags" >&6; } 24288 24289 24290if test "$ac_cv_window_has_flags" = yes 24291then 24292 24293printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 24294 24295fi 24296 24297 24298 24299 24300 24301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5 24302printf %s "checking for curses function is_pad... " >&6; } 24303if test ${ac_cv_lib_curses_is_pad+y} 24304then : 24305 printf %s "(cached) " >&6 24306else $as_nop 24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24308/* end confdefs.h. */ 24309#include <curses.h> 24310int 24311main (void) 24312{ 24313 24314 #ifndef is_pad 24315 void *x=is_pad 24316 #endif 24317 24318 ; 24319 return 0; 24320} 24321_ACEOF 24322if ac_fn_c_try_compile "$LINENO" 24323then : 24324 ac_cv_lib_curses_is_pad=yes 24325else $as_nop 24326 ac_cv_lib_curses_is_pad=no 24327fi 24328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24329 24330fi 24331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5 24332printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; } 24333 if test "x$ac_cv_lib_curses_is_pad" = xyes 24334then : 24335 24336printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 24337 24338fi 24339 24340 24341 24342 24343 24344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5 24345printf %s "checking for curses function is_term_resized... " >&6; } 24346if test ${ac_cv_lib_curses_is_term_resized+y} 24347then : 24348 printf %s "(cached) " >&6 24349else $as_nop 24350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24351/* end confdefs.h. */ 24352#include <curses.h> 24353int 24354main (void) 24355{ 24356 24357 #ifndef is_term_resized 24358 void *x=is_term_resized 24359 #endif 24360 24361 ; 24362 return 0; 24363} 24364_ACEOF 24365if ac_fn_c_try_compile "$LINENO" 24366then : 24367 ac_cv_lib_curses_is_term_resized=yes 24368else $as_nop 24369 ac_cv_lib_curses_is_term_resized=no 24370fi 24371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24372 24373fi 24374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5 24375printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; } 24376 if test "x$ac_cv_lib_curses_is_term_resized" = xyes 24377then : 24378 24379printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 24380 24381fi 24382 24383 24384 24385 24386 24387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5 24388printf %s "checking for curses function resize_term... " >&6; } 24389if test ${ac_cv_lib_curses_resize_term+y} 24390then : 24391 printf %s "(cached) " >&6 24392else $as_nop 24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24394/* end confdefs.h. */ 24395#include <curses.h> 24396int 24397main (void) 24398{ 24399 24400 #ifndef resize_term 24401 void *x=resize_term 24402 #endif 24403 24404 ; 24405 return 0; 24406} 24407_ACEOF 24408if ac_fn_c_try_compile "$LINENO" 24409then : 24410 ac_cv_lib_curses_resize_term=yes 24411else $as_nop 24412 ac_cv_lib_curses_resize_term=no 24413fi 24414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24415 24416fi 24417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5 24418printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; } 24419 if test "x$ac_cv_lib_curses_resize_term" = xyes 24420then : 24421 24422printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 24423 24424fi 24425 24426 24427 24428 24429 24430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5 24431printf %s "checking for curses function resizeterm... " >&6; } 24432if test ${ac_cv_lib_curses_resizeterm+y} 24433then : 24434 printf %s "(cached) " >&6 24435else $as_nop 24436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24437/* end confdefs.h. */ 24438#include <curses.h> 24439int 24440main (void) 24441{ 24442 24443 #ifndef resizeterm 24444 void *x=resizeterm 24445 #endif 24446 24447 ; 24448 return 0; 24449} 24450_ACEOF 24451if ac_fn_c_try_compile "$LINENO" 24452then : 24453 ac_cv_lib_curses_resizeterm=yes 24454else $as_nop 24455 ac_cv_lib_curses_resizeterm=no 24456fi 24457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24458 24459fi 24460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5 24461printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; } 24462 if test "x$ac_cv_lib_curses_resizeterm" = xyes 24463then : 24464 24465printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 24466 24467fi 24468 24469 24470 24471 24472 24473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5 24474printf %s "checking for curses function immedok... " >&6; } 24475if test ${ac_cv_lib_curses_immedok+y} 24476then : 24477 printf %s "(cached) " >&6 24478else $as_nop 24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24480/* end confdefs.h. */ 24481#include <curses.h> 24482int 24483main (void) 24484{ 24485 24486 #ifndef immedok 24487 void *x=immedok 24488 #endif 24489 24490 ; 24491 return 0; 24492} 24493_ACEOF 24494if ac_fn_c_try_compile "$LINENO" 24495then : 24496 ac_cv_lib_curses_immedok=yes 24497else $as_nop 24498 ac_cv_lib_curses_immedok=no 24499fi 24500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24501 24502fi 24503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5 24504printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; } 24505 if test "x$ac_cv_lib_curses_immedok" = xyes 24506then : 24507 24508printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 24509 24510fi 24511 24512 24513 24514 24515 24516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5 24517printf %s "checking for curses function syncok... " >&6; } 24518if test ${ac_cv_lib_curses_syncok+y} 24519then : 24520 printf %s "(cached) " >&6 24521else $as_nop 24522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24523/* end confdefs.h. */ 24524#include <curses.h> 24525int 24526main (void) 24527{ 24528 24529 #ifndef syncok 24530 void *x=syncok 24531 #endif 24532 24533 ; 24534 return 0; 24535} 24536_ACEOF 24537if ac_fn_c_try_compile "$LINENO" 24538then : 24539 ac_cv_lib_curses_syncok=yes 24540else $as_nop 24541 ac_cv_lib_curses_syncok=no 24542fi 24543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24544 24545fi 24546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5 24547printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; } 24548 if test "x$ac_cv_lib_curses_syncok" = xyes 24549then : 24550 24551printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 24552 24553fi 24554 24555 24556 24557 24558 24559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5 24560printf %s "checking for curses function wchgat... " >&6; } 24561if test ${ac_cv_lib_curses_wchgat+y} 24562then : 24563 printf %s "(cached) " >&6 24564else $as_nop 24565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24566/* end confdefs.h. */ 24567#include <curses.h> 24568int 24569main (void) 24570{ 24571 24572 #ifndef wchgat 24573 void *x=wchgat 24574 #endif 24575 24576 ; 24577 return 0; 24578} 24579_ACEOF 24580if ac_fn_c_try_compile "$LINENO" 24581then : 24582 ac_cv_lib_curses_wchgat=yes 24583else $as_nop 24584 ac_cv_lib_curses_wchgat=no 24585fi 24586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24587 24588fi 24589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5 24590printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; } 24591 if test "x$ac_cv_lib_curses_wchgat" = xyes 24592then : 24593 24594printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 24595 24596fi 24597 24598 24599 24600 24601 24602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5 24603printf %s "checking for curses function filter... " >&6; } 24604if test ${ac_cv_lib_curses_filter+y} 24605then : 24606 printf %s "(cached) " >&6 24607else $as_nop 24608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24609/* end confdefs.h. */ 24610#include <curses.h> 24611int 24612main (void) 24613{ 24614 24615 #ifndef filter 24616 void *x=filter 24617 #endif 24618 24619 ; 24620 return 0; 24621} 24622_ACEOF 24623if ac_fn_c_try_compile "$LINENO" 24624then : 24625 ac_cv_lib_curses_filter=yes 24626else $as_nop 24627 ac_cv_lib_curses_filter=no 24628fi 24629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24630 24631fi 24632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5 24633printf "%s\n" "$ac_cv_lib_curses_filter" >&6; } 24634 if test "x$ac_cv_lib_curses_filter" = xyes 24635then : 24636 24637printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h 24638 24639fi 24640 24641 24642 24643 24644 24645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5 24646printf %s "checking for curses function has_key... " >&6; } 24647if test ${ac_cv_lib_curses_has_key+y} 24648then : 24649 printf %s "(cached) " >&6 24650else $as_nop 24651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24652/* end confdefs.h. */ 24653#include <curses.h> 24654int 24655main (void) 24656{ 24657 24658 #ifndef has_key 24659 void *x=has_key 24660 #endif 24661 24662 ; 24663 return 0; 24664} 24665_ACEOF 24666if ac_fn_c_try_compile "$LINENO" 24667then : 24668 ac_cv_lib_curses_has_key=yes 24669else $as_nop 24670 ac_cv_lib_curses_has_key=no 24671fi 24672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24673 24674fi 24675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5 24676printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; } 24677 if test "x$ac_cv_lib_curses_has_key" = xyes 24678then : 24679 24680printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 24681 24682fi 24683 24684 24685 24686 24687 24688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5 24689printf %s "checking for curses function typeahead... " >&6; } 24690if test ${ac_cv_lib_curses_typeahead+y} 24691then : 24692 printf %s "(cached) " >&6 24693else $as_nop 24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24695/* end confdefs.h. */ 24696#include <curses.h> 24697int 24698main (void) 24699{ 24700 24701 #ifndef typeahead 24702 void *x=typeahead 24703 #endif 24704 24705 ; 24706 return 0; 24707} 24708_ACEOF 24709if ac_fn_c_try_compile "$LINENO" 24710then : 24711 ac_cv_lib_curses_typeahead=yes 24712else $as_nop 24713 ac_cv_lib_curses_typeahead=no 24714fi 24715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24716 24717fi 24718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5 24719printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; } 24720 if test "x$ac_cv_lib_curses_typeahead" = xyes 24721then : 24722 24723printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 24724 24725fi 24726 24727 24728 24729 24730 24731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5 24732printf %s "checking for curses function use_env... " >&6; } 24733if test ${ac_cv_lib_curses_use_env+y} 24734then : 24735 printf %s "(cached) " >&6 24736else $as_nop 24737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24738/* end confdefs.h. */ 24739#include <curses.h> 24740int 24741main (void) 24742{ 24743 24744 #ifndef use_env 24745 void *x=use_env 24746 #endif 24747 24748 ; 24749 return 0; 24750} 24751_ACEOF 24752if ac_fn_c_try_compile "$LINENO" 24753then : 24754 ac_cv_lib_curses_use_env=yes 24755else $as_nop 24756 ac_cv_lib_curses_use_env=no 24757fi 24758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24759 24760fi 24761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5 24762printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; } 24763 if test "x$ac_cv_lib_curses_use_env" = xyes 24764then : 24765 24766printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 24767 24768fi 24769 24770 24771 24772CPPFLAGS=$ac_save_cppflags 24773 24774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 24775printf "%s\n" "$as_me: checking for device files" >&6;} 24776 24777if test "x$cross_compiling" = xyes; then 24778 if test "${ac_cv_file__dev_ptmx+set}" != set; then 24779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 24780printf %s "checking for /dev/ptmx... " >&6; } 24781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 24782printf "%s\n" "not set" >&6; } 24783 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 24784 fi 24785 if test "${ac_cv_file__dev_ptc+set}" != set; then 24786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 24787printf %s "checking for /dev/ptc... " >&6; } 24788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 24789printf "%s\n" "not set" >&6; } 24790 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 24791 fi 24792fi 24793 24794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 24795printf %s "checking for /dev/ptmx... " >&6; } 24796if test ${ac_cv_file__dev_ptmx+y} 24797then : 24798 printf %s "(cached) " >&6 24799else $as_nop 24800 test "$cross_compiling" = yes && 24801 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 24802if test -r "/dev/ptmx"; then 24803 ac_cv_file__dev_ptmx=yes 24804else 24805 ac_cv_file__dev_ptmx=no 24806fi 24807fi 24808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 24809printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; } 24810if test "x$ac_cv_file__dev_ptmx" = xyes 24811then : 24812 24813fi 24814 24815if test "x$ac_cv_file__dev_ptmx" = xyes; then 24816 24817printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h 24818 24819fi 24820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 24821printf %s "checking for /dev/ptc... " >&6; } 24822if test ${ac_cv_file__dev_ptc+y} 24823then : 24824 printf %s "(cached) " >&6 24825else $as_nop 24826 test "$cross_compiling" = yes && 24827 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 24828if test -r "/dev/ptc"; then 24829 ac_cv_file__dev_ptc=yes 24830else 24831 ac_cv_file__dev_ptc=no 24832fi 24833fi 24834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 24835printf "%s\n" "$ac_cv_file__dev_ptc" >&6; } 24836if test "x$ac_cv_file__dev_ptc" = xyes 24837then : 24838 24839fi 24840 24841if test "x$ac_cv_file__dev_ptc" = xyes; then 24842 24843printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h 24844 24845fi 24846 24847if test $ac_sys_system = Darwin 24848then 24849 LIBS="$LIBS -framework CoreFoundation" 24850fi 24851 24852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 24853printf %s "checking for %zd printf() format support... " >&6; } 24854if test ${ac_cv_have_size_t_format+y} 24855then : 24856 printf %s "(cached) " >&6 24857else $as_nop 24858 if test "$cross_compiling" = yes 24859then : 24860 ac_cv_have_size_t_format="cross -- assuming yes" 24861 24862else $as_nop 24863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24864/* end confdefs.h. */ 24865 24866#include <stdio.h> 24867#include <stddef.h> 24868#include <string.h> 24869 24870#ifdef HAVE_SYS_TYPES_H 24871#include <sys/types.h> 24872#endif 24873 24874#ifdef HAVE_SSIZE_T 24875typedef ssize_t Py_ssize_t; 24876#elif SIZEOF_VOID_P == SIZEOF_LONG 24877typedef long Py_ssize_t; 24878#else 24879typedef int Py_ssize_t; 24880#endif 24881 24882int main() 24883{ 24884 char buffer[256]; 24885 24886 if(sprintf(buffer, "%zd", (size_t)123) < 0) 24887 return 1; 24888 24889 if (strcmp(buffer, "123")) 24890 return 1; 24891 24892 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 24893 return 1; 24894 24895 if (strcmp(buffer, "-123")) 24896 return 1; 24897 24898 return 0; 24899} 24900 24901_ACEOF 24902if ac_fn_c_try_run "$LINENO" 24903then : 24904 ac_cv_have_size_t_format=yes 24905else $as_nop 24906 ac_cv_have_size_t_format=no 24907fi 24908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24909 conftest.$ac_objext conftest.beam conftest.$ac_ext 24910fi 24911 24912fi 24913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 24914printf "%s\n" "$ac_cv_have_size_t_format" >&6; } 24915if test "$ac_cv_have_size_t_format" != no ; then 24916 24917printf "%s\n" "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 24918 24919fi 24920 24921ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 24922#ifdef HAVE_SYS_TYPES_H 24923#include <sys/types.h> 24924#endif 24925#ifdef HAVE_SYS_SOCKET_H 24926#include <sys/socket.h> 24927#endif 24928 24929" 24930if test "x$ac_cv_type_socklen_t" = xyes 24931then : 24932 24933else $as_nop 24934 24935printf "%s\n" "#define socklen_t int" >>confdefs.h 24936 24937fi 24938 24939 24940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 24941printf %s "checking for broken mbstowcs... " >&6; } 24942if test ${ac_cv_broken_mbstowcs+y} 24943then : 24944 printf %s "(cached) " >&6 24945else $as_nop 24946 if test "$cross_compiling" = yes 24947then : 24948 ac_cv_broken_mbstowcs=no 24949else $as_nop 24950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24951/* end confdefs.h. */ 24952 24953#include <stddef.h> 24954#include <stdio.h> 24955#include <stdlib.h> 24956int main(void) { 24957 size_t len = -1; 24958 const char *str = "text"; 24959 len = mbstowcs(NULL, str, 0); 24960 return (len != 4); 24961} 24962 24963_ACEOF 24964if ac_fn_c_try_run "$LINENO" 24965then : 24966 ac_cv_broken_mbstowcs=no 24967else $as_nop 24968 ac_cv_broken_mbstowcs=yes 24969fi 24970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24971 conftest.$ac_objext conftest.beam conftest.$ac_ext 24972fi 24973 24974fi 24975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 24976printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; } 24977if test "$ac_cv_broken_mbstowcs" = yes 24978then 24979 24980printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 24981 24982fi 24983 24984# Check for --with-computed-gotos 24985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 24986printf %s "checking for --with-computed-gotos... " >&6; } 24987 24988# Check whether --with-computed-gotos was given. 24989if test ${with_computed_gotos+y} 24990then : 24991 withval=$with_computed_gotos; 24992if test "$withval" = yes 24993then 24994 24995printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 24996 24997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24998printf "%s\n" "yes" >&6; } 24999fi 25000if test "$withval" = no 25001then 25002 25003printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 25004 25005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25006printf "%s\n" "no" >&6; } 25007fi 25008 25009else $as_nop 25010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 25011printf "%s\n" "no value specified" >&6; } 25012fi 25013 25014 25015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 25016printf %s "checking whether $CC supports computed gotos... " >&6; } 25017if test ${ac_cv_computed_gotos+y} 25018then : 25019 printf %s "(cached) " >&6 25020else $as_nop 25021 if test "$cross_compiling" = yes 25022then : 25023 if test "${with_computed_gotos+set}" = set; then 25024 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 25025 else 25026 ac_cv_computed_gotos=no 25027 fi 25028else $as_nop 25029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25030/* end confdefs.h. */ 25031 25032int main(int argc, char **argv) 25033{ 25034 static void *targets[1] = { &&LABEL1 }; 25035 goto LABEL2; 25036LABEL1: 25037 return 0; 25038LABEL2: 25039 goto *targets[0]; 25040 return 1; 25041} 25042 25043_ACEOF 25044if ac_fn_c_try_run "$LINENO" 25045then : 25046 ac_cv_computed_gotos=yes 25047else $as_nop 25048 ac_cv_computed_gotos=no 25049fi 25050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25051 conftest.$ac_objext conftest.beam conftest.$ac_ext 25052fi 25053 25054fi 25055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 25056printf "%s\n" "$ac_cv_computed_gotos" >&6; } 25057case "$ac_cv_computed_gotos" in yes*) 25058 25059printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 25060 25061esac 25062 25063case $ac_sys_system in 25064AIX*) 25065 25066printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 25067 ;; 25068esac 25069 25070 25071 25072 25073for h in `(cd $srcdir;echo Python/thread_*.h)` 25074do 25075 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 25076done 25077 25078 25079SRCDIRS="\ 25080 Modules \ 25081 Modules/_blake2 \ 25082 Modules/_ctypes \ 25083 Modules/_decimal \ 25084 Modules/_decimal/libmpdec \ 25085 Modules/_io \ 25086 Modules/_multiprocessing \ 25087 Modules/_sha3 \ 25088 Modules/_sqlite \ 25089 Modules/_sre \ 25090 Modules/_xxtestfuzz \ 25091 Modules/cjkcodecs \ 25092 Modules/expat \ 25093 Objects \ 25094 Parser \ 25095 Programs \ 25096 Python \ 25097 Python/frozen_modules \ 25098 Python/deepfreeze" 25099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 25100printf %s "checking for build directories... " >&6; } 25101for dir in $SRCDIRS; do 25102 if test ! -d $dir; then 25103 mkdir $dir 25104 fi 25105done 25106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 25107printf "%s\n" "done" >&6; } 25108 25109# Availability of -O2: 25110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 25111printf %s "checking for -O2... " >&6; } 25112if test ${ac_cv_compile_o2+y} 25113then : 25114 printf %s "(cached) " >&6 25115else $as_nop 25116 25117saved_cflags="$CFLAGS" 25118CFLAGS="-O2" 25119cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25120/* end confdefs.h. */ 25121 25122int 25123main (void) 25124{ 25125 25126 ; 25127 return 0; 25128} 25129_ACEOF 25130if ac_fn_c_try_compile "$LINENO" 25131then : 25132 ac_cv_compile_o2=yes 25133else $as_nop 25134 ac_cv_compile_o2=no 25135fi 25136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25137CFLAGS="$saved_cflags" 25138 25139fi 25140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5 25141printf "%s\n" "$ac_cv_compile_o2" >&6; } 25142 25143# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 25144# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 25145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 25146printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 25147saved_cflags="$CFLAGS" 25148CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 25149if test "$ac_cv_compile_o2" = no; then 25150 CFLAGS="" 25151fi 25152if test "$cross_compiling" = yes 25153then : 25154 have_glibc_memmove_bug=undefined 25155else $as_nop 25156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25157/* end confdefs.h. */ 25158 25159#include <stdio.h> 25160#include <stdlib.h> 25161#include <string.h> 25162void foo(void *p, void *q) { memmove(p, q, 19); } 25163int main(void) { 25164 char a[32] = "123456789000000000"; 25165 foo(&a[9], a); 25166 if (strcmp(a, "123456789123456789000000000") != 0) 25167 return 1; 25168 foo(a, &a[9]); 25169 if (strcmp(a, "123456789000000000") != 0) 25170 return 1; 25171 return 0; 25172} 25173 25174_ACEOF 25175if ac_fn_c_try_run "$LINENO" 25176then : 25177 have_glibc_memmove_bug=no 25178else $as_nop 25179 have_glibc_memmove_bug=yes 25180fi 25181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25182 conftest.$ac_objext conftest.beam conftest.$ac_ext 25183fi 25184 25185CFLAGS="$saved_cflags" 25186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 25187printf "%s\n" "$have_glibc_memmove_bug" >&6; } 25188if test "$have_glibc_memmove_bug" = yes; then 25189 25190printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 25191 25192fi 25193 25194if test "$ac_cv_gcc_asm_for_x87" = yes; then 25195 # Some versions of gcc miscompile inline asm: 25196 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 25197 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 25198 case $CC in 25199 *gcc*) 25200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 25201printf %s "checking for gcc ipa-pure-const bug... " >&6; } 25202 saved_cflags="$CFLAGS" 25203 CFLAGS="-O2" 25204 if test "$cross_compiling" = yes 25205then : 25206 have_ipa_pure_const_bug=undefined 25207else $as_nop 25208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25209/* end confdefs.h. */ 25210 25211 __attribute__((noinline)) int 25212 foo(int *p) { 25213 int r; 25214 asm ( "movl \$6, (%1)\n\t" 25215 "xorl %0, %0\n\t" 25216 : "=r" (r) : "r" (p) : "memory" 25217 ); 25218 return r; 25219 } 25220 int main(void) { 25221 int p = 8; 25222 if ((foo(&p) ? : p) != 6) 25223 return 1; 25224 return 0; 25225 } 25226 25227_ACEOF 25228if ac_fn_c_try_run "$LINENO" 25229then : 25230 have_ipa_pure_const_bug=no 25231else $as_nop 25232 have_ipa_pure_const_bug=yes 25233fi 25234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25235 conftest.$ac_objext conftest.beam conftest.$ac_ext 25236fi 25237 25238 CFLAGS="$saved_cflags" 25239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 25240printf "%s\n" "$have_ipa_pure_const_bug" >&6; } 25241 if test "$have_ipa_pure_const_bug" = yes; then 25242 25243printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 25244 25245 fi 25246 ;; 25247 esac 25248fi 25249 25250# Check for stdatomic.h 25251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 25252printf %s "checking for stdatomic.h... " >&6; } 25253if test ${ac_cv_header_stdatomic_h+y} 25254then : 25255 printf %s "(cached) " >&6 25256else $as_nop 25257 25258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25259/* end confdefs.h. */ 25260 25261 25262 #include <stdatomic.h> 25263 atomic_int int_var; 25264 atomic_uintptr_t uintptr_var; 25265 int main(void) { 25266 atomic_store_explicit(&int_var, 5, memory_order_relaxed); 25267 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); 25268 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); 25269 return 0; 25270 } 25271 25272 25273_ACEOF 25274if ac_fn_c_try_link "$LINENO" 25275then : 25276 ac_cv_header_stdatomic_h=yes 25277else $as_nop 25278 ac_cv_header_stdatomic_h=no 25279fi 25280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25281 conftest$ac_exeext conftest.$ac_ext 25282 25283fi 25284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5 25285printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; } 25286 25287if test "x$ac_cv_header_stdatomic_h" = xyes 25288then : 25289 25290 25291printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h 25292 25293 25294fi 25295 25296# Check for GCC >= 4.7 and clang __atomic builtin functions 25297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 25298printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; } 25299if test ${ac_cv_builtin_atomic+y} 25300then : 25301 printf %s "(cached) " >&6 25302else $as_nop 25303 25304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25305/* end confdefs.h. */ 25306 25307 25308 int val; 25309 int main(void) { 25310 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); 25311 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); 25312 return 0; 25313 } 25314 25315 25316_ACEOF 25317if ac_fn_c_try_link "$LINENO" 25318then : 25319 ac_cv_builtin_atomic=yes 25320else $as_nop 25321 ac_cv_builtin_atomic=no 25322fi 25323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25324 conftest$ac_exeext conftest.$ac_ext 25325 25326fi 25327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5 25328printf "%s\n" "$ac_cv_builtin_atomic" >&6; } 25329 25330if test "x$ac_cv_builtin_atomic" = xyes 25331then : 25332 25333 25334printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 25335 25336 25337fi 25338 25339# ensurepip option 25340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 25341printf %s "checking for ensurepip... " >&6; } 25342 25343# Check whether --with-ensurepip was given. 25344if test ${with_ensurepip+y} 25345then : 25346 withval=$with_ensurepip; 25347else $as_nop 25348 25349 case $ac_sys_system in #( 25350 Emscripten) : 25351 with_ensurepip=no ;; #( 25352 WASI) : 25353 with_ensurepip=no ;; #( 25354 *) : 25355 with_ensurepip=upgrade 25356 ;; 25357esac 25358 25359fi 25360 25361case $with_ensurepip in #( 25362 yes|upgrade) : 25363 ENSUREPIP=upgrade ;; #( 25364 install) : 25365 ENSUREPIP=install ;; #( 25366 no) : 25367 ENSUREPIP=no ;; #( 25368 *) : 25369 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 25370esac 25371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 25372printf "%s\n" "$ENSUREPIP" >&6; } 25373 25374 25375# check if the dirent structure of a d_type field and DT_UNKNOWN is defined 25376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 25377printf %s "checking if the dirent structure of a d_type field... " >&6; } 25378if test ${ac_cv_dirent_d_type+y} 25379then : 25380 printf %s "(cached) " >&6 25381else $as_nop 25382 25383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25384/* end confdefs.h. */ 25385 25386 25387 #include <dirent.h> 25388 25389 int main(void) { 25390 struct dirent entry; 25391 return entry.d_type == DT_UNKNOWN; 25392 } 25393 25394 25395_ACEOF 25396if ac_fn_c_try_link "$LINENO" 25397then : 25398 ac_cv_dirent_d_type=yes 25399else $as_nop 25400 ac_cv_dirent_d_type=no 25401fi 25402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25403 conftest$ac_exeext conftest.$ac_ext 25404 25405fi 25406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5 25407printf "%s\n" "$ac_cv_dirent_d_type" >&6; } 25408 25409if test "x$ac_cv_dirent_d_type" = xyes 25410then : 25411 25412 25413printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 25414 25415 25416fi 25417 25418# check if the Linux getrandom() syscall is available 25419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 25420printf %s "checking for the Linux getrandom() syscall... " >&6; } 25421if test ${ac_cv_getrandom_syscall+y} 25422then : 25423 printf %s "(cached) " >&6 25424else $as_nop 25425 25426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25427/* end confdefs.h. */ 25428 25429 25430 #include <stddef.h> 25431 #include <unistd.h> 25432 #include <sys/syscall.h> 25433 #include <linux/random.h> 25434 25435 int main(void) { 25436 char buffer[1]; 25437 const size_t buflen = sizeof(buffer); 25438 const int flags = GRND_NONBLOCK; 25439 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 25440 (void)syscall(SYS_getrandom, buffer, buflen, flags); 25441 return 0; 25442 } 25443 25444 25445_ACEOF 25446if ac_fn_c_try_link "$LINENO" 25447then : 25448 ac_cv_getrandom_syscall=yes 25449else $as_nop 25450 ac_cv_getrandom_syscall=no 25451fi 25452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25453 conftest$ac_exeext conftest.$ac_ext 25454 25455fi 25456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5 25457printf "%s\n" "$ac_cv_getrandom_syscall" >&6; } 25458 25459if test "x$ac_cv_getrandom_syscall" = xyes 25460then : 25461 25462 25463printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 25464 25465 25466fi 25467 25468# check if the getrandom() function is available 25469# the test was written for the Solaris function of <sys/random.h> 25470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 25471printf %s "checking for the getrandom() function... " >&6; } 25472if test ${ac_cv_func_getrandom+y} 25473then : 25474 printf %s "(cached) " >&6 25475else $as_nop 25476 25477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25478/* end confdefs.h. */ 25479 25480 25481 #include <stddef.h> 25482 #include <sys/random.h> 25483 25484 int main(void) { 25485 char buffer[1]; 25486 const size_t buflen = sizeof(buffer); 25487 const int flags = 0; 25488 /* ignore the result, Python checks for ENOSYS at runtime */ 25489 (void)getrandom(buffer, buflen, flags); 25490 return 0; 25491 } 25492 25493 25494_ACEOF 25495if ac_fn_c_try_link "$LINENO" 25496then : 25497 ac_cv_func_getrandom=yes 25498else $as_nop 25499 ac_cv_func_getrandom=no 25500fi 25501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25502 conftest$ac_exeext conftest.$ac_ext 25503 25504fi 25505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5 25506printf "%s\n" "$ac_cv_func_getrandom" >&6; } 25507 25508if test "x$ac_cv_func_getrandom" = xyes 25509then : 25510 25511 25512printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 25513 25514 25515fi 25516 25517# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c 25518# shm_* may only be available if linking against librt 25519POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing' 25520save_CFLAGS=$CFLAGS 25521save_CPPFLAGS=$CPPFLAGS 25522save_LDFLAGS=$LDFLAGS 25523save_LIBS=$LIBS 25524 25525 25526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 25527printf %s "checking for library containing shm_open... " >&6; } 25528if test ${ac_cv_search_shm_open+y} 25529then : 25530 printf %s "(cached) " >&6 25531else $as_nop 25532 ac_func_search_save_LIBS=$LIBS 25533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25534/* end confdefs.h. */ 25535 25536/* Override any GCC internal prototype to avoid an error. 25537 Use char because int might match the return type of a GCC 25538 builtin and then its argument prototype would still apply. */ 25539char shm_open (); 25540int 25541main (void) 25542{ 25543return shm_open (); 25544 ; 25545 return 0; 25546} 25547_ACEOF 25548for ac_lib in '' rt 25549do 25550 if test -z "$ac_lib"; then 25551 ac_res="none required" 25552 else 25553 ac_res=-l$ac_lib 25554 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25555 fi 25556 if ac_fn_c_try_link "$LINENO" 25557then : 25558 ac_cv_search_shm_open=$ac_res 25559fi 25560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25561 conftest$ac_exeext 25562 if test ${ac_cv_search_shm_open+y} 25563then : 25564 break 25565fi 25566done 25567if test ${ac_cv_search_shm_open+y} 25568then : 25569 25570else $as_nop 25571 ac_cv_search_shm_open=no 25572fi 25573rm conftest.$ac_ext 25574LIBS=$ac_func_search_save_LIBS 25575fi 25576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 25577printf "%s\n" "$ac_cv_search_shm_open" >&6; } 25578ac_res=$ac_cv_search_shm_open 25579if test "$ac_res" != no 25580then : 25581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25582 25583fi 25584 25585 if test "x$ac_cv_search_shm_open" = x-lrt 25586then : 25587 POSIXSHMEM_LIBS="-lrt" 25588fi 25589 25590 save_ac_includes_default=$ac_includes_default 25591 ac_includes_default="\ 25592 ${ac_includes_default} 25593 #ifndef __cplusplus 25594 # ifdef HAVE_SYS_MMAN_H 25595 # include <sys/mman.h> 25596 # endif 25597 #endif 25598 " 25599 25600 for ac_func in shm_open shm_unlink 25601do : 25602 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 25603ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25604if eval test \"x\$"$as_ac_var"\" = x"yes" 25605then : 25606 cat >>confdefs.h <<_ACEOF 25607#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 25608_ACEOF 25609 have_posix_shmem=yes 25610else $as_nop 25611 have_posix_shmem=no 25612fi 25613 25614done 25615 ac_includes_default=$save_ac_includes_default 25616 25617CFLAGS=$save_CFLAGS 25618CPPFLAGS=$save_CPPFLAGS 25619LDFLAGS=$save_LDFLAGS 25620LIBS=$save_LIBS 25621 25622 25623 25624# Check for usable OpenSSL 25625 25626 found=false 25627 25628# Check whether --with-openssl was given. 25629if test ${with_openssl+y} 25630then : 25631 withval=$with_openssl; 25632 case "$withval" in 25633 "" | y | ye | yes | n | no) 25634 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 25635 ;; 25636 *) ssldirs="$withval" 25637 ;; 25638 esac 25639 25640else $as_nop 25641 25642 # if pkg-config is installed and openssl has installed a .pc file, 25643 # then use that information and don't search ssldirs 25644 if test -n "$ac_tool_prefix"; then 25645 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25646set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25648printf %s "checking for $ac_word... " >&6; } 25649if test ${ac_cv_prog_PKG_CONFIG+y} 25650then : 25651 printf %s "(cached) " >&6 25652else $as_nop 25653 if test -n "$PKG_CONFIG"; then 25654 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 25655else 25656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25657for as_dir in $PATH 25658do 25659 IFS=$as_save_IFS 25660 case $as_dir in #((( 25661 '') as_dir=./ ;; 25662 */) ;; 25663 *) as_dir=$as_dir/ ;; 25664 esac 25665 for ac_exec_ext in '' $ac_executable_extensions; do 25666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25667 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 25668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25669 break 2 25670 fi 25671done 25672 done 25673IFS=$as_save_IFS 25674 25675fi 25676fi 25677PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 25678if test -n "$PKG_CONFIG"; then 25679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 25680printf "%s\n" "$PKG_CONFIG" >&6; } 25681else 25682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25683printf "%s\n" "no" >&6; } 25684fi 25685 25686 25687fi 25688if test -z "$ac_cv_prog_PKG_CONFIG"; then 25689 ac_ct_PKG_CONFIG=$PKG_CONFIG 25690 # Extract the first word of "pkg-config", so it can be a program name with args. 25691set dummy pkg-config; ac_word=$2 25692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25693printf %s "checking for $ac_word... " >&6; } 25694if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 25695then : 25696 printf %s "(cached) " >&6 25697else $as_nop 25698 if test -n "$ac_ct_PKG_CONFIG"; then 25699 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 25700else 25701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25702for as_dir in $PATH 25703do 25704 IFS=$as_save_IFS 25705 case $as_dir in #((( 25706 '') as_dir=./ ;; 25707 */) ;; 25708 *) as_dir=$as_dir/ ;; 25709 esac 25710 for ac_exec_ext in '' $ac_executable_extensions; do 25711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25712 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 25713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25714 break 2 25715 fi 25716done 25717 done 25718IFS=$as_save_IFS 25719 25720fi 25721fi 25722ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 25723if test -n "$ac_ct_PKG_CONFIG"; then 25724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 25725printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 25726else 25727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25728printf "%s\n" "no" >&6; } 25729fi 25730 25731 if test "x$ac_ct_PKG_CONFIG" = x; then 25732 PKG_CONFIG="" 25733 else 25734 case $cross_compiling:$ac_tool_warned in 25735yes:) 25736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25738ac_tool_warned=yes ;; 25739esac 25740 PKG_CONFIG=$ac_ct_PKG_CONFIG 25741 fi 25742else 25743 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 25744fi 25745 25746 if test x"$PKG_CONFIG" != x""; then 25747 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 25748 if test $? = 0; then 25749 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 25750 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 25751 found=true 25752 fi 25753 fi 25754 25755 # no such luck; use some default ssldirs 25756 if ! $found; then 25757 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 25758 fi 25759 25760 25761fi 25762 25763 25764 25765 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 25766 # an 'openssl' subdirectory 25767 25768 if ! $found; then 25769 OPENSSL_INCLUDES= 25770 for ssldir in $ssldirs; do 25771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 25772printf %s "checking for openssl/ssl.h in $ssldir... " >&6; } 25773 if test -f "$ssldir/include/openssl/ssl.h"; then 25774 OPENSSL_INCLUDES="-I$ssldir/include" 25775 OPENSSL_LDFLAGS="-L$ssldir/lib" 25776 OPENSSL_LIBS="-lssl -lcrypto" 25777 found=true 25778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25779printf "%s\n" "yes" >&6; } 25780 break 25781 else 25782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25783printf "%s\n" "no" >&6; } 25784 fi 25785 done 25786 25787 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 25788 # it will just work! 25789 fi 25790 25791 # try the preprocessor and linker with our new flags, 25792 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 25793 25794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 25795printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 25796 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 25797 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 25798 25799 save_LIBS="$LIBS" 25800 save_LDFLAGS="$LDFLAGS" 25801 save_CPPFLAGS="$CPPFLAGS" 25802 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 25803 LIBS="$OPENSSL_LIBS $LIBS" 25804 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25806/* end confdefs.h. */ 25807#include <openssl/ssl.h> 25808int 25809main (void) 25810{ 25811SSL_new(NULL) 25812 ; 25813 return 0; 25814} 25815_ACEOF 25816if ac_fn_c_try_link "$LINENO" 25817then : 25818 25819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25820printf "%s\n" "yes" >&6; } 25821 have_openssl=yes 25822 25823else $as_nop 25824 25825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25826printf "%s\n" "no" >&6; } 25827 have_openssl=no 25828 25829fi 25830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25831 conftest$ac_exeext conftest.$ac_ext 25832 CPPFLAGS="$save_CPPFLAGS" 25833 LDFLAGS="$save_LDFLAGS" 25834 LIBS="$save_LIBS" 25835 25836 25837 25838 25839 25840 25841# rpath to libssl and libcrypto 25842if test "x$GNULD" = xyes 25843then : 25844 25845 rpath_arg="-Wl,--enable-new-dtags,-rpath=" 25846 25847else $as_nop 25848 25849 rpath_arg="-Wl,-rpath=" 25850 25851fi 25852 25853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5 25854printf %s "checking for --with-openssl-rpath... " >&6; } 25855 25856# Check whether --with-openssl-rpath was given. 25857if test ${with_openssl_rpath+y} 25858then : 25859 withval=$with_openssl_rpath; 25860else $as_nop 25861 with_openssl_rpath=no 25862 25863fi 25864 25865case $with_openssl_rpath in #( 25866 auto|yes) : 25867 25868 OPENSSL_RPATH=auto 25869 for arg in "$OPENSSL_LDFLAGS"; do 25870 case $arg in #( 25871 -L*) : 25872 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)" 25873 ;; #( 25874 *) : 25875 ;; 25876esac 25877 done 25878 ;; #( 25879 no) : 25880 OPENSSL_RPATH= ;; #( 25881 *) : 25882 if test -d "$with_openssl_rpath" 25883then : 25884 25885 OPENSSL_RPATH="$with_openssl_rpath" 25886 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath" 25887 25888else $as_nop 25889 as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 25890fi 25891 25892 ;; 25893esac 25894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5 25895printf "%s\n" "$OPENSSL_RPATH" >&6; } 25896 25897 25898# This static linking is NOT OFFICIALLY SUPPORTED and not advertised. 25899# Requires static OpenSSL build with position-independent code. Some features 25900# like DSO engines or external OSSL providers don't work. Only tested with GCC 25901# and clang on X86_64. 25902if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic 25903then : 25904 25905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5 25906printf %s "checking for unsupported static openssl build... " >&6; } 25907 new_OPENSSL_LIBS= 25908 for arg in $OPENSSL_LIBS; do 25909 case $arg in #( 25910 -l*) : 25911 25912 libname=$(echo $arg | cut -c3-) 25913 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a" 25914 ;; #( 25915 *) : 25916 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg" 25917 ;; 25918esac 25919 done 25920 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS" 25921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5 25922printf "%s\n" "$OPENSSL_LIBS" >&6; } 25923 25924fi 25925 25926LIBCRYPTO_LIBS= 25927for arg in $OPENSSL_LIBS; do 25928 case $arg in #( 25929 -l*ssl*|-Wl*ssl*) : 25930 ;; #( 25931 *) : 25932 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg" 25933 ;; 25934esac 25935done 25936 25937# check if OpenSSL libraries work as expected 25938save_CFLAGS=$CFLAGS 25939save_CPPFLAGS=$CPPFLAGS 25940save_LDFLAGS=$LDFLAGS 25941save_LIBS=$LIBS 25942 25943 25944 LIBS="$LIBS $OPENSSL_LIBS" 25945 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 25946 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH" 25947 25948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5 25949printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; } 25950if test ${ac_cv_working_openssl_ssl+y} 25951then : 25952 printf %s "(cached) " >&6 25953else $as_nop 25954 25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25956/* end confdefs.h. */ 25957 25958 #include <openssl/opensslv.h> 25959 #include <openssl/ssl.h> 25960 #if OPENSSL_VERSION_NUMBER < 0x10101000L 25961 #error "OpenSSL >= 1.1.1 is required" 25962 #endif 25963 static void keylog_cb(const SSL *ssl, const char *line) {} 25964 25965int 25966main (void) 25967{ 25968 25969 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method()); 25970 SSL_CTX_set_keylog_callback(ctx, keylog_cb); 25971 SSL *ssl = SSL_new(ctx); 25972 X509_VERIFY_PARAM *param = SSL_get0_param(ssl); 25973 X509_VERIFY_PARAM_set1_host(param, "python.org", 0); 25974 SSL_free(ssl); 25975 SSL_CTX_free(ctx); 25976 25977 ; 25978 return 0; 25979} 25980_ACEOF 25981if ac_fn_c_try_link "$LINENO" 25982then : 25983 ac_cv_working_openssl_ssl=yes 25984else $as_nop 25985 ac_cv_working_openssl_ssl=no 25986fi 25987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25988 conftest$ac_exeext conftest.$ac_ext 25989 25990fi 25991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5 25992printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; } 25993 25994CFLAGS=$save_CFLAGS 25995CPPFLAGS=$save_CPPFLAGS 25996LDFLAGS=$save_LDFLAGS 25997LIBS=$save_LIBS 25998 25999 26000 26001save_CFLAGS=$CFLAGS 26002save_CPPFLAGS=$CPPFLAGS 26003save_LDFLAGS=$LDFLAGS 26004save_LIBS=$LIBS 26005 26006 26007 LIBS="$LIBS $LIBCRYPTO_LIBS" 26008 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 26009 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH" 26010 26011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5 26012printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; } 26013if test ${ac_cv_working_openssl_hashlib+y} 26014then : 26015 printf %s "(cached) " >&6 26016else $as_nop 26017 26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26019/* end confdefs.h. */ 26020 26021 #include <openssl/opensslv.h> 26022 #include <openssl/evp.h> 26023 #if OPENSSL_VERSION_NUMBER < 0x10101000L 26024 #error "OpenSSL >= 1.1.1 is required" 26025 #endif 26026 26027int 26028main (void) 26029{ 26030 26031 OBJ_nid2sn(NID_md5); 26032 OBJ_nid2sn(NID_sha1); 26033 OBJ_nid2sn(NID_sha3_512); 26034 OBJ_nid2sn(NID_blake2b512); 26035 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0); 26036 26037 ; 26038 return 0; 26039} 26040_ACEOF 26041if ac_fn_c_try_link "$LINENO" 26042then : 26043 ac_cv_working_openssl_hashlib=yes 26044else $as_nop 26045 ac_cv_working_openssl_hashlib=no 26046fi 26047rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26048 conftest$ac_exeext conftest.$ac_ext 26049 26050fi 26051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5 26052printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; } 26053 26054CFLAGS=$save_CFLAGS 26055CPPFLAGS=$save_CPPFLAGS 26056LDFLAGS=$save_LDFLAGS 26057LIBS=$save_LIBS 26058 26059 26060 26061# ssl module default cipher suite string 26062 26063 26064 26065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 26066printf %s "checking for --with-ssl-default-suites... " >&6; } 26067 26068# Check whether --with-ssl-default-suites was given. 26069if test ${with_ssl_default_suites+y} 26070then : 26071 withval=$with_ssl_default_suites; 26072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 26073printf "%s\n" "$withval" >&6; } 26074case "$withval" in 26075 python) 26076 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 26077 26078 ;; 26079 openssl) 26080 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h 26081 26082 ;; 26083 *) 26084 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h 26085 26086 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h 26087 26088 ;; 26089esac 26090 26091else $as_nop 26092 26093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5 26094printf "%s\n" "python" >&6; } 26095printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 26096 26097 26098fi 26099 26100 26101# builtin hash modules 26102default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" 26103 26104printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h 26105 26106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 26107printf %s "checking for --with-builtin-hashlib-hashes... " >&6; } 26108 26109# Check whether --with-builtin-hashlib-hashes was given. 26110if test ${with_builtin_hashlib_hashes+y} 26111then : 26112 withval=$with_builtin_hashlib_hashes; 26113 case $with_builtin_hashlib_hashes in #( 26114 yes) : 26115 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #( 26116 no) : 26117 with_builtin_hashlib_hashes="" 26118 ;; #( 26119 *) : 26120 ;; 26121esac 26122 26123else $as_nop 26124 with_builtin_hashlib_hashes=$default_hashlib_hashes 26125fi 26126 26127 26128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5 26129printf "%s\n" "$with_builtin_hashlib_hashes" >&6; } 26130printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h 26131 26132 26133as_save_IFS=$IFS 26134IFS=, 26135for builtin_hash in $with_builtin_hashlib_hashes; do 26136 case $builtin_hash in #( 26137 md5) : 26138 with_builtin_md5=yes ;; #( 26139 sha1) : 26140 with_builtin_sha1=yes ;; #( 26141 sha256) : 26142 with_builtin_sha256=yes ;; #( 26143 sha512) : 26144 with_builtin_sha512=yes ;; #( 26145 sha3) : 26146 with_builtin_sha3=yes ;; #( 26147 blake2) : 26148 with_builtin_blake2=yes 26149 ;; #( 26150 *) : 26151 ;; 26152esac 26153done 26154IFS=$as_save_IFS 26155 26156if test "x$with_builtin_blake2" = xyes 26157then : 26158 26159 26160pkg_failed=no 26161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBB2" >&5 26162printf %s "checking for LIBB2... " >&6; } 26163 26164if test -n "$LIBB2_CFLAGS"; then 26165 pkg_cv_LIBB2_CFLAGS="$LIBB2_CFLAGS" 26166 elif test -n "$PKG_CONFIG"; then 26167 if test -n "$PKG_CONFIG" && \ 26168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5 26169 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5 26170 ac_status=$? 26171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26172 test $ac_status = 0; }; then 26173 pkg_cv_LIBB2_CFLAGS=`$PKG_CONFIG --cflags "libb2" 2>/dev/null` 26174 test "x$?" != "x0" && pkg_failed=yes 26175else 26176 pkg_failed=yes 26177fi 26178 else 26179 pkg_failed=untried 26180fi 26181if test -n "$LIBB2_LIBS"; then 26182 pkg_cv_LIBB2_LIBS="$LIBB2_LIBS" 26183 elif test -n "$PKG_CONFIG"; then 26184 if test -n "$PKG_CONFIG" && \ 26185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5 26186 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5 26187 ac_status=$? 26188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26189 test $ac_status = 0; }; then 26190 pkg_cv_LIBB2_LIBS=`$PKG_CONFIG --libs "libb2" 2>/dev/null` 26191 test "x$?" != "x0" && pkg_failed=yes 26192else 26193 pkg_failed=yes 26194fi 26195 else 26196 pkg_failed=untried 26197fi 26198 26199 26200 26201if test $pkg_failed = yes; then 26202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26203printf "%s\n" "no" >&6; } 26204 26205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26206 _pkg_short_errors_supported=yes 26207else 26208 _pkg_short_errors_supported=no 26209fi 26210 if test $_pkg_short_errors_supported = yes; then 26211 LIBB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1` 26212 else 26213 LIBB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1` 26214 fi 26215 # Put the nasty error message in config.log where it belongs 26216 echo "$LIBB2_PKG_ERRORS" >&5 26217 26218 have_libb2=no 26219elif test $pkg_failed = untried; then 26220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26221printf "%s\n" "no" >&6; } 26222 have_libb2=no 26223else 26224 LIBB2_CFLAGS=$pkg_cv_LIBB2_CFLAGS 26225 LIBB2_LIBS=$pkg_cv_LIBB2_LIBS 26226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26227printf "%s\n" "yes" >&6; } 26228 26229 have_libb2=yes 26230 26231printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h 26232 26233 26234fi 26235 26236fi 26237 26238# Check whether to disable test modules. Once set, setup.py will not build 26239# test extension modules and "make install" will not install test suites. 26240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5 26241printf %s "checking for --disable-test-modules... " >&6; } 26242# Check whether --enable-test-modules was given. 26243if test ${enable_test_modules+y} 26244then : 26245 enableval=$enable_test_modules; 26246 if test "x$enable_test_modules" = xyes 26247then : 26248 TEST_MODULES=yes 26249else $as_nop 26250 TEST_MODULES=no 26251fi 26252 26253else $as_nop 26254 26255 case $ac_sys_system/$ac_sys_emscripten_target in #( 26256 Emscripten/browser*) : 26257 TEST_MODULES=no ;; #( 26258 *) : 26259 TEST_MODULES=yes 26260 ;; 26261esac 26262 26263fi 26264 26265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5 26266printf "%s\n" "$TEST_MODULES" >&6; } 26267 26268 26269 26270 26271# stdlib not available 26272case $ac_sys_system in #( 26273 AIX) : 26274 26275 26276 py_cv_module__scproxy=n/a 26277 py_cv_module_spwd=n/a 26278 ;; #( 26279 VxWorks*) : 26280 26281 26282 py_cv_module__scproxy=n/a 26283 py_cv_module__crypt=n/a 26284 py_cv_module_termios=n/a 26285 py_cv_module_grp=n/a 26286 ;; #( 26287 Darwin) : 26288 26289 26290 py_cv_module_ossaudiodev=n/a 26291 py_cv_module_spwd=n/a 26292 ;; #( 26293 CYGWIN*) : 26294 26295 26296 py_cv_module__scproxy=n/a 26297 py_cv_module_nis=n/a 26298 ;; #( 26299 QNX*) : 26300 26301 26302 py_cv_module__scproxy=n/a 26303 py_cv_module_nis=n/a 26304 ;; #( 26305 FreeBSD*) : 26306 26307 26308 py_cv_module__scproxy=n/a 26309 py_cv_module_spwd=n/a 26310 ;; #( 26311 Emscripten|WASI) : 26312 26313 26314 26315 py_cv_module__curses=n/a 26316 py_cv_module__curses_panel=n/a 26317 py_cv_module__dbm=n/a 26318 py_cv_module__gdbm=n/a 26319 py_cv_module__multiprocessing=n/a 26320 py_cv_module__posixshmem=n/a 26321 py_cv_module__posixsubprocess=n/a 26322 py_cv_module__scproxy=n/a 26323 py_cv_module__tkinter=n/a 26324 py_cv_module__xxsubinterpreters=n/a 26325 py_cv_module_grp=n/a 26326 py_cv_module_nis=n/a 26327 py_cv_module_ossaudiodev=n/a 26328 py_cv_module_pwd=n/a 26329 py_cv_module_resource=n/a 26330 py_cv_module_spwd=n/a 26331 py_cv_module_syslog=n/a 26332 py_cv_module_=n/a 26333 26334 case $ac_sys_system/$ac_sys_emscripten_target in #( 26335 Emscripten/browser*) : 26336 26337 26338 26339 py_cv_module_fcntl=n/a 26340 py_cv_module_readline=n/a 26341 py_cv_module_termios=n/a 26342 py_cv_module_=n/a 26343 26344 ;; #( 26345 Emscripten/node*) : 26346 ;; #( 26347 WASI/*) : 26348 26349 26350 26351 py_cv_module__ctypes_test=n/a 26352 py_cv_module_fcntl=n/a 26353 py_cv_module_mmap=n/a 26354 py_cv_module_termios=n/a 26355 py_cv_module_=n/a 26356 26357 26358 ;; #( 26359 *) : 26360 ;; 26361esac 26362 ;; #( 26363 *) : 26364 26365 26366 py_cv_module__scproxy=n/a 26367 26368 ;; 26369esac 26370 26371 26372case $host_cpu in #( 26373 wasm32|wasm64) : 26374 MODULE_BUILDTYPE=static ;; #( 26375 *) : 26376 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared} 26377 ;; 26378esac 26379 26380 26381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional Modules/Setup files" >&5 26382printf %s "checking for additional Modules/Setup files... " >&6; } 26383case $ac_sys_system in #( 26384 Emscripten) : 26385 MODULES_SETUP_STDLIB=Modules/Setup.stdlib ;; #( 26386 WASI) : 26387 MODULES_SETUP_STDLIB=Modules/Setup.stdlib ;; #( 26388 *) : 26389 MODULES_SETUP_STDLIB= 26390 ;; 26391esac 26392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODULES_SETUP_STDLIB" >&5 26393printf "%s\n" "$MODULES_SETUP_STDLIB" >&6; } 26394 26395 26396 26397 26398MODULE_BLOCK= 26399 26400 26401 26402 26403 26404 26405 if test "$py_cv_module__io" != "n/a" 26406then : 26407 py_cv_module__io=yes 26408fi 26409 if test "$py_cv_module__io" = yes; then 26410 MODULE__IO_TRUE= 26411 MODULE__IO_FALSE='#' 26412else 26413 MODULE__IO_TRUE='#' 26414 MODULE__IO_FALSE= 26415fi 26416 26417 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl" 26418 if test "x$py_cv_module__io" = xyes 26419then : 26420 26421 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl" 26422 26423 26424fi 26425 26426 26427 if test "$py_cv_module_time" != "n/a" 26428then : 26429 py_cv_module_time=yes 26430fi 26431 if test "$py_cv_module_time" = yes; then 26432 MODULE_TIME_TRUE= 26433 MODULE_TIME_FALSE='#' 26434else 26435 MODULE_TIME_TRUE='#' 26436 MODULE_TIME_FALSE= 26437fi 26438 26439 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl" 26440 if test "x$py_cv_module_time" = xyes 26441then : 26442 26443 26444 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl" 26445 26446fi 26447 26448 26449 26450 if test "$py_cv_module_array" != "n/a" 26451then : 26452 py_cv_module_array=yes 26453fi 26454 if test "$py_cv_module_array" = yes; then 26455 MODULE_ARRAY_TRUE= 26456 MODULE_ARRAY_FALSE='#' 26457else 26458 MODULE_ARRAY_TRUE='#' 26459 MODULE_ARRAY_FALSE= 26460fi 26461 26462 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl" 26463 if test "x$py_cv_module_array" = xyes 26464then : 26465 26466 26467 26468 26469fi 26470 26471 26472 if test "$py_cv_module__asyncio" != "n/a" 26473then : 26474 py_cv_module__asyncio=yes 26475fi 26476 if test "$py_cv_module__asyncio" = yes; then 26477 MODULE__ASYNCIO_TRUE= 26478 MODULE__ASYNCIO_FALSE='#' 26479else 26480 MODULE__ASYNCIO_TRUE='#' 26481 MODULE__ASYNCIO_FALSE= 26482fi 26483 26484 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl" 26485 if test "x$py_cv_module__asyncio" = xyes 26486then : 26487 26488 26489 26490 26491fi 26492 26493 26494 if test "$py_cv_module__bisect" != "n/a" 26495then : 26496 py_cv_module__bisect=yes 26497fi 26498 if test "$py_cv_module__bisect" = yes; then 26499 MODULE__BISECT_TRUE= 26500 MODULE__BISECT_FALSE='#' 26501else 26502 MODULE__BISECT_TRUE='#' 26503 MODULE__BISECT_FALSE= 26504fi 26505 26506 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl" 26507 if test "x$py_cv_module__bisect" = xyes 26508then : 26509 26510 26511 26512 26513fi 26514 26515 26516 if test "$py_cv_module__contextvars" != "n/a" 26517then : 26518 py_cv_module__contextvars=yes 26519fi 26520 if test "$py_cv_module__contextvars" = yes; then 26521 MODULE__CONTEXTVARS_TRUE= 26522 MODULE__CONTEXTVARS_FALSE='#' 26523else 26524 MODULE__CONTEXTVARS_TRUE='#' 26525 MODULE__CONTEXTVARS_FALSE= 26526fi 26527 26528 as_fn_append MODULE_BLOCK "MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl" 26529 if test "x$py_cv_module__contextvars" = xyes 26530then : 26531 26532 26533 26534 26535fi 26536 26537 26538 if test "$py_cv_module__csv" != "n/a" 26539then : 26540 py_cv_module__csv=yes 26541fi 26542 if test "$py_cv_module__csv" = yes; then 26543 MODULE__CSV_TRUE= 26544 MODULE__CSV_FALSE='#' 26545else 26546 MODULE__CSV_TRUE='#' 26547 MODULE__CSV_FALSE= 26548fi 26549 26550 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl" 26551 if test "x$py_cv_module__csv" = xyes 26552then : 26553 26554 26555 26556 26557fi 26558 26559 26560 if test "$py_cv_module__heapq" != "n/a" 26561then : 26562 py_cv_module__heapq=yes 26563fi 26564 if test "$py_cv_module__heapq" = yes; then 26565 MODULE__HEAPQ_TRUE= 26566 MODULE__HEAPQ_FALSE='#' 26567else 26568 MODULE__HEAPQ_TRUE='#' 26569 MODULE__HEAPQ_FALSE= 26570fi 26571 26572 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl" 26573 if test "x$py_cv_module__heapq" = xyes 26574then : 26575 26576 26577 26578 26579fi 26580 26581 26582 if test "$py_cv_module__json" != "n/a" 26583then : 26584 py_cv_module__json=yes 26585fi 26586 if test "$py_cv_module__json" = yes; then 26587 MODULE__JSON_TRUE= 26588 MODULE__JSON_FALSE='#' 26589else 26590 MODULE__JSON_TRUE='#' 26591 MODULE__JSON_FALSE= 26592fi 26593 26594 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl" 26595 if test "x$py_cv_module__json" = xyes 26596then : 26597 26598 26599 26600 26601fi 26602 26603 26604 if test "$py_cv_module__lsprof" != "n/a" 26605then : 26606 py_cv_module__lsprof=yes 26607fi 26608 if test "$py_cv_module__lsprof" = yes; then 26609 MODULE__LSPROF_TRUE= 26610 MODULE__LSPROF_FALSE='#' 26611else 26612 MODULE__LSPROF_TRUE='#' 26613 MODULE__LSPROF_FALSE= 26614fi 26615 26616 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl" 26617 if test "x$py_cv_module__lsprof" = xyes 26618then : 26619 26620 26621 26622 26623fi 26624 26625 26626 if test "$py_cv_module__opcode" != "n/a" 26627then : 26628 py_cv_module__opcode=yes 26629fi 26630 if test "$py_cv_module__opcode" = yes; then 26631 MODULE__OPCODE_TRUE= 26632 MODULE__OPCODE_FALSE='#' 26633else 26634 MODULE__OPCODE_TRUE='#' 26635 MODULE__OPCODE_FALSE= 26636fi 26637 26638 as_fn_append MODULE_BLOCK "MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl" 26639 if test "x$py_cv_module__opcode" = xyes 26640then : 26641 26642 26643 26644 26645fi 26646 26647 26648 if test "$py_cv_module__pickle" != "n/a" 26649then : 26650 py_cv_module__pickle=yes 26651fi 26652 if test "$py_cv_module__pickle" = yes; then 26653 MODULE__PICKLE_TRUE= 26654 MODULE__PICKLE_FALSE='#' 26655else 26656 MODULE__PICKLE_TRUE='#' 26657 MODULE__PICKLE_FALSE= 26658fi 26659 26660 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl" 26661 if test "x$py_cv_module__pickle" = xyes 26662then : 26663 26664 26665 26666 26667fi 26668 26669 26670 if test "$py_cv_module__posixsubprocess" != "n/a" 26671then : 26672 py_cv_module__posixsubprocess=yes 26673fi 26674 if test "$py_cv_module__posixsubprocess" = yes; then 26675 MODULE__POSIXSUBPROCESS_TRUE= 26676 MODULE__POSIXSUBPROCESS_FALSE='#' 26677else 26678 MODULE__POSIXSUBPROCESS_TRUE='#' 26679 MODULE__POSIXSUBPROCESS_FALSE= 26680fi 26681 26682 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl" 26683 if test "x$py_cv_module__posixsubprocess" = xyes 26684then : 26685 26686 26687 26688 26689fi 26690 26691 26692 if test "$py_cv_module__queue" != "n/a" 26693then : 26694 py_cv_module__queue=yes 26695fi 26696 if test "$py_cv_module__queue" = yes; then 26697 MODULE__QUEUE_TRUE= 26698 MODULE__QUEUE_FALSE='#' 26699else 26700 MODULE__QUEUE_TRUE='#' 26701 MODULE__QUEUE_FALSE= 26702fi 26703 26704 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl" 26705 if test "x$py_cv_module__queue" = xyes 26706then : 26707 26708 26709 26710 26711fi 26712 26713 26714 if test "$py_cv_module__random" != "n/a" 26715then : 26716 py_cv_module__random=yes 26717fi 26718 if test "$py_cv_module__random" = yes; then 26719 MODULE__RANDOM_TRUE= 26720 MODULE__RANDOM_FALSE='#' 26721else 26722 MODULE__RANDOM_TRUE='#' 26723 MODULE__RANDOM_FALSE= 26724fi 26725 26726 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl" 26727 if test "x$py_cv_module__random" = xyes 26728then : 26729 26730 26731 26732 26733fi 26734 26735 26736 if test "$py_cv_module_select" != "n/a" 26737then : 26738 py_cv_module_select=yes 26739fi 26740 if test "$py_cv_module_select" = yes; then 26741 MODULE_SELECT_TRUE= 26742 MODULE_SELECT_FALSE='#' 26743else 26744 MODULE_SELECT_TRUE='#' 26745 MODULE_SELECT_FALSE= 26746fi 26747 26748 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl" 26749 if test "x$py_cv_module_select" = xyes 26750then : 26751 26752 26753 26754 26755fi 26756 26757 26758 if test "$py_cv_module__struct" != "n/a" 26759then : 26760 py_cv_module__struct=yes 26761fi 26762 if test "$py_cv_module__struct" = yes; then 26763 MODULE__STRUCT_TRUE= 26764 MODULE__STRUCT_FALSE='#' 26765else 26766 MODULE__STRUCT_TRUE='#' 26767 MODULE__STRUCT_FALSE= 26768fi 26769 26770 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl" 26771 if test "x$py_cv_module__struct" = xyes 26772then : 26773 26774 26775 26776 26777fi 26778 26779 26780 if test "$py_cv_module__typing" != "n/a" 26781then : 26782 py_cv_module__typing=yes 26783fi 26784 if test "$py_cv_module__typing" = yes; then 26785 MODULE__TYPING_TRUE= 26786 MODULE__TYPING_FALSE='#' 26787else 26788 MODULE__TYPING_TRUE='#' 26789 MODULE__TYPING_FALSE= 26790fi 26791 26792 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl" 26793 if test "x$py_cv_module__typing" = xyes 26794then : 26795 26796 26797 26798 26799fi 26800 26801 26802 if test "$py_cv_module__xxsubinterpreters" != "n/a" 26803then : 26804 py_cv_module__xxsubinterpreters=yes 26805fi 26806 if test "$py_cv_module__xxsubinterpreters" = yes; then 26807 MODULE__XXSUBINTERPRETERS_TRUE= 26808 MODULE__XXSUBINTERPRETERS_FALSE='#' 26809else 26810 MODULE__XXSUBINTERPRETERS_TRUE='#' 26811 MODULE__XXSUBINTERPRETERS_FALSE= 26812fi 26813 26814 as_fn_append MODULE_BLOCK "MODULE__XXSUBINTERPRETERS_STATE=$py_cv_module__xxsubinterpreters$as_nl" 26815 if test "x$py_cv_module__xxsubinterpreters" = xyes 26816then : 26817 26818 26819 26820 26821fi 26822 26823 26824 if test "$py_cv_module__zoneinfo" != "n/a" 26825then : 26826 py_cv_module__zoneinfo=yes 26827fi 26828 if test "$py_cv_module__zoneinfo" = yes; then 26829 MODULE__ZONEINFO_TRUE= 26830 MODULE__ZONEINFO_FALSE='#' 26831else 26832 MODULE__ZONEINFO_TRUE='#' 26833 MODULE__ZONEINFO_FALSE= 26834fi 26835 26836 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl" 26837 if test "x$py_cv_module__zoneinfo" = xyes 26838then : 26839 26840 26841 26842 26843fi 26844 26845 26846 26847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5 26848printf %s "checking for stdlib extension module _multiprocessing... " >&6; } 26849 if test "$py_cv_module__multiprocessing" != "n/a" 26850then : 26851 26852 if true 26853then : 26854 if test "$ac_cv_func_sem_unlink" = "yes" 26855then : 26856 py_cv_module__multiprocessing=yes 26857else $as_nop 26858 py_cv_module__multiprocessing=missing 26859fi 26860else $as_nop 26861 py_cv_module__multiprocessing=disabled 26862fi 26863 26864fi 26865 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl" 26866 if test "x$py_cv_module__multiprocessing" = xyes 26867then : 26868 26869 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl" 26870 26871 26872fi 26873 if test "$py_cv_module__multiprocessing" = yes; then 26874 MODULE__MULTIPROCESSING_TRUE= 26875 MODULE__MULTIPROCESSING_FALSE='#' 26876else 26877 MODULE__MULTIPROCESSING_TRUE='#' 26878 MODULE__MULTIPROCESSING_FALSE= 26879fi 26880 26881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5 26882printf "%s\n" "$py_cv_module__multiprocessing" >&6; } 26883 26884 26885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5 26886printf %s "checking for stdlib extension module _posixshmem... " >&6; } 26887 if test "$py_cv_module__posixshmem" != "n/a" 26888then : 26889 26890 if true 26891then : 26892 if test "$have_posix_shmem" = "yes" 26893then : 26894 py_cv_module__posixshmem=yes 26895else $as_nop 26896 py_cv_module__posixshmem=missing 26897fi 26898else $as_nop 26899 py_cv_module__posixshmem=disabled 26900fi 26901 26902fi 26903 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl" 26904 if test "x$py_cv_module__posixshmem" = xyes 26905then : 26906 26907 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl" 26908 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl" 26909 26910fi 26911 if test "$py_cv_module__posixshmem" = yes; then 26912 MODULE__POSIXSHMEM_TRUE= 26913 MODULE__POSIXSHMEM_FALSE='#' 26914else 26915 MODULE__POSIXSHMEM_TRUE='#' 26916 MODULE__POSIXSHMEM_FALSE= 26917fi 26918 26919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5 26920printf "%s\n" "$py_cv_module__posixshmem" >&6; } 26921 26922 26923 26924 if test "$py_cv_module_audioop" != "n/a" 26925then : 26926 py_cv_module_audioop=yes 26927fi 26928 if test "$py_cv_module_audioop" = yes; then 26929 MODULE_AUDIOOP_TRUE= 26930 MODULE_AUDIOOP_FALSE='#' 26931else 26932 MODULE_AUDIOOP_TRUE='#' 26933 MODULE_AUDIOOP_FALSE= 26934fi 26935 26936 as_fn_append MODULE_BLOCK "MODULE_AUDIOOP_STATE=$py_cv_module_audioop$as_nl" 26937 if test "x$py_cv_module_audioop" = xyes 26938then : 26939 26940 26941 as_fn_append MODULE_BLOCK "MODULE_AUDIOOP_LDFLAGS=$LIBM$as_nl" 26942 26943fi 26944 26945 26946 if test "$py_cv_module__statistics" != "n/a" 26947then : 26948 py_cv_module__statistics=yes 26949fi 26950 if test "$py_cv_module__statistics" = yes; then 26951 MODULE__STATISTICS_TRUE= 26952 MODULE__STATISTICS_FALSE='#' 26953else 26954 MODULE__STATISTICS_TRUE='#' 26955 MODULE__STATISTICS_FALSE= 26956fi 26957 26958 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl" 26959 if test "x$py_cv_module__statistics" = xyes 26960then : 26961 26962 26963 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl" 26964 26965fi 26966 26967 26968 if test "$py_cv_module_cmath" != "n/a" 26969then : 26970 py_cv_module_cmath=yes 26971fi 26972 if test "$py_cv_module_cmath" = yes; then 26973 MODULE_CMATH_TRUE= 26974 MODULE_CMATH_FALSE='#' 26975else 26976 MODULE_CMATH_TRUE='#' 26977 MODULE_CMATH_FALSE= 26978fi 26979 26980 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl" 26981 if test "x$py_cv_module_cmath" = xyes 26982then : 26983 26984 26985 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl" 26986 26987fi 26988 26989 26990 if test "$py_cv_module_math" != "n/a" 26991then : 26992 py_cv_module_math=yes 26993fi 26994 if test "$py_cv_module_math" = yes; then 26995 MODULE_MATH_TRUE= 26996 MODULE_MATH_FALSE='#' 26997else 26998 MODULE_MATH_TRUE='#' 26999 MODULE_MATH_FALSE= 27000fi 27001 27002 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl" 27003 if test "x$py_cv_module_math" = xyes 27004then : 27005 27006 27007 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl" 27008 27009fi 27010 27011 27012 27013 if test "$py_cv_module__datetime" != "n/a" 27014then : 27015 py_cv_module__datetime=yes 27016fi 27017 if test "$py_cv_module__datetime" = yes; then 27018 MODULE__DATETIME_TRUE= 27019 MODULE__DATETIME_FALSE='#' 27020else 27021 MODULE__DATETIME_TRUE='#' 27022 MODULE__DATETIME_FALSE= 27023fi 27024 27025 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl" 27026 if test "x$py_cv_module__datetime" = xyes 27027then : 27028 27029 27030 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl" 27031 27032fi 27033 27034 27035 27036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5 27037printf %s "checking for stdlib extension module fcntl... " >&6; } 27038 if test "$py_cv_module_fcntl" != "n/a" 27039then : 27040 27041 if true 27042then : 27043 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes" 27044then : 27045 py_cv_module_fcntl=yes 27046else $as_nop 27047 py_cv_module_fcntl=missing 27048fi 27049else $as_nop 27050 py_cv_module_fcntl=disabled 27051fi 27052 27053fi 27054 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl" 27055 if test "x$py_cv_module_fcntl" = xyes 27056then : 27057 27058 27059 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl" 27060 27061fi 27062 if test "$py_cv_module_fcntl" = yes; then 27063 MODULE_FCNTL_TRUE= 27064 MODULE_FCNTL_FALSE='#' 27065else 27066 MODULE_FCNTL_TRUE='#' 27067 MODULE_FCNTL_FALSE= 27068fi 27069 27070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5 27071printf "%s\n" "$py_cv_module_fcntl" >&6; } 27072 27073 27074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5 27075printf %s "checking for stdlib extension module mmap... " >&6; } 27076 if test "$py_cv_module_mmap" != "n/a" 27077then : 27078 27079 if true 27080then : 27081 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes" 27082then : 27083 py_cv_module_mmap=yes 27084else $as_nop 27085 py_cv_module_mmap=missing 27086fi 27087else $as_nop 27088 py_cv_module_mmap=disabled 27089fi 27090 27091fi 27092 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl" 27093 if test "x$py_cv_module_mmap" = xyes 27094then : 27095 27096 27097 27098 27099fi 27100 if test "$py_cv_module_mmap" = yes; then 27101 MODULE_MMAP_TRUE= 27102 MODULE_MMAP_FALSE='#' 27103else 27104 MODULE_MMAP_TRUE='#' 27105 MODULE_MMAP_FALSE= 27106fi 27107 27108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5 27109printf "%s\n" "$py_cv_module_mmap" >&6; } 27110 27111 27112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5 27113printf %s "checking for stdlib extension module _socket... " >&6; } 27114 if test "$py_cv_module__socket" != "n/a" 27115then : 27116 27117 if true 27118then : 27119 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" 27120then : 27121 py_cv_module__socket=yes 27122else $as_nop 27123 py_cv_module__socket=missing 27124fi 27125else $as_nop 27126 py_cv_module__socket=disabled 27127fi 27128 27129fi 27130 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl" 27131 if test "x$py_cv_module__socket" = xyes 27132then : 27133 27134 27135 27136 27137fi 27138 if test "$py_cv_module__socket" = yes; then 27139 MODULE__SOCKET_TRUE= 27140 MODULE__SOCKET_FALSE='#' 27141else 27142 MODULE__SOCKET_TRUE='#' 27143 MODULE__SOCKET_FALSE= 27144fi 27145 27146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5 27147printf "%s\n" "$py_cv_module__socket" >&6; } 27148 27149 27150 27151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5 27152printf %s "checking for stdlib extension module grp... " >&6; } 27153 if test "$py_cv_module_grp" != "n/a" 27154then : 27155 27156 if true 27157then : 27158 if test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes 27159then : 27160 py_cv_module_grp=yes 27161else $as_nop 27162 py_cv_module_grp=missing 27163fi 27164else $as_nop 27165 py_cv_module_grp=disabled 27166fi 27167 27168fi 27169 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl" 27170 if test "x$py_cv_module_grp" = xyes 27171then : 27172 27173 27174 27175 27176fi 27177 if test "$py_cv_module_grp" = yes; then 27178 MODULE_GRP_TRUE= 27179 MODULE_GRP_FALSE='#' 27180else 27181 MODULE_GRP_TRUE='#' 27182 MODULE_GRP_FALSE= 27183fi 27184 27185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5 27186printf "%s\n" "$py_cv_module_grp" >&6; } 27187 27188 27189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module ossaudiodev" >&5 27190printf %s "checking for stdlib extension module ossaudiodev... " >&6; } 27191 if test "$py_cv_module_ossaudiodev" != "n/a" 27192then : 27193 27194 if true 27195then : 27196 if test "$ac_cv_header_linux_soundcard_h" = yes -o "$ac_cv_header_sys_soundcard_h" = yes 27197then : 27198 py_cv_module_ossaudiodev=yes 27199else $as_nop 27200 py_cv_module_ossaudiodev=missing 27201fi 27202else $as_nop 27203 py_cv_module_ossaudiodev=disabled 27204fi 27205 27206fi 27207 as_fn_append MODULE_BLOCK "MODULE_OSSAUDIODEV_STATE=$py_cv_module_ossaudiodev$as_nl" 27208 if test "x$py_cv_module_ossaudiodev" = xyes 27209then : 27210 27211 27212 as_fn_append MODULE_BLOCK "MODULE_OSSAUDIODEV_LDFLAGS=$OSSAUDIODEV_LIBS$as_nl" 27213 27214fi 27215 if test "$py_cv_module_ossaudiodev" = yes; then 27216 MODULE_OSSAUDIODEV_TRUE= 27217 MODULE_OSSAUDIODEV_FALSE='#' 27218else 27219 MODULE_OSSAUDIODEV_TRUE='#' 27220 MODULE_OSSAUDIODEV_FALSE= 27221fi 27222 27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_ossaudiodev" >&5 27224printf "%s\n" "$py_cv_module_ossaudiodev" >&6; } 27225 27226 27227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5 27228printf %s "checking for stdlib extension module pwd... " >&6; } 27229 if test "$py_cv_module_pwd" != "n/a" 27230then : 27231 27232 if true 27233then : 27234 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes 27235then : 27236 py_cv_module_pwd=yes 27237else $as_nop 27238 py_cv_module_pwd=missing 27239fi 27240else $as_nop 27241 py_cv_module_pwd=disabled 27242fi 27243 27244fi 27245 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl" 27246 if test "x$py_cv_module_pwd" = xyes 27247then : 27248 27249 27250 27251 27252fi 27253 if test "$py_cv_module_pwd" = yes; then 27254 MODULE_PWD_TRUE= 27255 MODULE_PWD_FALSE='#' 27256else 27257 MODULE_PWD_TRUE='#' 27258 MODULE_PWD_FALSE= 27259fi 27260 27261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5 27262printf "%s\n" "$py_cv_module_pwd" >&6; } 27263 27264 27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5 27266printf %s "checking for stdlib extension module resource... " >&6; } 27267 if test "$py_cv_module_resource" != "n/a" 27268then : 27269 27270 if true 27271then : 27272 if test "$ac_cv_header_sys_resource_h" = yes 27273then : 27274 py_cv_module_resource=yes 27275else $as_nop 27276 py_cv_module_resource=missing 27277fi 27278else $as_nop 27279 py_cv_module_resource=disabled 27280fi 27281 27282fi 27283 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl" 27284 if test "x$py_cv_module_resource" = xyes 27285then : 27286 27287 27288 27289 27290fi 27291 if test "$py_cv_module_resource" = yes; then 27292 MODULE_RESOURCE_TRUE= 27293 MODULE_RESOURCE_FALSE='#' 27294else 27295 MODULE_RESOURCE_TRUE='#' 27296 MODULE_RESOURCE_FALSE= 27297fi 27298 27299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5 27300printf "%s\n" "$py_cv_module_resource" >&6; } 27301 27302 27303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5 27304printf %s "checking for stdlib extension module _scproxy... " >&6; } 27305 if test "$py_cv_module__scproxy" != "n/a" 27306then : 27307 27308 if test "$ac_sys_system" = "Darwin" 27309then : 27310 if true 27311then : 27312 py_cv_module__scproxy=yes 27313else $as_nop 27314 py_cv_module__scproxy=missing 27315fi 27316else $as_nop 27317 py_cv_module__scproxy=disabled 27318fi 27319 27320fi 27321 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl" 27322 if test "x$py_cv_module__scproxy" = xyes 27323then : 27324 27325 27326 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl" 27327 27328fi 27329 if test "$py_cv_module__scproxy" = yes; then 27330 MODULE__SCPROXY_TRUE= 27331 MODULE__SCPROXY_FALSE='#' 27332else 27333 MODULE__SCPROXY_TRUE='#' 27334 MODULE__SCPROXY_FALSE= 27335fi 27336 27337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5 27338printf "%s\n" "$py_cv_module__scproxy" >&6; } 27339 27340 27341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module spwd" >&5 27342printf %s "checking for stdlib extension module spwd... " >&6; } 27343 if test "$py_cv_module_spwd" != "n/a" 27344then : 27345 27346 if true 27347then : 27348 if test "$ac_cv_func_getspent" = yes -o "$ac_cv_func_getspnam" = yes 27349then : 27350 py_cv_module_spwd=yes 27351else $as_nop 27352 py_cv_module_spwd=missing 27353fi 27354else $as_nop 27355 py_cv_module_spwd=disabled 27356fi 27357 27358fi 27359 as_fn_append MODULE_BLOCK "MODULE_SPWD_STATE=$py_cv_module_spwd$as_nl" 27360 if test "x$py_cv_module_spwd" = xyes 27361then : 27362 27363 27364 27365 27366fi 27367 if test "$py_cv_module_spwd" = yes; then 27368 MODULE_SPWD_TRUE= 27369 MODULE_SPWD_FALSE='#' 27370else 27371 MODULE_SPWD_TRUE='#' 27372 MODULE_SPWD_FALSE= 27373fi 27374 27375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_spwd" >&5 27376printf "%s\n" "$py_cv_module_spwd" >&6; } 27377 27378 27379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5 27380printf %s "checking for stdlib extension module syslog... " >&6; } 27381 if test "$py_cv_module_syslog" != "n/a" 27382then : 27383 27384 if true 27385then : 27386 if test "$ac_cv_header_syslog_h" = yes 27387then : 27388 py_cv_module_syslog=yes 27389else $as_nop 27390 py_cv_module_syslog=missing 27391fi 27392else $as_nop 27393 py_cv_module_syslog=disabled 27394fi 27395 27396fi 27397 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl" 27398 if test "x$py_cv_module_syslog" = xyes 27399then : 27400 27401 27402 27403 27404fi 27405 if test "$py_cv_module_syslog" = yes; then 27406 MODULE_SYSLOG_TRUE= 27407 MODULE_SYSLOG_FALSE='#' 27408else 27409 MODULE_SYSLOG_TRUE='#' 27410 MODULE_SYSLOG_FALSE= 27411fi 27412 27413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5 27414printf "%s\n" "$py_cv_module_syslog" >&6; } 27415 27416 27417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5 27418printf %s "checking for stdlib extension module termios... " >&6; } 27419 if test "$py_cv_module_termios" != "n/a" 27420then : 27421 27422 if true 27423then : 27424 if test "$ac_cv_header_termios_h" = yes 27425then : 27426 py_cv_module_termios=yes 27427else $as_nop 27428 py_cv_module_termios=missing 27429fi 27430else $as_nop 27431 py_cv_module_termios=disabled 27432fi 27433 27434fi 27435 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl" 27436 if test "x$py_cv_module_termios" = xyes 27437then : 27438 27439 27440 27441 27442fi 27443 if test "$py_cv_module_termios" = yes; then 27444 MODULE_TERMIOS_TRUE= 27445 MODULE_TERMIOS_FALSE='#' 27446else 27447 MODULE_TERMIOS_TRUE='#' 27448 MODULE_TERMIOS_FALSE= 27449fi 27450 27451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5 27452printf "%s\n" "$py_cv_module_termios" >&6; } 27453 27454 27455 27456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5 27457printf %s "checking for stdlib extension module pyexpat... " >&6; } 27458 if test "$py_cv_module_pyexpat" != "n/a" 27459then : 27460 27461 if true 27462then : 27463 if true 27464then : 27465 py_cv_module_pyexpat=yes 27466else $as_nop 27467 py_cv_module_pyexpat=missing 27468fi 27469else $as_nop 27470 py_cv_module_pyexpat=disabled 27471fi 27472 27473fi 27474 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl" 27475 if test "x$py_cv_module_pyexpat" = xyes 27476then : 27477 27478 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl" 27479 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl" 27480 27481fi 27482 if test "$py_cv_module_pyexpat" = yes; then 27483 MODULE_PYEXPAT_TRUE= 27484 MODULE_PYEXPAT_FALSE='#' 27485else 27486 MODULE_PYEXPAT_TRUE='#' 27487 MODULE_PYEXPAT_FALSE= 27488fi 27489 27490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5 27491printf "%s\n" "$py_cv_module_pyexpat" >&6; } 27492 27493 27494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5 27495printf %s "checking for stdlib extension module _elementtree... " >&6; } 27496 if test "$py_cv_module__elementtree" != "n/a" 27497then : 27498 27499 if true 27500then : 27501 if true 27502then : 27503 py_cv_module__elementtree=yes 27504else $as_nop 27505 py_cv_module__elementtree=missing 27506fi 27507else $as_nop 27508 py_cv_module__elementtree=disabled 27509fi 27510 27511fi 27512 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl" 27513 if test "x$py_cv_module__elementtree" = xyes 27514then : 27515 27516 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl" 27517 27518 27519fi 27520 if test "$py_cv_module__elementtree" = yes; then 27521 MODULE__ELEMENTTREE_TRUE= 27522 MODULE__ELEMENTTREE_FALSE='#' 27523else 27524 MODULE__ELEMENTTREE_TRUE='#' 27525 MODULE__ELEMENTTREE_FALSE= 27526fi 27527 27528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5 27529printf "%s\n" "$py_cv_module__elementtree" >&6; } 27530 27531 27532 if test "$py_cv_module__codecs_cn" != "n/a" 27533then : 27534 py_cv_module__codecs_cn=yes 27535fi 27536 if test "$py_cv_module__codecs_cn" = yes; then 27537 MODULE__CODECS_CN_TRUE= 27538 MODULE__CODECS_CN_FALSE='#' 27539else 27540 MODULE__CODECS_CN_TRUE='#' 27541 MODULE__CODECS_CN_FALSE= 27542fi 27543 27544 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl" 27545 if test "x$py_cv_module__codecs_cn" = xyes 27546then : 27547 27548 27549 27550 27551fi 27552 27553 27554 if test "$py_cv_module__codecs_hk" != "n/a" 27555then : 27556 py_cv_module__codecs_hk=yes 27557fi 27558 if test "$py_cv_module__codecs_hk" = yes; then 27559 MODULE__CODECS_HK_TRUE= 27560 MODULE__CODECS_HK_FALSE='#' 27561else 27562 MODULE__CODECS_HK_TRUE='#' 27563 MODULE__CODECS_HK_FALSE= 27564fi 27565 27566 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl" 27567 if test "x$py_cv_module__codecs_hk" = xyes 27568then : 27569 27570 27571 27572 27573fi 27574 27575 27576 if test "$py_cv_module__codecs_iso2022" != "n/a" 27577then : 27578 py_cv_module__codecs_iso2022=yes 27579fi 27580 if test "$py_cv_module__codecs_iso2022" = yes; then 27581 MODULE__CODECS_ISO2022_TRUE= 27582 MODULE__CODECS_ISO2022_FALSE='#' 27583else 27584 MODULE__CODECS_ISO2022_TRUE='#' 27585 MODULE__CODECS_ISO2022_FALSE= 27586fi 27587 27588 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl" 27589 if test "x$py_cv_module__codecs_iso2022" = xyes 27590then : 27591 27592 27593 27594 27595fi 27596 27597 27598 if test "$py_cv_module__codecs_jp" != "n/a" 27599then : 27600 py_cv_module__codecs_jp=yes 27601fi 27602 if test "$py_cv_module__codecs_jp" = yes; then 27603 MODULE__CODECS_JP_TRUE= 27604 MODULE__CODECS_JP_FALSE='#' 27605else 27606 MODULE__CODECS_JP_TRUE='#' 27607 MODULE__CODECS_JP_FALSE= 27608fi 27609 27610 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl" 27611 if test "x$py_cv_module__codecs_jp" = xyes 27612then : 27613 27614 27615 27616 27617fi 27618 27619 27620 if test "$py_cv_module__codecs_kr" != "n/a" 27621then : 27622 py_cv_module__codecs_kr=yes 27623fi 27624 if test "$py_cv_module__codecs_kr" = yes; then 27625 MODULE__CODECS_KR_TRUE= 27626 MODULE__CODECS_KR_FALSE='#' 27627else 27628 MODULE__CODECS_KR_TRUE='#' 27629 MODULE__CODECS_KR_FALSE= 27630fi 27631 27632 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl" 27633 if test "x$py_cv_module__codecs_kr" = xyes 27634then : 27635 27636 27637 27638 27639fi 27640 27641 27642 if test "$py_cv_module__codecs_tw" != "n/a" 27643then : 27644 py_cv_module__codecs_tw=yes 27645fi 27646 if test "$py_cv_module__codecs_tw" = yes; then 27647 MODULE__CODECS_TW_TRUE= 27648 MODULE__CODECS_TW_FALSE='#' 27649else 27650 MODULE__CODECS_TW_TRUE='#' 27651 MODULE__CODECS_TW_FALSE= 27652fi 27653 27654 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl" 27655 if test "x$py_cv_module__codecs_tw" = xyes 27656then : 27657 27658 27659 27660 27661fi 27662 27663 27664 if test "$py_cv_module__multibytecodec" != "n/a" 27665then : 27666 py_cv_module__multibytecodec=yes 27667fi 27668 if test "$py_cv_module__multibytecodec" = yes; then 27669 MODULE__MULTIBYTECODEC_TRUE= 27670 MODULE__MULTIBYTECODEC_FALSE='#' 27671else 27672 MODULE__MULTIBYTECODEC_TRUE='#' 27673 MODULE__MULTIBYTECODEC_FALSE= 27674fi 27675 27676 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl" 27677 if test "x$py_cv_module__multibytecodec" = xyes 27678then : 27679 27680 27681 27682 27683fi 27684 27685 27686 if test "$py_cv_module_unicodedata" != "n/a" 27687then : 27688 py_cv_module_unicodedata=yes 27689fi 27690 if test "$py_cv_module_unicodedata" = yes; then 27691 MODULE_UNICODEDATA_TRUE= 27692 MODULE_UNICODEDATA_FALSE='#' 27693else 27694 MODULE_UNICODEDATA_TRUE='#' 27695 MODULE_UNICODEDATA_FALSE= 27696fi 27697 27698 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl" 27699 if test "x$py_cv_module_unicodedata" = xyes 27700then : 27701 27702 27703 27704 27705fi 27706 27707 27708 27709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5 27710printf %s "checking for stdlib extension module _md5... " >&6; } 27711 if test "$py_cv_module__md5" != "n/a" 27712then : 27713 27714 if test "$with_builtin_md5" = yes 27715then : 27716 if true 27717then : 27718 py_cv_module__md5=yes 27719else $as_nop 27720 py_cv_module__md5=missing 27721fi 27722else $as_nop 27723 py_cv_module__md5=disabled 27724fi 27725 27726fi 27727 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl" 27728 if test "x$py_cv_module__md5" = xyes 27729then : 27730 27731 27732 27733 27734fi 27735 if test "$py_cv_module__md5" = yes; then 27736 MODULE__MD5_TRUE= 27737 MODULE__MD5_FALSE='#' 27738else 27739 MODULE__MD5_TRUE='#' 27740 MODULE__MD5_FALSE= 27741fi 27742 27743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5 27744printf "%s\n" "$py_cv_module__md5" >&6; } 27745 27746 27747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5 27748printf %s "checking for stdlib extension module _sha1... " >&6; } 27749 if test "$py_cv_module__sha1" != "n/a" 27750then : 27751 27752 if test "$with_builtin_sha1" = yes 27753then : 27754 if true 27755then : 27756 py_cv_module__sha1=yes 27757else $as_nop 27758 py_cv_module__sha1=missing 27759fi 27760else $as_nop 27761 py_cv_module__sha1=disabled 27762fi 27763 27764fi 27765 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl" 27766 if test "x$py_cv_module__sha1" = xyes 27767then : 27768 27769 27770 27771 27772fi 27773 if test "$py_cv_module__sha1" = yes; then 27774 MODULE__SHA1_TRUE= 27775 MODULE__SHA1_FALSE='#' 27776else 27777 MODULE__SHA1_TRUE='#' 27778 MODULE__SHA1_FALSE= 27779fi 27780 27781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5 27782printf "%s\n" "$py_cv_module__sha1" >&6; } 27783 27784 27785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha256" >&5 27786printf %s "checking for stdlib extension module _sha256... " >&6; } 27787 if test "$py_cv_module__sha256" != "n/a" 27788then : 27789 27790 if test "$with_builtin_sha256" = yes 27791then : 27792 if true 27793then : 27794 py_cv_module__sha256=yes 27795else $as_nop 27796 py_cv_module__sha256=missing 27797fi 27798else $as_nop 27799 py_cv_module__sha256=disabled 27800fi 27801 27802fi 27803 as_fn_append MODULE_BLOCK "MODULE__SHA256_STATE=$py_cv_module__sha256$as_nl" 27804 if test "x$py_cv_module__sha256" = xyes 27805then : 27806 27807 27808 27809 27810fi 27811 if test "$py_cv_module__sha256" = yes; then 27812 MODULE__SHA256_TRUE= 27813 MODULE__SHA256_FALSE='#' 27814else 27815 MODULE__SHA256_TRUE='#' 27816 MODULE__SHA256_FALSE= 27817fi 27818 27819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha256" >&5 27820printf "%s\n" "$py_cv_module__sha256" >&6; } 27821 27822 27823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha512" >&5 27824printf %s "checking for stdlib extension module _sha512... " >&6; } 27825 if test "$py_cv_module__sha512" != "n/a" 27826then : 27827 27828 if test "$with_builtin_sha512" = yes 27829then : 27830 if true 27831then : 27832 py_cv_module__sha512=yes 27833else $as_nop 27834 py_cv_module__sha512=missing 27835fi 27836else $as_nop 27837 py_cv_module__sha512=disabled 27838fi 27839 27840fi 27841 as_fn_append MODULE_BLOCK "MODULE__SHA512_STATE=$py_cv_module__sha512$as_nl" 27842 if test "x$py_cv_module__sha512" = xyes 27843then : 27844 27845 27846 27847 27848fi 27849 if test "$py_cv_module__sha512" = yes; then 27850 MODULE__SHA512_TRUE= 27851 MODULE__SHA512_FALSE='#' 27852else 27853 MODULE__SHA512_TRUE='#' 27854 MODULE__SHA512_FALSE= 27855fi 27856 27857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha512" >&5 27858printf "%s\n" "$py_cv_module__sha512" >&6; } 27859 27860 27861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5 27862printf %s "checking for stdlib extension module _sha3... " >&6; } 27863 if test "$py_cv_module__sha3" != "n/a" 27864then : 27865 27866 if test "$with_builtin_sha3" = yes 27867then : 27868 if true 27869then : 27870 py_cv_module__sha3=yes 27871else $as_nop 27872 py_cv_module__sha3=missing 27873fi 27874else $as_nop 27875 py_cv_module__sha3=disabled 27876fi 27877 27878fi 27879 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl" 27880 if test "x$py_cv_module__sha3" = xyes 27881then : 27882 27883 27884 27885 27886fi 27887 if test "$py_cv_module__sha3" = yes; then 27888 MODULE__SHA3_TRUE= 27889 MODULE__SHA3_FALSE='#' 27890else 27891 MODULE__SHA3_TRUE='#' 27892 MODULE__SHA3_FALSE= 27893fi 27894 27895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5 27896printf "%s\n" "$py_cv_module__sha3" >&6; } 27897 27898 27899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5 27900printf %s "checking for stdlib extension module _blake2... " >&6; } 27901 if test "$py_cv_module__blake2" != "n/a" 27902then : 27903 27904 if test "$with_builtin_blake2" = yes 27905then : 27906 if true 27907then : 27908 py_cv_module__blake2=yes 27909else $as_nop 27910 py_cv_module__blake2=missing 27911fi 27912else $as_nop 27913 py_cv_module__blake2=disabled 27914fi 27915 27916fi 27917 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl" 27918 if test "x$py_cv_module__blake2" = xyes 27919then : 27920 27921 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl" 27922 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl" 27923 27924fi 27925 if test "$py_cv_module__blake2" = yes; then 27926 MODULE__BLAKE2_TRUE= 27927 MODULE__BLAKE2_FALSE='#' 27928else 27929 MODULE__BLAKE2_TRUE='#' 27930 MODULE__BLAKE2_FALSE= 27931fi 27932 27933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5 27934printf "%s\n" "$py_cv_module__blake2" >&6; } 27935 27936 27937 27938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _crypt" >&5 27939printf %s "checking for stdlib extension module _crypt... " >&6; } 27940 if test "$py_cv_module__crypt" != "n/a" 27941then : 27942 27943 if true 27944then : 27945 if test "$ac_cv_crypt_crypt" = yes 27946then : 27947 py_cv_module__crypt=yes 27948else $as_nop 27949 py_cv_module__crypt=missing 27950fi 27951else $as_nop 27952 py_cv_module__crypt=disabled 27953fi 27954 27955fi 27956 as_fn_append MODULE_BLOCK "MODULE__CRYPT_STATE=$py_cv_module__crypt$as_nl" 27957 if test "x$py_cv_module__crypt" = xyes 27958then : 27959 27960 as_fn_append MODULE_BLOCK "MODULE__CRYPT_CFLAGS=$LIBCRYPT_CFLAGS$as_nl" 27961 as_fn_append MODULE_BLOCK "MODULE__CRYPT_LDFLAGS=$LIBCRYPT_LIBS$as_nl" 27962 27963fi 27964 if test "$py_cv_module__crypt" = yes; then 27965 MODULE__CRYPT_TRUE= 27966 MODULE__CRYPT_FALSE='#' 27967else 27968 MODULE__CRYPT_TRUE='#' 27969 MODULE__CRYPT_FALSE= 27970fi 27971 27972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__crypt" >&5 27973printf "%s\n" "$py_cv_module__crypt" >&6; } 27974 27975 27976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5 27977printf %s "checking for stdlib extension module _decimal... " >&6; } 27978 if test "$py_cv_module__decimal" != "n/a" 27979then : 27980 27981 if true 27982then : 27983 if true 27984then : 27985 py_cv_module__decimal=yes 27986else $as_nop 27987 py_cv_module__decimal=missing 27988fi 27989else $as_nop 27990 py_cv_module__decimal=disabled 27991fi 27992 27993fi 27994 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl" 27995 if test "x$py_cv_module__decimal" = xyes 27996then : 27997 27998 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl" 27999 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LDFLAGS$as_nl" 28000 28001fi 28002 if test "$py_cv_module__decimal" = yes; then 28003 MODULE__DECIMAL_TRUE= 28004 MODULE__DECIMAL_FALSE='#' 28005else 28006 MODULE__DECIMAL_TRUE='#' 28007 MODULE__DECIMAL_FALSE= 28008fi 28009 28010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5 28011printf "%s\n" "$py_cv_module__decimal" >&6; } 28012 28013 28014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5 28015printf %s "checking for stdlib extension module _gdbm... " >&6; } 28016 if test "$py_cv_module__gdbm" != "n/a" 28017then : 28018 28019 if test "$have_gdbm_dbmliborder" = yes 28020then : 28021 if test "$have_gdbm" = yes 28022then : 28023 py_cv_module__gdbm=yes 28024else $as_nop 28025 py_cv_module__gdbm=missing 28026fi 28027else $as_nop 28028 py_cv_module__gdbm=disabled 28029fi 28030 28031fi 28032 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl" 28033 if test "x$py_cv_module__gdbm" = xyes 28034then : 28035 28036 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl" 28037 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl" 28038 28039fi 28040 if test "$py_cv_module__gdbm" = yes; then 28041 MODULE__GDBM_TRUE= 28042 MODULE__GDBM_FALSE='#' 28043else 28044 MODULE__GDBM_TRUE='#' 28045 MODULE__GDBM_FALSE= 28046fi 28047 28048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5 28049printf "%s\n" "$py_cv_module__gdbm" >&6; } 28050 28051 28052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module nis" >&5 28053printf %s "checking for stdlib extension module nis... " >&6; } 28054 if test "$py_cv_module_nis" != "n/a" 28055then : 28056 28057 if true 28058then : 28059 if test "$have_nis" = yes -a "$ac_cv_header_rpc_rpc_h" = yes 28060then : 28061 py_cv_module_nis=yes 28062else $as_nop 28063 py_cv_module_nis=missing 28064fi 28065else $as_nop 28066 py_cv_module_nis=disabled 28067fi 28068 28069fi 28070 as_fn_append MODULE_BLOCK "MODULE_NIS_STATE=$py_cv_module_nis$as_nl" 28071 if test "x$py_cv_module_nis" = xyes 28072then : 28073 28074 as_fn_append MODULE_BLOCK "MODULE_NIS_CFLAGS=$LIBNSL_CFLAGS$as_nl" 28075 as_fn_append MODULE_BLOCK "MODULE_NIS_LDFLAGS=$LIBNSL_LIBS$as_nl" 28076 28077fi 28078 if test "$py_cv_module_nis" = yes; then 28079 MODULE_NIS_TRUE= 28080 MODULE_NIS_FALSE='#' 28081else 28082 MODULE_NIS_TRUE='#' 28083 MODULE_NIS_FALSE= 28084fi 28085 28086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_nis" >&5 28087printf "%s\n" "$py_cv_module_nis" >&6; } 28088 28089 28090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5 28091printf %s "checking for stdlib extension module _sqlite3... " >&6; } 28092 if test "$py_cv_module__sqlite3" != "n/a" 28093then : 28094 28095 if test "$have_sqlite3" = "yes" 28096then : 28097 if test "$have_supported_sqlite3" = "yes" 28098then : 28099 py_cv_module__sqlite3=yes 28100else $as_nop 28101 py_cv_module__sqlite3=missing 28102fi 28103else $as_nop 28104 py_cv_module__sqlite3=disabled 28105fi 28106 28107fi 28108 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl" 28109 if test "x$py_cv_module__sqlite3" = xyes 28110then : 28111 28112 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl" 28113 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl" 28114 28115fi 28116 if test "$py_cv_module__sqlite3" = yes; then 28117 MODULE__SQLITE3_TRUE= 28118 MODULE__SQLITE3_FALSE='#' 28119else 28120 MODULE__SQLITE3_TRUE='#' 28121 MODULE__SQLITE3_FALSE= 28122fi 28123 28124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5 28125printf "%s\n" "$py_cv_module__sqlite3" >&6; } 28126 28127 28128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5 28129printf %s "checking for stdlib extension module _tkinter... " >&6; } 28130 if test "$py_cv_module__tkinter" != "n/a" 28131then : 28132 28133 if true 28134then : 28135 if test "$have_tcltk" = "yes" 28136then : 28137 py_cv_module__tkinter=yes 28138else $as_nop 28139 py_cv_module__tkinter=missing 28140fi 28141else $as_nop 28142 py_cv_module__tkinter=disabled 28143fi 28144 28145fi 28146 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl" 28147 if test "x$py_cv_module__tkinter" = xyes 28148then : 28149 28150 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl" 28151 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl" 28152 28153fi 28154 if test "$py_cv_module__tkinter" = yes; then 28155 MODULE__TKINTER_TRUE= 28156 MODULE__TKINTER_FALSE='#' 28157else 28158 MODULE__TKINTER_TRUE='#' 28159 MODULE__TKINTER_FALSE= 28160fi 28161 28162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5 28163printf "%s\n" "$py_cv_module__tkinter" >&6; } 28164 28165 28166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5 28167printf %s "checking for stdlib extension module _uuid... " >&6; } 28168 if test "$py_cv_module__uuid" != "n/a" 28169then : 28170 28171 if true 28172then : 28173 if test "$have_uuid" = "yes" 28174then : 28175 py_cv_module__uuid=yes 28176else $as_nop 28177 py_cv_module__uuid=missing 28178fi 28179else $as_nop 28180 py_cv_module__uuid=disabled 28181fi 28182 28183fi 28184 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl" 28185 if test "x$py_cv_module__uuid" = xyes 28186then : 28187 28188 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl" 28189 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl" 28190 28191fi 28192 if test "$py_cv_module__uuid" = yes; then 28193 MODULE__UUID_TRUE= 28194 MODULE__UUID_FALSE='#' 28195else 28196 MODULE__UUID_TRUE='#' 28197 MODULE__UUID_FALSE= 28198fi 28199 28200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5 28201printf "%s\n" "$py_cv_module__uuid" >&6; } 28202 28203 28204 28205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5 28206printf %s "checking for stdlib extension module zlib... " >&6; } 28207 if test "$py_cv_module_zlib" != "n/a" 28208then : 28209 28210 if true 28211then : 28212 if test "$have_zlib" = yes 28213then : 28214 py_cv_module_zlib=yes 28215else $as_nop 28216 py_cv_module_zlib=missing 28217fi 28218else $as_nop 28219 py_cv_module_zlib=disabled 28220fi 28221 28222fi 28223 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl" 28224 if test "x$py_cv_module_zlib" = xyes 28225then : 28226 28227 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl" 28228 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl" 28229 28230fi 28231 if test "$py_cv_module_zlib" = yes; then 28232 MODULE_ZLIB_TRUE= 28233 MODULE_ZLIB_FALSE='#' 28234else 28235 MODULE_ZLIB_TRUE='#' 28236 MODULE_ZLIB_FALSE= 28237fi 28238 28239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5 28240printf "%s\n" "$py_cv_module_zlib" >&6; } 28241 28242 28243 if test "$py_cv_module_binascii" != "n/a" 28244then : 28245 py_cv_module_binascii=yes 28246fi 28247 if test "$py_cv_module_binascii" = yes; then 28248 MODULE_BINASCII_TRUE= 28249 MODULE_BINASCII_FALSE='#' 28250else 28251 MODULE_BINASCII_TRUE='#' 28252 MODULE_BINASCII_FALSE= 28253fi 28254 28255 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl" 28256 if test "x$py_cv_module_binascii" = xyes 28257then : 28258 28259 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl" 28260 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl" 28261 28262fi 28263 28264 28265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5 28266printf %s "checking for stdlib extension module _bz2... " >&6; } 28267 if test "$py_cv_module__bz2" != "n/a" 28268then : 28269 28270 if true 28271then : 28272 if test "$have_bzip2" = yes 28273then : 28274 py_cv_module__bz2=yes 28275else $as_nop 28276 py_cv_module__bz2=missing 28277fi 28278else $as_nop 28279 py_cv_module__bz2=disabled 28280fi 28281 28282fi 28283 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl" 28284 if test "x$py_cv_module__bz2" = xyes 28285then : 28286 28287 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl" 28288 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl" 28289 28290fi 28291 if test "$py_cv_module__bz2" = yes; then 28292 MODULE__BZ2_TRUE= 28293 MODULE__BZ2_FALSE='#' 28294else 28295 MODULE__BZ2_TRUE='#' 28296 MODULE__BZ2_FALSE= 28297fi 28298 28299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5 28300printf "%s\n" "$py_cv_module__bz2" >&6; } 28301 28302 28303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5 28304printf %s "checking for stdlib extension module _lzma... " >&6; } 28305 if test "$py_cv_module__lzma" != "n/a" 28306then : 28307 28308 if true 28309then : 28310 if test "$have_liblzma" = yes 28311then : 28312 py_cv_module__lzma=yes 28313else $as_nop 28314 py_cv_module__lzma=missing 28315fi 28316else $as_nop 28317 py_cv_module__lzma=disabled 28318fi 28319 28320fi 28321 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl" 28322 if test "x$py_cv_module__lzma" = xyes 28323then : 28324 28325 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl" 28326 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl" 28327 28328fi 28329 if test "$py_cv_module__lzma" = yes; then 28330 MODULE__LZMA_TRUE= 28331 MODULE__LZMA_FALSE='#' 28332else 28333 MODULE__LZMA_TRUE='#' 28334 MODULE__LZMA_FALSE= 28335fi 28336 28337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5 28338printf "%s\n" "$py_cv_module__lzma" >&6; } 28339 28340 28341 28342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5 28343printf %s "checking for stdlib extension module _ssl... " >&6; } 28344 if test "$py_cv_module__ssl" != "n/a" 28345then : 28346 28347 if true 28348then : 28349 if test "$ac_cv_working_openssl_ssl" = yes 28350then : 28351 py_cv_module__ssl=yes 28352else $as_nop 28353 py_cv_module__ssl=missing 28354fi 28355else $as_nop 28356 py_cv_module__ssl=disabled 28357fi 28358 28359fi 28360 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl" 28361 if test "x$py_cv_module__ssl" = xyes 28362then : 28363 28364 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl" 28365 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl" 28366 28367fi 28368 if test "$py_cv_module__ssl" = yes; then 28369 MODULE__SSL_TRUE= 28370 MODULE__SSL_FALSE='#' 28371else 28372 MODULE__SSL_TRUE='#' 28373 MODULE__SSL_FALSE= 28374fi 28375 28376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5 28377printf "%s\n" "$py_cv_module__ssl" >&6; } 28378 28379 28380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5 28381printf %s "checking for stdlib extension module _hashlib... " >&6; } 28382 if test "$py_cv_module__hashlib" != "n/a" 28383then : 28384 28385 if true 28386then : 28387 if test "$ac_cv_working_openssl_hashlib" = yes 28388then : 28389 py_cv_module__hashlib=yes 28390else $as_nop 28391 py_cv_module__hashlib=missing 28392fi 28393else $as_nop 28394 py_cv_module__hashlib=disabled 28395fi 28396 28397fi 28398 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl" 28399 if test "x$py_cv_module__hashlib" = xyes 28400then : 28401 28402 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl" 28403 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl" 28404 28405fi 28406 if test "$py_cv_module__hashlib" = yes; then 28407 MODULE__HASHLIB_TRUE= 28408 MODULE__HASHLIB_FALSE='#' 28409else 28410 MODULE__HASHLIB_TRUE='#' 28411 MODULE__HASHLIB_FALSE= 28412fi 28413 28414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5 28415printf "%s\n" "$py_cv_module__hashlib" >&6; } 28416 28417 28418 28419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5 28420printf %s "checking for stdlib extension module _testcapi... " >&6; } 28421 if test "$py_cv_module__testcapi" != "n/a" 28422then : 28423 28424 if test "$TEST_MODULES" = yes 28425then : 28426 if true 28427then : 28428 py_cv_module__testcapi=yes 28429else $as_nop 28430 py_cv_module__testcapi=missing 28431fi 28432else $as_nop 28433 py_cv_module__testcapi=disabled 28434fi 28435 28436fi 28437 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl" 28438 if test "x$py_cv_module__testcapi" = xyes 28439then : 28440 28441 28442 28443 28444fi 28445 if test "$py_cv_module__testcapi" = yes; then 28446 MODULE__TESTCAPI_TRUE= 28447 MODULE__TESTCAPI_FALSE='#' 28448else 28449 MODULE__TESTCAPI_TRUE='#' 28450 MODULE__TESTCAPI_FALSE= 28451fi 28452 28453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5 28454printf "%s\n" "$py_cv_module__testcapi" >&6; } 28455 28456 28457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5 28458printf %s "checking for stdlib extension module _testclinic... " >&6; } 28459 if test "$py_cv_module__testclinic" != "n/a" 28460then : 28461 28462 if test "$TEST_MODULES" = yes 28463then : 28464 if true 28465then : 28466 py_cv_module__testclinic=yes 28467else $as_nop 28468 py_cv_module__testclinic=missing 28469fi 28470else $as_nop 28471 py_cv_module__testclinic=disabled 28472fi 28473 28474fi 28475 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl" 28476 if test "x$py_cv_module__testclinic" = xyes 28477then : 28478 28479 28480 28481 28482fi 28483 if test "$py_cv_module__testclinic" = yes; then 28484 MODULE__TESTCLINIC_TRUE= 28485 MODULE__TESTCLINIC_FALSE='#' 28486else 28487 MODULE__TESTCLINIC_TRUE='#' 28488 MODULE__TESTCLINIC_FALSE= 28489fi 28490 28491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5 28492printf "%s\n" "$py_cv_module__testclinic" >&6; } 28493 28494 28495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5 28496printf %s "checking for stdlib extension module _testinternalcapi... " >&6; } 28497 if test "$py_cv_module__testinternalcapi" != "n/a" 28498then : 28499 28500 if test "$TEST_MODULES" = yes 28501then : 28502 if true 28503then : 28504 py_cv_module__testinternalcapi=yes 28505else $as_nop 28506 py_cv_module__testinternalcapi=missing 28507fi 28508else $as_nop 28509 py_cv_module__testinternalcapi=disabled 28510fi 28511 28512fi 28513 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl" 28514 if test "x$py_cv_module__testinternalcapi" = xyes 28515then : 28516 28517 28518 28519 28520fi 28521 if test "$py_cv_module__testinternalcapi" = yes; then 28522 MODULE__TESTINTERNALCAPI_TRUE= 28523 MODULE__TESTINTERNALCAPI_FALSE='#' 28524else 28525 MODULE__TESTINTERNALCAPI_TRUE='#' 28526 MODULE__TESTINTERNALCAPI_FALSE= 28527fi 28528 28529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5 28530printf "%s\n" "$py_cv_module__testinternalcapi" >&6; } 28531 28532 28533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5 28534printf %s "checking for stdlib extension module _testbuffer... " >&6; } 28535 if test "$py_cv_module__testbuffer" != "n/a" 28536then : 28537 28538 if test "$TEST_MODULES" = yes 28539then : 28540 if true 28541then : 28542 py_cv_module__testbuffer=yes 28543else $as_nop 28544 py_cv_module__testbuffer=missing 28545fi 28546else $as_nop 28547 py_cv_module__testbuffer=disabled 28548fi 28549 28550fi 28551 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl" 28552 if test "x$py_cv_module__testbuffer" = xyes 28553then : 28554 28555 28556 28557 28558fi 28559 if test "$py_cv_module__testbuffer" = yes; then 28560 MODULE__TESTBUFFER_TRUE= 28561 MODULE__TESTBUFFER_FALSE='#' 28562else 28563 MODULE__TESTBUFFER_TRUE='#' 28564 MODULE__TESTBUFFER_FALSE= 28565fi 28566 28567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5 28568printf "%s\n" "$py_cv_module__testbuffer" >&6; } 28569 28570 28571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5 28572printf %s "checking for stdlib extension module _testimportmultiple... " >&6; } 28573 if test "$py_cv_module__testimportmultiple" != "n/a" 28574then : 28575 28576 if test "$TEST_MODULES" = yes 28577then : 28578 if test "$ac_cv_func_dlopen" = yes 28579then : 28580 py_cv_module__testimportmultiple=yes 28581else $as_nop 28582 py_cv_module__testimportmultiple=missing 28583fi 28584else $as_nop 28585 py_cv_module__testimportmultiple=disabled 28586fi 28587 28588fi 28589 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl" 28590 if test "x$py_cv_module__testimportmultiple" = xyes 28591then : 28592 28593 28594 28595 28596fi 28597 if test "$py_cv_module__testimportmultiple" = yes; then 28598 MODULE__TESTIMPORTMULTIPLE_TRUE= 28599 MODULE__TESTIMPORTMULTIPLE_FALSE='#' 28600else 28601 MODULE__TESTIMPORTMULTIPLE_TRUE='#' 28602 MODULE__TESTIMPORTMULTIPLE_FALSE= 28603fi 28604 28605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5 28606printf "%s\n" "$py_cv_module__testimportmultiple" >&6; } 28607 28608 28609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5 28610printf %s "checking for stdlib extension module _testmultiphase... " >&6; } 28611 if test "$py_cv_module__testmultiphase" != "n/a" 28612then : 28613 28614 if test "$TEST_MODULES" = yes 28615then : 28616 if test "$ac_cv_func_dlopen" = yes 28617then : 28618 py_cv_module__testmultiphase=yes 28619else $as_nop 28620 py_cv_module__testmultiphase=missing 28621fi 28622else $as_nop 28623 py_cv_module__testmultiphase=disabled 28624fi 28625 28626fi 28627 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl" 28628 if test "x$py_cv_module__testmultiphase" = xyes 28629then : 28630 28631 28632 28633 28634fi 28635 if test "$py_cv_module__testmultiphase" = yes; then 28636 MODULE__TESTMULTIPHASE_TRUE= 28637 MODULE__TESTMULTIPHASE_FALSE='#' 28638else 28639 MODULE__TESTMULTIPHASE_TRUE='#' 28640 MODULE__TESTMULTIPHASE_FALSE= 28641fi 28642 28643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5 28644printf "%s\n" "$py_cv_module__testmultiphase" >&6; } 28645 28646 28647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5 28648printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; } 28649 if test "$py_cv_module__xxtestfuzz" != "n/a" 28650then : 28651 28652 if test "$TEST_MODULES" = yes 28653then : 28654 if true 28655then : 28656 py_cv_module__xxtestfuzz=yes 28657else $as_nop 28658 py_cv_module__xxtestfuzz=missing 28659fi 28660else $as_nop 28661 py_cv_module__xxtestfuzz=disabled 28662fi 28663 28664fi 28665 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl" 28666 if test "x$py_cv_module__xxtestfuzz" = xyes 28667then : 28668 28669 28670 28671 28672fi 28673 if test "$py_cv_module__xxtestfuzz" = yes; then 28674 MODULE__XXTESTFUZZ_TRUE= 28675 MODULE__XXTESTFUZZ_FALSE='#' 28676else 28677 MODULE__XXTESTFUZZ_TRUE='#' 28678 MODULE__XXTESTFUZZ_FALSE= 28679fi 28680 28681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5 28682printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; } 28683 28684 28685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5 28686printf %s "checking for stdlib extension module _ctypes_test... " >&6; } 28687 if test "$py_cv_module__ctypes_test" != "n/a" 28688then : 28689 28690 if test "$TEST_MODULES" = yes 28691then : 28692 if test "$ac_cv_func_dlopen" = yes 28693then : 28694 py_cv_module__ctypes_test=yes 28695else $as_nop 28696 py_cv_module__ctypes_test=missing 28697fi 28698else $as_nop 28699 py_cv_module__ctypes_test=disabled 28700fi 28701 28702fi 28703 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl" 28704 if test "x$py_cv_module__ctypes_test" = xyes 28705then : 28706 28707 28708 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=-lm$as_nl" 28709 28710fi 28711 if test "$py_cv_module__ctypes_test" = yes; then 28712 MODULE__CTYPES_TEST_TRUE= 28713 MODULE__CTYPES_TEST_FALSE='#' 28714else 28715 MODULE__CTYPES_TEST_TRUE='#' 28716 MODULE__CTYPES_TEST_FALSE= 28717fi 28718 28719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5 28720printf "%s\n" "$py_cv_module__ctypes_test" >&6; } 28721 28722 28723 28724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5 28725printf %s "checking for stdlib extension module xxlimited... " >&6; } 28726 if test "$py_cv_module_xxlimited" != "n/a" 28727then : 28728 28729 if test "$with_trace_refs" = "no" 28730then : 28731 if test "$ac_cv_func_dlopen" = yes 28732then : 28733 py_cv_module_xxlimited=yes 28734else $as_nop 28735 py_cv_module_xxlimited=missing 28736fi 28737else $as_nop 28738 py_cv_module_xxlimited=disabled 28739fi 28740 28741fi 28742 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl" 28743 if test "x$py_cv_module_xxlimited" = xyes 28744then : 28745 28746 28747 28748 28749fi 28750 if test "$py_cv_module_xxlimited" = yes; then 28751 MODULE_XXLIMITED_TRUE= 28752 MODULE_XXLIMITED_FALSE='#' 28753else 28754 MODULE_XXLIMITED_TRUE='#' 28755 MODULE_XXLIMITED_FALSE= 28756fi 28757 28758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5 28759printf "%s\n" "$py_cv_module_xxlimited" >&6; } 28760 28761 28762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5 28763printf %s "checking for stdlib extension module xxlimited_35... " >&6; } 28764 if test "$py_cv_module_xxlimited_35" != "n/a" 28765then : 28766 28767 if test "$with_trace_refs" = "no" 28768then : 28769 if test "$ac_cv_func_dlopen" = yes 28770then : 28771 py_cv_module_xxlimited_35=yes 28772else $as_nop 28773 py_cv_module_xxlimited_35=missing 28774fi 28775else $as_nop 28776 py_cv_module_xxlimited_35=disabled 28777fi 28778 28779fi 28780 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl" 28781 if test "x$py_cv_module_xxlimited_35" = xyes 28782then : 28783 28784 28785 28786 28787fi 28788 if test "$py_cv_module_xxlimited_35" = yes; then 28789 MODULE_XXLIMITED_35_TRUE= 28790 MODULE_XXLIMITED_35_FALSE='#' 28791else 28792 MODULE_XXLIMITED_35_TRUE='#' 28793 MODULE_XXLIMITED_35_FALSE= 28794fi 28795 28796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5 28797printf "%s\n" "$py_cv_module_xxlimited_35" >&6; } 28798 28799 28800# substitute multiline block, must come after last PY_STDLIB_MOD() 28801 28802 28803# generate output files 28804ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" 28805 28806ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib" 28807 28808ac_config_files="$ac_config_files Modules/ld_so_aix" 28809 28810cat >confcache <<\_ACEOF 28811# This file is a shell script that caches the results of configure 28812# tests run on this system so they can be shared between configure 28813# scripts and configure runs, see configure's option --config-cache. 28814# It is not useful on other systems. If it contains results you don't 28815# want to keep, you may remove or edit it. 28816# 28817# config.status only pays attention to the cache file if you give it 28818# the --recheck option to rerun configure. 28819# 28820# `ac_cv_env_foo' variables (set or unset) will be overridden when 28821# loading this file, other *unset* `ac_cv_foo' will be assigned the 28822# following values. 28823 28824_ACEOF 28825 28826# The following way of writing the cache mishandles newlines in values, 28827# but we know of no workaround that is simple, portable, and efficient. 28828# So, we kill variables containing newlines. 28829# Ultrix sh set writes to stderr and can't be redirected directly, 28830# and sets the high bit in the cache file unless we assign to the vars. 28831( 28832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 28833 eval ac_val=\$$ac_var 28834 case $ac_val in #( 28835 *${as_nl}*) 28836 case $ac_var in #( 28837 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 28838printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 28839 esac 28840 case $ac_var in #( 28841 _ | IFS | as_nl) ;; #( 28842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 28843 *) { eval $ac_var=; unset $ac_var;} ;; 28844 esac ;; 28845 esac 28846 done 28847 28848 (set) 2>&1 | 28849 case $as_nl`(ac_space=' '; set) 2>&1` in #( 28850 *${as_nl}ac_space=\ *) 28851 # `set' does not quote correctly, so add quotes: double-quote 28852 # substitution turns \\\\ into \\, and sed turns \\ into \. 28853 sed -n \ 28854 "s/'/'\\\\''/g; 28855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 28856 ;; #( 28857 *) 28858 # `set' quotes correctly as required by POSIX, so do not add quotes. 28859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 28860 ;; 28861 esac | 28862 sort 28863) | 28864 sed ' 28865 /^ac_cv_env_/b end 28866 t clear 28867 :clear 28868 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 28869 t end 28870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 28871 :end' >>confcache 28872if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 28873 if test -w "$cache_file"; then 28874 if test "x$cache_file" != "x/dev/null"; then 28875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 28876printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 28877 if test ! -f "$cache_file" || test -h "$cache_file"; then 28878 cat confcache >"$cache_file" 28879 else 28880 case $cache_file in #( 28881 */* | ?:*) 28882 mv -f confcache "$cache_file"$$ && 28883 mv -f "$cache_file"$$ "$cache_file" ;; #( 28884 *) 28885 mv -f confcache "$cache_file" ;; 28886 esac 28887 fi 28888 fi 28889 else 28890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 28891printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 28892 fi 28893fi 28894rm -f confcache 28895 28896test "x$prefix" = xNONE && prefix=$ac_default_prefix 28897# Let make expand exec_prefix. 28898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 28899 28900DEFS=-DHAVE_CONFIG_H 28901 28902ac_libobjs= 28903ac_ltlibobjs= 28904U= 28905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 28906 # 1. Remove the extension, and $U if already installed. 28907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 28908 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 28909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 28910 # will be set to the directory where LIBOBJS objects are built. 28911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 28912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 28913done 28914LIBOBJS=$ac_libobjs 28915 28916LTLIBOBJS=$ac_ltlibobjs 28917 28918 28919 28920if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then 28921 as_fn_error $? "conditional \"MODULE__IO\" was never defined. 28922Usually this means the macro was only invoked conditionally." "$LINENO" 5 28923fi 28924if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then 28925 as_fn_error $? "conditional \"MODULE_TIME\" was never defined. 28926Usually this means the macro was only invoked conditionally." "$LINENO" 5 28927fi 28928if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then 28929 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined. 28930Usually this means the macro was only invoked conditionally." "$LINENO" 5 28931fi 28932if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then 28933 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined. 28934Usually this means the macro was only invoked conditionally." "$LINENO" 5 28935fi 28936if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then 28937 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined. 28938Usually this means the macro was only invoked conditionally." "$LINENO" 5 28939fi 28940if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then 28941 as_fn_error $? "conditional \"MODULE__CONTEXTVARS\" was never defined. 28942Usually this means the macro was only invoked conditionally." "$LINENO" 5 28943fi 28944if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then 28945 as_fn_error $? "conditional \"MODULE__CSV\" was never defined. 28946Usually this means the macro was only invoked conditionally." "$LINENO" 5 28947fi 28948if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then 28949 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined. 28950Usually this means the macro was only invoked conditionally." "$LINENO" 5 28951fi 28952if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then 28953 as_fn_error $? "conditional \"MODULE__JSON\" was never defined. 28954Usually this means the macro was only invoked conditionally." "$LINENO" 5 28955fi 28956if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then 28957 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined. 28958Usually this means the macro was only invoked conditionally." "$LINENO" 5 28959fi 28960if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then 28961 as_fn_error $? "conditional \"MODULE__OPCODE\" was never defined. 28962Usually this means the macro was only invoked conditionally." "$LINENO" 5 28963fi 28964if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then 28965 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined. 28966Usually this means the macro was only invoked conditionally." "$LINENO" 5 28967fi 28968if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then 28969 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined. 28970Usually this means the macro was only invoked conditionally." "$LINENO" 5 28971fi 28972if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then 28973 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined. 28974Usually this means the macro was only invoked conditionally." "$LINENO" 5 28975fi 28976if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then 28977 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined. 28978Usually this means the macro was only invoked conditionally." "$LINENO" 5 28979fi 28980if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then 28981 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined. 28982Usually this means the macro was only invoked conditionally." "$LINENO" 5 28983fi 28984if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then 28985 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined. 28986Usually this means the macro was only invoked conditionally." "$LINENO" 5 28987fi 28988if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then 28989 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined. 28990Usually this means the macro was only invoked conditionally." "$LINENO" 5 28991fi 28992if test -z "${MODULE__XXSUBINTERPRETERS_TRUE}" && test -z "${MODULE__XXSUBINTERPRETERS_FALSE}"; then 28993 as_fn_error $? "conditional \"MODULE__XXSUBINTERPRETERS\" was never defined. 28994Usually this means the macro was only invoked conditionally." "$LINENO" 5 28995fi 28996if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then 28997 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined. 28998Usually this means the macro was only invoked conditionally." "$LINENO" 5 28999fi 29000if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then 29001 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined. 29002Usually this means the macro was only invoked conditionally." "$LINENO" 5 29003fi 29004if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then 29005 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined. 29006Usually this means the macro was only invoked conditionally." "$LINENO" 5 29007fi 29008if test -z "${MODULE_AUDIOOP_TRUE}" && test -z "${MODULE_AUDIOOP_FALSE}"; then 29009 as_fn_error $? "conditional \"MODULE_AUDIOOP\" was never defined. 29010Usually this means the macro was only invoked conditionally." "$LINENO" 5 29011fi 29012if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then 29013 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined. 29014Usually this means the macro was only invoked conditionally." "$LINENO" 5 29015fi 29016if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then 29017 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined. 29018Usually this means the macro was only invoked conditionally." "$LINENO" 5 29019fi 29020if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then 29021 as_fn_error $? "conditional \"MODULE_MATH\" was never defined. 29022Usually this means the macro was only invoked conditionally." "$LINENO" 5 29023fi 29024if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then 29025 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined. 29026Usually this means the macro was only invoked conditionally." "$LINENO" 5 29027fi 29028if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then 29029 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined. 29030Usually this means the macro was only invoked conditionally." "$LINENO" 5 29031fi 29032if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then 29033 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined. 29034Usually this means the macro was only invoked conditionally." "$LINENO" 5 29035fi 29036if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then 29037 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined. 29038Usually this means the macro was only invoked conditionally." "$LINENO" 5 29039fi 29040if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then 29041 as_fn_error $? "conditional \"MODULE_GRP\" was never defined. 29042Usually this means the macro was only invoked conditionally." "$LINENO" 5 29043fi 29044if test -z "${MODULE_OSSAUDIODEV_TRUE}" && test -z "${MODULE_OSSAUDIODEV_FALSE}"; then 29045 as_fn_error $? "conditional \"MODULE_OSSAUDIODEV\" was never defined. 29046Usually this means the macro was only invoked conditionally." "$LINENO" 5 29047fi 29048if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then 29049 as_fn_error $? "conditional \"MODULE_PWD\" was never defined. 29050Usually this means the macro was only invoked conditionally." "$LINENO" 5 29051fi 29052if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then 29053 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined. 29054Usually this means the macro was only invoked conditionally." "$LINENO" 5 29055fi 29056if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then 29057 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined. 29058Usually this means the macro was only invoked conditionally." "$LINENO" 5 29059fi 29060if test -z "${MODULE_SPWD_TRUE}" && test -z "${MODULE_SPWD_FALSE}"; then 29061 as_fn_error $? "conditional \"MODULE_SPWD\" was never defined. 29062Usually this means the macro was only invoked conditionally." "$LINENO" 5 29063fi 29064if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then 29065 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined. 29066Usually this means the macro was only invoked conditionally." "$LINENO" 5 29067fi 29068if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then 29069 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined. 29070Usually this means the macro was only invoked conditionally." "$LINENO" 5 29071fi 29072if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then 29073 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined. 29074Usually this means the macro was only invoked conditionally." "$LINENO" 5 29075fi 29076if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then 29077 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined. 29078Usually this means the macro was only invoked conditionally." "$LINENO" 5 29079fi 29080if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then 29081 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined. 29082Usually this means the macro was only invoked conditionally." "$LINENO" 5 29083fi 29084if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then 29085 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined. 29086Usually this means the macro was only invoked conditionally." "$LINENO" 5 29087fi 29088if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then 29089 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined. 29090Usually this means the macro was only invoked conditionally." "$LINENO" 5 29091fi 29092if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then 29093 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined. 29094Usually this means the macro was only invoked conditionally." "$LINENO" 5 29095fi 29096if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then 29097 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined. 29098Usually this means the macro was only invoked conditionally." "$LINENO" 5 29099fi 29100if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then 29101 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined. 29102Usually this means the macro was only invoked conditionally." "$LINENO" 5 29103fi 29104if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then 29105 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined. 29106Usually this means the macro was only invoked conditionally." "$LINENO" 5 29107fi 29108if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then 29109 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined. 29110Usually this means the macro was only invoked conditionally." "$LINENO" 5 29111fi 29112if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then 29113 as_fn_error $? "conditional \"MODULE__MD5\" was never defined. 29114Usually this means the macro was only invoked conditionally." "$LINENO" 5 29115fi 29116if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then 29117 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined. 29118Usually this means the macro was only invoked conditionally." "$LINENO" 5 29119fi 29120if test -z "${MODULE__SHA256_TRUE}" && test -z "${MODULE__SHA256_FALSE}"; then 29121 as_fn_error $? "conditional \"MODULE__SHA256\" was never defined. 29122Usually this means the macro was only invoked conditionally." "$LINENO" 5 29123fi 29124if test -z "${MODULE__SHA512_TRUE}" && test -z "${MODULE__SHA512_FALSE}"; then 29125 as_fn_error $? "conditional \"MODULE__SHA512\" was never defined. 29126Usually this means the macro was only invoked conditionally." "$LINENO" 5 29127fi 29128if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then 29129 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined. 29130Usually this means the macro was only invoked conditionally." "$LINENO" 5 29131fi 29132if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then 29133 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined. 29134Usually this means the macro was only invoked conditionally." "$LINENO" 5 29135fi 29136if test -z "${MODULE__CRYPT_TRUE}" && test -z "${MODULE__CRYPT_FALSE}"; then 29137 as_fn_error $? "conditional \"MODULE__CRYPT\" was never defined. 29138Usually this means the macro was only invoked conditionally." "$LINENO" 5 29139fi 29140if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then 29141 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined. 29142Usually this means the macro was only invoked conditionally." "$LINENO" 5 29143fi 29144if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then 29145 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined. 29146Usually this means the macro was only invoked conditionally." "$LINENO" 5 29147fi 29148if test -z "${MODULE_NIS_TRUE}" && test -z "${MODULE_NIS_FALSE}"; then 29149 as_fn_error $? "conditional \"MODULE_NIS\" was never defined. 29150Usually this means the macro was only invoked conditionally." "$LINENO" 5 29151fi 29152if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then 29153 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined. 29154Usually this means the macro was only invoked conditionally." "$LINENO" 5 29155fi 29156if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then 29157 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined. 29158Usually this means the macro was only invoked conditionally." "$LINENO" 5 29159fi 29160if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then 29161 as_fn_error $? "conditional \"MODULE__UUID\" was never defined. 29162Usually this means the macro was only invoked conditionally." "$LINENO" 5 29163fi 29164if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then 29165 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined. 29166Usually this means the macro was only invoked conditionally." "$LINENO" 5 29167fi 29168if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then 29169 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined. 29170Usually this means the macro was only invoked conditionally." "$LINENO" 5 29171fi 29172if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then 29173 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined. 29174Usually this means the macro was only invoked conditionally." "$LINENO" 5 29175fi 29176if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then 29177 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined. 29178Usually this means the macro was only invoked conditionally." "$LINENO" 5 29179fi 29180if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then 29181 as_fn_error $? "conditional \"MODULE__SSL\" was never defined. 29182Usually this means the macro was only invoked conditionally." "$LINENO" 5 29183fi 29184if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then 29185 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined. 29186Usually this means the macro was only invoked conditionally." "$LINENO" 5 29187fi 29188if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then 29189 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined. 29190Usually this means the macro was only invoked conditionally." "$LINENO" 5 29191fi 29192if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then 29193 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined. 29194Usually this means the macro was only invoked conditionally." "$LINENO" 5 29195fi 29196if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then 29197 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined. 29198Usually this means the macro was only invoked conditionally." "$LINENO" 5 29199fi 29200if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then 29201 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined. 29202Usually this means the macro was only invoked conditionally." "$LINENO" 5 29203fi 29204if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then 29205 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined. 29206Usually this means the macro was only invoked conditionally." "$LINENO" 5 29207fi 29208if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then 29209 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined. 29210Usually this means the macro was only invoked conditionally." "$LINENO" 5 29211fi 29212if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then 29213 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined. 29214Usually this means the macro was only invoked conditionally." "$LINENO" 5 29215fi 29216if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then 29217 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined. 29218Usually this means the macro was only invoked conditionally." "$LINENO" 5 29219fi 29220if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then 29221 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined. 29222Usually this means the macro was only invoked conditionally." "$LINENO" 5 29223fi 29224if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then 29225 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined. 29226Usually this means the macro was only invoked conditionally." "$LINENO" 5 29227fi 29228 29229: "${CONFIG_STATUS=./config.status}" 29230ac_write_fail=0 29231ac_clean_files_save=$ac_clean_files 29232ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29234printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 29235as_write_fail=0 29236cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29237#! $SHELL 29238# Generated by $as_me. 29239# Run this file to recreate the current configuration. 29240# Compiler output produced by configure, useful for debugging 29241# configure, is in config.log if it exists. 29242 29243debug=false 29244ac_cs_recheck=false 29245ac_cs_silent=false 29246 29247SHELL=\${CONFIG_SHELL-$SHELL} 29248export SHELL 29249_ASEOF 29250cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29251## -------------------- ## 29252## M4sh Initialization. ## 29253## -------------------- ## 29254 29255# Be more Bourne compatible 29256DUALCASE=1; export DUALCASE # for MKS sh 29257as_nop=: 29258if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 29259then : 29260 emulate sh 29261 NULLCMD=: 29262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29263 # is contrary to our usage. Disable this feature. 29264 alias -g '${1+"$@"}'='"$@"' 29265 setopt NO_GLOB_SUBST 29266else $as_nop 29267 case `(set -o) 2>/dev/null` in #( 29268 *posix*) : 29269 set -o posix ;; #( 29270 *) : 29271 ;; 29272esac 29273fi 29274 29275 29276 29277# Reset variables that may have inherited troublesome values from 29278# the environment. 29279 29280# IFS needs to be set, to space, tab, and newline, in precisely that order. 29281# (If _AS_PATH_WALK were called with IFS unset, it would have the 29282# side effect of setting IFS to empty, thus disabling word splitting.) 29283# Quoting is to prevent editors from complaining about space-tab. 29284as_nl=' 29285' 29286export as_nl 29287IFS=" "" $as_nl" 29288 29289PS1='$ ' 29290PS2='> ' 29291PS4='+ ' 29292 29293# Ensure predictable behavior from utilities with locale-dependent output. 29294LC_ALL=C 29295export LC_ALL 29296LANGUAGE=C 29297export LANGUAGE 29298 29299# We cannot yet rely on "unset" to work, but we need these variables 29300# to be unset--not just set to an empty or harmless value--now, to 29301# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 29302# also avoids known problems related to "unset" and subshell syntax 29303# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 29304for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 29305do eval test \${$as_var+y} \ 29306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29307done 29308 29309# Ensure that fds 0, 1, and 2 are open. 29310if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 29311if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 29312if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 29313 29314# The user is always right. 29315if ${PATH_SEPARATOR+false} :; then 29316 PATH_SEPARATOR=: 29317 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29318 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29319 PATH_SEPARATOR=';' 29320 } 29321fi 29322 29323 29324# Find who we are. Look in the path if we contain no directory separator. 29325as_myself= 29326case $0 in #(( 29327 *[\\/]* ) as_myself=$0 ;; 29328 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29329for as_dir in $PATH 29330do 29331 IFS=$as_save_IFS 29332 case $as_dir in #((( 29333 '') as_dir=./ ;; 29334 */) ;; 29335 *) as_dir=$as_dir/ ;; 29336 esac 29337 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 29338 done 29339IFS=$as_save_IFS 29340 29341 ;; 29342esac 29343# We did not find ourselves, most probably we were run as `sh COMMAND' 29344# in which case we are not to be found in the path. 29345if test "x$as_myself" = x; then 29346 as_myself=$0 29347fi 29348if test ! -f "$as_myself"; then 29349 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29350 exit 1 29351fi 29352 29353 29354 29355# as_fn_error STATUS ERROR [LINENO LOG_FD] 29356# ---------------------------------------- 29357# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29358# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29359# script with STATUS, using 1 if that was 0. 29360as_fn_error () 29361{ 29362 as_status=$1; test $as_status -eq 0 && as_status=1 29363 if test "$4"; then 29364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 29366 fi 29367 printf "%s\n" "$as_me: error: $2" >&2 29368 as_fn_exit $as_status 29369} # as_fn_error 29370 29371 29372 29373# as_fn_set_status STATUS 29374# ----------------------- 29375# Set $? to STATUS, without forking. 29376as_fn_set_status () 29377{ 29378 return $1 29379} # as_fn_set_status 29380 29381# as_fn_exit STATUS 29382# ----------------- 29383# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29384as_fn_exit () 29385{ 29386 set +e 29387 as_fn_set_status $1 29388 exit $1 29389} # as_fn_exit 29390 29391# as_fn_unset VAR 29392# --------------- 29393# Portably unset VAR. 29394as_fn_unset () 29395{ 29396 { eval $1=; unset $1;} 29397} 29398as_unset=as_fn_unset 29399 29400# as_fn_append VAR VALUE 29401# ---------------------- 29402# Append the text in VALUE to the end of the definition contained in VAR. Take 29403# advantage of any shell optimizations that allow amortized linear growth over 29404# repeated appends, instead of the typical quadratic growth present in naive 29405# implementations. 29406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 29407then : 29408 eval 'as_fn_append () 29409 { 29410 eval $1+=\$2 29411 }' 29412else $as_nop 29413 as_fn_append () 29414 { 29415 eval $1=\$$1\$2 29416 } 29417fi # as_fn_append 29418 29419# as_fn_arith ARG... 29420# ------------------ 29421# Perform arithmetic evaluation on the ARGs, and store the result in the 29422# global $as_val. Take advantage of shells that can avoid forks. The arguments 29423# must be portable across $(()) and expr. 29424if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 29425then : 29426 eval 'as_fn_arith () 29427 { 29428 as_val=$(( $* )) 29429 }' 29430else $as_nop 29431 as_fn_arith () 29432 { 29433 as_val=`expr "$@" || test $? -eq 1` 29434 } 29435fi # as_fn_arith 29436 29437 29438if expr a : '\(a\)' >/dev/null 2>&1 && 29439 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29440 as_expr=expr 29441else 29442 as_expr=false 29443fi 29444 29445if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29446 as_basename=basename 29447else 29448 as_basename=false 29449fi 29450 29451if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29452 as_dirname=dirname 29453else 29454 as_dirname=false 29455fi 29456 29457as_me=`$as_basename -- "$0" || 29458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29459 X"$0" : 'X\(//\)$' \| \ 29460 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29461printf "%s\n" X/"$0" | 29462 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29463 s//\1/ 29464 q 29465 } 29466 /^X\/\(\/\/\)$/{ 29467 s//\1/ 29468 q 29469 } 29470 /^X\/\(\/\).*/{ 29471 s//\1/ 29472 q 29473 } 29474 s/.*/./; q'` 29475 29476# Avoid depending upon Character Ranges. 29477as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29479as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29480as_cr_digits='0123456789' 29481as_cr_alnum=$as_cr_Letters$as_cr_digits 29482 29483 29484# Determine whether it's possible to make 'echo' print without a newline. 29485# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 29486# for compatibility with existing Makefiles. 29487ECHO_C= ECHO_N= ECHO_T= 29488case `echo -n x` in #((((( 29489-n*) 29490 case `echo 'xy\c'` in 29491 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29492 xy) ECHO_C='\c';; 29493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29494 ECHO_T=' ';; 29495 esac;; 29496*) 29497 ECHO_N='-n';; 29498esac 29499 29500# For backward compatibility with old third-party macros, we provide 29501# the shell variables $as_echo and $as_echo_n. New code should use 29502# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 29503as_echo='printf %s\n' 29504as_echo_n='printf %s' 29505 29506rm -f conf$$ conf$$.exe conf$$.file 29507if test -d conf$$.dir; then 29508 rm -f conf$$.dir/conf$$.file 29509else 29510 rm -f conf$$.dir 29511 mkdir conf$$.dir 2>/dev/null 29512fi 29513if (echo >conf$$.file) 2>/dev/null; then 29514 if ln -s conf$$.file conf$$ 2>/dev/null; then 29515 as_ln_s='ln -s' 29516 # ... but there are two gotchas: 29517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29519 # In both cases, we have to default to `cp -pR'. 29520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29521 as_ln_s='cp -pR' 29522 elif ln conf$$.file conf$$ 2>/dev/null; then 29523 as_ln_s=ln 29524 else 29525 as_ln_s='cp -pR' 29526 fi 29527else 29528 as_ln_s='cp -pR' 29529fi 29530rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29531rmdir conf$$.dir 2>/dev/null 29532 29533 29534# as_fn_mkdir_p 29535# ------------- 29536# Create "$as_dir" as a directory, including parents if necessary. 29537as_fn_mkdir_p () 29538{ 29539 29540 case $as_dir in #( 29541 -*) as_dir=./$as_dir;; 29542 esac 29543 test -d "$as_dir" || eval $as_mkdir_p || { 29544 as_dirs= 29545 while :; do 29546 case $as_dir in #( 29547 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29548 *) as_qdir=$as_dir;; 29549 esac 29550 as_dirs="'$as_qdir' $as_dirs" 29551 as_dir=`$as_dirname -- "$as_dir" || 29552$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29553 X"$as_dir" : 'X\(//\)[^/]' \| \ 29554 X"$as_dir" : 'X\(//\)$' \| \ 29555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29556printf "%s\n" X"$as_dir" | 29557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29558 s//\1/ 29559 q 29560 } 29561 /^X\(\/\/\)[^/].*/{ 29562 s//\1/ 29563 q 29564 } 29565 /^X\(\/\/\)$/{ 29566 s//\1/ 29567 q 29568 } 29569 /^X\(\/\).*/{ 29570 s//\1/ 29571 q 29572 } 29573 s/.*/./; q'` 29574 test -d "$as_dir" && break 29575 done 29576 test -z "$as_dirs" || eval "mkdir $as_dirs" 29577 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 29578 29579 29580} # as_fn_mkdir_p 29581if mkdir -p . 2>/dev/null; then 29582 as_mkdir_p='mkdir -p "$as_dir"' 29583else 29584 test -d ./-p && rmdir ./-p 29585 as_mkdir_p=false 29586fi 29587 29588 29589# as_fn_executable_p FILE 29590# ----------------------- 29591# Test if FILE is an executable regular file. 29592as_fn_executable_p () 29593{ 29594 test -f "$1" && test -x "$1" 29595} # as_fn_executable_p 29596as_test_x='test -x' 29597as_executable_p=as_fn_executable_p 29598 29599# Sed expression to map a string onto a valid CPP name. 29600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29601 29602# Sed expression to map a string onto a valid variable name. 29603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29604 29605 29606exec 6>&1 29607## ----------------------------------- ## 29608## Main body of $CONFIG_STATUS script. ## 29609## ----------------------------------- ## 29610_ASEOF 29611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29612 29613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29614# Save the log message, to keep $0 and so on meaningful, and to 29615# report actual input values of CONFIG_FILES etc. instead of their 29616# values after options handling. 29617ac_log=" 29618This file was extended by python $as_me 3.11, which was 29619generated by GNU Autoconf 2.71. Invocation command line was 29620 29621 CONFIG_FILES = $CONFIG_FILES 29622 CONFIG_HEADERS = $CONFIG_HEADERS 29623 CONFIG_LINKS = $CONFIG_LINKS 29624 CONFIG_COMMANDS = $CONFIG_COMMANDS 29625 $ $0 $@ 29626 29627on `(hostname || uname -n) 2>/dev/null | sed 1q` 29628" 29629 29630_ACEOF 29631 29632case $ac_config_files in *" 29633"*) set x $ac_config_files; shift; ac_config_files=$*;; 29634esac 29635 29636case $ac_config_headers in *" 29637"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29638esac 29639 29640 29641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29642# Files that config.status was made for. 29643config_files="$ac_config_files" 29644config_headers="$ac_config_headers" 29645 29646_ACEOF 29647 29648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29649ac_cs_usage="\ 29650\`$as_me' instantiates files and other configuration actions 29651from templates according to the current configuration. Unless the files 29652and actions are specified as TAGs, all are instantiated by default. 29653 29654Usage: $0 [OPTION]... [TAG]... 29655 29656 -h, --help print this help, then exit 29657 -V, --version print version number and configuration settings, then exit 29658 --config print configuration, then exit 29659 -q, --quiet, --silent 29660 do not print progress messages 29661 -d, --debug don't remove temporary files 29662 --recheck update $as_me by reconfiguring in the same conditions 29663 --file=FILE[:TEMPLATE] 29664 instantiate the configuration file FILE 29665 --header=FILE[:TEMPLATE] 29666 instantiate the configuration header FILE 29667 29668Configuration files: 29669$config_files 29670 29671Configuration headers: 29672$config_headers 29673 29674Report bugs to <https://github.com/python/cpython/issues/>." 29675 29676_ACEOF 29677ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 29678ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 29679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29680ac_cs_config='$ac_cs_config_escaped' 29681ac_cs_version="\\ 29682python config.status 3.11 29683configured by $0, generated by GNU Autoconf 2.71, 29684 with options \\"\$ac_cs_config\\" 29685 29686Copyright (C) 2021 Free Software Foundation, Inc. 29687This config.status script is free software; the Free Software Foundation 29688gives unlimited permission to copy, distribute and modify it." 29689 29690ac_pwd='$ac_pwd' 29691srcdir='$srcdir' 29692INSTALL='$INSTALL' 29693MKDIR_P='$MKDIR_P' 29694test -n "\$AWK" || AWK=awk 29695_ACEOF 29696 29697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29698# The default lists apply if the user does not specify any file. 29699ac_need_defaults=: 29700while test $# != 0 29701do 29702 case $1 in 29703 --*=?*) 29704 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29706 ac_shift=: 29707 ;; 29708 --*=) 29709 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29710 ac_optarg= 29711 ac_shift=: 29712 ;; 29713 *) 29714 ac_option=$1 29715 ac_optarg=$2 29716 ac_shift=shift 29717 ;; 29718 esac 29719 29720 case $ac_option in 29721 # Handling of the options. 29722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29723 ac_cs_recheck=: ;; 29724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29725 printf "%s\n" "$ac_cs_version"; exit ;; 29726 --config | --confi | --conf | --con | --co | --c ) 29727 printf "%s\n" "$ac_cs_config"; exit ;; 29728 --debug | --debu | --deb | --de | --d | -d ) 29729 debug=: ;; 29730 --file | --fil | --fi | --f ) 29731 $ac_shift 29732 case $ac_optarg in 29733 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29734 '') as_fn_error $? "missing file argument" ;; 29735 esac 29736 as_fn_append CONFIG_FILES " '$ac_optarg'" 29737 ac_need_defaults=false;; 29738 --header | --heade | --head | --hea ) 29739 $ac_shift 29740 case $ac_optarg in 29741 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29742 esac 29743 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 29744 ac_need_defaults=false;; 29745 --he | --h) 29746 # Conflict between --help and --header 29747 as_fn_error $? "ambiguous option: \`$1' 29748Try \`$0 --help' for more information.";; 29749 --help | --hel | -h ) 29750 printf "%s\n" "$ac_cs_usage"; exit ;; 29751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29752 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29753 ac_cs_silent=: ;; 29754 29755 # This is an error. 29756 -*) as_fn_error $? "unrecognized option: \`$1' 29757Try \`$0 --help' for more information." ;; 29758 29759 *) as_fn_append ac_config_targets " $1" 29760 ac_need_defaults=false ;; 29761 29762 esac 29763 shift 29764done 29765 29766ac_configure_extra_args= 29767 29768if $ac_cs_silent; then 29769 exec 6>/dev/null 29770 ac_configure_extra_args="$ac_configure_extra_args --silent" 29771fi 29772 29773_ACEOF 29774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29775if \$ac_cs_recheck; then 29776 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29777 shift 29778 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 29779 CONFIG_SHELL='$SHELL' 29780 export CONFIG_SHELL 29781 exec "\$@" 29782fi 29783 29784_ACEOF 29785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29786exec 5>>config.log 29787{ 29788 echo 29789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29790## Running $as_me. ## 29791_ASBOX 29792 printf "%s\n" "$ac_log" 29793} >&5 29794 29795_ACEOF 29796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29797_ACEOF 29798 29799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29800 29801# Handling of arguments. 29802for ac_config_target in $ac_config_targets 29803do 29804 case $ac_config_target in 29805 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 29806 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 29807 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 29808 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 29809 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 29810 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 29811 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 29812 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; 29813 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 29814 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;; 29815 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;; 29816 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 29817 29818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 29819 esac 29820done 29821 29822 29823# If the user did not use the arguments to specify the items to instantiate, 29824# then the envvar interface is used. Set only those that are not. 29825# We use the long form for the default assignment because of an extremely 29826# bizarre bug on SunOS 4.1.3. 29827if $ac_need_defaults; then 29828 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 29829 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 29830fi 29831 29832# Have a temporary directory for convenience. Make it in the build tree 29833# simply because there is no reason against having it here, and in addition, 29834# creating and moving files from /tmp can sometimes cause problems. 29835# Hook for its removal unless debugging. 29836# Note that there is a small window in which the directory will not be cleaned: 29837# after its creation but before its name has been assigned to `$tmp'. 29838$debug || 29839{ 29840 tmp= ac_tmp= 29841 trap 'exit_status=$? 29842 : "${ac_tmp:=$tmp}" 29843 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 29844' 0 29845 trap 'as_fn_exit 1' 1 2 13 15 29846} 29847# Create a (secure) tmp directory for tmp files. 29848 29849{ 29850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29851 test -d "$tmp" 29852} || 29853{ 29854 tmp=./conf$$-$RANDOM 29855 (umask 077 && mkdir "$tmp") 29856} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 29857ac_tmp=$tmp 29858 29859# Set up the scripts for CONFIG_FILES section. 29860# No need to generate them if there are no CONFIG_FILES. 29861# This happens for instance with `./config.status config.h'. 29862if test -n "$CONFIG_FILES"; then 29863 29864 29865ac_cr=`echo X | tr X '\015'` 29866# On cygwin, bash can eat \r inside `` if the user requested igncr. 29867# But we know of no other shell where ac_cr would be empty at this 29868# point, so we can use a bashism as a fallback. 29869if test "x$ac_cr" = x; then 29870 eval ac_cr=\$\'\\r\' 29871fi 29872ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29873if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29874 ac_cs_awk_cr='\\r' 29875else 29876 ac_cs_awk_cr=$ac_cr 29877fi 29878 29879echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 29880_ACEOF 29881 29882 29883{ 29884 echo "cat >conf$$subs.awk <<_ACEOF" && 29885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29886 echo "_ACEOF" 29887} >conf$$subs.sh || 29888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29889ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 29890ac_delim='%!_!# ' 29891for ac_last_try in false false false false false :; do 29892 . ./conf$$subs.sh || 29893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29894 29895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29896 if test $ac_delim_n = $ac_delim_num; then 29897 break 29898 elif $ac_last_try; then 29899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29900 else 29901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29902 fi 29903done 29904rm -f conf$$subs.sh 29905 29906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29907cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 29908_ACEOF 29909sed -n ' 29910h 29911s/^/S["/; s/!.*/"]=/ 29912p 29913g 29914s/^[^!]*!// 29915:repl 29916t repl 29917s/'"$ac_delim"'$// 29918t delim 29919:nl 29920h 29921s/\(.\{148\}\)..*/\1/ 29922t more1 29923s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29924p 29925n 29926b repl 29927:more1 29928s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29929p 29930g 29931s/.\{148\}// 29932t nl 29933:delim 29934h 29935s/\(.\{148\}\)..*/\1/ 29936t more2 29937s/["\\]/\\&/g; s/^/"/; s/$/"/ 29938p 29939b 29940:more2 29941s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29942p 29943g 29944s/.\{148\}// 29945t delim 29946' <conf$$subs.awk | sed ' 29947/^[^""]/{ 29948 N 29949 s/\n// 29950} 29951' >>$CONFIG_STATUS || ac_write_fail=1 29952rm -f conf$$subs.awk 29953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29954_ACAWK 29955cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 29956 for (key in S) S_is_set[key] = 1 29957 FS = "" 29958 29959} 29960{ 29961 line = $ 0 29962 nfields = split(line, field, "@") 29963 substed = 0 29964 len = length(field[1]) 29965 for (i = 2; i < nfields; i++) { 29966 key = field[i] 29967 keylen = length(key) 29968 if (S_is_set[key]) { 29969 value = S[key] 29970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29971 len += length(value) + length(field[++i]) 29972 substed = 1 29973 } else 29974 len += 1 + keylen 29975 } 29976 29977 print line 29978} 29979 29980_ACAWK 29981_ACEOF 29982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29983if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29985else 29986 cat 29987fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 29988 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 29989_ACEOF 29990 29991# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 29992# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 29993# trailing colons and then remove the whole line if VPATH becomes empty 29994# (actually we leave an empty line to preserve line numbers). 29995if test "x$srcdir" = x.; then 29996 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 29997h 29998s/// 29999s/^/:/ 30000s/[ ]*$/:/ 30001s/:\$(srcdir):/:/g 30002s/:\${srcdir}:/:/g 30003s/:@srcdir@:/:/g 30004s/^:*// 30005s/:*$// 30006x 30007s/\(=[ ]*\).*/\1/ 30008G 30009s/\n// 30010s/^[^=]*=[ ]*$// 30011}' 30012fi 30013 30014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30015fi # test -n "$CONFIG_FILES" 30016 30017# Set up the scripts for CONFIG_HEADERS section. 30018# No need to generate them if there are no CONFIG_HEADERS. 30019# This happens for instance with `./config.status Makefile'. 30020if test -n "$CONFIG_HEADERS"; then 30021cat >"$ac_tmp/defines.awk" <<\_ACAWK || 30022BEGIN { 30023_ACEOF 30024 30025# Transform confdefs.h into an awk script `defines.awk', embedded as 30026# here-document in config.status, that substitutes the proper values into 30027# config.h.in to produce config.h. 30028 30029# Create a delimiter string that does not exist in confdefs.h, to ease 30030# handling of long lines. 30031ac_delim='%!_!# ' 30032for ac_last_try in false false :; do 30033 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 30034 if test -z "$ac_tt"; then 30035 break 30036 elif $ac_last_try; then 30037 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 30038 else 30039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30040 fi 30041done 30042 30043# For the awk script, D is an array of macro values keyed by name, 30044# likewise P contains macro parameters if any. Preserve backslash 30045# newline sequences. 30046 30047ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30048sed -n ' 30049s/.\{148\}/&'"$ac_delim"'/g 30050t rset 30051:rset 30052s/^[ ]*#[ ]*define[ ][ ]*/ / 30053t def 30054d 30055:def 30056s/\\$// 30057t bsnl 30058s/["\\]/\\&/g 30059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30060D["\1"]=" \3"/p 30061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30062d 30063:bsnl 30064s/["\\]/\\&/g 30065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30066D["\1"]=" \3\\\\\\n"\\/p 30067t cont 30068s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30069t cont 30070d 30071:cont 30072n 30073s/.\{148\}/&'"$ac_delim"'/g 30074t clear 30075:clear 30076s/\\$// 30077t bsnlc 30078s/["\\]/\\&/g; s/^/"/; s/$/"/p 30079d 30080:bsnlc 30081s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30082b cont 30083' <confdefs.h | sed ' 30084s/'"$ac_delim"'/"\\\ 30085"/g' >>$CONFIG_STATUS || ac_write_fail=1 30086 30087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30088 for (key in D) D_is_set[key] = 1 30089 FS = "" 30090} 30091/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30092 line = \$ 0 30093 split(line, arg, " ") 30094 if (arg[1] == "#") { 30095 defundef = arg[2] 30096 mac1 = arg[3] 30097 } else { 30098 defundef = substr(arg[1], 2) 30099 mac1 = arg[2] 30100 } 30101 split(mac1, mac2, "(") #) 30102 macro = mac2[1] 30103 prefix = substr(line, 1, index(line, defundef) - 1) 30104 if (D_is_set[macro]) { 30105 # Preserve the white space surrounding the "#". 30106 print prefix "define", macro P[macro] D[macro] 30107 next 30108 } else { 30109 # Replace #undef with comments. This is necessary, for example, 30110 # in the case of _POSIX_SOURCE, which is predefined and required 30111 # on some systems where configure will not decide to define it. 30112 if (defundef == "undef") { 30113 print "/*", prefix defundef, macro, "*/" 30114 next 30115 } 30116 } 30117} 30118{ print } 30119_ACAWK 30120_ACEOF 30121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30122 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 30123fi # test -n "$CONFIG_HEADERS" 30124 30125 30126eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 30127shift 30128for ac_tag 30129do 30130 case $ac_tag in 30131 :[FHLC]) ac_mode=$ac_tag; continue;; 30132 esac 30133 case $ac_mode$ac_tag in 30134 :[FHL]*:*);; 30135 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 30136 :[FH]-) ac_tag=-:-;; 30137 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30138 esac 30139 ac_save_IFS=$IFS 30140 IFS=: 30141 set x $ac_tag 30142 IFS=$ac_save_IFS 30143 shift 30144 ac_file=$1 30145 shift 30146 30147 case $ac_mode in 30148 :L) ac_source=$1;; 30149 :[FH]) 30150 ac_file_inputs= 30151 for ac_f 30152 do 30153 case $ac_f in 30154 -) ac_f="$ac_tmp/stdin";; 30155 *) # Look for the file first in the build tree, then in the source tree 30156 # (if the path is not absolute). The absolute path cannot be DOS-style, 30157 # because $ac_f cannot contain `:'. 30158 test -f "$ac_f" || 30159 case $ac_f in 30160 [\\/$]*) false;; 30161 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30162 esac || 30163 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30164 esac 30165 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30166 as_fn_append ac_file_inputs " '$ac_f'" 30167 done 30168 30169 # Let's still pretend it is `configure' which instantiates (i.e., don't 30170 # use $as_me), people would be surprised to read: 30171 # /* config.h. Generated by config.status. */ 30172 configure_input='Generated from '` 30173 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30174 `' by configure.' 30175 if test x"$ac_file" != x-; then 30176 configure_input="$ac_file. $configure_input" 30177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30178printf "%s\n" "$as_me: creating $ac_file" >&6;} 30179 fi 30180 # Neutralize special characters interpreted by sed in replacement strings. 30181 case $configure_input in #( 30182 *\&* | *\|* | *\\* ) 30183 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 30184 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30185 *) ac_sed_conf_input=$configure_input;; 30186 esac 30187 30188 case $ac_tag in 30189 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 30190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 30191 esac 30192 ;; 30193 esac 30194 30195 ac_dir=`$as_dirname -- "$ac_file" || 30196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30197 X"$ac_file" : 'X\(//\)[^/]' \| \ 30198 X"$ac_file" : 'X\(//\)$' \| \ 30199 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30200printf "%s\n" X"$ac_file" | 30201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30202 s//\1/ 30203 q 30204 } 30205 /^X\(\/\/\)[^/].*/{ 30206 s//\1/ 30207 q 30208 } 30209 /^X\(\/\/\)$/{ 30210 s//\1/ 30211 q 30212 } 30213 /^X\(\/\).*/{ 30214 s//\1/ 30215 q 30216 } 30217 s/.*/./; q'` 30218 as_dir="$ac_dir"; as_fn_mkdir_p 30219 ac_builddir=. 30220 30221case "$ac_dir" in 30222.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30223*) 30224 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 30225 # A ".." for each directory in $ac_dir_suffix. 30226 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30227 case $ac_top_builddir_sub in 30228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30230 esac ;; 30231esac 30232ac_abs_top_builddir=$ac_pwd 30233ac_abs_builddir=$ac_pwd$ac_dir_suffix 30234# for backward compatibility: 30235ac_top_builddir=$ac_top_build_prefix 30236 30237case $srcdir in 30238 .) # We are building in place. 30239 ac_srcdir=. 30240 ac_top_srcdir=$ac_top_builddir_sub 30241 ac_abs_top_srcdir=$ac_pwd ;; 30242 [\\/]* | ?:[\\/]* ) # Absolute name. 30243 ac_srcdir=$srcdir$ac_dir_suffix; 30244 ac_top_srcdir=$srcdir 30245 ac_abs_top_srcdir=$srcdir ;; 30246 *) # Relative name. 30247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30248 ac_top_srcdir=$ac_top_build_prefix$srcdir 30249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30250esac 30251ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30252 30253 30254 case $ac_mode in 30255 :F) 30256 # 30257 # CONFIG_FILE 30258 # 30259 30260 case $INSTALL in 30261 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30262 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30263 esac 30264 ac_MKDIR_P=$MKDIR_P 30265 case $MKDIR_P in 30266 [\\/$]* | ?:[\\/]* ) ;; 30267 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30268 esac 30269_ACEOF 30270 30271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30272# If the template does not know about datarootdir, expand it. 30273# FIXME: This hack should be removed a few years after 2.60. 30274ac_datarootdir_hack=; ac_datarootdir_seen= 30275ac_sed_dataroot=' 30276/datarootdir/ { 30277 p 30278 q 30279} 30280/@datadir@/p 30281/@docdir@/p 30282/@infodir@/p 30283/@localedir@/p 30284/@mandir@/p' 30285case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30286*datarootdir*) ac_datarootdir_seen=yes;; 30287*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30289printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30290_ACEOF 30291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30292 ac_datarootdir_hack=' 30293 s&@datadir@&$datadir&g 30294 s&@docdir@&$docdir&g 30295 s&@infodir@&$infodir&g 30296 s&@localedir@&$localedir&g 30297 s&@mandir@&$mandir&g 30298 s&\\\${datarootdir}&$datarootdir&g' ;; 30299esac 30300_ACEOF 30301 30302# Neutralize VPATH when `$srcdir' = `.'. 30303# Shell code in configure.ac might set extrasub. 30304# FIXME: do we really want to maintain this feature? 30305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30306ac_sed_extra="$ac_vpsub 30307$extrasub 30308_ACEOF 30309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30310:t 30311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30312s|@configure_input@|$ac_sed_conf_input|;t t 30313s&@top_builddir@&$ac_top_builddir_sub&;t t 30314s&@top_build_prefix@&$ac_top_build_prefix&;t t 30315s&@srcdir@&$ac_srcdir&;t t 30316s&@abs_srcdir@&$ac_abs_srcdir&;t t 30317s&@top_srcdir@&$ac_top_srcdir&;t t 30318s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30319s&@builddir@&$ac_builddir&;t t 30320s&@abs_builddir@&$ac_abs_builddir&;t t 30321s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30322s&@INSTALL@&$ac_INSTALL&;t t 30323s&@MKDIR_P@&$ac_MKDIR_P&;t t 30324$ac_datarootdir_hack 30325" 30326eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 30327 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30328 30329test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30330 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 30331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 30332 "$ac_tmp/out"`; test -z "$ac_out"; } && 30333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30334which seems to be undefined. Please make sure it is defined" >&5 30335printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30336which seems to be undefined. Please make sure it is defined" >&2;} 30337 30338 rm -f "$ac_tmp/stdin" 30339 case $ac_file in 30340 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 30341 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 30342 esac \ 30343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30344 ;; 30345 :H) 30346 # 30347 # CONFIG_HEADER 30348 # 30349 if test x"$ac_file" != x-; then 30350 { 30351 printf "%s\n" "/* $configure_input */" >&1 \ 30352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 30353 } >"$ac_tmp/config.h" \ 30354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30355 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 30356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30357printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 30358 else 30359 rm -f "$ac_file" 30360 mv "$ac_tmp/config.h" "$ac_file" \ 30361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30362 fi 30363 else 30364 printf "%s\n" "/* $configure_input */" >&1 \ 30365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 30366 || as_fn_error $? "could not create -" "$LINENO" 5 30367 fi 30368 ;; 30369 30370 30371 esac 30372 30373 30374 case $ac_file$ac_mode in 30375 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 30376 30377 esac 30378done # for ac_tag 30379 30380 30381as_fn_exit 0 30382_ACEOF 30383ac_clean_files=$ac_clean_files_save 30384 30385test $ac_write_fail = 0 || 30386 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30387 30388 30389# configure is writing to config.log, and then calls config.status. 30390# config.status does its own redirection, appending to config.log. 30391# Unfortunately, on DOS this fails, as config.log is still kept open 30392# by configure, so config.status won't be able to write to it; its 30393# output is simply discarded. So we exec the FD to /dev/null, 30394# effectively closing config.log, so it can be properly (re)opened and 30395# appended to by config.status. When coming back to configure, we 30396# need to make the FD available again. 30397if test "$no_create" != yes; then 30398 ac_cs_success=: 30399 ac_config_status_args= 30400 test "$silent" = yes && 30401 ac_config_status_args="$ac_config_status_args --quiet" 30402 exec 5>/dev/null 30403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30404 exec 5>>config.log 30405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30406 # would make configure fail if this is the last instruction. 30407 $ac_cs_success || as_fn_exit 1 30408fi 30409if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30411printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30412fi 30413 30414 30415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5 30416printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;} 30417if test ! -f Modules/Setup.local 30418then 30419 echo "# Edit this file for local setup changes" >Modules/Setup.local 30420fi 30421 30422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5 30423printf "%s\n" "$as_me: creating Makefile" >&6;} 30424$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 30425 -s Modules \ 30426 Modules/Setup.local $MODULES_SETUP_STDLIB Modules/Setup.bootstrap $srcdir/Modules/Setup 30427mv config.c Modules 30428 30429if test -z "$PKG_CONFIG"; then 30430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5 30431printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;} 30432fi 30433 30434if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 30435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 30436 30437If you want a release build with all stable optimizations active (PGO, etc), 30438please run ./configure --enable-optimizations 30439" >&5 30440printf "%s\n" "$as_me: 30441 30442If you want a release build with all stable optimizations active (PGO, etc), 30443please run ./configure --enable-optimizations 30444" >&6;} 30445fi 30446 30447if test "x$PY_SUPPORT_TIER" = x0 30448then : 30449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 30450 30451Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the 30452CPython core team, see https://peps.python.org/pep-0011/ for more information. 30453" >&5 30454printf "%s\n" "$as_me: WARNING: 30455 30456Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the 30457CPython core team, see https://peps.python.org/pep-0011/ for more information. 30458" >&2;} 30459fi 30460 30461