• Home
  • Raw
  • Download

Lines Matching +full:ipv4 +full:- +full:no +full:- +full:config +full:- +full:for +full:- +full:cpp

2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for python 3.8.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13 ## -------------------- ##
15 ## -------------------- ##
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
29 set -o posix ;; #(
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # there to prevent editors from complaining about space-tab.
91 # Find who we are. Look in the path if we contain no directory separator.
96 for as_dir in $PATH
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 if test ! -f "$as_myself"; then
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 for as_var in BASH_ENV ENV MAIL MAILPATH
138 # into an infinite loop, continuously re-executing ourselves.
140 _as_can_reexec=no; export _as_can_reexec;
142 # neutralization value for shells without unset; and this also
144 # Preserve -v and -x to the replacement shell.
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
173 set -o posix ;; #(
196 test -x / || exit 1"
205 as_have_required=no
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 # neutralization value for shells without unset; and this also
245 # Preserve -v and -x to the replacement shell.
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 SHELL=${CONFIG_SHELL-/bin/sh}
285 ## --------------------- ##
287 ## --------------------- ##
289 # ---------------
298 # -----------------------
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # -------------
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dir=`$as_dirname -- "$as_dir" ||
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 # -----------------------
368 test -f "$1" && test -x "$1"
371 # ----------------------
389 # ------------------
401 as_val=`expr "$@" || test $? -eq 1`
407 # ----------------------------------------
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
478 s/[$]LINENO.*/&-/
486 s/-\n.*//
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 _as_can_reexec=no; export _as_can_reexec
504 case `echo -n x` in #(((((
505 -n*)
513 ECHO_N='-n';;
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
520 rm -f conf$$.dir
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
535 as_ln_s='cp -pR'
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
550 as_test_x='test -x'
553 # Sed expression to map a string onto a valid CPP name.
560 test -n "$DJDIR" || exec 7<&0 </dev/null
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575 cross_compiling=no
589 # Factoring default headers for most tests.
721 CPP
857 CPP
915 for ac_option
918 if test -n "$ac_prev"; then
933 --)
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 -build | --build | --buil | --bui | --bu)
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 --config-cache | -C)
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1023 -help | --help | --hel | --he | -h)
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 -host | --host | --hos | --ho)
1032 -host=* | --host=* | --hos=* | --ho=*)
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 -libdir | --libdir | --libdi | --libd)
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1065 -localedir | --localedir | --localedi | --localed | --locale)
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 -psdir | --psdir | --psdi | --psd | --ps)
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1153 -runstatedir | --runstatedir | --runstatedi | --runstated \
1154 | --runstate | --runstat | --runsta | --runst | --runs \
1155 | --run | --ru | --r)
1157 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159 | --run=* | --ru=* | --r=*)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 eval with_$ac_useropt=no ;;
1239 --x)
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 if test -n "$ac_unrecognized_opts"; then
1289 no) ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # used to hold the argument of --host etc.
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 if test -z "$srcdir"; then
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 # mess up M-x gdb in Emacs.
1398 for ac_var in $ac_precious_vars; do
1406 # Report the --help message.
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-universalsdk[=SDKDIR]
1488 --enable-framework[=INSTALLDIR]
1490 --enable-shared disable/enable building shared python library
1491 --enable-profiling enable C-level code profiling
1492 --enable-optimizations Enable expensive, stable optimizations (PGO, etc).
1494 --enable-loadable-sqlite-extensions
1496 --enable-ipv6 Enable ipv6 (with ipv4) support
1497 --disable-ipv6 Disable ipv6 support
1498 --enable-big-digits[=BITS]
1499 use big digits for Python longs [[BITS=30]]
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-universal-archs=ARCH
1505 select architectures for universal build ("32-bit",
1506 "64-bit", "3-way", "intel", "intel-32", "intel-64",
1508 --with-framework-name=FRAMEWORK
1510 with --enable-framework
1511 --with-cxx-main=<compiler>
1514 --with-suffix=.exe set executable suffix
1515 --with-pydebug build with Py_DEBUG defined
1516 --with-trace-refs enable tracing references for debugging purpose
1517 --with-assertions build with C assertions enabled
1518 --with-lto Enable Link Time Optimization in any build. Disabled
1520 --with-hash-algorithm=[fnv|siphash24]
1522 --with-address-sanitizer
1524 --with-memory-sanitizer enable MemorySanitizer (msan)
1525 --with-undefined-behavior-sanitizer
1527 --with-libs='lib1 ...' link against additional libs
1528 --with-system-expat build pyexpat module using an installed expat
1530 --with-system-ffi build _ctypes module using an installed ffi library
1531 --with-system-libmpdec build _decimal module using an installed libmpdec
1533 --with-decimal-contextvar
1534 build _decimal module using a coroutine-local rather
1535 than a thread-local context (default is yes)
1536 --with-tcltk-includes='-I...'
1537 override search for Tcl and Tk include files
1538 --with-tcltk-libs='-L...'
1539 override search for Tcl and Tk libs
1540 --with-dbmliborder=db1:db2:...
1541 order to check db backends for dbm. Valid value is a
1544 --with(out)-doc-strings disable/enable documentation strings
1545 --with(out)-pymalloc disable/enable specialized mallocs
1546 --with(out)-c-locale-coercion
1547 disable/enable C locale coercion to a UTF-8 based
1549 --with-valgrind Enable Valgrind support
1550 --with(out)-dtrace disable/enable DTrace support
1551 --with-libm=STRING math library
1552 --with-libc=STRING C library
1553 --with(out)-computed-gotos
1556 --with(out)-ensurepip=[=upgrade]
1558 --with-openssl=DIR root of the OpenSSL directory
1559 --with-ssl-default-suites=[python|openssl|STRING]
1566 MACHDEP name for machine-dependent library files
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574 CPP C preprocessor
1576 Python args for PGO generation task
1577 PKG_CONFIG path to pkg-config utility
1579 directories to add to pkg-config's search path
1581 path overriding pkg-config's built-in search path
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 # A ".." for each directory in $ac_dir_suffix.
1612 # for backward compatibility:
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 test -n "$ac_init_help" && exit $ac_status
1659 ## ------------------------ ##
1661 ## ------------------------ ##
1664 # --------------------------
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1702 # ----------------------
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1739 # -----------------------
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1765 test -x conftest$ac_exeext
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 # -------------------------------------------------------
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 ac_header_compiler=no
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 ac_header_preproc=no
1831 rm -f conftest.err conftest.i conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 yes:no: )
1838 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the pr…
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 no:yes:* )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?"…
1847 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled…
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 ( $as_echo "## --------------------------------------- ##
1856 ## --------------------------------------- ##"
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 # ----------------------
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 # -------------------------------------------------------
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 eval "$3=no"
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 # -------------------------------------------
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1960 eval "$3=no"
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 # --------------------------------------------
2004 # Tries to find the compile-time value of EXPR in a program that includes
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 static int test_array [1 - 2 * !(($2) >= 0)];
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 if test $ac_lo -le $ac_mid; then
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 static int test_array [1 - 2 * !(($2) < 0)];
2071 ac_hi=-1 ac_mid=-1
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2091 if test $ac_mid -le $ac_hi; then
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2177 rm -f conftest.val
2186 # ----------------------------------
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2222 /* The GNU C library defines this for functions which it implements
2240 eval "$3=no"
2242 rm -f core conftest.err conftest.$ac_objext \
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 # ---------------------------------------------
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 eval "$3=no"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 # ----------------------------------------------------
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 eval "$4=no"
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 cat >config.log <<_ACEOF
2364 exec 5>>config.log
2367 ## --------- ##
2369 ## --------- ##
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2391 for as_dir in $PATH
2394 test -z "$as_dir" && as_dir=.
2404 ## ----------- ##
2406 ## ----------- ##
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2420 for ac_pass in 1 2
2422 for ac_arg
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2448 -* ) ac_must_keep_next=true ;;
2460 # config.log. We remove comments because anyway the quotes in there
2465 # Save into config.log some information that might help in debugging.
2469 $as_echo "## ---------------- ##
2471 ## ---------------- ##"
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2480 …*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newlin…
2493 sed -n \
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 $as_echo "## ----------------- ##
2507 ## ----------------- ##"
2509 for ac_var in $ac_subst_vars
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2522 ## ------------------- ##"
2524 for ac_var in $ac_subst_files
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2538 ## ----------- ##"
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551 for ac_signal in 1 2 13 15; do
2557 rm -f -r conftest* confdefs.h
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 See \`config.log' for more details" "$LINENO" 5; }
2621 if test -r "$cache_file"; then
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 for ac_var in $ac_precious_vars; do
2648 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previo…
2652 … { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2662 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 …{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since …
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676 # Pass precious variables to config.status.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 …{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the buil…
2695 ## -------------------- ##
2697 ## -------------------- ##
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
2711 # If we're building out-of-tree, we need to make sure the following
2713 # Objects/ -> typeslots.inc
2714 # Include/ -> Python-ast.h, graminit.h
2715 # Python/ -> importlib.h
2717 # regenerated when building out-of-tree, regardless of whether or not
2718 # the $srcdir counterpart is up-to-date. This is an acceptable trade
2720 BASECPPFLAGS="-IObjects -IInclude -IPython"
2729 if test -e $srcdir/.git
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test -n "$HAS_GIT"; then
2742 for as_dir in $PATH
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found"
2760 if test -n "$HAS_GIT"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2770 HAS_GIT=no-repository
2774 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
2775 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
2776 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
2788 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2789 if test -f "$ac_dir/install-sh"; then
2791 ac_install_sh="$ac_aux_dir/install-sh -c"
2793 elif test -f "$ac_dir/install.sh"; then
2795 ac_install_sh="$ac_aux_dir/install.sh -c"
2797 elif test -f "$ac_dir/shtool"; then
2799 ac_install_sh="$ac_aux_dir/shtool install -c"
2803 if test -z "$ac_aux_dir"; then
2804 …as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$src…
2811 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2812 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2816 # Make sure we can run config.sub.
2817 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2818 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2827 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2830 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2837 *-*-*) ;;
2841 ac_save_IFS=$IFS; IFS='-'
2851 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2870 *-*-*) ;;
2874 ac_save_IFS=$IFS; IFS='-'
2884 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2890 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
2891 rm -f pybuilddir.txt
2893 for ac_prog in python$PACKAGE_VERSION python3 python
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test -n "$PYTHON_FOR_REGEN"; then
2906 for as_dir in $PATH
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 if test -n "$PYTHON_FOR_REGEN"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2932 test -n "$PYTHON_FOR_REGEN" && break
2934 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3"
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5
2940 $as_echo_n "checking for python interpreter for cross build... " >&6; }
2941 if test -z "$PYTHON_FOR_BUILD"; then
2942 for interp in python$PACKAGE_VERSION python3 python; do
2944 …if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE…
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5
2954 …dir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && e…
2957 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
2959 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
2965 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2972 # with other autoconf-based packages that include Python.h
2973 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2985 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2991 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2998 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3005 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
3019 $as_echo_n "checking for --enable-universalsdk... " >&6; }
3020 # Check whether --enable-universalsdk was given.
3025 # Locate the best usable SDK, see Mac/README for more
3027 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
3028 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
3031 if test ! -d "${enableval}"
3039 no)
3045 if test ! -d "${UNIVERSALSDK}"
3047 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
3060 if test -n "${UNIVERSALSDK}"
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3073 # For backward compatibility reasons we prefer to select '32-bit' if available,
3075 UNIVERSAL_ARCHS="32-bit"
3076 if test "`uname -s`" = "Darwin"
3078 if test -n "${UNIVERSALSDK}"
3080 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
3089 $as_echo_n "checking for --with-universal-archs... " >&6; }
3091 # Check whether --with-universal-archs was given.
3098 if test -n "${UNIVERSALSDK}"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3108 # Check whether --with-framework-name was given.
3113 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
3123 # Check whether --enable-framework was given.
3131 no)
3133 PYTHONFRAMEWORKDIR=no-framework
3185 # --prefix option, but wants to install
3186 # the framework in a non-default location,
3201 # Add files for Mac specific code to the list of output
3216 PYTHONFRAMEWORKDIR=no-framework
3254 ## AS_HELP_STRING([--with-dyld],
3257 # Set name for machine-dependent library files
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
3261 if test -z "$MACHDEP"
3263 # avoid using uname for cross builds
3265 # ac_sys_system and ac_sys_release are used for setting
3269 *-*-linux-android*)
3270 ac_sys_system=Linux-android
3272 *-*-linux*)
3275 *-*-cygwin*)
3278 *-*-vxworks*)
3282 # for now, limit cross builds to known configurations
3284 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3288 ac_sys_system=`uname -s`
3290 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3291 ac_sys_release=`uname -v`
3293 ac_sys_release=`uname -r`
3297 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
3299 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
3316 *-*-linux*)
3325 *-*-cygwin*)
3328 *-*-vxworks*)
3332 # for now, limit cross builds to known configurations
3334 as_fn_error $? "cross build not supported for $host" "$LINENO" 5
3336 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
3341 # features as extensions. For these systems, we skip the definition of
3343 # some feature, make sure there is no alternative way to access this
3345 # need for not defining _XOPEN_SOURCE on all systems matching the
3351 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3355 define_xopen_source=no
3374 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3375 define_xopen_source=no;;
3379 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3382 define_xopen_source=no;;
3385 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3386 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3387 define_xopen_source=no;;
3391 define_xopen_source=no;;
3398 # has no effect, don't bother defining them
3400 define_xopen_source=no;;
3401 Darwin/[12][0-9].*)
3402 define_xopen_source=no;;
3407 define_xopen_source=no;;
3409 if test `uname -r` -eq 1; then
3410 define_xopen_source=no
3416 define_xopen_source=no
3421 define_xopen_source=no
3424 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
3427 define_xopen_source=no
3434 # X/Open 7, incorporating POSIX.1-2008
3442 # cases for HP-UX, we define it globally.
3452 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
3457 define_stdc_a1=no;;
3467 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3475 # checks for alternative programs
3478 # for debug/optimization stuff. BASECFLAGS is for flags that are required
3484 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3486 as_fn_error $? "cached CC is different -- throw away $cache_file
3490 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
3491 # when the compiler supports them, but we don't always want -O2, and
3492 # we set -g later.
3493 if test -z "$CFLAGS"; then
3500 # AC_PROG_CC can handle, see Mac/README for more
3502 if test -z "${CC}"
3507 for as_dir in $PATH
3510 if test -x "${as_dir}/gcc"; then
3511 if test -z "${found_gcc}"; then
3515 if test -x "${as_dir}/clang"; then
3516 if test -z "${found_clang}"; then
3523 if test -n "$found_gcc" -a -n "$found_clang"
3525 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
3528 $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
3534 elif test -z "$found_gcc" -a -n "$found_clang"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
3537 $as_echo "$as_me: No GCC found, use CLANG" >&6;}
3541 elif test -z "$found_gcc" -a -z "$found_clang"
3543 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null`
3544 if test -n "${found_clang}"
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
3549 CXX="`/usr/bin/xcrun -find clang++`"
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 if test -n "$ac_tool_prefix"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test -n "$CC"; then
3573 for as_dir in $PATH
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3600 if test -z "$ac_cv_prog_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test -n "$ac_ct_CC"; then
3613 for as_dir in $PATH
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$ac_ct_CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
3653 if test -z "$CC"; then
3654 if test -n "$ac_tool_prefix"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test -n "$CC"; then
3666 for as_dir in $PATH
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 if test -n "$CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test -n "$CC"; then
3705 ac_prog_rejected=no
3707 for as_dir in $PATH
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in cl.exe
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3761 if test -n "$CC"; then
3765 for as_dir in $PATH
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$CC" && break
3794 if test -z "$CC"; then
3796 for ac_prog in cl.exe
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3805 if test -n "$ac_ct_CC"; then
3809 for as_dir in $PATH
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 if test -n "$ac_ct_CC"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3835 test -n "$ac_ct_CC" && break
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
3854 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 as_fn_error $? "no acceptable C compiler found in \$PATH
3857 See \`config.log' for more details" "$LINENO" 5; }
3860 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3863 for ac_option in --version -v -V -qversion; do
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 if test -s conftest.err; then
3879 rm -f conftest.er1 conftest.err
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 # Try to create an executable without -o first, disregard a.out.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3902 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3908 for ac_file in $ac_files
3915 rm -f $ac_rmfiles
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3929 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3931 # so that the user can short-circuit this test for compilers unknown to
3933 for ac_file in $ac_files ''
3935 test -f "$ac_file" || continue
3944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3948 # We set ac_cv_exeext here because the later test for it is not
3949 # safe: cross compilers may not add the suffix if given an `-o'
3958 test "$ac_cv_exeext" = no && ac_cv_exeext=
3963 if test -z "$ac_file"; then :
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 See \`config.log' for more details" "$LINENO" 5; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3978 $as_echo_n "checking for C compiler default output file name... " >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986 $as_echo_n "checking for suffix of executables... " >&6; }
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4002 for ac_file in conftest.exe conftest conftest.*; do
4003 test -f "$ac_file" || continue
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 See \`config.log' for more details" "$LINENO" 5; }
4017 rm -f conftest conftest$ac_cv_exeext
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4021 rm -f conftest.$ac_ext
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 cross_compiling=no
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 If you meant to cross compile, use \`--host'.
4074 See \`config.log' for more details" "$LINENO" 5; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4081 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084 $as_echo_n "checking for suffix of object files... " >&6; }
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 rm -f conftest.o conftest.obj
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 for ac_file in conftest.o conftest.obj conftest.*; do
4112 test -f "$ac_file" || continue;
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 See \`config.log' for more details" "$LINENO" 5; }
4128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 ac_compiler_gnu=no
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4178 ac_cv_prog_cc_g=no
4179 CFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 CFLAGS="-g"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4238 CFLAGS="-g -O2"
4240 CFLAGS="-g"
4244 CFLAGS="-O2"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4254 ac_cv_prog_cc_c89=no
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 as 'x'. The following induces an error, until -std is added to get
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 that's true only with -std. */
4287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4315 rm -f core conftest.err conftest.$ac_objext
4318 rm -f conftest.$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4352 # On Suns, sometimes $CPP names a directory.
4353 if test -n "$CPP" && test -d "$CPP"; then
4354 CPP=
4356 if test -z "$CPP"; then
4360 # Double quotes because CPP needs to be expanded
4361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364 for ac_c_preproc_warn_flag in '' yes
4367 # with a fresh cross-compiler works.
4370 # On the NeXT, cc -E runs the code through the compiler's parser,
4371 # not just through cpp. "Syntax error" is here to catch this case.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 rm -f conftest.err conftest.i conftest.$ac_ext
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 rm -f conftest.err conftest.i conftest.$ac_ext
4407 rm -f conftest.i conftest.err conftest.$ac_ext
4413 ac_cv_prog_CPP=$CPP
4416 CPP=$ac_cv_prog_CPP
4418 ac_cv_prog_CPP=$CPP
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4421 $as_echo "$CPP" >&6; }
4423 for ac_c_preproc_warn_flag in '' yes
4426 # with a fresh cross-compiler works.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 rm -f conftest.err conftest.i conftest.$ac_ext
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4466 rm -f conftest.i conftest.err conftest.$ac_ext
4470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details" "$LINENO" 5; }
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4483 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4487 if test -z "$GREP"; then
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in grep ggrep; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4499 # Check for GNU ac_path_GREP and select it if it is found.
4500 # Check for GNU $ac_path_GREP
4501 case `"$ac_path_GREP" --version 2>&1` in
4513 …"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || br…
4516 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4522 test $ac_count -gt 10 && break
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 if test -z "$ac_cv_path_GREP"; then
4533 …as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4546 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551 for ac_i in 1 2 3 4 5 6 7; do
4556 if test -z "$SED"; then
4558 # Loop through the user's path and test for each of PROGNAME-LIST
4560 for as_dir in $PATH
4563 test -z "$as_dir" && as_dir=.
4564 for ac_prog in sed gsed; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4568 # Check for GNU ac_path_SED and select it if it is found.
4569 # Check for GNU $ac_path_SED
4570 case `"$ac_path_SED" --version 2>&1` in
4582 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 if test $ac_count -gt ${ac_path_SED_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4591 test $ac_count -gt 10 && break
4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601 if test -z "$ac_cv_path_SED"; then
4602 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4612 rm -f conftest.sed
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4618 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4620 # Check whether --with-cxx_main was given.
4625 no) with_cxx_main=no
4631 if test -z "$CXX"
4638 with_cxx_main=no
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4647 if test -z "$CXX"
4650 gcc) if test -n "$ac_tool_prefix"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4664 for as_dir in notfound
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 if test -n "$CXX"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4692 if test -z "$ac_cv_path_CXX"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4707 for as_dir in notfound
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 if test -n "$ac_pt_CXX"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
4748 cc) if test -n "$ac_tool_prefix"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4762 for as_dir in notfound
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 if test -n "$CXX"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4790 if test -z "$ac_cv_path_CXX"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4805 for as_dir in notfound
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 if test -n "$ac_pt_CXX"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
4846 clang|*/clang) if test -n "$ac_tool_prefix"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4860 for as_dir in notfound
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 if test -n "$CXX"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4888 if test -z "$ac_cv_path_CXX"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4903 for as_dir in notfound
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 if test -n "$ac_pt_CXX"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
4944 icc|*/icc) if test -n "$ac_tool_prefix"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4958 for as_dir in notfound
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 if test -n "$CXX"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4986 if test -z "$ac_cv_path_CXX"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
5001 for as_dir in notfound
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 if test -n "$ac_pt_CXX"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
5048 if test -z "$CXX"
5050 if test -n "$ac_tool_prefix"; then
5051 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test -n "$CXX"; then
5064 for as_dir in $PATH
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 if test -n "$CXX"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 test -n "$CXX" && break
5093 if test -z "$CXX"; then
5095 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test -n "$ac_ct_CXX"; then
5108 for as_dir in $PATH
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 if test -n "$ac_ct_CXX"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 test -n "$ac_ct_CXX" && break
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
5157 { $as_echo "$as_me:${as_lineno-$LINENO}:
5170 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler charac…
5174 $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
5191 x86_64-linux-gnu
5193 x86_64-linux-gnux32
5195 i386-linux-gnu
5198 aarch64_ilp32-linux-gnu
5200 aarch64-linux-gnu
5204 aarch64_be_ilp32-linux-gnu
5206 aarch64_be-linux-gnu
5209 alpha-linux-gnu
5212 arm-linux-gnueabihf
5214 armeb-linux-gnueabihf
5218 arm-linux-gnueabi
5220 armeb-linux-gnueabi
5223 hppa-linux-gnu
5225 ia64-linux-gnu
5227 m68k-linux-gnu
5230 mipsisa32r6el-linux-gnu
5232 mipsisa64r6el-linux-gnuabin32
5234 mipsisa64r6el-linux-gnuabi64
5240 mipsisa32r6-linux-gnu
5242 mipsisa64r6-linux-gnuabin32
5244 mipsisa64r6-linux-gnuabi64
5250 mipsel-linux-gnu
5252 mips64el-linux-gnuabin32
5254 mips64el-linux-gnuabi64
5260 mips-linux-gnu
5262 mips64-linux-gnuabin32
5264 mips64-linux-gnuabi64
5269 or1k-linux-gnu
5271 powerpc-linux-gnuspe
5274 powerpc64le-linux-gnu
5276 powerpc64-linux-gnu
5279 powerpc-linux-gnu
5281 s390x-linux-gnu
5283 s390-linux-gnu
5285 sh4-linux-gnu
5287 sparc64-linux-gnu
5289 sparc-linux-gnu
5292 riscv32-linux-gnu
5294 riscv64-linux-gnu
5303 x86_64-kfreebsd-gnu
5305 i386-kfreebsd-gnu
5310 i386-gnu
5321 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5322 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5329 rm -f conftest.c conftest.out
5333 …as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LIN…
5340 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
5345 $as_echo_n "checking for -Wl,--no-as-needed... " >&6; }
5347 LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 NO_AS_NEEDED="-Wl,--no-as-needed"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5369 rm -f core conftest.err conftest.$ac_objext \
5375 # checks for UNIX variants that set C preprocessor variables
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5378 $as_echo_n "checking for egrep... " >&6; }
5382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5383 then ac_cv_path_EGREP="$GREP -E"
5385 if test -z "$EGREP"; then
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in egrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5397 # Check for GNU ac_path_EGREP and select it if it is found.
5398 # Check for GNU $ac_path_EGREP
5399 case `"$ac_path_EGREP" --version 2>&1` in
5414 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5420 test $ac_count -gt 10 && break
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 if test -z "$ac_cv_path_EGREP"; then
5431 …as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO"…
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5445 $as_echo_n "checking for ANSI C header files... " >&6; }
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 ac_cv_header_stdc=no
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 ac_cv_header_stdc=no
5484 rm -f conftest*
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 ac_cv_header_stdc=no
5501 rm -f conftest*
5506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5530 for (i = 0; i < 256; i++)
5540 ac_cv_header_stdc=no
5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5574 …ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_include…
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 ac_cv_safe_to_define___extensions__=no
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
5636 $as_echo_n "checking for the Android API level... " >&6; }
5646 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
5647 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
5648 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
5651 if test -z "$ANDROID_API_LEVEL"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
5662 $as_echo_n "checking for the Android arm ABI... " >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
5666 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
5667 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
5673 rm -f conftest.c conftest.out
5675 # Check for unsupported systems
5678 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
5679 echo See README for details.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
5685 $as_echo_n "checking for --with-suffix... " >&6; }
5687 # Check whether --with-suffix was given.
5691 no) EXEEXT=;;
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5700 # Test whether we're running on a non-case-sensitive system, in which
5701 # case we give a warning if no ext is given
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
5704 $as_echo_n "checking for case-insensitive build directory... " >&6; }
5705 if test ! -d CaseSensitiveTestDir; then
5709 if test -d casesensitivetestdir
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5724 cc|*/cc) CC="$CC -Ae";;
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
5731 if test -z "$LIBRARY"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
5750 # on the system - some systems like version suffix, others don't
5770 # LINKCC is the command that links the python executable -- default is $(CC).
5774 # This is altered for AIX in order to build the export list before
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
5779 if test -z "$LINKCC"
5785 if test $ac_sys_release -ge 5 -o \
5786 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5792 # support -N.
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
5800 # make sure we default having it set to "no": this is used by
5801 # distutils.unixccompiler to know if it should add --enable-new-dtags
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5806 $as_echo_n "checking for GNU ld... " >&6; }
5809 ac_prog=`$CC -print-prog-name=ld`
5811 case `"$ac_prog" -V 2>&1 < /dev/null` in
5815 GNULD=no;;
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
5821 $as_echo_n "checking for --enable-shared... " >&6; }
5822 # Check whether --enable-shared was given.
5828 if test -z "$enable_shared"
5834 enable_shared="no";;
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
5841 $as_echo_n "checking for --enable-profiling... " >&6; }
5842 # Check whether --enable-profiling was given.
5849 CC="$CC -pg"
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 enable_profiling=no
5859 rm -f core conftest.err conftest.$ac_objext \
5863 enable_profiling=no
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
5869 BASECFLAGS="-pg $BASECFLAGS"
5870 LDFLAGS="-pg $LDFLAGS"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
5878 # will find it with a -framework option). For this reason there is an
5881 # LDLIBRARY, but empty for MacOSX framework builds.
5904 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
5914 BLDLIBRARY='-L. -lpython$(LDVERSION)'
5923 case `uname -m` in
5931 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
5936 BLDLIBRARY='-L. -lpython$(LDVERSION)'
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
5963 if test -n "$ac_tool_prefix"; then
5964 for ac_prog in ar aal
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test -n "$AR"; then
5977 for as_dir in $PATH
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 if test -n "$AR"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6003 test -n "$AR" && break
6006 if test -z "$AR"; then
6008 for ac_prog in ar aal
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test -n "$ac_ct_AR"; then
6021 for as_dir in $PATH
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 if test -n "$ac_ct_AR"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6047 test -n "$ac_ct_AR" && break
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
6066 if test -z "$ARFLAGS"
6071 if test -n "$ac_tool_prefix"; then
6072 for ac_prog in readelf
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test -n "$READELF"; then
6085 for as_dir in $PATH
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 if test -n "$READELF"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6111 test -n "$READELF" && break
6114 if test -z "$READELF"; then
6116 for ac_prog in readelf
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test -n "$ac_ct_READELF"; then
6129 for as_dir in $PATH
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 if test -n "$ac_ct_READELF"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6155 test -n "$ac_ct_READELF" && break
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
6174 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
6183 # install -d does not work on HP-UX
6184 if test -z "$INSTALL"
6186 INSTALL="${srcdir}/install-sh -c"
6197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6204 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6205 if test -z "$INSTALL"; then
6210 for as_dir in $PATH
6213 test -z "$as_dir" && as_dir=.
6214 # Account for people who put trailing slashes in PATH elements.
6221 # OSF1 and SCO ODT 3.0 have their own names for install.
6224 for ac_prog in ginstall scoinst install; do
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6233 # program-specific install script used by HP pwplus--don't use.
6236 rm -rf conftest.one conftest.two conftest.dir
6240 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6241 test -s conftest.one && test -s conftest.two &&
6242 test -s conftest.dir/conftest.one &&
6243 test -s conftest.dir/conftest.two
6245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6258 rm -rf conftest.one conftest.two conftest.dir
6265 # value for INSTALL within a source directory, because that will
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6283 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6284 if test -z "$MKDIR_P"; then
6289 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6292 test -z "$as_dir" && as_dir=.
6293 for ac_prog in mkdir gmkdir; do
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6310 test -d ./--version && rmdir ./--version
6312 MKDIR_P="$ac_cv_path_mkdir -p"
6315 # value for MKDIR_P within a source directory, because that will
6318 MKDIR_P="$ac_install_sh -d"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6327 if test -z "$LN" ; then
6329 CYGWIN*) LN="ln -s";;
6334 # For calculating the .so ABI tag.
6338 # Check for --with-pydebug
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
6340 $as_echo_n "checking for --with-pydebug... " >&6; }
6342 # Check whether --with-pydebug was given.
6345 if test "$withval" != no
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6354 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }; Py_DEBUG='false'
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6363 # Check for --with-trace-refs
6364 # --with-trace-refs
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
6366 $as_echo_n "checking for --with-trace-refs... " >&6; }
6368 # Check whether --with-trace-refs was given.
6372 with_trace_refs=no
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
6385 # Check for --with-assertions.
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
6389 $as_echo_n "checking for --with-assertions... " >&6; }
6391 # Check whether --with-assertions was given.
6394 if test "$withval" != no
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
6406 $as_echo "implied by --with-pydebug" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
6417 $as_echo_n "checking for --enable-optimizations... " >&6; }
6418 # Check whether --enable-optimizations was given.
6421 if test "$enableval" != no
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; };
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6440 # who want LTO need to use --with-lto themselves.
6441 DEF_MAKE_ALL_RULE="profile-opt"
6446 REQUIRE_PGO="no"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
6453 if test -z "$PROFILE_TASK"
6455 PROFILE_TASK='-m test --pgo'
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
6460 # Make llvm-relatec checks work on systems where llvm tools are not installed with their
6462 # non-suffixed name in their versioned llvm directory.
6471 if test -L "${clang_bin}"
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
6482 $as_echo_n "checking for --with-lto... " >&6; }
6484 # Check whether --with-lto was given.
6487 if test "$withval" != no
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; };
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6520 for as_dir in ${llvm_path}
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 if test -n "$LLVM_AR"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6548 if test -z "$ac_cv_path_LLVM_AR"; then
6550 # Extract the first word of "llvm-ar", so it can be a program name with args.
6551 set dummy llvm-ar; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6563 for as_dir in ${llvm_path}
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 if test -n "$ac_pt_LLVM_AR"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
6605 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
6609 LLVM_AR_FOUND="not-found"
6611 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
6613 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null`
6614 if test -n "${found_llvm_ar}"
6616 LLVM_AR='/usr/bin/xcrun llvm-ar'
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
6619 $as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
6622 if test $LLVM_AR_FOUND = not-found
6625 …as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$L…
6627 LLVM_AR_ERR=no
6633 LTOFLAGS="-flto -Wl,-export_dynamic"
6636 LTOFLAGS="-flto"
6643 LTOFLAGS="-flto -Wl,-export_dynamic"
6646 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
6654 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
6656 LTOFLAGS="$LTOFLAGS -g"
6670 if test -n "$ac_tool_prefix"; then
6671 …# Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with arg…
6672 set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6684 for as_dir in ${llvm_path}
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 if test -n "$LLVM_PROFDATA"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6712 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
6714 # Extract the first word of "llvm-profdata", so it can be a program name with args.
6715 set dummy llvm-profdata; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6727 for as_dir in ${llvm_path}
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 if test -n "$ac_pt_LLVM_PROFDATA"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
6769 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
6773 LLVM_PROF_FOUND="not-found"
6775 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
6777 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
6778 if test -n "${found_llvm_profdata}"
6780 # llvm-profdata isn't directly in $PATH in some cases.
6782 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
6785 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
6788 LLVM_PROF_ERR=no
6792 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6793 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6794 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6795 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6796 if test $LLVM_PROF_FOUND = not-found
6801 …as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be foun…
6808 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
6809 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
6810 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
6811 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
6812 if test "${LLVM_PROF_FOUND}" = "not-found"
6817 …as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be foun…
6822 PGO_PROF_GEN_FLAG="-fprofile-generate"
6823 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
6830 PGO_PROF_GEN_FLAG="-prof-gen"
6831 PGO_PROF_USE_FLAG="-prof-use"
6841 # ------------------------
6842 # (The following bit of code is complicated enough - please keep things
6843 # indented properly. Just pretend you're editing Python code. ;-)
6855 if $CC --version 2>&1 | grep -q clang
6867 if test "${OPT-unset}" = "unset"
6871 # For gcc 4.x we need to use -fwrapv so lets check if its supported
6872 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
6873 WRAP="-fwrapv"
6876 if test -n "${cc_is_clang}"
6878 # Clang also needs -fwrapv
6879 WRAP="-fwrapv"
6880 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
6881 # see Makefile.pre.in for more information
6882 CFLAGS_ALIASING="-fno-strict-aliasing"
6888 # Optimization messes up debuggers, so turn it off for
6890 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
6891 OPT="-g -Og -Wall"
6893 OPT="-g -O0 -Wall"
6896 OPT="-g $WRAP -O3 -Wall"
6900 OPT="-O3 -Wall"
6905 SCO_SV*) OPT="$OPT -m486 -DSCO5"
6911 OPT="-O"
6920 # The -arch flags for universal builds on OSX
6927 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
6930 $as_echo_n "checking for -Wextra... " >&6; }
6932 CC="$CC -Wextra -Werror"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 ac_cv_extra_warnings=no
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5
6967 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra"
6971 # GCC produce warnings for legal Python code. Enable
6972 # -fno-strict-aliasing on versions of GCC that support but produce
6974 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasi…
6975 $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
6977 CC="$CC -fno-strict-aliasing"
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 CC="$ac_save_cc -fstrict-aliasing"
6998 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 ac_cv_no_strict_aliasing=no
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 ac_cv_no_strict_aliasing=no
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
7037 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
7044 ac_cv_disable_unused_result_warning=no
7047 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5
7050 CC="$CC -Wunused-result -Werror"
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 ac_cv_disable_unused_result_warning=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
7089 BASECFLAGS="$BASECFLAGS -Wno-unused-result"
7090 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result"
7093 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning"…
7096 CC="$CC -Wunused-parameter -Werror"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 ac_cv_disable_unused_parameter_warning=no
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
7131 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter"
7134 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializer…
7137 CC="$CC -Wmissing-field-initializers -Werror"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 ac_cv_disable_missing_field_initializers=no
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5
7172 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers"
7175 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warn…
7178 CC="$CC -Wsign-compare"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 ac_cv_enable_sign_compare_warning=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
7215 BASECFLAGS="$BASECFLAGS -Wsign-compare"
7218 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" …
7221 CC="$CC -Wunreachable-code"
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 ac_cv_enable_unreachable_code_warning=no
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 # results in non-standard code paths.
7259 # for clang. Try to determine if the compiler is not really gcc and,
7263 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
7265 BASECFLAGS="$BASECFLAGS -Wunreachable-code"
7267 ac_cv_enable_unreachable_code_warning=no
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
7272 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning"…
7273 $as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; }
7275 CC="$CC -Werror -Wstrict-prototypes"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 ac_cv_enable_strict_prototypes_warning=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
7310 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes"
7313 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an …
7316 CC="$CC -Werror=implicit-function-declaration"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 ac_cv_enable_implicit_function_declaration_error=no
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 …{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error…
7351 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration"
7354 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
7359 BASECFLAGS="$BASECFLAGS -mieee"
7365 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
7369 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
7370 # used to be here, but non-Apple gcc doesn't accept them.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
7380 CC=gcc-4.0
7381 CPP=cpp-4.0
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7391 32-bit)
7392 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
7396 64-bit)
7397 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
7402 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
7403 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7404 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7407 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
7408 LIPO_32BIT_FLAGS="-extract i386"
7409 ARCH_RUN_32BIT="/usr/bin/arch -i386"
7411 intel-32)
7412 UNIVERSAL_ARCH_FLAGS="-arch i386"
7416 intel-64)
7417 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
7421 3-way)
7422 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
7423 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
7424 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
7427 … as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
7433 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
7434 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7435 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
7442 # Calculate an appropriate deployment target for this build:
7444 # features are enabled (such as builtin libedit support for readline)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
7457 cur_target_major=`sw_vers -productVersion | \
7458 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
7459 cur_target_minor=`sw_vers -productVersion | \
7460 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
7462 if test ${cur_target_major} -eq 10 && \
7463 test ${cur_target_minor} -ge 3 && \
7464 test ${cur_target_minor} -le 5
7471 all|3-way|intel|64-bit)
7484 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
7504 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
7507 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
7513 # ICC needs -fp-model strict or floats behave badly
7516 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
7523 OPT="-DNDEBUG $OPT"
7535 # options before we can check whether -Kpthread improves anything.
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >…
7542 ac_cv_pthread_is_default=no
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 ac_cv_kthread=no
7565 ac_cv_pthread=no
7568 ac_cv_pthread_is_default=no
7570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
7583 ac_cv_kpthread=no
7585 # -Kpthread, if available, provides the right #defines
7587 # Some compilers won't report that they do not support -Kpthread,
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
7591 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
7596 CC="$CC -Kpthread"
7598 ac_cv_kpthread=no
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 ac_cv_kpthread=no
7622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
7633 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
7635 # -Kthread, if available, provides the right #defines
7637 # Some compilers won't report that they do not support -Kthread,
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
7641 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
7646 CC="$CC -Kthread"
7648 ac_cv_kthread=no
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 ac_cv_kthread=no
7672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
7683 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
7685 # -pthread, if available, provides the right #defines
7687 # Some compilers won't report that they do not support -pthread,
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
7691 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
7696 CC="$CC -pthread"
7698 ac_cv_pthread=no
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 ac_cv_pthread=no
7722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
7733 # If we have set a CC compiler flag for thread support then
7734 # check if it works for CXX, too.
7735 ac_cv_cxx_thread=no
7736 if test ! -z "$CXX"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread suppor…
7739 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
7744 CXX="$CXX -Kpthread"
7748 CXX="$CXX -Kthread"
7752 CXX="$CXX -pthread"
7759 $CXX -c conftest.$ac_ext 2>&5
7760 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
7761 && test -s conftest$ac_exeext && ./conftest$ac_exeext
7765 ac_cv_cxx_thread=no
7767 rm -fr conftest*
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
7775 # checks for header files
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7777 $as_echo_n "checking for ANSI C header files... " >&6; }
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 ac_cv_header_stdc=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 ac_cv_header_stdc=no
7816 rm -f conftest*
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 ac_cv_header_stdc=no
7833 rm -f conftest*
7838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7862 for (i = 0; i < 256; i++)
7872 ac_cv_header_stdc=no
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7888 for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \
7914 ac_header_dirent=no
7915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7918 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 eval "$as_ac_Header=no"
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7955 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7958 $as_echo_n "checking for library containing opendir... " >&6; }
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 for ac_lib in '' dir; do
7982 if test -z "$ac_lib"; then
7985 ac_res=-l$ac_lib
7986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7991 rm -f core conftest.err conftest.$ac_objext \
8000 ac_cv_search_opendir=no
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8008 if test "$ac_res" != no; then :
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8015 $as_echo_n "checking for library containing opendir... " >&6; }
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 for ac_lib in '' x; do
8039 if test -z "$ac_lib"; then
8042 ac_res=-l$ac_lib
8043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8048 rm -f core conftest.err conftest.$ac_objext \
8057 ac_cv_search_opendir=no
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8065 if test "$ac_res" != no; then :
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 ac_cv_header_sys_types_h_makedev=no
8093 rm -f core conftest.err conftest.$ac_objext \
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
8100 if test $ac_cv_header_sys_types_h_makedev = no; then
8110 if test $ac_cv_header_sys_mkdev_h = no; then
8123 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
8126 CFLAGS="-std=c99 $CFLAGS"
8127 for ac_header in bluetooth/bluetooth.h
8142 for ac_header in net/if.h
8169 for ac_header in linux/netlink.h
8191 for ac_header in linux/qrtr.h
8212 for ac_header in linux/vm_sockets.h
8231 for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h
8250 # checks for typedefs
8251 was_it_defined=no
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
8253 $as_echo_n "checking for clock_t in time.h... " >&6; }
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 rm -f conftest*
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
8275 $as_echo_n "checking for makedev... " >&6; }
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 ac_cv_has_makedev=no
8302 rm -f core conftest.err conftest.$ac_objext \
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
8314 $as_echo_n "checking for le64toh... " >&6; }
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 ac_cv_has_le64toh=no
8339 rm -f core conftest.err conftest.$ac_objext \
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5
8350 # Don't use largefile support for GNU/Hurd
8352 use_lfs=no
8373 # Add some code to confdefs.h so that the test for off_t works on SCO
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8431 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 ac_cv_type_uid_t=no
8446 rm -f conftest*
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8451 if test $ac_cv_type_uid_t = no; then
8477 # ANSI C requires sizeof(char) == 1, so no need to check it
8479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8494 See \`config.log' for more details" "$LINENO" 5; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8527 See \`config.log' for more details" "$LINENO" 5; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8560 See \`config.log' for more details" "$LINENO" 5; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8593 See \`config.log' for more details" "$LINENO" 5; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8626 See \`config.log' for more details" "$LINENO" 5; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8659 See \`config.log' for more details" "$LINENO" 5; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8692 See \`config.log' for more details" "$LINENO" 5; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
8722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8725 See \`config.log' for more details" "$LINENO" 5; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
8743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8758 See \`config.log' for more details" "$LINENO" 5; }
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
8788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8791 See \`config.log' for more details" "$LINENO" 5; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
8809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
8821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8824 See \`config.log' for more details" "$LINENO" 5; }
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
8844 $as_echo_n "checking for long double... " >&6; }
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8871 ac_cv_type_long_double=no
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
8885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8900 See \`config.log' for more details" "$LINENO" 5; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
8931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8934 See \`config.log' for more details" "$LINENO" 5; }
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
8953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8973 See \`config.log' for more details" "$LINENO" 5; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
8993 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8994 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9029 See \`config.log' for more details" "$LINENO" 5; }
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9050 then CC="$CC -Kpthread"
9052 then CC="$CC -Kthread"
9054 then CC="$CC -pthread"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
9058 $as_echo_n "checking for pthread_t... " >&6; }
9059 have_pthread_t=no
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
9081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
9098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9101 See \`config.log' for more details" "$LINENO" 5; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
9123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
9136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9139 See \`config.log' for more details" "$LINENO" 5; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
9158 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 ac_pthread_key_t_is_arithmetic_type=no
9176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9193 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
9204 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
9208 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
9210 …LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYT…
9211 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9213 gcc_version=`gcc -dumpversion`
9216 LIBTOOL_CRUFT="-lcc_dynamic"
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 ac_osx_32bit=no
9242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9274 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
9275 …LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYT…
9276 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
9279 $as_echo_n "checking for --enable-framework... " >&6; }
9282 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
9283 # -F. is needed to allow linking to the framework while
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9292 …as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
9300 $as_echo_n "checking for dyld... " >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
9307 $as_echo "always on for Darwin" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9324 # -- usually .so, .sl on HP-UX, .dll on Cygwin
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
9327 if test -z "$SHLIB_SUFFIX"; then
9330 case `uname -m` in
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
9343 # -- "cc -G" on SunOS 5.x.
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
9348 if test -z "$LDSHARED"
9352 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
9353 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
9357 LDSHARED='$(CC) -shared'
9358 LDCXXSHARED='$(CXX) -shared'
9360 LDSHARED='$(CC) -G'
9361 LDCXXSHARED='$(CXX) -G'
9365 LDSHARED='$(CC) -shared'
9366 LDCXXSHARED='$(CXX) -shared'
9368 LDSHARED='$(CC) -b'
9369 LDCXXSHARED='$(CXX) -b'
9372 LDSHARED='$(CC) -bundle'
9373 LDCXXSHARED='$(CXX) -bundle'
9380 # No framework. Ignore undefined symbols, assuming they come from Python
9381 LDSHARED="$LDSHARED -undefined suppress"
9382 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
9385 LDSHARED='$(CC) -bundle'
9386 LDCXXSHARED='$(CXX) -bundle'
9393 # No framework, use the Python app as bundle-loader
9394 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9395 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9396 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9399 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
9403 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9405 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9406 if test ${dep_target_major} -eq 10 && \
9407 test ${dep_target_minor} -le 2
9409 # building for OS X 10.0 through 10.2
9410 LDSHARED='$(CC) -bundle'
9411 LDCXXSHARED='$(CXX) -bundle'
9418 # No framework, use the Python app as bundle-loader
9419 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
9420 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9421 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
9424 # building for OS X 10.3 and later
9425 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
9426 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
9431 LDSHARED='$(CC) -shared'
9432 LDCXXSHARED='$(CXX) -shared';;
9434 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9436 LDSHARED='$(CC) -shared'
9437 LDCXXSHARED='$(CXX) -shared'
9439 LDSHARED="ld -Bshareable"
9442 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9444 LDSHARED='$(CC) -shared $(CCSHARED)'
9445 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9447 case `uname -r` in
9448 [01].* | 2.[0-7] | 2.[0-7].*)
9449 LDSHARED="ld -Bshareable ${LDFLAGS}"
9452 LDSHARED='$(CC) -shared $(CCSHARED)'
9453 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
9458 LDSHARED='$(CC) -shared'
9459 LDCXXSHARED='$(CXX) -shared';;
9462 LDSHARED='$(CC) -shared'
9463 LDCXXSHARED='$(CXX) -shared'
9465 LDSHARED='$(CC) -G'
9466 LDCXXSHARED='$(CXX) -G'
9469 LDSHARED='$(CC) -Wl,-G,-Bexport'
9470 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
9472 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
9473 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
9479 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
9480 BLDSHARED=${BLDSHARED-$LDSHARED}
9482 # library (module) -- this is only needed for a few systems
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
9485 if test -z "$CCSHARED"
9489 then CCSHARED="-fPIC";
9490 elif test `uname -p` = sparc;
9491 then CCSHARED="-xcode=pic32";
9492 else CCSHARED="-Kpic";
9495 then CCSHARED="-fPIC";
9498 Linux-android*) ;;
9499 Linux*|GNU*) CCSHARED="-fPIC";;
9500 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
9503 then CCSHARED="-fPIC"
9504 else CCSHARED="-KPIC"
9508 then CCSHARED="-fPIC"
9509 else CCSHARED="-Kpic -belf"
9512 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
9518 # the python executable -- this is only needed for a few systems
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
9521 if test -z "$LINKFORSHARED"
9524 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
9526 LINKFORSHARED="-Wl,-E -Wl,+s";;
9527 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
9528 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";;
9529 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
9530 # -u libsys_s pulls in all symbols in libsys
9532 LINKFORSHARED="$extra_undefs -framework CoreFoundation"
9535 # small for the default recursion limit. Increase the stack size
9539 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED"
9546 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
9547 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
9548 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
9550 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
9552 LINKFORSHARED="-Wl,--export-dynamic"
9556 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
9558 LINKFORSHARED="-Xlinker --export-dynamic"
9562 if test $enable_shared = "no"
9564 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
9567 # -Wl,-E causes the symbols to be added to the dynamic
9569 # is loaded. -N 2048K causes the stack size to be set
9572 LINKFORSHARED='-Wl,-E -N 2048K';;
9574 LINKFORSHARED='--export-dynamic';;
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
9598 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
9599 # library (with --enable-shared).
9600 # For platforms on which shared libraries are not allowed to have unresolved
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
9617 # checks for libraries
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
9619 $as_echo_n "checking for sendfile in -lsendfile... " >&6; }
9624 LIBS="-lsendfile $LIBS"
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 ac_cv_lib_sendfile_sendfile=no
9648 rm -f core conftest.err conftest.$ac_objext \
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
9659 LIBS="-lsendfile $LIBS"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9664 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9669 LIBS="-ldl $LIBS"
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 ac_cv_lib_dl_dlopen=no
9693 rm -f core conftest.err conftest.$ac_objext \
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9704 LIBS="-ldl $LIBS"
9707 # Dynamic linking for SunOS/Solaris and SYSV
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9709 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9714 LIBS="-ldld $LIBS"
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 ac_cv_lib_dld_shl_load=no
9738 rm -f core conftest.err conftest.$ac_objext \
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9749 LIBS="-ldld $LIBS"
9752 # Dynamic linking for HP-UX
9754 # checks for uuid.h location
9755 for ac_header in uuid/uuid.h uuid.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
9770 $as_echo_n "checking for uuid_generate_time_safe... " >&6; }
9771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 # AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
9802 $as_echo_n "checking for uuid_create... " >&6; }
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 # Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet
9832 # stream in big-endian byte-order
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5
9834 $as_echo_n "checking for uuid_enc_be... " >&6; }
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
9867 $as_echo_n "checking for library containing sem_init... " >&6; }
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 for ac_lib in '' pthread rt posix4; do
9891 if test -z "$ac_lib"; then
9894 ac_res=-l$ac_lib
9895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9900 rm -f core conftest.err conftest.$ac_objext \
9909 ac_cv_search_sem_init=no
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
9917 if test "$ac_res" != no; then :
9923 # check if we need libintl for locale functions
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
9925 $as_echo_n "checking for textdomain in -lintl... " >&6; }
9930 LIBS="-lintl $LIBS"
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 ac_cv_lib_intl_textdomain=no
9954 rm -f core conftest.err conftest.$ac_objext \
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
9964 LIBS="-lintl $LIBS"
9968 # checks for system dependent C++ extensions support
9970 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
9971 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9999 rm -f core conftest.err conftest.$ac_objext \
10004 # check for systems that require aligned memory access
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 for (i=0; i < 16; i++)
10030 ac_cv_aligned_required=no
10034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
10053 $as_echo_n "checking for --with-hash-algorithm... " >&6; }
10055 # Check whether --with-hash_algorithm was given.
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
10081 $as_echo_n "checking for --with-address-sanitizer... " >&6; }
10083 # Check whether --with-address_sanitizer was given.
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10088 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
10089 LDFLAGS="-fsanitize=address $LDFLAGS"
10091 with_pymalloc="no"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
10100 $as_echo_n "checking for --with-memory-sanitizer... " >&6; }
10102 # Check whether --with-memory_sanitizer was given.
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10107 BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
10108 LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
10110 with_pymalloc="no"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
10119 $as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; }
10121 # Check whether --with-undefined_behavior_sanitizer was given.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10126 BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
10127 LDFLAGS="-fsanitize=undefined $LDFLAGS"
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10135 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
10137 $as_echo_n "checking for t_open in -lnsl... " >&6; }
10142 LIBS="-lnsl $LIBS"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 ac_cv_lib_nsl_t_open=no
10166 rm -f core conftest.err conftest.$ac_objext \
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
10173 LIBS="-lnsl $LIBS"
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10177 $as_echo_n "checking for socket in -lsocket... " >&6; }
10182 LIBS="-lsocket $LIBS $LIBS"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 ac_cv_lib_socket_socket=no
10206 rm -f core conftest.err conftest.$ac_objext \
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10213 LIBS="-lsocket $LIBS"
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
10218 $as_echo_n "checking for --with-libs... " >&6; }
10220 # Check whether --with-libs was given.
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10241 if test -n "$ac_tool_prefix"; then
10242 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10243 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 if test -n "$PKG_CONFIG"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10283 if test -z "$ac_cv_path_PKG_CONFIG"; then
10285 # Extract the first word of "pkg-config", so it can be a program name with args.
10286 set dummy pkg-config; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10298 for as_dir in $PATH
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 if test -n "$ac_pt_PKG_CONFIG"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
10340 if test -n "$PKG_CONFIG"; then
10342 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version…
10343 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10344 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10354 # Check for use of the system expat library
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
10356 $as_echo_n "checking for --with-system-expat... " >&6; }
10358 # Check whether --with-system_expat was given.
10362 with_system_expat="no"
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
10369 # Check for use of the system libffi library
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
10371 $as_echo_n "checking for --with-system-ffi... " >&6; }
10373 # Check whether --with-system_ffi was given.
10383 with_system_ffi="no"
10385 yes|no)
10388 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platfo…
10399 $as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
10404 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
10405 … LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
10411 # Check for use of the system libmpdec library
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
10413 $as_echo_n "checking for --with-system-libmpdec... " >&6; }
10415 # Check whether --with-system_libmpdec was given.
10419 with_system_libmpdec="no"
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
10426 # Check whether _decimal should use a coroutine-local or thread-local context
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
10428 $as_echo_n "checking for --with-decimal-contextvar... " >&6; }
10430 # Check whether --with-decimal_contextvar was given.
10438 if test "$with_decimal_contextvar" != "no"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
10448 # Check for support for loadable sqlite extensions
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
10450 $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; }
10451 # Check whether --enable-loadable-sqlite-extensions was given.
10455 enable_loadable_sqlite_extensions="no"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5
10462 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5
10466 $as_echo_n "checking for --with-tcltk-includes... " >&6; }
10468 # Check whether --with-tcltk-includes was given.
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5
10478 $as_echo_n "checking for --with-tcltk-libs... " >&6; }
10480 # Check whether --with-tcltk-libs was given.
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5
10493 …as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LIN…
10502 # Check for --with-dbmliborder
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
10504 $as_echo_n "checking for --with-dbmliborder... " >&6; }
10506 # Check whether --with-dbmliborder was given.
10511 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10513 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
10516 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
10525 # Templates for things AC_DEFINEd more than once.
10526 # For a single AC_DEFINE, no template is needed.
10536 CFLAGS="$CFLAGS -D_REENTRANT"
10540 CC="$CC -Kpthread"
10542 CXX="$CXX -Kpthread"
10547 CC="$CC -Kthread"
10549 CXX="$CXX -Kthread"
10554 CC="$CC -pthread"
10556 CXX="$CXX -pthread"
10560 if test ! -z "$withval" -a -d "$withval"
10561 then LDFLAGS="$LDFLAGS -L$withval"
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
10568 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 unistd_defines_pthreads=no
10584 rm -f conftest*
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
10591 # Just looking for pthread_create in libpthread is not enough:
10595 LIBS="$LIBS -lpthread"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10597 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
10631 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
10636 LIBS="-lpthreads $LIBS"
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 ac_cv_lib_pthreads_pthread_create=no
10660 rm -f core conftest.err conftest.$ac_objext \
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
10669 LIBS="$LIBS -lpthreads"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
10674 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
10679 LIBS="-lc_r $LIBS"
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 ac_cv_lib_c_r_pthread_create=no
10703 rm -f core conftest.err conftest.$ac_objext \
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
10712 LIBS="$LIBS -lc_r"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
10717 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
10722 LIBS="-lpthread $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 ac_cv_lib_pthread___pthread_create_system=no
10746 rm -f core conftest.err conftest.$ac_objext \
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
10755 LIBS="$LIBS -lpthread"
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
10760 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
10765 LIBS="-lcma $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 ac_cv_lib_cma_pthread_create=no
10789 rm -f core conftest.err conftest.$ac_objext \
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
10798 LIBS="$LIBS -lcma"
10816 rm -f core conftest.err conftest.$ac_objext \
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
10820 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
10825 LIBS="-lmpc $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 ac_cv_lib_mpc_usconfig=no
10849 rm -f core conftest.err conftest.$ac_objext \
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
10857 LIBS="$LIBS -lmpc"
10865 if test "$unistd_defines_pthreads" = "no"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
10893 ac_cv_pthread_system_supported=no
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 if (pthread_attr_init(&attr)) exit(-1);
10907 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
10908 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
10915 ac_cv_pthread_system_supported=no
10917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
10931 for ac_func in pthread_sigmask
10948 for ac_func in pthread_getcpuclockid
10962 # Check for enable-ipv6
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
10965 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
10966 # Check whether --enable-ipv6 was given.
10969 no)
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 ipv6=no
10974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11006 ipv6=no
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 ipv6=no
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 ipv6trylibc=no
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
11060 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 rm -f conftest*
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 rm -f conftest*
11098 linux-glibc)
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 rm -f conftest*
11115 linux-inet6)
11116 if test -d /usr/inet6; then
11120 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
11124 if test -f /etc/netconfig; then
11125 if $GREP -q tcp6 /etc/netconfig; then
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 rm -f conftest*
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
11165 rm -f conftest*
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 rm -f conftest*
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
11195 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
11196 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
11197 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
11203 echo 'Fatal: no $ipv6lib library found. cannot continue.'
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5
11212 $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; }
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 # Check for --with-doc-strings
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
11243 $as_echo_n "checking for --with-doc-strings... " >&6; }
11245 # Check whether --with-doc-strings was given.
11251 if test -z "$with_doc_strings"
11254 if test "$with_doc_strings" != "no"
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
11263 # Check for Python-specific malloc support
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
11265 $as_echo_n "checking for --with-pymalloc... " >&6; }
11267 # Check whether --with-pymalloc was given.
11273 if test -z "$with_pymalloc"
11277 if test "$with_pymalloc" != "no"
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
11286 # Check for --with-c-locale-coercion
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
11288 $as_echo_n "checking for --with-c-locale-coercion... " >&6; }
11290 # Check whether --with-c-locale-coercion was given.
11296 if test -z "$with_c_locale_coercion"
11300 if test "$with_c_locale_coercion" != "no"
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
11309 # Check for Valgrind support
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
11311 $as_echo_n "checking for --with-valgrind... " >&6; }
11313 # Check whether --with-valgrind was given.
11317 with_valgrind=no
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
11322 if test "$with_valgrind" != no; then
11334 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
11337 # Check for DTrace support
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
11339 $as_echo_n "checking for --with-dtrace... " >&6; }
11341 # Check whether --with-dtrace was given.
11345 with_dtrace=no
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11375 for as_dir in $PATH
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found"
11394 if test -n "$DTRACE"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11413 # generation flag '-G'. We check for presence of this flag, rather than
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
11420 ac_cv_dtrace_link=no
11422 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
11433 # -I${DLINCLDIR} is added to the compile rule for importdl.o
11439 for ac_func in dlopen
11451 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
11456 if test -z "$DYNLOADFILE"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
11485 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
11490 if test -z "$MACHDEP_OBJS"
11496 if test -z "$MACHDEP_OBJS"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
11504 # checks for library functions
11505 for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
11542 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
11546 for ac_func in lchmod
11569 # For some functions, having a definition is not sufficient, since
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
11572 $as_echo_n "checking for chroot... " >&6; }
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
11597 $as_echo_n "checking for link... " >&6; }
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
11622 $as_echo_n "checking for symlink... " >&6; }
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
11647 $as_echo_n "checking for fchdir... " >&6; }
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
11672 $as_echo_n "checking for fsync... " >&6; }
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
11697 $as_echo_n "checking for fdatasync... " >&6; }
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
11722 $as_echo_n "checking for epoll... " >&6; }
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
11747 $as_echo_n "checking for epoll_create1... " >&6; }
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
11772 $as_echo_n "checking for kqueue... " >&6; }
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
11800 $as_echo_n "checking for prlimit... " >&6; }
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
11829 $as_echo_n "checking for memfd_create... " >&6; }
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 # functions ctermid_r, setgroups in the library, but no prototype
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
11868 $as_echo_n "checking for ctermid_r... " >&6; }
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
11896 $as_echo_n "checking for flock declaration... " >&6; }
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 ac_cv_flock_decl=no
11918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
11924 for ac_func in flock
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
11934 $as_echo_n "checking for flock in -lbsd... " >&6; }
11939 LIBS="-lbsd $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 ac_cv_lib_bsd_flock=no
11963 rm -f core conftest.err conftest.$ac_objext \
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
11985 $as_echo_n "checking for getpagesize... " >&6; }
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
12013 $as_echo_n "checking for broken unsetenv... " >&6; }
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 for ac_prog in true
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045 $as_echo_n "checking for $ac_word... " >&6; }
12049 if test -n "$TRUE"; then
12053 for as_dir in $PATH
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 if test -n "$TRUE"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12079 test -n "$TRUE" && break
12081 test -n "$TRUE" || TRUE="/bin/true"
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12085 $as_echo_n "checking for inet_aton in -lc... " >&6; }
12090 LIBS="-lc $LIBS"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 ac_cv_lib_c_inet_aton=no
12114 rm -f core conftest.err conftest.$ac_objext \
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12124 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
12129 LIBS="-lresolv $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 ac_cv_lib_resolv_inet_aton=no
12153 rm -f core conftest.err conftest.$ac_objext \
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12164 LIBS="-lresolv $LIBS"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
12175 $as_echo_n "checking for chflags... " >&6; }
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 ac_cv_have_chflags=no
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
12213 ac_cv_have_chflags="no"
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
12224 $as_echo_n "checking for lchflags... " >&6; }
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 ac_cv_have_lchflags=no
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
12262 ac_cv_have_lchflags="no"
12276 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
12277 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
12282 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
12287 LIBS="-lz $LIBS"
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 ac_cv_lib_z_inflateCopy=no
12311 rm -f core conftest.err conftest.$ac_objext \
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
12332 $as_echo_n "checking for hstrerror... " >&6; }
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12357 rm -f core conftest.err conftest.$ac_objext \
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
12361 $as_echo_n "checking for inet_aton... " >&6; }
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12389 rm -f core conftest.err conftest.$ac_objext \
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
12393 $as_echo_n "checking for inet_pton... " >&6; }
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
12425 $as_echo_n "checking for setgroups... " >&6; }
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 # check for openpty and forkpty
12457 for ac_func in openpty
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
12467 $as_echo_n "checking for openpty in -lutil... " >&6; }
12472 LIBS="-lutil $LIBS"
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 ac_cv_lib_util_openpty=no
12496 rm -f core conftest.err conftest.$ac_objext \
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
12504 LIBS="$LIBS -lutil"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
12507 $as_echo_n "checking for openpty in -lbsd... " >&6; }
12512 LIBS="-lbsd $LIBS"
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 ac_cv_lib_bsd_openpty=no
12536 rm -f core conftest.err conftest.$ac_objext \
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
12544 LIBS="$LIBS -lbsd"
12554 for ac_func in forkpty
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
12564 $as_echo_n "checking for forkpty in -lutil... " >&6; }
12569 LIBS="-lutil $LIBS"
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 ac_cv_lib_util_forkpty=no
12593 rm -f core conftest.err conftest.$ac_objext \
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
12601 LIBS="$LIBS -lutil"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
12604 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
12609 LIBS="-lbsd $LIBS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 ac_cv_lib_bsd_forkpty=no
12633 rm -f core conftest.err conftest.$ac_objext \
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
12641 LIBS="$LIBS -lbsd"
12652 # check for long file support functions
12653 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
12693 for ac_func in getpgrp
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 for ac_func in setpgrp
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 for ac_func in gettimeofday
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 # We search for both crypt and crypt_r as one or the other may be defined
12782 # This gets us our -lcrypt in LIBS when required on the target platform.
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12784 $as_echo_n "checking for library containing crypt... " >&6; }
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 for ac_lib in '' crypt; do
12808 if test -z "$ac_lib"; then
12811 ac_res=-l$ac_lib
12812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12817 rm -f core conftest.err conftest.$ac_objext \
12826 ac_cv_search_crypt=no
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12834 if test "$ac_res" != no; then :
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
12840 $as_echo_n "checking for library containing crypt_r... " >&6; }
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 for ac_lib in '' crypt; do
12864 if test -z "$ac_lib"; then
12867 ac_res=-l$ac_lib
12868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12873 rm -f core conftest.err conftest.$ac_objext \
12882 ac_cv_search_crypt_r=no
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
12890 if test "$ac_res" != no; then :
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 #define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 for ac_func in clock_gettime
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12936 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12941 LIBS="-lrt $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 ac_cv_lib_rt_clock_gettime=no
12965 rm -f core conftest.err conftest.$ac_objext \
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12973 LIBS="$LIBS -lrt"
12987 for ac_func in clock_getres
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
12998 $as_echo_n "checking for clock_getres in -lrt... " >&6; }
13003 LIBS="-lrt $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 ac_cv_lib_rt_clock_getres=no
13027 rm -f core conftest.err conftest.$ac_objext \
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
13045 for ac_func in clock_settime
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
13056 $as_echo_n "checking for clock_settime in -lrt... " >&6; }
13061 LIBS="-lrt $LIBS"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 ac_cv_lib_rt_clock_settime=no
13085 rm -f core conftest.err conftest.$ac_objext \
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
13104 $as_echo_n "checking for major... " >&6; }
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13140 rm -f core conftest.err conftest.$ac_objext \
13144 # for [no]getaddrinfo in netdb.h.
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13146 $as_echo_n "checking for getaddrinfo... " >&6; }
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 have_getaddrinfo=no
13168 rm -f core conftest.err conftest.$ac_objext \
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
13182 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 for (passive = 0; passive <= 1; passive++) {
13213 for (ai = aitop; ai; ai = ai->ai_next) {
13214 if (ai->ai_addr == NULL ||
13215 ai->ai_addrlen == 0 ||
13216 getnameinfo(ai->ai_addr, ai->ai_addrlen,
13221 switch (ai->ai_family) {
13281 ac_cv_buggy_getaddrinfo=no
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
13296 if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes
13301 echo ' or you can specify "--disable-ipv6"'.
13310 for ac_func in getnameinfo
13322 # checks for structures
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be include…
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 ac_cv_header_time=no
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13424 $as_echo_n "checking for tzname... " >&6; }
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 ac_cv_var_tzname=no
13448 rm -f core conftest.err conftest.$ac_objext \
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
13561 $as_echo_n "checking for time.h that defines altzone... " >&6; }
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 ac_cv_header_time_altzone=no
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
13594 was_it_defined=no
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be i…
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
13625 $as_echo_n "checking for addrinfo... " >&6; }
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 ac_cv_struct_addrinfo=no
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
13657 $as_echo_n "checking for sockaddr_storage... " >&6; }
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 ac_cv_struct_sockaddr_storage=no
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
13691 $as_echo_n "checking for sockaddr_alg... " >&6; }
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 ac_cv_struct_sockaddr_alg=no
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
13725 # checks for compiler characteristics
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 static int test_array [1 - 2 * !(((char) -1) < 0)];
13747 ac_cv_c_char_unsigned=no
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13761 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 an arm of an if-expression whose if-part is not a constant
13787 pcpcc = &g + (g ? g-g : 0);
13800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13813 struct s *b = &bx; b->j = 5;
13815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13829 ac_cv_c_const=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13835 if test $ac_cv_c_const = no; then
13842 works=no
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
13844 $as_echo_n "checking for working signed char... " >&6; }
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13868 have_prototypes=no
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
13870 $as_echo_n "checking for prototypes... " >&6; }
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
13892 works=no
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
13894 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
13928 # check for socketpair
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
13930 $as_echo_n "checking for socketpair... " >&6; }
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 $as_echo "no" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 for ac_func in gethostbyname
14139 # checks for system services
14142 # Linux requires this for correct f.p. operations
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
14148 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
14153 LIBS="-lieee $LIBS"
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 ac_cv_lib_ieee___fpu_control=no
14177 rm -f core conftest.err conftest.$ac_objext \
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
14188 LIBS="-lieee $LIBS"
14196 # check for --with-libm=...
14200 *) LIBM=-lm
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
14203 $as_echo_n "checking for --with-libm=STRING... " >&6; }
14205 # Check whether --with-libm was given.
14208 if test "$withval" = no
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
14216 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
14224 # check for --with-libc=...
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
14227 $as_echo_n "checking for --with-libc=STRING... " >&6; }
14229 # Check whether --with-libc was given.
14232 if test "$withval" = no
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
14240 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
14249 # * Check for gcc x64 inline assembler *
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
14253 $as_echo_n "checking for x64 gcc inline assembler... " >&6; }
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 have_gcc_asm_for_x64=no
14272 rm -f core conftest.err conftest.$ac_objext \
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5
14284 # * Check for various properties of floating point *
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 ax_cv_c_float_words_bigendian=no
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
14329 no)
14335 ax_cv_c_float_words_bigendian=no (or yes) according to your system.
14346 elif test "$ax_cv_c_float_words_bigendian" = "no"
14352 # Some ARM platforms use a mixed-endian representation for doubles.
14353 # While Python doesn't currently have full support for these platforms
14354 # (see e.g., issue 1762561), we can at least make sure that float <-> string
14364 # correctly-rounded string <-> double conversion functions from
14365 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
14367 # rounding precision of 64 bits. For gcc/x86, we can fix this by
14370 # This inline assembler syntax may also work for suncc and icc,
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get an…
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 have_gcc_asm_for_x87=no
14395 rm -f core conftest.err conftest.$ac_objext \
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get an…
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 have_gcc_asm_for_mc68881=no
14428 rm -f core conftest.err conftest.$ac_objext \
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5
14439 # Detect whether system arithmetic is subject to x87-style double
14442 # mode is round-to-nearest and double rounding issues are present, and
14443 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
14445 $as_echo_n "checking for x87-style double rounding... " >&6; }
14450 ac_cv_x87_double_rounding=no
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
14460 x = 0.99999999999999989; /* 1-2**-53 */
14464 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
14476 ac_cv_x87_double_rounding=no
14480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
14495 # * Check for mathematical functions *
14501 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
14513 for ac_func in hypot lgamma log1p log2 round tgamma
14560 # For multiprocessing module, check that sem_open
14561 # actually works. For FreeBSD versions <= 7.2,
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 ac_cv_posix_semaphores_enabled=no
14599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
14608 if test $ac_cv_posix_semaphores_enabled = no
14615 # Multiprocessing check for broken sem_getvalue
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
14617 $as_echo_n "checking for broken sem_getvalue... " >&6; }
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 return res==-1 ? 1 : 0;
14650 ac_cv_broken_sem_getvalue=no
14654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
14760 # determine what size digit to use for Python's longs
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
14762 $as_echo_n "checking digit size for Python's longs... " >&6; }
14763 # Check whether --enable-big-digits was given.
14768 no)
14773 …as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$…
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
14785 $as_echo "no value specified" >&6; }
14789 # check for wchar.h
14799 wchar_h="no"
14809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14825 See \`config.log' for more details" "$LINENO" 5; }
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
14845 $as_echo_n "checking for UCS-4 tcl... " >&6; }
14846 have_ucs4_tcl=no
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
14901 ac_cv_wchar_t_signed=no
14903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
14916 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
14917 -a "$ac_cv_wchar_t_signed" = "no"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926 $as_echo "no" >&6; }
14929 # check for endianness
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 # Check for potential -arch flags. It is not universal unless
14948 # there are at least two -arch flags with different values.
14951 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14952 if test -n "$ac_prev"; then
14955 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14964 elif test "x$ac_word" = "x-arch"; then
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 ac_cv_c_bigendian=no
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 ac_cv_c_bigendian=no
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 ac_cv_c_bigendian=no
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 return u.c[sizeof (long int) - 1] == 1;
15126 ac_cv_c_bigendian=no
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15142 no)
15151 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15155 # ABI version string for Python extension modules. This appears between the
15160 # * The Python implementation (always 'cpython-' for us)
15162 # * --with-pydebug (adds a 'd')
15164 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
15165 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
15166 # libraries would be named 'foo.cpython-32dmu.so'.
15168 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
15169 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
15177 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
15182 if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
15185 …ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATF…
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
15209 if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then
15210 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}"
15217 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
15219 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 exit(((-1)>>3 == -1) ? 0 : 1);
15246 ac_cv_rshift_extends_sign=no
15248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
15256 if test "$ac_cv_rshift_extends_sign" = no
15263 # check for getc_unlocked and related locking functions
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
15265 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 ac_cv_have_getc_unlocked=no
15291 rm -f core conftest.err conftest.$ac_objext \
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
15311 py_cv_lib_readline=no
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
15314 for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
15315 if test -z "$py_libtermcap"; then
15316 READLINE_LIBS="-lreadline"
15318 READLINE_LIBS="-lreadline -l$py_libtermcap"
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 rm -f core conftest.err conftest.$ac_objext \
15350 if test $py_cv_lib_readline = no; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
15361 # check for readline 2.2
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 have_readline=no
15372 rm -f conftest.err conftest.i conftest.$ac_ext
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 rm -f conftest*
15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 rm -f conftest*
15403 # check for readline 4.0
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
15405 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
15410 LIBS="-lreadline $READLINE_LIBS $LIBS"
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 ac_cv_lib_readline_rl_pre_input_hook=no
15434 rm -f core conftest.err conftest.$ac_objext \
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadl…
15449 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
15454 LIBS="-lreadline $READLINE_LIBS $LIBS"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 ac_cv_lib_readline_rl_completion_display_matches_hook=no
15478 rm -f core conftest.err conftest.$ac_objext \
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_…
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5
15493 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; }
15498 LIBS="-lreadline $READLINE_LIBS $LIBS"
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 ac_cv_lib_readline_rl_resize_terminal=no
15522 rm -f core conftest.err conftest.$ac_objext \
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5
15535 # check for readline 4.2
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
15537 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
15542 LIBS="-lreadline $READLINE_LIBS $LIBS"
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 ac_cv_lib_readline_rl_completion_matches=no
15566 rm -f core conftest.err conftest.$ac_objext \
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 have_readline=no
15590 rm -f conftest.err conftest.i conftest.$ac_ext
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 rm -f conftest*
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5
15609 $as_echo_n "checking for append_history in -lreadline... " >&6; }
15614 LIBS="-lreadline $READLINE_LIBS $LIBS"
15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 ac_cv_lib_readline_append_history=no
15638 rm -f core conftest.err conftest.$ac_objext \
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
15655 $as_echo_n "checking for broken nice()... " >&6; }
15661 ac_cv_broken_nice=no
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 if (val1 != -1 && val1 == nice(2))
15680 ac_cv_broken_nice=no
15682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
15698 $as_echo_n "checking for broken poll()... " >&6; }
15703 ac_cv_broken_poll=no
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 ac_cv_broken_poll=no
15732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
15749 $as_echo_n "checking for working tzset()... " >&6; }
15755 ac_cv_working_tzset=no
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 tm->tm_zone does not exist since it is the alternative way
15781 time_t groundhogday = 1044144000; /* GMT-based */
15786 if (localtime(&groundhogday)->tm_hour != 0)
15789 /* For UTC, tzname[1] is sometimes "", sometimes " " */
15797 if (localtime(&groundhogday)->tm_hour != 19)
15804 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
15806 if (localtime(&groundhogday)->tm_hour != 11)
15814 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
15816 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
15827 ac_cv_working_tzset=no
15829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
15844 # Look for subsecond timestamps in struct stat
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
15846 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867 ac_cv_stat_tv_nsec=no
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
15881 # Look for BSD style subsecond timestamps in struct stat
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
15883 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 ac_cv_stat_tv_nsec2=no
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
15920 if test "$cross_compiling" = no; then
15921 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
15924 for ac_header in curses.h ncurses.h
15939 for ac_header in term.h
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 ac_cv_mvwdelch_is_expression=no
15982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 w->_flags = 0;
16024 ac_cv_window_has_flags=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5
16041 $as_echo_n "checking for is_pad... " >&6; }
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16065 $as_echo "no" >&6; }
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
16071 $as_echo_n "checking for is_term_resized... " >&6; }
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
16097 $as_echo_n "checking for resize_term... " >&6; }
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
16123 $as_echo_n "checking for resizeterm... " >&6; }
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5
16149 $as_echo_n "checking for immedok... " >&6; }
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5
16179 $as_echo_n "checking for syncok... " >&6; }
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5
16209 $as_echo_n "checking for wchgat... " >&6; }
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233 $as_echo "no" >&6; }
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5
16239 $as_echo_n "checking for filter... " >&6; }
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5
16269 $as_echo_n "checking for has_key... " >&6; }
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16293 $as_echo "no" >&6; }
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5
16299 $as_echo_n "checking for typeahead... " >&6; }
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5
16329 $as_echo_n "checking for use_env... " >&6; }
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353 $as_echo "no" >&6; }
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
16361 $as_echo "$as_me: checking for device files" >&6;}
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16366 $as_echo_n "checking for /dev/ptmx... " >&6; }
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16369 …as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" …
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16373 $as_echo_n "checking for /dev/ptc... " >&6; }
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
16376 …as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "…
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
16381 $as_echo_n "checking for /dev/ptmx... " >&6; }
16386 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16387 if test -r "/dev/ptmx"; then
16390 ac_cv_file__dev_ptmx=no
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
16405 $as_echo_n "checking for /dev/ptc... " >&6; }
16410 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16411 if test -r "/dev/ptc"; then
16414 ac_cv_file__dev_ptc=no
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
16431 LIBS="$LIBS -framework CoreFoundation"
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
16435 $as_echo_n "checking for %zd printf() format support... " >&6; }
16440 ac_cv_have_size_t_format="cross -- assuming yes"
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
16475 if (strcmp(buffer, "-123"))
16485 ac_cv_have_size_t_format=no
16487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
16494 if test "$ac_cv_have_size_t_format" != no ; then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
16519 $as_echo_n "checking for broken mbstowcs... " >&6; }
16524 ac_cv_broken_mbstowcs=no
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 size_t len = -1;
16540 ac_cv_broken_mbstowcs=no
16544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
16559 # Check for --with-computed-gotos
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
16561 $as_echo_n "checking for --with-computed-gotos... " >&6; }
16563 # Check whether --with-computed-gotos was given.
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16574 if test "$withval" = no
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
16585 $as_echo "no value specified" >&6; }
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
16596 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
16598 ac_cv_computed_gotos=no
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 ac_cv_computed_gotos=no
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
16645 for h in `(cd $srcdir;echo Python/thread_*.h)`
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
16653 $as_echo_n "checking for build directories... " >&6; }
16654 for dir in $SRCDIRS; do
16655 if test ! -d $dir; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16662 # Availability of -O2:
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
16664 $as_echo_n "checking for -O2... " >&6; }
16666 CFLAGS="-O2"
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 have_O2=no
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5
16689 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
16690 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
16692 $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
16694 CFLAGS="-O2 -D_FORTIFY_SOURCE=2"
16695 if test "$have_O2" = no; then
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 have_glibc_memmove_bug=no
16725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
16741 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
16745 $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
16747 CFLAGS="-O2"
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 have_ipa_pure_const_bug=no
16776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
16792 # Check for stdatomic.h
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
16794 $as_echo_n "checking for stdatomic.h... " >&6; }
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 have_stdatomic_h=no
16816 rm -f core conftest.err conftest.$ac_objext \
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5
16828 # Check for GCC >= 4.7 __atomic builtins
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5
16830 $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; }
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 have_builtin_atomic=no
16848 rm -f core conftest.err conftest.$ac_objext \
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
16862 $as_echo_n "checking for ensurepip... " >&6; }
16864 # Check whether --with-ensurepip was given.
16876 no) :
16877 ENSUREPIP=no ;; #(
16879 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 have_dirent_d_type=no
16906 rm -f core conftest.err conftest.$ac_objext \
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
16919 $as_echo_n "checking for the Linux getrandom() syscall... " >&6; }
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
16942 have_getrandom_syscall=no
16944 rm -f core conftest.err conftest.$ac_objext \
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5
16956 # the test was written for the Solaris function of <sys/random.h>
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
16958 $as_echo_n "checking for the getrandom() function... " >&6; }
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* ignore the result, Python checks for ENOSYS at runtime */
16979 have_getrandom=no
16981 rm -f core conftest.err conftest.$ac_objext \
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5
16992 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
16997 $as_echo_n "checking for library containing shm_open... " >&6; }
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 for ac_lib in '' rt; do
17021 if test -z "$ac_lib"; then
17024 ac_res=-l$ac_lib
17025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17030 rm -f core conftest.err conftest.$ac_objext \
17039 ac_cv_search_shm_open=no
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
17047 if test "$ac_res" != no; then :
17052 if test "$ac_cv_search_shm_open" = "-lrt"; then
17057 for ac_header in sys/mman.h
17069 # temporarily override ac_includes_default for AC_CHECK_FUNCS below
17078 for ac_func in shm_open shm_unlink
17094 # Check for usable OpenSSL
17098 # Check whether --with-openssl was given.
17102 "" | y | ye | yes | n | no)
17103 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
17111 # if pkg-config is installed and openssl has installed a .pc file,
17113 if test -n "$ac_tool_prefix"; then
17114 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17115 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17117 $as_echo_n "checking for $ac_word... " >&6; }
17121 if test -n "$PKG_CONFIG"; then
17125 for as_dir in $PATH
17128 test -z "$as_dir" && as_dir=.
17129 for ac_exec_ext in '' $ac_executable_extensions; do
17131 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17142 if test -n "$PKG_CONFIG"; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17147 $as_echo "no" >&6; }
17152 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17154 # Extract the first word of "pkg-config", so it can be a program name with args.
17155 set dummy pkg-config; ac_word=$2
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17157 $as_echo_n "checking for $ac_word... " >&6; }
17161 if test -n "$ac_ct_PKG_CONFIG"; then
17165 for as_dir in $PATH
17168 test -z "$as_dir" && as_dir=.
17169 for ac_exec_ext in '' $ac_executable_extensions; do
17171 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17182 if test -n "$ac_ct_PKG_CONFIG"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet"…
17206 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17208 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17209 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17214 # no such luck; use some default ssldirs
17229 for ssldir in $ssldirs; do
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17231 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17232 if test -f "$ssldir/include/openssl/ssl.h"; then
17233 OPENSSL_INCLUDES="-I$ssldir/include"
17234 OPENSSL_LDFLAGS="-L$ssldir/lib"
17235 OPENSSL_LIBS="-lssl -lcrypto"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17246 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
17253 …{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL wo…
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17285 have_openssl=no
17288 rm -f core conftest.err conftest.$ac_objext \
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5
17301 $as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; }
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 ac_cv_has_x509_verify_param_set1_host=no
17338 rm -f core conftest.err conftest.$ac_objext \
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
17358 $as_echo_n "checking for --with-ssl-default-suites... " >&6; }
17360 # Check whether --with-ssl-default-suites was given.
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5
17396 …fig_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
17403 # scripts and configure runs, see configure's option --config-cache.
17407 # config.status only pays attention to the cache file if you give it
17408 # the --recheck option to rerun configure.
17417 # but we know of no workaround that is simple, portable, and efficient.
17422 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17427 …*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newlin…
17441 # `set' does not quote correctly, so add quotes: double-quote
17443 sed -n \
17449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17463 if test -w "$cache_file"; then
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17467 if test ! -f "$cache_file" || test -h "$cache_file"; then
17472 mv -f confcache "$cache_file"$$ &&
17473 mv -f "$cache_file"$$ "$cache_file" ;; #(
17475 mv -f confcache "$cache_file" ;;
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17484 rm -f confcache
17490 DEFS=-DHAVE_CONFIG_H
17495 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17511 : "${CONFIG_STATUS=./config.status}"
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17522 # Compiler output produced by configure, useful for debugging
17523 # configure, is in config.log if it exists.
17529 SHELL=\${CONFIG_SHELL-$SHELL}
17533 ## -------------------- ##
17535 ## -------------------- ##
17538 DUALCASE=1; export DUALCASE # for MKS sh
17539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17544 alias -g '${1+"$@"}'='"$@"'
17547 case `(set -o) 2>/dev/null` in #(
17549 set -o posix ;; #(
17564 # but without wasting forks for bash or zsh.
17565 if test -z "$BASH_VERSION$ZSH_VERSION" \
17566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17567 as_echo='print -r --'
17568 as_echo_n='print -rn --'
17573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17574 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17575 as_echo_n='/usr/ucb/echo -n'
17585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17588 as_echo_n='sh -c $as_echo_n_body as_echo'
17591 as_echo='sh -c $as_echo_body as_echo'
17597 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17598 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17606 # there to prevent editors from complaining about space-tab.
17611 # Find who we are. Look in the path if we contain no directory separator.
17616 for as_dir in $PATH
17619 test -z "$as_dir" && as_dir=.
17620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17631 if test ! -f "$as_myself"; then
17637 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17640 for as_var in BASH_ENV ENV MAIL MAILPATH
17659 # ----------------------------------------
17665 as_status=$1; test $as_status -eq 0 && as_status=1
17667 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17668 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17676 # -----------------------
17684 # -----------------
17685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17694 # ---------------
17702 # ----------------------
17720 # ------------------
17732 as_val=`expr "$@" || test $? -eq 1`
17744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17756 as_me=`$as_basename -- "$0" ||
17783 case `echo -n x` in #(((((
17784 -n*)
17792 ECHO_N='-n';;
17795 rm -f conf$$ conf$$.exe conf$$.file
17796 if test -d conf$$.dir; then
17797 rm -f conf$$.dir/conf$$.file
17799 rm -f conf$$.dir
17803 if ln -s conf$$.file conf$$ 2>/dev/null; then
17804 as_ln_s='ln -s'
17806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17808 # In both cases, we have to default to `cp -pR'.
17809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17810 as_ln_s='cp -pR'
17814 as_ln_s='cp -pR'
17817 as_ln_s='cp -pR'
17819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17824 # -------------
17830 -*) as_dir=./$as_dir;;
17832 test -d "$as_dir" || eval $as_mkdir_p || {
17840 as_dir=`$as_dirname -- "$as_dir" ||
17863 test -d "$as_dir" && break
17865 test -z "$as_dirs" || eval "mkdir $as_dirs"
17866 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17870 if mkdir -p . 2>/dev/null; then
17871 as_mkdir_p='mkdir -p "$as_dir"'
17873 test -d ./-p && rmdir ./-p
17879 # -----------------------
17883 test -f "$1" && test -x "$1"
17885 as_test_x='test -x'
17888 # Sed expression to map a string onto a valid CPP name.
17896 ## ----------------------------------- ##
17898 ## ----------------------------------- ##
17916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17931 # Files that config.status was made for.
17945 -h, --help print this help, then exit
17946 -V, --version print version number and configuration settings, then exit
17947 --config print configuration, then exit
17948 -q, --quiet, --silent
17950 -d, --debug don't remove temporary files
17951 --recheck update $as_me by reconfiguring in the same conditions
17952 --file=FILE[:TEMPLATE]
17954 --header=FILE[:TEMPLATE]
17969 python config.status 3.8
17974 This config.status script is free software; the Free Software Foundation
17981 test -n "\$AWK" || AWK=awk
17990 --*=?*)
17995 --*=)
18009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18013 --config | --confi | --conf | --con | --co | --c )
18015 --debug | --debu | --deb | --de | --d | -d )
18017 --file | --fil | --fi | --f )
18025 --header | --heade | --head | --hea )
18032 --he | --h)
18033 # Conflict between --help and --header
18035 Try \`$0 --help' for more information.";;
18036 --help | --hel | -h )
18038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18043 -*) as_fn_error $? "unrecognized option: \`$1'
18044 Try \`$0 --help' for more information." ;;
18057 ac_configure_extra_args="$ac_configure_extra_args --silent"
18063 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18073 exec 5>>config.log
18076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18089 for ac_config_target in $ac_config_targets
18099 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;;
18100 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;;
18110 # We use the long form for the default assignment because of an extremely
18117 # Have a temporary directory for convenience. Make it in the build tree
18118 # simply because there is no reason against having it here, and in addition,
18120 # Hook for its removal unless debugging.
18128 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18132 # Create a (secure) tmp directory for tmp files.
18135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18136 test -d "$tmp"
18139 tmp=./conf$$-$RANDOM
18144 # Set up the scripts for CONFIG_FILES section.
18145 # No need to generate them if there are no CONFIG_FILES.
18146 # This happens for instance with `./config.status config.h'.
18147 if test -n "$CONFIG_FILES"; then
18152 # But we know of no other shell where ac_cr would be empty at this
18174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18176 for ac_last_try in false false false false false :; do
18180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18189 rm -f conf$$subs.sh
18194 sed -n '
18237 rm -f conf$$subs.awk
18241 for (key in S) S_is_set[key] = 1
18250 for (i = 2; i < nfields; i++) {
18273 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18300 fi # test -n "$CONFIG_FILES"
18302 # Set up the scripts for CONFIG_HEADERS section.
18303 # No need to generate them if there are no CONFIG_HEADERS.
18304 # This happens for instance with `./config.status Makefile'.
18305 if test -n "$CONFIG_HEADERS"; then
18311 # here-document in config.status, that substitutes the proper values into
18312 # config.h.in to produce config.h.
18317 for ac_last_try in false false :; do
18318 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18319 if test -z "$ac_tt"; then
18328 # For the awk script, D is an array of macro values keyed by name,
18333 sed -n '
18373 for (key in D) D_is_set[key] = 1
18388 prefix = substr(line, 1, index(line, defundef) - 1)
18394 # Replace #undef with comments. This is necessary, for example,
18407 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18408 fi # test -n "$CONFIG_HEADERS"
18413 for ac_tag
18421 :[FH]-) ac_tag=-:-;;
18436 for ac_f
18439 -) ac_f="$ac_tmp/stdin";;
18440 *) # Look for the file first in the build tree, then in the source tree
18441 # (if the path is not absolute). The absolute path cannot be DOS-style,
18443 test -f "$ac_f" ||
18446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18456 # /* config.h. Generated by config.status. */
18460 if test x"$ac_file" != x-; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18474 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18480 ac_dir=`$as_dirname -- "$ac_file" ||
18510 # A ".." for each directory in $ac_dir_suffix.
18519 # for backward compatibility:
18570 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18573 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdi…
18574 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18611 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18615 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18617 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18618 …{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`…
18623 rm -f "$ac_tmp/stdin"
18625 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18626 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18634 if test x"$ac_file" != x-; then
18637 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18638 } >"$ac_tmp/config.h" \
18640 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18644 rm -f "$ac_file"
18645 mv "$ac_tmp/config.h" "$ac_file" \
18650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18651 || as_fn_error $? "could not create -" "$LINENO" 5
18663 done # for ac_tag
18674 # configure is writing to config.log, and then calls config.status.
18675 # config.status does its own redirection, appending to config.log.
18676 # Unfortunately, on DOS this fails, as config.log is still kept open
18677 # by configure, so config.status won't be able to write to it; its
18679 # effectively closing config.log, so it can be properly (re)opened and
18680 # appended to by config.status. When coming back to configure, we
18686 ac_config_status_args="$ac_config_status_args --quiet"
18689 exec 5>>config.log
18694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18701 if test ! -f Modules/Setup.local
18703 echo "# Edit this file for local setup changes" >Modules/Setup.local
18707 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
18708 -s Modules \
18710 mv config.c Modules
18712 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
18716 echo "please run ./configure --enable-optimizations" >&6