1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for python 3.6. 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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -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 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 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 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 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 236 fi; } 237 IFS=$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. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $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 259 exit 255 260 fi 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 (at] 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 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_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. 308 as_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. 318 as_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. 366 as_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. 376 if (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 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # 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. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # 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. 411 as_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 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425 else 426 as_expr=false 427 fi 428 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431 else 432 as_basename=false 433 fi 434 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 441 as_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. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_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 503 ECHO_C= ECHO_N= ECHO_T= 504 case `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';; 514 esac 515 516 rm -f conf$$ conf$$.exe conf$$.file 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 523 if (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 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 542 543 if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545 else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548 fi 549 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 552 553 # Sed expression to map a string onto a valid CPP name. 554 as_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. 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 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. 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568 # 569 # Initializations. 570 # 571 ac_default_prefix=/usr/local 572 ac_clean_files= 573 ac_config_libobj_dir=. 574 LIBOBJS= 575 cross_compiling=no 576 subdirs= 577 MFLAGS= 578 MAKEFLAGS= 579 580 # Identity of this package. 581 PACKAGE_NAME='python' 582 PACKAGE_TARNAME='python' 583 PACKAGE_VERSION='3.6' 584 PACKAGE_STRING='python 3.6' 585 PACKAGE_BUGREPORT='https://bugs.python.org/' 586 PACKAGE_URL='' 587 588 ac_unique_file="Include/object.h" 589 # Factoring default headers for most tests. 590 ac_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 625 ac_subst_vars='LTLIBOBJS 626 ENSUREPIP 627 SRCDIRS 628 THREADHEADERS 629 LIBPL 630 PY_ENABLE_SHARED 631 EXT_SUFFIX 632 SOABI 633 LIBC 634 LIBM 635 HAVE_GETHOSTBYNAME 636 HAVE_GETHOSTBYNAME_R 637 HAVE_GETHOSTBYNAME_R_3_ARG 638 HAVE_GETHOSTBYNAME_R_5_ARG 639 HAVE_GETHOSTBYNAME_R_6_ARG 640 LIBOBJS 641 TRUE 642 MACHDEP_OBJS 643 DYNLOADFILE 644 DLINCLDIR 645 DTRACE_OBJS 646 DTRACE_HEADERS 647 DFLAGS 648 DTRACE 649 THREADOBJ 650 LDLAST 651 USE_THREAD_MODULE 652 TCLTK_LIBS 653 TCLTK_INCLUDES 654 LIBFFI_INCLUDEDIR 655 PKG_CONFIG_LIBDIR 656 PKG_CONFIG_PATH 657 PKG_CONFIG 658 SHLIBS 659 CFLAGSFORSHARED 660 LINKFORSHARED 661 CCSHARED 662 BLDSHARED 663 LDCXXSHARED 664 LDSHARED 665 SHLIB_SUFFIX 666 LIBTOOL_CRUFT 667 OTHER_LIBTOOL_OPT 668 UNIVERSAL_ARCH_FLAGS 669 CFLAGS_NODIST 670 BASECFLAGS 671 OPT 672 LLVM_PROF_FOUND 673 target_os 674 target_vendor 675 target_cpu 676 target 677 LLVM_PROFDATA 678 LLVM_PROF_ERR 679 LLVM_PROF_FILE 680 LLVM_PROF_MERGER 681 PGO_PROF_USE_FLAG 682 PGO_PROF_GEN_FLAG 683 LTOFLAGS 684 DEF_MAKE_RULE 685 DEF_MAKE_ALL_RULE 686 ABIFLAGS 687 LN 688 MKDIR_P 689 INSTALL_DATA 690 INSTALL_SCRIPT 691 INSTALL_PROGRAM 692 ac_ct_READELF 693 READELF 694 ARFLAGS 695 ac_ct_AR 696 AR 697 RANLIB 698 USE_INLINE 699 GNULD 700 LINKCC 701 LDVERSION 702 RUNSHARED 703 INSTSONAME 704 LDLIBRARYDIR 705 PY3LIBRARY 706 BLDLIBRARY 707 DLLLIBRARY 708 LDLIBRARY 709 LIBRARY 710 BUILDEXEEXT 711 EGREP 712 NO_AS_NEEDED 713 MULTIARCH_CPPFLAGS 714 PLATFORM_TRIPLET 715 MULTIARCH 716 ac_ct_CXX 717 MAINCC 718 CXX 719 SED 720 GREP 721 CPP 722 OBJEXT 723 EXEEXT 724 ac_ct_CC 725 CPPFLAGS 726 LDFLAGS 727 CFLAGS 728 CC 729 EXPORT_MACOSX_DEPLOYMENT_TARGET 730 CONFIGURE_MACOSX_DEPLOYMENT_TARGET 731 SGI_ABI 732 _PYTHON_HOST_PLATFORM 733 MACHDEP 734 FRAMEWORKINSTALLAPPSPREFIX 735 FRAMEWORKUNIXTOOLSPREFIX 736 FRAMEWORKPYTHONW 737 FRAMEWORKALTINSTALLLAST 738 FRAMEWORKALTINSTALLFIRST 739 FRAMEWORKINSTALLLAST 740 FRAMEWORKINSTALLFIRST 741 PYTHONFRAMEWORKINSTALLDIR 742 PYTHONFRAMEWORKPREFIX 743 PYTHONFRAMEWORKDIR 744 PYTHONFRAMEWORKIDENTIFIER 745 PYTHONFRAMEWORK 746 LIPO_32BIT_FLAGS 747 ARCH_RUN_32BIT 748 UNIVERSALSDK 749 CONFIG_ARGS 750 SOVERSION 751 VERSION 752 GENERATED_COMMENT 753 PYTHON_FOR_BUILD 754 PYTHON_FOR_GEN 755 host_os 756 host_vendor 757 host_cpu 758 host 759 build_os 760 build_vendor 761 build_cpu 762 build 763 HAS_GIT 764 GITBRANCH 765 GITTAG 766 GITVERSION 767 BASECPPFLAGS 768 target_alias 769 host_alias 770 build_alias 771 LIBS 772 ECHO_T 773 ECHO_N 774 ECHO_C 775 DEFS 776 mandir 777 localedir 778 libdir 779 psdir 780 pdfdir 781 dvidir 782 htmldir 783 infodir 784 docdir 785 oldincludedir 786 includedir 787 localstatedir 788 sharedstatedir 789 sysconfdir 790 datadir 791 datarootdir 792 libexecdir 793 sbindir 794 bindir 795 program_transform_name 796 prefix 797 exec_prefix 798 PACKAGE_URL 799 PACKAGE_BUGREPORT 800 PACKAGE_STRING 801 PACKAGE_VERSION 802 PACKAGE_TARNAME 803 PACKAGE_NAME 804 PATH_SEPARATOR 805 SHELL' 806 ac_subst_files='' 807 ac_user_opts=' 808 enable_option_checking 809 enable_universalsdk 810 with_universal_archs 811 with_framework_name 812 enable_framework 813 with_gcc 814 with_icc 815 with_cxx_main 816 with_suffix 817 enable_shared 818 enable_profiling 819 with_pydebug 820 enable_optimizations 821 with_lto 822 with_hash_algorithm 823 with_address_sanitizer 824 with_libs 825 with_system_expat 826 with_system_ffi 827 with_system_libmpdec 828 enable_loadable_sqlite_extensions 829 with_tcltk_includes 830 with_tcltk_libs 831 with_dbmliborder 832 with_threads 833 with_thread 834 enable_ipv6 835 with_doc_strings 836 with_pymalloc 837 with_valgrind 838 with_dtrace 839 with_fpectl 840 with_libm 841 with_libc 842 enable_big_digits 843 with_computed_gotos 844 with_ensurepip 845 ' 846 ac_precious_vars='build_alias 847 host_alias 848 target_alias 849 MACHDEP 850 CC 851 CFLAGS 852 LDFLAGS 853 LIBS 854 CPPFLAGS 855 CPP 856 PKG_CONFIG 857 PKG_CONFIG_PATH 858 PKG_CONFIG_LIBDIR' 859 860 861 # Initialize some variables set by options. 862 ac_init_help= 863 ac_init_version=false 864 ac_unrecognized_opts= 865 ac_unrecognized_sep= 866 # The variables have the same names as the options, with 867 # dashes changed to underlines. 868 cache_file=/dev/null 869 exec_prefix=NONE 870 no_create= 871 no_recursion= 872 prefix=NONE 873 program_prefix=NONE 874 program_suffix=NONE 875 program_transform_name=s,x,x, 876 silent= 877 site= 878 srcdir= 879 verbose= 880 x_includes=NONE 881 x_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.) 889 bindir='${exec_prefix}/bin' 890 sbindir='${exec_prefix}/sbin' 891 libexecdir='${exec_prefix}/libexec' 892 datarootdir='${prefix}/share' 893 datadir='${datarootdir}' 894 sysconfdir='${prefix}/etc' 895 sharedstatedir='${prefix}/com' 896 localstatedir='${prefix}/var' 897 includedir='${prefix}/include' 898 oldincludedir='/usr/include' 899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900 infodir='${datarootdir}/info' 901 htmldir='${docdir}' 902 dvidir='${docdir}' 903 pdfdir='${docdir}' 904 psdir='${docdir}' 905 libdir='${exec_prefix}/lib' 906 localedir='${datarootdir}/locale' 907 mandir='${datarootdir}/man' 908 909 ac_prev= 910 ac_dashdash= 911 for ac_option 912 do 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' 1245 Try \`$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 1267 done 1268 1269 if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 as_fn_error $? "missing argument to $ac_option" 1272 fi 1273 1274 if 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 1280 fi 1281 1282 # Check all directory arguments for consistency. 1283 for 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 1287 do 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" 1301 done 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. 1306 build=$build_alias 1307 host=$host_alias 1308 target=$target_alias 1309 1310 # FIXME: To remove some day. 1311 if 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 1317 fi 1318 1319 ac_tool_prefix= 1320 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321 1322 test "$silent" = yes && exec 6>/dev/null 1323 1324 1325 ac_pwd=`pwd` && test -n "$ac_pwd" && 1326 ac_ls_di=`ls -di .` && 1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328 as_fn_error $? "working directory cannot be determined" 1329 test "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. 1334 if 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 1364 else 1365 ac_srcdir_defaulted=no 1366 fi 1367 if 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" 1370 fi 1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372 ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1374 pwd)` 1375 # When building in place, set srcdir=. 1376 if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378 fi 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. 1382 case $srcdir in 1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384 esac 1385 for 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} 1390 done 1391 1392 # 1393 # Report the --help message. 1394 # 1395 if 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.6 to adapt to many kinds of systems. 1400 1401 Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404 VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406 Defaults for the options are specified in brackets. 1407 1408 Configuration: 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 1419 Installation 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 1425 By default, \`make install' will install all the files in 1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428 for instance \`--prefix=\$HOME'. 1429 1430 For better control, use the options below. 1431 1432 Fine 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 1456 System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459 --target=TARGET configure for building compilers for TARGET [HOST] 1460 _ACEOF 1461 fi 1462 1463 if test -n "$ac_init_help"; then 1464 case $ac_init_help in 1465 short | recursive ) echo "Configuration of python 3.6:";; 1466 esac 1467 cat <<\_ACEOF 1468 1469 Optional Features: 1470 --disable-option-checking ignore unrecognized --enable/--with options 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1473 --enable-universalsdk[=SDKDIR] 1474 Build fat binary against Mac OS X SDK 1475 --enable-framework[=INSTALLDIR] 1476 Build (MacOSX|Darwin) framework 1477 --enable-shared disable/enable building shared python library 1478 --enable-profiling enable C-level code profiling 1479 --enable-optimizations Enable expensive optimizations (PGO, etc). Disabled 1480 by default. 1481 --enable-loadable-sqlite-extensions 1482 support loadable extensions in _sqlite module 1483 --enable-ipv6 Enable ipv6 (with ipv4) support 1484 --disable-ipv6 Disable ipv6 support 1485 --enable-big-digits[=BITS] 1486 use big digits for Python longs [[BITS=30]] 1487 1488 Optional Packages: 1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1491 --with-universal-archs=ARCH 1492 select architectures for universal build ("32-bit", 1493 "64-bit", "3-way", "intel", "intel-32", 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-lto Enable Link Time Optimization in PGO builds. 1505 Disabled by default. 1506 --with-hash-algorithm=[fnv|siphash24] 1507 select hash algorithm 1508 --with-address-sanitizer 1509 enable AddressSanitizer 1510 --with-libs='lib1 ...' link against additional libs 1511 --with-system-expat build pyexpat module using an installed expat 1512 library 1513 --with-system-ffi build _ctypes module using an installed ffi library 1514 --with-system-libmpdec build _decimal module using an installed libmpdec 1515 library 1516 --with-tcltk-includes='-I...' 1517 override search for Tcl and Tk include files 1518 --with-tcltk-libs='-L...' 1519 override search for Tcl and Tk libs 1520 --with-dbmliborder=db1:db2:... 1521 order to check db backends for dbm. Valid value is a 1522 colon separated string with the backend names 1523 `ndbm', `gdbm' and `bdb'. 1524 --with(out)-threads[=DIRECTORY] 1525 disable/enable thread support 1526 --with(out)-thread[=DIRECTORY] 1527 deprecated; use --with(out)-threads 1528 --with(out)-doc-strings disable/enable documentation strings 1529 --with(out)-pymalloc disable/enable specialized mallocs 1530 --with-valgrind Enable Valgrind support 1531 --with(out)-dtrace disable/enable DTrace support 1532 --with-fpectl enable SIGFPE catching 1533 --with-libm=STRING math library 1534 --with-libc=STRING C library 1535 --with(out)-computed-gotos 1536 Use computed gotos in evaluation loop (enabled by 1537 default on supported compilers) 1538 --with(out)-ensurepip=[=upgrade] 1539 "install" or "upgrade" using bundled pip 1540 1541 Some influential environment variables: 1542 MACHDEP name for machine-dependent library files 1543 CC C compiler command 1544 CFLAGS C compiler flags 1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1546 nonstandard directory <lib dir> 1547 LIBS libraries to pass to the linker, e.g. -l<library> 1548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1549 you have headers in a nonstandard directory <include dir> 1550 CPP C preprocessor 1551 PKG_CONFIG path to pkg-config utility 1552 PKG_CONFIG_PATH 1553 directories to add to pkg-config's search path 1554 PKG_CONFIG_LIBDIR 1555 path overriding pkg-config's built-in search path 1556 1557 Use these variables to override the choices made by `configure' or to help 1558 it to find libraries and programs with nonstandard names/locations. 1559 1560 Report bugs to <https://bugs.python.org/>. 1561 _ACEOF 1562 ac_status=$? 1563 fi 1564 1565 if test "$ac_init_help" = "recursive"; then 1566 # If there are subdirs, report their specific --help. 1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1568 test -d "$ac_dir" || 1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1570 continue 1571 ac_builddir=. 1572 1573 case "$ac_dir" in 1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) 1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1577 # A ".." for each directory in $ac_dir_suffix. 1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1579 case $ac_top_builddir_sub in 1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1582 esac ;; 1583 esac 1584 ac_abs_top_builddir=$ac_pwd 1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1586 # for backward compatibility: 1587 ac_top_builddir=$ac_top_build_prefix 1588 1589 case $srcdir in 1590 .) # We are building in place. 1591 ac_srcdir=. 1592 ac_top_srcdir=$ac_top_builddir_sub 1593 ac_abs_top_srcdir=$ac_pwd ;; 1594 [\\/]* | ?:[\\/]* ) # Absolute name. 1595 ac_srcdir=$srcdir$ac_dir_suffix; 1596 ac_top_srcdir=$srcdir 1597 ac_abs_top_srcdir=$srcdir ;; 1598 *) # Relative name. 1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1600 ac_top_srcdir=$ac_top_build_prefix$srcdir 1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1602 esac 1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1604 1605 cd "$ac_dir" || { ac_status=$?; continue; } 1606 # Check for guested configure. 1607 if test -f "$ac_srcdir/configure.gnu"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1610 elif test -f "$ac_srcdir/configure"; then 1611 echo && 1612 $SHELL "$ac_srcdir/configure" --help=recursive 1613 else 1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1615 fi || ac_status=$? 1616 cd "$ac_pwd" || { ac_status=$?; break; } 1617 done 1618 fi 1619 1620 test -n "$ac_init_help" && exit $ac_status 1621 if $ac_init_version; then 1622 cat <<\_ACEOF 1623 python configure 3.6 1624 generated by GNU Autoconf 2.69 1625 1626 Copyright (C) 2012 Free Software Foundation, Inc. 1627 This configure script is free software; the Free Software Foundation 1628 gives unlimited permission to copy, distribute and modify it. 1629 _ACEOF 1630 exit 1631 fi 1632 1633 ## ------------------------ ## 1634 ## Autoconf initialization. ## 1635 ## ------------------------ ## 1636 1637 # ac_fn_c_try_compile LINENO 1638 # -------------------------- 1639 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1640 ac_fn_c_try_compile () 1641 { 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 rm -f conftest.$ac_objext 1644 if { { ac_try="$ac_compile" 1645 case "(($ac_try" in 1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1647 *) ac_try_echo=$ac_try;; 1648 esac 1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1650 $as_echo "$ac_try_echo"; } >&5 1651 (eval "$ac_compile") 2>conftest.err 1652 ac_status=$? 1653 if test -s conftest.err; then 1654 grep -v '^ *+' conftest.err >conftest.er1 1655 cat conftest.er1 >&5 1656 mv -f conftest.er1 conftest.err 1657 fi 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { 1660 test -z "$ac_c_werror_flag" || 1661 test ! -s conftest.err 1662 } && test -s conftest.$ac_objext; then : 1663 ac_retval=0 1664 else 1665 $as_echo "$as_me: failed program was:" >&5 1666 sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669 fi 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673 } # ac_fn_c_try_compile 1674 1675 # ac_fn_c_try_cpp LINENO 1676 # ---------------------- 1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1678 ac_fn_c_try_cpp () 1679 { 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_cpp conftest.$ac_ext" 1682 case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685 esac 1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687 $as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } > conftest.i && { 1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 }; then : 1700 ac_retval=0 1701 else 1702 $as_echo "$as_me: failed program was:" >&5 1703 sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706 fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710 } # ac_fn_c_try_cpp 1711 1712 # ac_fn_c_try_link LINENO 1713 # ----------------------- 1714 # Try to link conftest.$ac_ext, and return whether this succeeded. 1715 ac_fn_c_try_link () 1716 { 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 rm -f conftest.$ac_objext conftest$ac_exeext 1719 if { { ac_try="$ac_link" 1720 case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723 esac 1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725 $as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>conftest.err 1727 ac_status=$? 1728 if test -s conftest.err; then 1729 grep -v '^ *+' conftest.err >conftest.er1 1730 cat conftest.er1 >&5 1731 mv -f conftest.er1 conftest.err 1732 fi 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { 1735 test -z "$ac_c_werror_flag" || 1736 test ! -s conftest.err 1737 } && test -s conftest$ac_exeext && { 1738 test "$cross_compiling" = yes || 1739 test -x conftest$ac_exeext 1740 }; then : 1741 ac_retval=0 1742 else 1743 $as_echo "$as_me: failed program was:" >&5 1744 sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747 fi 1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1750 # interfere with the next link command; also delete a directory that is 1751 # left behind by Apple's compiler. We do this before executing the actions. 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756 } # ac_fn_c_try_link 1757 1758 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1759 # ------------------------------------------------------- 1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1761 # the include files in INCLUDES and setting the cache variable VAR 1762 # accordingly. 1763 ac_fn_c_check_header_mongrel () 1764 { 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if eval \${$3+:} false; then : 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768 $as_echo_n "checking for $2... " >&6; } 1769 if eval \${$3+:} false; then : 1770 $as_echo_n "(cached) " >&6 1771 fi 1772 eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774 $as_echo "$ac_res" >&6; } 1775 else 1776 # Is the header compilable? 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1778 $as_echo_n "checking $2 usability... " >&6; } 1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780 /* end confdefs.h. */ 1781 $4 1782 #include <$2> 1783 _ACEOF 1784 if ac_fn_c_try_compile "$LINENO"; then : 1785 ac_header_compiler=yes 1786 else 1787 ac_header_compiler=no 1788 fi 1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1791 $as_echo "$ac_header_compiler" >&6; } 1792 1793 # Is the header present? 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1795 $as_echo_n "checking $2 presence... " >&6; } 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797 /* end confdefs.h. */ 1798 #include <$2> 1799 _ACEOF 1800 if ac_fn_c_try_cpp "$LINENO"; then : 1801 ac_header_preproc=yes 1802 else 1803 ac_header_preproc=no 1804 fi 1805 rm -f conftest.err conftest.i conftest.$ac_ext 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1807 $as_echo "$ac_header_preproc" >&6; } 1808 1809 # So? What about this header? 1810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1811 yes:no: ) 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1816 ;; 1817 no:yes:* ) 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1821 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1825 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1828 ( $as_echo "## --------------------------------------- ## 1829 ## Report this to https://bugs.python.org/ ## 1830 ## --------------------------------------- ##" 1831 ) | sed "s/^/$as_me: WARNING: /" >&2 1832 ;; 1833 esac 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835 $as_echo_n "checking for $2... " >&6; } 1836 if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838 else 1839 eval "$3=\$ac_header_compiler" 1840 fi 1841 eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843 $as_echo "$ac_res" >&6; } 1844 fi 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847 } # ac_fn_c_check_header_mongrel 1848 1849 # ac_fn_c_try_run LINENO 1850 # ---------------------- 1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1852 # that executables *can* be run. 1853 ac_fn_c_try_run () 1854 { 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 if { { ac_try="$ac_link" 1857 case "(($ac_try" in 1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1859 *) ac_try_echo=$ac_try;; 1860 esac 1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1862 $as_echo "$ac_try_echo"; } >&5 1863 (eval "$ac_link") 2>&5 1864 ac_status=$? 1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1867 { { case "(($ac_try" in 1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1869 *) ac_try_echo=$ac_try;; 1870 esac 1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1872 $as_echo "$ac_try_echo"; } >&5 1873 (eval "$ac_try") 2>&5 1874 ac_status=$? 1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1876 test $ac_status = 0; }; }; then : 1877 ac_retval=0 1878 else 1879 $as_echo "$as_me: program exited with status $ac_status" >&5 1880 $as_echo "$as_me: failed program was:" >&5 1881 sed 's/^/| /' conftest.$ac_ext >&5 1882 1883 ac_retval=$ac_status 1884 fi 1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889 } # ac_fn_c_try_run 1890 1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1892 # ------------------------------------------------------- 1893 # Tests whether HEADER exists and can be compiled using the include files in 1894 # INCLUDES, setting the cache variable VAR accordingly. 1895 ac_fn_c_check_header_compile () 1896 { 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899 $as_echo_n "checking for $2... " >&6; } 1900 if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902 else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904 /* end confdefs.h. */ 1905 $4 1906 #include <$2> 1907 _ACEOF 1908 if ac_fn_c_try_compile "$LINENO"; then : 1909 eval "$3=yes" 1910 else 1911 eval "$3=no" 1912 fi 1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914 fi 1915 eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917 $as_echo "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920 } # ac_fn_c_check_header_compile 1921 1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1923 # ------------------------------------------- 1924 # Tests whether TYPE exists after having included INCLUDES, setting cache 1925 # variable VAR accordingly. 1926 ac_fn_c_check_type () 1927 { 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930 $as_echo_n "checking for $2... " >&6; } 1931 if eval \${$3+:} false; then : 1932 $as_echo_n "(cached) " >&6 1933 else 1934 eval "$3=no" 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936 /* end confdefs.h. */ 1937 $4 1938 int 1939 main () 1940 { 1941 if (sizeof ($2)) 1942 return 0; 1943 ; 1944 return 0; 1945 } 1946 _ACEOF 1947 if ac_fn_c_try_compile "$LINENO"; then : 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949 /* end confdefs.h. */ 1950 $4 1951 int 1952 main () 1953 { 1954 if (sizeof (($2))) 1955 return 0; 1956 ; 1957 return 0; 1958 } 1959 _ACEOF 1960 if ac_fn_c_try_compile "$LINENO"; then : 1961 1962 else 1963 eval "$3=yes" 1964 fi 1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966 fi 1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968 fi 1969 eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971 $as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974 } # ac_fn_c_check_type 1975 1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1977 # -------------------------------------------- 1978 # Tries to find the compile-time value of EXPR in a program that includes 1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1980 # computed 1981 ac_fn_c_compute_int () 1982 { 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 if test "$cross_compiling" = yes; then 1985 # Depending upon the size, compute the lo and hi bounds. 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987 /* end confdefs.h. */ 1988 $4 1989 int 1990 main () 1991 { 1992 static int test_array [1 - 2 * !(($2) >= 0)]; 1993 test_array [0] = 0; 1994 return test_array [0]; 1995 1996 ; 1997 return 0; 1998 } 1999 _ACEOF 2000 if ac_fn_c_try_compile "$LINENO"; then : 2001 ac_lo=0 ac_mid=0 2002 while :; do 2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004 /* end confdefs.h. */ 2005 $4 2006 int 2007 main () 2008 { 2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2010 test_array [0] = 0; 2011 return test_array [0]; 2012 2013 ; 2014 return 0; 2015 } 2016 _ACEOF 2017 if ac_fn_c_try_compile "$LINENO"; then : 2018 ac_hi=$ac_mid; break 2019 else 2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2021 if test $ac_lo -le $ac_mid; then 2022 ac_lo= ac_hi= 2023 break 2024 fi 2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2026 fi 2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028 done 2029 else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031 /* end confdefs.h. */ 2032 $4 2033 int 2034 main () 2035 { 2036 static int test_array [1 - 2 * !(($2) < 0)]; 2037 test_array [0] = 0; 2038 return test_array [0]; 2039 2040 ; 2041 return 0; 2042 } 2043 _ACEOF 2044 if ac_fn_c_try_compile "$LINENO"; then : 2045 ac_hi=-1 ac_mid=-1 2046 while :; do 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048 /* end confdefs.h. */ 2049 $4 2050 int 2051 main () 2052 { 2053 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2054 test_array [0] = 0; 2055 return test_array [0]; 2056 2057 ; 2058 return 0; 2059 } 2060 _ACEOF 2061 if ac_fn_c_try_compile "$LINENO"; then : 2062 ac_lo=$ac_mid; break 2063 else 2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2065 if test $ac_mid -le $ac_hi; then 2066 ac_lo= ac_hi= 2067 break 2068 fi 2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2070 fi 2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072 done 2073 else 2074 ac_lo= ac_hi= 2075 fi 2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077 fi 2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2079 # Binary search between lo and hi bounds. 2080 while test "x$ac_lo" != "x$ac_hi"; do 2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2083 /* end confdefs.h. */ 2084 $4 2085 int 2086 main () 2087 { 2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2089 test_array [0] = 0; 2090 return test_array [0]; 2091 2092 ; 2093 return 0; 2094 } 2095 _ACEOF 2096 if ac_fn_c_try_compile "$LINENO"; then : 2097 ac_hi=$ac_mid 2098 else 2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2100 fi 2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102 done 2103 case $ac_lo in #(( 2104 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2105 '') ac_retval=1 ;; 2106 esac 2107 else 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109 /* end confdefs.h. */ 2110 $4 2111 static long int longval () { return $2; } 2112 static unsigned long int ulongval () { return $2; } 2113 #include <stdio.h> 2114 #include <stdlib.h> 2115 int 2116 main () 2117 { 2118 2119 FILE *f = fopen ("conftest.val", "w"); 2120 if (! f) 2121 return 1; 2122 if (($2) < 0) 2123 { 2124 long int i = longval (); 2125 if (i != ($2)) 2126 return 1; 2127 fprintf (f, "%ld", i); 2128 } 2129 else 2130 { 2131 unsigned long int i = ulongval (); 2132 if (i != ($2)) 2133 return 1; 2134 fprintf (f, "%lu", i); 2135 } 2136 /* Do not output a trailing newline, as this causes \r\n confusion 2137 on some platforms. */ 2138 return ferror (f) || fclose (f) != 0; 2139 2140 ; 2141 return 0; 2142 } 2143 _ACEOF 2144 if ac_fn_c_try_run "$LINENO"; then : 2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2146 else 2147 ac_retval=1 2148 fi 2149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2150 conftest.$ac_objext conftest.beam conftest.$ac_ext 2151 rm -f conftest.val 2152 2153 fi 2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2155 as_fn_set_status $ac_retval 2156 2157 } # ac_fn_c_compute_int 2158 2159 # ac_fn_c_check_func LINENO FUNC VAR 2160 # ---------------------------------- 2161 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2162 ac_fn_c_check_func () 2163 { 2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2166 $as_echo_n "checking for $2... " >&6; } 2167 if eval \${$3+:} false; then : 2168 $as_echo_n "(cached) " >&6 2169 else 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171 /* end confdefs.h. */ 2172 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2173 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2174 #define $2 innocuous_$2 2175 2176 /* System header to define __stub macros and hopefully few prototypes, 2177 which can conflict with char $2 (); below. 2178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2179 <limits.h> exists even on freestanding compilers. */ 2180 2181 #ifdef __STDC__ 2182 # include <limits.h> 2183 #else 2184 # include <assert.h> 2185 #endif 2186 2187 #undef $2 2188 2189 /* Override any GCC internal prototype to avoid an error. 2190 Use char because int might match the return type of a GCC 2191 builtin and then its argument prototype would still apply. */ 2192 #ifdef __cplusplus 2193 extern "C" 2194 #endif 2195 char $2 (); 2196 /* The GNU C library defines this for functions which it implements 2197 to always fail with ENOSYS. Some functions are actually named 2198 something starting with __ and the normal name is an alias. */ 2199 #if defined __stub_$2 || defined __stub___$2 2200 choke me 2201 #endif 2202 2203 int 2204 main () 2205 { 2206 return $2 (); 2207 ; 2208 return 0; 2209 } 2210 _ACEOF 2211 if ac_fn_c_try_link "$LINENO"; then : 2212 eval "$3=yes" 2213 else 2214 eval "$3=no" 2215 fi 2216 rm -f core conftest.err conftest.$ac_objext \ 2217 conftest$ac_exeext conftest.$ac_ext 2218 fi 2219 eval ac_res=\$$3 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2221 $as_echo "$ac_res" >&6; } 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2223 2224 } # ac_fn_c_check_func 2225 2226 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2227 # --------------------------------------------- 2228 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2229 # accordingly. 2230 ac_fn_c_check_decl () 2231 { 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 as_decl_name=`echo $2|sed 's/ *(.*//'` 2234 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2236 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2237 if eval \${$3+:} false; then : 2238 $as_echo_n "(cached) " >&6 2239 else 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241 /* end confdefs.h. */ 2242 $4 2243 int 2244 main () 2245 { 2246 #ifndef $as_decl_name 2247 #ifdef __cplusplus 2248 (void) $as_decl_use; 2249 #else 2250 (void) $as_decl_name; 2251 #endif 2252 #endif 2253 2254 ; 2255 return 0; 2256 } 2257 _ACEOF 2258 if ac_fn_c_try_compile "$LINENO"; then : 2259 eval "$3=yes" 2260 else 2261 eval "$3=no" 2262 fi 2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264 fi 2265 eval ac_res=\$$3 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2267 $as_echo "$ac_res" >&6; } 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2269 2270 } # ac_fn_c_check_decl 2271 2272 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2273 # ---------------------------------------------------- 2274 # Tries to find if the field MEMBER exists in type AGGR, after including 2275 # INCLUDES, setting cache variable VAR accordingly. 2276 ac_fn_c_check_member () 2277 { 2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2280 $as_echo_n "checking for $2.$3... " >&6; } 2281 if eval \${$4+:} false; then : 2282 $as_echo_n "(cached) " >&6 2283 else 2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2285 /* end confdefs.h. */ 2286 $5 2287 int 2288 main () 2289 { 2290 static $2 ac_aggr; 2291 if (ac_aggr.$3) 2292 return 0; 2293 ; 2294 return 0; 2295 } 2296 _ACEOF 2297 if ac_fn_c_try_compile "$LINENO"; then : 2298 eval "$4=yes" 2299 else 2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2301 /* end confdefs.h. */ 2302 $5 2303 int 2304 main () 2305 { 2306 static $2 ac_aggr; 2307 if (sizeof ac_aggr.$3) 2308 return 0; 2309 ; 2310 return 0; 2311 } 2312 _ACEOF 2313 if ac_fn_c_try_compile "$LINENO"; then : 2314 eval "$4=yes" 2315 else 2316 eval "$4=no" 2317 fi 2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2319 fi 2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321 fi 2322 eval ac_res=\$$4 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2324 $as_echo "$ac_res" >&6; } 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2326 2327 } # ac_fn_c_check_member 2328 cat >config.log <<_ACEOF 2329 This file contains any messages produced by compilers while 2330 running configure, to aid debugging if configure makes a mistake. 2331 2332 It was created by python $as_me 3.6, which was 2333 generated by GNU Autoconf 2.69. Invocation command line was 2334 2335 $ $0 $@ 2336 2337 _ACEOF 2338 exec 5>>config.log 2339 { 2340 cat <<_ASUNAME 2341 ## --------- ## 2342 ## Platform. ## 2343 ## --------- ## 2344 2345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2346 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2347 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2348 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2349 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2350 2351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2353 2354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2361 2362 _ASUNAME 2363 2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365 for as_dir in $PATH 2366 do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 $as_echo "PATH: $as_dir" 2370 done 2371 IFS=$as_save_IFS 2372 2373 } >&5 2374 2375 cat >&5 <<_ACEOF 2376 2377 2378 ## ----------- ## 2379 ## Core tests. ## 2380 ## ----------- ## 2381 2382 _ACEOF 2383 2384 2385 # Keep a trace of the command line. 2386 # Strip out --no-create and --no-recursion so they do not pile up. 2387 # Strip out --silent because we don't want to record it for future runs. 2388 # Also quote any args containing shell meta-characters. 2389 # Make two passes to allow for proper duplicate-argument suppression. 2390 ac_configure_args= 2391 ac_configure_args0= 2392 ac_configure_args1= 2393 ac_must_keep_next=false 2394 for ac_pass in 1 2 2395 do 2396 for ac_arg 2397 do 2398 case $ac_arg in 2399 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2401 | -silent | --silent | --silen | --sile | --sil) 2402 continue ;; 2403 *\'*) 2404 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2405 esac 2406 case $ac_pass in 2407 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2408 2) 2409 as_fn_append ac_configure_args1 " '$ac_arg'" 2410 if test $ac_must_keep_next = true; then 2411 ac_must_keep_next=false # Got value, back to normal. 2412 else 2413 case $ac_arg in 2414 *=* | --config-cache | -C | -disable-* | --disable-* \ 2415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2417 | -with-* | --with-* | -without-* | --without-* | --x) 2418 case "$ac_configure_args0 " in 2419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2420 esac 2421 ;; 2422 -* ) ac_must_keep_next=true ;; 2423 esac 2424 fi 2425 as_fn_append ac_configure_args " '$ac_arg'" 2426 ;; 2427 esac 2428 done 2429 done 2430 { ac_configure_args0=; unset ac_configure_args0;} 2431 { ac_configure_args1=; unset ac_configure_args1;} 2432 2433 # When interrupted or exit'd, cleanup temporary files, and complete 2434 # config.log. We remove comments because anyway the quotes in there 2435 # would cause problems or look ugly. 2436 # WARNING: Use '\'' to represent an apostrophe within the trap. 2437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2438 trap 'exit_status=$? 2439 # Save into config.log some information that might help in debugging. 2440 { 2441 echo 2442 2443 $as_echo "## ---------------- ## 2444 ## Cache variables. ## 2445 ## ---------------- ##" 2446 echo 2447 # The following way of writing the cache mishandles newlines in values, 2448 ( 2449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2450 eval ac_val=\$$ac_var 2451 case $ac_val in #( 2452 *${as_nl}*) 2453 case $ac_var in #( 2454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2456 esac 2457 case $ac_var in #( 2458 _ | IFS | as_nl) ;; #( 2459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2460 *) { eval $ac_var=; unset $ac_var;} ;; 2461 esac ;; 2462 esac 2463 done 2464 (set) 2>&1 | 2465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2466 *${as_nl}ac_space=\ *) 2467 sed -n \ 2468 "s/'\''/'\''\\\\'\'''\''/g; 2469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2470 ;; #( 2471 *) 2472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2473 ;; 2474 esac | 2475 sort 2476 ) 2477 echo 2478 2479 $as_echo "## ----------------- ## 2480 ## Output variables. ## 2481 ## ----------------- ##" 2482 echo 2483 for ac_var in $ac_subst_vars 2484 do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in 2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2488 esac 2489 $as_echo "$ac_var='\''$ac_val'\''" 2490 done | sort 2491 echo 2492 2493 if test -n "$ac_subst_files"; then 2494 $as_echo "## ------------------- ## 2495 ## File substitutions. ## 2496 ## ------------------- ##" 2497 echo 2498 for ac_var in $ac_subst_files 2499 do 2500 eval ac_val=\$$ac_var 2501 case $ac_val in 2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2503 esac 2504 $as_echo "$ac_var='\''$ac_val'\''" 2505 done | sort 2506 echo 2507 fi 2508 2509 if test -s confdefs.h; then 2510 $as_echo "## ----------- ## 2511 ## confdefs.h. ## 2512 ## ----------- ##" 2513 echo 2514 cat confdefs.h 2515 echo 2516 fi 2517 test "$ac_signal" != 0 && 2518 $as_echo "$as_me: caught signal $ac_signal" 2519 $as_echo "$as_me: exit $exit_status" 2520 } >&5 2521 rm -f core *.core core.conftest.* && 2522 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2523 exit $exit_status 2524 ' 0 2525 for ac_signal in 1 2 13 15; do 2526 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2527 done 2528 ac_signal=0 2529 2530 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2531 rm -f -r conftest* confdefs.h 2532 2533 $as_echo "/* confdefs.h */" > confdefs.h 2534 2535 # Predefined preprocessor variables. 2536 2537 cat >>confdefs.h <<_ACEOF 2538 #define PACKAGE_NAME "$PACKAGE_NAME" 2539 _ACEOF 2540 2541 cat >>confdefs.h <<_ACEOF 2542 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2543 _ACEOF 2544 2545 cat >>confdefs.h <<_ACEOF 2546 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2547 _ACEOF 2548 2549 cat >>confdefs.h <<_ACEOF 2550 #define PACKAGE_STRING "$PACKAGE_STRING" 2551 _ACEOF 2552 2553 cat >>confdefs.h <<_ACEOF 2554 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2555 _ACEOF 2556 2557 cat >>confdefs.h <<_ACEOF 2558 #define PACKAGE_URL "$PACKAGE_URL" 2559 _ACEOF 2560 2561 2562 # Let the site file select an alternate cache file if it wants to. 2563 # Prefer an explicitly selected file to automatically selected ones. 2564 ac_site_file1=NONE 2565 ac_site_file2=NONE 2566 if test -n "$CONFIG_SITE"; then 2567 # We do not want a PATH search for config.site. 2568 case $CONFIG_SITE in #(( 2569 -*) ac_site_file1=./$CONFIG_SITE;; 2570 */*) ac_site_file1=$CONFIG_SITE;; 2571 *) ac_site_file1=./$CONFIG_SITE;; 2572 esac 2573 elif test "x$prefix" != xNONE; then 2574 ac_site_file1=$prefix/share/config.site 2575 ac_site_file2=$prefix/etc/config.site 2576 else 2577 ac_site_file1=$ac_default_prefix/share/config.site 2578 ac_site_file2=$ac_default_prefix/etc/config.site 2579 fi 2580 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2581 do 2582 test "x$ac_site_file" = xNONE && continue 2583 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2585 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2586 sed 's/^/| /' "$ac_site_file" >&5 2587 . "$ac_site_file" \ 2588 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590 as_fn_error $? "failed to load site script $ac_site_file 2591 See \`config.log' for more details" "$LINENO" 5; } 2592 fi 2593 done 2594 2595 if test -r "$cache_file"; then 2596 # Some versions of bash will fail to source /dev/null (special files 2597 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2598 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2600 $as_echo "$as_me: loading cache $cache_file" >&6;} 2601 case $cache_file in 2602 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2603 *) . "./$cache_file";; 2604 esac 2605 fi 2606 else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2608 $as_echo "$as_me: creating cache $cache_file" >&6;} 2609 >$cache_file 2610 fi 2611 2612 # Check that the precious variables saved in the cache have kept the same 2613 # value. 2614 ac_cache_corrupted=false 2615 for ac_var in $ac_precious_vars; do 2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2617 eval ac_new_set=\$ac_env_${ac_var}_set 2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2619 eval ac_new_val=\$ac_env_${ac_var}_value 2620 case $ac_old_set,$ac_new_set in 2621 set,) 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2623 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2624 ac_cache_corrupted=: ;; 2625 ,set) 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2627 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2628 ac_cache_corrupted=: ;; 2629 ,);; 2630 *) 2631 if test "x$ac_old_val" != "x$ac_new_val"; then 2632 # differences in whitespace do not lead to failure. 2633 ac_old_val_w=`echo x $ac_old_val` 2634 ac_new_val_w=`echo x $ac_new_val` 2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2637 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2638 ac_cache_corrupted=: 2639 else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2641 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2642 eval $ac_var=\$ac_old_val 2643 fi 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2645 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2647 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2648 fi;; 2649 esac 2650 # Pass precious variables to config.status. 2651 if test "$ac_new_set" = set; then 2652 case $ac_new_val in 2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2654 *) ac_arg=$ac_var=$ac_new_val ;; 2655 esac 2656 case " $ac_configure_args " in 2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2659 esac 2660 fi 2661 done 2662 if $ac_cache_corrupted; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2666 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2667 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2668 fi 2669 ## -------------------- ## 2670 ## Main body of script. ## 2671 ## -------------------- ## 2672 2673 ac_ext=c 2674 ac_cpp='$CPP $CPPFLAGS' 2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2678 2679 2680 2681 2682 if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 2683 # If we're building out-of-tree, we need to make sure the following 2684 # resources get picked up before their $srcdir counterparts. 2685 # Objects/ -> typeslots.inc 2686 # Include/ -> Python-ast.h, graminit.h 2687 # Python/ -> importlib.h 2688 # (A side effect of this is that these resources will automatically be 2689 # regenerated when building out-of-tree, regardless of whether or not 2690 # the $srcdir counterpart is up-to-date. This is an acceptable trade 2691 # off.) 2692 BASECPPFLAGS="-IObjects -IInclude -IPython" 2693 else 2694 BASECPPFLAGS="" 2695 fi 2696 2697 2698 2699 2700 2701 if test -e $srcdir/.git/HEAD 2702 then 2703 # Extract the first word of "git", so it can be a program name with args. 2704 set dummy git; ac_word=$2 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706 $as_echo_n "checking for $ac_word... " >&6; } 2707 if ${ac_cv_prog_HAS_GIT+:} false; then : 2708 $as_echo_n "(cached) " >&6 2709 else 2710 if test -n "$HAS_GIT"; then 2711 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 2712 else 2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714 for as_dir in $PATH 2715 do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2720 ac_cv_prog_HAS_GIT="found" 2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724 done 2725 done 2726 IFS=$as_save_IFS 2727 2728 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 2729 fi 2730 fi 2731 HAS_GIT=$ac_cv_prog_HAS_GIT 2732 if test -n "$HAS_GIT"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 2734 $as_echo "$HAS_GIT" >&6; } 2735 else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737 $as_echo "no" >&6; } 2738 fi 2739 2740 2741 else 2742 HAS_GIT=no-repository 2743 fi 2744 if test $HAS_GIT = found 2745 then 2746 GITVERSION="git -C \$(srcdir) rev-parse --short HEAD" 2747 GITTAG="git -C \$(srcdir) describe --all --always --dirty" 2748 GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD" 2749 else 2750 GITVERSION="" 2751 GITTAG="" 2752 GITBRANCH="" 2753 fi 2754 2755 2756 ac_config_headers="$ac_config_headers pyconfig.h" 2757 2758 2759 ac_aux_dir= 2760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2761 if test -f "$ac_dir/install-sh"; then 2762 ac_aux_dir=$ac_dir 2763 ac_install_sh="$ac_aux_dir/install-sh -c" 2764 break 2765 elif test -f "$ac_dir/install.sh"; then 2766 ac_aux_dir=$ac_dir 2767 ac_install_sh="$ac_aux_dir/install.sh -c" 2768 break 2769 elif test -f "$ac_dir/shtool"; then 2770 ac_aux_dir=$ac_dir 2771 ac_install_sh="$ac_aux_dir/shtool install -c" 2772 break 2773 fi 2774 done 2775 if test -z "$ac_aux_dir"; then 2776 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2777 fi 2778 2779 # These three variables are undocumented and unsupported, 2780 # and are intended to be withdrawn in a future Autoconf release. 2781 # They can cause serious problems if a builder's source tree is in a directory 2782 # whose full name contains unusual characters. 2783 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2784 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2785 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2786 2787 2788 # Make sure we can run config.sub. 2789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2791 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2793 $as_echo_n "checking build system type... " >&6; } 2794 if ${ac_cv_build+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796 else 2797 ac_build_alias=$build_alias 2798 test "x$ac_build_alias" = x && 2799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2800 test "x$ac_build_alias" = x && 2801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2804 2805 fi 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2807 $as_echo "$ac_cv_build" >&6; } 2808 case $ac_cv_build in 2809 *-*-*) ;; 2810 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2811 esac 2812 build=$ac_cv_build 2813 ac_save_IFS=$IFS; IFS='-' 2814 set x $ac_cv_build 2815 shift 2816 build_cpu=$1 2817 build_vendor=$2 2818 shift; shift 2819 # Remember, the first character of IFS is used to create $*, 2820 # except with old shells: 2821 build_os=$* 2822 IFS=$ac_save_IFS 2823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2824 2825 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2827 $as_echo_n "checking host system type... " >&6; } 2828 if ${ac_cv_host+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830 else 2831 if test "x$host_alias" = x; then 2832 ac_cv_host=$ac_cv_build 2833 else 2834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2836 fi 2837 2838 fi 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2840 $as_echo "$ac_cv_host" >&6; } 2841 case $ac_cv_host in 2842 *-*-*) ;; 2843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2844 esac 2845 host=$ac_cv_host 2846 ac_save_IFS=$IFS; IFS='-' 2847 set x $ac_cv_host 2848 shift 2849 host_cpu=$1 2850 host_vendor=$2 2851 shift; shift 2852 # Remember, the first character of IFS is used to create $*, 2853 # except with old shells: 2854 host_os=$* 2855 IFS=$ac_save_IFS 2856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2857 2858 2859 2860 2861 2862 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2863 rm -f pybuilddir.txt 2864 2865 for ac_prog in python$PACKAGE_VERSION python3 python 2866 do 2867 # Extract the first word of "$ac_prog", so it can be a program name with args. 2868 set dummy $ac_prog; ac_word=$2 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870 $as_echo_n "checking for $ac_word... " >&6; } 2871 if ${ac_cv_prog_PYTHON_FOR_GEN+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873 else 2874 if test -n "$PYTHON_FOR_GEN"; then 2875 ac_cv_prog_PYTHON_FOR_GEN="$PYTHON_FOR_GEN" # Let the user override the test. 2876 else 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878 for as_dir in $PATH 2879 do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_PYTHON_FOR_GEN="$ac_prog" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888 done 2889 done 2890 IFS=$as_save_IFS 2891 2892 fi 2893 fi 2894 PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN 2895 if test -n "$PYTHON_FOR_GEN"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_GEN" >&5 2897 $as_echo "$PYTHON_FOR_GEN" >&6; } 2898 else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900 $as_echo "no" >&6; } 2901 fi 2902 2903 2904 test -n "$PYTHON_FOR_GEN" && break 2905 done 2906 test -n "$PYTHON_FOR_GEN" || PYTHON_FOR_GEN="not-found" 2907 2908 if test "$PYTHON_FOR_GEN" = not-found; then 2909 PYTHON_FOR_GEN='@echo "Cannot generate $@, python not found !" && \ 2910 echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \ 2911 echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&' 2912 fi 2913 2914 2915 if test "$cross_compiling" = yes; then 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2917 $as_echo_n "checking for python interpreter for cross build... " >&6; } 2918 if test -z "$PYTHON_FOR_BUILD"; then 2919 for interp in python$PACKAGE_VERSION python3 python; do 2920 which $interp >/dev/null 2>&1 || continue 2921 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then 2922 break 2923 fi 2924 interp= 2925 done 2926 if test x$interp = x; then 2927 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2928 fi 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2930 $as_echo "$interp" >&6; } 2931 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 2932 fi 2933 # Used to comment out stuff for rebuilding generated files 2934 GENERATED_COMMENT='#' 2935 elif test "$cross_compiling" = maybe; then 2936 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2937 else 2938 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2939 GENERATED_COMMENT='' 2940 fi 2941 2942 2943 2944 2945 if test "$prefix" != "/"; then 2946 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2947 fi 2948 2949 2950 2951 2952 # We don't use PACKAGE_ variables, and they cause conflicts 2953 # with other autoconf-based packages that include Python.h 2954 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 2955 rm confdefs.h 2956 mv confdefs.h.new confdefs.h 2957 2958 2959 VERSION=3.6 2960 2961 # Version number of Python's own shared library file. 2962 2963 SOVERSION=1.0 2964 2965 # The later defininition of _XOPEN_SOURCE disables certain features 2966 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 2967 2968 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 2969 2970 2971 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2972 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 2973 # them. 2974 2975 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 2976 2977 2978 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2979 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 2980 # them. 2981 2982 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 2983 2984 2985 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2986 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. 2987 2988 $as_echo "#define _BSD_TYPES 1" >>confdefs.h 2989 2990 2991 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2992 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 2993 # them. 2994 2995 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 2996 2997 2998 2999 define_xopen_source=yes 3000 3001 # Arguments passed to configure. 3002 3003 CONFIG_ARGS="$ac_configure_args" 3004 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3006 $as_echo_n "checking for --enable-universalsdk... " >&6; } 3007 # Check whether --enable-universalsdk was given. 3008 if test "${enable_universalsdk+set}" = set; then : 3009 enableval=$enable_universalsdk; 3010 case $enableval in 3011 yes) 3012 # Locate the best usable SDK, see Mac/README.txt for more 3013 # information 3014 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3015 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3016 then 3017 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3018 if test ! -d "${enableval}" 3019 then 3020 enableval=/ 3021 fi 3022 fi 3023 ;; 3024 esac 3025 case $enableval in 3026 no) 3027 UNIVERSALSDK= 3028 enable_universalsdk= 3029 ;; 3030 *) 3031 UNIVERSALSDK=$enableval 3032 if test ! -d "${UNIVERSALSDK}" 3033 then 3034 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3035 fi 3036 ;; 3037 esac 3038 3039 3040 else 3041 3042 UNIVERSALSDK= 3043 enable_universalsdk= 3044 3045 fi 3046 3047 if test -n "${UNIVERSALSDK}" 3048 then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3050 $as_echo "${UNIVERSALSDK}" >&6; } 3051 else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053 $as_echo "no" >&6; } 3054 fi 3055 3056 3057 3058 ARCH_RUN_32BIT="" 3059 3060 # For backward compatibility reasons we prefer to select '32-bit' if available, 3061 # otherwise use 'intel' 3062 UNIVERSAL_ARCHS="32-bit" 3063 if test "`uname -s`" = "Darwin" 3064 then 3065 if test -n "${UNIVERSALSDK}" 3066 then 3067 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 3068 then 3069 UNIVERSAL_ARCHS="intel" 3070 fi 3071 fi 3072 fi 3073 3074 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3076 $as_echo_n "checking for --with-universal-archs... " >&6; } 3077 3078 # Check whether --with-universal-archs was given. 3079 if test "${with_universal_archs+set}" = set; then : 3080 withval=$with_universal_archs; 3081 UNIVERSAL_ARCHS="$withval" 3082 3083 fi 3084 3085 if test -n "${UNIVERSALSDK}" 3086 then 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 3088 $as_echo "${UNIVERSAL_ARCHS}" >&6; } 3089 else 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091 $as_echo "no" >&6; } 3092 fi 3093 3094 3095 # Check whether --with-framework-name was given. 3096 if test "${with_framework_name+set}" = set; then : 3097 withval=$with_framework_name; 3098 PYTHONFRAMEWORK=${withval} 3099 PYTHONFRAMEWORKDIR=${withval}.framework 3100 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3101 3102 else 3103 3104 PYTHONFRAMEWORK=Python 3105 PYTHONFRAMEWORKDIR=Python.framework 3106 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3107 3108 fi 3109 3110 # Check whether --enable-framework was given. 3111 if test "${enable_framework+set}" = set; then : 3112 enableval=$enable_framework; 3113 case $enableval in 3114 yes) 3115 enableval=/Library/Frameworks 3116 esac 3117 case $enableval in 3118 no) 3119 PYTHONFRAMEWORK= 3120 PYTHONFRAMEWORKDIR=no-framework 3121 PYTHONFRAMEWORKPREFIX= 3122 PYTHONFRAMEWORKINSTALLDIR= 3123 FRAMEWORKINSTALLFIRST= 3124 FRAMEWORKINSTALLLAST= 3125 FRAMEWORKALTINSTALLFIRST= 3126 FRAMEWORKALTINSTALLLAST= 3127 FRAMEWORKPYTHONW= 3128 if test "x${prefix}" = "xNONE"; then 3129 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3130 else 3131 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3132 fi 3133 enable_framework= 3134 ;; 3135 *) 3136 PYTHONFRAMEWORKPREFIX="${enableval}" 3137 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3138 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3139 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " 3140 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3141 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3142 FRAMEWORKPYTHONW="frameworkpythonw" 3143 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3144 3145 if test "x${prefix}" = "xNONE" ; then 3146 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3147 3148 else 3149 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3150 fi 3151 3152 case "${enableval}" in 3153 /System*) 3154 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3155 if test "${prefix}" = "NONE" ; then 3156 # See below 3157 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3158 fi 3159 ;; 3160 3161 /Library*) 3162 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3163 ;; 3164 3165 */Library/Frameworks) 3166 MDIR="`dirname "${enableval}"`" 3167 MDIR="`dirname "${MDIR}"`" 3168 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3169 3170 if test "${prefix}" = "NONE"; then 3171 # User hasn't specified the 3172 # --prefix option, but wants to install 3173 # the framework in a non-default location, 3174 # ensure that the compatibility links get 3175 # installed relative to that prefix as well 3176 # instead of in /usr/local. 3177 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3178 fi 3179 ;; 3180 3181 *) 3182 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3183 ;; 3184 esac 3185 3186 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3187 3188 # Add files for Mac specific code to the list of output 3189 # files: 3190 ac_config_files="$ac_config_files Mac/Makefile" 3191 3192 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3193 3194 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3195 3196 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3197 3198 esac 3199 3200 else 3201 3202 PYTHONFRAMEWORK= 3203 PYTHONFRAMEWORKDIR=no-framework 3204 PYTHONFRAMEWORKPREFIX= 3205 PYTHONFRAMEWORKINSTALLDIR= 3206 FRAMEWORKINSTALLFIRST= 3207 FRAMEWORKINSTALLLAST= 3208 FRAMEWORKALTINSTALLFIRST= 3209 FRAMEWORKALTINSTALLLAST= 3210 FRAMEWORKPYTHONW= 3211 if test "x${prefix}" = "xNONE" ; then 3212 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3213 else 3214 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3215 fi 3216 enable_framework= 3217 3218 3219 fi 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 ##AC_ARG_WITH(dyld, 3235 ## AS_HELP_STRING([--with-dyld], 3236 ## [Use (OpenStep|Rhapsody) dynamic linker])) 3237 ## 3238 # Set name for machine-dependent library files 3239 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3241 $as_echo_n "checking MACHDEP... " >&6; } 3242 if test -z "$MACHDEP" 3243 then 3244 # avoid using uname for cross builds 3245 if test "$cross_compiling" = yes; then 3246 # ac_sys_system and ac_sys_release are used for setting 3247 # a lot of different things including 'define_xopen_source' 3248 # in the case statement below. 3249 case "$host" in 3250 *-*-linux-android*) 3251 ac_sys_system=Linux-android 3252 ;; 3253 *-*-linux*) 3254 ac_sys_system=Linux 3255 ;; 3256 *-*-cygwin*) 3257 ac_sys_system=Cygwin 3258 ;; 3259 *) 3260 # for now, limit cross builds to known configurations 3261 MACHDEP="unknown" 3262 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3263 esac 3264 ac_sys_release= 3265 else 3266 ac_sys_system=`uname -s` 3267 if test "$ac_sys_system" = "AIX" \ 3268 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3269 ac_sys_release=`uname -v` 3270 else 3271 ac_sys_release=`uname -r` 3272 fi 3273 fi 3274 ac_md_system=`echo $ac_sys_system | 3275 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3276 ac_md_release=`echo $ac_sys_release | 3277 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3278 MACHDEP="$ac_md_system$ac_md_release" 3279 3280 case $MACHDEP in 3281 linux*) MACHDEP="linux";; 3282 cygwin*) MACHDEP="cygwin";; 3283 darwin*) MACHDEP="darwin";; 3284 irix646) MACHDEP="irix6";; 3285 '') MACHDEP="unknown";; 3286 esac 3287 fi 3288 3289 3290 if test "$cross_compiling" = yes; then 3291 case "$host" in 3292 *-*-linux*) 3293 case "$host_cpu" in 3294 arm*) 3295 _host_cpu=arm 3296 ;; 3297 *) 3298 _host_cpu=$host_cpu 3299 esac 3300 ;; 3301 *-*-cygwin*) 3302 _host_cpu= 3303 ;; 3304 *) 3305 # for now, limit cross builds to known configurations 3306 MACHDEP="unknown" 3307 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3308 esac 3309 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3310 fi 3311 3312 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3313 # disable features if it is defined, without any means to access these 3314 # features as extensions. For these systems, we skip the definition of 3315 # _XOPEN_SOURCE. Before adding a system to the list to gain access to 3316 # some feature, make sure there is no alternative way to access this 3317 # feature. Also, when using wildcards, make sure you have verified the 3318 # need for not defining _XOPEN_SOURCE on all systems matching the 3319 # wildcard, and that the wildcard does not include future systems 3320 # (which may remove their limitations). 3321 case $ac_sys_system/$ac_sys_release in 3322 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3323 # even though select is a POSIX function. Reported by J. Ribbens. 3324 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3325 # In addition, Stefan Krah confirms that issue #1244610 exists through 3326 # OpenBSD 4.6, but is fixed in 4.7. 3327 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3328 define_xopen_source=no 3329 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3330 # also defined. This can be overridden by defining _BSD_SOURCE 3331 # As this has a different meaning on Linux, only define it on OpenBSD 3332 3333 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3334 3335 ;; 3336 OpenBSD/*) 3337 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3338 # also defined. This can be overridden by defining _BSD_SOURCE 3339 # As this has a different meaning on Linux, only define it on OpenBSD 3340 3341 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3342 3343 ;; 3344 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3345 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3346 # Marc Recht 3347 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3348 define_xopen_source=no;; 3349 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3350 # request to enable features supported by the standard as a request 3351 # to disable features not supported by the standard. The best way 3352 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3353 # entirely and define __EXTENSIONS__ instead. 3354 SunOS/*) 3355 define_xopen_source=no;; 3356 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3357 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3358 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3359 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3360 define_xopen_source=no;; 3361 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3362 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3363 SCO_SV/3.2) 3364 define_xopen_source=no;; 3365 # On FreeBSD 4, the math functions C89 does not cover are never defined 3366 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. 3367 FreeBSD/4.*) 3368 define_xopen_source=no;; 3369 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3370 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3371 # identifies itself as Darwin/7.* 3372 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3373 # disables platform specific features beyond repair. 3374 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3375 # has no effect, don't bother defining them 3376 Darwin/[6789].*) 3377 define_xopen_source=no;; 3378 Darwin/1[0-9].*) 3379 define_xopen_source=no;; 3380 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3381 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3382 # or has another value. By not (re)defining it, the defaults come in place. 3383 AIX/4) 3384 define_xopen_source=no;; 3385 AIX/5) 3386 if test `uname -r` -eq 1; then 3387 define_xopen_source=no 3388 fi 3389 ;; 3390 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3391 # defining NI_NUMERICHOST. 3392 QNX/6.3.2) 3393 define_xopen_source=no 3394 ;; 3395 3396 esac 3397 3398 if test $define_xopen_source = yes 3399 then 3400 # X/Open 7, incorporating POSIX.1-2008 3401 3402 $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h 3403 3404 3405 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3406 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3407 # several APIs are not declared. Since this is also needed in some 3408 # cases for HP-UX, we define it globally. 3409 3410 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3411 3412 3413 3414 $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 3415 3416 fi 3417 3418 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 3419 case $ac_sys_system in 3420 hp*|HP*) 3421 define_stdc_a1=yes;; 3422 *) 3423 define_stdc_a1=no;; 3424 esac 3425 3426 if test $define_stdc_a1 = yes 3427 then 3428 3429 $as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 3430 3431 fi 3432 3433 # 3434 # SGI compilers allow the specification of the both the ABI and the 3435 # ISA on the command line. Depending on the values of these switches, 3436 # different and often incompatible code will be generated. 3437 # 3438 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and 3439 # thus supply support for various ABI/ISA combinations. The MACHDEP 3440 # variable is also adjusted. 3441 # 3442 3443 if test ! -z "$SGI_ABI" 3444 then 3445 CC="cc $SGI_ABI" 3446 LDFLAGS="$SGI_ABI $LDFLAGS" 3447 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` 3448 fi 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 3450 $as_echo "$MACHDEP" >&6; } 3451 3452 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3453 # it may influence the way we can build extensions, so distutils 3454 # needs to check it 3455 3456 3457 CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3458 EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3459 3460 # checks for alternative programs 3461 3462 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3463 # for debug/optimization stuff. BASECFLAGS is for flags that are required 3464 # just to get things to compile and link. Users are free to override OPT 3465 # when running configure or make. The build should not break if they do. 3466 # BASECFLAGS should generally not be messed with, however. 3467 3468 # XXX shouldn't some/most/all of this code be merged with the stuff later 3469 # on that fiddles with OPT and BASECFLAGS? 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 3471 $as_echo_n "checking for --without-gcc... " >&6; } 3472 3473 # Check whether --with-gcc was given. 3474 if test "${with_gcc+set}" = set; then : 3475 withval=$with_gcc; 3476 case $withval in 3477 no) CC=${CC:-cc} 3478 without_gcc=yes;; 3479 yes) CC=gcc 3480 without_gcc=no;; 3481 *) CC=$withval 3482 without_gcc=$withval;; 3483 esac 3484 else 3485 3486 case $ac_sys_system in 3487 AIX*) CC=${CC:-xlc_r} 3488 without_gcc=;; 3489 *) without_gcc=no;; 3490 esac 3491 fi 3492 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 3494 $as_echo "$without_gcc" >&6; } 3495 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 3497 $as_echo_n "checking for --with-icc... " >&6; } 3498 3499 # Check whether --with-icc was given. 3500 if test "${with_icc+set}" = set; then : 3501 withval=$with_icc; 3502 case $withval in 3503 no) CC=${CC:-cc} 3504 with_icc=no;; 3505 yes) CC=icc 3506 CXX=icpc 3507 with_icc=yes;; 3508 *) CC=$withval 3509 with_icc=$withval;; 3510 esac 3511 else 3512 3513 with_icc=no 3514 fi 3515 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 3517 $as_echo "$with_icc" >&6; } 3518 3519 # If the user switches compilers, we can't believe the cache 3520 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3521 then 3522 as_fn_error $? "cached CC is different -- throw away $cache_file 3523 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3524 fi 3525 3526 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 3527 # when the compiler supports them, but we don't always want -O2, and 3528 # we set -g later. 3529 if test -z "$CFLAGS"; then 3530 CFLAGS= 3531 fi 3532 3533 if test "$ac_sys_system" = "Darwin" 3534 then 3535 # Compiler selection on MacOSX is more complicated than 3536 # AC_PROG_CC can handle, see Mac/README.txt for more 3537 # information 3538 if test -z "${CC}" 3539 then 3540 found_gcc= 3541 found_clang= 3542 as_save_IFS=$IFS; IFS=: 3543 for as_dir in $PATH 3544 do 3545 IFS=$as_save_IFS 3546 if test -x $as_dir/gcc; then 3547 if test -z "${found_gcc}"; then 3548 found_gcc=$as_dir/gcc 3549 fi 3550 fi 3551 if test -x $as_dir/clang; then 3552 if test -z "${found_clang}"; then 3553 found_clang=$as_dir/clang 3554 fi 3555 fi 3556 done 3557 IFS=$as_save_IFS 3558 3559 if test -n "$found_gcc" -a -n "$found_clang" 3560 then 3561 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 3562 then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 3564 $as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 3565 CC="$found_clang" 3566 CXX="$found_clang++" 3567 fi 3568 3569 3570 elif test -z "$found_gcc" -a -n "$found_clang" 3571 then 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 3573 $as_echo "$as_me: No GCC found, use CLANG" >&6;} 3574 CC="$found_clang" 3575 CXX="$found_clang++" 3576 3577 elif test -z "$found_gcc" -a -z "$found_clang" 3578 then 3579 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 3580 if test -n "${found_clang}" 3581 then 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 3583 $as_echo "$as_me: Using clang from Xcode.app" >&6;} 3584 CC="${found_clang}" 3585 CXX="`/usr/bin/xcrun -find clang++`" 3586 3587 # else: use default behaviour 3588 fi 3589 fi 3590 fi 3591 fi 3592 ac_ext=c 3593 ac_cpp='$CPP $CPPFLAGS' 3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3597 if test -n "$ac_tool_prefix"; then 3598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3599 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3601 $as_echo_n "checking for $ac_word... " >&6; } 3602 if ${ac_cv_prog_CC+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604 else 3605 if test -n "$CC"; then 3606 ac_cv_prog_CC="$CC" # Let the user override the test. 3607 else 3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609 for as_dir in $PATH 3610 do 3611 IFS=$as_save_IFS 3612 test -z "$as_dir" && as_dir=. 3613 for ac_exec_ext in '' $ac_executable_extensions; do 3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3615 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619 done 3620 done 3621 IFS=$as_save_IFS 3622 3623 fi 3624 fi 3625 CC=$ac_cv_prog_CC 3626 if test -n "$CC"; then 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3628 $as_echo "$CC" >&6; } 3629 else 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631 $as_echo "no" >&6; } 3632 fi 3633 3634 3635 fi 3636 if test -z "$ac_cv_prog_CC"; then 3637 ac_ct_CC=$CC 3638 # Extract the first word of "gcc", so it can be a program name with args. 3639 set dummy gcc; ac_word=$2 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3641 $as_echo_n "checking for $ac_word... " >&6; } 3642 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3643 $as_echo_n "(cached) " >&6 3644 else 3645 if test -n "$ac_ct_CC"; then 3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3647 else 3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3649 for as_dir in $PATH 3650 do 3651 IFS=$as_save_IFS 3652 test -z "$as_dir" && as_dir=. 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3655 ac_cv_prog_ac_ct_CC="gcc" 3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659 done 3660 done 3661 IFS=$as_save_IFS 3662 3663 fi 3664 fi 3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3666 if test -n "$ac_ct_CC"; then 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3668 $as_echo "$ac_ct_CC" >&6; } 3669 else 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3671 $as_echo "no" >&6; } 3672 fi 3673 3674 if test "x$ac_ct_CC" = x; then 3675 CC="" 3676 else 3677 case $cross_compiling:$ac_tool_warned in 3678 yes:) 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3681 ac_tool_warned=yes ;; 3682 esac 3683 CC=$ac_ct_CC 3684 fi 3685 else 3686 CC="$ac_cv_prog_CC" 3687 fi 3688 3689 if test -z "$CC"; then 3690 if test -n "$ac_tool_prefix"; then 3691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3692 set dummy ${ac_tool_prefix}cc; ac_word=$2 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3694 $as_echo_n "checking for $ac_word... " >&6; } 3695 if ${ac_cv_prog_CC+:} false; then : 3696 $as_echo_n "(cached) " >&6 3697 else 3698 if test -n "$CC"; then 3699 ac_cv_prog_CC="$CC" # Let the user override the test. 3700 else 3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702 for as_dir in $PATH 3703 do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3708 ac_cv_prog_CC="${ac_tool_prefix}cc" 3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712 done 3713 done 3714 IFS=$as_save_IFS 3715 3716 fi 3717 fi 3718 CC=$ac_cv_prog_CC 3719 if test -n "$CC"; then 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3721 $as_echo "$CC" >&6; } 3722 else 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3724 $as_echo "no" >&6; } 3725 fi 3726 3727 3728 fi 3729 fi 3730 if test -z "$CC"; then 3731 # Extract the first word of "cc", so it can be a program name with args. 3732 set dummy cc; ac_word=$2 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3734 $as_echo_n "checking for $ac_word... " >&6; } 3735 if ${ac_cv_prog_CC+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737 else 3738 if test -n "$CC"; then 3739 ac_cv_prog_CC="$CC" # Let the user override the test. 3740 else 3741 ac_prog_rejected=no 3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743 for as_dir in $PATH 3744 do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3750 ac_prog_rejected=yes 3751 continue 3752 fi 3753 ac_cv_prog_CC="cc" 3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3755 break 2 3756 fi 3757 done 3758 done 3759 IFS=$as_save_IFS 3760 3761 if test $ac_prog_rejected = yes; then 3762 # We found a bogon in the path, so make sure we never use it. 3763 set dummy $ac_cv_prog_CC 3764 shift 3765 if test $# != 0; then 3766 # We chose a different compiler from the bogus one. 3767 # However, it has the same basename, so the bogon will be chosen 3768 # first if we set CC to just the basename; use the full file name. 3769 shift 3770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3771 fi 3772 fi 3773 fi 3774 fi 3775 CC=$ac_cv_prog_CC 3776 if test -n "$CC"; then 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3778 $as_echo "$CC" >&6; } 3779 else 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3781 $as_echo "no" >&6; } 3782 fi 3783 3784 3785 fi 3786 if test -z "$CC"; then 3787 if test -n "$ac_tool_prefix"; then 3788 for ac_prog in cl.exe 3789 do 3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3793 $as_echo_n "checking for $ac_word... " >&6; } 3794 if ${ac_cv_prog_CC+:} false; then : 3795 $as_echo_n "(cached) " >&6 3796 else 3797 if test -n "$CC"; then 3798 ac_cv_prog_CC="$CC" # Let the user override the test. 3799 else 3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3801 for as_dir in $PATH 3802 do 3803 IFS=$as_save_IFS 3804 test -z "$as_dir" && as_dir=. 3805 for ac_exec_ext in '' $ac_executable_extensions; do 3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3809 break 2 3810 fi 3811 done 3812 done 3813 IFS=$as_save_IFS 3814 3815 fi 3816 fi 3817 CC=$ac_cv_prog_CC 3818 if test -n "$CC"; then 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3820 $as_echo "$CC" >&6; } 3821 else 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3823 $as_echo "no" >&6; } 3824 fi 3825 3826 3827 test -n "$CC" && break 3828 done 3829 fi 3830 if test -z "$CC"; then 3831 ac_ct_CC=$CC 3832 for ac_prog in cl.exe 3833 do 3834 # Extract the first word of "$ac_prog", so it can be a program name with args. 3835 set dummy $ac_prog; ac_word=$2 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3837 $as_echo_n "checking for $ac_word... " >&6; } 3838 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840 else 3841 if test -n "$ac_ct_CC"; then 3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3843 else 3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845 for as_dir in $PATH 3846 do 3847 IFS=$as_save_IFS 3848 test -z "$as_dir" && as_dir=. 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3851 ac_cv_prog_ac_ct_CC="$ac_prog" 3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3853 break 2 3854 fi 3855 done 3856 done 3857 IFS=$as_save_IFS 3858 3859 fi 3860 fi 3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3862 if test -n "$ac_ct_CC"; then 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3864 $as_echo "$ac_ct_CC" >&6; } 3865 else 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867 $as_echo "no" >&6; } 3868 fi 3869 3870 3871 test -n "$ac_ct_CC" && break 3872 done 3873 3874 if test "x$ac_ct_CC" = x; then 3875 CC="" 3876 else 3877 case $cross_compiling:$ac_tool_warned in 3878 yes:) 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3881 ac_tool_warned=yes ;; 3882 esac 3883 CC=$ac_ct_CC 3884 fi 3885 fi 3886 3887 fi 3888 3889 3890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3892 as_fn_error $? "no acceptable C compiler found in \$PATH 3893 See \`config.log' for more details" "$LINENO" 5; } 3894 3895 # Provide some information about the compiler. 3896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3897 set X $ac_compile 3898 ac_compiler=$2 3899 for ac_option in --version -v -V -qversion; do 3900 { { ac_try="$ac_compiler $ac_option >&5" 3901 case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904 esac 3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906 $as_echo "$ac_try_echo"; } >&5 3907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3908 ac_status=$? 3909 if test -s conftest.err; then 3910 sed '10a\ 3911 ... rest of stderr output deleted ... 3912 10q' conftest.err >conftest.er1 3913 cat conftest.er1 >&5 3914 fi 3915 rm -f conftest.er1 conftest.err 3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3917 test $ac_status = 0; } 3918 done 3919 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3921 /* end confdefs.h. */ 3922 3923 int 3924 main () 3925 { 3926 3927 ; 3928 return 0; 3929 } 3930 _ACEOF 3931 ac_clean_files_save=$ac_clean_files 3932 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3933 # Try to create an executable without -o first, disregard a.out. 3934 # It will help us diagnose broken compilers, and finding out an intuition 3935 # of exeext. 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3937 $as_echo_n "checking whether the C compiler works... " >&6; } 3938 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3939 3940 # The possible output files: 3941 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3942 3943 ac_rmfiles= 3944 for ac_file in $ac_files 3945 do 3946 case $ac_file in 3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3949 esac 3950 done 3951 rm -f $ac_rmfiles 3952 3953 if { { ac_try="$ac_link_default" 3954 case "(($ac_try" in 3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3956 *) ac_try_echo=$ac_try;; 3957 esac 3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3959 $as_echo "$ac_try_echo"; } >&5 3960 (eval "$ac_link_default") 2>&5 3961 ac_status=$? 3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3963 test $ac_status = 0; }; then : 3964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3965 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3966 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3967 # so that the user can short-circuit this test for compilers unknown to 3968 # Autoconf. 3969 for ac_file in $ac_files '' 3970 do 3971 test -f "$ac_file" || continue 3972 case $ac_file in 3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3974 ;; 3975 [ab].out ) 3976 # We found the default executable, but exeext='' is most 3977 # certainly right. 3978 break;; 3979 *.* ) 3980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3981 then :; else 3982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3983 fi 3984 # We set ac_cv_exeext here because the later test for it is not 3985 # safe: cross compilers may not add the suffix if given an `-o' 3986 # argument, so we may need to know it at that point already. 3987 # Even if this section looks crufty: it has the advantage of 3988 # actually working. 3989 break;; 3990 * ) 3991 break;; 3992 esac 3993 done 3994 test "$ac_cv_exeext" = no && ac_cv_exeext= 3995 3996 else 3997 ac_file='' 3998 fi 3999 if test -z "$ac_file"; then : 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4001 $as_echo "no" >&6; } 4002 $as_echo "$as_me: failed program was:" >&5 4003 sed 's/^/| /' conftest.$ac_ext >&5 4004 4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4007 as_fn_error 77 "C compiler cannot create executables 4008 See \`config.log' for more details" "$LINENO" 5; } 4009 else 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4011 $as_echo "yes" >&6; } 4012 fi 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4014 $as_echo_n "checking for C compiler default output file name... " >&6; } 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4016 $as_echo "$ac_file" >&6; } 4017 ac_exeext=$ac_cv_exeext 4018 4019 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4020 ac_clean_files=$ac_clean_files_save 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4022 $as_echo_n "checking for suffix of executables... " >&6; } 4023 if { { ac_try="$ac_link" 4024 case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027 esac 4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029 $as_echo "$ac_try_echo"; } >&5 4030 (eval "$ac_link") 2>&5 4031 ac_status=$? 4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; }; then : 4034 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4036 # work properly (i.e., refer to `conftest.exe'), while it won't with 4037 # `rm'. 4038 for ac_file in conftest.exe conftest conftest.*; do 4039 test -f "$ac_file" || continue 4040 case $ac_file in 4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4043 break;; 4044 * ) break;; 4045 esac 4046 done 4047 else 4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4050 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4051 See \`config.log' for more details" "$LINENO" 5; } 4052 fi 4053 rm -f conftest conftest$ac_cv_exeext 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4055 $as_echo "$ac_cv_exeext" >&6; } 4056 4057 rm -f conftest.$ac_ext 4058 EXEEXT=$ac_cv_exeext 4059 ac_exeext=$EXEEXT 4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4061 /* end confdefs.h. */ 4062 #include <stdio.h> 4063 int 4064 main () 4065 { 4066 FILE *f = fopen ("conftest.out", "w"); 4067 return ferror (f) || fclose (f) != 0; 4068 4069 ; 4070 return 0; 4071 } 4072 _ACEOF 4073 ac_clean_files="$ac_clean_files conftest.out" 4074 # Check that the compiler produces executables we can run. If not, either 4075 # the compiler is broken, or we cross compile. 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4077 $as_echo_n "checking whether we are cross compiling... " >&6; } 4078 if test "$cross_compiling" != yes; then 4079 { { ac_try="$ac_link" 4080 case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083 esac 4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085 $as_echo "$ac_try_echo"; } >&5 4086 (eval "$ac_link") 2>&5 4087 ac_status=$? 4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4089 test $ac_status = 0; } 4090 if { ac_try='./conftest$ac_cv_exeext' 4091 { { case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094 esac 4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4096 $as_echo "$ac_try_echo"; } >&5 4097 (eval "$ac_try") 2>&5 4098 ac_status=$? 4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4100 test $ac_status = 0; }; }; then 4101 cross_compiling=no 4102 else 4103 if test "$cross_compiling" = maybe; then 4104 cross_compiling=yes 4105 else 4106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4108 as_fn_error $? "cannot run C compiled programs. 4109 If you meant to cross compile, use \`--host'. 4110 See \`config.log' for more details" "$LINENO" 5; } 4111 fi 4112 fi 4113 fi 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4115 $as_echo "$cross_compiling" >&6; } 4116 4117 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4118 ac_clean_files=$ac_clean_files_save 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4120 $as_echo_n "checking for suffix of object files... " >&6; } 4121 if ${ac_cv_objext+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123 else 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125 /* end confdefs.h. */ 4126 4127 int 4128 main () 4129 { 4130 4131 ; 4132 return 0; 4133 } 4134 _ACEOF 4135 rm -f conftest.o conftest.obj 4136 if { { ac_try="$ac_compile" 4137 case "(($ac_try" in 4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4139 *) ac_try_echo=$ac_try;; 4140 esac 4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4142 $as_echo "$ac_try_echo"; } >&5 4143 (eval "$ac_compile") 2>&5 4144 ac_status=$? 4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4146 test $ac_status = 0; }; then : 4147 for ac_file in conftest.o conftest.obj conftest.*; do 4148 test -f "$ac_file" || continue; 4149 case $ac_file in 4150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4152 break;; 4153 esac 4154 done 4155 else 4156 $as_echo "$as_me: failed program was:" >&5 4157 sed 's/^/| /' conftest.$ac_ext >&5 4158 4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4161 as_fn_error $? "cannot compute suffix of object files: cannot compile 4162 See \`config.log' for more details" "$LINENO" 5; } 4163 fi 4164 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4165 fi 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4167 $as_echo "$ac_cv_objext" >&6; } 4168 OBJEXT=$ac_cv_objext 4169 ac_objext=$OBJEXT 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4171 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4172 if ${ac_cv_c_compiler_gnu+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174 else 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176 /* end confdefs.h. */ 4177 4178 int 4179 main () 4180 { 4181 #ifndef __GNUC__ 4182 choke me 4183 #endif 4184 4185 ; 4186 return 0; 4187 } 4188 _ACEOF 4189 if ac_fn_c_try_compile "$LINENO"; then : 4190 ac_compiler_gnu=yes 4191 else 4192 ac_compiler_gnu=no 4193 fi 4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4195 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4196 4197 fi 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4199 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4200 if test $ac_compiler_gnu = yes; then 4201 GCC=yes 4202 else 4203 GCC= 4204 fi 4205 ac_test_CFLAGS=${CFLAGS+set} 4206 ac_save_CFLAGS=$CFLAGS 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4208 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4209 if ${ac_cv_prog_cc_g+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211 else 4212 ac_save_c_werror_flag=$ac_c_werror_flag 4213 ac_c_werror_flag=yes 4214 ac_cv_prog_cc_g=no 4215 CFLAGS="-g" 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217 /* end confdefs.h. */ 4218 4219 int 4220 main () 4221 { 4222 4223 ; 4224 return 0; 4225 } 4226 _ACEOF 4227 if ac_fn_c_try_compile "$LINENO"; then : 4228 ac_cv_prog_cc_g=yes 4229 else 4230 CFLAGS="" 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232 /* end confdefs.h. */ 4233 4234 int 4235 main () 4236 { 4237 4238 ; 4239 return 0; 4240 } 4241 _ACEOF 4242 if ac_fn_c_try_compile "$LINENO"; then : 4243 4244 else 4245 ac_c_werror_flag=$ac_save_c_werror_flag 4246 CFLAGS="-g" 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248 /* end confdefs.h. */ 4249 4250 int 4251 main () 4252 { 4253 4254 ; 4255 return 0; 4256 } 4257 _ACEOF 4258 if ac_fn_c_try_compile "$LINENO"; then : 4259 ac_cv_prog_cc_g=yes 4260 fi 4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4262 fi 4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4264 fi 4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4266 ac_c_werror_flag=$ac_save_c_werror_flag 4267 fi 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4269 $as_echo "$ac_cv_prog_cc_g" >&6; } 4270 if test "$ac_test_CFLAGS" = set; then 4271 CFLAGS=$ac_save_CFLAGS 4272 elif test $ac_cv_prog_cc_g = yes; then 4273 if test "$GCC" = yes; then 4274 CFLAGS="-g -O2" 4275 else 4276 CFLAGS="-g" 4277 fi 4278 else 4279 if test "$GCC" = yes; then 4280 CFLAGS="-O2" 4281 else 4282 CFLAGS= 4283 fi 4284 fi 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4286 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4287 if ${ac_cv_prog_cc_c89+:} false; then : 4288 $as_echo_n "(cached) " >&6 4289 else 4290 ac_cv_prog_cc_c89=no 4291 ac_save_CC=$CC 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293 /* end confdefs.h. */ 4294 #include <stdarg.h> 4295 #include <stdio.h> 4296 struct stat; 4297 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4298 struct buf { int x; }; 4299 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4300 static char *e (p, i) 4301 char **p; 4302 int i; 4303 { 4304 return p[i]; 4305 } 4306 static char *f (char * (*g) (char **, int), char **p, ...) 4307 { 4308 char *s; 4309 va_list v; 4310 va_start (v,p); 4311 s = g (p, va_arg (v,int)); 4312 va_end (v); 4313 return s; 4314 } 4315 4316 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4317 function prototypes and stuff, but not '\xHH' hex character constants. 4318 These don't provoke an error unfortunately, instead are silently treated 4319 as 'x'. The following induces an error, until -std is added to get 4320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4321 array size at least. It's necessary to write '\x00'==0 to get something 4322 that's true only with -std. */ 4323 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4324 4325 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4326 inside strings and character constants. */ 4327 #define FOO(x) 'x' 4328 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4329 4330 int test (int i, double x); 4331 struct s1 {int (*f) (int a);}; 4332 struct s2 {int (*f) (double a);}; 4333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4334 int argc; 4335 char **argv; 4336 int 4337 main () 4338 { 4339 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4340 ; 4341 return 0; 4342 } 4343 _ACEOF 4344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4346 do 4347 CC="$ac_save_CC $ac_arg" 4348 if ac_fn_c_try_compile "$LINENO"; then : 4349 ac_cv_prog_cc_c89=$ac_arg 4350 fi 4351 rm -f core conftest.err conftest.$ac_objext 4352 test "x$ac_cv_prog_cc_c89" != "xno" && break 4353 done 4354 rm -f conftest.$ac_ext 4355 CC=$ac_save_CC 4356 4357 fi 4358 # AC_CACHE_VAL 4359 case "x$ac_cv_prog_cc_c89" in 4360 x) 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4362 $as_echo "none needed" >&6; } ;; 4363 xno) 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4365 $as_echo "unsupported" >&6; } ;; 4366 *) 4367 CC="$CC $ac_cv_prog_cc_c89" 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4369 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4370 esac 4371 if test "x$ac_cv_prog_cc_c89" != xno; then : 4372 4373 fi 4374 4375 ac_ext=c 4376 ac_cpp='$CPP $CPPFLAGS' 4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4380 4381 ac_ext=c 4382 ac_cpp='$CPP $CPPFLAGS' 4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4387 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4388 # On Suns, sometimes $CPP names a directory. 4389 if test -n "$CPP" && test -d "$CPP"; then 4390 CPP= 4391 fi 4392 if test -z "$CPP"; then 4393 if ${ac_cv_prog_CPP+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395 else 4396 # Double quotes because CPP needs to be expanded 4397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4398 do 4399 ac_preproc_ok=false 4400 for ac_c_preproc_warn_flag in '' yes 4401 do 4402 # Use a header file that comes with gcc, so configuring glibc 4403 # with a fresh cross-compiler works. 4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4405 # <limits.h> exists even on freestanding compilers. 4406 # On the NeXT, cc -E runs the code through the compiler's parser, 4407 # not just through cpp. "Syntax error" is here to catch this case. 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409 /* end confdefs.h. */ 4410 #ifdef __STDC__ 4411 # include <limits.h> 4412 #else 4413 # include <assert.h> 4414 #endif 4415 Syntax error 4416 _ACEOF 4417 if ac_fn_c_try_cpp "$LINENO"; then : 4418 4419 else 4420 # Broken: fails on valid input. 4421 continue 4422 fi 4423 rm -f conftest.err conftest.i conftest.$ac_ext 4424 4425 # OK, works on sane cases. Now check whether nonexistent headers 4426 # can be detected and how. 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428 /* end confdefs.h. */ 4429 #include <ac_nonexistent.h> 4430 _ACEOF 4431 if ac_fn_c_try_cpp "$LINENO"; then : 4432 # Broken: success on invalid input. 4433 continue 4434 else 4435 # Passes both tests. 4436 ac_preproc_ok=: 4437 break 4438 fi 4439 rm -f conftest.err conftest.i conftest.$ac_ext 4440 4441 done 4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4443 rm -f conftest.i conftest.err conftest.$ac_ext 4444 if $ac_preproc_ok; then : 4445 break 4446 fi 4447 4448 done 4449 ac_cv_prog_CPP=$CPP 4450 4451 fi 4452 CPP=$ac_cv_prog_CPP 4453 else 4454 ac_cv_prog_CPP=$CPP 4455 fi 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4457 $as_echo "$CPP" >&6; } 4458 ac_preproc_ok=false 4459 for ac_c_preproc_warn_flag in '' yes 4460 do 4461 # Use a header file that comes with gcc, so configuring glibc 4462 # with a fresh cross-compiler works. 4463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4464 # <limits.h> exists even on freestanding compilers. 4465 # On the NeXT, cc -E runs the code through the compiler's parser, 4466 # not just through cpp. "Syntax error" is here to catch this case. 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4468 /* end confdefs.h. */ 4469 #ifdef __STDC__ 4470 # include <limits.h> 4471 #else 4472 # include <assert.h> 4473 #endif 4474 Syntax error 4475 _ACEOF 4476 if ac_fn_c_try_cpp "$LINENO"; then : 4477 4478 else 4479 # Broken: fails on valid input. 4480 continue 4481 fi 4482 rm -f conftest.err conftest.i conftest.$ac_ext 4483 4484 # OK, works on sane cases. Now check whether nonexistent headers 4485 # can be detected and how. 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487 /* end confdefs.h. */ 4488 #include <ac_nonexistent.h> 4489 _ACEOF 4490 if ac_fn_c_try_cpp "$LINENO"; then : 4491 # Broken: success on invalid input. 4492 continue 4493 else 4494 # Passes both tests. 4495 ac_preproc_ok=: 4496 break 4497 fi 4498 rm -f conftest.err conftest.i conftest.$ac_ext 4499 4500 done 4501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4502 rm -f conftest.i conftest.err conftest.$ac_ext 4503 if $ac_preproc_ok; then : 4504 4505 else 4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4508 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4509 See \`config.log' for more details" "$LINENO" 5; } 4510 fi 4511 4512 ac_ext=c 4513 ac_cpp='$CPP $CPPFLAGS' 4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4517 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4519 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4520 if ${ac_cv_path_GREP+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522 else 4523 if test -z "$GREP"; then 4524 ac_path_GREP_found=false 4525 # Loop through the user's path and test for each of PROGNAME-LIST 4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4528 do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_prog in grep ggrep; do 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4534 as_fn_executable_p "$ac_path_GREP" || continue 4535 # Check for GNU ac_path_GREP and select it if it is found. 4536 # Check for GNU $ac_path_GREP 4537 case `"$ac_path_GREP" --version 2>&1` in 4538 *GNU*) 4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4540 *) 4541 ac_count=0 4542 $as_echo_n 0123456789 >"conftest.in" 4543 while : 4544 do 4545 cat "conftest.in" "conftest.in" >"conftest.tmp" 4546 mv "conftest.tmp" "conftest.in" 4547 cp "conftest.in" "conftest.nl" 4548 $as_echo 'GREP' >> "conftest.nl" 4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4551 as_fn_arith $ac_count + 1 && ac_count=$as_val 4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4553 # Best one so far, save it but keep looking for a better one 4554 ac_cv_path_GREP="$ac_path_GREP" 4555 ac_path_GREP_max=$ac_count 4556 fi 4557 # 10*(2^10) chars as input seems more than enough 4558 test $ac_count -gt 10 && break 4559 done 4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4561 esac 4562 4563 $ac_path_GREP_found && break 3 4564 done 4565 done 4566 done 4567 IFS=$as_save_IFS 4568 if test -z "$ac_cv_path_GREP"; then 4569 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4570 fi 4571 else 4572 ac_cv_path_GREP=$GREP 4573 fi 4574 4575 fi 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4577 $as_echo "$ac_cv_path_GREP" >&6; } 4578 GREP="$ac_cv_path_GREP" 4579 4580 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4582 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4583 if ${ac_cv_path_SED+:} false; then : 4584 $as_echo_n "(cached) " >&6 4585 else 4586 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4587 for ac_i in 1 2 3 4 5 6 7; do 4588 ac_script="$ac_script$as_nl$ac_script" 4589 done 4590 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4591 { ac_script=; unset ac_script;} 4592 if test -z "$SED"; then 4593 ac_path_SED_found=false 4594 # Loop through the user's path and test for each of PROGNAME-LIST 4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596 for as_dir in $PATH 4597 do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_prog in sed gsed; do 4601 for ac_exec_ext in '' $ac_executable_extensions; do 4602 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4603 as_fn_executable_p "$ac_path_SED" || continue 4604 # Check for GNU ac_path_SED and select it if it is found. 4605 # Check for GNU $ac_path_SED 4606 case `"$ac_path_SED" --version 2>&1` in 4607 *GNU*) 4608 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4609 *) 4610 ac_count=0 4611 $as_echo_n 0123456789 >"conftest.in" 4612 while : 4613 do 4614 cat "conftest.in" "conftest.in" >"conftest.tmp" 4615 mv "conftest.tmp" "conftest.in" 4616 cp "conftest.in" "conftest.nl" 4617 $as_echo '' >> "conftest.nl" 4618 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4620 as_fn_arith $ac_count + 1 && ac_count=$as_val 4621 if test $ac_count -gt ${ac_path_SED_max-0}; then 4622 # Best one so far, save it but keep looking for a better one 4623 ac_cv_path_SED="$ac_path_SED" 4624 ac_path_SED_max=$ac_count 4625 fi 4626 # 10*(2^10) chars as input seems more than enough 4627 test $ac_count -gt 10 && break 4628 done 4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4630 esac 4631 4632 $ac_path_SED_found && break 3 4633 done 4634 done 4635 done 4636 IFS=$as_save_IFS 4637 if test -z "$ac_cv_path_SED"; then 4638 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4639 fi 4640 else 4641 ac_cv_path_SED=$SED 4642 fi 4643 4644 fi 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4646 $as_echo "$ac_cv_path_SED" >&6; } 4647 SED="$ac_cv_path_SED" 4648 rm -f conftest.sed 4649 4650 4651 4652 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4654 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4655 4656 # Check whether --with-cxx_main was given. 4657 if test "${with_cxx_main+set}" = set; then : 4658 withval=$with_cxx_main; 4659 4660 case $withval in 4661 no) with_cxx_main=no 4662 MAINCC='$(CC)';; 4663 yes) with_cxx_main=yes 4664 MAINCC='$(CXX)';; 4665 *) with_cxx_main=yes 4666 MAINCC=$withval 4667 if test -z "$CXX" 4668 then 4669 CXX=$withval 4670 fi;; 4671 esac 4672 else 4673 4674 with_cxx_main=no 4675 MAINCC='$(CC)' 4676 4677 fi 4678 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4680 $as_echo "$with_cxx_main" >&6; } 4681 4682 preset_cxx="$CXX" 4683 if test -z "$CXX" 4684 then 4685 case "$CC" in 4686 gcc) if test -n "$ac_tool_prefix"; then 4687 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4688 set dummy ${ac_tool_prefix}g++; ac_word=$2 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4690 $as_echo_n "checking for $ac_word... " >&6; } 4691 if ${ac_cv_path_CXX+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693 else 4694 case $CXX in 4695 [\\/]* | ?:[\\/]*) 4696 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4697 ;; 4698 *) 4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4700 for as_dir in notfound 4701 do 4702 IFS=$as_save_IFS 4703 test -z "$as_dir" && as_dir=. 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4706 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4708 break 2 4709 fi 4710 done 4711 done 4712 IFS=$as_save_IFS 4713 4714 ;; 4715 esac 4716 fi 4717 CXX=$ac_cv_path_CXX 4718 if test -n "$CXX"; then 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4720 $as_echo "$CXX" >&6; } 4721 else 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4723 $as_echo "no" >&6; } 4724 fi 4725 4726 4727 fi 4728 if test -z "$ac_cv_path_CXX"; then 4729 ac_pt_CXX=$CXX 4730 # Extract the first word of "g++", so it can be a program name with args. 4731 set dummy g++; ac_word=$2 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733 $as_echo_n "checking for $ac_word... " >&6; } 4734 if ${ac_cv_path_ac_pt_CXX+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736 else 4737 case $ac_pt_CXX in 4738 [\\/]* | ?:[\\/]*) 4739 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4740 ;; 4741 *) 4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743 for as_dir in notfound 4744 do 4745 IFS=$as_save_IFS 4746 test -z "$as_dir" && as_dir=. 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4749 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4751 break 2 4752 fi 4753 done 4754 done 4755 IFS=$as_save_IFS 4756 4757 ;; 4758 esac 4759 fi 4760 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4761 if test -n "$ac_pt_CXX"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4763 $as_echo "$ac_pt_CXX" >&6; } 4764 else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766 $as_echo "no" >&6; } 4767 fi 4768 4769 if test "x$ac_pt_CXX" = x; then 4770 CXX="g++" 4771 else 4772 case $cross_compiling:$ac_tool_warned in 4773 yes:) 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4776 ac_tool_warned=yes ;; 4777 esac 4778 CXX=$ac_pt_CXX 4779 fi 4780 else 4781 CXX="$ac_cv_path_CXX" 4782 fi 4783 ;; 4784 cc) if test -n "$ac_tool_prefix"; then 4785 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4786 set dummy ${ac_tool_prefix}c++; ac_word=$2 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4788 $as_echo_n "checking for $ac_word... " >&6; } 4789 if ${ac_cv_path_CXX+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791 else 4792 case $CXX in 4793 [\\/]* | ?:[\\/]*) 4794 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4795 ;; 4796 *) 4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798 for as_dir in notfound 4799 do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4804 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808 done 4809 done 4810 IFS=$as_save_IFS 4811 4812 ;; 4813 esac 4814 fi 4815 CXX=$ac_cv_path_CXX 4816 if test -n "$CXX"; then 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4818 $as_echo "$CXX" >&6; } 4819 else 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821 $as_echo "no" >&6; } 4822 fi 4823 4824 4825 fi 4826 if test -z "$ac_cv_path_CXX"; then 4827 ac_pt_CXX=$CXX 4828 # Extract the first word of "c++", so it can be a program name with args. 4829 set dummy c++; ac_word=$2 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4831 $as_echo_n "checking for $ac_word... " >&6; } 4832 if ${ac_cv_path_ac_pt_CXX+:} false; then : 4833 $as_echo_n "(cached) " >&6 4834 else 4835 case $ac_pt_CXX in 4836 [\\/]* | ?:[\\/]*) 4837 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4838 ;; 4839 *) 4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4841 for as_dir in notfound 4842 do 4843 IFS=$as_save_IFS 4844 test -z "$as_dir" && as_dir=. 4845 for ac_exec_ext in '' $ac_executable_extensions; do 4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4847 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4849 break 2 4850 fi 4851 done 4852 done 4853 IFS=$as_save_IFS 4854 4855 ;; 4856 esac 4857 fi 4858 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4859 if test -n "$ac_pt_CXX"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4861 $as_echo "$ac_pt_CXX" >&6; } 4862 else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864 $as_echo "no" >&6; } 4865 fi 4866 4867 if test "x$ac_pt_CXX" = x; then 4868 CXX="c++" 4869 else 4870 case $cross_compiling:$ac_tool_warned in 4871 yes:) 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4874 ac_tool_warned=yes ;; 4875 esac 4876 CXX=$ac_pt_CXX 4877 fi 4878 else 4879 CXX="$ac_cv_path_CXX" 4880 fi 4881 ;; 4882 clang|*/clang) if test -n "$ac_tool_prefix"; then 4883 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 4884 set dummy ${ac_tool_prefix}clang++; ac_word=$2 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4886 $as_echo_n "checking for $ac_word... " >&6; } 4887 if ${ac_cv_path_CXX+:} false; then : 4888 $as_echo_n "(cached) " >&6 4889 else 4890 case $CXX in 4891 [\\/]* | ?:[\\/]*) 4892 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4893 ;; 4894 *) 4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896 for as_dir in notfound 4897 do 4898 IFS=$as_save_IFS 4899 test -z "$as_dir" && as_dir=. 4900 for ac_exec_ext in '' $ac_executable_extensions; do 4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4902 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4904 break 2 4905 fi 4906 done 4907 done 4908 IFS=$as_save_IFS 4909 4910 ;; 4911 esac 4912 fi 4913 CXX=$ac_cv_path_CXX 4914 if test -n "$CXX"; then 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4916 $as_echo "$CXX" >&6; } 4917 else 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919 $as_echo "no" >&6; } 4920 fi 4921 4922 4923 fi 4924 if test -z "$ac_cv_path_CXX"; then 4925 ac_pt_CXX=$CXX 4926 # Extract the first word of "clang++", so it can be a program name with args. 4927 set dummy clang++; ac_word=$2 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4929 $as_echo_n "checking for $ac_word... " >&6; } 4930 if ${ac_cv_path_ac_pt_CXX+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932 else 4933 case $ac_pt_CXX in 4934 [\\/]* | ?:[\\/]*) 4935 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4936 ;; 4937 *) 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939 for as_dir in notfound 4940 do 4941 IFS=$as_save_IFS 4942 test -z "$as_dir" && as_dir=. 4943 for ac_exec_ext in '' $ac_executable_extensions; do 4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4945 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4947 break 2 4948 fi 4949 done 4950 done 4951 IFS=$as_save_IFS 4952 4953 ;; 4954 esac 4955 fi 4956 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4957 if test -n "$ac_pt_CXX"; then 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4959 $as_echo "$ac_pt_CXX" >&6; } 4960 else 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4962 $as_echo "no" >&6; } 4963 fi 4964 4965 if test "x$ac_pt_CXX" = x; then 4966 CXX="clang++" 4967 else 4968 case $cross_compiling:$ac_tool_warned in 4969 yes:) 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4972 ac_tool_warned=yes ;; 4973 esac 4974 CXX=$ac_pt_CXX 4975 fi 4976 else 4977 CXX="$ac_cv_path_CXX" 4978 fi 4979 ;; 4980 icc|*/icc) if test -n "$ac_tool_prefix"; then 4981 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 4982 set dummy ${ac_tool_prefix}icpc; ac_word=$2 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984 $as_echo_n "checking for $ac_word... " >&6; } 4985 if ${ac_cv_path_CXX+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987 else 4988 case $CXX in 4989 [\\/]* | ?:[\\/]*) 4990 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4991 ;; 4992 *) 4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4994 for as_dir in notfound 4995 do 4996 IFS=$as_save_IFS 4997 test -z "$as_dir" && as_dir=. 4998 for ac_exec_ext in '' $ac_executable_extensions; do 4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5000 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5002 break 2 5003 fi 5004 done 5005 done 5006 IFS=$as_save_IFS 5007 5008 ;; 5009 esac 5010 fi 5011 CXX=$ac_cv_path_CXX 5012 if test -n "$CXX"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5014 $as_echo "$CXX" >&6; } 5015 else 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017 $as_echo "no" >&6; } 5018 fi 5019 5020 5021 fi 5022 if test -z "$ac_cv_path_CXX"; then 5023 ac_pt_CXX=$CXX 5024 # Extract the first word of "icpc", so it can be a program name with args. 5025 set dummy icpc; ac_word=$2 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5027 $as_echo_n "checking for $ac_word... " >&6; } 5028 if ${ac_cv_path_ac_pt_CXX+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030 else 5031 case $ac_pt_CXX in 5032 [\\/]* | ?:[\\/]*) 5033 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 5034 ;; 5035 *) 5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5037 for as_dir in notfound 5038 do 5039 IFS=$as_save_IFS 5040 test -z "$as_dir" && as_dir=. 5041 for ac_exec_ext in '' $ac_executable_extensions; do 5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5043 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5045 break 2 5046 fi 5047 done 5048 done 5049 IFS=$as_save_IFS 5050 5051 ;; 5052 esac 5053 fi 5054 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 5055 if test -n "$ac_pt_CXX"; then 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 5057 $as_echo "$ac_pt_CXX" >&6; } 5058 else 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5060 $as_echo "no" >&6; } 5061 fi 5062 5063 if test "x$ac_pt_CXX" = x; then 5064 CXX="icpc" 5065 else 5066 case $cross_compiling:$ac_tool_warned in 5067 yes:) 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5070 ac_tool_warned=yes ;; 5071 esac 5072 CXX=$ac_pt_CXX 5073 fi 5074 else 5075 CXX="$ac_cv_path_CXX" 5076 fi 5077 ;; 5078 esac 5079 if test "$CXX" = "notfound" 5080 then 5081 CXX="" 5082 fi 5083 fi 5084 if test -z "$CXX" 5085 then 5086 if test -n "$ac_tool_prefix"; then 5087 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5088 do 5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5092 $as_echo_n "checking for $ac_word... " >&6; } 5093 if ${ac_cv_prog_CXX+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095 else 5096 if test -n "$CXX"; then 5097 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5098 else 5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5100 for as_dir in $PATH 5101 do 5102 IFS=$as_save_IFS 5103 test -z "$as_dir" && as_dir=. 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110 done 5111 done 5112 IFS=$as_save_IFS 5113 5114 fi 5115 fi 5116 CXX=$ac_cv_prog_CXX 5117 if test -n "$CXX"; then 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5119 $as_echo "$CXX" >&6; } 5120 else 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5122 $as_echo "no" >&6; } 5123 fi 5124 5125 5126 test -n "$CXX" && break 5127 done 5128 fi 5129 if test -z "$CXX"; then 5130 ac_ct_CXX=$CXX 5131 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5132 do 5133 # Extract the first word of "$ac_prog", so it can be a program name with args. 5134 set dummy $ac_prog; ac_word=$2 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136 $as_echo_n "checking for $ac_word... " >&6; } 5137 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139 else 5140 if test -n "$ac_ct_CXX"; then 5141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5142 else 5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5144 for as_dir in $PATH 5145 do 5146 IFS=$as_save_IFS 5147 test -z "$as_dir" && as_dir=. 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5150 ac_cv_prog_ac_ct_CXX="$ac_prog" 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5152 break 2 5153 fi 5154 done 5155 done 5156 IFS=$as_save_IFS 5157 5158 fi 5159 fi 5160 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5161 if test -n "$ac_ct_CXX"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5163 $as_echo "$ac_ct_CXX" >&6; } 5164 else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166 $as_echo "no" >&6; } 5167 fi 5168 5169 5170 test -n "$ac_ct_CXX" && break 5171 done 5172 5173 if test "x$ac_ct_CXX" = x; then 5174 CXX="notfound" 5175 else 5176 case $cross_compiling:$ac_tool_warned in 5177 yes:) 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5180 ac_tool_warned=yes ;; 5181 esac 5182 CXX=$ac_ct_CXX 5183 fi 5184 fi 5185 5186 if test "$CXX" = "notfound" 5187 then 5188 CXX="" 5189 fi 5190 fi 5191 if test "$preset_cxx" != "$CXX" 5192 then 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: 5194 5195 By default, distutils will build C++ extension modules with \"$CXX\". 5196 If this is not intended, then set CXX on the configure command line. 5197 " >&5 5198 $as_echo "$as_me: 5199 5200 By default, distutils will build C++ extension modules with \"$CXX\". 5201 If this is not intended, then set CXX on the configure command line. 5202 " >&6;} 5203 fi 5204 5205 5206 MULTIARCH=$($CC --print-multiarch 2>/dev/null) 5207 5208 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 5210 $as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } 5211 cat >> conftest.c <<EOF 5212 #undef bfin 5213 #undef cris 5214 #undef fr30 5215 #undef linux 5216 #undef hppa 5217 #undef hpux 5218 #undef i386 5219 #undef mips 5220 #undef powerpc 5221 #undef sparc 5222 #undef unix 5223 #if defined(__ANDROID__) 5224 # Android is not a multiarch system. 5225 #elif defined(__linux__) 5226 # if defined(__x86_64__) && defined(__LP64__) 5227 x86_64-linux-gnu 5228 # elif defined(__x86_64__) && defined(__ILP32__) 5229 x86_64-linux-gnux32 5230 # elif defined(__i386__) 5231 i386-linux-gnu 5232 # elif defined(__aarch64__) && defined(__AARCH64EL__) 5233 # if defined(__ILP32__) 5234 aarch64_ilp32-linux-gnu 5235 # else 5236 aarch64-linux-gnu 5237 # endif 5238 # elif defined(__aarch64__) && defined(__AARCH64EB__) 5239 # if defined(__ILP32__) 5240 aarch64_be_ilp32-linux-gnu 5241 # else 5242 aarch64_be-linux-gnu 5243 # endif 5244 # elif defined(__alpha__) 5245 alpha-linux-gnu 5246 # elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) 5247 # if defined(__ARMEL__) 5248 arm-linux-gnueabihf 5249 # else 5250 armeb-linux-gnueabihf 5251 # endif 5252 # elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) 5253 # if defined(__ARMEL__) 5254 arm-linux-gnueabi 5255 # else 5256 armeb-linux-gnueabi 5257 # endif 5258 # elif defined(__hppa__) 5259 hppa-linux-gnu 5260 # elif defined(__ia64__) 5261 ia64-linux-gnu 5262 # elif defined(__m68k__) && !defined(__mcoldfire__) 5263 m68k-linux-gnu 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 # else 5307 # error unknown platform triplet 5308 # endif 5309 #elif defined(__FreeBSD_kernel__) 5310 # if defined(__LP64__) 5311 x86_64-kfreebsd-gnu 5312 # elif defined(__i386__) 5313 i386-kfreebsd-gnu 5314 # else 5315 # error unknown platform triplet 5316 # endif 5317 #elif defined(__gnu_hurd__) 5318 i386-gnu 5319 #elif defined(__APPLE__) 5320 darwin 5321 #else 5322 # error unknown platform triplet 5323 #endif 5324 5325 EOF 5326 5327 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5328 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 5330 $as_echo "$PLATFORM_TRIPLET" >&6; } 5331 else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5333 $as_echo "none" >&6; } 5334 fi 5335 rm -f conftest.c conftest.out 5336 5337 if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 5338 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 5339 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 5340 fi 5341 elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 5342 MULTIARCH=$PLATFORM_TRIPLET 5343 fi 5344 5345 if test x$MULTIARCH != x; then 5346 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 5347 fi 5348 5349 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 5351 $as_echo_n "checking for -Wl,--no-as-needed... " >&6; } 5352 save_LDFLAGS="$LDFLAGS" 5353 LDFLAGS="$LDFLAGS -Wl,--no-as-needed" 5354 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356 /* end confdefs.h. */ 5357 5358 int 5359 main () 5360 { 5361 5362 ; 5363 return 0; 5364 } 5365 _ACEOF 5366 if ac_fn_c_try_link "$LINENO"; then : 5367 NO_AS_NEEDED="-Wl,--no-as-needed" 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5369 $as_echo "yes" >&6; } 5370 else 5371 NO_AS_NEEDED="" 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373 $as_echo "no" >&6; } 5374 fi 5375 rm -f core conftest.err conftest.$ac_objext \ 5376 conftest$ac_exeext conftest.$ac_ext 5377 LDFLAGS="$save_LDFLAGS" 5378 5379 5380 5381 # checks for UNIX variants that set C preprocessor variables 5382 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5384 $as_echo_n "checking for egrep... " >&6; } 5385 if ${ac_cv_path_EGREP+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387 else 5388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5389 then ac_cv_path_EGREP="$GREP -E" 5390 else 5391 if test -z "$EGREP"; then 5392 ac_path_EGREP_found=false 5393 # Loop through the user's path and test for each of PROGNAME-LIST 5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5396 do 5397 IFS=$as_save_IFS 5398 test -z "$as_dir" && as_dir=. 5399 for ac_prog in egrep; do 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5402 as_fn_executable_p "$ac_path_EGREP" || continue 5403 # Check for GNU ac_path_EGREP and select it if it is found. 5404 # Check for GNU $ac_path_EGREP 5405 case `"$ac_path_EGREP" --version 2>&1` in 5406 *GNU*) 5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5408 *) 5409 ac_count=0 5410 $as_echo_n 0123456789 >"conftest.in" 5411 while : 5412 do 5413 cat "conftest.in" "conftest.in" >"conftest.tmp" 5414 mv "conftest.tmp" "conftest.in" 5415 cp "conftest.in" "conftest.nl" 5416 $as_echo 'EGREP' >> "conftest.nl" 5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5419 as_fn_arith $ac_count + 1 && ac_count=$as_val 5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5421 # Best one so far, save it but keep looking for a better one 5422 ac_cv_path_EGREP="$ac_path_EGREP" 5423 ac_path_EGREP_max=$ac_count 5424 fi 5425 # 10*(2^10) chars as input seems more than enough 5426 test $ac_count -gt 10 && break 5427 done 5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5429 esac 5430 5431 $ac_path_EGREP_found && break 3 5432 done 5433 done 5434 done 5435 IFS=$as_save_IFS 5436 if test -z "$ac_cv_path_EGREP"; then 5437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5438 fi 5439 else 5440 ac_cv_path_EGREP=$EGREP 5441 fi 5442 5443 fi 5444 fi 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5446 $as_echo "$ac_cv_path_EGREP" >&6; } 5447 EGREP="$ac_cv_path_EGREP" 5448 5449 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5451 $as_echo_n "checking for ANSI C header files... " >&6; } 5452 if ${ac_cv_header_stdc+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454 else 5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456 /* end confdefs.h. */ 5457 #include <stdlib.h> 5458 #include <stdarg.h> 5459 #include <string.h> 5460 #include <float.h> 5461 5462 int 5463 main () 5464 { 5465 5466 ; 5467 return 0; 5468 } 5469 _ACEOF 5470 if ac_fn_c_try_compile "$LINENO"; then : 5471 ac_cv_header_stdc=yes 5472 else 5473 ac_cv_header_stdc=no 5474 fi 5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5476 5477 if test $ac_cv_header_stdc = yes; then 5478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480 /* end confdefs.h. */ 5481 #include <string.h> 5482 5483 _ACEOF 5484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5485 $EGREP "memchr" >/dev/null 2>&1; then : 5486 5487 else 5488 ac_cv_header_stdc=no 5489 fi 5490 rm -f conftest* 5491 5492 fi 5493 5494 if test $ac_cv_header_stdc = yes; then 5495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497 /* end confdefs.h. */ 5498 #include <stdlib.h> 5499 5500 _ACEOF 5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5502 $EGREP "free" >/dev/null 2>&1; then : 5503 5504 else 5505 ac_cv_header_stdc=no 5506 fi 5507 rm -f conftest* 5508 5509 fi 5510 5511 if test $ac_cv_header_stdc = yes; then 5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5513 if test "$cross_compiling" = yes; then : 5514 : 5515 else 5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517 /* end confdefs.h. */ 5518 #include <ctype.h> 5519 #include <stdlib.h> 5520 #if ((' ' & 0x0FF) == 0x020) 5521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5523 #else 5524 # define ISLOWER(c) \ 5525 (('a' <= (c) && (c) <= 'i') \ 5526 || ('j' <= (c) && (c) <= 'r') \ 5527 || ('s' <= (c) && (c) <= 'z')) 5528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5529 #endif 5530 5531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5532 int 5533 main () 5534 { 5535 int i; 5536 for (i = 0; i < 256; i++) 5537 if (XOR (islower (i), ISLOWER (i)) 5538 || toupper (i) != TOUPPER (i)) 5539 return 2; 5540 return 0; 5541 } 5542 _ACEOF 5543 if ac_fn_c_try_run "$LINENO"; then : 5544 5545 else 5546 ac_cv_header_stdc=no 5547 fi 5548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5549 conftest.$ac_objext conftest.beam conftest.$ac_ext 5550 fi 5551 5552 fi 5553 fi 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5555 $as_echo "$ac_cv_header_stdc" >&6; } 5556 if test $ac_cv_header_stdc = yes; then 5557 5558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5559 5560 fi 5561 5562 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5564 inttypes.h stdint.h unistd.h 5565 do : 5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5568 " 5569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5570 cat >>confdefs.h <<_ACEOF 5571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5572 _ACEOF 5573 5574 fi 5575 5576 done 5577 5578 5579 5580 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5581 if test "x$ac_cv_header_minix_config_h" = xyes; then : 5582 MINIX=yes 5583 else 5584 MINIX= 5585 fi 5586 5587 5588 if test "$MINIX" = yes; then 5589 5590 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5591 5592 5593 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5594 5595 5596 $as_echo "#define _MINIX 1" >>confdefs.h 5597 5598 fi 5599 5600 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5602 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5603 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605 else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607 /* end confdefs.h. */ 5608 5609 # define __EXTENSIONS__ 1 5610 $ac_includes_default 5611 int 5612 main () 5613 { 5614 5615 ; 5616 return 0; 5617 } 5618 _ACEOF 5619 if ac_fn_c_try_compile "$LINENO"; then : 5620 ac_cv_safe_to_define___extensions__=yes 5621 else 5622 ac_cv_safe_to_define___extensions__=no 5623 fi 5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5625 fi 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5627 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5628 test $ac_cv_safe_to_define___extensions__ = yes && 5629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5630 5631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5632 5633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5634 5635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5636 5637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5638 5639 5640 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 5642 $as_echo_n "checking for the Android API level... " >&6; } 5643 cat >> conftest.c <<EOF 5644 #ifdef __ANDROID__ 5645 #include <android/api-level.h> 5646 android_api = __ANDROID_API__ 5647 arm_arch = __ARM_ARCH 5648 #else 5649 #error not Android 5650 #endif 5651 EOF 5652 5653 if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5654 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 5655 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 5657 $as_echo "$ANDROID_API_LEVEL" >&6; } 5658 5659 cat >>confdefs.h <<_ACEOF 5660 #define ANDROID_API_LEVEL $ANDROID_API_LEVEL 5661 _ACEOF 5662 5663 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 5665 $as_echo_n "checking for the Android arm ABI... " >&6; } 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 5667 $as_echo "$_arm_arch" >&6; } 5668 if test "$_arm_arch" = 7; then 5669 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 5670 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 5671 fi 5672 else 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 5674 $as_echo "not Android" >&6; } 5675 fi 5676 rm -f conftest.c conftest.out 5677 5678 # Check for unsupported systems 5679 case $ac_sys_system/$ac_sys_release in 5680 atheos*|Linux*/1*) 5681 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5682 echo See README for details. 5683 exit 1;; 5684 esac 5685 5686 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5688 $as_echo_n "checking for --with-suffix... " >&6; } 5689 5690 # Check whether --with-suffix was given. 5691 if test "${with_suffix+set}" = set; then : 5692 withval=$with_suffix; 5693 case $withval in 5694 no) EXEEXT=;; 5695 yes) EXEEXT=.exe;; 5696 *) EXEEXT=$withval;; 5697 esac 5698 fi 5699 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5701 $as_echo "$EXEEXT" >&6; } 5702 5703 # Test whether we're running on a non-case-sensitive system, in which 5704 # case we give a warning if no ext is given 5705 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5707 $as_echo_n "checking for case-insensitive build directory... " >&6; } 5708 if test ! -d CaseSensitiveTestDir; then 5709 mkdir CaseSensitiveTestDir 5710 fi 5711 5712 if test -d casesensitivetestdir 5713 then 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5715 $as_echo "yes" >&6; } 5716 BUILDEXEEXT=.exe 5717 else 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5719 $as_echo "no" >&6; } 5720 BUILDEXEEXT=$EXEEXT 5721 fi 5722 rmdir CaseSensitiveTestDir 5723 5724 case $MACHDEP in 5725 bsdos*) 5726 case $CC in 5727 gcc) CC="$CC -D_HAVE_BSDI";; 5728 esac;; 5729 esac 5730 5731 case $ac_sys_system in 5732 hp*|HP*) 5733 case $CC in 5734 cc|*/cc) CC="$CC -Ae";; 5735 esac;; 5736 esac 5737 5738 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5740 $as_echo_n "checking LIBRARY... " >&6; } 5741 if test -z "$LIBRARY" 5742 then 5743 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 5744 fi 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5746 $as_echo "$LIBRARY" >&6; } 5747 5748 # LDLIBRARY is the name of the library to link against (as opposed to the 5749 # name of the library into which to insert object files). BLDLIBRARY is also 5750 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5751 # is blank as the main program is not linked directly against LDLIBRARY. 5752 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5753 # systems without shared libraries, LDLIBRARY is the same as LIBRARY 5754 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5755 # DLLLIBRARY is the shared (i.e., DLL) library. 5756 # 5757 # RUNSHARED is used to run shared python without installed libraries 5758 # 5759 # INSTSONAME is the name of the shared library that will be use to install 5760 # on the system - some systems like version suffix, others don't 5761 # 5762 # LDVERSION is the shared library version number, normally the Python version 5763 # with the ABI build flags appended. 5764 5765 5766 5767 5768 5769 5770 5771 5772 LDLIBRARY="$LIBRARY" 5773 BLDLIBRARY='$(LDLIBRARY)' 5774 INSTSONAME='$(LDLIBRARY)' 5775 DLLLIBRARY='' 5776 LDLIBRARYDIR='' 5777 RUNSHARED='' 5778 LDVERSION="$VERSION" 5779 5780 # LINKCC is the command that links the python executable -- default is $(CC). 5781 # If CXX is set, and if it is needed to link a main function that was 5782 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5783 # python might then depend on the C++ runtime 5784 # This is altered for AIX in order to build the export list before 5785 # linking. 5786 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5788 $as_echo_n "checking LINKCC... " >&6; } 5789 if test -z "$LINKCC" 5790 then 5791 LINKCC='$(PURIFY) $(MAINCC)' 5792 case $ac_sys_system in 5793 AIX*) 5794 exp_extra="\"\"" 5795 if test $ac_sys_release -ge 5 -o \ 5796 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then 5797 exp_extra="." 5798 fi 5799 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; 5800 QNX*) 5801 # qcc must be used because the other compilers do not 5802 # support -N. 5803 LINKCC=qcc;; 5804 esac 5805 fi 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5807 $as_echo "$LINKCC" >&6; } 5808 5809 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5810 # make sure we default having it set to "no": this is used by 5811 # distutils.unixccompiler to know if it should add --enable-new-dtags 5812 # to linker command lines, and failing to detect GNU ld simply results 5813 # in the same bahaviour as before. 5814 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5816 $as_echo_n "checking for GNU ld... " >&6; } 5817 ac_prog=ld 5818 if test "$GCC" = yes; then 5819 ac_prog=`$CC -print-prog-name=ld` 5820 fi 5821 case `"$ac_prog" -V 2>&1 < /dev/null` in 5822 *GNU*) 5823 GNULD=yes;; 5824 *) 5825 GNULD=no;; 5826 esac 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5828 $as_echo "$GNULD" >&6; } 5829 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5831 $as_echo_n "checking for inline... " >&6; } 5832 if ${ac_cv_c_inline+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834 else 5835 ac_cv_c_inline=no 5836 for ac_kw in inline __inline__ __inline; do 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838 /* end confdefs.h. */ 5839 #ifndef __cplusplus 5840 typedef int foo_t; 5841 static $ac_kw foo_t static_foo () {return 0; } 5842 $ac_kw foo_t foo () {return 0; } 5843 #endif 5844 5845 _ACEOF 5846 if ac_fn_c_try_compile "$LINENO"; then : 5847 ac_cv_c_inline=$ac_kw 5848 fi 5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850 test "$ac_cv_c_inline" != no && break 5851 done 5852 5853 fi 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5855 $as_echo "$ac_cv_c_inline" >&6; } 5856 5857 case $ac_cv_c_inline in 5858 inline | yes) ;; 5859 *) 5860 case $ac_cv_c_inline in 5861 no) ac_val=;; 5862 *) ac_val=$ac_cv_c_inline;; 5863 esac 5864 cat >>confdefs.h <<_ACEOF 5865 #ifndef __cplusplus 5866 #define inline $ac_val 5867 #endif 5868 _ACEOF 5869 ;; 5870 esac 5871 5872 if test "$ac_cv_c_inline" != no ; then 5873 5874 $as_echo "#define USE_INLINE 1" >>confdefs.h 5875 5876 5877 fi 5878 5879 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5881 $as_echo_n "checking for --enable-shared... " >&6; } 5882 # Check whether --enable-shared was given. 5883 if test "${enable_shared+set}" = set; then : 5884 enableval=$enable_shared; 5885 fi 5886 5887 5888 if test -z "$enable_shared" 5889 then 5890 case $ac_sys_system in 5891 CYGWIN*) 5892 enable_shared="yes";; 5893 *) 5894 enable_shared="no";; 5895 esac 5896 fi 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5898 $as_echo "$enable_shared" >&6; } 5899 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5901 $as_echo_n "checking for --enable-profiling... " >&6; } 5902 # Check whether --enable-profiling was given. 5903 if test "${enable_profiling+set}" = set; then : 5904 enableval=$enable_profiling; 5905 fi 5906 5907 if test "x$enable_profiling" = xyes; then 5908 ac_save_cc="$CC" 5909 CC="$CC -pg" 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911 /* end confdefs.h. */ 5912 int main() { return 0; } 5913 _ACEOF 5914 if ac_fn_c_try_link "$LINENO"; then : 5915 5916 else 5917 enable_profiling=no 5918 fi 5919 rm -f core conftest.err conftest.$ac_objext \ 5920 conftest$ac_exeext conftest.$ac_ext 5921 CC="$ac_save_cc" 5922 else 5923 enable_profiling=no 5924 fi 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5926 $as_echo "$enable_profiling" >&6; } 5927 5928 if test "x$enable_profiling" = xyes; then 5929 BASECFLAGS="-pg $BASECFLAGS" 5930 LDFLAGS="-pg $LDFLAGS" 5931 fi 5932 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5934 $as_echo_n "checking LDLIBRARY... " >&6; } 5935 5936 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5937 # library that we build, but we do not want to link against it (we 5938 # will find it with a -framework option). For this reason there is an 5939 # extra variable BLDLIBRARY against which Python and the extension 5940 # modules are linked, BLDLIBRARY. This is normally the same as 5941 # LDLIBRARY, but empty for MacOSX framework builds. 5942 if test "$enable_framework" 5943 then 5944 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5945 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5946 BLDLIBRARY='' 5947 else 5948 BLDLIBRARY='$(LDLIBRARY)' 5949 fi 5950 5951 # Other platforms follow 5952 if test $enable_shared = "yes"; then 5953 PY_ENABLE_SHARED=1 5954 5955 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5956 5957 case $ac_sys_system in 5958 CYGWIN*) 5959 LDLIBRARY='libpython$(LDVERSION).dll.a' 5960 DLLLIBRARY='libpython$(LDVERSION).dll' 5961 ;; 5962 SunOS*) 5963 LDLIBRARY='libpython$(LDVERSION).so' 5964 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 5965 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5966 INSTSONAME="$LDLIBRARY".$SOVERSION 5967 if test "$with_pydebug" != yes 5968 then 5969 PY3LIBRARY=libpython3.so 5970 fi 5971 ;; 5972 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5973 LDLIBRARY='libpython$(LDVERSION).so' 5974 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5975 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5976 INSTSONAME="$LDLIBRARY".$SOVERSION 5977 if test "$with_pydebug" != yes 5978 then 5979 PY3LIBRARY=libpython3.so 5980 fi 5981 ;; 5982 hp*|HP*) 5983 case `uname -m` in 5984 ia64) 5985 LDLIBRARY='libpython$(LDVERSION).so' 5986 ;; 5987 *) 5988 LDLIBRARY='libpython$(LDVERSION).sl' 5989 ;; 5990 esac 5991 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 5992 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5993 ;; 5994 Darwin*) 5995 LDLIBRARY='libpython$(LDVERSION).dylib' 5996 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5997 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5998 ;; 5999 AIX*) 6000 LDLIBRARY='libpython$(LDVERSION).so' 6001 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 6002 ;; 6003 6004 esac 6005 else # shared is disabled 6006 PY_ENABLE_SHARED=0 6007 case $ac_sys_system in 6008 CYGWIN*) 6009 BLDLIBRARY='$(LIBRARY)' 6010 LDLIBRARY='libpython$(LDVERSION).dll.a' 6011 ;; 6012 esac 6013 fi 6014 6015 if test "$cross_compiling" = yes; then 6016 RUNSHARED= 6017 fi 6018 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 6020 $as_echo "$LDLIBRARY" >&6; } 6021 6022 if test -n "$ac_tool_prefix"; then 6023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026 $as_echo_n "checking for $ac_word... " >&6; } 6027 if ${ac_cv_prog_RANLIB+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029 else 6030 if test -n "$RANLIB"; then 6031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6032 else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 fi 6049 fi 6050 RANLIB=$ac_cv_prog_RANLIB 6051 if test -n "$RANLIB"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6053 $as_echo "$RANLIB" >&6; } 6054 else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056 $as_echo "no" >&6; } 6057 fi 6058 6059 6060 fi 6061 if test -z "$ac_cv_prog_RANLIB"; then 6062 ac_ct_RANLIB=$RANLIB 6063 # Extract the first word of "ranlib", so it can be a program name with args. 6064 set dummy ranlib; ac_word=$2 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066 $as_echo_n "checking for $ac_word... " >&6; } 6067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6068 $as_echo_n "(cached) " >&6 6069 else 6070 if test -n "$ac_ct_RANLIB"; then 6071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6072 else 6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074 for as_dir in $PATH 6075 do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6080 ac_cv_prog_ac_ct_RANLIB="ranlib" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084 done 6085 done 6086 IFS=$as_save_IFS 6087 6088 fi 6089 fi 6090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6091 if test -n "$ac_ct_RANLIB"; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6093 $as_echo "$ac_ct_RANLIB" >&6; } 6094 else 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096 $as_echo "no" >&6; } 6097 fi 6098 6099 if test "x$ac_ct_RANLIB" = x; then 6100 RANLIB=":" 6101 else 6102 case $cross_compiling:$ac_tool_warned in 6103 yes:) 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6106 ac_tool_warned=yes ;; 6107 esac 6108 RANLIB=$ac_ct_RANLIB 6109 fi 6110 else 6111 RANLIB="$ac_cv_prog_RANLIB" 6112 fi 6113 6114 6115 if test -n "$ac_tool_prefix"; then 6116 for ac_prog in ar aal 6117 do 6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6121 $as_echo_n "checking for $ac_word... " >&6; } 6122 if ${ac_cv_prog_AR+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124 else 6125 if test -n "$AR"; then 6126 ac_cv_prog_AR="$AR" # Let the user override the test. 6127 else 6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6129 for as_dir in $PATH 6130 do 6131 IFS=$as_save_IFS 6132 test -z "$as_dir" && as_dir=. 6133 for ac_exec_ext in '' $ac_executable_extensions; do 6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6135 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6137 break 2 6138 fi 6139 done 6140 done 6141 IFS=$as_save_IFS 6142 6143 fi 6144 fi 6145 AR=$ac_cv_prog_AR 6146 if test -n "$AR"; then 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6148 $as_echo "$AR" >&6; } 6149 else 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6151 $as_echo "no" >&6; } 6152 fi 6153 6154 6155 test -n "$AR" && break 6156 done 6157 fi 6158 if test -z "$AR"; then 6159 ac_ct_AR=$AR 6160 for ac_prog in ar aal 6161 do 6162 # Extract the first word of "$ac_prog", so it can be a program name with args. 6163 set dummy $ac_prog; ac_word=$2 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165 $as_echo_n "checking for $ac_word... " >&6; } 6166 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168 else 6169 if test -n "$ac_ct_AR"; then 6170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6171 else 6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6173 for as_dir in $PATH 6174 do 6175 IFS=$as_save_IFS 6176 test -z "$as_dir" && as_dir=. 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6179 ac_cv_prog_ac_ct_AR="$ac_prog" 6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183 done 6184 done 6185 IFS=$as_save_IFS 6186 6187 fi 6188 fi 6189 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6190 if test -n "$ac_ct_AR"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6192 $as_echo "$ac_ct_AR" >&6; } 6193 else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195 $as_echo "no" >&6; } 6196 fi 6197 6198 6199 test -n "$ac_ct_AR" && break 6200 done 6201 6202 if test "x$ac_ct_AR" = x; then 6203 AR="ar" 6204 else 6205 case $cross_compiling:$ac_tool_warned in 6206 yes:) 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6209 ac_tool_warned=yes ;; 6210 esac 6211 AR=$ac_ct_AR 6212 fi 6213 fi 6214 6215 6216 # tweak ARFLAGS only if the user didn't set it on the command line 6217 6218 if test -z "$ARFLAGS" 6219 then 6220 ARFLAGS="rc" 6221 fi 6222 6223 if test -n "$ac_tool_prefix"; then 6224 for ac_prog in readelf 6225 do 6226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6229 $as_echo_n "checking for $ac_word... " >&6; } 6230 if ${ac_cv_prog_READELF+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232 else 6233 if test -n "$READELF"; then 6234 ac_cv_prog_READELF="$READELF" # Let the user override the test. 6235 else 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237 for as_dir in $PATH 6238 do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6243 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247 done 6248 done 6249 IFS=$as_save_IFS 6250 6251 fi 6252 fi 6253 READELF=$ac_cv_prog_READELF 6254 if test -n "$READELF"; then 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 6256 $as_echo "$READELF" >&6; } 6257 else 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6259 $as_echo "no" >&6; } 6260 fi 6261 6262 6263 test -n "$READELF" && break 6264 done 6265 fi 6266 if test -z "$READELF"; then 6267 ac_ct_READELF=$READELF 6268 for ac_prog in readelf 6269 do 6270 # Extract the first word of "$ac_prog", so it can be a program name with args. 6271 set dummy $ac_prog; ac_word=$2 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6273 $as_echo_n "checking for $ac_word... " >&6; } 6274 if ${ac_cv_prog_ac_ct_READELF+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276 else 6277 if test -n "$ac_ct_READELF"; then 6278 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 6279 else 6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281 for as_dir in $PATH 6282 do 6283 IFS=$as_save_IFS 6284 test -z "$as_dir" && as_dir=. 6285 for ac_exec_ext in '' $ac_executable_extensions; do 6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6287 ac_cv_prog_ac_ct_READELF="$ac_prog" 6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6289 break 2 6290 fi 6291 done 6292 done 6293 IFS=$as_save_IFS 6294 6295 fi 6296 fi 6297 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 6298 if test -n "$ac_ct_READELF"; then 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 6300 $as_echo "$ac_ct_READELF" >&6; } 6301 else 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6303 $as_echo "no" >&6; } 6304 fi 6305 6306 6307 test -n "$ac_ct_READELF" && break 6308 done 6309 6310 if test "x$ac_ct_READELF" = x; then 6311 READELF=":" 6312 else 6313 case $cross_compiling:$ac_tool_warned in 6314 yes:) 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6317 ac_tool_warned=yes ;; 6318 esac 6319 READELF=$ac_ct_READELF 6320 fi 6321 fi 6322 6323 if test "$cross_compiling" = yes; then 6324 case "$READELF" in 6325 readelf|:) 6326 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 6327 ;; 6328 esac 6329 fi 6330 6331 6332 6333 case $MACHDEP in 6334 bsdos*|hp*|HP*) 6335 # install -d does not work on BSDI or HP-UX 6336 if test -z "$INSTALL" 6337 then 6338 INSTALL="${srcdir}/install-sh -c" 6339 fi 6340 esac 6341 # Find a good install program. We prefer a C program (faster), 6342 # so one script is as good as another. But avoid the broken or 6343 # incompatible versions: 6344 # SysV /etc/install, /usr/sbin/install 6345 # SunOS /usr/etc/install 6346 # IRIX /sbin/install 6347 # AIX /bin/install 6348 # AmigaOS /C/install, which installs bootblocks on floppy discs 6349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 6351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6352 # OS/2's system install, which has a completely different semantic 6353 # ./install, which can be erroneously created by make from ./install.sh. 6354 # Reject install programs that cannot install multiple files. 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6356 $as_echo_n "checking for a BSD-compatible install... " >&6; } 6357 if test -z "$INSTALL"; then 6358 if ${ac_cv_path_install+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360 else 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 # Account for people who put trailing slashes in PATH elements. 6367 case $as_dir/ in #(( 6368 ./ | .// | /[cC]/* | \ 6369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6370 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6371 /usr/ucb/* ) ;; 6372 *) 6373 # OSF1 and SCO ODT 3.0 have their own names for install. 6374 # Don't use installbsd from OSF since it installs stuff as root 6375 # by default. 6376 for ac_prog in ginstall scoinst install; do 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6379 if test $ac_prog = install && 6380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6381 # AIX install. It has an incompatible calling convention. 6382 : 6383 elif test $ac_prog = install && 6384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6385 # program-specific install script used by HP pwplus--don't use. 6386 : 6387 else 6388 rm -rf conftest.one conftest.two conftest.dir 6389 echo one > conftest.one 6390 echo two > conftest.two 6391 mkdir conftest.dir 6392 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6393 test -s conftest.one && test -s conftest.two && 6394 test -s conftest.dir/conftest.one && 6395 test -s conftest.dir/conftest.two 6396 then 6397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6398 break 3 6399 fi 6400 fi 6401 fi 6402 done 6403 done 6404 ;; 6405 esac 6406 6407 done 6408 IFS=$as_save_IFS 6409 6410 rm -rf conftest.one conftest.two conftest.dir 6411 6412 fi 6413 if test "${ac_cv_path_install+set}" = set; then 6414 INSTALL=$ac_cv_path_install 6415 else 6416 # As a last resort, use the slow shell script. Don't cache a 6417 # value for INSTALL within a source directory, because that will 6418 # break other packages using the cache if that directory is 6419 # removed, or if the value is a relative name. 6420 INSTALL=$ac_install_sh 6421 fi 6422 fi 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6424 $as_echo "$INSTALL" >&6; } 6425 6426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6427 # It thinks the first close brace ends the variable substitution. 6428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6429 6430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6431 6432 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6433 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6435 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6436 if test -z "$MKDIR_P"; then 6437 if ${ac_cv_path_mkdir+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439 else 6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6442 do 6443 IFS=$as_save_IFS 6444 test -z "$as_dir" && as_dir=. 6445 for ac_prog in mkdir gmkdir; do 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6448 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6449 'mkdir (GNU coreutils) '* | \ 6450 'mkdir (coreutils) '* | \ 6451 'mkdir (fileutils) '4.1*) 6452 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6453 break 3;; 6454 esac 6455 done 6456 done 6457 done 6458 IFS=$as_save_IFS 6459 6460 fi 6461 6462 test -d ./--version && rmdir ./--version 6463 if test "${ac_cv_path_mkdir+set}" = set; then 6464 MKDIR_P="$ac_cv_path_mkdir -p" 6465 else 6466 # As a last resort, use the slow shell script. Don't cache a 6467 # value for MKDIR_P within a source directory, because that will 6468 # break other packages using the cache if that directory is 6469 # removed, or if the value is a relative name. 6470 MKDIR_P="$ac_install_sh -d" 6471 fi 6472 fi 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6474 $as_echo "$MKDIR_P" >&6; } 6475 6476 6477 # Not every filesystem supports hard links 6478 6479 if test -z "$LN" ; then 6480 case $ac_sys_system in 6481 CYGWIN*) LN="ln -s";; 6482 *) LN=ln;; 6483 esac 6484 fi 6485 6486 # For calculating the .so ABI tag. 6487 6488 ABIFLAGS="" 6489 6490 # Check for --with-pydebug 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 6492 $as_echo_n "checking for --with-pydebug... " >&6; } 6493 6494 # Check whether --with-pydebug was given. 6495 if test "${with_pydebug+set}" = set; then : 6496 withval=$with_pydebug; 6497 if test "$withval" != no 6498 then 6499 6500 $as_echo "#define Py_DEBUG 1" >>confdefs.h 6501 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6503 $as_echo "yes" >&6; }; 6504 Py_DEBUG='true' 6505 ABIFLAGS="${ABIFLAGS}d" 6506 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507 $as_echo "no" >&6; }; Py_DEBUG='false' 6508 fi 6509 else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6511 $as_echo "no" >&6; } 6512 fi 6513 6514 6515 # Enable optimization flags 6516 6517 6518 Py_OPT='false' 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6520 $as_echo_n "checking for --enable-optimizations... " >&6; } 6521 # Check whether --enable-optimizations was given. 6522 if test "${enable_optimizations+set}" = set; then : 6523 enableval=$enable_optimizations; 6524 if test "$withval" != no 6525 then 6526 Py_OPT='true' 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6528 $as_echo "yes" >&6; }; 6529 else 6530 Py_OPT='false' 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532 $as_echo "no" >&6; }; 6533 fi 6534 else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536 $as_echo "no" >&6; } 6537 fi 6538 6539 if test "$Py_OPT" = 'true' ; then 6540 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6541 # compile working code using it and both test_distutils and test_gdb are 6542 # broken when you do manage to get a toolchain that works with it. People 6543 # who want LTO need to use --with-lto themselves. 6544 DEF_MAKE_ALL_RULE="profile-opt" 6545 REQUIRE_PGO="yes" 6546 DEF_MAKE_RULE="build_all" 6547 else 6548 DEF_MAKE_ALL_RULE="build_all" 6549 REQUIRE_PGO="no" 6550 DEF_MAKE_RULE="all" 6551 fi 6552 6553 # Enable LTO flags 6554 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6556 $as_echo_n "checking for --with-lto... " >&6; } 6557 6558 # Check whether --with-lto was given. 6559 if test "${with_lto+set}" = set; then : 6560 withval=$with_lto; 6561 if test "$withval" != no 6562 then 6563 Py_LTO='true' 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6565 $as_echo "yes" >&6; }; 6566 else 6567 Py_LTO='false' 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569 $as_echo "no" >&6; }; 6570 fi 6571 else 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6573 $as_echo "no" >&6; } 6574 fi 6575 6576 if test "$Py_LTO" = 'true' ; then 6577 case $CC in 6578 *clang*) 6579 case $ac_sys_system in 6580 Darwin*) 6581 # Any changes made here should be reflected in the GCC+Darwin case below 6582 LTOFLAGS="-flto -Wl,-export_dynamic" 6583 ;; 6584 *) 6585 LTOFLAGS="-flto" 6586 ;; 6587 esac 6588 ;; 6589 *gcc*) 6590 case $ac_sys_system in 6591 Darwin*) 6592 LTOFLAGS="-flto -Wl,-export_dynamic" 6593 ;; 6594 *) 6595 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6596 ;; 6597 esac 6598 ;; 6599 esac 6600 fi 6601 6602 # Enable PGO flags. 6603 6604 6605 6606 6607 6608 # Make this work on systems where llvm tools are not installed with their 6609 # normal names in the default $PATH (ie: Ubuntu). They exist under the 6610 # non-suffixed name in their versioned llvm directory. 6611 llvm_bin_dir='' 6612 llvm_path="${PATH}" 6613 if test "${CC}" = "clang" 6614 then 6615 clang_bin=`which clang` 6616 # Some systems install clang elsewhere as a symlink to the real path 6617 # which is where the related llvm tools are located. 6618 if test -L "${clang_bin}" 6619 then 6620 clang_dir=`dirname "${clang_bin}"` 6621 clang_bin=`readlink "${clang_bin}"` 6622 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6623 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6624 fi 6625 fi 6626 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 6628 $as_echo_n "checking target system type... " >&6; } 6629 if ${ac_cv_target+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631 else 6632 if test "x$target_alias" = x; then 6633 ac_cv_target=$ac_cv_host 6634 else 6635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 6636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 6637 fi 6638 6639 fi 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 6641 $as_echo "$ac_cv_target" >&6; } 6642 case $ac_cv_target in 6643 *-*-*) ;; 6644 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 6645 esac 6646 target=$ac_cv_target 6647 ac_save_IFS=$IFS; IFS='-' 6648 set x $ac_cv_target 6649 shift 6650 target_cpu=$1 6651 target_vendor=$2 6652 shift; shift 6653 # Remember, the first character of IFS is used to create $*, 6654 # except with old shells: 6655 target_os=$* 6656 IFS=$ac_save_IFS 6657 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 6658 6659 6660 # The aliases save the names the user supplied, while $host etc. 6661 # will get canonicalized. 6662 test -n "$target_alias" && 6663 test "$program_prefix$program_suffix$program_transform_name" = \ 6664 NONENONEs,x,x, && 6665 program_prefix=${target_alias}- 6666 # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. 6667 set dummy $target_alias-llvm-profdata; ac_word=$2 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669 $as_echo_n "checking for $ac_word... " >&6; } 6670 if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672 else 6673 case $LLVM_PROFDATA in 6674 [\\/]* | ?:[\\/]*) 6675 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6676 ;; 6677 *) 6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679 for as_dir in ${llvm_path} 6680 do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6685 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689 done 6690 done 6691 IFS=$as_save_IFS 6692 6693 ;; 6694 esac 6695 fi 6696 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6697 if test -n "$LLVM_PROFDATA"; then 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6699 $as_echo "$LLVM_PROFDATA" >&6; } 6700 else 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6702 $as_echo "no" >&6; } 6703 fi 6704 6705 6706 if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6707 if test "$build" = "$target"; then 6708 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6709 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6710 set dummy llvm-profdata; ac_word=$2 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6712 $as_echo_n "checking for $ac_word... " >&6; } 6713 if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715 else 6716 case $ac_pt_LLVM_PROFDATA in 6717 [\\/]* | ?:[\\/]*) 6718 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6719 ;; 6720 *) 6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6722 for as_dir in ${llvm_path} 6723 do 6724 IFS=$as_save_IFS 6725 test -z "$as_dir" && as_dir=. 6726 for ac_exec_ext in '' $ac_executable_extensions; do 6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6728 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6730 break 2 6731 fi 6732 done 6733 done 6734 IFS=$as_save_IFS 6735 6736 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" 6737 ;; 6738 esac 6739 fi 6740 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6741 if test -n "$ac_pt_LLVM_PROFDATA"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6743 $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6744 else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746 $as_echo "no" >&6; } 6747 fi 6748 6749 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6750 else 6751 LLVM_PROFDATA="''" 6752 fi 6753 else 6754 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6755 fi 6756 6757 6758 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6759 then 6760 LLVM_PROF_FOUND="found" 6761 else 6762 LLVM_PROF_FOUND="not-found" 6763 fi 6764 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6765 then 6766 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6767 if test -n "${found_llvm_profdata}" 6768 then 6769 # llvm-profdata isn't directly in $PATH in some cases. 6770 # https://apple.stackexchange.com/questions/197053/ 6771 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6772 LLVM_PROF_FOUND=found 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6774 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6775 fi 6776 fi 6777 LLVM_PROF_ERR=no 6778 case $CC in 6779 *clang*) 6780 # Any changes made here should be reflected in the GCC+Darwin case below 6781 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6782 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6783 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6784 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6785 if test $LLVM_PROF_FOUND = not-found 6786 then 6787 LLVM_PROF_ERR=yes 6788 if test "${REQUIRE_PGO}" = "yes" 6789 then 6790 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6791 fi 6792 fi 6793 ;; 6794 *gcc*) 6795 case $ac_sys_system in 6796 Darwin*) 6797 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6798 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6799 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6800 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6801 if test "${LLVM_PROF_FOUND}" = "not-found" 6802 then 6803 LLVM_PROF_ERR=yes 6804 if test "${REQUIRE_PGO}" = "yes" 6805 then 6806 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6807 fi 6808 fi 6809 ;; 6810 *) 6811 PGO_PROF_GEN_FLAG="-fprofile-generate" 6812 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6813 LLVM_PROF_MERGER="true" 6814 LLVM_PROF_FILE="" 6815 ;; 6816 esac 6817 ;; 6818 *icc*) 6819 PGO_PROF_GEN_FLAG="-prof-gen" 6820 PGO_PROF_USE_FLAG="-prof-use" 6821 LLVM_PROF_MERGER="true" 6822 LLVM_PROF_FILE="" 6823 ;; 6824 esac 6825 6826 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 6827 # merged with this chunk of code? 6828 6829 # Optimizer/debugger flags 6830 # ------------------------ 6831 # (The following bit of code is complicated enough - please keep things 6832 # indented properly. Just pretend you're editing Python code. ;-) 6833 6834 # There are two parallel sets of case statements below, one that checks to 6835 # see if OPT was set and one that does BASECFLAGS setting based upon 6836 # compiler and platform. BASECFLAGS tweaks need to be made even if the 6837 # user set OPT. 6838 6839 # tweak OPT based on compiler and platform, only if the user didn't set 6840 # it on the command line 6841 6842 if test "${OPT-unset}" = "unset" 6843 then 6844 case $GCC in 6845 yes) 6846 if test "$CC" != 'g++' ; then 6847 STRICT_PROTO="-Wstrict-prototypes" 6848 fi 6849 # For gcc 4.x we need to use -fwrapv so lets check if its supported 6850 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 6851 WRAP="-fwrapv" 6852 fi 6853 6854 # Clang also needs -fwrapv 6855 case $CC in 6856 *clang*) WRAP="-fwrapv" 6857 ;; 6858 esac 6859 6860 case $ac_cv_prog_cc_g in 6861 yes) 6862 if test "$Py_DEBUG" = 'true' ; then 6863 # Optimization messes up debuggers, so turn it off for 6864 # debug builds. 6865 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then 6866 OPT="-g -Og -Wall $STRICT_PROTO" 6867 else 6868 OPT="-g -O0 -Wall $STRICT_PROTO" 6869 fi 6870 else 6871 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" 6872 fi 6873 ;; 6874 *) 6875 OPT="-O3 -Wall $STRICT_PROTO" 6876 ;; 6877 esac 6878 case $ac_sys_system in 6879 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6880 ;; 6881 esac 6882 ;; 6883 6884 *) 6885 OPT="-O" 6886 ;; 6887 esac 6888 fi 6889 6890 6891 6892 6893 # The -arch flags for universal builds on OSX 6894 UNIVERSAL_ARCH_FLAGS= 6895 6896 6897 # tweak BASECFLAGS based on compiler and platform 6898 case $GCC in 6899 yes) 6900 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" 6901 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 6903 $as_echo_n "checking for -Wextra... " >&6; } 6904 ac_save_cc="$CC" 6905 CC="$CC -Wextra -Werror" 6906 if ${ac_cv_extra_warnings+:} false; then : 6907 $as_echo_n "(cached) " >&6 6908 else 6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6910 /* end confdefs.h. */ 6911 6912 6913 int 6914 main () 6915 { 6916 6917 ; 6918 return 0; 6919 } 6920 6921 _ACEOF 6922 if ac_fn_c_try_compile "$LINENO"; then : 6923 6924 ac_cv_extra_warnings=yes 6925 6926 else 6927 6928 ac_cv_extra_warnings=no 6929 6930 fi 6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6932 fi 6933 6934 CC="$ac_save_cc" 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 6936 $as_echo "$ac_cv_extra_warnings" >&6; } 6937 6938 if test $ac_cv_extra_warnings = yes 6939 then 6940 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 6941 fi 6942 6943 # Python doesn't violate C99 aliasing rules, but older versions of 6944 # GCC produce warnings for legal Python code. Enable 6945 # -fno-strict-aliasing on versions of GCC that support but produce 6946 # warnings. See Issue3326 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 6948 $as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 6949 ac_save_cc="$CC" 6950 CC="$CC -fno-strict-aliasing" 6951 save_CFLAGS="$CFLAGS" 6952 if ${ac_cv_no_strict_aliasing+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954 else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956 /* end confdefs.h. */ 6957 6958 6959 int 6960 main () 6961 { 6962 6963 ; 6964 return 0; 6965 } 6966 6967 _ACEOF 6968 if ac_fn_c_try_compile "$LINENO"; then : 6969 6970 CC="$ac_save_cc -fstrict-aliasing" 6971 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6973 /* end confdefs.h. */ 6974 6975 void f(int **x) {} 6976 int 6977 main () 6978 { 6979 double *x; f((int **) &x); 6980 ; 6981 return 0; 6982 } 6983 6984 _ACEOF 6985 if ac_fn_c_try_compile "$LINENO"; then : 6986 6987 ac_cv_no_strict_aliasing=no 6988 6989 else 6990 6991 ac_cv_no_strict_aliasing=yes 6992 6993 fi 6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6995 6996 else 6997 6998 ac_cv_no_strict_aliasing=no 6999 7000 fi 7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7002 fi 7003 7004 CFLAGS="$save_CFLAGS" 7005 CC="$ac_save_cc" 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 7007 $as_echo "$ac_cv_no_strict_aliasing" >&6; } 7008 if test $ac_cv_no_strict_aliasing = yes 7009 then 7010 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 7011 fi 7012 7013 # ICC doesn't recognize the option, but only emits a warning 7014 ## XXX does it emit an unused result warning and can it be disabled? 7015 case "$CC" in 7016 *icc*) 7017 ac_cv_disable_unused_result_warning=no 7018 ;; 7019 *) 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 7021 $as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } 7022 ac_save_cc="$CC" 7023 CC="$CC -Wunused-result -Werror" 7024 save_CFLAGS="$CFLAGS" 7025 if ${ac_cv_disable_unused_result_warning+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027 else 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029 /* end confdefs.h. */ 7030 7031 7032 int 7033 main () 7034 { 7035 7036 ; 7037 return 0; 7038 } 7039 7040 _ACEOF 7041 if ac_fn_c_try_compile "$LINENO"; then : 7042 7043 ac_cv_disable_unused_result_warning=yes 7044 7045 else 7046 7047 ac_cv_disable_unused_result_warning=no 7048 7049 fi 7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7051 fi 7052 7053 CFLAGS="$save_CFLAGS" 7054 CC="$ac_save_cc" 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 7056 $as_echo "$ac_cv_disable_unused_result_warning" >&6; } 7057 ;; 7058 esac 7059 7060 if test $ac_cv_disable_unused_result_warning = yes 7061 then 7062 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 7063 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 7064 fi 7065 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 7067 $as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } 7068 ac_save_cc="$CC" 7069 CC="$CC -Wunused-parameter -Werror" 7070 if ${ac_cv_disable_unused_parameter_warning+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072 else 7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7074 /* end confdefs.h. */ 7075 7076 7077 int 7078 main () 7079 { 7080 7081 ; 7082 return 0; 7083 } 7084 7085 _ACEOF 7086 if ac_fn_c_try_compile "$LINENO"; then : 7087 7088 ac_cv_disable_unused_parameter_warning=yes 7089 7090 else 7091 7092 ac_cv_disable_unused_parameter_warning=no 7093 7094 fi 7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7096 fi 7097 7098 CC="$ac_save_cc" 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 7100 $as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } 7101 7102 if test $ac_cv_disable_unused_parameter_warning = yes 7103 then 7104 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 7105 fi 7106 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 7108 $as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } 7109 ac_save_cc="$CC" 7110 CC="$CC -Wmissing-field-initializers -Werror" 7111 if ${ac_cv_disable_missing_field_initializers+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113 else 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115 /* end confdefs.h. */ 7116 7117 7118 int 7119 main () 7120 { 7121 7122 ; 7123 return 0; 7124 } 7125 7126 _ACEOF 7127 if ac_fn_c_try_compile "$LINENO"; then : 7128 7129 ac_cv_disable_missing_field_initializers=yes 7130 7131 else 7132 7133 ac_cv_disable_missing_field_initializers=no 7134 7135 fi 7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7137 fi 7138 7139 CC="$ac_save_cc" 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 7141 $as_echo "$ac_cv_disable_missing_field_initializers" >&6; } 7142 7143 if test $ac_cv_disable_missing_field_initializers = yes 7144 then 7145 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 7146 fi 7147 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 7149 $as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } 7150 ac_save_cc="$CC" 7151 CC="$CC -Wsign-compare" 7152 save_CFLAGS="$CFLAGS" 7153 if ${ac_cv_enable_sign_compare_warning+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155 else 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157 /* end confdefs.h. */ 7158 7159 7160 int 7161 main () 7162 { 7163 7164 ; 7165 return 0; 7166 } 7167 7168 _ACEOF 7169 if ac_fn_c_try_compile "$LINENO"; then : 7170 7171 ac_cv_enable_sign_compare_warning=yes 7172 7173 else 7174 7175 ac_cv_enable_sign_compare_warning=no 7176 7177 fi 7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7179 fi 7180 7181 CFLAGS="$save_CFLAGS" 7182 CC="$ac_save_cc" 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 7184 $as_echo "$ac_cv_enable_sign_compare_warning" >&6; } 7185 7186 if test $ac_cv_enable_sign_compare_warning = yes 7187 then 7188 BASECFLAGS="$BASECFLAGS -Wsign-compare" 7189 fi 7190 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 7192 $as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } 7193 ac_save_cc="$CC" 7194 CC="$CC -Wunreachable-code" 7195 save_CFLAGS="$CFLAGS" 7196 if ${ac_cv_enable_unreachable_code_warning+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198 else 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200 /* end confdefs.h. */ 7201 7202 7203 int 7204 main () 7205 { 7206 7207 ; 7208 return 0; 7209 } 7210 7211 _ACEOF 7212 if ac_fn_c_try_compile "$LINENO"; then : 7213 7214 ac_cv_enable_unreachable_code_warning=yes 7215 7216 else 7217 7218 ac_cv_enable_unreachable_code_warning=no 7219 7220 fi 7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222 fi 7223 7224 CFLAGS="$save_CFLAGS" 7225 CC="$ac_save_cc" 7226 7227 # Don't enable unreachable code warning in debug mode, since it usually 7228 # results in non-standard code paths. 7229 # Issue #24324: Unfortunately, the unreachable code warning does not work 7230 # correctly on gcc and has been silently removed from the compiler. 7231 # It is supported on clang but on OS X systems gcc may be an alias 7232 # for clang. Try to determine if the compiler is not really gcc and, 7233 # if so, only then enable the warning. 7234 if test $ac_cv_enable_unreachable_code_warning = yes && \ 7235 test "$Py_DEBUG" != "true" && \ 7236 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 7237 then 7238 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 7239 else 7240 ac_cv_enable_unreachable_code_warning=no 7241 fi 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 7243 $as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } 7244 7245 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 7246 # support. Without this, treatment of subnormals doesn't follow 7247 # the standard. 7248 case $host in 7249 alpha*) 7250 BASECFLAGS="$BASECFLAGS -mieee" 7251 ;; 7252 esac 7253 7254 case $ac_sys_system in 7255 SCO_SV*) 7256 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 7257 ;; 7258 7259 # is there any other compiler on Darwin besides gcc? 7260 Darwin*) 7261 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 7262 # used to be here, but non-Apple gcc doesn't accept them. 7263 if test "${CC}" = gcc 7264 then 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 7266 $as_echo_n "checking which compiler should be used... " >&6; } 7267 case "${UNIVERSALSDK}" in 7268 */MacOSX10.4u.sdk) 7269 # Build using 10.4 SDK, force usage of gcc when the 7270 # compiler is gcc, otherwise the user will get very 7271 # confusing error messages when building on OSX 10.6 7272 CC=gcc-4.0 7273 CPP=cpp-4.0 7274 ;; 7275 esac 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7277 $as_echo "$CC" >&6; } 7278 fi 7279 7280 if test "${enable_universalsdk}" 7281 then 7282 case "$UNIVERSAL_ARCHS" in 7283 32-bit) 7284 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 7285 LIPO_32BIT_FLAGS="" 7286 ARCH_RUN_32BIT="" 7287 ;; 7288 64-bit) 7289 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 7290 LIPO_32BIT_FLAGS="" 7291 ARCH_RUN_32BIT="true" 7292 ;; 7293 all) 7294 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 7295 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7296 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7297 ;; 7298 intel) 7299 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 7300 LIPO_32BIT_FLAGS="-extract i386" 7301 ARCH_RUN_32BIT="/usr/bin/arch -i386" 7302 ;; 7303 intel-32) 7304 UNIVERSAL_ARCH_FLAGS="-arch i386" 7305 LIPO_32BIT_FLAGS="" 7306 ARCH_RUN_32BIT="" 7307 ;; 7308 3-way) 7309 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 7310 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7311 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7312 ;; 7313 *) 7314 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 7315 ;; 7316 esac 7317 7318 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 7319 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 7320 if test "${UNIVERSALSDK}" != "/" 7321 then 7322 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 7323 fi 7324 fi 7325 7326 # Calculate an appropriate deployment target for this build: 7327 # The deployment target value is used explicitly to enable certain 7328 # features are enabled (such as builtin libedit support for readline) 7329 # through the use of Apple's Availability Macros and is used as a 7330 # component of the string returned by distutils.get_platform(). 7331 # 7332 # Use the value from: 7333 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 7334 # 2. the operating system version of the build machine if >= 10.6 7335 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 7336 # below to pick either 10.3, 10.4, or 10.5 as the target. 7337 # 4. If we are running on OS X 10.2 or earlier, good luck! 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 7340 $as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 7341 cur_target_major=`sw_vers -productVersion | \ 7342 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 7343 cur_target_minor=`sw_vers -productVersion | \ 7344 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 7345 cur_target="${cur_target_major}.${cur_target_minor}" 7346 if test ${cur_target_major} -eq 10 && \ 7347 test ${cur_target_minor} -ge 3 && \ 7348 test ${cur_target_minor} -le 5 7349 then 7350 # OS X 10.3 through 10.5 7351 cur_target=10.3 7352 if test ${enable_universalsdk} 7353 then 7354 case "$UNIVERSAL_ARCHS" in 7355 all|3-way|intel|64-bit) 7356 # These configurations were first supported in 10.5 7357 cur_target='10.5' 7358 ;; 7359 esac 7360 else 7361 if test `/usr/bin/arch` = "i386" 7362 then 7363 # 10.4 was the first release to support Intel archs 7364 cur_target="10.4" 7365 fi 7366 fi 7367 fi 7368 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 7369 7370 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 7371 # environment with a value that is the same as what we'll use 7372 # in the Makefile to ensure that we'll get the same compiler 7373 # environment during configure and build time. 7374 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 7375 export MACOSX_DEPLOYMENT_TARGET 7376 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 7378 $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } 7379 7380 # end of Darwin* tests 7381 ;; 7382 esac 7383 ;; 7384 7385 *) 7386 case $ac_sys_system in 7387 OpenUNIX*|UnixWare*) 7388 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 7389 ;; 7390 SCO_SV*) 7391 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 7392 ;; 7393 esac 7394 ;; 7395 esac 7396 7397 # ICC needs -fp-model strict or floats behave badly 7398 case "$CC" in 7399 *icc*) 7400 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 7401 ;; 7402 esac 7403 7404 if test "$Py_DEBUG" = 'true'; then 7405 : 7406 else 7407 OPT="-DNDEBUG $OPT" 7408 fi 7409 7410 if test "$ac_arch_flags" 7411 then 7412 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 7413 fi 7414 7415 # On some compilers, pthreads are available without further options 7416 # (e.g. MacOS X). On some of these systems, the compiler will not 7417 # complain if unaccepted options are passed (e.g. gcc on Mac OS X). 7418 # So we have to see first whether pthreads are available without 7419 # options before we can check whether -Kpthread improves anything. 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 7421 $as_echo_n "checking whether pthreads are available without options... " >&6; } 7422 if ${ac_cv_pthread_is_default+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424 else 7425 if test "$cross_compiling" = yes; then : 7426 ac_cv_pthread_is_default=no 7427 else 7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429 /* end confdefs.h. */ 7430 7431 #include <stdio.h> 7432 #include <pthread.h> 7433 7434 void* routine(void* p){return NULL;} 7435 7436 int main(){ 7437 pthread_t p; 7438 if(pthread_create(&p,NULL,routine,NULL)!=0) 7439 return 1; 7440 (void)pthread_detach(p); 7441 return 0; 7442 } 7443 7444 _ACEOF 7445 if ac_fn_c_try_run "$LINENO"; then : 7446 7447 ac_cv_pthread_is_default=yes 7448 ac_cv_kthread=no 7449 ac_cv_pthread=no 7450 7451 else 7452 ac_cv_pthread_is_default=no 7453 fi 7454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7455 conftest.$ac_objext conftest.beam conftest.$ac_ext 7456 fi 7457 7458 7459 fi 7460 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 7462 $as_echo "$ac_cv_pthread_is_default" >&6; } 7463 7464 7465 if test $ac_cv_pthread_is_default = yes 7466 then 7467 ac_cv_kpthread=no 7468 else 7469 # -Kpthread, if available, provides the right #defines 7470 # and linker options to make pthread_create available 7471 # Some compilers won't report that they do not support -Kpthread, 7472 # so we need to run a program to see whether it really made the 7473 # function available. 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 7475 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 7476 if ${ac_cv_kpthread+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478 else 7479 ac_save_cc="$CC" 7480 CC="$CC -Kpthread" 7481 if test "$cross_compiling" = yes; then : 7482 ac_cv_kpthread=no 7483 else 7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7485 /* end confdefs.h. */ 7486 7487 #include <stdio.h> 7488 #include <pthread.h> 7489 7490 void* routine(void* p){return NULL;} 7491 7492 int main(){ 7493 pthread_t p; 7494 if(pthread_create(&p,NULL,routine,NULL)!=0) 7495 return 1; 7496 (void)pthread_detach(p); 7497 return 0; 7498 } 7499 7500 _ACEOF 7501 if ac_fn_c_try_run "$LINENO"; then : 7502 ac_cv_kpthread=yes 7503 else 7504 ac_cv_kpthread=no 7505 fi 7506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7507 conftest.$ac_objext conftest.beam conftest.$ac_ext 7508 fi 7509 7510 CC="$ac_save_cc" 7511 fi 7512 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 7514 $as_echo "$ac_cv_kpthread" >&6; } 7515 fi 7516 7517 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 7518 then 7519 # -Kthread, if available, provides the right #defines 7520 # and linker options to make pthread_create available 7521 # Some compilers won't report that they do not support -Kthread, 7522 # so we need to run a program to see whether it really made the 7523 # function available. 7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 7525 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 7526 if ${ac_cv_kthread+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528 else 7529 ac_save_cc="$CC" 7530 CC="$CC -Kthread" 7531 if test "$cross_compiling" = yes; then : 7532 ac_cv_kthread=no 7533 else 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 7537 #include <stdio.h> 7538 #include <pthread.h> 7539 7540 void* routine(void* p){return NULL;} 7541 7542 int main(){ 7543 pthread_t p; 7544 if(pthread_create(&p,NULL,routine,NULL)!=0) 7545 return 1; 7546 (void)pthread_detach(p); 7547 return 0; 7548 } 7549 7550 _ACEOF 7551 if ac_fn_c_try_run "$LINENO"; then : 7552 ac_cv_kthread=yes 7553 else 7554 ac_cv_kthread=no 7555 fi 7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7557 conftest.$ac_objext conftest.beam conftest.$ac_ext 7558 fi 7559 7560 CC="$ac_save_cc" 7561 fi 7562 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 7564 $as_echo "$ac_cv_kthread" >&6; } 7565 fi 7566 7567 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 7568 then 7569 # -pthread, if available, provides the right #defines 7570 # and linker options to make pthread_create available 7571 # Some compilers won't report that they do not support -pthread, 7572 # so we need to run a program to see whether it really made the 7573 # function available. 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 7575 $as_echo_n "checking whether $CC accepts -pthread... " >&6; } 7576 if ${ac_cv_pthread+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578 else 7579 ac_save_cc="$CC" 7580 CC="$CC -pthread" 7581 if test "$cross_compiling" = yes; then : 7582 ac_cv_pthread=no 7583 else 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585 /* end confdefs.h. */ 7586 7587 #include <stdio.h> 7588 #include <pthread.h> 7589 7590 void* routine(void* p){return NULL;} 7591 7592 int main(){ 7593 pthread_t p; 7594 if(pthread_create(&p,NULL,routine,NULL)!=0) 7595 return 1; 7596 (void)pthread_detach(p); 7597 return 0; 7598 } 7599 7600 _ACEOF 7601 if ac_fn_c_try_run "$LINENO"; then : 7602 ac_cv_pthread=yes 7603 else 7604 ac_cv_pthread=no 7605 fi 7606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7607 conftest.$ac_objext conftest.beam conftest.$ac_ext 7608 fi 7609 7610 CC="$ac_save_cc" 7611 fi 7612 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 7614 $as_echo "$ac_cv_pthread" >&6; } 7615 fi 7616 7617 # If we have set a CC compiler flag for thread support then 7618 # check if it works for CXX, too. 7619 ac_cv_cxx_thread=no 7620 if test ! -z "$CXX" 7621 then 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 7623 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 7624 ac_save_cxx="$CXX" 7625 7626 if test "$ac_cv_kpthread" = "yes" 7627 then 7628 CXX="$CXX -Kpthread" 7629 ac_cv_cxx_thread=yes 7630 elif test "$ac_cv_kthread" = "yes" 7631 then 7632 CXX="$CXX -Kthread" 7633 ac_cv_cxx_thread=yes 7634 elif test "$ac_cv_pthread" = "yes" 7635 then 7636 CXX="$CXX -pthread" 7637 ac_cv_cxx_thread=yes 7638 fi 7639 7640 if test $ac_cv_cxx_thread = yes 7641 then 7642 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 7643 $CXX -c conftest.$ac_ext 2>&5 7644 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 7645 && test -s conftest$ac_exeext && ./conftest$ac_exeext 7646 then 7647 ac_cv_cxx_thread=yes 7648 else 7649 ac_cv_cxx_thread=no 7650 fi 7651 rm -fr conftest* 7652 fi 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 7654 $as_echo "$ac_cv_cxx_thread" >&6; } 7655 fi 7656 CXX="$ac_save_cxx" 7657 7658 7659 # checks for header files 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7661 $as_echo_n "checking for ANSI C header files... " >&6; } 7662 if ${ac_cv_header_stdc+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664 else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666 /* end confdefs.h. */ 7667 #include <stdlib.h> 7668 #include <stdarg.h> 7669 #include <string.h> 7670 #include <float.h> 7671 7672 int 7673 main () 7674 { 7675 7676 ; 7677 return 0; 7678 } 7679 _ACEOF 7680 if ac_fn_c_try_compile "$LINENO"; then : 7681 ac_cv_header_stdc=yes 7682 else 7683 ac_cv_header_stdc=no 7684 fi 7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7686 7687 if test $ac_cv_header_stdc = yes; then 7688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690 /* end confdefs.h. */ 7691 #include <string.h> 7692 7693 _ACEOF 7694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7695 $EGREP "memchr" >/dev/null 2>&1; then : 7696 7697 else 7698 ac_cv_header_stdc=no 7699 fi 7700 rm -f conftest* 7701 7702 fi 7703 7704 if test $ac_cv_header_stdc = yes; then 7705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707 /* end confdefs.h. */ 7708 #include <stdlib.h> 7709 7710 _ACEOF 7711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7712 $EGREP "free" >/dev/null 2>&1; then : 7713 7714 else 7715 ac_cv_header_stdc=no 7716 fi 7717 rm -f conftest* 7718 7719 fi 7720 7721 if test $ac_cv_header_stdc = yes; then 7722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7723 if test "$cross_compiling" = yes; then : 7724 : 7725 else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727 /* end confdefs.h. */ 7728 #include <ctype.h> 7729 #include <stdlib.h> 7730 #if ((' ' & 0x0FF) == 0x020) 7731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7733 #else 7734 # define ISLOWER(c) \ 7735 (('a' <= (c) && (c) <= 'i') \ 7736 || ('j' <= (c) && (c) <= 'r') \ 7737 || ('s' <= (c) && (c) <= 'z')) 7738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7739 #endif 7740 7741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7742 int 7743 main () 7744 { 7745 int i; 7746 for (i = 0; i < 256; i++) 7747 if (XOR (islower (i), ISLOWER (i)) 7748 || toupper (i) != TOUPPER (i)) 7749 return 2; 7750 return 0; 7751 } 7752 _ACEOF 7753 if ac_fn_c_try_run "$LINENO"; then : 7754 7755 else 7756 ac_cv_header_stdc=no 7757 fi 7758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7759 conftest.$ac_objext conftest.beam conftest.$ac_ext 7760 fi 7761 7762 fi 7763 fi 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7765 $as_echo "$ac_cv_header_stdc" >&6; } 7766 if test $ac_cv_header_stdc = yes; then 7767 7768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7769 7770 fi 7771 7772 for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ 7773 fcntl.h grp.h \ 7774 ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ 7775 sched.h shadow.h signal.h stropts.h termios.h \ 7776 unistd.h utime.h \ 7777 poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ 7778 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ 7779 sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ 7780 sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 7781 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ 7782 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 7783 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 7784 linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ 7785 sys/endian.h 7786 do : 7787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7790 cat >>confdefs.h <<_ACEOF 7791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7792 _ACEOF 7793 7794 fi 7795 7796 done 7797 7798 ac_header_dirent=no 7799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7800 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7802 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7803 if eval \${$as_ac_Header+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807 /* end confdefs.h. */ 7808 #include <sys/types.h> 7809 #include <$ac_hdr> 7810 7811 int 7812 main () 7813 { 7814 if ((DIR *) 0) 7815 return 0; 7816 ; 7817 return 0; 7818 } 7819 _ACEOF 7820 if ac_fn_c_try_compile "$LINENO"; then : 7821 eval "$as_ac_Header=yes" 7822 else 7823 eval "$as_ac_Header=no" 7824 fi 7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7826 fi 7827 eval ac_res=\$$as_ac_Header 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7829 $as_echo "$ac_res" >&6; } 7830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7831 cat >>confdefs.h <<_ACEOF 7832 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7833 _ACEOF 7834 7835 ac_header_dirent=$ac_hdr; break 7836 fi 7837 7838 done 7839 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7840 if test $ac_header_dirent = dirent.h; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7842 $as_echo_n "checking for library containing opendir... " >&6; } 7843 if ${ac_cv_search_opendir+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845 else 7846 ac_func_search_save_LIBS=$LIBS 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848 /* end confdefs.h. */ 7849 7850 /* Override any GCC internal prototype to avoid an error. 7851 Use char because int might match the return type of a GCC 7852 builtin and then its argument prototype would still apply. */ 7853 #ifdef __cplusplus 7854 extern "C" 7855 #endif 7856 char opendir (); 7857 int 7858 main () 7859 { 7860 return opendir (); 7861 ; 7862 return 0; 7863 } 7864 _ACEOF 7865 for ac_lib in '' dir; do 7866 if test -z "$ac_lib"; then 7867 ac_res="none required" 7868 else 7869 ac_res=-l$ac_lib 7870 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7871 fi 7872 if ac_fn_c_try_link "$LINENO"; then : 7873 ac_cv_search_opendir=$ac_res 7874 fi 7875 rm -f core conftest.err conftest.$ac_objext \ 7876 conftest$ac_exeext 7877 if ${ac_cv_search_opendir+:} false; then : 7878 break 7879 fi 7880 done 7881 if ${ac_cv_search_opendir+:} false; then : 7882 7883 else 7884 ac_cv_search_opendir=no 7885 fi 7886 rm conftest.$ac_ext 7887 LIBS=$ac_func_search_save_LIBS 7888 fi 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7890 $as_echo "$ac_cv_search_opendir" >&6; } 7891 ac_res=$ac_cv_search_opendir 7892 if test "$ac_res" != no; then : 7893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7894 7895 fi 7896 7897 else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7899 $as_echo_n "checking for library containing opendir... " >&6; } 7900 if ${ac_cv_search_opendir+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902 else 7903 ac_func_search_save_LIBS=$LIBS 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905 /* end confdefs.h. */ 7906 7907 /* Override any GCC internal prototype to avoid an error. 7908 Use char because int might match the return type of a GCC 7909 builtin and then its argument prototype would still apply. */ 7910 #ifdef __cplusplus 7911 extern "C" 7912 #endif 7913 char opendir (); 7914 int 7915 main () 7916 { 7917 return opendir (); 7918 ; 7919 return 0; 7920 } 7921 _ACEOF 7922 for ac_lib in '' x; do 7923 if test -z "$ac_lib"; then 7924 ac_res="none required" 7925 else 7926 ac_res=-l$ac_lib 7927 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7928 fi 7929 if ac_fn_c_try_link "$LINENO"; then : 7930 ac_cv_search_opendir=$ac_res 7931 fi 7932 rm -f core conftest.err conftest.$ac_objext \ 7933 conftest$ac_exeext 7934 if ${ac_cv_search_opendir+:} false; then : 7935 break 7936 fi 7937 done 7938 if ${ac_cv_search_opendir+:} false; then : 7939 7940 else 7941 ac_cv_search_opendir=no 7942 fi 7943 rm conftest.$ac_ext 7944 LIBS=$ac_func_search_save_LIBS 7945 fi 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7947 $as_echo "$ac_cv_search_opendir" >&6; } 7948 ac_res=$ac_cv_search_opendir 7949 if test "$ac_res" != no; then : 7950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7951 7952 fi 7953 7954 fi 7955 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 7957 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 7958 if ${ac_cv_header_sys_types_h_makedev+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960 else 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962 /* end confdefs.h. */ 7963 #include <sys/types.h> 7964 int 7965 main () 7966 { 7967 return makedev(0, 0); 7968 ; 7969 return 0; 7970 } 7971 _ACEOF 7972 if ac_fn_c_try_link "$LINENO"; then : 7973 ac_cv_header_sys_types_h_makedev=yes 7974 else 7975 ac_cv_header_sys_types_h_makedev=no 7976 fi 7977 rm -f core conftest.err conftest.$ac_objext \ 7978 conftest$ac_exeext conftest.$ac_ext 7979 7980 fi 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 7982 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 7983 7984 if test $ac_cv_header_sys_types_h_makedev = no; then 7985 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 7986 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 7987 7988 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 7989 7990 fi 7991 7992 7993 7994 if test $ac_cv_header_sys_mkdev_h = no; then 7995 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 7996 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 7997 7998 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 7999 8000 fi 8001 8002 8003 fi 8004 fi 8005 8006 8007 # bluetooth/bluetooth.h has been known to not compile with -std=c99. 8008 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 8009 SAVE_CFLAGS=$CFLAGS 8010 CFLAGS="-std=c99 $CFLAGS" 8011 for ac_header in bluetooth/bluetooth.h 8012 do : 8013 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 8014 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 8015 cat >>confdefs.h <<_ACEOF 8016 #define HAVE_BLUETOOTH_BLUETOOTH_H 1 8017 _ACEOF 8018 8019 fi 8020 8021 done 8022 8023 CFLAGS=$SAVE_CFLAGS 8024 8025 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 8026 for ac_header in net/if.h 8027 do : 8028 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 8029 #ifdef STDC_HEADERS 8030 # include <stdlib.h> 8031 # include <stddef.h> 8032 #else 8033 # ifdef HAVE_STDLIB_H 8034 # include <stdlib.h> 8035 # endif 8036 #endif 8037 #ifdef HAVE_SYS_SOCKET_H 8038 # include <sys/socket.h> 8039 #endif 8040 8041 " 8042 if test "x$ac_cv_header_net_if_h" = xyes; then : 8043 cat >>confdefs.h <<_ACEOF 8044 #define HAVE_NET_IF_H 1 8045 _ACEOF 8046 8047 fi 8048 8049 done 8050 8051 8052 # On Linux, netlink.h requires asm/types.h 8053 for ac_header in linux/netlink.h 8054 do : 8055 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 8056 #ifdef HAVE_ASM_TYPES_H 8057 #include <asm/types.h> 8058 #endif 8059 #ifdef HAVE_SYS_SOCKET_H 8060 #include <sys/socket.h> 8061 #endif 8062 8063 " 8064 if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 8065 cat >>confdefs.h <<_ACEOF 8066 #define HAVE_LINUX_NETLINK_H 1 8067 _ACEOF 8068 8069 fi 8070 8071 done 8072 8073 8074 # On Linux, can.h and can/raw.h require sys/socket.h 8075 for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h 8076 do : 8077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8079 #ifdef HAVE_SYS_SOCKET_H 8080 #include <sys/socket.h> 8081 #endif 8082 8083 " 8084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8085 cat >>confdefs.h <<_ACEOF 8086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8087 _ACEOF 8088 8089 fi 8090 8091 done 8092 8093 8094 # checks for typedefs 8095 was_it_defined=no 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 8097 $as_echo_n "checking for clock_t in time.h... " >&6; } 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099 /* end confdefs.h. */ 8100 #include <time.h> 8101 8102 _ACEOF 8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8104 $EGREP "clock_t" >/dev/null 2>&1; then : 8105 was_it_defined=yes 8106 else 8107 8108 8109 $as_echo "#define clock_t long" >>confdefs.h 8110 8111 8112 fi 8113 rm -f conftest* 8114 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 8116 $as_echo "$was_it_defined" >&6; } 8117 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 8119 $as_echo_n "checking for makedev... " >&6; } 8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121 /* end confdefs.h. */ 8122 8123 #if defined(MAJOR_IN_MKDEV) 8124 #include <sys/mkdev.h> 8125 #elif defined(MAJOR_IN_SYSMACROS) 8126 #include <sys/sysmacros.h> 8127 #else 8128 #include <sys/types.h> 8129 #endif 8130 8131 int 8132 main () 8133 { 8134 8135 makedev(0, 0) 8136 ; 8137 return 0; 8138 } 8139 8140 _ACEOF 8141 if ac_fn_c_try_link "$LINENO"; then : 8142 ac_cv_has_makedev=yes 8143 else 8144 ac_cv_has_makedev=no 8145 fi 8146 rm -f core conftest.err conftest.$ac_objext \ 8147 conftest$ac_exeext conftest.$ac_ext 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 8149 $as_echo "$ac_cv_has_makedev" >&6; } 8150 if test "$ac_cv_has_makedev" = "yes"; then 8151 8152 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 8153 8154 fi 8155 8156 # byte swapping 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 8158 $as_echo_n "checking for le64toh... " >&6; } 8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160 /* end confdefs.h. */ 8161 8162 #ifdef HAVE_ENDIAN_H 8163 #include <endian.h> 8164 #elif defined(HAVE_SYS_ENDIAN_H) 8165 #include <sys/endian.h> 8166 #endif 8167 8168 int 8169 main () 8170 { 8171 8172 le64toh(1) 8173 ; 8174 return 0; 8175 } 8176 8177 _ACEOF 8178 if ac_fn_c_try_link "$LINENO"; then : 8179 ac_cv_has_le64toh=yes 8180 else 8181 ac_cv_has_le64toh=no 8182 fi 8183 rm -f core conftest.err conftest.$ac_objext \ 8184 conftest$ac_exeext conftest.$ac_ext 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 8186 $as_echo "$ac_cv_has_le64toh" >&6; } 8187 if test "$ac_cv_has_le64toh" = "yes"; then 8188 8189 $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h 8190 8191 fi 8192 8193 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in 8194 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are 8195 # defined, but the compiler does not support pragma redefine_extname, 8196 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit 8197 # structures (such as rlimit64) without declaring them. As a 8198 # work-around, disable LFS on such configurations 8199 8200 use_lfs=yes 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 8202 $as_echo_n "checking Solaris LFS bug... " >&6; } 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204 /* end confdefs.h. */ 8205 8206 #define _LARGEFILE_SOURCE 1 8207 #define _FILE_OFFSET_BITS 64 8208 #include <sys/resource.h> 8209 8210 int 8211 main () 8212 { 8213 struct rlimit foo; 8214 ; 8215 return 0; 8216 } 8217 _ACEOF 8218 if ac_fn_c_try_compile "$LINENO"; then : 8219 sol_lfs_bug=no 8220 else 8221 sol_lfs_bug=yes 8222 fi 8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 8225 $as_echo "$sol_lfs_bug" >&6; } 8226 if test "$sol_lfs_bug" = "yes"; then 8227 use_lfs=no 8228 fi 8229 8230 # Don't use largefile support for GNU/Hurd 8231 case $ac_sys_system in GNU*) 8232 use_lfs=no 8233 esac 8234 8235 if test "$use_lfs" = "yes"; then 8236 # Two defines needed to enable largefile support on various platforms 8237 # These may affect some typedefs 8238 case $ac_sys_system/$ac_sys_release in 8239 AIX*) 8240 8241 $as_echo "#define _LARGE_FILES 1" >>confdefs.h 8242 8243 ;; 8244 esac 8245 8246 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 8247 8248 8249 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 8250 8251 fi 8252 8253 # Add some code to confdefs.h so that the test for off_t works on SCO 8254 cat >> confdefs.h <<\EOF 8255 #if defined(SCO_DS) 8256 #undef _OFF_T 8257 #endif 8258 EOF 8259 8260 # Type availability checks 8261 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8262 if test "x$ac_cv_type_mode_t" = xyes; then : 8263 8264 else 8265 8266 cat >>confdefs.h <<_ACEOF 8267 #define mode_t int 8268 _ACEOF 8269 8270 fi 8271 8272 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 8273 if test "x$ac_cv_type_off_t" = xyes; then : 8274 8275 else 8276 8277 cat >>confdefs.h <<_ACEOF 8278 #define off_t long int 8279 _ACEOF 8280 8281 fi 8282 8283 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8284 if test "x$ac_cv_type_pid_t" = xyes; then : 8285 8286 else 8287 8288 cat >>confdefs.h <<_ACEOF 8289 #define pid_t int 8290 _ACEOF 8291 8292 fi 8293 8294 8295 cat >>confdefs.h <<_ACEOF 8296 #define RETSIGTYPE void 8297 _ACEOF 8298 8299 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8300 if test "x$ac_cv_type_size_t" = xyes; then : 8301 8302 else 8303 8304 cat >>confdefs.h <<_ACEOF 8305 #define size_t unsigned int 8306 _ACEOF 8307 8308 fi 8309 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 8311 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8312 if ${ac_cv_type_uid_t+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314 else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316 /* end confdefs.h. */ 8317 #include <sys/types.h> 8318 8319 _ACEOF 8320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8321 $EGREP "uid_t" >/dev/null 2>&1; then : 8322 ac_cv_type_uid_t=yes 8323 else 8324 ac_cv_type_uid_t=no 8325 fi 8326 rm -f conftest* 8327 8328 fi 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 8330 $as_echo "$ac_cv_type_uid_t" >&6; } 8331 if test $ac_cv_type_uid_t = no; then 8332 8333 $as_echo "#define uid_t int" >>confdefs.h 8334 8335 8336 $as_echo "#define gid_t int" >>confdefs.h 8337 8338 fi 8339 8340 8341 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 8342 if test "x$ac_cv_type_ssize_t" = xyes; then : 8343 8344 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 8345 8346 fi 8347 8348 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 8349 if test "x$ac_cv_type___uint128_t" = xyes; then : 8350 8351 $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 8352 8353 fi 8354 8355 8356 # Sizes of various common basic types 8357 # ANSI C requires sizeof(char) == 1, so no need to check it 8358 # The cast to long int works around a bug in the HP C Compiler 8359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8361 # This bug is HP SR number 8606223364. 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8363 $as_echo_n "checking size of int... " >&6; } 8364 if ${ac_cv_sizeof_int+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366 else 8367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8368 8369 else 8370 if test "$ac_cv_type_int" = yes; then 8371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8373 as_fn_error 77 "cannot compute sizeof (int) 8374 See \`config.log' for more details" "$LINENO" 5; } 8375 else 8376 ac_cv_sizeof_int=0 8377 fi 8378 fi 8379 8380 fi 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8382 $as_echo "$ac_cv_sizeof_int" >&6; } 8383 8384 8385 8386 cat >>confdefs.h <<_ACEOF 8387 #define SIZEOF_INT $ac_cv_sizeof_int 8388 _ACEOF 8389 8390 8391 # The cast to long int works around a bug in the HP C Compiler 8392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8394 # This bug is HP SR number 8606223364. 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8396 $as_echo_n "checking size of long... " >&6; } 8397 if ${ac_cv_sizeof_long+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399 else 8400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8401 8402 else 8403 if test "$ac_cv_type_long" = yes; then 8404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8406 as_fn_error 77 "cannot compute sizeof (long) 8407 See \`config.log' for more details" "$LINENO" 5; } 8408 else 8409 ac_cv_sizeof_long=0 8410 fi 8411 fi 8412 8413 fi 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8415 $as_echo "$ac_cv_sizeof_long" >&6; } 8416 8417 8418 8419 cat >>confdefs.h <<_ACEOF 8420 #define SIZEOF_LONG $ac_cv_sizeof_long 8421 _ACEOF 8422 8423 8424 # The cast to long int works around a bug in the HP C Compiler 8425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8427 # This bug is HP SR number 8606223364. 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 8429 $as_echo_n "checking size of long long... " >&6; } 8430 if ${ac_cv_sizeof_long_long+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432 else 8433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8434 8435 else 8436 if test "$ac_cv_type_long_long" = yes; then 8437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8439 as_fn_error 77 "cannot compute sizeof (long long) 8440 See \`config.log' for more details" "$LINENO" 5; } 8441 else 8442 ac_cv_sizeof_long_long=0 8443 fi 8444 fi 8445 8446 fi 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8448 $as_echo "$ac_cv_sizeof_long_long" >&6; } 8449 8450 8451 8452 cat >>confdefs.h <<_ACEOF 8453 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8454 _ACEOF 8455 8456 8457 # The cast to long int works around a bug in the HP C Compiler 8458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8460 # This bug is HP SR number 8606223364. 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8462 $as_echo_n "checking size of void *... " >&6; } 8463 if ${ac_cv_sizeof_void_p+:} false; then : 8464 $as_echo_n "(cached) " >&6 8465 else 8466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8467 8468 else 8469 if test "$ac_cv_type_void_p" = yes; then 8470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8472 as_fn_error 77 "cannot compute sizeof (void *) 8473 See \`config.log' for more details" "$LINENO" 5; } 8474 else 8475 ac_cv_sizeof_void_p=0 8476 fi 8477 fi 8478 8479 fi 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8481 $as_echo "$ac_cv_sizeof_void_p" >&6; } 8482 8483 8484 8485 cat >>confdefs.h <<_ACEOF 8486 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8487 _ACEOF 8488 8489 8490 # The cast to long int works around a bug in the HP C Compiler 8491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8493 # This bug is HP SR number 8606223364. 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8495 $as_echo_n "checking size of short... " >&6; } 8496 if ${ac_cv_sizeof_short+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498 else 8499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8500 8501 else 8502 if test "$ac_cv_type_short" = yes; then 8503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8505 as_fn_error 77 "cannot compute sizeof (short) 8506 See \`config.log' for more details" "$LINENO" 5; } 8507 else 8508 ac_cv_sizeof_short=0 8509 fi 8510 fi 8511 8512 fi 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8514 $as_echo "$ac_cv_sizeof_short" >&6; } 8515 8516 8517 8518 cat >>confdefs.h <<_ACEOF 8519 #define SIZEOF_SHORT $ac_cv_sizeof_short 8520 _ACEOF 8521 8522 8523 # The cast to long int works around a bug in the HP C Compiler 8524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8526 # This bug is HP SR number 8606223364. 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 8528 $as_echo_n "checking size of float... " >&6; } 8529 if ${ac_cv_sizeof_float+:} false; then : 8530 $as_echo_n "(cached) " >&6 8531 else 8532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 8533 8534 else 8535 if test "$ac_cv_type_float" = yes; then 8536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8538 as_fn_error 77 "cannot compute sizeof (float) 8539 See \`config.log' for more details" "$LINENO" 5; } 8540 else 8541 ac_cv_sizeof_float=0 8542 fi 8543 fi 8544 8545 fi 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 8547 $as_echo "$ac_cv_sizeof_float" >&6; } 8548 8549 8550 8551 cat >>confdefs.h <<_ACEOF 8552 #define SIZEOF_FLOAT $ac_cv_sizeof_float 8553 _ACEOF 8554 8555 8556 # The cast to long int works around a bug in the HP C Compiler 8557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8559 # This bug is HP SR number 8606223364. 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 8561 $as_echo_n "checking size of double... " >&6; } 8562 if ${ac_cv_sizeof_double+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564 else 8565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 8566 8567 else 8568 if test "$ac_cv_type_double" = yes; then 8569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8571 as_fn_error 77 "cannot compute sizeof (double) 8572 See \`config.log' for more details" "$LINENO" 5; } 8573 else 8574 ac_cv_sizeof_double=0 8575 fi 8576 fi 8577 8578 fi 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 8580 $as_echo "$ac_cv_sizeof_double" >&6; } 8581 8582 8583 8584 cat >>confdefs.h <<_ACEOF 8585 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 8586 _ACEOF 8587 8588 8589 # The cast to long int works around a bug in the HP C Compiler 8590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8592 # This bug is HP SR number 8606223364. 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 8594 $as_echo_n "checking size of fpos_t... " >&6; } 8595 if ${ac_cv_sizeof_fpos_t+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597 else 8598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 8599 8600 else 8601 if test "$ac_cv_type_fpos_t" = yes; then 8602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8604 as_fn_error 77 "cannot compute sizeof (fpos_t) 8605 See \`config.log' for more details" "$LINENO" 5; } 8606 else 8607 ac_cv_sizeof_fpos_t=0 8608 fi 8609 fi 8610 8611 fi 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 8613 $as_echo "$ac_cv_sizeof_fpos_t" >&6; } 8614 8615 8616 8617 cat >>confdefs.h <<_ACEOF 8618 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 8619 _ACEOF 8620 8621 8622 # The cast to long int works around a bug in the HP C Compiler 8623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8625 # This bug is HP SR number 8606223364. 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 8627 $as_echo_n "checking size of size_t... " >&6; } 8628 if ${ac_cv_sizeof_size_t+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630 else 8631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 8632 8633 else 8634 if test "$ac_cv_type_size_t" = yes; then 8635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8637 as_fn_error 77 "cannot compute sizeof (size_t) 8638 See \`config.log' for more details" "$LINENO" 5; } 8639 else 8640 ac_cv_sizeof_size_t=0 8641 fi 8642 fi 8643 8644 fi 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 8646 $as_echo "$ac_cv_sizeof_size_t" >&6; } 8647 8648 8649 8650 cat >>confdefs.h <<_ACEOF 8651 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 8652 _ACEOF 8653 8654 8655 # The cast to long int works around a bug in the HP C Compiler 8656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8658 # This bug is HP SR number 8606223364. 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 8660 $as_echo_n "checking size of pid_t... " >&6; } 8661 if ${ac_cv_sizeof_pid_t+:} false; then : 8662 $as_echo_n "(cached) " >&6 8663 else 8664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 8665 8666 else 8667 if test "$ac_cv_type_pid_t" = yes; then 8668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8670 as_fn_error 77 "cannot compute sizeof (pid_t) 8671 See \`config.log' for more details" "$LINENO" 5; } 8672 else 8673 ac_cv_sizeof_pid_t=0 8674 fi 8675 fi 8676 8677 fi 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 8679 $as_echo "$ac_cv_sizeof_pid_t" >&6; } 8680 8681 8682 8683 cat >>confdefs.h <<_ACEOF 8684 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t 8685 _ACEOF 8686 8687 8688 # The cast to long int works around a bug in the HP C Compiler 8689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8691 # This bug is HP SR number 8606223364. 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8693 $as_echo_n "checking size of uintptr_t... " >&6; } 8694 if ${ac_cv_sizeof_uintptr_t+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696 else 8697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8698 8699 else 8700 if test "$ac_cv_type_uintptr_t" = yes; then 8701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8703 as_fn_error 77 "cannot compute sizeof (uintptr_t) 8704 See \`config.log' for more details" "$LINENO" 5; } 8705 else 8706 ac_cv_sizeof_uintptr_t=0 8707 fi 8708 fi 8709 8710 fi 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8712 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8713 8714 8715 8716 cat >>confdefs.h <<_ACEOF 8717 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8718 _ACEOF 8719 8720 8721 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 8723 $as_echo_n "checking for long double support... " >&6; } 8724 have_long_double=no 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726 /* end confdefs.h. */ 8727 8728 int 8729 main () 8730 { 8731 long double x; x = (long double)0; 8732 ; 8733 return 0; 8734 } 8735 _ACEOF 8736 if ac_fn_c_try_compile "$LINENO"; then : 8737 8738 8739 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 8740 8741 have_long_double=yes 8742 8743 fi 8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 8746 $as_echo "$have_long_double" >&6; } 8747 if test "$have_long_double" = yes ; then 8748 # The cast to long int works around a bug in the HP C Compiler 8749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8751 # This bug is HP SR number 8606223364. 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 8753 $as_echo_n "checking size of long double... " >&6; } 8754 if ${ac_cv_sizeof_long_double+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756 else 8757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 8758 8759 else 8760 if test "$ac_cv_type_long_double" = yes; then 8761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8763 as_fn_error 77 "cannot compute sizeof (long double) 8764 See \`config.log' for more details" "$LINENO" 5; } 8765 else 8766 ac_cv_sizeof_long_double=0 8767 fi 8768 fi 8769 8770 fi 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 8772 $as_echo "$ac_cv_sizeof_long_double" >&6; } 8773 8774 8775 8776 cat >>confdefs.h <<_ACEOF 8777 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 8778 _ACEOF 8779 8780 8781 fi 8782 8783 # The cast to long int works around a bug in the HP C Compiler 8784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8786 # This bug is HP SR number 8606223364. 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 8788 $as_echo_n "checking size of _Bool... " >&6; } 8789 if ${ac_cv_sizeof__Bool+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791 else 8792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 8793 8794 else 8795 if test "$ac_cv_type__Bool" = yes; then 8796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8798 as_fn_error 77 "cannot compute sizeof (_Bool) 8799 See \`config.log' for more details" "$LINENO" 5; } 8800 else 8801 ac_cv_sizeof__Bool=0 8802 fi 8803 fi 8804 8805 fi 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 8807 $as_echo "$ac_cv_sizeof__Bool" >&6; } 8808 8809 8810 8811 cat >>confdefs.h <<_ACEOF 8812 #define SIZEOF__BOOL $ac_cv_sizeof__Bool 8813 _ACEOF 8814 8815 8816 8817 # The cast to long int works around a bug in the HP C Compiler 8818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8820 # This bug is HP SR number 8606223364. 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8822 $as_echo_n "checking size of off_t... " >&6; } 8823 if ${ac_cv_sizeof_off_t+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825 else 8826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 8827 #ifdef HAVE_SYS_TYPES_H 8828 #include <sys/types.h> 8829 #endif 8830 8831 "; then : 8832 8833 else 8834 if test "$ac_cv_type_off_t" = yes; then 8835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8837 as_fn_error 77 "cannot compute sizeof (off_t) 8838 See \`config.log' for more details" "$LINENO" 5; } 8839 else 8840 ac_cv_sizeof_off_t=0 8841 fi 8842 fi 8843 8844 fi 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8846 $as_echo "$ac_cv_sizeof_off_t" >&6; } 8847 8848 8849 8850 cat >>confdefs.h <<_ACEOF 8851 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8852 _ACEOF 8853 8854 8855 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 8857 $as_echo_n "checking whether to enable large file support... " >&6; } 8858 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 8859 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 8860 8861 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 8862 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8864 $as_echo "yes" >&6; } 8865 else 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8867 $as_echo "no" >&6; } 8868 fi 8869 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 time_t" >&5 8875 $as_echo_n "checking size of time_t... " >&6; } 8876 if ${ac_cv_sizeof_time_t+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878 else 8879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 8880 #ifdef HAVE_SYS_TYPES_H 8881 #include <sys/types.h> 8882 #endif 8883 #ifdef HAVE_TIME_H 8884 #include <time.h> 8885 #endif 8886 8887 "; then : 8888 8889 else 8890 if test "$ac_cv_type_time_t" = yes; then 8891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8893 as_fn_error 77 "cannot compute sizeof (time_t) 8894 See \`config.log' for more details" "$LINENO" 5; } 8895 else 8896 ac_cv_sizeof_time_t=0 8897 fi 8898 fi 8899 8900 fi 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 8902 $as_echo "$ac_cv_sizeof_time_t" >&6; } 8903 8904 8905 8906 cat >>confdefs.h <<_ACEOF 8907 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t 8908 _ACEOF 8909 8910 8911 8912 # if have pthread_t then define SIZEOF_PTHREAD_T 8913 ac_save_cc="$CC" 8914 if test "$ac_cv_kpthread" = "yes" 8915 then CC="$CC -Kpthread" 8916 elif test "$ac_cv_kthread" = "yes" 8917 then CC="$CC -Kthread" 8918 elif test "$ac_cv_pthread" = "yes" 8919 then CC="$CC -pthread" 8920 fi 8921 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 8923 $as_echo_n "checking for pthread_t... " >&6; } 8924 have_pthread_t=no 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926 /* end confdefs.h. */ 8927 8928 #include <pthread.h> 8929 int 8930 main () 8931 { 8932 pthread_t x; x = *(pthread_t*)0; 8933 ; 8934 return 0; 8935 } 8936 8937 _ACEOF 8938 if ac_fn_c_try_compile "$LINENO"; then : 8939 have_pthread_t=yes 8940 fi 8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 8943 $as_echo "$have_pthread_t" >&6; } 8944 if test "$have_pthread_t" = yes ; then 8945 # The cast to long int works around a bug in the HP C Compiler 8946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8948 # This bug is HP SR number 8606223364. 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 8950 $as_echo_n "checking size of pthread_t... " >&6; } 8951 if ${ac_cv_sizeof_pthread_t+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953 else 8954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 8955 #ifdef HAVE_PTHREAD_H 8956 #include <pthread.h> 8957 #endif 8958 8959 "; then : 8960 8961 else 8962 if test "$ac_cv_type_pthread_t" = yes; then 8963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8965 as_fn_error 77 "cannot compute sizeof (pthread_t) 8966 See \`config.log' for more details" "$LINENO" 5; } 8967 else 8968 ac_cv_sizeof_pthread_t=0 8969 fi 8970 fi 8971 8972 fi 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 8974 $as_echo "$ac_cv_sizeof_pthread_t" >&6; } 8975 8976 8977 8978 cat >>confdefs.h <<_ACEOF 8979 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 8980 _ACEOF 8981 8982 8983 fi 8984 CC="$ac_save_cc" 8985 8986 8987 case $ac_sys_system/$ac_sys_release in 8988 Darwin/[01567]\..*) 8989 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 8990 ;; 8991 Darwin/*) 8992 OTHER_LIBTOOL_OPT="" 8993 ;; 8994 esac 8995 8996 8997 8998 case $ac_sys_system/$ac_sys_release in 8999 Darwin/[01567]\..*) 9000 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 9001 if test "${enable_universalsdk}"; then 9002 : 9003 else 9004 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 9005 fi 9006 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9007 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9008 Darwin/*) 9009 gcc_version=`gcc -dumpversion` 9010 if test ${gcc_version} '<' 4.0 9011 then 9012 LIBTOOL_CRUFT="-lcc_dynamic" 9013 else 9014 LIBTOOL_CRUFT="" 9015 fi 9016 if test "$cross_compiling" = yes; then : 9017 ac_osx_32bit=yes 9018 else 9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9020 /* end confdefs.h. */ 9021 9022 #include <unistd.h> 9023 int main(int argc, char*argv[]) 9024 { 9025 if (sizeof(long) == 4) { 9026 return 0; 9027 } else { 9028 return 1; 9029 } 9030 } 9031 9032 _ACEOF 9033 if ac_fn_c_try_run "$LINENO"; then : 9034 ac_osx_32bit=yes 9035 else 9036 ac_osx_32bit=no 9037 fi 9038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9039 conftest.$ac_objext conftest.beam conftest.$ac_ext 9040 fi 9041 9042 9043 if test "${ac_osx_32bit}" = "yes"; then 9044 case `/usr/bin/arch` in 9045 i386) 9046 MACOSX_DEFAULT_ARCH="i386" 9047 ;; 9048 ppc) 9049 MACOSX_DEFAULT_ARCH="ppc" 9050 ;; 9051 *) 9052 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9053 ;; 9054 esac 9055 else 9056 case `/usr/bin/arch` in 9057 i386) 9058 MACOSX_DEFAULT_ARCH="x86_64" 9059 ;; 9060 ppc) 9061 MACOSX_DEFAULT_ARCH="ppc64" 9062 ;; 9063 *) 9064 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9065 ;; 9066 esac 9067 9068 fi 9069 9070 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 9071 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9072 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9073 esac 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 9075 $as_echo_n "checking for --enable-framework... " >&6; } 9076 if test "$enable_framework" 9077 then 9078 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 9079 # -F. is needed to allow linking to the framework while 9080 # in the build location. 9081 9082 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 9083 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9085 $as_echo "yes" >&6; } 9086 if test $enable_shared = "yes" 9087 then 9088 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 9089 fi 9090 else 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9092 $as_echo "no" >&6; } 9093 fi 9094 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 9096 $as_echo_n "checking for dyld... " >&6; } 9097 case $ac_sys_system/$ac_sys_release in 9098 Darwin/*) 9099 9100 $as_echo "#define WITH_DYLD 1" >>confdefs.h 9101 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 9103 $as_echo "always on for Darwin" >&6; } 9104 ;; 9105 *) 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9107 $as_echo "no" >&6; } 9108 ;; 9109 esac 9110 9111 # Set info about shared libraries. 9112 9113 9114 9115 9116 9117 9118 9119 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 9120 # -- usually .so, .sl on HP-UX, .dll on Cygwin 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 9122 $as_echo_n "checking the extension of shared libraries... " >&6; } 9123 if test -z "$SHLIB_SUFFIX"; then 9124 case $ac_sys_system in 9125 hp*|HP*) 9126 case `uname -m` in 9127 ia64) SHLIB_SUFFIX=.so;; 9128 *) SHLIB_SUFFIX=.sl;; 9129 esac 9130 ;; 9131 CYGWIN*) SHLIB_SUFFIX=.dll;; 9132 *) SHLIB_SUFFIX=.so;; 9133 esac 9134 fi 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 9136 $as_echo "$SHLIB_SUFFIX" >&6; } 9137 9138 # LDSHARED is the ld *command* used to create shared library 9139 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 9140 # (Shared libraries in this instance are shared modules to be loaded into 9141 # Python, as opposed to building Python itself as a shared library.) 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 9143 $as_echo_n "checking LDSHARED... " >&6; } 9144 if test -z "$LDSHARED" 9145 then 9146 case $ac_sys_system/$ac_sys_release in 9147 AIX*) 9148 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 9149 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 9150 ;; 9151 IRIX/5*) LDSHARED="ld -shared";; 9152 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; 9153 SunOS/5*) 9154 if test "$GCC" = "yes" ; then 9155 LDSHARED='$(CC) -shared' 9156 LDCXXSHARED='$(CXX) -shared' 9157 else 9158 LDSHARED='$(CC) -G' 9159 LDCXXSHARED='$(CXX) -G' 9160 fi ;; 9161 hp*|HP*) 9162 if test "$GCC" = "yes" ; then 9163 LDSHARED='$(CC) -shared' 9164 LDCXXSHARED='$(CXX) -shared' 9165 else 9166 LDSHARED='ld -b' 9167 fi ;; 9168 Darwin/1.3*) 9169 LDSHARED='$(CC) -bundle' 9170 LDCXXSHARED='$(CXX) -bundle' 9171 if test "$enable_framework" ; then 9172 # Link against the framework. All externals should be defined. 9173 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9174 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9175 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9176 else 9177 # No framework. Ignore undefined symbols, assuming they come from Python 9178 LDSHARED="$LDSHARED -undefined suppress" 9179 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 9180 fi ;; 9181 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 9182 LDSHARED='$(CC) -bundle' 9183 LDCXXSHARED='$(CXX) -bundle' 9184 if test "$enable_framework" ; then 9185 # Link against the framework. All externals should be defined. 9186 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9187 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9188 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9189 else 9190 # No framework, use the Python app as bundle-loader 9191 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9192 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9193 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9194 fi ;; 9195 Darwin/*) 9196 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 9197 # This allows an extension to be used in any Python 9198 9199 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9200 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 9201 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9202 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 9203 if test ${dep_target_major} -eq 10 && \ 9204 test ${dep_target_minor} -le 2 9205 then 9206 # building for OS X 10.0 through 10.2 9207 LDSHARED='$(CC) -bundle' 9208 LDCXXSHARED='$(CXX) -bundle' 9209 if test "$enable_framework" ; then 9210 # Link against the framework. All externals should be defined. 9211 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9212 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9213 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9214 else 9215 # No framework, use the Python app as bundle-loader 9216 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9217 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9218 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9219 fi 9220 else 9221 # building for OS X 10.3 and later 9222 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 9223 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 9224 BLDSHARED="$LDSHARED" 9225 fi 9226 ;; 9227 Linux*|GNU*|QNX*) 9228 LDSHARED='$(CC) -shared' 9229 LDCXXSHARED='$(CXX) -shared';; 9230 BSD/OS*/4*) 9231 LDSHARED="gcc -shared" 9232 LDCXXSHARED="g++ -shared";; 9233 FreeBSD*) 9234 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9235 then 9236 LDSHARED='$(CC) -shared' 9237 LDCXXSHARED='$(CXX) -shared' 9238 else 9239 LDSHARED="ld -Bshareable" 9240 fi;; 9241 OpenBSD*) 9242 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9243 then 9244 LDSHARED='$(CC) -shared $(CCSHARED)' 9245 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9246 else 9247 case `uname -r` in 9248 [01].* | 2.[0-7] | 2.[0-7].*) 9249 LDSHARED="ld -Bshareable ${LDFLAGS}" 9250 ;; 9251 *) 9252 LDSHARED='$(CC) -shared $(CCSHARED)' 9253 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9254 ;; 9255 esac 9256 fi;; 9257 NetBSD*|DragonFly*) 9258 LDSHARED='$(CC) -shared' 9259 LDCXXSHARED='$(CXX) -shared';; 9260 OpenUNIX*|UnixWare*) 9261 if test "$GCC" = "yes" ; then 9262 LDSHARED='$(CC) -shared' 9263 LDCXXSHARED='$(CXX) -shared' 9264 else 9265 LDSHARED='$(CC) -G' 9266 LDCXXSHARED='$(CXX) -G' 9267 fi;; 9268 SCO_SV*) 9269 LDSHARED='$(CC) -Wl,-G,-Bexport' 9270 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 9271 CYGWIN*) 9272 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 9273 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 9274 *) LDSHARED="ld";; 9275 esac 9276 fi 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 9278 $as_echo "$LDSHARED" >&6; } 9279 LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 9280 BLDSHARED=${BLDSHARED-$LDSHARED} 9281 # CCSHARED are the C *flags* used to create objects to go into a shared 9282 # library (module) -- this is only needed for a few systems 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 9284 $as_echo_n "checking CCSHARED... " >&6; } 9285 if test -z "$CCSHARED" 9286 then 9287 case $ac_sys_system/$ac_sys_release in 9288 SunOS*) if test "$GCC" = yes; 9289 then CCSHARED="-fPIC"; 9290 elif test `uname -p` = sparc; 9291 then CCSHARED="-xcode=pic32"; 9292 else CCSHARED="-Kpic"; 9293 fi;; 9294 hp*|HP*) if test "$GCC" = yes; 9295 then CCSHARED="-fPIC"; 9296 else CCSHARED="+z"; 9297 fi;; 9298 Linux-android*) ;; 9299 Linux*|GNU*) CCSHARED="-fPIC";; 9300 BSD/OS*/4*) CCSHARED="-fpic";; 9301 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 9302 OpenUNIX*|UnixWare*) 9303 if test "$GCC" = "yes" 9304 then CCSHARED="-fPIC" 9305 else CCSHARED="-KPIC" 9306 fi;; 9307 SCO_SV*) 9308 if test "$GCC" = "yes" 9309 then CCSHARED="-fPIC" 9310 else CCSHARED="-Kpic -belf" 9311 fi;; 9312 IRIX*/6*) case $CC in 9313 *gcc*) CCSHARED="-shared";; 9314 *) CCSHARED="";; 9315 esac;; 9316 esac 9317 fi 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 9319 $as_echo "$CCSHARED" >&6; } 9320 # LINKFORSHARED are the flags passed to the $(CC) command that links 9321 # the python executable -- this is only needed for a few systems 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 9323 $as_echo_n "checking LINKFORSHARED... " >&6; } 9324 if test -z "$LINKFORSHARED" 9325 then 9326 case $ac_sys_system/$ac_sys_release in 9327 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 9328 hp*|HP*) 9329 LINKFORSHARED="-Wl,-E -Wl,+s";; 9330 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 9331 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 9332 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 9333 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 9334 # -u libsys_s pulls in all symbols in libsys 9335 Darwin/*) 9336 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 9337 9338 # Issue #18075: the default maximum stack size (8MBytes) is too 9339 # small for the default recursion limit. Increase the stack size 9340 # to ensure that tests don't crash 9341 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" 9342 9343 if test "$enable_framework" 9344 then 9345 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9346 fi 9347 LINKFORSHARED="$LINKFORSHARED";; 9348 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 9349 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 9350 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 9351 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 9352 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9353 then 9354 LINKFORSHARED="-Wl,--export-dynamic" 9355 fi;; 9356 SunOS/5*) case $CC in 9357 *gcc*) 9358 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 9359 then 9360 LINKFORSHARED="-Xlinker --export-dynamic" 9361 fi;; 9362 esac;; 9363 CYGWIN*) 9364 if test $enable_shared = "no" 9365 then 9366 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 9367 fi;; 9368 QNX*) 9369 # -Wl,-E causes the symbols to be added to the dynamic 9370 # symbol table so that they can be found when a module 9371 # is loaded. -N 2048K causes the stack size to be set 9372 # to 2048 kilobytes so that the stack doesn't overflow 9373 # when running test_compile.py. 9374 LINKFORSHARED='-Wl,-E -N 2048K';; 9375 esac 9376 fi 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 9378 $as_echo "$LINKFORSHARED" >&6; } 9379 9380 9381 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 9383 $as_echo_n "checking CFLAGSFORSHARED... " >&6; } 9384 if test ! "$LIBRARY" = "$LDLIBRARY" 9385 then 9386 case $ac_sys_system in 9387 CYGWIN*) 9388 # Cygwin needs CCSHARED when building extension DLLs 9389 # but not when building the interpreter DLL. 9390 CFLAGSFORSHARED='';; 9391 *) 9392 CFLAGSFORSHARED='$(CCSHARED)' 9393 esac 9394 fi 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 9396 $as_echo "$CFLAGSFORSHARED" >&6; } 9397 9398 # SHLIBS are libraries (except -lc and -lm) to link to the python shared 9399 # library (with --enable-shared). 9400 # For platforms on which shared libraries are not allowed to have unresolved 9401 # symbols, this must be set to $(LIBS) (expanded by make). We do this even 9402 # if it is not required, since it creates a dependency of the shared library 9403 # to LIBS. This, in turn, means that applications linking the shared libpython 9404 # don't need to link LIBS explicitly. The default should be only changed 9405 # on systems where this approach causes problems. 9406 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 9408 $as_echo_n "checking SHLIBS... " >&6; } 9409 case "$ac_sys_system" in 9410 *) 9411 SHLIBS='$(LIBS)';; 9412 esac 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 9414 $as_echo "$SHLIBS" >&6; } 9415 9416 9417 # checks for libraries 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 9419 $as_echo_n "checking for sendfile in -lsendfile... " >&6; } 9420 if ${ac_cv_lib_sendfile_sendfile+:} false; then : 9421 $as_echo_n "(cached) " >&6 9422 else 9423 ac_check_lib_save_LIBS=$LIBS 9424 LIBS="-lsendfile $LIBS" 9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9426 /* end confdefs.h. */ 9427 9428 /* Override any GCC internal prototype to avoid an error. 9429 Use char because int might match the return type of a GCC 9430 builtin and then its argument prototype would still apply. */ 9431 #ifdef __cplusplus 9432 extern "C" 9433 #endif 9434 char sendfile (); 9435 int 9436 main () 9437 { 9438 return sendfile (); 9439 ; 9440 return 0; 9441 } 9442 _ACEOF 9443 if ac_fn_c_try_link "$LINENO"; then : 9444 ac_cv_lib_sendfile_sendfile=yes 9445 else 9446 ac_cv_lib_sendfile_sendfile=no 9447 fi 9448 rm -f core conftest.err conftest.$ac_objext \ 9449 conftest$ac_exeext conftest.$ac_ext 9450 LIBS=$ac_check_lib_save_LIBS 9451 fi 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 9453 $as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } 9454 if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : 9455 cat >>confdefs.h <<_ACEOF 9456 #define HAVE_LIBSENDFILE 1 9457 _ACEOF 9458 9459 LIBS="-lsendfile $LIBS" 9460 9461 fi 9462 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9464 $as_echo_n "checking for dlopen in -ldl... " >&6; } 9465 if ${ac_cv_lib_dl_dlopen+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467 else 9468 ac_check_lib_save_LIBS=$LIBS 9469 LIBS="-ldl $LIBS" 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471 /* end confdefs.h. */ 9472 9473 /* Override any GCC internal prototype to avoid an error. 9474 Use char because int might match the return type of a GCC 9475 builtin and then its argument prototype would still apply. */ 9476 #ifdef __cplusplus 9477 extern "C" 9478 #endif 9479 char dlopen (); 9480 int 9481 main () 9482 { 9483 return dlopen (); 9484 ; 9485 return 0; 9486 } 9487 _ACEOF 9488 if ac_fn_c_try_link "$LINENO"; then : 9489 ac_cv_lib_dl_dlopen=yes 9490 else 9491 ac_cv_lib_dl_dlopen=no 9492 fi 9493 rm -f core conftest.err conftest.$ac_objext \ 9494 conftest$ac_exeext conftest.$ac_ext 9495 LIBS=$ac_check_lib_save_LIBS 9496 fi 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9499 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9500 cat >>confdefs.h <<_ACEOF 9501 #define HAVE_LIBDL 1 9502 _ACEOF 9503 9504 LIBS="-ldl $LIBS" 9505 9506 fi 9507 # Dynamic linking for SunOS/Solaris and SYSV 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9509 $as_echo_n "checking for shl_load in -ldld... " >&6; } 9510 if ${ac_cv_lib_dld_shl_load+:} false; then : 9511 $as_echo_n "(cached) " >&6 9512 else 9513 ac_check_lib_save_LIBS=$LIBS 9514 LIBS="-ldld $LIBS" 9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9516 /* end confdefs.h. */ 9517 9518 /* Override any GCC internal prototype to avoid an error. 9519 Use char because int might match the return type of a GCC 9520 builtin and then its argument prototype would still apply. */ 9521 #ifdef __cplusplus 9522 extern "C" 9523 #endif 9524 char shl_load (); 9525 int 9526 main () 9527 { 9528 return shl_load (); 9529 ; 9530 return 0; 9531 } 9532 _ACEOF 9533 if ac_fn_c_try_link "$LINENO"; then : 9534 ac_cv_lib_dld_shl_load=yes 9535 else 9536 ac_cv_lib_dld_shl_load=no 9537 fi 9538 rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540 LIBS=$ac_check_lib_save_LIBS 9541 fi 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9544 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9545 cat >>confdefs.h <<_ACEOF 9546 #define HAVE_LIBDLD 1 9547 _ACEOF 9548 9549 LIBS="-ldld $LIBS" 9550 9551 fi 9552 # Dynamic linking for HP-UX 9553 9554 # only check for sem_init if thread support is requested 9555 if test "$with_threads" = "yes" -o -z "$with_threads"; then 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 9557 $as_echo_n "checking for library containing sem_init... " >&6; } 9558 if ${ac_cv_search_sem_init+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560 else 9561 ac_func_search_save_LIBS=$LIBS 9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563 /* end confdefs.h. */ 9564 9565 /* Override any GCC internal prototype to avoid an error. 9566 Use char because int might match the return type of a GCC 9567 builtin and then its argument prototype would still apply. */ 9568 #ifdef __cplusplus 9569 extern "C" 9570 #endif 9571 char sem_init (); 9572 int 9573 main () 9574 { 9575 return sem_init (); 9576 ; 9577 return 0; 9578 } 9579 _ACEOF 9580 for ac_lib in '' pthread rt posix4; do 9581 if test -z "$ac_lib"; then 9582 ac_res="none required" 9583 else 9584 ac_res=-l$ac_lib 9585 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9586 fi 9587 if ac_fn_c_try_link "$LINENO"; then : 9588 ac_cv_search_sem_init=$ac_res 9589 fi 9590 rm -f core conftest.err conftest.$ac_objext \ 9591 conftest$ac_exeext 9592 if ${ac_cv_search_sem_init+:} false; then : 9593 break 9594 fi 9595 done 9596 if ${ac_cv_search_sem_init+:} false; then : 9597 9598 else 9599 ac_cv_search_sem_init=no 9600 fi 9601 rm conftest.$ac_ext 9602 LIBS=$ac_func_search_save_LIBS 9603 fi 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 9605 $as_echo "$ac_cv_search_sem_init" >&6; } 9606 ac_res=$ac_cv_search_sem_init 9607 if test "$ac_res" != no; then : 9608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9609 9610 fi 9611 # 'Real Time' functions on Solaris 9612 # posix4 on Solaris 2.6 9613 # pthread (first!) on Linux 9614 fi 9615 9616 # check if we need libintl for locale functions 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 9618 $as_echo_n "checking for textdomain in -lintl... " >&6; } 9619 if ${ac_cv_lib_intl_textdomain+:} false; then : 9620 $as_echo_n "(cached) " >&6 9621 else 9622 ac_check_lib_save_LIBS=$LIBS 9623 LIBS="-lintl $LIBS" 9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9625 /* end confdefs.h. */ 9626 9627 /* Override any GCC internal prototype to avoid an error. 9628 Use char because int might match the return type of a GCC 9629 builtin and then its argument prototype would still apply. */ 9630 #ifdef __cplusplus 9631 extern "C" 9632 #endif 9633 char textdomain (); 9634 int 9635 main () 9636 { 9637 return textdomain (); 9638 ; 9639 return 0; 9640 } 9641 _ACEOF 9642 if ac_fn_c_try_link "$LINENO"; then : 9643 ac_cv_lib_intl_textdomain=yes 9644 else 9645 ac_cv_lib_intl_textdomain=no 9646 fi 9647 rm -f core conftest.err conftest.$ac_objext \ 9648 conftest$ac_exeext conftest.$ac_ext 9649 LIBS=$ac_check_lib_save_LIBS 9650 fi 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 9652 $as_echo "$ac_cv_lib_intl_textdomain" >&6; } 9653 if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 9654 9655 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h 9656 9657 LIBS="-lintl $LIBS" 9658 fi 9659 9660 9661 # checks for system dependent C++ extensions support 9662 case "$ac_sys_system" in 9663 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 9664 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666 /* end confdefs.h. */ 9667 9668 #include <load.h> 9669 int 9670 main () 9671 { 9672 loadAndInit("", 0, "") 9673 ; 9674 return 0; 9675 } 9676 9677 _ACEOF 9678 if ac_fn_c_try_link "$LINENO"; then : 9679 9680 9681 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 9682 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9684 $as_echo "yes" >&6; } 9685 9686 else 9687 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9689 $as_echo "no" >&6; } 9690 9691 fi 9692 rm -f core conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext conftest.$ac_ext;; 9694 *) ;; 9695 esac 9696 9697 # check for systems that require aligned memory access 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 9699 $as_echo_n "checking aligned memory access is required... " >&6; } 9700 if test "$cross_compiling" = yes; then : 9701 aligned_required=yes 9702 else 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704 /* end confdefs.h. */ 9705 9706 int main() 9707 { 9708 char s[16]; 9709 int i, *p1, *p2; 9710 for (i=0; i < 16; i++) 9711 s[i] = i; 9712 p1 = (int*)(s+1); 9713 p2 = (int*)(s+2); 9714 if (*p1 == *p2) 9715 return 1; 9716 return 0; 9717 } 9718 9719 _ACEOF 9720 if ac_fn_c_try_run "$LINENO"; then : 9721 aligned_required=no 9722 else 9723 aligned_required=yes 9724 fi 9725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9726 conftest.$ac_objext conftest.beam conftest.$ac_ext 9727 fi 9728 9729 9730 if test "$aligned_required" = yes ; then 9731 9732 $as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 9733 9734 fi 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aligned_required" >&5 9736 $as_echo "$aligned_required" >&6; } 9737 9738 9739 # str, bytes and memoryview hash algorithm 9740 9741 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 9743 $as_echo_n "checking for --with-hash-algorithm... " >&6; } 9744 9745 # Check whether --with-hash_algorithm was given. 9746 if test "${with_hash_algorithm+set}" = set; then : 9747 withval=$with_hash_algorithm; 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9749 $as_echo "$withval" >&6; } 9750 case "$withval" in 9751 siphash24) 9752 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h 9753 9754 ;; 9755 fnv) 9756 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h 9757 9758 ;; 9759 *) 9760 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 9761 ;; 9762 esac 9763 9764 else 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 9766 $as_echo "default" >&6; } 9767 fi 9768 9769 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 9771 $as_echo_n "checking for --with-address-sanitizer... " >&6; } 9772 9773 # Check whether --with-address_sanitizer was given. 9774 if test "${with_address_sanitizer+set}" = set; then : 9775 withval=$with_address_sanitizer; 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9777 $as_echo "$withval" >&6; } 9778 BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 9779 LDFLAGS="-fsanitize=address $LDFLAGS" 9780 9781 else 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9783 $as_echo "no" >&6; } 9784 fi 9785 9786 9787 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 9789 $as_echo_n "checking for t_open in -lnsl... " >&6; } 9790 if ${ac_cv_lib_nsl_t_open+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792 else 9793 ac_check_lib_save_LIBS=$LIBS 9794 LIBS="-lnsl $LIBS" 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796 /* end confdefs.h. */ 9797 9798 /* Override any GCC internal prototype to avoid an error. 9799 Use char because int might match the return type of a GCC 9800 builtin and then its argument prototype would still apply. */ 9801 #ifdef __cplusplus 9802 extern "C" 9803 #endif 9804 char t_open (); 9805 int 9806 main () 9807 { 9808 return t_open (); 9809 ; 9810 return 0; 9811 } 9812 _ACEOF 9813 if ac_fn_c_try_link "$LINENO"; then : 9814 ac_cv_lib_nsl_t_open=yes 9815 else 9816 ac_cv_lib_nsl_t_open=no 9817 fi 9818 rm -f core conftest.err conftest.$ac_objext \ 9819 conftest$ac_exeext conftest.$ac_ext 9820 LIBS=$ac_check_lib_save_LIBS 9821 fi 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 9823 $as_echo "$ac_cv_lib_nsl_t_open" >&6; } 9824 if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 9825 LIBS="-lnsl $LIBS" 9826 fi 9827 # SVR4 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 9829 $as_echo_n "checking for socket in -lsocket... " >&6; } 9830 if ${ac_cv_lib_socket_socket+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832 else 9833 ac_check_lib_save_LIBS=$LIBS 9834 LIBS="-lsocket $LIBS $LIBS" 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836 /* end confdefs.h. */ 9837 9838 /* Override any GCC internal prototype to avoid an error. 9839 Use char because int might match the return type of a GCC 9840 builtin and then its argument prototype would still apply. */ 9841 #ifdef __cplusplus 9842 extern "C" 9843 #endif 9844 char socket (); 9845 int 9846 main () 9847 { 9848 return socket (); 9849 ; 9850 return 0; 9851 } 9852 _ACEOF 9853 if ac_fn_c_try_link "$LINENO"; then : 9854 ac_cv_lib_socket_socket=yes 9855 else 9856 ac_cv_lib_socket_socket=no 9857 fi 9858 rm -f core conftest.err conftest.$ac_objext \ 9859 conftest$ac_exeext conftest.$ac_ext 9860 LIBS=$ac_check_lib_save_LIBS 9861 fi 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 9863 $as_echo "$ac_cv_lib_socket_socket" >&6; } 9864 if test "x$ac_cv_lib_socket_socket" = xyes; then : 9865 LIBS="-lsocket $LIBS" 9866 fi 9867 # SVR4 sockets 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 9870 $as_echo_n "checking for --with-libs... " >&6; } 9871 9872 # Check whether --with-libs was given. 9873 if test "${with_libs+set}" = set; then : 9874 withval=$with_libs; 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9876 $as_echo "$withval" >&6; } 9877 LIBS="$withval $LIBS" 9878 9879 else 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9881 $as_echo "no" >&6; } 9882 fi 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9893 if test -n "$ac_tool_prefix"; then 9894 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9895 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9897 $as_echo_n "checking for $ac_word... " >&6; } 9898 if ${ac_cv_path_PKG_CONFIG+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900 else 9901 case $PKG_CONFIG in 9902 [\\/]* | ?:[\\/]*) 9903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9904 ;; 9905 *) 9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9907 for as_dir in $PATH 9908 do 9909 IFS=$as_save_IFS 9910 test -z "$as_dir" && as_dir=. 9911 for ac_exec_ext in '' $ac_executable_extensions; do 9912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9915 break 2 9916 fi 9917 done 9918 done 9919 IFS=$as_save_IFS 9920 9921 ;; 9922 esac 9923 fi 9924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9925 if test -n "$PKG_CONFIG"; then 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9927 $as_echo "$PKG_CONFIG" >&6; } 9928 else 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9930 $as_echo "no" >&6; } 9931 fi 9932 9933 9934 fi 9935 if test -z "$ac_cv_path_PKG_CONFIG"; then 9936 ac_pt_PKG_CONFIG=$PKG_CONFIG 9937 # Extract the first word of "pkg-config", so it can be a program name with args. 9938 set dummy pkg-config; ac_word=$2 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9940 $as_echo_n "checking for $ac_word... " >&6; } 9941 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943 else 9944 case $ac_pt_PKG_CONFIG in 9945 [\\/]* | ?:[\\/]*) 9946 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9947 ;; 9948 *) 9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9950 for as_dir in $PATH 9951 do 9952 IFS=$as_save_IFS 9953 test -z "$as_dir" && as_dir=. 9954 for ac_exec_ext in '' $ac_executable_extensions; do 9955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9956 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9958 break 2 9959 fi 9960 done 9961 done 9962 IFS=$as_save_IFS 9963 9964 ;; 9965 esac 9966 fi 9967 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9968 if test -n "$ac_pt_PKG_CONFIG"; then 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9970 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 9971 else 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9973 $as_echo "no" >&6; } 9974 fi 9975 9976 if test "x$ac_pt_PKG_CONFIG" = x; then 9977 PKG_CONFIG="" 9978 else 9979 case $cross_compiling:$ac_tool_warned in 9980 yes:) 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9983 ac_tool_warned=yes ;; 9984 esac 9985 PKG_CONFIG=$ac_pt_PKG_CONFIG 9986 fi 9987 else 9988 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9989 fi 9990 9991 fi 9992 if test -n "$PKG_CONFIG"; then 9993 _pkg_min_version=0.9.0 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9995 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9996 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9998 $as_echo "yes" >&6; } 9999 else 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10001 $as_echo "no" >&6; } 10002 PKG_CONFIG="" 10003 fi 10004 fi 10005 10006 # Check for use of the system expat library 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 10008 $as_echo_n "checking for --with-system-expat... " >&6; } 10009 10010 # Check whether --with-system_expat was given. 10011 if test "${with_system_expat+set}" = set; then : 10012 withval=$with_system_expat; 10013 else 10014 with_system_expat="no" 10015 fi 10016 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 10019 $as_echo "$with_system_expat" >&6; } 10020 10021 # Check for use of the system libffi library 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 10023 $as_echo_n "checking for --with-system-ffi... " >&6; } 10024 10025 # Check whether --with-system_ffi was given. 10026 if test "${with_system_ffi+set}" = set; then : 10027 withval=$with_system_ffi; 10028 fi 10029 10030 10031 case "$with_system_ffi" in 10032 "") 10033 case $ac_sys_system in 10034 Darwin) 10035 with_system_ffi="no" 10036 ;; 10037 *) 10038 with_system_ffi="yes" 10039 ;; 10040 esac 10041 ;; 10042 yes|no) 10043 ;; 10044 *) 10045 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 10046 ;; 10047 esac 10048 10049 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 10050 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 10051 else 10052 LIBFFI_INCLUDEDIR="" 10053 fi 10054 10055 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 10057 $as_echo "$with_system_ffi" >&6; } 10058 10059 # Check for use of the system libmpdec library 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 10061 $as_echo_n "checking for --with-system-libmpdec... " >&6; } 10062 10063 # Check whether --with-system_libmpdec was given. 10064 if test "${with_system_libmpdec+set}" = set; then : 10065 withval=$with_system_libmpdec; 10066 else 10067 with_system_libmpdec="no" 10068 fi 10069 10070 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 10072 $as_echo "$with_system_libmpdec" >&6; } 10073 10074 # Check for support for loadable sqlite extensions 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 10076 $as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } 10077 # Check whether --enable-loadable-sqlite-extensions was given. 10078 if test "${enable_loadable_sqlite_extensions+set}" = set; then : 10079 enableval=$enable_loadable_sqlite_extensions; 10080 else 10081 enable_loadable_sqlite_extensions="no" 10082 fi 10083 10084 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 10086 $as_echo "$enable_loadable_sqlite_extensions" >&6; } 10087 10088 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path 10089 10090 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 10092 $as_echo_n "checking for --with-tcltk-includes... " >&6; } 10093 10094 # Check whether --with-tcltk-includes was given. 10095 if test "${with_tcltk_includes+set}" = set; then : 10096 withval=$with_tcltk_includes; 10097 else 10098 with_tcltk_includes="default" 10099 fi 10100 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 10102 $as_echo "$with_tcltk_includes" >&6; } 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 10104 $as_echo_n "checking for --with-tcltk-libs... " >&6; } 10105 10106 # Check whether --with-tcltk-libs was given. 10107 if test "${with_tcltk_libs+set}" = set; then : 10108 withval=$with_tcltk_libs; 10109 else 10110 with_tcltk_libs="default" 10111 fi 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 10114 $as_echo "$with_tcltk_libs" >&6; } 10115 if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 10116 then 10117 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 10118 then 10119 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 10120 fi 10121 TCLTK_INCLUDES="" 10122 TCLTK_LIBS="" 10123 else 10124 TCLTK_INCLUDES="$with_tcltk_includes" 10125 TCLTK_LIBS="$with_tcltk_libs" 10126 fi 10127 10128 # Check for --with-dbmliborder 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 10130 $as_echo_n "checking for --with-dbmliborder... " >&6; } 10131 10132 # Check whether --with-dbmliborder was given. 10133 if test "${with_dbmliborder+set}" = set; then : 10134 withval=$with_dbmliborder; 10135 if test x$with_dbmliborder = xyes 10136 then 10137 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10138 else 10139 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 10140 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 10141 then 10142 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10143 fi 10144 done 10145 fi 10146 fi 10147 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 10149 $as_echo "$with_dbmliborder" >&6; } 10150 10151 # This is used to generate Setup.config 10152 10153 USE_THREAD_MODULE="" 10154 10155 10156 10157 # Templates for things AC_DEFINEd more than once. 10158 # For a single AC_DEFINE, no template is needed. 10159 10160 10161 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 10163 $as_echo_n "checking for --with-threads... " >&6; } 10164 10165 # Check whether --with-threads was given. 10166 if test "${with_threads+set}" = set; then : 10167 withval=$with_threads; 10168 fi 10169 10170 10171 # --with-thread is deprecated, but check for it anyway 10172 10173 # Check whether --with-thread was given. 10174 if test "${with_thread+set}" = set; then : 10175 withval=$with_thread; with_threads=$with_thread 10176 fi 10177 10178 10179 if test -z "$with_threads" 10180 then with_threads="yes" 10181 fi 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 10183 $as_echo "$with_threads" >&6; } 10184 10185 10186 if test "$with_threads" = "no" 10187 then 10188 USE_THREAD_MODULE="#" 10189 elif test "$ac_cv_pthread_is_default" = yes 10190 then 10191 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10192 10193 # Defining _REENTRANT on system with POSIX threads should not hurt. 10194 $as_echo "#define _REENTRANT 1" >>confdefs.h 10195 10196 posix_threads=yes 10197 THREADOBJ="Python/thread.o" 10198 elif test "$ac_cv_kpthread" = "yes" 10199 then 10200 CC="$CC -Kpthread" 10201 if test "$ac_cv_cxx_thread" = "yes"; then 10202 CXX="$CXX -Kpthread" 10203 fi 10204 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10205 10206 posix_threads=yes 10207 THREADOBJ="Python/thread.o" 10208 elif test "$ac_cv_kthread" = "yes" 10209 then 10210 CC="$CC -Kthread" 10211 if test "$ac_cv_cxx_thread" = "yes"; then 10212 CXX="$CXX -Kthread" 10213 fi 10214 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10215 10216 posix_threads=yes 10217 THREADOBJ="Python/thread.o" 10218 elif test "$ac_cv_pthread" = "yes" 10219 then 10220 CC="$CC -pthread" 10221 if test "$ac_cv_cxx_thread" = "yes"; then 10222 CXX="$CXX -pthread" 10223 fi 10224 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10225 10226 posix_threads=yes 10227 THREADOBJ="Python/thread.o" 10228 else 10229 if test ! -z "$with_threads" -a -d "$with_threads" 10230 then LDFLAGS="$LDFLAGS -L$with_threads" 10231 fi 10232 if test ! -z "$withval" -a -d "$withval" 10233 then LDFLAGS="$LDFLAGS -L$withval" 10234 fi 10235 10236 # According to the POSIX spec, a pthreads implementation must 10237 # define _POSIX_THREADS in unistd.h. Some apparently don't 10238 # (e.g. gnu pth with pthread emulation) 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 10240 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10242 /* end confdefs.h. */ 10243 10244 #include <unistd.h> 10245 #ifdef _POSIX_THREADS 10246 yes 10247 #endif 10248 10249 _ACEOF 10250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10251 $EGREP "yes" >/dev/null 2>&1; then : 10252 unistd_defines_pthreads=yes 10253 else 10254 unistd_defines_pthreads=no 10255 fi 10256 rm -f conftest* 10257 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 10259 $as_echo "$unistd_defines_pthreads" >&6; } 10260 10261 $as_echo "#define _REENTRANT 1" >>confdefs.h 10262 10263 # Just looking for pthread_create in libpthread is not enough: 10264 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 10265 # So we really have to include pthread.h, and then link. 10266 _libs=$LIBS 10267 LIBS="$LIBS -lpthread" 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10269 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271 /* end confdefs.h. */ 10272 10273 #include <stdio.h> 10274 #include <pthread.h> 10275 10276 void * start_routine (void *arg) { exit (0); } 10277 int 10278 main () 10279 { 10280 10281 pthread_create (NULL, NULL, start_routine, NULL) 10282 ; 10283 return 0; 10284 } 10285 _ACEOF 10286 if ac_fn_c_try_link "$LINENO"; then : 10287 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10289 $as_echo "yes" >&6; } 10290 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10291 10292 posix_threads=yes 10293 THREADOBJ="Python/thread.o" 10294 else 10295 10296 LIBS=$_libs 10297 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 10298 if test "x$ac_cv_func_pthread_detach" = xyes; then : 10299 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10300 10301 posix_threads=yes 10302 THREADOBJ="Python/thread.o" 10303 else 10304 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 10306 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 10307 if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 10308 $as_echo_n "(cached) " >&6 10309 else 10310 ac_check_lib_save_LIBS=$LIBS 10311 LIBS="-lpthreads $LIBS" 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313 /* end confdefs.h. */ 10314 10315 /* Override any GCC internal prototype to avoid an error. 10316 Use char because int might match the return type of a GCC 10317 builtin and then its argument prototype would still apply. */ 10318 #ifdef __cplusplus 10319 extern "C" 10320 #endif 10321 char pthread_create (); 10322 int 10323 main () 10324 { 10325 return pthread_create (); 10326 ; 10327 return 0; 10328 } 10329 _ACEOF 10330 if ac_fn_c_try_link "$LINENO"; then : 10331 ac_cv_lib_pthreads_pthread_create=yes 10332 else 10333 ac_cv_lib_pthreads_pthread_create=no 10334 fi 10335 rm -f core conftest.err conftest.$ac_objext \ 10336 conftest$ac_exeext conftest.$ac_ext 10337 LIBS=$ac_check_lib_save_LIBS 10338 fi 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 10340 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 10341 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 10342 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10343 10344 posix_threads=yes 10345 LIBS="$LIBS -lpthreads" 10346 THREADOBJ="Python/thread.o" 10347 else 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 10350 $as_echo_n "checking for pthread_create in -lc_r... " >&6; } 10351 if ${ac_cv_lib_c_r_pthread_create+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353 else 10354 ac_check_lib_save_LIBS=$LIBS 10355 LIBS="-lc_r $LIBS" 10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357 /* end confdefs.h. */ 10358 10359 /* Override any GCC internal prototype to avoid an error. 10360 Use char because int might match the return type of a GCC 10361 builtin and then its argument prototype would still apply. */ 10362 #ifdef __cplusplus 10363 extern "C" 10364 #endif 10365 char pthread_create (); 10366 int 10367 main () 10368 { 10369 return pthread_create (); 10370 ; 10371 return 0; 10372 } 10373 _ACEOF 10374 if ac_fn_c_try_link "$LINENO"; then : 10375 ac_cv_lib_c_r_pthread_create=yes 10376 else 10377 ac_cv_lib_c_r_pthread_create=no 10378 fi 10379 rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381 LIBS=$ac_check_lib_save_LIBS 10382 fi 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 10384 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 10385 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 10386 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10387 10388 posix_threads=yes 10389 LIBS="$LIBS -lc_r" 10390 THREADOBJ="Python/thread.o" 10391 else 10392 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 10394 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 10395 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397 else 10398 ac_check_lib_save_LIBS=$LIBS 10399 LIBS="-lpthread $LIBS" 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401 /* end confdefs.h. */ 10402 10403 /* Override any GCC internal prototype to avoid an error. 10404 Use char because int might match the return type of a GCC 10405 builtin and then its argument prototype would still apply. */ 10406 #ifdef __cplusplus 10407 extern "C" 10408 #endif 10409 char __pthread_create_system (); 10410 int 10411 main () 10412 { 10413 return __pthread_create_system (); 10414 ; 10415 return 0; 10416 } 10417 _ACEOF 10418 if ac_fn_c_try_link "$LINENO"; then : 10419 ac_cv_lib_pthread___pthread_create_system=yes 10420 else 10421 ac_cv_lib_pthread___pthread_create_system=no 10422 fi 10423 rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425 LIBS=$ac_check_lib_save_LIBS 10426 fi 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 10428 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 10429 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 10430 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10431 10432 posix_threads=yes 10433 LIBS="$LIBS -lpthread" 10434 THREADOBJ="Python/thread.o" 10435 else 10436 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 10438 $as_echo_n "checking for pthread_create in -lcma... " >&6; } 10439 if ${ac_cv_lib_cma_pthread_create+:} false; then : 10440 $as_echo_n "(cached) " >&6 10441 else 10442 ac_check_lib_save_LIBS=$LIBS 10443 LIBS="-lcma $LIBS" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445 /* end confdefs.h. */ 10446 10447 /* Override any GCC internal prototype to avoid an error. 10448 Use char because int might match the return type of a GCC 10449 builtin and then its argument prototype would still apply. */ 10450 #ifdef __cplusplus 10451 extern "C" 10452 #endif 10453 char pthread_create (); 10454 int 10455 main () 10456 { 10457 return pthread_create (); 10458 ; 10459 return 0; 10460 } 10461 _ACEOF 10462 if ac_fn_c_try_link "$LINENO"; then : 10463 ac_cv_lib_cma_pthread_create=yes 10464 else 10465 ac_cv_lib_cma_pthread_create=no 10466 fi 10467 rm -f core conftest.err conftest.$ac_objext \ 10468 conftest$ac_exeext conftest.$ac_ext 10469 LIBS=$ac_check_lib_save_LIBS 10470 fi 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 10472 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 10473 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 10474 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10475 10476 posix_threads=yes 10477 LIBS="$LIBS -lcma" 10478 THREADOBJ="Python/thread.o" 10479 else 10480 10481 USE_THREAD_MODULE="#" 10482 fi 10483 10484 10485 fi 10486 10487 fi 10488 10489 fi 10490 10491 fi 10492 10493 fi 10494 rm -f core conftest.err conftest.$ac_objext \ 10495 conftest$ac_exeext conftest.$ac_ext 10496 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 10498 $as_echo_n "checking for usconfig in -lmpc... " >&6; } 10499 if ${ac_cv_lib_mpc_usconfig+:} false; then : 10500 $as_echo_n "(cached) " >&6 10501 else 10502 ac_check_lib_save_LIBS=$LIBS 10503 LIBS="-lmpc $LIBS" 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505 /* end confdefs.h. */ 10506 10507 /* Override any GCC internal prototype to avoid an error. 10508 Use char because int might match the return type of a GCC 10509 builtin and then its argument prototype would still apply. */ 10510 #ifdef __cplusplus 10511 extern "C" 10512 #endif 10513 char usconfig (); 10514 int 10515 main () 10516 { 10517 return usconfig (); 10518 ; 10519 return 0; 10520 } 10521 _ACEOF 10522 if ac_fn_c_try_link "$LINENO"; then : 10523 ac_cv_lib_mpc_usconfig=yes 10524 else 10525 ac_cv_lib_mpc_usconfig=no 10526 fi 10527 rm -f core conftest.err conftest.$ac_objext \ 10528 conftest$ac_exeext conftest.$ac_ext 10529 LIBS=$ac_check_lib_save_LIBS 10530 fi 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 10532 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 10533 if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 10534 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10535 10536 LIBS="$LIBS -lmpc" 10537 THREADOBJ="Python/thread.o" 10538 USE_THREAD_MODULE="" 10539 fi 10540 10541 10542 if test "$posix_threads" != "yes"; then 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 10544 $as_echo_n "checking for thr_create in -lthread... " >&6; } 10545 if ${ac_cv_lib_thread_thr_create+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547 else 10548 ac_check_lib_save_LIBS=$LIBS 10549 LIBS="-lthread $LIBS" 10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551 /* end confdefs.h. */ 10552 10553 /* Override any GCC internal prototype to avoid an error. 10554 Use char because int might match the return type of a GCC 10555 builtin and then its argument prototype would still apply. */ 10556 #ifdef __cplusplus 10557 extern "C" 10558 #endif 10559 char thr_create (); 10560 int 10561 main () 10562 { 10563 return thr_create (); 10564 ; 10565 return 0; 10566 } 10567 _ACEOF 10568 if ac_fn_c_try_link "$LINENO"; then : 10569 ac_cv_lib_thread_thr_create=yes 10570 else 10571 ac_cv_lib_thread_thr_create=no 10572 fi 10573 rm -f core conftest.err conftest.$ac_objext \ 10574 conftest$ac_exeext conftest.$ac_ext 10575 LIBS=$ac_check_lib_save_LIBS 10576 fi 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 10578 $as_echo "$ac_cv_lib_thread_thr_create" >&6; } 10579 if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 10580 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10581 10582 LIBS="$LIBS -lthread" 10583 THREADOBJ="Python/thread.o" 10584 USE_THREAD_MODULE="" 10585 fi 10586 10587 fi 10588 fi 10589 10590 if test "$posix_threads" = "yes"; then 10591 if test "$unistd_defines_pthreads" = "no"; then 10592 10593 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h 10594 10595 fi 10596 10597 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 10598 case $ac_sys_system/$ac_sys_release in 10599 SunOS/5.6) 10600 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 10601 10602 ;; 10603 SunOS/5.8) 10604 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10605 10606 ;; 10607 AIX/*) 10608 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10609 10610 ;; 10611 esac 10612 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 10614 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 10615 if ${ac_cv_pthread_system_supported+:} false; then : 10616 $as_echo_n "(cached) " >&6 10617 else 10618 if test "$cross_compiling" = yes; then : 10619 ac_cv_pthread_system_supported=no 10620 else 10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10622 /* end confdefs.h. */ 10623 10624 #include <stdio.h> 10625 #include <pthread.h> 10626 void *foo(void *parm) { 10627 return NULL; 10628 } 10629 main() { 10630 pthread_attr_t attr; 10631 pthread_t id; 10632 if (pthread_attr_init(&attr)) exit(-1); 10633 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); 10634 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); 10635 exit(0); 10636 } 10637 _ACEOF 10638 if ac_fn_c_try_run "$LINENO"; then : 10639 ac_cv_pthread_system_supported=yes 10640 else 10641 ac_cv_pthread_system_supported=no 10642 fi 10643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10644 conftest.$ac_objext conftest.beam conftest.$ac_ext 10645 fi 10646 10647 10648 fi 10649 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 10651 $as_echo "$ac_cv_pthread_system_supported" >&6; } 10652 if test "$ac_cv_pthread_system_supported" = "yes"; then 10653 10654 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 10655 10656 fi 10657 for ac_func in pthread_sigmask 10658 do : 10659 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 10660 if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 10661 cat >>confdefs.h <<_ACEOF 10662 #define HAVE_PTHREAD_SIGMASK 1 10663 _ACEOF 10664 case $ac_sys_system in 10665 CYGWIN*) 10666 10667 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 10668 10669 ;; 10670 esac 10671 fi 10672 done 10673 10674 for ac_func in pthread_atfork 10675 do : 10676 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 10677 if test "x$ac_cv_func_pthread_atfork" = xyes; then : 10678 cat >>confdefs.h <<_ACEOF 10679 #define HAVE_PTHREAD_ATFORK 1 10680 _ACEOF 10681 10682 fi 10683 done 10684 10685 fi 10686 10687 10688 # Check for enable-ipv6 10689 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 10691 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 10692 # Check whether --enable-ipv6 was given. 10693 if test "${enable_ipv6+set}" = set; then : 10694 enableval=$enable_ipv6; case "$enableval" in 10695 no) 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10697 $as_echo "no" >&6; } 10698 ipv6=no 10699 ;; 10700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10701 $as_echo "yes" >&6; } 10702 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10703 10704 ipv6=yes 10705 ;; 10706 esac 10707 else 10708 10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10710 /* end confdefs.h. */ 10711 /* AF_INET6 available check */ 10712 #include <sys/types.h> 10713 #include <sys/socket.h> 10714 int 10715 main () 10716 { 10717 int domain = AF_INET6; 10718 ; 10719 return 0; 10720 } 10721 _ACEOF 10722 if ac_fn_c_try_compile "$LINENO"; then : 10723 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10725 $as_echo "yes" >&6; } 10726 ipv6=yes 10727 10728 else 10729 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10731 $as_echo "no" >&6; } 10732 ipv6=no 10733 10734 fi 10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10736 10737 if test "$ipv6" = "yes"; then 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 10739 $as_echo_n "checking if RFC2553 API is available... " >&6; } 10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741 /* end confdefs.h. */ 10742 10743 #include <sys/types.h> 10744 #include <netinet/in.h> 10745 int 10746 main () 10747 { 10748 struct sockaddr_in6 x; 10749 x.sin6_scope_id; 10750 ; 10751 return 0; 10752 } 10753 10754 _ACEOF 10755 if ac_fn_c_try_compile "$LINENO"; then : 10756 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10758 $as_echo "yes" >&6; } 10759 ipv6=yes 10760 10761 else 10762 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10764 $as_echo "no" >&6; } 10765 ipv6=no 10766 10767 fi 10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10769 fi 10770 10771 if test "$ipv6" = "yes"; then 10772 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10773 10774 fi 10775 10776 fi 10777 10778 10779 ipv6type=unknown 10780 ipv6lib=none 10781 ipv6trylibc=no 10782 10783 if test "$ipv6" = "yes"; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 10785 $as_echo_n "checking ipv6 stack type... " >&6; } 10786 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 10787 do 10788 case $i in 10789 inria) 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791 /* end confdefs.h. */ 10792 10793 #include <netinet/in.h> 10794 #ifdef IPV6_INRIA_VERSION 10795 yes 10796 #endif 10797 _ACEOF 10798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10799 $EGREP "yes" >/dev/null 2>&1; then : 10800 ipv6type=$i 10801 fi 10802 rm -f conftest* 10803 10804 ;; 10805 kame) 10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807 /* end confdefs.h. */ 10808 10809 #include <netinet/in.h> 10810 #ifdef __KAME__ 10811 yes 10812 #endif 10813 _ACEOF 10814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10815 $EGREP "yes" >/dev/null 2>&1; then : 10816 ipv6type=$i; 10817 ipv6lib=inet6 10818 ipv6libdir=/usr/local/v6/lib 10819 ipv6trylibc=yes 10820 fi 10821 rm -f conftest* 10822 10823 ;; 10824 linux-glibc) 10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826 /* end confdefs.h. */ 10827 10828 #include <features.h> 10829 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 10830 yes 10831 #endif 10832 _ACEOF 10833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10834 $EGREP "yes" >/dev/null 2>&1; then : 10835 ipv6type=$i; 10836 ipv6trylibc=yes 10837 fi 10838 rm -f conftest* 10839 10840 ;; 10841 linux-inet6) 10842 if test -d /usr/inet6; then 10843 ipv6type=$i 10844 ipv6lib=inet6 10845 ipv6libdir=/usr/inet6/lib 10846 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 10847 fi 10848 ;; 10849 solaris) 10850 if test -f /etc/netconfig; then 10851 if $GREP -q tcp6 /etc/netconfig; then 10852 ipv6type=$i 10853 ipv6trylibc=yes 10854 fi 10855 fi 10856 ;; 10857 toshiba) 10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10859 /* end confdefs.h. */ 10860 10861 #include <sys/param.h> 10862 #ifdef _TOSHIBA_INET6 10863 yes 10864 #endif 10865 _ACEOF 10866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10867 $EGREP "yes" >/dev/null 2>&1; then : 10868 ipv6type=$i; 10869 ipv6lib=inet6; 10870 ipv6libdir=/usr/local/v6/lib 10871 fi 10872 rm -f conftest* 10873 10874 ;; 10875 v6d) 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877 /* end confdefs.h. */ 10878 10879 #include </usr/local/v6/include/sys/v6config.h> 10880 #ifdef __V6D__ 10881 yes 10882 #endif 10883 _ACEOF 10884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10885 $EGREP "yes" >/dev/null 2>&1; then : 10886 ipv6type=$i; 10887 ipv6lib=v6; 10888 ipv6libdir=/usr/local/v6/lib; 10889 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 10890 fi 10891 rm -f conftest* 10892 10893 ;; 10894 zeta) 10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896 /* end confdefs.h. */ 10897 10898 #include <sys/param.h> 10899 #ifdef _ZETA_MINAMI_INET6 10900 yes 10901 #endif 10902 _ACEOF 10903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10904 $EGREP "yes" >/dev/null 2>&1; then : 10905 ipv6type=$i; 10906 ipv6lib=inet6; 10907 ipv6libdir=/usr/local/v6/lib 10908 fi 10909 rm -f conftest* 10910 10911 ;; 10912 esac 10913 if test "$ipv6type" != "unknown"; then 10914 break 10915 fi 10916 done 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 10918 $as_echo "$ipv6type" >&6; } 10919 fi 10920 10921 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 10922 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 10923 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 10924 echo "using lib$ipv6lib" 10925 else 10926 if test $ipv6trylibc = "yes"; then 10927 echo "using libc" 10928 else 10929 echo 'Fatal: no $ipv6lib library found. cannot continue.' 10930 echo "You need to fetch lib$ipv6lib.a from appropriate" 10931 echo 'ipv6 kit and compile beforehand.' 10932 exit 1 10933 fi 10934 fi 10935 fi 10936 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 10938 $as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } 10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10940 /* end confdefs.h. */ 10941 /* CAN_RAW_FD_FRAMES available check */ 10942 #include <linux/can/raw.h> 10943 int 10944 main () 10945 { 10946 int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 10947 ; 10948 return 0; 10949 } 10950 _ACEOF 10951 if ac_fn_c_try_compile "$LINENO"; then : 10952 10953 10954 $as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 10955 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10957 $as_echo "yes" >&6; } 10958 10959 else 10960 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10962 $as_echo "no" >&6; } 10963 10964 fi 10965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10966 10967 # Check for --with-doc-strings 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 10969 $as_echo_n "checking for --with-doc-strings... " >&6; } 10970 10971 # Check whether --with-doc-strings was given. 10972 if test "${with_doc_strings+set}" = set; then : 10973 withval=$with_doc_strings; 10974 fi 10975 10976 10977 if test -z "$with_doc_strings" 10978 then with_doc_strings="yes" 10979 fi 10980 if test "$with_doc_strings" != "no" 10981 then 10982 10983 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 10984 10985 fi 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 10987 $as_echo "$with_doc_strings" >&6; } 10988 10989 # Check for Python-specific malloc support 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 10991 $as_echo_n "checking for --with-pymalloc... " >&6; } 10992 10993 # Check whether --with-pymalloc was given. 10994 if test "${with_pymalloc+set}" = set; then : 10995 withval=$with_pymalloc; 10996 fi 10997 10998 10999 if test -z "$with_pymalloc" 11000 then 11001 with_pymalloc="yes" 11002 fi 11003 if test "$with_pymalloc" != "no" 11004 then 11005 11006 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 11007 11008 ABIFLAGS="${ABIFLAGS}m" 11009 fi 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 11011 $as_echo "$with_pymalloc" >&6; } 11012 11013 # Check for Valgrind support 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 11015 $as_echo_n "checking for --with-valgrind... " >&6; } 11016 11017 # Check whether --with-valgrind was given. 11018 if test "${with_valgrind+set}" = set; then : 11019 withval=$with_valgrind; 11020 else 11021 with_valgrind=no 11022 fi 11023 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 11025 $as_echo "$with_valgrind" >&6; } 11026 if test "$with_valgrind" != no; then 11027 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 11028 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 11029 11030 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h 11031 11032 else 11033 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 11034 11035 fi 11036 11037 11038 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 11039 fi 11040 11041 # Check for DTrace support 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 11043 $as_echo_n "checking for --with-dtrace... " >&6; } 11044 11045 # Check whether --with-dtrace was given. 11046 if test "${with_dtrace+set}" = set; then : 11047 withval=$with_dtrace; 11048 else 11049 with_dtrace=no 11050 fi 11051 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 11053 $as_echo "$with_dtrace" >&6; } 11054 11055 11056 11057 11058 11059 DTRACE= 11060 DFLAGS= 11061 DTRACE_HEADERS= 11062 DTRACE_OBJS= 11063 11064 if test "$with_dtrace" = "yes" 11065 then 11066 # Extract the first word of "dtrace", so it can be a program name with args. 11067 set dummy dtrace; ac_word=$2 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11069 $as_echo_n "checking for $ac_word... " >&6; } 11070 if ${ac_cv_path_DTRACE+:} false; then : 11071 $as_echo_n "(cached) " >&6 11072 else 11073 case $DTRACE in 11074 [\\/]* | ?:[\\/]*) 11075 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 11076 ;; 11077 *) 11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11079 for as_dir in $PATH 11080 do 11081 IFS=$as_save_IFS 11082 test -z "$as_dir" && as_dir=. 11083 for ac_exec_ext in '' $ac_executable_extensions; do 11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11085 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11087 break 2 11088 fi 11089 done 11090 done 11091 IFS=$as_save_IFS 11092 11093 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 11094 ;; 11095 esac 11096 fi 11097 DTRACE=$ac_cv_path_DTRACE 11098 if test -n "$DTRACE"; then 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 11100 $as_echo "$DTRACE" >&6; } 11101 else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103 $as_echo "no" >&6; } 11104 fi 11105 11106 11107 if test "$DTRACE" = "not found"; then 11108 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 11109 fi 11110 11111 $as_echo "#define WITH_DTRACE 1" >>confdefs.h 11112 11113 DTRACE_HEADERS="Include/pydtrace_probes.h" 11114 11115 # On OS X, DTrace providers do not need to be explicitly compiled and 11116 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 11117 # generation flag '-G'. We check for presence of this flag, rather than 11118 # hardcoding support by OS, in the interest of robustness. 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 11120 $as_echo_n "checking whether DTrace probes require linking... " >&6; } 11121 if ${ac_cv_dtrace_link+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123 else 11124 ac_cv_dtrace_link=no 11125 echo 'BEGIN' > conftest.d 11126 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 11127 ac_cv_dtrace_link=yes 11128 11129 fi 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 11131 $as_echo "$ac_cv_dtrace_link" >&6; } 11132 if test "$ac_cv_dtrace_link" = "yes"; then 11133 DTRACE_OBJS="Python/pydtrace.o" 11134 fi 11135 fi 11136 11137 # -I${DLINCLDIR} is added to the compile rule for importdl.o 11138 11139 DLINCLDIR=. 11140 11141 # the dlopen() function means we might want to use dynload_shlib.o. some 11142 # platforms, such as AIX, have dlopen(), but don't want to use it. 11143 for ac_func in dlopen 11144 do : 11145 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11146 if test "x$ac_cv_func_dlopen" = xyes; then : 11147 cat >>confdefs.h <<_ACEOF 11148 #define HAVE_DLOPEN 1 11149 _ACEOF 11150 11151 fi 11152 done 11153 11154 11155 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 11156 # loading of modules. 11157 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 11159 $as_echo_n "checking DYNLOADFILE... " >&6; } 11160 if test -z "$DYNLOADFILE" 11161 then 11162 case $ac_sys_system/$ac_sys_release in 11163 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 11164 if test "$ac_cv_func_dlopen" = yes 11165 then DYNLOADFILE="dynload_shlib.o" 11166 else DYNLOADFILE="dynload_aix.o" 11167 fi 11168 ;; 11169 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 11170 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() 11171 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; 11172 *) 11173 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 11174 # out any dynamic loading 11175 if test "$ac_cv_func_dlopen" = yes 11176 then DYNLOADFILE="dynload_shlib.o" 11177 else DYNLOADFILE="dynload_stub.o" 11178 fi 11179 ;; 11180 esac 11181 fi 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 11183 $as_echo "$DYNLOADFILE" >&6; } 11184 if test "$DYNLOADFILE" != "dynload_stub.o" 11185 then 11186 11187 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 11188 11189 fi 11190 11191 # MACHDEP_OBJS can be set to platform-specific object files needed by Python 11192 11193 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 11195 $as_echo_n "checking MACHDEP_OBJS... " >&6; } 11196 if test -z "$MACHDEP_OBJS" 11197 then 11198 MACHDEP_OBJS=$extra_machdep_objs 11199 else 11200 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 11201 fi 11202 if test -z "$MACHDEP_OBJS"; then 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11204 $as_echo "none" >&6; } 11205 else 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 11207 $as_echo "$MACHDEP_OBJS" >&6; } 11208 fi 11209 11210 # checks for library functions 11211 for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ 11212 clock confstr ctermid dup3 execv faccessat fchmod fchmodat fchown fchownat \ 11213 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ 11214 futimens futimes gai_strerror getentropy \ 11215 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ 11216 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ 11217 initgroups kill killpg lchmod lchown linkat lstat lutimes mmap \ 11218 memrchr mbrtowc mkdirat mkfifo \ 11219 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ 11220 posix_fallocate posix_fadvise pread \ 11221 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ 11222 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ 11223 setgid sethostname \ 11224 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ 11225 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ 11226 sched_rr_get_interval \ 11227 sigaction sigaltstack siginterrupt sigpending sigrelse \ 11228 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ 11229 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 11230 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ 11231 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty 11232 do : 11233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11236 cat >>confdefs.h <<_ACEOF 11237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11238 _ACEOF 11239 11240 fi 11241 done 11242 11243 11244 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 11245 #include <dirent.h> 11246 " 11247 if test "x$ac_cv_have_decl_dirfd" = xyes; then : 11248 11249 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h 11250 11251 fi 11252 11253 11254 # For some functions, having a definition is not sufficient, since 11255 # we want to take their address. 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 11257 $as_echo_n "checking for chroot... " >&6; } 11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11259 /* end confdefs.h. */ 11260 #include <unistd.h> 11261 int 11262 main () 11263 { 11264 void *x=chroot 11265 ; 11266 return 0; 11267 } 11268 _ACEOF 11269 if ac_fn_c_try_compile "$LINENO"; then : 11270 11271 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h 11272 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11274 $as_echo "yes" >&6; } 11275 else 11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11277 $as_echo "no" >&6; } 11278 11279 fi 11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 11282 $as_echo_n "checking for link... " >&6; } 11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11284 /* end confdefs.h. */ 11285 #include <unistd.h> 11286 int 11287 main () 11288 { 11289 void *x=link 11290 ; 11291 return 0; 11292 } 11293 _ACEOF 11294 if ac_fn_c_try_compile "$LINENO"; then : 11295 11296 $as_echo "#define HAVE_LINK 1" >>confdefs.h 11297 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11299 $as_echo "yes" >&6; } 11300 else 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11302 $as_echo "no" >&6; } 11303 11304 fi 11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 11307 $as_echo_n "checking for symlink... " >&6; } 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309 /* end confdefs.h. */ 11310 #include <unistd.h> 11311 int 11312 main () 11313 { 11314 void *x=symlink 11315 ; 11316 return 0; 11317 } 11318 _ACEOF 11319 if ac_fn_c_try_compile "$LINENO"; then : 11320 11321 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 11322 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11324 $as_echo "yes" >&6; } 11325 else 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11327 $as_echo "no" >&6; } 11328 11329 fi 11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 11332 $as_echo_n "checking for fchdir... " >&6; } 11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11334 /* end confdefs.h. */ 11335 #include <unistd.h> 11336 int 11337 main () 11338 { 11339 void *x=fchdir 11340 ; 11341 return 0; 11342 } 11343 _ACEOF 11344 if ac_fn_c_try_compile "$LINENO"; then : 11345 11346 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 11347 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11349 $as_echo "yes" >&6; } 11350 else 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11352 $as_echo "no" >&6; } 11353 11354 fi 11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 11357 $as_echo_n "checking for fsync... " >&6; } 11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359 /* end confdefs.h. */ 11360 #include <unistd.h> 11361 int 11362 main () 11363 { 11364 void *x=fsync 11365 ; 11366 return 0; 11367 } 11368 _ACEOF 11369 if ac_fn_c_try_compile "$LINENO"; then : 11370 11371 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h 11372 11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11374 $as_echo "yes" >&6; } 11375 else 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11377 $as_echo "no" >&6; } 11378 11379 fi 11380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 11382 $as_echo_n "checking for fdatasync... " >&6; } 11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11384 /* end confdefs.h. */ 11385 #include <unistd.h> 11386 int 11387 main () 11388 { 11389 void *x=fdatasync 11390 ; 11391 return 0; 11392 } 11393 _ACEOF 11394 if ac_fn_c_try_compile "$LINENO"; then : 11395 11396 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11399 $as_echo "yes" >&6; } 11400 else 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11402 $as_echo "no" >&6; } 11403 11404 fi 11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 11407 $as_echo_n "checking for epoll... " >&6; } 11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11409 /* end confdefs.h. */ 11410 #include <sys/epoll.h> 11411 int 11412 main () 11413 { 11414 void *x=epoll_create 11415 ; 11416 return 0; 11417 } 11418 _ACEOF 11419 if ac_fn_c_try_compile "$LINENO"; then : 11420 11421 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h 11422 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11424 $as_echo "yes" >&6; } 11425 else 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11427 $as_echo "no" >&6; } 11428 11429 fi 11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 11432 $as_echo_n "checking for epoll_create1... " >&6; } 11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11434 /* end confdefs.h. */ 11435 #include <sys/epoll.h> 11436 int 11437 main () 11438 { 11439 void *x=epoll_create1 11440 ; 11441 return 0; 11442 } 11443 _ACEOF 11444 if ac_fn_c_try_compile "$LINENO"; then : 11445 11446 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 11447 11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11449 $as_echo "yes" >&6; } 11450 else 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11452 $as_echo "no" >&6; } 11453 11454 fi 11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 11457 $as_echo_n "checking for kqueue... " >&6; } 11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11459 /* end confdefs.h. */ 11460 11461 #include <sys/types.h> 11462 #include <sys/event.h> 11463 11464 int 11465 main () 11466 { 11467 int x=kqueue() 11468 ; 11469 return 0; 11470 } 11471 _ACEOF 11472 if ac_fn_c_try_compile "$LINENO"; then : 11473 11474 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11477 $as_echo "yes" >&6; } 11478 else 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11480 $as_echo "no" >&6; } 11481 11482 fi 11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 11485 $as_echo_n "checking for prlimit... " >&6; } 11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11487 /* end confdefs.h. */ 11488 11489 #include <sys/time.h> 11490 #include <sys/resource.h> 11491 11492 int 11493 main () 11494 { 11495 void *x=prlimit 11496 ; 11497 return 0; 11498 } 11499 _ACEOF 11500 if ac_fn_c_try_compile "$LINENO"; then : 11501 11502 $as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h 11503 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11505 $as_echo "yes" >&6; } 11506 else 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11508 $as_echo "no" >&6; } 11509 11510 fi 11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11512 11513 # On some systems (eg. FreeBSD 5), we would find a definition of the 11514 # functions ctermid_r, setgroups in the library, but no prototype 11515 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their 11516 # address to avoid compiler warnings and potential miscompilations 11517 # because of the missing prototypes. 11518 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 11520 $as_echo_n "checking for ctermid_r... " >&6; } 11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11522 /* end confdefs.h. */ 11523 11524 #include <stdio.h> 11525 11526 int 11527 main () 11528 { 11529 void* p = ctermid_r 11530 ; 11531 return 0; 11532 } 11533 _ACEOF 11534 if ac_fn_c_try_compile "$LINENO"; then : 11535 11536 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 11537 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11539 $as_echo "yes" >&6; } 11540 else 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11542 $as_echo "no" >&6; } 11543 11544 fi 11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11546 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 11548 $as_echo_n "checking for flock declaration... " >&6; } 11549 if ${ac_cv_flock_decl+:} false; then : 11550 $as_echo_n "(cached) " >&6 11551 else 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553 /* end confdefs.h. */ 11554 #include <sys/file.h> 11555 int 11556 main () 11557 { 11558 void* p = flock 11559 11560 ; 11561 return 0; 11562 } 11563 _ACEOF 11564 if ac_fn_c_try_compile "$LINENO"; then : 11565 ac_cv_flock_decl=yes 11566 else 11567 ac_cv_flock_decl=no 11568 11569 fi 11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11571 11572 fi 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 11574 $as_echo "$ac_cv_flock_decl" >&6; } 11575 if test "x${ac_cv_flock_decl}" = xyes; then 11576 for ac_func in flock 11577 do : 11578 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 11579 if test "x$ac_cv_func_flock" = xyes; then : 11580 cat >>confdefs.h <<_ACEOF 11581 #define HAVE_FLOCK 1 11582 _ACEOF 11583 11584 else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 11586 $as_echo_n "checking for flock in -lbsd... " >&6; } 11587 if ${ac_cv_lib_bsd_flock+:} false; then : 11588 $as_echo_n "(cached) " >&6 11589 else 11590 ac_check_lib_save_LIBS=$LIBS 11591 LIBS="-lbsd $LIBS" 11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11593 /* end confdefs.h. */ 11594 11595 /* Override any GCC internal prototype to avoid an error. 11596 Use char because int might match the return type of a GCC 11597 builtin and then its argument prototype would still apply. */ 11598 #ifdef __cplusplus 11599 extern "C" 11600 #endif 11601 char flock (); 11602 int 11603 main () 11604 { 11605 return flock (); 11606 ; 11607 return 0; 11608 } 11609 _ACEOF 11610 if ac_fn_c_try_link "$LINENO"; then : 11611 ac_cv_lib_bsd_flock=yes 11612 else 11613 ac_cv_lib_bsd_flock=no 11614 fi 11615 rm -f core conftest.err conftest.$ac_objext \ 11616 conftest$ac_exeext conftest.$ac_ext 11617 LIBS=$ac_check_lib_save_LIBS 11618 fi 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 11620 $as_echo "$ac_cv_lib_bsd_flock" >&6; } 11621 if test "x$ac_cv_lib_bsd_flock" = xyes; then : 11622 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 11623 11624 11625 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 11626 11627 11628 fi 11629 11630 11631 fi 11632 done 11633 11634 fi 11635 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 11637 $as_echo_n "checking for getpagesize... " >&6; } 11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11639 /* end confdefs.h. */ 11640 11641 #include <unistd.h> 11642 11643 int 11644 main () 11645 { 11646 void* p = getpagesize 11647 ; 11648 return 0; 11649 } 11650 _ACEOF 11651 if ac_fn_c_try_compile "$LINENO"; then : 11652 11653 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11654 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11656 $as_echo "yes" >&6; } 11657 else 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11659 $as_echo "no" >&6; } 11660 11661 fi 11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11663 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 11665 $as_echo_n "checking for broken unsetenv... " >&6; } 11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11667 /* end confdefs.h. */ 11668 11669 #include <stdlib.h> 11670 11671 int 11672 main () 11673 { 11674 int res = unsetenv("DUMMY") 11675 ; 11676 return 0; 11677 } 11678 _ACEOF 11679 if ac_fn_c_try_compile "$LINENO"; then : 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11681 $as_echo "no" >&6; } 11682 else 11683 11684 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 11685 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11687 $as_echo "yes" >&6; } 11688 11689 fi 11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11691 11692 for ac_prog in true 11693 do 11694 # Extract the first word of "$ac_prog", so it can be a program name with args. 11695 set dummy $ac_prog; ac_word=$2 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11697 $as_echo_n "checking for $ac_word... " >&6; } 11698 if ${ac_cv_prog_TRUE+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700 else 11701 if test -n "$TRUE"; then 11702 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 11703 else 11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11705 for as_dir in $PATH 11706 do 11707 IFS=$as_save_IFS 11708 test -z "$as_dir" && as_dir=. 11709 for ac_exec_ext in '' $ac_executable_extensions; do 11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11711 ac_cv_prog_TRUE="$ac_prog" 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11713 break 2 11714 fi 11715 done 11716 done 11717 IFS=$as_save_IFS 11718 11719 fi 11720 fi 11721 TRUE=$ac_cv_prog_TRUE 11722 if test -n "$TRUE"; then 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 11724 $as_echo "$TRUE" >&6; } 11725 else 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11727 $as_echo "no" >&6; } 11728 fi 11729 11730 11731 test -n "$TRUE" && break 11732 done 11733 test -n "$TRUE" || TRUE="/bin/true" 11734 11735 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 11737 $as_echo_n "checking for inet_aton in -lc... " >&6; } 11738 if ${ac_cv_lib_c_inet_aton+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740 else 11741 ac_check_lib_save_LIBS=$LIBS 11742 LIBS="-lc $LIBS" 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744 /* end confdefs.h. */ 11745 11746 /* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. */ 11749 #ifdef __cplusplus 11750 extern "C" 11751 #endif 11752 char inet_aton (); 11753 int 11754 main () 11755 { 11756 return inet_aton (); 11757 ; 11758 return 0; 11759 } 11760 _ACEOF 11761 if ac_fn_c_try_link "$LINENO"; then : 11762 ac_cv_lib_c_inet_aton=yes 11763 else 11764 ac_cv_lib_c_inet_aton=no 11765 fi 11766 rm -f core conftest.err conftest.$ac_objext \ 11767 conftest$ac_exeext conftest.$ac_ext 11768 LIBS=$ac_check_lib_save_LIBS 11769 fi 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 11771 $as_echo "$ac_cv_lib_c_inet_aton" >&6; } 11772 if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 11773 $ac_cv_prog_TRUE 11774 else 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 11776 $as_echo_n "checking for inet_aton in -lresolv... " >&6; } 11777 if ${ac_cv_lib_resolv_inet_aton+:} false; then : 11778 $as_echo_n "(cached) " >&6 11779 else 11780 ac_check_lib_save_LIBS=$LIBS 11781 LIBS="-lresolv $LIBS" 11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11783 /* end confdefs.h. */ 11784 11785 /* Override any GCC internal prototype to avoid an error. 11786 Use char because int might match the return type of a GCC 11787 builtin and then its argument prototype would still apply. */ 11788 #ifdef __cplusplus 11789 extern "C" 11790 #endif 11791 char inet_aton (); 11792 int 11793 main () 11794 { 11795 return inet_aton (); 11796 ; 11797 return 0; 11798 } 11799 _ACEOF 11800 if ac_fn_c_try_link "$LINENO"; then : 11801 ac_cv_lib_resolv_inet_aton=yes 11802 else 11803 ac_cv_lib_resolv_inet_aton=no 11804 fi 11805 rm -f core conftest.err conftest.$ac_objext \ 11806 conftest$ac_exeext conftest.$ac_ext 11807 LIBS=$ac_check_lib_save_LIBS 11808 fi 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 11810 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 11811 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 11812 cat >>confdefs.h <<_ACEOF 11813 #define HAVE_LIBRESOLV 1 11814 _ACEOF 11815 11816 LIBS="-lresolv $LIBS" 11817 11818 fi 11819 11820 11821 fi 11822 11823 11824 # On Tru64, chflags seems to be present, but calling it will 11825 # exit Python 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 11827 $as_echo_n "checking for chflags... " >&6; } 11828 if ${ac_cv_have_chflags+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830 else 11831 if test "$cross_compiling" = yes; then : 11832 ac_cv_have_chflags=cross 11833 else 11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11835 /* end confdefs.h. */ 11836 11837 #include <sys/stat.h> 11838 #include <unistd.h> 11839 int main(int argc, char*argv[]) 11840 { 11841 if(chflags(argv[0], 0) != 0) 11842 return 1; 11843 return 0; 11844 } 11845 11846 _ACEOF 11847 if ac_fn_c_try_run "$LINENO"; then : 11848 ac_cv_have_chflags=yes 11849 else 11850 ac_cv_have_chflags=no 11851 fi 11852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11853 conftest.$ac_objext conftest.beam conftest.$ac_ext 11854 fi 11855 11856 11857 fi 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 11859 $as_echo "$ac_cv_have_chflags" >&6; } 11860 if test "$ac_cv_have_chflags" = cross ; then 11861 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 11862 if test "x$ac_cv_func_chflags" = xyes; then : 11863 ac_cv_have_chflags="yes" 11864 else 11865 ac_cv_have_chflags="no" 11866 fi 11867 11868 fi 11869 if test "$ac_cv_have_chflags" = yes ; then 11870 11871 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 11872 11873 fi 11874 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 11876 $as_echo_n "checking for lchflags... " >&6; } 11877 if ${ac_cv_have_lchflags+:} false; then : 11878 $as_echo_n "(cached) " >&6 11879 else 11880 if test "$cross_compiling" = yes; then : 11881 ac_cv_have_lchflags=cross 11882 else 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884 /* end confdefs.h. */ 11885 11886 #include <sys/stat.h> 11887 #include <unistd.h> 11888 int main(int argc, char*argv[]) 11889 { 11890 if(lchflags(argv[0], 0) != 0) 11891 return 1; 11892 return 0; 11893 } 11894 11895 _ACEOF 11896 if ac_fn_c_try_run "$LINENO"; then : 11897 ac_cv_have_lchflags=yes 11898 else 11899 ac_cv_have_lchflags=no 11900 fi 11901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11902 conftest.$ac_objext conftest.beam conftest.$ac_ext 11903 fi 11904 11905 11906 fi 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 11908 $as_echo "$ac_cv_have_lchflags" >&6; } 11909 if test "$ac_cv_have_lchflags" = cross ; then 11910 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 11911 if test "x$ac_cv_func_lchflags" = xyes; then : 11912 ac_cv_have_lchflags="yes" 11913 else 11914 ac_cv_have_lchflags="no" 11915 fi 11916 11917 fi 11918 if test "$ac_cv_have_lchflags" = yes ; then 11919 11920 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 11921 11922 fi 11923 11924 case $ac_sys_system/$ac_sys_release in 11925 Darwin/*) 11926 _CUR_CFLAGS="${CFLAGS}" 11927 _CUR_LDFLAGS="${LDFLAGS}" 11928 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 11929 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 11930 ;; 11931 esac 11932 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 11934 $as_echo_n "checking for inflateCopy in -lz... " >&6; } 11935 if ${ac_cv_lib_z_inflateCopy+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937 else 11938 ac_check_lib_save_LIBS=$LIBS 11939 LIBS="-lz $LIBS" 11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11941 /* end confdefs.h. */ 11942 11943 /* Override any GCC internal prototype to avoid an error. 11944 Use char because int might match the return type of a GCC 11945 builtin and then its argument prototype would still apply. */ 11946 #ifdef __cplusplus 11947 extern "C" 11948 #endif 11949 char inflateCopy (); 11950 int 11951 main () 11952 { 11953 return inflateCopy (); 11954 ; 11955 return 0; 11956 } 11957 _ACEOF 11958 if ac_fn_c_try_link "$LINENO"; then : 11959 ac_cv_lib_z_inflateCopy=yes 11960 else 11961 ac_cv_lib_z_inflateCopy=no 11962 fi 11963 rm -f core conftest.err conftest.$ac_objext \ 11964 conftest$ac_exeext conftest.$ac_ext 11965 LIBS=$ac_check_lib_save_LIBS 11966 fi 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 11968 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 11969 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 11970 11971 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 11972 11973 fi 11974 11975 11976 case $ac_sys_system/$ac_sys_release in 11977 Darwin/*) 11978 CFLAGS="${_CUR_CFLAGS}" 11979 LDFLAGS="${_CUR_LDFLAGS}" 11980 ;; 11981 esac 11982 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 11984 $as_echo_n "checking for hstrerror... " >&6; } 11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11986 /* end confdefs.h. */ 11987 11988 #include <netdb.h> 11989 11990 int 11991 main () 11992 { 11993 void* p = hstrerror; hstrerror(0) 11994 ; 11995 return 0; 11996 } 11997 _ACEOF 11998 if ac_fn_c_try_link "$LINENO"; then : 11999 12000 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 12001 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12003 $as_echo "yes" >&6; } 12004 else 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12006 $as_echo "no" >&6; } 12007 12008 fi 12009 rm -f core conftest.err conftest.$ac_objext \ 12010 conftest$ac_exeext conftest.$ac_ext 12011 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 12013 $as_echo_n "checking for inet_aton... " >&6; } 12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12015 /* end confdefs.h. */ 12016 12017 #include <sys/types.h> 12018 #include <sys/socket.h> 12019 #include <netinet/in.h> 12020 #include <arpa/inet.h> 12021 12022 int 12023 main () 12024 { 12025 void* p = inet_aton;inet_aton(0,0) 12026 ; 12027 return 0; 12028 } 12029 _ACEOF 12030 if ac_fn_c_try_link "$LINENO"; then : 12031 12032 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 12033 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12035 $as_echo "yes" >&6; } 12036 else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12038 $as_echo "no" >&6; } 12039 12040 fi 12041 rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 12045 $as_echo_n "checking for inet_pton... " >&6; } 12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12047 /* end confdefs.h. */ 12048 12049 #include <sys/types.h> 12050 #include <sys/socket.h> 12051 #include <netinet/in.h> 12052 #include <arpa/inet.h> 12053 12054 int 12055 main () 12056 { 12057 void* p = inet_pton 12058 ; 12059 return 0; 12060 } 12061 _ACEOF 12062 if ac_fn_c_try_compile "$LINENO"; then : 12063 12064 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 12065 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12067 $as_echo "yes" >&6; } 12068 else 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12070 $as_echo "no" >&6; } 12071 12072 fi 12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12074 12075 # On some systems, setgroups is in unistd.h, on others, in grp.h 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 12077 $as_echo_n "checking for setgroups... " >&6; } 12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079 /* end confdefs.h. */ 12080 12081 #include <unistd.h> 12082 #ifdef HAVE_GRP_H 12083 #include <grp.h> 12084 #endif 12085 12086 int 12087 main () 12088 { 12089 void* p = setgroups 12090 ; 12091 return 0; 12092 } 12093 _ACEOF 12094 if ac_fn_c_try_compile "$LINENO"; then : 12095 12096 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 12097 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12099 $as_echo "yes" >&6; } 12100 else 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12102 $as_echo "no" >&6; } 12103 12104 fi 12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12106 12107 # check for openpty and forkpty 12108 12109 for ac_func in openpty 12110 do : 12111 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 12112 if test "x$ac_cv_func_openpty" = xyes; then : 12113 cat >>confdefs.h <<_ACEOF 12114 #define HAVE_OPENPTY 1 12115 _ACEOF 12116 12117 else 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 12119 $as_echo_n "checking for openpty in -lutil... " >&6; } 12120 if ${ac_cv_lib_util_openpty+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122 else 12123 ac_check_lib_save_LIBS=$LIBS 12124 LIBS="-lutil $LIBS" 12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126 /* end confdefs.h. */ 12127 12128 /* Override any GCC internal prototype to avoid an error. 12129 Use char because int might match the return type of a GCC 12130 builtin and then its argument prototype would still apply. */ 12131 #ifdef __cplusplus 12132 extern "C" 12133 #endif 12134 char openpty (); 12135 int 12136 main () 12137 { 12138 return openpty (); 12139 ; 12140 return 0; 12141 } 12142 _ACEOF 12143 if ac_fn_c_try_link "$LINENO"; then : 12144 ac_cv_lib_util_openpty=yes 12145 else 12146 ac_cv_lib_util_openpty=no 12147 fi 12148 rm -f core conftest.err conftest.$ac_objext \ 12149 conftest$ac_exeext conftest.$ac_ext 12150 LIBS=$ac_check_lib_save_LIBS 12151 fi 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 12153 $as_echo "$ac_cv_lib_util_openpty" >&6; } 12154 if test "x$ac_cv_lib_util_openpty" = xyes; then : 12155 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12156 LIBS="$LIBS -lutil" 12157 else 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 12159 $as_echo_n "checking for openpty in -lbsd... " >&6; } 12160 if ${ac_cv_lib_bsd_openpty+:} false; then : 12161 $as_echo_n "(cached) " >&6 12162 else 12163 ac_check_lib_save_LIBS=$LIBS 12164 LIBS="-lbsd $LIBS" 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166 /* end confdefs.h. */ 12167 12168 /* Override any GCC internal prototype to avoid an error. 12169 Use char because int might match the return type of a GCC 12170 builtin and then its argument prototype would still apply. */ 12171 #ifdef __cplusplus 12172 extern "C" 12173 #endif 12174 char openpty (); 12175 int 12176 main () 12177 { 12178 return openpty (); 12179 ; 12180 return 0; 12181 } 12182 _ACEOF 12183 if ac_fn_c_try_link "$LINENO"; then : 12184 ac_cv_lib_bsd_openpty=yes 12185 else 12186 ac_cv_lib_bsd_openpty=no 12187 fi 12188 rm -f core conftest.err conftest.$ac_objext \ 12189 conftest$ac_exeext conftest.$ac_ext 12190 LIBS=$ac_check_lib_save_LIBS 12191 fi 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 12193 $as_echo "$ac_cv_lib_bsd_openpty" >&6; } 12194 if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 12195 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12196 LIBS="$LIBS -lbsd" 12197 fi 12198 12199 12200 fi 12201 12202 12203 fi 12204 done 12205 12206 for ac_func in forkpty 12207 do : 12208 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 12209 if test "x$ac_cv_func_forkpty" = xyes; then : 12210 cat >>confdefs.h <<_ACEOF 12211 #define HAVE_FORKPTY 1 12212 _ACEOF 12213 12214 else 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 12216 $as_echo_n "checking for forkpty in -lutil... " >&6; } 12217 if ${ac_cv_lib_util_forkpty+:} false; then : 12218 $as_echo_n "(cached) " >&6 12219 else 12220 ac_check_lib_save_LIBS=$LIBS 12221 LIBS="-lutil $LIBS" 12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12223 /* end confdefs.h. */ 12224 12225 /* Override any GCC internal prototype to avoid an error. 12226 Use char because int might match the return type of a GCC 12227 builtin and then its argument prototype would still apply. */ 12228 #ifdef __cplusplus 12229 extern "C" 12230 #endif 12231 char forkpty (); 12232 int 12233 main () 12234 { 12235 return forkpty (); 12236 ; 12237 return 0; 12238 } 12239 _ACEOF 12240 if ac_fn_c_try_link "$LINENO"; then : 12241 ac_cv_lib_util_forkpty=yes 12242 else 12243 ac_cv_lib_util_forkpty=no 12244 fi 12245 rm -f core conftest.err conftest.$ac_objext \ 12246 conftest$ac_exeext conftest.$ac_ext 12247 LIBS=$ac_check_lib_save_LIBS 12248 fi 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 12250 $as_echo "$ac_cv_lib_util_forkpty" >&6; } 12251 if test "x$ac_cv_lib_util_forkpty" = xyes; then : 12252 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12253 LIBS="$LIBS -lutil" 12254 else 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 12256 $as_echo_n "checking for forkpty in -lbsd... " >&6; } 12257 if ${ac_cv_lib_bsd_forkpty+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 ac_check_lib_save_LIBS=$LIBS 12261 LIBS="-lbsd $LIBS" 12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12263 /* end confdefs.h. */ 12264 12265 /* Override any GCC internal prototype to avoid an error. 12266 Use char because int might match the return type of a GCC 12267 builtin and then its argument prototype would still apply. */ 12268 #ifdef __cplusplus 12269 extern "C" 12270 #endif 12271 char forkpty (); 12272 int 12273 main () 12274 { 12275 return forkpty (); 12276 ; 12277 return 0; 12278 } 12279 _ACEOF 12280 if ac_fn_c_try_link "$LINENO"; then : 12281 ac_cv_lib_bsd_forkpty=yes 12282 else 12283 ac_cv_lib_bsd_forkpty=no 12284 fi 12285 rm -f core conftest.err conftest.$ac_objext \ 12286 conftest$ac_exeext conftest.$ac_ext 12287 LIBS=$ac_check_lib_save_LIBS 12288 fi 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 12290 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 12291 if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 12292 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12293 LIBS="$LIBS -lbsd" 12294 fi 12295 12296 12297 fi 12298 12299 12300 fi 12301 done 12302 12303 12304 # Stuff for expat. 12305 for ac_func in memmove 12306 do : 12307 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 12308 if test "x$ac_cv_func_memmove" = xyes; then : 12309 cat >>confdefs.h <<_ACEOF 12310 #define HAVE_MEMMOVE 1 12311 _ACEOF 12312 12313 fi 12314 done 12315 12316 12317 # check for long file support functions 12318 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 12319 do : 12320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12323 cat >>confdefs.h <<_ACEOF 12324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12325 _ACEOF 12326 12327 fi 12328 done 12329 12330 12331 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 12332 if test "x$ac_cv_func_dup2" = xyes; then : 12333 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 12334 12335 else 12336 case " $LIBOBJS " in 12337 *" dup2.$ac_objext "* ) ;; 12338 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 12339 ;; 12340 esac 12341 12342 fi 12343 12344 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 12345 if test "x$ac_cv_func_strdup" = xyes; then : 12346 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 12347 12348 else 12349 case " $LIBOBJS " in 12350 *" strdup.$ac_objext "* ) ;; 12351 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 12352 ;; 12353 esac 12354 12355 fi 12356 12357 12358 for ac_func in getpgrp 12359 do : 12360 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 12361 if test "x$ac_cv_func_getpgrp" = xyes; then : 12362 cat >>confdefs.h <<_ACEOF 12363 #define HAVE_GETPGRP 1 12364 _ACEOF 12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12366 /* end confdefs.h. */ 12367 #include <unistd.h> 12368 int 12369 main () 12370 { 12371 getpgrp(0); 12372 ; 12373 return 0; 12374 } 12375 _ACEOF 12376 if ac_fn_c_try_compile "$LINENO"; then : 12377 12378 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 12379 12380 fi 12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12382 12383 fi 12384 done 12385 12386 for ac_func in setpgrp 12387 do : 12388 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 12389 if test "x$ac_cv_func_setpgrp" = xyes; then : 12390 cat >>confdefs.h <<_ACEOF 12391 #define HAVE_SETPGRP 1 12392 _ACEOF 12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394 /* end confdefs.h. */ 12395 #include <unistd.h> 12396 int 12397 main () 12398 { 12399 setpgrp(0,0); 12400 ; 12401 return 0; 12402 } 12403 _ACEOF 12404 if ac_fn_c_try_compile "$LINENO"; then : 12405 12406 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 12407 12408 fi 12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410 12411 fi 12412 done 12413 12414 for ac_func in gettimeofday 12415 do : 12416 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 12417 if test "x$ac_cv_func_gettimeofday" = xyes; then : 12418 cat >>confdefs.h <<_ACEOF 12419 #define HAVE_GETTIMEOFDAY 1 12420 _ACEOF 12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12422 /* end confdefs.h. */ 12423 #include <sys/time.h> 12424 int 12425 main () 12426 { 12427 gettimeofday((struct timeval*)0,(struct timezone*)0); 12428 ; 12429 return 0; 12430 } 12431 _ACEOF 12432 if ac_fn_c_try_compile "$LINENO"; then : 12433 12434 else 12435 12436 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h 12437 12438 12439 fi 12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12441 12442 fi 12443 done 12444 12445 12446 for ac_func in clock_gettime 12447 do : 12448 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12449 if test "x$ac_cv_func_clock_gettime" = xyes; then : 12450 cat >>confdefs.h <<_ACEOF 12451 #define HAVE_CLOCK_GETTIME 1 12452 _ACEOF 12453 12454 else 12455 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 12457 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } 12458 if ${ac_cv_lib_rt_clock_gettime+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460 else 12461 ac_check_lib_save_LIBS=$LIBS 12462 LIBS="-lrt $LIBS" 12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12464 /* end confdefs.h. */ 12465 12466 /* Override any GCC internal prototype to avoid an error. 12467 Use char because int might match the return type of a GCC 12468 builtin and then its argument prototype would still apply. */ 12469 #ifdef __cplusplus 12470 extern "C" 12471 #endif 12472 char clock_gettime (); 12473 int 12474 main () 12475 { 12476 return clock_gettime (); 12477 ; 12478 return 0; 12479 } 12480 _ACEOF 12481 if ac_fn_c_try_link "$LINENO"; then : 12482 ac_cv_lib_rt_clock_gettime=yes 12483 else 12484 ac_cv_lib_rt_clock_gettime=no 12485 fi 12486 rm -f core conftest.err conftest.$ac_objext \ 12487 conftest$ac_exeext conftest.$ac_ext 12488 LIBS=$ac_check_lib_save_LIBS 12489 fi 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 12491 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 12492 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 12493 12494 LIBS="$LIBS -lrt" 12495 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 12496 12497 12498 $as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h 12499 12500 12501 fi 12502 12503 12504 fi 12505 done 12506 12507 12508 for ac_func in clock_getres 12509 do : 12510 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 12511 if test "x$ac_cv_func_clock_getres" = xyes; then : 12512 cat >>confdefs.h <<_ACEOF 12513 #define HAVE_CLOCK_GETRES 1 12514 _ACEOF 12515 12516 else 12517 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 12519 $as_echo_n "checking for clock_getres in -lrt... " >&6; } 12520 if ${ac_cv_lib_rt_clock_getres+:} false; then : 12521 $as_echo_n "(cached) " >&6 12522 else 12523 ac_check_lib_save_LIBS=$LIBS 12524 LIBS="-lrt $LIBS" 12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12526 /* end confdefs.h. */ 12527 12528 /* Override any GCC internal prototype to avoid an error. 12529 Use char because int might match the return type of a GCC 12530 builtin and then its argument prototype would still apply. */ 12531 #ifdef __cplusplus 12532 extern "C" 12533 #endif 12534 char clock_getres (); 12535 int 12536 main () 12537 { 12538 return clock_getres (); 12539 ; 12540 return 0; 12541 } 12542 _ACEOF 12543 if ac_fn_c_try_link "$LINENO"; then : 12544 ac_cv_lib_rt_clock_getres=yes 12545 else 12546 ac_cv_lib_rt_clock_getres=no 12547 fi 12548 rm -f core conftest.err conftest.$ac_objext \ 12549 conftest$ac_exeext conftest.$ac_ext 12550 LIBS=$ac_check_lib_save_LIBS 12551 fi 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 12553 $as_echo "$ac_cv_lib_rt_clock_getres" >&6; } 12554 if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : 12555 12556 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 12557 12558 12559 fi 12560 12561 12562 fi 12563 done 12564 12565 12566 for ac_func in clock_settime 12567 do : 12568 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 12569 if test "x$ac_cv_func_clock_settime" = xyes; then : 12570 cat >>confdefs.h <<_ACEOF 12571 #define HAVE_CLOCK_SETTIME 1 12572 _ACEOF 12573 12574 else 12575 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 12577 $as_echo_n "checking for clock_settime in -lrt... " >&6; } 12578 if ${ac_cv_lib_rt_clock_settime+:} false; then : 12579 $as_echo_n "(cached) " >&6 12580 else 12581 ac_check_lib_save_LIBS=$LIBS 12582 LIBS="-lrt $LIBS" 12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12584 /* end confdefs.h. */ 12585 12586 /* Override any GCC internal prototype to avoid an error. 12587 Use char because int might match the return type of a GCC 12588 builtin and then its argument prototype would still apply. */ 12589 #ifdef __cplusplus 12590 extern "C" 12591 #endif 12592 char clock_settime (); 12593 int 12594 main () 12595 { 12596 return clock_settime (); 12597 ; 12598 return 0; 12599 } 12600 _ACEOF 12601 if ac_fn_c_try_link "$LINENO"; then : 12602 ac_cv_lib_rt_clock_settime=yes 12603 else 12604 ac_cv_lib_rt_clock_settime=no 12605 fi 12606 rm -f core conftest.err conftest.$ac_objext \ 12607 conftest$ac_exeext conftest.$ac_ext 12608 LIBS=$ac_check_lib_save_LIBS 12609 fi 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 12611 $as_echo "$ac_cv_lib_rt_clock_settime" >&6; } 12612 if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : 12613 12614 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 12615 12616 12617 fi 12618 12619 12620 fi 12621 done 12622 12623 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 12625 $as_echo_n "checking for major... " >&6; } 12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12627 /* end confdefs.h. */ 12628 12629 #if defined(MAJOR_IN_MKDEV) 12630 #include <sys/mkdev.h> 12631 #elif defined(MAJOR_IN_SYSMACROS) 12632 #include <sys/sysmacros.h> 12633 #else 12634 #include <sys/types.h> 12635 #endif 12636 12637 int 12638 main () 12639 { 12640 12641 makedev(major(0),minor(0)); 12642 12643 ; 12644 return 0; 12645 } 12646 _ACEOF 12647 if ac_fn_c_try_link "$LINENO"; then : 12648 12649 12650 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 12651 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12653 $as_echo "yes" >&6; } 12654 12655 else 12656 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12658 $as_echo "no" >&6; } 12659 12660 fi 12661 rm -f core conftest.err conftest.$ac_objext \ 12662 conftest$ac_exeext conftest.$ac_ext 12663 12664 # On Android API level 24 with android-ndk-r13, if_nameindex() is available, 12665 # but the if_nameindex structure is not defined. 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nameindex" >&5 12667 $as_echo_n "checking for if_nameindex... " >&6; } 12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12669 /* end confdefs.h. */ 12670 12671 #include <stdio.h> 12672 #ifdef STDC_HEADERS 12673 # include <stdlib.h> 12674 # include <stddef.h> 12675 #else 12676 # ifdef HAVE_STDLIB_H 12677 # include <stdlib.h> 12678 # endif 12679 #endif 12680 #ifdef HAVE_SYS_SOCKET_H 12681 # include <sys/socket.h> 12682 #endif 12683 #ifdef HAVE_NET_IF_H 12684 # include <net/if.h> 12685 #endif 12686 12687 int 12688 main () 12689 { 12690 struct if_nameindex *ni = if_nameindex(); int x = ni[0].if_index; 12691 ; 12692 return 0; 12693 } 12694 _ACEOF 12695 if ac_fn_c_try_link "$LINENO"; then : 12696 12697 $as_echo "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h 12698 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12700 $as_echo "yes" >&6; } 12701 else 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12703 $as_echo "no" >&6; } 12704 12705 fi 12706 rm -f core conftest.err conftest.$ac_objext \ 12707 conftest$ac_exeext conftest.$ac_ext 12708 12709 # Issue #28762: lockf() is available on Android API level 24, but the F_LOCK 12710 # macro is not defined in android-ndk-r13. 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 12712 $as_echo_n "checking for lockf... " >&6; } 12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12714 /* end confdefs.h. */ 12715 #include <unistd.h> 12716 int 12717 main () 12718 { 12719 lockf(0, F_LOCK, 0); 12720 ; 12721 return 0; 12722 } 12723 _ACEOF 12724 if ac_fn_c_try_link "$LINENO"; then : 12725 12726 $as_echo "#define HAVE_LOCKF 1" >>confdefs.h 12727 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12729 $as_echo "yes" >&6; } 12730 else 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12732 $as_echo "no" >&6; } 12733 12734 fi 12735 rm -f core conftest.err conftest.$ac_objext \ 12736 conftest$ac_exeext conftest.$ac_ext 12737 12738 # On OSF/1 V5.1, getaddrinfo is available, but a define 12739 # for [no]getaddrinfo in netdb.h. 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 12741 $as_echo_n "checking for getaddrinfo... " >&6; } 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743 /* end confdefs.h. */ 12744 12745 #include <sys/types.h> 12746 #include <sys/socket.h> 12747 #include <netdb.h> 12748 #include <stdio.h> 12749 12750 int 12751 main () 12752 { 12753 getaddrinfo(NULL, NULL, NULL, NULL); 12754 ; 12755 return 0; 12756 } 12757 _ACEOF 12758 if ac_fn_c_try_link "$LINENO"; then : 12759 have_getaddrinfo=yes 12760 else 12761 have_getaddrinfo=no 12762 fi 12763 rm -f core conftest.err conftest.$ac_objext \ 12764 conftest$ac_exeext conftest.$ac_ext 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 12766 $as_echo "$have_getaddrinfo" >&6; } 12767 if test $have_getaddrinfo = yes 12768 then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 12770 $as_echo_n "checking getaddrinfo bug... " >&6; } 12771 if ${ac_cv_buggy_getaddrinfo+:} false; then : 12772 $as_echo_n "(cached) " >&6 12773 else 12774 if test "$cross_compiling" = yes; then : 12775 12776 if test "${enable_ipv6+set}" = set; then 12777 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 12778 else 12779 ac_cv_buggy_getaddrinfo=yes 12780 fi 12781 else 12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12783 /* end confdefs.h. */ 12784 12785 #include <stdio.h> 12786 #include <sys/types.h> 12787 #include <netdb.h> 12788 #include <string.h> 12789 #include <sys/socket.h> 12790 #include <netinet/in.h> 12791 12792 int main() 12793 { 12794 int passive, gaierr, inet4 = 0, inet6 = 0; 12795 struct addrinfo hints, *ai, *aitop; 12796 char straddr[INET6_ADDRSTRLEN], strport[16]; 12797 12798 for (passive = 0; passive <= 1; passive++) { 12799 memset(&hints, 0, sizeof(hints)); 12800 hints.ai_family = AF_UNSPEC; 12801 hints.ai_flags = passive ? AI_PASSIVE : 0; 12802 hints.ai_socktype = SOCK_STREAM; 12803 hints.ai_protocol = IPPROTO_TCP; 12804 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 12805 (void)gai_strerror(gaierr); 12806 goto bad; 12807 } 12808 for (ai = aitop; ai; ai = ai->ai_next) { 12809 if (ai->ai_addr == NULL || 12810 ai->ai_addrlen == 0 || 12811 getnameinfo(ai->ai_addr, ai->ai_addrlen, 12812 straddr, sizeof(straddr), strport, sizeof(strport), 12813 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 12814 goto bad; 12815 } 12816 switch (ai->ai_family) { 12817 case AF_INET: 12818 if (strcmp(strport, "54321") != 0) { 12819 goto bad; 12820 } 12821 if (passive) { 12822 if (strcmp(straddr, "0.0.0.0") != 0) { 12823 goto bad; 12824 } 12825 } else { 12826 if (strcmp(straddr, "127.0.0.1") != 0) { 12827 goto bad; 12828 } 12829 } 12830 inet4++; 12831 break; 12832 case AF_INET6: 12833 if (strcmp(strport, "54321") != 0) { 12834 goto bad; 12835 } 12836 if (passive) { 12837 if (strcmp(straddr, "::") != 0) { 12838 goto bad; 12839 } 12840 } else { 12841 if (strcmp(straddr, "::1") != 0) { 12842 goto bad; 12843 } 12844 } 12845 inet6++; 12846 break; 12847 case AF_UNSPEC: 12848 goto bad; 12849 break; 12850 default: 12851 /* another family support? */ 12852 break; 12853 } 12854 } 12855 freeaddrinfo(aitop); 12856 aitop = NULL; 12857 } 12858 12859 if (!(inet4 == 0 || inet4 == 2)) 12860 goto bad; 12861 if (!(inet6 == 0 || inet6 == 2)) 12862 goto bad; 12863 12864 if (aitop) 12865 freeaddrinfo(aitop); 12866 return 0; 12867 12868 bad: 12869 if (aitop) 12870 freeaddrinfo(aitop); 12871 return 1; 12872 } 12873 12874 _ACEOF 12875 if ac_fn_c_try_run "$LINENO"; then : 12876 ac_cv_buggy_getaddrinfo=no 12877 else 12878 ac_cv_buggy_getaddrinfo=yes 12879 fi 12880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12881 conftest.$ac_objext conftest.beam conftest.$ac_ext 12882 fi 12883 12884 fi 12885 12886 fi 12887 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 12889 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 12890 12891 if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes 12892 then 12893 if test $ipv6 = yes 12894 then 12895 echo 'Fatal: You must get working getaddrinfo() function.' 12896 echo ' or you can specify "--disable-ipv6"'. 12897 exit 1 12898 fi 12899 else 12900 12901 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 12902 12903 fi 12904 12905 for ac_func in getnameinfo 12906 do : 12907 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 12908 if test "x$ac_cv_func_getnameinfo" = xyes; then : 12909 cat >>confdefs.h <<_ACEOF 12910 #define HAVE_GETNAMEINFO 1 12911 _ACEOF 12912 12913 fi 12914 done 12915 12916 12917 # checks for structures 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12919 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12920 if ${ac_cv_header_time+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922 else 12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924 /* end confdefs.h. */ 12925 #include <sys/types.h> 12926 #include <sys/time.h> 12927 #include <time.h> 12928 12929 int 12930 main () 12931 { 12932 if ((struct tm *) 0) 12933 return 0; 12934 ; 12935 return 0; 12936 } 12937 _ACEOF 12938 if ac_fn_c_try_compile "$LINENO"; then : 12939 ac_cv_header_time=yes 12940 else 12941 ac_cv_header_time=no 12942 fi 12943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944 fi 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12946 $as_echo "$ac_cv_header_time" >&6; } 12947 if test $ac_cv_header_time = yes; then 12948 12949 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12950 12951 fi 12952 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12954 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12955 if ${ac_cv_struct_tm+:} false; then : 12956 $as_echo_n "(cached) " >&6 12957 else 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959 /* end confdefs.h. */ 12960 #include <sys/types.h> 12961 #include <time.h> 12962 12963 int 12964 main () 12965 { 12966 struct tm tm; 12967 int *p = &tm.tm_sec; 12968 return !p; 12969 ; 12970 return 0; 12971 } 12972 _ACEOF 12973 if ac_fn_c_try_compile "$LINENO"; then : 12974 ac_cv_struct_tm=time.h 12975 else 12976 ac_cv_struct_tm=sys/time.h 12977 fi 12978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12979 fi 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12981 $as_echo "$ac_cv_struct_tm" >&6; } 12982 if test $ac_cv_struct_tm = sys/time.h; then 12983 12984 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12985 12986 fi 12987 12988 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 12989 #include <$ac_cv_struct_tm> 12990 12991 " 12992 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 12993 12994 cat >>confdefs.h <<_ACEOF 12995 #define HAVE_STRUCT_TM_TM_ZONE 1 12996 _ACEOF 12997 12998 12999 fi 13000 13001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13002 13003 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13004 13005 else 13006 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13007 " 13008 if test "x$ac_cv_have_decl_tzname" = xyes; then : 13009 ac_have_decl=1 13010 else 13011 ac_have_decl=0 13012 fi 13013 13014 cat >>confdefs.h <<_ACEOF 13015 #define HAVE_DECL_TZNAME $ac_have_decl 13016 _ACEOF 13017 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13019 $as_echo_n "checking for tzname... " >&6; } 13020 if ${ac_cv_var_tzname+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022 else 13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13024 /* end confdefs.h. */ 13025 #include <time.h> 13026 #if !HAVE_DECL_TZNAME 13027 extern char *tzname[]; 13028 #endif 13029 13030 int 13031 main () 13032 { 13033 return tzname[0][0]; 13034 ; 13035 return 0; 13036 } 13037 _ACEOF 13038 if ac_fn_c_try_link "$LINENO"; then : 13039 ac_cv_var_tzname=yes 13040 else 13041 ac_cv_var_tzname=no 13042 fi 13043 rm -f core conftest.err conftest.$ac_objext \ 13044 conftest$ac_exeext conftest.$ac_ext 13045 fi 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13047 $as_echo "$ac_cv_var_tzname" >&6; } 13048 if test $ac_cv_var_tzname = yes; then 13049 13050 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13051 13052 fi 13053 fi 13054 13055 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13056 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 13057 13058 cat >>confdefs.h <<_ACEOF 13059 #define HAVE_STRUCT_STAT_ST_RDEV 1 13060 _ACEOF 13061 13062 13063 fi 13064 13065 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 13066 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 13067 13068 cat >>confdefs.h <<_ACEOF 13069 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13070 _ACEOF 13071 13072 13073 fi 13074 13075 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 13076 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 13077 13078 cat >>confdefs.h <<_ACEOF 13079 #define HAVE_STRUCT_STAT_ST_FLAGS 1 13080 _ACEOF 13081 13082 13083 fi 13084 13085 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 13086 if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 13087 13088 cat >>confdefs.h <<_ACEOF 13089 #define HAVE_STRUCT_STAT_ST_GEN 1 13090 _ACEOF 13091 13092 13093 fi 13094 13095 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 13096 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 13097 13098 cat >>confdefs.h <<_ACEOF 13099 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 13100 _ACEOF 13101 13102 13103 fi 13104 13105 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 13106 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 13107 13108 cat >>confdefs.h <<_ACEOF 13109 #define HAVE_STRUCT_STAT_ST_BLOCKS 1 13110 _ACEOF 13111 13112 13113 fi 13114 13115 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 13116 #include <sys/types.h> 13117 #include <pwd.h> 13118 13119 " 13120 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 13121 13122 cat >>confdefs.h <<_ACEOF 13123 #define HAVE_STRUCT_PASSWD_PW_GECOS 1 13124 _ACEOF 13125 13126 13127 fi 13128 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 13129 #include <sys/types.h> 13130 #include <pwd.h> 13131 13132 " 13133 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : 13134 13135 cat >>confdefs.h <<_ACEOF 13136 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1 13137 _ACEOF 13138 13139 13140 fi 13141 13142 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 13144 $as_echo_n "checking for time.h that defines altzone... " >&6; } 13145 if ${ac_cv_header_time_altzone+:} false; then : 13146 $as_echo_n "(cached) " >&6 13147 else 13148 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150 /* end confdefs.h. */ 13151 #include <time.h> 13152 int 13153 main () 13154 { 13155 return altzone; 13156 ; 13157 return 0; 13158 } 13159 _ACEOF 13160 if ac_fn_c_try_compile "$LINENO"; then : 13161 ac_cv_header_time_altzone=yes 13162 else 13163 ac_cv_header_time_altzone=no 13164 fi 13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13166 13167 fi 13168 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 13170 $as_echo "$ac_cv_header_time_altzone" >&6; } 13171 if test $ac_cv_header_time_altzone = yes; then 13172 13173 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 13174 13175 fi 13176 13177 was_it_defined=no 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 13179 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13181 /* end confdefs.h. */ 13182 13183 #include <sys/types.h> 13184 #include <sys/select.h> 13185 #include <sys/time.h> 13186 13187 int 13188 main () 13189 { 13190 ; 13191 ; 13192 return 0; 13193 } 13194 _ACEOF 13195 if ac_fn_c_try_compile "$LINENO"; then : 13196 13197 13198 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 13199 13200 was_it_defined=yes 13201 13202 fi 13203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 13205 $as_echo "$was_it_defined" >&6; } 13206 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 13208 $as_echo_n "checking for addrinfo... " >&6; } 13209 if ${ac_cv_struct_addrinfo+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211 else 13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213 /* end confdefs.h. */ 13214 #include <netdb.h> 13215 int 13216 main () 13217 { 13218 struct addrinfo a 13219 ; 13220 return 0; 13221 } 13222 _ACEOF 13223 if ac_fn_c_try_compile "$LINENO"; then : 13224 ac_cv_struct_addrinfo=yes 13225 else 13226 ac_cv_struct_addrinfo=no 13227 fi 13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13229 fi 13230 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 13232 $as_echo "$ac_cv_struct_addrinfo" >&6; } 13233 if test $ac_cv_struct_addrinfo = yes; then 13234 13235 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 13236 13237 fi 13238 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 13240 $as_echo_n "checking for sockaddr_storage... " >&6; } 13241 if ${ac_cv_struct_sockaddr_storage+:} false; then : 13242 $as_echo_n "(cached) " >&6 13243 else 13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13245 /* end confdefs.h. */ 13246 13247 # include <sys/types.h> 13248 # include <sys/socket.h> 13249 int 13250 main () 13251 { 13252 struct sockaddr_storage s 13253 ; 13254 return 0; 13255 } 13256 _ACEOF 13257 if ac_fn_c_try_compile "$LINENO"; then : 13258 ac_cv_struct_sockaddr_storage=yes 13259 else 13260 ac_cv_struct_sockaddr_storage=no 13261 fi 13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13263 fi 13264 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 13266 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 13267 if test $ac_cv_struct_sockaddr_storage = yes; then 13268 13269 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 13270 13271 fi 13272 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 13274 $as_echo_n "checking for sockaddr_alg... " >&6; } 13275 if ${ac_cv_struct_sockaddr_alg+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277 else 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13279 /* end confdefs.h. */ 13280 13281 # include <sys/types.h> 13282 # include <sys/socket.h> 13283 # include <linux/if_alg.h> 13284 int 13285 main () 13286 { 13287 struct sockaddr_alg s 13288 ; 13289 return 0; 13290 } 13291 _ACEOF 13292 if ac_fn_c_try_compile "$LINENO"; then : 13293 ac_cv_struct_sockaddr_alg=yes 13294 else 13295 ac_cv_struct_sockaddr_alg=no 13296 fi 13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13298 fi 13299 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 13301 $as_echo "$ac_cv_struct_sockaddr_alg" >&6; } 13302 if test $ac_cv_struct_sockaddr_alg = yes; then 13303 13304 $as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 13305 13306 fi 13307 13308 # checks for compiler characteristics 13309 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 13311 $as_echo_n "checking whether char is unsigned... " >&6; } 13312 if ${ac_cv_c_char_unsigned+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314 else 13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316 /* end confdefs.h. */ 13317 $ac_includes_default 13318 int 13319 main () 13320 { 13321 static int test_array [1 - 2 * !(((char) -1) < 0)]; 13322 test_array [0] = 0; 13323 return test_array [0]; 13324 13325 ; 13326 return 0; 13327 } 13328 _ACEOF 13329 if ac_fn_c_try_compile "$LINENO"; then : 13330 ac_cv_c_char_unsigned=no 13331 else 13332 ac_cv_c_char_unsigned=yes 13333 fi 13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13335 fi 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 13337 $as_echo "$ac_cv_c_char_unsigned" >&6; } 13338 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 13339 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 13340 13341 fi 13342 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13344 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13345 if ${ac_cv_c_const+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347 else 13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13349 /* end confdefs.h. */ 13350 13351 int 13352 main () 13353 { 13354 13355 #ifndef __cplusplus 13356 /* Ultrix mips cc rejects this sort of thing. */ 13357 typedef int charset[2]; 13358 const charset cs = { 0, 0 }; 13359 /* SunOS 4.1.1 cc rejects this. */ 13360 char const *const *pcpcc; 13361 char **ppc; 13362 /* NEC SVR4.0.2 mips cc rejects this. */ 13363 struct point {int x, y;}; 13364 static struct point const zero = {0,0}; 13365 /* AIX XL C 1.02.0.0 rejects this. 13366 It does not let you subtract one const X* pointer from another in 13367 an arm of an if-expression whose if-part is not a constant 13368 expression */ 13369 const char *g = "string"; 13370 pcpcc = &g + (g ? g-g : 0); 13371 /* HPUX 7.0 cc rejects these. */ 13372 ++pcpcc; 13373 ppc = (char**) pcpcc; 13374 pcpcc = (char const *const *) ppc; 13375 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13376 char tx; 13377 char *t = &tx; 13378 char const *s = 0 ? (char *) 0 : (char const *) 0; 13379 13380 *t++ = 0; 13381 if (s) return 0; 13382 } 13383 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13384 int x[] = {25, 17}; 13385 const int *foo = &x[0]; 13386 ++foo; 13387 } 13388 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13389 typedef const int *iptr; 13390 iptr p = 0; 13391 ++p; 13392 } 13393 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13394 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13395 struct s { int j; const int *ap[3]; } bx; 13396 struct s *b = &bx; b->j = 5; 13397 } 13398 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13399 const int foo = 10; 13400 if (!foo) return 0; 13401 } 13402 return !cs[0] && !zero.x; 13403 #endif 13404 13405 ; 13406 return 0; 13407 } 13408 _ACEOF 13409 if ac_fn_c_try_compile "$LINENO"; then : 13410 ac_cv_c_const=yes 13411 else 13412 ac_cv_c_const=no 13413 fi 13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13415 fi 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13417 $as_echo "$ac_cv_c_const" >&6; } 13418 if test $ac_cv_c_const = no; then 13419 13420 $as_echo "#define const /**/" >>confdefs.h 13421 13422 fi 13423 13424 13425 works=no 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 13427 $as_echo_n "checking for working volatile... " >&6; } 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429 /* end confdefs.h. */ 13430 13431 int 13432 main () 13433 { 13434 volatile int x; x = 0; 13435 ; 13436 return 0; 13437 } 13438 _ACEOF 13439 if ac_fn_c_try_compile "$LINENO"; then : 13440 works=yes 13441 else 13442 13443 $as_echo "#define volatile /**/" >>confdefs.h 13444 13445 13446 fi 13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13449 $as_echo "$works" >&6; } 13450 13451 works=no 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 13453 $as_echo_n "checking for working signed char... " >&6; } 13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13455 /* end confdefs.h. */ 13456 13457 int 13458 main () 13459 { 13460 signed char c; 13461 ; 13462 return 0; 13463 } 13464 _ACEOF 13465 if ac_fn_c_try_compile "$LINENO"; then : 13466 works=yes 13467 else 13468 13469 $as_echo "#define signed /**/" >>confdefs.h 13470 13471 13472 fi 13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13475 $as_echo "$works" >&6; } 13476 13477 have_prototypes=no 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 13479 $as_echo_n "checking for prototypes... " >&6; } 13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13481 /* end confdefs.h. */ 13482 int foo(int x) { return 0; } 13483 int 13484 main () 13485 { 13486 return foo(10); 13487 ; 13488 return 0; 13489 } 13490 _ACEOF 13491 if ac_fn_c_try_compile "$LINENO"; then : 13492 13493 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 13494 13495 have_prototypes=yes 13496 fi 13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 13499 $as_echo "$have_prototypes" >&6; } 13500 13501 works=no 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 13503 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13505 /* end confdefs.h. */ 13506 13507 #include <stdarg.h> 13508 int foo(int x, ...) { 13509 va_list va; 13510 va_start(va, x); 13511 va_arg(va, int); 13512 va_arg(va, char *); 13513 va_arg(va, double); 13514 return 0; 13515 } 13516 13517 int 13518 main () 13519 { 13520 return foo(10, "", 3.14); 13521 ; 13522 return 0; 13523 } 13524 _ACEOF 13525 if ac_fn_c_try_compile "$LINENO"; then : 13526 13527 13528 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 13529 13530 works=yes 13531 13532 fi 13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13535 $as_echo "$works" >&6; } 13536 13537 # check for socketpair 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 13539 $as_echo_n "checking for socketpair... " >&6; } 13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13541 /* end confdefs.h. */ 13542 13543 #include <sys/types.h> 13544 #include <sys/socket.h> 13545 13546 int 13547 main () 13548 { 13549 void *x=socketpair 13550 ; 13551 return 0; 13552 } 13553 _ACEOF 13554 if ac_fn_c_try_compile "$LINENO"; then : 13555 13556 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 13557 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13559 $as_echo "yes" >&6; } 13560 else 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13562 $as_echo "no" >&6; } 13563 13564 fi 13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13566 13567 # check if sockaddr has sa_len member 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 13569 $as_echo_n "checking if sockaddr has sa_len member... " >&6; } 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571 /* end confdefs.h. */ 13572 #include <sys/types.h> 13573 #include <sys/socket.h> 13574 int 13575 main () 13576 { 13577 struct sockaddr x; 13578 x.sa_len = 0; 13579 ; 13580 return 0; 13581 } 13582 _ACEOF 13583 if ac_fn_c_try_compile "$LINENO"; then : 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13585 $as_echo "yes" >&6; } 13586 13587 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 13588 13589 else 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13591 $as_echo "no" >&6; } 13592 13593 fi 13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13595 13596 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 13597 13598 13599 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 13600 if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 13601 13602 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13603 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 13605 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 13606 OLD_CFLAGS=$CFLAGS 13607 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609 /* end confdefs.h. */ 13610 13611 # include <netdb.h> 13612 13613 int 13614 main () 13615 { 13616 13617 char *name; 13618 struct hostent *he, *res; 13619 char buffer[2048]; 13620 int buflen = 2048; 13621 int h_errnop; 13622 13623 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 13624 13625 ; 13626 return 0; 13627 } 13628 _ACEOF 13629 if ac_fn_c_try_compile "$LINENO"; then : 13630 13631 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13632 13633 13634 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 13635 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13637 $as_echo "yes" >&6; } 13638 13639 else 13640 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642 $as_echo "no" >&6; } 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 13644 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13646 /* end confdefs.h. */ 13647 13648 # include <netdb.h> 13649 13650 int 13651 main () 13652 { 13653 13654 char *name; 13655 struct hostent *he; 13656 char buffer[2048]; 13657 int buflen = 2048; 13658 int h_errnop; 13659 13660 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 13661 13662 ; 13663 return 0; 13664 } 13665 _ACEOF 13666 if ac_fn_c_try_compile "$LINENO"; then : 13667 13668 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13669 13670 13671 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 13672 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13674 $as_echo "yes" >&6; } 13675 13676 else 13677 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13679 $as_echo "no" >&6; } 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 13681 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13683 /* end confdefs.h. */ 13684 13685 # include <netdb.h> 13686 13687 int 13688 main () 13689 { 13690 13691 char *name; 13692 struct hostent *he; 13693 struct hostent_data data; 13694 13695 (void) gethostbyname_r(name, he, &data); 13696 13697 ; 13698 return 0; 13699 } 13700 _ACEOF 13701 if ac_fn_c_try_compile "$LINENO"; then : 13702 13703 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13704 13705 13706 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 13707 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13709 $as_echo "yes" >&6; } 13710 13711 else 13712 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13714 $as_echo "no" >&6; } 13715 13716 fi 13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13718 13719 fi 13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721 13722 fi 13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13724 CFLAGS=$OLD_CFLAGS 13725 13726 else 13727 13728 for ac_func in gethostbyname 13729 do : 13730 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 13731 if test "x$ac_cv_func_gethostbyname" = xyes; then : 13732 cat >>confdefs.h <<_ACEOF 13733 #define HAVE_GETHOSTBYNAME 1 13734 _ACEOF 13735 13736 fi 13737 done 13738 13739 13740 fi 13741 13742 13743 13744 13745 13746 13747 13748 # checks for system services 13749 # (none yet) 13750 13751 # Linux requires this for correct f.p. operations 13752 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 13753 if test "x$ac_cv_func___fpu_control" = xyes; then : 13754 13755 else 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 13757 $as_echo_n "checking for __fpu_control in -lieee... " >&6; } 13758 if ${ac_cv_lib_ieee___fpu_control+:} false; then : 13759 $as_echo_n "(cached) " >&6 13760 else 13761 ac_check_lib_save_LIBS=$LIBS 13762 LIBS="-lieee $LIBS" 13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13764 /* end confdefs.h. */ 13765 13766 /* Override any GCC internal prototype to avoid an error. 13767 Use char because int might match the return type of a GCC 13768 builtin and then its argument prototype would still apply. */ 13769 #ifdef __cplusplus 13770 extern "C" 13771 #endif 13772 char __fpu_control (); 13773 int 13774 main () 13775 { 13776 return __fpu_control (); 13777 ; 13778 return 0; 13779 } 13780 _ACEOF 13781 if ac_fn_c_try_link "$LINENO"; then : 13782 ac_cv_lib_ieee___fpu_control=yes 13783 else 13784 ac_cv_lib_ieee___fpu_control=no 13785 fi 13786 rm -f core conftest.err conftest.$ac_objext \ 13787 conftest$ac_exeext conftest.$ac_ext 13788 LIBS=$ac_check_lib_save_LIBS 13789 fi 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 13791 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 13792 if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 13793 cat >>confdefs.h <<_ACEOF 13794 #define HAVE_LIBIEEE 1 13795 _ACEOF 13796 13797 LIBS="-lieee $LIBS" 13798 13799 fi 13800 13801 13802 fi 13803 13804 13805 # Check for --with-fpectl 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 13807 $as_echo_n "checking for --with-fpectl... " >&6; } 13808 13809 # Check whether --with-fpectl was given. 13810 if test "${with_fpectl+set}" = set; then : 13811 withval=$with_fpectl; 13812 if test "$withval" != no 13813 then 13814 13815 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h 13816 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13818 $as_echo "yes" >&6; } 13819 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13820 $as_echo "no" >&6; } 13821 fi 13822 else 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13824 $as_echo "no" >&6; } 13825 fi 13826 13827 13828 # check for --with-libm=... 13829 13830 case $ac_sys_system in 13831 Darwin) ;; 13832 *) LIBM=-lm 13833 esac 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 13835 $as_echo_n "checking for --with-libm=STRING... " >&6; } 13836 13837 # Check whether --with-libm was given. 13838 if test "${with_libm+set}" = set; then : 13839 withval=$with_libm; 13840 if test "$withval" = no 13841 then LIBM= 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 13843 $as_echo "force LIBM empty" >&6; } 13844 elif test "$withval" != yes 13845 then LIBM=$withval 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 13847 $as_echo "set LIBM=\"$withval\"" >&6; } 13848 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 13849 fi 13850 else 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 13852 $as_echo "default LIBM=\"$LIBM\"" >&6; } 13853 fi 13854 13855 13856 # check for --with-libc=... 13857 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 13859 $as_echo_n "checking for --with-libc=STRING... " >&6; } 13860 13861 # Check whether --with-libc was given. 13862 if test "${with_libc+set}" = set; then : 13863 withval=$with_libc; 13864 if test "$withval" = no 13865 then LIBC= 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 13867 $as_echo "force LIBC empty" >&6; } 13868 elif test "$withval" != yes 13869 then LIBC=$withval 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 13871 $as_echo "set LIBC=\"$withval\"" >&6; } 13872 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 13873 fi 13874 else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 13876 $as_echo "default LIBC=\"$LIBC\"" >&6; } 13877 fi 13878 13879 13880 # ************************************** 13881 # * Check for gcc x64 inline assembler * 13882 # ************************************** 13883 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 13885 $as_echo_n "checking for x64 gcc inline assembler... " >&6; } 13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13887 /* end confdefs.h. */ 13888 13889 int 13890 main () 13891 { 13892 13893 __asm__ __volatile__ ("movq %rcx, %rax"); 13894 13895 ; 13896 return 0; 13897 } 13898 _ACEOF 13899 if ac_fn_c_try_link "$LINENO"; then : 13900 have_gcc_asm_for_x64=yes 13901 else 13902 have_gcc_asm_for_x64=no 13903 fi 13904 rm -f core conftest.err conftest.$ac_objext \ 13905 conftest$ac_exeext conftest.$ac_ext 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 13907 $as_echo "$have_gcc_asm_for_x64" >&6; } 13908 if test "$have_gcc_asm_for_x64" = yes 13909 then 13910 13911 $as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 13912 13913 fi 13914 13915 # ************************************************** 13916 # * Check for various properties of floating point * 13917 # ************************************************** 13918 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 13920 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 13921 if ${ac_cv_little_endian_double+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923 else 13924 13925 if test "$cross_compiling" = yes; then : 13926 ac_cv_little_endian_double=no 13927 else 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13929 /* end confdefs.h. */ 13930 13931 #include <string.h> 13932 int main() { 13933 double x = 9006104071832581.0; 13934 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) 13935 return 0; 13936 else 13937 return 1; 13938 } 13939 13940 _ACEOF 13941 if ac_fn_c_try_run "$LINENO"; then : 13942 ac_cv_little_endian_double=yes 13943 else 13944 ac_cv_little_endian_double=no 13945 fi 13946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13947 conftest.$ac_objext conftest.beam conftest.$ac_ext 13948 fi 13949 13950 fi 13951 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 13953 $as_echo "$ac_cv_little_endian_double" >&6; } 13954 if test "$ac_cv_little_endian_double" = yes 13955 then 13956 13957 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 13958 13959 fi 13960 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 13962 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } 13963 if ${ac_cv_big_endian_double+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965 else 13966 13967 if test "$cross_compiling" = yes; then : 13968 ac_cv_big_endian_double=no 13969 else 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971 /* end confdefs.h. */ 13972 13973 #include <string.h> 13974 int main() { 13975 double x = 9006104071832581.0; 13976 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) 13977 return 0; 13978 else 13979 return 1; 13980 } 13981 13982 _ACEOF 13983 if ac_fn_c_try_run "$LINENO"; then : 13984 ac_cv_big_endian_double=yes 13985 else 13986 ac_cv_big_endian_double=no 13987 fi 13988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13989 conftest.$ac_objext conftest.beam conftest.$ac_ext 13990 fi 13991 13992 fi 13993 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 13995 $as_echo "$ac_cv_big_endian_double" >&6; } 13996 if test "$ac_cv_big_endian_double" = yes 13997 then 13998 13999 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 14000 14001 fi 14002 14003 # Some ARM platforms use a mixed-endian representation for doubles. 14004 # While Python doesn't currently have full support for these platforms 14005 # (see e.g., issue 1762561), we can at least make sure that float <-> string 14006 # conversions work. 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 14008 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } 14009 if ${ac_cv_mixed_endian_double+:} false; then : 14010 $as_echo_n "(cached) " >&6 14011 else 14012 14013 if test "$cross_compiling" = yes; then : 14014 ac_cv_mixed_endian_double=no 14015 else 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017 /* end confdefs.h. */ 14018 14019 #include <string.h> 14020 int main() { 14021 double x = 9006104071832581.0; 14022 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) 14023 return 0; 14024 else 14025 return 1; 14026 } 14027 14028 _ACEOF 14029 if ac_fn_c_try_run "$LINENO"; then : 14030 ac_cv_mixed_endian_double=yes 14031 else 14032 ac_cv_mixed_endian_double=no 14033 fi 14034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14035 conftest.$ac_objext conftest.beam conftest.$ac_ext 14036 fi 14037 14038 fi 14039 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 14041 $as_echo "$ac_cv_mixed_endian_double" >&6; } 14042 if test "$ac_cv_mixed_endian_double" = yes 14043 then 14044 14045 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 14046 14047 fi 14048 14049 # The short float repr introduced in Python 3.1 requires the 14050 # correctly-rounded string <-> double conversion functions from 14051 # Python/dtoa.c, which in turn require that the FPU uses 53-bit 14052 # rounding; this is a problem on x86, where the x87 FPU has a default 14053 # rounding precision of 64 bits. For gcc/x86, we can fix this by 14054 # using inline assembler to get and set the x87 FPU control word. 14055 14056 # This inline assembler syntax may also work for suncc and icc, 14057 # so we try it on all platforms. 14058 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 14060 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062 /* end confdefs.h. */ 14063 14064 int 14065 main () 14066 { 14067 14068 unsigned short cw; 14069 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 14070 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 14071 14072 ; 14073 return 0; 14074 } 14075 _ACEOF 14076 if ac_fn_c_try_link "$LINENO"; then : 14077 have_gcc_asm_for_x87=yes 14078 else 14079 have_gcc_asm_for_x87=no 14080 fi 14081 rm -f core conftest.err conftest.$ac_objext \ 14082 conftest$ac_exeext conftest.$ac_ext 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 14084 $as_echo "$have_gcc_asm_for_x87" >&6; } 14085 if test "$have_gcc_asm_for_x87" = yes 14086 then 14087 14088 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 14089 14090 fi 14091 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 14093 $as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095 /* end confdefs.h. */ 14096 14097 int 14098 main () 14099 { 14100 14101 unsigned int fpcr; 14102 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 14103 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 14104 14105 ; 14106 return 0; 14107 } 14108 _ACEOF 14109 if ac_fn_c_try_link "$LINENO"; then : 14110 have_gcc_asm_for_mc68881=yes 14111 else 14112 have_gcc_asm_for_mc68881=no 14113 fi 14114 rm -f core conftest.err conftest.$ac_objext \ 14115 conftest$ac_exeext conftest.$ac_ext 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 14117 $as_echo "$have_gcc_asm_for_mc68881" >&6; } 14118 if test "$have_gcc_asm_for_mc68881" = yes 14119 then 14120 14121 $as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 14122 14123 fi 14124 14125 # Detect whether system arithmetic is subject to x87-style double 14126 # rounding issues. The result of this test has little meaning on non 14127 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 14128 # mode is round-to-nearest and double rounding issues are present, and 14129 # 0 otherwise. See http://bugs.python.org/issue2937 for more info. 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 14131 $as_echo_n "checking for x87-style double rounding... " >&6; } 14132 # $BASECFLAGS may affect the result 14133 ac_save_cc="$CC" 14134 CC="$CC $BASECFLAGS" 14135 if test "$cross_compiling" = yes; then : 14136 ac_cv_x87_double_rounding=no 14137 else 14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14139 /* end confdefs.h. */ 14140 14141 #include <stdlib.h> 14142 #include <math.h> 14143 int main() { 14144 volatile double x, y, z; 14145 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 14146 x = 0.99999999999999989; /* 1-2**-53 */ 14147 y = 1./x; 14148 if (y != 1.) 14149 exit(0); 14150 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 14151 x = 1e16; 14152 y = 2.99999; 14153 z = x + y; 14154 if (z != 1e16+4.) 14155 exit(0); 14156 /* both tests show evidence of double rounding */ 14157 exit(1); 14158 } 14159 14160 _ACEOF 14161 if ac_fn_c_try_run "$LINENO"; then : 14162 ac_cv_x87_double_rounding=no 14163 else 14164 ac_cv_x87_double_rounding=yes 14165 fi 14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14167 conftest.$ac_objext conftest.beam conftest.$ac_ext 14168 fi 14169 14170 CC="$ac_save_cc" 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 14172 $as_echo "$ac_cv_x87_double_rounding" >&6; } 14173 if test "$ac_cv_x87_double_rounding" = yes 14174 then 14175 14176 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 14177 14178 fi 14179 14180 # ************************************ 14181 # * Check for mathematical functions * 14182 # ************************************ 14183 14184 LIBS_SAVE=$LIBS 14185 LIBS="$LIBS $LIBM" 14186 14187 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 14188 do : 14189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14192 cat >>confdefs.h <<_ACEOF 14193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14194 _ACEOF 14195 14196 fi 14197 done 14198 14199 for ac_func in hypot lgamma log1p log2 round tgamma 14200 do : 14201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14203 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14204 cat >>confdefs.h <<_ACEOF 14205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14206 _ACEOF 14207 14208 fi 14209 done 14210 14211 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 14212 " 14213 if test "x$ac_cv_have_decl_isinf" = xyes; then : 14214 ac_have_decl=1 14215 else 14216 ac_have_decl=0 14217 fi 14218 14219 cat >>confdefs.h <<_ACEOF 14220 #define HAVE_DECL_ISINF $ac_have_decl 14221 _ACEOF 14222 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 14223 " 14224 if test "x$ac_cv_have_decl_isnan" = xyes; then : 14225 ac_have_decl=1 14226 else 14227 ac_have_decl=0 14228 fi 14229 14230 cat >>confdefs.h <<_ACEOF 14231 #define HAVE_DECL_ISNAN $ac_have_decl 14232 _ACEOF 14233 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 14234 " 14235 if test "x$ac_cv_have_decl_isfinite" = xyes; then : 14236 ac_have_decl=1 14237 else 14238 ac_have_decl=0 14239 fi 14240 14241 cat >>confdefs.h <<_ACEOF 14242 #define HAVE_DECL_ISFINITE $ac_have_decl 14243 _ACEOF 14244 14245 14246 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of 14247 # -0. on some architectures. 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 14249 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } 14250 if ${ac_cv_tanh_preserves_zero_sign+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252 else 14253 14254 if test "$cross_compiling" = yes; then : 14255 ac_cv_tanh_preserves_zero_sign=no 14256 else 14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14258 /* end confdefs.h. */ 14259 14260 #include <math.h> 14261 #include <stdlib.h> 14262 int main() { 14263 /* return 0 if either negative zeros don't exist 14264 on this platform or if negative zeros exist 14265 and tanh(-0.) == -0. */ 14266 if (atan2(0., -1.) == atan2(-0., -1.) || 14267 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); 14268 else exit(1); 14269 } 14270 14271 _ACEOF 14272 if ac_fn_c_try_run "$LINENO"; then : 14273 ac_cv_tanh_preserves_zero_sign=yes 14274 else 14275 ac_cv_tanh_preserves_zero_sign=no 14276 fi 14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14278 conftest.$ac_objext conftest.beam conftest.$ac_ext 14279 fi 14280 14281 fi 14282 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 14284 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } 14285 if test "$ac_cv_tanh_preserves_zero_sign" = yes 14286 then 14287 14288 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h 14289 14290 fi 14291 14292 if test "$ac_cv_func_log1p" = yes 14293 then 14294 # On some versions of AIX, log1p(-0.) returns 0. instead of 14295 # -0. See issue #9920. 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero" >&5 14297 $as_echo_n "checking whether log1p drops the sign of negative zero... " >&6; } 14298 if ${ac_cv_log1p_drops_zero_sign+:} false; then : 14299 $as_echo_n "(cached) " >&6 14300 else 14301 14302 if test "$cross_compiling" = yes; then : 14303 ac_cv_log1p_drops_zero_sign=no 14304 else 14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306 /* end confdefs.h. */ 14307 14308 #include <math.h> 14309 #include <stdlib.h> 14310 int main() { 14311 /* Fail if the signs of log1p(-0.) and -0. can be 14312 distinguished. */ 14313 if (atan2(log1p(-0.), -1.) == atan2(-0., -1.)) 14314 return 0; 14315 else 14316 return 1; 14317 } 14318 14319 _ACEOF 14320 if ac_fn_c_try_run "$LINENO"; then : 14321 ac_cv_log1p_drops_zero_sign=no 14322 else 14323 ac_cv_log1p_drops_zero_sign=yes 14324 fi 14325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14326 conftest.$ac_objext conftest.beam conftest.$ac_ext 14327 fi 14328 14329 fi 14330 14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_log1p_drops_zero_sign" >&5 14332 $as_echo "$ac_cv_log1p_drops_zero_sign" >&6; } 14333 fi 14334 if test "$ac_cv_log1p_drops_zero_sign" = yes 14335 then 14336 14337 $as_echo "#define LOG1P_DROPS_ZERO_SIGN 1" >>confdefs.h 14338 14339 fi 14340 14341 LIBS=$LIBS_SAVE 14342 14343 # For multiprocessing module, check that sem_open 14344 # actually works. For FreeBSD versions <= 7.2, 14345 # the kernel module that provides POSIX semaphores 14346 # isn't loaded by default, so an attempt to call 14347 # sem_open results in a 'Signal 12' error. 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 14349 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 14350 if ${ac_cv_posix_semaphores_enabled+:} false; then : 14351 $as_echo_n "(cached) " >&6 14352 else 14353 if test "$cross_compiling" = yes; then : 14354 ac_cv_posix_semaphores_enabled=yes 14355 else 14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14357 /* end confdefs.h. */ 14358 14359 #include <unistd.h> 14360 #include <fcntl.h> 14361 #include <stdio.h> 14362 #include <semaphore.h> 14363 #include <sys/stat.h> 14364 14365 int main(void) { 14366 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 14367 if (a == SEM_FAILED) { 14368 perror("sem_open"); 14369 return 1; 14370 } 14371 sem_close(a); 14372 sem_unlink("/autoconf"); 14373 return 0; 14374 } 14375 14376 _ACEOF 14377 if ac_fn_c_try_run "$LINENO"; then : 14378 ac_cv_posix_semaphores_enabled=yes 14379 else 14380 ac_cv_posix_semaphores_enabled=no 14381 fi 14382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14383 conftest.$ac_objext conftest.beam conftest.$ac_ext 14384 fi 14385 14386 14387 fi 14388 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 14390 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 14391 if test $ac_cv_posix_semaphores_enabled = no 14392 then 14393 14394 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 14395 14396 fi 14397 14398 # Multiprocessing check for broken sem_getvalue 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 14400 $as_echo_n "checking for broken sem_getvalue... " >&6; } 14401 if ${ac_cv_broken_sem_getvalue+:} false; then : 14402 $as_echo_n "(cached) " >&6 14403 else 14404 if test "$cross_compiling" = yes; then : 14405 ac_cv_broken_sem_getvalue=yes 14406 else 14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408 /* end confdefs.h. */ 14409 14410 #include <unistd.h> 14411 #include <fcntl.h> 14412 #include <stdio.h> 14413 #include <semaphore.h> 14414 #include <sys/stat.h> 14415 14416 int main(void){ 14417 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 14418 int count; 14419 int res; 14420 if(a==SEM_FAILED){ 14421 perror("sem_open"); 14422 return 1; 14423 14424 } 14425 res = sem_getvalue(a, &count); 14426 sem_close(a); 14427 sem_unlink("/autocftw"); 14428 return res==-1 ? 1 : 0; 14429 } 14430 14431 _ACEOF 14432 if ac_fn_c_try_run "$LINENO"; then : 14433 ac_cv_broken_sem_getvalue=no 14434 else 14435 ac_cv_broken_sem_getvalue=yes 14436 fi 14437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14438 conftest.$ac_objext conftest.beam conftest.$ac_ext 14439 fi 14440 14441 14442 fi 14443 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 14445 $as_echo "$ac_cv_broken_sem_getvalue" >&6; } 14446 if test $ac_cv_broken_sem_getvalue = yes 14447 then 14448 14449 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 14450 14451 fi 14452 14453 ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 14454 " 14455 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : 14456 ac_have_decl=1 14457 else 14458 ac_have_decl=0 14459 fi 14460 14461 cat >>confdefs.h <<_ACEOF 14462 #define HAVE_DECL_RTLD_LAZY $ac_have_decl 14463 _ACEOF 14464 ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 14465 " 14466 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : 14467 ac_have_decl=1 14468 else 14469 ac_have_decl=0 14470 fi 14471 14472 cat >>confdefs.h <<_ACEOF 14473 #define HAVE_DECL_RTLD_NOW $ac_have_decl 14474 _ACEOF 14475 ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 14476 " 14477 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : 14478 ac_have_decl=1 14479 else 14480 ac_have_decl=0 14481 fi 14482 14483 cat >>confdefs.h <<_ACEOF 14484 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl 14485 _ACEOF 14486 ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 14487 " 14488 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : 14489 ac_have_decl=1 14490 else 14491 ac_have_decl=0 14492 fi 14493 14494 cat >>confdefs.h <<_ACEOF 14495 #define HAVE_DECL_RTLD_LOCAL $ac_have_decl 14496 _ACEOF 14497 ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 14498 " 14499 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : 14500 ac_have_decl=1 14501 else 14502 ac_have_decl=0 14503 fi 14504 14505 cat >>confdefs.h <<_ACEOF 14506 #define HAVE_DECL_RTLD_NODELETE $ac_have_decl 14507 _ACEOF 14508 ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 14509 " 14510 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : 14511 ac_have_decl=1 14512 else 14513 ac_have_decl=0 14514 fi 14515 14516 cat >>confdefs.h <<_ACEOF 14517 #define HAVE_DECL_RTLD_NOLOAD $ac_have_decl 14518 _ACEOF 14519 ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 14520 " 14521 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : 14522 ac_have_decl=1 14523 else 14524 ac_have_decl=0 14525 fi 14526 14527 cat >>confdefs.h <<_ACEOF 14528 #define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl 14529 _ACEOF 14530 14531 14532 # determine what size digit to use for Python's longs 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 14534 $as_echo_n "checking digit size for Python's longs... " >&6; } 14535 # Check whether --enable-big-digits was given. 14536 if test "${enable_big_digits+set}" = set; then : 14537 enableval=$enable_big_digits; case $enable_big_digits in 14538 yes) 14539 enable_big_digits=30 ;; 14540 no) 14541 enable_big_digits=15 ;; 14542 15|30) 14543 ;; 14544 *) 14545 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 14546 esac 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 14548 $as_echo "$enable_big_digits" >&6; } 14549 14550 cat >>confdefs.h <<_ACEOF 14551 #define PYLONG_BITS_IN_DIGIT $enable_big_digits 14552 _ACEOF 14553 14554 14555 else 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 14557 $as_echo "no value specified" >&6; } 14558 fi 14559 14560 14561 # check for wchar.h 14562 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14563 if test "x$ac_cv_header_wchar_h" = xyes; then : 14564 14565 14566 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 14567 14568 wchar_h="yes" 14569 14570 else 14571 wchar_h="no" 14572 14573 fi 14574 14575 14576 14577 # determine wchar_t size 14578 if test "$wchar_h" = yes 14579 then 14580 # The cast to long int works around a bug in the HP C Compiler 14581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14583 # This bug is HP SR number 8606223364. 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 14585 $as_echo_n "checking size of wchar_t... " >&6; } 14586 if ${ac_cv_sizeof_wchar_t+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588 else 14589 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 14590 "; then : 14591 14592 else 14593 if test "$ac_cv_type_wchar_t" = yes; then 14594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14596 as_fn_error 77 "cannot compute sizeof (wchar_t) 14597 See \`config.log' for more details" "$LINENO" 5; } 14598 else 14599 ac_cv_sizeof_wchar_t=0 14600 fi 14601 fi 14602 14603 fi 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 14605 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } 14606 14607 14608 14609 cat >>confdefs.h <<_ACEOF 14610 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 14611 _ACEOF 14612 14613 14614 fi 14615 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 14617 $as_echo_n "checking for UCS-4 tcl... " >&6; } 14618 have_ucs4_tcl=no 14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620 /* end confdefs.h. */ 14621 14622 #include <tcl.h> 14623 #if TCL_UTF_MAX != 6 14624 # error "NOT UCS4_TCL" 14625 #endif 14626 int 14627 main () 14628 { 14629 14630 ; 14631 return 0; 14632 } 14633 _ACEOF 14634 if ac_fn_c_try_compile "$LINENO"; then : 14635 14636 14637 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 14638 14639 have_ucs4_tcl=yes 14640 14641 fi 14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 14644 $as_echo "$have_ucs4_tcl" >&6; } 14645 14646 # check whether wchar_t is signed or not 14647 if test "$wchar_h" = yes 14648 then 14649 # check whether wchar_t is signed or not 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 14651 $as_echo_n "checking whether wchar_t is signed... " >&6; } 14652 if ${ac_cv_wchar_t_signed+:} false; then : 14653 $as_echo_n "(cached) " >&6 14654 else 14655 14656 if test "$cross_compiling" = yes; then : 14657 ac_cv_wchar_t_signed=yes 14658 else 14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660 /* end confdefs.h. */ 14661 14662 #include <wchar.h> 14663 int main() 14664 { 14665 /* Success: exit code 0 */ 14666 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 14667 } 14668 14669 _ACEOF 14670 if ac_fn_c_try_run "$LINENO"; then : 14671 ac_cv_wchar_t_signed=yes 14672 else 14673 ac_cv_wchar_t_signed=no 14674 fi 14675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14676 conftest.$ac_objext conftest.beam conftest.$ac_ext 14677 fi 14678 14679 fi 14680 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 14682 $as_echo "$ac_cv_wchar_t_signed" >&6; } 14683 fi 14684 14685 # wchar_t is only usable if it maps to an unsigned type 14686 if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 14687 -a "$ac_cv_wchar_t_signed" = "no" 14688 then 14689 HAVE_USABLE_WCHAR_T="yes" 14690 14691 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 14692 14693 else 14694 HAVE_USABLE_WCHAR_T="no usable wchar_t found" 14695 fi 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5 14697 $as_echo "$HAVE_USABLE_WCHAR_T" >&6; } 14698 14699 # check for endianness 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14701 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14702 if ${ac_cv_c_bigendian+:} false; then : 14703 $as_echo_n "(cached) " >&6 14704 else 14705 ac_cv_c_bigendian=unknown 14706 # See if we're dealing with a universal compiler. 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708 /* end confdefs.h. */ 14709 #ifndef __APPLE_CC__ 14710 not a universal capable compiler 14711 #endif 14712 typedef int dummy; 14713 14714 _ACEOF 14715 if ac_fn_c_try_compile "$LINENO"; then : 14716 14717 # Check for potential -arch flags. It is not universal unless 14718 # there are at least two -arch flags with different values. 14719 ac_arch= 14720 ac_prev= 14721 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14722 if test -n "$ac_prev"; then 14723 case $ac_word in 14724 i?86 | x86_64 | ppc | ppc64) 14725 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14726 ac_arch=$ac_word 14727 else 14728 ac_cv_c_bigendian=universal 14729 break 14730 fi 14731 ;; 14732 esac 14733 ac_prev= 14734 elif test "x$ac_word" = "x-arch"; then 14735 ac_prev=arch 14736 fi 14737 done 14738 fi 14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14740 if test $ac_cv_c_bigendian = unknown; then 14741 # See if sys/param.h defines the BYTE_ORDER macro. 14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14743 /* end confdefs.h. */ 14744 #include <sys/types.h> 14745 #include <sys/param.h> 14746 14747 int 14748 main () 14749 { 14750 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14751 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14752 && LITTLE_ENDIAN) 14753 bogus endian macros 14754 #endif 14755 14756 ; 14757 return 0; 14758 } 14759 _ACEOF 14760 if ac_fn_c_try_compile "$LINENO"; then : 14761 # It does; now see whether it defined to BIG_ENDIAN or not. 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763 /* end confdefs.h. */ 14764 #include <sys/types.h> 14765 #include <sys/param.h> 14766 14767 int 14768 main () 14769 { 14770 #if BYTE_ORDER != BIG_ENDIAN 14771 not big endian 14772 #endif 14773 14774 ; 14775 return 0; 14776 } 14777 _ACEOF 14778 if ac_fn_c_try_compile "$LINENO"; then : 14779 ac_cv_c_bigendian=yes 14780 else 14781 ac_cv_c_bigendian=no 14782 fi 14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14784 fi 14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14786 fi 14787 if test $ac_cv_c_bigendian = unknown; then 14788 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790 /* end confdefs.h. */ 14791 #include <limits.h> 14792 14793 int 14794 main () 14795 { 14796 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14797 bogus endian macros 14798 #endif 14799 14800 ; 14801 return 0; 14802 } 14803 _ACEOF 14804 if ac_fn_c_try_compile "$LINENO"; then : 14805 # It does; now see whether it defined to _BIG_ENDIAN or not. 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807 /* end confdefs.h. */ 14808 #include <limits.h> 14809 14810 int 14811 main () 14812 { 14813 #ifndef _BIG_ENDIAN 14814 not big endian 14815 #endif 14816 14817 ; 14818 return 0; 14819 } 14820 _ACEOF 14821 if ac_fn_c_try_compile "$LINENO"; then : 14822 ac_cv_c_bigendian=yes 14823 else 14824 ac_cv_c_bigendian=no 14825 fi 14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14827 fi 14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14829 fi 14830 if test $ac_cv_c_bigendian = unknown; then 14831 # Compile a test program. 14832 if test "$cross_compiling" = yes; then : 14833 # Try to guess by grepping values from an object file. 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835 /* end confdefs.h. */ 14836 short int ascii_mm[] = 14837 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14838 short int ascii_ii[] = 14839 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14840 int use_ascii (int i) { 14841 return ascii_mm[i] + ascii_ii[i]; 14842 } 14843 short int ebcdic_ii[] = 14844 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14845 short int ebcdic_mm[] = 14846 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14847 int use_ebcdic (int i) { 14848 return ebcdic_mm[i] + ebcdic_ii[i]; 14849 } 14850 extern int foo; 14851 14852 int 14853 main () 14854 { 14855 return use_ascii (foo) == use_ebcdic (foo); 14856 ; 14857 return 0; 14858 } 14859 _ACEOF 14860 if ac_fn_c_try_compile "$LINENO"; then : 14861 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14862 ac_cv_c_bigendian=yes 14863 fi 14864 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14865 if test "$ac_cv_c_bigendian" = unknown; then 14866 ac_cv_c_bigendian=no 14867 else 14868 # finding both strings is unlikely to happen, but who knows? 14869 ac_cv_c_bigendian=unknown 14870 fi 14871 fi 14872 fi 14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14874 else 14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14876 /* end confdefs.h. */ 14877 $ac_includes_default 14878 int 14879 main () 14880 { 14881 14882 /* Are we little or big endian? From Harbison&Steele. */ 14883 union 14884 { 14885 long int l; 14886 char c[sizeof (long int)]; 14887 } u; 14888 u.l = 1; 14889 return u.c[sizeof (long int) - 1] == 1; 14890 14891 ; 14892 return 0; 14893 } 14894 _ACEOF 14895 if ac_fn_c_try_run "$LINENO"; then : 14896 ac_cv_c_bigendian=no 14897 else 14898 ac_cv_c_bigendian=yes 14899 fi 14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14901 conftest.$ac_objext conftest.beam conftest.$ac_ext 14902 fi 14903 14904 fi 14905 fi 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14907 $as_echo "$ac_cv_c_bigendian" >&6; } 14908 case $ac_cv_c_bigendian in #( 14909 yes) 14910 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14911 ;; #( 14912 no) 14913 ;; #( 14914 universal) 14915 14916 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14917 14918 ;; #( 14919 *) 14920 as_fn_error $? "unknown endianness 14921 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14922 esac 14923 14924 14925 # ABI version string for Python extension modules. This appears between the 14926 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 14927 # from the following attributes which affect the ABI of this Python build (in 14928 # this order): 14929 # 14930 # * The Python implementation (always 'cpython-' for us) 14931 # * The major and minor version numbers 14932 # * --with-pydebug (adds a 'd') 14933 # * --with-pymalloc (adds a 'm') 14934 # * --with-wide-unicode (adds a 'u') 14935 # 14936 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 14937 # would get a shared library ABI version tag of 'cpython-32dmu' and shared 14938 # libraries would be named 'foo.cpython-32dmu.so'. 14939 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 14941 $as_echo_n "checking ABIFLAGS... " >&6; } 14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 14943 $as_echo "$ABIFLAGS" >&6; } 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 14945 $as_echo_n "checking SOABI... " >&6; } 14946 SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 14948 $as_echo "$SOABI" >&6; } 14949 14950 14951 case $ac_sys_system in 14952 Linux*|GNU*|Darwin) 14953 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; 14954 *) 14955 EXT_SUFFIX=${SHLIB_SUFFIX};; 14956 esac 14957 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 14959 $as_echo_n "checking LDVERSION... " >&6; } 14960 LDVERSION='$(VERSION)$(ABIFLAGS)' 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 14962 $as_echo "$LDVERSION" >&6; } 14963 14964 14965 if test x$PLATFORM_TRIPLET = x; then 14966 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" 14967 else 14968 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 14969 fi 14970 14971 14972 # Check whether right shifting a negative integer extends the sign bit 14973 # or fills with zeros (like the Cray J90, according to Tim Peters). 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 14975 $as_echo_n "checking whether right shift extends the sign bit... " >&6; } 14976 if ${ac_cv_rshift_extends_sign+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978 else 14979 14980 if test "$cross_compiling" = yes; then : 14981 ac_cv_rshift_extends_sign=yes 14982 else 14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14984 /* end confdefs.h. */ 14985 14986 int main() 14987 { 14988 exit(((-1)>>3 == -1) ? 0 : 1); 14989 } 14990 14991 _ACEOF 14992 if ac_fn_c_try_run "$LINENO"; then : 14993 ac_cv_rshift_extends_sign=yes 14994 else 14995 ac_cv_rshift_extends_sign=no 14996 fi 14997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14998 conftest.$ac_objext conftest.beam conftest.$ac_ext 14999 fi 15000 15001 fi 15002 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 15004 $as_echo "$ac_cv_rshift_extends_sign" >&6; } 15005 if test "$ac_cv_rshift_extends_sign" = no 15006 then 15007 15008 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 15009 15010 fi 15011 15012 # check for getc_unlocked and related locking functions 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 15014 $as_echo_n "checking for getc_unlocked() and friends... " >&6; } 15015 if ${ac_cv_have_getc_unlocked+:} false; then : 15016 $as_echo_n "(cached) " >&6 15017 else 15018 15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15020 /* end confdefs.h. */ 15021 #include <stdio.h> 15022 int 15023 main () 15024 { 15025 15026 FILE *f = fopen("/dev/null", "r"); 15027 flockfile(f); 15028 getc_unlocked(f); 15029 funlockfile(f); 15030 15031 ; 15032 return 0; 15033 } 15034 _ACEOF 15035 if ac_fn_c_try_link "$LINENO"; then : 15036 ac_cv_have_getc_unlocked=yes 15037 else 15038 ac_cv_have_getc_unlocked=no 15039 fi 15040 rm -f core conftest.err conftest.$ac_objext \ 15041 conftest$ac_exeext conftest.$ac_ext 15042 fi 15043 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 15045 $as_echo "$ac_cv_have_getc_unlocked" >&6; } 15046 if test "$ac_cv_have_getc_unlocked" = yes 15047 then 15048 15049 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 15050 15051 fi 15052 15053 # check where readline lives 15054 # save the value of LIBS so we don't actually link Python with readline 15055 LIBS_no_readline=$LIBS 15056 15057 # On some systems we need to link readline to a termcap compatible 15058 # library. NOTE: Keep the precedence of listed libraries synchronised 15059 # with setup.py. 15060 py_cv_lib_readline=no 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 15062 $as_echo_n "checking how to link readline libs... " >&6; } 15063 for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do 15064 if test -z "$py_libtermcap"; then 15065 READLINE_LIBS="-lreadline" 15066 else 15067 READLINE_LIBS="-lreadline -l$py_libtermcap" 15068 fi 15069 LIBS="$READLINE_LIBS $LIBS_no_readline" 15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071 /* end confdefs.h. */ 15072 15073 /* Override any GCC internal prototype to avoid an error. 15074 Use char because int might match the return type of a GCC 15075 builtin and then its argument prototype would still apply. */ 15076 #ifdef __cplusplus 15077 extern "C" 15078 #endif 15079 char readline (); 15080 int 15081 main () 15082 { 15083 return readline (); 15084 ; 15085 return 0; 15086 } 15087 _ACEOF 15088 if ac_fn_c_try_link "$LINENO"; then : 15089 py_cv_lib_readline=yes 15090 fi 15091 rm -f core conftest.err conftest.$ac_objext \ 15092 conftest$ac_exeext conftest.$ac_ext 15093 if test $py_cv_lib_readline = yes; then 15094 break 15095 fi 15096 done 15097 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 15098 #AC_SUBST([READLINE_LIBS]) 15099 if test $py_cv_lib_readline = no; then 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15101 $as_echo "none" >&6; } 15102 else 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 15104 $as_echo "$READLINE_LIBS" >&6; } 15105 15106 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15107 15108 fi 15109 15110 # check for readline 2.1 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 15112 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } 15113 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : 15114 $as_echo_n "(cached) " >&6 15115 else 15116 ac_check_lib_save_LIBS=$LIBS 15117 LIBS="-lreadline $READLINE_LIBS $LIBS" 15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119 /* end confdefs.h. */ 15120 15121 /* Override any GCC internal prototype to avoid an error. 15122 Use char because int might match the return type of a GCC 15123 builtin and then its argument prototype would still apply. */ 15124 #ifdef __cplusplus 15125 extern "C" 15126 #endif 15127 char rl_callback_handler_install (); 15128 int 15129 main () 15130 { 15131 return rl_callback_handler_install (); 15132 ; 15133 return 0; 15134 } 15135 _ACEOF 15136 if ac_fn_c_try_link "$LINENO"; then : 15137 ac_cv_lib_readline_rl_callback_handler_install=yes 15138 else 15139 ac_cv_lib_readline_rl_callback_handler_install=no 15140 fi 15141 rm -f core conftest.err conftest.$ac_objext \ 15142 conftest$ac_exeext conftest.$ac_ext 15143 LIBS=$ac_check_lib_save_LIBS 15144 fi 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 15146 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } 15147 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : 15148 15149 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h 15150 15151 fi 15152 15153 15154 # check for readline 2.2 15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156 /* end confdefs.h. */ 15157 #include <readline/readline.h> 15158 _ACEOF 15159 if ac_fn_c_try_cpp "$LINENO"; then : 15160 have_readline=yes 15161 else 15162 have_readline=no 15163 15164 fi 15165 rm -f conftest.err conftest.i conftest.$ac_ext 15166 if test $have_readline = yes 15167 then 15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15169 /* end confdefs.h. */ 15170 #include <readline/readline.h> 15171 15172 _ACEOF 15173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15174 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 15175 15176 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 15177 15178 fi 15179 rm -f conftest* 15180 15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15182 /* end confdefs.h. */ 15183 #include <readline/readline.h> 15184 15185 _ACEOF 15186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15187 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 15188 15189 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 15190 15191 fi 15192 rm -f conftest* 15193 15194 fi 15195 15196 # check for readline 4.0 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 15198 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 15199 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 15200 $as_echo_n "(cached) " >&6 15201 else 15202 ac_check_lib_save_LIBS=$LIBS 15203 LIBS="-lreadline $READLINE_LIBS $LIBS" 15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205 /* end confdefs.h. */ 15206 15207 /* Override any GCC internal prototype to avoid an error. 15208 Use char because int might match the return type of a GCC 15209 builtin and then its argument prototype would still apply. */ 15210 #ifdef __cplusplus 15211 extern "C" 15212 #endif 15213 char rl_pre_input_hook (); 15214 int 15215 main () 15216 { 15217 return rl_pre_input_hook (); 15218 ; 15219 return 0; 15220 } 15221 _ACEOF 15222 if ac_fn_c_try_link "$LINENO"; then : 15223 ac_cv_lib_readline_rl_pre_input_hook=yes 15224 else 15225 ac_cv_lib_readline_rl_pre_input_hook=no 15226 fi 15227 rm -f core conftest.err conftest.$ac_objext \ 15228 conftest$ac_exeext conftest.$ac_ext 15229 LIBS=$ac_check_lib_save_LIBS 15230 fi 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 15232 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 15233 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 15234 15235 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 15236 15237 fi 15238 15239 15240 # also in 4.0 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 15242 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 15243 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 15244 $as_echo_n "(cached) " >&6 15245 else 15246 ac_check_lib_save_LIBS=$LIBS 15247 LIBS="-lreadline $READLINE_LIBS $LIBS" 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249 /* end confdefs.h. */ 15250 15251 /* Override any GCC internal prototype to avoid an error. 15252 Use char because int might match the return type of a GCC 15253 builtin and then its argument prototype would still apply. */ 15254 #ifdef __cplusplus 15255 extern "C" 15256 #endif 15257 char rl_completion_display_matches_hook (); 15258 int 15259 main () 15260 { 15261 return rl_completion_display_matches_hook (); 15262 ; 15263 return 0; 15264 } 15265 _ACEOF 15266 if ac_fn_c_try_link "$LINENO"; then : 15267 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 15268 else 15269 ac_cv_lib_readline_rl_completion_display_matches_hook=no 15270 fi 15271 rm -f core conftest.err conftest.$ac_objext \ 15272 conftest$ac_exeext conftest.$ac_ext 15273 LIBS=$ac_check_lib_save_LIBS 15274 fi 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 15276 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 15277 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 15278 15279 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 15280 15281 fi 15282 15283 15284 # also in 4.0, but not in editline 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 15286 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 15287 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289 else 15290 ac_check_lib_save_LIBS=$LIBS 15291 LIBS="-lreadline $READLINE_LIBS $LIBS" 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293 /* end confdefs.h. */ 15294 15295 /* Override any GCC internal prototype to avoid an error. 15296 Use char because int might match the return type of a GCC 15297 builtin and then its argument prototype would still apply. */ 15298 #ifdef __cplusplus 15299 extern "C" 15300 #endif 15301 char rl_resize_terminal (); 15302 int 15303 main () 15304 { 15305 return rl_resize_terminal (); 15306 ; 15307 return 0; 15308 } 15309 _ACEOF 15310 if ac_fn_c_try_link "$LINENO"; then : 15311 ac_cv_lib_readline_rl_resize_terminal=yes 15312 else 15313 ac_cv_lib_readline_rl_resize_terminal=no 15314 fi 15315 rm -f core conftest.err conftest.$ac_objext \ 15316 conftest$ac_exeext conftest.$ac_ext 15317 LIBS=$ac_check_lib_save_LIBS 15318 fi 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 15320 $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 15321 if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 15322 15323 $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 15324 15325 fi 15326 15327 15328 # check for readline 4.2 15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 15330 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 15331 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 15332 $as_echo_n "(cached) " >&6 15333 else 15334 ac_check_lib_save_LIBS=$LIBS 15335 LIBS="-lreadline $READLINE_LIBS $LIBS" 15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337 /* end confdefs.h. */ 15338 15339 /* Override any GCC internal prototype to avoid an error. 15340 Use char because int might match the return type of a GCC 15341 builtin and then its argument prototype would still apply. */ 15342 #ifdef __cplusplus 15343 extern "C" 15344 #endif 15345 char rl_completion_matches (); 15346 int 15347 main () 15348 { 15349 return rl_completion_matches (); 15350 ; 15351 return 0; 15352 } 15353 _ACEOF 15354 if ac_fn_c_try_link "$LINENO"; then : 15355 ac_cv_lib_readline_rl_completion_matches=yes 15356 else 15357 ac_cv_lib_readline_rl_completion_matches=no 15358 fi 15359 rm -f core conftest.err conftest.$ac_objext \ 15360 conftest$ac_exeext conftest.$ac_ext 15361 LIBS=$ac_check_lib_save_LIBS 15362 fi 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 15364 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 15365 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 15366 15367 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 15368 15369 fi 15370 15371 15372 # also in readline 4.2 15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374 /* end confdefs.h. */ 15375 #include <readline/readline.h> 15376 _ACEOF 15377 if ac_fn_c_try_cpp "$LINENO"; then : 15378 have_readline=yes 15379 else 15380 have_readline=no 15381 15382 fi 15383 rm -f conftest.err conftest.i conftest.$ac_ext 15384 if test $have_readline = yes 15385 then 15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15387 /* end confdefs.h. */ 15388 #include <readline/readline.h> 15389 15390 _ACEOF 15391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15392 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 15393 15394 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 15395 15396 fi 15397 rm -f conftest* 15398 15399 fi 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 15402 $as_echo_n "checking for append_history in -lreadline... " >&6; } 15403 if ${ac_cv_lib_readline_append_history+:} false; then : 15404 $as_echo_n "(cached) " >&6 15405 else 15406 ac_check_lib_save_LIBS=$LIBS 15407 LIBS="-lreadline $READLINE_LIBS $LIBS" 15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409 /* end confdefs.h. */ 15410 15411 /* Override any GCC internal prototype to avoid an error. 15412 Use char because int might match the return type of a GCC 15413 builtin and then its argument prototype would still apply. */ 15414 #ifdef __cplusplus 15415 extern "C" 15416 #endif 15417 char append_history (); 15418 int 15419 main () 15420 { 15421 return append_history (); 15422 ; 15423 return 0; 15424 } 15425 _ACEOF 15426 if ac_fn_c_try_link "$LINENO"; then : 15427 ac_cv_lib_readline_append_history=yes 15428 else 15429 ac_cv_lib_readline_append_history=no 15430 fi 15431 rm -f core conftest.err conftest.$ac_objext \ 15432 conftest$ac_exeext conftest.$ac_ext 15433 LIBS=$ac_check_lib_save_LIBS 15434 fi 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 15436 $as_echo "$ac_cv_lib_readline_append_history" >&6; } 15437 if test "x$ac_cv_lib_readline_append_history" = xyes; then : 15438 15439 $as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 15440 15441 fi 15442 15443 15444 # End of readline checks: restore LIBS 15445 LIBS=$LIBS_no_readline 15446 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 15448 $as_echo_n "checking for broken nice()... " >&6; } 15449 if ${ac_cv_broken_nice+:} false; then : 15450 $as_echo_n "(cached) " >&6 15451 else 15452 15453 if test "$cross_compiling" = yes; then : 15454 ac_cv_broken_nice=no 15455 else 15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457 /* end confdefs.h. */ 15458 15459 int main() 15460 { 15461 int val1 = nice(1); 15462 if (val1 != -1 && val1 == nice(2)) 15463 exit(0); 15464 exit(1); 15465 } 15466 15467 _ACEOF 15468 if ac_fn_c_try_run "$LINENO"; then : 15469 ac_cv_broken_nice=yes 15470 else 15471 ac_cv_broken_nice=no 15472 fi 15473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15474 conftest.$ac_objext conftest.beam conftest.$ac_ext 15475 fi 15476 15477 fi 15478 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 15480 $as_echo "$ac_cv_broken_nice" >&6; } 15481 if test "$ac_cv_broken_nice" = yes 15482 then 15483 15484 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 15485 15486 fi 15487 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 15489 $as_echo_n "checking for broken poll()... " >&6; } 15490 if ${ac_cv_broken_poll+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492 else 15493 if test "$cross_compiling" = yes; then : 15494 ac_cv_broken_poll=no 15495 else 15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15497 /* end confdefs.h. */ 15498 15499 #include <poll.h> 15500 15501 int main() 15502 { 15503 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 15504 int poll_test; 15505 15506 close (42); 15507 15508 poll_test = poll(&poll_struct, 1, 0); 15509 if (poll_test < 0) 15510 return 0; 15511 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 15512 return 0; 15513 else 15514 return 1; 15515 } 15516 15517 _ACEOF 15518 if ac_fn_c_try_run "$LINENO"; then : 15519 ac_cv_broken_poll=yes 15520 else 15521 ac_cv_broken_poll=no 15522 fi 15523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15524 conftest.$ac_objext conftest.beam conftest.$ac_ext 15525 fi 15526 15527 fi 15528 15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 15530 $as_echo "$ac_cv_broken_poll" >&6; } 15531 if test "$ac_cv_broken_poll" = yes 15532 then 15533 15534 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 15535 15536 fi 15537 15538 # Before we can test tzset, we need to check if struct tm has a tm_zone 15539 # (which is not required by ISO C or UNIX spec) and/or if we support 15540 # tzname[] 15541 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 15542 #include <$ac_cv_struct_tm> 15543 15544 " 15545 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 15546 15547 cat >>confdefs.h <<_ACEOF 15548 #define HAVE_STRUCT_TM_TM_ZONE 1 15549 _ACEOF 15550 15551 15552 fi 15553 15554 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 15555 15556 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 15557 15558 else 15559 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 15560 " 15561 if test "x$ac_cv_have_decl_tzname" = xyes; then : 15562 ac_have_decl=1 15563 else 15564 ac_have_decl=0 15565 fi 15566 15567 cat >>confdefs.h <<_ACEOF 15568 #define HAVE_DECL_TZNAME $ac_have_decl 15569 _ACEOF 15570 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 15572 $as_echo_n "checking for tzname... " >&6; } 15573 if ${ac_cv_var_tzname+:} false; then : 15574 $as_echo_n "(cached) " >&6 15575 else 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577 /* end confdefs.h. */ 15578 #include <time.h> 15579 #if !HAVE_DECL_TZNAME 15580 extern char *tzname[]; 15581 #endif 15582 15583 int 15584 main () 15585 { 15586 return tzname[0][0]; 15587 ; 15588 return 0; 15589 } 15590 _ACEOF 15591 if ac_fn_c_try_link "$LINENO"; then : 15592 ac_cv_var_tzname=yes 15593 else 15594 ac_cv_var_tzname=no 15595 fi 15596 rm -f core conftest.err conftest.$ac_objext \ 15597 conftest$ac_exeext conftest.$ac_ext 15598 fi 15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 15600 $as_echo "$ac_cv_var_tzname" >&6; } 15601 if test $ac_cv_var_tzname = yes; then 15602 15603 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 15604 15605 fi 15606 fi 15607 15608 15609 # check tzset(3) exists and works like we expect it to 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 15611 $as_echo_n "checking for working tzset()... " >&6; } 15612 if ${ac_cv_working_tzset+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614 else 15615 15616 if test "$cross_compiling" = yes; then : 15617 ac_cv_working_tzset=no 15618 else 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620 /* end confdefs.h. */ 15621 15622 #include <stdlib.h> 15623 #include <time.h> 15624 #include <string.h> 15625 15626 #if HAVE_TZNAME 15627 extern char *tzname[]; 15628 #endif 15629 15630 int main() 15631 { 15632 /* Note that we need to ensure that not only does tzset(3) 15633 do 'something' with localtime, but it works as documented 15634 in the library reference and as expected by the test suite. 15635 This includes making sure that tzname is set properly if 15636 tm->tm_zone does not exist since it is the alternative way 15637 of getting timezone info. 15638 15639 Red Hat 6.2 doesn't understand the southern hemisphere 15640 after New Year's Day. 15641 */ 15642 15643 time_t groundhogday = 1044144000; /* GMT-based */ 15644 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 15645 15646 putenv("TZ=UTC+0"); 15647 tzset(); 15648 if (localtime(&groundhogday)->tm_hour != 0) 15649 exit(1); 15650 #if HAVE_TZNAME 15651 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 15652 if (strcmp(tzname[0], "UTC") || 15653 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 15654 exit(1); 15655 #endif 15656 15657 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 15658 tzset(); 15659 if (localtime(&groundhogday)->tm_hour != 19) 15660 exit(1); 15661 #if HAVE_TZNAME 15662 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 15663 exit(1); 15664 #endif 15665 15666 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 15667 tzset(); 15668 if (localtime(&groundhogday)->tm_hour != 11) 15669 exit(1); 15670 #if HAVE_TZNAME 15671 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 15672 exit(1); 15673 #endif 15674 15675 #if HAVE_STRUCT_TM_TM_ZONE 15676 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 15677 exit(1); 15678 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 15679 exit(1); 15680 #endif 15681 15682 exit(0); 15683 } 15684 15685 _ACEOF 15686 if ac_fn_c_try_run "$LINENO"; then : 15687 ac_cv_working_tzset=yes 15688 else 15689 ac_cv_working_tzset=no 15690 fi 15691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15692 conftest.$ac_objext conftest.beam conftest.$ac_ext 15693 fi 15694 15695 fi 15696 15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 15698 $as_echo "$ac_cv_working_tzset" >&6; } 15699 if test "$ac_cv_working_tzset" = yes 15700 then 15701 15702 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 15703 15704 fi 15705 15706 # Look for subsecond timestamps in struct stat 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 15708 $as_echo_n "checking for tv_nsec in struct stat... " >&6; } 15709 if ${ac_cv_stat_tv_nsec+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711 else 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713 /* end confdefs.h. */ 15714 #include <sys/stat.h> 15715 int 15716 main () 15717 { 15718 15719 struct stat st; 15720 st.st_mtim.tv_nsec = 1; 15721 15722 ; 15723 return 0; 15724 } 15725 _ACEOF 15726 if ac_fn_c_try_compile "$LINENO"; then : 15727 ac_cv_stat_tv_nsec=yes 15728 else 15729 ac_cv_stat_tv_nsec=no 15730 fi 15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15732 fi 15733 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 15735 $as_echo "$ac_cv_stat_tv_nsec" >&6; } 15736 if test "$ac_cv_stat_tv_nsec" = yes 15737 then 15738 15739 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 15740 15741 fi 15742 15743 # Look for BSD style subsecond timestamps in struct stat 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 15745 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 15746 if ${ac_cv_stat_tv_nsec2+:} false; then : 15747 $as_echo_n "(cached) " >&6 15748 else 15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750 /* end confdefs.h. */ 15751 #include <sys/stat.h> 15752 int 15753 main () 15754 { 15755 15756 struct stat st; 15757 st.st_mtimespec.tv_nsec = 1; 15758 15759 ; 15760 return 0; 15761 } 15762 _ACEOF 15763 if ac_fn_c_try_compile "$LINENO"; then : 15764 ac_cv_stat_tv_nsec2=yes 15765 else 15766 ac_cv_stat_tv_nsec2=no 15767 fi 15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15769 fi 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 15772 $as_echo "$ac_cv_stat_tv_nsec2" >&6; } 15773 if test "$ac_cv_stat_tv_nsec2" = yes 15774 then 15775 15776 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 15777 15778 fi 15779 15780 # first curses header check 15781 ac_save_cppflags="$CPPFLAGS" 15782 if test "$cross_compiling" = no; then 15783 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 15784 fi 15785 15786 for ac_header in curses.h ncurses.h 15787 do : 15788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15789 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15791 cat >>confdefs.h <<_ACEOF 15792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15793 _ACEOF 15794 15795 fi 15796 15797 done 15798 15799 15800 # On Solaris, term.h requires curses.h 15801 for ac_header in term.h 15802 do : 15803 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 15804 #ifdef HAVE_CURSES_H 15805 #include <curses.h> 15806 #endif 15807 15808 " 15809 if test "x$ac_cv_header_term_h" = xyes; then : 15810 cat >>confdefs.h <<_ACEOF 15811 #define HAVE_TERM_H 1 15812 _ACEOF 15813 15814 fi 15815 15816 done 15817 15818 15819 # On HP/UX 11.0, mvwdelch is a block with a return statement 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 15821 $as_echo_n "checking whether mvwdelch is an expression... " >&6; } 15822 if ${ac_cv_mvwdelch_is_expression+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824 else 15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826 /* end confdefs.h. */ 15827 #include <curses.h> 15828 int 15829 main () 15830 { 15831 15832 int rtn; 15833 rtn = mvwdelch(0,0,0); 15834 15835 ; 15836 return 0; 15837 } 15838 _ACEOF 15839 if ac_fn_c_try_compile "$LINENO"; then : 15840 ac_cv_mvwdelch_is_expression=yes 15841 else 15842 ac_cv_mvwdelch_is_expression=no 15843 fi 15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15845 fi 15846 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 15848 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 15849 15850 if test "$ac_cv_mvwdelch_is_expression" = yes 15851 then 15852 15853 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 15854 15855 fi 15856 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 15858 $as_echo_n "checking whether WINDOW has _flags... " >&6; } 15859 if ${ac_cv_window_has_flags+:} false; then : 15860 $as_echo_n "(cached) " >&6 15861 else 15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15863 /* end confdefs.h. */ 15864 #include <curses.h> 15865 int 15866 main () 15867 { 15868 15869 WINDOW *w; 15870 w->_flags = 0; 15871 15872 ; 15873 return 0; 15874 } 15875 _ACEOF 15876 if ac_fn_c_try_compile "$LINENO"; then : 15877 ac_cv_window_has_flags=yes 15878 else 15879 ac_cv_window_has_flags=no 15880 fi 15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15882 fi 15883 15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 15885 $as_echo "$ac_cv_window_has_flags" >&6; } 15886 15887 15888 if test "$ac_cv_window_has_flags" = yes 15889 then 15890 15891 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 15892 15893 fi 15894 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 15896 $as_echo_n "checking for is_term_resized... " >&6; } 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898 /* end confdefs.h. */ 15899 #include <curses.h> 15900 int 15901 main () 15902 { 15903 void *x=is_term_resized 15904 ; 15905 return 0; 15906 } 15907 _ACEOF 15908 if ac_fn_c_try_compile "$LINENO"; then : 15909 15910 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 15911 15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15913 $as_echo "yes" >&6; } 15914 else 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15916 $as_echo "no" >&6; } 15917 15918 fi 15919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15920 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 15922 $as_echo_n "checking for resize_term... " >&6; } 15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924 /* end confdefs.h. */ 15925 #include <curses.h> 15926 int 15927 main () 15928 { 15929 void *x=resize_term 15930 ; 15931 return 0; 15932 } 15933 _ACEOF 15934 if ac_fn_c_try_compile "$LINENO"; then : 15935 15936 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 15937 15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15939 $as_echo "yes" >&6; } 15940 else 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15942 $as_echo "no" >&6; } 15943 15944 fi 15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15946 15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 15948 $as_echo_n "checking for resizeterm... " >&6; } 15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15950 /* end confdefs.h. */ 15951 #include <curses.h> 15952 int 15953 main () 15954 { 15955 void *x=resizeterm 15956 ; 15957 return 0; 15958 } 15959 _ACEOF 15960 if ac_fn_c_try_compile "$LINENO"; then : 15961 15962 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 15963 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15965 $as_echo "yes" >&6; } 15966 else 15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15968 $as_echo "no" >&6; } 15969 15970 fi 15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15972 # last curses configure check 15973 CPPFLAGS=$ac_save_cppflags 15974 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 15976 $as_echo "$as_me: checking for device files" >&6;} 15977 15978 if test "x$cross_compiling" = xyes; then 15979 if test "${ac_cv_file__dev_ptmx+set}" != set; then 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 15981 $as_echo_n "checking for /dev/ptmx... " >&6; } 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 15983 $as_echo "not set" >&6; } 15984 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 15985 fi 15986 if test "${ac_cv_file__dev_ptc+set}" != set; then 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 15988 $as_echo_n "checking for /dev/ptc... " >&6; } 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 15990 $as_echo "not set" >&6; } 15991 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 15992 fi 15993 fi 15994 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 15996 $as_echo_n "checking for /dev/ptmx... " >&6; } 15997 if ${ac_cv_file__dev_ptmx+:} false; then : 15998 $as_echo_n "(cached) " >&6 15999 else 16000 test "$cross_compiling" = yes && 16001 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16002 if test -r "/dev/ptmx"; then 16003 ac_cv_file__dev_ptmx=yes 16004 else 16005 ac_cv_file__dev_ptmx=no 16006 fi 16007 fi 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 16009 $as_echo "$ac_cv_file__dev_ptmx" >&6; } 16010 if test "x$ac_cv_file__dev_ptmx" = xyes; then : 16011 16012 fi 16013 16014 if test "x$ac_cv_file__dev_ptmx" = xyes; then 16015 16016 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 16017 16018 fi 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16020 $as_echo_n "checking for /dev/ptc... " >&6; } 16021 if ${ac_cv_file__dev_ptc+:} false; then : 16022 $as_echo_n "(cached) " >&6 16023 else 16024 test "$cross_compiling" = yes && 16025 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16026 if test -r "/dev/ptc"; then 16027 ac_cv_file__dev_ptc=yes 16028 else 16029 ac_cv_file__dev_ptc=no 16030 fi 16031 fi 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 16033 $as_echo "$ac_cv_file__dev_ptc" >&6; } 16034 if test "x$ac_cv_file__dev_ptc" = xyes; then : 16035 16036 fi 16037 16038 if test "x$ac_cv_file__dev_ptc" = xyes; then 16039 16040 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 16041 16042 fi 16043 16044 if test $ac_sys_system = Darwin 16045 then 16046 LIBS="$LIBS -framework CoreFoundation" 16047 fi 16048 16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 16050 $as_echo_n "checking for %zd printf() format support... " >&6; } 16051 if ${ac_cv_have_size_t_format+:} false; then : 16052 $as_echo_n "(cached) " >&6 16053 else 16054 if test "$cross_compiling" = yes; then : 16055 ac_cv_have_size_t_format="cross -- assuming yes" 16056 16057 else 16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16059 /* end confdefs.h. */ 16060 16061 #include <stdio.h> 16062 #include <stddef.h> 16063 #include <string.h> 16064 16065 #ifdef HAVE_SYS_TYPES_H 16066 #include <sys/types.h> 16067 #endif 16068 16069 #ifdef HAVE_SSIZE_T 16070 typedef ssize_t Py_ssize_t; 16071 #elif SIZEOF_VOID_P == SIZEOF_LONG 16072 typedef long Py_ssize_t; 16073 #else 16074 typedef int Py_ssize_t; 16075 #endif 16076 16077 int main() 16078 { 16079 char buffer[256]; 16080 16081 if(sprintf(buffer, "%zd", (size_t)123) < 0) 16082 return 1; 16083 16084 if (strcmp(buffer, "123")) 16085 return 1; 16086 16087 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 16088 return 1; 16089 16090 if (strcmp(buffer, "-123")) 16091 return 1; 16092 16093 return 0; 16094 } 16095 16096 _ACEOF 16097 if ac_fn_c_try_run "$LINENO"; then : 16098 ac_cv_have_size_t_format=yes 16099 else 16100 ac_cv_have_size_t_format=no 16101 fi 16102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16103 conftest.$ac_objext conftest.beam conftest.$ac_ext 16104 fi 16105 16106 fi 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 16108 $as_echo "$ac_cv_have_size_t_format" >&6; } 16109 if test "$ac_cv_have_size_t_format" != no ; then 16110 16111 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 16112 16113 fi 16114 16115 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16116 #ifdef HAVE_SYS_TYPES_H 16117 #include <sys/types.h> 16118 #endif 16119 #ifdef HAVE_SYS_SOCKET_H 16120 #include <sys/socket.h> 16121 #endif 16122 16123 " 16124 if test "x$ac_cv_type_socklen_t" = xyes; then : 16125 16126 else 16127 16128 $as_echo "#define socklen_t int" >>confdefs.h 16129 16130 fi 16131 16132 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 16134 $as_echo_n "checking for broken mbstowcs... " >&6; } 16135 if ${ac_cv_broken_mbstowcs+:} false; then : 16136 $as_echo_n "(cached) " >&6 16137 else 16138 if test "$cross_compiling" = yes; then : 16139 ac_cv_broken_mbstowcs=no 16140 else 16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16142 /* end confdefs.h. */ 16143 16144 #include <stdio.h> 16145 #include<stdlib.h> 16146 int main() { 16147 size_t len = -1; 16148 const char *str = "text"; 16149 len = mbstowcs(NULL, str, 0); 16150 return (len != 4); 16151 } 16152 16153 _ACEOF 16154 if ac_fn_c_try_run "$LINENO"; then : 16155 ac_cv_broken_mbstowcs=no 16156 else 16157 ac_cv_broken_mbstowcs=yes 16158 fi 16159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16160 conftest.$ac_objext conftest.beam conftest.$ac_ext 16161 fi 16162 16163 fi 16164 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 16166 $as_echo "$ac_cv_broken_mbstowcs" >&6; } 16167 if test "$ac_cv_broken_mbstowcs" = yes 16168 then 16169 16170 $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 16171 16172 fi 16173 16174 # Check for --with-computed-gotos 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 16176 $as_echo_n "checking for --with-computed-gotos... " >&6; } 16177 16178 # Check whether --with-computed-gotos was given. 16179 if test "${with_computed_gotos+set}" = set; then : 16180 withval=$with_computed_gotos; 16181 if test "$withval" = yes 16182 then 16183 16184 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 16185 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16187 $as_echo "yes" >&6; } 16188 fi 16189 if test "$withval" = no 16190 then 16191 16192 $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 16193 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16195 $as_echo "no" >&6; } 16196 fi 16197 16198 else 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 16200 $as_echo "no value specified" >&6; } 16201 fi 16202 16203 16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 16205 $as_echo_n "checking whether $CC supports computed gotos... " >&6; } 16206 if ${ac_cv_computed_gotos+:} false; then : 16207 $as_echo_n "(cached) " >&6 16208 else 16209 if test "$cross_compiling" = yes; then : 16210 if test "${with_computed_gotos+set}" = set; then 16211 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 16212 else 16213 ac_cv_computed_gotos=no 16214 fi 16215 else 16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16217 /* end confdefs.h. */ 16218 16219 int main(int argc, char **argv) 16220 { 16221 static void *targets[1] = { &&LABEL1 }; 16222 goto LABEL2; 16223 LABEL1: 16224 return 0; 16225 LABEL2: 16226 goto *targets[0]; 16227 return 1; 16228 } 16229 16230 _ACEOF 16231 if ac_fn_c_try_run "$LINENO"; then : 16232 ac_cv_computed_gotos=yes 16233 else 16234 ac_cv_computed_gotos=no 16235 fi 16236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16237 conftest.$ac_objext conftest.beam conftest.$ac_ext 16238 fi 16239 16240 fi 16241 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 16243 $as_echo "$ac_cv_computed_gotos" >&6; } 16244 case "$ac_cv_computed_gotos" in yes*) 16245 16246 $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 16247 16248 esac 16249 16250 case $ac_sys_system in 16251 AIX*) 16252 16253 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 16254 ;; 16255 esac 16256 16257 16258 16259 16260 for h in `(cd $srcdir;echo Python/thread_*.h)` 16261 do 16262 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 16263 done 16264 16265 16266 SRCDIRS="Parser Grammar Objects Python Modules Mac Programs" 16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 16268 $as_echo_n "checking for build directories... " >&6; } 16269 for dir in $SRCDIRS; do 16270 if test ! -d $dir; then 16271 mkdir $dir 16272 fi 16273 done 16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16275 $as_echo "done" >&6; } 16276 16277 # Availability of -O2: 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 16279 $as_echo_n "checking for -O2... " >&6; } 16280 saved_cflags="$CFLAGS" 16281 CFLAGS="-O2" 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283 /* end confdefs.h. */ 16284 16285 int 16286 main () 16287 { 16288 16289 16290 ; 16291 return 0; 16292 } 16293 _ACEOF 16294 if ac_fn_c_try_compile "$LINENO"; then : 16295 have_O2=yes 16296 else 16297 have_O2=no 16298 fi 16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 16301 $as_echo "$have_O2" >&6; } 16302 CFLAGS="$saved_cflags" 16303 16304 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 16305 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 16307 $as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 16308 saved_cflags="$CFLAGS" 16309 CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 16310 if test "$have_O2" = no; then 16311 CFLAGS="" 16312 fi 16313 if test "$cross_compiling" = yes; then : 16314 have_glibc_memmove_bug=undefined 16315 else 16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317 /* end confdefs.h. */ 16318 16319 #include <stdio.h> 16320 #include <stdlib.h> 16321 #include <string.h> 16322 void foo(void *p, void *q) { memmove(p, q, 19); } 16323 int main() { 16324 char a[32] = "123456789000000000"; 16325 foo(&a[9], a); 16326 if (strcmp(a, "123456789123456789000000000") != 0) 16327 return 1; 16328 foo(a, &a[9]); 16329 if (strcmp(a, "123456789000000000") != 0) 16330 return 1; 16331 return 0; 16332 } 16333 16334 _ACEOF 16335 if ac_fn_c_try_run "$LINENO"; then : 16336 have_glibc_memmove_bug=no 16337 else 16338 have_glibc_memmove_bug=yes 16339 fi 16340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16341 conftest.$ac_objext conftest.beam conftest.$ac_ext 16342 fi 16343 16344 CFLAGS="$saved_cflags" 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 16346 $as_echo "$have_glibc_memmove_bug" >&6; } 16347 if test "$have_glibc_memmove_bug" = yes; then 16348 16349 $as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 16350 16351 fi 16352 16353 if test "$have_gcc_asm_for_x87" = yes; then 16354 # Some versions of gcc miscompile inline asm: 16355 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 16356 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 16357 case $CC in 16358 *gcc*) 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 16360 $as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } 16361 saved_cflags="$CFLAGS" 16362 CFLAGS="-O2" 16363 if test "$cross_compiling" = yes; then : 16364 have_ipa_pure_const_bug=undefined 16365 else 16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367 /* end confdefs.h. */ 16368 16369 __attribute__((noinline)) int 16370 foo(int *p) { 16371 int r; 16372 asm ( "movl \$6, (%1)\n\t" 16373 "xorl %0, %0\n\t" 16374 : "=r" (r) : "r" (p) : "memory" 16375 ); 16376 return r; 16377 } 16378 int main() { 16379 int p = 8; 16380 if ((foo(&p) ? : p) != 6) 16381 return 1; 16382 return 0; 16383 } 16384 16385 _ACEOF 16386 if ac_fn_c_try_run "$LINENO"; then : 16387 have_ipa_pure_const_bug=no 16388 else 16389 have_ipa_pure_const_bug=yes 16390 fi 16391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16392 conftest.$ac_objext conftest.beam conftest.$ac_ext 16393 fi 16394 16395 CFLAGS="$saved_cflags" 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 16397 $as_echo "$have_ipa_pure_const_bug" >&6; } 16398 if test "$have_ipa_pure_const_bug" = yes; then 16399 16400 $as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 16401 16402 fi 16403 ;; 16404 esac 16405 fi 16406 16407 # Check for stdatomic.h 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 16409 $as_echo_n "checking for stdatomic.h... " >&6; } 16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411 /* end confdefs.h. */ 16412 16413 16414 #include <stdatomic.h> 16415 atomic_int value = ATOMIC_VAR_INIT(1); 16416 _Atomic void *py_atomic_address = (void*) &value; 16417 int main() { 16418 int loaded_value = atomic_load(&value); 16419 return 0; 16420 } 16421 16422 16423 _ACEOF 16424 if ac_fn_c_try_link "$LINENO"; then : 16425 have_stdatomic_h=yes 16426 else 16427 have_stdatomic_h=no 16428 fi 16429 rm -f core conftest.err conftest.$ac_objext \ 16430 conftest$ac_exeext conftest.$ac_ext 16431 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 16433 $as_echo "$have_stdatomic_h" >&6; } 16434 16435 if test "$have_stdatomic_h" = yes; then 16436 16437 $as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h 16438 16439 fi 16440 16441 # Check for GCC >= 4.7 __atomic builtins 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 16443 $as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } 16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16445 /* end confdefs.h. */ 16446 16447 16448 volatile int val = 1; 16449 int main() { 16450 __atomic_load_n(&val, __ATOMIC_SEQ_CST); 16451 return 0; 16452 } 16453 16454 16455 _ACEOF 16456 if ac_fn_c_try_link "$LINENO"; then : 16457 have_builtin_atomic=yes 16458 else 16459 have_builtin_atomic=no 16460 fi 16461 rm -f core conftest.err conftest.$ac_objext \ 16462 conftest$ac_exeext conftest.$ac_ext 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 16465 $as_echo "$have_builtin_atomic" >&6; } 16466 16467 if test "$have_builtin_atomic" = yes; then 16468 16469 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 16470 16471 fi 16472 16473 # ensurepip option 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 16475 $as_echo_n "checking for ensurepip... " >&6; } 16476 16477 # Check whether --with-ensurepip was given. 16478 if test "${with_ensurepip+set}" = set; then : 16479 withval=$with_ensurepip; 16480 else 16481 with_ensurepip=upgrade 16482 fi 16483 16484 case $with_ensurepip in #( 16485 yes|upgrade) : 16486 ENSUREPIP=upgrade ;; #( 16487 install) : 16488 ENSUREPIP=install ;; #( 16489 no) : 16490 ENSUREPIP=no ;; #( 16491 *) : 16492 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 16493 esac 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 16495 $as_echo "$ENSUREPIP" >&6; } 16496 16497 16498 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 16500 $as_echo_n "checking if the dirent structure of a d_type field... " >&6; } 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502 /* end confdefs.h. */ 16503 16504 16505 #include <dirent.h> 16506 16507 int main() { 16508 struct dirent entry; 16509 return entry.d_type == DT_UNKNOWN; 16510 } 16511 16512 16513 _ACEOF 16514 if ac_fn_c_try_link "$LINENO"; then : 16515 have_dirent_d_type=yes 16516 else 16517 have_dirent_d_type=no 16518 fi 16519 rm -f core conftest.err conftest.$ac_objext \ 16520 conftest$ac_exeext conftest.$ac_ext 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 16522 $as_echo "$have_dirent_d_type" >&6; } 16523 16524 if test "$have_dirent_d_type" = yes; then 16525 16526 $as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 16527 16528 fi 16529 16530 # check if the Linux getrandom() syscall is available 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 16532 $as_echo_n "checking for the Linux getrandom() syscall... " >&6; } 16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16534 /* end confdefs.h. */ 16535 16536 16537 #include <unistd.h> 16538 #include <sys/syscall.h> 16539 #include <linux/random.h> 16540 16541 int main() { 16542 char buffer[1]; 16543 const size_t buflen = sizeof(buffer); 16544 const int flags = GRND_NONBLOCK; 16545 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 16546 (void)syscall(SYS_getrandom, buffer, buflen, flags); 16547 return 0; 16548 } 16549 16550 16551 _ACEOF 16552 if ac_fn_c_try_link "$LINENO"; then : 16553 have_getrandom_syscall=yes 16554 else 16555 have_getrandom_syscall=no 16556 fi 16557 rm -f core conftest.err conftest.$ac_objext \ 16558 conftest$ac_exeext conftest.$ac_ext 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 16560 $as_echo "$have_getrandom_syscall" >&6; } 16561 16562 if test "$have_getrandom_syscall" = yes; then 16563 16564 $as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 16565 16566 fi 16567 16568 # check if the getrandom() function is available 16569 # the test was written for the Solaris function of <sys/random.h> 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 16571 $as_echo_n "checking for the getrandom() function... " >&6; } 16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16573 /* end confdefs.h. */ 16574 16575 16576 #include <sys/random.h> 16577 16578 int main() { 16579 char buffer[1]; 16580 const size_t buflen = sizeof(buffer); 16581 const int flags = 0; 16582 /* ignore the result, Python checks for ENOSYS at runtime */ 16583 (void)getrandom(buffer, buflen, flags); 16584 return 0; 16585 } 16586 16587 16588 _ACEOF 16589 if ac_fn_c_try_link "$LINENO"; then : 16590 have_getrandom=yes 16591 else 16592 have_getrandom=no 16593 fi 16594 rm -f core conftest.err conftest.$ac_objext \ 16595 conftest$ac_exeext conftest.$ac_ext 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 16597 $as_echo "$have_getrandom" >&6; } 16598 16599 if test "$have_getrandom" = yes; then 16600 16601 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h 16602 16603 fi 16604 16605 # generate output files 16606 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh" 16607 16608 ac_config_files="$ac_config_files Modules/ld_so_aix" 16609 16610 cat >confcache <<\_ACEOF 16611 # This file is a shell script that caches the results of configure 16612 # tests run on this system so they can be shared between configure 16613 # scripts and configure runs, see configure's option --config-cache. 16614 # It is not useful on other systems. If it contains results you don't 16615 # want to keep, you may remove or edit it. 16616 # 16617 # config.status only pays attention to the cache file if you give it 16618 # the --recheck option to rerun configure. 16619 # 16620 # `ac_cv_env_foo' variables (set or unset) will be overridden when 16621 # loading this file, other *unset* `ac_cv_foo' will be assigned the 16622 # following values. 16623 16624 _ACEOF 16625 16626 # The following way of writing the cache mishandles newlines in values, 16627 # but we know of no workaround that is simple, portable, and efficient. 16628 # So, we kill variables containing newlines. 16629 # Ultrix sh set writes to stderr and can't be redirected directly, 16630 # and sets the high bit in the cache file unless we assign to the vars. 16631 ( 16632 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16633 eval ac_val=\$$ac_var 16634 case $ac_val in #( 16635 *${as_nl}*) 16636 case $ac_var in #( 16637 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16639 esac 16640 case $ac_var in #( 16641 _ | IFS | as_nl) ;; #( 16642 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16643 *) { eval $ac_var=; unset $ac_var;} ;; 16644 esac ;; 16645 esac 16646 done 16647 16648 (set) 2>&1 | 16649 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16650 *${as_nl}ac_space=\ *) 16651 # `set' does not quote correctly, so add quotes: double-quote 16652 # substitution turns \\\\ into \\, and sed turns \\ into \. 16653 sed -n \ 16654 "s/'/'\\\\''/g; 16655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16656 ;; #( 16657 *) 16658 # `set' quotes correctly as required by POSIX, so do not add quotes. 16659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16660 ;; 16661 esac | 16662 sort 16663 ) | 16664 sed ' 16665 /^ac_cv_env_/b end 16666 t clear 16667 :clear 16668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16669 t end 16670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16671 :end' >>confcache 16672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16673 if test -w "$cache_file"; then 16674 if test "x$cache_file" != "x/dev/null"; then 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16676 $as_echo "$as_me: updating cache $cache_file" >&6;} 16677 if test ! -f "$cache_file" || test -h "$cache_file"; then 16678 cat confcache >"$cache_file" 16679 else 16680 case $cache_file in #( 16681 */* | ?:*) 16682 mv -f confcache "$cache_file"$$ && 16683 mv -f "$cache_file"$$ "$cache_file" ;; #( 16684 *) 16685 mv -f confcache "$cache_file" ;; 16686 esac 16687 fi 16688 fi 16689 else 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16692 fi 16693 fi 16694 rm -f confcache 16695 16696 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16697 # Let make expand exec_prefix. 16698 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16699 16700 DEFS=-DHAVE_CONFIG_H 16701 16702 ac_libobjs= 16703 ac_ltlibobjs= 16704 U= 16705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16706 # 1. Remove the extension, and $U if already installed. 16707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16710 # will be set to the directory where LIBOBJS objects are built. 16711 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16712 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16713 done 16714 LIBOBJS=$ac_libobjs 16715 16716 LTLIBOBJS=$ac_ltlibobjs 16717 16718 16719 16720 16721 : "${CONFIG_STATUS=./config.status}" 16722 ac_write_fail=0 16723 ac_clean_files_save=$ac_clean_files 16724 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16727 as_write_fail=0 16728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16729 #! $SHELL 16730 # Generated by $as_me. 16731 # Run this file to recreate the current configuration. 16732 # Compiler output produced by configure, useful for debugging 16733 # configure, is in config.log if it exists. 16734 16735 debug=false 16736 ac_cs_recheck=false 16737 ac_cs_silent=false 16738 16739 SHELL=\${CONFIG_SHELL-$SHELL} 16740 export SHELL 16741 _ASEOF 16742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16743 ## -------------------- ## 16744 ## M4sh Initialization. ## 16745 ## -------------------- ## 16746 16747 # Be more Bourne compatible 16748 DUALCASE=1; export DUALCASE # for MKS sh 16749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16750 emulate sh 16751 NULLCMD=: 16752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16753 # is contrary to our usage. Disable this feature. 16754 alias -g '${1+"$@"}'='"$@"' 16755 setopt NO_GLOB_SUBST 16756 else 16757 case `(set -o) 2>/dev/null` in #( 16758 *posix*) : 16759 set -o posix ;; #( 16760 *) : 16761 ;; 16762 esac 16763 fi 16764 16765 16766 as_nl=' 16767 ' 16768 export as_nl 16769 # Printing a long string crashes Solaris 7 /usr/bin/printf. 16770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16773 # Prefer a ksh shell builtin over an external printf program on Solaris, 16774 # but without wasting forks for bash or zsh. 16775 if test -z "$BASH_VERSION$ZSH_VERSION" \ 16776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16777 as_echo='print -r --' 16778 as_echo_n='print -rn --' 16779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16780 as_echo='printf %s\n' 16781 as_echo_n='printf %s' 16782 else 16783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16785 as_echo_n='/usr/ucb/echo -n' 16786 else 16787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16788 as_echo_n_body='eval 16789 arg=$1; 16790 case $arg in #( 16791 *"$as_nl"*) 16792 expr "X$arg" : "X\\(.*\\)$as_nl"; 16793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16794 esac; 16795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16796 ' 16797 export as_echo_n_body 16798 as_echo_n='sh -c $as_echo_n_body as_echo' 16799 fi 16800 export as_echo_body 16801 as_echo='sh -c $as_echo_body as_echo' 16802 fi 16803 16804 # The user is always right. 16805 if test "${PATH_SEPARATOR+set}" != set; then 16806 PATH_SEPARATOR=: 16807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16809 PATH_SEPARATOR=';' 16810 } 16811 fi 16812 16813 16814 # IFS 16815 # We need space, tab and new line, in precisely that order. Quoting is 16816 # there to prevent editors from complaining about space-tab. 16817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 16818 # splitting by setting IFS to empty value.) 16819 IFS=" "" $as_nl" 16820 16821 # Find who we are. Look in the path if we contain no directory separator. 16822 as_myself= 16823 case $0 in #(( 16824 *[\\/]* ) as_myself=$0 ;; 16825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16826 for as_dir in $PATH 16827 do 16828 IFS=$as_save_IFS 16829 test -z "$as_dir" && as_dir=. 16830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16831 done 16832 IFS=$as_save_IFS 16833 16834 ;; 16835 esac 16836 # We did not find ourselves, most probably we were run as `sh COMMAND' 16837 # in which case we are not to be found in the path. 16838 if test "x$as_myself" = x; then 16839 as_myself=$0 16840 fi 16841 if test ! -f "$as_myself"; then 16842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16843 exit 1 16844 fi 16845 16846 # Unset variables that we do not need and which cause bugs (e.g. in 16847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16848 # suppresses any "Segmentation fault" message there. '((' could 16849 # trigger a bug in pdksh 5.2.14. 16850 for as_var in BASH_ENV ENV MAIL MAILPATH 16851 do eval test x\${$as_var+set} = xset \ 16852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16853 done 16854 PS1='$ ' 16855 PS2='> ' 16856 PS4='+ ' 16857 16858 # NLS nuisances. 16859 LC_ALL=C 16860 export LC_ALL 16861 LANGUAGE=C 16862 export LANGUAGE 16863 16864 # CDPATH. 16865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16866 16867 16868 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16869 # ---------------------------------------- 16870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16872 # script with STATUS, using 1 if that was 0. 16873 as_fn_error () 16874 { 16875 as_status=$1; test $as_status -eq 0 && as_status=1 16876 if test "$4"; then 16877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16879 fi 16880 $as_echo "$as_me: error: $2" >&2 16881 as_fn_exit $as_status 16882 } # as_fn_error 16883 16884 16885 # as_fn_set_status STATUS 16886 # ----------------------- 16887 # Set $? to STATUS, without forking. 16888 as_fn_set_status () 16889 { 16890 return $1 16891 } # as_fn_set_status 16892 16893 # as_fn_exit STATUS 16894 # ----------------- 16895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16896 as_fn_exit () 16897 { 16898 set +e 16899 as_fn_set_status $1 16900 exit $1 16901 } # as_fn_exit 16902 16903 # as_fn_unset VAR 16904 # --------------- 16905 # Portably unset VAR. 16906 as_fn_unset () 16907 { 16908 { eval $1=; unset $1;} 16909 } 16910 as_unset=as_fn_unset 16911 # as_fn_append VAR VALUE 16912 # ---------------------- 16913 # Append the text in VALUE to the end of the definition contained in VAR. Take 16914 # advantage of any shell optimizations that allow amortized linear growth over 16915 # repeated appends, instead of the typical quadratic growth present in naive 16916 # implementations. 16917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16918 eval 'as_fn_append () 16919 { 16920 eval $1+=\$2 16921 }' 16922 else 16923 as_fn_append () 16924 { 16925 eval $1=\$$1\$2 16926 } 16927 fi # as_fn_append 16928 16929 # as_fn_arith ARG... 16930 # ------------------ 16931 # Perform arithmetic evaluation on the ARGs, and store the result in the 16932 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16933 # must be portable across $(()) and expr. 16934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16935 eval 'as_fn_arith () 16936 { 16937 as_val=$(( $* )) 16938 }' 16939 else 16940 as_fn_arith () 16941 { 16942 as_val=`expr "$@" || test $? -eq 1` 16943 } 16944 fi # as_fn_arith 16945 16946 16947 if expr a : '\(a\)' >/dev/null 2>&1 && 16948 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16949 as_expr=expr 16950 else 16951 as_expr=false 16952 fi 16953 16954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16955 as_basename=basename 16956 else 16957 as_basename=false 16958 fi 16959 16960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16961 as_dirname=dirname 16962 else 16963 as_dirname=false 16964 fi 16965 16966 as_me=`$as_basename -- "$0" || 16967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16968 X"$0" : 'X\(//\)$' \| \ 16969 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16970 $as_echo X/"$0" | 16971 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16972 s//\1/ 16973 q 16974 } 16975 /^X\/\(\/\/\)$/{ 16976 s//\1/ 16977 q 16978 } 16979 /^X\/\(\/\).*/{ 16980 s//\1/ 16981 q 16982 } 16983 s/.*/./; q'` 16984 16985 # Avoid depending upon Character Ranges. 16986 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16989 as_cr_digits='0123456789' 16990 as_cr_alnum=$as_cr_Letters$as_cr_digits 16991 16992 ECHO_C= ECHO_N= ECHO_T= 16993 case `echo -n x` in #((((( 16994 -n*) 16995 case `echo 'xy\c'` in 16996 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16997 xy) ECHO_C='\c';; 16998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16999 ECHO_T=' ';; 17000 esac;; 17001 *) 17002 ECHO_N='-n';; 17003 esac 17004 17005 rm -f conf$$ conf$$.exe conf$$.file 17006 if test -d conf$$.dir; then 17007 rm -f conf$$.dir/conf$$.file 17008 else 17009 rm -f conf$$.dir 17010 mkdir conf$$.dir 2>/dev/null 17011 fi 17012 if (echo >conf$$.file) 2>/dev/null; then 17013 if ln -s conf$$.file conf$$ 2>/dev/null; then 17014 as_ln_s='ln -s' 17015 # ... but there are two gotchas: 17016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17018 # In both cases, we have to default to `cp -pR'. 17019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17020 as_ln_s='cp -pR' 17021 elif ln conf$$.file conf$$ 2>/dev/null; then 17022 as_ln_s=ln 17023 else 17024 as_ln_s='cp -pR' 17025 fi 17026 else 17027 as_ln_s='cp -pR' 17028 fi 17029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17030 rmdir conf$$.dir 2>/dev/null 17031 17032 17033 # as_fn_mkdir_p 17034 # ------------- 17035 # Create "$as_dir" as a directory, including parents if necessary. 17036 as_fn_mkdir_p () 17037 { 17038 17039 case $as_dir in #( 17040 -*) as_dir=./$as_dir;; 17041 esac 17042 test -d "$as_dir" || eval $as_mkdir_p || { 17043 as_dirs= 17044 while :; do 17045 case $as_dir in #( 17046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17047 *) as_qdir=$as_dir;; 17048 esac 17049 as_dirs="'$as_qdir' $as_dirs" 17050 as_dir=`$as_dirname -- "$as_dir" || 17051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17052 X"$as_dir" : 'X\(//\)[^/]' \| \ 17053 X"$as_dir" : 'X\(//\)$' \| \ 17054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17055 $as_echo X"$as_dir" | 17056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17057 s//\1/ 17058 q 17059 } 17060 /^X\(\/\/\)[^/].*/{ 17061 s//\1/ 17062 q 17063 } 17064 /^X\(\/\/\)$/{ 17065 s//\1/ 17066 q 17067 } 17068 /^X\(\/\).*/{ 17069 s//\1/ 17070 q 17071 } 17072 s/.*/./; q'` 17073 test -d "$as_dir" && break 17074 done 17075 test -z "$as_dirs" || eval "mkdir $as_dirs" 17076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17077 17078 17079 } # as_fn_mkdir_p 17080 if mkdir -p . 2>/dev/null; then 17081 as_mkdir_p='mkdir -p "$as_dir"' 17082 else 17083 test -d ./-p && rmdir ./-p 17084 as_mkdir_p=false 17085 fi 17086 17087 17088 # as_fn_executable_p FILE 17089 # ----------------------- 17090 # Test if FILE is an executable regular file. 17091 as_fn_executable_p () 17092 { 17093 test -f "$1" && test -x "$1" 17094 } # as_fn_executable_p 17095 as_test_x='test -x' 17096 as_executable_p=as_fn_executable_p 17097 17098 # Sed expression to map a string onto a valid CPP name. 17099 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17100 17101 # Sed expression to map a string onto a valid variable name. 17102 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17103 17104 17105 exec 6>&1 17106 ## ----------------------------------- ## 17107 ## Main body of $CONFIG_STATUS script. ## 17108 ## ----------------------------------- ## 17109 _ASEOF 17110 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17111 17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17113 # Save the log message, to keep $0 and so on meaningful, and to 17114 # report actual input values of CONFIG_FILES etc. instead of their 17115 # values after options handling. 17116 ac_log=" 17117 This file was extended by python $as_me 3.6, which was 17118 generated by GNU Autoconf 2.69. Invocation command line was 17119 17120 CONFIG_FILES = $CONFIG_FILES 17121 CONFIG_HEADERS = $CONFIG_HEADERS 17122 CONFIG_LINKS = $CONFIG_LINKS 17123 CONFIG_COMMANDS = $CONFIG_COMMANDS 17124 $ $0 $@ 17125 17126 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17127 " 17128 17129 _ACEOF 17130 17131 case $ac_config_files in *" 17132 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17133 esac 17134 17135 case $ac_config_headers in *" 17136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17137 esac 17138 17139 17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17141 # Files that config.status was made for. 17142 config_files="$ac_config_files" 17143 config_headers="$ac_config_headers" 17144 17145 _ACEOF 17146 17147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17148 ac_cs_usage="\ 17149 \`$as_me' instantiates files and other configuration actions 17150 from templates according to the current configuration. Unless the files 17151 and actions are specified as TAGs, all are instantiated by default. 17152 17153 Usage: $0 [OPTION]... [TAG]... 17154 17155 -h, --help print this help, then exit 17156 -V, --version print version number and configuration settings, then exit 17157 --config print configuration, then exit 17158 -q, --quiet, --silent 17159 do not print progress messages 17160 -d, --debug don't remove temporary files 17161 --recheck update $as_me by reconfiguring in the same conditions 17162 --file=FILE[:TEMPLATE] 17163 instantiate the configuration file FILE 17164 --header=FILE[:TEMPLATE] 17165 instantiate the configuration header FILE 17166 17167 Configuration files: 17168 $config_files 17169 17170 Configuration headers: 17171 $config_headers 17172 17173 Report bugs to <https://bugs.python.org/>." 17174 17175 _ACEOF 17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17177 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17178 ac_cs_version="\\ 17179 python config.status 3.6 17180 configured by $0, generated by GNU Autoconf 2.69, 17181 with options \\"\$ac_cs_config\\" 17182 17183 Copyright (C) 2012 Free Software Foundation, Inc. 17184 This config.status script is free software; the Free Software Foundation 17185 gives unlimited permission to copy, distribute and modify it." 17186 17187 ac_pwd='$ac_pwd' 17188 srcdir='$srcdir' 17189 INSTALL='$INSTALL' 17190 MKDIR_P='$MKDIR_P' 17191 test -n "\$AWK" || AWK=awk 17192 _ACEOF 17193 17194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17195 # The default lists apply if the user does not specify any file. 17196 ac_need_defaults=: 17197 while test $# != 0 17198 do 17199 case $1 in 17200 --*=?*) 17201 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17203 ac_shift=: 17204 ;; 17205 --*=) 17206 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17207 ac_optarg= 17208 ac_shift=: 17209 ;; 17210 *) 17211 ac_option=$1 17212 ac_optarg=$2 17213 ac_shift=shift 17214 ;; 17215 esac 17216 17217 case $ac_option in 17218 # Handling of the options. 17219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17220 ac_cs_recheck=: ;; 17221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17222 $as_echo "$ac_cs_version"; exit ;; 17223 --config | --confi | --conf | --con | --co | --c ) 17224 $as_echo "$ac_cs_config"; exit ;; 17225 --debug | --debu | --deb | --de | --d | -d ) 17226 debug=: ;; 17227 --file | --fil | --fi | --f ) 17228 $ac_shift 17229 case $ac_optarg in 17230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17231 '') as_fn_error $? "missing file argument" ;; 17232 esac 17233 as_fn_append CONFIG_FILES " '$ac_optarg'" 17234 ac_need_defaults=false;; 17235 --header | --heade | --head | --hea ) 17236 $ac_shift 17237 case $ac_optarg in 17238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17239 esac 17240 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17241 ac_need_defaults=false;; 17242 --he | --h) 17243 # Conflict between --help and --header 17244 as_fn_error $? "ambiguous option: \`$1' 17245 Try \`$0 --help' for more information.";; 17246 --help | --hel | -h ) 17247 $as_echo "$ac_cs_usage"; exit ;; 17248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17249 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17250 ac_cs_silent=: ;; 17251 17252 # This is an error. 17253 -*) as_fn_error $? "unrecognized option: \`$1' 17254 Try \`$0 --help' for more information." ;; 17255 17256 *) as_fn_append ac_config_targets " $1" 17257 ac_need_defaults=false ;; 17258 17259 esac 17260 shift 17261 done 17262 17263 ac_configure_extra_args= 17264 17265 if $ac_cs_silent; then 17266 exec 6>/dev/null 17267 ac_configure_extra_args="$ac_configure_extra_args --silent" 17268 fi 17269 17270 _ACEOF 17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17272 if \$ac_cs_recheck; then 17273 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17274 shift 17275 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17276 CONFIG_SHELL='$SHELL' 17277 export CONFIG_SHELL 17278 exec "\$@" 17279 fi 17280 17281 _ACEOF 17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17283 exec 5>>config.log 17284 { 17285 echo 17286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17287 ## Running $as_me. ## 17288 _ASBOX 17289 $as_echo "$ac_log" 17290 } >&5 17291 17292 _ACEOF 17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17294 _ACEOF 17295 17296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17297 17298 # Handling of arguments. 17299 for ac_config_target in $ac_config_targets 17300 do 17301 case $ac_config_target in 17302 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 17303 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 17304 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 17305 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 17306 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 17307 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 17308 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; 17309 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 17310 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 17311 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 17312 17313 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17314 esac 17315 done 17316 17317 17318 # If the user did not use the arguments to specify the items to instantiate, 17319 # then the envvar interface is used. Set only those that are not. 17320 # We use the long form for the default assignment because of an extremely 17321 # bizarre bug on SunOS 4.1.3. 17322 if $ac_need_defaults; then 17323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17325 fi 17326 17327 # Have a temporary directory for convenience. Make it in the build tree 17328 # simply because there is no reason against having it here, and in addition, 17329 # creating and moving files from /tmp can sometimes cause problems. 17330 # Hook for its removal unless debugging. 17331 # Note that there is a small window in which the directory will not be cleaned: 17332 # after its creation but before its name has been assigned to `$tmp'. 17333 $debug || 17334 { 17335 tmp= ac_tmp= 17336 trap 'exit_status=$? 17337 : "${ac_tmp:=$tmp}" 17338 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17339 ' 0 17340 trap 'as_fn_exit 1' 1 2 13 15 17341 } 17342 # Create a (secure) tmp directory for tmp files. 17343 17344 { 17345 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17346 test -d "$tmp" 17347 } || 17348 { 17349 tmp=./conf$$-$RANDOM 17350 (umask 077 && mkdir "$tmp") 17351 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17352 ac_tmp=$tmp 17353 17354 # Set up the scripts for CONFIG_FILES section. 17355 # No need to generate them if there are no CONFIG_FILES. 17356 # This happens for instance with `./config.status config.h'. 17357 if test -n "$CONFIG_FILES"; then 17358 17359 17360 ac_cr=`echo X | tr X '\015'` 17361 # On cygwin, bash can eat \r inside `` if the user requested igncr. 17362 # But we know of no other shell where ac_cr would be empty at this 17363 # point, so we can use a bashism as a fallback. 17364 if test "x$ac_cr" = x; then 17365 eval ac_cr=\$\'\\r\' 17366 fi 17367 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17368 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17369 ac_cs_awk_cr='\\r' 17370 else 17371 ac_cs_awk_cr=$ac_cr 17372 fi 17373 17374 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17375 _ACEOF 17376 17377 17378 { 17379 echo "cat >conf$$subs.awk <<_ACEOF" && 17380 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17381 echo "_ACEOF" 17382 } >conf$$subs.sh || 17383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17385 ac_delim='%!_!# ' 17386 for ac_last_try in false false false false false :; do 17387 . ./conf$$subs.sh || 17388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17389 17390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17391 if test $ac_delim_n = $ac_delim_num; then 17392 break 17393 elif $ac_last_try; then 17394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17395 else 17396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17397 fi 17398 done 17399 rm -f conf$$subs.sh 17400 17401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17402 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17403 _ACEOF 17404 sed -n ' 17405 h 17406 s/^/S["/; s/!.*/"]=/ 17407 p 17408 g 17409 s/^[^!]*!// 17410 :repl 17411 t repl 17412 s/'"$ac_delim"'$// 17413 t delim 17414 :nl 17415 h 17416 s/\(.\{148\}\)..*/\1/ 17417 t more1 17418 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17419 p 17420 n 17421 b repl 17422 :more1 17423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17424 p 17425 g 17426 s/.\{148\}// 17427 t nl 17428 :delim 17429 h 17430 s/\(.\{148\}\)..*/\1/ 17431 t more2 17432 s/["\\]/\\&/g; s/^/"/; s/$/"/ 17433 p 17434 b 17435 :more2 17436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17437 p 17438 g 17439 s/.\{148\}// 17440 t delim 17441 ' <conf$$subs.awk | sed ' 17442 /^[^""]/{ 17443 N 17444 s/\n// 17445 } 17446 ' >>$CONFIG_STATUS || ac_write_fail=1 17447 rm -f conf$$subs.awk 17448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17449 _ACAWK 17450 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17451 for (key in S) S_is_set[key] = 1 17452 FS = "" 17453 17454 } 17455 { 17456 line = $ 0 17457 nfields = split(line, field, "@") 17458 substed = 0 17459 len = length(field[1]) 17460 for (i = 2; i < nfields; i++) { 17461 key = field[i] 17462 keylen = length(key) 17463 if (S_is_set[key]) { 17464 value = S[key] 17465 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17466 len += length(value) + length(field[++i]) 17467 substed = 1 17468 } else 17469 len += 1 + keylen 17470 } 17471 17472 print line 17473 } 17474 17475 _ACAWK 17476 _ACEOF 17477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17480 else 17481 cat 17482 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17483 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17484 _ACEOF 17485 17486 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17487 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17488 # trailing colons and then remove the whole line if VPATH becomes empty 17489 # (actually we leave an empty line to preserve line numbers). 17490 if test "x$srcdir" = x.; then 17491 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17492 h 17493 s/// 17494 s/^/:/ 17495 s/[ ]*$/:/ 17496 s/:\$(srcdir):/:/g 17497 s/:\${srcdir}:/:/g 17498 s/:@srcdir@:/:/g 17499 s/^:*// 17500 s/:*$// 17501 x 17502 s/\(=[ ]*\).*/\1/ 17503 G 17504 s/\n// 17505 s/^[^=]*=[ ]*$// 17506 }' 17507 fi 17508 17509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17510 fi # test -n "$CONFIG_FILES" 17511 17512 # Set up the scripts for CONFIG_HEADERS section. 17513 # No need to generate them if there are no CONFIG_HEADERS. 17514 # This happens for instance with `./config.status Makefile'. 17515 if test -n "$CONFIG_HEADERS"; then 17516 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17517 BEGIN { 17518 _ACEOF 17519 17520 # Transform confdefs.h into an awk script `defines.awk', embedded as 17521 # here-document in config.status, that substitutes the proper values into 17522 # config.h.in to produce config.h. 17523 17524 # Create a delimiter string that does not exist in confdefs.h, to ease 17525 # handling of long lines. 17526 ac_delim='%!_!# ' 17527 for ac_last_try in false false :; do 17528 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17529 if test -z "$ac_tt"; then 17530 break 17531 elif $ac_last_try; then 17532 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17533 else 17534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17535 fi 17536 done 17537 17538 # For the awk script, D is an array of macro values keyed by name, 17539 # likewise P contains macro parameters if any. Preserve backslash 17540 # newline sequences. 17541 17542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17543 sed -n ' 17544 s/.\{148\}/&'"$ac_delim"'/g 17545 t rset 17546 :rset 17547 s/^[ ]*#[ ]*define[ ][ ]*/ / 17548 t def 17549 d 17550 :def 17551 s/\\$// 17552 t bsnl 17553 s/["\\]/\\&/g 17554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17555 D["\1"]=" \3"/p 17556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17557 d 17558 :bsnl 17559 s/["\\]/\\&/g 17560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17561 D["\1"]=" \3\\\\\\n"\\/p 17562 t cont 17563 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17564 t cont 17565 d 17566 :cont 17567 n 17568 s/.\{148\}/&'"$ac_delim"'/g 17569 t clear 17570 :clear 17571 s/\\$// 17572 t bsnlc 17573 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17574 d 17575 :bsnlc 17576 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17577 b cont 17578 ' <confdefs.h | sed ' 17579 s/'"$ac_delim"'/"\\\ 17580 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17581 17582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17583 for (key in D) D_is_set[key] = 1 17584 FS = "" 17585 } 17586 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17587 line = \$ 0 17588 split(line, arg, " ") 17589 if (arg[1] == "#") { 17590 defundef = arg[2] 17591 mac1 = arg[3] 17592 } else { 17593 defundef = substr(arg[1], 2) 17594 mac1 = arg[2] 17595 } 17596 split(mac1, mac2, "(") #) 17597 macro = mac2[1] 17598 prefix = substr(line, 1, index(line, defundef) - 1) 17599 if (D_is_set[macro]) { 17600 # Preserve the white space surrounding the "#". 17601 print prefix "define", macro P[macro] D[macro] 17602 next 17603 } else { 17604 # Replace #undef with comments. This is necessary, for example, 17605 # in the case of _POSIX_SOURCE, which is predefined and required 17606 # on some systems where configure will not decide to define it. 17607 if (defundef == "undef") { 17608 print "/*", prefix defundef, macro, "*/" 17609 next 17610 } 17611 } 17612 } 17613 { print } 17614 _ACAWK 17615 _ACEOF 17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17617 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17618 fi # test -n "$CONFIG_HEADERS" 17619 17620 17621 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 17622 shift 17623 for ac_tag 17624 do 17625 case $ac_tag in 17626 :[FHLC]) ac_mode=$ac_tag; continue;; 17627 esac 17628 case $ac_mode$ac_tag in 17629 :[FHL]*:*);; 17630 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17631 :[FH]-) ac_tag=-:-;; 17632 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17633 esac 17634 ac_save_IFS=$IFS 17635 IFS=: 17636 set x $ac_tag 17637 IFS=$ac_save_IFS 17638 shift 17639 ac_file=$1 17640 shift 17641 17642 case $ac_mode in 17643 :L) ac_source=$1;; 17644 :[FH]) 17645 ac_file_inputs= 17646 for ac_f 17647 do 17648 case $ac_f in 17649 -) ac_f="$ac_tmp/stdin";; 17650 *) # Look for the file first in the build tree, then in the source tree 17651 # (if the path is not absolute). The absolute path cannot be DOS-style, 17652 # because $ac_f cannot contain `:'. 17653 test -f "$ac_f" || 17654 case $ac_f in 17655 [\\/$]*) false;; 17656 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17657 esac || 17658 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17659 esac 17660 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17661 as_fn_append ac_file_inputs " '$ac_f'" 17662 done 17663 17664 # Let's still pretend it is `configure' which instantiates (i.e., don't 17665 # use $as_me), people would be surprised to read: 17666 # /* config.h. Generated by config.status. */ 17667 configure_input='Generated from '` 17668 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17669 `' by configure.' 17670 if test x"$ac_file" != x-; then 17671 configure_input="$ac_file. $configure_input" 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17673 $as_echo "$as_me: creating $ac_file" >&6;} 17674 fi 17675 # Neutralize special characters interpreted by sed in replacement strings. 17676 case $configure_input in #( 17677 *\&* | *\|* | *\\* ) 17678 ac_sed_conf_input=`$as_echo "$configure_input" | 17679 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17680 *) ac_sed_conf_input=$configure_input;; 17681 esac 17682 17683 case $ac_tag in 17684 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17686 esac 17687 ;; 17688 esac 17689 17690 ac_dir=`$as_dirname -- "$ac_file" || 17691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17692 X"$ac_file" : 'X\(//\)[^/]' \| \ 17693 X"$ac_file" : 'X\(//\)$' \| \ 17694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17695 $as_echo X"$ac_file" | 17696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17697 s//\1/ 17698 q 17699 } 17700 /^X\(\/\/\)[^/].*/{ 17701 s//\1/ 17702 q 17703 } 17704 /^X\(\/\/\)$/{ 17705 s//\1/ 17706 q 17707 } 17708 /^X\(\/\).*/{ 17709 s//\1/ 17710 q 17711 } 17712 s/.*/./; q'` 17713 as_dir="$ac_dir"; as_fn_mkdir_p 17714 ac_builddir=. 17715 17716 case "$ac_dir" in 17717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17718 *) 17719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17720 # A ".." for each directory in $ac_dir_suffix. 17721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17722 case $ac_top_builddir_sub in 17723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17725 esac ;; 17726 esac 17727 ac_abs_top_builddir=$ac_pwd 17728 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17729 # for backward compatibility: 17730 ac_top_builddir=$ac_top_build_prefix 17731 17732 case $srcdir in 17733 .) # We are building in place. 17734 ac_srcdir=. 17735 ac_top_srcdir=$ac_top_builddir_sub 17736 ac_abs_top_srcdir=$ac_pwd ;; 17737 [\\/]* | ?:[\\/]* ) # Absolute name. 17738 ac_srcdir=$srcdir$ac_dir_suffix; 17739 ac_top_srcdir=$srcdir 17740 ac_abs_top_srcdir=$srcdir ;; 17741 *) # Relative name. 17742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17743 ac_top_srcdir=$ac_top_build_prefix$srcdir 17744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17745 esac 17746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17747 17748 17749 case $ac_mode in 17750 :F) 17751 # 17752 # CONFIG_FILE 17753 # 17754 17755 case $INSTALL in 17756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17757 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17758 esac 17759 ac_MKDIR_P=$MKDIR_P 17760 case $MKDIR_P in 17761 [\\/$]* | ?:[\\/]* ) ;; 17762 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17763 esac 17764 _ACEOF 17765 17766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17767 # If the template does not know about datarootdir, expand it. 17768 # FIXME: This hack should be removed a few years after 2.60. 17769 ac_datarootdir_hack=; ac_datarootdir_seen= 17770 ac_sed_dataroot=' 17771 /datarootdir/ { 17772 p 17773 q 17774 } 17775 /@datadir@/p 17776 /@docdir@/p 17777 /@infodir@/p 17778 /@localedir@/p 17779 /@mandir@/p' 17780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17781 *datarootdir*) ac_datarootdir_seen=yes;; 17782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17785 _ACEOF 17786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17787 ac_datarootdir_hack=' 17788 s&@datadir@&$datadir&g 17789 s&@docdir@&$docdir&g 17790 s&@infodir@&$infodir&g 17791 s&@localedir@&$localedir&g 17792 s&@mandir@&$mandir&g 17793 s&\\\${datarootdir}&$datarootdir&g' ;; 17794 esac 17795 _ACEOF 17796 17797 # Neutralize VPATH when `$srcdir' = `.'. 17798 # Shell code in configure.ac might set extrasub. 17799 # FIXME: do we really want to maintain this feature? 17800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17801 ac_sed_extra="$ac_vpsub 17802 $extrasub 17803 _ACEOF 17804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17805 :t 17806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17807 s|@configure_input@|$ac_sed_conf_input|;t t 17808 s&@top_builddir@&$ac_top_builddir_sub&;t t 17809 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17810 s&@srcdir@&$ac_srcdir&;t t 17811 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17812 s&@top_srcdir@&$ac_top_srcdir&;t t 17813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17814 s&@builddir@&$ac_builddir&;t t 17815 s&@abs_builddir@&$ac_abs_builddir&;t t 17816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17817 s&@INSTALL@&$ac_INSTALL&;t t 17818 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17819 $ac_datarootdir_hack 17820 " 17821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17822 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17823 17824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17825 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17827 "$ac_tmp/out"`; test -z "$ac_out"; } && 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17829 which seems to be undefined. Please make sure it is defined" >&5 17830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17831 which seems to be undefined. Please make sure it is defined" >&2;} 17832 17833 rm -f "$ac_tmp/stdin" 17834 case $ac_file in 17835 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17836 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17837 esac \ 17838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17839 ;; 17840 :H) 17841 # 17842 # CONFIG_HEADER 17843 # 17844 if test x"$ac_file" != x-; then 17845 { 17846 $as_echo "/* $configure_input */" \ 17847 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17848 } >"$ac_tmp/config.h" \ 17849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17850 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17852 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17853 else 17854 rm -f "$ac_file" 17855 mv "$ac_tmp/config.h" "$ac_file" \ 17856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17857 fi 17858 else 17859 $as_echo "/* $configure_input */" \ 17860 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17861 || as_fn_error $? "could not create -" "$LINENO" 5 17862 fi 17863 ;; 17864 17865 17866 esac 17867 17868 17869 case $ac_file$ac_mode in 17870 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 17871 17872 esac 17873 done # for ac_tag 17874 17875 17876 as_fn_exit 0 17877 _ACEOF 17878 ac_clean_files=$ac_clean_files_save 17879 17880 test $ac_write_fail = 0 || 17881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17882 17883 17884 # configure is writing to config.log, and then calls config.status. 17885 # config.status does its own redirection, appending to config.log. 17886 # Unfortunately, on DOS this fails, as config.log is still kept open 17887 # by configure, so config.status won't be able to write to it; its 17888 # output is simply discarded. So we exec the FD to /dev/null, 17889 # effectively closing config.log, so it can be properly (re)opened and 17890 # appended to by config.status. When coming back to configure, we 17891 # need to make the FD available again. 17892 if test "$no_create" != yes; then 17893 ac_cs_success=: 17894 ac_config_status_args= 17895 test "$silent" = yes && 17896 ac_config_status_args="$ac_config_status_args --quiet" 17897 exec 5>/dev/null 17898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17899 exec 5>>config.log 17900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17901 # would make configure fail if this is the last instruction. 17902 $ac_cs_success || as_fn_exit 1 17903 fi 17904 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17906 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17907 fi 17908 17909 17910 echo "creating Modules/Setup" >&6 17911 if test ! -f Modules/Setup 17912 then 17913 cp $srcdir/Modules/Setup.dist Modules/Setup 17914 fi 17915 17916 echo "creating Modules/Setup.local" >&6 17917 if test ! -f Modules/Setup.local 17918 then 17919 echo "# Edit this file for local setup changes" >Modules/Setup.local 17920 fi 17921 17922 echo "creating Makefile" >&6 17923 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 17924 -s Modules Modules/Setup.config \ 17925 Modules/Setup.local Modules/Setup 17926 mv config.c Modules 17927 17928 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 17929 echo "" >&6 17930 echo "" >&6 17931 echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&6 17932 echo "please run ./configure --enable-optimizations" >&6 17933 echo "" >&6 17934 echo "" >&6 17935 fi 17936 17937