1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for python 3.7. 4# 5# Report bugs to <https://bugs.python.org/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if 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 --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 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' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.python.org/ about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 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 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 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' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='python' 582PACKAGE_TARNAME='python' 583PACKAGE_VERSION='3.7' 584PACKAGE_STRING='python 3.7' 585PACKAGE_BUGREPORT='https://bugs.python.org/' 586PACKAGE_URL='' 587 588ac_unique_file="Include/object.h" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='LTLIBOBJS 626OPENSSL_LDFLAGS 627OPENSSL_LIBS 628OPENSSL_INCLUDES 629ENSUREPIP 630SRCDIRS 631THREADHEADERS 632LIBPL 633PY_ENABLE_SHARED 634EXT_SUFFIX 635SOABI 636LIBC 637LIBM 638HAVE_GETHOSTBYNAME 639HAVE_GETHOSTBYNAME_R 640HAVE_GETHOSTBYNAME_R_3_ARG 641HAVE_GETHOSTBYNAME_R_5_ARG 642HAVE_GETHOSTBYNAME_R_6_ARG 643LIBOBJS 644TRUE 645MACHDEP_OBJS 646DYNLOADFILE 647DLINCLDIR 648DTRACE_OBJS 649DTRACE_HEADERS 650DFLAGS 651DTRACE 652LDLAST 653TCLTK_LIBS 654TCLTK_INCLUDES 655LIBFFI_INCLUDEDIR 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659SHLIBS 660CFLAGSFORSHARED 661LINKFORSHARED 662CCSHARED 663BLDSHARED 664LDCXXSHARED 665LDSHARED 666SHLIB_SUFFIX 667LIBTOOL_CRUFT 668OTHER_LIBTOOL_OPT 669UNIVERSAL_ARCH_FLAGS 670LDFLAGS_NODIST 671CFLAGS_NODIST 672BASECFLAGS 673CFLAGS_ALIASING 674OPT 675LLVM_PROF_FOUND 676LLVM_PROFDATA 677LLVM_PROF_ERR 678LLVM_PROF_FILE 679LLVM_PROF_MERGER 680PGO_PROF_USE_FLAG 681PGO_PROF_GEN_FLAG 682LLVM_AR_FOUND 683LLVM_AR 684DEF_MAKE_RULE 685DEF_MAKE_ALL_RULE 686ABIFLAGS 687LN 688MKDIR_P 689INSTALL_DATA 690INSTALL_SCRIPT 691INSTALL_PROGRAM 692ac_ct_READELF 693READELF 694ARFLAGS 695ac_ct_AR 696AR 697GNULD 698LINKCC 699LDVERSION 700RUNSHARED 701INSTSONAME 702LDLIBRARYDIR 703PY3LIBRARY 704BLDLIBRARY 705DLLLIBRARY 706LDLIBRARY 707LIBRARY 708BUILDEXEEXT 709EGREP 710NO_AS_NEEDED 711MULTIARCH_CPPFLAGS 712PLATFORM_TRIPLET 713MULTIARCH 714ac_ct_CXX 715MAINCC 716CXX 717SED 718GREP 719CPP 720OBJEXT 721EXEEXT 722ac_ct_CC 723CPPFLAGS 724LDFLAGS 725CFLAGS 726CC 727EXPORT_MACOSX_DEPLOYMENT_TARGET 728CONFIGURE_MACOSX_DEPLOYMENT_TARGET 729_PYTHON_HOST_PLATFORM 730MACHDEP 731FRAMEWORKINSTALLAPPSPREFIX 732FRAMEWORKUNIXTOOLSPREFIX 733FRAMEWORKPYTHONW 734FRAMEWORKALTINSTALLLAST 735FRAMEWORKALTINSTALLFIRST 736FRAMEWORKINSTALLLAST 737FRAMEWORKINSTALLFIRST 738PYTHONFRAMEWORKINSTALLDIR 739PYTHONFRAMEWORKPREFIX 740PYTHONFRAMEWORKDIR 741PYTHONFRAMEWORKIDENTIFIER 742PYTHONFRAMEWORK 743LIPO_32BIT_FLAGS 744ARCH_RUN_32BIT 745UNIVERSALSDK 746CONFIG_ARGS 747SOVERSION 748VERSION 749PYTHON_FOR_BUILD 750PYTHON_FOR_REGEN 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759HAS_GIT 760GITBRANCH 761GITTAG 762GITVERSION 763BASECPPFLAGS 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL' 802ac_subst_files='' 803ac_user_opts=' 804enable_option_checking 805enable_universalsdk 806with_universal_archs 807with_framework_name 808enable_framework 809with_gcc 810with_icc 811with_cxx_main 812with_suffix 813enable_shared 814enable_profiling 815with_pydebug 816with_assertions 817enable_optimizations 818with_lto 819with_hash_algorithm 820with_address_sanitizer 821with_memory_sanitizer 822with_undefined_behavior_sanitizer 823with_libs 824with_system_expat 825with_system_ffi 826with_system_libmpdec 827with_decimal_contextvar 828enable_loadable_sqlite_extensions 829with_tcltk_includes 830with_tcltk_libs 831with_dbmliborder 832enable_ipv6 833with_doc_strings 834with_pymalloc 835with_c_locale_coercion 836with_valgrind 837with_dtrace 838with_libm 839with_libc 840enable_big_digits 841with_computed_gotos 842with_ensurepip 843with_openssl 844with_ssl_default_suites 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849MACHDEP 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856PKG_CONFIG 857PKG_CONFIG_PATH 858PKG_CONFIG_LIBDIR' 859 860 861# Initialize some variables set by options. 862ac_init_help= 863ac_init_version=false 864ac_unrecognized_opts= 865ac_unrecognized_sep= 866# The variables have the same names as the options, with 867# dashes changed to underlines. 868cache_file=/dev/null 869exec_prefix=NONE 870no_create= 871no_recursion= 872prefix=NONE 873program_prefix=NONE 874program_suffix=NONE 875program_transform_name=s,x,x, 876silent= 877site= 878srcdir= 879verbose= 880x_includes=NONE 881x_libraries=NONE 882 883# Installation directory options. 884# These are left unexpanded so users can "make install exec_prefix=/foo" 885# and all the variables that are supposed to be based on exec_prefix 886# by default will actually change. 887# Use braces instead of parens because sh, perl, etc. also accept them. 888# (The list follows the same order as the GNU Coding Standards.) 889bindir='${exec_prefix}/bin' 890sbindir='${exec_prefix}/sbin' 891libexecdir='${exec_prefix}/libexec' 892datarootdir='${prefix}/share' 893datadir='${datarootdir}' 894sysconfdir='${prefix}/etc' 895sharedstatedir='${prefix}/com' 896localstatedir='${prefix}/var' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 # Accept the important Cygnus configure options, so we can diagnose typos. 927 928 case $ac_dashdash$ac_option in 929 --) 930 ac_dashdash=yes ;; 931 932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 933 ac_prev=bindir ;; 934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 935 bindir=$ac_optarg ;; 936 937 -build | --build | --buil | --bui | --bu) 938 ac_prev=build_alias ;; 939 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 940 build_alias=$ac_optarg ;; 941 942 -cache-file | --cache-file | --cache-fil | --cache-fi \ 943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 944 ac_prev=cache_file ;; 945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 947 cache_file=$ac_optarg ;; 948 949 --config-cache | -C) 950 cache_file=config.cache ;; 951 952 -datadir | --datadir | --datadi | --datad) 953 ac_prev=datadir ;; 954 -datadir=* | --datadir=* | --datadi=* | --datad=*) 955 datadir=$ac_optarg ;; 956 957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 958 | --dataroo | --dataro | --datar) 959 ac_prev=datarootdir ;; 960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 962 datarootdir=$ac_optarg ;; 963 964 -disable-* | --disable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=no ;; 979 980 -docdir | --docdir | --docdi | --doc | --do) 981 ac_prev=docdir ;; 982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 983 docdir=$ac_optarg ;; 984 985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 986 ac_prev=dvidir ;; 987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 988 dvidir=$ac_optarg ;; 989 990 -enable-* | --enable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=\$ac_optarg ;; 1005 1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1008 | --exec | --exe | --ex) 1009 ac_prev=exec_prefix ;; 1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1012 | --exec=* | --exe=* | --ex=*) 1013 exec_prefix=$ac_optarg ;; 1014 1015 -gas | --gas | --ga | --g) 1016 # Obsolete; use --with-gas. 1017 with_gas=yes ;; 1018 1019 -help | --help | --hel | --he | -h) 1020 ac_init_help=long ;; 1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1022 ac_init_help=recursive ;; 1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1024 ac_init_help=short ;; 1025 1026 -host | --host | --hos | --ho) 1027 ac_prev=host_alias ;; 1028 -host=* | --host=* | --hos=* | --ho=*) 1029 host_alias=$ac_optarg ;; 1030 1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1032 ac_prev=htmldir ;; 1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1034 | --ht=*) 1035 htmldir=$ac_optarg ;; 1036 1037 -includedir | --includedir | --includedi | --included | --include \ 1038 | --includ | --inclu | --incl | --inc) 1039 ac_prev=includedir ;; 1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1041 | --includ=* | --inclu=* | --incl=* | --inc=*) 1042 includedir=$ac_optarg ;; 1043 1044 -infodir | --infodir | --infodi | --infod | --info | --inf) 1045 ac_prev=infodir ;; 1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1047 infodir=$ac_optarg ;; 1048 1049 -libdir | --libdir | --libdi | --libd) 1050 ac_prev=libdir ;; 1051 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1052 libdir=$ac_optarg ;; 1053 1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1055 | --libexe | --libex | --libe) 1056 ac_prev=libexecdir ;; 1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1058 | --libexe=* | --libex=* | --libe=*) 1059 libexecdir=$ac_optarg ;; 1060 1061 -localedir | --localedir | --localedi | --localed | --locale) 1062 ac_prev=localedir ;; 1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1064 localedir=$ac_optarg ;; 1065 1066 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1067 | --localstate | --localstat | --localsta | --localst | --locals) 1068 ac_prev=localstatedir ;; 1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1071 localstatedir=$ac_optarg ;; 1072 1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1074 ac_prev=mandir ;; 1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1076 mandir=$ac_optarg ;; 1077 1078 -nfp | --nfp | --nf) 1079 # Obsolete; use --without-fp. 1080 with_fp=no ;; 1081 1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1083 | --no-cr | --no-c | -n) 1084 no_create=yes ;; 1085 1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1088 no_recursion=yes ;; 1089 1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1092 | --oldin | --oldi | --old | --ol | --o) 1093 ac_prev=oldincludedir ;; 1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1097 oldincludedir=$ac_optarg ;; 1098 1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1100 ac_prev=prefix ;; 1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1102 prefix=$ac_optarg ;; 1103 1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1105 | --program-pre | --program-pr | --program-p) 1106 ac_prev=program_prefix ;; 1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1109 program_prefix=$ac_optarg ;; 1110 1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1112 | --program-suf | --program-su | --program-s) 1113 ac_prev=program_suffix ;; 1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1116 program_suffix=$ac_optarg ;; 1117 1118 -program-transform-name | --program-transform-name \ 1119 | --program-transform-nam | --program-transform-na \ 1120 | --program-transform-n | --program-transform- \ 1121 | --program-transform | --program-transfor \ 1122 | --program-transfo | --program-transf \ 1123 | --program-trans | --program-tran \ 1124 | --progr-tra | --program-tr | --program-t) 1125 ac_prev=program_transform_name ;; 1126 -program-transform-name=* | --program-transform-name=* \ 1127 | --program-transform-nam=* | --program-transform-na=* \ 1128 | --program-transform-n=* | --program-transform-=* \ 1129 | --program-transform=* | --program-transfor=* \ 1130 | --program-transfo=* | --program-transf=* \ 1131 | --program-trans=* | --program-tran=* \ 1132 | --progr-tra=* | --program-tr=* | --program-t=*) 1133 program_transform_name=$ac_optarg ;; 1134 1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1136 ac_prev=pdfdir ;; 1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1138 pdfdir=$ac_optarg ;; 1139 1140 -psdir | --psdir | --psdi | --psd | --ps) 1141 ac_prev=psdir ;; 1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1143 psdir=$ac_optarg ;; 1144 1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1146 | -silent | --silent | --silen | --sile | --sil) 1147 silent=yes ;; 1148 1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1150 ac_prev=sbindir ;; 1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1152 | --sbi=* | --sb=*) 1153 sbindir=$ac_optarg ;; 1154 1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1157 | --sharedst | --shareds | --shared | --share | --shar \ 1158 | --sha | --sh) 1159 ac_prev=sharedstatedir ;; 1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1163 | --sha=* | --sh=*) 1164 sharedstatedir=$ac_optarg ;; 1165 1166 -site | --site | --sit) 1167 ac_prev=site ;; 1168 -site=* | --site=* | --sit=*) 1169 site=$ac_optarg ;; 1170 1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1172 ac_prev=srcdir ;; 1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1174 srcdir=$ac_optarg ;; 1175 1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1177 | --syscon | --sysco | --sysc | --sys | --sy) 1178 ac_prev=sysconfdir ;; 1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1181 sysconfdir=$ac_optarg ;; 1182 1183 -target | --target | --targe | --targ | --tar | --ta | --t) 1184 ac_prev=target_alias ;; 1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1186 target_alias=$ac_optarg ;; 1187 1188 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1189 verbose=yes ;; 1190 1191 -version | --version | --versio | --versi | --vers | -V) 1192 ac_init_version=: ;; 1193 1194 -with-* | --with-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=\$ac_optarg ;; 1209 1210 -without-* | --without-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid package name: $ac_useropt" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"with_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval with_$ac_useropt=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1245Try \`$0 --help' for more information" 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 case $ac_envvar in #( 1252 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1254 esac 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 as_fn_error $? "missing argument to $ac_option" 1272fi 1273 1274if test -n "$ac_unrecognized_opts"; then 1275 case $enable_option_checking in 1276 no) ;; 1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1279 esac 1280fi 1281 1282# Check all directory arguments for consistency. 1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir 1287do 1288 eval ac_val=\$$ac_var 1289 # Remove trailing slashes. 1290 case $ac_val in 1291 */ ) 1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1293 eval $ac_var=\$ac_val;; 1294 esac 1295 # Be sure to have absolute directory names. 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1301done 1302 1303# There might be people who depend on the old broken behavior: `$host' 1304# used to hold the argument of --host etc. 1305# FIXME: To remove some day. 1306build=$build_alias 1307host=$host_alias 1308target=$target_alias 1309 1310# FIXME: To remove some day. 1311if test "x$host_alias" != x; then 1312 if test "x$build_alias" = x; then 1313 cross_compiling=maybe 1314 elif test "x$build_alias" != "x$host_alias"; then 1315 cross_compiling=yes 1316 fi 1317fi 1318 1319ac_tool_prefix= 1320test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321 1322test "$silent" = yes && exec 6>/dev/null 1323 1324 1325ac_pwd=`pwd` && test -n "$ac_pwd" && 1326ac_ls_di=`ls -di .` && 1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328 as_fn_error $? "working directory cannot be determined" 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 as_fn_error $? "pwd does not report name of working directory" 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$as_myself" || 1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$as_myself" : 'X\(//\)[^/]' \| \ 1340 X"$as_myself" : 'X\(//\)$' \| \ 1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1342$as_echo X"$as_myself" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1374 pwd)` 1375# When building in place, set srcdir=. 1376if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378fi 1379# Remove unnecessary trailing slashes from srcdir. 1380# Double slashes in file names in object file debugging info 1381# mess up M-x gdb in Emacs. 1382case $srcdir in 1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384esac 1385for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390done 1391 1392# 1393# Report the --help message. 1394# 1395if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399\`configure' configures python 3.7 to adapt to many kinds of systems. 1400 1401Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406Defaults for the options are specified in brackets. 1407 1408Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking ...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425By default, \`make install' will install all the files in 1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428for instance \`--prefix=\$HOME'. 1429 1430For better control, use the options below. 1431 1432Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1448 --htmldir=DIR html documentation [DOCDIR] 1449 --dvidir=DIR dvi documentation [DOCDIR] 1450 --pdfdir=DIR pdf documentation [DOCDIR] 1451 --psdir=DIR ps documentation [DOCDIR] 1452_ACEOF 1453 1454 cat <<\_ACEOF 1455 1456System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459_ACEOF 1460fi 1461 1462if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of python 3.7:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468Optional Features: 1469 --disable-option-checking ignore unrecognized --enable/--with options 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-universalsdk[=SDKDIR] 1473 Build fat binary against Mac OS X SDK 1474 --enable-framework[=INSTALLDIR] 1475 Build (MacOSX|Darwin) framework 1476 --enable-shared disable/enable building shared python library 1477 --enable-profiling enable C-level code profiling 1478 --enable-optimizations Enable expensive, stable optimizations (PGO, etc). 1479 Disabled by default. 1480 --enable-loadable-sqlite-extensions 1481 support loadable extensions in _sqlite module 1482 --enable-ipv6 Enable ipv6 (with ipv4) support 1483 --disable-ipv6 Disable ipv6 support 1484 --enable-big-digits[=BITS] 1485 use big digits for Python longs [[BITS=30]] 1486 1487Optional Packages: 1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1490 --with-universal-archs=ARCH 1491 select architectures for universal build ("32-bit", 1492 "64-bit", "3-way", "intel", "intel-32", "intel-64", 1493 or "all") 1494 --with-framework-name=FRAMEWORK 1495 specify an alternate name of the framework built 1496 with --enable-framework 1497 --without-gcc never use gcc 1498 --with-icc build with icc 1499 --with-cxx-main=<compiler> 1500 compile main() and link python executable with C++ 1501 compiler 1502 --with-suffix=.exe set executable suffix 1503 --with-pydebug build with Py_DEBUG defined 1504 --with-assertions build with C assertions enabled 1505 --with-lto Enable Link Time Optimization in any build. Disabled 1506 by default. 1507 --with-hash-algorithm=[fnv|siphash24] 1508 select hash algorithm 1509 --with-address-sanitizer 1510 enable AddressSanitizer (asan) 1511 --with-memory-sanitizer enable MemorySanitizer (msan) 1512 --with-undefined-behavior-sanitizer 1513 enable UndefinedBehaviorSanitizer (ubsan) 1514 --with-libs='lib1 ...' link against additional libs 1515 --with-system-expat build pyexpat module using an installed expat 1516 library 1517 --with-system-ffi build _ctypes module using an installed ffi library 1518 --with-system-libmpdec build _decimal module using an installed libmpdec 1519 library 1520 --with-decimal-contextvar 1521 build _decimal module using a coroutine-local rather 1522 than a thread-local context (default is yes) 1523 --with-tcltk-includes='-I...' 1524 override search for Tcl and Tk include files 1525 --with-tcltk-libs='-L...' 1526 override search for Tcl and Tk libs 1527 --with-dbmliborder=db1:db2:... 1528 order to check db backends for dbm. Valid value is a 1529 colon separated string with the backend names 1530 `ndbm', `gdbm' and `bdb'. 1531 --with(out)-doc-strings disable/enable documentation strings 1532 --with(out)-pymalloc disable/enable specialized mallocs 1533 --with(out)-c-locale-coercion 1534 disable/enable C locale coercion to a UTF-8 based 1535 locale 1536 --with-valgrind Enable Valgrind support 1537 --with(out)-dtrace disable/enable DTrace support 1538 --with-libm=STRING math library 1539 --with-libc=STRING C library 1540 --with(out)-computed-gotos 1541 Use computed gotos in evaluation loop (enabled by 1542 default on supported compilers) 1543 --with(out)-ensurepip=[=upgrade] 1544 "install" or "upgrade" using bundled pip 1545 --with-openssl=DIR root of the OpenSSL directory 1546 --with-ssl-default-suites=[python|openssl|STRING] 1547 Override default cipher suites string, python: use 1548 Python's preferred selection (default), openssl: 1549 leave OpenSSL's defaults untouched, STRING: use a 1550 custom string, PROTOCOL_SSLv2 ignores the setting 1551 1552Some influential environment variables: 1553 MACHDEP name for machine-dependent library files 1554 CC C compiler command 1555 CFLAGS C compiler flags 1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1557 nonstandard directory <lib dir> 1558 LIBS libraries to pass to the linker, e.g. -l<library> 1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1560 you have headers in a nonstandard directory <include dir> 1561 CPP C preprocessor 1562 PKG_CONFIG path to pkg-config utility 1563 PKG_CONFIG_PATH 1564 directories to add to pkg-config's search path 1565 PKG_CONFIG_LIBDIR 1566 path overriding pkg-config's built-in search path 1567 1568Use these variables to override the choices made by `configure' or to help 1569it to find libraries and programs with nonstandard names/locations. 1570 1571Report bugs to <https://bugs.python.org/>. 1572_ACEOF 1573ac_status=$? 1574fi 1575 1576if test "$ac_init_help" = "recursive"; then 1577 # If there are subdirs, report their specific --help. 1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1579 test -d "$ac_dir" || 1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1581 continue 1582 ac_builddir=. 1583 1584case "$ac_dir" in 1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586*) 1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1588 # A ".." for each directory in $ac_dir_suffix. 1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1590 case $ac_top_builddir_sub in 1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1593 esac ;; 1594esac 1595ac_abs_top_builddir=$ac_pwd 1596ac_abs_builddir=$ac_pwd$ac_dir_suffix 1597# for backward compatibility: 1598ac_top_builddir=$ac_top_build_prefix 1599 1600case $srcdir in 1601 .) # We are building in place. 1602 ac_srcdir=. 1603 ac_top_srcdir=$ac_top_builddir_sub 1604 ac_abs_top_srcdir=$ac_pwd ;; 1605 [\\/]* | ?:[\\/]* ) # Absolute name. 1606 ac_srcdir=$srcdir$ac_dir_suffix; 1607 ac_top_srcdir=$srcdir 1608 ac_abs_top_srcdir=$srcdir ;; 1609 *) # Relative name. 1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1611 ac_top_srcdir=$ac_top_build_prefix$srcdir 1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1613esac 1614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1615 1616 cd "$ac_dir" || { ac_status=$?; continue; } 1617 # Check for guested configure. 1618 if test -f "$ac_srcdir/configure.gnu"; then 1619 echo && 1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1621 elif test -f "$ac_srcdir/configure"; then 1622 echo && 1623 $SHELL "$ac_srcdir/configure" --help=recursive 1624 else 1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1626 fi || ac_status=$? 1627 cd "$ac_pwd" || { ac_status=$?; break; } 1628 done 1629fi 1630 1631test -n "$ac_init_help" && exit $ac_status 1632if $ac_init_version; then 1633 cat <<\_ACEOF 1634python configure 3.7 1635generated by GNU Autoconf 2.69 1636 1637Copyright (C) 2012 Free Software Foundation, Inc. 1638This configure script is free software; the Free Software Foundation 1639gives unlimited permission to copy, distribute and modify it. 1640_ACEOF 1641 exit 1642fi 1643 1644## ------------------------ ## 1645## Autoconf initialization. ## 1646## ------------------------ ## 1647 1648# ac_fn_c_try_compile LINENO 1649# -------------------------- 1650# Try to compile conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_compile () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 rm -f conftest.$ac_objext 1655 if { { ac_try="$ac_compile" 1656case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_compile") 2>conftest.err 1663 ac_status=$? 1664 if test -s conftest.err; then 1665 grep -v '^ *+' conftest.err >conftest.er1 1666 cat conftest.er1 >&5 1667 mv -f conftest.er1 conftest.err 1668 fi 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } && { 1671 test -z "$ac_c_werror_flag" || 1672 test ! -s conftest.err 1673 } && test -s conftest.$ac_objext; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_compile 1685 1686# ac_fn_c_try_cpp LINENO 1687# ---------------------- 1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1689ac_fn_c_try_cpp () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_cpp conftest.$ac_ext" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } > conftest.i && { 1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: failed program was:" >&5 1714sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 1717fi 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_cpp 1722 1723# ac_fn_c_try_link LINENO 1724# ----------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. 1726ac_fn_c_try_link () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 rm -f conftest.$ac_objext conftest$ac_exeext 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>conftest.err 1738 ac_status=$? 1739 if test -s conftest.err; then 1740 grep -v '^ *+' conftest.err >conftest.er1 1741 cat conftest.er1 >&5 1742 mv -f conftest.er1 conftest.err 1743 fi 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1745 test $ac_status = 0; } && { 1746 test -z "$ac_c_werror_flag" || 1747 test ! -s conftest.err 1748 } && test -s conftest$ac_exeext && { 1749 test "$cross_compiling" = yes || 1750 test -x conftest$ac_exeext 1751 }; then : 1752 ac_retval=0 1753else 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=1 1758fi 1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1761 # interfere with the next link command; also delete a directory that is 1762 # left behind by Apple's compiler. We do this before executing the actions. 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_link 1768 1769# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1772# the include files in INCLUDES and setting the cache variable VAR 1773# accordingly. 1774ac_fn_c_check_header_mongrel () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 if eval \${$3+:} false; then : 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782fi 1783eval ac_res=\$$3 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1785$as_echo "$ac_res" >&6; } 1786else 1787 # Is the header compilable? 1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1789$as_echo_n "checking $2 usability... " >&6; } 1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792$4 1793#include <$2> 1794_ACEOF 1795if ac_fn_c_try_compile "$LINENO"; then : 1796 ac_header_compiler=yes 1797else 1798 ac_header_compiler=no 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1802$as_echo "$ac_header_compiler" >&6; } 1803 1804# Is the header present? 1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1806$as_echo_n "checking $2 presence... " >&6; } 1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_cpp "$LINENO"; then : 1812 ac_header_preproc=yes 1813else 1814 ac_header_preproc=no 1815fi 1816rm -f conftest.err conftest.i conftest.$ac_ext 1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1818$as_echo "$ac_header_preproc" >&6; } 1819 1820# So? What about this header? 1821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1822 yes:no: ) 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1824$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1826$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1827 ;; 1828 no:yes:* ) 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1830$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1832$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1834$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1836$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1838$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1839( $as_echo "## --------------------------------------- ## 1840## Report this to https://bugs.python.org/ ## 1841## --------------------------------------- ##" 1842 ) | sed "s/^/$as_me: WARNING: /" >&2 1843 ;; 1844esac 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1846$as_echo_n "checking for $2... " >&6; } 1847if eval \${$3+:} false; then : 1848 $as_echo_n "(cached) " >&6 1849else 1850 eval "$3=\$ac_header_compiler" 1851fi 1852eval ac_res=\$$3 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 1858} # ac_fn_c_check_header_mongrel 1859 1860# ac_fn_c_try_run LINENO 1861# ---------------------- 1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1863# that executables *can* be run. 1864ac_fn_c_try_run () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 if { { ac_try="$ac_link" 1868case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873$as_echo "$ac_try_echo"; } >&5 1874 (eval "$ac_link") 2>&5 1875 ac_status=$? 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1878 { { case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_try") 2>&5 1885 ac_status=$? 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; }; }; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: program exited with status $ac_status" >&5 1891 $as_echo "$as_me: failed program was:" >&5 1892sed 's/^/| /' conftest.$ac_ext >&5 1893 1894 ac_retval=$ac_status 1895fi 1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 as_fn_set_status $ac_retval 1899 1900} # ac_fn_c_try_run 1901 1902# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1903# ------------------------------------------------------- 1904# Tests whether HEADER exists and can be compiled using the include files in 1905# INCLUDES, setting the cache variable VAR accordingly. 1906ac_fn_c_check_header_compile () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916$4 1917#include <$2> 1918_ACEOF 1919if ac_fn_c_try_compile "$LINENO"; then : 1920 eval "$3=yes" 1921else 1922 eval "$3=no" 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_header_compile 1932 1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1934# ------------------------------------------- 1935# Tests whether TYPE exists after having included INCLUDES, setting cache 1936# variable VAR accordingly. 1937ac_fn_c_check_type () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 eval "$3=no" 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948$4 1949int 1950main () 1951{ 1952if (sizeof ($2)) 1953 return 0; 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO"; then : 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962int 1963main () 1964{ 1965if (sizeof (($2))) 1966 return 0; 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 1973else 1974 eval "$3=yes" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_type 1986 1987# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1988# -------------------------------------------- 1989# Tries to find the compile-time value of EXPR in a program that includes 1990# INCLUDES, setting VAR accordingly. Returns whether the value could be 1991# computed 1992ac_fn_c_compute_int () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if test "$cross_compiling" = yes; then 1996 # Depending upon the size, compute the lo and hi bounds. 1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$4 2000int 2001main () 2002{ 2003static int test_array [1 - 2 * !(($2) >= 0)]; 2004test_array [0] = 0; 2005return test_array [0]; 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 ac_lo=0 ac_mid=0 2013 while :; do 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2021test_array [0] = 0; 2022return test_array [0]; 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 ac_hi=$ac_mid; break 2030else 2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2032 if test $ac_lo -le $ac_mid; then 2033 ac_lo= ac_hi= 2034 break 2035 fi 2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2039 done 2040else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047static int test_array [1 - 2 * !(($2) < 0)]; 2048test_array [0] = 0; 2049return test_array [0]; 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 ac_hi=-1 ac_mid=-1 2057 while :; do 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main () 2063{ 2064static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2065test_array [0] = 0; 2066return test_array [0]; 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO"; then : 2073 ac_lo=$ac_mid; break 2074else 2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2076 if test $ac_mid -le $ac_hi; then 2077 ac_lo= ac_hi= 2078 break 2079 fi 2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083 done 2084else 2085 ac_lo= ac_hi= 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088fi 2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090# Binary search between lo and hi bounds. 2091while test "x$ac_lo" != "x$ac_hi"; do 2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2100test_array [0] = 0; 2101return test_array [0]; 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 ac_hi=$ac_mid 2109else 2110 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113done 2114case $ac_lo in #(( 2115?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2116'') ac_retval=1 ;; 2117esac 2118 else 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122static long int longval () { return $2; } 2123static unsigned long int ulongval () { return $2; } 2124#include <stdio.h> 2125#include <stdlib.h> 2126int 2127main () 2128{ 2129 2130 FILE *f = fopen ("conftest.val", "w"); 2131 if (! f) 2132 return 1; 2133 if (($2) < 0) 2134 { 2135 long int i = longval (); 2136 if (i != ($2)) 2137 return 1; 2138 fprintf (f, "%ld", i); 2139 } 2140 else 2141 { 2142 unsigned long int i = ulongval (); 2143 if (i != ($2)) 2144 return 1; 2145 fprintf (f, "%lu", i); 2146 } 2147 /* Do not output a trailing newline, as this causes \r\n confusion 2148 on some platforms. */ 2149 return ferror (f) || fclose (f) != 0; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_run "$LINENO"; then : 2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2157else 2158 ac_retval=1 2159fi 2160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2161 conftest.$ac_objext conftest.beam conftest.$ac_ext 2162rm -f conftest.val 2163 2164 fi 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2166 as_fn_set_status $ac_retval 2167 2168} # ac_fn_c_compute_int 2169 2170# ac_fn_c_check_func LINENO FUNC VAR 2171# ---------------------------------- 2172# Tests whether FUNC exists, setting the cache variable VAR accordingly 2173ac_fn_c_check_func () 2174{ 2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2177$as_echo_n "checking for $2... " >&6; } 2178if eval \${$3+:} false; then : 2179 $as_echo_n "(cached) " >&6 2180else 2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2182/* end confdefs.h. */ 2183/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2184 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2185#define $2 innocuous_$2 2186 2187/* System header to define __stub macros and hopefully few prototypes, 2188 which can conflict with char $2 (); below. 2189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2190 <limits.h> exists even on freestanding compilers. */ 2191 2192#ifdef __STDC__ 2193# include <limits.h> 2194#else 2195# include <assert.h> 2196#endif 2197 2198#undef $2 2199 2200/* Override any GCC internal prototype to avoid an error. 2201 Use char because int might match the return type of a GCC 2202 builtin and then its argument prototype would still apply. */ 2203#ifdef __cplusplus 2204extern "C" 2205#endif 2206char $2 (); 2207/* The GNU C library defines this for functions which it implements 2208 to always fail with ENOSYS. Some functions are actually named 2209 something starting with __ and the normal name is an alias. */ 2210#if defined __stub_$2 || defined __stub___$2 2211choke me 2212#endif 2213 2214int 2215main () 2216{ 2217return $2 (); 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_link "$LINENO"; then : 2223 eval "$3=yes" 2224else 2225 eval "$3=no" 2226fi 2227rm -f core conftest.err conftest.$ac_objext \ 2228 conftest$ac_exeext conftest.$ac_ext 2229fi 2230eval ac_res=\$$3 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2232$as_echo "$ac_res" >&6; } 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 2235} # ac_fn_c_check_func 2236 2237# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2238# --------------------------------------------- 2239# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2240# accordingly. 2241ac_fn_c_check_decl () 2242{ 2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2244 as_decl_name=`echo $2|sed 's/ *(.*//'` 2245 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2247$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2248if eval \${$3+:} false; then : 2249 $as_echo_n "(cached) " >&6 2250else 2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$4 2254int 2255main () 2256{ 2257#ifndef $as_decl_name 2258#ifdef __cplusplus 2259 (void) $as_decl_use; 2260#else 2261 (void) $as_decl_name; 2262#endif 2263#endif 2264 2265 ; 2266 return 0; 2267} 2268_ACEOF 2269if ac_fn_c_try_compile "$LINENO"; then : 2270 eval "$3=yes" 2271else 2272 eval "$3=no" 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276eval ac_res=\$$3 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2278$as_echo "$ac_res" >&6; } 2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2280 2281} # ac_fn_c_check_decl 2282 2283# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2284# ---------------------------------------------------- 2285# Tries to find if the field MEMBER exists in type AGGR, after including 2286# INCLUDES, setting cache variable VAR accordingly. 2287ac_fn_c_check_member () 2288{ 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2291$as_echo_n "checking for $2.$3... " >&6; } 2292if eval \${$4+:} false; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297$5 2298int 2299main () 2300{ 2301static $2 ac_aggr; 2302if (ac_aggr.$3) 2303return 0; 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_c_try_compile "$LINENO"; then : 2309 eval "$4=yes" 2310else 2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2312/* end confdefs.h. */ 2313$5 2314int 2315main () 2316{ 2317static $2 ac_aggr; 2318if (sizeof ac_aggr.$3) 2319return 0; 2320 ; 2321 return 0; 2322} 2323_ACEOF 2324if ac_fn_c_try_compile "$LINENO"; then : 2325 eval "$4=yes" 2326else 2327 eval "$4=no" 2328fi 2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2330fi 2331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2332fi 2333eval ac_res=\$$4 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2335$as_echo "$ac_res" >&6; } 2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2337 2338} # ac_fn_c_check_member 2339cat >config.log <<_ACEOF 2340This file contains any messages produced by compilers while 2341running configure, to aid debugging if configure makes a mistake. 2342 2343It was created by python $as_me 3.7, which was 2344generated by GNU Autoconf 2.69. Invocation command line was 2345 2346 $ $0 $@ 2347 2348_ACEOF 2349exec 5>>config.log 2350{ 2351cat <<_ASUNAME 2352## --------- ## 2353## Platform. ## 2354## --------- ## 2355 2356hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2357uname -m = `(uname -m) 2>/dev/null || echo unknown` 2358uname -r = `(uname -r) 2>/dev/null || echo unknown` 2359uname -s = `(uname -s) 2>/dev/null || echo unknown` 2360uname -v = `(uname -v) 2>/dev/null || echo unknown` 2361 2362/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2363/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2364 2365/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2366/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2367/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2368/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2369/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2370/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2371/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2372 2373_ASUNAME 2374 2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2376for as_dir in $PATH 2377do 2378 IFS=$as_save_IFS 2379 test -z "$as_dir" && as_dir=. 2380 $as_echo "PATH: $as_dir" 2381 done 2382IFS=$as_save_IFS 2383 2384} >&5 2385 2386cat >&5 <<_ACEOF 2387 2388 2389## ----------- ## 2390## Core tests. ## 2391## ----------- ## 2392 2393_ACEOF 2394 2395 2396# Keep a trace of the command line. 2397# Strip out --no-create and --no-recursion so they do not pile up. 2398# Strip out --silent because we don't want to record it for future runs. 2399# Also quote any args containing shell meta-characters. 2400# Make two passes to allow for proper duplicate-argument suppression. 2401ac_configure_args= 2402ac_configure_args0= 2403ac_configure_args1= 2404ac_must_keep_next=false 2405for ac_pass in 1 2 2406do 2407 for ac_arg 2408 do 2409 case $ac_arg in 2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2412 | -silent | --silent | --silen | --sile | --sil) 2413 continue ;; 2414 *\'*) 2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2416 esac 2417 case $ac_pass in 2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2419 2) 2420 as_fn_append ac_configure_args1 " '$ac_arg'" 2421 if test $ac_must_keep_next = true; then 2422 ac_must_keep_next=false # Got value, back to normal. 2423 else 2424 case $ac_arg in 2425 *=* | --config-cache | -C | -disable-* | --disable-* \ 2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2428 | -with-* | --with-* | -without-* | --without-* | --x) 2429 case "$ac_configure_args0 " in 2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2431 esac 2432 ;; 2433 -* ) ac_must_keep_next=true ;; 2434 esac 2435 fi 2436 as_fn_append ac_configure_args " '$ac_arg'" 2437 ;; 2438 esac 2439 done 2440done 2441{ ac_configure_args0=; unset ac_configure_args0;} 2442{ ac_configure_args1=; unset ac_configure_args1;} 2443 2444# When interrupted or exit'd, cleanup temporary files, and complete 2445# config.log. We remove comments because anyway the quotes in there 2446# would cause problems or look ugly. 2447# WARNING: Use '\'' to represent an apostrophe within the trap. 2448# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2449trap 'exit_status=$? 2450 # Save into config.log some information that might help in debugging. 2451 { 2452 echo 2453 2454 $as_echo "## ---------------- ## 2455## Cache variables. ## 2456## ---------------- ##" 2457 echo 2458 # The following way of writing the cache mishandles newlines in values, 2459( 2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2461 eval ac_val=\$$ac_var 2462 case $ac_val in #( 2463 *${as_nl}*) 2464 case $ac_var in #( 2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2467 esac 2468 case $ac_var in #( 2469 _ | IFS | as_nl) ;; #( 2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2471 *) { eval $ac_var=; unset $ac_var;} ;; 2472 esac ;; 2473 esac 2474 done 2475 (set) 2>&1 | 2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2477 *${as_nl}ac_space=\ *) 2478 sed -n \ 2479 "s/'\''/'\''\\\\'\'''\''/g; 2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2481 ;; #( 2482 *) 2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2484 ;; 2485 esac | 2486 sort 2487) 2488 echo 2489 2490 $as_echo "## ----------------- ## 2491## Output variables. ## 2492## ----------------- ##" 2493 echo 2494 for ac_var in $ac_subst_vars 2495 do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in 2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2499 esac 2500 $as_echo "$ac_var='\''$ac_val'\''" 2501 done | sort 2502 echo 2503 2504 if test -n "$ac_subst_files"; then 2505 $as_echo "## ------------------- ## 2506## File substitutions. ## 2507## ------------------- ##" 2508 echo 2509 for ac_var in $ac_subst_files 2510 do 2511 eval ac_val=\$$ac_var 2512 case $ac_val in 2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2514 esac 2515 $as_echo "$ac_var='\''$ac_val'\''" 2516 done | sort 2517 echo 2518 fi 2519 2520 if test -s confdefs.h; then 2521 $as_echo "## ----------- ## 2522## confdefs.h. ## 2523## ----------- ##" 2524 echo 2525 cat confdefs.h 2526 echo 2527 fi 2528 test "$ac_signal" != 0 && 2529 $as_echo "$as_me: caught signal $ac_signal" 2530 $as_echo "$as_me: exit $exit_status" 2531 } >&5 2532 rm -f core *.core core.conftest.* && 2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2534 exit $exit_status 2535' 0 2536for ac_signal in 1 2 13 15; do 2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2538done 2539ac_signal=0 2540 2541# confdefs.h avoids OS command line length limits that DEFS can exceed. 2542rm -f -r conftest* confdefs.h 2543 2544$as_echo "/* confdefs.h */" > confdefs.h 2545 2546# Predefined preprocessor variables. 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_NAME "$PACKAGE_NAME" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_VERSION "$PACKAGE_VERSION" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_STRING "$PACKAGE_STRING" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2566_ACEOF 2567 2568cat >>confdefs.h <<_ACEOF 2569#define PACKAGE_URL "$PACKAGE_URL" 2570_ACEOF 2571 2572 2573# Let the site file select an alternate cache file if it wants to. 2574# Prefer an explicitly selected file to automatically selected ones. 2575ac_site_file1=NONE 2576ac_site_file2=NONE 2577if test -n "$CONFIG_SITE"; then 2578 # We do not want a PATH search for config.site. 2579 case $CONFIG_SITE in #(( 2580 -*) ac_site_file1=./$CONFIG_SITE;; 2581 */*) ac_site_file1=$CONFIG_SITE;; 2582 *) ac_site_file1=./$CONFIG_SITE;; 2583 esac 2584elif test "x$prefix" != xNONE; then 2585 ac_site_file1=$prefix/share/config.site 2586 ac_site_file2=$prefix/etc/config.site 2587else 2588 ac_site_file1=$ac_default_prefix/share/config.site 2589 ac_site_file2=$ac_default_prefix/etc/config.site 2590fi 2591for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2592do 2593 test "x$ac_site_file" = xNONE && continue 2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2596$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2597 sed 's/^/| /' "$ac_site_file" >&5 2598 . "$ac_site_file" \ 2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601as_fn_error $? "failed to load site script $ac_site_file 2602See \`config.log' for more details" "$LINENO" 5; } 2603 fi 2604done 2605 2606if test -r "$cache_file"; then 2607 # Some versions of bash will fail to source /dev/null (special files 2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2611$as_echo "$as_me: loading cache $cache_file" >&6;} 2612 case $cache_file in 2613 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2614 *) . "./$cache_file";; 2615 esac 2616 fi 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2619$as_echo "$as_me: creating cache $cache_file" >&6;} 2620 >$cache_file 2621fi 2622 2623# Check that the precious variables saved in the cache have kept the same 2624# value. 2625ac_cache_corrupted=false 2626for ac_var in $ac_precious_vars; do 2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2628 eval ac_new_set=\$ac_env_${ac_var}_set 2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2630 eval ac_new_val=\$ac_env_${ac_var}_value 2631 case $ac_old_set,$ac_new_set in 2632 set,) 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2634$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2635 ac_cache_corrupted=: ;; 2636 ,set) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2638$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,);; 2641 *) 2642 if test "x$ac_old_val" != "x$ac_new_val"; then 2643 # differences in whitespace do not lead to failure. 2644 ac_old_val_w=`echo x $ac_old_val` 2645 ac_new_val_w=`echo x $ac_new_val` 2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2648$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2649 ac_cache_corrupted=: 2650 else 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2652$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2653 eval $ac_var=\$ac_old_val 2654 fi 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2656$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2658$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2659 fi;; 2660 esac 2661 # Pass precious variables to config.status. 2662 if test "$ac_new_set" = set; then 2663 case $ac_new_val in 2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2665 *) ac_arg=$ac_var=$ac_new_val ;; 2666 esac 2667 case " $ac_configure_args " in 2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2670 esac 2671 fi 2672done 2673if $ac_cache_corrupted; then 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2677$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2679fi 2680## -------------------- ## 2681## Main body of script. ## 2682## -------------------- ## 2683 2684ac_ext=c 2685ac_cpp='$CPP $CPPFLAGS' 2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2688ac_compiler_gnu=$ac_cv_c_compiler_gnu 2689 2690 2691 2692 2693 2694 2695if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 2696 # If we're building out-of-tree, we need to make sure the following 2697 # resources get picked up before their $srcdir counterparts. 2698 # Objects/ -> typeslots.inc 2699 # Include/ -> Python-ast.h, graminit.h 2700 # Python/ -> importlib.h 2701 # (A side effect of this is that these resources will automatically be 2702 # regenerated when building out-of-tree, regardless of whether or not 2703 # the $srcdir counterpart is up-to-date. This is an acceptable trade 2704 # off.) 2705 BASECPPFLAGS="-IObjects -IInclude -IPython" 2706else 2707 BASECPPFLAGS="" 2708fi 2709 2710 2711 2712 2713 2714if test -e $srcdir/.git 2715then 2716# Extract the first word of "git", so it can be a program name with args. 2717set dummy git; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_HAS_GIT+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$HAS_GIT"; then 2724 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_HAS_GIT="found" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 2742fi 2743fi 2744HAS_GIT=$ac_cv_prog_HAS_GIT 2745if test -n "$HAS_GIT"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 2747$as_echo "$HAS_GIT" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 2754else 2755HAS_GIT=no-repository 2756fi 2757if test $HAS_GIT = found 2758then 2759 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 2760 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 2761 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 2762else 2763 GITVERSION="" 2764 GITTAG="" 2765 GITBRANCH="" 2766fi 2767 2768 2769ac_config_headers="$ac_config_headers pyconfig.h" 2770 2771 2772ac_aux_dir= 2773for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2774 if test -f "$ac_dir/install-sh"; then 2775 ac_aux_dir=$ac_dir 2776 ac_install_sh="$ac_aux_dir/install-sh -c" 2777 break 2778 elif test -f "$ac_dir/install.sh"; then 2779 ac_aux_dir=$ac_dir 2780 ac_install_sh="$ac_aux_dir/install.sh -c" 2781 break 2782 elif test -f "$ac_dir/shtool"; then 2783 ac_aux_dir=$ac_dir 2784 ac_install_sh="$ac_aux_dir/shtool install -c" 2785 break 2786 fi 2787done 2788if test -z "$ac_aux_dir"; then 2789 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2790fi 2791 2792# These three variables are undocumented and unsupported, 2793# and are intended to be withdrawn in a future Autoconf release. 2794# They can cause serious problems if a builder's source tree is in a directory 2795# whose full name contains unusual characters. 2796ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2797ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2798ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2799 2800 2801# Make sure we can run config.sub. 2802$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2803 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2804 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2806$as_echo_n "checking build system type... " >&6; } 2807if ${ac_cv_build+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 ac_build_alias=$build_alias 2811test "x$ac_build_alias" = x && 2812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2813test "x$ac_build_alias" = x && 2814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2815ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2817 2818fi 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2820$as_echo "$ac_cv_build" >&6; } 2821case $ac_cv_build in 2822*-*-*) ;; 2823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2824esac 2825build=$ac_cv_build 2826ac_save_IFS=$IFS; IFS='-' 2827set x $ac_cv_build 2828shift 2829build_cpu=$1 2830build_vendor=$2 2831shift; shift 2832# Remember, the first character of IFS is used to create $*, 2833# except with old shells: 2834build_os=$* 2835IFS=$ac_save_IFS 2836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2837 2838 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2840$as_echo_n "checking host system type... " >&6; } 2841if ${ac_cv_host+:} false; then : 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test "x$host_alias" = x; then 2845 ac_cv_host=$ac_cv_build 2846else 2847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2849fi 2850 2851fi 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2853$as_echo "$ac_cv_host" >&6; } 2854case $ac_cv_host in 2855*-*-*) ;; 2856*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2857esac 2858host=$ac_cv_host 2859ac_save_IFS=$IFS; IFS='-' 2860set x $ac_cv_host 2861shift 2862host_cpu=$1 2863host_vendor=$2 2864shift; shift 2865# Remember, the first character of IFS is used to create $*, 2866# except with old shells: 2867host_os=$* 2868IFS=$ac_save_IFS 2869case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2870 2871 2872 2873 2874 2875# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2876rm -f pybuilddir.txt 2877 2878for ac_prog in python$PACKAGE_VERSION python3 python 2879do 2880 # Extract the first word of "$ac_prog", so it can be a program name with args. 2881set dummy $ac_prog; ac_word=$2 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883$as_echo_n "checking for $ac_word... " >&6; } 2884if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test -n "$PYTHON_FOR_REGEN"; then 2888 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2897 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902 done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 2908if test -n "$PYTHON_FOR_REGEN"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 2910$as_echo "$PYTHON_FOR_REGEN" >&6; } 2911else 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913$as_echo "no" >&6; } 2914fi 2915 2916 2917 test -n "$PYTHON_FOR_REGEN" && break 2918done 2919test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 2920 2921 2922 2923if test "$cross_compiling" = yes; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2925$as_echo_n "checking for python interpreter for cross build... " >&6; } 2926 if test -z "$PYTHON_FOR_BUILD"; then 2927 for interp in python$PACKAGE_VERSION python3 python; do 2928 which $interp >/dev/null 2>&1 || continue 2929 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then 2930 break 2931 fi 2932 interp= 2933 done 2934 if test x$interp = x; then 2935 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2936 fi 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2938$as_echo "$interp" >&6; } 2939 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp 2940 fi 2941elif test "$cross_compiling" = maybe; then 2942 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2943else 2944 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2945fi 2946 2947 2948 2949if test "$prefix" != "/"; then 2950 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2951fi 2952 2953 2954 2955 2956# We don't use PACKAGE_ variables, and they cause conflicts 2957# with other autoconf-based packages that include Python.h 2958grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 2959rm confdefs.h 2960mv confdefs.h.new confdefs.h 2961 2962 2963VERSION=3.7 2964 2965# Version number of Python's own shared library file. 2966 2967SOVERSION=1.0 2968 2969# The later defininition of _XOPEN_SOURCE disables certain features 2970# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 2971 2972$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 2973 2974 2975# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2976# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 2977# them. 2978 2979$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 2980 2981 2982# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2983# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 2984# them. 2985 2986$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 2987 2988 2989# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2990# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 2991# them. 2992 2993$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 2994 2995 2996 2997define_xopen_source=yes 2998 2999# Arguments passed to configure. 3000 3001CONFIG_ARGS="$ac_configure_args" 3002 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3004$as_echo_n "checking for --enable-universalsdk... " >&6; } 3005# Check whether --enable-universalsdk was given. 3006if test "${enable_universalsdk+set}" = set; then : 3007 enableval=$enable_universalsdk; 3008 case $enableval in 3009 yes) 3010 # Locate the best usable SDK, see Mac/README for more 3011 # information 3012 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3013 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3014 then 3015 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3016 if test ! -d "${enableval}" 3017 then 3018 enableval=/ 3019 fi 3020 fi 3021 ;; 3022 esac 3023 case $enableval in 3024 no) 3025 UNIVERSALSDK= 3026 enable_universalsdk= 3027 ;; 3028 *) 3029 UNIVERSALSDK=$enableval 3030 if test ! -d "${UNIVERSALSDK}" 3031 then 3032 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3033 fi 3034 ;; 3035 esac 3036 3037 3038else 3039 3040 UNIVERSALSDK= 3041 enable_universalsdk= 3042 3043fi 3044 3045if test -n "${UNIVERSALSDK}" 3046then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3048$as_echo "${UNIVERSALSDK}" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 3055 3056ARCH_RUN_32BIT="" 3057 3058# For backward compatibility reasons we prefer to select '32-bit' if available, 3059# otherwise use 'intel' 3060UNIVERSAL_ARCHS="32-bit" 3061if test "`uname -s`" = "Darwin" 3062then 3063 if test -n "${UNIVERSALSDK}" 3064 then 3065 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 3066 then 3067 UNIVERSAL_ARCHS="intel" 3068 fi 3069 fi 3070fi 3071 3072 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3074$as_echo_n "checking for --with-universal-archs... " >&6; } 3075 3076# Check whether --with-universal-archs was given. 3077if test "${with_universal_archs+set}" = set; then : 3078 withval=$with_universal_archs; 3079 UNIVERSAL_ARCHS="$withval" 3080 3081fi 3082 3083if test -n "${UNIVERSALSDK}" 3084then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 3086$as_echo "${UNIVERSAL_ARCHS}" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 3093# Check whether --with-framework-name was given. 3094if test "${with_framework_name+set}" = set; then : 3095 withval=$with_framework_name; 3096 PYTHONFRAMEWORK=${withval} 3097 PYTHONFRAMEWORKDIR=${withval}.framework 3098 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3099 3100else 3101 3102 PYTHONFRAMEWORK=Python 3103 PYTHONFRAMEWORKDIR=Python.framework 3104 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3105 3106fi 3107 3108# Check whether --enable-framework was given. 3109if test "${enable_framework+set}" = set; then : 3110 enableval=$enable_framework; 3111 case $enableval in 3112 yes) 3113 enableval=/Library/Frameworks 3114 esac 3115 case $enableval in 3116 no) 3117 PYTHONFRAMEWORK= 3118 PYTHONFRAMEWORKDIR=no-framework 3119 PYTHONFRAMEWORKPREFIX= 3120 PYTHONFRAMEWORKINSTALLDIR= 3121 FRAMEWORKINSTALLFIRST= 3122 FRAMEWORKINSTALLLAST= 3123 FRAMEWORKALTINSTALLFIRST= 3124 FRAMEWORKALTINSTALLLAST= 3125 FRAMEWORKPYTHONW= 3126 if test "x${prefix}" = "xNONE"; then 3127 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3128 else 3129 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3130 fi 3131 enable_framework= 3132 ;; 3133 *) 3134 PYTHONFRAMEWORKPREFIX="${enableval}" 3135 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3136 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3137 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " 3138 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3139 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3140 FRAMEWORKPYTHONW="frameworkpythonw" 3141 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3142 3143 if test "x${prefix}" = "xNONE" ; then 3144 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3145 3146 else 3147 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3148 fi 3149 3150 case "${enableval}" in 3151 /System*) 3152 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3153 if test "${prefix}" = "NONE" ; then 3154 # See below 3155 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3156 fi 3157 ;; 3158 3159 /Library*) 3160 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3161 ;; 3162 3163 */Library/Frameworks) 3164 MDIR="`dirname "${enableval}"`" 3165 MDIR="`dirname "${MDIR}"`" 3166 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3167 3168 if test "${prefix}" = "NONE"; then 3169 # User hasn't specified the 3170 # --prefix option, but wants to install 3171 # the framework in a non-default location, 3172 # ensure that the compatibility links get 3173 # installed relative to that prefix as well 3174 # instead of in /usr/local. 3175 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3176 fi 3177 ;; 3178 3179 *) 3180 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3181 ;; 3182 esac 3183 3184 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3185 3186 # Add files for Mac specific code to the list of output 3187 # files: 3188 ac_config_files="$ac_config_files Mac/Makefile" 3189 3190 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3191 3192 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3193 3194 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3195 3196 esac 3197 3198else 3199 3200 PYTHONFRAMEWORK= 3201 PYTHONFRAMEWORKDIR=no-framework 3202 PYTHONFRAMEWORKPREFIX= 3203 PYTHONFRAMEWORKINSTALLDIR= 3204 FRAMEWORKINSTALLFIRST= 3205 FRAMEWORKINSTALLLAST= 3206 FRAMEWORKALTINSTALLFIRST= 3207 FRAMEWORKALTINSTALLLAST= 3208 FRAMEWORKPYTHONW= 3209 if test "x${prefix}" = "xNONE" ; then 3210 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3211 else 3212 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3213 fi 3214 enable_framework= 3215 3216 3217fi 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233cat >>confdefs.h <<_ACEOF 3234#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" 3235_ACEOF 3236 3237 3238##AC_ARG_WITH(dyld, 3239## AS_HELP_STRING([--with-dyld], 3240## [Use (OpenStep|Rhapsody) dynamic linker])) 3241## 3242# Set name for machine-dependent library files 3243 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3245$as_echo_n "checking MACHDEP... " >&6; } 3246if test -z "$MACHDEP" 3247then 3248 # avoid using uname for cross builds 3249 if test "$cross_compiling" = yes; then 3250 # ac_sys_system and ac_sys_release are used for setting 3251 # a lot of different things including 'define_xopen_source' 3252 # in the case statement below. 3253 case "$host" in 3254 *-*-linux-android*) 3255 ac_sys_system=Linux-android 3256 ;; 3257 *-*-linux*) 3258 ac_sys_system=Linux 3259 ;; 3260 *-*-cygwin*) 3261 ac_sys_system=Cygwin 3262 ;; 3263 *) 3264 # for now, limit cross builds to known configurations 3265 MACHDEP="unknown" 3266 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3267 esac 3268 ac_sys_release= 3269 else 3270 ac_sys_system=`uname -s` 3271 if test "$ac_sys_system" = "AIX" \ 3272 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3273 ac_sys_release=`uname -v` 3274 else 3275 ac_sys_release="6.3-DPORTS" 3276 fi 3277 fi 3278 ac_md_system=`echo $ac_sys_system | 3279 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3280 ac_md_release=`echo $ac_sys_release | 3281 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3282 MACHDEP="$ac_md_system$ac_md_release" 3283 3284 case $MACHDEP in 3285 linux*) MACHDEP="linux";; 3286 cygwin*) MACHDEP="cygwin";; 3287 darwin*) MACHDEP="darwin";; 3288 '') MACHDEP="unknown";; 3289 esac 3290fi 3291 3292 3293if test "$cross_compiling" = yes; then 3294 case "$host" in 3295 *-*-linux*) 3296 case "$host_cpu" in 3297 arm*) 3298 _host_cpu=arm 3299 ;; 3300 *) 3301 _host_cpu=$host_cpu 3302 esac 3303 ;; 3304 *-*-cygwin*) 3305 _host_cpu= 3306 ;; 3307 *) 3308 # for now, limit cross builds to known configurations 3309 MACHDEP="unknown" 3310 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3311 esac 3312 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3313fi 3314 3315# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3316# disable features if it is defined, without any means to access these 3317# features as extensions. For these systems, we skip the definition of 3318# _XOPEN_SOURCE. Before adding a system to the list to gain access to 3319# some feature, make sure there is no alternative way to access this 3320# feature. Also, when using wildcards, make sure you have verified the 3321# need for not defining _XOPEN_SOURCE on all systems matching the 3322# wildcard, and that the wildcard does not include future systems 3323# (which may remove their limitations). 3324case $ac_sys_system/$ac_sys_release in 3325 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3326 # even though select is a POSIX function. Reported by J. Ribbens. 3327 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3328 # In addition, Stefan Krah confirms that issue #1244610 exists through 3329 # OpenBSD 4.6, but is fixed in 4.7. 3330 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3331 define_xopen_source=no 3332 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3333 # also defined. This can be overridden by defining _BSD_SOURCE 3334 # As this has a different meaning on Linux, only define it on OpenBSD 3335 3336$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3337 3338 ;; 3339 OpenBSD/*) 3340 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3341 # also defined. This can be overridden by defining _BSD_SOURCE 3342 # As this has a different meaning on Linux, only define it on OpenBSD 3343 3344$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3345 3346 ;; 3347 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3348 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3349 # Marc Recht 3350 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3351 define_xopen_source=no;; 3352 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3353 # request to enable features supported by the standard as a request 3354 # to disable features not supported by the standard. The best way 3355 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3356 # entirely and define __EXTENSIONS__ instead. 3357 SunOS/*) 3358 define_xopen_source=no;; 3359 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3360 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3361 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3362 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3363 define_xopen_source=no;; 3364 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3365 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3366 SCO_SV/3.2) 3367 define_xopen_source=no;; 3368 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3369 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3370 # identifies itself as Darwin/7.* 3371 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3372 # disables platform specific features beyond repair. 3373 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3374 # has no effect, don't bother defining them 3375 Darwin/[6789].*) 3376 define_xopen_source=no;; 3377 Darwin/[12][0-9].*) 3378 define_xopen_source=no;; 3379 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3380 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3381 # or has another value. By not (re)defining it, the defaults come in place. 3382 AIX/4) 3383 define_xopen_source=no;; 3384 AIX/5) 3385 if test "6.3-DPORTS" -eq 1; then 3386 define_xopen_source=no 3387 fi 3388 ;; 3389 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3390 # defining NI_NUMERICHOST. 3391 QNX/6.3.2) 3392 define_xopen_source=no 3393 ;; 3394 3395esac 3396 3397if test $define_xopen_source = yes 3398then 3399 # X/Open 7, incorporating POSIX.1-2008 3400 3401$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h 3402 3403 3404 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3405 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3406 # several APIs are not declared. Since this is also needed in some 3407 # cases for HP-UX, we define it globally. 3408 3409$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3410 3411 3412 3413$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 3414 3415fi 3416 3417# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 3418case $ac_sys_system in 3419 hp*|HP*) 3420 define_stdc_a1=yes;; 3421 *) 3422 define_stdc_a1=no;; 3423esac 3424 3425if test $define_stdc_a1 = yes 3426then 3427 3428$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 3429 3430fi 3431 3432# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3433# it may influence the way we can build extensions, so distutils 3434# needs to check it 3435 3436 3437CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3438EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3439 3440# checks for alternative programs 3441 3442# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3443# for debug/optimization stuff. BASECFLAGS is for flags that are required 3444# just to get things to compile and link. Users are free to override OPT 3445# when running configure or make. The build should not break if they do. 3446# BASECFLAGS should generally not be messed with, however. 3447 3448# XXX shouldn't some/most/all of this code be merged with the stuff later 3449# on that fiddles with OPT and BASECFLAGS? 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 3451$as_echo_n "checking for --without-gcc... " >&6; } 3452 3453# Check whether --with-gcc was given. 3454if test "${with_gcc+set}" = set; then : 3455 withval=$with_gcc; 3456 case $withval in 3457 no) CC=${CC:-cc} 3458 without_gcc=yes;; 3459 yes) CC=gcc 3460 without_gcc=no;; 3461 *) CC=$withval 3462 without_gcc=$withval;; 3463 esac 3464else 3465 3466 case $ac_sys_system in 3467 AIX*) CC=${CC:-xlc_r} 3468 without_gcc=;; 3469 *) without_gcc=no;; 3470 esac 3471fi 3472 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 3474$as_echo "$without_gcc" >&6; } 3475 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 3477$as_echo_n "checking for --with-icc... " >&6; } 3478 3479# Check whether --with-icc was given. 3480if test "${with_icc+set}" = set; then : 3481 withval=$with_icc; 3482 case $withval in 3483 no) CC=${CC:-cc} 3484 with_icc=no;; 3485 yes) CC=icc 3486 CXX=icpc 3487 with_icc=yes;; 3488 *) CC=$withval 3489 with_icc=$withval;; 3490 esac 3491else 3492 3493 with_icc=no 3494fi 3495 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 3497$as_echo "$with_icc" >&6; } 3498 3499# If the user switches compilers, we can't believe the cache 3500if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3501then 3502 as_fn_error $? "cached CC is different -- throw away $cache_file 3503(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3504fi 3505 3506# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 3507# when the compiler supports them, but we don't always want -O2, and 3508# we set -g later. 3509if test -z "$CFLAGS"; then 3510 CFLAGS= 3511fi 3512 3513if test "$ac_sys_system" = "Darwin" 3514then 3515 # Compiler selection on MacOSX is more complicated than 3516 # AC_PROG_CC can handle, see Mac/README for more 3517 # information 3518 if test -z "${CC}" 3519 then 3520 found_gcc= 3521 found_clang= 3522 as_save_IFS=$IFS; IFS=: 3523 for as_dir in $PATH 3524 do 3525 IFS=$as_save_IFS 3526 if test -x "${as_dir}/gcc"; then 3527 if test -z "${found_gcc}"; then 3528 found_gcc="${as_dir}/gcc" 3529 fi 3530 fi 3531 if test -x "${as_dir}/clang"; then 3532 if test -z "${found_clang}"; then 3533 found_clang="${as_dir}/clang" 3534 fi 3535 fi 3536 done 3537 IFS=$as_save_IFS 3538 3539 if test -n "$found_gcc" -a -n "$found_clang" 3540 then 3541 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 3542 then 3543 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 3544$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 3545 CC="$found_clang" 3546 CXX="$found_clang++" 3547 fi 3548 3549 3550 elif test -z "$found_gcc" -a -n "$found_clang" 3551 then 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 3553$as_echo "$as_me: No GCC found, use CLANG" >&6;} 3554 CC="$found_clang" 3555 CXX="$found_clang++" 3556 3557 elif test -z "$found_gcc" -a -z "$found_clang" 3558 then 3559 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 3560 if test -n "${found_clang}" 3561 then 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 3563$as_echo "$as_me: Using clang from Xcode.app" >&6;} 3564 CC="${found_clang}" 3565 CXX="`/usr/bin/xcrun -find clang++`" 3566 3567 # else: use default behaviour 3568 fi 3569 fi 3570 fi 3571fi 3572ac_ext=c 3573ac_cpp='$CPP $CPPFLAGS' 3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577if test -n "$ac_tool_prefix"; then 3578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3579set dummy ${ac_tool_prefix}gcc; ac_word=$2 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3581$as_echo_n "checking for $ac_word... " >&6; } 3582if ${ac_cv_prog_CC+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 if test -n "$CC"; then 3586 ac_cv_prog_CC="$CC" # Let the user override the test. 3587else 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 3591 IFS=$as_save_IFS 3592 test -z "$as_dir" && as_dir=. 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3597 break 2 3598 fi 3599done 3600 done 3601IFS=$as_save_IFS 3602 3603fi 3604fi 3605CC=$ac_cv_prog_CC 3606if test -n "$CC"; then 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3608$as_echo "$CC" >&6; } 3609else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611$as_echo "no" >&6; } 3612fi 3613 3614 3615fi 3616if test -z "$ac_cv_prog_CC"; then 3617 ac_ct_CC=$CC 3618 # Extract the first word of "gcc", so it can be a program name with args. 3619set dummy gcc; ac_word=$2 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3621$as_echo_n "checking for $ac_word... " >&6; } 3622if ${ac_cv_prog_ac_ct_CC+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 if test -n "$ac_ct_CC"; then 3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3627else 3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629for as_dir in $PATH 3630do 3631 IFS=$as_save_IFS 3632 test -z "$as_dir" && as_dir=. 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3635 ac_cv_prog_ac_ct_CC="gcc" 3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639done 3640 done 3641IFS=$as_save_IFS 3642 3643fi 3644fi 3645ac_ct_CC=$ac_cv_prog_ac_ct_CC 3646if test -n "$ac_ct_CC"; then 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3648$as_echo "$ac_ct_CC" >&6; } 3649else 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3651$as_echo "no" >&6; } 3652fi 3653 3654 if test "x$ac_ct_CC" = x; then 3655 CC="" 3656 else 3657 case $cross_compiling:$ac_tool_warned in 3658yes:) 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3661ac_tool_warned=yes ;; 3662esac 3663 CC=$ac_ct_CC 3664 fi 3665else 3666 CC="$ac_cv_prog_CC" 3667fi 3668 3669if test -z "$CC"; then 3670 if test -n "$ac_tool_prefix"; then 3671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3672set dummy ${ac_tool_prefix}cc; ac_word=$2 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674$as_echo_n "checking for $ac_word... " >&6; } 3675if ${ac_cv_prog_CC+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 if test -n "$CC"; then 3679 ac_cv_prog_CC="$CC" # Let the user override the test. 3680else 3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3682for as_dir in $PATH 3683do 3684 IFS=$as_save_IFS 3685 test -z "$as_dir" && as_dir=. 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3688 ac_cv_prog_CC="${ac_tool_prefix}cc" 3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692done 3693 done 3694IFS=$as_save_IFS 3695 3696fi 3697fi 3698CC=$ac_cv_prog_CC 3699if test -n "$CC"; then 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701$as_echo "$CC" >&6; } 3702else 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704$as_echo "no" >&6; } 3705fi 3706 3707 3708 fi 3709fi 3710if test -z "$CC"; then 3711 # Extract the first word of "cc", so it can be a program name with args. 3712set dummy cc; ac_word=$2 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3714$as_echo_n "checking for $ac_word... " >&6; } 3715if ${ac_cv_prog_CC+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720else 3721 ac_prog_rejected=no 3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3723for as_dir in $PATH 3724do 3725 IFS=$as_save_IFS 3726 test -z "$as_dir" && as_dir=. 3727 for ac_exec_ext in '' $ac_executable_extensions; do 3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3730 ac_prog_rejected=yes 3731 continue 3732 fi 3733 ac_cv_prog_CC="cc" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741if test $ac_prog_rejected = yes; then 3742 # We found a bogon in the path, so make sure we never use it. 3743 set dummy $ac_cv_prog_CC 3744 shift 3745 if test $# != 0; then 3746 # We chose a different compiler from the bogus one. 3747 # However, it has the same basename, so the bogon will be chosen 3748 # first if we set CC to just the basename; use the full file name. 3749 shift 3750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3751 fi 3752fi 3753fi 3754fi 3755CC=$ac_cv_prog_CC 3756if test -n "$CC"; then 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3758$as_echo "$CC" >&6; } 3759else 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761$as_echo "no" >&6; } 3762fi 3763 3764 3765fi 3766if test -z "$CC"; then 3767 if test -n "$ac_tool_prefix"; then 3768 for ac_prog in cl.exe 3769 do 3770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3773$as_echo_n "checking for $ac_word... " >&6; } 3774if ${ac_cv_prog_CC+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 if test -n "$CC"; then 3778 ac_cv_prog_CC="$CC" # Let the user override the test. 3779else 3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781for as_dir in $PATH 3782do 3783 IFS=$as_save_IFS 3784 test -z "$as_dir" && as_dir=. 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791done 3792 done 3793IFS=$as_save_IFS 3794 3795fi 3796fi 3797CC=$ac_cv_prog_CC 3798if test -n "$CC"; then 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3800$as_echo "$CC" >&6; } 3801else 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3803$as_echo "no" >&6; } 3804fi 3805 3806 3807 test -n "$CC" && break 3808 done 3809fi 3810if test -z "$CC"; then 3811 ac_ct_CC=$CC 3812 for ac_prog in cl.exe 3813do 3814 # Extract the first word of "$ac_prog", so it can be a program name with args. 3815set dummy $ac_prog; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_ac_ct_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$ac_ct_CC"; then 3822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_ac_ct_CC="$ac_prog" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841ac_ct_CC=$ac_cv_prog_ac_ct_CC 3842if test -n "$ac_ct_CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3844$as_echo "$ac_ct_CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 test -n "$ac_ct_CC" && break 3852done 3853 3854 if test "x$ac_ct_CC" = x; then 3855 CC="" 3856 else 3857 case $cross_compiling:$ac_tool_warned in 3858yes:) 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3861ac_tool_warned=yes ;; 3862esac 3863 CC=$ac_ct_CC 3864 fi 3865fi 3866 3867fi 3868 3869 3870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error $? "no acceptable C compiler found in \$PATH 3873See \`config.log' for more details" "$LINENO" 5; } 3874 3875# Provide some information about the compiler. 3876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3877set X $ac_compile 3878ac_compiler=$2 3879for ac_option in --version -v -V -qversion; do 3880 { { ac_try="$ac_compiler $ac_option >&5" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886$as_echo "$ac_try_echo"; } >&5 3887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3888 ac_status=$? 3889 if test -s conftest.err; then 3890 sed '10a\ 3891... rest of stderr output deleted ... 3892 10q' conftest.err >conftest.er1 3893 cat conftest.er1 >&5 3894 fi 3895 rm -f conftest.er1 conftest.err 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; } 3898done 3899 3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3901/* end confdefs.h. */ 3902 3903int 3904main () 3905{ 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911ac_clean_files_save=$ac_clean_files 3912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3913# Try to create an executable without -o first, disregard a.out. 3914# It will help us diagnose broken compilers, and finding out an intuition 3915# of exeext. 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3917$as_echo_n "checking whether the C compiler works... " >&6; } 3918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3919 3920# The possible output files: 3921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3922 3923ac_rmfiles= 3924for ac_file in $ac_files 3925do 3926 case $ac_file in 3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3928 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3929 esac 3930done 3931rm -f $ac_rmfiles 3932 3933if { { ac_try="$ac_link_default" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939$as_echo "$ac_try_echo"; } >&5 3940 (eval "$ac_link_default") 2>&5 3941 ac_status=$? 3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; }; then : 3944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3946# in a Makefile. We should not override ac_cv_exeext if it was cached, 3947# so that the user can short-circuit this test for compilers unknown to 3948# Autoconf. 3949for ac_file in $ac_files '' 3950do 3951 test -f "$ac_file" || continue 3952 case $ac_file in 3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3954 ;; 3955 [ab].out ) 3956 # We found the default executable, but exeext='' is most 3957 # certainly right. 3958 break;; 3959 *.* ) 3960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3961 then :; else 3962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3963 fi 3964 # We set ac_cv_exeext here because the later test for it is not 3965 # safe: cross compilers may not add the suffix if given an `-o' 3966 # argument, so we may need to know it at that point already. 3967 # Even if this section looks crufty: it has the advantage of 3968 # actually working. 3969 break;; 3970 * ) 3971 break;; 3972 esac 3973done 3974test "$ac_cv_exeext" = no && ac_cv_exeext= 3975 3976else 3977 ac_file='' 3978fi 3979if test -z "$ac_file"; then : 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981$as_echo "no" >&6; } 3982$as_echo "$as_me: failed program was:" >&5 3983sed 's/^/| /' conftest.$ac_ext >&5 3984 3985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3987as_fn_error 77 "C compiler cannot create executables 3988See \`config.log' for more details" "$LINENO" 5; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3991$as_echo "yes" >&6; } 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3994$as_echo_n "checking for C compiler default output file name... " >&6; } 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3996$as_echo "$ac_file" >&6; } 3997ac_exeext=$ac_cv_exeext 3998 3999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4000ac_clean_files=$ac_clean_files_save 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4002$as_echo_n "checking for suffix of executables... " >&6; } 4003if { { ac_try="$ac_link" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4009$as_echo "$ac_try_echo"; } >&5 4010 (eval "$ac_link") 2>&5 4011 ac_status=$? 4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4013 test $ac_status = 0; }; then : 4014 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4016# work properly (i.e., refer to `conftest.exe'), while it won't with 4017# `rm'. 4018for ac_file in conftest.exe conftest conftest.*; do 4019 test -f "$ac_file" || continue 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4023 break;; 4024 * ) break;; 4025 esac 4026done 4027else 4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4030as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4031See \`config.log' for more details" "$LINENO" 5; } 4032fi 4033rm -f conftest conftest$ac_cv_exeext 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4035$as_echo "$ac_cv_exeext" >&6; } 4036 4037rm -f conftest.$ac_ext 4038EXEEXT=$ac_cv_exeext 4039ac_exeext=$EXEEXT 4040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041/* end confdefs.h. */ 4042#include <stdio.h> 4043int 4044main () 4045{ 4046FILE *f = fopen ("conftest.out", "w"); 4047 return ferror (f) || fclose (f) != 0; 4048 4049 ; 4050 return 0; 4051} 4052_ACEOF 4053ac_clean_files="$ac_clean_files conftest.out" 4054# Check that the compiler produces executables we can run. If not, either 4055# the compiler is broken, or we cross compile. 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4057$as_echo_n "checking whether we are cross compiling... " >&6; } 4058if test "$cross_compiling" != yes; then 4059 { { ac_try="$ac_link" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065$as_echo "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070 if { ac_try='./conftest$ac_cv_exeext' 4071 { { case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076$as_echo "$ac_try_echo"; } >&5 4077 (eval "$ac_try") 2>&5 4078 ac_status=$? 4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; }; }; then 4081 cross_compiling=no 4082 else 4083 if test "$cross_compiling" = maybe; then 4084 cross_compiling=yes 4085 else 4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4088as_fn_error $? "cannot run C compiled programs. 4089If you meant to cross compile, use \`--host'. 4090See \`config.log' for more details" "$LINENO" 5; } 4091 fi 4092 fi 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4095$as_echo "$cross_compiling" >&6; } 4096 4097rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4098ac_clean_files=$ac_clean_files_save 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4100$as_echo_n "checking for suffix of object files... " >&6; } 4101if ${ac_cv_objext+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main () 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115rm -f conftest.o conftest.obj 4116if { { ac_try="$ac_compile" 4117case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122$as_echo "$ac_try_echo"; } >&5 4123 (eval "$ac_compile") 2>&5 4124 ac_status=$? 4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; }; then : 4127 for ac_file in conftest.o conftest.obj conftest.*; do 4128 test -f "$ac_file" || continue; 4129 case $ac_file in 4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4132 break;; 4133 esac 4134done 4135else 4136 $as_echo "$as_me: failed program was:" >&5 4137sed 's/^/| /' conftest.$ac_ext >&5 4138 4139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4141as_fn_error $? "cannot compute suffix of object files: cannot compile 4142See \`config.log' for more details" "$LINENO" 5; } 4143fi 4144rm -f conftest.$ac_cv_objext conftest.$ac_ext 4145fi 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4147$as_echo "$ac_cv_objext" >&6; } 4148OBJEXT=$ac_cv_objext 4149ac_objext=$OBJEXT 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4152if ${ac_cv_c_compiler_gnu+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157 4158int 4159main () 4160{ 4161#ifndef __GNUC__ 4162 choke me 4163#endif 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_compiler_gnu=yes 4171else 4172 ac_compiler_gnu=no 4173fi 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4175ac_cv_c_compiler_gnu=$ac_compiler_gnu 4176 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4179$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4180if test $ac_compiler_gnu = yes; then 4181 GCC=yes 4182else 4183 GCC= 4184fi 4185ac_test_CFLAGS=${CFLAGS+set} 4186ac_save_CFLAGS=$CFLAGS 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4188$as_echo_n "checking whether $CC accepts -g... " >&6; } 4189if ${ac_cv_prog_cc_g+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 ac_save_c_werror_flag=$ac_c_werror_flag 4193 ac_c_werror_flag=yes 4194 ac_cv_prog_cc_g=no 4195 CFLAGS="-g" 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198 4199int 4200main () 4201{ 4202 4203 ; 4204 return 0; 4205} 4206_ACEOF 4207if ac_fn_c_try_compile "$LINENO"; then : 4208 ac_cv_prog_cc_g=yes 4209else 4210 CFLAGS="" 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213 4214int 4215main () 4216{ 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222if ac_fn_c_try_compile "$LINENO"; then : 4223 4224else 4225 ac_c_werror_flag=$ac_save_c_werror_flag 4226 CFLAGS="-g" 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229 4230int 4231main () 4232{ 4233 4234 ; 4235 return 0; 4236} 4237_ACEOF 4238if ac_fn_c_try_compile "$LINENO"; then : 4239 ac_cv_prog_cc_g=yes 4240fi 4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4242fi 4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4244fi 4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4246 ac_c_werror_flag=$ac_save_c_werror_flag 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4249$as_echo "$ac_cv_prog_cc_g" >&6; } 4250if test "$ac_test_CFLAGS" = set; then 4251 CFLAGS=$ac_save_CFLAGS 4252elif test $ac_cv_prog_cc_g = yes; then 4253 if test "$GCC" = yes; then 4254 CFLAGS="-g -O2" 4255 else 4256 CFLAGS="-g" 4257 fi 4258else 4259 if test "$GCC" = yes; then 4260 CFLAGS="-O2" 4261 else 4262 CFLAGS= 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4267if ${ac_cv_prog_cc_c89+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 ac_cv_prog_cc_c89=no 4271ac_save_CC=$CC 4272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274#include <stdarg.h> 4275#include <stdio.h> 4276struct stat; 4277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4278struct buf { int x; }; 4279FILE * (*rcsopen) (struct buf *, struct stat *, int); 4280static char *e (p, i) 4281 char **p; 4282 int i; 4283{ 4284 return p[i]; 4285} 4286static char *f (char * (*g) (char **, int), char **p, ...) 4287{ 4288 char *s; 4289 va_list v; 4290 va_start (v,p); 4291 s = g (p, va_arg (v,int)); 4292 va_end (v); 4293 return s; 4294} 4295 4296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4297 function prototypes and stuff, but not '\xHH' hex character constants. 4298 These don't provoke an error unfortunately, instead are silently treated 4299 as 'x'. The following induces an error, until -std is added to get 4300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4301 array size at least. It's necessary to write '\x00'==0 to get something 4302 that's true only with -std. */ 4303int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4304 4305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4306 inside strings and character constants. */ 4307#define FOO(x) 'x' 4308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4309 4310int test (int i, double x); 4311struct s1 {int (*f) (int a);}; 4312struct s2 {int (*f) (double a);}; 4313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4314int argc; 4315char **argv; 4316int 4317main () 4318{ 4319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4320 ; 4321 return 0; 4322} 4323_ACEOF 4324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4326do 4327 CC="$ac_save_CC $ac_arg" 4328 if ac_fn_c_try_compile "$LINENO"; then : 4329 ac_cv_prog_cc_c89=$ac_arg 4330fi 4331rm -f core conftest.err conftest.$ac_objext 4332 test "x$ac_cv_prog_cc_c89" != "xno" && break 4333done 4334rm -f conftest.$ac_ext 4335CC=$ac_save_CC 4336 4337fi 4338# AC_CACHE_VAL 4339case "x$ac_cv_prog_cc_c89" in 4340 x) 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4342$as_echo "none needed" >&6; } ;; 4343 xno) 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4345$as_echo "unsupported" >&6; } ;; 4346 *) 4347 CC="$CC $ac_cv_prog_cc_c89" 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4349$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4350esac 4351if test "x$ac_cv_prog_cc_c89" != xno; then : 4352 4353fi 4354 4355ac_ext=c 4356ac_cpp='$CPP $CPPFLAGS' 4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4359ac_compiler_gnu=$ac_cv_c_compiler_gnu 4360 4361ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4367$as_echo_n "checking how to run the C preprocessor... " >&6; } 4368# On Suns, sometimes $CPP names a directory. 4369if test -n "$CPP" && test -d "$CPP"; then 4370 CPP= 4371fi 4372if test -z "$CPP"; then 4373 if ${ac_cv_prog_CPP+:} false; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 # Double quotes because CPP needs to be expanded 4377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4378 do 4379 ac_preproc_ok=false 4380for ac_c_preproc_warn_flag in '' yes 4381do 4382 # Use a header file that comes with gcc, so configuring glibc 4383 # with a fresh cross-compiler works. 4384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4385 # <limits.h> exists even on freestanding compilers. 4386 # On the NeXT, cc -E runs the code through the compiler's parser, 4387 # not just through cpp. "Syntax error" is here to catch this case. 4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390#ifdef __STDC__ 4391# include <limits.h> 4392#else 4393# include <assert.h> 4394#endif 4395 Syntax error 4396_ACEOF 4397if ac_fn_c_try_cpp "$LINENO"; then : 4398 4399else 4400 # Broken: fails on valid input. 4401continue 4402fi 4403rm -f conftest.err conftest.i conftest.$ac_ext 4404 4405 # OK, works on sane cases. Now check whether nonexistent headers 4406 # can be detected and how. 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409#include <ac_nonexistent.h> 4410_ACEOF 4411if ac_fn_c_try_cpp "$LINENO"; then : 4412 # Broken: success on invalid input. 4413continue 4414else 4415 # Passes both tests. 4416ac_preproc_ok=: 4417break 4418fi 4419rm -f conftest.err conftest.i conftest.$ac_ext 4420 4421done 4422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4423rm -f conftest.i conftest.err conftest.$ac_ext 4424if $ac_preproc_ok; then : 4425 break 4426fi 4427 4428 done 4429 ac_cv_prog_CPP=$CPP 4430 4431fi 4432 CPP=$ac_cv_prog_CPP 4433else 4434 ac_cv_prog_CPP=$CPP 4435fi 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4437$as_echo "$CPP" >&6; } 4438ac_preproc_ok=false 4439for ac_c_preproc_warn_flag in '' yes 4440do 4441 # Use a header file that comes with gcc, so configuring glibc 4442 # with a fresh cross-compiler works. 4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4444 # <limits.h> exists even on freestanding compilers. 4445 # On the NeXT, cc -E runs the code through the compiler's parser, 4446 # not just through cpp. "Syntax error" is here to catch this case. 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#ifdef __STDC__ 4450# include <limits.h> 4451#else 4452# include <assert.h> 4453#endif 4454 Syntax error 4455_ACEOF 4456if ac_fn_c_try_cpp "$LINENO"; then : 4457 4458else 4459 # Broken: fails on valid input. 4460continue 4461fi 4462rm -f conftest.err conftest.i conftest.$ac_ext 4463 4464 # OK, works on sane cases. Now check whether nonexistent headers 4465 # can be detected and how. 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468#include <ac_nonexistent.h> 4469_ACEOF 4470if ac_fn_c_try_cpp "$LINENO"; then : 4471 # Broken: success on invalid input. 4472continue 4473else 4474 # Passes both tests. 4475ac_preproc_ok=: 4476break 4477fi 4478rm -f conftest.err conftest.i conftest.$ac_ext 4479 4480done 4481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4482rm -f conftest.i conftest.err conftest.$ac_ext 4483if $ac_preproc_ok; then : 4484 4485else 4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4488as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4489See \`config.log' for more details" "$LINENO" 5; } 4490fi 4491 4492ac_ext=c 4493ac_cpp='$CPP $CPPFLAGS' 4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4496ac_compiler_gnu=$ac_cv_c_compiler_gnu 4497 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4499$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4500if ${ac_cv_path_GREP+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -z "$GREP"; then 4504 ac_path_GREP_found=false 4505 # Loop through the user's path and test for each of PROGNAME-LIST 4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_prog in grep ggrep; do 4512 for ac_exec_ext in '' $ac_executable_extensions; do 4513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4514 as_fn_executable_p "$ac_path_GREP" || continue 4515# Check for GNU ac_path_GREP and select it if it is found. 4516 # Check for GNU $ac_path_GREP 4517case `"$ac_path_GREP" --version 2>&1` in 4518*GNU*) 4519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4520*) 4521 ac_count=0 4522 $as_echo_n 0123456789 >"conftest.in" 4523 while : 4524 do 4525 cat "conftest.in" "conftest.in" >"conftest.tmp" 4526 mv "conftest.tmp" "conftest.in" 4527 cp "conftest.in" "conftest.nl" 4528 $as_echo 'GREP' >> "conftest.nl" 4529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4531 as_fn_arith $ac_count + 1 && ac_count=$as_val 4532 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4533 # Best one so far, save it but keep looking for a better one 4534 ac_cv_path_GREP="$ac_path_GREP" 4535 ac_path_GREP_max=$ac_count 4536 fi 4537 # 10*(2^10) chars as input seems more than enough 4538 test $ac_count -gt 10 && break 4539 done 4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4541esac 4542 4543 $ac_path_GREP_found && break 3 4544 done 4545 done 4546 done 4547IFS=$as_save_IFS 4548 if test -z "$ac_cv_path_GREP"; then 4549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4550 fi 4551else 4552 ac_cv_path_GREP=$GREP 4553fi 4554 4555fi 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4557$as_echo "$ac_cv_path_GREP" >&6; } 4558 GREP="$ac_cv_path_GREP" 4559 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4563if ${ac_cv_path_SED+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4567 for ac_i in 1 2 3 4 5 6 7; do 4568 ac_script="$ac_script$as_nl$ac_script" 4569 done 4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4571 { ac_script=; unset ac_script;} 4572 if test -z "$SED"; then 4573 ac_path_SED_found=false 4574 # Loop through the user's path and test for each of PROGNAME-LIST 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 test -z "$as_dir" && as_dir=. 4580 for ac_prog in sed gsed; do 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4583 as_fn_executable_p "$ac_path_SED" || continue 4584# Check for GNU ac_path_SED and select it if it is found. 4585 # Check for GNU $ac_path_SED 4586case `"$ac_path_SED" --version 2>&1` in 4587*GNU*) 4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4589*) 4590 ac_count=0 4591 $as_echo_n 0123456789 >"conftest.in" 4592 while : 4593 do 4594 cat "conftest.in" "conftest.in" >"conftest.tmp" 4595 mv "conftest.tmp" "conftest.in" 4596 cp "conftest.in" "conftest.nl" 4597 $as_echo '' >> "conftest.nl" 4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4600 as_fn_arith $ac_count + 1 && ac_count=$as_val 4601 if test $ac_count -gt ${ac_path_SED_max-0}; then 4602 # Best one so far, save it but keep looking for a better one 4603 ac_cv_path_SED="$ac_path_SED" 4604 ac_path_SED_max=$ac_count 4605 fi 4606 # 10*(2^10) chars as input seems more than enough 4607 test $ac_count -gt 10 && break 4608 done 4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4610esac 4611 4612 $ac_path_SED_found && break 3 4613 done 4614 done 4615 done 4616IFS=$as_save_IFS 4617 if test -z "$ac_cv_path_SED"; then 4618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4619 fi 4620else 4621 ac_cv_path_SED=$SED 4622fi 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4626$as_echo "$ac_cv_path_SED" >&6; } 4627 SED="$ac_cv_path_SED" 4628 rm -f conftest.sed 4629 4630 4631 4632 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4634$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4635 4636# Check whether --with-cxx_main was given. 4637if test "${with_cxx_main+set}" = set; then : 4638 withval=$with_cxx_main; 4639 4640 case $withval in 4641 no) with_cxx_main=no 4642 MAINCC='$(CC)';; 4643 yes) with_cxx_main=yes 4644 MAINCC='$(CXX)';; 4645 *) with_cxx_main=yes 4646 MAINCC=$withval 4647 if test -z "$CXX" 4648 then 4649 CXX=$withval 4650 fi;; 4651 esac 4652else 4653 4654 with_cxx_main=no 4655 MAINCC='$(CC)' 4656 4657fi 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4660$as_echo "$with_cxx_main" >&6; } 4661 4662preset_cxx="$CXX" 4663if test -z "$CXX" 4664then 4665 case "$CC" in 4666 gcc) if test -n "$ac_tool_prefix"; then 4667 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4668set dummy ${ac_tool_prefix}g++; ac_word=$2 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4670$as_echo_n "checking for $ac_word... " >&6; } 4671if ${ac_cv_path_CXX+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 case $CXX in 4675 [\\/]* | ?:[\\/]*) 4676 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4677 ;; 4678 *) 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in notfound 4681do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_exec_ext in '' $ac_executable_extensions; do 4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4686 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4688 break 2 4689 fi 4690done 4691 done 4692IFS=$as_save_IFS 4693 4694 ;; 4695esac 4696fi 4697CXX=$ac_cv_path_CXX 4698if test -n "$CXX"; then 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4700$as_echo "$CXX" >&6; } 4701else 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4703$as_echo "no" >&6; } 4704fi 4705 4706 4707fi 4708if test -z "$ac_cv_path_CXX"; then 4709 ac_pt_CXX=$CXX 4710 # Extract the first word of "g++", so it can be a program name with args. 4711set dummy g++; ac_word=$2 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4713$as_echo_n "checking for $ac_word... " >&6; } 4714if ${ac_cv_path_ac_pt_CXX+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 case $ac_pt_CXX in 4718 [\\/]* | ?:[\\/]*) 4719 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4720 ;; 4721 *) 4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4723for as_dir in notfound 4724do 4725 IFS=$as_save_IFS 4726 test -z "$as_dir" && as_dir=. 4727 for ac_exec_ext in '' $ac_executable_extensions; do 4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4729 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4731 break 2 4732 fi 4733done 4734 done 4735IFS=$as_save_IFS 4736 4737 ;; 4738esac 4739fi 4740ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4741if test -n "$ac_pt_CXX"; then 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4743$as_echo "$ac_pt_CXX" >&6; } 4744else 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746$as_echo "no" >&6; } 4747fi 4748 4749 if test "x$ac_pt_CXX" = x; then 4750 CXX="g++" 4751 else 4752 case $cross_compiling:$ac_tool_warned in 4753yes:) 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4756ac_tool_warned=yes ;; 4757esac 4758 CXX=$ac_pt_CXX 4759 fi 4760else 4761 CXX="$ac_cv_path_CXX" 4762fi 4763 ;; 4764 cc) if test -n "$ac_tool_prefix"; then 4765 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4766set dummy ${ac_tool_prefix}c++; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_path_CXX+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 case $CXX in 4773 [\\/]* | ?:[\\/]*) 4774 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4775 ;; 4776 *) 4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4778for as_dir in notfound 4779do 4780 IFS=$as_save_IFS 4781 test -z "$as_dir" && as_dir=. 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4784 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789 done 4790IFS=$as_save_IFS 4791 4792 ;; 4793esac 4794fi 4795CXX=$ac_cv_path_CXX 4796if test -n "$CXX"; then 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4798$as_echo "$CXX" >&6; } 4799else 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802fi 4803 4804 4805fi 4806if test -z "$ac_cv_path_CXX"; then 4807 ac_pt_CXX=$CXX 4808 # Extract the first word of "c++", so it can be a program name with args. 4809set dummy c++; ac_word=$2 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811$as_echo_n "checking for $ac_word... " >&6; } 4812if ${ac_cv_path_ac_pt_CXX+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 case $ac_pt_CXX in 4816 [\\/]* | ?:[\\/]*) 4817 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4818 ;; 4819 *) 4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4821for as_dir in notfound 4822do 4823 IFS=$as_save_IFS 4824 test -z "$as_dir" && as_dir=. 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4827 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4829 break 2 4830 fi 4831done 4832 done 4833IFS=$as_save_IFS 4834 4835 ;; 4836esac 4837fi 4838ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4839if test -n "$ac_pt_CXX"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4841$as_echo "$ac_pt_CXX" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844$as_echo "no" >&6; } 4845fi 4846 4847 if test "x$ac_pt_CXX" = x; then 4848 CXX="c++" 4849 else 4850 case $cross_compiling:$ac_tool_warned in 4851yes:) 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4854ac_tool_warned=yes ;; 4855esac 4856 CXX=$ac_pt_CXX 4857 fi 4858else 4859 CXX="$ac_cv_path_CXX" 4860fi 4861 ;; 4862 clang|*/clang) if test -n "$ac_tool_prefix"; then 4863 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 4864set dummy ${ac_tool_prefix}clang++; ac_word=$2 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4866$as_echo_n "checking for $ac_word... " >&6; } 4867if ${ac_cv_path_CXX+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 case $CXX in 4871 [\\/]* | ?:[\\/]*) 4872 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4873 ;; 4874 *) 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in notfound 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890 ;; 4891esac 4892fi 4893CXX=$ac_cv_path_CXX 4894if test -n "$CXX"; then 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4896$as_echo "$CXX" >&6; } 4897else 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4899$as_echo "no" >&6; } 4900fi 4901 4902 4903fi 4904if test -z "$ac_cv_path_CXX"; then 4905 ac_pt_CXX=$CXX 4906 # Extract the first word of "clang++", so it can be a program name with args. 4907set dummy clang++; ac_word=$2 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4909$as_echo_n "checking for $ac_word... " >&6; } 4910if ${ac_cv_path_ac_pt_CXX+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 case $ac_pt_CXX in 4914 [\\/]* | ?:[\\/]*) 4915 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4916 ;; 4917 *) 4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4919for as_dir in notfound 4920do 4921 IFS=$as_save_IFS 4922 test -z "$as_dir" && as_dir=. 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4925 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929done 4930 done 4931IFS=$as_save_IFS 4932 4933 ;; 4934esac 4935fi 4936ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4937if test -n "$ac_pt_CXX"; then 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4939$as_echo "$ac_pt_CXX" >&6; } 4940else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942$as_echo "no" >&6; } 4943fi 4944 4945 if test "x$ac_pt_CXX" = x; then 4946 CXX="clang++" 4947 else 4948 case $cross_compiling:$ac_tool_warned in 4949yes:) 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4952ac_tool_warned=yes ;; 4953esac 4954 CXX=$ac_pt_CXX 4955 fi 4956else 4957 CXX="$ac_cv_path_CXX" 4958fi 4959 ;; 4960 icc|*/icc) if test -n "$ac_tool_prefix"; then 4961 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 4962set dummy ${ac_tool_prefix}icpc; ac_word=$2 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4964$as_echo_n "checking for $ac_word... " >&6; } 4965if ${ac_cv_path_CXX+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 case $CXX in 4969 [\\/]* | ?:[\\/]*) 4970 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4971 ;; 4972 *) 4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4974for as_dir in notfound 4975do 4976 IFS=$as_save_IFS 4977 test -z "$as_dir" && as_dir=. 4978 for ac_exec_ext in '' $ac_executable_extensions; do 4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4980 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4982 break 2 4983 fi 4984done 4985 done 4986IFS=$as_save_IFS 4987 4988 ;; 4989esac 4990fi 4991CXX=$ac_cv_path_CXX 4992if test -n "$CXX"; then 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4994$as_echo "$CXX" >&6; } 4995else 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997$as_echo "no" >&6; } 4998fi 4999 5000 5001fi 5002if test -z "$ac_cv_path_CXX"; then 5003 ac_pt_CXX=$CXX 5004 # Extract the first word of "icpc", so it can be a program name with args. 5005set dummy icpc; ac_word=$2 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5007$as_echo_n "checking for $ac_word... " >&6; } 5008if ${ac_cv_path_ac_pt_CXX+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 case $ac_pt_CXX in 5012 [\\/]* | ?:[\\/]*) 5013 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 5014 ;; 5015 *) 5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5017for as_dir in notfound 5018do 5019 IFS=$as_save_IFS 5020 test -z "$as_dir" && as_dir=. 5021 for ac_exec_ext in '' $ac_executable_extensions; do 5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5023 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5025 break 2 5026 fi 5027done 5028 done 5029IFS=$as_save_IFS 5030 5031 ;; 5032esac 5033fi 5034ac_pt_CXX=$ac_cv_path_ac_pt_CXX 5035if test -n "$ac_pt_CXX"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 5037$as_echo "$ac_pt_CXX" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042 5043 if test "x$ac_pt_CXX" = x; then 5044 CXX="icpc" 5045 else 5046 case $cross_compiling:$ac_tool_warned in 5047yes:) 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5050ac_tool_warned=yes ;; 5051esac 5052 CXX=$ac_pt_CXX 5053 fi 5054else 5055 CXX="$ac_cv_path_CXX" 5056fi 5057 ;; 5058 esac 5059 if test "$CXX" = "notfound" 5060 then 5061 CXX="" 5062 fi 5063fi 5064if test -z "$CXX" 5065then 5066 if test -n "$ac_tool_prefix"; then 5067 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5068 do 5069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5072$as_echo_n "checking for $ac_word... " >&6; } 5073if ${ac_cv_prog_CXX+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 if test -n "$CXX"; then 5077 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5078else 5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5080for as_dir in $PATH 5081do 5082 IFS=$as_save_IFS 5083 test -z "$as_dir" && as_dir=. 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5086 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5088 break 2 5089 fi 5090done 5091 done 5092IFS=$as_save_IFS 5093 5094fi 5095fi 5096CXX=$ac_cv_prog_CXX 5097if test -n "$CXX"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5099$as_echo "$CXX" >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5102$as_echo "no" >&6; } 5103fi 5104 5105 5106 test -n "$CXX" && break 5107 done 5108fi 5109if test -z "$CXX"; then 5110 ac_ct_CXX=$CXX 5111 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5112do 5113 # Extract the first word of "$ac_prog", so it can be a program name with args. 5114set dummy $ac_prog; ac_word=$2 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116$as_echo_n "checking for $ac_word... " >&6; } 5117if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 if test -n "$ac_ct_CXX"; then 5121 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5122else 5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5124for as_dir in $PATH 5125do 5126 IFS=$as_save_IFS 5127 test -z "$as_dir" && as_dir=. 5128 for ac_exec_ext in '' $ac_executable_extensions; do 5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5130 ac_cv_prog_ac_ct_CXX="$ac_prog" 5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5132 break 2 5133 fi 5134done 5135 done 5136IFS=$as_save_IFS 5137 5138fi 5139fi 5140ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5141if test -n "$ac_ct_CXX"; then 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5143$as_echo "$ac_ct_CXX" >&6; } 5144else 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5146$as_echo "no" >&6; } 5147fi 5148 5149 5150 test -n "$ac_ct_CXX" && break 5151done 5152 5153 if test "x$ac_ct_CXX" = x; then 5154 CXX="notfound" 5155 else 5156 case $cross_compiling:$ac_tool_warned in 5157yes:) 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5160ac_tool_warned=yes ;; 5161esac 5162 CXX=$ac_ct_CXX 5163 fi 5164fi 5165 5166 if test "$CXX" = "notfound" 5167 then 5168 CXX="" 5169 fi 5170fi 5171if test "$preset_cxx" != "$CXX" 5172then 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: 5174 5175 By default, distutils will build C++ extension modules with \"$CXX\". 5176 If this is not intended, then set CXX on the configure command line. 5177 " >&5 5178$as_echo "$as_me: 5179 5180 By default, distutils will build C++ extension modules with \"$CXX\". 5181 If this is not intended, then set CXX on the configure command line. 5182 " >&6;} 5183fi 5184 5185 5186MULTIARCH= 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 5190$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } 5191cat >> conftest.c <<EOF 5192#undef bfin 5193#undef cris 5194#undef fr30 5195#undef linux 5196#undef hppa 5197#undef hpux 5198#undef i386 5199#undef mips 5200#undef powerpc 5201#undef sparc 5202#undef unix 5203#if defined(__ANDROID__) 5204 # Android is not a multiarch system. 5205#elif defined(__linux__) 5206# if defined(__x86_64__) && defined(__LP64__) 5207 x86_64-linux-gnu 5208# elif defined(__x86_64__) && defined(__ILP32__) 5209 x86_64-linux-gnux32 5210# elif defined(__i386__) 5211 i386-linux-gnu 5212# elif defined(__aarch64__) && defined(__AARCH64EL__) 5213# if defined(__ILP32__) 5214 aarch64_ilp32-linux-gnu 5215# else 5216 aarch64-linux-gnu 5217# endif 5218# elif defined(__aarch64__) && defined(__AARCH64EB__) 5219# if defined(__ILP32__) 5220 aarch64_be_ilp32-linux-gnu 5221# else 5222 aarch64_be-linux-gnu 5223# endif 5224# elif defined(__alpha__) 5225 alpha-linux-gnu 5226# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) 5227# if defined(__ARMEL__) 5228 arm-linux-gnueabihf 5229# else 5230 armeb-linux-gnueabihf 5231# endif 5232# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) 5233# if defined(__ARMEL__) 5234 arm-linux-gnueabi 5235# else 5236 armeb-linux-gnueabi 5237# endif 5238# elif defined(__hppa__) 5239 hppa-linux-gnu 5240# elif defined(__ia64__) 5241 ia64-linux-gnu 5242# elif defined(__m68k__) && !defined(__mcoldfire__) 5243 m68k-linux-gnu 5244# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) 5245# if _MIPS_SIM == _ABIO32 5246 mipsisa32r6el-linux-gnu 5247# elif _MIPS_SIM == _ABIN32 5248 mipsisa64r6el-linux-gnuabin32 5249# elif _MIPS_SIM == _ABI64 5250 mipsisa64r6el-linux-gnuabi64 5251# else 5252# error unknown platform triplet 5253# endif 5254# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) 5255# if _MIPS_SIM == _ABIO32 5256 mipsisa32r6-linux-gnu 5257# elif _MIPS_SIM == _ABIN32 5258 mipsisa64r6-linux-gnuabin32 5259# elif _MIPS_SIM == _ABI64 5260 mipsisa64r6-linux-gnuabi64 5261# else 5262# error unknown platform triplet 5263# endif 5264# elif defined(__mips_hard_float) && defined(_MIPSEL) 5265# if _MIPS_SIM == _ABIO32 5266 mipsel-linux-gnu 5267# elif _MIPS_SIM == _ABIN32 5268 mips64el-linux-gnuabin32 5269# elif _MIPS_SIM == _ABI64 5270 mips64el-linux-gnuabi64 5271# else 5272# error unknown platform triplet 5273# endif 5274# elif defined(__mips_hard_float) 5275# if _MIPS_SIM == _ABIO32 5276 mips-linux-gnu 5277# elif _MIPS_SIM == _ABIN32 5278 mips64-linux-gnuabin32 5279# elif _MIPS_SIM == _ABI64 5280 mips64-linux-gnuabi64 5281# else 5282# error unknown platform triplet 5283# endif 5284# elif defined(__or1k__) 5285 or1k-linux-gnu 5286# elif defined(__powerpc__) && defined(__SPE__) 5287 powerpc-linux-gnuspe 5288# elif defined(__powerpc64__) 5289# if defined(__LITTLE_ENDIAN__) 5290 powerpc64le-linux-gnu 5291# else 5292 powerpc64-linux-gnu 5293# endif 5294# elif defined(__powerpc__) 5295 powerpc-linux-gnu 5296# elif defined(__s390x__) 5297 s390x-linux-gnu 5298# elif defined(__s390__) 5299 s390-linux-gnu 5300# elif defined(__sh__) && defined(__LITTLE_ENDIAN__) 5301 sh4-linux-gnu 5302# elif defined(__sparc__) && defined(__arch64__) 5303 sparc64-linux-gnu 5304# elif defined(__sparc__) 5305 sparc-linux-gnu 5306# elif defined(__riscv) 5307# if __riscv_xlen == 32 5308 riscv32-linux-gnu 5309# elif __riscv_xlen == 64 5310 riscv64-linux-gnu 5311# else 5312# error unknown platform triplet 5313# endif 5314# else 5315# error unknown platform triplet 5316# endif 5317#elif defined(__FreeBSD_kernel__) 5318# if defined(__LP64__) 5319 x86_64-kfreebsd-gnu 5320# elif defined(__i386__) 5321 i386-kfreebsd-gnu 5322# else 5323# error unknown platform triplet 5324# endif 5325#elif defined(__gnu_hurd__) 5326 i386-gnu 5327#elif defined(__APPLE__) 5328 darwin 5329#else 5330# error unknown platform triplet 5331#endif 5332 5333EOF 5334 5335if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5336 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 5338$as_echo "$PLATFORM_TRIPLET" >&6; } 5339else 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5341$as_echo "none" >&6; } 5342fi 5343rm -f conftest.c conftest.out 5344 5345if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 5346 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 5347 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 5348 fi 5349elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 5350 MULTIARCH=$PLATFORM_TRIPLET 5351fi 5352 5353if test x$MULTIARCH != x; then 5354 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 5355fi 5356 5357 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 5359$as_echo_n "checking for -Wl,--no-as-needed... " >&6; } 5360save_LDFLAGS="$LDFLAGS" 5361LDFLAGS="$LDFLAGS -Wl,--no-as-needed" 5362 5363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365 5366int 5367main () 5368{ 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374if ac_fn_c_try_link "$LINENO"; then : 5375 NO_AS_NEEDED="-Wl,--no-as-needed" 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5377$as_echo "yes" >&6; } 5378else 5379 NO_AS_NEEDED="" 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5381$as_echo "no" >&6; } 5382fi 5383rm -f core conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext conftest.$ac_ext 5385LDFLAGS="$save_LDFLAGS" 5386 5387 5388 5389# checks for UNIX variants that set C preprocessor variables 5390 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5392$as_echo_n "checking for egrep... " >&6; } 5393if ${ac_cv_path_EGREP+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5397 then ac_cv_path_EGREP="$GREP -E" 5398 else 5399 if test -z "$EGREP"; then 5400 ac_path_EGREP_found=false 5401 # Loop through the user's path and test for each of PROGNAME-LIST 5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5403for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5404do 5405 IFS=$as_save_IFS 5406 test -z "$as_dir" && as_dir=. 5407 for ac_prog in egrep; do 5408 for ac_exec_ext in '' $ac_executable_extensions; do 5409 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5410 as_fn_executable_p "$ac_path_EGREP" || continue 5411# Check for GNU ac_path_EGREP and select it if it is found. 5412 # Check for GNU $ac_path_EGREP 5413case `"$ac_path_EGREP" --version 2>&1` in 5414*GNU*) 5415 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5416*) 5417 ac_count=0 5418 $as_echo_n 0123456789 >"conftest.in" 5419 while : 5420 do 5421 cat "conftest.in" "conftest.in" >"conftest.tmp" 5422 mv "conftest.tmp" "conftest.in" 5423 cp "conftest.in" "conftest.nl" 5424 $as_echo 'EGREP' >> "conftest.nl" 5425 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5427 as_fn_arith $ac_count + 1 && ac_count=$as_val 5428 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5429 # Best one so far, save it but keep looking for a better one 5430 ac_cv_path_EGREP="$ac_path_EGREP" 5431 ac_path_EGREP_max=$ac_count 5432 fi 5433 # 10*(2^10) chars as input seems more than enough 5434 test $ac_count -gt 10 && break 5435 done 5436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5437esac 5438 5439 $ac_path_EGREP_found && break 3 5440 done 5441 done 5442 done 5443IFS=$as_save_IFS 5444 if test -z "$ac_cv_path_EGREP"; then 5445 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5446 fi 5447else 5448 ac_cv_path_EGREP=$EGREP 5449fi 5450 5451 fi 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5454$as_echo "$ac_cv_path_EGREP" >&6; } 5455 EGREP="$ac_cv_path_EGREP" 5456 5457 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5459$as_echo_n "checking for ANSI C header files... " >&6; } 5460if ${ac_cv_header_stdc+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465#include <stdlib.h> 5466#include <stdarg.h> 5467#include <string.h> 5468#include <float.h> 5469 5470int 5471main () 5472{ 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478if ac_fn_c_try_compile "$LINENO"; then : 5479 ac_cv_header_stdc=yes 5480else 5481 ac_cv_header_stdc=no 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5484 5485if test $ac_cv_header_stdc = yes; then 5486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489#include <string.h> 5490 5491_ACEOF 5492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5493 $EGREP "memchr" >/dev/null 2>&1; then : 5494 5495else 5496 ac_cv_header_stdc=no 5497fi 5498rm -f conftest* 5499 5500fi 5501 5502if test $ac_cv_header_stdc = yes; then 5503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506#include <stdlib.h> 5507 5508_ACEOF 5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5510 $EGREP "free" >/dev/null 2>&1; then : 5511 5512else 5513 ac_cv_header_stdc=no 5514fi 5515rm -f conftest* 5516 5517fi 5518 5519if test $ac_cv_header_stdc = yes; then 5520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5521 if test "$cross_compiling" = yes; then : 5522 : 5523else 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525/* end confdefs.h. */ 5526#include <ctype.h> 5527#include <stdlib.h> 5528#if ((' ' & 0x0FF) == 0x020) 5529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5531#else 5532# define ISLOWER(c) \ 5533 (('a' <= (c) && (c) <= 'i') \ 5534 || ('j' <= (c) && (c) <= 'r') \ 5535 || ('s' <= (c) && (c) <= 'z')) 5536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5537#endif 5538 5539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5540int 5541main () 5542{ 5543 int i; 5544 for (i = 0; i < 256; i++) 5545 if (XOR (islower (i), ISLOWER (i)) 5546 || toupper (i) != TOUPPER (i)) 5547 return 2; 5548 return 0; 5549} 5550_ACEOF 5551if ac_fn_c_try_run "$LINENO"; then : 5552 5553else 5554 ac_cv_header_stdc=no 5555fi 5556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5557 conftest.$ac_objext conftest.beam conftest.$ac_ext 5558fi 5559 5560fi 5561fi 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5563$as_echo "$ac_cv_header_stdc" >&6; } 5564if test $ac_cv_header_stdc = yes; then 5565 5566$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5567 5568fi 5569 5570# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5571for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5572 inttypes.h stdint.h unistd.h 5573do : 5574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5575ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5576" 5577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5578 cat >>confdefs.h <<_ACEOF 5579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5580_ACEOF 5581 5582fi 5583 5584done 5585 5586 5587 5588 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5589if test "x$ac_cv_header_minix_config_h" = xyes; then : 5590 MINIX=yes 5591else 5592 MINIX= 5593fi 5594 5595 5596 if test "$MINIX" = yes; then 5597 5598$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5599 5600 5601$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5602 5603 5604$as_echo "#define _MINIX 1" >>confdefs.h 5605 5606 fi 5607 5608 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5610$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5611if ${ac_cv_safe_to_define___extensions__+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616 5617# define __EXTENSIONS__ 1 5618 $ac_includes_default 5619int 5620main () 5621{ 5622 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627if ac_fn_c_try_compile "$LINENO"; then : 5628 ac_cv_safe_to_define___extensions__=yes 5629else 5630 ac_cv_safe_to_define___extensions__=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5633fi 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5635$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5636 test $ac_cv_safe_to_define___extensions__ = yes && 5637 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5638 5639 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5640 5641 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5642 5643 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5644 5645 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5646 5647 5648 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 5650$as_echo_n "checking for the Android API level... " >&6; } 5651cat >> conftest.c <<EOF 5652#ifdef __ANDROID__ 5653android_api = __ANDROID_API__ 5654arm_arch = __ARM_ARCH 5655#else 5656#error not Android 5657#endif 5658EOF 5659 5660if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5661 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 5662 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 5664$as_echo "$ANDROID_API_LEVEL" >&6; } 5665 if test -z "$ANDROID_API_LEVEL"; then 5666 echo 'Fatal: you must define __ANDROID_API__' 5667 exit 1 5668 fi 5669 5670cat >>confdefs.h <<_ACEOF 5671#define ANDROID_API_LEVEL $ANDROID_API_LEVEL 5672_ACEOF 5673 5674 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 5676$as_echo_n "checking for the Android arm ABI... " >&6; } 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 5678$as_echo "$_arm_arch" >&6; } 5679 if test "$_arm_arch" = 7; then 5680 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 5681 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 5682 fi 5683else 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 5685$as_echo "not Android" >&6; } 5686fi 5687rm -f conftest.c conftest.out 5688 5689# Check for unsupported systems 5690case $ac_sys_system/$ac_sys_release in 5691atheos*|Linux*/1*) 5692 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5693 echo See README for details. 5694 exit 1;; 5695esac 5696 5697 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5699$as_echo_n "checking for --with-suffix... " >&6; } 5700 5701# Check whether --with-suffix was given. 5702if test "${with_suffix+set}" = set; then : 5703 withval=$with_suffix; 5704 case $withval in 5705 no) EXEEXT=;; 5706 yes) EXEEXT=.exe;; 5707 *) EXEEXT=$withval;; 5708 esac 5709fi 5710 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5712$as_echo "$EXEEXT" >&6; } 5713 5714# Test whether we're running on a non-case-sensitive system, in which 5715# case we give a warning if no ext is given 5716 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5718$as_echo_n "checking for case-insensitive build directory... " >&6; } 5719if test ! -d CaseSensitiveTestDir; then 5720mkdir CaseSensitiveTestDir 5721fi 5722 5723if test -d casesensitivetestdir 5724then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5726$as_echo "yes" >&6; } 5727 BUILDEXEEXT=.exe 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; } 5731 BUILDEXEEXT=$EXEEXT 5732fi 5733rmdir CaseSensitiveTestDir 5734 5735case $ac_sys_system in 5736hp*|HP*) 5737 case $CC in 5738 cc|*/cc) CC="$CC -Ae";; 5739 esac;; 5740esac 5741 5742 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5744$as_echo_n "checking LIBRARY... " >&6; } 5745if test -z "$LIBRARY" 5746then 5747 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 5748fi 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5750$as_echo "$LIBRARY" >&6; } 5751 5752# LDLIBRARY is the name of the library to link against (as opposed to the 5753# name of the library into which to insert object files). BLDLIBRARY is also 5754# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5755# is blank as the main program is not linked directly against LDLIBRARY. 5756# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5757# systems without shared libraries, LDLIBRARY is the same as LIBRARY 5758# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5759# DLLLIBRARY is the shared (i.e., DLL) library. 5760# 5761# RUNSHARED is used to run shared python without installed libraries 5762# 5763# INSTSONAME is the name of the shared library that will be use to install 5764# on the system - some systems like version suffix, others don't 5765# 5766# LDVERSION is the shared library version number, normally the Python version 5767# with the ABI build flags appended. 5768 5769 5770 5771 5772 5773 5774 5775 5776LDLIBRARY="$LIBRARY" 5777BLDLIBRARY='$(LDLIBRARY)' 5778INSTSONAME='$(LDLIBRARY)' 5779DLLLIBRARY='' 5780LDLIBRARYDIR='' 5781RUNSHARED='' 5782LDVERSION="$VERSION" 5783 5784# LINKCC is the command that links the python executable -- default is $(CC). 5785# If CXX is set, and if it is needed to link a main function that was 5786# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5787# python might then depend on the C++ runtime 5788# This is altered for AIX in order to build the export list before 5789# linking. 5790 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5792$as_echo_n "checking LINKCC... " >&6; } 5793if test -z "$LINKCC" 5794then 5795 LINKCC='$(PURIFY) $(MAINCC)' 5796 case $ac_sys_system in 5797 AIX*) 5798 exp_extra="\"\"" 5799 if test $ac_sys_release -ge 5 -o \ 5800 $ac_sys_release -eq 4 -a "6.3-DPORTS" -ge 2 ; then 5801 exp_extra="." 5802 fi 5803 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; 5804 QNX*) 5805 # qcc must be used because the other compilers do not 5806 # support -N. 5807 LINKCC=qcc;; 5808 esac 5809fi 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5811$as_echo "$LINKCC" >&6; } 5812 5813# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5814# make sure we default having it set to "no": this is used by 5815# distutils.unixccompiler to know if it should add --enable-new-dtags 5816# to linker command lines, and failing to detect GNU ld simply results 5817# in the same bahaviour as before. 5818 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5820$as_echo_n "checking for GNU ld... " >&6; } 5821ac_prog=ld 5822if test "$GCC" = yes; then 5823 ac_prog=`$CC -print-prog-name=ld` 5824fi 5825case `"$ac_prog" -V 2>&1 < /dev/null` in 5826 *GNU*) 5827 GNULD=yes;; 5828 *) 5829 GNULD=no;; 5830esac 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5832$as_echo "$GNULD" >&6; } 5833 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5835$as_echo_n "checking for --enable-shared... " >&6; } 5836# Check whether --enable-shared was given. 5837if test "${enable_shared+set}" = set; then : 5838 enableval=$enable_shared; 5839fi 5840 5841 5842if test -z "$enable_shared" 5843then 5844 case $ac_sys_system in 5845 CYGWIN*) 5846 enable_shared="yes";; 5847 *) 5848 enable_shared="no";; 5849 esac 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5852$as_echo "$enable_shared" >&6; } 5853 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5855$as_echo_n "checking for --enable-profiling... " >&6; } 5856# Check whether --enable-profiling was given. 5857if test "${enable_profiling+set}" = set; then : 5858 enableval=$enable_profiling; 5859fi 5860 5861if test "x$enable_profiling" = xyes; then 5862 ac_save_cc="$CC" 5863 CC="$CC -pg" 5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5865/* end confdefs.h. */ 5866int main() { return 0; } 5867_ACEOF 5868if ac_fn_c_try_link "$LINENO"; then : 5869 5870else 5871 enable_profiling=no 5872fi 5873rm -f core conftest.err conftest.$ac_objext \ 5874 conftest$ac_exeext conftest.$ac_ext 5875 CC="$ac_save_cc" 5876else 5877 enable_profiling=no 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5880$as_echo "$enable_profiling" >&6; } 5881 5882if test "x$enable_profiling" = xyes; then 5883 BASECFLAGS="-pg $BASECFLAGS" 5884 LDFLAGS="-pg $LDFLAGS" 5885fi 5886 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5888$as_echo_n "checking LDLIBRARY... " >&6; } 5889 5890# MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5891# library that we build, but we do not want to link against it (we 5892# will find it with a -framework option). For this reason there is an 5893# extra variable BLDLIBRARY against which Python and the extension 5894# modules are linked, BLDLIBRARY. This is normally the same as 5895# LDLIBRARY, but empty for MacOSX framework builds. 5896if test "$enable_framework" 5897then 5898 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5899 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5900 BLDLIBRARY='' 5901else 5902 BLDLIBRARY='$(LDLIBRARY)' 5903fi 5904 5905# Other platforms follow 5906if test $enable_shared = "yes"; then 5907 PY_ENABLE_SHARED=1 5908 5909$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5910 5911 case $ac_sys_system in 5912 CYGWIN*) 5913 LDLIBRARY='libpython$(LDVERSION).dll.a' 5914 DLLLIBRARY='libpython$(LDVERSION).dll' 5915 ;; 5916 SunOS*) 5917 LDLIBRARY='libpython$(LDVERSION).so' 5918 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 5919 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5920 INSTSONAME="$LDLIBRARY".$SOVERSION 5921 if test "$with_pydebug" != yes 5922 then 5923 PY3LIBRARY=libpython3.so 5924 fi 5925 ;; 5926 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5927 LDLIBRARY='libpython$(LDVERSION).so' 5928 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5929 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5930 INSTSONAME="$LDLIBRARY".$SOVERSION 5931 if test "$with_pydebug" != yes 5932 then 5933 PY3LIBRARY=libpython3.so 5934 fi 5935 ;; 5936 hp*|HP*) 5937 case `uname -m` in 5938 ia64) 5939 LDLIBRARY='libpython$(LDVERSION).so' 5940 ;; 5941 *) 5942 LDLIBRARY='libpython$(LDVERSION).sl' 5943 ;; 5944 esac 5945 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 5946 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5947 ;; 5948 Darwin*) 5949 LDLIBRARY='libpython$(LDVERSION).dylib' 5950 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5951 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5952 ;; 5953 AIX*) 5954 LDLIBRARY='libpython$(LDVERSION).so' 5955 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 5956 ;; 5957 5958 esac 5959else # shared is disabled 5960 PY_ENABLE_SHARED=0 5961 case $ac_sys_system in 5962 CYGWIN*) 5963 BLDLIBRARY='$(LIBRARY)' 5964 LDLIBRARY='libpython$(LDVERSION).dll.a' 5965 ;; 5966 esac 5967fi 5968 5969if test "$cross_compiling" = yes; then 5970 RUNSHARED= 5971fi 5972 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 5974$as_echo "$LDLIBRARY" >&6; } 5975 5976 5977if test -n "$ac_tool_prefix"; then 5978 for ac_prog in ar aal 5979 do 5980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5981set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5983$as_echo_n "checking for $ac_word... " >&6; } 5984if ${ac_cv_prog_AR+:} false; then : 5985 $as_echo_n "(cached) " >&6 5986else 5987 if test -n "$AR"; then 5988 ac_cv_prog_AR="$AR" # Let the user override the test. 5989else 5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5991for as_dir in $PATH 5992do 5993 IFS=$as_save_IFS 5994 test -z "$as_dir" && as_dir=. 5995 for ac_exec_ext in '' $ac_executable_extensions; do 5996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5999 break 2 6000 fi 6001done 6002 done 6003IFS=$as_save_IFS 6004 6005fi 6006fi 6007AR=$ac_cv_prog_AR 6008if test -n "$AR"; then 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6010$as_echo "$AR" >&6; } 6011else 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6013$as_echo "no" >&6; } 6014fi 6015 6016 6017 test -n "$AR" && break 6018 done 6019fi 6020if test -z "$AR"; then 6021 ac_ct_AR=$AR 6022 for ac_prog in ar aal 6023do 6024 # Extract the first word of "$ac_prog", so it can be a program name with args. 6025set dummy $ac_prog; ac_word=$2 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6027$as_echo_n "checking for $ac_word... " >&6; } 6028if ${ac_cv_prog_ac_ct_AR+:} false; then : 6029 $as_echo_n "(cached) " >&6 6030else 6031 if test -n "$ac_ct_AR"; then 6032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6033else 6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6035for as_dir in $PATH 6036do 6037 IFS=$as_save_IFS 6038 test -z "$as_dir" && as_dir=. 6039 for ac_exec_ext in '' $ac_executable_extensions; do 6040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6041 ac_cv_prog_ac_ct_AR="$ac_prog" 6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6043 break 2 6044 fi 6045done 6046 done 6047IFS=$as_save_IFS 6048 6049fi 6050fi 6051ac_ct_AR=$ac_cv_prog_ac_ct_AR 6052if test -n "$ac_ct_AR"; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6054$as_echo "$ac_ct_AR" >&6; } 6055else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6057$as_echo "no" >&6; } 6058fi 6059 6060 6061 test -n "$ac_ct_AR" && break 6062done 6063 6064 if test "x$ac_ct_AR" = x; then 6065 AR="ar" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 AR=$ac_ct_AR 6074 fi 6075fi 6076 6077 6078# tweak ARFLAGS only if the user didn't set it on the command line 6079 6080if test -z "$ARFLAGS" 6081then 6082 ARFLAGS="rcs" 6083fi 6084 6085if test -n "$ac_tool_prefix"; then 6086 for ac_prog in readelf 6087 do 6088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6089set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if ${ac_cv_prog_READELF+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$READELF"; then 6096 ac_cv_prog_READELF="$READELF" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115READELF=$ac_cv_prog_READELF 6116if test -n "$READELF"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 6118$as_echo "$READELF" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 6125 test -n "$READELF" && break 6126 done 6127fi 6128if test -z "$READELF"; then 6129 ac_ct_READELF=$READELF 6130 for ac_prog in readelf 6131do 6132 # Extract the first word of "$ac_prog", so it can be a program name with args. 6133set dummy $ac_prog; ac_word=$2 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6135$as_echo_n "checking for $ac_word... " >&6; } 6136if ${ac_cv_prog_ac_ct_READELF+:} false; then : 6137 $as_echo_n "(cached) " >&6 6138else 6139 if test -n "$ac_ct_READELF"; then 6140 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 6141else 6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6143for as_dir in $PATH 6144do 6145 IFS=$as_save_IFS 6146 test -z "$as_dir" && as_dir=. 6147 for ac_exec_ext in '' $ac_executable_extensions; do 6148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6149 ac_cv_prog_ac_ct_READELF="$ac_prog" 6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6151 break 2 6152 fi 6153done 6154 done 6155IFS=$as_save_IFS 6156 6157fi 6158fi 6159ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 6160if test -n "$ac_ct_READELF"; then 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 6162$as_echo "$ac_ct_READELF" >&6; } 6163else 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6165$as_echo "no" >&6; } 6166fi 6167 6168 6169 test -n "$ac_ct_READELF" && break 6170done 6171 6172 if test "x$ac_ct_READELF" = x; then 6173 READELF=":" 6174 else 6175 case $cross_compiling:$ac_tool_warned in 6176yes:) 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6179ac_tool_warned=yes ;; 6180esac 6181 READELF=$ac_ct_READELF 6182 fi 6183fi 6184 6185if test "$cross_compiling" = yes; then 6186 case "$READELF" in 6187 readelf|:) 6188 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 6189 ;; 6190 esac 6191fi 6192 6193 6194 6195case $MACHDEP in 6196hp*|HP*) 6197 # install -d does not work on HP-UX 6198 if test -z "$INSTALL" 6199 then 6200 INSTALL="${srcdir}/install-sh -c" 6201 fi 6202esac 6203# Find a good install program. We prefer a C program (faster), 6204# so one script is as good as another. But avoid the broken or 6205# incompatible versions: 6206# SysV /etc/install, /usr/sbin/install 6207# SunOS /usr/etc/install 6208# IRIX /sbin/install 6209# AIX /bin/install 6210# AmigaOS /C/install, which installs bootblocks on floppy discs 6211# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6212# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6213# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6214# OS/2's system install, which has a completely different semantic 6215# ./install, which can be erroneously created by make from ./install.sh. 6216# Reject install programs that cannot install multiple files. 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6218$as_echo_n "checking for a BSD-compatible install... " >&6; } 6219if test -z "$INSTALL"; then 6220if ${ac_cv_path_install+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222else 6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6224for as_dir in $PATH 6225do 6226 IFS=$as_save_IFS 6227 test -z "$as_dir" && as_dir=. 6228 # Account for people who put trailing slashes in PATH elements. 6229case $as_dir/ in #(( 6230 ./ | .// | /[cC]/* | \ 6231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6232 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6233 /usr/ucb/* ) ;; 6234 *) 6235 # OSF1 and SCO ODT 3.0 have their own names for install. 6236 # Don't use installbsd from OSF since it installs stuff as root 6237 # by default. 6238 for ac_prog in ginstall scoinst install; do 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6241 if test $ac_prog = install && 6242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6243 # AIX install. It has an incompatible calling convention. 6244 : 6245 elif test $ac_prog = install && 6246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6247 # program-specific install script used by HP pwplus--don't use. 6248 : 6249 else 6250 rm -rf conftest.one conftest.two conftest.dir 6251 echo one > conftest.one 6252 echo two > conftest.two 6253 mkdir conftest.dir 6254 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6255 test -s conftest.one && test -s conftest.two && 6256 test -s conftest.dir/conftest.one && 6257 test -s conftest.dir/conftest.two 6258 then 6259 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6260 break 3 6261 fi 6262 fi 6263 fi 6264 done 6265 done 6266 ;; 6267esac 6268 6269 done 6270IFS=$as_save_IFS 6271 6272rm -rf conftest.one conftest.two conftest.dir 6273 6274fi 6275 if test "${ac_cv_path_install+set}" = set; then 6276 INSTALL=$ac_cv_path_install 6277 else 6278 # As a last resort, use the slow shell script. Don't cache a 6279 # value for INSTALL within a source directory, because that will 6280 # break other packages using the cache if that directory is 6281 # removed, or if the value is a relative name. 6282 INSTALL=$ac_install_sh 6283 fi 6284fi 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6286$as_echo "$INSTALL" >&6; } 6287 6288# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6289# It thinks the first close brace ends the variable substitution. 6290test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6291 6292test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6293 6294test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6295 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6297$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6298if test -z "$MKDIR_P"; then 6299 if ${ac_cv_path_mkdir+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6303for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6304do 6305 IFS=$as_save_IFS 6306 test -z "$as_dir" && as_dir=. 6307 for ac_prog in mkdir gmkdir; do 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6310 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6311 'mkdir (GNU coreutils) '* | \ 6312 'mkdir (coreutils) '* | \ 6313 'mkdir (fileutils) '4.1*) 6314 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6315 break 3;; 6316 esac 6317 done 6318 done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323 6324 test -d ./--version && rmdir ./--version 6325 if test "${ac_cv_path_mkdir+set}" = set; then 6326 MKDIR_P="$ac_cv_path_mkdir -p" 6327 else 6328 # As a last resort, use the slow shell script. Don't cache a 6329 # value for MKDIR_P within a source directory, because that will 6330 # break other packages using the cache if that directory is 6331 # removed, or if the value is a relative name. 6332 MKDIR_P="$ac_install_sh -d" 6333 fi 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6336$as_echo "$MKDIR_P" >&6; } 6337 6338 6339# Not every filesystem supports hard links 6340 6341if test -z "$LN" ; then 6342 case $ac_sys_system in 6343 CYGWIN*) LN="ln -s";; 6344 *) LN=ln;; 6345 esac 6346fi 6347 6348# For calculating the .so ABI tag. 6349 6350ABIFLAGS="" 6351 6352# Check for --with-pydebug 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 6354$as_echo_n "checking for --with-pydebug... " >&6; } 6355 6356# Check whether --with-pydebug was given. 6357if test "${with_pydebug+set}" = set; then : 6358 withval=$with_pydebug; 6359if test "$withval" != no 6360then 6361 6362$as_echo "#define Py_DEBUG 1" >>confdefs.h 6363 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6365$as_echo "yes" >&6; }; 6366 Py_DEBUG='true' 6367 ABIFLAGS="${ABIFLAGS}d" 6368else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369$as_echo "no" >&6; }; Py_DEBUG='false' 6370fi 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 6377# Check for --with-assertions. Py_DEBUG implies assertions, but also changes 6378# the ABI. This allows enabling assertions without changing the ABI. 6379assertions='false' 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 6381$as_echo_n "checking for --with-assertions... " >&6; } 6382 6383# Check whether --with-assertions was given. 6384if test "${with_assertions+set}" = set; then : 6385 withval=$with_assertions; 6386if test "$withval" != no 6387then 6388 assertions='true' 6389fi 6390fi 6391 6392if test "$assertions" = 'true'; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6394$as_echo "yes" >&6; } 6395elif test "$Py_DEBUG" = 'true'; then 6396 assertions='true' 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 6398$as_echo "implied by --with-pydebug" >&6; } 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404# Enable optimization flags 6405 6406 6407Py_OPT='false' 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6409$as_echo_n "checking for --enable-optimizations... " >&6; } 6410# Check whether --enable-optimizations was given. 6411if test "${enable_optimizations+set}" = set; then : 6412 enableval=$enable_optimizations; 6413if test "$enableval" != no 6414then 6415 Py_OPT='true' 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6417$as_echo "yes" >&6; }; 6418else 6419 Py_OPT='false' 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6421$as_echo "no" >&6; }; 6422fi 6423else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425$as_echo "no" >&6; } 6426fi 6427 6428if test "$Py_OPT" = 'true' ; then 6429 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6430 # compile working code using it and both test_distutils and test_gdb are 6431 # broken when you do manage to get a toolchain that works with it. People 6432 # who want LTO need to use --with-lto themselves. 6433 DEF_MAKE_ALL_RULE="profile-opt" 6434 REQUIRE_PGO="yes" 6435 DEF_MAKE_RULE="build_all" 6436else 6437 DEF_MAKE_ALL_RULE="build_all" 6438 REQUIRE_PGO="no" 6439 DEF_MAKE_RULE="all" 6440fi 6441 6442# Make llvm-relatec checks work on systems where llvm tools are not installed with their 6443# normal names in the default $PATH (ie: Ubuntu). They exist under the 6444# non-suffixed name in their versioned llvm directory. 6445 6446llvm_bin_dir='' 6447llvm_path="${PATH}" 6448if test "${CC}" = "clang" 6449then 6450 clang_bin=`which clang` 6451 # Some systems install clang elsewhere as a symlink to the real path 6452 # which is where the related llvm tools are located. 6453 if test -L "${clang_bin}" 6454 then 6455 clang_dir=`dirname "${clang_bin}"` 6456 clang_bin=`readlink "${clang_bin}"` 6457 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6458 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6459 fi 6460fi 6461 6462# Enable LTO flags 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6464$as_echo_n "checking for --with-lto... " >&6; } 6465 6466# Check whether --with-lto was given. 6467if test "${with_lto+set}" = set; then : 6468 withval=$with_lto; 6469if test "$withval" != no 6470then 6471 Py_LTO='true' 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6473$as_echo "yes" >&6; }; 6474else 6475 Py_LTO='false' 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; }; 6478fi 6479else 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6481$as_echo "no" >&6; } 6482fi 6483 6484if test "$Py_LTO" = 'true' ; then 6485 case $CC in 6486 *clang*) 6487 6488 if test -n "$ac_tool_prefix"; then 6489 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. 6490set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6492$as_echo_n "checking for $ac_word... " >&6; } 6493if ${ac_cv_path_LLVM_AR+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 case $LLVM_AR in 6497 [\\/]* | ?:[\\/]*) 6498 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. 6499 ;; 6500 *) 6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502for as_dir in ${llvm_path} 6503do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6508 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512done 6513 done 6514IFS=$as_save_IFS 6515 6516 ;; 6517esac 6518fi 6519LLVM_AR=$ac_cv_path_LLVM_AR 6520if test -n "$LLVM_AR"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 6522$as_echo "$LLVM_AR" >&6; } 6523else 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6525$as_echo "no" >&6; } 6526fi 6527 6528 6529fi 6530if test -z "$ac_cv_path_LLVM_AR"; then 6531 ac_pt_LLVM_AR=$LLVM_AR 6532 # Extract the first word of "llvm-ar", so it can be a program name with args. 6533set dummy llvm-ar; ac_word=$2 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6535$as_echo_n "checking for $ac_word... " >&6; } 6536if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 case $ac_pt_LLVM_AR in 6540 [\\/]* | ?:[\\/]*) 6541 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. 6542 ;; 6543 *) 6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6545for as_dir in ${llvm_path} 6546do 6547 IFS=$as_save_IFS 6548 test -z "$as_dir" && as_dir=. 6549 for ac_exec_ext in '' $ac_executable_extensions; do 6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6551 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6553 break 2 6554 fi 6555done 6556 done 6557IFS=$as_save_IFS 6558 6559 ;; 6560esac 6561fi 6562ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR 6563if test -n "$ac_pt_LLVM_AR"; then 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 6565$as_echo "$ac_pt_LLVM_AR" >&6; } 6566else 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6568$as_echo "no" >&6; } 6569fi 6570 6571 if test "x$ac_pt_LLVM_AR" = x; then 6572 LLVM_AR="''" 6573 else 6574 case $cross_compiling:$ac_tool_warned in 6575yes:) 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6578ac_tool_warned=yes ;; 6579esac 6580 LLVM_AR=$ac_pt_LLVM_AR 6581 fi 6582else 6583 LLVM_AR="$ac_cv_path_LLVM_AR" 6584fi 6585 6586 6587 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" 6588 then 6589 LLVM_AR_FOUND="found" 6590 else 6591 LLVM_AR_FOUND="not-found" 6592 fi 6593 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" 6594 then 6595 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` 6596 if test -n "${found_llvm_ar}" 6597 then 6598 LLVM_AR='/usr/bin/xcrun llvm-ar' 6599 LLVM_AR_FOUND=found 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 6601$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} 6602 fi 6603 fi 6604 if test $LLVM_AR_FOUND = not-found 6605 then 6606 LLVM_PROFR_ERR=yes 6607 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 6608 else 6609 LLVM_AR_ERR=no 6610 fi 6611 AR="${LLVM_AR}" 6612 case $ac_sys_system in 6613 Darwin*) 6614 # Any changes made here should be reflected in the GCC+Darwin case below 6615 LTOFLAGS="-flto -Wl,-export_dynamic" 6616 ;; 6617 *) 6618 LTOFLAGS="-flto" 6619 ;; 6620 esac 6621 ;; 6622 *gcc*) 6623 case $ac_sys_system in 6624 Darwin*) 6625 LTOFLAGS="-flto -Wl,-export_dynamic" 6626 ;; 6627 *) 6628 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6629 ;; 6630 esac 6631 ;; 6632 esac 6633 6634 if test "$ac_cv_prog_cc_g" = "yes" 6635 then 6636 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 6637 # to get debug symbols. 6638 LTOFLAGS="$LTOFLAGS -g" 6639 fi 6640 6641 CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" 6642 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" 6643fi 6644 6645# Enable PGO flags. 6646 6647 6648 6649 6650 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 case $LLVM_PROFDATA in 6661 [\\/]* | ?:[\\/]*) 6662 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6663 ;; 6664 *) 6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in ${llvm_path} 6667do 6668 IFS=$as_save_IFS 6669 test -z "$as_dir" && as_dir=. 6670 for ac_exec_ext in '' $ac_executable_extensions; do 6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6672 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6674 break 2 6675 fi 6676done 6677 done 6678IFS=$as_save_IFS 6679 6680 ;; 6681esac 6682fi 6683LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6684if test -n "$LLVM_PROFDATA"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6686$as_echo "$LLVM_PROFDATA" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 6693fi 6694if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6695 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6696 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6697set dummy llvm-profdata; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 case $ac_pt_LLVM_PROFDATA in 6704 [\\/]* | ?:[\\/]*) 6705 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6706 ;; 6707 *) 6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in ${llvm_path} 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6715 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723 ;; 6724esac 6725fi 6726ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6727if test -n "$ac_pt_LLVM_PROFDATA"; then 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6729$as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6730else 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732$as_echo "no" >&6; } 6733fi 6734 6735 if test "x$ac_pt_LLVM_PROFDATA" = x; then 6736 LLVM_PROFDATA="''" 6737 else 6738 case $cross_compiling:$ac_tool_warned in 6739yes:) 6740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6742ac_tool_warned=yes ;; 6743esac 6744 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6745 fi 6746else 6747 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6748fi 6749 6750 6751if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6752then 6753 LLVM_PROF_FOUND="found" 6754else 6755 LLVM_PROF_FOUND="not-found" 6756fi 6757if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6758then 6759 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6760 if test -n "${found_llvm_profdata}" 6761 then 6762 # llvm-profdata isn't directly in $PATH in some cases. 6763 # https://apple.stackexchange.com/questions/197053/ 6764 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6765 LLVM_PROF_FOUND=found 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6767$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6768 fi 6769fi 6770LLVM_PROF_ERR=no 6771case $CC in 6772 *clang*) 6773 # Any changes made here should be reflected in the GCC+Darwin case below 6774 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6775 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6776 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6777 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6778 if test $LLVM_PROF_FOUND = not-found 6779 then 6780 LLVM_PROF_ERR=yes 6781 if test "${REQUIRE_PGO}" = "yes" 6782 then 6783 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6784 fi 6785 fi 6786 ;; 6787 *gcc*) 6788 case $ac_sys_system in 6789 Darwin*) 6790 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6791 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6792 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6793 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6794 if test "${LLVM_PROF_FOUND}" = "not-found" 6795 then 6796 LLVM_PROF_ERR=yes 6797 if test "${REQUIRE_PGO}" = "yes" 6798 then 6799 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6800 fi 6801 fi 6802 ;; 6803 *) 6804 PGO_PROF_GEN_FLAG="-fprofile-generate" 6805 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6806 LLVM_PROF_MERGER="true" 6807 LLVM_PROF_FILE="" 6808 ;; 6809 esac 6810 ;; 6811 *icc*) 6812 PGO_PROF_GEN_FLAG="-prof-gen" 6813 PGO_PROF_USE_FLAG="-prof-use" 6814 LLVM_PROF_MERGER="true" 6815 LLVM_PROF_FILE="" 6816 ;; 6817esac 6818 6819# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 6820# merged with this chunk of code? 6821 6822# Optimizer/debugger flags 6823# ------------------------ 6824# (The following bit of code is complicated enough - please keep things 6825# indented properly. Just pretend you're editing Python code. ;-) 6826 6827# There are two parallel sets of case statements below, one that checks to 6828# see if OPT was set and one that does BASECFLAGS setting based upon 6829# compiler and platform. BASECFLAGS tweaks need to be made even if the 6830# user set OPT. 6831 6832# tweak OPT based on compiler and platform, only if the user didn't set 6833# it on the command line 6834 6835 6836if test "${OPT-unset}" = "unset" 6837then 6838 case $GCC in 6839 yes) 6840 # For gcc 4.x we need to use -fwrapv so lets check if its supported 6841 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 6842 WRAP="-fwrapv" 6843 fi 6844 6845 case $CC in 6846 *clang*) 6847 cc_is_clang=1 6848 ;; 6849 *) 6850 if $CC --version 2>&1 | grep -q clang 6851 then 6852 cc_is_clang=1 6853 else 6854 cc_is_clang= 6855 fi 6856 esac 6857 6858 if test -n "${cc_is_clang}" 6859 then 6860 # Clang also needs -fwrapv 6861 WRAP="-fwrapv" 6862 # bpo-30104: disable strict aliasing to compile correctly dtoa.c, 6863 # see Makefile.pre.in for more information 6864 CFLAGS_ALIASING="-fno-strict-aliasing" 6865 fi 6866 6867 case $ac_cv_prog_cc_g in 6868 yes) 6869 if test "$Py_DEBUG" = 'true' ; then 6870 # Optimization messes up debuggers, so turn it off for 6871 # debug builds. 6872 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then 6873 OPT="-g -Og -Wall" 6874 else 6875 OPT="-g -O0 -Wall" 6876 fi 6877 else 6878 OPT="-g $WRAP -O3 -Wall" 6879 fi 6880 ;; 6881 *) 6882 OPT="-O3 -Wall" 6883 ;; 6884 esac 6885 6886 case $ac_sys_system in 6887 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6888 ;; 6889 esac 6890 ;; 6891 6892 *) 6893 OPT="-O" 6894 ;; 6895 esac 6896fi 6897 6898 6899 6900 6901 6902# The -arch flags for universal builds on OSX 6903UNIVERSAL_ARCH_FLAGS= 6904 6905 6906# tweak BASECFLAGS based on compiler and platform 6907case $GCC in 6908yes) 6909 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" 6910 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 6912$as_echo_n "checking for -Wextra... " >&6; } 6913 ac_save_cc="$CC" 6914 CC="$CC -Wextra -Werror" 6915 if ${ac_cv_extra_warnings+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919/* end confdefs.h. */ 6920 6921 6922int 6923main () 6924{ 6925 6926 ; 6927 return 0; 6928} 6929 6930_ACEOF 6931if ac_fn_c_try_compile "$LINENO"; then : 6932 6933 ac_cv_extra_warnings=yes 6934 6935else 6936 6937 ac_cv_extra_warnings=no 6938 6939fi 6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6941fi 6942 6943 CC="$ac_save_cc" 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 6945$as_echo "$ac_cv_extra_warnings" >&6; } 6946 6947 if test $ac_cv_extra_warnings = yes 6948 then 6949 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 6950 fi 6951 6952 # Python doesn't violate C99 aliasing rules, but older versions of 6953 # GCC produce warnings for legal Python code. Enable 6954 # -fno-strict-aliasing on versions of GCC that support but produce 6955 # warnings. See Issue3326 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 6957$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 6958 ac_save_cc="$CC" 6959 CC="$CC -fno-strict-aliasing" 6960 save_CFLAGS="$CFLAGS" 6961 if ${ac_cv_no_strict_aliasing+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966 6967 6968int 6969main () 6970{ 6971 6972 ; 6973 return 0; 6974} 6975 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO"; then : 6978 6979 CC="$ac_save_cc -fstrict-aliasing" 6980 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983 6984 void f(int **x) {} 6985int 6986main () 6987{ 6988double *x; f((int **) &x); 6989 ; 6990 return 0; 6991} 6992 6993_ACEOF 6994if ac_fn_c_try_compile "$LINENO"; then : 6995 6996 ac_cv_no_strict_aliasing=no 6997 6998else 6999 7000 ac_cv_no_strict_aliasing=yes 7001 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7004 7005else 7006 7007 ac_cv_no_strict_aliasing=no 7008 7009fi 7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7011fi 7012 7013 CFLAGS="$save_CFLAGS" 7014 CC="$ac_save_cc" 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 7016$as_echo "$ac_cv_no_strict_aliasing" >&6; } 7017 if test $ac_cv_no_strict_aliasing = yes 7018 then 7019 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 7020 fi 7021 7022 # ICC doesn't recognize the option, but only emits a warning 7023 ## XXX does it emit an unused result warning and can it be disabled? 7024 case "$CC" in 7025 *icc*) 7026 ac_cv_disable_unused_result_warning=no 7027 ;; 7028 *) 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 7030$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } 7031 ac_save_cc="$CC" 7032 CC="$CC -Wunused-result -Werror" 7033 save_CFLAGS="$CFLAGS" 7034 if ${ac_cv_disable_unused_result_warning+:} false; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039 7040 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048 7049_ACEOF 7050if ac_fn_c_try_compile "$LINENO"; then : 7051 7052 ac_cv_disable_unused_result_warning=yes 7053 7054else 7055 7056 ac_cv_disable_unused_result_warning=no 7057 7058fi 7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7060fi 7061 7062 CFLAGS="$save_CFLAGS" 7063 CC="$ac_save_cc" 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 7065$as_echo "$ac_cv_disable_unused_result_warning" >&6; } 7066 ;; 7067 esac 7068 7069 if test $ac_cv_disable_unused_result_warning = yes 7070 then 7071 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 7072 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 7073 fi 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 7076$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } 7077 ac_save_cc="$CC" 7078 CC="$CC -Wunused-parameter -Werror" 7079 if ${ac_cv_disable_unused_parameter_warning+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084 7085 7086int 7087main () 7088{ 7089 7090 ; 7091 return 0; 7092} 7093 7094_ACEOF 7095if ac_fn_c_try_compile "$LINENO"; then : 7096 7097 ac_cv_disable_unused_parameter_warning=yes 7098 7099else 7100 7101 ac_cv_disable_unused_parameter_warning=no 7102 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7105fi 7106 7107 CC="$ac_save_cc" 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 7109$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } 7110 7111 if test $ac_cv_disable_unused_parameter_warning = yes 7112 then 7113 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 7114 fi 7115 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 7117$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } 7118 ac_save_cc="$CC" 7119 CC="$CC -Wmissing-field-initializers -Werror" 7120 if ${ac_cv_disable_missing_field_initializers+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125 7126 7127int 7128main () 7129{ 7130 7131 ; 7132 return 0; 7133} 7134 7135_ACEOF 7136if ac_fn_c_try_compile "$LINENO"; then : 7137 7138 ac_cv_disable_missing_field_initializers=yes 7139 7140else 7141 7142 ac_cv_disable_missing_field_initializers=no 7143 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7146fi 7147 7148 CC="$ac_save_cc" 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 7150$as_echo "$ac_cv_disable_missing_field_initializers" >&6; } 7151 7152 if test $ac_cv_disable_missing_field_initializers = yes 7153 then 7154 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 7155 fi 7156 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5 7158$as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; } 7159 ac_save_cc="$CC" 7160 CC="$CC -Wcast-function-type -Werror" 7161 if ${ac_cv_disable_cast_function_type+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166 7167 7168int 7169main () 7170{ 7171 7172 ; 7173 return 0; 7174} 7175 7176_ACEOF 7177if ac_fn_c_try_compile "$LINENO"; then : 7178 7179 ac_cv_disable_cast_function_type=yes 7180 7181else 7182 7183 ac_cv_disable_cast_function_type=no 7184 7185fi 7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187fi 7188 7189 CC="$ac_save_cc" 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5 7191$as_echo "$ac_cv_disable_cast_function_type" >&6; } 7192 7193 if test $ac_cv_disable_cast_function_type = yes 7194 then 7195 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type" 7196 fi 7197 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 7199$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } 7200 ac_save_cc="$CC" 7201 CC="$CC -Wsign-compare" 7202 save_CFLAGS="$CFLAGS" 7203 if ${ac_cv_enable_sign_compare_warning+:} false; then : 7204 $as_echo_n "(cached) " >&6 7205else 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207/* end confdefs.h. */ 7208 7209 7210int 7211main () 7212{ 7213 7214 ; 7215 return 0; 7216} 7217 7218_ACEOF 7219if ac_fn_c_try_compile "$LINENO"; then : 7220 7221 ac_cv_enable_sign_compare_warning=yes 7222 7223else 7224 7225 ac_cv_enable_sign_compare_warning=no 7226 7227fi 7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7229fi 7230 7231 CFLAGS="$save_CFLAGS" 7232 CC="$ac_save_cc" 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 7234$as_echo "$ac_cv_enable_sign_compare_warning" >&6; } 7235 7236 if test $ac_cv_enable_sign_compare_warning = yes 7237 then 7238 BASECFLAGS="$BASECFLAGS -Wsign-compare" 7239 fi 7240 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 7242$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } 7243 ac_save_cc="$CC" 7244 CC="$CC -Wunreachable-code" 7245 save_CFLAGS="$CFLAGS" 7246 if ${ac_cv_enable_unreachable_code_warning+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251 7252 7253int 7254main () 7255{ 7256 7257 ; 7258 return 0; 7259} 7260 7261_ACEOF 7262if ac_fn_c_try_compile "$LINENO"; then : 7263 7264 ac_cv_enable_unreachable_code_warning=yes 7265 7266else 7267 7268 ac_cv_enable_unreachable_code_warning=no 7269 7270fi 7271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7272fi 7273 7274 CFLAGS="$save_CFLAGS" 7275 CC="$ac_save_cc" 7276 7277 # Don't enable unreachable code warning in debug mode, since it usually 7278 # results in non-standard code paths. 7279 # Issue #24324: Unfortunately, the unreachable code warning does not work 7280 # correctly on gcc and has been silently removed from the compiler. 7281 # It is supported on clang but on OS X systems gcc may be an alias 7282 # for clang. Try to determine if the compiler is not really gcc and, 7283 # if so, only then enable the warning. 7284 if test $ac_cv_enable_unreachable_code_warning = yes && \ 7285 test "$Py_DEBUG" != "true" && \ 7286 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 7287 then 7288 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 7289 else 7290 ac_cv_enable_unreachable_code_warning=no 7291 fi 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 7293$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } 7294 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 7296$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } 7297 ac_save_cc="$CC" 7298 CC="$CC -Werror -Wstrict-prototypes" 7299 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303/* end confdefs.h. */ 7304 7305 7306int 7307main () 7308{ 7309 7310 ; 7311 return 0; 7312} 7313 7314_ACEOF 7315if ac_fn_c_try_compile "$LINENO"; then : 7316 7317 ac_cv_enable_strict_prototypes_warning=yes 7318 7319else 7320 7321 ac_cv_enable_strict_prototypes_warning=no 7322 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325fi 7326 7327 CC="$ac_save_cc" 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 7329$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } 7330 7331 if test $ac_cv_enable_strict_prototypes_warning = yes 7332 then 7333 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" 7334 fi 7335 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 7337$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } 7338 ac_save_cc="$CC" 7339 CC="$CC -Werror=implicit-function-declaration" 7340 if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344/* end confdefs.h. */ 7345 7346 7347int 7348main () 7349{ 7350 7351 ; 7352 return 0; 7353} 7354 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO"; then : 7357 7358 ac_cv_enable_implicit_function_declaration_error=yes 7359 7360else 7361 7362 ac_cv_enable_implicit_function_declaration_error=no 7363 7364fi 7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7366fi 7367 7368 CC="$ac_save_cc" 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 7370$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } 7371 7372 if test $ac_cv_enable_implicit_function_declaration_error = yes 7373 then 7374 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 7375 fi 7376 7377 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 7378 # support. Without this, treatment of subnormals doesn't follow 7379 # the standard. 7380 case $host in 7381 alpha*) 7382 BASECFLAGS="$BASECFLAGS -mieee" 7383 ;; 7384 esac 7385 7386 case $ac_sys_system in 7387 SCO_SV*) 7388 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 7389 ;; 7390 7391 # is there any other compiler on Darwin besides gcc? 7392 Darwin*) 7393 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 7394 # used to be here, but non-Apple gcc doesn't accept them. 7395 if test "${CC}" = gcc 7396 then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 7398$as_echo_n "checking which compiler should be used... " >&6; } 7399 case "${UNIVERSALSDK}" in 7400 */MacOSX10.4u.sdk) 7401 # Build using 10.4 SDK, force usage of gcc when the 7402 # compiler is gcc, otherwise the user will get very 7403 # confusing error messages when building on OSX 10.6 7404 CC=gcc-4.0 7405 CPP=cpp-4.0 7406 ;; 7407 esac 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7409$as_echo "$CC" >&6; } 7410 fi 7411 7412 if test "${enable_universalsdk}" 7413 then 7414 case "$UNIVERSAL_ARCHS" in 7415 32-bit) 7416 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 7417 LIPO_32BIT_FLAGS="" 7418 ARCH_RUN_32BIT="" 7419 ;; 7420 64-bit) 7421 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 7422 LIPO_32BIT_FLAGS="" 7423 ARCH_RUN_32BIT="true" 7424 ;; 7425 all) 7426 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 7427 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7428 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7429 ;; 7430 intel) 7431 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 7432 LIPO_32BIT_FLAGS="-extract i386" 7433 ARCH_RUN_32BIT="/usr/bin/arch -i386" 7434 ;; 7435 intel-32) 7436 UNIVERSAL_ARCH_FLAGS="-arch i386" 7437 LIPO_32BIT_FLAGS="" 7438 ARCH_RUN_32BIT="" 7439 ;; 7440 intel-64) 7441 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 7442 LIPO_32BIT_FLAGS="" 7443 ARCH_RUN_32BIT="true" 7444 ;; 7445 3-way) 7446 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 7447 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7448 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7449 ;; 7450 *) 7451 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 7452 ;; 7453 esac 7454 7455 if test "${UNIVERSALSDK}" != "/" 7456 then 7457 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 7458 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 7459 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 7460 else 7461 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 7462 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 7463 fi 7464 fi 7465 7466 # Calculate an appropriate deployment target for this build: 7467 # The deployment target value is used explicitly to enable certain 7468 # features are enabled (such as builtin libedit support for readline) 7469 # through the use of Apple's Availability Macros and is used as a 7470 # component of the string returned by distutils.get_platform(). 7471 # 7472 # Use the value from: 7473 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 7474 # 2. the operating system version of the build machine if >= 10.6 7475 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 7476 # below to pick either 10.3, 10.4, or 10.5 as the target. 7477 # 4. If we are running on OS X 10.2 or earlier, good luck! 7478 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 7480$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 7481 cur_target_major=`sw_vers -productVersion | \ 7482 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 7483 cur_target_minor=`sw_vers -productVersion | \ 7484 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 7485 cur_target="${cur_target_major}.${cur_target_minor}" 7486 if test ${cur_target_major} -eq 10 && \ 7487 test ${cur_target_minor} -ge 3 && \ 7488 test ${cur_target_minor} -le 5 7489 then 7490 # OS X 10.3 through 10.5 7491 cur_target=10.3 7492 if test ${enable_universalsdk} 7493 then 7494 case "$UNIVERSAL_ARCHS" in 7495 all|3-way|intel|64-bit) 7496 # These configurations were first supported in 10.5 7497 cur_target='10.5' 7498 ;; 7499 esac 7500 else 7501 if test `/usr/bin/arch` = "i386" 7502 then 7503 # 10.4 was the first release to support Intel archs 7504 cur_target="10.4" 7505 fi 7506 fi 7507 fi 7508 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 7509 7510 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 7511 # environment with a value that is the same as what we'll use 7512 # in the Makefile to ensure that we'll get the same compiler 7513 # environment during configure and build time. 7514 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 7515 export MACOSX_DEPLOYMENT_TARGET 7516 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 7518$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } 7519 7520 # end of Darwin* tests 7521 ;; 7522 esac 7523 ;; 7524 7525*) 7526 case $ac_sys_system in 7527 OpenUNIX*|UnixWare*) 7528 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 7529 ;; 7530 SCO_SV*) 7531 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 7532 ;; 7533 esac 7534 ;; 7535esac 7536 7537# ICC needs -fp-model strict or floats behave badly 7538case "$CC" in 7539*icc*) 7540 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 7541 ;; 7542esac 7543 7544if test "$assertions" = 'true'; then 7545 : 7546else 7547 OPT="-DNDEBUG $OPT" 7548fi 7549 7550if test "$ac_arch_flags" 7551then 7552 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 7553fi 7554 7555# On some compilers, pthreads are available without further options 7556# (e.g. MacOS X). On some of these systems, the compiler will not 7557# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 7558# So we have to see first whether pthreads are available without 7559# options before we can check whether -Kpthread improves anything. 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 7561$as_echo_n "checking whether pthreads are available without options... " >&6; } 7562if ${ac_cv_pthread_is_default+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564else 7565 if test "$cross_compiling" = yes; then : 7566 ac_cv_pthread_is_default=no 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570 7571#include <stdio.h> 7572#include <pthread.h> 7573 7574void* routine(void* p){return NULL;} 7575 7576int main(){ 7577 pthread_t p; 7578 if(pthread_create(&p,NULL,routine,NULL)!=0) 7579 return 1; 7580 (void)pthread_detach(p); 7581 return 0; 7582} 7583 7584_ACEOF 7585if ac_fn_c_try_run "$LINENO"; then : 7586 7587 ac_cv_pthread_is_default=yes 7588 ac_cv_kthread=no 7589 ac_cv_pthread=no 7590 7591else 7592 ac_cv_pthread_is_default=no 7593fi 7594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7595 conftest.$ac_objext conftest.beam conftest.$ac_ext 7596fi 7597 7598 7599fi 7600 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 7602$as_echo "$ac_cv_pthread_is_default" >&6; } 7603 7604 7605if test $ac_cv_pthread_is_default = yes 7606then 7607 ac_cv_kpthread=no 7608else 7609# -Kpthread, if available, provides the right #defines 7610# and linker options to make pthread_create available 7611# Some compilers won't report that they do not support -Kpthread, 7612# so we need to run a program to see whether it really made the 7613# function available. 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 7615$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 7616if ${ac_cv_kpthread+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 ac_save_cc="$CC" 7620CC="$CC -Kpthread" 7621if test "$cross_compiling" = yes; then : 7622 ac_cv_kpthread=no 7623else 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625/* end confdefs.h. */ 7626 7627#include <stdio.h> 7628#include <pthread.h> 7629 7630void* routine(void* p){return NULL;} 7631 7632int main(){ 7633 pthread_t p; 7634 if(pthread_create(&p,NULL,routine,NULL)!=0) 7635 return 1; 7636 (void)pthread_detach(p); 7637 return 0; 7638} 7639 7640_ACEOF 7641if ac_fn_c_try_run "$LINENO"; then : 7642 ac_cv_kpthread=yes 7643else 7644 ac_cv_kpthread=no 7645fi 7646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7647 conftest.$ac_objext conftest.beam conftest.$ac_ext 7648fi 7649 7650CC="$ac_save_cc" 7651fi 7652 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 7654$as_echo "$ac_cv_kpthread" >&6; } 7655fi 7656 7657if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 7658then 7659# -Kthread, if available, provides the right #defines 7660# and linker options to make pthread_create available 7661# Some compilers won't report that they do not support -Kthread, 7662# so we need to run a program to see whether it really made the 7663# function available. 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 7665$as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 7666if ${ac_cv_kthread+:} false; then : 7667 $as_echo_n "(cached) " >&6 7668else 7669 ac_save_cc="$CC" 7670CC="$CC -Kthread" 7671if test "$cross_compiling" = yes; then : 7672 ac_cv_kthread=no 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676 7677#include <stdio.h> 7678#include <pthread.h> 7679 7680void* routine(void* p){return NULL;} 7681 7682int main(){ 7683 pthread_t p; 7684 if(pthread_create(&p,NULL,routine,NULL)!=0) 7685 return 1; 7686 (void)pthread_detach(p); 7687 return 0; 7688} 7689 7690_ACEOF 7691if ac_fn_c_try_run "$LINENO"; then : 7692 ac_cv_kthread=yes 7693else 7694 ac_cv_kthread=no 7695fi 7696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7697 conftest.$ac_objext conftest.beam conftest.$ac_ext 7698fi 7699 7700CC="$ac_save_cc" 7701fi 7702 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 7704$as_echo "$ac_cv_kthread" >&6; } 7705fi 7706 7707if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 7708then 7709# -pthread, if available, provides the right #defines 7710# and linker options to make pthread_create available 7711# Some compilers won't report that they do not support -pthread, 7712# so we need to run a program to see whether it really made the 7713# function available. 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 7715$as_echo_n "checking whether $CC accepts -pthread... " >&6; } 7716if ${ac_cv_pthread+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 ac_save_cc="$CC" 7720CC="$CC -pthread" 7721if test "$cross_compiling" = yes; then : 7722 ac_cv_pthread=no 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726 7727#include <stdio.h> 7728#include <pthread.h> 7729 7730void* routine(void* p){return NULL;} 7731 7732int main(){ 7733 pthread_t p; 7734 if(pthread_create(&p,NULL,routine,NULL)!=0) 7735 return 1; 7736 (void)pthread_detach(p); 7737 return 0; 7738} 7739 7740_ACEOF 7741if ac_fn_c_try_run "$LINENO"; then : 7742 ac_cv_pthread=yes 7743else 7744 ac_cv_pthread=no 7745fi 7746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7747 conftest.$ac_objext conftest.beam conftest.$ac_ext 7748fi 7749 7750CC="$ac_save_cc" 7751fi 7752 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 7754$as_echo "$ac_cv_pthread" >&6; } 7755fi 7756 7757# If we have set a CC compiler flag for thread support then 7758# check if it works for CXX, too. 7759ac_cv_cxx_thread=no 7760if test ! -z "$CXX" 7761then 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 7763$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 7764ac_save_cxx="$CXX" 7765 7766if test "$ac_cv_kpthread" = "yes" 7767then 7768 CXX="$CXX -Kpthread" 7769 ac_cv_cxx_thread=yes 7770elif test "$ac_cv_kthread" = "yes" 7771then 7772 CXX="$CXX -Kthread" 7773 ac_cv_cxx_thread=yes 7774elif test "$ac_cv_pthread" = "yes" 7775then 7776 CXX="$CXX -pthread" 7777 ac_cv_cxx_thread=yes 7778fi 7779 7780if test $ac_cv_cxx_thread = yes 7781then 7782 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 7783 $CXX -c conftest.$ac_ext 2>&5 7784 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 7785 && test -s conftest$ac_exeext && ./conftest$ac_exeext 7786 then 7787 ac_cv_cxx_thread=yes 7788 else 7789 ac_cv_cxx_thread=no 7790 fi 7791 rm -fr conftest* 7792fi 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 7794$as_echo "$ac_cv_cxx_thread" >&6; } 7795fi 7796CXX="$ac_save_cxx" 7797 7798 7799# checks for header files 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7801$as_echo_n "checking for ANSI C header files... " >&6; } 7802if ${ac_cv_header_stdc+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806/* end confdefs.h. */ 7807#include <stdlib.h> 7808#include <stdarg.h> 7809#include <string.h> 7810#include <float.h> 7811 7812int 7813main () 7814{ 7815 7816 ; 7817 return 0; 7818} 7819_ACEOF 7820if ac_fn_c_try_compile "$LINENO"; then : 7821 ac_cv_header_stdc=yes 7822else 7823 ac_cv_header_stdc=no 7824fi 7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7826 7827if test $ac_cv_header_stdc = yes; then 7828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831#include <string.h> 7832 7833_ACEOF 7834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7835 $EGREP "memchr" >/dev/null 2>&1; then : 7836 7837else 7838 ac_cv_header_stdc=no 7839fi 7840rm -f conftest* 7841 7842fi 7843 7844if test $ac_cv_header_stdc = yes; then 7845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848#include <stdlib.h> 7849 7850_ACEOF 7851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7852 $EGREP "free" >/dev/null 2>&1; then : 7853 7854else 7855 ac_cv_header_stdc=no 7856fi 7857rm -f conftest* 7858 7859fi 7860 7861if test $ac_cv_header_stdc = yes; then 7862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7863 if test "$cross_compiling" = yes; then : 7864 : 7865else 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867/* end confdefs.h. */ 7868#include <ctype.h> 7869#include <stdlib.h> 7870#if ((' ' & 0x0FF) == 0x020) 7871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7873#else 7874# define ISLOWER(c) \ 7875 (('a' <= (c) && (c) <= 'i') \ 7876 || ('j' <= (c) && (c) <= 'r') \ 7877 || ('s' <= (c) && (c) <= 'z')) 7878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7879#endif 7880 7881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7882int 7883main () 7884{ 7885 int i; 7886 for (i = 0; i < 256; i++) 7887 if (XOR (islower (i), ISLOWER (i)) 7888 || toupper (i) != TOUPPER (i)) 7889 return 2; 7890 return 0; 7891} 7892_ACEOF 7893if ac_fn_c_try_run "$LINENO"; then : 7894 7895else 7896 ac_cv_header_stdc=no 7897fi 7898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7899 conftest.$ac_objext conftest.beam conftest.$ac_ext 7900fi 7901 7902fi 7903fi 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7905$as_echo "$ac_cv_header_stdc" >&6; } 7906if test $ac_cv_header_stdc = yes; then 7907 7908$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7909 7910fi 7911 7912for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ 7913fcntl.h grp.h \ 7914ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ 7915sched.h shadow.h signal.h stropts.h termios.h \ 7916unistd.h utime.h \ 7917poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ 7918sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ 7919sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ 7920sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 7921sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ 7922sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 7923libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 7924linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ 7925sys/endian.h sys/sysmacros.h 7926do : 7927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7930 cat >>confdefs.h <<_ACEOF 7931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7932_ACEOF 7933 7934fi 7935 7936done 7937 7938ac_header_dirent=no 7939for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7940 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7942$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7943if eval \${$as_ac_Header+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948#include <sys/types.h> 7949#include <$ac_hdr> 7950 7951int 7952main () 7953{ 7954if ((DIR *) 0) 7955return 0; 7956 ; 7957 return 0; 7958} 7959_ACEOF 7960if ac_fn_c_try_compile "$LINENO"; then : 7961 eval "$as_ac_Header=yes" 7962else 7963 eval "$as_ac_Header=no" 7964fi 7965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7966fi 7967eval ac_res=\$$as_ac_Header 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7969$as_echo "$ac_res" >&6; } 7970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7971 cat >>confdefs.h <<_ACEOF 7972#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7973_ACEOF 7974 7975ac_header_dirent=$ac_hdr; break 7976fi 7977 7978done 7979# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7980if test $ac_header_dirent = dirent.h; then 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7982$as_echo_n "checking for library containing opendir... " >&6; } 7983if ${ac_cv_search_opendir+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 ac_func_search_save_LIBS=$LIBS 7987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7988/* end confdefs.h. */ 7989 7990/* Override any GCC internal prototype to avoid an error. 7991 Use char because int might match the return type of a GCC 7992 builtin and then its argument prototype would still apply. */ 7993#ifdef __cplusplus 7994extern "C" 7995#endif 7996char opendir (); 7997int 7998main () 7999{ 8000return opendir (); 8001 ; 8002 return 0; 8003} 8004_ACEOF 8005for ac_lib in '' dir; do 8006 if test -z "$ac_lib"; then 8007 ac_res="none required" 8008 else 8009 ac_res=-l$ac_lib 8010 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8011 fi 8012 if ac_fn_c_try_link "$LINENO"; then : 8013 ac_cv_search_opendir=$ac_res 8014fi 8015rm -f core conftest.err conftest.$ac_objext \ 8016 conftest$ac_exeext 8017 if ${ac_cv_search_opendir+:} false; then : 8018 break 8019fi 8020done 8021if ${ac_cv_search_opendir+:} false; then : 8022 8023else 8024 ac_cv_search_opendir=no 8025fi 8026rm conftest.$ac_ext 8027LIBS=$ac_func_search_save_LIBS 8028fi 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8030$as_echo "$ac_cv_search_opendir" >&6; } 8031ac_res=$ac_cv_search_opendir 8032if test "$ac_res" != no; then : 8033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8034 8035fi 8036 8037else 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8039$as_echo_n "checking for library containing opendir... " >&6; } 8040if ${ac_cv_search_opendir+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 ac_func_search_save_LIBS=$LIBS 8044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8045/* end confdefs.h. */ 8046 8047/* Override any GCC internal prototype to avoid an error. 8048 Use char because int might match the return type of a GCC 8049 builtin and then its argument prototype would still apply. */ 8050#ifdef __cplusplus 8051extern "C" 8052#endif 8053char opendir (); 8054int 8055main () 8056{ 8057return opendir (); 8058 ; 8059 return 0; 8060} 8061_ACEOF 8062for ac_lib in '' x; do 8063 if test -z "$ac_lib"; then 8064 ac_res="none required" 8065 else 8066 ac_res=-l$ac_lib 8067 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8068 fi 8069 if ac_fn_c_try_link "$LINENO"; then : 8070 ac_cv_search_opendir=$ac_res 8071fi 8072rm -f core conftest.err conftest.$ac_objext \ 8073 conftest$ac_exeext 8074 if ${ac_cv_search_opendir+:} false; then : 8075 break 8076fi 8077done 8078if ${ac_cv_search_opendir+:} false; then : 8079 8080else 8081 ac_cv_search_opendir=no 8082fi 8083rm conftest.$ac_ext 8084LIBS=$ac_func_search_save_LIBS 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8087$as_echo "$ac_cv_search_opendir" >&6; } 8088ac_res=$ac_cv_search_opendir 8089if test "$ac_res" != no; then : 8090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8091 8092fi 8093 8094fi 8095 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 8097$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 8098if ${ac_cv_header_sys_types_h_makedev+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8102/* end confdefs.h. */ 8103#include <sys/types.h> 8104int 8105main () 8106{ 8107return makedev(0, 0); 8108 ; 8109 return 0; 8110} 8111_ACEOF 8112if ac_fn_c_try_link "$LINENO"; then : 8113 ac_cv_header_sys_types_h_makedev=yes 8114else 8115 ac_cv_header_sys_types_h_makedev=no 8116fi 8117rm -f core conftest.err conftest.$ac_objext \ 8118 conftest$ac_exeext conftest.$ac_ext 8119 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 8122$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 8123 8124if test $ac_cv_header_sys_types_h_makedev = no; then 8125ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 8126if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 8127 8128$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 8129 8130fi 8131 8132 8133 8134 if test $ac_cv_header_sys_mkdev_h = no; then 8135 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 8136if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 8137 8138$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 8139 8140fi 8141 8142 8143 fi 8144fi 8145 8146 8147# bluetooth/bluetooth.h has been known to not compile with -std=c99. 8148# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 8149SAVE_CFLAGS=$CFLAGS 8150CFLAGS="-std=c99 $CFLAGS" 8151for ac_header in bluetooth/bluetooth.h 8152do : 8153 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 8154if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 8155 cat >>confdefs.h <<_ACEOF 8156#define HAVE_BLUETOOTH_BLUETOOTH_H 1 8157_ACEOF 8158 8159fi 8160 8161done 8162 8163CFLAGS=$SAVE_CFLAGS 8164 8165# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 8166for ac_header in net/if.h 8167do : 8168 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 8169#ifdef STDC_HEADERS 8170# include <stdlib.h> 8171# include <stddef.h> 8172#else 8173# ifdef HAVE_STDLIB_H 8174# include <stdlib.h> 8175# endif 8176#endif 8177#ifdef HAVE_SYS_SOCKET_H 8178# include <sys/socket.h> 8179#endif 8180 8181" 8182if test "x$ac_cv_header_net_if_h" = xyes; then : 8183 cat >>confdefs.h <<_ACEOF 8184#define HAVE_NET_IF_H 1 8185_ACEOF 8186 8187fi 8188 8189done 8190 8191 8192# On Linux, netlink.h requires asm/types.h 8193for ac_header in linux/netlink.h 8194do : 8195 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 8196#ifdef HAVE_ASM_TYPES_H 8197#include <asm/types.h> 8198#endif 8199#ifdef HAVE_SYS_SOCKET_H 8200#include <sys/socket.h> 8201#endif 8202 8203" 8204if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 8205 cat >>confdefs.h <<_ACEOF 8206#define HAVE_LINUX_NETLINK_H 1 8207_ACEOF 8208 8209fi 8210 8211done 8212 8213 8214for ac_header in linux/vm_sockets.h 8215do : 8216 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " 8217#ifdef HAVE_SYS_SOCKET_H 8218#include <sys/socket.h> 8219#endif 8220 8221" 8222if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : 8223 cat >>confdefs.h <<_ACEOF 8224#define HAVE_LINUX_VM_SOCKETS_H 1 8225_ACEOF 8226 8227fi 8228 8229done 8230 8231 8232# On Linux, can.h and can/raw.h require sys/socket.h 8233for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h 8234do : 8235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8236ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8237#ifdef HAVE_SYS_SOCKET_H 8238#include <sys/socket.h> 8239#endif 8240 8241" 8242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8243 cat >>confdefs.h <<_ACEOF 8244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8245_ACEOF 8246 8247fi 8248 8249done 8250 8251 8252# checks for typedefs 8253was_it_defined=no 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 8255$as_echo_n "checking for clock_t in time.h... " >&6; } 8256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258#include <time.h> 8259 8260_ACEOF 8261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8262 $EGREP "clock_t" >/dev/null 2>&1; then : 8263 was_it_defined=yes 8264else 8265 8266 8267$as_echo "#define clock_t long" >>confdefs.h 8268 8269 8270fi 8271rm -f conftest* 8272 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 8274$as_echo "$was_it_defined" >&6; } 8275 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 8277$as_echo_n "checking for makedev... " >&6; } 8278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280 8281#if defined(MAJOR_IN_MKDEV) 8282#include <sys/mkdev.h> 8283#elif defined(MAJOR_IN_SYSMACROS) 8284#include <sys/sysmacros.h> 8285#else 8286#include <sys/types.h> 8287#endif 8288 8289int 8290main () 8291{ 8292 8293 makedev(0, 0) 8294 ; 8295 return 0; 8296} 8297 8298_ACEOF 8299if ac_fn_c_try_link "$LINENO"; then : 8300 ac_cv_has_makedev=yes 8301else 8302 ac_cv_has_makedev=no 8303fi 8304rm -f core conftest.err conftest.$ac_objext \ 8305 conftest$ac_exeext conftest.$ac_ext 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 8307$as_echo "$ac_cv_has_makedev" >&6; } 8308if test "$ac_cv_has_makedev" = "yes"; then 8309 8310$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 8311 8312fi 8313 8314# byte swapping 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 8316$as_echo_n "checking for le64toh... " >&6; } 8317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8318/* end confdefs.h. */ 8319 8320#ifdef HAVE_ENDIAN_H 8321#include <endian.h> 8322#elif defined(HAVE_SYS_ENDIAN_H) 8323#include <sys/endian.h> 8324#endif 8325 8326int 8327main () 8328{ 8329 8330 le64toh(1) 8331 ; 8332 return 0; 8333} 8334 8335_ACEOF 8336if ac_fn_c_try_link "$LINENO"; then : 8337 ac_cv_has_le64toh=yes 8338else 8339 ac_cv_has_le64toh=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext \ 8342 conftest$ac_exeext conftest.$ac_ext 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 8344$as_echo "$ac_cv_has_le64toh" >&6; } 8345if test "$ac_cv_has_le64toh" = "yes"; then 8346 8347$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h 8348 8349fi 8350 8351use_lfs=yes 8352# Don't use largefile support for GNU/Hurd 8353case $ac_sys_system in GNU*) 8354 use_lfs=no 8355esac 8356 8357if test "$use_lfs" = "yes"; then 8358# Two defines needed to enable largefile support on various platforms 8359# These may affect some typedefs 8360case $ac_sys_system/$ac_sys_release in 8361AIX*) 8362 8363$as_echo "#define _LARGE_FILES 1" >>confdefs.h 8364 8365 ;; 8366esac 8367 8368$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 8369 8370 8371$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 8372 8373fi 8374 8375# Add some code to confdefs.h so that the test for off_t works on SCO 8376cat >> confdefs.h <<\EOF 8377#if defined(SCO_DS) 8378#undef _OFF_T 8379#endif 8380EOF 8381 8382# Type availability checks 8383ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8384if test "x$ac_cv_type_mode_t" = xyes; then : 8385 8386else 8387 8388cat >>confdefs.h <<_ACEOF 8389#define mode_t int 8390_ACEOF 8391 8392fi 8393 8394ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 8395if test "x$ac_cv_type_off_t" = xyes; then : 8396 8397else 8398 8399cat >>confdefs.h <<_ACEOF 8400#define off_t long int 8401_ACEOF 8402 8403fi 8404 8405ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8406if test "x$ac_cv_type_pid_t" = xyes; then : 8407 8408else 8409 8410cat >>confdefs.h <<_ACEOF 8411#define pid_t int 8412_ACEOF 8413 8414fi 8415 8416 8417cat >>confdefs.h <<_ACEOF 8418#define RETSIGTYPE void 8419_ACEOF 8420 8421ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8422if test "x$ac_cv_type_size_t" = xyes; then : 8423 8424else 8425 8426cat >>confdefs.h <<_ACEOF 8427#define size_t unsigned int 8428_ACEOF 8429 8430fi 8431 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 8433$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8434if ${ac_cv_type_uid_t+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439#include <sys/types.h> 8440 8441_ACEOF 8442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8443 $EGREP "uid_t" >/dev/null 2>&1; then : 8444 ac_cv_type_uid_t=yes 8445else 8446 ac_cv_type_uid_t=no 8447fi 8448rm -f conftest* 8449 8450fi 8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 8452$as_echo "$ac_cv_type_uid_t" >&6; } 8453if test $ac_cv_type_uid_t = no; then 8454 8455$as_echo "#define uid_t int" >>confdefs.h 8456 8457 8458$as_echo "#define gid_t int" >>confdefs.h 8459 8460fi 8461 8462 8463ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 8464if test "x$ac_cv_type_ssize_t" = xyes; then : 8465 8466$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 8467 8468fi 8469 8470ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 8471if test "x$ac_cv_type___uint128_t" = xyes; then : 8472 8473$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 8474 8475fi 8476 8477 8478# Sizes of various common basic types 8479# ANSI C requires sizeof(char) == 1, so no need to check it 8480# The cast to long int works around a bug in the HP C Compiler 8481# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8482# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8483# This bug is HP SR number 8606223364. 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8485$as_echo_n "checking size of int... " >&6; } 8486if ${ac_cv_sizeof_int+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8490 8491else 8492 if test "$ac_cv_type_int" = yes; then 8493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8495as_fn_error 77 "cannot compute sizeof (int) 8496See \`config.log' for more details" "$LINENO" 5; } 8497 else 8498 ac_cv_sizeof_int=0 8499 fi 8500fi 8501 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8504$as_echo "$ac_cv_sizeof_int" >&6; } 8505 8506 8507 8508cat >>confdefs.h <<_ACEOF 8509#define SIZEOF_INT $ac_cv_sizeof_int 8510_ACEOF 8511 8512 8513# The cast to long int works around a bug in the HP C Compiler 8514# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8515# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8516# This bug is HP SR number 8606223364. 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8518$as_echo_n "checking size of long... " >&6; } 8519if ${ac_cv_sizeof_long+:} false; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8523 8524else 8525 if test "$ac_cv_type_long" = yes; then 8526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8528as_fn_error 77 "cannot compute sizeof (long) 8529See \`config.log' for more details" "$LINENO" 5; } 8530 else 8531 ac_cv_sizeof_long=0 8532 fi 8533fi 8534 8535fi 8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8537$as_echo "$ac_cv_sizeof_long" >&6; } 8538 8539 8540 8541cat >>confdefs.h <<_ACEOF 8542#define SIZEOF_LONG $ac_cv_sizeof_long 8543_ACEOF 8544 8545 8546# The cast to long int works around a bug in the HP C Compiler 8547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8549# This bug is HP SR number 8606223364. 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 8551$as_echo_n "checking size of long long... " >&6; } 8552if ${ac_cv_sizeof_long_long+:} false; then : 8553 $as_echo_n "(cached) " >&6 8554else 8555 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8556 8557else 8558 if test "$ac_cv_type_long_long" = yes; then 8559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8561as_fn_error 77 "cannot compute sizeof (long long) 8562See \`config.log' for more details" "$LINENO" 5; } 8563 else 8564 ac_cv_sizeof_long_long=0 8565 fi 8566fi 8567 8568fi 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8570$as_echo "$ac_cv_sizeof_long_long" >&6; } 8571 8572 8573 8574cat >>confdefs.h <<_ACEOF 8575#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8576_ACEOF 8577 8578 8579# The cast to long int works around a bug in the HP C Compiler 8580# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8581# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8582# This bug is HP SR number 8606223364. 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8584$as_echo_n "checking size of void *... " >&6; } 8585if ${ac_cv_sizeof_void_p+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587else 8588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8589 8590else 8591 if test "$ac_cv_type_void_p" = yes; then 8592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8594as_fn_error 77 "cannot compute sizeof (void *) 8595See \`config.log' for more details" "$LINENO" 5; } 8596 else 8597 ac_cv_sizeof_void_p=0 8598 fi 8599fi 8600 8601fi 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8603$as_echo "$ac_cv_sizeof_void_p" >&6; } 8604 8605 8606 8607cat >>confdefs.h <<_ACEOF 8608#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8609_ACEOF 8610 8611 8612# The cast to long int works around a bug in the HP C Compiler 8613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8615# This bug is HP SR number 8606223364. 8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8617$as_echo_n "checking size of short... " >&6; } 8618if ${ac_cv_sizeof_short+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620else 8621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8622 8623else 8624 if test "$ac_cv_type_short" = yes; then 8625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8627as_fn_error 77 "cannot compute sizeof (short) 8628See \`config.log' for more details" "$LINENO" 5; } 8629 else 8630 ac_cv_sizeof_short=0 8631 fi 8632fi 8633 8634fi 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8636$as_echo "$ac_cv_sizeof_short" >&6; } 8637 8638 8639 8640cat >>confdefs.h <<_ACEOF 8641#define SIZEOF_SHORT $ac_cv_sizeof_short 8642_ACEOF 8643 8644 8645# The cast to long int works around a bug in the HP C Compiler 8646# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8647# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8648# This bug is HP SR number 8606223364. 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 8650$as_echo_n "checking size of float... " >&6; } 8651if ${ac_cv_sizeof_float+:} false; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 8655 8656else 8657 if test "$ac_cv_type_float" = yes; then 8658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8660as_fn_error 77 "cannot compute sizeof (float) 8661See \`config.log' for more details" "$LINENO" 5; } 8662 else 8663 ac_cv_sizeof_float=0 8664 fi 8665fi 8666 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 8669$as_echo "$ac_cv_sizeof_float" >&6; } 8670 8671 8672 8673cat >>confdefs.h <<_ACEOF 8674#define SIZEOF_FLOAT $ac_cv_sizeof_float 8675_ACEOF 8676 8677 8678# The cast to long int works around a bug in the HP C Compiler 8679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8681# This bug is HP SR number 8606223364. 8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 8683$as_echo_n "checking size of double... " >&6; } 8684if ${ac_cv_sizeof_double+:} false; then : 8685 $as_echo_n "(cached) " >&6 8686else 8687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 8688 8689else 8690 if test "$ac_cv_type_double" = yes; then 8691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8693as_fn_error 77 "cannot compute sizeof (double) 8694See \`config.log' for more details" "$LINENO" 5; } 8695 else 8696 ac_cv_sizeof_double=0 8697 fi 8698fi 8699 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 8702$as_echo "$ac_cv_sizeof_double" >&6; } 8703 8704 8705 8706cat >>confdefs.h <<_ACEOF 8707#define SIZEOF_DOUBLE $ac_cv_sizeof_double 8708_ACEOF 8709 8710 8711# The cast to long int works around a bug in the HP C Compiler 8712# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8713# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8714# This bug is HP SR number 8606223364. 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 8716$as_echo_n "checking size of fpos_t... " >&6; } 8717if ${ac_cv_sizeof_fpos_t+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 8721 8722else 8723 if test "$ac_cv_type_fpos_t" = yes; then 8724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8726as_fn_error 77 "cannot compute sizeof (fpos_t) 8727See \`config.log' for more details" "$LINENO" 5; } 8728 else 8729 ac_cv_sizeof_fpos_t=0 8730 fi 8731fi 8732 8733fi 8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 8735$as_echo "$ac_cv_sizeof_fpos_t" >&6; } 8736 8737 8738 8739cat >>confdefs.h <<_ACEOF 8740#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 8741_ACEOF 8742 8743 8744# The cast to long int works around a bug in the HP C Compiler 8745# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8746# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8747# This bug is HP SR number 8606223364. 8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 8749$as_echo_n "checking size of size_t... " >&6; } 8750if ${ac_cv_sizeof_size_t+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 8754 8755else 8756 if test "$ac_cv_type_size_t" = yes; then 8757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8759as_fn_error 77 "cannot compute sizeof (size_t) 8760See \`config.log' for more details" "$LINENO" 5; } 8761 else 8762 ac_cv_sizeof_size_t=0 8763 fi 8764fi 8765 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 8768$as_echo "$ac_cv_sizeof_size_t" >&6; } 8769 8770 8771 8772cat >>confdefs.h <<_ACEOF 8773#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 8774_ACEOF 8775 8776 8777# The cast to long int works around a bug in the HP C Compiler 8778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8780# This bug is HP SR number 8606223364. 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 8782$as_echo_n "checking size of pid_t... " >&6; } 8783if ${ac_cv_sizeof_pid_t+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785else 8786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 8787 8788else 8789 if test "$ac_cv_type_pid_t" = yes; then 8790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8792as_fn_error 77 "cannot compute sizeof (pid_t) 8793See \`config.log' for more details" "$LINENO" 5; } 8794 else 8795 ac_cv_sizeof_pid_t=0 8796 fi 8797fi 8798 8799fi 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 8801$as_echo "$ac_cv_sizeof_pid_t" >&6; } 8802 8803 8804 8805cat >>confdefs.h <<_ACEOF 8806#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 8807_ACEOF 8808 8809 8810# The cast to long int works around a bug in the HP C Compiler 8811# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8812# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8813# This bug is HP SR number 8606223364. 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8815$as_echo_n "checking size of uintptr_t... " >&6; } 8816if ${ac_cv_sizeof_uintptr_t+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8820 8821else 8822 if test "$ac_cv_type_uintptr_t" = yes; then 8823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8825as_fn_error 77 "cannot compute sizeof (uintptr_t) 8826See \`config.log' for more details" "$LINENO" 5; } 8827 else 8828 ac_cv_sizeof_uintptr_t=0 8829 fi 8830fi 8831 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8834$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8835 8836 8837 8838cat >>confdefs.h <<_ACEOF 8839#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8840_ACEOF 8841 8842 8843 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 8845$as_echo_n "checking for long double support... " >&6; } 8846have_long_double=no 8847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8848/* end confdefs.h. */ 8849 8850int 8851main () 8852{ 8853long double x; x = (long double)0; 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO"; then : 8859 8860 8861$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 8862 8863 have_long_double=yes 8864 8865fi 8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 8868$as_echo "$have_long_double" >&6; } 8869if test "$have_long_double" = yes ; then 8870# The cast to long int works around a bug in the HP C Compiler 8871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8873# This bug is HP SR number 8606223364. 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 8875$as_echo_n "checking size of long double... " >&6; } 8876if ${ac_cv_sizeof_long_double+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 8880 8881else 8882 if test "$ac_cv_type_long_double" = yes; then 8883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8885as_fn_error 77 "cannot compute sizeof (long double) 8886See \`config.log' for more details" "$LINENO" 5; } 8887 else 8888 ac_cv_sizeof_long_double=0 8889 fi 8890fi 8891 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 8894$as_echo "$ac_cv_sizeof_long_double" >&6; } 8895 8896 8897 8898cat >>confdefs.h <<_ACEOF 8899#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 8900_ACEOF 8901 8902 8903fi 8904 8905# The cast to long int works around a bug in the HP C Compiler 8906# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8907# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8908# This bug is HP SR number 8606223364. 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 8910$as_echo_n "checking size of _Bool... " >&6; } 8911if ${ac_cv_sizeof__Bool+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 8915 8916else 8917 if test "$ac_cv_type__Bool" = yes; then 8918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8920as_fn_error 77 "cannot compute sizeof (_Bool) 8921See \`config.log' for more details" "$LINENO" 5; } 8922 else 8923 ac_cv_sizeof__Bool=0 8924 fi 8925fi 8926 8927fi 8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 8929$as_echo "$ac_cv_sizeof__Bool" >&6; } 8930 8931 8932 8933cat >>confdefs.h <<_ACEOF 8934#define SIZEOF__BOOL $ac_cv_sizeof__Bool 8935_ACEOF 8936 8937 8938 8939# The cast to long int works around a bug in the HP C Compiler 8940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8942# This bug is HP SR number 8606223364. 8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8944$as_echo_n "checking size of off_t... " >&6; } 8945if ${ac_cv_sizeof_off_t+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 8949#ifdef HAVE_SYS_TYPES_H 8950#include <sys/types.h> 8951#endif 8952 8953"; then : 8954 8955else 8956 if test "$ac_cv_type_off_t" = yes; then 8957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8959as_fn_error 77 "cannot compute sizeof (off_t) 8960See \`config.log' for more details" "$LINENO" 5; } 8961 else 8962 ac_cv_sizeof_off_t=0 8963 fi 8964fi 8965 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8968$as_echo "$ac_cv_sizeof_off_t" >&6; } 8969 8970 8971 8972cat >>confdefs.h <<_ACEOF 8973#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8974_ACEOF 8975 8976 8977 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 8979$as_echo_n "checking whether to enable large file support... " >&6; } 8980if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 8981 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 8982 8983$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 8984 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8986$as_echo "yes" >&6; } 8987else 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8989$as_echo "no" >&6; } 8990fi 8991 8992# The cast to long int works around a bug in the HP C Compiler 8993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8995# This bug is HP SR number 8606223364. 8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 8997$as_echo_n "checking size of time_t... " >&6; } 8998if ${ac_cv_sizeof_time_t+:} false; then : 8999 $as_echo_n "(cached) " >&6 9000else 9001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 9002#ifdef HAVE_SYS_TYPES_H 9003#include <sys/types.h> 9004#endif 9005#ifdef HAVE_TIME_H 9006#include <time.h> 9007#endif 9008 9009"; then : 9010 9011else 9012 if test "$ac_cv_type_time_t" = yes; then 9013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9015as_fn_error 77 "cannot compute sizeof (time_t) 9016See \`config.log' for more details" "$LINENO" 5; } 9017 else 9018 ac_cv_sizeof_time_t=0 9019 fi 9020fi 9021 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9024$as_echo "$ac_cv_sizeof_time_t" >&6; } 9025 9026 9027 9028cat >>confdefs.h <<_ACEOF 9029#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9030_ACEOF 9031 9032 9033 9034# if have pthread_t then define SIZEOF_PTHREAD_T 9035ac_save_cc="$CC" 9036if test "$ac_cv_kpthread" = "yes" 9037then CC="$CC -Kpthread" 9038elif test "$ac_cv_kthread" = "yes" 9039then CC="$CC -Kthread" 9040elif test "$ac_cv_pthread" = "yes" 9041then CC="$CC -pthread" 9042fi 9043 9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 9045$as_echo_n "checking for pthread_t... " >&6; } 9046have_pthread_t=no 9047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049 9050 #include <pthread.h> 9051int 9052main () 9053{ 9054pthread_t x; x = *(pthread_t*)0; 9055 ; 9056 return 0; 9057} 9058 9059_ACEOF 9060if ac_fn_c_try_compile "$LINENO"; then : 9061 have_pthread_t=yes 9062fi 9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 9065$as_echo "$have_pthread_t" >&6; } 9066if test "$have_pthread_t" = yes ; then 9067 # The cast to long int works around a bug in the HP C Compiler 9068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9070# This bug is HP SR number 8606223364. 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 9072$as_echo_n "checking size of pthread_t... " >&6; } 9073if ${ac_cv_sizeof_pthread_t+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 9077#ifdef HAVE_PTHREAD_H 9078#include <pthread.h> 9079#endif 9080 9081"; then : 9082 9083else 9084 if test "$ac_cv_type_pthread_t" = yes; then 9085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9087as_fn_error 77 "cannot compute sizeof (pthread_t) 9088See \`config.log' for more details" "$LINENO" 5; } 9089 else 9090 ac_cv_sizeof_pthread_t=0 9091 fi 9092fi 9093 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 9096$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 9097 9098 9099 9100cat >>confdefs.h <<_ACEOF 9101#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 9102_ACEOF 9103 9104 9105fi 9106 9107# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. 9108# This checking will be unnecessary after removing deprecated TLS API. 9109# The cast to long int works around a bug in the HP C Compiler 9110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9112# This bug is HP SR number 8606223364. 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 9114$as_echo_n "checking size of pthread_key_t... " >&6; } 9115if ${ac_cv_sizeof_pthread_key_t+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> 9119"; then : 9120 9121else 9122 if test "$ac_cv_type_pthread_key_t" = yes; then 9123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9125as_fn_error 77 "cannot compute sizeof (pthread_key_t) 9126See \`config.log' for more details" "$LINENO" 5; } 9127 else 9128 ac_cv_sizeof_pthread_key_t=0 9129 fi 9130fi 9131 9132fi 9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 9134$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } 9135 9136 9137 9138cat >>confdefs.h <<_ACEOF 9139#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t 9140_ACEOF 9141 9142 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 9144$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } 9145if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then 9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147/* end confdefs.h. */ 9148#include <pthread.h> 9149int 9150main () 9151{ 9152pthread_key_t k; k * 1; 9153 ; 9154 return 0; 9155} 9156_ACEOF 9157if ac_fn_c_try_compile "$LINENO"; then : 9158 ac_pthread_key_t_is_arithmetic_type=yes 9159else 9160 ac_pthread_key_t_is_arithmetic_type=no 9161 9162fi 9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 9165$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } 9166 if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then 9167 9168$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h 9169 9170 fi 9171else 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9173$as_echo "no" >&6; } 9174fi 9175CC="$ac_save_cc" 9176 9177 9178case $ac_sys_system/$ac_sys_release in 9179 Darwin/[01567]\..*) 9180 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 9181 ;; 9182 Darwin/*) 9183 OTHER_LIBTOOL_OPT="" 9184 ;; 9185esac 9186 9187 9188 9189case $ac_sys_system/$ac_sys_release in 9190 Darwin/[01567]\..*) 9191 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 9192 if test "${enable_universalsdk}"; then 9193 : 9194 else 9195 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 9196 fi 9197 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9198 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9199 Darwin/*) 9200 gcc_version=`gcc -dumpversion` 9201 if test ${gcc_version} '<' 4.0 9202 then 9203 LIBTOOL_CRUFT="-lcc_dynamic" 9204 else 9205 LIBTOOL_CRUFT="" 9206 fi 9207 if test "$cross_compiling" = yes; then : 9208 ac_osx_32bit=yes 9209else 9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211/* end confdefs.h. */ 9212 9213 #include <unistd.h> 9214 int main(int argc, char*argv[]) 9215 { 9216 if (sizeof(long) == 4) { 9217 return 0; 9218 } else { 9219 return 1; 9220 } 9221 } 9222 9223_ACEOF 9224if ac_fn_c_try_run "$LINENO"; then : 9225 ac_osx_32bit=yes 9226else 9227 ac_osx_32bit=no 9228fi 9229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9230 conftest.$ac_objext conftest.beam conftest.$ac_ext 9231fi 9232 9233 9234 if test "${ac_osx_32bit}" = "yes"; then 9235 case `/usr/bin/arch` in 9236 i386) 9237 MACOSX_DEFAULT_ARCH="i386" 9238 ;; 9239 ppc) 9240 MACOSX_DEFAULT_ARCH="ppc" 9241 ;; 9242 *) 9243 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9244 ;; 9245 esac 9246 else 9247 case `/usr/bin/arch` in 9248 i386) 9249 MACOSX_DEFAULT_ARCH="x86_64" 9250 ;; 9251 ppc) 9252 MACOSX_DEFAULT_ARCH="ppc64" 9253 ;; 9254 arm64) 9255 MACOSX_DEFAULT_ARCH="arm64" 9256 ;; 9257 *) 9258 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9259 ;; 9260 esac 9261 9262 fi 9263 9264 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 9265 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9266 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9267esac 9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 9269$as_echo_n "checking for --enable-framework... " >&6; } 9270if test "$enable_framework" 9271then 9272 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 9273 # -F. is needed to allow linking to the framework while 9274 # in the build location. 9275 9276$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 9277 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9279$as_echo "yes" >&6; } 9280 if test $enable_shared = "yes" 9281 then 9282 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 9283 fi 9284else 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9286$as_echo "no" >&6; } 9287fi 9288 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 9290$as_echo_n "checking for dyld... " >&6; } 9291case $ac_sys_system/$ac_sys_release in 9292 Darwin/*) 9293 9294$as_echo "#define WITH_DYLD 1" >>confdefs.h 9295 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 9297$as_echo "always on for Darwin" >&6; } 9298 ;; 9299 *) 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9301$as_echo "no" >&6; } 9302 ;; 9303esac 9304 9305# Set info about shared libraries. 9306 9307 9308 9309 9310 9311 9312 9313# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 9314# -- usually .so, .sl on HP-UX, .dll on Cygwin 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 9316$as_echo_n "checking the extension of shared libraries... " >&6; } 9317if test -z "$SHLIB_SUFFIX"; then 9318 case $ac_sys_system in 9319 hp*|HP*) 9320 case `uname -m` in 9321 ia64) SHLIB_SUFFIX=.so;; 9322 *) SHLIB_SUFFIX=.sl;; 9323 esac 9324 ;; 9325 CYGWIN*) SHLIB_SUFFIX=.dll;; 9326 *) SHLIB_SUFFIX=.so;; 9327 esac 9328fi 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 9330$as_echo "$SHLIB_SUFFIX" >&6; } 9331 9332# LDSHARED is the ld *command* used to create shared library 9333# -- "cc -G" on SunOS 5.x. 9334# (Shared libraries in this instance are shared modules to be loaded into 9335# Python, as opposed to building Python itself as a shared library.) 9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 9337$as_echo_n "checking LDSHARED... " >&6; } 9338if test -z "$LDSHARED" 9339then 9340 case $ac_sys_system/$ac_sys_release in 9341 AIX*) 9342 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 9343 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 9344 ;; 9345 SunOS/5*) 9346 if test "$GCC" = "yes" ; then 9347 LDSHARED='$(CC) -shared' 9348 LDCXXSHARED='$(CXX) -shared' 9349 else 9350 LDSHARED='$(CC) -G' 9351 LDCXXSHARED='$(CXX) -G' 9352 fi ;; 9353 hp*|HP*) 9354 if test "$GCC" = "yes" ; then 9355 LDSHARED='$(CC) -shared' 9356 LDCXXSHARED='$(CXX) -shared' 9357 else 9358 LDSHARED='$(CC) -b' 9359 LDCXXSHARED='$(CXX) -b' 9360 fi ;; 9361 Darwin/1.3*) 9362 LDSHARED='$(CC) -bundle' 9363 LDCXXSHARED='$(CXX) -bundle' 9364 if test "$enable_framework" ; then 9365 # Link against the framework. All externals should be defined. 9366 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9367 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9368 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9369 else 9370 # No framework. Ignore undefined symbols, assuming they come from Python 9371 LDSHARED="$LDSHARED -undefined suppress" 9372 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 9373 fi ;; 9374 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 9375 LDSHARED='$(CC) -bundle' 9376 LDCXXSHARED='$(CXX) -bundle' 9377 if test "$enable_framework" ; then 9378 # Link against the framework. All externals should be defined. 9379 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9380 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9381 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9382 else 9383 # No framework, use the Python app as bundle-loader 9384 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9385 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9386 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9387 fi ;; 9388 Darwin/*) 9389 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 9390 # This allows an extension to be used in any Python 9391 9392 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9393 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 9394 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9395 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 9396 if test ${dep_target_major} -eq 10 && \ 9397 test ${dep_target_minor} -le 2 9398 then 9399 # building for OS X 10.0 through 10.2 9400 LDSHARED='$(CC) -bundle' 9401 LDCXXSHARED='$(CXX) -bundle' 9402 if test "$enable_framework" ; then 9403 # Link against the framework. All externals should be defined. 9404 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9405 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9406 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9407 else 9408 # No framework, use the Python app as bundle-loader 9409 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9410 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9411 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9412 fi 9413 else 9414 # building for OS X 10.3 and later 9415 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 9416 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 9417 BLDSHARED="$LDSHARED" 9418 fi 9419 ;; 9420 Linux*|GNU*|QNX*) 9421 LDSHARED='$(CC) -shared' 9422 LDCXXSHARED='$(CXX) -shared';; 9423 FreeBSD*) 9424 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9425 then 9426 LDSHARED='$(CC) -shared' 9427 LDCXXSHARED='$(CXX) -shared' 9428 else 9429 LDSHARED="ld -Bshareable" 9430 fi;; 9431 OpenBSD*) 9432 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9433 then 9434 LDSHARED='$(CC) -shared $(CCSHARED)' 9435 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9436 else 9437 case "6.3-DPORTS" in 9438 [01].* | 2.[0-7] | 2.[0-7].*) 9439 LDSHARED="ld -Bshareable ${LDFLAGS}" 9440 ;; 9441 *) 9442 LDSHARED='$(CC) -shared $(CCSHARED)' 9443 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9444 ;; 9445 esac 9446 fi;; 9447 NetBSD*|DragonFly*) 9448 LDSHARED='$(CC) -shared' 9449 LDCXXSHARED='$(CXX) -shared';; 9450 OpenUNIX*|UnixWare*) 9451 if test "$GCC" = "yes" ; then 9452 LDSHARED='$(CC) -shared' 9453 LDCXXSHARED='$(CXX) -shared' 9454 else 9455 LDSHARED='$(CC) -G' 9456 LDCXXSHARED='$(CXX) -G' 9457 fi;; 9458 SCO_SV*) 9459 LDSHARED='$(CC) -Wl,-G,-Bexport' 9460 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 9461 CYGWIN*) 9462 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 9463 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 9464 *) LDSHARED="ld";; 9465 esac 9466fi 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 9468$as_echo "$LDSHARED" >&6; } 9469LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 9470BLDSHARED=${BLDSHARED-$LDSHARED} 9471# CCSHARED are the C *flags* used to create objects to go into a shared 9472# library (module) -- this is only needed for a few systems 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 9474$as_echo_n "checking CCSHARED... " >&6; } 9475if test -z "$CCSHARED" 9476then 9477 case $ac_sys_system/$ac_sys_release in 9478 SunOS*) if test "$GCC" = yes; 9479 then CCSHARED="-fPIC"; 9480 elif test `uname -p` = sparc; 9481 then CCSHARED="-xcode=pic32"; 9482 else CCSHARED="-Kpic"; 9483 fi;; 9484 hp*|HP*) if test "$GCC" = yes; 9485 then CCSHARED="-fPIC"; 9486 else CCSHARED="+z"; 9487 fi;; 9488 Linux-android*) ;; 9489 Linux*|GNU*) CCSHARED="-fPIC";; 9490 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 9491 OpenUNIX*|UnixWare*) 9492 if test "$GCC" = "yes" 9493 then CCSHARED="-fPIC" 9494 else CCSHARED="-KPIC" 9495 fi;; 9496 SCO_SV*) 9497 if test "$GCC" = "yes" 9498 then CCSHARED="-fPIC" 9499 else CCSHARED="-Kpic -belf" 9500 fi;; 9501 esac 9502fi 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 9504$as_echo "$CCSHARED" >&6; } 9505# LINKFORSHARED are the flags passed to the $(CC) command that links 9506# the python executable -- this is only needed for a few systems 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 9508$as_echo_n "checking LINKFORSHARED... " >&6; } 9509if test -z "$LINKFORSHARED" 9510then 9511 case $ac_sys_system/$ac_sys_release in 9512 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 9513 hp*|HP*) 9514 LINKFORSHARED="-Wl,-E -Wl,+s";; 9515# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 9516 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 9517 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 9518 # -u libsys_s pulls in all symbols in libsys 9519 Darwin/*) 9520 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 9521 9522 # Issue #18075: the default maximum stack size (8MBytes) is too 9523 # small for the default recursion limit. Increase the stack size 9524 # to ensure that tests don't crash 9525 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" 9526 9527 if test "$enable_framework" 9528 then 9529 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9530 fi 9531 LINKFORSHARED="$LINKFORSHARED";; 9532 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 9533 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 9534 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 9535 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 9536 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9537 then 9538 LINKFORSHARED="-Wl,--export-dynamic" 9539 fi;; 9540 SunOS/5*) case $CC in 9541 *gcc*) 9542 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 9543 then 9544 LINKFORSHARED="-Xlinker --export-dynamic" 9545 fi;; 9546 esac;; 9547 CYGWIN*) 9548 if test $enable_shared = "no" 9549 then 9550 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 9551 fi;; 9552 QNX*) 9553 # -Wl,-E causes the symbols to be added to the dynamic 9554 # symbol table so that they can be found when a module 9555 # is loaded. -N 2048K causes the stack size to be set 9556 # to 2048 kilobytes so that the stack doesn't overflow 9557 # when running test_compile.py. 9558 LINKFORSHARED='-Wl,-E -N 2048K';; 9559 esac 9560fi 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 9562$as_echo "$LINKFORSHARED" >&6; } 9563 9564 9565 9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 9567$as_echo_n "checking CFLAGSFORSHARED... " >&6; } 9568if test ! "$LIBRARY" = "$LDLIBRARY" 9569then 9570 case $ac_sys_system in 9571 CYGWIN*) 9572 # Cygwin needs CCSHARED when building extension DLLs 9573 # but not when building the interpreter DLL. 9574 CFLAGSFORSHARED='';; 9575 *) 9576 CFLAGSFORSHARED='$(CCSHARED)' 9577 esac 9578fi 9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 9580$as_echo "$CFLAGSFORSHARED" >&6; } 9581 9582# SHLIBS are libraries (except -lc and -lm) to link to the python shared 9583# library (with --enable-shared). 9584# For platforms on which shared libraries are not allowed to have unresolved 9585# symbols, this must be set to $(LIBS) (expanded by make). We do this even 9586# if it is not required, since it creates a dependency of the shared library 9587# to LIBS. This, in turn, means that applications linking the shared libpython 9588# don't need to link LIBS explicitly. The default should be only changed 9589# on systems where this approach causes problems. 9590 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 9592$as_echo_n "checking SHLIBS... " >&6; } 9593case "$ac_sys_system" in 9594 *) 9595 SHLIBS='$(LIBS)';; 9596esac 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 9598$as_echo "$SHLIBS" >&6; } 9599 9600 9601# checks for libraries 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 9603$as_echo_n "checking for sendfile in -lsendfile... " >&6; } 9604if ${ac_cv_lib_sendfile_sendfile+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 ac_check_lib_save_LIBS=$LIBS 9608LIBS="-lsendfile $LIBS" 9609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610/* end confdefs.h. */ 9611 9612/* Override any GCC internal prototype to avoid an error. 9613 Use char because int might match the return type of a GCC 9614 builtin and then its argument prototype would still apply. */ 9615#ifdef __cplusplus 9616extern "C" 9617#endif 9618char sendfile (); 9619int 9620main () 9621{ 9622return sendfile (); 9623 ; 9624 return 0; 9625} 9626_ACEOF 9627if ac_fn_c_try_link "$LINENO"; then : 9628 ac_cv_lib_sendfile_sendfile=yes 9629else 9630 ac_cv_lib_sendfile_sendfile=no 9631fi 9632rm -f core conftest.err conftest.$ac_objext \ 9633 conftest$ac_exeext conftest.$ac_ext 9634LIBS=$ac_check_lib_save_LIBS 9635fi 9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 9637$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } 9638if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : 9639 cat >>confdefs.h <<_ACEOF 9640#define HAVE_LIBSENDFILE 1 9641_ACEOF 9642 9643 LIBS="-lsendfile $LIBS" 9644 9645fi 9646 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9648$as_echo_n "checking for dlopen in -ldl... " >&6; } 9649if ${ac_cv_lib_dl_dlopen+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 ac_check_lib_save_LIBS=$LIBS 9653LIBS="-ldl $LIBS" 9654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9655/* end confdefs.h. */ 9656 9657/* Override any GCC internal prototype to avoid an error. 9658 Use char because int might match the return type of a GCC 9659 builtin and then its argument prototype would still apply. */ 9660#ifdef __cplusplus 9661extern "C" 9662#endif 9663char dlopen (); 9664int 9665main () 9666{ 9667return dlopen (); 9668 ; 9669 return 0; 9670} 9671_ACEOF 9672if ac_fn_c_try_link "$LINENO"; then : 9673 ac_cv_lib_dl_dlopen=yes 9674else 9675 ac_cv_lib_dl_dlopen=no 9676fi 9677rm -f core conftest.err conftest.$ac_objext \ 9678 conftest$ac_exeext conftest.$ac_ext 9679LIBS=$ac_check_lib_save_LIBS 9680fi 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9682$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9683if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9684 cat >>confdefs.h <<_ACEOF 9685#define HAVE_LIBDL 1 9686_ACEOF 9687 9688 LIBS="-ldl $LIBS" 9689 9690fi 9691 # Dynamic linking for SunOS/Solaris and SYSV 9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9693$as_echo_n "checking for shl_load in -ldld... " >&6; } 9694if ${ac_cv_lib_dld_shl_load+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 ac_check_lib_save_LIBS=$LIBS 9698LIBS="-ldld $LIBS" 9699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701 9702/* Override any GCC internal prototype to avoid an error. 9703 Use char because int might match the return type of a GCC 9704 builtin and then its argument prototype would still apply. */ 9705#ifdef __cplusplus 9706extern "C" 9707#endif 9708char shl_load (); 9709int 9710main () 9711{ 9712return shl_load (); 9713 ; 9714 return 0; 9715} 9716_ACEOF 9717if ac_fn_c_try_link "$LINENO"; then : 9718 ac_cv_lib_dld_shl_load=yes 9719else 9720 ac_cv_lib_dld_shl_load=no 9721fi 9722rm -f core conftest.err conftest.$ac_objext \ 9723 conftest$ac_exeext conftest.$ac_ext 9724LIBS=$ac_check_lib_save_LIBS 9725fi 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9727$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9728if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9729 cat >>confdefs.h <<_ACEOF 9730#define HAVE_LIBDLD 1 9731_ACEOF 9732 9733 LIBS="-ldld $LIBS" 9734 9735fi 9736 # Dynamic linking for HP-UX 9737 9738# checks for uuid.h location 9739for ac_header in ignore_uuid/uuid.h uuid.h 9740do : 9741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9744 cat >>confdefs.h <<_ACEOF 9745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9746_ACEOF 9747 9748fi 9749 9750done 9751 9752 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 9754$as_echo_n "checking for uuid_generate_time_safe... " >&6; } 9755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756/* end confdefs.h. */ 9757#include <ignore_uuid/uuid.h> 9758int 9759main () 9760{ 9761 9762#ifndef uuid_generate_time_safe 9763void *x = uuid_generate_time_safe 9764#endif 9765 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770if ac_fn_c_try_compile "$LINENO"; then : 9771 9772$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 9773 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9775$as_echo "yes" >&6; } 9776else 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9778$as_echo "no" >&6; } 9779 9780fi 9781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9782 9783# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) 9784# FreeBSD and OpenBSD provides support as well 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 9786$as_echo_n "checking for uuid_create... " >&6; } 9787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789#include <uuid.h> 9790int 9791main () 9792{ 9793 9794#ifndef uuid_create 9795void *x = uuid_create 9796#endif 9797 9798 ; 9799 return 0; 9800} 9801_ACEOF 9802if ac_fn_c_try_compile "$LINENO"; then : 9803 9804$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h 9805 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9807$as_echo "yes" >&6; } 9808else 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9810$as_echo "no" >&6; } 9811 9812fi 9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9814 9815# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet 9816# stream in big-endian byte-order 9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 9818$as_echo_n "checking for uuid_enc_be... " >&6; } 9819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821#include <uuid.h> 9822int 9823main () 9824{ 9825 9826#ifndef uuid_enc_be 9827void *x = uuid_enc_be 9828#endif 9829 9830 ; 9831 return 0; 9832} 9833_ACEOF 9834if ac_fn_c_try_compile "$LINENO"; then : 9835 9836$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h 9837 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9839$as_echo "yes" >&6; } 9840else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9842$as_echo "no" >&6; } 9843 9844fi 9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9846 9847# 'Real Time' functions on Solaris 9848# posix4 on Solaris 2.6 9849# pthread (first!) on Linux 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 9851$as_echo_n "checking for library containing sem_init... " >&6; } 9852if ${ac_cv_search_sem_init+:} false; then : 9853 $as_echo_n "(cached) " >&6 9854else 9855 ac_func_search_save_LIBS=$LIBS 9856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857/* end confdefs.h. */ 9858 9859/* Override any GCC internal prototype to avoid an error. 9860 Use char because int might match the return type of a GCC 9861 builtin and then its argument prototype would still apply. */ 9862#ifdef __cplusplus 9863extern "C" 9864#endif 9865char sem_init (); 9866int 9867main () 9868{ 9869return sem_init (); 9870 ; 9871 return 0; 9872} 9873_ACEOF 9874for ac_lib in '' pthread rt posix4; do 9875 if test -z "$ac_lib"; then 9876 ac_res="none required" 9877 else 9878 ac_res=-l$ac_lib 9879 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9880 fi 9881 if ac_fn_c_try_link "$LINENO"; then : 9882 ac_cv_search_sem_init=$ac_res 9883fi 9884rm -f core conftest.err conftest.$ac_objext \ 9885 conftest$ac_exeext 9886 if ${ac_cv_search_sem_init+:} false; then : 9887 break 9888fi 9889done 9890if ${ac_cv_search_sem_init+:} false; then : 9891 9892else 9893 ac_cv_search_sem_init=no 9894fi 9895rm conftest.$ac_ext 9896LIBS=$ac_func_search_save_LIBS 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 9899$as_echo "$ac_cv_search_sem_init" >&6; } 9900ac_res=$ac_cv_search_sem_init 9901if test "$ac_res" != no; then : 9902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9903 9904fi 9905 9906 9907# check if we need libintl for locale functions 9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 9909$as_echo_n "checking for textdomain in -lintl... " >&6; } 9910if ${ac_cv_lib_intl_textdomain+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 ac_check_lib_save_LIBS=$LIBS 9914LIBS="-lintl $LIBS" 9915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917 9918/* Override any GCC internal prototype to avoid an error. 9919 Use char because int might match the return type of a GCC 9920 builtin and then its argument prototype would still apply. */ 9921#ifdef __cplusplus 9922extern "C" 9923#endif 9924char textdomain (); 9925int 9926main () 9927{ 9928return textdomain (); 9929 ; 9930 return 0; 9931} 9932_ACEOF 9933if ac_fn_c_try_link "$LINENO"; then : 9934 ac_cv_lib_intl_textdomain=yes 9935else 9936 ac_cv_lib_intl_textdomain=no 9937fi 9938rm -f core conftest.err conftest.$ac_objext \ 9939 conftest$ac_exeext conftest.$ac_ext 9940LIBS=$ac_check_lib_save_LIBS 9941fi 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 9943$as_echo "$ac_cv_lib_intl_textdomain" >&6; } 9944if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 9945 9946$as_echo "#define WITH_LIBINTL 1" >>confdefs.h 9947 9948 LIBS="-lintl $LIBS" 9949fi 9950 9951 9952# checks for system dependent C++ extensions support 9953case "$ac_sys_system" in 9954 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 9955$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958 9959 #include <load.h> 9960int 9961main () 9962{ 9963loadAndInit("", 0, "") 9964 ; 9965 return 0; 9966} 9967 9968_ACEOF 9969if ac_fn_c_try_link "$LINENO"; then : 9970 9971 9972$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 9973 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9975$as_echo "yes" >&6; } 9976 9977else 9978 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9980$as_echo "no" >&6; } 9981 9982fi 9983rm -f core conftest.err conftest.$ac_objext \ 9984 conftest$ac_exeext conftest.$ac_ext;; 9985 *) ;; 9986esac 9987 9988# check for systems that require aligned memory access 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 9990$as_echo_n "checking aligned memory access is required... " >&6; } 9991if ${ac_cv_aligned_required+:} false; then : 9992 $as_echo_n "(cached) " >&6 9993else 9994 if test "$cross_compiling" = yes; then : 9995 ac_cv_aligned_required=yes 9996else 9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9998/* end confdefs.h. */ 9999 10000int main() 10001{ 10002 char s[16]; 10003 int i, *p1, *p2; 10004 for (i=0; i < 16; i++) 10005 s[i] = i; 10006 p1 = (int*)(s+1); 10007 p2 = (int*)(s+2); 10008 if (*p1 == *p2) 10009 return 1; 10010 return 0; 10011} 10012_ACEOF 10013if ac_fn_c_try_run "$LINENO"; then : 10014 ac_cv_aligned_required=no 10015else 10016 ac_cv_aligned_required=yes 10017fi 10018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10019 conftest.$ac_objext conftest.beam conftest.$ac_ext 10020fi 10021 10022 10023fi 10024 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 10026$as_echo "$ac_cv_aligned_required" >&6; } 10027if test "$ac_cv_aligned_required" = yes ; then 10028 10029$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 10030 10031fi 10032 10033# str, bytes and memoryview hash algorithm 10034 10035 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 10037$as_echo_n "checking for --with-hash-algorithm... " >&6; } 10038 10039# Check whether --with-hash_algorithm was given. 10040if test "${with_hash_algorithm+set}" = set; then : 10041 withval=$with_hash_algorithm; 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10043$as_echo "$withval" >&6; } 10044case "$withval" in 10045 siphash24) 10046 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h 10047 10048 ;; 10049 fnv) 10050 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h 10051 10052 ;; 10053 *) 10054 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 10055 ;; 10056esac 10057 10058else 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 10060$as_echo "default" >&6; } 10061fi 10062 10063 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 10065$as_echo_n "checking for --with-address-sanitizer... " >&6; } 10066 10067# Check whether --with-address_sanitizer was given. 10068if test "${with_address_sanitizer+set}" = set; then : 10069 withval=$with_address_sanitizer; 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10071$as_echo "$withval" >&6; } 10072BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 10073LDFLAGS="-fsanitize=address $LDFLAGS" 10074# ASan works by controlling memory allocation, our own malloc interferes. 10075with_pymalloc="no" 10076 10077else 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10079$as_echo "no" >&6; } 10080fi 10081 10082 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 10084$as_echo_n "checking for --with-memory-sanitizer... " >&6; } 10085 10086# Check whether --with-memory_sanitizer was given. 10087if test "${with_memory_sanitizer+set}" = set; then : 10088 withval=$with_memory_sanitizer; 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10090$as_echo "$withval" >&6; } 10091BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" 10092LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" 10093# MSan works by controlling memory allocation, our own malloc interferes. 10094with_pymalloc="no" 10095 10096else 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10098$as_echo "no" >&6; } 10099fi 10100 10101 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 10103$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } 10104 10105# Check whether --with-undefined_behavior_sanitizer was given. 10106if test "${with_undefined_behavior_sanitizer+set}" = set; then : 10107 withval=$with_undefined_behavior_sanitizer; 10108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10109$as_echo "$withval" >&6; } 10110BASECFLAGS="-fsanitize=undefined $BASECFLAGS" 10111LDFLAGS="-fsanitize=undefined $LDFLAGS" 10112 10113else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115$as_echo "no" >&6; } 10116fi 10117 10118 10119# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 10120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 10121$as_echo_n "checking for t_open in -lnsl... " >&6; } 10122if ${ac_cv_lib_nsl_t_open+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 ac_check_lib_save_LIBS=$LIBS 10126LIBS="-lnsl $LIBS" 10127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129 10130/* Override any GCC internal prototype to avoid an error. 10131 Use char because int might match the return type of a GCC 10132 builtin and then its argument prototype would still apply. */ 10133#ifdef __cplusplus 10134extern "C" 10135#endif 10136char t_open (); 10137int 10138main () 10139{ 10140return t_open (); 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145if ac_fn_c_try_link "$LINENO"; then : 10146 ac_cv_lib_nsl_t_open=yes 10147else 10148 ac_cv_lib_nsl_t_open=no 10149fi 10150rm -f core conftest.err conftest.$ac_objext \ 10151 conftest$ac_exeext conftest.$ac_ext 10152LIBS=$ac_check_lib_save_LIBS 10153fi 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 10155$as_echo "$ac_cv_lib_nsl_t_open" >&6; } 10156if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 10157 LIBS="-lnsl $LIBS" 10158fi 10159 # SVR4 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10161$as_echo_n "checking for socket in -lsocket... " >&6; } 10162if ${ac_cv_lib_socket_socket+:} false; then : 10163 $as_echo_n "(cached) " >&6 10164else 10165 ac_check_lib_save_LIBS=$LIBS 10166LIBS="-lsocket $LIBS $LIBS" 10167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169 10170/* Override any GCC internal prototype to avoid an error. 10171 Use char because int might match the return type of a GCC 10172 builtin and then its argument prototype would still apply. */ 10173#ifdef __cplusplus 10174extern "C" 10175#endif 10176char socket (); 10177int 10178main () 10179{ 10180return socket (); 10181 ; 10182 return 0; 10183} 10184_ACEOF 10185if ac_fn_c_try_link "$LINENO"; then : 10186 ac_cv_lib_socket_socket=yes 10187else 10188 ac_cv_lib_socket_socket=no 10189fi 10190rm -f core conftest.err conftest.$ac_objext \ 10191 conftest$ac_exeext conftest.$ac_ext 10192LIBS=$ac_check_lib_save_LIBS 10193fi 10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10195$as_echo "$ac_cv_lib_socket_socket" >&6; } 10196if test "x$ac_cv_lib_socket_socket" = xyes; then : 10197 LIBS="-lsocket $LIBS" 10198fi 10199 # SVR4 sockets 10200 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 10202$as_echo_n "checking for --with-libs... " >&6; } 10203 10204# Check whether --with-libs was given. 10205if test "${with_libs+set}" = set; then : 10206 withval=$with_libs; 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10208$as_echo "$withval" >&6; } 10209LIBS="$withval $LIBS" 10210 10211else 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10213$as_echo "no" >&6; } 10214fi 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10225 if test -n "$ac_tool_prefix"; then 10226 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10227set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10229$as_echo_n "checking for $ac_word... " >&6; } 10230if ${ac_cv_path_PKG_CONFIG+:} false; then : 10231 $as_echo_n "(cached) " >&6 10232else 10233 case $PKG_CONFIG in 10234 [\\/]* | ?:[\\/]*) 10235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10236 ;; 10237 *) 10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10239for as_dir in $PATH 10240do 10241 IFS=$as_save_IFS 10242 test -z "$as_dir" && as_dir=. 10243 for ac_exec_ext in '' $ac_executable_extensions; do 10244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10247 break 2 10248 fi 10249done 10250 done 10251IFS=$as_save_IFS 10252 10253 ;; 10254esac 10255fi 10256PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10257if test -n "$PKG_CONFIG"; then 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10259$as_echo "$PKG_CONFIG" >&6; } 10260else 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10262$as_echo "no" >&6; } 10263fi 10264 10265 10266fi 10267if test -z "$ac_cv_path_PKG_CONFIG"; then 10268 ac_pt_PKG_CONFIG=$PKG_CONFIG 10269 # Extract the first word of "pkg-config", so it can be a program name with args. 10270set dummy pkg-config; ac_word=$2 10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10272$as_echo_n "checking for $ac_word... " >&6; } 10273if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10274 $as_echo_n "(cached) " >&6 10275else 10276 case $ac_pt_PKG_CONFIG in 10277 [\\/]* | ?:[\\/]*) 10278 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10279 ;; 10280 *) 10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10282for as_dir in $PATH 10283do 10284 IFS=$as_save_IFS 10285 test -z "$as_dir" && as_dir=. 10286 for ac_exec_ext in '' $ac_executable_extensions; do 10287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10288 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10290 break 2 10291 fi 10292done 10293 done 10294IFS=$as_save_IFS 10295 10296 ;; 10297esac 10298fi 10299ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10300if test -n "$ac_pt_PKG_CONFIG"; then 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10302$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10303else 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10305$as_echo "no" >&6; } 10306fi 10307 10308 if test "x$ac_pt_PKG_CONFIG" = x; then 10309 PKG_CONFIG="" 10310 else 10311 case $cross_compiling:$ac_tool_warned in 10312yes:) 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10315ac_tool_warned=yes ;; 10316esac 10317 PKG_CONFIG=$ac_pt_PKG_CONFIG 10318 fi 10319else 10320 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10321fi 10322 10323fi 10324if test -n "$PKG_CONFIG"; then 10325 _pkg_min_version=0.9.0 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10327$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10328 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10330$as_echo "yes" >&6; } 10331 else 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10333$as_echo "no" >&6; } 10334 PKG_CONFIG="" 10335 fi 10336fi 10337 10338# Check for use of the system expat library 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 10340$as_echo_n "checking for --with-system-expat... " >&6; } 10341 10342# Check whether --with-system_expat was given. 10343if test "${with_system_expat+set}" = set; then : 10344 withval=$with_system_expat; 10345else 10346 with_system_expat="no" 10347fi 10348 10349 10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 10351$as_echo "$with_system_expat" >&6; } 10352 10353# Check for use of the system libffi library 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 10355$as_echo_n "checking for --with-system-ffi... " >&6; } 10356 10357# Check whether --with-system_ffi was given. 10358if test "${with_system_ffi+set}" = set; then : 10359 withval=$with_system_ffi; 10360fi 10361 10362 10363if test "$ac_sys_system" = "Darwin" 10364then 10365 case "$with_system_ffi" in 10366 "") 10367 with_system_ffi="no" 10368 ;; 10369 yes|no) 10370 ;; 10371 *) 10372 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 10373 ;; 10374 esac 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 10376$as_echo "$with_system_ffi" >&6; } 10377else 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10379$as_echo "yes" >&6; } 10380 if test "$with_system_ffi" != "" 10381 then 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 10383$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} 10384 fi 10385 with_system_ffi="yes" 10386fi 10387 10388if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 10389 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 10390else 10391 LIBFFI_INCLUDEDIR="" 10392fi 10393 10394 10395# Check for use of the system libmpdec library 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 10397$as_echo_n "checking for --with-system-libmpdec... " >&6; } 10398 10399# Check whether --with-system_libmpdec was given. 10400if test "${with_system_libmpdec+set}" = set; then : 10401 withval=$with_system_libmpdec; 10402else 10403 with_system_libmpdec="no" 10404fi 10405 10406 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 10408$as_echo "$with_system_libmpdec" >&6; } 10409 10410# Check whether _decimal should use a coroutine-local or thread-local context 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 10412$as_echo_n "checking for --with-decimal-contextvar... " >&6; } 10413 10414# Check whether --with-decimal_contextvar was given. 10415if test "${with_decimal_contextvar+set}" = set; then : 10416 withval=$with_decimal_contextvar; 10417else 10418 with_decimal_contextvar="yes" 10419fi 10420 10421 10422if test "$with_decimal_contextvar" != "no" 10423then 10424 10425$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h 10426 10427fi 10428 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 10430$as_echo "$with_decimal_contextvar" >&6; } 10431 10432# Check for support for loadable sqlite extensions 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 10434$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } 10435# Check whether --enable-loadable-sqlite-extensions was given. 10436if test "${enable_loadable_sqlite_extensions+set}" = set; then : 10437 enableval=$enable_loadable_sqlite_extensions; 10438else 10439 enable_loadable_sqlite_extensions="no" 10440fi 10441 10442 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 10444$as_echo "$enable_loadable_sqlite_extensions" >&6; } 10445 10446# Check for --with-tcltk-includes=path and --with-tcltk-libs=path 10447 10448 10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 10450$as_echo_n "checking for --with-tcltk-includes... " >&6; } 10451 10452# Check whether --with-tcltk-includes was given. 10453if test "${with_tcltk_includes+set}" = set; then : 10454 withval=$with_tcltk_includes; 10455else 10456 with_tcltk_includes="default" 10457fi 10458 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 10460$as_echo "$with_tcltk_includes" >&6; } 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 10462$as_echo_n "checking for --with-tcltk-libs... " >&6; } 10463 10464# Check whether --with-tcltk-libs was given. 10465if test "${with_tcltk_libs+set}" = set; then : 10466 withval=$with_tcltk_libs; 10467else 10468 with_tcltk_libs="default" 10469fi 10470 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 10472$as_echo "$with_tcltk_libs" >&6; } 10473if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 10474then 10475 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 10476 then 10477 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 10478 fi 10479 TCLTK_INCLUDES="" 10480 TCLTK_LIBS="" 10481else 10482 TCLTK_INCLUDES="$with_tcltk_includes" 10483 TCLTK_LIBS="$with_tcltk_libs" 10484fi 10485 10486# Check for --with-dbmliborder 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 10488$as_echo_n "checking for --with-dbmliborder... " >&6; } 10489 10490# Check whether --with-dbmliborder was given. 10491if test "${with_dbmliborder+set}" = set; then : 10492 withval=$with_dbmliborder; 10493if test x$with_dbmliborder = xyes 10494then 10495as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10496else 10497 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 10498 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 10499 then 10500 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10501 fi 10502 done 10503fi 10504fi 10505 10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 10507$as_echo "$with_dbmliborder" >&6; } 10508 10509 10510 10511# Templates for things AC_DEFINEd more than once. 10512# For a single AC_DEFINE, no template is needed. 10513 10514 10515if test "$ac_cv_pthread_is_default" = yes 10516then 10517 # Defining _REENTRANT on system with POSIX threads should not hurt. 10518 $as_echo "#define _REENTRANT 1" >>confdefs.h 10519 10520 posix_threads=yes 10521 if test "$ac_sys_system" = "SunOS"; then 10522 CFLAGS="$CFLAGS -D_REENTRANT" 10523 fi 10524elif test "$ac_cv_kpthread" = "yes" 10525then 10526 CC="$CC -Kpthread" 10527 if test "$ac_cv_cxx_thread" = "yes"; then 10528 CXX="$CXX -Kpthread" 10529 fi 10530 posix_threads=yes 10531elif test "$ac_cv_kthread" = "yes" 10532then 10533 CC="$CC -Kthread" 10534 if test "$ac_cv_cxx_thread" = "yes"; then 10535 CXX="$CXX -Kthread" 10536 fi 10537 posix_threads=yes 10538elif test "$ac_cv_pthread" = "yes" 10539then 10540 CC="$CC -pthread" 10541 if test "$ac_cv_cxx_thread" = "yes"; then 10542 CXX="$CXX -pthread" 10543 fi 10544 posix_threads=yes 10545else 10546 if test ! -z "$withval" -a -d "$withval" 10547 then LDFLAGS="$LDFLAGS -L$withval" 10548 fi 10549 10550 # According to the POSIX spec, a pthreads implementation must 10551 # define _POSIX_THREADS in unistd.h. Some apparently don't 10552 # (e.g. gnu pth with pthread emulation) 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 10554$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557 10558#include <unistd.h> 10559#ifdef _POSIX_THREADS 10560yes 10561#endif 10562 10563_ACEOF 10564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10565 $EGREP "yes" >/dev/null 2>&1; then : 10566 unistd_defines_pthreads=yes 10567else 10568 unistd_defines_pthreads=no 10569fi 10570rm -f conftest* 10571 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 10573$as_echo "$unistd_defines_pthreads" >&6; } 10574 10575 $as_echo "#define _REENTRANT 1" >>confdefs.h 10576 10577 # Just looking for pthread_create in libpthread is not enough: 10578 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 10579 # So we really have to include pthread.h, and then link. 10580 _libs=$LIBS 10581 LIBS="$LIBS -lpthread" 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10583$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10585/* end confdefs.h. */ 10586 10587#include <stdio.h> 10588#include <pthread.h> 10589 10590void * start_routine (void *arg) { exit (0); } 10591int 10592main () 10593{ 10594 10595pthread_create (NULL, NULL, start_routine, NULL) 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600if ac_fn_c_try_link "$LINENO"; then : 10601 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10603$as_echo "yes" >&6; } 10604 posix_threads=yes 10605 10606else 10607 10608 LIBS=$_libs 10609 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 10610if test "x$ac_cv_func_pthread_detach" = xyes; then : 10611 10612 posix_threads=yes 10613 10614else 10615 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 10617$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 10618if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 ac_check_lib_save_LIBS=$LIBS 10622LIBS="-lpthreads $LIBS" 10623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10624/* end confdefs.h. */ 10625 10626/* Override any GCC internal prototype to avoid an error. 10627 Use char because int might match the return type of a GCC 10628 builtin and then its argument prototype would still apply. */ 10629#ifdef __cplusplus 10630extern "C" 10631#endif 10632char pthread_create (); 10633int 10634main () 10635{ 10636return pthread_create (); 10637 ; 10638 return 0; 10639} 10640_ACEOF 10641if ac_fn_c_try_link "$LINENO"; then : 10642 ac_cv_lib_pthreads_pthread_create=yes 10643else 10644 ac_cv_lib_pthreads_pthread_create=no 10645fi 10646rm -f core conftest.err conftest.$ac_objext \ 10647 conftest$ac_exeext conftest.$ac_ext 10648LIBS=$ac_check_lib_save_LIBS 10649fi 10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 10651$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 10652if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 10653 10654 posix_threads=yes 10655 LIBS="$LIBS -lpthreads" 10656 10657else 10658 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 10660$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 10661if ${ac_cv_lib_c_r_pthread_create+:} false; then : 10662 $as_echo_n "(cached) " >&6 10663else 10664 ac_check_lib_save_LIBS=$LIBS 10665LIBS="-lc_r $LIBS" 10666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668 10669/* Override any GCC internal prototype to avoid an error. 10670 Use char because int might match the return type of a GCC 10671 builtin and then its argument prototype would still apply. */ 10672#ifdef __cplusplus 10673extern "C" 10674#endif 10675char pthread_create (); 10676int 10677main () 10678{ 10679return pthread_create (); 10680 ; 10681 return 0; 10682} 10683_ACEOF 10684if ac_fn_c_try_link "$LINENO"; then : 10685 ac_cv_lib_c_r_pthread_create=yes 10686else 10687 ac_cv_lib_c_r_pthread_create=no 10688fi 10689rm -f core conftest.err conftest.$ac_objext \ 10690 conftest$ac_exeext conftest.$ac_ext 10691LIBS=$ac_check_lib_save_LIBS 10692fi 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 10694$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 10695if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 10696 10697 posix_threads=yes 10698 LIBS="$LIBS -lc_r" 10699 10700else 10701 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 10703$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 10704if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 10705 $as_echo_n "(cached) " >&6 10706else 10707 ac_check_lib_save_LIBS=$LIBS 10708LIBS="-lpthread $LIBS" 10709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10710/* end confdefs.h. */ 10711 10712/* Override any GCC internal prototype to avoid an error. 10713 Use char because int might match the return type of a GCC 10714 builtin and then its argument prototype would still apply. */ 10715#ifdef __cplusplus 10716extern "C" 10717#endif 10718char __pthread_create_system (); 10719int 10720main () 10721{ 10722return __pthread_create_system (); 10723 ; 10724 return 0; 10725} 10726_ACEOF 10727if ac_fn_c_try_link "$LINENO"; then : 10728 ac_cv_lib_pthread___pthread_create_system=yes 10729else 10730 ac_cv_lib_pthread___pthread_create_system=no 10731fi 10732rm -f core conftest.err conftest.$ac_objext \ 10733 conftest$ac_exeext conftest.$ac_ext 10734LIBS=$ac_check_lib_save_LIBS 10735fi 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 10737$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 10738if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 10739 10740 posix_threads=yes 10741 LIBS="$LIBS -lpthread" 10742 10743else 10744 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 10746$as_echo_n "checking for pthread_create in -lcma... " >&6; } 10747if ${ac_cv_lib_cma_pthread_create+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 ac_check_lib_save_LIBS=$LIBS 10751LIBS="-lcma $LIBS" 10752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754 10755/* Override any GCC internal prototype to avoid an error. 10756 Use char because int might match the return type of a GCC 10757 builtin and then its argument prototype would still apply. */ 10758#ifdef __cplusplus 10759extern "C" 10760#endif 10761char pthread_create (); 10762int 10763main () 10764{ 10765return pthread_create (); 10766 ; 10767 return 0; 10768} 10769_ACEOF 10770if ac_fn_c_try_link "$LINENO"; then : 10771 ac_cv_lib_cma_pthread_create=yes 10772else 10773 ac_cv_lib_cma_pthread_create=no 10774fi 10775rm -f core conftest.err conftest.$ac_objext \ 10776 conftest$ac_exeext conftest.$ac_ext 10777LIBS=$ac_check_lib_save_LIBS 10778fi 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 10780$as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 10781if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 10782 10783 posix_threads=yes 10784 LIBS="$LIBS -lcma" 10785 10786else 10787 10788 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 10789 10790fi 10791 10792 10793fi 10794 10795fi 10796 10797fi 10798 10799fi 10800 10801fi 10802rm -f core conftest.err conftest.$ac_objext \ 10803 conftest$ac_exeext conftest.$ac_ext 10804 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 10806$as_echo_n "checking for usconfig in -lmpc... " >&6; } 10807if ${ac_cv_lib_mpc_usconfig+:} false; then : 10808 $as_echo_n "(cached) " >&6 10809else 10810 ac_check_lib_save_LIBS=$LIBS 10811LIBS="-lmpc $LIBS" 10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813/* end confdefs.h. */ 10814 10815/* Override any GCC internal prototype to avoid an error. 10816 Use char because int might match the return type of a GCC 10817 builtin and then its argument prototype would still apply. */ 10818#ifdef __cplusplus 10819extern "C" 10820#endif 10821char usconfig (); 10822int 10823main () 10824{ 10825return usconfig (); 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830if ac_fn_c_try_link "$LINENO"; then : 10831 ac_cv_lib_mpc_usconfig=yes 10832else 10833 ac_cv_lib_mpc_usconfig=no 10834fi 10835rm -f core conftest.err conftest.$ac_objext \ 10836 conftest$ac_exeext conftest.$ac_ext 10837LIBS=$ac_check_lib_save_LIBS 10838fi 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 10840$as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 10841if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 10842 10843 LIBS="$LIBS -lmpc" 10844 10845fi 10846 10847 10848fi 10849 10850if test "$posix_threads" = "yes"; then 10851 if test "$unistd_defines_pthreads" = "no"; then 10852 10853$as_echo "#define _POSIX_THREADS 1" >>confdefs.h 10854 10855 fi 10856 10857 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 10858 case $ac_sys_system/$ac_sys_release in 10859 SunOS/5.6) 10860$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 10861 10862 ;; 10863 SunOS/5.8) 10864$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10865 10866 ;; 10867 AIX/*) 10868$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10869 10870 ;; 10871 esac 10872 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 10874$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 10875 if ${ac_cv_pthread_system_supported+:} false; then : 10876 $as_echo_n "(cached) " >&6 10877else 10878 if test "$cross_compiling" = yes; then : 10879 ac_cv_pthread_system_supported=no 10880else 10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882/* end confdefs.h. */ 10883 10884 #include <stdio.h> 10885 #include <pthread.h> 10886 void *foo(void *parm) { 10887 return NULL; 10888 } 10889 main() { 10890 pthread_attr_t attr; 10891 pthread_t id; 10892 if (pthread_attr_init(&attr)) exit(-1); 10893 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); 10894 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); 10895 exit(0); 10896 } 10897_ACEOF 10898if ac_fn_c_try_run "$LINENO"; then : 10899 ac_cv_pthread_system_supported=yes 10900else 10901 ac_cv_pthread_system_supported=no 10902fi 10903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10904 conftest.$ac_objext conftest.beam conftest.$ac_ext 10905fi 10906 10907 10908fi 10909 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 10911$as_echo "$ac_cv_pthread_system_supported" >&6; } 10912 if test "$ac_cv_pthread_system_supported" = "yes"; then 10913 10914$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 10915 10916 fi 10917 for ac_func in pthread_sigmask 10918do : 10919 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 10920if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 10921 cat >>confdefs.h <<_ACEOF 10922#define HAVE_PTHREAD_SIGMASK 1 10923_ACEOF 10924 case $ac_sys_system in 10925 CYGWIN*) 10926 10927$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 10928 10929 ;; 10930 esac 10931fi 10932done 10933 10934 for ac_func in pthread_getcpuclockid 10935do : 10936 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" 10937if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : 10938 cat >>confdefs.h <<_ACEOF 10939#define HAVE_PTHREAD_GETCPUCLOCKID 1 10940_ACEOF 10941 10942fi 10943done 10944 10945fi 10946 10947 10948# Check for enable-ipv6 10949 10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 10951$as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 10952# Check whether --enable-ipv6 was given. 10953if test "${enable_ipv6+set}" = set; then : 10954 enableval=$enable_ipv6; case "$enableval" in 10955 no) 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10957$as_echo "no" >&6; } 10958 ipv6=no 10959 ;; 10960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10961$as_echo "yes" >&6; } 10962 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10963 10964 ipv6=yes 10965 ;; 10966 esac 10967else 10968 10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 /* AF_INET6 available check */ 10972#include <sys/types.h> 10973#include <sys/socket.h> 10974int 10975main () 10976{ 10977int domain = AF_INET6; 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982if ac_fn_c_try_compile "$LINENO"; then : 10983 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10985$as_echo "yes" >&6; } 10986 ipv6=yes 10987 10988else 10989 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10991$as_echo "no" >&6; } 10992 ipv6=no 10993 10994fi 10995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10996 10997if test "$ipv6" = "yes"; then 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 10999$as_echo_n "checking if RFC2553 API is available... " >&6; } 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003 #include <sys/types.h> 11004#include <netinet/in.h> 11005int 11006main () 11007{ 11008struct sockaddr_in6 x; 11009 x.sin6_scope_id; 11010 ; 11011 return 0; 11012} 11013 11014_ACEOF 11015if ac_fn_c_try_compile "$LINENO"; then : 11016 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11018$as_echo "yes" >&6; } 11019 ipv6=yes 11020 11021else 11022 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11024$as_echo "no" >&6; } 11025 ipv6=no 11026 11027fi 11028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11029fi 11030 11031if test "$ipv6" = "yes"; then 11032 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 11033 11034fi 11035 11036fi 11037 11038 11039ipv6type=unknown 11040ipv6lib=none 11041ipv6trylibc=no 11042 11043if test "$ipv6" = "yes"; then 11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 11045$as_echo_n "checking ipv6 stack type... " >&6; } 11046 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 11047 do 11048 case $i in 11049 inria) 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052 11053#include <netinet/in.h> 11054#ifdef IPV6_INRIA_VERSION 11055yes 11056#endif 11057_ACEOF 11058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11059 $EGREP "yes" >/dev/null 2>&1; then : 11060 ipv6type=$i 11061fi 11062rm -f conftest* 11063 11064 ;; 11065 kame) 11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067/* end confdefs.h. */ 11068 11069#include <netinet/in.h> 11070#ifdef __KAME__ 11071yes 11072#endif 11073_ACEOF 11074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11075 $EGREP "yes" >/dev/null 2>&1; then : 11076 ipv6type=$i; 11077 ipv6lib=inet6 11078 ipv6libdir=/usr/local/v6/lib 11079 ipv6trylibc=yes 11080fi 11081rm -f conftest* 11082 11083 ;; 11084 linux-glibc) 11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087 11088#include <features.h> 11089#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 11090yes 11091#endif 11092_ACEOF 11093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11094 $EGREP "yes" >/dev/null 2>&1; then : 11095 ipv6type=$i; 11096 ipv6trylibc=yes 11097fi 11098rm -f conftest* 11099 11100 ;; 11101 linux-inet6) 11102 if test -d /usr/inet6; then 11103 ipv6type=$i 11104 ipv6lib=inet6 11105 ipv6libdir=/usr/inet6/lib 11106 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 11107 fi 11108 ;; 11109 solaris) 11110 if test -f /etc/netconfig; then 11111 if $GREP -q tcp6 /etc/netconfig; then 11112 ipv6type=$i 11113 ipv6trylibc=yes 11114 fi 11115 fi 11116 ;; 11117 toshiba) 11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119/* end confdefs.h. */ 11120 11121#include <sys/param.h> 11122#ifdef _TOSHIBA_INET6 11123yes 11124#endif 11125_ACEOF 11126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11127 $EGREP "yes" >/dev/null 2>&1; then : 11128 ipv6type=$i; 11129 ipv6lib=inet6; 11130 ipv6libdir=/usr/local/v6/lib 11131fi 11132rm -f conftest* 11133 11134 ;; 11135 v6d) 11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11137/* end confdefs.h. */ 11138 11139#include </usr/local/v6/include/sys/v6config.h> 11140#ifdef __V6D__ 11141yes 11142#endif 11143_ACEOF 11144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11145 $EGREP "yes" >/dev/null 2>&1; then : 11146 ipv6type=$i; 11147 ipv6lib=v6; 11148 ipv6libdir=/usr/local/v6/lib; 11149 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 11150fi 11151rm -f conftest* 11152 11153 ;; 11154 zeta) 11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157 11158#include <sys/param.h> 11159#ifdef _ZETA_MINAMI_INET6 11160yes 11161#endif 11162_ACEOF 11163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11164 $EGREP "yes" >/dev/null 2>&1; then : 11165 ipv6type=$i; 11166 ipv6lib=inet6; 11167 ipv6libdir=/usr/local/v6/lib 11168fi 11169rm -f conftest* 11170 11171 ;; 11172 esac 11173 if test "$ipv6type" != "unknown"; then 11174 break 11175 fi 11176 done 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 11178$as_echo "$ipv6type" >&6; } 11179fi 11180 11181if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 11182 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 11183 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 11184 echo "using lib$ipv6lib" 11185 else 11186 if test $ipv6trylibc = "yes"; then 11187 echo "using libc" 11188 else 11189 echo 'Fatal: no $ipv6lib library found. cannot continue.' 11190 echo "You need to fetch lib$ipv6lib.a from appropriate" 11191 echo 'ipv6 kit and compile beforehand.' 11192 exit 1 11193 fi 11194 fi 11195fi 11196 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 11198$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } 11199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11200/* end confdefs.h. */ 11201 /* CAN_RAW_FD_FRAMES available check */ 11202#include <linux/can/raw.h> 11203int 11204main () 11205{ 11206int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_compile "$LINENO"; then : 11212 11213 11214$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 11215 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11217$as_echo "yes" >&6; } 11218 11219else 11220 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11222$as_echo "no" >&6; } 11223 11224fi 11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11226 11227# Check for --with-doc-strings 11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 11229$as_echo_n "checking for --with-doc-strings... " >&6; } 11230 11231# Check whether --with-doc-strings was given. 11232if test "${with_doc_strings+set}" = set; then : 11233 withval=$with_doc_strings; 11234fi 11235 11236 11237if test -z "$with_doc_strings" 11238then with_doc_strings="yes" 11239fi 11240if test "$with_doc_strings" != "no" 11241then 11242 11243$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 11244 11245fi 11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 11247$as_echo "$with_doc_strings" >&6; } 11248 11249# Check for Python-specific malloc support 11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 11251$as_echo_n "checking for --with-pymalloc... " >&6; } 11252 11253# Check whether --with-pymalloc was given. 11254if test "${with_pymalloc+set}" = set; then : 11255 withval=$with_pymalloc; 11256fi 11257 11258 11259if test -z "$with_pymalloc" 11260then 11261 with_pymalloc="yes" 11262fi 11263if test "$with_pymalloc" != "no" 11264then 11265 11266$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 11267 11268 ABIFLAGS="${ABIFLAGS}m" 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 11271$as_echo "$with_pymalloc" >&6; } 11272 11273# Check for --with-c-locale-coercion 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 11275$as_echo_n "checking for --with-c-locale-coercion... " >&6; } 11276 11277# Check whether --with-c-locale-coercion was given. 11278if test "${with_c_locale_coercion+set}" = set; then : 11279 withval=$with_c_locale_coercion; 11280fi 11281 11282 11283if test -z "$with_c_locale_coercion" 11284then 11285 with_c_locale_coercion="yes" 11286fi 11287if test "$with_c_locale_coercion" != "no" 11288then 11289 11290$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h 11291 11292fi 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 11294$as_echo "$with_c_locale_coercion" >&6; } 11295 11296# Check for Valgrind support 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 11298$as_echo_n "checking for --with-valgrind... " >&6; } 11299 11300# Check whether --with-valgrind was given. 11301if test "${with_valgrind+set}" = set; then : 11302 withval=$with_valgrind; 11303else 11304 with_valgrind=no 11305fi 11306 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 11308$as_echo "$with_valgrind" >&6; } 11309if test "$with_valgrind" != no; then 11310 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 11311if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 11312 11313$as_echo "#define WITH_VALGRIND 1" >>confdefs.h 11314 11315else 11316 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 11317 11318fi 11319 11320 11321 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 11322fi 11323 11324# Check for DTrace support 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 11326$as_echo_n "checking for --with-dtrace... " >&6; } 11327 11328# Check whether --with-dtrace was given. 11329if test "${with_dtrace+set}" = set; then : 11330 withval=$with_dtrace; 11331else 11332 with_dtrace=no 11333fi 11334 11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 11336$as_echo "$with_dtrace" >&6; } 11337 11338 11339 11340 11341 11342DTRACE= 11343DFLAGS= 11344DTRACE_HEADERS= 11345DTRACE_OBJS= 11346 11347if test "$with_dtrace" = "yes" 11348then 11349 # Extract the first word of "dtrace", so it can be a program name with args. 11350set dummy dtrace; ac_word=$2 11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11352$as_echo_n "checking for $ac_word... " >&6; } 11353if ${ac_cv_path_DTRACE+:} false; then : 11354 $as_echo_n "(cached) " >&6 11355else 11356 case $DTRACE in 11357 [\\/]* | ?:[\\/]*) 11358 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 11359 ;; 11360 *) 11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11362for as_dir in $PATH 11363do 11364 IFS=$as_save_IFS 11365 test -z "$as_dir" && as_dir=. 11366 for ac_exec_ext in '' $ac_executable_extensions; do 11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11368 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11370 break 2 11371 fi 11372done 11373 done 11374IFS=$as_save_IFS 11375 11376 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 11377 ;; 11378esac 11379fi 11380DTRACE=$ac_cv_path_DTRACE 11381if test -n "$DTRACE"; then 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 11383$as_echo "$DTRACE" >&6; } 11384else 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386$as_echo "no" >&6; } 11387fi 11388 11389 11390 if test "$DTRACE" = "not found"; then 11391 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 11392 fi 11393 11394$as_echo "#define WITH_DTRACE 1" >>confdefs.h 11395 11396 DTRACE_HEADERS="Include/pydtrace_probes.h" 11397 11398 # On OS X, DTrace providers do not need to be explicitly compiled and 11399 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 11400 # generation flag '-G'. We check for presence of this flag, rather than 11401 # hardcoding support by OS, in the interest of robustness. 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 11403$as_echo_n "checking whether DTrace probes require linking... " >&6; } 11404if ${ac_cv_dtrace_link+:} false; then : 11405 $as_echo_n "(cached) " >&6 11406else 11407 ac_cv_dtrace_link=no 11408 echo 'BEGIN' > conftest.d 11409 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 11410 ac_cv_dtrace_link=yes 11411 11412fi 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 11414$as_echo "$ac_cv_dtrace_link" >&6; } 11415 if test "$ac_cv_dtrace_link" = "yes"; then 11416 DTRACE_OBJS="Python/pydtrace.o" 11417 fi 11418fi 11419 11420# -I${DLINCLDIR} is added to the compile rule for importdl.o 11421 11422DLINCLDIR=. 11423 11424# the dlopen() function means we might want to use dynload_shlib.o. some 11425# platforms, such as AIX, have dlopen(), but don't want to use it. 11426for ac_func in dlopen 11427do : 11428 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11429if test "x$ac_cv_func_dlopen" = xyes; then : 11430 cat >>confdefs.h <<_ACEOF 11431#define HAVE_DLOPEN 1 11432_ACEOF 11433 11434fi 11435done 11436 11437 11438# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 11439# loading of modules. 11440 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 11442$as_echo_n "checking DYNLOADFILE... " >&6; } 11443if test -z "$DYNLOADFILE" 11444then 11445 case $ac_sys_system/$ac_sys_release in 11446 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 11447 if test "$ac_cv_func_dlopen" = yes 11448 then DYNLOADFILE="dynload_shlib.o" 11449 else DYNLOADFILE="dynload_aix.o" 11450 fi 11451 ;; 11452 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 11453 *) 11454 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 11455 # out any dynamic loading 11456 if test "$ac_cv_func_dlopen" = yes 11457 then DYNLOADFILE="dynload_shlib.o" 11458 else DYNLOADFILE="dynload_stub.o" 11459 fi 11460 ;; 11461 esac 11462fi 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 11464$as_echo "$DYNLOADFILE" >&6; } 11465if test "$DYNLOADFILE" != "dynload_stub.o" 11466then 11467 11468$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 11469 11470fi 11471 11472# MACHDEP_OBJS can be set to platform-specific object files needed by Python 11473 11474 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 11476$as_echo_n "checking MACHDEP_OBJS... " >&6; } 11477if test -z "$MACHDEP_OBJS" 11478then 11479 MACHDEP_OBJS=$extra_machdep_objs 11480else 11481 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 11482fi 11483if test -z "$MACHDEP_OBJS"; then 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11485$as_echo "none" >&6; } 11486else 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 11488$as_echo "$MACHDEP_OBJS" >&6; } 11489fi 11490 11491# checks for library functions 11492for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ 11493 clock close_range confstr ctermid dup3 execv faccessat fchmod fchmodat fchown \ 11494 fchownat fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate \ 11495 futimesat futimens futimes gai_strerror getentropy \ 11496 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ 11497 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ 11498 if_nameindex \ 11499 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ 11500 memrchr mbrtowc mkdirat mkfifo \ 11501 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ 11502 posix_fallocate posix_fadvise posix_spawn pread preadv preadv2 \ 11503 pthread_init pthread_kill putenv pwrite pwritev pwritev2 readlink readlinkat readv realpath renameat \ 11504 sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ 11505 setgid sethostname \ 11506 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ 11507 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ 11508 sched_rr_get_interval \ 11509 sigaction sigaltstack siginterrupt sigpending sigrelse \ 11510 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ 11511 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 11512 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ 11513 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty 11514do : 11515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11516ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11517if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11518 cat >>confdefs.h <<_ACEOF 11519#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11520_ACEOF 11521 11522fi 11523done 11524 11525 11526# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 11527# links. Some libc implementations have a stub lchmod implementation that always 11528# returns an error. 11529if test "$MACHDEP" != linux; then 11530 for ac_func in lchmod 11531do : 11532 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 11533if test "x$ac_cv_func_lchmod" = xyes; then : 11534 cat >>confdefs.h <<_ACEOF 11535#define HAVE_LCHMOD 1 11536_ACEOF 11537 11538fi 11539done 11540 11541fi 11542 11543ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 11544 #include <dirent.h> 11545" 11546if test "x$ac_cv_have_decl_dirfd" = xyes; then : 11547 11548$as_echo "#define HAVE_DIRFD 1" >>confdefs.h 11549 11550fi 11551 11552 11553# For some functions, having a definition is not sufficient, since 11554# we want to take their address. 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 11556$as_echo_n "checking for chroot... " >&6; } 11557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11558/* end confdefs.h. */ 11559#include <unistd.h> 11560int 11561main () 11562{ 11563void *x=chroot 11564 ; 11565 return 0; 11566} 11567_ACEOF 11568if ac_fn_c_try_compile "$LINENO"; then : 11569 11570$as_echo "#define HAVE_CHROOT 1" >>confdefs.h 11571 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11573$as_echo "yes" >&6; } 11574else 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11576$as_echo "no" >&6; } 11577 11578fi 11579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 11581$as_echo_n "checking for link... " >&6; } 11582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11583/* end confdefs.h. */ 11584#include <unistd.h> 11585int 11586main () 11587{ 11588void *x=link 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_compile "$LINENO"; then : 11594 11595$as_echo "#define HAVE_LINK 1" >>confdefs.h 11596 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11598$as_echo "yes" >&6; } 11599else 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11601$as_echo "no" >&6; } 11602 11603fi 11604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 11606$as_echo_n "checking for symlink... " >&6; } 11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11608/* end confdefs.h. */ 11609#include <unistd.h> 11610int 11611main () 11612{ 11613void *x=symlink 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618if ac_fn_c_try_compile "$LINENO"; then : 11619 11620$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 11621 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11623$as_echo "yes" >&6; } 11624else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11626$as_echo "no" >&6; } 11627 11628fi 11629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 11631$as_echo_n "checking for fchdir... " >&6; } 11632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11633/* end confdefs.h. */ 11634#include <unistd.h> 11635int 11636main () 11637{ 11638void *x=fchdir 11639 ; 11640 return 0; 11641} 11642_ACEOF 11643if ac_fn_c_try_compile "$LINENO"; then : 11644 11645$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 11646 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11648$as_echo "yes" >&6; } 11649else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11651$as_echo "no" >&6; } 11652 11653fi 11654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 11656$as_echo_n "checking for fsync... " >&6; } 11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659#include <unistd.h> 11660int 11661main () 11662{ 11663void *x=fsync 11664 ; 11665 return 0; 11666} 11667_ACEOF 11668if ac_fn_c_try_compile "$LINENO"; then : 11669 11670$as_echo "#define HAVE_FSYNC 1" >>confdefs.h 11671 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11673$as_echo "yes" >&6; } 11674else 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676$as_echo "no" >&6; } 11677 11678fi 11679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 11681$as_echo_n "checking for fdatasync... " >&6; } 11682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683/* end confdefs.h. */ 11684#include <unistd.h> 11685int 11686main () 11687{ 11688void *x=fdatasync 11689 ; 11690 return 0; 11691} 11692_ACEOF 11693if ac_fn_c_try_compile "$LINENO"; then : 11694 11695$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 11696 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11698$as_echo "yes" >&6; } 11699else 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11701$as_echo "no" >&6; } 11702 11703fi 11704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 11706$as_echo_n "checking for epoll... " >&6; } 11707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11708/* end confdefs.h. */ 11709#include <sys/epoll.h> 11710int 11711main () 11712{ 11713void *x=epoll_create 11714 ; 11715 return 0; 11716} 11717_ACEOF 11718if ac_fn_c_try_compile "$LINENO"; then : 11719 11720$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 11721 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11723$as_echo "yes" >&6; } 11724else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11726$as_echo "no" >&6; } 11727 11728fi 11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 11731$as_echo_n "checking for epoll_create1... " >&6; } 11732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11733/* end confdefs.h. */ 11734#include <sys/epoll.h> 11735int 11736main () 11737{ 11738void *x=epoll_create1 11739 ; 11740 return 0; 11741} 11742_ACEOF 11743if ac_fn_c_try_compile "$LINENO"; then : 11744 11745$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11748$as_echo "yes" >&6; } 11749else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11751$as_echo "no" >&6; } 11752 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 11756$as_echo_n "checking for kqueue... " >&6; } 11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759 11760#include <sys/types.h> 11761#include <sys/event.h> 11762 11763int 11764main () 11765{ 11766int x=kqueue() 11767 ; 11768 return 0; 11769} 11770_ACEOF 11771if ac_fn_c_try_compile "$LINENO"; then : 11772 11773$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11776$as_echo "yes" >&6; } 11777else 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779$as_echo "no" >&6; } 11780 11781fi 11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 11784$as_echo_n "checking for prlimit... " >&6; } 11785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11786/* end confdefs.h. */ 11787 11788#include <sys/time.h> 11789#include <sys/resource.h> 11790 11791int 11792main () 11793{ 11794void *x=prlimit 11795 ; 11796 return 0; 11797} 11798_ACEOF 11799if ac_fn_c_try_compile "$LINENO"; then : 11800 11801$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h 11802 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11804$as_echo "yes" >&6; } 11805else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11807$as_echo "no" >&6; } 11808 11809fi 11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11811 11812# On some systems (eg. FreeBSD 5), we would find a definition of the 11813# functions ctermid_r, setgroups in the library, but no prototype 11814# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 11815# address to avoid compiler warnings and potential miscompilations 11816# because of the missing prototypes. 11817 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 11819$as_echo_n "checking for ctermid_r... " >&6; } 11820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821/* end confdefs.h. */ 11822 11823#include <stdio.h> 11824 11825int 11826main () 11827{ 11828void* p = ctermid_r 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833if ac_fn_c_try_compile "$LINENO"; then : 11834 11835$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 11836 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11838$as_echo "yes" >&6; } 11839else 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11841$as_echo "no" >&6; } 11842 11843fi 11844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11845 11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 11847$as_echo_n "checking for flock declaration... " >&6; } 11848if ${ac_cv_flock_decl+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853#include <sys/file.h> 11854int 11855main () 11856{ 11857void* p = flock 11858 11859 ; 11860 return 0; 11861} 11862_ACEOF 11863if ac_fn_c_try_compile "$LINENO"; then : 11864 ac_cv_flock_decl=yes 11865else 11866 ac_cv_flock_decl=no 11867 11868fi 11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11870 11871fi 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 11873$as_echo "$ac_cv_flock_decl" >&6; } 11874if test "x${ac_cv_flock_decl}" = xyes; then 11875 for ac_func in flock 11876do : 11877 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 11878if test "x$ac_cv_func_flock" = xyes; then : 11879 cat >>confdefs.h <<_ACEOF 11880#define HAVE_FLOCK 1 11881_ACEOF 11882 11883else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 11885$as_echo_n "checking for flock in -lbsd... " >&6; } 11886if ${ac_cv_lib_bsd_flock+:} false; then : 11887 $as_echo_n "(cached) " >&6 11888else 11889 ac_check_lib_save_LIBS=$LIBS 11890LIBS="-lbsd $LIBS" 11891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11892/* end confdefs.h. */ 11893 11894/* Override any GCC internal prototype to avoid an error. 11895 Use char because int might match the return type of a GCC 11896 builtin and then its argument prototype would still apply. */ 11897#ifdef __cplusplus 11898extern "C" 11899#endif 11900char flock (); 11901int 11902main () 11903{ 11904return flock (); 11905 ; 11906 return 0; 11907} 11908_ACEOF 11909if ac_fn_c_try_link "$LINENO"; then : 11910 ac_cv_lib_bsd_flock=yes 11911else 11912 ac_cv_lib_bsd_flock=no 11913fi 11914rm -f core conftest.err conftest.$ac_objext \ 11915 conftest$ac_exeext conftest.$ac_ext 11916LIBS=$ac_check_lib_save_LIBS 11917fi 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 11919$as_echo "$ac_cv_lib_bsd_flock" >&6; } 11920if test "x$ac_cv_lib_bsd_flock" = xyes; then : 11921 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 11922 11923 11924$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 11925 11926 11927fi 11928 11929 11930fi 11931done 11932 11933fi 11934 11935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 11936$as_echo_n "checking for getpagesize... " >&6; } 11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939 11940#include <unistd.h> 11941 11942int 11943main () 11944{ 11945void* p = getpagesize 11946 ; 11947 return 0; 11948} 11949_ACEOF 11950if ac_fn_c_try_compile "$LINENO"; then : 11951 11952$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11953 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11955$as_echo "yes" >&6; } 11956else 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11958$as_echo "no" >&6; } 11959 11960fi 11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11962 11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 11964$as_echo_n "checking for broken unsetenv... " >&6; } 11965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11966/* end confdefs.h. */ 11967 11968#include <stdlib.h> 11969 11970int 11971main () 11972{ 11973int res = unsetenv("DUMMY") 11974 ; 11975 return 0; 11976} 11977_ACEOF 11978if ac_fn_c_try_compile "$LINENO"; then : 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11980$as_echo "no" >&6; } 11981else 11982 11983$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 11984 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11986$as_echo "yes" >&6; } 11987 11988fi 11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11990 11991for ac_prog in true 11992do 11993 # Extract the first word of "$ac_prog", so it can be a program name with args. 11994set dummy $ac_prog; ac_word=$2 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11996$as_echo_n "checking for $ac_word... " >&6; } 11997if ${ac_cv_prog_TRUE+:} false; then : 11998 $as_echo_n "(cached) " >&6 11999else 12000 if test -n "$TRUE"; then 12001 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 12002else 12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12004for as_dir in $PATH 12005do 12006 IFS=$as_save_IFS 12007 test -z "$as_dir" && as_dir=. 12008 for ac_exec_ext in '' $ac_executable_extensions; do 12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12010 ac_cv_prog_TRUE="$ac_prog" 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12012 break 2 12013 fi 12014done 12015 done 12016IFS=$as_save_IFS 12017 12018fi 12019fi 12020TRUE=$ac_cv_prog_TRUE 12021if test -n "$TRUE"; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 12023$as_echo "$TRUE" >&6; } 12024else 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12026$as_echo "no" >&6; } 12027fi 12028 12029 12030 test -n "$TRUE" && break 12031done 12032test -n "$TRUE" || TRUE="/bin/true" 12033 12034 12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 12036$as_echo_n "checking for inet_aton in -lc... " >&6; } 12037if ${ac_cv_lib_c_inet_aton+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 ac_check_lib_save_LIBS=$LIBS 12041LIBS="-lc $LIBS" 12042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12043/* end confdefs.h. */ 12044 12045/* Override any GCC internal prototype to avoid an error. 12046 Use char because int might match the return type of a GCC 12047 builtin and then its argument prototype would still apply. */ 12048#ifdef __cplusplus 12049extern "C" 12050#endif 12051char inet_aton (); 12052int 12053main () 12054{ 12055return inet_aton (); 12056 ; 12057 return 0; 12058} 12059_ACEOF 12060if ac_fn_c_try_link "$LINENO"; then : 12061 ac_cv_lib_c_inet_aton=yes 12062else 12063 ac_cv_lib_c_inet_aton=no 12064fi 12065rm -f core conftest.err conftest.$ac_objext \ 12066 conftest$ac_exeext conftest.$ac_ext 12067LIBS=$ac_check_lib_save_LIBS 12068fi 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 12070$as_echo "$ac_cv_lib_c_inet_aton" >&6; } 12071if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 12072 $ac_cv_prog_TRUE 12073else 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 12075$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 12076if ${ac_cv_lib_resolv_inet_aton+:} false; then : 12077 $as_echo_n "(cached) " >&6 12078else 12079 ac_check_lib_save_LIBS=$LIBS 12080LIBS="-lresolv $LIBS" 12081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082/* end confdefs.h. */ 12083 12084/* Override any GCC internal prototype to avoid an error. 12085 Use char because int might match the return type of a GCC 12086 builtin and then its argument prototype would still apply. */ 12087#ifdef __cplusplus 12088extern "C" 12089#endif 12090char inet_aton (); 12091int 12092main () 12093{ 12094return inet_aton (); 12095 ; 12096 return 0; 12097} 12098_ACEOF 12099if ac_fn_c_try_link "$LINENO"; then : 12100 ac_cv_lib_resolv_inet_aton=yes 12101else 12102 ac_cv_lib_resolv_inet_aton=no 12103fi 12104rm -f core conftest.err conftest.$ac_objext \ 12105 conftest$ac_exeext conftest.$ac_ext 12106LIBS=$ac_check_lib_save_LIBS 12107fi 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 12109$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 12110if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 12111 cat >>confdefs.h <<_ACEOF 12112#define HAVE_LIBRESOLV 1 12113_ACEOF 12114 12115 LIBS="-lresolv $LIBS" 12116 12117fi 12118 12119 12120fi 12121 12122 12123# On Tru64, chflags seems to be present, but calling it will 12124# exit Python 12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 12126$as_echo_n "checking for chflags... " >&6; } 12127if ${ac_cv_have_chflags+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129else 12130 if test "$cross_compiling" = yes; then : 12131 ac_cv_have_chflags=cross 12132else 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136#include <sys/stat.h> 12137#include <unistd.h> 12138int main(int argc, char*argv[]) 12139{ 12140 if(chflags(argv[0], 0) != 0) 12141 return 1; 12142 return 0; 12143} 12144 12145_ACEOF 12146if ac_fn_c_try_run "$LINENO"; then : 12147 ac_cv_have_chflags=yes 12148else 12149 ac_cv_have_chflags=no 12150fi 12151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12152 conftest.$ac_objext conftest.beam conftest.$ac_ext 12153fi 12154 12155 12156fi 12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 12158$as_echo "$ac_cv_have_chflags" >&6; } 12159if test "$ac_cv_have_chflags" = cross ; then 12160 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 12161if test "x$ac_cv_func_chflags" = xyes; then : 12162 ac_cv_have_chflags="yes" 12163else 12164 ac_cv_have_chflags="no" 12165fi 12166 12167fi 12168if test "$ac_cv_have_chflags" = yes ; then 12169 12170$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 12171 12172fi 12173 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 12175$as_echo_n "checking for lchflags... " >&6; } 12176if ${ac_cv_have_lchflags+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 if test "$cross_compiling" = yes; then : 12180 ac_cv_have_lchflags=cross 12181else 12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184 12185#include <sys/stat.h> 12186#include <unistd.h> 12187int main(int argc, char*argv[]) 12188{ 12189 if(lchflags(argv[0], 0) != 0) 12190 return 1; 12191 return 0; 12192} 12193 12194_ACEOF 12195if ac_fn_c_try_run "$LINENO"; then : 12196 ac_cv_have_lchflags=yes 12197else 12198 ac_cv_have_lchflags=no 12199fi 12200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12201 conftest.$ac_objext conftest.beam conftest.$ac_ext 12202fi 12203 12204 12205fi 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 12207$as_echo "$ac_cv_have_lchflags" >&6; } 12208if test "$ac_cv_have_lchflags" = cross ; then 12209 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 12210if test "x$ac_cv_func_lchflags" = xyes; then : 12211 ac_cv_have_lchflags="yes" 12212else 12213 ac_cv_have_lchflags="no" 12214fi 12215 12216fi 12217if test "$ac_cv_have_lchflags" = yes ; then 12218 12219$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 12220 12221fi 12222 12223case $ac_sys_system/$ac_sys_release in 12224Darwin/*) 12225 _CUR_CFLAGS="${CFLAGS}" 12226 _CUR_LDFLAGS="${LDFLAGS}" 12227 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 12228 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 12229 ;; 12230esac 12231 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 12233$as_echo_n "checking for inflateCopy in -lz... " >&6; } 12234if ${ac_cv_lib_z_inflateCopy+:} false; then : 12235 $as_echo_n "(cached) " >&6 12236else 12237 ac_check_lib_save_LIBS=$LIBS 12238LIBS="-lz $LIBS" 12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12240/* end confdefs.h. */ 12241 12242/* Override any GCC internal prototype to avoid an error. 12243 Use char because int might match the return type of a GCC 12244 builtin and then its argument prototype would still apply. */ 12245#ifdef __cplusplus 12246extern "C" 12247#endif 12248char inflateCopy (); 12249int 12250main () 12251{ 12252return inflateCopy (); 12253 ; 12254 return 0; 12255} 12256_ACEOF 12257if ac_fn_c_try_link "$LINENO"; then : 12258 ac_cv_lib_z_inflateCopy=yes 12259else 12260 ac_cv_lib_z_inflateCopy=no 12261fi 12262rm -f core conftest.err conftest.$ac_objext \ 12263 conftest$ac_exeext conftest.$ac_ext 12264LIBS=$ac_check_lib_save_LIBS 12265fi 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 12267$as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 12268if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 12269 12270$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 12271 12272fi 12273 12274 12275case $ac_sys_system/$ac_sys_release in 12276Darwin/*) 12277 CFLAGS="${_CUR_CFLAGS}" 12278 LDFLAGS="${_CUR_LDFLAGS}" 12279 ;; 12280esac 12281 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 12283$as_echo_n "checking for hstrerror... " >&6; } 12284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12285/* end confdefs.h. */ 12286 12287#include <netdb.h> 12288 12289int 12290main () 12291{ 12292void* p = hstrerror; hstrerror(0) 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_link "$LINENO"; then : 12298 12299$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 12300 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12302$as_echo "yes" >&6; } 12303else 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12305$as_echo "no" >&6; } 12306 12307fi 12308rm -f core conftest.err conftest.$ac_objext \ 12309 conftest$ac_exeext conftest.$ac_ext 12310 12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 12312$as_echo_n "checking for inet_aton... " >&6; } 12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315 12316#include <sys/types.h> 12317#include <sys/socket.h> 12318#include <netinet/in.h> 12319#include <arpa/inet.h> 12320 12321int 12322main () 12323{ 12324void* p = inet_aton;inet_aton(0,0) 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_link "$LINENO"; then : 12330 12331$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 12332 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12334$as_echo "yes" >&6; } 12335else 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12337$as_echo "no" >&6; } 12338 12339fi 12340rm -f core conftest.err conftest.$ac_objext \ 12341 conftest$ac_exeext conftest.$ac_ext 12342 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 12344$as_echo_n "checking for inet_pton... " >&6; } 12345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347 12348#include <sys/types.h> 12349#include <sys/socket.h> 12350#include <netinet/in.h> 12351#include <arpa/inet.h> 12352 12353int 12354main () 12355{ 12356void* p = inet_pton 12357 ; 12358 return 0; 12359} 12360_ACEOF 12361if ac_fn_c_try_compile "$LINENO"; then : 12362 12363$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 12364 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12366$as_echo "yes" >&6; } 12367else 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369$as_echo "no" >&6; } 12370 12371fi 12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12373 12374# On some systems, setgroups is in unistd.h, on others, in grp.h 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 12376$as_echo_n "checking for setgroups... " >&6; } 12377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12378/* end confdefs.h. */ 12379 12380#include <unistd.h> 12381#ifdef HAVE_GRP_H 12382#include <grp.h> 12383#endif 12384 12385int 12386main () 12387{ 12388void* p = setgroups 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393if ac_fn_c_try_compile "$LINENO"; then : 12394 12395$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 12396 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12398$as_echo "yes" >&6; } 12399else 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12401$as_echo "no" >&6; } 12402 12403fi 12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12405 12406# check for openpty and forkpty 12407 12408for ac_func in openpty 12409do : 12410 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 12411if test "x$ac_cv_func_openpty" = xyes; then : 12412 cat >>confdefs.h <<_ACEOF 12413#define HAVE_OPENPTY 1 12414_ACEOF 12415 12416else 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 12418$as_echo_n "checking for openpty in -lutil... " >&6; } 12419if ${ac_cv_lib_util_openpty+:} false; then : 12420 $as_echo_n "(cached) " >&6 12421else 12422 ac_check_lib_save_LIBS=$LIBS 12423LIBS="-lutil $LIBS" 12424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12425/* end confdefs.h. */ 12426 12427/* Override any GCC internal prototype to avoid an error. 12428 Use char because int might match the return type of a GCC 12429 builtin and then its argument prototype would still apply. */ 12430#ifdef __cplusplus 12431extern "C" 12432#endif 12433char openpty (); 12434int 12435main () 12436{ 12437return openpty (); 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442if ac_fn_c_try_link "$LINENO"; then : 12443 ac_cv_lib_util_openpty=yes 12444else 12445 ac_cv_lib_util_openpty=no 12446fi 12447rm -f core conftest.err conftest.$ac_objext \ 12448 conftest$ac_exeext conftest.$ac_ext 12449LIBS=$ac_check_lib_save_LIBS 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 12452$as_echo "$ac_cv_lib_util_openpty" >&6; } 12453if test "x$ac_cv_lib_util_openpty" = xyes; then : 12454 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12455 LIBS="$LIBS -lutil" 12456else 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 12458$as_echo_n "checking for openpty in -lbsd... " >&6; } 12459if ${ac_cv_lib_bsd_openpty+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461else 12462 ac_check_lib_save_LIBS=$LIBS 12463LIBS="-lbsd $LIBS" 12464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466 12467/* Override any GCC internal prototype to avoid an error. 12468 Use char because int might match the return type of a GCC 12469 builtin and then its argument prototype would still apply. */ 12470#ifdef __cplusplus 12471extern "C" 12472#endif 12473char openpty (); 12474int 12475main () 12476{ 12477return openpty (); 12478 ; 12479 return 0; 12480} 12481_ACEOF 12482if ac_fn_c_try_link "$LINENO"; then : 12483 ac_cv_lib_bsd_openpty=yes 12484else 12485 ac_cv_lib_bsd_openpty=no 12486fi 12487rm -f core conftest.err conftest.$ac_objext \ 12488 conftest$ac_exeext conftest.$ac_ext 12489LIBS=$ac_check_lib_save_LIBS 12490fi 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 12492$as_echo "$ac_cv_lib_bsd_openpty" >&6; } 12493if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 12494 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12495 LIBS="$LIBS -lbsd" 12496fi 12497 12498 12499fi 12500 12501 12502fi 12503done 12504 12505for ac_func in forkpty 12506do : 12507 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 12508if test "x$ac_cv_func_forkpty" = xyes; then : 12509 cat >>confdefs.h <<_ACEOF 12510#define HAVE_FORKPTY 1 12511_ACEOF 12512 12513else 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 12515$as_echo_n "checking for forkpty in -lutil... " >&6; } 12516if ${ac_cv_lib_util_forkpty+:} false; then : 12517 $as_echo_n "(cached) " >&6 12518else 12519 ac_check_lib_save_LIBS=$LIBS 12520LIBS="-lutil $LIBS" 12521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12522/* end confdefs.h. */ 12523 12524/* Override any GCC internal prototype to avoid an error. 12525 Use char because int might match the return type of a GCC 12526 builtin and then its argument prototype would still apply. */ 12527#ifdef __cplusplus 12528extern "C" 12529#endif 12530char forkpty (); 12531int 12532main () 12533{ 12534return forkpty (); 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539if ac_fn_c_try_link "$LINENO"; then : 12540 ac_cv_lib_util_forkpty=yes 12541else 12542 ac_cv_lib_util_forkpty=no 12543fi 12544rm -f core conftest.err conftest.$ac_objext \ 12545 conftest$ac_exeext conftest.$ac_ext 12546LIBS=$ac_check_lib_save_LIBS 12547fi 12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 12549$as_echo "$ac_cv_lib_util_forkpty" >&6; } 12550if test "x$ac_cv_lib_util_forkpty" = xyes; then : 12551 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12552 LIBS="$LIBS -lutil" 12553else 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 12555$as_echo_n "checking for forkpty in -lbsd... " >&6; } 12556if ${ac_cv_lib_bsd_forkpty+:} false; then : 12557 $as_echo_n "(cached) " >&6 12558else 12559 ac_check_lib_save_LIBS=$LIBS 12560LIBS="-lbsd $LIBS" 12561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12562/* end confdefs.h. */ 12563 12564/* Override any GCC internal prototype to avoid an error. 12565 Use char because int might match the return type of a GCC 12566 builtin and then its argument prototype would still apply. */ 12567#ifdef __cplusplus 12568extern "C" 12569#endif 12570char forkpty (); 12571int 12572main () 12573{ 12574return forkpty (); 12575 ; 12576 return 0; 12577} 12578_ACEOF 12579if ac_fn_c_try_link "$LINENO"; then : 12580 ac_cv_lib_bsd_forkpty=yes 12581else 12582 ac_cv_lib_bsd_forkpty=no 12583fi 12584rm -f core conftest.err conftest.$ac_objext \ 12585 conftest$ac_exeext conftest.$ac_ext 12586LIBS=$ac_check_lib_save_LIBS 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 12589$as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 12590if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 12591 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12592 LIBS="$LIBS -lbsd" 12593fi 12594 12595 12596fi 12597 12598 12599fi 12600done 12601 12602 12603# check for long file support functions 12604for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 12605do : 12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12608if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12609 cat >>confdefs.h <<_ACEOF 12610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12611_ACEOF 12612 12613fi 12614done 12615 12616 12617ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 12618if test "x$ac_cv_func_dup2" = xyes; then : 12619 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 12620 12621else 12622 case " $LIBOBJS " in 12623 *" dup2.$ac_objext "* ) ;; 12624 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 12625 ;; 12626esac 12627 12628fi 12629 12630ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 12631if test "x$ac_cv_func_strdup" = xyes; then : 12632 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 12633 12634else 12635 case " $LIBOBJS " in 12636 *" strdup.$ac_objext "* ) ;; 12637 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 12638 ;; 12639esac 12640 12641fi 12642 12643 12644for ac_func in getpgrp 12645do : 12646 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 12647if test "x$ac_cv_func_getpgrp" = xyes; then : 12648 cat >>confdefs.h <<_ACEOF 12649#define HAVE_GETPGRP 1 12650_ACEOF 12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12652/* end confdefs.h. */ 12653#include <unistd.h> 12654int 12655main () 12656{ 12657getpgrp(0); 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_compile "$LINENO"; then : 12663 12664$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 12665 12666fi 12667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12668 12669fi 12670done 12671 12672for ac_func in setpgrp 12673do : 12674 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 12675if test "x$ac_cv_func_setpgrp" = xyes; then : 12676 cat >>confdefs.h <<_ACEOF 12677#define HAVE_SETPGRP 1 12678_ACEOF 12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12680/* end confdefs.h. */ 12681#include <unistd.h> 12682int 12683main () 12684{ 12685setpgrp(0,0); 12686 ; 12687 return 0; 12688} 12689_ACEOF 12690if ac_fn_c_try_compile "$LINENO"; then : 12691 12692$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 12693 12694fi 12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12696 12697fi 12698done 12699 12700for ac_func in gettimeofday 12701do : 12702 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 12703if test "x$ac_cv_func_gettimeofday" = xyes; then : 12704 cat >>confdefs.h <<_ACEOF 12705#define HAVE_GETTIMEOFDAY 1 12706_ACEOF 12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12708/* end confdefs.h. */ 12709#include <sys/time.h> 12710int 12711main () 12712{ 12713gettimeofday((struct timeval*)0,(struct timezone*)0); 12714 ; 12715 return 0; 12716} 12717_ACEOF 12718if ac_fn_c_try_compile "$LINENO"; then : 12719 12720else 12721 12722$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h 12723 12724 12725fi 12726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12727 12728fi 12729done 12730 12731 12732# We search for both crypt and crypt_r as one or the other may be defined 12733# This gets us our -lcrypt in LIBS when required on the target platform. 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 12735$as_echo_n "checking for library containing crypt... " >&6; } 12736if ${ac_cv_search_crypt+:} false; then : 12737 $as_echo_n "(cached) " >&6 12738else 12739 ac_func_search_save_LIBS=$LIBS 12740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12741/* end confdefs.h. */ 12742 12743/* Override any GCC internal prototype to avoid an error. 12744 Use char because int might match the return type of a GCC 12745 builtin and then its argument prototype would still apply. */ 12746#ifdef __cplusplus 12747extern "C" 12748#endif 12749char crypt (); 12750int 12751main () 12752{ 12753return crypt (); 12754 ; 12755 return 0; 12756} 12757_ACEOF 12758for ac_lib in '' crypt; do 12759 if test -z "$ac_lib"; then 12760 ac_res="none required" 12761 else 12762 ac_res=-l$ac_lib 12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12764 fi 12765 if ac_fn_c_try_link "$LINENO"; then : 12766 ac_cv_search_crypt=$ac_res 12767fi 12768rm -f core conftest.err conftest.$ac_objext \ 12769 conftest$ac_exeext 12770 if ${ac_cv_search_crypt+:} false; then : 12771 break 12772fi 12773done 12774if ${ac_cv_search_crypt+:} false; then : 12775 12776else 12777 ac_cv_search_crypt=no 12778fi 12779rm conftest.$ac_ext 12780LIBS=$ac_func_search_save_LIBS 12781fi 12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 12783$as_echo "$ac_cv_search_crypt" >&6; } 12784ac_res=$ac_cv_search_crypt 12785if test "$ac_res" != no; then : 12786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12787 12788fi 12789 12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 12791$as_echo_n "checking for library containing crypt_r... " >&6; } 12792if ${ac_cv_search_crypt_r+:} false; then : 12793 $as_echo_n "(cached) " >&6 12794else 12795 ac_func_search_save_LIBS=$LIBS 12796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799/* Override any GCC internal prototype to avoid an error. 12800 Use char because int might match the return type of a GCC 12801 builtin and then its argument prototype would still apply. */ 12802#ifdef __cplusplus 12803extern "C" 12804#endif 12805char crypt_r (); 12806int 12807main () 12808{ 12809return crypt_r (); 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814for ac_lib in '' crypt; do 12815 if test -z "$ac_lib"; then 12816 ac_res="none required" 12817 else 12818 ac_res=-l$ac_lib 12819 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12820 fi 12821 if ac_fn_c_try_link "$LINENO"; then : 12822 ac_cv_search_crypt_r=$ac_res 12823fi 12824rm -f core conftest.err conftest.$ac_objext \ 12825 conftest$ac_exeext 12826 if ${ac_cv_search_crypt_r+:} false; then : 12827 break 12828fi 12829done 12830if ${ac_cv_search_crypt_r+:} false; then : 12831 12832else 12833 ac_cv_search_crypt_r=no 12834fi 12835rm conftest.$ac_ext 12836LIBS=$ac_func_search_save_LIBS 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 12839$as_echo "$ac_cv_search_crypt_r" >&6; } 12840ac_res=$ac_cv_search_crypt_r 12841if test "$ac_res" != no; then : 12842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12843 12844fi 12845 12846 12847ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 12848if test "x$ac_cv_func_crypt_r" = xyes; then : 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851 12852#define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ 12853#include <crypt.h> 12854 12855int 12856main () 12857{ 12858 12859struct crypt_data d; 12860char *r = crypt_r("", "", &d); 12861 12862 ; 12863 return 0; 12864} 12865_ACEOF 12866if ac_fn_c_try_compile "$LINENO"; then : 12867 12868$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h 12869 12870fi 12871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12872 12873fi 12874 12875 12876for ac_func in clock_gettime 12877do : 12878 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12879if test "x$ac_cv_func_clock_gettime" = xyes; then : 12880 cat >>confdefs.h <<_ACEOF 12881#define HAVE_CLOCK_GETTIME 1 12882_ACEOF 12883 12884else 12885 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 12887$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 12888if ${ac_cv_lib_rt_clock_gettime+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 ac_check_lib_save_LIBS=$LIBS 12892LIBS="-lrt $LIBS" 12893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894/* end confdefs.h. */ 12895 12896/* Override any GCC internal prototype to avoid an error. 12897 Use char because int might match the return type of a GCC 12898 builtin and then its argument prototype would still apply. */ 12899#ifdef __cplusplus 12900extern "C" 12901#endif 12902char clock_gettime (); 12903int 12904main () 12905{ 12906return clock_gettime (); 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911if ac_fn_c_try_link "$LINENO"; then : 12912 ac_cv_lib_rt_clock_gettime=yes 12913else 12914 ac_cv_lib_rt_clock_gettime=no 12915fi 12916rm -f core conftest.err conftest.$ac_objext \ 12917 conftest$ac_exeext conftest.$ac_ext 12918LIBS=$ac_check_lib_save_LIBS 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 12921$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 12922if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 12923 12924 LIBS="$LIBS -lrt" 12925 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 12926 12927 12928$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h 12929 12930 12931fi 12932 12933 12934fi 12935done 12936 12937 12938for ac_func in clock_getres 12939do : 12940 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 12941if test "x$ac_cv_func_clock_getres" = xyes; then : 12942 cat >>confdefs.h <<_ACEOF 12943#define HAVE_CLOCK_GETRES 1 12944_ACEOF 12945 12946else 12947 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 12949$as_echo_n "checking for clock_getres in -lrt... " >&6; } 12950if ${ac_cv_lib_rt_clock_getres+:} false; then : 12951 $as_echo_n "(cached) " >&6 12952else 12953 ac_check_lib_save_LIBS=$LIBS 12954LIBS="-lrt $LIBS" 12955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957 12958/* Override any GCC internal prototype to avoid an error. 12959 Use char because int might match the return type of a GCC 12960 builtin and then its argument prototype would still apply. */ 12961#ifdef __cplusplus 12962extern "C" 12963#endif 12964char clock_getres (); 12965int 12966main () 12967{ 12968return clock_getres (); 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO"; then : 12974 ac_cv_lib_rt_clock_getres=yes 12975else 12976 ac_cv_lib_rt_clock_getres=no 12977fi 12978rm -f core conftest.err conftest.$ac_objext \ 12979 conftest$ac_exeext conftest.$ac_ext 12980LIBS=$ac_check_lib_save_LIBS 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 12983$as_echo "$ac_cv_lib_rt_clock_getres" >&6; } 12984if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : 12985 12986 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 12987 12988 12989fi 12990 12991 12992fi 12993done 12994 12995 12996for ac_func in clock_settime 12997do : 12998 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 12999if test "x$ac_cv_func_clock_settime" = xyes; then : 13000 cat >>confdefs.h <<_ACEOF 13001#define HAVE_CLOCK_SETTIME 1 13002_ACEOF 13003 13004else 13005 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 13007$as_echo_n "checking for clock_settime in -lrt... " >&6; } 13008if ${ac_cv_lib_rt_clock_settime+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 ac_check_lib_save_LIBS=$LIBS 13012LIBS="-lrt $LIBS" 13013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13014/* end confdefs.h. */ 13015 13016/* Override any GCC internal prototype to avoid an error. 13017 Use char because int might match the return type of a GCC 13018 builtin and then its argument prototype would still apply. */ 13019#ifdef __cplusplus 13020extern "C" 13021#endif 13022char clock_settime (); 13023int 13024main () 13025{ 13026return clock_settime (); 13027 ; 13028 return 0; 13029} 13030_ACEOF 13031if ac_fn_c_try_link "$LINENO"; then : 13032 ac_cv_lib_rt_clock_settime=yes 13033else 13034 ac_cv_lib_rt_clock_settime=no 13035fi 13036rm -f core conftest.err conftest.$ac_objext \ 13037 conftest$ac_exeext conftest.$ac_ext 13038LIBS=$ac_check_lib_save_LIBS 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 13041$as_echo "$ac_cv_lib_rt_clock_settime" >&6; } 13042if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : 13043 13044 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 13045 13046 13047fi 13048 13049 13050fi 13051done 13052 13053 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 13055$as_echo_n "checking for major... " >&6; } 13056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058 13059#if defined(MAJOR_IN_MKDEV) 13060#include <sys/mkdev.h> 13061#elif defined(MAJOR_IN_SYSMACROS) 13062#include <sys/sysmacros.h> 13063#else 13064#include <sys/types.h> 13065#endif 13066 13067int 13068main () 13069{ 13070 13071 makedev(major(0),minor(0)); 13072 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077if ac_fn_c_try_link "$LINENO"; then : 13078 13079 13080$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 13081 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13083$as_echo "yes" >&6; } 13084 13085else 13086 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13088$as_echo "no" >&6; } 13089 13090fi 13091rm -f core conftest.err conftest.$ac_objext \ 13092 conftest$ac_exeext conftest.$ac_ext 13093 13094# On OSF/1 V5.1, getaddrinfo is available, but a define 13095# for [no]getaddrinfo in netdb.h. 13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 13097$as_echo_n "checking for getaddrinfo... " >&6; } 13098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13099/* end confdefs.h. */ 13100 13101#include <sys/types.h> 13102#include <sys/socket.h> 13103#include <netdb.h> 13104#include <stdio.h> 13105 13106int 13107main () 13108{ 13109getaddrinfo(NULL, NULL, NULL, NULL); 13110 ; 13111 return 0; 13112} 13113_ACEOF 13114if ac_fn_c_try_link "$LINENO"; then : 13115 have_getaddrinfo=yes 13116else 13117 have_getaddrinfo=no 13118fi 13119rm -f core conftest.err conftest.$ac_objext \ 13120 conftest$ac_exeext conftest.$ac_ext 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 13122$as_echo "$have_getaddrinfo" >&6; } 13123if test $have_getaddrinfo = yes 13124then 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 13126$as_echo_n "checking getaddrinfo bug... " >&6; } 13127 if ${ac_cv_buggy_getaddrinfo+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129else 13130 if test "$cross_compiling" = yes; then : 13131 13132if test "${enable_ipv6+set}" = set; then 13133 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 13134else 13135 ac_cv_buggy_getaddrinfo=yes 13136fi 13137else 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139/* end confdefs.h. */ 13140 13141#include <stdio.h> 13142#include <sys/types.h> 13143#include <netdb.h> 13144#include <string.h> 13145#include <sys/socket.h> 13146#include <netinet/in.h> 13147 13148int main() 13149{ 13150 int passive, gaierr, inet4 = 0, inet6 = 0; 13151 struct addrinfo hints, *ai, *aitop; 13152 char straddr[INET6_ADDRSTRLEN], strport[16]; 13153 13154 for (passive = 0; passive <= 1; passive++) { 13155 memset(&hints, 0, sizeof(hints)); 13156 hints.ai_family = AF_UNSPEC; 13157 hints.ai_flags = passive ? AI_PASSIVE : 0; 13158 hints.ai_socktype = SOCK_STREAM; 13159 hints.ai_protocol = IPPROTO_TCP; 13160 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 13161 (void)gai_strerror(gaierr); 13162 goto bad; 13163 } 13164 for (ai = aitop; ai; ai = ai->ai_next) { 13165 if (ai->ai_addr == NULL || 13166 ai->ai_addrlen == 0 || 13167 getnameinfo(ai->ai_addr, ai->ai_addrlen, 13168 straddr, sizeof(straddr), strport, sizeof(strport), 13169 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 13170 goto bad; 13171 } 13172 switch (ai->ai_family) { 13173 case AF_INET: 13174 if (strcmp(strport, "54321") != 0) { 13175 goto bad; 13176 } 13177 if (passive) { 13178 if (strcmp(straddr, "0.0.0.0") != 0) { 13179 goto bad; 13180 } 13181 } else { 13182 if (strcmp(straddr, "127.0.0.1") != 0) { 13183 goto bad; 13184 } 13185 } 13186 inet4++; 13187 break; 13188 case AF_INET6: 13189 if (strcmp(strport, "54321") != 0) { 13190 goto bad; 13191 } 13192 if (passive) { 13193 if (strcmp(straddr, "::") != 0) { 13194 goto bad; 13195 } 13196 } else { 13197 if (strcmp(straddr, "::1") != 0) { 13198 goto bad; 13199 } 13200 } 13201 inet6++; 13202 break; 13203 case AF_UNSPEC: 13204 goto bad; 13205 break; 13206 default: 13207 /* another family support? */ 13208 break; 13209 } 13210 } 13211 freeaddrinfo(aitop); 13212 aitop = NULL; 13213 } 13214 13215 if (!(inet4 == 0 || inet4 == 2)) 13216 goto bad; 13217 if (!(inet6 == 0 || inet6 == 2)) 13218 goto bad; 13219 13220 if (aitop) 13221 freeaddrinfo(aitop); 13222 return 0; 13223 13224 bad: 13225 if (aitop) 13226 freeaddrinfo(aitop); 13227 return 1; 13228} 13229 13230_ACEOF 13231if ac_fn_c_try_run "$LINENO"; then : 13232 ac_cv_buggy_getaddrinfo=no 13233else 13234 ac_cv_buggy_getaddrinfo=yes 13235fi 13236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13237 conftest.$ac_objext conftest.beam conftest.$ac_ext 13238fi 13239 13240fi 13241 13242fi 13243 13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 13245$as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 13246 13247if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes 13248then 13249 if test $ipv6 = yes 13250 then 13251 echo 'Fatal: You must get working getaddrinfo() function.' 13252 echo ' or you can specify "--disable-ipv6"'. 13253 exit 1 13254 fi 13255else 13256 13257$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 13258 13259fi 13260 13261for ac_func in getnameinfo 13262do : 13263 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 13264if test "x$ac_cv_func_getnameinfo" = xyes; then : 13265 cat >>confdefs.h <<_ACEOF 13266#define HAVE_GETNAMEINFO 1 13267_ACEOF 13268 13269fi 13270done 13271 13272 13273# checks for structures 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13275$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13276if ${ac_cv_header_time+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13280/* end confdefs.h. */ 13281#include <sys/types.h> 13282#include <sys/time.h> 13283#include <time.h> 13284 13285int 13286main () 13287{ 13288if ((struct tm *) 0) 13289return 0; 13290 ; 13291 return 0; 13292} 13293_ACEOF 13294if ac_fn_c_try_compile "$LINENO"; then : 13295 ac_cv_header_time=yes 13296else 13297 ac_cv_header_time=no 13298fi 13299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13300fi 13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13302$as_echo "$ac_cv_header_time" >&6; } 13303if test $ac_cv_header_time = yes; then 13304 13305$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13306 13307fi 13308 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13310$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13311if ${ac_cv_struct_tm+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316#include <sys/types.h> 13317#include <time.h> 13318 13319int 13320main () 13321{ 13322struct tm tm; 13323 int *p = &tm.tm_sec; 13324 return !p; 13325 ; 13326 return 0; 13327} 13328_ACEOF 13329if ac_fn_c_try_compile "$LINENO"; then : 13330 ac_cv_struct_tm=time.h 13331else 13332 ac_cv_struct_tm=sys/time.h 13333fi 13334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13335fi 13336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13337$as_echo "$ac_cv_struct_tm" >&6; } 13338if test $ac_cv_struct_tm = sys/time.h; then 13339 13340$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13341 13342fi 13343 13344ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13345#include <$ac_cv_struct_tm> 13346 13347" 13348if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13349 13350cat >>confdefs.h <<_ACEOF 13351#define HAVE_STRUCT_TM_TM_ZONE 1 13352_ACEOF 13353 13354 13355fi 13356 13357if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13358 13359$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13360 13361else 13362 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13363" 13364if test "x$ac_cv_have_decl_tzname" = xyes; then : 13365 ac_have_decl=1 13366else 13367 ac_have_decl=0 13368fi 13369 13370cat >>confdefs.h <<_ACEOF 13371#define HAVE_DECL_TZNAME $ac_have_decl 13372_ACEOF 13373 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13375$as_echo_n "checking for tzname... " >&6; } 13376if ${ac_cv_var_tzname+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378else 13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381#include <time.h> 13382#if !HAVE_DECL_TZNAME 13383extern char *tzname[]; 13384#endif 13385 13386int 13387main () 13388{ 13389return tzname[0][0]; 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_c_try_link "$LINENO"; then : 13395 ac_cv_var_tzname=yes 13396else 13397 ac_cv_var_tzname=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext \ 13400 conftest$ac_exeext conftest.$ac_ext 13401fi 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13403$as_echo "$ac_cv_var_tzname" >&6; } 13404 if test $ac_cv_var_tzname = yes; then 13405 13406$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13407 13408 fi 13409fi 13410 13411ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13412if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 13413 13414cat >>confdefs.h <<_ACEOF 13415#define HAVE_STRUCT_STAT_ST_RDEV 1 13416_ACEOF 13417 13418 13419fi 13420 13421ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 13422if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 13423 13424cat >>confdefs.h <<_ACEOF 13425#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13426_ACEOF 13427 13428 13429fi 13430 13431ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 13432if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 13433 13434cat >>confdefs.h <<_ACEOF 13435#define HAVE_STRUCT_STAT_ST_FLAGS 1 13436_ACEOF 13437 13438 13439fi 13440 13441ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 13442if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 13443 13444cat >>confdefs.h <<_ACEOF 13445#define HAVE_STRUCT_STAT_ST_GEN 1 13446_ACEOF 13447 13448 13449fi 13450 13451ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 13452if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 13453 13454cat >>confdefs.h <<_ACEOF 13455#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 13456_ACEOF 13457 13458 13459fi 13460 13461ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 13462if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 13463 13464cat >>confdefs.h <<_ACEOF 13465#define HAVE_STRUCT_STAT_ST_BLOCKS 1 13466_ACEOF 13467 13468 13469fi 13470 13471ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 13472 #include <sys/types.h> 13473 #include <pwd.h> 13474 13475" 13476if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 13477 13478cat >>confdefs.h <<_ACEOF 13479#define HAVE_STRUCT_PASSWD_PW_GECOS 1 13480_ACEOF 13481 13482 13483fi 13484ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 13485 #include <sys/types.h> 13486 #include <pwd.h> 13487 13488" 13489if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : 13490 13491cat >>confdefs.h <<_ACEOF 13492#define HAVE_STRUCT_PASSWD_PW_PASSWD 1 13493_ACEOF 13494 13495 13496fi 13497 13498# Issue #21085: In Cygwin, siginfo_t does not have si_band field. 13499ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 13500" 13501if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : 13502 13503cat >>confdefs.h <<_ACEOF 13504#define HAVE_SIGINFO_T_SI_BAND 1 13505_ACEOF 13506 13507 13508fi 13509 13510 13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 13512$as_echo_n "checking for time.h that defines altzone... " >&6; } 13513if ${ac_cv_header_time_altzone+:} false; then : 13514 $as_echo_n "(cached) " >&6 13515else 13516 13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519#include <time.h> 13520int 13521main () 13522{ 13523return altzone; 13524 ; 13525 return 0; 13526} 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO"; then : 13529 ac_cv_header_time_altzone=yes 13530else 13531 ac_cv_header_time_altzone=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13534 13535fi 13536 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 13538$as_echo "$ac_cv_header_time_altzone" >&6; } 13539if test $ac_cv_header_time_altzone = yes; then 13540 13541$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 13542 13543fi 13544 13545was_it_defined=no 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 13547$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 13548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13549/* end confdefs.h. */ 13550 13551#include <sys/types.h> 13552#include <sys/select.h> 13553#include <sys/time.h> 13554 13555int 13556main () 13557{ 13558; 13559 ; 13560 return 0; 13561} 13562_ACEOF 13563if ac_fn_c_try_compile "$LINENO"; then : 13564 13565 13566$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 13567 13568 was_it_defined=yes 13569 13570fi 13571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 13573$as_echo "$was_it_defined" >&6; } 13574 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 13576$as_echo_n "checking for addrinfo... " >&6; } 13577if ${ac_cv_struct_addrinfo+:} false; then : 13578 $as_echo_n "(cached) " >&6 13579else 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582#include <netdb.h> 13583int 13584main () 13585{ 13586struct addrinfo a 13587 ; 13588 return 0; 13589} 13590_ACEOF 13591if ac_fn_c_try_compile "$LINENO"; then : 13592 ac_cv_struct_addrinfo=yes 13593else 13594 ac_cv_struct_addrinfo=no 13595fi 13596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13597fi 13598 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 13600$as_echo "$ac_cv_struct_addrinfo" >&6; } 13601if test $ac_cv_struct_addrinfo = yes; then 13602 13603$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 13604 13605fi 13606 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 13608$as_echo_n "checking for sockaddr_storage... " >&6; } 13609if ${ac_cv_struct_sockaddr_storage+:} false; then : 13610 $as_echo_n "(cached) " >&6 13611else 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613/* end confdefs.h. */ 13614 13615# include <sys/types.h> 13616# include <sys/socket.h> 13617int 13618main () 13619{ 13620struct sockaddr_storage s 13621 ; 13622 return 0; 13623} 13624_ACEOF 13625if ac_fn_c_try_compile "$LINENO"; then : 13626 ac_cv_struct_sockaddr_storage=yes 13627else 13628 ac_cv_struct_sockaddr_storage=no 13629fi 13630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13631fi 13632 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 13634$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 13635if test $ac_cv_struct_sockaddr_storage = yes; then 13636 13637$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 13638 13639fi 13640 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 13642$as_echo_n "checking for sockaddr_alg... " >&6; } 13643if ${ac_cv_struct_sockaddr_alg+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648 13649# include <sys/types.h> 13650# include <sys/socket.h> 13651# include <linux/if_alg.h> 13652int 13653main () 13654{ 13655struct sockaddr_alg s 13656 ; 13657 return 0; 13658} 13659_ACEOF 13660if ac_fn_c_try_compile "$LINENO"; then : 13661 ac_cv_struct_sockaddr_alg=yes 13662else 13663 ac_cv_struct_sockaddr_alg=no 13664fi 13665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13666fi 13667 13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 13669$as_echo "$ac_cv_struct_sockaddr_alg" >&6; } 13670if test $ac_cv_struct_sockaddr_alg = yes; then 13671 13672$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 13673 13674fi 13675 13676# checks for compiler characteristics 13677 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 13679$as_echo_n "checking whether char is unsigned... " >&6; } 13680if ${ac_cv_c_char_unsigned+:} false; then : 13681 $as_echo_n "(cached) " >&6 13682else 13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13684/* end confdefs.h. */ 13685$ac_includes_default 13686int 13687main () 13688{ 13689static int test_array [1 - 2 * !(((char) -1) < 0)]; 13690test_array [0] = 0; 13691return test_array [0]; 13692 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697if ac_fn_c_try_compile "$LINENO"; then : 13698 ac_cv_c_char_unsigned=no 13699else 13700 ac_cv_c_char_unsigned=yes 13701fi 13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13703fi 13704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 13705$as_echo "$ac_cv_c_char_unsigned" >&6; } 13706if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 13707 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 13708 13709fi 13710 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13712$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13713if ${ac_cv_c_const+:} false; then : 13714 $as_echo_n "(cached) " >&6 13715else 13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13717/* end confdefs.h. */ 13718 13719int 13720main () 13721{ 13722 13723#ifndef __cplusplus 13724 /* Ultrix mips cc rejects this sort of thing. */ 13725 typedef int charset[2]; 13726 const charset cs = { 0, 0 }; 13727 /* SunOS 4.1.1 cc rejects this. */ 13728 char const *const *pcpcc; 13729 char **ppc; 13730 /* NEC SVR4.0.2 mips cc rejects this. */ 13731 struct point {int x, y;}; 13732 static struct point const zero = {0,0}; 13733 /* AIX XL C 1.02.0.0 rejects this. 13734 It does not let you subtract one const X* pointer from another in 13735 an arm of an if-expression whose if-part is not a constant 13736 expression */ 13737 const char *g = "string"; 13738 pcpcc = &g + (g ? g-g : 0); 13739 /* HPUX 7.0 cc rejects these. */ 13740 ++pcpcc; 13741 ppc = (char**) pcpcc; 13742 pcpcc = (char const *const *) ppc; 13743 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13744 char tx; 13745 char *t = &tx; 13746 char const *s = 0 ? (char *) 0 : (char const *) 0; 13747 13748 *t++ = 0; 13749 if (s) return 0; 13750 } 13751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13752 int x[] = {25, 17}; 13753 const int *foo = &x[0]; 13754 ++foo; 13755 } 13756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13757 typedef const int *iptr; 13758 iptr p = 0; 13759 ++p; 13760 } 13761 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13763 struct s { int j; const int *ap[3]; } bx; 13764 struct s *b = &bx; b->j = 5; 13765 } 13766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13767 const int foo = 10; 13768 if (!foo) return 0; 13769 } 13770 return !cs[0] && !zero.x; 13771#endif 13772 13773 ; 13774 return 0; 13775} 13776_ACEOF 13777if ac_fn_c_try_compile "$LINENO"; then : 13778 ac_cv_c_const=yes 13779else 13780 ac_cv_c_const=no 13781fi 13782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13783fi 13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13785$as_echo "$ac_cv_c_const" >&6; } 13786if test $ac_cv_c_const = no; then 13787 13788$as_echo "#define const /**/" >>confdefs.h 13789 13790fi 13791 13792 13793works=no 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 13795$as_echo_n "checking for working signed char... " >&6; } 13796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13797/* end confdefs.h. */ 13798 13799int 13800main () 13801{ 13802signed char c; 13803 ; 13804 return 0; 13805} 13806_ACEOF 13807if ac_fn_c_try_compile "$LINENO"; then : 13808 works=yes 13809else 13810 13811$as_echo "#define signed /**/" >>confdefs.h 13812 13813 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13817$as_echo "$works" >&6; } 13818 13819have_prototypes=no 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 13821$as_echo_n "checking for prototypes... " >&6; } 13822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13823/* end confdefs.h. */ 13824int foo(int x) { return 0; } 13825int 13826main () 13827{ 13828return foo(10); 13829 ; 13830 return 0; 13831} 13832_ACEOF 13833if ac_fn_c_try_compile "$LINENO"; then : 13834 13835$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 13836 13837 have_prototypes=yes 13838fi 13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 13841$as_echo "$have_prototypes" >&6; } 13842 13843works=no 13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 13845$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 13846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847/* end confdefs.h. */ 13848 13849#include <stdarg.h> 13850int foo(int x, ...) { 13851 va_list va; 13852 va_start(va, x); 13853 va_arg(va, int); 13854 va_arg(va, char *); 13855 va_arg(va, double); 13856 return 0; 13857} 13858 13859int 13860main () 13861{ 13862return foo(10, "", 3.14); 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867if ac_fn_c_try_compile "$LINENO"; then : 13868 13869 13870$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 13871 13872 works=yes 13873 13874fi 13875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13877$as_echo "$works" >&6; } 13878 13879# check for socketpair 13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 13881$as_echo_n "checking for socketpair... " >&6; } 13882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884 13885#include <sys/types.h> 13886#include <sys/socket.h> 13887 13888int 13889main () 13890{ 13891void *x=socketpair 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896if ac_fn_c_try_compile "$LINENO"; then : 13897 13898$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 13899 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13901$as_echo "yes" >&6; } 13902else 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13904$as_echo "no" >&6; } 13905 13906fi 13907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13908 13909# check if sockaddr has sa_len member 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 13911$as_echo_n "checking if sockaddr has sa_len member... " >&6; } 13912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913/* end confdefs.h. */ 13914#include <sys/types.h> 13915#include <sys/socket.h> 13916int 13917main () 13918{ 13919struct sockaddr x; 13920x.sa_len = 0; 13921 ; 13922 return 0; 13923} 13924_ACEOF 13925if ac_fn_c_try_compile "$LINENO"; then : 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13927$as_echo "yes" >&6; } 13928 13929$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 13930 13931else 13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13933$as_echo "no" >&6; } 13934 13935fi 13936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13937 13938# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 13939 13940 13941ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 13942if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 13943 13944 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13945 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 13947$as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 13948 OLD_CFLAGS=$CFLAGS 13949 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13951/* end confdefs.h. */ 13952 13953# include <netdb.h> 13954 13955int 13956main () 13957{ 13958 13959 char *name; 13960 struct hostent *he, *res; 13961 char buffer[2048]; 13962 int buflen = 2048; 13963 int h_errnop; 13964 13965 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 13966 13967 ; 13968 return 0; 13969} 13970_ACEOF 13971if ac_fn_c_try_compile "$LINENO"; then : 13972 13973 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13974 13975 13976$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 13977 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13979$as_echo "yes" >&6; } 13980 13981else 13982 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13984$as_echo "no" >&6; } 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 13986$as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989 13990# include <netdb.h> 13991 13992int 13993main () 13994{ 13995 13996 char *name; 13997 struct hostent *he; 13998 char buffer[2048]; 13999 int buflen = 2048; 14000 int h_errnop; 14001 14002 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 14003 14004 ; 14005 return 0; 14006} 14007_ACEOF 14008if ac_fn_c_try_compile "$LINENO"; then : 14009 14010 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14011 14012 14013$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 14014 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14016$as_echo "yes" >&6; } 14017 14018else 14019 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14021$as_echo "no" >&6; } 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 14023$as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14025/* end confdefs.h. */ 14026 14027# include <netdb.h> 14028 14029int 14030main () 14031{ 14032 14033 char *name; 14034 struct hostent *he; 14035 struct hostent_data data; 14036 14037 (void) gethostbyname_r(name, he, &data); 14038 14039 ; 14040 return 0; 14041} 14042_ACEOF 14043if ac_fn_c_try_compile "$LINENO"; then : 14044 14045 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14046 14047 14048$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 14049 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14051$as_echo "yes" >&6; } 14052 14053else 14054 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14056$as_echo "no" >&6; } 14057 14058fi 14059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14060 14061fi 14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14063 14064fi 14065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14066 CFLAGS=$OLD_CFLAGS 14067 14068else 14069 14070 for ac_func in gethostbyname 14071do : 14072 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14073if test "x$ac_cv_func_gethostbyname" = xyes; then : 14074 cat >>confdefs.h <<_ACEOF 14075#define HAVE_GETHOSTBYNAME 1 14076_ACEOF 14077 14078fi 14079done 14080 14081 14082fi 14083 14084 14085 14086 14087 14088 14089 14090# checks for system services 14091# (none yet) 14092 14093# Linux requires this for correct f.p. operations 14094ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 14095if test "x$ac_cv_func___fpu_control" = xyes; then : 14096 14097else 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 14099$as_echo_n "checking for __fpu_control in -lieee... " >&6; } 14100if ${ac_cv_lib_ieee___fpu_control+:} false; then : 14101 $as_echo_n "(cached) " >&6 14102else 14103 ac_check_lib_save_LIBS=$LIBS 14104LIBS="-lieee $LIBS" 14105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107 14108/* Override any GCC internal prototype to avoid an error. 14109 Use char because int might match the return type of a GCC 14110 builtin and then its argument prototype would still apply. */ 14111#ifdef __cplusplus 14112extern "C" 14113#endif 14114char __fpu_control (); 14115int 14116main () 14117{ 14118return __fpu_control (); 14119 ; 14120 return 0; 14121} 14122_ACEOF 14123if ac_fn_c_try_link "$LINENO"; then : 14124 ac_cv_lib_ieee___fpu_control=yes 14125else 14126 ac_cv_lib_ieee___fpu_control=no 14127fi 14128rm -f core conftest.err conftest.$ac_objext \ 14129 conftest$ac_exeext conftest.$ac_ext 14130LIBS=$ac_check_lib_save_LIBS 14131fi 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 14133$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 14134if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 14135 cat >>confdefs.h <<_ACEOF 14136#define HAVE_LIBIEEE 1 14137_ACEOF 14138 14139 LIBS="-lieee $LIBS" 14140 14141fi 14142 14143 14144fi 14145 14146 14147# check for --with-libm=... 14148 14149case $ac_sys_system in 14150Darwin) ;; 14151*) LIBM=-lm 14152esac 14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 14154$as_echo_n "checking for --with-libm=STRING... " >&6; } 14155 14156# Check whether --with-libm was given. 14157if test "${with_libm+set}" = set; then : 14158 withval=$with_libm; 14159if test "$withval" = no 14160then LIBM= 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 14162$as_echo "force LIBM empty" >&6; } 14163elif test "$withval" != yes 14164then LIBM=$withval 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 14166$as_echo "set LIBM=\"$withval\"" >&6; } 14167else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 14168fi 14169else 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 14171$as_echo "default LIBM=\"$LIBM\"" >&6; } 14172fi 14173 14174 14175# check for --with-libc=... 14176 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 14178$as_echo_n "checking for --with-libc=STRING... " >&6; } 14179 14180# Check whether --with-libc was given. 14181if test "${with_libc+set}" = set; then : 14182 withval=$with_libc; 14183if test "$withval" = no 14184then LIBC= 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 14186$as_echo "force LIBC empty" >&6; } 14187elif test "$withval" != yes 14188then LIBC=$withval 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 14190$as_echo "set LIBC=\"$withval\"" >&6; } 14191else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 14192fi 14193else 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 14195$as_echo "default LIBC=\"$LIBC\"" >&6; } 14196fi 14197 14198 14199# ************************************** 14200# * Check for gcc x64 inline assembler * 14201# ************************************** 14202 14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 14204$as_echo_n "checking for x64 gcc inline assembler... " >&6; } 14205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14206/* end confdefs.h. */ 14207 14208int 14209main () 14210{ 14211 14212 __asm__ __volatile__ ("movq %rcx, %rax"); 14213 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO"; then : 14219 have_gcc_asm_for_x64=yes 14220else 14221 have_gcc_asm_for_x64=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext \ 14224 conftest$ac_exeext conftest.$ac_ext 14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 14226$as_echo "$have_gcc_asm_for_x64" >&6; } 14227if test "$have_gcc_asm_for_x64" = yes 14228then 14229 14230$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 14231 14232fi 14233 14234# ************************************************** 14235# * Check for various properties of floating point * 14236# ************************************************** 14237 14238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 14239$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 14240if ${ac_cv_little_endian_double+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 14244if test "$cross_compiling" = yes; then : 14245 ac_cv_little_endian_double=no 14246else 14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14248/* end confdefs.h. */ 14249 14250#include <string.h> 14251int main() { 14252 double x = 9006104071832581.0; 14253 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) 14254 return 0; 14255 else 14256 return 1; 14257} 14258 14259_ACEOF 14260if ac_fn_c_try_run "$LINENO"; then : 14261 ac_cv_little_endian_double=yes 14262else 14263 ac_cv_little_endian_double=no 14264fi 14265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14266 conftest.$ac_objext conftest.beam conftest.$ac_ext 14267fi 14268 14269fi 14270 14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 14272$as_echo "$ac_cv_little_endian_double" >&6; } 14273if test "$ac_cv_little_endian_double" = yes 14274then 14275 14276$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 14277 14278fi 14279 14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 14281$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } 14282if ${ac_cv_big_endian_double+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 14286if test "$cross_compiling" = yes; then : 14287 ac_cv_big_endian_double=no 14288else 14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14290/* end confdefs.h. */ 14291 14292#include <string.h> 14293int main() { 14294 double x = 9006104071832581.0; 14295 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) 14296 return 0; 14297 else 14298 return 1; 14299} 14300 14301_ACEOF 14302if ac_fn_c_try_run "$LINENO"; then : 14303 ac_cv_big_endian_double=yes 14304else 14305 ac_cv_big_endian_double=no 14306fi 14307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14308 conftest.$ac_objext conftest.beam conftest.$ac_ext 14309fi 14310 14311fi 14312 14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 14314$as_echo "$ac_cv_big_endian_double" >&6; } 14315if test "$ac_cv_big_endian_double" = yes 14316then 14317 14318$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 14319 14320fi 14321 14322# Some ARM platforms use a mixed-endian representation for doubles. 14323# While Python doesn't currently have full support for these platforms 14324# (see e.g., issue 1762561), we can at least make sure that float <-> string 14325# conversions work. 14326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 14327$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } 14328if ${ac_cv_mixed_endian_double+:} false; then : 14329 $as_echo_n "(cached) " >&6 14330else 14331 14332if test "$cross_compiling" = yes; then : 14333 ac_cv_mixed_endian_double=no 14334else 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336/* end confdefs.h. */ 14337 14338#include <string.h> 14339int main() { 14340 double x = 9006104071832581.0; 14341 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) 14342 return 0; 14343 else 14344 return 1; 14345} 14346 14347_ACEOF 14348if ac_fn_c_try_run "$LINENO"; then : 14349 ac_cv_mixed_endian_double=yes 14350else 14351 ac_cv_mixed_endian_double=no 14352fi 14353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14354 conftest.$ac_objext conftest.beam conftest.$ac_ext 14355fi 14356 14357fi 14358 14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 14360$as_echo "$ac_cv_mixed_endian_double" >&6; } 14361if test "$ac_cv_mixed_endian_double" = yes 14362then 14363 14364$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 14365 14366fi 14367 14368# The short float repr introduced in Python 3.1 requires the 14369# correctly-rounded string <-> double conversion functions from 14370# Python/dtoa.c, which in turn require that the FPU uses 53-bit 14371# rounding; this is a problem on x86, where the x87 FPU has a default 14372# rounding precision of 64 bits. For gcc/x86, we can fix this by 14373# using inline assembler to get and set the x87 FPU control word. 14374 14375# This inline assembler syntax may also work for suncc and icc, 14376# so we try it on all platforms. 14377 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 14379$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 14380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382 14383int 14384main () 14385{ 14386 14387 unsigned short cw; 14388 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 14389 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 14390 14391 ; 14392 return 0; 14393} 14394_ACEOF 14395if ac_fn_c_try_link "$LINENO"; then : 14396 have_gcc_asm_for_x87=yes 14397else 14398 have_gcc_asm_for_x87=no 14399fi 14400rm -f core conftest.err conftest.$ac_objext \ 14401 conftest$ac_exeext conftest.$ac_ext 14402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 14403$as_echo "$have_gcc_asm_for_x87" >&6; } 14404if test "$have_gcc_asm_for_x87" = yes 14405then 14406 14407$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 14408 14409fi 14410 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 14412$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 14413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14414/* end confdefs.h. */ 14415 14416int 14417main () 14418{ 14419 14420 unsigned int fpcr; 14421 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 14422 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 14423 14424 ; 14425 return 0; 14426} 14427_ACEOF 14428if ac_fn_c_try_link "$LINENO"; then : 14429 have_gcc_asm_for_mc68881=yes 14430else 14431 have_gcc_asm_for_mc68881=no 14432fi 14433rm -f core conftest.err conftest.$ac_objext \ 14434 conftest$ac_exeext conftest.$ac_ext 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 14436$as_echo "$have_gcc_asm_for_mc68881" >&6; } 14437if test "$have_gcc_asm_for_mc68881" = yes 14438then 14439 14440$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 14441 14442fi 14443 14444# Detect whether system arithmetic is subject to x87-style double 14445# rounding issues. The result of this test has little meaning on non 14446# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 14447# mode is round-to-nearest and double rounding issues are present, and 14448# 0 otherwise. See http://bugs.python.org/issue2937 for more info. 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 14450$as_echo_n "checking for x87-style double rounding... " >&6; } 14451# $BASECFLAGS may affect the result 14452ac_save_cc="$CC" 14453CC="$CC $BASECFLAGS" 14454if test "$cross_compiling" = yes; then : 14455 ac_cv_x87_double_rounding=no 14456else 14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14458/* end confdefs.h. */ 14459 14460#include <stdlib.h> 14461#include <math.h> 14462int main() { 14463 volatile double x, y, z; 14464 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 14465 x = 0.99999999999999989; /* 1-2**-53 */ 14466 y = 1./x; 14467 if (y != 1.) 14468 exit(0); 14469 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 14470 x = 1e16; 14471 y = 2.99999; 14472 z = x + y; 14473 if (z != 1e16+4.) 14474 exit(0); 14475 /* both tests show evidence of double rounding */ 14476 exit(1); 14477} 14478 14479_ACEOF 14480if ac_fn_c_try_run "$LINENO"; then : 14481 ac_cv_x87_double_rounding=no 14482else 14483 ac_cv_x87_double_rounding=yes 14484fi 14485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14486 conftest.$ac_objext conftest.beam conftest.$ac_ext 14487fi 14488 14489CC="$ac_save_cc" 14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 14491$as_echo "$ac_cv_x87_double_rounding" >&6; } 14492if test "$ac_cv_x87_double_rounding" = yes 14493then 14494 14495$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 14496 14497fi 14498 14499# ************************************ 14500# * Check for mathematical functions * 14501# ************************************ 14502 14503LIBS_SAVE=$LIBS 14504LIBS="$LIBS $LIBM" 14505 14506for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 14507do : 14508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14509ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14510if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14511 cat >>confdefs.h <<_ACEOF 14512#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14513_ACEOF 14514 14515fi 14516done 14517 14518for ac_func in hypot lgamma log1p log2 round tgamma 14519do : 14520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14521ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14522if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14523 cat >>confdefs.h <<_ACEOF 14524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14525_ACEOF 14526 14527fi 14528done 14529 14530ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 14531" 14532if test "x$ac_cv_have_decl_isinf" = xyes; then : 14533 ac_have_decl=1 14534else 14535 ac_have_decl=0 14536fi 14537 14538cat >>confdefs.h <<_ACEOF 14539#define HAVE_DECL_ISINF $ac_have_decl 14540_ACEOF 14541ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 14542" 14543if test "x$ac_cv_have_decl_isnan" = xyes; then : 14544 ac_have_decl=1 14545else 14546 ac_have_decl=0 14547fi 14548 14549cat >>confdefs.h <<_ACEOF 14550#define HAVE_DECL_ISNAN $ac_have_decl 14551_ACEOF 14552ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 14553" 14554if test "x$ac_cv_have_decl_isfinite" = xyes; then : 14555 ac_have_decl=1 14556else 14557 ac_have_decl=0 14558fi 14559 14560cat >>confdefs.h <<_ACEOF 14561#define HAVE_DECL_ISFINITE $ac_have_decl 14562_ACEOF 14563 14564 14565# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of 14566# -0. on some architectures. 14567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 14568$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } 14569if ${ac_cv_tanh_preserves_zero_sign+:} false; then : 14570 $as_echo_n "(cached) " >&6 14571else 14572 14573if test "$cross_compiling" = yes; then : 14574 ac_cv_tanh_preserves_zero_sign=no 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578 14579#include <math.h> 14580#include <stdlib.h> 14581int main() { 14582 /* return 0 if either negative zeros don't exist 14583 on this platform or if negative zeros exist 14584 and tanh(-0.) == -0. */ 14585 if (atan2(0., -1.) == atan2(-0., -1.) || 14586 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); 14587 else exit(1); 14588} 14589 14590_ACEOF 14591if ac_fn_c_try_run "$LINENO"; then : 14592 ac_cv_tanh_preserves_zero_sign=yes 14593else 14594 ac_cv_tanh_preserves_zero_sign=no 14595fi 14596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14597 conftest.$ac_objext conftest.beam conftest.$ac_ext 14598fi 14599 14600fi 14601 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 14603$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } 14604if test "$ac_cv_tanh_preserves_zero_sign" = yes 14605then 14606 14607$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h 14608 14609fi 14610 14611if test "$ac_cv_func_log1p" = yes 14612then 14613 # On some versions of AIX, log1p(-0.) returns 0. instead of 14614 # -0. See issue #9920. 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 14616$as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } 14617 if ${ac_cv_log1p_drops_zero_sign+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 14621 if test "$cross_compiling" = yes; then : 14622 ac_cv_log1p_drops_zero_sign=no 14623else 14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14625/* end confdefs.h. */ 14626 14627 #include <math.h> 14628 #include <stdlib.h> 14629 int main() { 14630 /* Fail if the signs of log1p(-0.) and -0. can be 14631 distinguished. */ 14632 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) 14633 return 0; 14634 else 14635 return 1; 14636 } 14637 14638_ACEOF 14639if ac_fn_c_try_run "$LINENO"; then : 14640 ac_cv_log1p_drops_zero_sign=no 14641else 14642 ac_cv_log1p_drops_zero_sign=yes 14643fi 14644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14645 conftest.$ac_objext conftest.beam conftest.$ac_ext 14646fi 14647 14648fi 14649 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 14651$as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } 14652fi 14653if test "$ac_cv_log1p_drops_zero_sign" = yes 14654then 14655 14656$as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h 14657 14658fi 14659 14660LIBS=$LIBS_SAVE 14661 14662# For multiprocessing module, check that sem_open 14663# actually works. For FreeBSD versions <= 7.2, 14664# the kernel module that provides POSIX semaphores 14665# isn't loaded by default, so an attempt to call 14666# sem_open results in a 'Signal 12' error. 14667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 14668$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 14669if ${ac_cv_posix_semaphores_enabled+:} false; then : 14670 $as_echo_n "(cached) " >&6 14671else 14672 if test "$cross_compiling" = yes; then : 14673 ac_cv_posix_semaphores_enabled=yes 14674else 14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14676/* end confdefs.h. */ 14677 14678#include <unistd.h> 14679#include <fcntl.h> 14680#include <stdio.h> 14681#include <semaphore.h> 14682#include <sys/stat.h> 14683 14684int main(void) { 14685 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 14686 if (a == SEM_FAILED) { 14687 perror("sem_open"); 14688 return 1; 14689 } 14690 sem_close(a); 14691 sem_unlink("/autoconf"); 14692 return 0; 14693} 14694 14695_ACEOF 14696if ac_fn_c_try_run "$LINENO"; then : 14697 ac_cv_posix_semaphores_enabled=yes 14698else 14699 ac_cv_posix_semaphores_enabled=no 14700fi 14701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14702 conftest.$ac_objext conftest.beam conftest.$ac_ext 14703fi 14704 14705 14706fi 14707 14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 14709$as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 14710if test $ac_cv_posix_semaphores_enabled = no 14711then 14712 14713$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 14714 14715fi 14716 14717# Multiprocessing check for broken sem_getvalue 14718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 14719$as_echo_n "checking for broken sem_getvalue... " >&6; } 14720if ${ac_cv_broken_sem_getvalue+:} false; then : 14721 $as_echo_n "(cached) " >&6 14722else 14723 if test "$cross_compiling" = yes; then : 14724 ac_cv_broken_sem_getvalue=yes 14725else 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728 14729#include <unistd.h> 14730#include <fcntl.h> 14731#include <stdio.h> 14732#include <semaphore.h> 14733#include <sys/stat.h> 14734 14735int main(void){ 14736 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 14737 int count; 14738 int res; 14739 if(a==SEM_FAILED){ 14740 perror("sem_open"); 14741 return 1; 14742 14743 } 14744 res = sem_getvalue(a, &count); 14745 sem_close(a); 14746 sem_unlink("/autocftw"); 14747 return res==-1 ? 1 : 0; 14748} 14749 14750_ACEOF 14751if ac_fn_c_try_run "$LINENO"; then : 14752 ac_cv_broken_sem_getvalue=no 14753else 14754 ac_cv_broken_sem_getvalue=yes 14755fi 14756rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14757 conftest.$ac_objext conftest.beam conftest.$ac_ext 14758fi 14759 14760 14761fi 14762 14763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 14764$as_echo "$ac_cv_broken_sem_getvalue" >&6; } 14765if test $ac_cv_broken_sem_getvalue = yes 14766then 14767 14768$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 14769 14770fi 14771 14772ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 14773" 14774if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : 14775 ac_have_decl=1 14776else 14777 ac_have_decl=0 14778fi 14779 14780cat >>confdefs.h <<_ACEOF 14781#define HAVE_DECL_RTLD_LAZY $ac_have_decl 14782_ACEOF 14783ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 14784" 14785if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : 14786 ac_have_decl=1 14787else 14788 ac_have_decl=0 14789fi 14790 14791cat >>confdefs.h <<_ACEOF 14792#define HAVE_DECL_RTLD_NOW $ac_have_decl 14793_ACEOF 14794ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 14795" 14796if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : 14797 ac_have_decl=1 14798else 14799 ac_have_decl=0 14800fi 14801 14802cat >>confdefs.h <<_ACEOF 14803#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl 14804_ACEOF 14805ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 14806" 14807if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : 14808 ac_have_decl=1 14809else 14810 ac_have_decl=0 14811fi 14812 14813cat >>confdefs.h <<_ACEOF 14814#define HAVE_DECL_RTLD_LOCAL $ac_have_decl 14815_ACEOF 14816ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 14817" 14818if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : 14819 ac_have_decl=1 14820else 14821 ac_have_decl=0 14822fi 14823 14824cat >>confdefs.h <<_ACEOF 14825#define HAVE_DECL_RTLD_NODELETE $ac_have_decl 14826_ACEOF 14827ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 14828" 14829if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : 14830 ac_have_decl=1 14831else 14832 ac_have_decl=0 14833fi 14834 14835cat >>confdefs.h <<_ACEOF 14836#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl 14837_ACEOF 14838ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 14839" 14840if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : 14841 ac_have_decl=1 14842else 14843 ac_have_decl=0 14844fi 14845 14846cat >>confdefs.h <<_ACEOF 14847#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl 14848_ACEOF 14849ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> 14850" 14851if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : 14852 ac_have_decl=1 14853else 14854 ac_have_decl=0 14855fi 14856 14857cat >>confdefs.h <<_ACEOF 14858#define HAVE_DECL_RTLD_MEMBER $ac_have_decl 14859_ACEOF 14860 14861 14862# determine what size digit to use for Python's longs 14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 14864$as_echo_n "checking digit size for Python's longs... " >&6; } 14865# Check whether --enable-big-digits was given. 14866if test "${enable_big_digits+set}" = set; then : 14867 enableval=$enable_big_digits; case $enable_big_digits in 14868yes) 14869 enable_big_digits=30 ;; 14870no) 14871 enable_big_digits=15 ;; 1487215|30) 14873 ;; 14874*) 14875 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 14876esac 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 14878$as_echo "$enable_big_digits" >&6; } 14879 14880cat >>confdefs.h <<_ACEOF 14881#define PYLONG_BITS_IN_DIGIT $enable_big_digits 14882_ACEOF 14883 14884 14885else 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 14887$as_echo "no value specified" >&6; } 14888fi 14889 14890 14891# check for wchar.h 14892ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14893if test "x$ac_cv_header_wchar_h" = xyes; then : 14894 14895 14896$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 14897 14898 wchar_h="yes" 14899 14900else 14901 wchar_h="no" 14902 14903fi 14904 14905 14906 14907# determine wchar_t size 14908if test "$wchar_h" = yes 14909then 14910 # The cast to long int works around a bug in the HP C Compiler 14911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14913# This bug is HP SR number 8606223364. 14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 14915$as_echo_n "checking size of wchar_t... " >&6; } 14916if ${ac_cv_sizeof_wchar_t+:} false; then : 14917 $as_echo_n "(cached) " >&6 14918else 14919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 14920"; then : 14921 14922else 14923 if test "$ac_cv_type_wchar_t" = yes; then 14924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14926as_fn_error 77 "cannot compute sizeof (wchar_t) 14927See \`config.log' for more details" "$LINENO" 5; } 14928 else 14929 ac_cv_sizeof_wchar_t=0 14930 fi 14931fi 14932 14933fi 14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 14935$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 14936 14937 14938 14939cat >>confdefs.h <<_ACEOF 14940#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 14941_ACEOF 14942 14943 14944fi 14945 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 14947$as_echo_n "checking for UCS-4 tcl... " >&6; } 14948have_ucs4_tcl=no 14949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14950/* end confdefs.h. */ 14951 14952#include <tcl.h> 14953#if TCL_UTF_MAX != 6 14954# error "NOT UCS4_TCL" 14955#endif 14956int 14957main () 14958{ 14959 14960 ; 14961 return 0; 14962} 14963_ACEOF 14964if ac_fn_c_try_compile "$LINENO"; then : 14965 14966 14967$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 14968 14969 have_ucs4_tcl=yes 14970 14971fi 14972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 14974$as_echo "$have_ucs4_tcl" >&6; } 14975 14976# check whether wchar_t is signed or not 14977if test "$wchar_h" = yes 14978then 14979 # check whether wchar_t is signed or not 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 14981$as_echo_n "checking whether wchar_t is signed... " >&6; } 14982 if ${ac_cv_wchar_t_signed+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 14986 if test "$cross_compiling" = yes; then : 14987 ac_cv_wchar_t_signed=yes 14988else 14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14990/* end confdefs.h. */ 14991 14992 #include <wchar.h> 14993 int main() 14994 { 14995 /* Success: exit code 0 */ 14996 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 14997 } 14998 14999_ACEOF 15000if ac_fn_c_try_run "$LINENO"; then : 15001 ac_cv_wchar_t_signed=yes 15002else 15003 ac_cv_wchar_t_signed=no 15004fi 15005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15006 conftest.$ac_objext conftest.beam conftest.$ac_ext 15007fi 15008 15009fi 15010 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 15012$as_echo "$ac_cv_wchar_t_signed" >&6; } 15013fi 15014 15015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 15016$as_echo_n "checking whether wchar_t is usable... " >&6; } 15017# wchar_t is only usable if it maps to an unsigned type 15018if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 15019 -a "$ac_cv_wchar_t_signed" = "no" 15020then 15021 15022$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 15023 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15025$as_echo "yes" >&6; } 15026else 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15028$as_echo "no" >&6; } 15029fi 15030 15031# check for endianness 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15033$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15034if ${ac_cv_c_bigendian+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 ac_cv_c_bigendian=unknown 15038 # See if we're dealing with a universal compiler. 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041#ifndef __APPLE_CC__ 15042 not a universal capable compiler 15043 #endif 15044 typedef int dummy; 15045 15046_ACEOF 15047if ac_fn_c_try_compile "$LINENO"; then : 15048 15049 # Check for potential -arch flags. It is not universal unless 15050 # there are at least two -arch flags with different values. 15051 ac_arch= 15052 ac_prev= 15053 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15054 if test -n "$ac_prev"; then 15055 case $ac_word in 15056 i?86 | x86_64 | ppc | ppc64) 15057 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15058 ac_arch=$ac_word 15059 else 15060 ac_cv_c_bigendian=universal 15061 break 15062 fi 15063 ;; 15064 esac 15065 ac_prev= 15066 elif test "x$ac_word" = "x-arch"; then 15067 ac_prev=arch 15068 fi 15069 done 15070fi 15071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15072 if test $ac_cv_c_bigendian = unknown; then 15073 # See if sys/param.h defines the BYTE_ORDER macro. 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076#include <sys/types.h> 15077 #include <sys/param.h> 15078 15079int 15080main () 15081{ 15082#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15083 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15084 && LITTLE_ENDIAN) 15085 bogus endian macros 15086 #endif 15087 15088 ; 15089 return 0; 15090} 15091_ACEOF 15092if ac_fn_c_try_compile "$LINENO"; then : 15093 # It does; now see whether it defined to BIG_ENDIAN or not. 15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15095/* end confdefs.h. */ 15096#include <sys/types.h> 15097 #include <sys/param.h> 15098 15099int 15100main () 15101{ 15102#if BYTE_ORDER != BIG_ENDIAN 15103 not big endian 15104 #endif 15105 15106 ; 15107 return 0; 15108} 15109_ACEOF 15110if ac_fn_c_try_compile "$LINENO"; then : 15111 ac_cv_c_bigendian=yes 15112else 15113 ac_cv_c_bigendian=no 15114fi 15115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15116fi 15117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15118 fi 15119 if test $ac_cv_c_bigendian = unknown; then 15120 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123#include <limits.h> 15124 15125int 15126main () 15127{ 15128#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15129 bogus endian macros 15130 #endif 15131 15132 ; 15133 return 0; 15134} 15135_ACEOF 15136if ac_fn_c_try_compile "$LINENO"; then : 15137 # It does; now see whether it defined to _BIG_ENDIAN or not. 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140#include <limits.h> 15141 15142int 15143main () 15144{ 15145#ifndef _BIG_ENDIAN 15146 not big endian 15147 #endif 15148 15149 ; 15150 return 0; 15151} 15152_ACEOF 15153if ac_fn_c_try_compile "$LINENO"; then : 15154 ac_cv_c_bigendian=yes 15155else 15156 ac_cv_c_bigendian=no 15157fi 15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15159fi 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15161 fi 15162 if test $ac_cv_c_bigendian = unknown; then 15163 # Compile a test program. 15164 if test "$cross_compiling" = yes; then : 15165 # Try to guess by grepping values from an object file. 15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15167/* end confdefs.h. */ 15168short int ascii_mm[] = 15169 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15170 short int ascii_ii[] = 15171 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15172 int use_ascii (int i) { 15173 return ascii_mm[i] + ascii_ii[i]; 15174 } 15175 short int ebcdic_ii[] = 15176 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15177 short int ebcdic_mm[] = 15178 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15179 int use_ebcdic (int i) { 15180 return ebcdic_mm[i] + ebcdic_ii[i]; 15181 } 15182 extern int foo; 15183 15184int 15185main () 15186{ 15187return use_ascii (foo) == use_ebcdic (foo); 15188 ; 15189 return 0; 15190} 15191_ACEOF 15192if ac_fn_c_try_compile "$LINENO"; then : 15193 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15194 ac_cv_c_bigendian=yes 15195 fi 15196 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15197 if test "$ac_cv_c_bigendian" = unknown; then 15198 ac_cv_c_bigendian=no 15199 else 15200 # finding both strings is unlikely to happen, but who knows? 15201 ac_cv_c_bigendian=unknown 15202 fi 15203 fi 15204fi 15205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15206else 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15208/* end confdefs.h. */ 15209$ac_includes_default 15210int 15211main () 15212{ 15213 15214 /* Are we little or big endian? From Harbison&Steele. */ 15215 union 15216 { 15217 long int l; 15218 char c[sizeof (long int)]; 15219 } u; 15220 u.l = 1; 15221 return u.c[sizeof (long int) - 1] == 1; 15222 15223 ; 15224 return 0; 15225} 15226_ACEOF 15227if ac_fn_c_try_run "$LINENO"; then : 15228 ac_cv_c_bigendian=no 15229else 15230 ac_cv_c_bigendian=yes 15231fi 15232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15233 conftest.$ac_objext conftest.beam conftest.$ac_ext 15234fi 15235 15236 fi 15237fi 15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15239$as_echo "$ac_cv_c_bigendian" >&6; } 15240 case $ac_cv_c_bigendian in #( 15241 yes) 15242 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15243;; #( 15244 no) 15245 ;; #( 15246 universal) 15247 15248$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15249 15250 ;; #( 15251 *) 15252 as_fn_error $? "unknown endianness 15253 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15254 esac 15255 15256 15257# ABI version string for Python extension modules. This appears between the 15258# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 15259# from the following attributes which affect the ABI of this Python build (in 15260# this order): 15261# 15262# * The Python implementation (always 'cpython-' for us) 15263# * The major and minor version numbers 15264# * --with-pydebug (adds a 'd') 15265# * --with-pymalloc (adds a 'm') 15266# * --with-wide-unicode (adds a 'u') 15267# 15268# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 15269# would get a shared library ABI version tag of 'cpython-32dmu' and shared 15270# libraries would be named 'foo.cpython-32dmu.so'. 15271 15272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 15273$as_echo_n "checking ABIFLAGS... " >&6; } 15274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 15275$as_echo "$ABIFLAGS" >&6; } 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 15277$as_echo_n "checking SOABI... " >&6; } 15278SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 15279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 15280$as_echo "$SOABI" >&6; } 15281 15282 15283case $ac_sys_system in 15284 Linux*|GNU*|Darwin) 15285 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; 15286 *) 15287 EXT_SUFFIX=${SHLIB_SUFFIX};; 15288esac 15289 15290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 15291$as_echo_n "checking LDVERSION... " >&6; } 15292LDVERSION='$(VERSION)$(ABIFLAGS)' 15293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 15294$as_echo "$LDVERSION" >&6; } 15295 15296 15297if test x$PLATFORM_TRIPLET = x; then 15298 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" 15299else 15300 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 15301fi 15302 15303 15304# Check whether right shifting a negative integer extends the sign bit 15305# or fills with zeros (like the Cray J90, according to Tim Peters). 15306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 15307$as_echo_n "checking whether right shift extends the sign bit... " >&6; } 15308if ${ac_cv_rshift_extends_sign+:} false; then : 15309 $as_echo_n "(cached) " >&6 15310else 15311 15312if test "$cross_compiling" = yes; then : 15313 ac_cv_rshift_extends_sign=yes 15314else 15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316/* end confdefs.h. */ 15317 15318int main() 15319{ 15320 exit(((-1)>>3 == -1) ? 0 : 1); 15321} 15322 15323_ACEOF 15324if ac_fn_c_try_run "$LINENO"; then : 15325 ac_cv_rshift_extends_sign=yes 15326else 15327 ac_cv_rshift_extends_sign=no 15328fi 15329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15330 conftest.$ac_objext conftest.beam conftest.$ac_ext 15331fi 15332 15333fi 15334 15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 15336$as_echo "$ac_cv_rshift_extends_sign" >&6; } 15337if test "$ac_cv_rshift_extends_sign" = no 15338then 15339 15340$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 15341 15342fi 15343 15344# check for getc_unlocked and related locking functions 15345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 15346$as_echo_n "checking for getc_unlocked() and friends... " >&6; } 15347if ${ac_cv_have_getc_unlocked+:} false; then : 15348 $as_echo_n "(cached) " >&6 15349else 15350 15351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353#include <stdio.h> 15354int 15355main () 15356{ 15357 15358 FILE *f = fopen("/dev/null", "r"); 15359 flockfile(f); 15360 getc_unlocked(f); 15361 funlockfile(f); 15362 15363 ; 15364 return 0; 15365} 15366_ACEOF 15367if ac_fn_c_try_link "$LINENO"; then : 15368 ac_cv_have_getc_unlocked=yes 15369else 15370 ac_cv_have_getc_unlocked=no 15371fi 15372rm -f core conftest.err conftest.$ac_objext \ 15373 conftest$ac_exeext conftest.$ac_ext 15374fi 15375 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 15377$as_echo "$ac_cv_have_getc_unlocked" >&6; } 15378if test "$ac_cv_have_getc_unlocked" = yes 15379then 15380 15381$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 15382 15383fi 15384 15385# check where readline lives 15386# save the value of LIBS so we don't actually link Python with readline 15387LIBS_no_readline=$LIBS 15388 15389# On some systems we need to link readline to a termcap compatible 15390# library. NOTE: Keep the precedence of listed libraries synchronised 15391# with setup.py. 15392py_cv_lib_readline=no 15393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 15394$as_echo_n "checking how to link readline libs... " >&6; } 15395for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do 15396 if test -z "$py_libtermcap"; then 15397 READLINE_LIBS="-lreadline" 15398 else 15399 READLINE_LIBS="-lreadline -l$py_libtermcap" 15400 fi 15401 LIBS="$READLINE_LIBS $LIBS_no_readline" 15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15403/* end confdefs.h. */ 15404 15405/* Override any GCC internal prototype to avoid an error. 15406 Use char because int might match the return type of a GCC 15407 builtin and then its argument prototype would still apply. */ 15408#ifdef __cplusplus 15409extern "C" 15410#endif 15411char readline (); 15412int 15413main () 15414{ 15415return readline (); 15416 ; 15417 return 0; 15418} 15419_ACEOF 15420if ac_fn_c_try_link "$LINENO"; then : 15421 py_cv_lib_readline=yes 15422fi 15423rm -f core conftest.err conftest.$ac_objext \ 15424 conftest$ac_exeext conftest.$ac_ext 15425 if test $py_cv_lib_readline = yes; then 15426 break 15427 fi 15428done 15429# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 15430#AC_SUBST([READLINE_LIBS]) 15431if test $py_cv_lib_readline = no; then 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15433$as_echo "none" >&6; } 15434else 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 15436$as_echo "$READLINE_LIBS" >&6; } 15437 15438$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15439 15440fi 15441 15442# check for readline 2.2 15443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15444/* end confdefs.h. */ 15445#include <readline/readline.h> 15446_ACEOF 15447if ac_fn_c_try_cpp "$LINENO"; then : 15448 have_readline=yes 15449else 15450 have_readline=no 15451 15452fi 15453rm -f conftest.err conftest.i conftest.$ac_ext 15454if test $have_readline = yes 15455then 15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458#include <readline/readline.h> 15459 15460_ACEOF 15461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15462 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 15463 15464$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 15465 15466fi 15467rm -f conftest* 15468 15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15470/* end confdefs.h. */ 15471#include <readline/readline.h> 15472 15473_ACEOF 15474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15475 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 15476 15477$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 15478 15479fi 15480rm -f conftest* 15481 15482fi 15483 15484# check for readline 4.0 15485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 15486$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 15487if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 15488 $as_echo_n "(cached) " >&6 15489else 15490 ac_check_lib_save_LIBS=$LIBS 15491LIBS="-lreadline $READLINE_LIBS $LIBS" 15492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494 15495/* Override any GCC internal prototype to avoid an error. 15496 Use char because int might match the return type of a GCC 15497 builtin and then its argument prototype would still apply. */ 15498#ifdef __cplusplus 15499extern "C" 15500#endif 15501char rl_pre_input_hook (); 15502int 15503main () 15504{ 15505return rl_pre_input_hook (); 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_link "$LINENO"; then : 15511 ac_cv_lib_readline_rl_pre_input_hook=yes 15512else 15513 ac_cv_lib_readline_rl_pre_input_hook=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext \ 15516 conftest$ac_exeext conftest.$ac_ext 15517LIBS=$ac_check_lib_save_LIBS 15518fi 15519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 15520$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 15521if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 15522 15523$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 15524 15525fi 15526 15527 15528# also in 4.0 15529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 15530$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 15531if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 15532 $as_echo_n "(cached) " >&6 15533else 15534 ac_check_lib_save_LIBS=$LIBS 15535LIBS="-lreadline $READLINE_LIBS $LIBS" 15536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15537/* end confdefs.h. */ 15538 15539/* Override any GCC internal prototype to avoid an error. 15540 Use char because int might match the return type of a GCC 15541 builtin and then its argument prototype would still apply. */ 15542#ifdef __cplusplus 15543extern "C" 15544#endif 15545char rl_completion_display_matches_hook (); 15546int 15547main () 15548{ 15549return rl_completion_display_matches_hook (); 15550 ; 15551 return 0; 15552} 15553_ACEOF 15554if ac_fn_c_try_link "$LINENO"; then : 15555 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 15556else 15557 ac_cv_lib_readline_rl_completion_display_matches_hook=no 15558fi 15559rm -f core conftest.err conftest.$ac_objext \ 15560 conftest$ac_exeext conftest.$ac_ext 15561LIBS=$ac_check_lib_save_LIBS 15562fi 15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 15564$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 15565if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 15566 15567$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 15568 15569fi 15570 15571 15572# also in 4.0, but not in editline 15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 15574$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 15575if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 15576 $as_echo_n "(cached) " >&6 15577else 15578 ac_check_lib_save_LIBS=$LIBS 15579LIBS="-lreadline $READLINE_LIBS $LIBS" 15580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15581/* end confdefs.h. */ 15582 15583/* Override any GCC internal prototype to avoid an error. 15584 Use char because int might match the return type of a GCC 15585 builtin and then its argument prototype would still apply. */ 15586#ifdef __cplusplus 15587extern "C" 15588#endif 15589char rl_resize_terminal (); 15590int 15591main () 15592{ 15593return rl_resize_terminal (); 15594 ; 15595 return 0; 15596} 15597_ACEOF 15598if ac_fn_c_try_link "$LINENO"; then : 15599 ac_cv_lib_readline_rl_resize_terminal=yes 15600else 15601 ac_cv_lib_readline_rl_resize_terminal=no 15602fi 15603rm -f core conftest.err conftest.$ac_objext \ 15604 conftest$ac_exeext conftest.$ac_ext 15605LIBS=$ac_check_lib_save_LIBS 15606fi 15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 15608$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 15609if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 15610 15611$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 15612 15613fi 15614 15615 15616# check for readline 4.2 15617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 15618$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 15619if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 15620 $as_echo_n "(cached) " >&6 15621else 15622 ac_check_lib_save_LIBS=$LIBS 15623LIBS="-lreadline $READLINE_LIBS $LIBS" 15624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626 15627/* Override any GCC internal prototype to avoid an error. 15628 Use char because int might match the return type of a GCC 15629 builtin and then its argument prototype would still apply. */ 15630#ifdef __cplusplus 15631extern "C" 15632#endif 15633char rl_completion_matches (); 15634int 15635main () 15636{ 15637return rl_completion_matches (); 15638 ; 15639 return 0; 15640} 15641_ACEOF 15642if ac_fn_c_try_link "$LINENO"; then : 15643 ac_cv_lib_readline_rl_completion_matches=yes 15644else 15645 ac_cv_lib_readline_rl_completion_matches=no 15646fi 15647rm -f core conftest.err conftest.$ac_objext \ 15648 conftest$ac_exeext conftest.$ac_ext 15649LIBS=$ac_check_lib_save_LIBS 15650fi 15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 15652$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 15653if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 15654 15655$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 15656 15657fi 15658 15659 15660# also in readline 4.2 15661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663#include <readline/readline.h> 15664_ACEOF 15665if ac_fn_c_try_cpp "$LINENO"; then : 15666 have_readline=yes 15667else 15668 have_readline=no 15669 15670fi 15671rm -f conftest.err conftest.i conftest.$ac_ext 15672if test $have_readline = yes 15673then 15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15675/* end confdefs.h. */ 15676#include <readline/readline.h> 15677 15678_ACEOF 15679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15680 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 15681 15682$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 15683 15684fi 15685rm -f conftest* 15686 15687fi 15688 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 15690$as_echo_n "checking for append_history in -lreadline... " >&6; } 15691if ${ac_cv_lib_readline_append_history+:} false; then : 15692 $as_echo_n "(cached) " >&6 15693else 15694 ac_check_lib_save_LIBS=$LIBS 15695LIBS="-lreadline $READLINE_LIBS $LIBS" 15696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698 15699/* Override any GCC internal prototype to avoid an error. 15700 Use char because int might match the return type of a GCC 15701 builtin and then its argument prototype would still apply. */ 15702#ifdef __cplusplus 15703extern "C" 15704#endif 15705char append_history (); 15706int 15707main () 15708{ 15709return append_history (); 15710 ; 15711 return 0; 15712} 15713_ACEOF 15714if ac_fn_c_try_link "$LINENO"; then : 15715 ac_cv_lib_readline_append_history=yes 15716else 15717 ac_cv_lib_readline_append_history=no 15718fi 15719rm -f core conftest.err conftest.$ac_objext \ 15720 conftest$ac_exeext conftest.$ac_ext 15721LIBS=$ac_check_lib_save_LIBS 15722fi 15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 15724$as_echo "$ac_cv_lib_readline_append_history" >&6; } 15725if test "x$ac_cv_lib_readline_append_history" = xyes; then : 15726 15727$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 15728 15729fi 15730 15731 15732# End of readline checks: restore LIBS 15733LIBS=$LIBS_no_readline 15734 15735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 15736$as_echo_n "checking for broken nice()... " >&6; } 15737if ${ac_cv_broken_nice+:} false; then : 15738 $as_echo_n "(cached) " >&6 15739else 15740 15741if test "$cross_compiling" = yes; then : 15742 ac_cv_broken_nice=no 15743else 15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15745/* end confdefs.h. */ 15746 15747#include <stdlib.h> 15748#include <unistd.h> 15749int main() 15750{ 15751 int val1 = nice(1); 15752 if (val1 != -1 && val1 == nice(2)) 15753 exit(0); 15754 exit(1); 15755} 15756 15757_ACEOF 15758if ac_fn_c_try_run "$LINENO"; then : 15759 ac_cv_broken_nice=yes 15760else 15761 ac_cv_broken_nice=no 15762fi 15763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15764 conftest.$ac_objext conftest.beam conftest.$ac_ext 15765fi 15766 15767fi 15768 15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 15770$as_echo "$ac_cv_broken_nice" >&6; } 15771if test "$ac_cv_broken_nice" = yes 15772then 15773 15774$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 15775 15776fi 15777 15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 15779$as_echo_n "checking for broken poll()... " >&6; } 15780if ${ac_cv_broken_poll+:} false; then : 15781 $as_echo_n "(cached) " >&6 15782else 15783 if test "$cross_compiling" = yes; then : 15784 ac_cv_broken_poll=no 15785else 15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787/* end confdefs.h. */ 15788 15789#include <poll.h> 15790 15791int main() 15792{ 15793 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 15794 int poll_test; 15795 15796 close (42); 15797 15798 poll_test = poll(&poll_struct, 1, 0); 15799 if (poll_test < 0) 15800 return 0; 15801 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 15802 return 0; 15803 else 15804 return 1; 15805} 15806 15807_ACEOF 15808if ac_fn_c_try_run "$LINENO"; then : 15809 ac_cv_broken_poll=yes 15810else 15811 ac_cv_broken_poll=no 15812fi 15813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15814 conftest.$ac_objext conftest.beam conftest.$ac_ext 15815fi 15816 15817fi 15818 15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 15820$as_echo "$ac_cv_broken_poll" >&6; } 15821if test "$ac_cv_broken_poll" = yes 15822then 15823 15824$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 15825 15826fi 15827 15828# check tzset(3) exists and works like we expect it to 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 15830$as_echo_n "checking for working tzset()... " >&6; } 15831if ${ac_cv_working_tzset+:} false; then : 15832 $as_echo_n "(cached) " >&6 15833else 15834 15835if test "$cross_compiling" = yes; then : 15836 ac_cv_working_tzset=no 15837else 15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840 15841#include <stdlib.h> 15842#include <time.h> 15843#include <string.h> 15844 15845#if HAVE_TZNAME 15846extern char *tzname[]; 15847#endif 15848 15849int main() 15850{ 15851 /* Note that we need to ensure that not only does tzset(3) 15852 do 'something' with localtime, but it works as documented 15853 in the library reference and as expected by the test suite. 15854 This includes making sure that tzname is set properly if 15855 tm->tm_zone does not exist since it is the alternative way 15856 of getting timezone info. 15857 15858 Red Hat 6.2 doesn't understand the southern hemisphere 15859 after New Year's Day. 15860 */ 15861 15862 time_t groundhogday = 1044144000; /* GMT-based */ 15863 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 15864 15865 putenv("TZ=UTC+0"); 15866 tzset(); 15867 if (localtime(&groundhogday)->tm_hour != 0) 15868 exit(1); 15869#if HAVE_TZNAME 15870 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 15871 if (strcmp(tzname[0], "UTC") || 15872 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 15873 exit(1); 15874#endif 15875 15876 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 15877 tzset(); 15878 if (localtime(&groundhogday)->tm_hour != 19) 15879 exit(1); 15880#if HAVE_TZNAME 15881 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 15882 exit(1); 15883#endif 15884 15885 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 15886 tzset(); 15887 if (localtime(&groundhogday)->tm_hour != 11) 15888 exit(1); 15889#if HAVE_TZNAME 15890 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 15891 exit(1); 15892#endif 15893 15894#if HAVE_STRUCT_TM_TM_ZONE 15895 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 15896 exit(1); 15897 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 15898 exit(1); 15899#endif 15900 15901 exit(0); 15902} 15903 15904_ACEOF 15905if ac_fn_c_try_run "$LINENO"; then : 15906 ac_cv_working_tzset=yes 15907else 15908 ac_cv_working_tzset=no 15909fi 15910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15911 conftest.$ac_objext conftest.beam conftest.$ac_ext 15912fi 15913 15914fi 15915 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 15917$as_echo "$ac_cv_working_tzset" >&6; } 15918if test "$ac_cv_working_tzset" = yes 15919then 15920 15921$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 15922 15923fi 15924 15925# Look for subsecond timestamps in struct stat 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 15927$as_echo_n "checking for tv_nsec in struct stat... " >&6; } 15928if ${ac_cv_stat_tv_nsec+:} false; then : 15929 $as_echo_n "(cached) " >&6 15930else 15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15932/* end confdefs.h. */ 15933#include <sys/stat.h> 15934int 15935main () 15936{ 15937 15938struct stat st; 15939st.st_mtim.tv_nsec = 1; 15940 15941 ; 15942 return 0; 15943} 15944_ACEOF 15945if ac_fn_c_try_compile "$LINENO"; then : 15946 ac_cv_stat_tv_nsec=yes 15947else 15948 ac_cv_stat_tv_nsec=no 15949fi 15950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15951fi 15952 15953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 15954$as_echo "$ac_cv_stat_tv_nsec" >&6; } 15955if test "$ac_cv_stat_tv_nsec" = yes 15956then 15957 15958$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 15959 15960fi 15961 15962# Look for BSD style subsecond timestamps in struct stat 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 15964$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 15965if ${ac_cv_stat_tv_nsec2+:} false; then : 15966 $as_echo_n "(cached) " >&6 15967else 15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15969/* end confdefs.h. */ 15970#include <sys/stat.h> 15971int 15972main () 15973{ 15974 15975struct stat st; 15976st.st_mtimespec.tv_nsec = 1; 15977 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982if ac_fn_c_try_compile "$LINENO"; then : 15983 ac_cv_stat_tv_nsec2=yes 15984else 15985 ac_cv_stat_tv_nsec2=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15988fi 15989 15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 15991$as_echo "$ac_cv_stat_tv_nsec2" >&6; } 15992if test "$ac_cv_stat_tv_nsec2" = yes 15993then 15994 15995$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 15996 15997fi 15998 15999# first curses header check 16000ac_save_cppflags="$CPPFLAGS" 16001if test "$cross_compiling" = no; then 16002 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 16003fi 16004 16005for ac_header in curses.h ncurses.h 16006do : 16007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16008ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16009if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16010 cat >>confdefs.h <<_ACEOF 16011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16012_ACEOF 16013 16014fi 16015 16016done 16017 16018 16019# On Solaris, term.h requires curses.h 16020for ac_header in term.h 16021do : 16022 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 16023#ifdef HAVE_CURSES_H 16024#include <curses.h> 16025#endif 16026 16027" 16028if test "x$ac_cv_header_term_h" = xyes; then : 16029 cat >>confdefs.h <<_ACEOF 16030#define HAVE_TERM_H 1 16031_ACEOF 16032 16033fi 16034 16035done 16036 16037 16038# On HP/UX 11.0, mvwdelch is a block with a return statement 16039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 16040$as_echo_n "checking whether mvwdelch is an expression... " >&6; } 16041if ${ac_cv_mvwdelch_is_expression+:} false; then : 16042 $as_echo_n "(cached) " >&6 16043else 16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16045/* end confdefs.h. */ 16046#include <curses.h> 16047int 16048main () 16049{ 16050 16051 int rtn; 16052 rtn = mvwdelch(0,0,0); 16053 16054 ; 16055 return 0; 16056} 16057_ACEOF 16058if ac_fn_c_try_compile "$LINENO"; then : 16059 ac_cv_mvwdelch_is_expression=yes 16060else 16061 ac_cv_mvwdelch_is_expression=no 16062fi 16063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16064fi 16065 16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 16067$as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 16068 16069if test "$ac_cv_mvwdelch_is_expression" = yes 16070then 16071 16072$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 16073 16074fi 16075 16076# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque 16077# structs since version 5.7. If the macro is defined as zero before including 16078# [n]curses.h, ncurses will expose fields of the structs regardless of the 16079# configuration. 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 16081$as_echo_n "checking whether WINDOW has _flags... " >&6; } 16082if ${ac_cv_window_has_flags+:} false; then : 16083 $as_echo_n "(cached) " >&6 16084else 16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087 16088 #define NCURSES_OPAQUE 0 16089 #include <curses.h> 16090 16091int 16092main () 16093{ 16094 16095 WINDOW *w; 16096 w->_flags = 0; 16097 16098 ; 16099 return 0; 16100} 16101_ACEOF 16102if ac_fn_c_try_compile "$LINENO"; then : 16103 ac_cv_window_has_flags=yes 16104else 16105 ac_cv_window_has_flags=no 16106fi 16107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16108fi 16109 16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 16111$as_echo "$ac_cv_window_has_flags" >&6; } 16112 16113 16114if test "$ac_cv_window_has_flags" = yes 16115then 16116 16117$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 16118 16119fi 16120 16121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 16122$as_echo_n "checking for is_pad... " >&6; } 16123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125#include <curses.h> 16126int 16127main () 16128{ 16129 16130#ifndef is_pad 16131void *x=is_pad 16132#endif 16133 16134 ; 16135 return 0; 16136} 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO"; then : 16139 16140$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 16141 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16143$as_echo "yes" >&6; } 16144else 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16146$as_echo "no" >&6; } 16147 16148fi 16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16150 16151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 16152$as_echo_n "checking for is_term_resized... " >&6; } 16153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16154/* end confdefs.h. */ 16155#include <curses.h> 16156int 16157main () 16158{ 16159void *x=is_term_resized 16160 ; 16161 return 0; 16162} 16163_ACEOF 16164if ac_fn_c_try_compile "$LINENO"; then : 16165 16166$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 16167 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16169$as_echo "yes" >&6; } 16170else 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16172$as_echo "no" >&6; } 16173 16174fi 16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16176 16177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 16178$as_echo_n "checking for resize_term... " >&6; } 16179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16180/* end confdefs.h. */ 16181#include <curses.h> 16182int 16183main () 16184{ 16185void *x=resize_term 16186 ; 16187 return 0; 16188} 16189_ACEOF 16190if ac_fn_c_try_compile "$LINENO"; then : 16191 16192$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 16193 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16195$as_echo "yes" >&6; } 16196else 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16198$as_echo "no" >&6; } 16199 16200fi 16201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16202 16203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 16204$as_echo_n "checking for resizeterm... " >&6; } 16205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207#include <curses.h> 16208int 16209main () 16210{ 16211void *x=resizeterm 16212 ; 16213 return 0; 16214} 16215_ACEOF 16216if ac_fn_c_try_compile "$LINENO"; then : 16217 16218$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 16219 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16221$as_echo "yes" >&6; } 16222else 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16224$as_echo "no" >&6; } 16225 16226fi 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16228 16229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 16230$as_echo_n "checking for immedok... " >&6; } 16231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233#include <curses.h> 16234int 16235main () 16236{ 16237 16238#ifndef immedok 16239void *x=immedok 16240#endif 16241 16242 ; 16243 return 0; 16244} 16245_ACEOF 16246if ac_fn_c_try_compile "$LINENO"; then : 16247 16248$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16251$as_echo "yes" >&6; } 16252else 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16254$as_echo "no" >&6; } 16255 16256fi 16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16258 16259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 16260$as_echo_n "checking for syncok... " >&6; } 16261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263#include <curses.h> 16264int 16265main () 16266{ 16267 16268#ifndef syncok 16269void *x=syncok 16270#endif 16271 16272 ; 16273 return 0; 16274} 16275_ACEOF 16276if ac_fn_c_try_compile "$LINENO"; then : 16277 16278$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 16279 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16281$as_echo "yes" >&6; } 16282else 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16284$as_echo "no" >&6; } 16285 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16288 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 16290$as_echo_n "checking for wchgat... " >&6; } 16291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16292/* end confdefs.h. */ 16293#include <curses.h> 16294int 16295main () 16296{ 16297 16298#ifndef wchgat 16299void *x=wchgat 16300#endif 16301 16302 ; 16303 return 0; 16304} 16305_ACEOF 16306if ac_fn_c_try_compile "$LINENO"; then : 16307 16308$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 16309 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16311$as_echo "yes" >&6; } 16312else 16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16314$as_echo "no" >&6; } 16315 16316fi 16317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16318 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 16320$as_echo_n "checking for filter... " >&6; } 16321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16322/* end confdefs.h. */ 16323#include <curses.h> 16324int 16325main () 16326{ 16327 16328#ifndef filter 16329void *x=filter 16330#endif 16331 16332 ; 16333 return 0; 16334} 16335_ACEOF 16336if ac_fn_c_try_compile "$LINENO"; then : 16337 16338$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h 16339 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16341$as_echo "yes" >&6; } 16342else 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16344$as_echo "no" >&6; } 16345 16346fi 16347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16348 16349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 16350$as_echo_n "checking for has_key... " >&6; } 16351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353#include <curses.h> 16354int 16355main () 16356{ 16357 16358#ifndef has_key 16359void *x=has_key 16360#endif 16361 16362 ; 16363 return 0; 16364} 16365_ACEOF 16366if ac_fn_c_try_compile "$LINENO"; then : 16367 16368$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 16369 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16371$as_echo "yes" >&6; } 16372else 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16374$as_echo "no" >&6; } 16375 16376fi 16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16378 16379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 16380$as_echo_n "checking for typeahead... " >&6; } 16381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382/* end confdefs.h. */ 16383#include <curses.h> 16384int 16385main () 16386{ 16387 16388#ifndef typeahead 16389void *x=typeahead 16390#endif 16391 16392 ; 16393 return 0; 16394} 16395_ACEOF 16396if ac_fn_c_try_compile "$LINENO"; then : 16397 16398$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 16399 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16401$as_echo "yes" >&6; } 16402else 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16404$as_echo "no" >&6; } 16405 16406fi 16407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16408 16409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 16410$as_echo_n "checking for use_env... " >&6; } 16411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413#include <curses.h> 16414int 16415main () 16416{ 16417 16418#ifndef use_env 16419void *x=use_env 16420#endif 16421 16422 ; 16423 return 0; 16424} 16425_ACEOF 16426if ac_fn_c_try_compile "$LINENO"; then : 16427 16428$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 16429 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16431$as_echo "yes" >&6; } 16432else 16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16434$as_echo "no" >&6; } 16435 16436fi 16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16438# last curses configure check 16439CPPFLAGS=$ac_save_cppflags 16440 16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 16442$as_echo "$as_me: checking for device files" >&6;} 16443 16444if test "x$cross_compiling" = xyes; then 16445 if test "${ac_cv_file__dev_ptmx+set}" != set; then 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16447$as_echo_n "checking for /dev/ptmx... " >&6; } 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16449$as_echo "not set" >&6; } 16450 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16451 fi 16452 if test "${ac_cv_file__dev_ptc+set}" != set; then 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16454$as_echo_n "checking for /dev/ptc... " >&6; } 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16456$as_echo "not set" >&6; } 16457 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16458 fi 16459fi 16460 16461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16462$as_echo_n "checking for /dev/ptmx... " >&6; } 16463if ${ac_cv_file__dev_ptmx+:} false; then : 16464 $as_echo_n "(cached) " >&6 16465else 16466 test "$cross_compiling" = yes && 16467 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16468if test -r "/dev/ptmx"; then 16469 ac_cv_file__dev_ptmx=yes 16470else 16471 ac_cv_file__dev_ptmx=no 16472fi 16473fi 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 16475$as_echo "$ac_cv_file__dev_ptmx" >&6; } 16476if test "x$ac_cv_file__dev_ptmx" = xyes; then : 16477 16478fi 16479 16480if test "x$ac_cv_file__dev_ptmx" = xyes; then 16481 16482$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 16483 16484fi 16485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16486$as_echo_n "checking for /dev/ptc... " >&6; } 16487if ${ac_cv_file__dev_ptc+:} false; then : 16488 $as_echo_n "(cached) " >&6 16489else 16490 test "$cross_compiling" = yes && 16491 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16492if test -r "/dev/ptc"; then 16493 ac_cv_file__dev_ptc=yes 16494else 16495 ac_cv_file__dev_ptc=no 16496fi 16497fi 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 16499$as_echo "$ac_cv_file__dev_ptc" >&6; } 16500if test "x$ac_cv_file__dev_ptc" = xyes; then : 16501 16502fi 16503 16504if test "x$ac_cv_file__dev_ptc" = xyes; then 16505 16506$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 16507 16508fi 16509 16510if test $ac_sys_system = Darwin 16511then 16512 LIBS="$LIBS -framework CoreFoundation" 16513fi 16514 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 16516$as_echo_n "checking for %zd printf() format support... " >&6; } 16517if ${ac_cv_have_size_t_format+:} false; then : 16518 $as_echo_n "(cached) " >&6 16519else 16520 if test "$cross_compiling" = yes; then : 16521 ac_cv_have_size_t_format="cross -- assuming yes" 16522 16523else 16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16525/* end confdefs.h. */ 16526 16527#include <stdio.h> 16528#include <stddef.h> 16529#include <string.h> 16530 16531#ifdef HAVE_SYS_TYPES_H 16532#include <sys/types.h> 16533#endif 16534 16535#ifdef HAVE_SSIZE_T 16536typedef ssize_t Py_ssize_t; 16537#elif SIZEOF_VOID_P == SIZEOF_LONG 16538typedef long Py_ssize_t; 16539#else 16540typedef int Py_ssize_t; 16541#endif 16542 16543int main() 16544{ 16545 char buffer[256]; 16546 16547 if(sprintf(buffer, "%zd", (size_t)123) < 0) 16548 return 1; 16549 16550 if (strcmp(buffer, "123")) 16551 return 1; 16552 16553 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 16554 return 1; 16555 16556 if (strcmp(buffer, "-123")) 16557 return 1; 16558 16559 return 0; 16560} 16561 16562_ACEOF 16563if ac_fn_c_try_run "$LINENO"; then : 16564 ac_cv_have_size_t_format=yes 16565else 16566 ac_cv_have_size_t_format=no 16567fi 16568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16569 conftest.$ac_objext conftest.beam conftest.$ac_ext 16570fi 16571 16572fi 16573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 16574$as_echo "$ac_cv_have_size_t_format" >&6; } 16575if test "$ac_cv_have_size_t_format" != no ; then 16576 16577$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 16578 16579fi 16580 16581ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16582#ifdef HAVE_SYS_TYPES_H 16583#include <sys/types.h> 16584#endif 16585#ifdef HAVE_SYS_SOCKET_H 16586#include <sys/socket.h> 16587#endif 16588 16589" 16590if test "x$ac_cv_type_socklen_t" = xyes; then : 16591 16592else 16593 16594$as_echo "#define socklen_t int" >>confdefs.h 16595 16596fi 16597 16598 16599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 16600$as_echo_n "checking for broken mbstowcs... " >&6; } 16601if ${ac_cv_broken_mbstowcs+:} false; then : 16602 $as_echo_n "(cached) " >&6 16603else 16604 if test "$cross_compiling" = yes; then : 16605 ac_cv_broken_mbstowcs=no 16606else 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609 16610#include <stdio.h> 16611#include<stdlib.h> 16612int main() { 16613 size_t len = -1; 16614 const char *str = "text"; 16615 len = mbstowcs(NULL, str, 0); 16616 return (len != 4); 16617} 16618 16619_ACEOF 16620if ac_fn_c_try_run "$LINENO"; then : 16621 ac_cv_broken_mbstowcs=no 16622else 16623 ac_cv_broken_mbstowcs=yes 16624fi 16625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16626 conftest.$ac_objext conftest.beam conftest.$ac_ext 16627fi 16628 16629fi 16630 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 16632$as_echo "$ac_cv_broken_mbstowcs" >&6; } 16633if test "$ac_cv_broken_mbstowcs" = yes 16634then 16635 16636$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 16637 16638fi 16639 16640# Check for --with-computed-gotos 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 16642$as_echo_n "checking for --with-computed-gotos... " >&6; } 16643 16644# Check whether --with-computed-gotos was given. 16645if test "${with_computed_gotos+set}" = set; then : 16646 withval=$with_computed_gotos; 16647if test "$withval" = yes 16648then 16649 16650$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 16651 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16653$as_echo "yes" >&6; } 16654fi 16655if test "$withval" = no 16656then 16657 16658$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 16659 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16661$as_echo "no" >&6; } 16662fi 16663 16664else 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 16666$as_echo "no value specified" >&6; } 16667fi 16668 16669 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 16671$as_echo_n "checking whether $CC supports computed gotos... " >&6; } 16672if ${ac_cv_computed_gotos+:} false; then : 16673 $as_echo_n "(cached) " >&6 16674else 16675 if test "$cross_compiling" = yes; then : 16676 if test "${with_computed_gotos+set}" = set; then 16677 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 16678 else 16679 ac_cv_computed_gotos=no 16680 fi 16681else 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684 16685int main(int argc, char **argv) 16686{ 16687 static void *targets[1] = { &&LABEL1 }; 16688 goto LABEL2; 16689LABEL1: 16690 return 0; 16691LABEL2: 16692 goto *targets[0]; 16693 return 1; 16694} 16695 16696_ACEOF 16697if ac_fn_c_try_run "$LINENO"; then : 16698 ac_cv_computed_gotos=yes 16699else 16700 ac_cv_computed_gotos=no 16701fi 16702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16703 conftest.$ac_objext conftest.beam conftest.$ac_ext 16704fi 16705 16706fi 16707 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 16709$as_echo "$ac_cv_computed_gotos" >&6; } 16710case "$ac_cv_computed_gotos" in yes*) 16711 16712$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 16713 16714esac 16715 16716case $ac_sys_system in 16717AIX*) 16718 16719$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 16720 ;; 16721esac 16722 16723 16724 16725 16726for h in `(cd $srcdir;echo Python/thread_*.h)` 16727do 16728 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 16729done 16730 16731 16732SRCDIRS="Parser Objects Python Modules Modules/_io Programs" 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 16734$as_echo_n "checking for build directories... " >&6; } 16735for dir in $SRCDIRS; do 16736 if test ! -d $dir; then 16737 mkdir $dir 16738 fi 16739done 16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16741$as_echo "done" >&6; } 16742 16743# Availability of -O2: 16744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 16745$as_echo_n "checking for -O2... " >&6; } 16746saved_cflags="$CFLAGS" 16747CFLAGS="-O2" 16748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750 16751int 16752main () 16753{ 16754 16755 16756 ; 16757 return 0; 16758} 16759_ACEOF 16760if ac_fn_c_try_compile "$LINENO"; then : 16761 have_O2=yes 16762else 16763 have_O2=no 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 16767$as_echo "$have_O2" >&6; } 16768CFLAGS="$saved_cflags" 16769 16770# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 16771# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 16773$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 16774saved_cflags="$CFLAGS" 16775CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 16776if test "$have_O2" = no; then 16777 CFLAGS="" 16778fi 16779if test "$cross_compiling" = yes; then : 16780 have_glibc_memmove_bug=undefined 16781else 16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16783/* end confdefs.h. */ 16784 16785#include <stdio.h> 16786#include <stdlib.h> 16787#include <string.h> 16788void foo(void *p, void *q) { memmove(p, q, 19); } 16789int main() { 16790 char a[32] = "123456789000000000"; 16791 foo(&a[9], a); 16792 if (strcmp(a, "123456789123456789000000000") != 0) 16793 return 1; 16794 foo(a, &a[9]); 16795 if (strcmp(a, "123456789000000000") != 0) 16796 return 1; 16797 return 0; 16798} 16799 16800_ACEOF 16801if ac_fn_c_try_run "$LINENO"; then : 16802 have_glibc_memmove_bug=no 16803else 16804 have_glibc_memmove_bug=yes 16805fi 16806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16807 conftest.$ac_objext conftest.beam conftest.$ac_ext 16808fi 16809 16810CFLAGS="$saved_cflags" 16811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 16812$as_echo "$have_glibc_memmove_bug" >&6; } 16813if test "$have_glibc_memmove_bug" = yes; then 16814 16815$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 16816 16817fi 16818 16819if test "$have_gcc_asm_for_x87" = yes; then 16820 # Some versions of gcc miscompile inline asm: 16821 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 16822 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 16823 case $CC in 16824 *gcc*) 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 16826$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } 16827 saved_cflags="$CFLAGS" 16828 CFLAGS="-O2" 16829 if test "$cross_compiling" = yes; then : 16830 have_ipa_pure_const_bug=undefined 16831else 16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16833/* end confdefs.h. */ 16834 16835 __attribute__((noinline)) int 16836 foo(int *p) { 16837 int r; 16838 asm ( "movl \$6, (%1)\n\t" 16839 "xorl %0, %0\n\t" 16840 : "=r" (r) : "r" (p) : "memory" 16841 ); 16842 return r; 16843 } 16844 int main() { 16845 int p = 8; 16846 if ((foo(&p) ? : p) != 6) 16847 return 1; 16848 return 0; 16849 } 16850 16851_ACEOF 16852if ac_fn_c_try_run "$LINENO"; then : 16853 have_ipa_pure_const_bug=no 16854else 16855 have_ipa_pure_const_bug=yes 16856fi 16857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16858 conftest.$ac_objext conftest.beam conftest.$ac_ext 16859fi 16860 16861 CFLAGS="$saved_cflags" 16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 16863$as_echo "$have_ipa_pure_const_bug" >&6; } 16864 if test "$have_ipa_pure_const_bug" = yes; then 16865 16866$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 16867 16868 fi 16869 ;; 16870 esac 16871fi 16872 16873# Check for stdatomic.h 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 16875$as_echo_n "checking for stdatomic.h... " >&6; } 16876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877/* end confdefs.h. */ 16878 16879 16880 #include <stdatomic.h> 16881 atomic_int int_var; 16882 atomic_uintptr_t uintptr_var; 16883 int main() { 16884 atomic_store_explicit(&int_var, 5, memory_order_relaxed); 16885 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); 16886 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); 16887 return 0; 16888 } 16889 16890 16891_ACEOF 16892if ac_fn_c_try_link "$LINENO"; then : 16893 have_stdatomic_h=yes 16894else 16895 have_stdatomic_h=no 16896fi 16897rm -f core conftest.err conftest.$ac_objext \ 16898 conftest$ac_exeext conftest.$ac_ext 16899 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 16901$as_echo "$have_stdatomic_h" >&6; } 16902 16903if test "$have_stdatomic_h" = yes; then 16904 16905$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h 16906 16907fi 16908 16909# Check for GCC >= 4.7 __atomic builtins 16910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 16911$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } 16912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914 16915 16916 volatile int val = 1; 16917 int main() { 16918 __atomic_load_n(&val, __ATOMIC_SEQ_CST); 16919 return 0; 16920 } 16921 16922 16923_ACEOF 16924if ac_fn_c_try_link "$LINENO"; then : 16925 have_builtin_atomic=yes 16926else 16927 have_builtin_atomic=no 16928fi 16929rm -f core conftest.err conftest.$ac_objext \ 16930 conftest$ac_exeext conftest.$ac_ext 16931 16932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 16933$as_echo "$have_builtin_atomic" >&6; } 16934 16935if test "$have_builtin_atomic" = yes; then 16936 16937$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 16938 16939fi 16940 16941# ensurepip option 16942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 16943$as_echo_n "checking for ensurepip... " >&6; } 16944 16945# Check whether --with-ensurepip was given. 16946if test "${with_ensurepip+set}" = set; then : 16947 withval=$with_ensurepip; 16948else 16949 with_ensurepip=upgrade 16950fi 16951 16952case $with_ensurepip in #( 16953 yes|upgrade) : 16954 ENSUREPIP=upgrade ;; #( 16955 install) : 16956 ENSUREPIP=install ;; #( 16957 no) : 16958 ENSUREPIP=no ;; #( 16959 *) : 16960 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 16961esac 16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 16963$as_echo "$ENSUREPIP" >&6; } 16964 16965 16966# check if the dirent structure of a d_type field and DT_UNKNOWN is defined 16967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 16968$as_echo_n "checking if the dirent structure of a d_type field... " >&6; } 16969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971 16972 16973 #include <dirent.h> 16974 16975 int main() { 16976 struct dirent entry; 16977 return entry.d_type == DT_UNKNOWN; 16978 } 16979 16980 16981_ACEOF 16982if ac_fn_c_try_link "$LINENO"; then : 16983 have_dirent_d_type=yes 16984else 16985 have_dirent_d_type=no 16986fi 16987rm -f core conftest.err conftest.$ac_objext \ 16988 conftest$ac_exeext conftest.$ac_ext 16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 16990$as_echo "$have_dirent_d_type" >&6; } 16991 16992if test "$have_dirent_d_type" = yes; then 16993 16994$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 16995 16996fi 16997 16998# check if the Linux getrandom() syscall is available 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 17000$as_echo_n "checking for the Linux getrandom() syscall... " >&6; } 17001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003 17004 17005 #include <unistd.h> 17006 #include <sys/syscall.h> 17007 #include <linux/random.h> 17008 17009 int main() { 17010 char buffer[1]; 17011 const size_t buflen = sizeof(buffer); 17012 const int flags = GRND_NONBLOCK; 17013 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 17014 (void)syscall(SYS_getrandom, buffer, buflen, flags); 17015 return 0; 17016 } 17017 17018 17019_ACEOF 17020if ac_fn_c_try_link "$LINENO"; then : 17021 have_getrandom_syscall=yes 17022else 17023 have_getrandom_syscall=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext \ 17026 conftest$ac_exeext conftest.$ac_ext 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 17028$as_echo "$have_getrandom_syscall" >&6; } 17029 17030if test "$have_getrandom_syscall" = yes; then 17031 17032$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 17033 17034fi 17035 17036# check if the getrandom() function is available 17037# the test was written for the Solaris function of <sys/random.h> 17038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 17039$as_echo_n "checking for the getrandom() function... " >&6; } 17040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17041/* end confdefs.h. */ 17042 17043 17044 #include <sys/random.h> 17045 17046 int main() { 17047 char buffer[1]; 17048 const size_t buflen = sizeof(buffer); 17049 const int flags = 0; 17050 /* ignore the result, Python checks for ENOSYS at runtime */ 17051 (void)getrandom(buffer, buflen, flags); 17052 return 0; 17053 } 17054 17055 17056_ACEOF 17057if ac_fn_c_try_link "$LINENO"; then : 17058 have_getrandom=yes 17059else 17060 have_getrandom=no 17061fi 17062rm -f core conftest.err conftest.$ac_objext \ 17063 conftest$ac_exeext conftest.$ac_ext 17064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 17065$as_echo "$have_getrandom" >&6; } 17066 17067if test "$have_getrandom" = yes; then 17068 17069$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h 17070 17071fi 17072 17073# Check for usable OpenSSL 17074 17075 found=false 17076 17077# Check whether --with-openssl was given. 17078if test "${with_openssl+set}" = set; then : 17079 withval=$with_openssl; 17080 case "$withval" in 17081 "" | y | ye | yes | n | no) 17082 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 17083 ;; 17084 *) ssldirs="$withval" 17085 ;; 17086 esac 17087 17088else 17089 17090 # if pkg-config is installed and openssl has installed a .pc file, 17091 # then use that information and don't search ssldirs 17092 if test -n "$ac_tool_prefix"; then 17093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17094set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17096$as_echo_n "checking for $ac_word... " >&6; } 17097if ${ac_cv_prog_PKG_CONFIG+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 if test -n "$PKG_CONFIG"; then 17101 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 17102else 17103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17104for as_dir in $PATH 17105do 17106 IFS=$as_save_IFS 17107 test -z "$as_dir" && as_dir=. 17108 for ac_exec_ext in '' $ac_executable_extensions; do 17109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17110 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 17111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17112 break 2 17113 fi 17114done 17115 done 17116IFS=$as_save_IFS 17117 17118fi 17119fi 17120PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 17121if test -n "$PKG_CONFIG"; then 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17123$as_echo "$PKG_CONFIG" >&6; } 17124else 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17126$as_echo "no" >&6; } 17127fi 17128 17129 17130fi 17131if test -z "$ac_cv_prog_PKG_CONFIG"; then 17132 ac_ct_PKG_CONFIG=$PKG_CONFIG 17133 # Extract the first word of "pkg-config", so it can be a program name with args. 17134set dummy pkg-config; ac_word=$2 17135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17136$as_echo_n "checking for $ac_word... " >&6; } 17137if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 17138 $as_echo_n "(cached) " >&6 17139else 17140 if test -n "$ac_ct_PKG_CONFIG"; then 17141 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 17142else 17143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17144for as_dir in $PATH 17145do 17146 IFS=$as_save_IFS 17147 test -z "$as_dir" && as_dir=. 17148 for ac_exec_ext in '' $ac_executable_extensions; do 17149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17150 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 17151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17152 break 2 17153 fi 17154done 17155 done 17156IFS=$as_save_IFS 17157 17158fi 17159fi 17160ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 17161if test -n "$ac_ct_PKG_CONFIG"; then 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 17163$as_echo "$ac_ct_PKG_CONFIG" >&6; } 17164else 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17166$as_echo "no" >&6; } 17167fi 17168 17169 if test "x$ac_ct_PKG_CONFIG" = x; then 17170 PKG_CONFIG="" 17171 else 17172 case $cross_compiling:$ac_tool_warned in 17173yes:) 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17176ac_tool_warned=yes ;; 17177esac 17178 PKG_CONFIG=$ac_ct_PKG_CONFIG 17179 fi 17180else 17181 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 17182fi 17183 17184 if test x"$PKG_CONFIG" != x""; then 17185 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 17186 if test $? = 0; then 17187 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 17188 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 17189 found=true 17190 fi 17191 fi 17192 17193 # no such luck; use some default ssldirs 17194 if ! $found; then 17195 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 17196 fi 17197 17198 17199fi 17200 17201 17202 17203 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 17204 # an 'openssl' subdirectory 17205 17206 if ! $found; then 17207 OPENSSL_INCLUDES= 17208 for ssldir in $ssldirs; do 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 17210$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 17211 if test -f "$ssldir/include/openssl/ssl.h"; then 17212 OPENSSL_INCLUDES="-I$ssldir/include" 17213 OPENSSL_LDFLAGS="-L$ssldir/lib" 17214 OPENSSL_LIBS="-lssl -lcrypto" 17215 found=true 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17217$as_echo "yes" >&6; } 17218 break 17219 else 17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17221$as_echo "no" >&6; } 17222 fi 17223 done 17224 17225 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 17226 # it will just work! 17227 fi 17228 17229 # try the preprocessor and linker with our new flags, 17230 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 17231 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 17233$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 17234 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 17235 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 17236 17237 save_LIBS="$LIBS" 17238 save_LDFLAGS="$LDFLAGS" 17239 save_CPPFLAGS="$CPPFLAGS" 17240 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17241 LIBS="$OPENSSL_LIBS $LIBS" 17242 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245#include <openssl/ssl.h> 17246int 17247main () 17248{ 17249SSL_new(NULL) 17250 ; 17251 return 0; 17252} 17253_ACEOF 17254if ac_fn_c_try_link "$LINENO"; then : 17255 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17257$as_echo "yes" >&6; } 17258 have_openssl=yes 17259 17260else 17261 17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17263$as_echo "no" >&6; } 17264 have_openssl=no 17265 17266fi 17267rm -f core conftest.err conftest.$ac_objext \ 17268 conftest$ac_exeext conftest.$ac_ext 17269 CPPFLAGS="$save_CPPFLAGS" 17270 LDFLAGS="$save_LDFLAGS" 17271 LIBS="$save_LIBS" 17272 17273 17274 17275 17276 17277 17278if test "$have_openssl" = yes; then 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 17280$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } 17281 17282 save_LIBS="$LIBS" 17283 save_LDFLAGS="$LDFLAGS" 17284 save_CPPFLAGS="$CPPFLAGS" 17285 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17286 LIBS="$OPENSSL_LIBS $LIBS" 17287 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17288 17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17290/* end confdefs.h. */ 17291 17292 #include <openssl/x509_vfy.h> 17293 17294int 17295main () 17296{ 17297 17298 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); 17299 X509_VERIFY_PARAM_set1_host(p, "localhost", 0); 17300 X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); 17301 X509_VERIFY_PARAM_set_hostflags(p, 0); 17302 17303 ; 17304 return 0; 17305} 17306 17307_ACEOF 17308if ac_fn_c_try_link "$LINENO"; then : 17309 17310 ac_cv_has_x509_verify_param_set1_host=yes 17311 17312else 17313 17314 ac_cv_has_x509_verify_param_set1_host=no 17315 17316fi 17317rm -f core conftest.err conftest.$ac_objext \ 17318 conftest$ac_exeext conftest.$ac_ext 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 17320$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } 17321 if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then 17322 17323$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 17324 17325 fi 17326 17327 CPPFLAGS="$save_CPPFLAGS" 17328 LDFLAGS="$save_LDFLAGS" 17329 LIBS="$save_LIBS" 17330fi 17331 17332# ssl module default cipher suite string 17333 17334 17335 17336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 17337$as_echo_n "checking for --with-ssl-default-suites... " >&6; } 17338 17339# Check whether --with-ssl-default-suites was given. 17340if test "${with_ssl_default_suites+set}" = set; then : 17341 withval=$with_ssl_default_suites; 17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 17343$as_echo "$withval" >&6; } 17344case "$withval" in 17345 python) 17346 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17347 17348 ;; 17349 openssl) 17350 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h 17351 17352 ;; 17353 *) 17354 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h 17355 17356 cat >>confdefs.h <<_ACEOF 17357#define PY_SSL_DEFAULT_CIPHER_STRING "$withval" 17358_ACEOF 17359 17360 ;; 17361esac 17362 17363else 17364 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 17366$as_echo "python" >&6; } 17367$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17368 17369 17370fi 17371 17372 17373 17374# generate output files 17375ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-config.sh" 17376 17377ac_config_files="$ac_config_files Modules/ld_so_aix" 17378 17379cat >confcache <<\_ACEOF 17380# This file is a shell script that caches the results of configure 17381# tests run on this system so they can be shared between configure 17382# scripts and configure runs, see configure's option --config-cache. 17383# It is not useful on other systems. If it contains results you don't 17384# want to keep, you may remove or edit it. 17385# 17386# config.status only pays attention to the cache file if you give it 17387# the --recheck option to rerun configure. 17388# 17389# `ac_cv_env_foo' variables (set or unset) will be overridden when 17390# loading this file, other *unset* `ac_cv_foo' will be assigned the 17391# following values. 17392 17393_ACEOF 17394 17395# The following way of writing the cache mishandles newlines in values, 17396# but we know of no workaround that is simple, portable, and efficient. 17397# So, we kill variables containing newlines. 17398# Ultrix sh set writes to stderr and can't be redirected directly, 17399# and sets the high bit in the cache file unless we assign to the vars. 17400( 17401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17402 eval ac_val=\$$ac_var 17403 case $ac_val in #( 17404 *${as_nl}*) 17405 case $ac_var in #( 17406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17408 esac 17409 case $ac_var in #( 17410 _ | IFS | as_nl) ;; #( 17411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17412 *) { eval $ac_var=; unset $ac_var;} ;; 17413 esac ;; 17414 esac 17415 done 17416 17417 (set) 2>&1 | 17418 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17419 *${as_nl}ac_space=\ *) 17420 # `set' does not quote correctly, so add quotes: double-quote 17421 # substitution turns \\\\ into \\, and sed turns \\ into \. 17422 sed -n \ 17423 "s/'/'\\\\''/g; 17424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17425 ;; #( 17426 *) 17427 # `set' quotes correctly as required by POSIX, so do not add quotes. 17428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17429 ;; 17430 esac | 17431 sort 17432) | 17433 sed ' 17434 /^ac_cv_env_/b end 17435 t clear 17436 :clear 17437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17438 t end 17439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17440 :end' >>confcache 17441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17442 if test -w "$cache_file"; then 17443 if test "x$cache_file" != "x/dev/null"; then 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17445$as_echo "$as_me: updating cache $cache_file" >&6;} 17446 if test ! -f "$cache_file" || test -h "$cache_file"; then 17447 cat confcache >"$cache_file" 17448 else 17449 case $cache_file in #( 17450 */* | ?:*) 17451 mv -f confcache "$cache_file"$$ && 17452 mv -f "$cache_file"$$ "$cache_file" ;; #( 17453 *) 17454 mv -f confcache "$cache_file" ;; 17455 esac 17456 fi 17457 fi 17458 else 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17460$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17461 fi 17462fi 17463rm -f confcache 17464 17465test "x$prefix" = xNONE && prefix=$ac_default_prefix 17466# Let make expand exec_prefix. 17467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17468 17469DEFS=-DHAVE_CONFIG_H 17470 17471ac_libobjs= 17472ac_ltlibobjs= 17473U= 17474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17475 # 1. Remove the extension, and $U if already installed. 17476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17479 # will be set to the directory where LIBOBJS objects are built. 17480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17482done 17483LIBOBJS=$ac_libobjs 17484 17485LTLIBOBJS=$ac_ltlibobjs 17486 17487 17488 17489 17490: "${CONFIG_STATUS=./config.status}" 17491ac_write_fail=0 17492ac_clean_files_save=$ac_clean_files 17493ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17494{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17495$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17496as_write_fail=0 17497cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17498#! $SHELL 17499# Generated by $as_me. 17500# Run this file to recreate the current configuration. 17501# Compiler output produced by configure, useful for debugging 17502# configure, is in config.log if it exists. 17503 17504debug=false 17505ac_cs_recheck=false 17506ac_cs_silent=false 17507 17508SHELL=\${CONFIG_SHELL-$SHELL} 17509export SHELL 17510_ASEOF 17511cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17512## -------------------- ## 17513## M4sh Initialization. ## 17514## -------------------- ## 17515 17516# Be more Bourne compatible 17517DUALCASE=1; export DUALCASE # for MKS sh 17518if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17519 emulate sh 17520 NULLCMD=: 17521 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17522 # is contrary to our usage. Disable this feature. 17523 alias -g '${1+"$@"}'='"$@"' 17524 setopt NO_GLOB_SUBST 17525else 17526 case `(set -o) 2>/dev/null` in #( 17527 *posix*) : 17528 set -o posix ;; #( 17529 *) : 17530 ;; 17531esac 17532fi 17533 17534 17535as_nl=' 17536' 17537export as_nl 17538# Printing a long string crashes Solaris 7 /usr/bin/printf. 17539as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17540as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17542# Prefer a ksh shell builtin over an external printf program on Solaris, 17543# but without wasting forks for bash or zsh. 17544if test -z "$BASH_VERSION$ZSH_VERSION" \ 17545 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17546 as_echo='print -r --' 17547 as_echo_n='print -rn --' 17548elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17549 as_echo='printf %s\n' 17550 as_echo_n='printf %s' 17551else 17552 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17553 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17554 as_echo_n='/usr/ucb/echo -n' 17555 else 17556 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17557 as_echo_n_body='eval 17558 arg=$1; 17559 case $arg in #( 17560 *"$as_nl"*) 17561 expr "X$arg" : "X\\(.*\\)$as_nl"; 17562 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17563 esac; 17564 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17565 ' 17566 export as_echo_n_body 17567 as_echo_n='sh -c $as_echo_n_body as_echo' 17568 fi 17569 export as_echo_body 17570 as_echo='sh -c $as_echo_body as_echo' 17571fi 17572 17573# The user is always right. 17574if test "${PATH_SEPARATOR+set}" != set; then 17575 PATH_SEPARATOR=: 17576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17578 PATH_SEPARATOR=';' 17579 } 17580fi 17581 17582 17583# IFS 17584# We need space, tab and new line, in precisely that order. Quoting is 17585# there to prevent editors from complaining about space-tab. 17586# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17587# splitting by setting IFS to empty value.) 17588IFS=" "" $as_nl" 17589 17590# Find who we are. Look in the path if we contain no directory separator. 17591as_myself= 17592case $0 in #(( 17593 *[\\/]* ) as_myself=$0 ;; 17594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17595for as_dir in $PATH 17596do 17597 IFS=$as_save_IFS 17598 test -z "$as_dir" && as_dir=. 17599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17600 done 17601IFS=$as_save_IFS 17602 17603 ;; 17604esac 17605# We did not find ourselves, most probably we were run as `sh COMMAND' 17606# in which case we are not to be found in the path. 17607if test "x$as_myself" = x; then 17608 as_myself=$0 17609fi 17610if test ! -f "$as_myself"; then 17611 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17612 exit 1 17613fi 17614 17615# Unset variables that we do not need and which cause bugs (e.g. in 17616# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17617# suppresses any "Segmentation fault" message there. '((' could 17618# trigger a bug in pdksh 5.2.14. 17619for as_var in BASH_ENV ENV MAIL MAILPATH 17620do eval test x\${$as_var+set} = xset \ 17621 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17622done 17623PS1='$ ' 17624PS2='> ' 17625PS4='+ ' 17626 17627# NLS nuisances. 17628LC_ALL=C 17629export LC_ALL 17630LANGUAGE=C 17631export LANGUAGE 17632 17633# CDPATH. 17634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17635 17636 17637# as_fn_error STATUS ERROR [LINENO LOG_FD] 17638# ---------------------------------------- 17639# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17640# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17641# script with STATUS, using 1 if that was 0. 17642as_fn_error () 17643{ 17644 as_status=$1; test $as_status -eq 0 && as_status=1 17645 if test "$4"; then 17646 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17647 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17648 fi 17649 $as_echo "$as_me: error: $2" >&2 17650 as_fn_exit $as_status 17651} # as_fn_error 17652 17653 17654# as_fn_set_status STATUS 17655# ----------------------- 17656# Set $? to STATUS, without forking. 17657as_fn_set_status () 17658{ 17659 return $1 17660} # as_fn_set_status 17661 17662# as_fn_exit STATUS 17663# ----------------- 17664# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17665as_fn_exit () 17666{ 17667 set +e 17668 as_fn_set_status $1 17669 exit $1 17670} # as_fn_exit 17671 17672# as_fn_unset VAR 17673# --------------- 17674# Portably unset VAR. 17675as_fn_unset () 17676{ 17677 { eval $1=; unset $1;} 17678} 17679as_unset=as_fn_unset 17680# as_fn_append VAR VALUE 17681# ---------------------- 17682# Append the text in VALUE to the end of the definition contained in VAR. Take 17683# advantage of any shell optimizations that allow amortized linear growth over 17684# repeated appends, instead of the typical quadratic growth present in naive 17685# implementations. 17686if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17687 eval 'as_fn_append () 17688 { 17689 eval $1+=\$2 17690 }' 17691else 17692 as_fn_append () 17693 { 17694 eval $1=\$$1\$2 17695 } 17696fi # as_fn_append 17697 17698# as_fn_arith ARG... 17699# ------------------ 17700# Perform arithmetic evaluation on the ARGs, and store the result in the 17701# global $as_val. Take advantage of shells that can avoid forks. The arguments 17702# must be portable across $(()) and expr. 17703if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17704 eval 'as_fn_arith () 17705 { 17706 as_val=$(( $* )) 17707 }' 17708else 17709 as_fn_arith () 17710 { 17711 as_val=`expr "$@" || test $? -eq 1` 17712 } 17713fi # as_fn_arith 17714 17715 17716if expr a : '\(a\)' >/dev/null 2>&1 && 17717 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17718 as_expr=expr 17719else 17720 as_expr=false 17721fi 17722 17723if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17724 as_basename=basename 17725else 17726 as_basename=false 17727fi 17728 17729if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17730 as_dirname=dirname 17731else 17732 as_dirname=false 17733fi 17734 17735as_me=`$as_basename -- "$0" || 17736$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17737 X"$0" : 'X\(//\)$' \| \ 17738 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17739$as_echo X/"$0" | 17740 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17741 s//\1/ 17742 q 17743 } 17744 /^X\/\(\/\/\)$/{ 17745 s//\1/ 17746 q 17747 } 17748 /^X\/\(\/\).*/{ 17749 s//\1/ 17750 q 17751 } 17752 s/.*/./; q'` 17753 17754# Avoid depending upon Character Ranges. 17755as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17756as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17757as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17758as_cr_digits='0123456789' 17759as_cr_alnum=$as_cr_Letters$as_cr_digits 17760 17761ECHO_C= ECHO_N= ECHO_T= 17762case `echo -n x` in #((((( 17763-n*) 17764 case `echo 'xy\c'` in 17765 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17766 xy) ECHO_C='\c';; 17767 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17768 ECHO_T=' ';; 17769 esac;; 17770*) 17771 ECHO_N='-n';; 17772esac 17773 17774rm -f conf$$ conf$$.exe conf$$.file 17775if test -d conf$$.dir; then 17776 rm -f conf$$.dir/conf$$.file 17777else 17778 rm -f conf$$.dir 17779 mkdir conf$$.dir 2>/dev/null 17780fi 17781if (echo >conf$$.file) 2>/dev/null; then 17782 if ln -s conf$$.file conf$$ 2>/dev/null; then 17783 as_ln_s='ln -s' 17784 # ... but there are two gotchas: 17785 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17786 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17787 # In both cases, we have to default to `cp -pR'. 17788 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17789 as_ln_s='cp -pR' 17790 elif ln conf$$.file conf$$ 2>/dev/null; then 17791 as_ln_s=ln 17792 else 17793 as_ln_s='cp -pR' 17794 fi 17795else 17796 as_ln_s='cp -pR' 17797fi 17798rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17799rmdir conf$$.dir 2>/dev/null 17800 17801 17802# as_fn_mkdir_p 17803# ------------- 17804# Create "$as_dir" as a directory, including parents if necessary. 17805as_fn_mkdir_p () 17806{ 17807 17808 case $as_dir in #( 17809 -*) as_dir=./$as_dir;; 17810 esac 17811 test -d "$as_dir" || eval $as_mkdir_p || { 17812 as_dirs= 17813 while :; do 17814 case $as_dir in #( 17815 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17816 *) as_qdir=$as_dir;; 17817 esac 17818 as_dirs="'$as_qdir' $as_dirs" 17819 as_dir=`$as_dirname -- "$as_dir" || 17820$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17821 X"$as_dir" : 'X\(//\)[^/]' \| \ 17822 X"$as_dir" : 'X\(//\)$' \| \ 17823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17824$as_echo X"$as_dir" | 17825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17826 s//\1/ 17827 q 17828 } 17829 /^X\(\/\/\)[^/].*/{ 17830 s//\1/ 17831 q 17832 } 17833 /^X\(\/\/\)$/{ 17834 s//\1/ 17835 q 17836 } 17837 /^X\(\/\).*/{ 17838 s//\1/ 17839 q 17840 } 17841 s/.*/./; q'` 17842 test -d "$as_dir" && break 17843 done 17844 test -z "$as_dirs" || eval "mkdir $as_dirs" 17845 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17846 17847 17848} # as_fn_mkdir_p 17849if mkdir -p . 2>/dev/null; then 17850 as_mkdir_p='mkdir -p "$as_dir"' 17851else 17852 test -d ./-p && rmdir ./-p 17853 as_mkdir_p=false 17854fi 17855 17856 17857# as_fn_executable_p FILE 17858# ----------------------- 17859# Test if FILE is an executable regular file. 17860as_fn_executable_p () 17861{ 17862 test -f "$1" && test -x "$1" 17863} # as_fn_executable_p 17864as_test_x='test -x' 17865as_executable_p=as_fn_executable_p 17866 17867# Sed expression to map a string onto a valid CPP name. 17868as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17869 17870# Sed expression to map a string onto a valid variable name. 17871as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17872 17873 17874exec 6>&1 17875## ----------------------------------- ## 17876## Main body of $CONFIG_STATUS script. ## 17877## ----------------------------------- ## 17878_ASEOF 17879test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17880 17881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17882# Save the log message, to keep $0 and so on meaningful, and to 17883# report actual input values of CONFIG_FILES etc. instead of their 17884# values after options handling. 17885ac_log=" 17886This file was extended by python $as_me 3.7, which was 17887generated by GNU Autoconf 2.69. Invocation command line was 17888 17889 CONFIG_FILES = $CONFIG_FILES 17890 CONFIG_HEADERS = $CONFIG_HEADERS 17891 CONFIG_LINKS = $CONFIG_LINKS 17892 CONFIG_COMMANDS = $CONFIG_COMMANDS 17893 $ $0 $@ 17894 17895on `(hostname || uname -n) 2>/dev/null | sed 1q` 17896" 17897 17898_ACEOF 17899 17900case $ac_config_files in *" 17901"*) set x $ac_config_files; shift; ac_config_files=$*;; 17902esac 17903 17904case $ac_config_headers in *" 17905"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17906esac 17907 17908 17909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17910# Files that config.status was made for. 17911config_files="$ac_config_files" 17912config_headers="$ac_config_headers" 17913 17914_ACEOF 17915 17916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17917ac_cs_usage="\ 17918\`$as_me' instantiates files and other configuration actions 17919from templates according to the current configuration. Unless the files 17920and actions are specified as TAGs, all are instantiated by default. 17921 17922Usage: $0 [OPTION]... [TAG]... 17923 17924 -h, --help print this help, then exit 17925 -V, --version print version number and configuration settings, then exit 17926 --config print configuration, then exit 17927 -q, --quiet, --silent 17928 do not print progress messages 17929 -d, --debug don't remove temporary files 17930 --recheck update $as_me by reconfiguring in the same conditions 17931 --file=FILE[:TEMPLATE] 17932 instantiate the configuration file FILE 17933 --header=FILE[:TEMPLATE] 17934 instantiate the configuration header FILE 17935 17936Configuration files: 17937$config_files 17938 17939Configuration headers: 17940$config_headers 17941 17942Report bugs to <https://bugs.python.org/>." 17943 17944_ACEOF 17945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17946ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17947ac_cs_version="\\ 17948python config.status 3.7 17949configured by $0, generated by GNU Autoconf 2.69, 17950 with options \\"\$ac_cs_config\\" 17951 17952Copyright (C) 2012 Free Software Foundation, Inc. 17953This config.status script is free software; the Free Software Foundation 17954gives unlimited permission to copy, distribute and modify it." 17955 17956ac_pwd='$ac_pwd' 17957srcdir='$srcdir' 17958INSTALL='$INSTALL' 17959MKDIR_P='$MKDIR_P' 17960test -n "\$AWK" || AWK=awk 17961_ACEOF 17962 17963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17964# The default lists apply if the user does not specify any file. 17965ac_need_defaults=: 17966while test $# != 0 17967do 17968 case $1 in 17969 --*=?*) 17970 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17971 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17972 ac_shift=: 17973 ;; 17974 --*=) 17975 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17976 ac_optarg= 17977 ac_shift=: 17978 ;; 17979 *) 17980 ac_option=$1 17981 ac_optarg=$2 17982 ac_shift=shift 17983 ;; 17984 esac 17985 17986 case $ac_option in 17987 # Handling of the options. 17988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17989 ac_cs_recheck=: ;; 17990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17991 $as_echo "$ac_cs_version"; exit ;; 17992 --config | --confi | --conf | --con | --co | --c ) 17993 $as_echo "$ac_cs_config"; exit ;; 17994 --debug | --debu | --deb | --de | --d | -d ) 17995 debug=: ;; 17996 --file | --fil | --fi | --f ) 17997 $ac_shift 17998 case $ac_optarg in 17999 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18000 '') as_fn_error $? "missing file argument" ;; 18001 esac 18002 as_fn_append CONFIG_FILES " '$ac_optarg'" 18003 ac_need_defaults=false;; 18004 --header | --heade | --head | --hea ) 18005 $ac_shift 18006 case $ac_optarg in 18007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18008 esac 18009 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18010 ac_need_defaults=false;; 18011 --he | --h) 18012 # Conflict between --help and --header 18013 as_fn_error $? "ambiguous option: \`$1' 18014Try \`$0 --help' for more information.";; 18015 --help | --hel | -h ) 18016 $as_echo "$ac_cs_usage"; exit ;; 18017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18018 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18019 ac_cs_silent=: ;; 18020 18021 # This is an error. 18022 -*) as_fn_error $? "unrecognized option: \`$1' 18023Try \`$0 --help' for more information." ;; 18024 18025 *) as_fn_append ac_config_targets " $1" 18026 ac_need_defaults=false ;; 18027 18028 esac 18029 shift 18030done 18031 18032ac_configure_extra_args= 18033 18034if $ac_cs_silent; then 18035 exec 6>/dev/null 18036 ac_configure_extra_args="$ac_configure_extra_args --silent" 18037fi 18038 18039_ACEOF 18040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18041if \$ac_cs_recheck; then 18042 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18043 shift 18044 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18045 CONFIG_SHELL='$SHELL' 18046 export CONFIG_SHELL 18047 exec "\$@" 18048fi 18049 18050_ACEOF 18051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18052exec 5>>config.log 18053{ 18054 echo 18055 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18056## Running $as_me. ## 18057_ASBOX 18058 $as_echo "$ac_log" 18059} >&5 18060 18061_ACEOF 18062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18063_ACEOF 18064 18065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18066 18067# Handling of arguments. 18068for ac_config_target in $ac_config_targets 18069do 18070 case $ac_config_target in 18071 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 18072 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 18073 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 18074 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 18075 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 18076 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 18077 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 18078 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 18079 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 18080 18081 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18082 esac 18083done 18084 18085 18086# If the user did not use the arguments to specify the items to instantiate, 18087# then the envvar interface is used. Set only those that are not. 18088# We use the long form for the default assignment because of an extremely 18089# bizarre bug on SunOS 4.1.3. 18090if $ac_need_defaults; then 18091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18093fi 18094 18095# Have a temporary directory for convenience. Make it in the build tree 18096# simply because there is no reason against having it here, and in addition, 18097# creating and moving files from /tmp can sometimes cause problems. 18098# Hook for its removal unless debugging. 18099# Note that there is a small window in which the directory will not be cleaned: 18100# after its creation but before its name has been assigned to `$tmp'. 18101$debug || 18102{ 18103 tmp= ac_tmp= 18104 trap 'exit_status=$? 18105 : "${ac_tmp:=$tmp}" 18106 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18107' 0 18108 trap 'as_fn_exit 1' 1 2 13 15 18109} 18110# Create a (secure) tmp directory for tmp files. 18111 18112{ 18113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18114 test -d "$tmp" 18115} || 18116{ 18117 tmp=./conf$$-$RANDOM 18118 (umask 077 && mkdir "$tmp") 18119} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18120ac_tmp=$tmp 18121 18122# Set up the scripts for CONFIG_FILES section. 18123# No need to generate them if there are no CONFIG_FILES. 18124# This happens for instance with `./config.status config.h'. 18125if test -n "$CONFIG_FILES"; then 18126 18127 18128ac_cr=`echo X | tr X '\015'` 18129# On cygwin, bash can eat \r inside `` if the user requested igncr. 18130# But we know of no other shell where ac_cr would be empty at this 18131# point, so we can use a bashism as a fallback. 18132if test "x$ac_cr" = x; then 18133 eval ac_cr=\$\'\\r\' 18134fi 18135ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18136if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18137 ac_cs_awk_cr='\\r' 18138else 18139 ac_cs_awk_cr=$ac_cr 18140fi 18141 18142echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18143_ACEOF 18144 18145 18146{ 18147 echo "cat >conf$$subs.awk <<_ACEOF" && 18148 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18149 echo "_ACEOF" 18150} >conf$$subs.sh || 18151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18152ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18153ac_delim='%!_!# ' 18154for ac_last_try in false false false false false :; do 18155 . ./conf$$subs.sh || 18156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18157 18158 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18159 if test $ac_delim_n = $ac_delim_num; then 18160 break 18161 elif $ac_last_try; then 18162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18163 else 18164 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18165 fi 18166done 18167rm -f conf$$subs.sh 18168 18169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18170cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18171_ACEOF 18172sed -n ' 18173h 18174s/^/S["/; s/!.*/"]=/ 18175p 18176g 18177s/^[^!]*!// 18178:repl 18179t repl 18180s/'"$ac_delim"'$// 18181t delim 18182:nl 18183h 18184s/\(.\{148\}\)..*/\1/ 18185t more1 18186s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18187p 18188n 18189b repl 18190:more1 18191s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18192p 18193g 18194s/.\{148\}// 18195t nl 18196:delim 18197h 18198s/\(.\{148\}\)..*/\1/ 18199t more2 18200s/["\\]/\\&/g; s/^/"/; s/$/"/ 18201p 18202b 18203:more2 18204s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18205p 18206g 18207s/.\{148\}// 18208t delim 18209' <conf$$subs.awk | sed ' 18210/^[^""]/{ 18211 N 18212 s/\n// 18213} 18214' >>$CONFIG_STATUS || ac_write_fail=1 18215rm -f conf$$subs.awk 18216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18217_ACAWK 18218cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18219 for (key in S) S_is_set[key] = 1 18220 FS = "" 18221 18222} 18223{ 18224 line = $ 0 18225 nfields = split(line, field, "@") 18226 substed = 0 18227 len = length(field[1]) 18228 for (i = 2; i < nfields; i++) { 18229 key = field[i] 18230 keylen = length(key) 18231 if (S_is_set[key]) { 18232 value = S[key] 18233 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18234 len += length(value) + length(field[++i]) 18235 substed = 1 18236 } else 18237 len += 1 + keylen 18238 } 18239 18240 print line 18241} 18242 18243_ACAWK 18244_ACEOF 18245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18246if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18247 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18248else 18249 cat 18250fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18251 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18252_ACEOF 18253 18254# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18255# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18256# trailing colons and then remove the whole line if VPATH becomes empty 18257# (actually we leave an empty line to preserve line numbers). 18258if test "x$srcdir" = x.; then 18259 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18260h 18261s/// 18262s/^/:/ 18263s/[ ]*$/:/ 18264s/:\$(srcdir):/:/g 18265s/:\${srcdir}:/:/g 18266s/:@srcdir@:/:/g 18267s/^:*// 18268s/:*$// 18269x 18270s/\(=[ ]*\).*/\1/ 18271G 18272s/\n// 18273s/^[^=]*=[ ]*$// 18274}' 18275fi 18276 18277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18278fi # test -n "$CONFIG_FILES" 18279 18280# Set up the scripts for CONFIG_HEADERS section. 18281# No need to generate them if there are no CONFIG_HEADERS. 18282# This happens for instance with `./config.status Makefile'. 18283if test -n "$CONFIG_HEADERS"; then 18284cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18285BEGIN { 18286_ACEOF 18287 18288# Transform confdefs.h into an awk script `defines.awk', embedded as 18289# here-document in config.status, that substitutes the proper values into 18290# config.h.in to produce config.h. 18291 18292# Create a delimiter string that does not exist in confdefs.h, to ease 18293# handling of long lines. 18294ac_delim='%!_!# ' 18295for ac_last_try in false false :; do 18296 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18297 if test -z "$ac_tt"; then 18298 break 18299 elif $ac_last_try; then 18300 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18301 else 18302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18303 fi 18304done 18305 18306# For the awk script, D is an array of macro values keyed by name, 18307# likewise P contains macro parameters if any. Preserve backslash 18308# newline sequences. 18309 18310ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18311sed -n ' 18312s/.\{148\}/&'"$ac_delim"'/g 18313t rset 18314:rset 18315s/^[ ]*#[ ]*define[ ][ ]*/ / 18316t def 18317d 18318:def 18319s/\\$// 18320t bsnl 18321s/["\\]/\\&/g 18322s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18323D["\1"]=" \3"/p 18324s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18325d 18326:bsnl 18327s/["\\]/\\&/g 18328s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18329D["\1"]=" \3\\\\\\n"\\/p 18330t cont 18331s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18332t cont 18333d 18334:cont 18335n 18336s/.\{148\}/&'"$ac_delim"'/g 18337t clear 18338:clear 18339s/\\$// 18340t bsnlc 18341s/["\\]/\\&/g; s/^/"/; s/$/"/p 18342d 18343:bsnlc 18344s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18345b cont 18346' <confdefs.h | sed ' 18347s/'"$ac_delim"'/"\\\ 18348"/g' >>$CONFIG_STATUS || ac_write_fail=1 18349 18350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18351 for (key in D) D_is_set[key] = 1 18352 FS = "" 18353} 18354/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18355 line = \$ 0 18356 split(line, arg, " ") 18357 if (arg[1] == "#") { 18358 defundef = arg[2] 18359 mac1 = arg[3] 18360 } else { 18361 defundef = substr(arg[1], 2) 18362 mac1 = arg[2] 18363 } 18364 split(mac1, mac2, "(") #) 18365 macro = mac2[1] 18366 prefix = substr(line, 1, index(line, defundef) - 1) 18367 if (D_is_set[macro]) { 18368 # Preserve the white space surrounding the "#". 18369 print prefix "define", macro P[macro] D[macro] 18370 next 18371 } else { 18372 # Replace #undef with comments. This is necessary, for example, 18373 # in the case of _POSIX_SOURCE, which is predefined and required 18374 # on some systems where configure will not decide to define it. 18375 if (defundef == "undef") { 18376 print "/*", prefix defundef, macro, "*/" 18377 next 18378 } 18379 } 18380} 18381{ print } 18382_ACAWK 18383_ACEOF 18384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18385 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18386fi # test -n "$CONFIG_HEADERS" 18387 18388 18389eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 18390shift 18391for ac_tag 18392do 18393 case $ac_tag in 18394 :[FHLC]) ac_mode=$ac_tag; continue;; 18395 esac 18396 case $ac_mode$ac_tag in 18397 :[FHL]*:*);; 18398 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18399 :[FH]-) ac_tag=-:-;; 18400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18401 esac 18402 ac_save_IFS=$IFS 18403 IFS=: 18404 set x $ac_tag 18405 IFS=$ac_save_IFS 18406 shift 18407 ac_file=$1 18408 shift 18409 18410 case $ac_mode in 18411 :L) ac_source=$1;; 18412 :[FH]) 18413 ac_file_inputs= 18414 for ac_f 18415 do 18416 case $ac_f in 18417 -) ac_f="$ac_tmp/stdin";; 18418 *) # Look for the file first in the build tree, then in the source tree 18419 # (if the path is not absolute). The absolute path cannot be DOS-style, 18420 # because $ac_f cannot contain `:'. 18421 test -f "$ac_f" || 18422 case $ac_f in 18423 [\\/$]*) false;; 18424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18425 esac || 18426 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18427 esac 18428 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18429 as_fn_append ac_file_inputs " '$ac_f'" 18430 done 18431 18432 # Let's still pretend it is `configure' which instantiates (i.e., don't 18433 # use $as_me), people would be surprised to read: 18434 # /* config.h. Generated by config.status. */ 18435 configure_input='Generated from '` 18436 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18437 `' by configure.' 18438 if test x"$ac_file" != x-; then 18439 configure_input="$ac_file. $configure_input" 18440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18441$as_echo "$as_me: creating $ac_file" >&6;} 18442 fi 18443 # Neutralize special characters interpreted by sed in replacement strings. 18444 case $configure_input in #( 18445 *\&* | *\|* | *\\* ) 18446 ac_sed_conf_input=`$as_echo "$configure_input" | 18447 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18448 *) ac_sed_conf_input=$configure_input;; 18449 esac 18450 18451 case $ac_tag in 18452 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18454 esac 18455 ;; 18456 esac 18457 18458 ac_dir=`$as_dirname -- "$ac_file" || 18459$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18460 X"$ac_file" : 'X\(//\)[^/]' \| \ 18461 X"$ac_file" : 'X\(//\)$' \| \ 18462 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18463$as_echo X"$ac_file" | 18464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18465 s//\1/ 18466 q 18467 } 18468 /^X\(\/\/\)[^/].*/{ 18469 s//\1/ 18470 q 18471 } 18472 /^X\(\/\/\)$/{ 18473 s//\1/ 18474 q 18475 } 18476 /^X\(\/\).*/{ 18477 s//\1/ 18478 q 18479 } 18480 s/.*/./; q'` 18481 as_dir="$ac_dir"; as_fn_mkdir_p 18482 ac_builddir=. 18483 18484case "$ac_dir" in 18485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18486*) 18487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18488 # A ".." for each directory in $ac_dir_suffix. 18489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18490 case $ac_top_builddir_sub in 18491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18493 esac ;; 18494esac 18495ac_abs_top_builddir=$ac_pwd 18496ac_abs_builddir=$ac_pwd$ac_dir_suffix 18497# for backward compatibility: 18498ac_top_builddir=$ac_top_build_prefix 18499 18500case $srcdir in 18501 .) # We are building in place. 18502 ac_srcdir=. 18503 ac_top_srcdir=$ac_top_builddir_sub 18504 ac_abs_top_srcdir=$ac_pwd ;; 18505 [\\/]* | ?:[\\/]* ) # Absolute name. 18506 ac_srcdir=$srcdir$ac_dir_suffix; 18507 ac_top_srcdir=$srcdir 18508 ac_abs_top_srcdir=$srcdir ;; 18509 *) # Relative name. 18510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18511 ac_top_srcdir=$ac_top_build_prefix$srcdir 18512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18513esac 18514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18515 18516 18517 case $ac_mode in 18518 :F) 18519 # 18520 # CONFIG_FILE 18521 # 18522 18523 case $INSTALL in 18524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18525 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18526 esac 18527 ac_MKDIR_P=$MKDIR_P 18528 case $MKDIR_P in 18529 [\\/$]* | ?:[\\/]* ) ;; 18530 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18531 esac 18532_ACEOF 18533 18534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18535# If the template does not know about datarootdir, expand it. 18536# FIXME: This hack should be removed a few years after 2.60. 18537ac_datarootdir_hack=; ac_datarootdir_seen= 18538ac_sed_dataroot=' 18539/datarootdir/ { 18540 p 18541 q 18542} 18543/@datadir@/p 18544/@docdir@/p 18545/@infodir@/p 18546/@localedir@/p 18547/@mandir@/p' 18548case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18549*datarootdir*) ac_datarootdir_seen=yes;; 18550*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18552$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18553_ACEOF 18554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18555 ac_datarootdir_hack=' 18556 s&@datadir@&$datadir&g 18557 s&@docdir@&$docdir&g 18558 s&@infodir@&$infodir&g 18559 s&@localedir@&$localedir&g 18560 s&@mandir@&$mandir&g 18561 s&\\\${datarootdir}&$datarootdir&g' ;; 18562esac 18563_ACEOF 18564 18565# Neutralize VPATH when `$srcdir' = `.'. 18566# Shell code in configure.ac might set extrasub. 18567# FIXME: do we really want to maintain this feature? 18568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18569ac_sed_extra="$ac_vpsub 18570$extrasub 18571_ACEOF 18572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18573:t 18574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18575s|@configure_input@|$ac_sed_conf_input|;t t 18576s&@top_builddir@&$ac_top_builddir_sub&;t t 18577s&@top_build_prefix@&$ac_top_build_prefix&;t t 18578s&@srcdir@&$ac_srcdir&;t t 18579s&@abs_srcdir@&$ac_abs_srcdir&;t t 18580s&@top_srcdir@&$ac_top_srcdir&;t t 18581s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18582s&@builddir@&$ac_builddir&;t t 18583s&@abs_builddir@&$ac_abs_builddir&;t t 18584s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18585s&@INSTALL@&$ac_INSTALL&;t t 18586s&@MKDIR_P@&$ac_MKDIR_P&;t t 18587$ac_datarootdir_hack 18588" 18589eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18590 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18591 18592test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18593 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18595 "$ac_tmp/out"`; test -z "$ac_out"; } && 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18597which seems to be undefined. Please make sure it is defined" >&5 18598$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18599which seems to be undefined. Please make sure it is defined" >&2;} 18600 18601 rm -f "$ac_tmp/stdin" 18602 case $ac_file in 18603 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18604 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18605 esac \ 18606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18607 ;; 18608 :H) 18609 # 18610 # CONFIG_HEADER 18611 # 18612 if test x"$ac_file" != x-; then 18613 { 18614 $as_echo "/* $configure_input */" \ 18615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18616 } >"$ac_tmp/config.h" \ 18617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18618 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18620$as_echo "$as_me: $ac_file is unchanged" >&6;} 18621 else 18622 rm -f "$ac_file" 18623 mv "$ac_tmp/config.h" "$ac_file" \ 18624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18625 fi 18626 else 18627 $as_echo "/* $configure_input */" \ 18628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18629 || as_fn_error $? "could not create -" "$LINENO" 5 18630 fi 18631 ;; 18632 18633 18634 esac 18635 18636 18637 case $ac_file$ac_mode in 18638 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 18639 18640 esac 18641done # for ac_tag 18642 18643 18644as_fn_exit 0 18645_ACEOF 18646ac_clean_files=$ac_clean_files_save 18647 18648test $ac_write_fail = 0 || 18649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18650 18651 18652# configure is writing to config.log, and then calls config.status. 18653# config.status does its own redirection, appending to config.log. 18654# Unfortunately, on DOS this fails, as config.log is still kept open 18655# by configure, so config.status won't be able to write to it; its 18656# output is simply discarded. So we exec the FD to /dev/null, 18657# effectively closing config.log, so it can be properly (re)opened and 18658# appended to by config.status. When coming back to configure, we 18659# need to make the FD available again. 18660if test "$no_create" != yes; then 18661 ac_cs_success=: 18662 ac_config_status_args= 18663 test "$silent" = yes && 18664 ac_config_status_args="$ac_config_status_args --quiet" 18665 exec 5>/dev/null 18666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18667 exec 5>>config.log 18668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18669 # would make configure fail if this is the last instruction. 18670 $ac_cs_success || as_fn_exit 1 18671fi 18672if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18674$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18675fi 18676 18677 18678echo "creating Modules/Setup" >&6 18679if test ! -f Modules/Setup 18680then 18681 cp $srcdir/Modules/Setup.dist Modules/Setup 18682fi 18683 18684echo "creating Modules/Setup.local" >&6 18685if test ! -f Modules/Setup.local 18686then 18687 echo "# Edit this file for local setup changes" >Modules/Setup.local 18688fi 18689 18690echo "creating Makefile" >&6 18691$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 18692 -s Modules \ 18693 Modules/Setup.local Modules/Setup 18694mv config.c Modules 18695 18696if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 18697 echo "" >&6 18698 echo "" >&6 18699 echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 18700 echo "please run ./configure --enable-optimizations" >&6 18701 echo "" >&6 18702 echo "" >&6 18703fi 18704 18705