1 #! /bin/sh 2 # From configure.ac Revision. 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.69 for python 2.7. 5 # 6 # Report bugs to <https://bugs.python.org/>. 7 # 8 # 9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27 else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 35 36 37 as_nl=' 38 ' 39 export as_nl 40 # Printing a long string crashes Solaris 7 /usr/bin/printf. 41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44 # Prefer a ksh shell builtin over an external printf program on Solaris, 45 # but without wasting forks for bash or zsh. 46 if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53 else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73 fi 74 75 # The user is always right. 76 if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82 fi 83 84 85 # IFS 86 # We need space, tab and new line, in precisely that order. Quoting is 87 # there to prevent editors from complaining about space-tab. 88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 89 # splitting by setting IFS to empty value.) 90 IFS=" "" $as_nl" 91 92 # Find who we are. Look in the path if we contain no directory separator. 93 as_myself= 94 case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97 for as_dir in $PATH 98 do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103 IFS=$as_save_IFS 104 105 ;; 106 esac 107 # We did not find ourselves, most probably we were run as `sh COMMAND' 108 # in which case we are not to be found in the path. 109 if test "x$as_myself" = x; then 110 as_myself=$0 111 fi 112 if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115 fi 116 117 # Unset variables that we do not need and which cause bugs (e.g. in 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119 # suppresses any "Segmentation fault" message there. '((' could 120 # trigger a bug in pdksh 5.2.14. 121 for as_var in BASH_ENV ENV MAIL MAILPATH 122 do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124 done 125 PS1='$ ' 126 PS2='> ' 127 PS4='+ ' 128 129 # NLS nuisances. 130 LC_ALL=C 131 export LC_ALL 132 LANGUAGE=C 133 export LANGUAGE 134 135 # CDPATH. 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138 # Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143 # neutralization value for shells without unset; and this also 144 # works around shells that cannot unset nonexistent variables. 145 # Preserve -v and -x to the replacement shell. 146 BASH_ENV=/dev/null 147 ENV=/dev/null 148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149 case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154 esac 155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156 # Admittedly, this is quite paranoid, since all the known shells bail 157 # out after a failed `exec'. 158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159 as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163 if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171 else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177 esac 178 fi 179 " 180 as_required="as_fn_return () { (exit \$1); } 181 as_fn_success () { as_fn_return 0; } 182 as_fn_failure () { as_fn_return 1; } 183 as_fn_ret_success () { return 0; } 184 as_fn_ret_failure () { return 1; } 185 186 exitcode=0 187 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193 else 194 exitcode=1; echo positional parameters were not saved. 195 fi 196 test x\$exitcode = x0 || exit 1 197 test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 test \$(( 1 + 1 )) = 2 || exit 1" 203 if (eval "$as_required") 2>/dev/null; then : 204 as_have_required=yes 205 else 206 as_have_required=no 207 fi 208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 209 210 else 211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212 as_found=false 213 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 214 do 215 IFS=$as_save_IFS 216 test -z "$as_dir" && as_dir=. 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir/$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237 fi; } 238 IFS=$as_save_IFS 239 240 241 if test "x$CONFIG_SHELL" != x; then : 242 export CONFIG_SHELL 243 # We cannot yet assume a decent shell, so we have to provide a 244 # neutralization value for shells without unset; and this also 245 # works around shells that cannot unset nonexistent variables. 246 # Preserve -v and -x to the replacement shell. 247 BASH_ENV=/dev/null 248 ENV=/dev/null 249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 250 case $- in # (((( 251 *v*x* | *x*v* ) as_opts=-vx ;; 252 *v* ) as_opts=-v ;; 253 *x* ) as_opts=-x ;; 254 * ) as_opts= ;; 255 esac 256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 257 # Admittedly, this is quite paranoid, since all the known shells bail 258 # out after a failed `exec'. 259 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 260 exit 255 261 fi 262 263 if test x$as_have_required = xno; then : 264 $as_echo "$0: This script requires a shell more modern than all" 265 $as_echo "$0: the shells that I found on your system." 266 if test x${ZSH_VERSION+set} = xset ; then 267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 271 $0: https://bugs.python.org/ about your system, including 272 $0: any error possibly output before this message. Then 273 $0: install a modern shell, or manually run the script 274 $0: under such a shell if you do have one." 275 fi 276 exit 1 277 fi 278 fi 279 fi 280 SHELL=${CONFIG_SHELL-/bin/sh} 281 export SHELL 282 # Unset more variables known to interfere with behavior of common tools. 283 CLICOLOR_FORCE= GREP_OPTIONS= 284 unset CLICOLOR_FORCE GREP_OPTIONS 285 286 ## --------------------- ## 287 ## M4sh Shell Functions. ## 288 ## --------------------- ## 289 # as_fn_unset VAR 290 # --------------- 291 # Portably unset VAR. 292 as_fn_unset () 293 { 294 { eval $1=; unset $1;} 295 } 296 as_unset=as_fn_unset 297 298 # as_fn_set_status STATUS 299 # ----------------------- 300 # Set $? to STATUS, without forking. 301 as_fn_set_status () 302 { 303 return $1 304 } # as_fn_set_status 305 306 # as_fn_exit STATUS 307 # ----------------- 308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309 as_fn_exit () 310 { 311 set +e 312 as_fn_set_status $1 313 exit $1 314 } # as_fn_exit 315 316 # as_fn_mkdir_p 317 # ------------- 318 # Create "$as_dir" as a directory, including parents if necessary. 319 as_fn_mkdir_p () 320 { 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 $as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362 } # as_fn_mkdir_p 363 364 # as_fn_executable_p FILE 365 # ----------------------- 366 # Test if FILE is an executable regular file. 367 as_fn_executable_p () 368 { 369 test -f "$1" && test -x "$1" 370 } # as_fn_executable_p 371 # as_fn_append VAR VALUE 372 # ---------------------- 373 # Append the text in VALUE to the end of the definition contained in VAR. Take 374 # advantage of any shell optimizations that allow amortized linear growth over 375 # repeated appends, instead of the typical quadratic growth present in naive 376 # implementations. 377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382 else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387 fi # as_fn_append 388 389 # as_fn_arith ARG... 390 # ------------------ 391 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 # must be portable across $(()) and expr. 394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399 else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404 fi # as_fn_arith 405 406 407 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 # ---------------------------------------- 409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411 # script with STATUS, using 1 if that was 0. 412 as_fn_error () 413 { 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421 } # as_fn_error 422 423 if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426 else 427 as_expr=false 428 fi 429 430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432 else 433 as_basename=false 434 fi 435 436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438 else 439 as_dirname=false 440 fi 441 442 as_me=`$as_basename -- "$0" || 443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 $as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461 # Avoid depending upon Character Ranges. 462 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465 as_cr_digits='0123456789' 466 as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502 } 503 504 ECHO_C= ECHO_N= ECHO_T= 505 case `echo -n x` in #((((( 506 -n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513 *) 514 ECHO_N='-n';; 515 esac 516 517 rm -f conf$$ conf$$.exe conf$$.file 518 if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520 else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523 fi 524 if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538 else 539 as_ln_s='cp -pR' 540 fi 541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542 rmdir conf$$.dir 2>/dev/null 543 544 if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546 else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549 fi 550 551 as_test_x='test -x' 552 as_executable_p=as_fn_executable_p 553 554 # Sed expression to map a string onto a valid CPP name. 555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557 # Sed expression to map a string onto a valid variable name. 558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561 test -n "$DJDIR" || exec 7<&0 </dev/null 562 exec 6>&1 563 564 # Name of the host. 565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566 # so uname gets run too. 567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569 # 570 # Initializations. 571 # 572 ac_default_prefix=/usr/local 573 ac_clean_files= 574 ac_config_libobj_dir=. 575 LIBOBJS= 576 cross_compiling=no 577 subdirs= 578 MFLAGS= 579 MAKEFLAGS= 580 581 # Identity of this package. 582 PACKAGE_NAME='python' 583 PACKAGE_TARNAME='python' 584 PACKAGE_VERSION='2.7' 585 PACKAGE_STRING='python 2.7' 586 PACKAGE_BUGREPORT='https://bugs.python.org/' 587 PACKAGE_URL='' 588 589 ac_unique_file="Include/object.h" 590 # Factoring default headers for most tests. 591 ac_includes_default="\ 592 #include <stdio.h> 593 #ifdef HAVE_SYS_TYPES_H 594 # include <sys/types.h> 595 #endif 596 #ifdef HAVE_SYS_STAT_H 597 # include <sys/stat.h> 598 #endif 599 #ifdef STDC_HEADERS 600 # include <stdlib.h> 601 # include <stddef.h> 602 #else 603 # ifdef HAVE_STDLIB_H 604 # include <stdlib.h> 605 # endif 606 #endif 607 #ifdef HAVE_STRING_H 608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 # include <memory.h> 610 # endif 611 # include <string.h> 612 #endif 613 #ifdef HAVE_STRINGS_H 614 # include <strings.h> 615 #endif 616 #ifdef HAVE_INTTYPES_H 617 # include <inttypes.h> 618 #endif 619 #ifdef HAVE_STDINT_H 620 # include <stdint.h> 621 #endif 622 #ifdef HAVE_UNISTD_H 623 # include <unistd.h> 624 #endif" 625 626 ac_subst_vars='LTLIBOBJS 627 ENSUREPIP 628 SRCDIRS 629 THREADHEADERS 630 UNICODE_OBJS 631 LIBC 632 LIBM 633 HAVE_GETHOSTBYNAME 634 HAVE_GETHOSTBYNAME_R 635 HAVE_GETHOSTBYNAME_R_3_ARG 636 HAVE_GETHOSTBYNAME_R_5_ARG 637 HAVE_GETHOSTBYNAME_R_6_ARG 638 LIBOBJS 639 TRUE 640 MACHDEP_OBJS 641 DYNLOADFILE 642 DLINCLDIR 643 THREADOBJ 644 LDLAST 645 USE_THREAD_MODULE 646 SIGNAL_OBJS 647 USE_SIGNAL_MODULE 648 TCLTK_LIBS 649 TCLTK_INCLUDES 650 LIBFFI_INCLUDEDIR 651 PKG_CONFIG_LIBDIR 652 PKG_CONFIG_PATH 653 PKG_CONFIG 654 SHLIBS 655 CFLAGSFORSHARED 656 LINKFORSHARED 657 CCSHARED 658 BLDSHARED 659 LDCXXSHARED 660 LDSHARED 661 SO 662 LIBTOOL_CRUFT 663 OTHER_LIBTOOL_OPT 664 LLVM_PROF_FOUND 665 target_os 666 target_vendor 667 target_cpu 668 target 669 LLVM_PROFDATA 670 LLVM_PROF_ERR 671 LLVM_PROF_FILE 672 LLVM_PROF_MERGER 673 PGO_PROF_USE_FLAG 674 PGO_PROF_GEN_FLAG 675 LTOFLAGS 676 DEF_MAKE_RULE 677 DEF_MAKE_ALL_RULE 678 UNIVERSAL_ARCH_FLAGS 679 BASECFLAGS 680 OPT 681 LN 682 MKDIR_P 683 INSTALL_DATA 684 INSTALL_SCRIPT 685 INSTALL_PROGRAM 686 HAS_HG 687 HGBRANCH 688 HGTAG 689 HGVERSION 690 SVNVERSION 691 ARFLAGS 692 ac_ct_AR 693 AR 694 RANLIB 695 GNULD 696 LINKCC 697 RUNSHARED 698 INSTSONAME 699 LDLIBRARYDIR 700 BLDLIBRARY 701 DLLLIBRARY 702 LDLIBRARY 703 LIBRARY 704 BUILDEXEEXT 705 EGREP 706 GREP 707 CPP 708 MULTIARCH 709 ac_ct_CXX 710 MAINCC 711 CXX 712 OBJEXT 713 EXEEXT 714 ac_ct_CC 715 CPPFLAGS 716 LDFLAGS 717 CFLAGS 718 CC 719 EXPORT_MACOSX_DEPLOYMENT_TARGET 720 CONFIGURE_MACOSX_DEPLOYMENT_TARGET 721 EXTRAMACHDEPPATH 722 EXTRAPLATDIR 723 PLATDIR 724 SGI_ABI 725 _PYTHON_HOST_PLATFORM 726 MACHDEP 727 FRAMEWORKINSTALLAPPSPREFIX 728 FRAMEWORKUNIXTOOLSPREFIX 729 FRAMEWORKALTINSTALLLAST 730 FRAMEWORKALTINSTALLFIRST 731 FRAMEWORKINSTALLLAST 732 FRAMEWORKINSTALLFIRST 733 PYTHONFRAMEWORKINSTALLDIR 734 PYTHONFRAMEWORKPREFIX 735 PYTHONFRAMEWORKDIR 736 PYTHONFRAMEWORKIDENTIFIER 737 PYTHONFRAMEWORK 738 LIPO_32BIT_FLAGS 739 ARCH_RUN_32BIT 740 UNIVERSALSDK 741 CONFIG_ARGS 742 SOVERSION 743 VERSION 744 GENERATED_COMMENT 745 PYTHON_FOR_BUILD 746 host_os 747 host_vendor 748 host_cpu 749 host 750 build_os 751 build_vendor 752 build_cpu 753 build 754 target_alias 755 host_alias 756 build_alias 757 LIBS 758 ECHO_T 759 ECHO_N 760 ECHO_C 761 DEFS 762 mandir 763 localedir 764 libdir 765 psdir 766 pdfdir 767 dvidir 768 htmldir 769 infodir 770 docdir 771 oldincludedir 772 includedir 773 runstatedir 774 localstatedir 775 sharedstatedir 776 sysconfdir 777 datadir 778 datarootdir 779 libexecdir 780 sbindir 781 bindir 782 program_transform_name 783 prefix 784 exec_prefix 785 PACKAGE_URL 786 PACKAGE_BUGREPORT 787 PACKAGE_STRING 788 PACKAGE_VERSION 789 PACKAGE_TARNAME 790 PACKAGE_NAME 791 PATH_SEPARATOR 792 SHELL' 793 ac_subst_files='' 794 ac_user_opts=' 795 enable_option_checking 796 enable_universalsdk 797 with_universal_archs 798 with_framework_name 799 enable_framework 800 with_gcc 801 with_icc 802 with_cxx_main 803 with_suffix 804 enable_shared 805 enable_profiling 806 with_pydebug 807 enable_optimizations 808 with_lto 809 enable_toolbox_glue 810 with_libs 811 with_system_expat 812 with_system_ffi 813 with_tcltk_includes 814 with_tcltk_libs 815 with_dbmliborder 816 with_signal_module 817 with_dec_threads 818 with_threads 819 with_thread 820 with_pth 821 enable_ipv6 822 with_doc_strings 823 with_tsc 824 with_pymalloc 825 with_valgrind 826 with_wctype_functions 827 with_fpectl 828 with_libm 829 with_libc 830 enable_big_digits 831 enable_unicode 832 with_computed_gotos 833 with_ensurepip 834 ' 835 ac_precious_vars='build_alias 836 host_alias 837 target_alias 838 CC 839 CFLAGS 840 LDFLAGS 841 LIBS 842 CPPFLAGS 843 CPP 844 PKG_CONFIG 845 PKG_CONFIG_PATH 846 PKG_CONFIG_LIBDIR' 847 848 849 # Initialize some variables set by options. 850 ac_init_help= 851 ac_init_version=false 852 ac_unrecognized_opts= 853 ac_unrecognized_sep= 854 # The variables have the same names as the options, with 855 # dashes changed to underlines. 856 cache_file=/dev/null 857 exec_prefix=NONE 858 no_create= 859 no_recursion= 860 prefix=NONE 861 program_prefix=NONE 862 program_suffix=NONE 863 program_transform_name=s,x,x, 864 silent= 865 site= 866 srcdir= 867 verbose= 868 x_includes=NONE 869 x_libraries=NONE 870 871 # Installation directory options. 872 # These are left unexpanded so users can "make install exec_prefix=/foo" 873 # and all the variables that are supposed to be based on exec_prefix 874 # by default will actually change. 875 # Use braces instead of parens because sh, perl, etc. also accept them. 876 # (The list follows the same order as the GNU Coding Standards.) 877 bindir='${exec_prefix}/bin' 878 sbindir='${exec_prefix}/sbin' 879 libexecdir='${exec_prefix}/libexec' 880 datarootdir='${prefix}/share' 881 datadir='${datarootdir}' 882 sysconfdir='${prefix}/etc' 883 sharedstatedir='${prefix}/com' 884 localstatedir='${prefix}/var' 885 runstatedir='${localstatedir}/run' 886 includedir='${prefix}/include' 887 oldincludedir='/usr/include' 888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 889 infodir='${datarootdir}/info' 890 htmldir='${docdir}' 891 dvidir='${docdir}' 892 pdfdir='${docdir}' 893 psdir='${docdir}' 894 libdir='${exec_prefix}/lib' 895 localedir='${datarootdir}/locale' 896 mandir='${datarootdir}/man' 897 898 ac_prev= 899 ac_dashdash= 900 for ac_option 901 do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 # Accept the important Cygnus configure options, so we can diagnose typos. 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: $ac_useropt" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962 "enable_$ac_useropt" 963 "*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: $ac_useropt" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988 "enable_$ac_useropt" 989 "*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1139 | --runstate | --runstat | --runsta | --runst | --runs \ 1140 | --run | --ru | --r) 1141 ac_prev=runstatedir ;; 1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1144 | --run=* | --ru=* | --r=*) 1145 runstatedir=$ac_optarg ;; 1146 1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1148 ac_prev=sbindir ;; 1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1150 | --sbi=* | --sb=*) 1151 sbindir=$ac_optarg ;; 1152 1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1155 | --sharedst | --shareds | --shared | --share | --shar \ 1156 | --sha | --sh) 1157 ac_prev=sharedstatedir ;; 1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1161 | --sha=* | --sh=*) 1162 sharedstatedir=$ac_optarg ;; 1163 1164 -site | --site | --sit) 1165 ac_prev=site ;; 1166 -site=* | --site=* | --sit=*) 1167 site=$ac_optarg ;; 1168 1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1170 ac_prev=srcdir ;; 1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1172 srcdir=$ac_optarg ;; 1173 1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1175 | --syscon | --sysco | --sysc | --sys | --sy) 1176 ac_prev=sysconfdir ;; 1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1179 sysconfdir=$ac_optarg ;; 1180 1181 -target | --target | --targe | --targ | --tar | --ta | --t) 1182 ac_prev=target_alias ;; 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1184 target_alias=$ac_optarg ;; 1185 1186 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1187 verbose=yes ;; 1188 1189 -version | --version | --versio | --versi | --vers | -V) 1190 ac_init_version=: ;; 1191 1192 -with-* | --with-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201 "with_$ac_useropt" 1202 "*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=\$ac_optarg ;; 1207 1208 -without-* | --without-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: $ac_useropt" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217 "with_$ac_useropt" 1218 "*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=no ;; 1223 1224 --x) 1225 # Obsolete; use --with-x. 1226 with_x=yes ;; 1227 1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1229 | --x-incl | --x-inc | --x-in | --x-i) 1230 ac_prev=x_includes ;; 1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1233 x_includes=$ac_optarg ;; 1234 1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1237 ac_prev=x_libraries ;; 1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1240 x_libraries=$ac_optarg ;; 1241 1242 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1243 Try \`$0 --help' for more information" 1244 ;; 1245 1246 *=*) 1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 # Reject names that are not valid shell variable names. 1249 case $ac_envvar in #( 1250 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1252 esac 1253 eval $ac_envvar=\$ac_optarg 1254 export $ac_envvar ;; 1255 1256 *) 1257 # FIXME: should be removed in autoconf 3.0. 1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1262 ;; 1263 1264 esac 1265 done 1266 1267 if test -n "$ac_prev"; then 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1269 as_fn_error $? "missing argument to $ac_option" 1270 fi 1271 1272 if test -n "$ac_unrecognized_opts"; then 1273 case $enable_option_checking in 1274 no) ;; 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 esac 1278 fi 1279 1280 # Check all directory arguments for consistency. 1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir runstatedir 1285 do 1286 eval ac_val=\$$ac_var 1287 # Remove trailing slashes. 1288 case $ac_val in 1289 */ ) 1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1291 eval $ac_var=\$ac_val;; 1292 esac 1293 # Be sure to have absolute directory names. 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1299 done 1300 1301 # There might be people who depend on the old broken behavior: `$host' 1302 # used to hold the argument of --host etc. 1303 # FIXME: To remove some day. 1304 build=$build_alias 1305 host=$host_alias 1306 target=$target_alias 1307 1308 # FIXME: To remove some day. 1309 if test "x$host_alias" != x; then 1310 if test "x$build_alias" = x; then 1311 cross_compiling=maybe 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315 fi 1316 1317 ac_tool_prefix= 1318 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320 test "$silent" = yes && exec 6>/dev/null 1321 1322 1323 ac_pwd=`pwd` && test -n "$ac_pwd" && 1324 ac_ls_di=`ls -di .` && 1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 as_fn_error $? "working directory cannot be determined" 1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 as_fn_error $? "pwd does not report name of working directory" 1329 1330 1331 # Find the source files, if location was not specified. 1332 if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$as_myself" || 1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$as_myself" : 'X\(//\)[^/]' \| \ 1338 X"$as_myself" : 'X\(//\)$' \| \ 1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1340 $as_echo X"$as_myself" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362 else 1363 ac_srcdir_defaulted=no 1364 fi 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1368 fi 1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1370 ac_abs_confdir=`( 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1372 pwd)` 1373 # When building in place, set srcdir=. 1374 if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376 fi 1377 # Remove unnecessary trailing slashes from srcdir. 1378 # Double slashes in file names in object file debugging info 1379 # mess up M-x gdb in Emacs. 1380 case $srcdir in 1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382 esac 1383 for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388 done 1389 1390 # 1391 # Report the --help message. 1392 # 1393 if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397 \`configure' configures python 2.7 to adapt to many kinds of systems. 1398 1399 Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402 VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404 Defaults for the options are specified in brackets. 1405 1406 Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking ...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417 Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423 By default, \`make install' will install all the files in 1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426 for instance \`--prefix=\$HOME'. 1427 1428 For better control, use the options below. 1429 1430 Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1438 --libdir=DIR object code libraries [EPREFIX/lib] 1439 --includedir=DIR C header files [PREFIX/include] 1440 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1443 --infodir=DIR info documentation [DATAROOTDIR/info] 1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1445 --mandir=DIR man documentation [DATAROOTDIR/man] 1446 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1447 --htmldir=DIR html documentation [DOCDIR] 1448 --dvidir=DIR dvi documentation [DOCDIR] 1449 --pdfdir=DIR pdf documentation [DOCDIR] 1450 --psdir=DIR ps documentation [DOCDIR] 1451 _ACEOF 1452 1453 cat <<\_ACEOF 1454 1455 System types: 1456 --build=BUILD configure for building on BUILD [guessed] 1457 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1458 --target=TARGET configure for building compilers for TARGET [HOST] 1459 _ACEOF 1460 fi 1461 1462 if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of python 2.7:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468 Optional Features: 1469 --disable-option-checking ignore unrecognized --enable/--with options 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-universalsdk[=SDKDIR] 1473 Build against Mac OS X 10.4u SDK (ppc/i386) 1474 --enable-framework[=INSTALLDIR] 1475 Build (MacOSX|Darwin) framework 1476 --enable-shared disable/enable building shared python library 1477 --enable-profiling enable C-level code profiling 1478 --enable-optimizations Enable expensive optimizations (PGO, maybe LTO, 1479 etc). Disabled by default. 1480 --enable-toolbox-glue disable/enable MacOSX glue code for extensions 1481 --enable-ipv6 Enable ipv6 (with ipv4) support 1482 --disable-ipv6 Disable ipv6 support 1483 --enable-big-digits[=BITS] 1484 use big digits for Python longs [[BITS=30]] 1485 --enable-unicode[=ucs[24]] 1486 Enable Unicode strings (default is ucs2) 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" 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-libs='lib1 ...' link against additional libs 1507 --with-system-expat build pyexpat module using an installed expat 1508 library 1509 --with-system-ffi build _ctypes module using an installed ffi library 1510 --with-tcltk-includes='-I...' 1511 override search for Tcl and Tk include files 1512 --with-tcltk-libs='-L...' 1513 override search for Tcl and Tk libs 1514 --with-dbmliborder=db1:db2:... 1515 order to check db backends for dbm. Valid value is a 1516 colon separated string with the backend names 1517 `ndbm', `gdbm' and `bdb'. 1518 --with-signal-module disable/enable signal module 1519 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries 1520 --with(out)-threads[=DIRECTORY] 1521 disable/enable thread support 1522 --with(out)-thread[=DIRECTORY] 1523 deprecated; use --with(out)-threads 1524 --with-pth use GNU pth threading libraries 1525 --with(out)-doc-strings disable/enable documentation strings 1526 --with(out)-tsc enable/disable timestamp counter profile 1527 --with(out)-pymalloc disable/enable specialized mallocs 1528 --with-valgrind Enable Valgrind support 1529 --with-wctype-functions use wctype.h functions 1530 --with-fpectl enable SIGFPE catching 1531 --with-libm=STRING math library 1532 --with-libc=STRING C library 1533 --with(out)-computed-gotos 1534 Use computed gotos in evaluation loop (enabled by 1535 default on supported compilers) 1536 --with(out)-ensurepip=[=OPTION] 1537 "install" or "upgrade" using bundled pip, default is 1538 "no" 1539 1540 Some influential environment variables: 1541 CC C compiler command 1542 CFLAGS C compiler flags 1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1544 nonstandard directory <lib dir> 1545 LIBS libraries to pass to the linker, e.g. -l<library> 1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1547 you have headers in a nonstandard directory <include dir> 1548 CPP C preprocessor 1549 PKG_CONFIG path to pkg-config utility 1550 PKG_CONFIG_PATH 1551 directories to add to pkg-config's search path 1552 PKG_CONFIG_LIBDIR 1553 path overriding pkg-config's built-in search path 1554 1555 Use these variables to override the choices made by `configure' or to help 1556 it to find libraries and programs with nonstandard names/locations. 1557 1558 Report bugs to <https://bugs.python.org/>. 1559 _ACEOF 1560 ac_status=$? 1561 fi 1562 1563 if test "$ac_init_help" = "recursive"; then 1564 # If there are subdirs, report their specific --help. 1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1566 test -d "$ac_dir" || 1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1568 continue 1569 ac_builddir=. 1570 1571 case "$ac_dir" in 1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1573 *) 1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1575 # A ".." for each directory in $ac_dir_suffix. 1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1577 case $ac_top_builddir_sub in 1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1580 esac ;; 1581 esac 1582 ac_abs_top_builddir=$ac_pwd 1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1584 # for backward compatibility: 1585 ac_top_builddir=$ac_top_build_prefix 1586 1587 case $srcdir in 1588 .) # We are building in place. 1589 ac_srcdir=. 1590 ac_top_srcdir=$ac_top_builddir_sub 1591 ac_abs_top_srcdir=$ac_pwd ;; 1592 [\\/]* | ?:[\\/]* ) # Absolute name. 1593 ac_srcdir=$srcdir$ac_dir_suffix; 1594 ac_top_srcdir=$srcdir 1595 ac_abs_top_srcdir=$srcdir ;; 1596 *) # Relative name. 1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1598 ac_top_srcdir=$ac_top_build_prefix$srcdir 1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1600 esac 1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1602 1603 cd "$ac_dir" || { ac_status=$?; continue; } 1604 # Check for guested configure. 1605 if test -f "$ac_srcdir/configure.gnu"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1608 elif test -f "$ac_srcdir/configure"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure" --help=recursive 1611 else 1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1613 fi || ac_status=$? 1614 cd "$ac_pwd" || { ac_status=$?; break; } 1615 done 1616 fi 1617 1618 test -n "$ac_init_help" && exit $ac_status 1619 if $ac_init_version; then 1620 cat <<\_ACEOF 1621 python configure 2.7 1622 generated by GNU Autoconf 2.69 1623 1624 Copyright (C) 2012 Free Software Foundation, Inc. 1625 This configure script is free software; the Free Software Foundation 1626 gives unlimited permission to copy, distribute and modify it. 1627 _ACEOF 1628 exit 1629 fi 1630 1631 ## ------------------------ ## 1632 ## Autoconf initialization. ## 1633 ## ------------------------ ## 1634 1635 # ac_fn_c_try_compile LINENO 1636 # -------------------------- 1637 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1638 ac_fn_c_try_compile () 1639 { 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 rm -f conftest.$ac_objext 1642 if { { ac_try="$ac_compile" 1643 case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646 esac 1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648 $as_echo "$ac_try_echo"; } >&5 1649 (eval "$ac_compile") 2>conftest.err 1650 ac_status=$? 1651 if test -s conftest.err; then 1652 grep -v '^ *+' conftest.err >conftest.er1 1653 cat conftest.er1 >&5 1654 mv -f conftest.er1 conftest.err 1655 fi 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; } && { 1658 test -z "$ac_c_werror_flag" || 1659 test ! -s conftest.err 1660 } && test -s conftest.$ac_objext; then : 1661 ac_retval=0 1662 else 1663 $as_echo "$as_me: failed program was:" >&5 1664 sed 's/^/| /' conftest.$ac_ext >&5 1665 1666 ac_retval=1 1667 fi 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 as_fn_set_status $ac_retval 1670 1671 } # ac_fn_c_try_compile 1672 1673 # ac_fn_c_try_cpp LINENO 1674 # ---------------------- 1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1676 ac_fn_c_try_cpp () 1677 { 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 if { { ac_try="$ac_cpp conftest.$ac_ext" 1680 case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683 esac 1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685 $as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1687 ac_status=$? 1688 if test -s conftest.err; then 1689 grep -v '^ *+' conftest.err >conftest.er1 1690 cat conftest.er1 >&5 1691 mv -f conftest.er1 conftest.err 1692 fi 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; } > conftest.i && { 1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1696 test ! -s conftest.err 1697 }; then : 1698 ac_retval=0 1699 else 1700 $as_echo "$as_me: failed program was:" >&5 1701 sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704 fi 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708 } # ac_fn_c_try_cpp 1709 1710 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1711 # ------------------------------------------------------- 1712 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1713 # the include files in INCLUDES and setting the cache variable VAR 1714 # accordingly. 1715 ac_fn_c_check_header_mongrel () 1716 { 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 if eval \${$3+:} false; then : 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720 $as_echo_n "checking for $2... " >&6; } 1721 if eval \${$3+:} false; then : 1722 $as_echo_n "(cached) " >&6 1723 fi 1724 eval ac_res=\$$3 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1726 $as_echo "$ac_res" >&6; } 1727 else 1728 # Is the header compilable? 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1730 $as_echo_n "checking $2 usability... " >&6; } 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732 /* end confdefs.h. */ 1733 $4 1734 #include <$2> 1735 _ACEOF 1736 if ac_fn_c_try_compile "$LINENO"; then : 1737 ac_header_compiler=yes 1738 else 1739 ac_header_compiler=no 1740 fi 1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1743 $as_echo "$ac_header_compiler" >&6; } 1744 1745 # Is the header present? 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1747 $as_echo_n "checking $2 presence... " >&6; } 1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749 /* end confdefs.h. */ 1750 #include <$2> 1751 _ACEOF 1752 if ac_fn_c_try_cpp "$LINENO"; then : 1753 ac_header_preproc=yes 1754 else 1755 ac_header_preproc=no 1756 fi 1757 rm -f conftest.err conftest.i conftest.$ac_ext 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1759 $as_echo "$ac_header_preproc" >&6; } 1760 1761 # So? What about this header? 1762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1763 yes:no: ) 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1765 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1768 ;; 1769 no:yes:* ) 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1771 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1773 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1775 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1777 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1780 ( $as_echo "## --------------------------------------- ## 1781 ## Report this to https://bugs.python.org/ ## 1782 ## --------------------------------------- ##" 1783 ) | sed "s/^/$as_me: WARNING: /" >&2 1784 ;; 1785 esac 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787 $as_echo_n "checking for $2... " >&6; } 1788 if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790 else 1791 eval "$3=\$ac_header_compiler" 1792 fi 1793 eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795 $as_echo "$ac_res" >&6; } 1796 fi 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799 } # ac_fn_c_check_header_mongrel 1800 1801 # ac_fn_c_try_run LINENO 1802 # ---------------------- 1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1804 # that executables *can* be run. 1805 ac_fn_c_try_run () 1806 { 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 if { { ac_try="$ac_link" 1809 case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812 esac 1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814 $as_echo "$ac_try_echo"; } >&5 1815 (eval "$ac_link") 2>&5 1816 ac_status=$? 1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1819 { { case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822 esac 1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824 $as_echo "$ac_try_echo"; } >&5 1825 (eval "$ac_try") 2>&5 1826 ac_status=$? 1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1828 test $ac_status = 0; }; }; then : 1829 ac_retval=0 1830 else 1831 $as_echo "$as_me: program exited with status $ac_status" >&5 1832 $as_echo "$as_me: failed program was:" >&5 1833 sed 's/^/| /' conftest.$ac_ext >&5 1834 1835 ac_retval=$ac_status 1836 fi 1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 as_fn_set_status $ac_retval 1840 1841 } # ac_fn_c_try_run 1842 1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1844 # ------------------------------------------------------- 1845 # Tests whether HEADER exists and can be compiled using the include files in 1846 # INCLUDES, setting the cache variable VAR accordingly. 1847 ac_fn_c_check_header_compile () 1848 { 1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1851 $as_echo_n "checking for $2... " >&6; } 1852 if eval \${$3+:} false; then : 1853 $as_echo_n "(cached) " >&6 1854 else 1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856 /* end confdefs.h. */ 1857 $4 1858 #include <$2> 1859 _ACEOF 1860 if ac_fn_c_try_compile "$LINENO"; then : 1861 eval "$3=yes" 1862 else 1863 eval "$3=no" 1864 fi 1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866 fi 1867 eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869 $as_echo "$ac_res" >&6; } 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872 } # ac_fn_c_check_header_compile 1873 1874 # ac_fn_c_try_link LINENO 1875 # ----------------------- 1876 # Try to link conftest.$ac_ext, and return whether this succeeded. 1877 ac_fn_c_try_link () 1878 { 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 rm -f conftest.$ac_objext conftest$ac_exeext 1881 if { { ac_try="$ac_link" 1882 case "(($ac_try" in 1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1884 *) ac_try_echo=$ac_try;; 1885 esac 1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1887 $as_echo "$ac_try_echo"; } >&5 1888 (eval "$ac_link") 2>conftest.err 1889 ac_status=$? 1890 if test -s conftest.err; then 1891 grep -v '^ *+' conftest.err >conftest.er1 1892 cat conftest.er1 >&5 1893 mv -f conftest.er1 conftest.err 1894 fi 1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1896 test $ac_status = 0; } && { 1897 test -z "$ac_c_werror_flag" || 1898 test ! -s conftest.err 1899 } && test -s conftest$ac_exeext && { 1900 test "$cross_compiling" = yes || 1901 test -x conftest$ac_exeext 1902 }; then : 1903 ac_retval=0 1904 else 1905 $as_echo "$as_me: failed program was:" >&5 1906 sed 's/^/| /' conftest.$ac_ext >&5 1907 1908 ac_retval=1 1909 fi 1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1912 # interfere with the next link command; also delete a directory that is 1913 # left behind by Apple's compiler. We do this before executing the actions. 1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 as_fn_set_status $ac_retval 1917 1918 } # ac_fn_c_try_link 1919 1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1921 # ------------------------------------------- 1922 # Tests whether TYPE exists after having included INCLUDES, setting cache 1923 # variable VAR accordingly. 1924 ac_fn_c_check_type () 1925 { 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928 $as_echo_n "checking for $2... " >&6; } 1929 if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931 else 1932 eval "$3=no" 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934 /* end confdefs.h. */ 1935 $4 1936 int 1937 main () 1938 { 1939 if (sizeof ($2)) 1940 return 0; 1941 ; 1942 return 0; 1943 } 1944 _ACEOF 1945 if ac_fn_c_try_compile "$LINENO"; then : 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947 /* end confdefs.h. */ 1948 $4 1949 int 1950 main () 1951 { 1952 if (sizeof (($2))) 1953 return 0; 1954 ; 1955 return 0; 1956 } 1957 _ACEOF 1958 if ac_fn_c_try_compile "$LINENO"; then : 1959 1960 else 1961 eval "$3=yes" 1962 fi 1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964 fi 1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966 fi 1967 eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969 $as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972 } # ac_fn_c_check_type 1973 1974 # ac_fn_c_find_uintX_t LINENO BITS VAR 1975 # ------------------------------------ 1976 # Finds an unsigned integer type with width BITS, setting cache variable VAR 1977 # accordingly. 1978 ac_fn_c_find_uintX_t () 1979 { 1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1982 $as_echo_n "checking for uint$2_t... " >&6; } 1983 if eval \${$3+:} false; then : 1984 $as_echo_n "(cached) " >&6 1985 else 1986 eval "$3=no" 1987 # Order is important - never check a type that is potentially smaller 1988 # than half of the expected target width. 1989 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1990 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992 /* end confdefs.h. */ 1993 $ac_includes_default 1994 int 1995 main () 1996 { 1997 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1998 test_array [0] = 0; 1999 return test_array [0]; 2000 2001 ; 2002 return 0; 2003 } 2004 _ACEOF 2005 if ac_fn_c_try_compile "$LINENO"; then : 2006 case $ac_type in #( 2007 uint$2_t) : 2008 eval "$3=yes" ;; #( 2009 *) : 2010 eval "$3=\$ac_type" ;; 2011 esac 2012 fi 2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2014 if eval test \"x\$"$3"\" = x"no"; then : 2015 2016 else 2017 break 2018 fi 2019 done 2020 fi 2021 eval ac_res=\$$3 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2023 $as_echo "$ac_res" >&6; } 2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2025 2026 } # ac_fn_c_find_uintX_t 2027 2028 # ac_fn_c_find_intX_t LINENO BITS VAR 2029 # ----------------------------------- 2030 # Finds a signed integer type with width BITS, setting cache variable VAR 2031 # accordingly. 2032 ac_fn_c_find_intX_t () 2033 { 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2036 $as_echo_n "checking for int$2_t... " >&6; } 2037 if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039 else 2040 eval "$3=no" 2041 # Order is important - never check a type that is potentially smaller 2042 # than half of the expected target width. 2043 for ac_type in int$2_t 'int' 'long int' \ 2044 'long long int' 'short int' 'signed char'; do 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046 /* end confdefs.h. */ 2047 $ac_includes_default 2048 enum { N = $2 / 2 - 1 }; 2049 int 2050 main () 2051 { 2052 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2053 test_array [0] = 0; 2054 return test_array [0]; 2055 2056 ; 2057 return 0; 2058 } 2059 _ACEOF 2060 if ac_fn_c_try_compile "$LINENO"; then : 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062 /* end confdefs.h. */ 2063 $ac_includes_default 2064 enum { N = $2 / 2 - 1 }; 2065 int 2066 main () 2067 { 2068 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2069 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2070 test_array [0] = 0; 2071 return test_array [0]; 2072 2073 ; 2074 return 0; 2075 } 2076 _ACEOF 2077 if ac_fn_c_try_compile "$LINENO"; then : 2078 2079 else 2080 case $ac_type in #( 2081 int$2_t) : 2082 eval "$3=yes" ;; #( 2083 *) : 2084 eval "$3=\$ac_type" ;; 2085 esac 2086 fi 2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088 fi 2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090 if eval test \"x\$"$3"\" = x"no"; then : 2091 2092 else 2093 break 2094 fi 2095 done 2096 fi 2097 eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099 $as_echo "$ac_res" >&6; } 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2101 2102 } # ac_fn_c_find_intX_t 2103 2104 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2105 # -------------------------------------------- 2106 # Tries to find the compile-time value of EXPR in a program that includes 2107 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2108 # computed 2109 ac_fn_c_compute_int () 2110 { 2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 if test "$cross_compiling" = yes; then 2113 # Depending upon the size, compute the lo and hi bounds. 2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115 /* end confdefs.h. */ 2116 $4 2117 int 2118 main () 2119 { 2120 static int test_array [1 - 2 * !(($2) >= 0)]; 2121 test_array [0] = 0; 2122 return test_array [0]; 2123 2124 ; 2125 return 0; 2126 } 2127 _ACEOF 2128 if ac_fn_c_try_compile "$LINENO"; then : 2129 ac_lo=0 ac_mid=0 2130 while :; do 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132 /* end confdefs.h. */ 2133 $4 2134 int 2135 main () 2136 { 2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2138 test_array [0] = 0; 2139 return test_array [0]; 2140 2141 ; 2142 return 0; 2143 } 2144 _ACEOF 2145 if ac_fn_c_try_compile "$LINENO"; then : 2146 ac_hi=$ac_mid; break 2147 else 2148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2149 if test $ac_lo -le $ac_mid; then 2150 ac_lo= ac_hi= 2151 break 2152 fi 2153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2154 fi 2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156 done 2157 else 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159 /* end confdefs.h. */ 2160 $4 2161 int 2162 main () 2163 { 2164 static int test_array [1 - 2 * !(($2) < 0)]; 2165 test_array [0] = 0; 2166 return test_array [0]; 2167 2168 ; 2169 return 0; 2170 } 2171 _ACEOF 2172 if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_hi=-1 ac_mid=-1 2174 while :; do 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176 /* end confdefs.h. */ 2177 $4 2178 int 2179 main () 2180 { 2181 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2182 test_array [0] = 0; 2183 return test_array [0]; 2184 2185 ; 2186 return 0; 2187 } 2188 _ACEOF 2189 if ac_fn_c_try_compile "$LINENO"; then : 2190 ac_lo=$ac_mid; break 2191 else 2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2193 if test $ac_mid -le $ac_hi; then 2194 ac_lo= ac_hi= 2195 break 2196 fi 2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2198 fi 2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200 done 2201 else 2202 ac_lo= ac_hi= 2203 fi 2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2205 fi 2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207 # Binary search between lo and hi bounds. 2208 while test "x$ac_lo" != "x$ac_hi"; do 2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211 /* end confdefs.h. */ 2212 $4 2213 int 2214 main () 2215 { 2216 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2217 test_array [0] = 0; 2218 return test_array [0]; 2219 2220 ; 2221 return 0; 2222 } 2223 _ACEOF 2224 if ac_fn_c_try_compile "$LINENO"; then : 2225 ac_hi=$ac_mid 2226 else 2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2228 fi 2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230 done 2231 case $ac_lo in #(( 2232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2233 '') ac_retval=1 ;; 2234 esac 2235 else 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237 /* end confdefs.h. */ 2238 $4 2239 static long int longval () { return $2; } 2240 static unsigned long int ulongval () { return $2; } 2241 #include <stdio.h> 2242 #include <stdlib.h> 2243 int 2244 main () 2245 { 2246 2247 FILE *f = fopen ("conftest.val", "w"); 2248 if (! f) 2249 return 1; 2250 if (($2) < 0) 2251 { 2252 long int i = longval (); 2253 if (i != ($2)) 2254 return 1; 2255 fprintf (f, "%ld", i); 2256 } 2257 else 2258 { 2259 unsigned long int i = ulongval (); 2260 if (i != ($2)) 2261 return 1; 2262 fprintf (f, "%lu", i); 2263 } 2264 /* Do not output a trailing newline, as this causes \r\n confusion 2265 on some platforms. */ 2266 return ferror (f) || fclose (f) != 0; 2267 2268 ; 2269 return 0; 2270 } 2271 _ACEOF 2272 if ac_fn_c_try_run "$LINENO"; then : 2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2274 else 2275 ac_retval=1 2276 fi 2277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2278 conftest.$ac_objext conftest.beam conftest.$ac_ext 2279 rm -f conftest.val 2280 2281 fi 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 as_fn_set_status $ac_retval 2284 2285 } # ac_fn_c_compute_int 2286 2287 # ac_fn_c_check_func LINENO FUNC VAR 2288 # ---------------------------------- 2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2290 ac_fn_c_check_func () 2291 { 2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2294 $as_echo_n "checking for $2... " >&6; } 2295 if eval \${$3+:} false; then : 2296 $as_echo_n "(cached) " >&6 2297 else 2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2299 /* end confdefs.h. */ 2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2302 #define $2 innocuous_$2 2303 2304 /* System header to define __stub macros and hopefully few prototypes, 2305 which can conflict with char $2 (); below. 2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2307 <limits.h> exists even on freestanding compilers. */ 2308 2309 #ifdef __STDC__ 2310 # include <limits.h> 2311 #else 2312 # include <assert.h> 2313 #endif 2314 2315 #undef $2 2316 2317 /* Override any GCC internal prototype to avoid an error. 2318 Use char because int might match the return type of a GCC 2319 builtin and then its argument prototype would still apply. */ 2320 #ifdef __cplusplus 2321 extern "C" 2322 #endif 2323 char $2 (); 2324 /* The GNU C library defines this for functions which it implements 2325 to always fail with ENOSYS. Some functions are actually named 2326 something starting with __ and the normal name is an alias. */ 2327 #if defined __stub_$2 || defined __stub___$2 2328 choke me 2329 #endif 2330 2331 int 2332 main () 2333 { 2334 return $2 (); 2335 ; 2336 return 0; 2337 } 2338 _ACEOF 2339 if ac_fn_c_try_link "$LINENO"; then : 2340 eval "$3=yes" 2341 else 2342 eval "$3=no" 2343 fi 2344 rm -f core conftest.err conftest.$ac_objext \ 2345 conftest$ac_exeext conftest.$ac_ext 2346 fi 2347 eval ac_res=\$$3 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2349 $as_echo "$ac_res" >&6; } 2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2351 2352 } # ac_fn_c_check_func 2353 2354 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2355 # ---------------------------------------------------- 2356 # Tries to find if the field MEMBER exists in type AGGR, after including 2357 # INCLUDES, setting cache variable VAR accordingly. 2358 ac_fn_c_check_member () 2359 { 2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2362 $as_echo_n "checking for $2.$3... " >&6; } 2363 if eval \${$4+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365 else 2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2367 /* end confdefs.h. */ 2368 $5 2369 int 2370 main () 2371 { 2372 static $2 ac_aggr; 2373 if (ac_aggr.$3) 2374 return 0; 2375 ; 2376 return 0; 2377 } 2378 _ACEOF 2379 if ac_fn_c_try_compile "$LINENO"; then : 2380 eval "$4=yes" 2381 else 2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2383 /* end confdefs.h. */ 2384 $5 2385 int 2386 main () 2387 { 2388 static $2 ac_aggr; 2389 if (sizeof ac_aggr.$3) 2390 return 0; 2391 ; 2392 return 0; 2393 } 2394 _ACEOF 2395 if ac_fn_c_try_compile "$LINENO"; then : 2396 eval "$4=yes" 2397 else 2398 eval "$4=no" 2399 fi 2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2401 fi 2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2403 fi 2404 eval ac_res=\$$4 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2406 $as_echo "$ac_res" >&6; } 2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2408 2409 } # ac_fn_c_check_member 2410 2411 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2412 # --------------------------------------------- 2413 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2414 # accordingly. 2415 ac_fn_c_check_decl () 2416 { 2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2418 as_decl_name=`echo $2|sed 's/ *(.*//'` 2419 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2421 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2422 if eval \${$3+:} false; then : 2423 $as_echo_n "(cached) " >&6 2424 else 2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2426 /* end confdefs.h. */ 2427 $4 2428 int 2429 main () 2430 { 2431 #ifndef $as_decl_name 2432 #ifdef __cplusplus 2433 (void) $as_decl_use; 2434 #else 2435 (void) $as_decl_name; 2436 #endif 2437 #endif 2438 2439 ; 2440 return 0; 2441 } 2442 _ACEOF 2443 if ac_fn_c_try_compile "$LINENO"; then : 2444 eval "$3=yes" 2445 else 2446 eval "$3=no" 2447 fi 2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2449 fi 2450 eval ac_res=\$$3 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2452 $as_echo "$ac_res" >&6; } 2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2454 2455 } # ac_fn_c_check_decl 2456 cat >config.log <<_ACEOF 2457 This file contains any messages produced by compilers while 2458 running configure, to aid debugging if configure makes a mistake. 2459 2460 It was created by python $as_me 2.7, which was 2461 generated by GNU Autoconf 2.69. Invocation command line was 2462 2463 $ $0 $@ 2464 2465 _ACEOF 2466 exec 5>>config.log 2467 { 2468 cat <<_ASUNAME 2469 ## --------- ## 2470 ## Platform. ## 2471 ## --------- ## 2472 2473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2474 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2475 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2476 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2477 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2478 2479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2481 2482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2489 2490 _ASUNAME 2491 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493 for as_dir in $PATH 2494 do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 $as_echo "PATH: $as_dir" 2498 done 2499 IFS=$as_save_IFS 2500 2501 } >&5 2502 2503 cat >&5 <<_ACEOF 2504 2505 2506 ## ----------- ## 2507 ## Core tests. ## 2508 ## ----------- ## 2509 2510 _ACEOF 2511 2512 2513 # Keep a trace of the command line. 2514 # Strip out --no-create and --no-recursion so they do not pile up. 2515 # Strip out --silent because we don't want to record it for future runs. 2516 # Also quote any args containing shell meta-characters. 2517 # Make two passes to allow for proper duplicate-argument suppression. 2518 ac_configure_args= 2519 ac_configure_args0= 2520 ac_configure_args1= 2521 ac_must_keep_next=false 2522 for ac_pass in 1 2 2523 do 2524 for ac_arg 2525 do 2526 case $ac_arg in 2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2529 | -silent | --silent | --silen | --sile | --sil) 2530 continue ;; 2531 *\'*) 2532 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2533 esac 2534 case $ac_pass in 2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2536 2) 2537 as_fn_append ac_configure_args1 " '$ac_arg'" 2538 if test $ac_must_keep_next = true; then 2539 ac_must_keep_next=false # Got value, back to normal. 2540 else 2541 case $ac_arg in 2542 *=* | --config-cache | -C | -disable-* | --disable-* \ 2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2545 | -with-* | --with-* | -without-* | --without-* | --x) 2546 case "$ac_configure_args0 " in 2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2548 esac 2549 ;; 2550 -* ) ac_must_keep_next=true ;; 2551 esac 2552 fi 2553 as_fn_append ac_configure_args " '$ac_arg'" 2554 ;; 2555 esac 2556 done 2557 done 2558 { ac_configure_args0=; unset ac_configure_args0;} 2559 { ac_configure_args1=; unset ac_configure_args1;} 2560 2561 # When interrupted or exit'd, cleanup temporary files, and complete 2562 # config.log. We remove comments because anyway the quotes in there 2563 # would cause problems or look ugly. 2564 # WARNING: Use '\'' to represent an apostrophe within the trap. 2565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2566 trap 'exit_status=$? 2567 # Save into config.log some information that might help in debugging. 2568 { 2569 echo 2570 2571 $as_echo "## ---------------- ## 2572 ## Cache variables. ## 2573 ## ---------------- ##" 2574 echo 2575 # The following way of writing the cache mishandles newlines in values, 2576 ( 2577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2578 eval ac_val=\$$ac_var 2579 case $ac_val in #( 2580 *${as_nl}*) 2581 case $ac_var in #( 2582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2584 esac 2585 case $ac_var in #( 2586 _ | IFS | as_nl) ;; #( 2587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2588 *) { eval $ac_var=; unset $ac_var;} ;; 2589 esac ;; 2590 esac 2591 done 2592 (set) 2>&1 | 2593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2594 *${as_nl}ac_space=\ *) 2595 sed -n \ 2596 "s/'\''/'\''\\\\'\'''\''/g; 2597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2598 ;; #( 2599 *) 2600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2601 ;; 2602 esac | 2603 sort 2604 ) 2605 echo 2606 2607 $as_echo "## ----------------- ## 2608 ## Output variables. ## 2609 ## ----------------- ##" 2610 echo 2611 for ac_var in $ac_subst_vars 2612 do 2613 eval ac_val=\$$ac_var 2614 case $ac_val in 2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2616 esac 2617 $as_echo "$ac_var='\''$ac_val'\''" 2618 done | sort 2619 echo 2620 2621 if test -n "$ac_subst_files"; then 2622 $as_echo "## ------------------- ## 2623 ## File substitutions. ## 2624 ## ------------------- ##" 2625 echo 2626 for ac_var in $ac_subst_files 2627 do 2628 eval ac_val=\$$ac_var 2629 case $ac_val in 2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2631 esac 2632 $as_echo "$ac_var='\''$ac_val'\''" 2633 done | sort 2634 echo 2635 fi 2636 2637 if test -s confdefs.h; then 2638 $as_echo "## ----------- ## 2639 ## confdefs.h. ## 2640 ## ----------- ##" 2641 echo 2642 cat confdefs.h 2643 echo 2644 fi 2645 test "$ac_signal" != 0 && 2646 $as_echo "$as_me: caught signal $ac_signal" 2647 $as_echo "$as_me: exit $exit_status" 2648 } >&5 2649 rm -f core *.core core.conftest.* && 2650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2651 exit $exit_status 2652 ' 0 2653 for ac_signal in 1 2 13 15; do 2654 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2655 done 2656 ac_signal=0 2657 2658 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2659 rm -f -r conftest* confdefs.h 2660 2661 $as_echo "/* confdefs.h */" > confdefs.h 2662 2663 # Predefined preprocessor variables. 2664 2665 cat >>confdefs.h <<_ACEOF 2666 #define PACKAGE_NAME "$PACKAGE_NAME" 2667 _ACEOF 2668 2669 cat >>confdefs.h <<_ACEOF 2670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2671 _ACEOF 2672 2673 cat >>confdefs.h <<_ACEOF 2674 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2675 _ACEOF 2676 2677 cat >>confdefs.h <<_ACEOF 2678 #define PACKAGE_STRING "$PACKAGE_STRING" 2679 _ACEOF 2680 2681 cat >>confdefs.h <<_ACEOF 2682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2683 _ACEOF 2684 2685 cat >>confdefs.h <<_ACEOF 2686 #define PACKAGE_URL "$PACKAGE_URL" 2687 _ACEOF 2688 2689 2690 # Let the site file select an alternate cache file if it wants to. 2691 # Prefer an explicitly selected file to automatically selected ones. 2692 ac_site_file1=NONE 2693 ac_site_file2=NONE 2694 if test -n "$CONFIG_SITE"; then 2695 # We do not want a PATH search for config.site. 2696 case $CONFIG_SITE in #(( 2697 -*) ac_site_file1=./$CONFIG_SITE;; 2698 */*) ac_site_file1=$CONFIG_SITE;; 2699 *) ac_site_file1=./$CONFIG_SITE;; 2700 esac 2701 elif test "x$prefix" != xNONE; then 2702 ac_site_file1=$prefix/share/config.site 2703 ac_site_file2=$prefix/etc/config.site 2704 else 2705 ac_site_file1=$ac_default_prefix/share/config.site 2706 ac_site_file2=$ac_default_prefix/etc/config.site 2707 fi 2708 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2709 do 2710 test "x$ac_site_file" = xNONE && continue 2711 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2713 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2714 sed 's/^/| /' "$ac_site_file" >&5 2715 . "$ac_site_file" \ 2716 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2718 as_fn_error $? "failed to load site script $ac_site_file 2719 See \`config.log' for more details" "$LINENO" 5; } 2720 fi 2721 done 2722 2723 if test -r "$cache_file"; then 2724 # Some versions of bash will fail to source /dev/null (special files 2725 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2726 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2728 $as_echo "$as_me: loading cache $cache_file" >&6;} 2729 case $cache_file in 2730 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2731 *) . "./$cache_file";; 2732 esac 2733 fi 2734 else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2736 $as_echo "$as_me: creating cache $cache_file" >&6;} 2737 >$cache_file 2738 fi 2739 2740 # Check that the precious variables saved in the cache have kept the same 2741 # value. 2742 ac_cache_corrupted=false 2743 for ac_var in $ac_precious_vars; do 2744 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2745 eval ac_new_set=\$ac_env_${ac_var}_set 2746 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2747 eval ac_new_val=\$ac_env_${ac_var}_value 2748 case $ac_old_set,$ac_new_set in 2749 set,) 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2751 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2752 ac_cache_corrupted=: ;; 2753 ,set) 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2755 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2756 ac_cache_corrupted=: ;; 2757 ,);; 2758 *) 2759 if test "x$ac_old_val" != "x$ac_new_val"; then 2760 # differences in whitespace do not lead to failure. 2761 ac_old_val_w=`echo x $ac_old_val` 2762 ac_new_val_w=`echo x $ac_new_val` 2763 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2765 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2766 ac_cache_corrupted=: 2767 else 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2769 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2770 eval $ac_var=\$ac_old_val 2771 fi 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2773 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2775 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2776 fi;; 2777 esac 2778 # Pass precious variables to config.status. 2779 if test "$ac_new_set" = set; then 2780 case $ac_new_val in 2781 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2782 *) ac_arg=$ac_var=$ac_new_val ;; 2783 esac 2784 case " $ac_configure_args " in 2785 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2786 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2787 esac 2788 fi 2789 done 2790 if $ac_cache_corrupted; then 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2794 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2795 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2796 fi 2797 ## -------------------- ## 2798 ## Main body of script. ## 2799 ## -------------------- ## 2800 2801 ac_ext=c 2802 ac_cpp='$CPP $CPPFLAGS' 2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2806 2807 2808 2809 ac_config_headers="$ac_config_headers pyconfig.h" 2810 2811 2812 ac_aux_dir= 2813 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2814 if test -f "$ac_dir/install-sh"; then 2815 ac_aux_dir=$ac_dir 2816 ac_install_sh="$ac_aux_dir/install-sh -c" 2817 break 2818 elif test -f "$ac_dir/install.sh"; then 2819 ac_aux_dir=$ac_dir 2820 ac_install_sh="$ac_aux_dir/install.sh -c" 2821 break 2822 elif test -f "$ac_dir/shtool"; then 2823 ac_aux_dir=$ac_dir 2824 ac_install_sh="$ac_aux_dir/shtool install -c" 2825 break 2826 fi 2827 done 2828 if test -z "$ac_aux_dir"; then 2829 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2830 fi 2831 2832 # These three variables are undocumented and unsupported, 2833 # and are intended to be withdrawn in a future Autoconf release. 2834 # They can cause serious problems if a builder's source tree is in a directory 2835 # whose full name contains unusual characters. 2836 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2837 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2838 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2839 2840 2841 # Make sure we can run config.sub. 2842 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2843 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2844 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2846 $as_echo_n "checking build system type... " >&6; } 2847 if ${ac_cv_build+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849 else 2850 ac_build_alias=$build_alias 2851 test "x$ac_build_alias" = x && 2852 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2853 test "x$ac_build_alias" = x && 2854 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2855 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2857 2858 fi 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2860 $as_echo "$ac_cv_build" >&6; } 2861 case $ac_cv_build in 2862 *-*-*) ;; 2863 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2864 esac 2865 build=$ac_cv_build 2866 ac_save_IFS=$IFS; IFS='-' 2867 set x $ac_cv_build 2868 shift 2869 build_cpu=$1 2870 build_vendor=$2 2871 shift; shift 2872 # Remember, the first character of IFS is used to create $*, 2873 # except with old shells: 2874 build_os=$* 2875 IFS=$ac_save_IFS 2876 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2877 2878 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2880 $as_echo_n "checking host system type... " >&6; } 2881 if ${ac_cv_host+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883 else 2884 if test "x$host_alias" = x; then 2885 ac_cv_host=$ac_cv_build 2886 else 2887 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2888 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2889 fi 2890 2891 fi 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2893 $as_echo "$ac_cv_host" >&6; } 2894 case $ac_cv_host in 2895 *-*-*) ;; 2896 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2897 esac 2898 host=$ac_cv_host 2899 ac_save_IFS=$IFS; IFS='-' 2900 set x $ac_cv_host 2901 shift 2902 host_cpu=$1 2903 host_vendor=$2 2904 shift; shift 2905 # Remember, the first character of IFS is used to create $*, 2906 # except with old shells: 2907 host_os=$* 2908 IFS=$ac_save_IFS 2909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2910 2911 2912 2913 2914 2915 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2916 rm -f pybuilddir.txt 2917 2918 if test "$cross_compiling" = yes; then 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2920 $as_echo_n "checking for python interpreter for cross build... " >&6; } 2921 if test -z "$PYTHON_FOR_BUILD"; then 2922 for interp in python$PACKAGE_VERSION python2 python; do 2923 which $interp >/dev/null 2>&1 || continue 2924 if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then 2925 break 2926 fi 2927 interp= 2928 done 2929 if test x$interp = x; then 2930 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2931 fi 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2933 $as_echo "$interp" >&6; } 2934 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:$(srcdir)/Lib/$(PLATDIR) '$interp 2935 fi 2936 # Used to comment out stuff for rebuilding generated files 2937 GENERATED_COMMENT='#' 2938 elif test "$cross_compiling" = maybe; then 2939 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2940 else 2941 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2942 GENERATED_COMMENT='' 2943 fi 2944 2945 2946 2947 2948 if test "$prefix" != "/"; then 2949 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2950 fi 2951 2952 2953 2954 2955 # We don't use PACKAGE_ variables, and they cause conflicts 2956 # with other autoconf-based packages that include Python.h 2957 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 2958 rm confdefs.h 2959 mv confdefs.h.new confdefs.h 2960 2961 2962 VERSION=2.7 2963 2964 2965 SOVERSION=1.0 2966 2967 # The later defininition of _XOPEN_SOURCE disables certain features 2968 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 2969 2970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 2971 2972 2973 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2974 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 2975 # them. 2976 2977 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 2978 2979 2980 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2981 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 2982 # them. 2983 2984 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 2985 2986 2987 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2988 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. 2989 2990 $as_echo "#define _BSD_TYPES 1" >>confdefs.h 2991 2992 2993 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2994 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 2995 # them. 2996 2997 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 2998 2999 3000 3001 define_xopen_source=yes 3002 3003 # Arguments passed to configure. 3004 3005 CONFIG_ARGS="$ac_configure_args" 3006 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3008 $as_echo_n "checking for --enable-universalsdk... " >&6; } 3009 # Check whether --enable-universalsdk was given. 3010 if test "${enable_universalsdk+set}" = set; then : 3011 enableval=$enable_universalsdk; 3012 case $enableval in 3013 yes) 3014 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3015 if test ! -d "${enableval}" 3016 then 3017 enableval=/ 3018 fi 3019 ;; 3020 esac 3021 case $enableval in 3022 no) 3023 UNIVERSALSDK= 3024 enable_universalsdk= 3025 ;; 3026 *) 3027 UNIVERSALSDK=$enableval 3028 if test ! -d "${UNIVERSALSDK}" 3029 then 3030 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3031 fi 3032 ;; 3033 esac 3034 3035 3036 else 3037 3038 UNIVERSALSDK= 3039 enable_universalsdk= 3040 3041 fi 3042 3043 if test -n "${UNIVERSALSDK}" 3044 then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3046 $as_echo "${UNIVERSALSDK}" >&6; } 3047 else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049 $as_echo "no" >&6; } 3050 fi 3051 3052 3053 3054 ARCH_RUN_32BIT="" 3055 3056 UNIVERSAL_ARCHS="32-bit" 3057 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3059 $as_echo_n "checking for --with-universal-archs... " >&6; } 3060 3061 # Check whether --with-universal-archs was given. 3062 if test "${with_universal_archs+set}" = set; then : 3063 withval=$with_universal_archs; 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 3065 $as_echo "$withval" >&6; } 3066 UNIVERSAL_ARCHS="$withval" 3067 if test "${enable_universalsdk}" ; then 3068 : 3069 else 3070 as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5 3071 fi 3072 3073 else 3074 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5 3076 $as_echo "32-bit" >&6; } 3077 3078 fi 3079 3080 3081 3082 3083 3084 # Check whether --with-framework-name was given. 3085 if test "${with_framework_name+set}" = set; then : 3086 withval=$with_framework_name; 3087 if test "${enable_framework}"; then 3088 : 3089 else 3090 as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 3091 fi 3092 PYTHONFRAMEWORK=${withval} 3093 PYTHONFRAMEWORKDIR=${withval}.framework 3094 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3095 3096 else 3097 3098 PYTHONFRAMEWORK=Python 3099 PYTHONFRAMEWORKDIR=Python.framework 3100 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3101 3102 fi 3103 3104 # Check whether --enable-framework was given. 3105 if test "${enable_framework+set}" = set; then : 3106 enableval=$enable_framework; 3107 case $enableval in 3108 yes) 3109 enableval=/Library/Frameworks 3110 esac 3111 case $enableval in 3112 no) 3113 PYTHONFRAMEWORK= 3114 PYTHONFRAMEWORKDIR=no-framework 3115 PYTHONFRAMEWORKPREFIX= 3116 PYTHONFRAMEWORKINSTALLDIR= 3117 FRAMEWORKINSTALLFIRST= 3118 FRAMEWORKINSTALLLAST= 3119 FRAMEWORKALTINSTALLFIRST= 3120 FRAMEWORKALTINSTALLLAST= 3121 if test "x${prefix}" = "xNONE"; then 3122 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3123 else 3124 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3125 fi 3126 enable_framework= 3127 ;; 3128 *) 3129 PYTHONFRAMEWORKPREFIX="${enableval}" 3130 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3131 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3132 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" 3133 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3134 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3135 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3136 3137 if test "x${prefix}" = "xNONE" ; then 3138 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3139 3140 else 3141 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3142 fi 3143 3144 case "${enableval}" in 3145 /System*) 3146 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3147 if test "${prefix}" = "NONE" ; then 3148 # See below 3149 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3150 fi 3151 ;; 3152 3153 /Library*) 3154 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3155 ;; 3156 3157 */Library/Frameworks) 3158 MDIR="`dirname "${enableval}"`" 3159 MDIR="`dirname "${MDIR}"`" 3160 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3161 3162 if test "${prefix}" = "NONE"; then 3163 # User hasn't specified the 3164 # --prefix option, but wants to install 3165 # the framework in a non-default location, 3166 # ensure that the compatibility links get 3167 # installed relative to that prefix as well 3168 # instead of in /usr/local. 3169 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3170 fi 3171 ;; 3172 3173 *) 3174 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3175 ;; 3176 esac 3177 3178 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3179 3180 # Add files for Mac specific code to the list of output 3181 # files: 3182 ac_config_files="$ac_config_files Mac/Makefile" 3183 3184 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3185 3186 ac_config_files="$ac_config_files Mac/IDLE/Makefile" 3187 3188 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3189 3190 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3191 3192 esac 3193 3194 else 3195 3196 PYTHONFRAMEWORK= 3197 PYTHONFRAMEWORKDIR=no-framework 3198 PYTHONFRAMEWORKPREFIX= 3199 PYTHONFRAMEWORKINSTALLDIR= 3200 FRAMEWORKINSTALLFIRST= 3201 FRAMEWORKINSTALLLAST= 3202 FRAMEWORKALTINSTALLFIRST= 3203 FRAMEWORKALTINSTALLLAST= 3204 if test "x${prefix}" = "xNONE" ; then 3205 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3206 else 3207 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3208 fi 3209 enable_framework= 3210 3211 3212 fi 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 ##AC_ARG_WITH(dyld, 3227 ## AS_HELP_STRING([--with-dyld], 3228 ## [Use (OpenStep|Rhapsody) dynamic linker])) 3229 ## 3230 # Set name for machine-dependent library files 3231 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3233 $as_echo_n "checking MACHDEP... " >&6; } 3234 if test -z "$MACHDEP" 3235 then 3236 # avoid using uname for cross builds 3237 if test "$cross_compiling" = yes; then 3238 # ac_sys_system and ac_sys_release are only used for setting 3239 # `define_xopen_source' in the case statement below. For the 3240 # current supported cross builds, this macro is not adjusted. 3241 case "$host" in 3242 *-*-linux*) 3243 ac_sys_system=Linux 3244 ;; 3245 *-*-cygwin*) 3246 ac_sys_system=Cygwin 3247 ;; 3248 *) 3249 # for now, limit cross builds to known configurations 3250 MACHDEP="unknown" 3251 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3252 esac 3253 ac_sys_release= 3254 else 3255 ac_sys_system=`uname -s` 3256 if test "$ac_sys_system" = "AIX" \ 3257 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3258 ac_sys_release=`uname -v` 3259 else 3260 ac_sys_release=`uname -r` 3261 fi 3262 fi 3263 ac_md_system=`echo $ac_sys_system | 3264 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3265 ac_md_release=`echo $ac_sys_release | 3266 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3267 MACHDEP="$ac_md_system$ac_md_release" 3268 3269 case $MACHDEP in 3270 linux*) MACHDEP="linux2";; 3271 cygwin*) MACHDEP="cygwin";; 3272 darwin*) MACHDEP="darwin";; 3273 atheos*) MACHDEP="atheos";; 3274 irix646) MACHDEP="irix6";; 3275 '') MACHDEP="unknown";; 3276 esac 3277 fi 3278 3279 3280 if test "$cross_compiling" = yes; then 3281 case "$host" in 3282 *-*-linux*) 3283 case "$host_cpu" in 3284 arm*) 3285 _host_cpu=arm 3286 ;; 3287 *) 3288 _host_cpu=$host_cpu 3289 esac 3290 ;; 3291 *-*-cygwin*) 3292 _host_cpu= 3293 ;; 3294 *) 3295 # for now, limit cross builds to known configurations 3296 MACHDEP="unknown" 3297 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3298 esac 3299 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3300 fi 3301 3302 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3303 # disable features if it is defined, without any means to access these 3304 # features as extensions. For these systems, we skip the definition of 3305 # _XOPEN_SOURCE. Before adding a system to the list to gain access to 3306 # some feature, make sure there is no alternative way to access this 3307 # feature. Also, when using wildcards, make sure you have verified the 3308 # need for not defining _XOPEN_SOURCE on all systems matching the 3309 # wildcard, and that the wildcard does not include future systems 3310 # (which may remove their limitations). 3311 case $ac_sys_system/$ac_sys_release in 3312 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3313 # even though select is a POSIX function. Reported by J. Ribbens. 3314 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3315 # In addition, Stefan Krah confirms that issue #1244610 exists through 3316 # OpenBSD 4.6, but is fixed in 4.7. 3317 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3318 define_xopen_source=no 3319 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3320 # also defined. This can be overridden by defining _BSD_SOURCE 3321 # As this has a different meaning on Linux, only define it on OpenBSD 3322 3323 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3324 3325 ;; 3326 OpenBSD/*) 3327 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3328 # also defined. This can be overridden by defining _BSD_SOURCE 3329 # As this has a different meaning on Linux, only define it on OpenBSD 3330 3331 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3332 3333 ;; 3334 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3335 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3336 # Marc Recht 3337 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3338 define_xopen_source=no;; 3339 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3340 # request to enable features supported by the standard as a request 3341 # to disable features not supported by the standard. The best way 3342 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3343 # entirely and define __EXTENSIONS__ instead. 3344 SunOS/*) 3345 define_xopen_source=no;; 3346 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3347 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3348 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3349 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3350 define_xopen_source=no;; 3351 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3352 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3353 SCO_SV/3.2) 3354 define_xopen_source=no;; 3355 # On FreeBSD 4, the math functions C89 does not cover are never defined 3356 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. 3357 FreeBSD/4.*) 3358 define_xopen_source=no;; 3359 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3360 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3361 # identifies itself as Darwin/7.* 3362 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3363 # disables platform specific features beyond repair. 3364 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3365 # has no effect, don't bother defining them 3366 Darwin/[6789].*) 3367 define_xopen_source=no;; 3368 Darwin/1[0-9].*) 3369 define_xopen_source=no;; 3370 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3371 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3372 # or has another value. By not (re)defining it, the defaults come in place. 3373 AIX/4) 3374 define_xopen_source=no;; 3375 AIX/5) 3376 if test `uname -r` -eq 1; then 3377 define_xopen_source=no 3378 fi 3379 ;; 3380 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3381 # defining NI_NUMERICHOST. 3382 QNX/6.3.2) 3383 define_xopen_source=no 3384 ;; 3385 3386 esac 3387 3388 if test $define_xopen_source = yes 3389 then 3390 3391 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 3392 3393 3394 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3395 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3396 # several APIs are not declared. Since this is also needed in some 3397 # cases for HP-UX, we define it globally. 3398 3399 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3400 3401 3402 3403 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h 3404 3405 3406 fi 3407 3408 # 3409 # SGI compilers allow the specification of the both the ABI and the 3410 # ISA on the command line. Depending on the values of these switches, 3411 # different and often incompatible code will be generated. 3412 # 3413 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and 3414 # thus supply support for various ABI/ISA combinations. The MACHDEP 3415 # variable is also adjusted. 3416 # 3417 3418 if test ! -z "$SGI_ABI" 3419 then 3420 CC="cc $SGI_ABI" 3421 LDFLAGS="$SGI_ABI $LDFLAGS" 3422 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` 3423 fi 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 3425 $as_echo "$MACHDEP" >&6; } 3426 3427 3428 PLATDIR=plat-$MACHDEP 3429 3430 # And add extra plat-mac for darwin 3431 3432 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 3434 $as_echo_n "checking EXTRAPLATDIR... " >&6; } 3435 if test -z "$EXTRAPLATDIR" 3436 then 3437 case $MACHDEP in 3438 darwin) 3439 EXTRAPLATDIR="\$(PLATMACDIRS)" 3440 EXTRAMACHDEPPATH="\$(PLATMACPATH)" 3441 ;; 3442 *) 3443 EXTRAPLATDIR="" 3444 EXTRAMACHDEPPATH="" 3445 ;; 3446 esac 3447 fi 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 3449 $as_echo "$EXTRAPLATDIR" >&6; } 3450 3451 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3452 # it may influence the way we can build extensions, so distutils 3453 # needs to check it 3454 3455 3456 CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3457 EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3458 3459 # checks for alternative programs 3460 3461 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3462 # for debug/optimization stuff. BASECFLAGS is for flags that are required 3463 # just to get things to compile and link. Users are free to override OPT 3464 # when running configure or make. The build should not break if they do. 3465 # BASECFLAGS should generally not be messed with, however. 3466 3467 # XXX shouldn't some/most/all of this code be merged with the stuff later 3468 # on that fiddles with OPT and BASECFLAGS? 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 3470 $as_echo_n "checking for --without-gcc... " >&6; } 3471 3472 # Check whether --with-gcc was given. 3473 if test "${with_gcc+set}" = set; then : 3474 withval=$with_gcc; 3475 case $withval in 3476 no) CC=${CC:-cc} 3477 without_gcc=yes;; 3478 yes) CC=gcc 3479 without_gcc=no;; 3480 *) CC=$withval 3481 without_gcc=$withval;; 3482 esac 3483 else 3484 3485 case $ac_sys_system in 3486 AIX*) CC=${CC:-xlc_r} 3487 without_gcc=;; 3488 BeOS*) 3489 case $BE_HOST_CPU in 3490 ppc) 3491 CC=mwcc 3492 without_gcc=yes 3493 BASECFLAGS="$BASECFLAGS -export pragma" 3494 OPT="$OPT -O" 3495 LDFLAGS="$LDFLAGS -nodup" 3496 ;; 3497 x86) 3498 CC=gcc 3499 without_gcc=no 3500 OPT="$OPT -O" 3501 ;; 3502 *) 3503 as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 3504 ;; 3505 esac 3506 AR="\$(srcdir)/Modules/ar_beos" 3507 RANLIB=: 3508 ;; 3509 *) without_gcc=no;; 3510 esac 3511 fi 3512 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 3514 $as_echo "$without_gcc" >&6; } 3515 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 3517 $as_echo_n "checking for --with-icc... " >&6; } 3518 3519 # Check whether --with-icc was given. 3520 if test "${with_icc+set}" = set; then : 3521 withval=$with_icc; 3522 case $withval in 3523 no) CC=${CC:-cc} 3524 with_icc=no;; 3525 yes) CC=icc 3526 CXX=icpc 3527 with_icc=yes;; 3528 *) CC=$withval 3529 with_icc=$withval;; 3530 esac 3531 else 3532 3533 with_icc=no 3534 fi 3535 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 3537 $as_echo "$with_icc" >&6; } 3538 3539 # If the user switches compilers, we can't believe the cache 3540 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3541 then 3542 as_fn_error $? "cached CC is different -- throw away $cache_file 3543 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3544 fi 3545 3546 if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then 3547 # Normally, MIPSpro CC treats #error directives as warnings, which means 3548 # a successful exit code is returned (0). This is a problem because IRIX 3549 # has a bunch of system headers with this guard at the top: 3550 # 3551 # #ifndef __c99 3552 # #error This header file is to be used only for c99 mode compilations 3553 # #else 3554 # 3555 # When autoconf tests for such a header, like stdint.h, this happens: 3556 # 3557 # configure:4619: cc -c conftest.c >&5 3558 # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 3559 # #error directive: This header file is to be used only for c99 mode 3560 # compilations 3561 # 3562 # #error This header file is to be used only for c99 mode compilations 3563 # ^ 3564 # 3565 # configure:4619: $? = 0 3566 # configure:4619: result: yes 3567 # 3568 # Therefore, we use `-diag_error 1035` to have the compiler treat the 3569 # warning as an error, which causes cc to return a non-zero result, 3570 # which autoconf can interpret correctly. 3571 CFLAGS="$CFLAGS -diag_error 1035" 3572 # Whilst we're here, we might as well make sure CXX defaults to something 3573 # sensible if we're not using gcc. 3574 if test -z "$CXX"; then 3575 CXX="CC" 3576 fi 3577 fi 3578 3579 # If the user set CFLAGS, use this instead of the automatically 3580 # determined setting 3581 preset_cflags="$CFLAGS" 3582 ac_ext=c 3583 ac_cpp='$CPP $CPPFLAGS' 3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3587 if test -n "$ac_tool_prefix"; then 3588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3589 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591 $as_echo_n "checking for $ac_word... " >&6; } 3592 if ${ac_cv_prog_CC+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594 else 3595 if test -n "$CC"; then 3596 ac_cv_prog_CC="$CC" # Let the user override the test. 3597 else 3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3599 for as_dir in $PATH 3600 do 3601 IFS=$as_save_IFS 3602 test -z "$as_dir" && as_dir=. 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3605 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609 done 3610 done 3611 IFS=$as_save_IFS 3612 3613 fi 3614 fi 3615 CC=$ac_cv_prog_CC 3616 if test -n "$CC"; then 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3618 $as_echo "$CC" >&6; } 3619 else 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621 $as_echo "no" >&6; } 3622 fi 3623 3624 3625 fi 3626 if test -z "$ac_cv_prog_CC"; then 3627 ac_ct_CC=$CC 3628 # Extract the first word of "gcc", so it can be a program name with args. 3629 set dummy gcc; ac_word=$2 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631 $as_echo_n "checking for $ac_word... " >&6; } 3632 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634 else 3635 if test -n "$ac_ct_CC"; then 3636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3637 else 3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639 for as_dir in $PATH 3640 do 3641 IFS=$as_save_IFS 3642 test -z "$as_dir" && as_dir=. 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3645 ac_cv_prog_ac_ct_CC="gcc" 3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3647 break 2 3648 fi 3649 done 3650 done 3651 IFS=$as_save_IFS 3652 3653 fi 3654 fi 3655 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3656 if test -n "$ac_ct_CC"; then 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3658 $as_echo "$ac_ct_CC" >&6; } 3659 else 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661 $as_echo "no" >&6; } 3662 fi 3663 3664 if test "x$ac_ct_CC" = x; then 3665 CC="" 3666 else 3667 case $cross_compiling:$ac_tool_warned in 3668 yes:) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3671 ac_tool_warned=yes ;; 3672 esac 3673 CC=$ac_ct_CC 3674 fi 3675 else 3676 CC="$ac_cv_prog_CC" 3677 fi 3678 3679 if test -z "$CC"; then 3680 if test -n "$ac_tool_prefix"; then 3681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3682 set dummy ${ac_tool_prefix}cc; ac_word=$2 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3684 $as_echo_n "checking for $ac_word... " >&6; } 3685 if ${ac_cv_prog_CC+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687 else 3688 if test -n "$CC"; then 3689 ac_cv_prog_CC="$CC" # Let the user override the test. 3690 else 3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692 for as_dir in $PATH 3693 do 3694 IFS=$as_save_IFS 3695 test -z "$as_dir" && as_dir=. 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3698 ac_cv_prog_CC="${ac_tool_prefix}cc" 3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3700 break 2 3701 fi 3702 done 3703 done 3704 IFS=$as_save_IFS 3705 3706 fi 3707 fi 3708 CC=$ac_cv_prog_CC 3709 if test -n "$CC"; then 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3711 $as_echo "$CC" >&6; } 3712 else 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3714 $as_echo "no" >&6; } 3715 fi 3716 3717 3718 fi 3719 fi 3720 if test -z "$CC"; then 3721 # Extract the first word of "cc", so it can be a program name with args. 3722 set dummy cc; ac_word=$2 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724 $as_echo_n "checking for $ac_word... " >&6; } 3725 if ${ac_cv_prog_CC+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727 else 3728 if test -n "$CC"; then 3729 ac_cv_prog_CC="$CC" # Let the user override the test. 3730 else 3731 ac_prog_rejected=no 3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733 for as_dir in $PATH 3734 do 3735 IFS=$as_save_IFS 3736 test -z "$as_dir" && as_dir=. 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3740 ac_prog_rejected=yes 3741 continue 3742 fi 3743 ac_cv_prog_CC="cc" 3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3745 break 2 3746 fi 3747 done 3748 done 3749 IFS=$as_save_IFS 3750 3751 if test $ac_prog_rejected = yes; then 3752 # We found a bogon in the path, so make sure we never use it. 3753 set dummy $ac_cv_prog_CC 3754 shift 3755 if test $# != 0; then 3756 # We chose a different compiler from the bogus one. 3757 # However, it has the same basename, so the bogon will be chosen 3758 # first if we set CC to just the basename; use the full file name. 3759 shift 3760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3761 fi 3762 fi 3763 fi 3764 fi 3765 CC=$ac_cv_prog_CC 3766 if test -n "$CC"; then 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3768 $as_echo "$CC" >&6; } 3769 else 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3771 $as_echo "no" >&6; } 3772 fi 3773 3774 3775 fi 3776 if test -z "$CC"; then 3777 if test -n "$ac_tool_prefix"; then 3778 for ac_prog in cl.exe 3779 do 3780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783 $as_echo_n "checking for $ac_word... " >&6; } 3784 if ${ac_cv_prog_CC+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786 else 3787 if test -n "$CC"; then 3788 ac_cv_prog_CC="$CC" # Let the user override the test. 3789 else 3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3791 for as_dir in $PATH 3792 do 3793 IFS=$as_save_IFS 3794 test -z "$as_dir" && as_dir=. 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801 done 3802 done 3803 IFS=$as_save_IFS 3804 3805 fi 3806 fi 3807 CC=$ac_cv_prog_CC 3808 if test -n "$CC"; then 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3810 $as_echo "$CC" >&6; } 3811 else 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813 $as_echo "no" >&6; } 3814 fi 3815 3816 3817 test -n "$CC" && break 3818 done 3819 fi 3820 if test -z "$CC"; then 3821 ac_ct_CC=$CC 3822 for ac_prog in cl.exe 3823 do 3824 # Extract the first word of "$ac_prog", so it can be a program name with args. 3825 set dummy $ac_prog; ac_word=$2 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3827 $as_echo_n "checking for $ac_word... " >&6; } 3828 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830 else 3831 if test -n "$ac_ct_CC"; then 3832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3833 else 3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835 for as_dir in $PATH 3836 do 3837 IFS=$as_save_IFS 3838 test -z "$as_dir" && as_dir=. 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3841 ac_cv_prog_ac_ct_CC="$ac_prog" 3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3843 break 2 3844 fi 3845 done 3846 done 3847 IFS=$as_save_IFS 3848 3849 fi 3850 fi 3851 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3852 if test -n "$ac_ct_CC"; then 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3854 $as_echo "$ac_ct_CC" >&6; } 3855 else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857 $as_echo "no" >&6; } 3858 fi 3859 3860 3861 test -n "$ac_ct_CC" && break 3862 done 3863 3864 if test "x$ac_ct_CC" = x; then 3865 CC="" 3866 else 3867 case $cross_compiling:$ac_tool_warned in 3868 yes:) 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3871 ac_tool_warned=yes ;; 3872 esac 3873 CC=$ac_ct_CC 3874 fi 3875 fi 3876 3877 fi 3878 3879 3880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3882 as_fn_error $? "no acceptable C compiler found in \$PATH 3883 See \`config.log' for more details" "$LINENO" 5; } 3884 3885 # Provide some information about the compiler. 3886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3887 set X $ac_compile 3888 ac_compiler=$2 3889 for ac_option in --version -v -V -qversion; do 3890 { { ac_try="$ac_compiler $ac_option >&5" 3891 case "(($ac_try" in 3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3893 *) ac_try_echo=$ac_try;; 3894 esac 3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3896 $as_echo "$ac_try_echo"; } >&5 3897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3898 ac_status=$? 3899 if test -s conftest.err; then 3900 sed '10a\ 3901 ... rest of stderr output deleted ... 3902 10q' conftest.err >conftest.er1 3903 cat conftest.er1 >&5 3904 fi 3905 rm -f conftest.er1 conftest.err 3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; } 3908 done 3909 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911 /* end confdefs.h. */ 3912 3913 int 3914 main () 3915 { 3916 3917 ; 3918 return 0; 3919 } 3920 _ACEOF 3921 ac_clean_files_save=$ac_clean_files 3922 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3923 # Try to create an executable without -o first, disregard a.out. 3924 # It will help us diagnose broken compilers, and finding out an intuition 3925 # of exeext. 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3927 $as_echo_n "checking whether the C compiler works... " >&6; } 3928 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3929 3930 # The possible output files: 3931 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3932 3933 ac_rmfiles= 3934 for ac_file in $ac_files 3935 do 3936 case $ac_file in 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3938 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3939 esac 3940 done 3941 rm -f $ac_rmfiles 3942 3943 if { { ac_try="$ac_link_default" 3944 case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947 esac 3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949 $as_echo "$ac_try_echo"; } >&5 3950 (eval "$ac_link_default") 2>&5 3951 ac_status=$? 3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3953 test $ac_status = 0; }; then : 3954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3955 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3956 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3957 # so that the user can short-circuit this test for compilers unknown to 3958 # Autoconf. 3959 for ac_file in $ac_files '' 3960 do 3961 test -f "$ac_file" || continue 3962 case $ac_file in 3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3964 ;; 3965 [ab].out ) 3966 # We found the default executable, but exeext='' is most 3967 # certainly right. 3968 break;; 3969 *.* ) 3970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3971 then :; else 3972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3973 fi 3974 # We set ac_cv_exeext here because the later test for it is not 3975 # safe: cross compilers may not add the suffix if given an `-o' 3976 # argument, so we may need to know it at that point already. 3977 # Even if this section looks crufty: it has the advantage of 3978 # actually working. 3979 break;; 3980 * ) 3981 break;; 3982 esac 3983 done 3984 test "$ac_cv_exeext" = no && ac_cv_exeext= 3985 3986 else 3987 ac_file='' 3988 fi 3989 if test -z "$ac_file"; then : 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3991 $as_echo "no" >&6; } 3992 $as_echo "$as_me: failed program was:" >&5 3993 sed 's/^/| /' conftest.$ac_ext >&5 3994 3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3997 as_fn_error 77 "C compiler cannot create executables 3998 See \`config.log' for more details" "$LINENO" 5; } 3999 else 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4001 $as_echo "yes" >&6; } 4002 fi 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4004 $as_echo_n "checking for C compiler default output file name... " >&6; } 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4006 $as_echo "$ac_file" >&6; } 4007 ac_exeext=$ac_cv_exeext 4008 4009 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4010 ac_clean_files=$ac_clean_files_save 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4012 $as_echo_n "checking for suffix of executables... " >&6; } 4013 if { { ac_try="$ac_link" 4014 case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017 esac 4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4019 $as_echo "$ac_try_echo"; } >&5 4020 (eval "$ac_link") 2>&5 4021 ac_status=$? 4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4023 test $ac_status = 0; }; then : 4024 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4025 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4026 # work properly (i.e., refer to `conftest.exe'), while it won't with 4027 # `rm'. 4028 for ac_file in conftest.exe conftest conftest.*; do 4029 test -f "$ac_file" || continue 4030 case $ac_file in 4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4033 break;; 4034 * ) break;; 4035 esac 4036 done 4037 else 4038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4040 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4041 See \`config.log' for more details" "$LINENO" 5; } 4042 fi 4043 rm -f conftest conftest$ac_cv_exeext 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4045 $as_echo "$ac_cv_exeext" >&6; } 4046 4047 rm -f conftest.$ac_ext 4048 EXEEXT=$ac_cv_exeext 4049 ac_exeext=$EXEEXT 4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4051 /* end confdefs.h. */ 4052 #include <stdio.h> 4053 int 4054 main () 4055 { 4056 FILE *f = fopen ("conftest.out", "w"); 4057 return ferror (f) || fclose (f) != 0; 4058 4059 ; 4060 return 0; 4061 } 4062 _ACEOF 4063 ac_clean_files="$ac_clean_files conftest.out" 4064 # Check that the compiler produces executables we can run. If not, either 4065 # the compiler is broken, or we cross compile. 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4067 $as_echo_n "checking whether we are cross compiling... " >&6; } 4068 if test "$cross_compiling" != yes; then 4069 { { ac_try="$ac_link" 4070 case "(($ac_try" in 4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4072 *) ac_try_echo=$ac_try;; 4073 esac 4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4075 $as_echo "$ac_try_echo"; } >&5 4076 (eval "$ac_link") 2>&5 4077 ac_status=$? 4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4079 test $ac_status = 0; } 4080 if { ac_try='./conftest$ac_cv_exeext' 4081 { { case "(($ac_try" in 4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4083 *) ac_try_echo=$ac_try;; 4084 esac 4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4086 $as_echo "$ac_try_echo"; } >&5 4087 (eval "$ac_try") 2>&5 4088 ac_status=$? 4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4090 test $ac_status = 0; }; }; then 4091 cross_compiling=no 4092 else 4093 if test "$cross_compiling" = maybe; then 4094 cross_compiling=yes 4095 else 4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4098 as_fn_error $? "cannot run C compiled programs. 4099 If you meant to cross compile, use \`--host'. 4100 See \`config.log' for more details" "$LINENO" 5; } 4101 fi 4102 fi 4103 fi 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4105 $as_echo "$cross_compiling" >&6; } 4106 4107 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4108 ac_clean_files=$ac_clean_files_save 4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4110 $as_echo_n "checking for suffix of object files... " >&6; } 4111 if ${ac_cv_objext+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113 else 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115 /* end confdefs.h. */ 4116 4117 int 4118 main () 4119 { 4120 4121 ; 4122 return 0; 4123 } 4124 _ACEOF 4125 rm -f conftest.o conftest.obj 4126 if { { ac_try="$ac_compile" 4127 case "(($ac_try" in 4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4129 *) ac_try_echo=$ac_try;; 4130 esac 4131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4132 $as_echo "$ac_try_echo"; } >&5 4133 (eval "$ac_compile") 2>&5 4134 ac_status=$? 4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4136 test $ac_status = 0; }; then : 4137 for ac_file in conftest.o conftest.obj conftest.*; do 4138 test -f "$ac_file" || continue; 4139 case $ac_file in 4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4142 break;; 4143 esac 4144 done 4145 else 4146 $as_echo "$as_me: failed program was:" >&5 4147 sed 's/^/| /' conftest.$ac_ext >&5 4148 4149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4151 as_fn_error $? "cannot compute suffix of object files: cannot compile 4152 See \`config.log' for more details" "$LINENO" 5; } 4153 fi 4154 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4155 fi 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4157 $as_echo "$ac_cv_objext" >&6; } 4158 OBJEXT=$ac_cv_objext 4159 ac_objext=$OBJEXT 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4161 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4162 if ${ac_cv_c_compiler_gnu+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164 else 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166 /* end confdefs.h. */ 4167 4168 int 4169 main () 4170 { 4171 #ifndef __GNUC__ 4172 choke me 4173 #endif 4174 4175 ; 4176 return 0; 4177 } 4178 _ACEOF 4179 if ac_fn_c_try_compile "$LINENO"; then : 4180 ac_compiler_gnu=yes 4181 else 4182 ac_compiler_gnu=no 4183 fi 4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4185 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4186 4187 fi 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4189 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4190 if test $ac_compiler_gnu = yes; then 4191 GCC=yes 4192 else 4193 GCC= 4194 fi 4195 ac_test_CFLAGS=${CFLAGS+set} 4196 ac_save_CFLAGS=$CFLAGS 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4198 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4199 if ${ac_cv_prog_cc_g+:} false; then : 4200 $as_echo_n "(cached) " >&6 4201 else 4202 ac_save_c_werror_flag=$ac_c_werror_flag 4203 ac_c_werror_flag=yes 4204 ac_cv_prog_cc_g=no 4205 CFLAGS="-g" 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207 /* end confdefs.h. */ 4208 4209 int 4210 main () 4211 { 4212 4213 ; 4214 return 0; 4215 } 4216 _ACEOF 4217 if ac_fn_c_try_compile "$LINENO"; then : 4218 ac_cv_prog_cc_g=yes 4219 else 4220 CFLAGS="" 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222 /* end confdefs.h. */ 4223 4224 int 4225 main () 4226 { 4227 4228 ; 4229 return 0; 4230 } 4231 _ACEOF 4232 if ac_fn_c_try_compile "$LINENO"; then : 4233 4234 else 4235 ac_c_werror_flag=$ac_save_c_werror_flag 4236 CFLAGS="-g" 4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4238 /* end confdefs.h. */ 4239 4240 int 4241 main () 4242 { 4243 4244 ; 4245 return 0; 4246 } 4247 _ACEOF 4248 if ac_fn_c_try_compile "$LINENO"; then : 4249 ac_cv_prog_cc_g=yes 4250 fi 4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252 fi 4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4254 fi 4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256 ac_c_werror_flag=$ac_save_c_werror_flag 4257 fi 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4259 $as_echo "$ac_cv_prog_cc_g" >&6; } 4260 if test "$ac_test_CFLAGS" = set; then 4261 CFLAGS=$ac_save_CFLAGS 4262 elif test $ac_cv_prog_cc_g = yes; then 4263 if test "$GCC" = yes; then 4264 CFLAGS="-g -O2" 4265 else 4266 CFLAGS="-g" 4267 fi 4268 else 4269 if test "$GCC" = yes; then 4270 CFLAGS="-O2" 4271 else 4272 CFLAGS= 4273 fi 4274 fi 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4276 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4277 if ${ac_cv_prog_cc_c89+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279 else 4280 ac_cv_prog_cc_c89=no 4281 ac_save_CC=$CC 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283 /* end confdefs.h. */ 4284 #include <stdarg.h> 4285 #include <stdio.h> 4286 struct stat; 4287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4288 struct buf { int x; }; 4289 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4290 static char *e (p, i) 4291 char **p; 4292 int i; 4293 { 4294 return p[i]; 4295 } 4296 static char *f (char * (*g) (char **, int), char **p, ...) 4297 { 4298 char *s; 4299 va_list v; 4300 va_start (v,p); 4301 s = g (p, va_arg (v,int)); 4302 va_end (v); 4303 return s; 4304 } 4305 4306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4307 function prototypes and stuff, but not '\xHH' hex character constants. 4308 These don't provoke an error unfortunately, instead are silently treated 4309 as 'x'. The following induces an error, until -std is added to get 4310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4311 array size at least. It's necessary to write '\x00'==0 to get something 4312 that's true only with -std. */ 4313 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4314 4315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4316 inside strings and character constants. */ 4317 #define FOO(x) 'x' 4318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4319 4320 int test (int i, double x); 4321 struct s1 {int (*f) (int a);}; 4322 struct s2 {int (*f) (double a);}; 4323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4324 int argc; 4325 char **argv; 4326 int 4327 main () 4328 { 4329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4330 ; 4331 return 0; 4332 } 4333 _ACEOF 4334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4336 do 4337 CC="$ac_save_CC $ac_arg" 4338 if ac_fn_c_try_compile "$LINENO"; then : 4339 ac_cv_prog_cc_c89=$ac_arg 4340 fi 4341 rm -f core conftest.err conftest.$ac_objext 4342 test "x$ac_cv_prog_cc_c89" != "xno" && break 4343 done 4344 rm -f conftest.$ac_ext 4345 CC=$ac_save_CC 4346 4347 fi 4348 # AC_CACHE_VAL 4349 case "x$ac_cv_prog_cc_c89" in 4350 x) 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4352 $as_echo "none needed" >&6; } ;; 4353 xno) 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4355 $as_echo "unsupported" >&6; } ;; 4356 *) 4357 CC="$CC $ac_cv_prog_cc_c89" 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4360 esac 4361 if test "x$ac_cv_prog_cc_c89" != xno; then : 4362 4363 fi 4364 4365 ac_ext=c 4366 ac_cpp='$CPP $CPPFLAGS' 4367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4369 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4370 4371 if test ! -z "$preset_cflags" 4372 then 4373 CFLAGS=$preset_cflags 4374 fi 4375 4376 4377 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4379 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4380 4381 # Check whether --with-cxx_main was given. 4382 if test "${with_cxx_main+set}" = set; then : 4383 withval=$with_cxx_main; 4384 4385 case $withval in 4386 no) with_cxx_main=no 4387 MAINCC='$(CC)';; 4388 yes) with_cxx_main=yes 4389 MAINCC='$(CXX)';; 4390 *) with_cxx_main=yes 4391 MAINCC=$withval 4392 if test -z "$CXX" 4393 then 4394 CXX=$withval 4395 fi;; 4396 esac 4397 else 4398 4399 with_cxx_main=no 4400 MAINCC='$(CC)' 4401 4402 fi 4403 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4405 $as_echo "$with_cxx_main" >&6; } 4406 4407 preset_cxx="$CXX" 4408 if test -z "$CXX" 4409 then 4410 case "$CC" in 4411 gcc) if test -n "$ac_tool_prefix"; then 4412 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4413 set dummy ${ac_tool_prefix}g++; ac_word=$2 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4415 $as_echo_n "checking for $ac_word... " >&6; } 4416 if ${ac_cv_path_CXX+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418 else 4419 case $CXX in 4420 [\\/]* | ?:[\\/]*) 4421 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4422 ;; 4423 *) 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425 for as_dir in notfound 4426 do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4431 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435 done 4436 done 4437 IFS=$as_save_IFS 4438 4439 ;; 4440 esac 4441 fi 4442 CXX=$ac_cv_path_CXX 4443 if test -n "$CXX"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4445 $as_echo "$CXX" >&6; } 4446 else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448 $as_echo "no" >&6; } 4449 fi 4450 4451 4452 fi 4453 if test -z "$ac_cv_path_CXX"; then 4454 ac_pt_CXX=$CXX 4455 # Extract the first word of "g++", so it can be a program name with args. 4456 set dummy g++; ac_word=$2 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458 $as_echo_n "checking for $ac_word... " >&6; } 4459 if ${ac_cv_path_ac_pt_CXX+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461 else 4462 case $ac_pt_CXX in 4463 [\\/]* | ?:[\\/]*) 4464 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4465 ;; 4466 *) 4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468 for as_dir in notfound 4469 do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4474 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4476 break 2 4477 fi 4478 done 4479 done 4480 IFS=$as_save_IFS 4481 4482 ;; 4483 esac 4484 fi 4485 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4486 if test -n "$ac_pt_CXX"; then 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4488 $as_echo "$ac_pt_CXX" >&6; } 4489 else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491 $as_echo "no" >&6; } 4492 fi 4493 4494 if test "x$ac_pt_CXX" = x; then 4495 CXX="g++" 4496 else 4497 case $cross_compiling:$ac_tool_warned in 4498 yes:) 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4501 ac_tool_warned=yes ;; 4502 esac 4503 CXX=$ac_pt_CXX 4504 fi 4505 else 4506 CXX="$ac_cv_path_CXX" 4507 fi 4508 ;; 4509 cc) if test -n "$ac_tool_prefix"; then 4510 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4511 set dummy ${ac_tool_prefix}c++; ac_word=$2 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513 $as_echo_n "checking for $ac_word... " >&6; } 4514 if ${ac_cv_path_CXX+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516 else 4517 case $CXX in 4518 [\\/]* | ?:[\\/]*) 4519 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4520 ;; 4521 *) 4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523 for as_dir in notfound 4524 do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4529 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4531 break 2 4532 fi 4533 done 4534 done 4535 IFS=$as_save_IFS 4536 4537 ;; 4538 esac 4539 fi 4540 CXX=$ac_cv_path_CXX 4541 if test -n "$CXX"; then 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4543 $as_echo "$CXX" >&6; } 4544 else 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4546 $as_echo "no" >&6; } 4547 fi 4548 4549 4550 fi 4551 if test -z "$ac_cv_path_CXX"; then 4552 ac_pt_CXX=$CXX 4553 # Extract the first word of "c++", so it can be a program name with args. 4554 set dummy c++; ac_word=$2 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4556 $as_echo_n "checking for $ac_word... " >&6; } 4557 if ${ac_cv_path_ac_pt_CXX+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559 else 4560 case $ac_pt_CXX in 4561 [\\/]* | ?:[\\/]*) 4562 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4563 ;; 4564 *) 4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4566 for as_dir in notfound 4567 do 4568 IFS=$as_save_IFS 4569 test -z "$as_dir" && as_dir=. 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4572 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4574 break 2 4575 fi 4576 done 4577 done 4578 IFS=$as_save_IFS 4579 4580 ;; 4581 esac 4582 fi 4583 ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4584 if test -n "$ac_pt_CXX"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4586 $as_echo "$ac_pt_CXX" >&6; } 4587 else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589 $as_echo "no" >&6; } 4590 fi 4591 4592 if test "x$ac_pt_CXX" = x; then 4593 CXX="c++" 4594 else 4595 case $cross_compiling:$ac_tool_warned in 4596 yes:) 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4599 ac_tool_warned=yes ;; 4600 esac 4601 CXX=$ac_pt_CXX 4602 fi 4603 else 4604 CXX="$ac_cv_path_CXX" 4605 fi 4606 ;; 4607 esac 4608 if test "$CXX" = "notfound" 4609 then 4610 CXX="" 4611 fi 4612 fi 4613 if test -z "$CXX" 4614 then 4615 if test -n "$ac_tool_prefix"; then 4616 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 4617 do 4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4621 $as_echo_n "checking for $ac_word... " >&6; } 4622 if ${ac_cv_prog_CXX+:} false; then : 4623 $as_echo_n "(cached) " >&6 4624 else 4625 if test -n "$CXX"; then 4626 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4627 else 4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4629 for as_dir in $PATH 4630 do 4631 IFS=$as_save_IFS 4632 test -z "$as_dir" && as_dir=. 4633 for ac_exec_ext in '' $ac_executable_extensions; do 4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4635 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4637 break 2 4638 fi 4639 done 4640 done 4641 IFS=$as_save_IFS 4642 4643 fi 4644 fi 4645 CXX=$ac_cv_prog_CXX 4646 if test -n "$CXX"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4648 $as_echo "$CXX" >&6; } 4649 else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651 $as_echo "no" >&6; } 4652 fi 4653 4654 4655 test -n "$CXX" && break 4656 done 4657 fi 4658 if test -z "$CXX"; then 4659 ac_ct_CXX=$CXX 4660 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 4661 do 4662 # Extract the first word of "$ac_prog", so it can be a program name with args. 4663 set dummy $ac_prog; ac_word=$2 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4665 $as_echo_n "checking for $ac_word... " >&6; } 4666 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668 else 4669 if test -n "$ac_ct_CXX"; then 4670 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4671 else 4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4673 for as_dir in $PATH 4674 do 4675 IFS=$as_save_IFS 4676 test -z "$as_dir" && as_dir=. 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4679 ac_cv_prog_ac_ct_CXX="$ac_prog" 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4681 break 2 4682 fi 4683 done 4684 done 4685 IFS=$as_save_IFS 4686 4687 fi 4688 fi 4689 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4690 if test -n "$ac_ct_CXX"; then 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4692 $as_echo "$ac_ct_CXX" >&6; } 4693 else 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695 $as_echo "no" >&6; } 4696 fi 4697 4698 4699 test -n "$ac_ct_CXX" && break 4700 done 4701 4702 if test "x$ac_ct_CXX" = x; then 4703 CXX="notfound" 4704 else 4705 case $cross_compiling:$ac_tool_warned in 4706 yes:) 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4709 ac_tool_warned=yes ;; 4710 esac 4711 CXX=$ac_ct_CXX 4712 fi 4713 fi 4714 4715 if test "$CXX" = "notfound" 4716 then 4717 CXX="" 4718 fi 4719 fi 4720 if test "$preset_cxx" != "$CXX" 4721 then 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 4723 4724 By default, distutils will build C++ extension modules with \"$CXX\". 4725 If this is not intended, then set CXX on the configure command line. 4726 " >&5 4727 $as_echo "$as_me: WARNING: 4728 4729 By default, distutils will build C++ extension modules with \"$CXX\". 4730 If this is not intended, then set CXX on the configure command line. 4731 " >&2;} 4732 fi 4733 4734 MULTIARCH=$($CC --print-multiarch 2>/dev/null) 4735 4736 4737 4738 # checks for UNIX variants that set C preprocessor variables 4739 4740 ac_ext=c 4741 ac_cpp='$CPP $CPPFLAGS' 4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4746 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4747 # On Suns, sometimes $CPP names a directory. 4748 if test -n "$CPP" && test -d "$CPP"; then 4749 CPP= 4750 fi 4751 if test -z "$CPP"; then 4752 if ${ac_cv_prog_CPP+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754 else 4755 # Double quotes because CPP needs to be expanded 4756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4757 do 4758 ac_preproc_ok=false 4759 for ac_c_preproc_warn_flag in '' yes 4760 do 4761 # Use a header file that comes with gcc, so configuring glibc 4762 # with a fresh cross-compiler works. 4763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4764 # <limits.h> exists even on freestanding compilers. 4765 # On the NeXT, cc -E runs the code through the compiler's parser, 4766 # not just through cpp. "Syntax error" is here to catch this case. 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768 /* end confdefs.h. */ 4769 #ifdef __STDC__ 4770 # include <limits.h> 4771 #else 4772 # include <assert.h> 4773 #endif 4774 Syntax error 4775 _ACEOF 4776 if ac_fn_c_try_cpp "$LINENO"; then : 4777 4778 else 4779 # Broken: fails on valid input. 4780 continue 4781 fi 4782 rm -f conftest.err conftest.i conftest.$ac_ext 4783 4784 # OK, works on sane cases. Now check whether nonexistent headers 4785 # can be detected and how. 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787 /* end confdefs.h. */ 4788 #include <ac_nonexistent.h> 4789 _ACEOF 4790 if ac_fn_c_try_cpp "$LINENO"; then : 4791 # Broken: success on invalid input. 4792 continue 4793 else 4794 # Passes both tests. 4795 ac_preproc_ok=: 4796 break 4797 fi 4798 rm -f conftest.err conftest.i conftest.$ac_ext 4799 4800 done 4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4802 rm -f conftest.i conftest.err conftest.$ac_ext 4803 if $ac_preproc_ok; then : 4804 break 4805 fi 4806 4807 done 4808 ac_cv_prog_CPP=$CPP 4809 4810 fi 4811 CPP=$ac_cv_prog_CPP 4812 else 4813 ac_cv_prog_CPP=$CPP 4814 fi 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4816 $as_echo "$CPP" >&6; } 4817 ac_preproc_ok=false 4818 for ac_c_preproc_warn_flag in '' yes 4819 do 4820 # Use a header file that comes with gcc, so configuring glibc 4821 # with a fresh cross-compiler works. 4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4823 # <limits.h> exists even on freestanding compilers. 4824 # On the NeXT, cc -E runs the code through the compiler's parser, 4825 # not just through cpp. "Syntax error" is here to catch this case. 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827 /* end confdefs.h. */ 4828 #ifdef __STDC__ 4829 # include <limits.h> 4830 #else 4831 # include <assert.h> 4832 #endif 4833 Syntax error 4834 _ACEOF 4835 if ac_fn_c_try_cpp "$LINENO"; then : 4836 4837 else 4838 # Broken: fails on valid input. 4839 continue 4840 fi 4841 rm -f conftest.err conftest.i conftest.$ac_ext 4842 4843 # OK, works on sane cases. Now check whether nonexistent headers 4844 # can be detected and how. 4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846 /* end confdefs.h. */ 4847 #include <ac_nonexistent.h> 4848 _ACEOF 4849 if ac_fn_c_try_cpp "$LINENO"; then : 4850 # Broken: success on invalid input. 4851 continue 4852 else 4853 # Passes both tests. 4854 ac_preproc_ok=: 4855 break 4856 fi 4857 rm -f conftest.err conftest.i conftest.$ac_ext 4858 4859 done 4860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4861 rm -f conftest.i conftest.err conftest.$ac_ext 4862 if $ac_preproc_ok; then : 4863 4864 else 4865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4867 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4868 See \`config.log' for more details" "$LINENO" 5; } 4869 fi 4870 4871 ac_ext=c 4872 ac_cpp='$CPP $CPPFLAGS' 4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4876 4877 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4879 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4880 if ${ac_cv_path_GREP+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882 else 4883 if test -z "$GREP"; then 4884 ac_path_GREP_found=false 4885 # Loop through the user's path and test for each of PROGNAME-LIST 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4888 do 4889 IFS=$as_save_IFS 4890 test -z "$as_dir" && as_dir=. 4891 for ac_prog in grep ggrep; do 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4894 as_fn_executable_p "$ac_path_GREP" || continue 4895 # Check for GNU ac_path_GREP and select it if it is found. 4896 # Check for GNU $ac_path_GREP 4897 case `"$ac_path_GREP" --version 2>&1` in 4898 *GNU*) 4899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4900 *) 4901 ac_count=0 4902 $as_echo_n 0123456789 >"conftest.in" 4903 while : 4904 do 4905 cat "conftest.in" "conftest.in" >"conftest.tmp" 4906 mv "conftest.tmp" "conftest.in" 4907 cp "conftest.in" "conftest.nl" 4908 $as_echo 'GREP' >> "conftest.nl" 4909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4911 as_fn_arith $ac_count + 1 && ac_count=$as_val 4912 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4913 # Best one so far, save it but keep looking for a better one 4914 ac_cv_path_GREP="$ac_path_GREP" 4915 ac_path_GREP_max=$ac_count 4916 fi 4917 # 10*(2^10) chars as input seems more than enough 4918 test $ac_count -gt 10 && break 4919 done 4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4921 esac 4922 4923 $ac_path_GREP_found && break 3 4924 done 4925 done 4926 done 4927 IFS=$as_save_IFS 4928 if test -z "$ac_cv_path_GREP"; then 4929 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4930 fi 4931 else 4932 ac_cv_path_GREP=$GREP 4933 fi 4934 4935 fi 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4937 $as_echo "$ac_cv_path_GREP" >&6; } 4938 GREP="$ac_cv_path_GREP" 4939 4940 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4942 $as_echo_n "checking for egrep... " >&6; } 4943 if ${ac_cv_path_EGREP+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945 else 4946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4947 then ac_cv_path_EGREP="$GREP -E" 4948 else 4949 if test -z "$EGREP"; then 4950 ac_path_EGREP_found=false 4951 # Loop through the user's path and test for each of PROGNAME-LIST 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4954 do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_prog in egrep; do 4958 for ac_exec_ext in '' $ac_executable_extensions; do 4959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4960 as_fn_executable_p "$ac_path_EGREP" || continue 4961 # Check for GNU ac_path_EGREP and select it if it is found. 4962 # Check for GNU $ac_path_EGREP 4963 case `"$ac_path_EGREP" --version 2>&1` in 4964 *GNU*) 4965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4966 *) 4967 ac_count=0 4968 $as_echo_n 0123456789 >"conftest.in" 4969 while : 4970 do 4971 cat "conftest.in" "conftest.in" >"conftest.tmp" 4972 mv "conftest.tmp" "conftest.in" 4973 cp "conftest.in" "conftest.nl" 4974 $as_echo 'EGREP' >> "conftest.nl" 4975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4977 as_fn_arith $ac_count + 1 && ac_count=$as_val 4978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4979 # Best one so far, save it but keep looking for a better one 4980 ac_cv_path_EGREP="$ac_path_EGREP" 4981 ac_path_EGREP_max=$ac_count 4982 fi 4983 # 10*(2^10) chars as input seems more than enough 4984 test $ac_count -gt 10 && break 4985 done 4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4987 esac 4988 4989 $ac_path_EGREP_found && break 3 4990 done 4991 done 4992 done 4993 IFS=$as_save_IFS 4994 if test -z "$ac_cv_path_EGREP"; then 4995 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4996 fi 4997 else 4998 ac_cv_path_EGREP=$EGREP 4999 fi 5000 5001 fi 5002 fi 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5004 $as_echo "$ac_cv_path_EGREP" >&6; } 5005 EGREP="$ac_cv_path_EGREP" 5006 5007 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5009 $as_echo_n "checking for ANSI C header files... " >&6; } 5010 if ${ac_cv_header_stdc+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012 else 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014 /* end confdefs.h. */ 5015 #include <stdlib.h> 5016 #include <stdarg.h> 5017 #include <string.h> 5018 #include <float.h> 5019 5020 int 5021 main () 5022 { 5023 5024 ; 5025 return 0; 5026 } 5027 _ACEOF 5028 if ac_fn_c_try_compile "$LINENO"; then : 5029 ac_cv_header_stdc=yes 5030 else 5031 ac_cv_header_stdc=no 5032 fi 5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5034 5035 if test $ac_cv_header_stdc = yes; then 5036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038 /* end confdefs.h. */ 5039 #include <string.h> 5040 5041 _ACEOF 5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5043 $EGREP "memchr" >/dev/null 2>&1; then : 5044 5045 else 5046 ac_cv_header_stdc=no 5047 fi 5048 rm -f conftest* 5049 5050 fi 5051 5052 if test $ac_cv_header_stdc = yes; then 5053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055 /* end confdefs.h. */ 5056 #include <stdlib.h> 5057 5058 _ACEOF 5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5060 $EGREP "free" >/dev/null 2>&1; then : 5061 5062 else 5063 ac_cv_header_stdc=no 5064 fi 5065 rm -f conftest* 5066 5067 fi 5068 5069 if test $ac_cv_header_stdc = yes; then 5070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5071 if test "$cross_compiling" = yes; then : 5072 : 5073 else 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075 /* end confdefs.h. */ 5076 #include <ctype.h> 5077 #include <stdlib.h> 5078 #if ((' ' & 0x0FF) == 0x020) 5079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5081 #else 5082 # define ISLOWER(c) \ 5083 (('a' <= (c) && (c) <= 'i') \ 5084 || ('j' <= (c) && (c) <= 'r') \ 5085 || ('s' <= (c) && (c) <= 'z')) 5086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5087 #endif 5088 5089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5090 int 5091 main () 5092 { 5093 int i; 5094 for (i = 0; i < 256; i++) 5095 if (XOR (islower (i), ISLOWER (i)) 5096 || toupper (i) != TOUPPER (i)) 5097 return 2; 5098 return 0; 5099 } 5100 _ACEOF 5101 if ac_fn_c_try_run "$LINENO"; then : 5102 5103 else 5104 ac_cv_header_stdc=no 5105 fi 5106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5107 conftest.$ac_objext conftest.beam conftest.$ac_ext 5108 fi 5109 5110 fi 5111 fi 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5113 $as_echo "$ac_cv_header_stdc" >&6; } 5114 if test $ac_cv_header_stdc = yes; then 5115 5116 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5117 5118 fi 5119 5120 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5122 inttypes.h stdint.h unistd.h 5123 do : 5124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5125 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5126 " 5127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5128 cat >>confdefs.h <<_ACEOF 5129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5130 _ACEOF 5131 5132 fi 5133 5134 done 5135 5136 5137 5138 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5139 if test "x$ac_cv_header_minix_config_h" = xyes; then : 5140 MINIX=yes 5141 else 5142 MINIX= 5143 fi 5144 5145 5146 if test "$MINIX" = yes; then 5147 5148 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5149 5150 5151 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5152 5153 5154 $as_echo "#define _MINIX 1" >>confdefs.h 5155 5156 fi 5157 5158 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5160 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5161 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163 else 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165 /* end confdefs.h. */ 5166 5167 # define __EXTENSIONS__ 1 5168 $ac_includes_default 5169 int 5170 main () 5171 { 5172 5173 ; 5174 return 0; 5175 } 5176 _ACEOF 5177 if ac_fn_c_try_compile "$LINENO"; then : 5178 ac_cv_safe_to_define___extensions__=yes 5179 else 5180 ac_cv_safe_to_define___extensions__=no 5181 fi 5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5183 fi 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5185 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5186 test $ac_cv_safe_to_define___extensions__ = yes && 5187 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5188 5189 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5190 5191 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5192 5193 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5194 5195 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5196 5197 5198 5199 # Check for unsupported systems 5200 case $ac_sys_system/$ac_sys_release in 5201 atheos*|Linux*/1*) 5202 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5203 echo See README for details. 5204 exit 1;; 5205 esac 5206 5207 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5209 $as_echo_n "checking for --with-suffix... " >&6; } 5210 5211 # Check whether --with-suffix was given. 5212 if test "${with_suffix+set}" = set; then : 5213 withval=$with_suffix; 5214 case $withval in 5215 no) EXEEXT=;; 5216 yes) EXEEXT=.exe;; 5217 *) EXEEXT=$withval;; 5218 esac 5219 fi 5220 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5222 $as_echo "$EXEEXT" >&6; } 5223 5224 # Test whether we're running on a non-case-sensitive system, in which 5225 # case we give a warning if no ext is given 5226 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5228 $as_echo_n "checking for case-insensitive build directory... " >&6; } 5229 if test ! -d CaseSensitiveTestDir; then 5230 mkdir CaseSensitiveTestDir 5231 fi 5232 5233 if test -d casesensitivetestdir 5234 then 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5236 $as_echo "yes" >&6; } 5237 BUILDEXEEXT=.exe 5238 else 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5240 $as_echo "no" >&6; } 5241 BUILDEXEEXT=$EXEEXT 5242 fi 5243 rmdir CaseSensitiveTestDir 5244 5245 case $MACHDEP in 5246 bsdos*) 5247 case $CC in 5248 gcc) CC="$CC -D_HAVE_BSDI";; 5249 esac;; 5250 esac 5251 5252 case $ac_sys_system in 5253 hp*|HP*) 5254 case $CC in 5255 cc|*/cc) CC="$CC -Ae";; 5256 esac;; 5257 SunOS*) 5258 # Some functions have a prototype only with that define, e.g. confstr 5259 5260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5261 5262 ;; 5263 esac 5264 5265 5266 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5268 $as_echo_n "checking LIBRARY... " >&6; } 5269 if test -z "$LIBRARY" 5270 then 5271 LIBRARY='libpython$(VERSION).a' 5272 fi 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5274 $as_echo "$LIBRARY" >&6; } 5275 5276 # LDLIBRARY is the name of the library to link against (as opposed to the 5277 # name of the library into which to insert object files). BLDLIBRARY is also 5278 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5279 # is blank as the main program is not linked directly against LDLIBRARY. 5280 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5281 # systems without shared libraries, LDLIBRARY is the same as LIBRARY 5282 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5283 # DLLLIBRARY is the shared (i.e., DLL) library. 5284 # 5285 # RUNSHARED is used to run shared python without installed libraries 5286 # 5287 # INSTSONAME is the name of the shared library that will be use to install 5288 # on the system - some systems like version suffix, others don't 5289 5290 5291 5292 5293 5294 5295 LDLIBRARY="$LIBRARY" 5296 BLDLIBRARY='$(LDLIBRARY)' 5297 INSTSONAME='$(LDLIBRARY)' 5298 DLLLIBRARY='' 5299 LDLIBRARYDIR='' 5300 RUNSHARED='' 5301 5302 # LINKCC is the command that links the python executable -- default is $(CC). 5303 # If CXX is set, and if it is needed to link a main function that was 5304 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5305 # python might then depend on the C++ runtime 5306 # This is altered for AIX in order to build the export list before 5307 # linking. 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5310 $as_echo_n "checking LINKCC... " >&6; } 5311 if test -z "$LINKCC" 5312 then 5313 LINKCC='$(PURIFY) $(MAINCC)' 5314 case $ac_sys_system in 5315 AIX*) 5316 exp_extra="\"\"" 5317 if test $ac_sys_release -ge 5 -o \ 5318 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then 5319 exp_extra="." 5320 fi 5321 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; 5322 QNX*) 5323 # qcc must be used because the other compilers do not 5324 # support -N. 5325 LINKCC=qcc;; 5326 esac 5327 fi 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5329 $as_echo "$LINKCC" >&6; } 5330 5331 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5332 # make sure we default having it set to "no": this is used by 5333 # distutils.unixccompiler to know if it should add --enable-new-dtags 5334 # to linker command lines, and failing to detect GNU ld simply results 5335 # in the same bahaviour as before. 5336 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5338 $as_echo_n "checking for GNU ld... " >&6; } 5339 ac_prog=ld 5340 if test "$GCC" = yes; then 5341 ac_prog=`$CC -print-prog-name=ld` 5342 fi 5343 case `"$ac_prog" -V 2>&1 < /dev/null` in 5344 *GNU*) 5345 GNULD=yes;; 5346 *) 5347 GNULD=no;; 5348 esac 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5350 $as_echo "$GNULD" >&6; } 5351 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5353 $as_echo_n "checking for --enable-shared... " >&6; } 5354 # Check whether --enable-shared was given. 5355 if test "${enable_shared+set}" = set; then : 5356 enableval=$enable_shared; 5357 fi 5358 5359 5360 if test -z "$enable_shared" 5361 then 5362 case $ac_sys_system in 5363 CYGWIN* | atheos*) 5364 enable_shared="yes";; 5365 *) 5366 enable_shared="no";; 5367 esac 5368 fi 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5370 $as_echo "$enable_shared" >&6; } 5371 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5373 $as_echo_n "checking for --enable-profiling... " >&6; } 5374 # Check whether --enable-profiling was given. 5375 if test "${enable_profiling+set}" = set; then : 5376 enableval=$enable_profiling; 5377 fi 5378 5379 if test "x$enable_profiling" = xyes; then 5380 ac_save_cc="$CC" 5381 CC="$CC -pg" 5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5383 /* end confdefs.h. */ 5384 int main() { return 0; } 5385 _ACEOF 5386 if ac_fn_c_try_link "$LINENO"; then : 5387 5388 else 5389 enable_profiling=no 5390 fi 5391 rm -f core conftest.err conftest.$ac_objext \ 5392 conftest$ac_exeext conftest.$ac_ext 5393 CC="$ac_save_cc" 5394 else 5395 enable_profiling=no 5396 fi 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5398 $as_echo "$enable_profiling" >&6; } 5399 5400 if test "x$enable_profiling" = xyes; then 5401 BASECFLAGS="-pg $BASECFLAGS" 5402 LDFLAGS="-pg $LDFLAGS" 5403 fi 5404 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5406 $as_echo_n "checking LDLIBRARY... " >&6; } 5407 5408 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5409 # library that we build, but we do not want to link against it (we 5410 # will find it with a -framework option). For this reason there is an 5411 # extra variable BLDLIBRARY against which Python and the extension 5412 # modules are linked, BLDLIBRARY. This is normally the same as 5413 # LDLIBRARY, but empty for MacOSX framework builds. 5414 if test "$enable_framework" 5415 then 5416 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5417 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5418 BLDLIBRARY='' 5419 else 5420 BLDLIBRARY='$(LDLIBRARY)' 5421 fi 5422 5423 # Other platforms follow 5424 if test $enable_shared = "yes"; then 5425 5426 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5427 5428 case $ac_sys_system in 5429 BeOS*) 5430 LDLIBRARY='libpython$(VERSION).so' 5431 ;; 5432 CYGWIN*) 5433 LDLIBRARY='libpython$(VERSION).dll.a' 5434 DLLLIBRARY='libpython$(VERSION).dll' 5435 ;; 5436 SunOS*) 5437 LDLIBRARY='libpython$(VERSION).so' 5438 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' 5439 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5440 INSTSONAME="$LDLIBRARY".$SOVERSION 5441 ;; 5442 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5443 LDLIBRARY='libpython$(VERSION).so' 5444 BLDLIBRARY='-L. -lpython$(VERSION)' 5445 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5446 case $ac_sys_system in 5447 FreeBSD*) 5448 SOVERSION=`echo $SOVERSION|cut -d "." -f 1` 5449 ;; 5450 esac 5451 INSTSONAME="$LDLIBRARY".$SOVERSION 5452 ;; 5453 hp*|HP*) 5454 case `uname -m` in 5455 ia64) 5456 LDLIBRARY='libpython$(VERSION).so' 5457 ;; 5458 *) 5459 LDLIBRARY='libpython$(VERSION).sl' 5460 ;; 5461 esac 5462 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' 5463 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5464 ;; 5465 OSF*) 5466 LDLIBRARY='libpython$(VERSION).so' 5467 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' 5468 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5469 ;; 5470 atheos*) 5471 LDLIBRARY='libpython$(VERSION).so' 5472 BLDLIBRARY='-L. -lpython$(VERSION)' 5473 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} 5474 ;; 5475 Darwin*) 5476 LDLIBRARY='libpython$(VERSION).dylib' 5477 BLDLIBRARY='-L. -lpython$(VERSION)' 5478 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5479 ;; 5480 AIX*) 5481 LDLIBRARY='libpython$(VERSION).so' 5482 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 5483 ;; 5484 5485 esac 5486 else # shared is disabled 5487 case $ac_sys_system in 5488 CYGWIN*) 5489 BLDLIBRARY='$(LIBRARY)' 5490 LDLIBRARY='libpython$(VERSION).dll.a' 5491 ;; 5492 esac 5493 fi 5494 5495 if test "$cross_compiling" = yes; then 5496 RUNSHARED= 5497 fi 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 5500 $as_echo "$LDLIBRARY" >&6; } 5501 5502 if test -n "$ac_tool_prefix"; then 5503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5506 $as_echo_n "checking for $ac_word... " >&6; } 5507 if ${ac_cv_prog_RANLIB+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509 else 5510 if test -n "$RANLIB"; then 5511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5512 else 5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514 for as_dir in $PATH 5515 do 5516 IFS=$as_save_IFS 5517 test -z "$as_dir" && as_dir=. 5518 for ac_exec_ext in '' $ac_executable_extensions; do 5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5522 break 2 5523 fi 5524 done 5525 done 5526 IFS=$as_save_IFS 5527 5528 fi 5529 fi 5530 RANLIB=$ac_cv_prog_RANLIB 5531 if test -n "$RANLIB"; then 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5533 $as_echo "$RANLIB" >&6; } 5534 else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536 $as_echo "no" >&6; } 5537 fi 5538 5539 5540 fi 5541 if test -z "$ac_cv_prog_RANLIB"; then 5542 ac_ct_RANLIB=$RANLIB 5543 # Extract the first word of "ranlib", so it can be a program name with args. 5544 set dummy ranlib; ac_word=$2 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5546 $as_echo_n "checking for $ac_word... " >&6; } 5547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549 else 5550 if test -n "$ac_ct_RANLIB"; then 5551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5552 else 5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5554 for as_dir in $PATH 5555 do 5556 IFS=$as_save_IFS 5557 test -z "$as_dir" && as_dir=. 5558 for ac_exec_ext in '' $ac_executable_extensions; do 5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5560 ac_cv_prog_ac_ct_RANLIB="ranlib" 5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5562 break 2 5563 fi 5564 done 5565 done 5566 IFS=$as_save_IFS 5567 5568 fi 5569 fi 5570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5571 if test -n "$ac_ct_RANLIB"; then 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5573 $as_echo "$ac_ct_RANLIB" >&6; } 5574 else 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5576 $as_echo "no" >&6; } 5577 fi 5578 5579 if test "x$ac_ct_RANLIB" = x; then 5580 RANLIB=":" 5581 else 5582 case $cross_compiling:$ac_tool_warned in 5583 yes:) 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5586 ac_tool_warned=yes ;; 5587 esac 5588 RANLIB=$ac_ct_RANLIB 5589 fi 5590 else 5591 RANLIB="$ac_cv_prog_RANLIB" 5592 fi 5593 5594 5595 if test -n "$ac_tool_prefix"; then 5596 for ac_prog in ar aal 5597 do 5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601 $as_echo_n "checking for $ac_word... " >&6; } 5602 if ${ac_cv_prog_AR+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604 else 5605 if test -n "$AR"; then 5606 ac_cv_prog_AR="$AR" # Let the user override the test. 5607 else 5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609 for as_dir in $PATH 5610 do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619 done 5620 done 5621 IFS=$as_save_IFS 5622 5623 fi 5624 fi 5625 AR=$ac_cv_prog_AR 5626 if test -n "$AR"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5628 $as_echo "$AR" >&6; } 5629 else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631 $as_echo "no" >&6; } 5632 fi 5633 5634 5635 test -n "$AR" && break 5636 done 5637 fi 5638 if test -z "$AR"; then 5639 ac_ct_AR=$AR 5640 for ac_prog in ar aal 5641 do 5642 # Extract the first word of "$ac_prog", so it can be a program name with args. 5643 set dummy $ac_prog; ac_word=$2 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5645 $as_echo_n "checking for $ac_word... " >&6; } 5646 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648 else 5649 if test -n "$ac_ct_AR"; then 5650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5651 else 5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5653 for as_dir in $PATH 5654 do 5655 IFS=$as_save_IFS 5656 test -z "$as_dir" && as_dir=. 5657 for ac_exec_ext in '' $ac_executable_extensions; do 5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5659 ac_cv_prog_ac_ct_AR="$ac_prog" 5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5661 break 2 5662 fi 5663 done 5664 done 5665 IFS=$as_save_IFS 5666 5667 fi 5668 fi 5669 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5670 if test -n "$ac_ct_AR"; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5672 $as_echo "$ac_ct_AR" >&6; } 5673 else 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5675 $as_echo "no" >&6; } 5676 fi 5677 5678 5679 test -n "$ac_ct_AR" && break 5680 done 5681 5682 if test "x$ac_ct_AR" = x; then 5683 AR="ar" 5684 else 5685 case $cross_compiling:$ac_tool_warned in 5686 yes:) 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5689 ac_tool_warned=yes ;; 5690 esac 5691 AR=$ac_ct_AR 5692 fi 5693 fi 5694 5695 5696 # tweak ARFLAGS only if the user didn't set it on the command line 5697 5698 if test -z "$ARFLAGS" 5699 then 5700 ARFLAGS="rc" 5701 fi 5702 5703 5704 # Extract the first word of "svnversion", so it can be a program name with args. 5705 set dummy svnversion; ac_word=$2 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5707 $as_echo_n "checking for $ac_word... " >&6; } 5708 if ${ac_cv_prog_SVNVERSION+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710 else 5711 if test -n "$SVNVERSION"; then 5712 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. 5713 else 5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5715 for as_dir in $PATH 5716 do 5717 IFS=$as_save_IFS 5718 test -z "$as_dir" && as_dir=. 5719 for ac_exec_ext in '' $ac_executable_extensions; do 5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5721 ac_cv_prog_SVNVERSION="found" 5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5723 break 2 5724 fi 5725 done 5726 done 5727 IFS=$as_save_IFS 5728 5729 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found" 5730 fi 5731 fi 5732 SVNVERSION=$ac_cv_prog_SVNVERSION 5733 if test -n "$SVNVERSION"; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 5735 $as_echo "$SVNVERSION" >&6; } 5736 else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5738 $as_echo "no" >&6; } 5739 fi 5740 5741 5742 if test $SVNVERSION = found 5743 then 5744 SVNVERSION="svnversion \$(srcdir)" 5745 else 5746 SVNVERSION="echo Unversioned directory" 5747 fi 5748 5749 5750 5751 5752 # Extract the first word of "hg", so it can be a program name with args. 5753 set dummy hg; ac_word=$2 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5755 $as_echo_n "checking for $ac_word... " >&6; } 5756 if ${ac_cv_prog_HAS_HG+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758 else 5759 if test -n "$HAS_HG"; then 5760 ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. 5761 else 5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763 for as_dir in $PATH 5764 do 5765 IFS=$as_save_IFS 5766 test -z "$as_dir" && as_dir=. 5767 for ac_exec_ext in '' $ac_executable_extensions; do 5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5769 ac_cv_prog_HAS_HG="found" 5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5771 break 2 5772 fi 5773 done 5774 done 5775 IFS=$as_save_IFS 5776 5777 test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" 5778 fi 5779 fi 5780 HAS_HG=$ac_cv_prog_HAS_HG 5781 if test -n "$HAS_HG"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 5783 $as_echo "$HAS_HG" >&6; } 5784 else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786 $as_echo "no" >&6; } 5787 fi 5788 5789 5790 if test $HAS_HG = found 5791 then 5792 HGVERSION="hg id -i \$(srcdir)" 5793 HGTAG="hg id -t \$(srcdir)" 5794 HGBRANCH="hg id -b \$(srcdir)" 5795 else 5796 HGVERSION="" 5797 HGTAG="" 5798 HGBRANCH="" 5799 fi 5800 5801 case $MACHDEP in 5802 bsdos*|hp*|HP*) 5803 # install -d does not work on BSDI or HP-UX 5804 if test -z "$INSTALL" 5805 then 5806 INSTALL="${srcdir}/install-sh -c" 5807 fi 5808 esac 5809 # Find a good install program. We prefer a C program (faster), 5810 # so one script is as good as another. But avoid the broken or 5811 # incompatible versions: 5812 # SysV /etc/install, /usr/sbin/install 5813 # SunOS /usr/etc/install 5814 # IRIX /sbin/install 5815 # AIX /bin/install 5816 # AmigaOS /C/install, which installs bootblocks on floppy discs 5817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 5819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5820 # OS/2's system install, which has a completely different semantic 5821 # ./install, which can be erroneously created by make from ./install.sh. 5822 # Reject install programs that cannot install multiple files. 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5824 $as_echo_n "checking for a BSD-compatible install... " >&6; } 5825 if test -z "$INSTALL"; then 5826 if ${ac_cv_path_install+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828 else 5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830 for as_dir in $PATH 5831 do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 # Account for people who put trailing slashes in PATH elements. 5835 case $as_dir/ in #(( 5836 ./ | .// | /[cC]/* | \ 5837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5839 /usr/ucb/* ) ;; 5840 *) 5841 # OSF1 and SCO ODT 3.0 have their own names for install. 5842 # Don't use installbsd from OSF since it installs stuff as root 5843 # by default. 5844 for ac_prog in ginstall scoinst install; do 5845 for ac_exec_ext in '' $ac_executable_extensions; do 5846 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5847 if test $ac_prog = install && 5848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5849 # AIX install. It has an incompatible calling convention. 5850 : 5851 elif test $ac_prog = install && 5852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5853 # program-specific install script used by HP pwplus--don't use. 5854 : 5855 else 5856 rm -rf conftest.one conftest.two conftest.dir 5857 echo one > conftest.one 5858 echo two > conftest.two 5859 mkdir conftest.dir 5860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5861 test -s conftest.one && test -s conftest.two && 5862 test -s conftest.dir/conftest.one && 5863 test -s conftest.dir/conftest.two 5864 then 5865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5866 break 3 5867 fi 5868 fi 5869 fi 5870 done 5871 done 5872 ;; 5873 esac 5874 5875 done 5876 IFS=$as_save_IFS 5877 5878 rm -rf conftest.one conftest.two conftest.dir 5879 5880 fi 5881 if test "${ac_cv_path_install+set}" = set; then 5882 INSTALL=$ac_cv_path_install 5883 else 5884 # As a last resort, use the slow shell script. Don't cache a 5885 # value for INSTALL within a source directory, because that will 5886 # break other packages using the cache if that directory is 5887 # removed, or if the value is a relative name. 5888 INSTALL=$ac_install_sh 5889 fi 5890 fi 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5892 $as_echo "$INSTALL" >&6; } 5893 5894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5895 # It thinks the first close brace ends the variable substitution. 5896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5897 5898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5899 5900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5901 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 5903 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 5904 if test -z "$MKDIR_P"; then 5905 if ${ac_cv_path_mkdir+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907 else 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5910 do 5911 IFS=$as_save_IFS 5912 test -z "$as_dir" && as_dir=. 5913 for ac_prog in mkdir gmkdir; do 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 5916 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 5917 'mkdir (GNU coreutils) '* | \ 5918 'mkdir (coreutils) '* | \ 5919 'mkdir (fileutils) '4.1*) 5920 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 5921 break 3;; 5922 esac 5923 done 5924 done 5925 done 5926 IFS=$as_save_IFS 5927 5928 fi 5929 5930 test -d ./--version && rmdir ./--version 5931 if test "${ac_cv_path_mkdir+set}" = set; then 5932 MKDIR_P="$ac_cv_path_mkdir -p" 5933 else 5934 # As a last resort, use the slow shell script. Don't cache a 5935 # value for MKDIR_P within a source directory, because that will 5936 # break other packages using the cache if that directory is 5937 # removed, or if the value is a relative name. 5938 MKDIR_P="$ac_install_sh -d" 5939 fi 5940 fi 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5942 $as_echo "$MKDIR_P" >&6; } 5943 5944 5945 # Not every filesystem supports hard links 5946 5947 if test -z "$LN" ; then 5948 case $ac_sys_system in 5949 BeOS*) LN="ln -s";; 5950 CYGWIN*) LN="ln -s";; 5951 atheos*) LN="ln -s";; 5952 *) LN=ln;; 5953 esac 5954 fi 5955 5956 # Check for --with-pydebug 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 5958 $as_echo_n "checking for --with-pydebug... " >&6; } 5959 5960 # Check whether --with-pydebug was given. 5961 if test "${with_pydebug+set}" = set; then : 5962 withval=$with_pydebug; 5963 if test "$withval" != no 5964 then 5965 5966 $as_echo "#define Py_DEBUG 1" >>confdefs.h 5967 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5969 $as_echo "yes" >&6; }; 5970 Py_DEBUG='true' 5971 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972 $as_echo "no" >&6; }; Py_DEBUG='false' 5973 fi 5974 else 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5976 $as_echo "no" >&6; } 5977 fi 5978 5979 5980 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 5981 # merged with this chunk of code? 5982 5983 # Optimizer/debugger flags 5984 # ------------------------ 5985 # (The following bit of code is complicated enough - please keep things 5986 # indented properly. Just pretend you're editing Python code. ;-) 5987 5988 # There are two parallel sets of case statements below, one that checks to 5989 # see if OPT was set and one that does BASECFLAGS setting based upon 5990 # compiler and platform. BASECFLAGS tweaks need to be made even if the 5991 # user set OPT. 5992 5993 # tweak OPT based on compiler and platform, only if the user didn't set 5994 # it on the command line 5995 5996 if test "${OPT-unset}" = "unset" 5997 then 5998 case $GCC in 5999 yes) 6000 if test "$CC" != 'g++' ; then 6001 STRICT_PROTO="-Wstrict-prototypes" 6002 fi 6003 # For gcc 4.x we need to use -fwrapv so lets check if its supported 6004 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 6005 WRAP="-fwrapv" 6006 fi 6007 6008 # Clang also needs -fwrapv 6009 case $CC in 6010 *clang*) WRAP="-fwrapv" 6011 ;; 6012 esac 6013 6014 case $ac_cv_prog_cc_g in 6015 yes) 6016 if test "$Py_DEBUG" = 'true' ; then 6017 # Optimization messes up debuggers, so turn it off for 6018 # debug builds. 6019 OPT="-g -O0 -Wall $STRICT_PROTO" 6020 else 6021 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" 6022 fi 6023 ;; 6024 *) 6025 OPT="-O3 -Wall $STRICT_PROTO" 6026 ;; 6027 esac 6028 case $ac_sys_system in 6029 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6030 ;; 6031 esac 6032 ;; 6033 6034 *) 6035 OPT="-O" 6036 ;; 6037 esac 6038 fi 6039 6040 6041 6042 # The -arch flags for universal builds on OSX 6043 UNIVERSAL_ARCH_FLAGS= 6044 6045 6046 # tweak BASECFLAGS based on compiler and platform 6047 case $GCC in 6048 yes) 6049 # Python violates C99 rules, by casting between incompatible 6050 # pointer types. GCC may generate bad code as a result of that, 6051 # so use -fno-strict-aliasing if supported. 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 6053 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } 6054 ac_save_cc="$CC" 6055 CC="$CC -fno-strict-aliasing" 6056 if ${ac_cv_no_strict_aliasing_ok+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058 else 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060 /* end confdefs.h. */ 6061 6062 int 6063 main () 6064 { 6065 6066 ; 6067 return 0; 6068 } 6069 _ACEOF 6070 if ac_fn_c_try_compile "$LINENO"; then : 6071 ac_cv_no_strict_aliasing_ok=yes 6072 else 6073 ac_cv_no_strict_aliasing_ok=no 6074 fi 6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6076 fi 6077 6078 CC="$ac_save_cc" 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 6080 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } 6081 if test $ac_cv_no_strict_aliasing_ok = yes 6082 then 6083 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 6084 fi 6085 6086 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 6087 # support. Without this, treatment of subnormals doesn't follow 6088 # the standard. 6089 case $host in 6090 alpha*) 6091 BASECFLAGS="$BASECFLAGS -mieee" 6092 ;; 6093 esac 6094 6095 case $ac_sys_system in 6096 SCO_SV*) 6097 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 6098 ;; 6099 # is there any other compiler on Darwin besides gcc? 6100 Darwin*) 6101 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 6102 # used to be here, but non-Apple gcc doesn't accept them. 6103 if test "${CC}" = gcc 6104 then 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 6106 $as_echo_n "checking which compiler should be used... " >&6; } 6107 case "${UNIVERSALSDK}" in 6108 */MacOSX10.4u.sdk) 6109 # Build using 10.4 SDK, force usage of gcc when the 6110 # compiler is gcc, otherwise the user will get very 6111 # confusing error messages when building on OSX 10.6 6112 CC=gcc-4.0 6113 CPP=cpp-4.0 6114 ;; 6115 esac 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6117 $as_echo "$CC" >&6; } 6118 fi 6119 6120 # Calculate the right deployment target for this build. 6121 # 6122 cur_target_major=`sw_vers -productVersion | \ 6123 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 6124 cur_target_minor=`sw_vers -productVersion | \ 6125 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 6126 cur_target="${cur_target_major}.${cur_target_minor}" 6127 if test ${cur_target_major} -eq 10 && \ 6128 test ${cur_target_minor} -ge 3 6129 then 6130 cur_target=10.3 6131 if test ${enable_universalsdk}; then 6132 if test "${UNIVERSAL_ARCHS}" = "all"; then 6133 # Ensure that the default platform for a 6134 # 4-way universal build is OSX 10.5, 6135 # that's the first OS release where 6136 # 4-way builds make sense. 6137 cur_target='10.5' 6138 6139 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then 6140 cur_target='10.5' 6141 6142 elif test "${UNIVERSAL_ARCHS}" = "intel"; then 6143 cur_target='10.5' 6144 6145 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then 6146 cur_target='10.5' 6147 fi 6148 else 6149 if test `/usr/bin/arch` = "i386"; then 6150 # On Intel macs default to a deployment 6151 # target of 10.4, that's the first OSX 6152 # release with Intel support. 6153 cur_target="10.4" 6154 fi 6155 fi 6156 fi 6157 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 6158 6159 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 6160 # environment with a value that is the same as what we'll use 6161 # in the Makefile to ensure that we'll get the same compiler 6162 # environment during configure and build time. 6163 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 6164 export MACOSX_DEPLOYMENT_TARGET 6165 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 6166 6167 if test "${enable_universalsdk}"; then 6168 UNIVERSAL_ARCH_FLAGS="" 6169 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then 6170 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 6171 ARCH_RUN_32BIT="" 6172 LIPO_32BIT_FLAGS="" 6173 6174 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then 6175 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 6176 LIPO_32BIT_FLAGS="" 6177 ARCH_RUN_32BIT="true" 6178 6179 elif test "$UNIVERSAL_ARCHS" = "all" ; then 6180 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 6181 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 6182 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 6183 6184 elif test "$UNIVERSAL_ARCHS" = "intel" ; then 6185 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 6186 LIPO_32BIT_FLAGS="-extract i386" 6187 ARCH_RUN_32BIT="/usr/bin/arch -i386" 6188 6189 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then 6190 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 6191 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 6192 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 6193 6194 else 6195 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 6196 6197 fi 6198 6199 6200 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 6201 if test "${UNIVERSALSDK}" != "/" 6202 then 6203 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 6204 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}" 6205 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}" 6206 fi 6207 6208 fi 6209 6210 6211 ;; 6212 OSF*) 6213 BASECFLAGS="$BASECFLAGS -mieee" 6214 ;; 6215 esac 6216 ;; 6217 6218 *) 6219 case $ac_sys_system in 6220 OpenUNIX*|UnixWare*) 6221 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 6222 ;; 6223 OSF*) 6224 BASECFLAGS="$BASECFLAGS -ieee -std" 6225 ;; 6226 SCO_SV*) 6227 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 6228 ;; 6229 esac 6230 ;; 6231 esac 6232 6233 # ICC needs -fp-model strict or floats behave badly 6234 case "$CC" in 6235 *icc*) 6236 BASECFLAGS="$BASECFLAGS -fp-model strict" 6237 ;; 6238 esac 6239 6240 if test "$Py_DEBUG" = 'true'; then 6241 : 6242 else 6243 OPT="-DNDEBUG $OPT" 6244 fi 6245 6246 if test "$ac_arch_flags" 6247 then 6248 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 6249 fi 6250 6251 # disable check for icc since it seems to pass, but generates a warning 6252 if test "$CC" = icc 6253 then 6254 ac_cv_opt_olimit_ok=no 6255 fi 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 6258 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } 6259 if ${ac_cv_opt_olimit_ok+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261 else 6262 ac_save_cc="$CC" 6263 CC="$CC -OPT:Olimit=0" 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265 /* end confdefs.h. */ 6266 6267 int 6268 main () 6269 { 6270 6271 ; 6272 return 0; 6273 } 6274 _ACEOF 6275 if ac_fn_c_try_compile "$LINENO"; then : 6276 ac_cv_opt_olimit_ok=yes 6277 else 6278 ac_cv_opt_olimit_ok=no 6279 6280 fi 6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6282 CC="$ac_save_cc" 6283 fi 6284 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 6286 $as_echo "$ac_cv_opt_olimit_ok" >&6; } 6287 if test $ac_cv_opt_olimit_ok = yes; then 6288 case $ac_sys_system in 6289 # XXX is this branch needed? On MacOSX 10.2.2 the result of the 6290 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque 6291 # environment? 6292 Darwin*) 6293 ;; 6294 # XXX thankfully this useless troublemaker of a flag has been 6295 # eradicated in the 3.x line. For now, make sure it isn't picked 6296 # up by any of our other platforms that use CC. 6297 AIX*|SunOS*|HP-UX*|IRIX*) 6298 ;; 6299 *) 6300 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" 6301 ;; 6302 esac 6303 else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 6305 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } 6306 if ${ac_cv_olimit_ok+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308 else 6309 ac_save_cc="$CC" 6310 CC="$CC -Olimit 1500" 6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 /* end confdefs.h. */ 6313 6314 int 6315 main () 6316 { 6317 6318 ; 6319 return 0; 6320 } 6321 _ACEOF 6322 if ac_fn_c_try_compile "$LINENO"; then : 6323 ac_cv_olimit_ok=yes 6324 else 6325 ac_cv_olimit_ok=no 6326 6327 fi 6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6329 CC="$ac_save_cc" 6330 fi 6331 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 6333 $as_echo "$ac_cv_olimit_ok" >&6; } 6334 if test $ac_cv_olimit_ok = yes; then 6335 case $ac_sys_system in 6336 # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. 6337 HP-UX*) 6338 ;; 6339 *) 6340 BASECFLAGS="$BASECFLAGS -Olimit 1500" 6341 ;; 6342 esac 6343 fi 6344 fi 6345 6346 # Check whether GCC supports PyArg_ParseTuple format 6347 if test "$GCC" = "yes" 6348 then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 6350 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } 6351 save_CFLAGS=$CFLAGS 6352 CFLAGS="$CFLAGS -Werror -Wformat" 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354 /* end confdefs.h. */ 6355 6356 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); 6357 int 6358 main () 6359 { 6360 6361 ; 6362 return 0; 6363 } 6364 6365 _ACEOF 6366 if ac_fn_c_try_compile "$LINENO"; then : 6367 6368 6369 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h 6370 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6372 $as_echo "yes" >&6; } 6373 6374 else 6375 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6377 $as_echo "no" >&6; } 6378 6379 fi 6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6381 CFLAGS=$save_CFLAGS 6382 fi 6383 6384 6385 # Enable optimization flags 6386 6387 6388 Py_OPT='false' 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6390 $as_echo_n "checking for --enable-optimizations... " >&6; } 6391 # Check whether --enable-optimizations was given. 6392 if test "${enable_optimizations+set}" = set; then : 6393 enableval=$enable_optimizations; 6394 if test "$withval" != no 6395 then 6396 Py_OPT='true' 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6398 $as_echo "yes" >&6; }; 6399 else 6400 Py_OPT='false' 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6402 $as_echo "no" >&6; }; 6403 fi 6404 else 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406 $as_echo "no" >&6; } 6407 fi 6408 6409 if test "$Py_OPT" = 'true' ; then 6410 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6411 # compile working code using it and both test_distutils and test_gdb are 6412 # broken when you do managed to get a toolchain that works with it. People 6413 # who want LTO need to use --with-lto themselves. 6414 Py_LTO='true' 6415 DEF_MAKE_ALL_RULE="profile-opt" 6416 REQUIRE_PGO="yes" 6417 DEF_MAKE_RULE="build_all" 6418 else 6419 DEF_MAKE_ALL_RULE="build_all" 6420 REQUIRE_PGO="no" 6421 DEF_MAKE_RULE="all" 6422 fi 6423 6424 6425 # Enable LTO flags 6426 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6428 $as_echo_n "checking for --with-lto... " >&6; } 6429 6430 # Check whether --with-lto was given. 6431 if test "${with_lto+set}" = set; then : 6432 withval=$with_lto; 6433 if test "$withval" != no 6434 then 6435 Py_LTO='true' 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6437 $as_echo "yes" >&6; }; 6438 else 6439 Py_LTO='false' 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441 $as_echo "no" >&6; }; 6442 fi 6443 else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445 $as_echo "no" >&6; } 6446 fi 6447 6448 if test "$Py_LTO" = 'true' ; then 6449 case $CC in 6450 *clang*) 6451 # Any changes made here should be reflected in the GCC+Darwin case below 6452 LTOFLAGS="-flto" 6453 ;; 6454 *gcc*) 6455 case $ac_sys_system in 6456 Darwin*) 6457 LTOFLAGS="-flto" 6458 ;; 6459 *) 6460 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6461 ;; 6462 esac 6463 ;; 6464 esac 6465 fi 6466 6467 6468 # Enable PGO flags. 6469 6470 6471 6472 6473 6474 # Make this work on systems where llvm tools are not installed with their 6475 # normal names in the default $PATH (ie: Ubuntu). They exist under the 6476 # non-suffixed name in their versioned llvm directory. 6477 llvm_bin_dir='' 6478 llvm_path="${PATH}" 6479 if test "${CC}" = "clang" 6480 then 6481 clang_bin=`which clang` 6482 # Some systems install clang elsewhere as a symlink to the real path 6483 # which is where the related llvm tools are located. 6484 if test -L "${clang_bin}" 6485 then 6486 clang_dir=`dirname "${clang_bin}"` 6487 clang_bin=`readlink "${clang_bin}"` 6488 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6489 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6490 fi 6491 fi 6492 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 6494 $as_echo_n "checking target system type... " >&6; } 6495 if ${ac_cv_target+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497 else 6498 if test "x$target_alias" = x; then 6499 ac_cv_target=$ac_cv_host 6500 else 6501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 6502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 6503 fi 6504 6505 fi 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 6507 $as_echo "$ac_cv_target" >&6; } 6508 case $ac_cv_target in 6509 *-*-*) ;; 6510 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 6511 esac 6512 target=$ac_cv_target 6513 ac_save_IFS=$IFS; IFS='-' 6514 set x $ac_cv_target 6515 shift 6516 target_cpu=$1 6517 target_vendor=$2 6518 shift; shift 6519 # Remember, the first character of IFS is used to create $*, 6520 # except with old shells: 6521 target_os=$* 6522 IFS=$ac_save_IFS 6523 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 6524 6525 6526 # The aliases save the names the user supplied, while $host etc. 6527 # will get canonicalized. 6528 test -n "$target_alias" && 6529 test "$program_prefix$program_suffix$program_transform_name" = \ 6530 NONENONEs,x,x, && 6531 program_prefix=${target_alias}- 6532 # Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. 6533 set dummy $target_alias-llvm-profdata; ac_word=$2 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6535 $as_echo_n "checking for $ac_word... " >&6; } 6536 if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538 else 6539 case $LLVM_PROFDATA in 6540 [\\/]* | ?:[\\/]*) 6541 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6542 ;; 6543 *) 6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6545 for as_dir in ${llvm_path} 6546 do 6547 IFS=$as_save_IFS 6548 test -z "$as_dir" && as_dir=. 6549 for ac_exec_ext in '' $ac_executable_extensions; do 6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6551 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6553 break 2 6554 fi 6555 done 6556 done 6557 IFS=$as_save_IFS 6558 6559 ;; 6560 esac 6561 fi 6562 LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6563 if test -n "$LLVM_PROFDATA"; then 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6565 $as_echo "$LLVM_PROFDATA" >&6; } 6566 else 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6568 $as_echo "no" >&6; } 6569 fi 6570 6571 6572 if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6573 if test "$build" = "$target"; then 6574 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6575 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6576 set dummy llvm-profdata; ac_word=$2 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578 $as_echo_n "checking for $ac_word... " >&6; } 6579 if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581 else 6582 case $ac_pt_LLVM_PROFDATA in 6583 [\\/]* | ?:[\\/]*) 6584 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6585 ;; 6586 *) 6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588 for as_dir in ${llvm_path} 6589 do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598 done 6599 done 6600 IFS=$as_save_IFS 6601 6602 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" 6603 ;; 6604 esac 6605 fi 6606 ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6607 if test -n "$ac_pt_LLVM_PROFDATA"; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6609 $as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6610 else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6612 $as_echo "no" >&6; } 6613 fi 6614 6615 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6616 else 6617 LLVM_PROFDATA="''" 6618 fi 6619 else 6620 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6621 fi 6622 6623 6624 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6625 then 6626 LLVM_PROF_FOUND="found" 6627 else 6628 LLVM_PROF_FOUND="not-found" 6629 fi 6630 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6631 then 6632 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6633 if test -n "${found_llvm_profdata}" 6634 then 6635 # llvm-profdata isn't directly in $PATH in some cases. 6636 # https://apple.stackexchange.com/questions/197053/ 6637 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6638 LLVM_PROF_FOUND=found 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6640 $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6641 fi 6642 fi 6643 LLVM_PROF_ERR=no 6644 case $CC in 6645 *clang*) 6646 # Any changes made here should be reflected in the GCC+Darwin case below 6647 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6648 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6649 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6650 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6651 if test $LLVM_PROF_FOUND = not-found 6652 then 6653 LLVM_PROF_ERR=yes 6654 if test "${REQUIRE_PGO}" = "yes" 6655 then 6656 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6657 fi 6658 fi 6659 ;; 6660 *gcc*) 6661 case $ac_sys_system in 6662 Darwin*) 6663 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6664 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6665 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6666 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6667 if test "${LLVM_PROF_FOUND}" = "not-found" 6668 then 6669 LLVM_PROF_ERR=yes 6670 if test "${REQUIRE_PGO}" = "yes" 6671 then 6672 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6673 fi 6674 fi 6675 ;; 6676 *) 6677 PGO_PROF_GEN_FLAG="-fprofile-generate" 6678 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6679 LLVM_PROF_MERGER="true" 6680 LLVM_PROF_FILE="" 6681 ;; 6682 esac 6683 ;; 6684 *icc*) 6685 PGO_PROF_GEN_FLAG="-prof-gen" 6686 PGO_PROF_USE_FLAG="-prof-use" 6687 LLVM_PROF_MERGER="true" 6688 LLVM_PROF_FILE="" 6689 ;; 6690 esac 6691 6692 6693 # On some compilers, pthreads are available without further options 6694 # (e.g. MacOS X). On some of these systems, the compiler will not 6695 # complain if unaccepted options are passed (e.g. gcc on Mac OS X). 6696 # So we have to see first whether pthreads are available without 6697 # options before we can check whether -Kpthread improves anything. 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 6699 $as_echo_n "checking whether pthreads are available without options... " >&6; } 6700 if ${ac_cv_pthread_is_default+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702 else 6703 if test "$cross_compiling" = yes; then : 6704 ac_cv_pthread_is_default=no 6705 else 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707 /* end confdefs.h. */ 6708 6709 #include <stdio.h> 6710 #include <pthread.h> 6711 6712 void* routine(void* p){return NULL;} 6713 6714 int main(){ 6715 pthread_t p; 6716 if(pthread_create(&p,NULL,routine,NULL)!=0) 6717 return 1; 6718 (void)pthread_detach(p); 6719 return 0; 6720 } 6721 6722 _ACEOF 6723 if ac_fn_c_try_run "$LINENO"; then : 6724 6725 ac_cv_pthread_is_default=yes 6726 ac_cv_kthread=no 6727 ac_cv_pthread=no 6728 6729 else 6730 ac_cv_pthread_is_default=no 6731 fi 6732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6733 conftest.$ac_objext conftest.beam conftest.$ac_ext 6734 fi 6735 6736 6737 fi 6738 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 6740 $as_echo "$ac_cv_pthread_is_default" >&6; } 6741 6742 6743 if test $ac_cv_pthread_is_default = yes 6744 then 6745 ac_cv_kpthread=no 6746 else 6747 # -Kpthread, if available, provides the right #defines 6748 # and linker options to make pthread_create available 6749 # Some compilers won't report that they do not support -Kpthread, 6750 # so we need to run a program to see whether it really made the 6751 # function available. 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 6753 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 6754 if ${ac_cv_kpthread+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756 else 6757 ac_save_cc="$CC" 6758 CC="$CC -Kpthread" 6759 if test "$cross_compiling" = yes; then : 6760 ac_cv_kpthread=no 6761 else 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763 /* end confdefs.h. */ 6764 6765 #include <stdio.h> 6766 #include <pthread.h> 6767 6768 void* routine(void* p){return NULL;} 6769 6770 int main(){ 6771 pthread_t p; 6772 if(pthread_create(&p,NULL,routine,NULL)!=0) 6773 return 1; 6774 (void)pthread_detach(p); 6775 return 0; 6776 } 6777 6778 _ACEOF 6779 if ac_fn_c_try_run "$LINENO"; then : 6780 ac_cv_kpthread=yes 6781 else 6782 ac_cv_kpthread=no 6783 fi 6784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6785 conftest.$ac_objext conftest.beam conftest.$ac_ext 6786 fi 6787 6788 CC="$ac_save_cc" 6789 fi 6790 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 6792 $as_echo "$ac_cv_kpthread" >&6; } 6793 fi 6794 6795 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 6796 then 6797 # -Kthread, if available, provides the right #defines 6798 # and linker options to make pthread_create available 6799 # Some compilers won't report that they do not support -Kthread, 6800 # so we need to run a program to see whether it really made the 6801 # function available. 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 6803 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 6804 if ${ac_cv_kthread+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806 else 6807 ac_save_cc="$CC" 6808 CC="$CC -Kthread" 6809 if test "$cross_compiling" = yes; then : 6810 ac_cv_kthread=no 6811 else 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813 /* end confdefs.h. */ 6814 6815 #include <stdio.h> 6816 #include <pthread.h> 6817 6818 void* routine(void* p){return NULL;} 6819 6820 int main(){ 6821 pthread_t p; 6822 if(pthread_create(&p,NULL,routine,NULL)!=0) 6823 return 1; 6824 (void)pthread_detach(p); 6825 return 0; 6826 } 6827 6828 _ACEOF 6829 if ac_fn_c_try_run "$LINENO"; then : 6830 ac_cv_kthread=yes 6831 else 6832 ac_cv_kthread=no 6833 fi 6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6835 conftest.$ac_objext conftest.beam conftest.$ac_ext 6836 fi 6837 6838 CC="$ac_save_cc" 6839 fi 6840 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 6842 $as_echo "$ac_cv_kthread" >&6; } 6843 fi 6844 6845 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 6846 then 6847 # -pthread, if available, provides the right #defines 6848 # and linker options to make pthread_create available 6849 # Some compilers won't report that they do not support -pthread, 6850 # so we need to run a program to see whether it really made the 6851 # function available. 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 6853 $as_echo_n "checking whether $CC accepts -pthread... " >&6; } 6854 if ${ac_cv_pthread+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856 else 6857 ac_save_cc="$CC" 6858 CC="$CC -pthread" 6859 if test "$cross_compiling" = yes; then : 6860 ac_cv_pthread=no 6861 else 6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863 /* end confdefs.h. */ 6864 6865 #include <stdio.h> 6866 #include <pthread.h> 6867 6868 void* routine(void* p){return NULL;} 6869 6870 int main(){ 6871 pthread_t p; 6872 if(pthread_create(&p,NULL,routine,NULL)!=0) 6873 return 1; 6874 (void)pthread_detach(p); 6875 return 0; 6876 } 6877 6878 _ACEOF 6879 if ac_fn_c_try_run "$LINENO"; then : 6880 ac_cv_pthread=yes 6881 else 6882 ac_cv_pthread=no 6883 fi 6884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6885 conftest.$ac_objext conftest.beam conftest.$ac_ext 6886 fi 6887 6888 CC="$ac_save_cc" 6889 fi 6890 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 6892 $as_echo "$ac_cv_pthread" >&6; } 6893 fi 6894 6895 # If we have set a CC compiler flag for thread support then 6896 # check if it works for CXX, too. 6897 ac_cv_cxx_thread=no 6898 if test ! -z "$CXX" 6899 then 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 6901 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 6902 ac_save_cxx="$CXX" 6903 6904 if test "$ac_cv_kpthread" = "yes" 6905 then 6906 CXX="$CXX -Kpthread" 6907 ac_cv_cxx_thread=yes 6908 elif test "$ac_cv_kthread" = "yes" 6909 then 6910 CXX="$CXX -Kthread" 6911 ac_cv_cxx_thread=yes 6912 elif test "$ac_cv_pthread" = "yes" 6913 then 6914 CXX="$CXX -pthread" 6915 ac_cv_cxx_thread=yes 6916 fi 6917 6918 if test $ac_cv_cxx_thread = yes 6919 then 6920 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 6921 $CXX -c conftest.$ac_ext 2>&5 6922 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 6923 && test -s conftest$ac_exeext && ./conftest$ac_exeext 6924 then 6925 ac_cv_cxx_thread=yes 6926 else 6927 ac_cv_cxx_thread=no 6928 fi 6929 rm -fr conftest* 6930 fi 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 6932 $as_echo "$ac_cv_cxx_thread" >&6; } 6933 fi 6934 CXX="$ac_save_cxx" 6935 6936 6937 # checks for header files 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6939 $as_echo_n "checking for ANSI C header files... " >&6; } 6940 if ${ac_cv_header_stdc+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942 else 6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944 /* end confdefs.h. */ 6945 #include <stdlib.h> 6946 #include <stdarg.h> 6947 #include <string.h> 6948 #include <float.h> 6949 6950 int 6951 main () 6952 { 6953 6954 ; 6955 return 0; 6956 } 6957 _ACEOF 6958 if ac_fn_c_try_compile "$LINENO"; then : 6959 ac_cv_header_stdc=yes 6960 else 6961 ac_cv_header_stdc=no 6962 fi 6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6964 6965 if test $ac_cv_header_stdc = yes; then 6966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968 /* end confdefs.h. */ 6969 #include <string.h> 6970 6971 _ACEOF 6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6973 $EGREP "memchr" >/dev/null 2>&1; then : 6974 6975 else 6976 ac_cv_header_stdc=no 6977 fi 6978 rm -f conftest* 6979 6980 fi 6981 6982 if test $ac_cv_header_stdc = yes; then 6983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6985 /* end confdefs.h. */ 6986 #include <stdlib.h> 6987 6988 _ACEOF 6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6990 $EGREP "free" >/dev/null 2>&1; then : 6991 6992 else 6993 ac_cv_header_stdc=no 6994 fi 6995 rm -f conftest* 6996 6997 fi 6998 6999 if test $ac_cv_header_stdc = yes; then 7000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7001 if test "$cross_compiling" = yes; then : 7002 : 7003 else 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005 /* end confdefs.h. */ 7006 #include <ctype.h> 7007 #include <stdlib.h> 7008 #if ((' ' & 0x0FF) == 0x020) 7009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7011 #else 7012 # define ISLOWER(c) \ 7013 (('a' <= (c) && (c) <= 'i') \ 7014 || ('j' <= (c) && (c) <= 'r') \ 7015 || ('s' <= (c) && (c) <= 'z')) 7016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7017 #endif 7018 7019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7020 int 7021 main () 7022 { 7023 int i; 7024 for (i = 0; i < 256; i++) 7025 if (XOR (islower (i), ISLOWER (i)) 7026 || toupper (i) != TOUPPER (i)) 7027 return 2; 7028 return 0; 7029 } 7030 _ACEOF 7031 if ac_fn_c_try_run "$LINENO"; then : 7032 7033 else 7034 ac_cv_header_stdc=no 7035 fi 7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7037 conftest.$ac_objext conftest.beam conftest.$ac_ext 7038 fi 7039 7040 fi 7041 fi 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7043 $as_echo "$ac_cv_header_stdc" >&6; } 7044 if test $ac_cv_header_stdc = yes; then 7045 7046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7047 7048 fi 7049 7050 for ac_header in asm/types.h conio.h direct.h dlfcn.h errno.h \ 7051 fcntl.h grp.h \ 7052 ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \ 7053 shadow.h signal.h stdint.h stropts.h termios.h thread.h \ 7054 unistd.h utime.h \ 7055 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ 7056 sys/lock.h sys/mkdev.h sys/modem.h \ 7057 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ 7058 sys/termio.h sys/time.h \ 7059 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ 7060 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 7061 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h 7062 do : 7063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7066 cat >>confdefs.h <<_ACEOF 7067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7068 _ACEOF 7069 7070 fi 7071 7072 done 7073 7074 ac_header_dirent=no 7075 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7076 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7078 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7079 if eval \${$as_ac_Header+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081 else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 /* end confdefs.h. */ 7084 #include <sys/types.h> 7085 #include <$ac_hdr> 7086 7087 int 7088 main () 7089 { 7090 if ((DIR *) 0) 7091 return 0; 7092 ; 7093 return 0; 7094 } 7095 _ACEOF 7096 if ac_fn_c_try_compile "$LINENO"; then : 7097 eval "$as_ac_Header=yes" 7098 else 7099 eval "$as_ac_Header=no" 7100 fi 7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7102 fi 7103 eval ac_res=\$$as_ac_Header 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7105 $as_echo "$ac_res" >&6; } 7106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7107 cat >>confdefs.h <<_ACEOF 7108 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7109 _ACEOF 7110 7111 ac_header_dirent=$ac_hdr; break 7112 fi 7113 7114 done 7115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7116 if test $ac_header_dirent = dirent.h; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7118 $as_echo_n "checking for library containing opendir... " >&6; } 7119 if ${ac_cv_search_opendir+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121 else 7122 ac_func_search_save_LIBS=$LIBS 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124 /* end confdefs.h. */ 7125 7126 /* Override any GCC internal prototype to avoid an error. 7127 Use char because int might match the return type of a GCC 7128 builtin and then its argument prototype would still apply. */ 7129 #ifdef __cplusplus 7130 extern "C" 7131 #endif 7132 char opendir (); 7133 int 7134 main () 7135 { 7136 return opendir (); 7137 ; 7138 return 0; 7139 } 7140 _ACEOF 7141 for ac_lib in '' dir; do 7142 if test -z "$ac_lib"; then 7143 ac_res="none required" 7144 else 7145 ac_res=-l$ac_lib 7146 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7147 fi 7148 if ac_fn_c_try_link "$LINENO"; then : 7149 ac_cv_search_opendir=$ac_res 7150 fi 7151 rm -f core conftest.err conftest.$ac_objext \ 7152 conftest$ac_exeext 7153 if ${ac_cv_search_opendir+:} false; then : 7154 break 7155 fi 7156 done 7157 if ${ac_cv_search_opendir+:} false; then : 7158 7159 else 7160 ac_cv_search_opendir=no 7161 fi 7162 rm conftest.$ac_ext 7163 LIBS=$ac_func_search_save_LIBS 7164 fi 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7166 $as_echo "$ac_cv_search_opendir" >&6; } 7167 ac_res=$ac_cv_search_opendir 7168 if test "$ac_res" != no; then : 7169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7170 7171 fi 7172 7173 else 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7175 $as_echo_n "checking for library containing opendir... " >&6; } 7176 if ${ac_cv_search_opendir+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178 else 7179 ac_func_search_save_LIBS=$LIBS 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181 /* end confdefs.h. */ 7182 7183 /* Override any GCC internal prototype to avoid an error. 7184 Use char because int might match the return type of a GCC 7185 builtin and then its argument prototype would still apply. */ 7186 #ifdef __cplusplus 7187 extern "C" 7188 #endif 7189 char opendir (); 7190 int 7191 main () 7192 { 7193 return opendir (); 7194 ; 7195 return 0; 7196 } 7197 _ACEOF 7198 for ac_lib in '' x; do 7199 if test -z "$ac_lib"; then 7200 ac_res="none required" 7201 else 7202 ac_res=-l$ac_lib 7203 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7204 fi 7205 if ac_fn_c_try_link "$LINENO"; then : 7206 ac_cv_search_opendir=$ac_res 7207 fi 7208 rm -f core conftest.err conftest.$ac_objext \ 7209 conftest$ac_exeext 7210 if ${ac_cv_search_opendir+:} false; then : 7211 break 7212 fi 7213 done 7214 if ${ac_cv_search_opendir+:} false; then : 7215 7216 else 7217 ac_cv_search_opendir=no 7218 fi 7219 rm conftest.$ac_ext 7220 LIBS=$ac_func_search_save_LIBS 7221 fi 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7223 $as_echo "$ac_cv_search_opendir" >&6; } 7224 ac_res=$ac_cv_search_opendir 7225 if test "$ac_res" != no; then : 7226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7227 7228 fi 7229 7230 fi 7231 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 7233 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 7234 if ${ac_cv_header_sys_types_h_makedev+:} false; then : 7235 $as_echo_n "(cached) " >&6 7236 else 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7238 /* end confdefs.h. */ 7239 #include <sys/types.h> 7240 int 7241 main () 7242 { 7243 return makedev(0, 0); 7244 ; 7245 return 0; 7246 } 7247 _ACEOF 7248 if ac_fn_c_try_link "$LINENO"; then : 7249 ac_cv_header_sys_types_h_makedev=yes 7250 else 7251 ac_cv_header_sys_types_h_makedev=no 7252 fi 7253 rm -f core conftest.err conftest.$ac_objext \ 7254 conftest$ac_exeext conftest.$ac_ext 7255 7256 fi 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 7258 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 7259 7260 if test $ac_cv_header_sys_types_h_makedev = no; then 7261 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 7262 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 7263 7264 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 7265 7266 fi 7267 7268 7269 7270 if test $ac_cv_header_sys_mkdev_h = no; then 7271 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 7272 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 7273 7274 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 7275 7276 fi 7277 7278 7279 fi 7280 fi 7281 7282 7283 # On Linux, netlink.h requires asm/types.h 7284 for ac_header in linux/netlink.h 7285 do : 7286 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 7287 #ifdef HAVE_ASM_TYPES_H 7288 #include <asm/types.h> 7289 #endif 7290 #ifdef HAVE_SYS_SOCKET_H 7291 #include <sys/socket.h> 7292 #endif 7293 7294 " 7295 if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 7296 cat >>confdefs.h <<_ACEOF 7297 #define HAVE_LINUX_NETLINK_H 1 7298 _ACEOF 7299 7300 fi 7301 7302 done 7303 7304 7305 # checks for typedefs 7306 was_it_defined=no 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 7308 $as_echo_n "checking for clock_t in time.h... " >&6; } 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310 /* end confdefs.h. */ 7311 #include <time.h> 7312 7313 _ACEOF 7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7315 $EGREP "clock_t" >/dev/null 2>&1; then : 7316 was_it_defined=yes 7317 else 7318 7319 7320 $as_echo "#define clock_t long" >>confdefs.h 7321 7322 7323 fi 7324 rm -f conftest* 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 7327 $as_echo "$was_it_defined" >&6; } 7328 7329 # Check whether using makedev requires defining _OSF_SOURCE 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 7331 $as_echo_n "checking for makedev... " >&6; } 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333 /* end confdefs.h. */ 7334 7335 #if defined(MAJOR_IN_MKDEV) 7336 #include <sys/mkdev.h> 7337 #elif defined(MAJOR_IN_SYSMACROS) 7338 #include <sys/sysmacros.h> 7339 #else 7340 #include <sys/types.h> 7341 #endif 7342 int 7343 main () 7344 { 7345 makedev(0, 0) 7346 ; 7347 return 0; 7348 } 7349 _ACEOF 7350 if ac_fn_c_try_link "$LINENO"; then : 7351 ac_cv_has_makedev=yes 7352 else 7353 ac_cv_has_makedev=no 7354 fi 7355 rm -f core conftest.err conftest.$ac_objext \ 7356 conftest$ac_exeext conftest.$ac_ext 7357 if test "$ac_cv_has_makedev" = "no"; then 7358 # we didn't link, try if _OSF_SOURCE will allow us to link 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360 /* end confdefs.h. */ 7361 7362 #define _OSF_SOURCE 1 7363 #include <sys/types.h> 7364 7365 int 7366 main () 7367 { 7368 makedev(0, 0) 7369 ; 7370 return 0; 7371 } 7372 _ACEOF 7373 if ac_fn_c_try_link "$LINENO"; then : 7374 ac_cv_has_makedev=yes 7375 else 7376 ac_cv_has_makedev=no 7377 fi 7378 rm -f core conftest.err conftest.$ac_objext \ 7379 conftest$ac_exeext conftest.$ac_ext 7380 if test "$ac_cv_has_makedev" = "yes"; then 7381 7382 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h 7383 7384 fi 7385 fi 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 7387 $as_echo "$ac_cv_has_makedev" >&6; } 7388 if test "$ac_cv_has_makedev" = "yes"; then 7389 7390 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 7391 7392 fi 7393 7394 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in 7395 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are 7396 # defined, but the compiler does not support pragma redefine_extname, 7397 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit 7398 # structures (such as rlimit64) without declaring them. As a 7399 # work-around, disable LFS on such configurations 7400 7401 use_lfs=yes 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 7403 $as_echo_n "checking Solaris LFS bug... " >&6; } 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405 /* end confdefs.h. */ 7406 7407 #define _LARGEFILE_SOURCE 1 7408 #define _FILE_OFFSET_BITS 64 7409 #include <sys/resource.h> 7410 7411 int 7412 main () 7413 { 7414 struct rlimit foo; 7415 ; 7416 return 0; 7417 } 7418 _ACEOF 7419 if ac_fn_c_try_compile "$LINENO"; then : 7420 sol_lfs_bug=no 7421 else 7422 sol_lfs_bug=yes 7423 fi 7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 7426 $as_echo "$sol_lfs_bug" >&6; } 7427 if test "$sol_lfs_bug" = "yes"; then 7428 use_lfs=no 7429 fi 7430 7431 if test "$use_lfs" = "yes"; then 7432 # Two defines needed to enable largefile support on various platforms 7433 # These may affect some typedefs 7434 case $ac_sys_system/$ac_sys_release in 7435 AIX*) 7436 7437 $as_echo "#define _LARGE_FILES 1" >>confdefs.h 7438 7439 ;; 7440 esac 7441 7442 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 7443 7444 7445 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 7446 7447 fi 7448 7449 # Add some code to confdefs.h so that the test for off_t works on SCO 7450 cat >> confdefs.h <<\EOF 7451 #if defined(SCO_DS) 7452 #undef _OFF_T 7453 #endif 7454 EOF 7455 7456 # Type availability checks 7457 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 7458 if test "x$ac_cv_type_mode_t" = xyes; then : 7459 7460 else 7461 7462 cat >>confdefs.h <<_ACEOF 7463 #define mode_t int 7464 _ACEOF 7465 7466 fi 7467 7468 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 7469 if test "x$ac_cv_type_off_t" = xyes; then : 7470 7471 else 7472 7473 cat >>confdefs.h <<_ACEOF 7474 #define off_t long int 7475 _ACEOF 7476 7477 fi 7478 7479 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7480 if test "x$ac_cv_type_pid_t" = xyes; then : 7481 7482 else 7483 7484 cat >>confdefs.h <<_ACEOF 7485 #define pid_t int 7486 _ACEOF 7487 7488 fi 7489 7490 7491 cat >>confdefs.h <<_ACEOF 7492 #define RETSIGTYPE void 7493 _ACEOF 7494 7495 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7496 if test "x$ac_cv_type_size_t" = xyes; then : 7497 7498 else 7499 7500 cat >>confdefs.h <<_ACEOF 7501 #define size_t unsigned int 7502 _ACEOF 7503 7504 fi 7505 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7507 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7508 if ${ac_cv_type_uid_t+:} false; then : 7509 $as_echo_n "(cached) " >&6 7510 else 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512 /* end confdefs.h. */ 7513 #include <sys/types.h> 7514 7515 _ACEOF 7516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7517 $EGREP "uid_t" >/dev/null 2>&1; then : 7518 ac_cv_type_uid_t=yes 7519 else 7520 ac_cv_type_uid_t=no 7521 fi 7522 rm -f conftest* 7523 7524 fi 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7526 $as_echo "$ac_cv_type_uid_t" >&6; } 7527 if test $ac_cv_type_uid_t = no; then 7528 7529 $as_echo "#define uid_t int" >>confdefs.h 7530 7531 7532 $as_echo "#define gid_t int" >>confdefs.h 7533 7534 fi 7535 7536 7537 # There are two separate checks for each of the exact-width integer types we 7538 # need. First we check whether the type is available using the usual 7539 # AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> 7540 # and <stdint.h> where available). We then also use the special type checks of 7541 # the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available 7542 # directly, #define's uint32_t to be a suitable type. 7543 7544 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 7545 if test "x$ac_cv_type_uint32_t" = xyes; then : 7546 7547 $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h 7548 7549 fi 7550 7551 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 7552 case $ac_cv_c_uint32_t in #( 7553 no|yes) ;; #( 7554 *) 7555 7556 $as_echo "#define _UINT32_T 1" >>confdefs.h 7557 7558 7559 cat >>confdefs.h <<_ACEOF 7560 #define uint32_t $ac_cv_c_uint32_t 7561 _ACEOF 7562 ;; 7563 esac 7564 7565 7566 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 7567 if test "x$ac_cv_type_uint64_t" = xyes; then : 7568 7569 $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h 7570 7571 fi 7572 7573 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 7574 case $ac_cv_c_uint64_t in #( 7575 no|yes) ;; #( 7576 *) 7577 7578 $as_echo "#define _UINT64_T 1" >>confdefs.h 7579 7580 7581 cat >>confdefs.h <<_ACEOF 7582 #define uint64_t $ac_cv_c_uint64_t 7583 _ACEOF 7584 ;; 7585 esac 7586 7587 7588 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 7589 if test "x$ac_cv_type_int32_t" = xyes; then : 7590 7591 $as_echo "#define HAVE_INT32_T 1" >>confdefs.h 7592 7593 fi 7594 7595 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 7596 case $ac_cv_c_int32_t in #( 7597 no|yes) ;; #( 7598 *) 7599 7600 cat >>confdefs.h <<_ACEOF 7601 #define int32_t $ac_cv_c_int32_t 7602 _ACEOF 7603 ;; 7604 esac 7605 7606 7607 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 7608 if test "x$ac_cv_type_int64_t" = xyes; then : 7609 7610 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h 7611 7612 fi 7613 7614 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 7615 case $ac_cv_c_int64_t in #( 7616 no|yes) ;; #( 7617 *) 7618 7619 cat >>confdefs.h <<_ACEOF 7620 #define int64_t $ac_cv_c_int64_t 7621 _ACEOF 7622 ;; 7623 esac 7624 7625 7626 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 7627 if test "x$ac_cv_type_ssize_t" = xyes; then : 7628 7629 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 7630 7631 fi 7632 7633 7634 # Sizes of various common basic types 7635 # ANSI C requires sizeof(char) == 1, so no need to check it 7636 # The cast to long int works around a bug in the HP C Compiler 7637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7639 # This bug is HP SR number 8606223364. 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7641 $as_echo_n "checking size of int... " >&6; } 7642 if ${ac_cv_sizeof_int+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644 else 7645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 7646 7647 else 7648 if test "$ac_cv_type_int" = yes; then 7649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7651 as_fn_error 77 "cannot compute sizeof (int) 7652 See \`config.log' for more details" "$LINENO" 5; } 7653 else 7654 ac_cv_sizeof_int=0 7655 fi 7656 fi 7657 7658 fi 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7660 $as_echo "$ac_cv_sizeof_int" >&6; } 7661 7662 7663 7664 cat >>confdefs.h <<_ACEOF 7665 #define SIZEOF_INT $ac_cv_sizeof_int 7666 _ACEOF 7667 7668 7669 # The cast to long int works around a bug in the HP C Compiler 7670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7672 # This bug is HP SR number 8606223364. 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7674 $as_echo_n "checking size of long... " >&6; } 7675 if ${ac_cv_sizeof_long+:} false; then : 7676 $as_echo_n "(cached) " >&6 7677 else 7678 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7679 7680 else 7681 if test "$ac_cv_type_long" = yes; then 7682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7684 as_fn_error 77 "cannot compute sizeof (long) 7685 See \`config.log' for more details" "$LINENO" 5; } 7686 else 7687 ac_cv_sizeof_long=0 7688 fi 7689 fi 7690 7691 fi 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7693 $as_echo "$ac_cv_sizeof_long" >&6; } 7694 7695 7696 7697 cat >>confdefs.h <<_ACEOF 7698 #define SIZEOF_LONG $ac_cv_sizeof_long 7699 _ACEOF 7700 7701 7702 # The cast to long int works around a bug in the HP C Compiler 7703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7705 # This bug is HP SR number 8606223364. 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7707 $as_echo_n "checking size of void *... " >&6; } 7708 if ${ac_cv_sizeof_void_p+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710 else 7711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 7712 7713 else 7714 if test "$ac_cv_type_void_p" = yes; then 7715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7717 as_fn_error 77 "cannot compute sizeof (void *) 7718 See \`config.log' for more details" "$LINENO" 5; } 7719 else 7720 ac_cv_sizeof_void_p=0 7721 fi 7722 fi 7723 7724 fi 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7726 $as_echo "$ac_cv_sizeof_void_p" >&6; } 7727 7728 7729 7730 cat >>confdefs.h <<_ACEOF 7731 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7732 _ACEOF 7733 7734 7735 # The cast to long int works around a bug in the HP C Compiler 7736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7738 # This bug is HP SR number 8606223364. 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 7740 $as_echo_n "checking size of short... " >&6; } 7741 if ${ac_cv_sizeof_short+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743 else 7744 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 7745 7746 else 7747 if test "$ac_cv_type_short" = yes; then 7748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7750 as_fn_error 77 "cannot compute sizeof (short) 7751 See \`config.log' for more details" "$LINENO" 5; } 7752 else 7753 ac_cv_sizeof_short=0 7754 fi 7755 fi 7756 7757 fi 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 7759 $as_echo "$ac_cv_sizeof_short" >&6; } 7760 7761 7762 7763 cat >>confdefs.h <<_ACEOF 7764 #define SIZEOF_SHORT $ac_cv_sizeof_short 7765 _ACEOF 7766 7767 7768 # The cast to long int works around a bug in the HP C Compiler 7769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7771 # This bug is HP SR number 8606223364. 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 7773 $as_echo_n "checking size of float... " >&6; } 7774 if ${ac_cv_sizeof_float+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776 else 7777 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 7778 7779 else 7780 if test "$ac_cv_type_float" = yes; then 7781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7783 as_fn_error 77 "cannot compute sizeof (float) 7784 See \`config.log' for more details" "$LINENO" 5; } 7785 else 7786 ac_cv_sizeof_float=0 7787 fi 7788 fi 7789 7790 fi 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 7792 $as_echo "$ac_cv_sizeof_float" >&6; } 7793 7794 7795 7796 cat >>confdefs.h <<_ACEOF 7797 #define SIZEOF_FLOAT $ac_cv_sizeof_float 7798 _ACEOF 7799 7800 7801 # The cast to long int works around a bug in the HP C Compiler 7802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7804 # This bug is HP SR number 8606223364. 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 7806 $as_echo_n "checking size of double... " >&6; } 7807 if ${ac_cv_sizeof_double+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809 else 7810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 7811 7812 else 7813 if test "$ac_cv_type_double" = yes; then 7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7816 as_fn_error 77 "cannot compute sizeof (double) 7817 See \`config.log' for more details" "$LINENO" 5; } 7818 else 7819 ac_cv_sizeof_double=0 7820 fi 7821 fi 7822 7823 fi 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 7825 $as_echo "$ac_cv_sizeof_double" >&6; } 7826 7827 7828 7829 cat >>confdefs.h <<_ACEOF 7830 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 7831 _ACEOF 7832 7833 7834 # The cast to long int works around a bug in the HP C Compiler 7835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7837 # This bug is HP SR number 8606223364. 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 7839 $as_echo_n "checking size of fpos_t... " >&6; } 7840 if ${ac_cv_sizeof_fpos_t+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842 else 7843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 7844 7845 else 7846 if test "$ac_cv_type_fpos_t" = yes; then 7847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7849 as_fn_error 77 "cannot compute sizeof (fpos_t) 7850 See \`config.log' for more details" "$LINENO" 5; } 7851 else 7852 ac_cv_sizeof_fpos_t=0 7853 fi 7854 fi 7855 7856 fi 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 7858 $as_echo "$ac_cv_sizeof_fpos_t" >&6; } 7859 7860 7861 7862 cat >>confdefs.h <<_ACEOF 7863 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 7864 _ACEOF 7865 7866 7867 # The cast to long int works around a bug in the HP C Compiler 7868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7870 # This bug is HP SR number 8606223364. 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 7872 $as_echo_n "checking size of size_t... " >&6; } 7873 if ${ac_cv_sizeof_size_t+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875 else 7876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 7877 7878 else 7879 if test "$ac_cv_type_size_t" = yes; then 7880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7882 as_fn_error 77 "cannot compute sizeof (size_t) 7883 See \`config.log' for more details" "$LINENO" 5; } 7884 else 7885 ac_cv_sizeof_size_t=0 7886 fi 7887 fi 7888 7889 fi 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 7891 $as_echo "$ac_cv_sizeof_size_t" >&6; } 7892 7893 7894 7895 cat >>confdefs.h <<_ACEOF 7896 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 7897 _ACEOF 7898 7899 7900 # The cast to long int works around a bug in the HP C Compiler 7901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7903 # This bug is HP SR number 8606223364. 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 7905 $as_echo_n "checking size of pid_t... " >&6; } 7906 if ${ac_cv_sizeof_pid_t+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908 else 7909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 7910 7911 else 7912 if test "$ac_cv_type_pid_t" = yes; then 7913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7915 as_fn_error 77 "cannot compute sizeof (pid_t) 7916 See \`config.log' for more details" "$LINENO" 5; } 7917 else 7918 ac_cv_sizeof_pid_t=0 7919 fi 7920 fi 7921 7922 fi 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 7924 $as_echo "$ac_cv_sizeof_pid_t" >&6; } 7925 7926 7927 7928 cat >>confdefs.h <<_ACEOF 7929 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t 7930 _ACEOF 7931 7932 7933 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 7935 $as_echo_n "checking for long long support... " >&6; } 7936 have_long_long=no 7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938 /* end confdefs.h. */ 7939 7940 int 7941 main () 7942 { 7943 long long x; x = (long long)0; 7944 ; 7945 return 0; 7946 } 7947 _ACEOF 7948 if ac_fn_c_try_compile "$LINENO"; then : 7949 7950 7951 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 7952 7953 have_long_long=yes 7954 7955 fi 7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 7958 $as_echo "$have_long_long" >&6; } 7959 if test "$have_long_long" = yes ; then 7960 # The cast to long int works around a bug in the HP C Compiler 7961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7963 # This bug is HP SR number 8606223364. 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7965 $as_echo_n "checking size of long long... " >&6; } 7966 if ${ac_cv_sizeof_long_long+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968 else 7969 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 7970 7971 else 7972 if test "$ac_cv_type_long_long" = yes; then 7973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7975 as_fn_error 77 "cannot compute sizeof (long long) 7976 See \`config.log' for more details" "$LINENO" 5; } 7977 else 7978 ac_cv_sizeof_long_long=0 7979 fi 7980 fi 7981 7982 fi 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7984 $as_echo "$ac_cv_sizeof_long_long" >&6; } 7985 7986 7987 7988 cat >>confdefs.h <<_ACEOF 7989 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7990 _ACEOF 7991 7992 7993 fi 7994 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 7996 $as_echo_n "checking for long double support... " >&6; } 7997 have_long_double=no 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999 /* end confdefs.h. */ 8000 8001 int 8002 main () 8003 { 8004 long double x; x = (long double)0; 8005 ; 8006 return 0; 8007 } 8008 _ACEOF 8009 if ac_fn_c_try_compile "$LINENO"; then : 8010 8011 8012 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 8013 8014 have_long_double=yes 8015 8016 fi 8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 8019 $as_echo "$have_long_double" >&6; } 8020 if test "$have_long_double" = yes ; then 8021 # The cast to long int works around a bug in the HP C Compiler 8022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8024 # This bug is HP SR number 8606223364. 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 8026 $as_echo_n "checking size of long double... " >&6; } 8027 if ${ac_cv_sizeof_long_double+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029 else 8030 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 8031 8032 else 8033 if test "$ac_cv_type_long_double" = yes; then 8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8036 as_fn_error 77 "cannot compute sizeof (long double) 8037 See \`config.log' for more details" "$LINENO" 5; } 8038 else 8039 ac_cv_sizeof_long_double=0 8040 fi 8041 fi 8042 8043 fi 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 8045 $as_echo "$ac_cv_sizeof_long_double" >&6; } 8046 8047 8048 8049 cat >>confdefs.h <<_ACEOF 8050 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 8051 _ACEOF 8052 8053 8054 fi 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 8057 $as_echo_n "checking for _Bool support... " >&6; } 8058 have_c99_bool=no 8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8060 /* end confdefs.h. */ 8061 8062 int 8063 main () 8064 { 8065 _Bool x; x = (_Bool)0; 8066 ; 8067 return 0; 8068 } 8069 _ACEOF 8070 if ac_fn_c_try_compile "$LINENO"; then : 8071 8072 8073 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h 8074 8075 have_c99_bool=yes 8076 8077 fi 8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 8080 $as_echo "$have_c99_bool" >&6; } 8081 if test "$have_c99_bool" = yes ; then 8082 # The cast to long int works around a bug in the HP C Compiler 8083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8085 # This bug is HP SR number 8606223364. 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 8087 $as_echo_n "checking size of _Bool... " >&6; } 8088 if ${ac_cv_sizeof__Bool+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090 else 8091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 8092 8093 else 8094 if test "$ac_cv_type__Bool" = yes; then 8095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8097 as_fn_error 77 "cannot compute sizeof (_Bool) 8098 See \`config.log' for more details" "$LINENO" 5; } 8099 else 8100 ac_cv_sizeof__Bool=0 8101 fi 8102 fi 8103 8104 fi 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 8106 $as_echo "$ac_cv_sizeof__Bool" >&6; } 8107 8108 8109 8110 cat >>confdefs.h <<_ACEOF 8111 #define SIZEOF__BOOL $ac_cv_sizeof__Bool 8112 _ACEOF 8113 8114 8115 fi 8116 8117 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 8118 #include <stdint.h> 8119 #endif 8120 #ifdef HAVE_INTTYPES_H 8121 #include <inttypes.h> 8122 #endif 8123 " 8124 if test "x$ac_cv_type_uintptr_t" = xyes; then : 8125 8126 cat >>confdefs.h <<_ACEOF 8127 #define HAVE_UINTPTR_T 1 8128 _ACEOF 8129 8130 # The cast to long int works around a bug in the HP C Compiler 8131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8133 # This bug is HP SR number 8606223364. 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8135 $as_echo_n "checking size of uintptr_t... " >&6; } 8136 if ${ac_cv_sizeof_uintptr_t+:} false; then : 8137 $as_echo_n "(cached) " >&6 8138 else 8139 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8140 8141 else 8142 if test "$ac_cv_type_uintptr_t" = yes; then 8143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8145 as_fn_error 77 "cannot compute sizeof (uintptr_t) 8146 See \`config.log' for more details" "$LINENO" 5; } 8147 else 8148 ac_cv_sizeof_uintptr_t=0 8149 fi 8150 fi 8151 8152 fi 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8154 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8155 8156 8157 8158 cat >>confdefs.h <<_ACEOF 8159 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8160 _ACEOF 8161 8162 8163 fi 8164 8165 8166 # The cast to long int works around a bug in the HP C Compiler 8167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8169 # This bug is HP SR number 8606223364. 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8171 $as_echo_n "checking size of off_t... " >&6; } 8172 if ${ac_cv_sizeof_off_t+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174 else 8175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 8176 #ifdef HAVE_SYS_TYPES_H 8177 #include <sys/types.h> 8178 #endif 8179 8180 "; then : 8181 8182 else 8183 if test "$ac_cv_type_off_t" = yes; then 8184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8186 as_fn_error 77 "cannot compute sizeof (off_t) 8187 See \`config.log' for more details" "$LINENO" 5; } 8188 else 8189 ac_cv_sizeof_off_t=0 8190 fi 8191 fi 8192 8193 fi 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8195 $as_echo "$ac_cv_sizeof_off_t" >&6; } 8196 8197 8198 8199 cat >>confdefs.h <<_ACEOF 8200 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8201 _ACEOF 8202 8203 8204 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 8206 $as_echo_n "checking whether to enable large file support... " >&6; } 8207 if test "$have_long_long" = yes 8208 then 8209 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 8210 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 8211 8212 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 8213 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8215 $as_echo "yes" >&6; } 8216 else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218 $as_echo "no" >&6; } 8219 fi 8220 else 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222 $as_echo "no" >&6; } 8223 fi 8224 8225 # The cast to long int works around a bug in the HP C Compiler 8226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8228 # This bug is HP SR number 8606223364. 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 8230 $as_echo_n "checking size of time_t... " >&6; } 8231 if ${ac_cv_sizeof_time_t+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233 else 8234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 8235 #ifdef HAVE_SYS_TYPES_H 8236 #include <sys/types.h> 8237 #endif 8238 #ifdef HAVE_TIME_H 8239 #include <time.h> 8240 #endif 8241 8242 "; then : 8243 8244 else 8245 if test "$ac_cv_type_time_t" = yes; then 8246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8248 as_fn_error 77 "cannot compute sizeof (time_t) 8249 See \`config.log' for more details" "$LINENO" 5; } 8250 else 8251 ac_cv_sizeof_time_t=0 8252 fi 8253 fi 8254 8255 fi 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 8257 $as_echo "$ac_cv_sizeof_time_t" >&6; } 8258 8259 8260 8261 cat >>confdefs.h <<_ACEOF 8262 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t 8263 _ACEOF 8264 8265 8266 8267 # if have pthread_t then define SIZEOF_PTHREAD_T 8268 ac_save_cc="$CC" 8269 if test "$ac_cv_kpthread" = "yes" 8270 then CC="$CC -Kpthread" 8271 elif test "$ac_cv_kthread" = "yes" 8272 then CC="$CC -Kthread" 8273 elif test "$ac_cv_pthread" = "yes" 8274 then CC="$CC -pthread" 8275 fi 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 8277 $as_echo_n "checking for pthread_t... " >&6; } 8278 have_pthread_t=no 8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280 /* end confdefs.h. */ 8281 8282 #include <pthread.h> 8283 int 8284 main () 8285 { 8286 pthread_t x; x = *(pthread_t*)0; 8287 ; 8288 return 0; 8289 } 8290 8291 _ACEOF 8292 if ac_fn_c_try_compile "$LINENO"; then : 8293 have_pthread_t=yes 8294 fi 8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 8297 $as_echo "$have_pthread_t" >&6; } 8298 if test "$have_pthread_t" = yes ; then 8299 # The cast to long int works around a bug in the HP C Compiler 8300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8302 # This bug is HP SR number 8606223364. 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 8304 $as_echo_n "checking size of pthread_t... " >&6; } 8305 if ${ac_cv_sizeof_pthread_t+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307 else 8308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 8309 #ifdef HAVE_PTHREAD_H 8310 #include <pthread.h> 8311 #endif 8312 8313 "; then : 8314 8315 else 8316 if test "$ac_cv_type_pthread_t" = yes; then 8317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8319 as_fn_error 77 "cannot compute sizeof (pthread_t) 8320 See \`config.log' for more details" "$LINENO" 5; } 8321 else 8322 ac_cv_sizeof_pthread_t=0 8323 fi 8324 fi 8325 8326 fi 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 8328 $as_echo "$ac_cv_sizeof_pthread_t" >&6; } 8329 8330 8331 8332 cat >>confdefs.h <<_ACEOF 8333 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 8334 _ACEOF 8335 8336 8337 fi 8338 CC="$ac_save_cc" 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 8341 $as_echo_n "checking for --enable-toolbox-glue... " >&6; } 8342 # Check whether --enable-toolbox-glue was given. 8343 if test "${enable_toolbox_glue+set}" = set; then : 8344 enableval=$enable_toolbox_glue; 8345 fi 8346 8347 8348 if test -z "$enable_toolbox_glue" 8349 then 8350 case $ac_sys_system/$ac_sys_release in 8351 Darwin/*) 8352 enable_toolbox_glue="yes";; 8353 *) 8354 enable_toolbox_glue="no";; 8355 esac 8356 fi 8357 case "$enable_toolbox_glue" in 8358 yes) 8359 extra_machdep_objs="Python/mactoolboxglue.o" 8360 extra_undefs="-u _PyMac_Error" 8361 8362 $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h 8363 8364 ;; 8365 *) 8366 extra_machdep_objs="" 8367 extra_undefs="" 8368 ;; 8369 esac 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 8371 $as_echo "$enable_toolbox_glue" >&6; } 8372 8373 8374 8375 case $ac_sys_system/$ac_sys_release in 8376 Darwin/[01567]\..*) 8377 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 8378 ;; 8379 Darwin/*) 8380 OTHER_LIBTOOL_OPT="" 8381 ;; 8382 esac 8383 8384 8385 8386 case $ac_sys_system/$ac_sys_release in 8387 Darwin/[01567]\..*) 8388 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 8389 if test "${enable_universalsdk}"; then 8390 : 8391 else 8392 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 8393 fi 8394 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8395 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 8396 Darwin/*) 8397 gcc_version=`gcc -dumpversion` 8398 if test ${gcc_version} '<' 4.0 8399 then 8400 LIBTOOL_CRUFT="-lcc_dynamic" 8401 else 8402 LIBTOOL_CRUFT="" 8403 fi 8404 if test "$cross_compiling" = yes; then : 8405 ac_osx_32bit=yes 8406 else 8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408 /* end confdefs.h. */ 8409 8410 #include <unistd.h> 8411 int main(int argc, char*argv[]) 8412 { 8413 if (sizeof(long) == 4) { 8414 return 0; 8415 } else { 8416 return 1; 8417 } 8418 } 8419 8420 _ACEOF 8421 if ac_fn_c_try_run "$LINENO"; then : 8422 ac_osx_32bit=yes 8423 else 8424 ac_osx_32bit=no 8425 fi 8426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8427 conftest.$ac_objext conftest.beam conftest.$ac_ext 8428 fi 8429 8430 8431 if test "${ac_osx_32bit}" = "yes"; then 8432 case `/usr/bin/arch` in 8433 i386) 8434 MACOSX_DEFAULT_ARCH="i386" 8435 ;; 8436 ppc) 8437 MACOSX_DEFAULT_ARCH="ppc" 8438 ;; 8439 *) 8440 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 8441 ;; 8442 esac 8443 else 8444 case `/usr/bin/arch` in 8445 i386) 8446 MACOSX_DEFAULT_ARCH="x86_64" 8447 ;; 8448 ppc) 8449 MACOSX_DEFAULT_ARCH="ppc64" 8450 ;; 8451 *) 8452 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 8453 ;; 8454 esac 8455 8456 #ARCH_RUN_32BIT="true" 8457 fi 8458 8459 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 8460 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8461 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 8462 esac 8463 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 8465 $as_echo_n "checking for --enable-framework... " >&6; } 8466 if test "$enable_framework" 8467 then 8468 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 8469 # -F. is needed to allow linking to the framework while 8470 # in the build location. 8471 8472 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 8473 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8475 $as_echo "yes" >&6; } 8476 if test $enable_shared = "yes" 8477 then 8478 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 8479 fi 8480 else 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8482 $as_echo "no" >&6; } 8483 fi 8484 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 8486 $as_echo_n "checking for dyld... " >&6; } 8487 case $ac_sys_system/$ac_sys_release in 8488 Darwin/*) 8489 8490 $as_echo "#define WITH_DYLD 1" >>confdefs.h 8491 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 8493 $as_echo "always on for Darwin" >&6; } 8494 ;; 8495 *) 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497 $as_echo "no" >&6; } 8498 ;; 8499 esac 8500 8501 # Set info about shared libraries. 8502 8503 8504 8505 8506 8507 8508 # SO is the extension of shared libraries `(including the dot!) 8509 # -- usually .so, .sl on HP-UX, .dll on Cygwin 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 8511 $as_echo_n "checking SO... " >&6; } 8512 if test -z "$SO" 8513 then 8514 case $ac_sys_system in 8515 hp*|HP*) 8516 case `uname -m` in 8517 ia64) SO=.so;; 8518 *) SO=.sl;; 8519 esac 8520 ;; 8521 CYGWIN*) SO=.dll;; 8522 *) SO=.so;; 8523 esac 8524 else 8525 # this might also be a termcap variable, see #610332 8526 echo 8527 echo '=====================================================================' 8528 echo '+ +' 8529 echo '+ WARNING: You have set SO in your environment. +' 8530 echo '+ Do you really mean to change the extension for shared libraries? +' 8531 echo '+ Continuing in 10 seconds to let you to ponder. +' 8532 echo '+ +' 8533 echo '=====================================================================' 8534 sleep 10 8535 fi 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 8537 $as_echo "$SO" >&6; } 8538 8539 8540 cat >>confdefs.h <<_ACEOF 8541 #define SHLIB_EXT "$SO" 8542 _ACEOF 8543 8544 # LDSHARED is the ld *command* used to create shared library 8545 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 8546 # (Shared libraries in this instance are shared modules to be loaded into 8547 # Python, as opposed to building Python itself as a shared library.) 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 8549 $as_echo_n "checking LDSHARED... " >&6; } 8550 if test -z "$LDSHARED" 8551 then 8552 case $ac_sys_system/$ac_sys_release in 8553 AIX*) 8554 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 8555 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" 8556 ;; 8557 BeOS*) 8558 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" 8559 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" 8560 ;; 8561 IRIX/5*) LDSHARED="ld -shared";; 8562 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; 8563 SunOS/5*) 8564 if test "$GCC" = "yes" ; then 8565 LDSHARED='$(CC) -shared' 8566 LDCXXSHARED='$(CXX) -shared' 8567 else 8568 LDSHARED='$(CC) -G' 8569 LDCXXSHARED='$(CXX) -G' 8570 fi ;; 8571 hp*|HP*) 8572 if test "$GCC" = "yes" ; then 8573 LDSHARED='$(CC) -shared' 8574 LDCXXSHARED='$(CXX) -shared' 8575 else 8576 LDSHARED='ld -b' 8577 fi ;; 8578 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; 8579 Darwin/1.3*) 8580 LDSHARED='$(CC) -bundle' 8581 LDCXXSHARED='$(CXX) -bundle' 8582 if test "$enable_framework" ; then 8583 # Link against the framework. All externals should be defined. 8584 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8585 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8586 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8587 else 8588 # No framework. Ignore undefined symbols, assuming they come from Python 8589 LDSHARED="$LDSHARED -undefined suppress" 8590 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 8591 fi ;; 8592 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 8593 LDSHARED='$(CC) -bundle' 8594 LDCXXSHARED='$(CXX) -bundle' 8595 if test "$enable_framework" ; then 8596 # Link against the framework. All externals should be defined. 8597 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8598 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8599 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8600 else 8601 # No framework, use the Python app as bundle-loader 8602 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 8603 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8604 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8605 fi ;; 8606 Darwin/*) 8607 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 8608 # This allows an extension to be used in any Python 8609 8610 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 8611 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 8612 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 8613 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 8614 if test ${dep_target_major} -eq 10 && \ 8615 test ${dep_target_minor} -le 2 8616 then 8617 # building for OS X 10.0 through 10.2 8618 LDSHARED='$(CC) -bundle' 8619 LDCXXSHARED='$(CXX) -bundle' 8620 if test "$enable_framework" ; then 8621 # Link against the framework. All externals should be defined. 8622 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8623 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8624 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8625 else 8626 # No framework, use the Python app as bundle-loader 8627 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 8628 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8629 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8630 fi 8631 else 8632 # building for OS X 10.3 and later 8633 if test "${enable_universalsdk}"; then 8634 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 8635 fi 8636 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 8637 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 8638 BLDSHARED="$LDSHARED" 8639 fi 8640 ;; 8641 Linux*|GNU*|QNX*) 8642 LDSHARED='$(CC) -shared' 8643 LDCXXSHARED='$(CXX) -shared';; 8644 BSD/OS*/4*) 8645 LDSHARED="gcc -shared" 8646 LDCXXSHARED="g++ -shared";; 8647 FreeBSD*) 8648 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8649 then 8650 LDSHARED='$(CC) -shared' 8651 LDCXXSHARED='$(CXX) -shared' 8652 else 8653 LDSHARED="ld -Bshareable" 8654 fi;; 8655 OpenBSD*) 8656 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8657 then 8658 LDSHARED='$(CC) -shared $(CCSHARED)' 8659 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 8660 else 8661 case `uname -r` in 8662 [01].* | 2.[0-7] | 2.[0-7].*) 8663 LDSHARED="ld -Bshareable ${LDFLAGS}" 8664 ;; 8665 *) 8666 LDSHARED='$(CC) -shared $(CCSHARED)' 8667 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 8668 ;; 8669 esac 8670 fi;; 8671 NetBSD*|DragonFly*) 8672 LDSHARED='$(CC) -shared' 8673 LDCXXSHARED='$(CXX) -shared';; 8674 OpenUNIX*|UnixWare*) 8675 if test "$GCC" = "yes" ; then 8676 LDSHARED='$(CC) -shared' 8677 LDCXXSHARED='$(CXX) -shared' 8678 else 8679 LDSHARED='$(CC) -G' 8680 LDCXXSHARED='$(CXX) -G' 8681 fi;; 8682 SCO_SV*) 8683 LDSHARED='$(CC) -Wl,-G,-Bexport' 8684 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 8685 CYGWIN*) 8686 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 8687 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 8688 atheos*) 8689 LDSHARED="gcc -shared" 8690 LDCXXSHARED="g++ -shared";; 8691 *) LDSHARED="ld";; 8692 esac 8693 fi 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 8695 $as_echo "$LDSHARED" >&6; } 8696 LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 8697 BLDSHARED=${BLDSHARED-$LDSHARED} 8698 # CCSHARED are the C *flags* used to create objects to go into a shared 8699 # library (module) -- this is only needed for a few systems 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 8701 $as_echo_n "checking CCSHARED... " >&6; } 8702 if test -z "$CCSHARED" 8703 then 8704 case $ac_sys_system/$ac_sys_release in 8705 SunOS*) if test "$GCC" = yes; 8706 then CCSHARED="-fPIC"; 8707 elif test `uname -p` = sparc; 8708 then CCSHARED="-xcode=pic32"; 8709 else CCSHARED="-Kpic"; 8710 fi;; 8711 hp*|HP*) if test "$GCC" = yes; 8712 then CCSHARED="-fPIC"; 8713 else CCSHARED="+z"; 8714 fi;; 8715 Linux*|GNU*) CCSHARED="-fPIC";; 8716 BSD/OS*/4*) CCSHARED="-fpic";; 8717 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 8718 OpenUNIX*|UnixWare*) 8719 if test "$GCC" = "yes" 8720 then CCSHARED="-fPIC" 8721 else CCSHARED="-KPIC" 8722 fi;; 8723 SCO_SV*) 8724 if test "$GCC" = "yes" 8725 then CCSHARED="-fPIC" 8726 else CCSHARED="-Kpic -belf" 8727 fi;; 8728 IRIX*/6*) case $CC in 8729 *gcc*) CCSHARED="-shared";; 8730 *) CCSHARED="";; 8731 esac;; 8732 atheos*) CCSHARED="-fPIC";; 8733 esac 8734 fi 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 8736 $as_echo "$CCSHARED" >&6; } 8737 # LINKFORSHARED are the flags passed to the $(CC) command that links 8738 # the python executable -- this is only needed for a few systems 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 8740 $as_echo_n "checking LINKFORSHARED... " >&6; } 8741 if test -z "$LINKFORSHARED" 8742 then 8743 case $ac_sys_system/$ac_sys_release in 8744 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 8745 hp*|HP*) 8746 LINKFORSHARED="-Wl,-E -Wl,+s";; 8747 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 8748 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 8749 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 8750 # -u libsys_s pulls in all symbols in libsys 8751 Darwin/*) 8752 # -u _PyMac_Error is needed to pull in the mac toolbox glue, 8753 # which is 8754 # not used by the core itself but which needs to be in the core so 8755 # that dynamically loaded extension modules have access to it. 8756 # -prebind is no longer used, because it actually seems to give a 8757 # slowdown in stead of a speedup, maybe due to the large number of 8758 # dynamic loads Python does. 8759 8760 LINKFORSHARED="$extra_undefs" 8761 if test "$enable_framework" 8762 then 8763 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8764 fi 8765 LINKFORSHARED="$LINKFORSHARED";; 8766 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 8767 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 8768 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 8769 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 8770 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8771 then 8772 LINKFORSHARED="-Wl,--export-dynamic" 8773 fi;; 8774 SunOS/5*) case $CC in 8775 *gcc*) 8776 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 8777 then 8778 LINKFORSHARED="-Xlinker --export-dynamic" 8779 fi;; 8780 esac;; 8781 CYGWIN*) 8782 if test $enable_shared = "no" 8783 then 8784 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 8785 fi;; 8786 QNX*) 8787 # -Wl,-E causes the symbols to be added to the dynamic 8788 # symbol table so that they can be found when a module 8789 # is loaded. -N 2048K causes the stack size to be set 8790 # to 2048 kilobytes so that the stack doesn't overflow 8791 # when running test_compile.py. 8792 LINKFORSHARED='-Wl,-E -N 2048K';; 8793 esac 8794 fi 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 8796 $as_echo "$LINKFORSHARED" >&6; } 8797 8798 8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 8801 $as_echo_n "checking CFLAGSFORSHARED... " >&6; } 8802 if test ! "$LIBRARY" = "$LDLIBRARY" 8803 then 8804 case $ac_sys_system in 8805 CYGWIN*) 8806 # Cygwin needs CCSHARED when building extension DLLs 8807 # but not when building the interpreter DLL. 8808 CFLAGSFORSHARED='';; 8809 *) 8810 CFLAGSFORSHARED='$(CCSHARED)' 8811 esac 8812 fi 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 8814 $as_echo "$CFLAGSFORSHARED" >&6; } 8815 8816 # SHLIBS are libraries (except -lc and -lm) to link to the python shared 8817 # library (with --enable-shared). 8818 # For platforms on which shared libraries are not allowed to have unresolved 8819 # symbols, this must be set to $(LIBS) (expanded by make). We do this even 8820 # if it is not required, since it creates a dependency of the shared library 8821 # to LIBS. This, in turn, means that applications linking the shared libpython 8822 # don't need to link LIBS explicitly. The default should be only changed 8823 # on systems where this approach causes problems. 8824 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 8826 $as_echo_n "checking SHLIBS... " >&6; } 8827 case "$ac_sys_system" in 8828 *) 8829 SHLIBS='$(LIBS)';; 8830 esac 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 8832 $as_echo "$SHLIBS" >&6; } 8833 8834 8835 # checks for libraries 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8837 $as_echo_n "checking for dlopen in -ldl... " >&6; } 8838 if ${ac_cv_lib_dl_dlopen+:} false; then : 8839 $as_echo_n "(cached) " >&6 8840 else 8841 ac_check_lib_save_LIBS=$LIBS 8842 LIBS="-ldl $LIBS" 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844 /* end confdefs.h. */ 8845 8846 /* Override any GCC internal prototype to avoid an error. 8847 Use char because int might match the return type of a GCC 8848 builtin and then its argument prototype would still apply. */ 8849 #ifdef __cplusplus 8850 extern "C" 8851 #endif 8852 char dlopen (); 8853 int 8854 main () 8855 { 8856 return dlopen (); 8857 ; 8858 return 0; 8859 } 8860 _ACEOF 8861 if ac_fn_c_try_link "$LINENO"; then : 8862 ac_cv_lib_dl_dlopen=yes 8863 else 8864 ac_cv_lib_dl_dlopen=no 8865 fi 8866 rm -f core conftest.err conftest.$ac_objext \ 8867 conftest$ac_exeext conftest.$ac_ext 8868 LIBS=$ac_check_lib_save_LIBS 8869 fi 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8871 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8872 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 8873 cat >>confdefs.h <<_ACEOF 8874 #define HAVE_LIBDL 1 8875 _ACEOF 8876 8877 LIBS="-ldl $LIBS" 8878 8879 fi 8880 # Dynamic linking for SunOS/Solaris and SYSV 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 8882 $as_echo_n "checking for shl_load in -ldld... " >&6; } 8883 if ${ac_cv_lib_dld_shl_load+:} false; then : 8884 $as_echo_n "(cached) " >&6 8885 else 8886 ac_check_lib_save_LIBS=$LIBS 8887 LIBS="-ldld $LIBS" 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889 /* end confdefs.h. */ 8890 8891 /* Override any GCC internal prototype to avoid an error. 8892 Use char because int might match the return type of a GCC 8893 builtin and then its argument prototype would still apply. */ 8894 #ifdef __cplusplus 8895 extern "C" 8896 #endif 8897 char shl_load (); 8898 int 8899 main () 8900 { 8901 return shl_load (); 8902 ; 8903 return 0; 8904 } 8905 _ACEOF 8906 if ac_fn_c_try_link "$LINENO"; then : 8907 ac_cv_lib_dld_shl_load=yes 8908 else 8909 ac_cv_lib_dld_shl_load=no 8910 fi 8911 rm -f core conftest.err conftest.$ac_objext \ 8912 conftest$ac_exeext conftest.$ac_ext 8913 LIBS=$ac_check_lib_save_LIBS 8914 fi 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 8916 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8917 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 8918 cat >>confdefs.h <<_ACEOF 8919 #define HAVE_LIBDLD 1 8920 _ACEOF 8921 8922 LIBS="-ldld $LIBS" 8923 8924 fi 8925 # Dynamic linking for HP-UX 8926 8927 # only check for sem_init if thread support is requested 8928 if test "$with_threads" = "yes" -o -z "$with_threads"; then 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 8930 $as_echo_n "checking for library containing sem_init... " >&6; } 8931 if ${ac_cv_search_sem_init+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933 else 8934 ac_func_search_save_LIBS=$LIBS 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936 /* end confdefs.h. */ 8937 8938 /* Override any GCC internal prototype to avoid an error. 8939 Use char because int might match the return type of a GCC 8940 builtin and then its argument prototype would still apply. */ 8941 #ifdef __cplusplus 8942 extern "C" 8943 #endif 8944 char sem_init (); 8945 int 8946 main () 8947 { 8948 return sem_init (); 8949 ; 8950 return 0; 8951 } 8952 _ACEOF 8953 for ac_lib in '' pthread rt posix4; do 8954 if test -z "$ac_lib"; then 8955 ac_res="none required" 8956 else 8957 ac_res=-l$ac_lib 8958 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8959 fi 8960 if ac_fn_c_try_link "$LINENO"; then : 8961 ac_cv_search_sem_init=$ac_res 8962 fi 8963 rm -f core conftest.err conftest.$ac_objext \ 8964 conftest$ac_exeext 8965 if ${ac_cv_search_sem_init+:} false; then : 8966 break 8967 fi 8968 done 8969 if ${ac_cv_search_sem_init+:} false; then : 8970 8971 else 8972 ac_cv_search_sem_init=no 8973 fi 8974 rm conftest.$ac_ext 8975 LIBS=$ac_func_search_save_LIBS 8976 fi 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 8978 $as_echo "$ac_cv_search_sem_init" >&6; } 8979 ac_res=$ac_cv_search_sem_init 8980 if test "$ac_res" != no; then : 8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8982 8983 fi 8984 # 'Real Time' functions on Solaris 8985 # posix4 on Solaris 2.6 8986 # pthread (first!) on Linux 8987 fi 8988 8989 # check if we need libintl for locale functions 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 8991 $as_echo_n "checking for textdomain in -lintl... " >&6; } 8992 if ${ac_cv_lib_intl_textdomain+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994 else 8995 ac_check_lib_save_LIBS=$LIBS 8996 LIBS="-lintl $LIBS" 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998 /* end confdefs.h. */ 8999 9000 /* Override any GCC internal prototype to avoid an error. 9001 Use char because int might match the return type of a GCC 9002 builtin and then its argument prototype would still apply. */ 9003 #ifdef __cplusplus 9004 extern "C" 9005 #endif 9006 char textdomain (); 9007 int 9008 main () 9009 { 9010 return textdomain (); 9011 ; 9012 return 0; 9013 } 9014 _ACEOF 9015 if ac_fn_c_try_link "$LINENO"; then : 9016 ac_cv_lib_intl_textdomain=yes 9017 else 9018 ac_cv_lib_intl_textdomain=no 9019 fi 9020 rm -f core conftest.err conftest.$ac_objext \ 9021 conftest$ac_exeext conftest.$ac_ext 9022 LIBS=$ac_check_lib_save_LIBS 9023 fi 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 9025 $as_echo "$ac_cv_lib_intl_textdomain" >&6; } 9026 if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 9027 9028 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h 9029 9030 fi 9031 9032 9033 # checks for system dependent C++ extensions support 9034 case "$ac_sys_system" in 9035 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 9036 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038 /* end confdefs.h. */ 9039 9040 #include <load.h> 9041 int 9042 main () 9043 { 9044 loadAndInit("", 0, "") 9045 ; 9046 return 0; 9047 } 9048 9049 _ACEOF 9050 if ac_fn_c_try_link "$LINENO"; then : 9051 9052 9053 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 9054 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9056 $as_echo "yes" >&6; } 9057 9058 else 9059 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9061 $as_echo "no" >&6; } 9062 9063 fi 9064 rm -f core conftest.err conftest.$ac_objext \ 9065 conftest$ac_exeext conftest.$ac_ext;; 9066 *) ;; 9067 esac 9068 9069 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 9070 # BeOS' sockets are stashed in libnet. 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 9072 $as_echo_n "checking for t_open in -lnsl... " >&6; } 9073 if ${ac_cv_lib_nsl_t_open+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075 else 9076 ac_check_lib_save_LIBS=$LIBS 9077 LIBS="-lnsl $LIBS" 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079 /* end confdefs.h. */ 9080 9081 /* Override any GCC internal prototype to avoid an error. 9082 Use char because int might match the return type of a GCC 9083 builtin and then its argument prototype would still apply. */ 9084 #ifdef __cplusplus 9085 extern "C" 9086 #endif 9087 char t_open (); 9088 int 9089 main () 9090 { 9091 return t_open (); 9092 ; 9093 return 0; 9094 } 9095 _ACEOF 9096 if ac_fn_c_try_link "$LINENO"; then : 9097 ac_cv_lib_nsl_t_open=yes 9098 else 9099 ac_cv_lib_nsl_t_open=no 9100 fi 9101 rm -f core conftest.err conftest.$ac_objext \ 9102 conftest$ac_exeext conftest.$ac_ext 9103 LIBS=$ac_check_lib_save_LIBS 9104 fi 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 9106 $as_echo "$ac_cv_lib_nsl_t_open" >&6; } 9107 if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 9108 LIBS="-lnsl $LIBS" 9109 fi 9110 # SVR4 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 9112 $as_echo_n "checking for socket in -lsocket... " >&6; } 9113 if ${ac_cv_lib_socket_socket+:} false; then : 9114 $as_echo_n "(cached) " >&6 9115 else 9116 ac_check_lib_save_LIBS=$LIBS 9117 LIBS="-lsocket $LIBS $LIBS" 9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119 /* end confdefs.h. */ 9120 9121 /* Override any GCC internal prototype to avoid an error. 9122 Use char because int might match the return type of a GCC 9123 builtin and then its argument prototype would still apply. */ 9124 #ifdef __cplusplus 9125 extern "C" 9126 #endif 9127 char socket (); 9128 int 9129 main () 9130 { 9131 return socket (); 9132 ; 9133 return 0; 9134 } 9135 _ACEOF 9136 if ac_fn_c_try_link "$LINENO"; then : 9137 ac_cv_lib_socket_socket=yes 9138 else 9139 ac_cv_lib_socket_socket=no 9140 fi 9141 rm -f core conftest.err conftest.$ac_objext \ 9142 conftest$ac_exeext conftest.$ac_ext 9143 LIBS=$ac_check_lib_save_LIBS 9144 fi 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 9146 $as_echo "$ac_cv_lib_socket_socket" >&6; } 9147 if test "x$ac_cv_lib_socket_socket" = xyes; then : 9148 LIBS="-lsocket $LIBS" 9149 fi 9150 # SVR4 sockets 9151 9152 case "$ac_sys_system" in 9153 BeOS*) 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 9155 $as_echo_n "checking for socket in -lnet... " >&6; } 9156 if ${ac_cv_lib_net_socket+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158 else 9159 ac_check_lib_save_LIBS=$LIBS 9160 LIBS="-lnet $LIBS $LIBS" 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162 /* end confdefs.h. */ 9163 9164 /* Override any GCC internal prototype to avoid an error. 9165 Use char because int might match the return type of a GCC 9166 builtin and then its argument prototype would still apply. */ 9167 #ifdef __cplusplus 9168 extern "C" 9169 #endif 9170 char socket (); 9171 int 9172 main () 9173 { 9174 return socket (); 9175 ; 9176 return 0; 9177 } 9178 _ACEOF 9179 if ac_fn_c_try_link "$LINENO"; then : 9180 ac_cv_lib_net_socket=yes 9181 else 9182 ac_cv_lib_net_socket=no 9183 fi 9184 rm -f core conftest.err conftest.$ac_objext \ 9185 conftest$ac_exeext conftest.$ac_ext 9186 LIBS=$ac_check_lib_save_LIBS 9187 fi 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 9189 $as_echo "$ac_cv_lib_net_socket" >&6; } 9190 if test "x$ac_cv_lib_net_socket" = xyes; then : 9191 LIBS="-lnet $LIBS" 9192 fi 9193 # BeOS 9194 ;; 9195 esac 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 9198 $as_echo_n "checking for --with-libs... " >&6; } 9199 9200 # Check whether --with-libs was given. 9201 if test "${with_libs+set}" = set; then : 9202 withval=$with_libs; 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9204 $as_echo "$withval" >&6; } 9205 LIBS="$withval $LIBS" 9206 9207 else 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9209 $as_echo "no" >&6; } 9210 fi 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9221 if test -n "$ac_tool_prefix"; then 9222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9225 $as_echo_n "checking for $ac_word... " >&6; } 9226 if ${ac_cv_path_PKG_CONFIG+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228 else 9229 case $PKG_CONFIG in 9230 [\\/]* | ?:[\\/]*) 9231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9232 ;; 9233 *) 9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9235 for as_dir in $PATH 9236 do 9237 IFS=$as_save_IFS 9238 test -z "$as_dir" && as_dir=. 9239 for ac_exec_ext in '' $ac_executable_extensions; do 9240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9243 break 2 9244 fi 9245 done 9246 done 9247 IFS=$as_save_IFS 9248 9249 ;; 9250 esac 9251 fi 9252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9253 if test -n "$PKG_CONFIG"; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9255 $as_echo "$PKG_CONFIG" >&6; } 9256 else 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9258 $as_echo "no" >&6; } 9259 fi 9260 9261 9262 fi 9263 if test -z "$ac_cv_path_PKG_CONFIG"; then 9264 ac_pt_PKG_CONFIG=$PKG_CONFIG 9265 # Extract the first word of "pkg-config", so it can be a program name with args. 9266 set dummy pkg-config; ac_word=$2 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9268 $as_echo_n "checking for $ac_word... " >&6; } 9269 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271 else 9272 case $ac_pt_PKG_CONFIG in 9273 [\\/]* | ?:[\\/]*) 9274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9275 ;; 9276 *) 9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9278 for as_dir in $PATH 9279 do 9280 IFS=$as_save_IFS 9281 test -z "$as_dir" && as_dir=. 9282 for ac_exec_ext in '' $ac_executable_extensions; do 9283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9286 break 2 9287 fi 9288 done 9289 done 9290 IFS=$as_save_IFS 9291 9292 ;; 9293 esac 9294 fi 9295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9296 if test -n "$ac_pt_PKG_CONFIG"; then 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9298 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 9299 else 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9301 $as_echo "no" >&6; } 9302 fi 9303 9304 if test "x$ac_pt_PKG_CONFIG" = x; then 9305 PKG_CONFIG="" 9306 else 9307 case $cross_compiling:$ac_tool_warned in 9308 yes:) 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9311 ac_tool_warned=yes ;; 9312 esac 9313 PKG_CONFIG=$ac_pt_PKG_CONFIG 9314 fi 9315 else 9316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9317 fi 9318 9319 fi 9320 if test -n "$PKG_CONFIG"; then 9321 _pkg_min_version=0.9.0 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9323 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9326 $as_echo "yes" >&6; } 9327 else 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9329 $as_echo "no" >&6; } 9330 PKG_CONFIG="" 9331 fi 9332 fi 9333 9334 # Check for use of the system expat library 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 9336 $as_echo_n "checking for --with-system-expat... " >&6; } 9337 9338 # Check whether --with-system_expat was given. 9339 if test "${with_system_expat+set}" = set; then : 9340 withval=$with_system_expat; 9341 else 9342 with_system_expat="no" 9343 fi 9344 9345 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 9347 $as_echo "$with_system_expat" >&6; } 9348 9349 # Check for use of the system libffi library 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 9351 $as_echo_n "checking for --with-system-ffi... " >&6; } 9352 9353 # Check whether --with-system_ffi was given. 9354 if test "${with_system_ffi+set}" = set; then : 9355 withval=$with_system_ffi; 9356 else 9357 with_system_ffi="no" 9358 fi 9359 9360 9361 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 9362 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 9363 else 9364 LIBFFI_INCLUDEDIR="" 9365 fi 9366 9367 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 9369 $as_echo "$with_system_ffi" >&6; } 9370 9371 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path 9372 9373 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 9375 $as_echo_n "checking for --with-tcltk-includes... " >&6; } 9376 9377 # Check whether --with-tcltk-includes was given. 9378 if test "${with_tcltk_includes+set}" = set; then : 9379 withval=$with_tcltk_includes; 9380 else 9381 with_tcltk_includes="default" 9382 fi 9383 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 9385 $as_echo "$with_tcltk_includes" >&6; } 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 9387 $as_echo_n "checking for --with-tcltk-libs... " >&6; } 9388 9389 # Check whether --with-tcltk-libs was given. 9390 if test "${with_tcltk_libs+set}" = set; then : 9391 withval=$with_tcltk_libs; 9392 else 9393 with_tcltk_libs="default" 9394 fi 9395 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 9397 $as_echo "$with_tcltk_libs" >&6; } 9398 if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 9399 then 9400 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 9401 then 9402 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 9403 fi 9404 TCLTK_INCLUDES="" 9405 TCLTK_LIBS="" 9406 else 9407 TCLTK_INCLUDES="$with_tcltk_includes" 9408 TCLTK_LIBS="$with_tcltk_libs" 9409 fi 9410 9411 # Check for --with-dbmliborder 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 9413 $as_echo_n "checking for --with-dbmliborder... " >&6; } 9414 9415 # Check whether --with-dbmliborder was given. 9416 if test "${with_dbmliborder+set}" = set; then : 9417 withval=$with_dbmliborder; 9418 if test x$with_dbmliborder = xyes 9419 then 9420 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 9421 else 9422 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 9423 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 9424 then 9425 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 9426 fi 9427 done 9428 fi 9429 fi 9430 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 9432 $as_echo "$with_dbmliborder" >&6; } 9433 9434 # Determine if signalmodule should be used. 9435 9436 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 9438 $as_echo_n "checking for --with-signal-module... " >&6; } 9439 9440 # Check whether --with-signal-module was given. 9441 if test "${with_signal_module+set}" = set; then : 9442 withval=$with_signal_module; 9443 fi 9444 9445 9446 if test -z "$with_signal_module" 9447 then with_signal_module="yes" 9448 fi 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 9450 $as_echo "$with_signal_module" >&6; } 9451 9452 if test "${with_signal_module}" = "yes"; then 9453 USE_SIGNAL_MODULE="" 9454 SIGNAL_OBJS="" 9455 else 9456 USE_SIGNAL_MODULE="#" 9457 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" 9458 fi 9459 9460 # This is used to generate Setup.config 9461 9462 USE_THREAD_MODULE="" 9463 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 9465 $as_echo_n "checking for --with-dec-threads... " >&6; } 9466 9467 9468 # Check whether --with-dec-threads was given. 9469 if test "${with_dec_threads+set}" = set; then : 9470 withval=$with_dec_threads; 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9472 $as_echo "$withval" >&6; } 9473 LDLAST=-threads 9474 if test "${with_thread+set}" != set; then 9475 with_thread="$withval"; 9476 fi 9477 else 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9479 $as_echo "no" >&6; } 9480 fi 9481 9482 9483 # Templates for things AC_DEFINEd more than once. 9484 # For a single AC_DEFINE, no template is needed. 9485 9486 9487 9488 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 9490 $as_echo_n "checking for --with-threads... " >&6; } 9491 9492 # Check whether --with-threads was given. 9493 if test "${with_threads+set}" = set; then : 9494 withval=$with_threads; 9495 fi 9496 9497 9498 # --with-thread is deprecated, but check for it anyway 9499 9500 # Check whether --with-thread was given. 9501 if test "${with_thread+set}" = set; then : 9502 withval=$with_thread; with_threads=$with_thread 9503 fi 9504 9505 9506 if test -z "$with_threads" 9507 then with_threads="yes" 9508 fi 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 9510 $as_echo "$with_threads" >&6; } 9511 9512 9513 if test "$with_threads" = "no" 9514 then 9515 USE_THREAD_MODULE="#" 9516 elif test "$ac_cv_pthread_is_default" = yes 9517 then 9518 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9519 9520 # Defining _REENTRANT on system with POSIX threads should not hurt. 9521 $as_echo "#define _REENTRANT 1" >>confdefs.h 9522 9523 posix_threads=yes 9524 THREADOBJ="Python/thread.o" 9525 elif test "$ac_cv_kpthread" = "yes" 9526 then 9527 CC="$CC -Kpthread" 9528 if test "$ac_cv_cxx_thread" = "yes"; then 9529 CXX="$CXX -Kpthread" 9530 fi 9531 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9532 9533 posix_threads=yes 9534 THREADOBJ="Python/thread.o" 9535 elif test "$ac_cv_kthread" = "yes" 9536 then 9537 CC="$CC -Kthread" 9538 if test "$ac_cv_cxx_thread" = "yes"; then 9539 CXX="$CXX -Kthread" 9540 fi 9541 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9542 9543 posix_threads=yes 9544 THREADOBJ="Python/thread.o" 9545 elif test "$ac_cv_pthread" = "yes" 9546 then 9547 CC="$CC -pthread" 9548 if test "$ac_cv_cxx_thread" = "yes"; then 9549 CXX="$CXX -pthread" 9550 fi 9551 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9552 9553 posix_threads=yes 9554 THREADOBJ="Python/thread.o" 9555 else 9556 if test ! -z "$with_threads" -a -d "$with_threads" 9557 then LDFLAGS="$LDFLAGS -L$with_threads" 9558 fi 9559 if test ! -z "$withval" -a -d "$withval" 9560 then LDFLAGS="$LDFLAGS -L$withval" 9561 fi 9562 9563 # According to the POSIX spec, a pthreads implementation must 9564 # define _POSIX_THREADS in unistd.h. Some apparently don't 9565 # (e.g. gnu pth with pthread emulation) 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 9567 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569 /* end confdefs.h. */ 9570 9571 #include <unistd.h> 9572 #ifdef _POSIX_THREADS 9573 yes 9574 #endif 9575 9576 _ACEOF 9577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9578 $EGREP "yes" >/dev/null 2>&1; then : 9579 unistd_defines_pthreads=yes 9580 else 9581 unistd_defines_pthreads=no 9582 fi 9583 rm -f conftest* 9584 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 9586 $as_echo "$unistd_defines_pthreads" >&6; } 9587 9588 $as_echo "#define _REENTRANT 1" >>confdefs.h 9589 9590 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" 9591 if test "x$ac_cv_header_cthreads_h" = xyes; then : 9592 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9593 9594 $as_echo "#define C_THREADS 1" >>confdefs.h 9595 9596 9597 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h 9598 9599 LIBS="$LIBS -lthreads" 9600 THREADOBJ="Python/thread.o" 9601 else 9602 9603 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 9604 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 9605 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9606 9607 $as_echo "#define C_THREADS 1" >>confdefs.h 9608 9609 9610 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h 9611 9612 THREADOBJ="Python/thread.o" 9613 else 9614 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 9616 $as_echo_n "checking for --with-pth... " >&6; } 9617 9618 # Check whether --with-pth was given. 9619 if test "${with_pth+set}" = set; then : 9620 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9621 $as_echo "$withval" >&6; } 9622 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9623 9624 9625 $as_echo "#define HAVE_PTH 1" >>confdefs.h 9626 9627 LIBS="-lpth $LIBS" 9628 THREADOBJ="Python/thread.o" 9629 else 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9631 $as_echo "no" >&6; } 9632 9633 # Just looking for pthread_create in libpthread is not enough: 9634 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 9635 # So we really have to include pthread.h, and then link. 9636 _libs=$LIBS 9637 LIBS="$LIBS -lpthread" 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 9639 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641 /* end confdefs.h. */ 9642 9643 #include <stdio.h> 9644 #include <pthread.h> 9645 9646 void * start_routine (void *arg) { exit (0); } 9647 int 9648 main () 9649 { 9650 9651 pthread_create (NULL, NULL, start_routine, NULL) 9652 ; 9653 return 0; 9654 } 9655 _ACEOF 9656 if ac_fn_c_try_link "$LINENO"; then : 9657 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9659 $as_echo "yes" >&6; } 9660 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9661 9662 posix_threads=yes 9663 THREADOBJ="Python/thread.o" 9664 else 9665 9666 LIBS=$_libs 9667 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 9668 if test "x$ac_cv_func_pthread_detach" = xyes; then : 9669 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9670 9671 posix_threads=yes 9672 THREADOBJ="Python/thread.o" 9673 else 9674 9675 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" 9676 if test "x$ac_cv_header_atheos_threads_h" = xyes; then : 9677 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9678 9679 9680 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h 9681 9682 THREADOBJ="Python/thread.o" 9683 else 9684 9685 ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" 9686 if test "x$ac_cv_header_kernel_OS_h" = xyes; then : 9687 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9688 9689 9690 $as_echo "#define BEOS_THREADS 1" >>confdefs.h 9691 9692 THREADOBJ="Python/thread.o" 9693 else 9694 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 9696 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 9697 if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699 else 9700 ac_check_lib_save_LIBS=$LIBS 9701 LIBS="-lpthreads $LIBS" 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703 /* end confdefs.h. */ 9704 9705 /* Override any GCC internal prototype to avoid an error. 9706 Use char because int might match the return type of a GCC 9707 builtin and then its argument prototype would still apply. */ 9708 #ifdef __cplusplus 9709 extern "C" 9710 #endif 9711 char pthread_create (); 9712 int 9713 main () 9714 { 9715 return pthread_create (); 9716 ; 9717 return 0; 9718 } 9719 _ACEOF 9720 if ac_fn_c_try_link "$LINENO"; then : 9721 ac_cv_lib_pthreads_pthread_create=yes 9722 else 9723 ac_cv_lib_pthreads_pthread_create=no 9724 fi 9725 rm -f core conftest.err conftest.$ac_objext \ 9726 conftest$ac_exeext conftest.$ac_ext 9727 LIBS=$ac_check_lib_save_LIBS 9728 fi 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 9730 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 9731 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 9732 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9733 9734 posix_threads=yes 9735 LIBS="$LIBS -lpthreads" 9736 THREADOBJ="Python/thread.o" 9737 else 9738 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 9740 $as_echo_n "checking for pthread_create in -lc_r... " >&6; } 9741 if ${ac_cv_lib_c_r_pthread_create+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743 else 9744 ac_check_lib_save_LIBS=$LIBS 9745 LIBS="-lc_r $LIBS" 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747 /* end confdefs.h. */ 9748 9749 /* Override any GCC internal prototype to avoid an error. 9750 Use char because int might match the return type of a GCC 9751 builtin and then its argument prototype would still apply. */ 9752 #ifdef __cplusplus 9753 extern "C" 9754 #endif 9755 char pthread_create (); 9756 int 9757 main () 9758 { 9759 return pthread_create (); 9760 ; 9761 return 0; 9762 } 9763 _ACEOF 9764 if ac_fn_c_try_link "$LINENO"; then : 9765 ac_cv_lib_c_r_pthread_create=yes 9766 else 9767 ac_cv_lib_c_r_pthread_create=no 9768 fi 9769 rm -f core conftest.err conftest.$ac_objext \ 9770 conftest$ac_exeext conftest.$ac_ext 9771 LIBS=$ac_check_lib_save_LIBS 9772 fi 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 9774 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 9775 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 9776 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9777 9778 posix_threads=yes 9779 LIBS="$LIBS -lc_r" 9780 THREADOBJ="Python/thread.o" 9781 else 9782 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 9784 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 9785 if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 9786 $as_echo_n "(cached) " >&6 9787 else 9788 ac_check_lib_save_LIBS=$LIBS 9789 LIBS="-lpthread $LIBS" 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791 /* end confdefs.h. */ 9792 9793 /* Override any GCC internal prototype to avoid an error. 9794 Use char because int might match the return type of a GCC 9795 builtin and then its argument prototype would still apply. */ 9796 #ifdef __cplusplus 9797 extern "C" 9798 #endif 9799 char __pthread_create_system (); 9800 int 9801 main () 9802 { 9803 return __pthread_create_system (); 9804 ; 9805 return 0; 9806 } 9807 _ACEOF 9808 if ac_fn_c_try_link "$LINENO"; then : 9809 ac_cv_lib_pthread___pthread_create_system=yes 9810 else 9811 ac_cv_lib_pthread___pthread_create_system=no 9812 fi 9813 rm -f core conftest.err conftest.$ac_objext \ 9814 conftest$ac_exeext conftest.$ac_ext 9815 LIBS=$ac_check_lib_save_LIBS 9816 fi 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 9818 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 9819 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 9820 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9821 9822 posix_threads=yes 9823 LIBS="$LIBS -lpthread" 9824 THREADOBJ="Python/thread.o" 9825 else 9826 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 9828 $as_echo_n "checking for pthread_create in -lcma... " >&6; } 9829 if ${ac_cv_lib_cma_pthread_create+:} false; then : 9830 $as_echo_n "(cached) " >&6 9831 else 9832 ac_check_lib_save_LIBS=$LIBS 9833 LIBS="-lcma $LIBS" 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835 /* end confdefs.h. */ 9836 9837 /* Override any GCC internal prototype to avoid an error. 9838 Use char because int might match the return type of a GCC 9839 builtin and then its argument prototype would still apply. */ 9840 #ifdef __cplusplus 9841 extern "C" 9842 #endif 9843 char pthread_create (); 9844 int 9845 main () 9846 { 9847 return pthread_create (); 9848 ; 9849 return 0; 9850 } 9851 _ACEOF 9852 if ac_fn_c_try_link "$LINENO"; then : 9853 ac_cv_lib_cma_pthread_create=yes 9854 else 9855 ac_cv_lib_cma_pthread_create=no 9856 fi 9857 rm -f core conftest.err conftest.$ac_objext \ 9858 conftest$ac_exeext conftest.$ac_ext 9859 LIBS=$ac_check_lib_save_LIBS 9860 fi 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 9862 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 9863 if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 9864 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9865 9866 posix_threads=yes 9867 LIBS="$LIBS -lcma" 9868 THREADOBJ="Python/thread.o" 9869 else 9870 9871 USE_THREAD_MODULE="#" 9872 fi 9873 9874 9875 fi 9876 9877 fi 9878 9879 fi 9880 9881 fi 9882 9883 9884 fi 9885 9886 9887 fi 9888 9889 fi 9890 rm -f core conftest.err conftest.$ac_objext \ 9891 conftest$ac_exeext conftest.$ac_ext 9892 fi 9893 9894 fi 9895 9896 9897 fi 9898 9899 9900 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 9902 $as_echo_n "checking for usconfig in -lmpc... " >&6; } 9903 if ${ac_cv_lib_mpc_usconfig+:} false; then : 9904 $as_echo_n "(cached) " >&6 9905 else 9906 ac_check_lib_save_LIBS=$LIBS 9907 LIBS="-lmpc $LIBS" 9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9909 /* end confdefs.h. */ 9910 9911 /* Override any GCC internal prototype to avoid an error. 9912 Use char because int might match the return type of a GCC 9913 builtin and then its argument prototype would still apply. */ 9914 #ifdef __cplusplus 9915 extern "C" 9916 #endif 9917 char usconfig (); 9918 int 9919 main () 9920 { 9921 return usconfig (); 9922 ; 9923 return 0; 9924 } 9925 _ACEOF 9926 if ac_fn_c_try_link "$LINENO"; then : 9927 ac_cv_lib_mpc_usconfig=yes 9928 else 9929 ac_cv_lib_mpc_usconfig=no 9930 fi 9931 rm -f core conftest.err conftest.$ac_objext \ 9932 conftest$ac_exeext conftest.$ac_ext 9933 LIBS=$ac_check_lib_save_LIBS 9934 fi 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 9936 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 9937 if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 9938 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9939 9940 LIBS="$LIBS -lmpc" 9941 THREADOBJ="Python/thread.o" 9942 USE_THREAD_MODULE="" 9943 fi 9944 9945 9946 if test "$posix_threads" != "yes"; then 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 9948 $as_echo_n "checking for thr_create in -lthread... " >&6; } 9949 if ${ac_cv_lib_thread_thr_create+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951 else 9952 ac_check_lib_save_LIBS=$LIBS 9953 LIBS="-lthread $LIBS" 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955 /* end confdefs.h. */ 9956 9957 /* Override any GCC internal prototype to avoid an error. 9958 Use char because int might match the return type of a GCC 9959 builtin and then its argument prototype would still apply. */ 9960 #ifdef __cplusplus 9961 extern "C" 9962 #endif 9963 char thr_create (); 9964 int 9965 main () 9966 { 9967 return thr_create (); 9968 ; 9969 return 0; 9970 } 9971 _ACEOF 9972 if ac_fn_c_try_link "$LINENO"; then : 9973 ac_cv_lib_thread_thr_create=yes 9974 else 9975 ac_cv_lib_thread_thr_create=no 9976 fi 9977 rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979 LIBS=$ac_check_lib_save_LIBS 9980 fi 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 9982 $as_echo "$ac_cv_lib_thread_thr_create" >&6; } 9983 if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 9984 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9985 9986 LIBS="$LIBS -lthread" 9987 THREADOBJ="Python/thread.o" 9988 USE_THREAD_MODULE="" 9989 fi 9990 9991 fi 9992 9993 if test "$USE_THREAD_MODULE" != "#" 9994 then 9995 # If the above checks didn't disable threads, (at least) OSF1 9996 # needs this '-threads' argument during linking. 9997 case $ac_sys_system in 9998 OSF1) LDLAST=-threads;; 9999 esac 10000 fi 10001 fi 10002 10003 if test "$posix_threads" = "yes"; then 10004 if test "$unistd_defines_pthreads" = "no"; then 10005 10006 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h 10007 10008 fi 10009 10010 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 10011 case $ac_sys_system/$ac_sys_release in 10012 SunOS/5.6) 10013 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 10014 10015 ;; 10016 SunOS/5.8) 10017 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10018 10019 ;; 10020 AIX/*) 10021 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10022 10023 ;; 10024 esac 10025 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 10027 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 10028 if ${ac_cv_pthread_system_supported+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030 else 10031 if test "$cross_compiling" = yes; then : 10032 ac_cv_pthread_system_supported=no 10033 else 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035 /* end confdefs.h. */ 10036 10037 #include <stdio.h> 10038 #include <pthread.h> 10039 void *foo(void *parm) { 10040 return NULL; 10041 } 10042 main() { 10043 pthread_attr_t attr; 10044 pthread_t id; 10045 if (pthread_attr_init(&attr)) exit(-1); 10046 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); 10047 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); 10048 exit(0); 10049 } 10050 _ACEOF 10051 if ac_fn_c_try_run "$LINENO"; then : 10052 ac_cv_pthread_system_supported=yes 10053 else 10054 ac_cv_pthread_system_supported=no 10055 fi 10056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10057 conftest.$ac_objext conftest.beam conftest.$ac_ext 10058 fi 10059 10060 10061 fi 10062 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 10064 $as_echo "$ac_cv_pthread_system_supported" >&6; } 10065 if test "$ac_cv_pthread_system_supported" = "yes"; then 10066 10067 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 10068 10069 fi 10070 for ac_func in pthread_sigmask 10071 do : 10072 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 10073 if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 10074 cat >>confdefs.h <<_ACEOF 10075 #define HAVE_PTHREAD_SIGMASK 1 10076 _ACEOF 10077 case $ac_sys_system in 10078 CYGWIN*) 10079 10080 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 10081 10082 ;; 10083 esac 10084 fi 10085 done 10086 10087 for ac_func in pthread_atfork 10088 do : 10089 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 10090 if test "x$ac_cv_func_pthread_atfork" = xyes; then : 10091 cat >>confdefs.h <<_ACEOF 10092 #define HAVE_PTHREAD_ATFORK 1 10093 _ACEOF 10094 10095 fi 10096 done 10097 10098 fi 10099 10100 10101 # Check for enable-ipv6 10102 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 10104 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 10105 # Check whether --enable-ipv6 was given. 10106 if test "${enable_ipv6+set}" = set; then : 10107 enableval=$enable_ipv6; case "$enableval" in 10108 no) 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10110 $as_echo "no" >&6; } 10111 ipv6=no 10112 ;; 10113 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10114 $as_echo "yes" >&6; } 10115 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10116 10117 ipv6=yes 10118 ;; 10119 esac 10120 else 10121 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123 /* end confdefs.h. */ 10124 /* AF_INET6 available check */ 10125 #include <sys/types.h> 10126 #include <sys/socket.h> 10127 int 10128 main () 10129 { 10130 int domain = AF_INET6; 10131 ; 10132 return 0; 10133 } 10134 _ACEOF 10135 if ac_fn_c_try_compile "$LINENO"; then : 10136 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10138 $as_echo "yes" >&6; } 10139 ipv6=yes 10140 10141 else 10142 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10144 $as_echo "no" >&6; } 10145 ipv6=no 10146 10147 fi 10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10149 10150 if test "$ipv6" = "yes"; then 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 10152 $as_echo_n "checking if RFC2553 API is available... " >&6; } 10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154 /* end confdefs.h. */ 10155 10156 #include <sys/types.h> 10157 #include <netinet/in.h> 10158 int 10159 main () 10160 { 10161 struct sockaddr_in6 x; 10162 x.sin6_scope_id; 10163 ; 10164 return 0; 10165 } 10166 10167 _ACEOF 10168 if ac_fn_c_try_compile "$LINENO"; then : 10169 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10171 $as_echo "yes" >&6; } 10172 ipv6=yes 10173 10174 else 10175 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10177 $as_echo "no" >&6; } 10178 ipv6=no 10179 10180 fi 10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10182 fi 10183 10184 if test "$ipv6" = "yes"; then 10185 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10186 10187 fi 10188 10189 fi 10190 10191 10192 ipv6type=unknown 10193 ipv6lib=none 10194 ipv6trylibc=no 10195 10196 if test "$ipv6" = "yes"; then 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 10198 $as_echo_n "checking ipv6 stack type... " >&6; } 10199 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 10200 do 10201 case $i in 10202 inria) 10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10204 /* end confdefs.h. */ 10205 10206 #include <netinet/in.h> 10207 #ifdef IPV6_INRIA_VERSION 10208 yes 10209 #endif 10210 _ACEOF 10211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10212 $EGREP "yes" >/dev/null 2>&1; then : 10213 ipv6type=$i 10214 fi 10215 rm -f conftest* 10216 10217 ;; 10218 kame) 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220 /* end confdefs.h. */ 10221 10222 #include <netinet/in.h> 10223 #ifdef __KAME__ 10224 yes 10225 #endif 10226 _ACEOF 10227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10228 $EGREP "yes" >/dev/null 2>&1; then : 10229 ipv6type=$i; 10230 ipv6lib=inet6 10231 ipv6libdir=/usr/local/v6/lib 10232 ipv6trylibc=yes 10233 fi 10234 rm -f conftest* 10235 10236 ;; 10237 linux-glibc) 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239 /* end confdefs.h. */ 10240 10241 #include <features.h> 10242 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 10243 yes 10244 #endif 10245 _ACEOF 10246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10247 $EGREP "yes" >/dev/null 2>&1; then : 10248 ipv6type=$i; 10249 ipv6trylibc=yes 10250 fi 10251 rm -f conftest* 10252 10253 ;; 10254 linux-inet6) 10255 if test -d /usr/inet6; then 10256 ipv6type=$i 10257 ipv6lib=inet6 10258 ipv6libdir=/usr/inet6/lib 10259 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 10260 fi 10261 ;; 10262 solaris) 10263 if test -f /etc/netconfig; then 10264 if $GREP -q tcp6 /etc/netconfig; then 10265 ipv6type=$i 10266 ipv6trylibc=yes 10267 fi 10268 fi 10269 ;; 10270 toshiba) 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272 /* end confdefs.h. */ 10273 10274 #include <sys/param.h> 10275 #ifdef _TOSHIBA_INET6 10276 yes 10277 #endif 10278 _ACEOF 10279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10280 $EGREP "yes" >/dev/null 2>&1; then : 10281 ipv6type=$i; 10282 ipv6lib=inet6; 10283 ipv6libdir=/usr/local/v6/lib 10284 fi 10285 rm -f conftest* 10286 10287 ;; 10288 v6d) 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290 /* end confdefs.h. */ 10291 10292 #include </usr/local/v6/include/sys/v6config.h> 10293 #ifdef __V6D__ 10294 yes 10295 #endif 10296 _ACEOF 10297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10298 $EGREP "yes" >/dev/null 2>&1; then : 10299 ipv6type=$i; 10300 ipv6lib=v6; 10301 ipv6libdir=/usr/local/v6/lib; 10302 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 10303 fi 10304 rm -f conftest* 10305 10306 ;; 10307 zeta) 10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10309 /* end confdefs.h. */ 10310 10311 #include <sys/param.h> 10312 #ifdef _ZETA_MINAMI_INET6 10313 yes 10314 #endif 10315 _ACEOF 10316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10317 $EGREP "yes" >/dev/null 2>&1; then : 10318 ipv6type=$i; 10319 ipv6lib=inet6; 10320 ipv6libdir=/usr/local/v6/lib 10321 fi 10322 rm -f conftest* 10323 10324 ;; 10325 esac 10326 if test "$ipv6type" != "unknown"; then 10327 break 10328 fi 10329 done 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 10331 $as_echo "$ipv6type" >&6; } 10332 fi 10333 10334 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 10335 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 10336 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 10337 echo "using lib$ipv6lib" 10338 else 10339 if test $ipv6trylibc = "yes"; then 10340 echo "using libc" 10341 else 10342 echo 'Fatal: no $ipv6lib library found. cannot continue.' 10343 echo "You need to fetch lib$ipv6lib.a from appropriate" 10344 echo 'ipv6 kit and compile beforehand.' 10345 exit 1 10346 fi 10347 fi 10348 fi 10349 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 10351 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } 10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353 /* end confdefs.h. */ 10354 10355 #include <Carbon/Carbon.h> 10356 int 10357 main () 10358 { 10359 FSIORefNum fRef = 0 10360 ; 10361 return 0; 10362 } 10363 10364 _ACEOF 10365 if ac_fn_c_try_compile "$LINENO"; then : 10366 10367 10368 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h 10369 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10371 $as_echo "yes" >&6; } 10372 10373 else 10374 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10376 $as_echo "no" >&6; } 10377 10378 fi 10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10380 10381 # Check for --with-doc-strings 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 10383 $as_echo_n "checking for --with-doc-strings... " >&6; } 10384 10385 # Check whether --with-doc-strings was given. 10386 if test "${with_doc_strings+set}" = set; then : 10387 withval=$with_doc_strings; 10388 fi 10389 10390 10391 if test -z "$with_doc_strings" 10392 then with_doc_strings="yes" 10393 fi 10394 if test "$with_doc_strings" != "no" 10395 then 10396 10397 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 10398 10399 fi 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 10401 $as_echo "$with_doc_strings" >&6; } 10402 10403 # Check for Python-specific malloc support 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 10405 $as_echo_n "checking for --with-tsc... " >&6; } 10406 10407 # Check whether --with-tsc was given. 10408 if test "${with_tsc+set}" = set; then : 10409 withval=$with_tsc; 10410 if test "$withval" != no 10411 then 10412 10413 $as_echo "#define WITH_TSC 1" >>confdefs.h 10414 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10416 $as_echo "yes" >&6; } 10417 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10418 $as_echo "no" >&6; } 10419 fi 10420 else 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10422 $as_echo "no" >&6; } 10423 fi 10424 10425 10426 # Check for Python-specific malloc support 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 10428 $as_echo_n "checking for --with-pymalloc... " >&6; } 10429 10430 # Check whether --with-pymalloc was given. 10431 if test "${with_pymalloc+set}" = set; then : 10432 withval=$with_pymalloc; 10433 fi 10434 10435 10436 if test -z "$with_pymalloc" 10437 then with_pymalloc="yes" 10438 fi 10439 if test "$with_pymalloc" != "no" 10440 then 10441 10442 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 10443 10444 fi 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 10446 $as_echo "$with_pymalloc" >&6; } 10447 10448 # Check for Valgrind support 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 10450 $as_echo_n "checking for --with-valgrind... " >&6; } 10451 10452 # Check whether --with-valgrind was given. 10453 if test "${with_valgrind+set}" = set; then : 10454 withval=$with_valgrind; 10455 else 10456 with_valgrind=no 10457 fi 10458 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 10460 $as_echo "$with_valgrind" >&6; } 10461 if test "$with_valgrind" != no; then 10462 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 10463 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 10464 10465 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h 10466 10467 else 10468 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 10469 10470 fi 10471 10472 10473 fi 10474 10475 # Check for --with-wctype-functions 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 10477 $as_echo_n "checking for --with-wctype-functions... " >&6; } 10478 10479 # Check whether --with-wctype-functions was given. 10480 if test "${with_wctype_functions+set}" = set; then : 10481 withval=$with_wctype_functions; 10482 if test "$withval" != no 10483 then 10484 10485 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h 10486 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10488 $as_echo "yes" >&6; } 10489 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10490 $as_echo "no" >&6; } 10491 fi 10492 else 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10494 $as_echo "no" >&6; } 10495 fi 10496 10497 10498 # -I${DLINCLDIR} is added to the compile rule for importdl.o 10499 10500 DLINCLDIR=. 10501 10502 # the dlopen() function means we might want to use dynload_shlib.o. some 10503 # platforms, such as AIX, have dlopen(), but don't want to use it. 10504 for ac_func in dlopen 10505 do : 10506 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10507 if test "x$ac_cv_func_dlopen" = xyes; then : 10508 cat >>confdefs.h <<_ACEOF 10509 #define HAVE_DLOPEN 1 10510 _ACEOF 10511 10512 fi 10513 done 10514 10515 10516 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 10517 # loading of modules. 10518 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 10520 $as_echo_n "checking DYNLOADFILE... " >&6; } 10521 if test -z "$DYNLOADFILE" 10522 then 10523 case $ac_sys_system/$ac_sys_release in 10524 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 10525 if test "$ac_cv_func_dlopen" = yes 10526 then DYNLOADFILE="dynload_shlib.o" 10527 else DYNLOADFILE="dynload_aix.o" 10528 fi 10529 ;; 10530 BeOS*) DYNLOADFILE="dynload_beos.o";; 10531 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 10532 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() 10533 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; 10534 atheos*) DYNLOADFILE="dynload_atheos.o";; 10535 *) 10536 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 10537 # out any dynamic loading 10538 if test "$ac_cv_func_dlopen" = yes 10539 then DYNLOADFILE="dynload_shlib.o" 10540 else DYNLOADFILE="dynload_stub.o" 10541 fi 10542 ;; 10543 esac 10544 fi 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 10546 $as_echo "$DYNLOADFILE" >&6; } 10547 if test "$DYNLOADFILE" != "dynload_stub.o" 10548 then 10549 10550 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 10551 10552 fi 10553 10554 # MACHDEP_OBJS can be set to platform-specific object files needed by Python 10555 10556 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 10558 $as_echo_n "checking MACHDEP_OBJS... " >&6; } 10559 if test -z "$MACHDEP_OBJS" 10560 then 10561 MACHDEP_OBJS=$extra_machdep_objs 10562 else 10563 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 10564 fi 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 10566 $as_echo "MACHDEP_OBJS" >&6; } 10567 10568 # checks for library functions 10569 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \ 10570 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ 10571 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ 10572 getentropy \ 10573 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ 10574 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime mmap \ 10575 mremap nice pathconf pause plock poll pthread_init \ 10576 putenv readlink realpath \ 10577 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ 10578 setgid \ 10579 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ 10580 setlocale setregid setreuid setresuid setresgid \ 10581 setsid setpgid setpgrp setuid setvbuf snprintf \ 10582 sigaction siginterrupt sigrelse strftime \ 10583 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 10584 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty 10585 do : 10586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10589 cat >>confdefs.h <<_ACEOF 10590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10591 _ACEOF 10592 10593 fi 10594 done 10595 10596 10597 # For some functions, having a definition is not sufficient, since 10598 # we want to take their address. 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 10600 $as_echo_n "checking for chroot... " >&6; } 10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10602 /* end confdefs.h. */ 10603 #include <unistd.h> 10604 int 10605 main () 10606 { 10607 void *x=chroot 10608 ; 10609 return 0; 10610 } 10611 _ACEOF 10612 if ac_fn_c_try_compile "$LINENO"; then : 10613 10614 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h 10615 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10617 $as_echo "yes" >&6; } 10618 else 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10620 $as_echo "no" >&6; } 10621 10622 fi 10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 10625 $as_echo_n "checking for link... " >&6; } 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627 /* end confdefs.h. */ 10628 #include <unistd.h> 10629 int 10630 main () 10631 { 10632 void *x=link 10633 ; 10634 return 0; 10635 } 10636 _ACEOF 10637 if ac_fn_c_try_compile "$LINENO"; then : 10638 10639 $as_echo "#define HAVE_LINK 1" >>confdefs.h 10640 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10642 $as_echo "yes" >&6; } 10643 else 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10645 $as_echo "no" >&6; } 10646 10647 fi 10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 10650 $as_echo_n "checking for symlink... " >&6; } 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652 /* end confdefs.h. */ 10653 #include <unistd.h> 10654 int 10655 main () 10656 { 10657 void *x=symlink 10658 ; 10659 return 0; 10660 } 10661 _ACEOF 10662 if ac_fn_c_try_compile "$LINENO"; then : 10663 10664 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 10665 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10667 $as_echo "yes" >&6; } 10668 else 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10670 $as_echo "no" >&6; } 10671 10672 fi 10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 10675 $as_echo_n "checking for fchdir... " >&6; } 10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10677 /* end confdefs.h. */ 10678 #include <unistd.h> 10679 int 10680 main () 10681 { 10682 void *x=fchdir 10683 ; 10684 return 0; 10685 } 10686 _ACEOF 10687 if ac_fn_c_try_compile "$LINENO"; then : 10688 10689 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 10690 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10692 $as_echo "yes" >&6; } 10693 else 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10695 $as_echo "no" >&6; } 10696 10697 fi 10698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 10700 $as_echo_n "checking for fsync... " >&6; } 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702 /* end confdefs.h. */ 10703 #include <unistd.h> 10704 int 10705 main () 10706 { 10707 void *x=fsync 10708 ; 10709 return 0; 10710 } 10711 _ACEOF 10712 if ac_fn_c_try_compile "$LINENO"; then : 10713 10714 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h 10715 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10717 $as_echo "yes" >&6; } 10718 else 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10720 $as_echo "no" >&6; } 10721 10722 fi 10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 10725 $as_echo_n "checking for fdatasync... " >&6; } 10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727 /* end confdefs.h. */ 10728 #include <unistd.h> 10729 int 10730 main () 10731 { 10732 void *x=fdatasync 10733 ; 10734 return 0; 10735 } 10736 _ACEOF 10737 if ac_fn_c_try_compile "$LINENO"; then : 10738 10739 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 10740 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10742 $as_echo "yes" >&6; } 10743 else 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10745 $as_echo "no" >&6; } 10746 10747 fi 10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 10750 $as_echo_n "checking for epoll... " >&6; } 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752 /* end confdefs.h. */ 10753 #include <sys/epoll.h> 10754 int 10755 main () 10756 { 10757 void *x=epoll_create 10758 ; 10759 return 0; 10760 } 10761 _ACEOF 10762 if ac_fn_c_try_compile "$LINENO"; then : 10763 10764 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h 10765 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10767 $as_echo "yes" >&6; } 10768 else 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10770 $as_echo "no" >&6; } 10771 10772 fi 10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 10775 $as_echo_n "checking for kqueue... " >&6; } 10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777 /* end confdefs.h. */ 10778 10779 #include <sys/types.h> 10780 #include <sys/event.h> 10781 10782 int 10783 main () 10784 { 10785 int x=kqueue() 10786 ; 10787 return 0; 10788 } 10789 _ACEOF 10790 if ac_fn_c_try_compile "$LINENO"; then : 10791 10792 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 10793 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10795 $as_echo "yes" >&6; } 10796 else 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10798 $as_echo "no" >&6; } 10799 10800 fi 10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10802 # On some systems (eg. FreeBSD 5), we would find a definition of the 10803 # functions ctermid_r, setgroups in the library, but no prototype 10804 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their 10805 # address to avoid compiler warnings and potential miscompilations 10806 # because of the missing prototypes. 10807 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 10809 $as_echo_n "checking for ctermid_r... " >&6; } 10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811 /* end confdefs.h. */ 10812 10813 #include <stdio.h> 10814 10815 int 10816 main () 10817 { 10818 void* p = ctermid_r 10819 ; 10820 return 0; 10821 } 10822 _ACEOF 10823 if ac_fn_c_try_compile "$LINENO"; then : 10824 10825 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 10826 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10828 $as_echo "yes" >&6; } 10829 else 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10831 $as_echo "no" >&6; } 10832 10833 fi 10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10835 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 10837 $as_echo_n "checking for flock declaration... " >&6; } 10838 if ${ac_cv_flock_decl+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840 else 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842 /* end confdefs.h. */ 10843 #include <sys/file.h> 10844 int 10845 main () 10846 { 10847 void* p = flock 10848 10849 ; 10850 return 0; 10851 } 10852 _ACEOF 10853 if ac_fn_c_try_compile "$LINENO"; then : 10854 ac_cv_flock_decl=yes 10855 else 10856 ac_cv_flock_decl=no 10857 10858 fi 10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10860 10861 fi 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 10863 $as_echo "$ac_cv_flock_decl" >&6; } 10864 if test "x${ac_cv_flock_decl}" = xyes; then 10865 for ac_func in flock 10866 do : 10867 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 10868 if test "x$ac_cv_func_flock" = xyes; then : 10869 cat >>confdefs.h <<_ACEOF 10870 #define HAVE_FLOCK 1 10871 _ACEOF 10872 10873 else 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 10875 $as_echo_n "checking for flock in -lbsd... " >&6; } 10876 if ${ac_cv_lib_bsd_flock+:} false; then : 10877 $as_echo_n "(cached) " >&6 10878 else 10879 ac_check_lib_save_LIBS=$LIBS 10880 LIBS="-lbsd $LIBS" 10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882 /* end confdefs.h. */ 10883 10884 /* Override any GCC internal prototype to avoid an error. 10885 Use char because int might match the return type of a GCC 10886 builtin and then its argument prototype would still apply. */ 10887 #ifdef __cplusplus 10888 extern "C" 10889 #endif 10890 char flock (); 10891 int 10892 main () 10893 { 10894 return flock (); 10895 ; 10896 return 0; 10897 } 10898 _ACEOF 10899 if ac_fn_c_try_link "$LINENO"; then : 10900 ac_cv_lib_bsd_flock=yes 10901 else 10902 ac_cv_lib_bsd_flock=no 10903 fi 10904 rm -f core conftest.err conftest.$ac_objext \ 10905 conftest$ac_exeext conftest.$ac_ext 10906 LIBS=$ac_check_lib_save_LIBS 10907 fi 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 10909 $as_echo "$ac_cv_lib_bsd_flock" >&6; } 10910 if test "x$ac_cv_lib_bsd_flock" = xyes; then : 10911 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 10912 10913 10914 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 10915 10916 10917 fi 10918 10919 10920 fi 10921 done 10922 10923 fi 10924 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 10926 $as_echo_n "checking for getpagesize... " >&6; } 10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928 /* end confdefs.h. */ 10929 10930 #include <unistd.h> 10931 10932 int 10933 main () 10934 { 10935 void* p = getpagesize 10936 ; 10937 return 0; 10938 } 10939 _ACEOF 10940 if ac_fn_c_try_compile "$LINENO"; then : 10941 10942 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 10943 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10945 $as_echo "yes" >&6; } 10946 else 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10948 $as_echo "no" >&6; } 10949 10950 fi 10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10952 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 10954 $as_echo_n "checking for broken unsetenv... " >&6; } 10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956 /* end confdefs.h. */ 10957 10958 #include <stdlib.h> 10959 10960 int 10961 main () 10962 { 10963 int res = unsetenv("DUMMY") 10964 ; 10965 return 0; 10966 } 10967 _ACEOF 10968 if ac_fn_c_try_compile "$LINENO"; then : 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10970 $as_echo "no" >&6; } 10971 else 10972 10973 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 10974 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10976 $as_echo "yes" >&6; } 10977 10978 fi 10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10980 10981 for ac_prog in true 10982 do 10983 # Extract the first word of "$ac_prog", so it can be a program name with args. 10984 set dummy $ac_prog; ac_word=$2 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10986 $as_echo_n "checking for $ac_word... " >&6; } 10987 if ${ac_cv_prog_TRUE+:} false; then : 10988 $as_echo_n "(cached) " >&6 10989 else 10990 if test -n "$TRUE"; then 10991 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 10992 else 10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10994 for as_dir in $PATH 10995 do 10996 IFS=$as_save_IFS 10997 test -z "$as_dir" && as_dir=. 10998 for ac_exec_ext in '' $ac_executable_extensions; do 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11000 ac_cv_prog_TRUE="$ac_prog" 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11002 break 2 11003 fi 11004 done 11005 done 11006 IFS=$as_save_IFS 11007 11008 fi 11009 fi 11010 TRUE=$ac_cv_prog_TRUE 11011 if test -n "$TRUE"; then 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 11013 $as_echo "$TRUE" >&6; } 11014 else 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11016 $as_echo "no" >&6; } 11017 fi 11018 11019 11020 test -n "$TRUE" && break 11021 done 11022 test -n "$TRUE" || TRUE="/bin/true" 11023 11024 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 11026 $as_echo_n "checking for inet_aton in -lc... " >&6; } 11027 if ${ac_cv_lib_c_inet_aton+:} false; then : 11028 $as_echo_n "(cached) " >&6 11029 else 11030 ac_check_lib_save_LIBS=$LIBS 11031 LIBS="-lc $LIBS" 11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11033 /* end confdefs.h. */ 11034 11035 /* Override any GCC internal prototype to avoid an error. 11036 Use char because int might match the return type of a GCC 11037 builtin and then its argument prototype would still apply. */ 11038 #ifdef __cplusplus 11039 extern "C" 11040 #endif 11041 char inet_aton (); 11042 int 11043 main () 11044 { 11045 return inet_aton (); 11046 ; 11047 return 0; 11048 } 11049 _ACEOF 11050 if ac_fn_c_try_link "$LINENO"; then : 11051 ac_cv_lib_c_inet_aton=yes 11052 else 11053 ac_cv_lib_c_inet_aton=no 11054 fi 11055 rm -f core conftest.err conftest.$ac_objext \ 11056 conftest$ac_exeext conftest.$ac_ext 11057 LIBS=$ac_check_lib_save_LIBS 11058 fi 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 11060 $as_echo "$ac_cv_lib_c_inet_aton" >&6; } 11061 if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 11062 $ac_cv_prog_TRUE 11063 else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 11065 $as_echo_n "checking for inet_aton in -lresolv... " >&6; } 11066 if ${ac_cv_lib_resolv_inet_aton+:} false; then : 11067 $as_echo_n "(cached) " >&6 11068 else 11069 ac_check_lib_save_LIBS=$LIBS 11070 LIBS="-lresolv $LIBS" 11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11072 /* end confdefs.h. */ 11073 11074 /* Override any GCC internal prototype to avoid an error. 11075 Use char because int might match the return type of a GCC 11076 builtin and then its argument prototype would still apply. */ 11077 #ifdef __cplusplus 11078 extern "C" 11079 #endif 11080 char inet_aton (); 11081 int 11082 main () 11083 { 11084 return inet_aton (); 11085 ; 11086 return 0; 11087 } 11088 _ACEOF 11089 if ac_fn_c_try_link "$LINENO"; then : 11090 ac_cv_lib_resolv_inet_aton=yes 11091 else 11092 ac_cv_lib_resolv_inet_aton=no 11093 fi 11094 rm -f core conftest.err conftest.$ac_objext \ 11095 conftest$ac_exeext conftest.$ac_ext 11096 LIBS=$ac_check_lib_save_LIBS 11097 fi 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 11099 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 11100 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 11101 cat >>confdefs.h <<_ACEOF 11102 #define HAVE_LIBRESOLV 1 11103 _ACEOF 11104 11105 LIBS="-lresolv $LIBS" 11106 11107 fi 11108 11109 11110 fi 11111 11112 11113 # On Tru64, chflags seems to be present, but calling it will 11114 # exit Python 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 11116 $as_echo_n "checking for chflags... " >&6; } 11117 if ${ac_cv_have_chflags+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119 else 11120 if test "$cross_compiling" = yes; then : 11121 ac_cv_have_chflags=cross 11122 else 11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124 /* end confdefs.h. */ 11125 11126 #include <sys/stat.h> 11127 #include <unistd.h> 11128 int main(int argc, char*argv[]) 11129 { 11130 if(chflags(argv[0], 0) != 0) 11131 return 1; 11132 return 0; 11133 } 11134 11135 _ACEOF 11136 if ac_fn_c_try_run "$LINENO"; then : 11137 ac_cv_have_chflags=yes 11138 else 11139 ac_cv_have_chflags=no 11140 fi 11141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11142 conftest.$ac_objext conftest.beam conftest.$ac_ext 11143 fi 11144 11145 11146 fi 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 11148 $as_echo "$ac_cv_have_chflags" >&6; } 11149 if test "$ac_cv_have_chflags" = cross ; then 11150 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 11151 if test "x$ac_cv_func_chflags" = xyes; then : 11152 ac_cv_have_chflags="yes" 11153 else 11154 ac_cv_have_chflags="no" 11155 fi 11156 11157 fi 11158 if test "$ac_cv_have_chflags" = yes ; then 11159 11160 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 11161 11162 fi 11163 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 11165 $as_echo_n "checking for lchflags... " >&6; } 11166 if ${ac_cv_have_lchflags+:} false; then : 11167 $as_echo_n "(cached) " >&6 11168 else 11169 if test "$cross_compiling" = yes; then : 11170 ac_cv_have_lchflags=cross 11171 else 11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11173 /* end confdefs.h. */ 11174 11175 #include <sys/stat.h> 11176 #include <unistd.h> 11177 int main(int argc, char*argv[]) 11178 { 11179 if(lchflags(argv[0], 0) != 0) 11180 return 1; 11181 return 0; 11182 } 11183 11184 _ACEOF 11185 if ac_fn_c_try_run "$LINENO"; then : 11186 ac_cv_have_lchflags=yes 11187 else 11188 ac_cv_have_lchflags=no 11189 fi 11190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11191 conftest.$ac_objext conftest.beam conftest.$ac_ext 11192 fi 11193 11194 11195 fi 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 11197 $as_echo "$ac_cv_have_lchflags" >&6; } 11198 if test "$ac_cv_have_lchflags" = cross ; then 11199 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 11200 if test "x$ac_cv_func_lchflags" = xyes; then : 11201 ac_cv_have_lchflags="yes" 11202 else 11203 ac_cv_have_lchflags="no" 11204 fi 11205 11206 fi 11207 if test "$ac_cv_have_lchflags" = yes ; then 11208 11209 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 11210 11211 fi 11212 11213 case $ac_sys_system/$ac_sys_release in 11214 Darwin/*) 11215 _CUR_CFLAGS="${CFLAGS}" 11216 _CUR_LDFLAGS="${LDFLAGS}" 11217 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 11218 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 11219 ;; 11220 esac 11221 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 11223 $as_echo_n "checking for inflateCopy in -lz... " >&6; } 11224 if ${ac_cv_lib_z_inflateCopy+:} false; then : 11225 $as_echo_n "(cached) " >&6 11226 else 11227 ac_check_lib_save_LIBS=$LIBS 11228 LIBS="-lz $LIBS" 11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11230 /* end confdefs.h. */ 11231 11232 /* Override any GCC internal prototype to avoid an error. 11233 Use char because int might match the return type of a GCC 11234 builtin and then its argument prototype would still apply. */ 11235 #ifdef __cplusplus 11236 extern "C" 11237 #endif 11238 char inflateCopy (); 11239 int 11240 main () 11241 { 11242 return inflateCopy (); 11243 ; 11244 return 0; 11245 } 11246 _ACEOF 11247 if ac_fn_c_try_link "$LINENO"; then : 11248 ac_cv_lib_z_inflateCopy=yes 11249 else 11250 ac_cv_lib_z_inflateCopy=no 11251 fi 11252 rm -f core conftest.err conftest.$ac_objext \ 11253 conftest$ac_exeext conftest.$ac_ext 11254 LIBS=$ac_check_lib_save_LIBS 11255 fi 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 11257 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 11258 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 11259 11260 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 11261 11262 fi 11263 11264 11265 case $ac_sys_system/$ac_sys_release in 11266 Darwin/*) 11267 CFLAGS="${_CUR_CFLAGS}" 11268 LDFLAGS="${_CUR_LDFLAGS}" 11269 ;; 11270 esac 11271 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 11273 $as_echo_n "checking for hstrerror... " >&6; } 11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11275 /* end confdefs.h. */ 11276 11277 #include <netdb.h> 11278 11279 int 11280 main () 11281 { 11282 void* p = hstrerror; hstrerror(0) 11283 ; 11284 return 0; 11285 } 11286 _ACEOF 11287 if ac_fn_c_try_link "$LINENO"; then : 11288 11289 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 11290 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11292 $as_echo "yes" >&6; } 11293 else 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11295 $as_echo "no" >&6; } 11296 11297 fi 11298 rm -f core conftest.err conftest.$ac_objext \ 11299 conftest$ac_exeext conftest.$ac_ext 11300 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 11302 $as_echo_n "checking for inet_aton... " >&6; } 11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304 /* end confdefs.h. */ 11305 11306 #include <sys/types.h> 11307 #include <sys/socket.h> 11308 #include <netinet/in.h> 11309 #include <arpa/inet.h> 11310 11311 int 11312 main () 11313 { 11314 void* p = inet_aton;inet_aton(0,0) 11315 ; 11316 return 0; 11317 } 11318 _ACEOF 11319 if ac_fn_c_try_link "$LINENO"; then : 11320 11321 $as_echo "#define HAVE_INET_ATON 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 \ 11331 conftest$ac_exeext conftest.$ac_ext 11332 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 11334 $as_echo_n "checking for inet_pton... " >&6; } 11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11336 /* end confdefs.h. */ 11337 11338 #include <sys/types.h> 11339 #include <sys/socket.h> 11340 #include <netinet/in.h> 11341 #include <arpa/inet.h> 11342 11343 int 11344 main () 11345 { 11346 void* p = inet_pton 11347 ; 11348 return 0; 11349 } 11350 _ACEOF 11351 if ac_fn_c_try_compile "$LINENO"; then : 11352 11353 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 11354 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11356 $as_echo "yes" >&6; } 11357 else 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11359 $as_echo "no" >&6; } 11360 11361 fi 11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11363 11364 # On some systems, setgroups is in unistd.h, on others, in grp.h 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 11366 $as_echo_n "checking for setgroups... " >&6; } 11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368 /* end confdefs.h. */ 11369 11370 #include <unistd.h> 11371 #ifdef HAVE_GRP_H 11372 #include <grp.h> 11373 #endif 11374 11375 int 11376 main () 11377 { 11378 void* p = setgroups 11379 ; 11380 return 0; 11381 } 11382 _ACEOF 11383 if ac_fn_c_try_compile "$LINENO"; then : 11384 11385 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 11386 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11388 $as_echo "yes" >&6; } 11389 else 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11391 $as_echo "no" >&6; } 11392 11393 fi 11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11395 11396 # check for openpty and forkpty 11397 11398 for ac_func in openpty 11399 do : 11400 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 11401 if test "x$ac_cv_func_openpty" = xyes; then : 11402 cat >>confdefs.h <<_ACEOF 11403 #define HAVE_OPENPTY 1 11404 _ACEOF 11405 11406 else 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 11408 $as_echo_n "checking for openpty in -lutil... " >&6; } 11409 if ${ac_cv_lib_util_openpty+:} false; then : 11410 $as_echo_n "(cached) " >&6 11411 else 11412 ac_check_lib_save_LIBS=$LIBS 11413 LIBS="-lutil $LIBS" 11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415 /* end confdefs.h. */ 11416 11417 /* Override any GCC internal prototype to avoid an error. 11418 Use char because int might match the return type of a GCC 11419 builtin and then its argument prototype would still apply. */ 11420 #ifdef __cplusplus 11421 extern "C" 11422 #endif 11423 char openpty (); 11424 int 11425 main () 11426 { 11427 return openpty (); 11428 ; 11429 return 0; 11430 } 11431 _ACEOF 11432 if ac_fn_c_try_link "$LINENO"; then : 11433 ac_cv_lib_util_openpty=yes 11434 else 11435 ac_cv_lib_util_openpty=no 11436 fi 11437 rm -f core conftest.err conftest.$ac_objext \ 11438 conftest$ac_exeext conftest.$ac_ext 11439 LIBS=$ac_check_lib_save_LIBS 11440 fi 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 11442 $as_echo "$ac_cv_lib_util_openpty" >&6; } 11443 if test "x$ac_cv_lib_util_openpty" = xyes; then : 11444 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 11445 LIBS="$LIBS -lutil" 11446 else 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 11448 $as_echo_n "checking for openpty in -lbsd... " >&6; } 11449 if ${ac_cv_lib_bsd_openpty+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451 else 11452 ac_check_lib_save_LIBS=$LIBS 11453 LIBS="-lbsd $LIBS" 11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11455 /* end confdefs.h. */ 11456 11457 /* Override any GCC internal prototype to avoid an error. 11458 Use char because int might match the return type of a GCC 11459 builtin and then its argument prototype would still apply. */ 11460 #ifdef __cplusplus 11461 extern "C" 11462 #endif 11463 char openpty (); 11464 int 11465 main () 11466 { 11467 return openpty (); 11468 ; 11469 return 0; 11470 } 11471 _ACEOF 11472 if ac_fn_c_try_link "$LINENO"; then : 11473 ac_cv_lib_bsd_openpty=yes 11474 else 11475 ac_cv_lib_bsd_openpty=no 11476 fi 11477 rm -f core conftest.err conftest.$ac_objext \ 11478 conftest$ac_exeext conftest.$ac_ext 11479 LIBS=$ac_check_lib_save_LIBS 11480 fi 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 11482 $as_echo "$ac_cv_lib_bsd_openpty" >&6; } 11483 if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 11484 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 11485 LIBS="$LIBS -lbsd" 11486 fi 11487 11488 11489 fi 11490 11491 11492 fi 11493 done 11494 11495 for ac_func in forkpty 11496 do : 11497 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 11498 if test "x$ac_cv_func_forkpty" = xyes; then : 11499 cat >>confdefs.h <<_ACEOF 11500 #define HAVE_FORKPTY 1 11501 _ACEOF 11502 11503 else 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 11505 $as_echo_n "checking for forkpty in -lutil... " >&6; } 11506 if ${ac_cv_lib_util_forkpty+:} false; then : 11507 $as_echo_n "(cached) " >&6 11508 else 11509 ac_check_lib_save_LIBS=$LIBS 11510 LIBS="-lutil $LIBS" 11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11512 /* end confdefs.h. */ 11513 11514 /* Override any GCC internal prototype to avoid an error. 11515 Use char because int might match the return type of a GCC 11516 builtin and then its argument prototype would still apply. */ 11517 #ifdef __cplusplus 11518 extern "C" 11519 #endif 11520 char forkpty (); 11521 int 11522 main () 11523 { 11524 return forkpty (); 11525 ; 11526 return 0; 11527 } 11528 _ACEOF 11529 if ac_fn_c_try_link "$LINENO"; then : 11530 ac_cv_lib_util_forkpty=yes 11531 else 11532 ac_cv_lib_util_forkpty=no 11533 fi 11534 rm -f core conftest.err conftest.$ac_objext \ 11535 conftest$ac_exeext conftest.$ac_ext 11536 LIBS=$ac_check_lib_save_LIBS 11537 fi 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 11539 $as_echo "$ac_cv_lib_util_forkpty" >&6; } 11540 if test "x$ac_cv_lib_util_forkpty" = xyes; then : 11541 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 11542 LIBS="$LIBS -lutil" 11543 else 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 11545 $as_echo_n "checking for forkpty in -lbsd... " >&6; } 11546 if ${ac_cv_lib_bsd_forkpty+:} false; then : 11547 $as_echo_n "(cached) " >&6 11548 else 11549 ac_check_lib_save_LIBS=$LIBS 11550 LIBS="-lbsd $LIBS" 11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11552 /* end confdefs.h. */ 11553 11554 /* Override any GCC internal prototype to avoid an error. 11555 Use char because int might match the return type of a GCC 11556 builtin and then its argument prototype would still apply. */ 11557 #ifdef __cplusplus 11558 extern "C" 11559 #endif 11560 char forkpty (); 11561 int 11562 main () 11563 { 11564 return forkpty (); 11565 ; 11566 return 0; 11567 } 11568 _ACEOF 11569 if ac_fn_c_try_link "$LINENO"; then : 11570 ac_cv_lib_bsd_forkpty=yes 11571 else 11572 ac_cv_lib_bsd_forkpty=no 11573 fi 11574 rm -f core conftest.err conftest.$ac_objext \ 11575 conftest$ac_exeext conftest.$ac_ext 11576 LIBS=$ac_check_lib_save_LIBS 11577 fi 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 11579 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 11580 if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 11581 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 11582 LIBS="$LIBS -lbsd" 11583 fi 11584 11585 11586 fi 11587 11588 11589 fi 11590 done 11591 11592 11593 # Stuff for expat. 11594 for ac_func in memmove 11595 do : 11596 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 11597 if test "x$ac_cv_func_memmove" = xyes; then : 11598 cat >>confdefs.h <<_ACEOF 11599 #define HAVE_MEMMOVE 1 11600 _ACEOF 11601 11602 fi 11603 done 11604 11605 11606 # check for long file support functions 11607 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 11608 do : 11609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11612 cat >>confdefs.h <<_ACEOF 11613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11614 _ACEOF 11615 11616 fi 11617 done 11618 11619 11620 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 11621 if test "x$ac_cv_func_dup2" = xyes; then : 11622 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 11623 11624 else 11625 case " $LIBOBJS " in 11626 *" dup2.$ac_objext "* ) ;; 11627 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 11628 ;; 11629 esac 11630 11631 fi 11632 11633 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 11634 if test "x$ac_cv_func_getcwd" = xyes; then : 11635 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h 11636 11637 else 11638 case " $LIBOBJS " in 11639 *" getcwd.$ac_objext "* ) ;; 11640 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 11641 ;; 11642 esac 11643 11644 fi 11645 11646 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 11647 if test "x$ac_cv_func_strdup" = xyes; then : 11648 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 11649 11650 else 11651 case " $LIBOBJS " in 11652 *" strdup.$ac_objext "* ) ;; 11653 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 11654 ;; 11655 esac 11656 11657 fi 11658 11659 11660 for ac_func in getpgrp 11661 do : 11662 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 11663 if test "x$ac_cv_func_getpgrp" = xyes; then : 11664 cat >>confdefs.h <<_ACEOF 11665 #define HAVE_GETPGRP 1 11666 _ACEOF 11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11668 /* end confdefs.h. */ 11669 #include <unistd.h> 11670 int 11671 main () 11672 { 11673 getpgrp(0); 11674 ; 11675 return 0; 11676 } 11677 _ACEOF 11678 if ac_fn_c_try_compile "$LINENO"; then : 11679 11680 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 11681 11682 fi 11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11684 11685 fi 11686 done 11687 11688 for ac_func in setpgrp 11689 do : 11690 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 11691 if test "x$ac_cv_func_setpgrp" = xyes; then : 11692 cat >>confdefs.h <<_ACEOF 11693 #define HAVE_SETPGRP 1 11694 _ACEOF 11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696 /* end confdefs.h. */ 11697 #include <unistd.h> 11698 int 11699 main () 11700 { 11701 setpgrp(0,0); 11702 ; 11703 return 0; 11704 } 11705 _ACEOF 11706 if ac_fn_c_try_compile "$LINENO"; then : 11707 11708 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 11709 11710 fi 11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11712 11713 fi 11714 done 11715 11716 for ac_func in gettimeofday 11717 do : 11718 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 11719 if test "x$ac_cv_func_gettimeofday" = xyes; then : 11720 cat >>confdefs.h <<_ACEOF 11721 #define HAVE_GETTIMEOFDAY 1 11722 _ACEOF 11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11724 /* end confdefs.h. */ 11725 #include <sys/time.h> 11726 int 11727 main () 11728 { 11729 gettimeofday((struct timeval*)0,(struct timezone*)0); 11730 ; 11731 return 0; 11732 } 11733 _ACEOF 11734 if ac_fn_c_try_compile "$LINENO"; then : 11735 11736 else 11737 11738 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h 11739 11740 11741 fi 11742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11743 11744 fi 11745 done 11746 11747 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 11749 $as_echo_n "checking for major... " >&6; } 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751 /* end confdefs.h. */ 11752 11753 #if defined(MAJOR_IN_MKDEV) 11754 #include <sys/mkdev.h> 11755 #elif defined(MAJOR_IN_SYSMACROS) 11756 #include <sys/sysmacros.h> 11757 #else 11758 #include <sys/types.h> 11759 #endif 11760 11761 int 11762 main () 11763 { 11764 11765 makedev(major(0),minor(0)); 11766 11767 ; 11768 return 0; 11769 } 11770 _ACEOF 11771 if ac_fn_c_try_link "$LINENO"; then : 11772 11773 11774 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 11775 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11777 $as_echo "yes" >&6; } 11778 11779 else 11780 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11782 $as_echo "no" >&6; } 11783 11784 fi 11785 rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787 11788 # On OSF/1 V5.1, getaddrinfo is available, but a define 11789 # for [no]getaddrinfo in netdb.h. 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 11791 $as_echo_n "checking for getaddrinfo... " >&6; } 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793 /* end confdefs.h. */ 11794 11795 #include <sys/types.h> 11796 #include <sys/socket.h> 11797 #include <netdb.h> 11798 #include <stdio.h> 11799 11800 int 11801 main () 11802 { 11803 getaddrinfo(NULL, NULL, NULL, NULL); 11804 ; 11805 return 0; 11806 } 11807 _ACEOF 11808 if ac_fn_c_try_link "$LINENO"; then : 11809 have_getaddrinfo=yes 11810 else 11811 have_getaddrinfo=no 11812 fi 11813 rm -f core conftest.err conftest.$ac_objext \ 11814 conftest$ac_exeext conftest.$ac_ext 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 11816 $as_echo "$have_getaddrinfo" >&6; } 11817 if test $have_getaddrinfo = yes 11818 then 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 11820 $as_echo_n "checking getaddrinfo bug... " >&6; } 11821 if ${ac_cv_buggy_getaddrinfo+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823 else 11824 if test "$cross_compiling" = yes; then : 11825 11826 if test "${enable_ipv6+set}" = set; then 11827 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 11828 else 11829 ac_cv_buggy_getaddrinfo=yes 11830 fi 11831 else 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11833 /* end confdefs.h. */ 11834 11835 #include <stdio.h> 11836 #include <sys/types.h> 11837 #include <netdb.h> 11838 #include <string.h> 11839 #include <sys/socket.h> 11840 #include <netinet/in.h> 11841 11842 int main() 11843 { 11844 int passive, gaierr, inet4 = 0, inet6 = 0; 11845 struct addrinfo hints, *ai, *aitop; 11846 char straddr[INET6_ADDRSTRLEN], strport[16]; 11847 11848 for (passive = 0; passive <= 1; passive++) { 11849 memset(&hints, 0, sizeof(hints)); 11850 hints.ai_family = AF_UNSPEC; 11851 hints.ai_flags = passive ? AI_PASSIVE : 0; 11852 hints.ai_socktype = SOCK_STREAM; 11853 hints.ai_protocol = IPPROTO_TCP; 11854 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 11855 (void)gai_strerror(gaierr); 11856 goto bad; 11857 } 11858 for (ai = aitop; ai; ai = ai->ai_next) { 11859 if (ai->ai_addr == NULL || 11860 ai->ai_addrlen == 0 || 11861 getnameinfo(ai->ai_addr, ai->ai_addrlen, 11862 straddr, sizeof(straddr), strport, sizeof(strport), 11863 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 11864 goto bad; 11865 } 11866 switch (ai->ai_family) { 11867 case AF_INET: 11868 if (strcmp(strport, "54321") != 0) { 11869 goto bad; 11870 } 11871 if (passive) { 11872 if (strcmp(straddr, "0.0.0.0") != 0) { 11873 goto bad; 11874 } 11875 } else { 11876 if (strcmp(straddr, "127.0.0.1") != 0) { 11877 goto bad; 11878 } 11879 } 11880 inet4++; 11881 break; 11882 case AF_INET6: 11883 if (strcmp(strport, "54321") != 0) { 11884 goto bad; 11885 } 11886 if (passive) { 11887 if (strcmp(straddr, "::") != 0) { 11888 goto bad; 11889 } 11890 } else { 11891 if (strcmp(straddr, "::1") != 0) { 11892 goto bad; 11893 } 11894 } 11895 inet6++; 11896 break; 11897 case AF_UNSPEC: 11898 goto bad; 11899 break; 11900 default: 11901 /* another family support? */ 11902 break; 11903 } 11904 } 11905 freeaddrinfo(aitop); 11906 aitop = NULL; 11907 } 11908 11909 if (!(inet4 == 0 || inet4 == 2)) 11910 goto bad; 11911 if (!(inet6 == 0 || inet6 == 2)) 11912 goto bad; 11913 11914 if (aitop) 11915 freeaddrinfo(aitop); 11916 return 0; 11917 11918 bad: 11919 if (aitop) 11920 freeaddrinfo(aitop); 11921 return 1; 11922 } 11923 11924 _ACEOF 11925 if ac_fn_c_try_run "$LINENO"; then : 11926 ac_cv_buggy_getaddrinfo=no 11927 else 11928 ac_cv_buggy_getaddrinfo=yes 11929 fi 11930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11931 conftest.$ac_objext conftest.beam conftest.$ac_ext 11932 fi 11933 11934 fi 11935 11936 fi 11937 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 11939 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 11940 11941 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes 11942 then 11943 if test $ipv6 = yes 11944 then 11945 echo 'Fatal: You must get working getaddrinfo() function.' 11946 echo ' or you can specify "--disable-ipv6"'. 11947 exit 1 11948 fi 11949 else 11950 11951 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 11952 11953 fi 11954 11955 for ac_func in getnameinfo 11956 do : 11957 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 11958 if test "x$ac_cv_func_getnameinfo" = xyes; then : 11959 cat >>confdefs.h <<_ACEOF 11960 #define HAVE_GETNAMEINFO 1 11961 _ACEOF 11962 11963 fi 11964 done 11965 11966 11967 # checks for structures 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11969 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11970 if ${ac_cv_header_time+:} false; then : 11971 $as_echo_n "(cached) " >&6 11972 else 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974 /* end confdefs.h. */ 11975 #include <sys/types.h> 11976 #include <sys/time.h> 11977 #include <time.h> 11978 11979 int 11980 main () 11981 { 11982 if ((struct tm *) 0) 11983 return 0; 11984 ; 11985 return 0; 11986 } 11987 _ACEOF 11988 if ac_fn_c_try_compile "$LINENO"; then : 11989 ac_cv_header_time=yes 11990 else 11991 ac_cv_header_time=no 11992 fi 11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11994 fi 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11996 $as_echo "$ac_cv_header_time" >&6; } 11997 if test $ac_cv_header_time = yes; then 11998 11999 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12000 12001 fi 12002 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12004 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12005 if ${ac_cv_struct_tm+:} false; then : 12006 $as_echo_n "(cached) " >&6 12007 else 12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12009 /* end confdefs.h. */ 12010 #include <sys/types.h> 12011 #include <time.h> 12012 12013 int 12014 main () 12015 { 12016 struct tm tm; 12017 int *p = &tm.tm_sec; 12018 return !p; 12019 ; 12020 return 0; 12021 } 12022 _ACEOF 12023 if ac_fn_c_try_compile "$LINENO"; then : 12024 ac_cv_struct_tm=time.h 12025 else 12026 ac_cv_struct_tm=sys/time.h 12027 fi 12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12029 fi 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12031 $as_echo "$ac_cv_struct_tm" >&6; } 12032 if test $ac_cv_struct_tm = sys/time.h; then 12033 12034 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12035 12036 fi 12037 12038 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 12039 #include <$ac_cv_struct_tm> 12040 12041 " 12042 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 12043 12044 cat >>confdefs.h <<_ACEOF 12045 #define HAVE_STRUCT_TM_TM_ZONE 1 12046 _ACEOF 12047 12048 12049 fi 12050 12051 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 12052 12053 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12054 12055 else 12056 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12057 " 12058 if test "x$ac_cv_have_decl_tzname" = xyes; then : 12059 ac_have_decl=1 12060 else 12061 ac_have_decl=0 12062 fi 12063 12064 cat >>confdefs.h <<_ACEOF 12065 #define HAVE_DECL_TZNAME $ac_have_decl 12066 _ACEOF 12067 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12069 $as_echo_n "checking for tzname... " >&6; } 12070 if ${ac_cv_var_tzname+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072 else 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12074 /* end confdefs.h. */ 12075 #include <time.h> 12076 #if !HAVE_DECL_TZNAME 12077 extern char *tzname[]; 12078 #endif 12079 12080 int 12081 main () 12082 { 12083 return tzname[0][0]; 12084 ; 12085 return 0; 12086 } 12087 _ACEOF 12088 if ac_fn_c_try_link "$LINENO"; then : 12089 ac_cv_var_tzname=yes 12090 else 12091 ac_cv_var_tzname=no 12092 fi 12093 rm -f core conftest.err conftest.$ac_objext \ 12094 conftest$ac_exeext conftest.$ac_ext 12095 fi 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12097 $as_echo "$ac_cv_var_tzname" >&6; } 12098 if test $ac_cv_var_tzname = yes; then 12099 12100 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12101 12102 fi 12103 fi 12104 12105 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12106 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12107 12108 cat >>confdefs.h <<_ACEOF 12109 #define HAVE_STRUCT_STAT_ST_RDEV 1 12110 _ACEOF 12111 12112 12113 fi 12114 12115 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 12116 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 12117 12118 cat >>confdefs.h <<_ACEOF 12119 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 12120 _ACEOF 12121 12122 12123 fi 12124 12125 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 12126 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 12127 12128 cat >>confdefs.h <<_ACEOF 12129 #define HAVE_STRUCT_STAT_ST_FLAGS 1 12130 _ACEOF 12131 12132 12133 fi 12134 12135 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 12136 if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 12137 12138 cat >>confdefs.h <<_ACEOF 12139 #define HAVE_STRUCT_STAT_ST_GEN 1 12140 _ACEOF 12141 12142 12143 fi 12144 12145 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 12146 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 12147 12148 cat >>confdefs.h <<_ACEOF 12149 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 12150 _ACEOF 12151 12152 12153 fi 12154 12155 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 12156 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 12157 12158 cat >>confdefs.h <<_ACEOF 12159 #define HAVE_STRUCT_STAT_ST_BLOCKS 1 12160 _ACEOF 12161 12162 12163 fi 12164 12165 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 12167 $as_echo_n "checking for time.h that defines altzone... " >&6; } 12168 if ${ac_cv_header_time_altzone+:} false; then : 12169 $as_echo_n "(cached) " >&6 12170 else 12171 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173 /* end confdefs.h. */ 12174 #include <time.h> 12175 int 12176 main () 12177 { 12178 return altzone; 12179 ; 12180 return 0; 12181 } 12182 _ACEOF 12183 if ac_fn_c_try_compile "$LINENO"; then : 12184 ac_cv_header_time_altzone=yes 12185 else 12186 ac_cv_header_time_altzone=no 12187 fi 12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12189 12190 fi 12191 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 12193 $as_echo "$ac_cv_header_time_altzone" >&6; } 12194 if test $ac_cv_header_time_altzone = yes; then 12195 12196 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 12197 12198 fi 12199 12200 was_it_defined=no 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12202 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12204 /* end confdefs.h. */ 12205 12206 #include <sys/types.h> 12207 #include <sys/select.h> 12208 #include <sys/time.h> 12209 12210 int 12211 main () 12212 { 12213 ; 12214 ; 12215 return 0; 12216 } 12217 _ACEOF 12218 if ac_fn_c_try_compile "$LINENO"; then : 12219 12220 12221 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12222 12223 was_it_defined=yes 12224 12225 fi 12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 12228 $as_echo "$was_it_defined" >&6; } 12229 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 12231 $as_echo_n "checking for addrinfo... " >&6; } 12232 if ${ac_cv_struct_addrinfo+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234 else 12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12236 /* end confdefs.h. */ 12237 #include <netdb.h> 12238 int 12239 main () 12240 { 12241 struct addrinfo a 12242 ; 12243 return 0; 12244 } 12245 _ACEOF 12246 if ac_fn_c_try_compile "$LINENO"; then : 12247 ac_cv_struct_addrinfo=yes 12248 else 12249 ac_cv_struct_addrinfo=no 12250 fi 12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12252 fi 12253 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 12255 $as_echo "$ac_cv_struct_addrinfo" >&6; } 12256 if test $ac_cv_struct_addrinfo = yes; then 12257 12258 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 12259 12260 fi 12261 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 12263 $as_echo_n "checking for sockaddr_storage... " >&6; } 12264 if ${ac_cv_struct_sockaddr_storage+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266 else 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268 /* end confdefs.h. */ 12269 12270 # include <sys/types.h> 12271 # include <sys/socket.h> 12272 int 12273 main () 12274 { 12275 struct sockaddr_storage s 12276 ; 12277 return 0; 12278 } 12279 _ACEOF 12280 if ac_fn_c_try_compile "$LINENO"; then : 12281 ac_cv_struct_sockaddr_storage=yes 12282 else 12283 ac_cv_struct_sockaddr_storage=no 12284 fi 12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12286 fi 12287 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 12289 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 12290 if test $ac_cv_struct_sockaddr_storage = yes; then 12291 12292 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 12293 12294 fi 12295 12296 # checks for compiler characteristics 12297 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 12299 $as_echo_n "checking whether char is unsigned... " >&6; } 12300 if ${ac_cv_c_char_unsigned+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302 else 12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12304 /* end confdefs.h. */ 12305 $ac_includes_default 12306 int 12307 main () 12308 { 12309 static int test_array [1 - 2 * !(((char) -1) < 0)]; 12310 test_array [0] = 0; 12311 return test_array [0]; 12312 12313 ; 12314 return 0; 12315 } 12316 _ACEOF 12317 if ac_fn_c_try_compile "$LINENO"; then : 12318 ac_cv_c_char_unsigned=no 12319 else 12320 ac_cv_c_char_unsigned=yes 12321 fi 12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12323 fi 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 12325 $as_echo "$ac_cv_c_char_unsigned" >&6; } 12326 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 12327 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 12328 12329 fi 12330 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12332 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12333 if ${ac_cv_c_const+:} false; then : 12334 $as_echo_n "(cached) " >&6 12335 else 12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12337 /* end confdefs.h. */ 12338 12339 int 12340 main () 12341 { 12342 12343 #ifndef __cplusplus 12344 /* Ultrix mips cc rejects this sort of thing. */ 12345 typedef int charset[2]; 12346 const charset cs = { 0, 0 }; 12347 /* SunOS 4.1.1 cc rejects this. */ 12348 char const *const *pcpcc; 12349 char **ppc; 12350 /* NEC SVR4.0.2 mips cc rejects this. */ 12351 struct point {int x, y;}; 12352 static struct point const zero = {0,0}; 12353 /* AIX XL C 1.02.0.0 rejects this. 12354 It does not let you subtract one const X* pointer from another in 12355 an arm of an if-expression whose if-part is not a constant 12356 expression */ 12357 const char *g = "string"; 12358 pcpcc = &g + (g ? g-g : 0); 12359 /* HPUX 7.0 cc rejects these. */ 12360 ++pcpcc; 12361 ppc = (char**) pcpcc; 12362 pcpcc = (char const *const *) ppc; 12363 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12364 char tx; 12365 char *t = &tx; 12366 char const *s = 0 ? (char *) 0 : (char const *) 0; 12367 12368 *t++ = 0; 12369 if (s) return 0; 12370 } 12371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12372 int x[] = {25, 17}; 12373 const int *foo = &x[0]; 12374 ++foo; 12375 } 12376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12377 typedef const int *iptr; 12378 iptr p = 0; 12379 ++p; 12380 } 12381 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12383 struct s { int j; const int *ap[3]; } bx; 12384 struct s *b = &bx; b->j = 5; 12385 } 12386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12387 const int foo = 10; 12388 if (!foo) return 0; 12389 } 12390 return !cs[0] && !zero.x; 12391 #endif 12392 12393 ; 12394 return 0; 12395 } 12396 _ACEOF 12397 if ac_fn_c_try_compile "$LINENO"; then : 12398 ac_cv_c_const=yes 12399 else 12400 ac_cv_c_const=no 12401 fi 12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12403 fi 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12405 $as_echo "$ac_cv_c_const" >&6; } 12406 if test $ac_cv_c_const = no; then 12407 12408 $as_echo "#define const /**/" >>confdefs.h 12409 12410 fi 12411 12412 12413 works=no 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 12415 $as_echo_n "checking for working volatile... " >&6; } 12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417 /* end confdefs.h. */ 12418 12419 int 12420 main () 12421 { 12422 volatile int x; x = 0; 12423 ; 12424 return 0; 12425 } 12426 _ACEOF 12427 if ac_fn_c_try_compile "$LINENO"; then : 12428 works=yes 12429 else 12430 12431 $as_echo "#define volatile /**/" >>confdefs.h 12432 12433 12434 fi 12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12437 $as_echo "$works" >&6; } 12438 12439 works=no 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 12441 $as_echo_n "checking for working signed char... " >&6; } 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443 /* end confdefs.h. */ 12444 12445 int 12446 main () 12447 { 12448 signed char c; 12449 ; 12450 return 0; 12451 } 12452 _ACEOF 12453 if ac_fn_c_try_compile "$LINENO"; then : 12454 works=yes 12455 else 12456 12457 $as_echo "#define signed /**/" >>confdefs.h 12458 12459 12460 fi 12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12463 $as_echo "$works" >&6; } 12464 12465 have_prototypes=no 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 12467 $as_echo_n "checking for prototypes... " >&6; } 12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12469 /* end confdefs.h. */ 12470 int foo(int x) { return 0; } 12471 int 12472 main () 12473 { 12474 return foo(10); 12475 ; 12476 return 0; 12477 } 12478 _ACEOF 12479 if ac_fn_c_try_compile "$LINENO"; then : 12480 12481 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 12482 12483 have_prototypes=yes 12484 fi 12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 12487 $as_echo "$have_prototypes" >&6; } 12488 12489 works=no 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 12491 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493 /* end confdefs.h. */ 12494 12495 #include <stdarg.h> 12496 int foo(int x, ...) { 12497 va_list va; 12498 va_start(va, x); 12499 va_arg(va, int); 12500 va_arg(va, char *); 12501 va_arg(va, double); 12502 return 0; 12503 } 12504 12505 int 12506 main () 12507 { 12508 return foo(10, "", 3.14); 12509 ; 12510 return 0; 12511 } 12512 _ACEOF 12513 if ac_fn_c_try_compile "$LINENO"; then : 12514 12515 12516 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 12517 12518 works=yes 12519 12520 fi 12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12523 $as_echo "$works" >&6; } 12524 12525 # check for socketpair 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 12527 $as_echo_n "checking for socketpair... " >&6; } 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529 /* end confdefs.h. */ 12530 12531 #include <sys/types.h> 12532 #include <sys/socket.h> 12533 12534 int 12535 main () 12536 { 12537 void *x=socketpair 12538 ; 12539 return 0; 12540 } 12541 _ACEOF 12542 if ac_fn_c_try_compile "$LINENO"; then : 12543 12544 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 12545 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12547 $as_echo "yes" >&6; } 12548 else 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12550 $as_echo "no" >&6; } 12551 12552 fi 12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554 12555 # check if sockaddr has sa_len member 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 12557 $as_echo_n "checking if sockaddr has sa_len member... " >&6; } 12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12559 /* end confdefs.h. */ 12560 #include <sys/types.h> 12561 #include <sys/socket.h> 12562 int 12563 main () 12564 { 12565 struct sockaddr x; 12566 x.sa_len = 0; 12567 ; 12568 return 0; 12569 } 12570 _ACEOF 12571 if ac_fn_c_try_compile "$LINENO"; then : 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12573 $as_echo "yes" >&6; } 12574 12575 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 12576 12577 else 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12579 $as_echo "no" >&6; } 12580 12581 fi 12582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12583 12584 va_list_is_array=no 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 12586 $as_echo_n "checking whether va_list is an array... " >&6; } 12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12588 /* end confdefs.h. */ 12589 12590 #ifdef HAVE_STDARG_PROTOTYPES 12591 #include <stdarg.h> 12592 #else 12593 #include <varargs.h> 12594 #endif 12595 12596 int 12597 main () 12598 { 12599 va_list list1, list2; list1 = list2; 12600 ; 12601 return 0; 12602 } 12603 _ACEOF 12604 if ac_fn_c_try_compile "$LINENO"; then : 12605 12606 else 12607 12608 12609 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h 12610 12611 va_list_is_array=yes 12612 12613 fi 12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 12616 $as_echo "$va_list_is_array" >&6; } 12617 12618 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 12619 12620 12621 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 12622 if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 12623 12624 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12625 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 12627 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 12628 OLD_CFLAGS=$CFLAGS 12629 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631 /* end confdefs.h. */ 12632 12633 # include <netdb.h> 12634 12635 int 12636 main () 12637 { 12638 12639 char *name; 12640 struct hostent *he, *res; 12641 char buffer[2048]; 12642 int buflen = 2048; 12643 int h_errnop; 12644 12645 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 12646 12647 ; 12648 return 0; 12649 } 12650 _ACEOF 12651 if ac_fn_c_try_compile "$LINENO"; then : 12652 12653 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12654 12655 12656 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 12657 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12659 $as_echo "yes" >&6; } 12660 12661 else 12662 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664 $as_echo "no" >&6; } 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 12666 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668 /* end confdefs.h. */ 12669 12670 # include <netdb.h> 12671 12672 int 12673 main () 12674 { 12675 12676 char *name; 12677 struct hostent *he; 12678 char buffer[2048]; 12679 int buflen = 2048; 12680 int h_errnop; 12681 12682 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 12683 12684 ; 12685 return 0; 12686 } 12687 _ACEOF 12688 if ac_fn_c_try_compile "$LINENO"; then : 12689 12690 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12691 12692 12693 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 12694 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12696 $as_echo "yes" >&6; } 12697 12698 else 12699 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701 $as_echo "no" >&6; } 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 12703 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705 /* end confdefs.h. */ 12706 12707 # include <netdb.h> 12708 12709 int 12710 main () 12711 { 12712 12713 char *name; 12714 struct hostent *he; 12715 struct hostent_data data; 12716 12717 (void) gethostbyname_r(name, he, &data); 12718 12719 ; 12720 return 0; 12721 } 12722 _ACEOF 12723 if ac_fn_c_try_compile "$LINENO"; then : 12724 12725 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12726 12727 12728 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 12729 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12731 $as_echo "yes" >&6; } 12732 12733 else 12734 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736 $as_echo "no" >&6; } 12737 12738 fi 12739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12740 12741 fi 12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12743 12744 fi 12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12746 CFLAGS=$OLD_CFLAGS 12747 12748 else 12749 12750 for ac_func in gethostbyname 12751 do : 12752 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 12753 if test "x$ac_cv_func_gethostbyname" = xyes; then : 12754 cat >>confdefs.h <<_ACEOF 12755 #define HAVE_GETHOSTBYNAME 1 12756 _ACEOF 12757 12758 fi 12759 done 12760 12761 12762 fi 12763 12764 12765 12766 12767 12768 12769 12770 # checks for system services 12771 # (none yet) 12772 12773 # Linux requires this for correct f.p. operations 12774 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 12775 if test "x$ac_cv_func___fpu_control" = xyes; then : 12776 12777 else 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 12779 $as_echo_n "checking for __fpu_control in -lieee... " >&6; } 12780 if ${ac_cv_lib_ieee___fpu_control+:} false; then : 12781 $as_echo_n "(cached) " >&6 12782 else 12783 ac_check_lib_save_LIBS=$LIBS 12784 LIBS="-lieee $LIBS" 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786 /* end confdefs.h. */ 12787 12788 /* Override any GCC internal prototype to avoid an error. 12789 Use char because int might match the return type of a GCC 12790 builtin and then its argument prototype would still apply. */ 12791 #ifdef __cplusplus 12792 extern "C" 12793 #endif 12794 char __fpu_control (); 12795 int 12796 main () 12797 { 12798 return __fpu_control (); 12799 ; 12800 return 0; 12801 } 12802 _ACEOF 12803 if ac_fn_c_try_link "$LINENO"; then : 12804 ac_cv_lib_ieee___fpu_control=yes 12805 else 12806 ac_cv_lib_ieee___fpu_control=no 12807 fi 12808 rm -f core conftest.err conftest.$ac_objext \ 12809 conftest$ac_exeext conftest.$ac_ext 12810 LIBS=$ac_check_lib_save_LIBS 12811 fi 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 12813 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 12814 if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 12815 cat >>confdefs.h <<_ACEOF 12816 #define HAVE_LIBIEEE 1 12817 _ACEOF 12818 12819 LIBS="-lieee $LIBS" 12820 12821 fi 12822 12823 12824 fi 12825 12826 12827 # Check for --with-fpectl 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 12829 $as_echo_n "checking for --with-fpectl... " >&6; } 12830 12831 # Check whether --with-fpectl was given. 12832 if test "${with_fpectl+set}" = set; then : 12833 withval=$with_fpectl; 12834 if test "$withval" != no 12835 then 12836 12837 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h 12838 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12840 $as_echo "yes" >&6; } 12841 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12842 $as_echo "no" >&6; } 12843 fi 12844 else 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846 $as_echo "no" >&6; } 12847 fi 12848 12849 12850 # check for --with-libm=... 12851 12852 case $ac_sys_system in 12853 Darwin) ;; 12854 BeOS) ;; 12855 *) LIBM=-lm 12856 esac 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 12858 $as_echo_n "checking for --with-libm=STRING... " >&6; } 12859 12860 # Check whether --with-libm was given. 12861 if test "${with_libm+set}" = set; then : 12862 withval=$with_libm; 12863 if test "$withval" = no 12864 then LIBM= 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 12866 $as_echo "force LIBM empty" >&6; } 12867 elif test "$withval" != yes 12868 then LIBM=$withval 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 12870 $as_echo "set LIBM=\"$withval\"" >&6; } 12871 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 12872 fi 12873 else 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 12875 $as_echo "default LIBM=\"$LIBM\"" >&6; } 12876 fi 12877 12878 12879 # check for --with-libc=... 12880 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 12882 $as_echo_n "checking for --with-libc=STRING... " >&6; } 12883 12884 # Check whether --with-libc was given. 12885 if test "${with_libc+set}" = set; then : 12886 withval=$with_libc; 12887 if test "$withval" = no 12888 then LIBC= 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 12890 $as_echo "force LIBC empty" >&6; } 12891 elif test "$withval" != yes 12892 then LIBC=$withval 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 12894 $as_echo "set LIBC=\"$withval\"" >&6; } 12895 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 12896 fi 12897 else 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 12899 $as_echo "default LIBC=\"$LIBC\"" >&6; } 12900 fi 12901 12902 12903 # ************************************************** 12904 # * Check for various properties of floating point * 12905 # ************************************************** 12906 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 12908 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 12909 if ${ac_cv_little_endian_double+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911 else 12912 12913 if test "$cross_compiling" = yes; then : 12914 ac_cv_little_endian_double=no 12915 else 12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12917 /* end confdefs.h. */ 12918 12919 #include <string.h> 12920 int main() { 12921 double x = 9006104071832581.0; 12922 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) 12923 return 0; 12924 else 12925 return 1; 12926 } 12927 12928 _ACEOF 12929 if ac_fn_c_try_run "$LINENO"; then : 12930 ac_cv_little_endian_double=yes 12931 else 12932 ac_cv_little_endian_double=no 12933 fi 12934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12935 conftest.$ac_objext conftest.beam conftest.$ac_ext 12936 fi 12937 12938 fi 12939 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 12941 $as_echo "$ac_cv_little_endian_double" >&6; } 12942 if test "$ac_cv_little_endian_double" = yes 12943 then 12944 12945 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 12946 12947 fi 12948 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 12950 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } 12951 if ${ac_cv_big_endian_double+:} false; then : 12952 $as_echo_n "(cached) " >&6 12953 else 12954 12955 if test "$cross_compiling" = yes; then : 12956 ac_cv_big_endian_double=no 12957 else 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959 /* end confdefs.h. */ 12960 12961 #include <string.h> 12962 int main() { 12963 double x = 9006104071832581.0; 12964 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) 12965 return 0; 12966 else 12967 return 1; 12968 } 12969 12970 _ACEOF 12971 if ac_fn_c_try_run "$LINENO"; then : 12972 ac_cv_big_endian_double=yes 12973 else 12974 ac_cv_big_endian_double=no 12975 fi 12976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12977 conftest.$ac_objext conftest.beam conftest.$ac_ext 12978 fi 12979 12980 fi 12981 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 12983 $as_echo "$ac_cv_big_endian_double" >&6; } 12984 if test "$ac_cv_big_endian_double" = yes 12985 then 12986 12987 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 12988 12989 fi 12990 12991 # Some ARM platforms use a mixed-endian representation for doubles. 12992 # While Python doesn't currently have full support for these platforms 12993 # (see e.g., issue 1762561), we can at least make sure that float <-> string 12994 # conversions work. 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 12996 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } 12997 if ${ac_cv_mixed_endian_double+:} false; then : 12998 $as_echo_n "(cached) " >&6 12999 else 13000 13001 if test "$cross_compiling" = yes; then : 13002 ac_cv_mixed_endian_double=no 13003 else 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005 /* end confdefs.h. */ 13006 13007 #include <string.h> 13008 int main() { 13009 double x = 9006104071832581.0; 13010 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) 13011 return 0; 13012 else 13013 return 1; 13014 } 13015 13016 _ACEOF 13017 if ac_fn_c_try_run "$LINENO"; then : 13018 ac_cv_mixed_endian_double=yes 13019 else 13020 ac_cv_mixed_endian_double=no 13021 fi 13022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13023 conftest.$ac_objext conftest.beam conftest.$ac_ext 13024 fi 13025 13026 fi 13027 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 13029 $as_echo "$ac_cv_mixed_endian_double" >&6; } 13030 if test "$ac_cv_mixed_endian_double" = yes 13031 then 13032 13033 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 13034 13035 fi 13036 13037 # The short float repr introduced in Python 3.1 requires the 13038 # correctly-rounded string <-> double conversion functions from 13039 # Python/dtoa.c, which in turn require that the FPU uses 53-bit 13040 # rounding; this is a problem on x86, where the x87 FPU has a default 13041 # rounding precision of 64 bits. For gcc/x86, we can fix this by 13042 # using inline assembler to get and set the x87 FPU control word. 13043 13044 # This inline assembler syntax may also work for suncc and icc, 13045 # so we try it on all platforms. 13046 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 13048 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050 /* end confdefs.h. */ 13051 13052 int 13053 main () 13054 { 13055 13056 unsigned short cw; 13057 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 13058 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 13059 13060 ; 13061 return 0; 13062 } 13063 _ACEOF 13064 if ac_fn_c_try_link "$LINENO"; then : 13065 have_gcc_asm_for_x87=yes 13066 else 13067 have_gcc_asm_for_x87=no 13068 fi 13069 rm -f core conftest.err conftest.$ac_objext \ 13070 conftest$ac_exeext conftest.$ac_ext 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 13072 $as_echo "$have_gcc_asm_for_x87" >&6; } 13073 if test "$have_gcc_asm_for_x87" = yes 13074 then 13075 13076 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 13077 13078 fi 13079 13080 # Detect whether system arithmetic is subject to x87-style double 13081 # rounding issues. The result of this test has little meaning on non 13082 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 13083 # mode is round-to-nearest and double rounding issues are present, and 13084 # 0 otherwise. See http://bugs.python.org/issue2937 for more info. 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 13086 $as_echo_n "checking for x87-style double rounding... " >&6; } 13087 # $BASECFLAGS may affect the result 13088 ac_save_cc="$CC" 13089 CC="$CC $BASECFLAGS" 13090 if test "$cross_compiling" = yes; then : 13091 ac_cv_x87_double_rounding=no 13092 else 13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13094 /* end confdefs.h. */ 13095 13096 #include <stdlib.h> 13097 #include <math.h> 13098 int main() { 13099 volatile double x, y, z; 13100 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 13101 x = 0.99999999999999989; /* 1-2**-53 */ 13102 y = 1./x; 13103 if (y != 1.) 13104 exit(0); 13105 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 13106 x = 1e16; 13107 y = 2.99999; 13108 z = x + y; 13109 if (z != 1e16+4.) 13110 exit(0); 13111 /* both tests show evidence of double rounding */ 13112 exit(1); 13113 } 13114 13115 _ACEOF 13116 if ac_fn_c_try_run "$LINENO"; then : 13117 ac_cv_x87_double_rounding=no 13118 else 13119 ac_cv_x87_double_rounding=yes 13120 fi 13121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13122 conftest.$ac_objext conftest.beam conftest.$ac_ext 13123 fi 13124 13125 CC="$ac_save_cc" 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 13127 $as_echo "$ac_cv_x87_double_rounding" >&6; } 13128 if test "$ac_cv_x87_double_rounding" = yes 13129 then 13130 13131 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 13132 13133 fi 13134 13135 # ************************************ 13136 # * Check for mathematical functions * 13137 # ************************************ 13138 13139 LIBS_SAVE=$LIBS 13140 LIBS="$LIBS $LIBM" 13141 13142 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of 13143 # -0. on some architectures. 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 13145 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } 13146 if ${ac_cv_tanh_preserves_zero_sign+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148 else 13149 13150 if test "$cross_compiling" = yes; then : 13151 ac_cv_tanh_preserves_zero_sign=no 13152 else 13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13154 /* end confdefs.h. */ 13155 13156 #include <math.h> 13157 #include <stdlib.h> 13158 int main() { 13159 /* return 0 if either negative zeros don't exist 13160 on this platform or if negative zeros exist 13161 and tanh(-0.) == -0. */ 13162 if (atan2(0., -1.) == atan2(-0., -1.) || 13163 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); 13164 else exit(1); 13165 } 13166 13167 _ACEOF 13168 if ac_fn_c_try_run "$LINENO"; then : 13169 ac_cv_tanh_preserves_zero_sign=yes 13170 else 13171 ac_cv_tanh_preserves_zero_sign=no 13172 fi 13173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13174 conftest.$ac_objext conftest.beam conftest.$ac_ext 13175 fi 13176 13177 fi 13178 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 13180 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } 13181 if test "$ac_cv_tanh_preserves_zero_sign" = yes 13182 then 13183 13184 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h 13185 13186 fi 13187 13188 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 13189 do : 13190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13193 cat >>confdefs.h <<_ACEOF 13194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13195 _ACEOF 13196 13197 fi 13198 done 13199 13200 for ac_func in hypot lgamma log1p round tgamma 13201 do : 13202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13203 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13204 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13205 cat >>confdefs.h <<_ACEOF 13206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13207 _ACEOF 13208 13209 fi 13210 done 13211 13212 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 13213 " 13214 if test "x$ac_cv_have_decl_isinf" = xyes; then : 13215 ac_have_decl=1 13216 else 13217 ac_have_decl=0 13218 fi 13219 13220 cat >>confdefs.h <<_ACEOF 13221 #define HAVE_DECL_ISINF $ac_have_decl 13222 _ACEOF 13223 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 13224 " 13225 if test "x$ac_cv_have_decl_isnan" = xyes; then : 13226 ac_have_decl=1 13227 else 13228 ac_have_decl=0 13229 fi 13230 13231 cat >>confdefs.h <<_ACEOF 13232 #define HAVE_DECL_ISNAN $ac_have_decl 13233 _ACEOF 13234 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 13235 " 13236 if test "x$ac_cv_have_decl_isfinite" = xyes; then : 13237 ac_have_decl=1 13238 else 13239 ac_have_decl=0 13240 fi 13241 13242 cat >>confdefs.h <<_ACEOF 13243 #define HAVE_DECL_ISFINITE $ac_have_decl 13244 _ACEOF 13245 13246 13247 LIBS=$LIBS_SAVE 13248 13249 # For multiprocessing module, check that sem_open 13250 # actually works. For FreeBSD versions <= 7.2, 13251 # the kernel module that provides POSIX semaphores 13252 # isn't loaded by default, so an attempt to call 13253 # sem_open results in a 'Signal 12' error. 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 13255 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 13256 if ${ac_cv_posix_semaphores_enabled+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258 else 13259 if test "$cross_compiling" = yes; then : 13260 ac_cv_posix_semaphores_enabled=yes 13261 else 13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13263 /* end confdefs.h. */ 13264 13265 #include <unistd.h> 13266 #include <fcntl.h> 13267 #include <stdio.h> 13268 #include <semaphore.h> 13269 #include <sys/stat.h> 13270 13271 int main(void) { 13272 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 13273 if (a == SEM_FAILED) { 13274 perror("sem_open"); 13275 return 1; 13276 } 13277 sem_close(a); 13278 sem_unlink("/autoconf"); 13279 return 0; 13280 } 13281 13282 _ACEOF 13283 if ac_fn_c_try_run "$LINENO"; then : 13284 ac_cv_posix_semaphores_enabled=yes 13285 else 13286 ac_cv_posix_semaphores_enabled=no 13287 fi 13288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13289 conftest.$ac_objext conftest.beam conftest.$ac_ext 13290 fi 13291 13292 13293 fi 13294 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 13296 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 13297 if test $ac_cv_posix_semaphores_enabled = no 13298 then 13299 13300 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 13301 13302 fi 13303 13304 # Multiprocessing check for broken sem_getvalue 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 13306 $as_echo_n "checking for broken sem_getvalue... " >&6; } 13307 if ${ac_cv_broken_sem_getvalue+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309 else 13310 if test "$cross_compiling" = yes; then : 13311 ac_cv_broken_sem_getvalue=yes 13312 else 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314 /* end confdefs.h. */ 13315 13316 #include <unistd.h> 13317 #include <fcntl.h> 13318 #include <stdio.h> 13319 #include <semaphore.h> 13320 #include <sys/stat.h> 13321 13322 int main(void){ 13323 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 13324 int count; 13325 int res; 13326 if(a==SEM_FAILED){ 13327 perror("sem_open"); 13328 return 1; 13329 13330 } 13331 res = sem_getvalue(a, &count); 13332 sem_close(a); 13333 sem_unlink("/autocftw"); 13334 return res==-1 ? 1 : 0; 13335 } 13336 13337 _ACEOF 13338 if ac_fn_c_try_run "$LINENO"; then : 13339 ac_cv_broken_sem_getvalue=no 13340 else 13341 ac_cv_broken_sem_getvalue=yes 13342 fi 13343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13344 conftest.$ac_objext conftest.beam conftest.$ac_ext 13345 fi 13346 13347 13348 fi 13349 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 13351 $as_echo "$ac_cv_broken_sem_getvalue" >&6; } 13352 if test $ac_cv_broken_sem_getvalue = yes 13353 then 13354 13355 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 13356 13357 fi 13358 13359 # determine what size digit to use for Python's longs 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 13361 $as_echo_n "checking digit size for Python's longs... " >&6; } 13362 # Check whether --enable-big-digits was given. 13363 if test "${enable_big_digits+set}" = set; then : 13364 enableval=$enable_big_digits; case $enable_big_digits in 13365 yes) 13366 enable_big_digits=30 ;; 13367 no) 13368 enable_big_digits=15 ;; 13369 15|30) 13370 ;; 13371 *) 13372 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 13373 esac 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 13375 $as_echo "$enable_big_digits" >&6; } 13376 13377 cat >>confdefs.h <<_ACEOF 13378 #define PYLONG_BITS_IN_DIGIT $enable_big_digits 13379 _ACEOF 13380 13381 13382 else 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 13384 $as_echo "no value specified" >&6; } 13385 fi 13386 13387 13388 # check for wchar.h 13389 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 13390 if test "x$ac_cv_header_wchar_h" = xyes; then : 13391 13392 13393 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 13394 13395 wchar_h="yes" 13396 13397 else 13398 wchar_h="no" 13399 13400 fi 13401 13402 13403 13404 # determine wchar_t size 13405 if test "$wchar_h" = yes 13406 then 13407 # The cast to long int works around a bug in the HP C Compiler 13408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13410 # This bug is HP SR number 8606223364. 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 13412 $as_echo_n "checking size of wchar_t... " >&6; } 13413 if ${ac_cv_sizeof_wchar_t+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415 else 13416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 13417 "; then : 13418 13419 else 13420 if test "$ac_cv_type_wchar_t" = yes; then 13421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13423 as_fn_error 77 "cannot compute sizeof (wchar_t) 13424 See \`config.log' for more details" "$LINENO" 5; } 13425 else 13426 ac_cv_sizeof_wchar_t=0 13427 fi 13428 fi 13429 13430 fi 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 13432 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } 13433 13434 13435 13436 cat >>confdefs.h <<_ACEOF 13437 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 13438 _ACEOF 13439 13440 13441 fi 13442 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 13444 $as_echo_n "checking for UCS-4 tcl... " >&6; } 13445 have_ucs4_tcl=no 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447 /* end confdefs.h. */ 13448 13449 #include <tcl.h> 13450 #if TCL_UTF_MAX != 6 13451 # error "NOT UCS4_TCL" 13452 #endif 13453 int 13454 main () 13455 { 13456 13457 ; 13458 return 0; 13459 } 13460 _ACEOF 13461 if ac_fn_c_try_compile "$LINENO"; then : 13462 13463 13464 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 13465 13466 have_ucs4_tcl=yes 13467 13468 fi 13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 13471 $as_echo "$have_ucs4_tcl" >&6; } 13472 13473 # check whether wchar_t is signed or not 13474 if test "$wchar_h" = yes 13475 then 13476 # check whether wchar_t is signed or not 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 13478 $as_echo_n "checking whether wchar_t is signed... " >&6; } 13479 if ${ac_cv_wchar_t_signed+:} false; then : 13480 $as_echo_n "(cached) " >&6 13481 else 13482 13483 if test "$cross_compiling" = yes; then : 13484 ac_cv_wchar_t_signed=yes 13485 else 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487 /* end confdefs.h. */ 13488 13489 #include <wchar.h> 13490 int main() 13491 { 13492 /* Success: exit code 0 */ 13493 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 13494 } 13495 13496 _ACEOF 13497 if ac_fn_c_try_run "$LINENO"; then : 13498 ac_cv_wchar_t_signed=yes 13499 else 13500 ac_cv_wchar_t_signed=no 13501 fi 13502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13503 conftest.$ac_objext conftest.beam conftest.$ac_ext 13504 fi 13505 13506 fi 13507 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 13509 $as_echo "$ac_cv_wchar_t_signed" >&6; } 13510 fi 13511 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 13513 $as_echo_n "checking what type to use for unicode... " >&6; } 13514 # Check whether --enable-unicode was given. 13515 if test "${enable_unicode+set}" = set; then : 13516 enableval=$enable_unicode; 13517 else 13518 enable_unicode=yes 13519 fi 13520 13521 13522 if test $enable_unicode = yes 13523 then 13524 # Without any arguments, Py_UNICODE defaults to two-byte mode 13525 case "$have_ucs4_tcl" in 13526 yes) enable_unicode="ucs4" 13527 ;; 13528 *) enable_unicode="ucs2" 13529 ;; 13530 esac 13531 fi 13532 13533 13534 case "$enable_unicode" in 13535 ucs2) unicode_size="2" 13536 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h 13537 13538 ;; 13539 ucs4) unicode_size="4" 13540 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h 13541 13542 ;; 13543 no) ;; # To allow --disable-unicode 13544 *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; 13545 esac 13546 13547 13548 13549 13550 if test "$enable_unicode" = "no" 13551 then 13552 UNICODE_OBJS="" 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 13554 $as_echo "not used" >&6; } 13555 else 13556 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" 13557 13558 $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h 13559 13560 13561 # wchar_t is only usable if it maps to an unsigned type 13562 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ 13563 -a "$ac_cv_wchar_t_signed" = "no" 13564 then 13565 PY_UNICODE_TYPE="wchar_t" 13566 13567 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 13568 13569 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h 13570 13571 elif test "$ac_cv_sizeof_short" = "$unicode_size" 13572 then 13573 PY_UNICODE_TYPE="unsigned short" 13574 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h 13575 13576 elif test "$ac_cv_sizeof_long" = "$unicode_size" 13577 then 13578 PY_UNICODE_TYPE="unsigned long" 13579 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h 13580 13581 else 13582 PY_UNICODE_TYPE="no type found" 13583 fi 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 13585 $as_echo "$PY_UNICODE_TYPE" >&6; } 13586 fi 13587 13588 # check for endianness 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13590 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13591 if ${ac_cv_c_bigendian+:} false; then : 13592 $as_echo_n "(cached) " >&6 13593 else 13594 ac_cv_c_bigendian=unknown 13595 # See if we're dealing with a universal compiler. 13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13597 /* end confdefs.h. */ 13598 #ifndef __APPLE_CC__ 13599 not a universal capable compiler 13600 #endif 13601 typedef int dummy; 13602 13603 _ACEOF 13604 if ac_fn_c_try_compile "$LINENO"; then : 13605 13606 # Check for potential -arch flags. It is not universal unless 13607 # there are at least two -arch flags with different values. 13608 ac_arch= 13609 ac_prev= 13610 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13611 if test -n "$ac_prev"; then 13612 case $ac_word in 13613 i?86 | x86_64 | ppc | ppc64) 13614 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13615 ac_arch=$ac_word 13616 else 13617 ac_cv_c_bigendian=universal 13618 break 13619 fi 13620 ;; 13621 esac 13622 ac_prev= 13623 elif test "x$ac_word" = "x-arch"; then 13624 ac_prev=arch 13625 fi 13626 done 13627 fi 13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13629 if test $ac_cv_c_bigendian = unknown; then 13630 # See if sys/param.h defines the BYTE_ORDER macro. 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632 /* end confdefs.h. */ 13633 #include <sys/types.h> 13634 #include <sys/param.h> 13635 13636 int 13637 main () 13638 { 13639 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13640 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13641 && LITTLE_ENDIAN) 13642 bogus endian macros 13643 #endif 13644 13645 ; 13646 return 0; 13647 } 13648 _ACEOF 13649 if ac_fn_c_try_compile "$LINENO"; then : 13650 # It does; now see whether it defined to BIG_ENDIAN or not. 13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13652 /* end confdefs.h. */ 13653 #include <sys/types.h> 13654 #include <sys/param.h> 13655 13656 int 13657 main () 13658 { 13659 #if BYTE_ORDER != BIG_ENDIAN 13660 not big endian 13661 #endif 13662 13663 ; 13664 return 0; 13665 } 13666 _ACEOF 13667 if ac_fn_c_try_compile "$LINENO"; then : 13668 ac_cv_c_bigendian=yes 13669 else 13670 ac_cv_c_bigendian=no 13671 fi 13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13673 fi 13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13675 fi 13676 if test $ac_cv_c_bigendian = unknown; then 13677 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679 /* end confdefs.h. */ 13680 #include <limits.h> 13681 13682 int 13683 main () 13684 { 13685 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13686 bogus endian macros 13687 #endif 13688 13689 ; 13690 return 0; 13691 } 13692 _ACEOF 13693 if ac_fn_c_try_compile "$LINENO"; then : 13694 # It does; now see whether it defined to _BIG_ENDIAN or not. 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696 /* end confdefs.h. */ 13697 #include <limits.h> 13698 13699 int 13700 main () 13701 { 13702 #ifndef _BIG_ENDIAN 13703 not big endian 13704 #endif 13705 13706 ; 13707 return 0; 13708 } 13709 _ACEOF 13710 if ac_fn_c_try_compile "$LINENO"; then : 13711 ac_cv_c_bigendian=yes 13712 else 13713 ac_cv_c_bigendian=no 13714 fi 13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13716 fi 13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13718 fi 13719 if test $ac_cv_c_bigendian = unknown; then 13720 # Compile a test program. 13721 if test "$cross_compiling" = yes; then : 13722 # Try to guess by grepping values from an object file. 13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13724 /* end confdefs.h. */ 13725 short int ascii_mm[] = 13726 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13727 short int ascii_ii[] = 13728 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13729 int use_ascii (int i) { 13730 return ascii_mm[i] + ascii_ii[i]; 13731 } 13732 short int ebcdic_ii[] = 13733 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13734 short int ebcdic_mm[] = 13735 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13736 int use_ebcdic (int i) { 13737 return ebcdic_mm[i] + ebcdic_ii[i]; 13738 } 13739 extern int foo; 13740 13741 int 13742 main () 13743 { 13744 return use_ascii (foo) == use_ebcdic (foo); 13745 ; 13746 return 0; 13747 } 13748 _ACEOF 13749 if ac_fn_c_try_compile "$LINENO"; then : 13750 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13751 ac_cv_c_bigendian=yes 13752 fi 13753 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13754 if test "$ac_cv_c_bigendian" = unknown; then 13755 ac_cv_c_bigendian=no 13756 else 13757 # finding both strings is unlikely to happen, but who knows? 13758 ac_cv_c_bigendian=unknown 13759 fi 13760 fi 13761 fi 13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13763 else 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765 /* end confdefs.h. */ 13766 $ac_includes_default 13767 int 13768 main () 13769 { 13770 13771 /* Are we little or big endian? From Harbison&Steele. */ 13772 union 13773 { 13774 long int l; 13775 char c[sizeof (long int)]; 13776 } u; 13777 u.l = 1; 13778 return u.c[sizeof (long int) - 1] == 1; 13779 13780 ; 13781 return 0; 13782 } 13783 _ACEOF 13784 if ac_fn_c_try_run "$LINENO"; then : 13785 ac_cv_c_bigendian=no 13786 else 13787 ac_cv_c_bigendian=yes 13788 fi 13789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13790 conftest.$ac_objext conftest.beam conftest.$ac_ext 13791 fi 13792 13793 fi 13794 fi 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13796 $as_echo "$ac_cv_c_bigendian" >&6; } 13797 case $ac_cv_c_bigendian in #( 13798 yes) 13799 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13800 ;; #( 13801 no) 13802 ;; #( 13803 universal) 13804 13805 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13806 13807 ;; #( 13808 *) 13809 as_fn_error $? "unknown endianness 13810 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13811 esac 13812 13813 13814 # Check whether right shifting a negative integer extends the sign bit 13815 # or fills with zeros (like the Cray J90, according to Tim Peters). 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 13817 $as_echo_n "checking whether right shift extends the sign bit... " >&6; } 13818 if ${ac_cv_rshift_extends_sign+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820 else 13821 13822 if test "$cross_compiling" = yes; then : 13823 ac_cv_rshift_extends_sign=yes 13824 else 13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13826 /* end confdefs.h. */ 13827 13828 int main() 13829 { 13830 exit(((-1)>>3 == -1) ? 0 : 1); 13831 } 13832 13833 _ACEOF 13834 if ac_fn_c_try_run "$LINENO"; then : 13835 ac_cv_rshift_extends_sign=yes 13836 else 13837 ac_cv_rshift_extends_sign=no 13838 fi 13839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13840 conftest.$ac_objext conftest.beam conftest.$ac_ext 13841 fi 13842 13843 fi 13844 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 13846 $as_echo "$ac_cv_rshift_extends_sign" >&6; } 13847 if test "$ac_cv_rshift_extends_sign" = no 13848 then 13849 13850 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 13851 13852 fi 13853 13854 # check for getc_unlocked and related locking functions 13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 13856 $as_echo_n "checking for getc_unlocked() and friends... " >&6; } 13857 if ${ac_cv_have_getc_unlocked+:} false; then : 13858 $as_echo_n "(cached) " >&6 13859 else 13860 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862 /* end confdefs.h. */ 13863 #include <stdio.h> 13864 int 13865 main () 13866 { 13867 13868 FILE *f = fopen("/dev/null", "r"); 13869 flockfile(f); 13870 getc_unlocked(f); 13871 funlockfile(f); 13872 13873 ; 13874 return 0; 13875 } 13876 _ACEOF 13877 if ac_fn_c_try_link "$LINENO"; then : 13878 ac_cv_have_getc_unlocked=yes 13879 else 13880 ac_cv_have_getc_unlocked=no 13881 fi 13882 rm -f core conftest.err conftest.$ac_objext \ 13883 conftest$ac_exeext conftest.$ac_ext 13884 fi 13885 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 13887 $as_echo "$ac_cv_have_getc_unlocked" >&6; } 13888 if test "$ac_cv_have_getc_unlocked" = yes 13889 then 13890 13891 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 13892 13893 fi 13894 13895 # check where readline lives 13896 # save the value of LIBS so we don't actually link Python with readline 13897 LIBS_no_readline=$LIBS 13898 13899 # On some systems we need to link readline to a termcap compatible 13900 # library. NOTE: Keep the precedence of listed libraries synchronised 13901 # with setup.py. 13902 py_cv_lib_readline=no 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 13904 $as_echo_n "checking how to link readline libs... " >&6; } 13905 for py_libtermcap in "" ncursesw ncurses curses termcap; do 13906 if test -z "$py_libtermcap"; then 13907 READLINE_LIBS="-lreadline" 13908 else 13909 READLINE_LIBS="-lreadline -l$py_libtermcap" 13910 fi 13911 LIBS="$READLINE_LIBS $LIBS_no_readline" 13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913 /* end confdefs.h. */ 13914 13915 /* Override any GCC internal prototype to avoid an error. 13916 Use char because int might match the return type of a GCC 13917 builtin and then its argument prototype would still apply. */ 13918 #ifdef __cplusplus 13919 extern "C" 13920 #endif 13921 char readline (); 13922 int 13923 main () 13924 { 13925 return readline (); 13926 ; 13927 return 0; 13928 } 13929 _ACEOF 13930 if ac_fn_c_try_link "$LINENO"; then : 13931 py_cv_lib_readline=yes 13932 fi 13933 rm -f core conftest.err conftest.$ac_objext \ 13934 conftest$ac_exeext conftest.$ac_ext 13935 if test $py_cv_lib_readline = yes; then 13936 break 13937 fi 13938 done 13939 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 13940 #AC_SUBST([READLINE_LIBS]) 13941 if test $py_cv_lib_readline = no; then 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13943 $as_echo "none" >&6; } 13944 else 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 13946 $as_echo "$READLINE_LIBS" >&6; } 13947 13948 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 13949 13950 fi 13951 13952 # check for readline 2.1 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 13954 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } 13955 if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : 13956 $as_echo_n "(cached) " >&6 13957 else 13958 ac_check_lib_save_LIBS=$LIBS 13959 LIBS="-lreadline $READLINE_LIBS $LIBS" 13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13961 /* end confdefs.h. */ 13962 13963 /* Override any GCC internal prototype to avoid an error. 13964 Use char because int might match the return type of a GCC 13965 builtin and then its argument prototype would still apply. */ 13966 #ifdef __cplusplus 13967 extern "C" 13968 #endif 13969 char rl_callback_handler_install (); 13970 int 13971 main () 13972 { 13973 return rl_callback_handler_install (); 13974 ; 13975 return 0; 13976 } 13977 _ACEOF 13978 if ac_fn_c_try_link "$LINENO"; then : 13979 ac_cv_lib_readline_rl_callback_handler_install=yes 13980 else 13981 ac_cv_lib_readline_rl_callback_handler_install=no 13982 fi 13983 rm -f core conftest.err conftest.$ac_objext \ 13984 conftest$ac_exeext conftest.$ac_ext 13985 LIBS=$ac_check_lib_save_LIBS 13986 fi 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 13988 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } 13989 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : 13990 13991 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h 13992 13993 fi 13994 13995 13996 # check for readline 2.2 13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998 /* end confdefs.h. */ 13999 #include <readline/readline.h> 14000 _ACEOF 14001 if ac_fn_c_try_cpp "$LINENO"; then : 14002 have_readline=yes 14003 else 14004 have_readline=no 14005 14006 fi 14007 rm -f conftest.err conftest.i conftest.$ac_ext 14008 if test $have_readline = yes 14009 then 14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14011 /* end confdefs.h. */ 14012 #include <readline/readline.h> 14013 14014 _ACEOF 14015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14016 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 14017 14018 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 14019 14020 fi 14021 rm -f conftest* 14022 14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14024 /* end confdefs.h. */ 14025 #include <readline/readline.h> 14026 14027 _ACEOF 14028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14029 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 14030 14031 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 14032 14033 fi 14034 rm -f conftest* 14035 14036 fi 14037 14038 # check for readline 4.0 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 14040 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 14041 if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 14042 $as_echo_n "(cached) " >&6 14043 else 14044 ac_check_lib_save_LIBS=$LIBS 14045 LIBS="-lreadline $READLINE_LIBS $LIBS" 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047 /* end confdefs.h. */ 14048 14049 /* Override any GCC internal prototype to avoid an error. 14050 Use char because int might match the return type of a GCC 14051 builtin and then its argument prototype would still apply. */ 14052 #ifdef __cplusplus 14053 extern "C" 14054 #endif 14055 char rl_pre_input_hook (); 14056 int 14057 main () 14058 { 14059 return rl_pre_input_hook (); 14060 ; 14061 return 0; 14062 } 14063 _ACEOF 14064 if ac_fn_c_try_link "$LINENO"; then : 14065 ac_cv_lib_readline_rl_pre_input_hook=yes 14066 else 14067 ac_cv_lib_readline_rl_pre_input_hook=no 14068 fi 14069 rm -f core conftest.err conftest.$ac_objext \ 14070 conftest$ac_exeext conftest.$ac_ext 14071 LIBS=$ac_check_lib_save_LIBS 14072 fi 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 14074 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 14075 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 14076 14077 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 14078 14079 fi 14080 14081 14082 # also in 4.0 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 14084 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 14085 if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087 else 14088 ac_check_lib_save_LIBS=$LIBS 14089 LIBS="-lreadline $READLINE_LIBS $LIBS" 14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14091 /* end confdefs.h. */ 14092 14093 /* Override any GCC internal prototype to avoid an error. 14094 Use char because int might match the return type of a GCC 14095 builtin and then its argument prototype would still apply. */ 14096 #ifdef __cplusplus 14097 extern "C" 14098 #endif 14099 char rl_completion_display_matches_hook (); 14100 int 14101 main () 14102 { 14103 return rl_completion_display_matches_hook (); 14104 ; 14105 return 0; 14106 } 14107 _ACEOF 14108 if ac_fn_c_try_link "$LINENO"; then : 14109 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 14110 else 14111 ac_cv_lib_readline_rl_completion_display_matches_hook=no 14112 fi 14113 rm -f core conftest.err conftest.$ac_objext \ 14114 conftest$ac_exeext conftest.$ac_ext 14115 LIBS=$ac_check_lib_save_LIBS 14116 fi 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 14118 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 14119 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 14120 14121 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 14122 14123 fi 14124 14125 14126 # also in 4.0, but not in editline 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 14128 $as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 14129 if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 14130 $as_echo_n "(cached) " >&6 14131 else 14132 ac_check_lib_save_LIBS=$LIBS 14133 LIBS="-lreadline $READLINE_LIBS $LIBS" 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135 /* end confdefs.h. */ 14136 14137 /* Override any GCC internal prototype to avoid an error. 14138 Use char because int might match the return type of a GCC 14139 builtin and then its argument prototype would still apply. */ 14140 #ifdef __cplusplus 14141 extern "C" 14142 #endif 14143 char rl_resize_terminal (); 14144 int 14145 main () 14146 { 14147 return rl_resize_terminal (); 14148 ; 14149 return 0; 14150 } 14151 _ACEOF 14152 if ac_fn_c_try_link "$LINENO"; then : 14153 ac_cv_lib_readline_rl_resize_terminal=yes 14154 else 14155 ac_cv_lib_readline_rl_resize_terminal=no 14156 fi 14157 rm -f core conftest.err conftest.$ac_objext \ 14158 conftest$ac_exeext conftest.$ac_ext 14159 LIBS=$ac_check_lib_save_LIBS 14160 fi 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 14162 $as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 14163 if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 14164 14165 $as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 14166 14167 fi 14168 14169 14170 # check for readline 4.2 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 14172 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 14173 if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 14174 $as_echo_n "(cached) " >&6 14175 else 14176 ac_check_lib_save_LIBS=$LIBS 14177 LIBS="-lreadline $READLINE_LIBS $LIBS" 14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14179 /* end confdefs.h. */ 14180 14181 /* Override any GCC internal prototype to avoid an error. 14182 Use char because int might match the return type of a GCC 14183 builtin and then its argument prototype would still apply. */ 14184 #ifdef __cplusplus 14185 extern "C" 14186 #endif 14187 char rl_completion_matches (); 14188 int 14189 main () 14190 { 14191 return rl_completion_matches (); 14192 ; 14193 return 0; 14194 } 14195 _ACEOF 14196 if ac_fn_c_try_link "$LINENO"; then : 14197 ac_cv_lib_readline_rl_completion_matches=yes 14198 else 14199 ac_cv_lib_readline_rl_completion_matches=no 14200 fi 14201 rm -f core conftest.err conftest.$ac_objext \ 14202 conftest$ac_exeext conftest.$ac_ext 14203 LIBS=$ac_check_lib_save_LIBS 14204 fi 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 14206 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 14207 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 14208 14209 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 14210 14211 fi 14212 14213 14214 # also in readline 4.2 14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216 /* end confdefs.h. */ 14217 #include <readline/readline.h> 14218 _ACEOF 14219 if ac_fn_c_try_cpp "$LINENO"; then : 14220 have_readline=yes 14221 else 14222 have_readline=no 14223 14224 fi 14225 rm -f conftest.err conftest.i conftest.$ac_ext 14226 if test $have_readline = yes 14227 then 14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229 /* end confdefs.h. */ 14230 #include <readline/readline.h> 14231 14232 _ACEOF 14233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14234 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 14235 14236 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 14237 14238 fi 14239 rm -f conftest* 14240 14241 fi 14242 14243 # End of readline checks: restore LIBS 14244 LIBS=$LIBS_no_readline 14245 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 14247 $as_echo_n "checking for broken nice()... " >&6; } 14248 if ${ac_cv_broken_nice+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250 else 14251 14252 if test "$cross_compiling" = yes; then : 14253 ac_cv_broken_nice=no 14254 else 14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256 /* end confdefs.h. */ 14257 14258 int main() 14259 { 14260 int val1 = nice(1); 14261 if (val1 != -1 && val1 == nice(2)) 14262 exit(0); 14263 exit(1); 14264 } 14265 14266 _ACEOF 14267 if ac_fn_c_try_run "$LINENO"; then : 14268 ac_cv_broken_nice=yes 14269 else 14270 ac_cv_broken_nice=no 14271 fi 14272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14273 conftest.$ac_objext conftest.beam conftest.$ac_ext 14274 fi 14275 14276 fi 14277 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 14279 $as_echo "$ac_cv_broken_nice" >&6; } 14280 if test "$ac_cv_broken_nice" = yes 14281 then 14282 14283 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 14284 14285 fi 14286 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 14288 $as_echo_n "checking for broken poll()... " >&6; } 14289 if ${ac_cv_broken_poll+:} false; then : 14290 $as_echo_n "(cached) " >&6 14291 else 14292 if test "$cross_compiling" = yes; then : 14293 ac_cv_broken_poll=no 14294 else 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296 /* end confdefs.h. */ 14297 14298 #include <poll.h> 14299 14300 int main() 14301 { 14302 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 14303 int poll_test; 14304 14305 close (42); 14306 14307 poll_test = poll(&poll_struct, 1, 0); 14308 if (poll_test < 0) 14309 return 0; 14310 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 14311 return 0; 14312 else 14313 return 1; 14314 } 14315 14316 _ACEOF 14317 if ac_fn_c_try_run "$LINENO"; then : 14318 ac_cv_broken_poll=yes 14319 else 14320 ac_cv_broken_poll=no 14321 fi 14322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14323 conftest.$ac_objext conftest.beam conftest.$ac_ext 14324 fi 14325 14326 fi 14327 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 14329 $as_echo "$ac_cv_broken_poll" >&6; } 14330 if test "$ac_cv_broken_poll" = yes 14331 then 14332 14333 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 14334 14335 fi 14336 14337 # Before we can test tzset, we need to check if struct tm has a tm_zone 14338 # (which is not required by ISO C or UNIX spec) and/or if we support 14339 # tzname[] 14340 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 14341 #include <$ac_cv_struct_tm> 14342 14343 " 14344 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 14345 14346 cat >>confdefs.h <<_ACEOF 14347 #define HAVE_STRUCT_TM_TM_ZONE 1 14348 _ACEOF 14349 14350 14351 fi 14352 14353 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 14354 14355 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 14356 14357 else 14358 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14359 " 14360 if test "x$ac_cv_have_decl_tzname" = xyes; then : 14361 ac_have_decl=1 14362 else 14363 ac_have_decl=0 14364 fi 14365 14366 cat >>confdefs.h <<_ACEOF 14367 #define HAVE_DECL_TZNAME $ac_have_decl 14368 _ACEOF 14369 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14371 $as_echo_n "checking for tzname... " >&6; } 14372 if ${ac_cv_var_tzname+:} false; then : 14373 $as_echo_n "(cached) " >&6 14374 else 14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14376 /* end confdefs.h. */ 14377 #include <time.h> 14378 #if !HAVE_DECL_TZNAME 14379 extern char *tzname[]; 14380 #endif 14381 14382 int 14383 main () 14384 { 14385 return tzname[0][0]; 14386 ; 14387 return 0; 14388 } 14389 _ACEOF 14390 if ac_fn_c_try_link "$LINENO"; then : 14391 ac_cv_var_tzname=yes 14392 else 14393 ac_cv_var_tzname=no 14394 fi 14395 rm -f core conftest.err conftest.$ac_objext \ 14396 conftest$ac_exeext conftest.$ac_ext 14397 fi 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14399 $as_echo "$ac_cv_var_tzname" >&6; } 14400 if test $ac_cv_var_tzname = yes; then 14401 14402 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 14403 14404 fi 14405 fi 14406 14407 14408 # check tzset(3) exists and works like we expect it to 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 14410 $as_echo_n "checking for working tzset()... " >&6; } 14411 if ${ac_cv_working_tzset+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413 else 14414 14415 if test "$cross_compiling" = yes; then : 14416 ac_cv_working_tzset=no 14417 else 14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14419 /* end confdefs.h. */ 14420 14421 #include <stdlib.h> 14422 #include <time.h> 14423 #include <string.h> 14424 14425 #if HAVE_TZNAME 14426 extern char *tzname[]; 14427 #endif 14428 14429 int main() 14430 { 14431 /* Note that we need to ensure that not only does tzset(3) 14432 do 'something' with localtime, but it works as documented 14433 in the library reference and as expected by the test suite. 14434 This includes making sure that tzname is set properly if 14435 tm->tm_zone does not exist since it is the alternative way 14436 of getting timezone info. 14437 14438 Red Hat 6.2 doesn't understand the southern hemisphere 14439 after New Year's Day. 14440 */ 14441 14442 time_t groundhogday = 1044144000; /* GMT-based */ 14443 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 14444 14445 putenv("TZ=UTC+0"); 14446 tzset(); 14447 if (localtime(&groundhogday)->tm_hour != 0) 14448 exit(1); 14449 #if HAVE_TZNAME 14450 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 14451 if (strcmp(tzname[0], "UTC") || 14452 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 14453 exit(1); 14454 #endif 14455 14456 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 14457 tzset(); 14458 if (localtime(&groundhogday)->tm_hour != 19) 14459 exit(1); 14460 #if HAVE_TZNAME 14461 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 14462 exit(1); 14463 #endif 14464 14465 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 14466 tzset(); 14467 if (localtime(&groundhogday)->tm_hour != 11) 14468 exit(1); 14469 #if HAVE_TZNAME 14470 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 14471 exit(1); 14472 #endif 14473 14474 #if HAVE_STRUCT_TM_TM_ZONE 14475 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 14476 exit(1); 14477 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 14478 exit(1); 14479 #endif 14480 14481 exit(0); 14482 } 14483 14484 _ACEOF 14485 if ac_fn_c_try_run "$LINENO"; then : 14486 ac_cv_working_tzset=yes 14487 else 14488 ac_cv_working_tzset=no 14489 fi 14490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14491 conftest.$ac_objext conftest.beam conftest.$ac_ext 14492 fi 14493 14494 fi 14495 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 14497 $as_echo "$ac_cv_working_tzset" >&6; } 14498 if test "$ac_cv_working_tzset" = yes 14499 then 14500 14501 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 14502 14503 fi 14504 14505 # Look for subsecond timestamps in struct stat 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 14507 $as_echo_n "checking for tv_nsec in struct stat... " >&6; } 14508 if ${ac_cv_stat_tv_nsec+:} false; then : 14509 $as_echo_n "(cached) " >&6 14510 else 14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512 /* end confdefs.h. */ 14513 #include <sys/stat.h> 14514 int 14515 main () 14516 { 14517 14518 struct stat st; 14519 st.st_mtim.tv_nsec = 1; 14520 14521 ; 14522 return 0; 14523 } 14524 _ACEOF 14525 if ac_fn_c_try_compile "$LINENO"; then : 14526 ac_cv_stat_tv_nsec=yes 14527 else 14528 ac_cv_stat_tv_nsec=no 14529 fi 14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14531 fi 14532 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 14534 $as_echo "$ac_cv_stat_tv_nsec" >&6; } 14535 if test "$ac_cv_stat_tv_nsec" = yes 14536 then 14537 14538 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 14539 14540 fi 14541 14542 # Look for BSD style subsecond timestamps in struct stat 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 14544 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 14545 if ${ac_cv_stat_tv_nsec2+:} false; then : 14546 $as_echo_n "(cached) " >&6 14547 else 14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549 /* end confdefs.h. */ 14550 #include <sys/stat.h> 14551 int 14552 main () 14553 { 14554 14555 struct stat st; 14556 st.st_mtimespec.tv_nsec = 1; 14557 14558 ; 14559 return 0; 14560 } 14561 _ACEOF 14562 if ac_fn_c_try_compile "$LINENO"; then : 14563 ac_cv_stat_tv_nsec2=yes 14564 else 14565 ac_cv_stat_tv_nsec2=no 14566 fi 14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14568 fi 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 14571 $as_echo "$ac_cv_stat_tv_nsec2" >&6; } 14572 if test "$ac_cv_stat_tv_nsec2" = yes 14573 then 14574 14575 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 14576 14577 fi 14578 14579 # first curses configure check 14580 ac_save_cppflags="$CPPFLAGS" 14581 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 14582 14583 for ac_header in curses.h ncurses.h 14584 do : 14585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14586 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14587 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14588 cat >>confdefs.h <<_ACEOF 14589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14590 _ACEOF 14591 14592 fi 14593 14594 done 14595 14596 14597 # On Solaris, term.h requires curses.h 14598 for ac_header in term.h 14599 do : 14600 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 14601 #ifdef HAVE_CURSES_H 14602 #include <curses.h> 14603 #endif 14604 14605 " 14606 if test "x$ac_cv_header_term_h" = xyes; then : 14607 cat >>confdefs.h <<_ACEOF 14608 #define HAVE_TERM_H 1 14609 _ACEOF 14610 14611 fi 14612 14613 done 14614 14615 14616 # On HP/UX 11.0, mvwdelch is a block with a return statement 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 14618 $as_echo_n "checking whether mvwdelch is an expression... " >&6; } 14619 if ${ac_cv_mvwdelch_is_expression+:} false; then : 14620 $as_echo_n "(cached) " >&6 14621 else 14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623 /* end confdefs.h. */ 14624 #include <curses.h> 14625 int 14626 main () 14627 { 14628 14629 int rtn; 14630 rtn = mvwdelch(0,0,0); 14631 14632 ; 14633 return 0; 14634 } 14635 _ACEOF 14636 if ac_fn_c_try_compile "$LINENO"; then : 14637 ac_cv_mvwdelch_is_expression=yes 14638 else 14639 ac_cv_mvwdelch_is_expression=no 14640 fi 14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14642 fi 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 14645 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 14646 14647 if test "$ac_cv_mvwdelch_is_expression" = yes 14648 then 14649 14650 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 14651 14652 fi 14653 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 14655 $as_echo_n "checking whether WINDOW has _flags... " >&6; } 14656 if ${ac_cv_window_has_flags+:} false; then : 14657 $as_echo_n "(cached) " >&6 14658 else 14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660 /* end confdefs.h. */ 14661 #include <curses.h> 14662 int 14663 main () 14664 { 14665 14666 WINDOW *w; 14667 w->_flags = 0; 14668 14669 ; 14670 return 0; 14671 } 14672 _ACEOF 14673 if ac_fn_c_try_compile "$LINENO"; then : 14674 ac_cv_window_has_flags=yes 14675 else 14676 ac_cv_window_has_flags=no 14677 fi 14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14679 fi 14680 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 14682 $as_echo "$ac_cv_window_has_flags" >&6; } 14683 14684 14685 if test "$ac_cv_window_has_flags" = yes 14686 then 14687 14688 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 14689 14690 fi 14691 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 14693 $as_echo_n "checking for is_term_resized... " >&6; } 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695 /* end confdefs.h. */ 14696 #include <curses.h> 14697 int 14698 main () 14699 { 14700 void *x=is_term_resized 14701 ; 14702 return 0; 14703 } 14704 _ACEOF 14705 if ac_fn_c_try_compile "$LINENO"; then : 14706 14707 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 14708 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14710 $as_echo "yes" >&6; } 14711 else 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14713 $as_echo "no" >&6; } 14714 14715 fi 14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14717 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 14719 $as_echo_n "checking for resize_term... " >&6; } 14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14721 /* end confdefs.h. */ 14722 #include <curses.h> 14723 int 14724 main () 14725 { 14726 void *x=resize_term 14727 ; 14728 return 0; 14729 } 14730 _ACEOF 14731 if ac_fn_c_try_compile "$LINENO"; then : 14732 14733 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 14734 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14736 $as_echo "yes" >&6; } 14737 else 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14739 $as_echo "no" >&6; } 14740 14741 fi 14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14743 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 14745 $as_echo_n "checking for resizeterm... " >&6; } 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747 /* end confdefs.h. */ 14748 #include <curses.h> 14749 int 14750 main () 14751 { 14752 void *x=resizeterm 14753 ; 14754 return 0; 14755 } 14756 _ACEOF 14757 if ac_fn_c_try_compile "$LINENO"; then : 14758 14759 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 14760 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14762 $as_echo "yes" >&6; } 14763 else 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14765 $as_echo "no" >&6; } 14766 14767 fi 14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14769 # last curses configure check 14770 CPPFLAGS=$ac_save_cppflags 14771 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 14773 $as_echo "$as_me: checking for device files" >&6;} 14774 14775 if test "x$cross_compiling" = xyes; then 14776 if test "${ac_cv_file__dev_ptmx+set}" != set; then 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 14778 $as_echo_n "checking for /dev/ptmx... " >&6; } 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 14780 $as_echo "not set" >&6; } 14781 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 14782 fi 14783 if test "${ac_cv_file__dev_ptc+set}" != set; then 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 14785 $as_echo_n "checking for /dev/ptc... " >&6; } 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 14787 $as_echo "not set" >&6; } 14788 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 14789 fi 14790 fi 14791 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 14793 $as_echo_n "checking for /dev/ptmx... " >&6; } 14794 if ${ac_cv_file__dev_ptmx+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796 else 14797 test "$cross_compiling" = yes && 14798 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 14799 if test -r "/dev/ptmx"; then 14800 ac_cv_file__dev_ptmx=yes 14801 else 14802 ac_cv_file__dev_ptmx=no 14803 fi 14804 fi 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 14806 $as_echo "$ac_cv_file__dev_ptmx" >&6; } 14807 if test "x$ac_cv_file__dev_ptmx" = xyes; then : 14808 14809 fi 14810 14811 if test "x$ac_cv_file__dev_ptmx" = xyes; then 14812 14813 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 14814 14815 fi 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 14817 $as_echo_n "checking for /dev/ptc... " >&6; } 14818 if ${ac_cv_file__dev_ptc+:} false; then : 14819 $as_echo_n "(cached) " >&6 14820 else 14821 test "$cross_compiling" = yes && 14822 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 14823 if test -r "/dev/ptc"; then 14824 ac_cv_file__dev_ptc=yes 14825 else 14826 ac_cv_file__dev_ptc=no 14827 fi 14828 fi 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 14830 $as_echo "$ac_cv_file__dev_ptc" >&6; } 14831 if test "x$ac_cv_file__dev_ptc" = xyes; then : 14832 14833 fi 14834 14835 if test "x$ac_cv_file__dev_ptc" = xyes; then 14836 14837 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 14838 14839 fi 14840 14841 if test "$have_long_long" = yes 14842 then 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 14844 $as_echo_n "checking for %lld and %llu printf() format support... " >&6; } 14845 if ${ac_cv_have_long_long_format+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847 else 14848 if test "$cross_compiling" = yes; then : 14849 ac_cv_have_long_long_format="cross -- assuming no" 14850 if test x$GCC = xyes; then 14851 save_CFLAGS=$CFLAGS 14852 CFLAGS="$CFLAGS -Werror -Wformat" 14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14854 /* end confdefs.h. */ 14855 14856 #include <stdio.h> 14857 #include <stddef.h> 14858 14859 int 14860 main () 14861 { 14862 14863 char *buffer; 14864 sprintf(buffer, "%lld", (long long)123); 14865 sprintf(buffer, "%lld", (long long)-123); 14866 sprintf(buffer, "%llu", (unsigned long long)123); 14867 14868 ; 14869 return 0; 14870 } 14871 _ACEOF 14872 if ac_fn_c_try_compile "$LINENO"; then : 14873 ac_cv_have_long_long_format=yes 14874 14875 fi 14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877 CFLAGS=$save_CFLAGS 14878 fi 14879 else 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881 /* end confdefs.h. */ 14882 14883 #include <stdio.h> 14884 #include <stddef.h> 14885 #include <string.h> 14886 14887 #ifdef HAVE_SYS_TYPES_H 14888 #include <sys/types.h> 14889 #endif 14890 14891 int main() 14892 { 14893 char buffer[256]; 14894 14895 if (sprintf(buffer, "%lld", (long long)123) < 0) 14896 return 1; 14897 if (strcmp(buffer, "123")) 14898 return 1; 14899 14900 if (sprintf(buffer, "%lld", (long long)-123) < 0) 14901 return 1; 14902 if (strcmp(buffer, "-123")) 14903 return 1; 14904 14905 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) 14906 return 1; 14907 if (strcmp(buffer, "123")) 14908 return 1; 14909 14910 return 0; 14911 } 14912 14913 _ACEOF 14914 if ac_fn_c_try_run "$LINENO"; then : 14915 ac_cv_have_long_long_format=yes 14916 else 14917 ac_cv_have_long_long_format=no 14918 fi 14919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14920 conftest.$ac_objext conftest.beam conftest.$ac_ext 14921 fi 14922 14923 14924 fi 14925 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 14927 $as_echo "$ac_cv_have_long_long_format" >&6; } 14928 fi 14929 14930 if test "$ac_cv_have_long_long_format" = yes 14931 then 14932 14933 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h 14934 14935 fi 14936 14937 if test $ac_sys_system = Darwin 14938 then 14939 LIBS="$LIBS -framework CoreFoundation" 14940 fi 14941 14942 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 14944 $as_echo_n "checking for %zd printf() format support... " >&6; } 14945 if ${ac_cv_have_size_t_format+:} false; then : 14946 $as_echo_n "(cached) " >&6 14947 else 14948 if test "$cross_compiling" = yes; then : 14949 ac_cv_have_size_t_format="cross -- assuming yes" 14950 14951 else 14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953 /* end confdefs.h. */ 14954 14955 #include <stdio.h> 14956 #include <stddef.h> 14957 #include <string.h> 14958 14959 #ifdef HAVE_SYS_TYPES_H 14960 #include <sys/types.h> 14961 #endif 14962 14963 #ifdef HAVE_SSIZE_T 14964 typedef ssize_t Py_ssize_t; 14965 #elif SIZEOF_VOID_P == SIZEOF_LONG 14966 typedef long Py_ssize_t; 14967 #else 14968 typedef int Py_ssize_t; 14969 #endif 14970 14971 int main() 14972 { 14973 char buffer[256]; 14974 14975 if(sprintf(buffer, "%zd", (size_t)123) < 0) 14976 return 1; 14977 14978 if (strcmp(buffer, "123")) 14979 return 1; 14980 14981 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 14982 return 1; 14983 14984 if (strcmp(buffer, "-123")) 14985 return 1; 14986 14987 return 0; 14988 } 14989 14990 _ACEOF 14991 if ac_fn_c_try_run "$LINENO"; then : 14992 ac_cv_have_size_t_format=yes 14993 else 14994 ac_cv_have_size_t_format=no 14995 fi 14996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14997 conftest.$ac_objext conftest.beam conftest.$ac_ext 14998 fi 14999 15000 fi 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 15002 $as_echo "$ac_cv_have_size_t_format" >&6; } 15003 if test "$ac_cv_have_size_t_format" != no ; then 15004 15005 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 15006 15007 fi 15008 15009 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15010 #ifdef HAVE_SYS_TYPES_H 15011 #include <sys/types.h> 15012 #endif 15013 #ifdef HAVE_SYS_SOCKET_H 15014 #include <sys/socket.h> 15015 #endif 15016 15017 " 15018 if test "x$ac_cv_type_socklen_t" = xyes; then : 15019 15020 else 15021 15022 $as_echo "#define socklen_t int" >>confdefs.h 15023 15024 fi 15025 15026 15027 case $ac_sys_system in 15028 AIX*) 15029 15030 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 15031 ;; 15032 esac 15033 15034 15035 15036 15037 for h in `(cd $srcdir;echo Python/thread_*.h)` 15038 do 15039 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 15040 done 15041 15042 15043 SRCDIRS="Parser Grammar Objects Python Modules Mac" 15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 15045 $as_echo_n "checking for build directories... " >&6; } 15046 for dir in $SRCDIRS; do 15047 if test ! -d $dir; then 15048 mkdir $dir 15049 fi 15050 done 15051 15052 # BEGIN_COMPUTED_GOTO 15053 # Check for --with-computed-gotos 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 15055 $as_echo_n "checking for --with-computed-gotos... " >&6; } 15056 15057 # Check whether --with-computed-gotos was given. 15058 if test "${with_computed_gotos+set}" = set; then : 15059 withval=$with_computed_gotos; 15060 if test "$withval" = yes 15061 then 15062 15063 $as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 15064 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15066 $as_echo "yes" >&6; } 15067 fi 15068 if test "$withval" = no 15069 then 15070 15071 $as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 15072 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15074 $as_echo "no" >&6; } 15075 fi 15076 15077 else 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 15079 $as_echo "no value specified" >&6; } 15080 fi 15081 15082 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 15084 $as_echo_n "checking whether $CC supports computed gotos... " >&6; } 15085 if ${ac_cv_computed_gotos+:} false; then : 15086 $as_echo_n "(cached) " >&6 15087 else 15088 if test "$cross_compiling" = yes; then : 15089 if test "${with_computed_gotos+set}" = set; then 15090 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 15091 else 15092 ac_cv_computed_gotos=no 15093 fi 15094 else 15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15096 /* end confdefs.h. */ 15097 15098 int main(int argc, char **argv) 15099 { 15100 static void *targets[1] = { &&LABEL1 }; 15101 goto LABEL2; 15102 LABEL1: 15103 return 0; 15104 LABEL2: 15105 goto *targets[0]; 15106 return 1; 15107 } 15108 15109 _ACEOF 15110 if ac_fn_c_try_run "$LINENO"; then : 15111 ac_cv_computed_gotos=yes 15112 else 15113 ac_cv_computed_gotos=no 15114 fi 15115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15116 conftest.$ac_objext conftest.beam conftest.$ac_ext 15117 fi 15118 15119 fi 15120 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 15122 $as_echo "$ac_cv_computed_gotos" >&6; } 15123 case "$ac_cv_computed_gotos" in yes*) 15124 15125 $as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 15126 15127 esac 15128 # END_COMPUTED_GOTO 15129 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15131 $as_echo "done" >&6; } 15132 15133 # ensurepip option 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 15135 $as_echo_n "checking for ensurepip... " >&6; } 15136 15137 # Check whether --with-ensurepip was given. 15138 if test "${with_ensurepip+set}" = set; then : 15139 withval=$with_ensurepip; 15140 else 15141 with_ensurepip=no 15142 fi 15143 15144 case $with_ensurepip in #( 15145 yes|upgrade) : 15146 ENSUREPIP=upgrade ;; #( 15147 install) : 15148 ENSUREPIP=install ;; #( 15149 no) : 15150 ENSUREPIP=no ;; #( 15151 *) : 15152 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 15153 esac 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 15155 $as_echo "$ENSUREPIP" >&6; } 15156 15157 15158 # generate output files 15159 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" 15160 15161 ac_config_files="$ac_config_files Modules/ld_so_aix" 15162 15163 cat >confcache <<\_ACEOF 15164 # This file is a shell script that caches the results of configure 15165 # tests run on this system so they can be shared between configure 15166 # scripts and configure runs, see configure's option --config-cache. 15167 # It is not useful on other systems. If it contains results you don't 15168 # want to keep, you may remove or edit it. 15169 # 15170 # config.status only pays attention to the cache file if you give it 15171 # the --recheck option to rerun configure. 15172 # 15173 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15174 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15175 # following values. 15176 15177 _ACEOF 15178 15179 # The following way of writing the cache mishandles newlines in values, 15180 # but we know of no workaround that is simple, portable, and efficient. 15181 # So, we kill variables containing newlines. 15182 # Ultrix sh set writes to stderr and can't be redirected directly, 15183 # and sets the high bit in the cache file unless we assign to the vars. 15184 ( 15185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15186 eval ac_val=\$$ac_var 15187 case $ac_val in #( 15188 *${as_nl}*) 15189 case $ac_var in #( 15190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15192 esac 15193 case $ac_var in #( 15194 _ | IFS | as_nl) ;; #( 15195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15196 *) { eval $ac_var=; unset $ac_var;} ;; 15197 esac ;; 15198 esac 15199 done 15200 15201 (set) 2>&1 | 15202 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15203 *${as_nl}ac_space=\ *) 15204 # `set' does not quote correctly, so add quotes: double-quote 15205 # substitution turns \\\\ into \\, and sed turns \\ into \. 15206 sed -n \ 15207 "s/'/'\\\\''/g; 15208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15209 ;; #( 15210 *) 15211 # `set' quotes correctly as required by POSIX, so do not add quotes. 15212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15213 ;; 15214 esac | 15215 sort 15216 ) | 15217 sed ' 15218 /^ac_cv_env_/b end 15219 t clear 15220 :clear 15221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15222 t end 15223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15224 :end' >>confcache 15225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15226 if test -w "$cache_file"; then 15227 if test "x$cache_file" != "x/dev/null"; then 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15229 $as_echo "$as_me: updating cache $cache_file" >&6;} 15230 if test ! -f "$cache_file" || test -h "$cache_file"; then 15231 cat confcache >"$cache_file" 15232 else 15233 case $cache_file in #( 15234 */* | ?:*) 15235 mv -f confcache "$cache_file"$$ && 15236 mv -f "$cache_file"$$ "$cache_file" ;; #( 15237 *) 15238 mv -f confcache "$cache_file" ;; 15239 esac 15240 fi 15241 fi 15242 else 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15245 fi 15246 fi 15247 rm -f confcache 15248 15249 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15250 # Let make expand exec_prefix. 15251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15252 15253 DEFS=-DHAVE_CONFIG_H 15254 15255 ac_libobjs= 15256 ac_ltlibobjs= 15257 U= 15258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15259 # 1. Remove the extension, and $U if already installed. 15260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15263 # will be set to the directory where LIBOBJS objects are built. 15264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15266 done 15267 LIBOBJS=$ac_libobjs 15268 15269 LTLIBOBJS=$ac_ltlibobjs 15270 15271 15272 15273 15274 : "${CONFIG_STATUS=./config.status}" 15275 ac_write_fail=0 15276 ac_clean_files_save=$ac_clean_files 15277 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15280 as_write_fail=0 15281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15282 #! $SHELL 15283 # Generated by $as_me. 15284 # Run this file to recreate the current configuration. 15285 # Compiler output produced by configure, useful for debugging 15286 # configure, is in config.log if it exists. 15287 15288 debug=false 15289 ac_cs_recheck=false 15290 ac_cs_silent=false 15291 15292 SHELL=\${CONFIG_SHELL-$SHELL} 15293 export SHELL 15294 _ASEOF 15295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15296 ## -------------------- ## 15297 ## M4sh Initialization. ## 15298 ## -------------------- ## 15299 15300 # Be more Bourne compatible 15301 DUALCASE=1; export DUALCASE # for MKS sh 15302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15303 emulate sh 15304 NULLCMD=: 15305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15306 # is contrary to our usage. Disable this feature. 15307 alias -g '${1+"$@"}'='"$@"' 15308 setopt NO_GLOB_SUBST 15309 else 15310 case `(set -o) 2>/dev/null` in #( 15311 *posix*) : 15312 set -o posix ;; #( 15313 *) : 15314 ;; 15315 esac 15316 fi 15317 15318 15319 as_nl=' 15320 ' 15321 export as_nl 15322 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15323 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15326 # Prefer a ksh shell builtin over an external printf program on Solaris, 15327 # but without wasting forks for bash or zsh. 15328 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15330 as_echo='print -r --' 15331 as_echo_n='print -rn --' 15332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15333 as_echo='printf %s\n' 15334 as_echo_n='printf %s' 15335 else 15336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15338 as_echo_n='/usr/ucb/echo -n' 15339 else 15340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15341 as_echo_n_body='eval 15342 arg=$1; 15343 case $arg in #( 15344 *"$as_nl"*) 15345 expr "X$arg" : "X\\(.*\\)$as_nl"; 15346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15347 esac; 15348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15349 ' 15350 export as_echo_n_body 15351 as_echo_n='sh -c $as_echo_n_body as_echo' 15352 fi 15353 export as_echo_body 15354 as_echo='sh -c $as_echo_body as_echo' 15355 fi 15356 15357 # The user is always right. 15358 if test "${PATH_SEPARATOR+set}" != set; then 15359 PATH_SEPARATOR=: 15360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15362 PATH_SEPARATOR=';' 15363 } 15364 fi 15365 15366 15367 # IFS 15368 # We need space, tab and new line, in precisely that order. Quoting is 15369 # there to prevent editors from complaining about space-tab. 15370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15371 # splitting by setting IFS to empty value.) 15372 IFS=" "" $as_nl" 15373 15374 # Find who we are. Look in the path if we contain no directory separator. 15375 as_myself= 15376 case $0 in #(( 15377 *[\\/]* ) as_myself=$0 ;; 15378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15379 for as_dir in $PATH 15380 do 15381 IFS=$as_save_IFS 15382 test -z "$as_dir" && as_dir=. 15383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15384 done 15385 IFS=$as_save_IFS 15386 15387 ;; 15388 esac 15389 # We did not find ourselves, most probably we were run as `sh COMMAND' 15390 # in which case we are not to be found in the path. 15391 if test "x$as_myself" = x; then 15392 as_myself=$0 15393 fi 15394 if test ! -f "$as_myself"; then 15395 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15396 exit 1 15397 fi 15398 15399 # Unset variables that we do not need and which cause bugs (e.g. in 15400 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15401 # suppresses any "Segmentation fault" message there. '((' could 15402 # trigger a bug in pdksh 5.2.14. 15403 for as_var in BASH_ENV ENV MAIL MAILPATH 15404 do eval test x\${$as_var+set} = xset \ 15405 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15406 done 15407 PS1='$ ' 15408 PS2='> ' 15409 PS4='+ ' 15410 15411 # NLS nuisances. 15412 LC_ALL=C 15413 export LC_ALL 15414 LANGUAGE=C 15415 export LANGUAGE 15416 15417 # CDPATH. 15418 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15419 15420 15421 # as_fn_error STATUS ERROR [LINENO LOG_FD] 15422 # ---------------------------------------- 15423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15425 # script with STATUS, using 1 if that was 0. 15426 as_fn_error () 15427 { 15428 as_status=$1; test $as_status -eq 0 && as_status=1 15429 if test "$4"; then 15430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15432 fi 15433 $as_echo "$as_me: error: $2" >&2 15434 as_fn_exit $as_status 15435 } # as_fn_error 15436 15437 15438 # as_fn_set_status STATUS 15439 # ----------------------- 15440 # Set $? to STATUS, without forking. 15441 as_fn_set_status () 15442 { 15443 return $1 15444 } # as_fn_set_status 15445 15446 # as_fn_exit STATUS 15447 # ----------------- 15448 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15449 as_fn_exit () 15450 { 15451 set +e 15452 as_fn_set_status $1 15453 exit $1 15454 } # as_fn_exit 15455 15456 # as_fn_unset VAR 15457 # --------------- 15458 # Portably unset VAR. 15459 as_fn_unset () 15460 { 15461 { eval $1=; unset $1;} 15462 } 15463 as_unset=as_fn_unset 15464 # as_fn_append VAR VALUE 15465 # ---------------------- 15466 # Append the text in VALUE to the end of the definition contained in VAR. Take 15467 # advantage of any shell optimizations that allow amortized linear growth over 15468 # repeated appends, instead of the typical quadratic growth present in naive 15469 # implementations. 15470 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15471 eval 'as_fn_append () 15472 { 15473 eval $1+=\$2 15474 }' 15475 else 15476 as_fn_append () 15477 { 15478 eval $1=\$$1\$2 15479 } 15480 fi # as_fn_append 15481 15482 # as_fn_arith ARG... 15483 # ------------------ 15484 # Perform arithmetic evaluation on the ARGs, and store the result in the 15485 # global $as_val. Take advantage of shells that can avoid forks. The arguments 15486 # must be portable across $(()) and expr. 15487 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15488 eval 'as_fn_arith () 15489 { 15490 as_val=$(( $* )) 15491 }' 15492 else 15493 as_fn_arith () 15494 { 15495 as_val=`expr "$@" || test $? -eq 1` 15496 } 15497 fi # as_fn_arith 15498 15499 15500 if expr a : '\(a\)' >/dev/null 2>&1 && 15501 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15502 as_expr=expr 15503 else 15504 as_expr=false 15505 fi 15506 15507 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15508 as_basename=basename 15509 else 15510 as_basename=false 15511 fi 15512 15513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15514 as_dirname=dirname 15515 else 15516 as_dirname=false 15517 fi 15518 15519 as_me=`$as_basename -- "$0" || 15520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15521 X"$0" : 'X\(//\)$' \| \ 15522 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15523 $as_echo X/"$0" | 15524 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15525 s//\1/ 15526 q 15527 } 15528 /^X\/\(\/\/\)$/{ 15529 s//\1/ 15530 q 15531 } 15532 /^X\/\(\/\).*/{ 15533 s//\1/ 15534 q 15535 } 15536 s/.*/./; q'` 15537 15538 # Avoid depending upon Character Ranges. 15539 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15542 as_cr_digits='0123456789' 15543 as_cr_alnum=$as_cr_Letters$as_cr_digits 15544 15545 ECHO_C= ECHO_N= ECHO_T= 15546 case `echo -n x` in #((((( 15547 -n*) 15548 case `echo 'xy\c'` in 15549 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15550 xy) ECHO_C='\c';; 15551 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15552 ECHO_T=' ';; 15553 esac;; 15554 *) 15555 ECHO_N='-n';; 15556 esac 15557 15558 rm -f conf$$ conf$$.exe conf$$.file 15559 if test -d conf$$.dir; then 15560 rm -f conf$$.dir/conf$$.file 15561 else 15562 rm -f conf$$.dir 15563 mkdir conf$$.dir 2>/dev/null 15564 fi 15565 if (echo >conf$$.file) 2>/dev/null; then 15566 if ln -s conf$$.file conf$$ 2>/dev/null; then 15567 as_ln_s='ln -s' 15568 # ... but there are two gotchas: 15569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15571 # In both cases, we have to default to `cp -pR'. 15572 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15573 as_ln_s='cp -pR' 15574 elif ln conf$$.file conf$$ 2>/dev/null; then 15575 as_ln_s=ln 15576 else 15577 as_ln_s='cp -pR' 15578 fi 15579 else 15580 as_ln_s='cp -pR' 15581 fi 15582 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15583 rmdir conf$$.dir 2>/dev/null 15584 15585 15586 # as_fn_mkdir_p 15587 # ------------- 15588 # Create "$as_dir" as a directory, including parents if necessary. 15589 as_fn_mkdir_p () 15590 { 15591 15592 case $as_dir in #( 15593 -*) as_dir=./$as_dir;; 15594 esac 15595 test -d "$as_dir" || eval $as_mkdir_p || { 15596 as_dirs= 15597 while :; do 15598 case $as_dir in #( 15599 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15600 *) as_qdir=$as_dir;; 15601 esac 15602 as_dirs="'$as_qdir' $as_dirs" 15603 as_dir=`$as_dirname -- "$as_dir" || 15604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15605 X"$as_dir" : 'X\(//\)[^/]' \| \ 15606 X"$as_dir" : 'X\(//\)$' \| \ 15607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15608 $as_echo X"$as_dir" | 15609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15610 s//\1/ 15611 q 15612 } 15613 /^X\(\/\/\)[^/].*/{ 15614 s//\1/ 15615 q 15616 } 15617 /^X\(\/\/\)$/{ 15618 s//\1/ 15619 q 15620 } 15621 /^X\(\/\).*/{ 15622 s//\1/ 15623 q 15624 } 15625 s/.*/./; q'` 15626 test -d "$as_dir" && break 15627 done 15628 test -z "$as_dirs" || eval "mkdir $as_dirs" 15629 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15630 15631 15632 } # as_fn_mkdir_p 15633 if mkdir -p . 2>/dev/null; then 15634 as_mkdir_p='mkdir -p "$as_dir"' 15635 else 15636 test -d ./-p && rmdir ./-p 15637 as_mkdir_p=false 15638 fi 15639 15640 15641 # as_fn_executable_p FILE 15642 # ----------------------- 15643 # Test if FILE is an executable regular file. 15644 as_fn_executable_p () 15645 { 15646 test -f "$1" && test -x "$1" 15647 } # as_fn_executable_p 15648 as_test_x='test -x' 15649 as_executable_p=as_fn_executable_p 15650 15651 # Sed expression to map a string onto a valid CPP name. 15652 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15653 15654 # Sed expression to map a string onto a valid variable name. 15655 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15656 15657 15658 exec 6>&1 15659 ## ----------------------------------- ## 15660 ## Main body of $CONFIG_STATUS script. ## 15661 ## ----------------------------------- ## 15662 _ASEOF 15663 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15664 15665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15666 # Save the log message, to keep $0 and so on meaningful, and to 15667 # report actual input values of CONFIG_FILES etc. instead of their 15668 # values after options handling. 15669 ac_log=" 15670 This file was extended by python $as_me 2.7, which was 15671 generated by GNU Autoconf 2.69. Invocation command line was 15672 15673 CONFIG_FILES = $CONFIG_FILES 15674 CONFIG_HEADERS = $CONFIG_HEADERS 15675 CONFIG_LINKS = $CONFIG_LINKS 15676 CONFIG_COMMANDS = $CONFIG_COMMANDS 15677 $ $0 $@ 15678 15679 on `(hostname || uname -n) 2>/dev/null | sed 1q` 15680 " 15681 15682 _ACEOF 15683 15684 case $ac_config_files in *" 15685 "*) set x $ac_config_files; shift; ac_config_files=$*;; 15686 esac 15687 15688 case $ac_config_headers in *" 15689 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15690 esac 15691 15692 15693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15694 # Files that config.status was made for. 15695 config_files="$ac_config_files" 15696 config_headers="$ac_config_headers" 15697 15698 _ACEOF 15699 15700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15701 ac_cs_usage="\ 15702 \`$as_me' instantiates files and other configuration actions 15703 from templates according to the current configuration. Unless the files 15704 and actions are specified as TAGs, all are instantiated by default. 15705 15706 Usage: $0 [OPTION]... [TAG]... 15707 15708 -h, --help print this help, then exit 15709 -V, --version print version number and configuration settings, then exit 15710 --config print configuration, then exit 15711 -q, --quiet, --silent 15712 do not print progress messages 15713 -d, --debug don't remove temporary files 15714 --recheck update $as_me by reconfiguring in the same conditions 15715 --file=FILE[:TEMPLATE] 15716 instantiate the configuration file FILE 15717 --header=FILE[:TEMPLATE] 15718 instantiate the configuration header FILE 15719 15720 Configuration files: 15721 $config_files 15722 15723 Configuration headers: 15724 $config_headers 15725 15726 Report bugs to <https://bugs.python.org/>." 15727 15728 _ACEOF 15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15730 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15731 ac_cs_version="\\ 15732 python config.status 2.7 15733 configured by $0, generated by GNU Autoconf 2.69, 15734 with options \\"\$ac_cs_config\\" 15735 15736 Copyright (C) 2012 Free Software Foundation, Inc. 15737 This config.status script is free software; the Free Software Foundation 15738 gives unlimited permission to copy, distribute and modify it." 15739 15740 ac_pwd='$ac_pwd' 15741 srcdir='$srcdir' 15742 INSTALL='$INSTALL' 15743 MKDIR_P='$MKDIR_P' 15744 test -n "\$AWK" || AWK=awk 15745 _ACEOF 15746 15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15748 # The default lists apply if the user does not specify any file. 15749 ac_need_defaults=: 15750 while test $# != 0 15751 do 15752 case $1 in 15753 --*=?*) 15754 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15756 ac_shift=: 15757 ;; 15758 --*=) 15759 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15760 ac_optarg= 15761 ac_shift=: 15762 ;; 15763 *) 15764 ac_option=$1 15765 ac_optarg=$2 15766 ac_shift=shift 15767 ;; 15768 esac 15769 15770 case $ac_option in 15771 # Handling of the options. 15772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15773 ac_cs_recheck=: ;; 15774 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15775 $as_echo "$ac_cs_version"; exit ;; 15776 --config | --confi | --conf | --con | --co | --c ) 15777 $as_echo "$ac_cs_config"; exit ;; 15778 --debug | --debu | --deb | --de | --d | -d ) 15779 debug=: ;; 15780 --file | --fil | --fi | --f ) 15781 $ac_shift 15782 case $ac_optarg in 15783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15784 '') as_fn_error $? "missing file argument" ;; 15785 esac 15786 as_fn_append CONFIG_FILES " '$ac_optarg'" 15787 ac_need_defaults=false;; 15788 --header | --heade | --head | --hea ) 15789 $ac_shift 15790 case $ac_optarg in 15791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15792 esac 15793 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15794 ac_need_defaults=false;; 15795 --he | --h) 15796 # Conflict between --help and --header 15797 as_fn_error $? "ambiguous option: \`$1' 15798 Try \`$0 --help' for more information.";; 15799 --help | --hel | -h ) 15800 $as_echo "$ac_cs_usage"; exit ;; 15801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15802 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15803 ac_cs_silent=: ;; 15804 15805 # This is an error. 15806 -*) as_fn_error $? "unrecognized option: \`$1' 15807 Try \`$0 --help' for more information." ;; 15808 15809 *) as_fn_append ac_config_targets " $1" 15810 ac_need_defaults=false ;; 15811 15812 esac 15813 shift 15814 done 15815 15816 ac_configure_extra_args= 15817 15818 if $ac_cs_silent; then 15819 exec 6>/dev/null 15820 ac_configure_extra_args="$ac_configure_extra_args --silent" 15821 fi 15822 15823 _ACEOF 15824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15825 if \$ac_cs_recheck; then 15826 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15827 shift 15828 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15829 CONFIG_SHELL='$SHELL' 15830 export CONFIG_SHELL 15831 exec "\$@" 15832 fi 15833 15834 _ACEOF 15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15836 exec 5>>config.log 15837 { 15838 echo 15839 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15840 ## Running $as_me. ## 15841 _ASBOX 15842 $as_echo "$ac_log" 15843 } >&5 15844 15845 _ACEOF 15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15847 _ACEOF 15848 15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15850 15851 # Handling of arguments. 15852 for ac_config_target in $ac_config_targets 15853 do 15854 case $ac_config_target in 15855 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 15856 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 15857 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 15858 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; 15859 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 15860 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 15861 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 15862 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; 15863 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 15864 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 15865 15866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15867 esac 15868 done 15869 15870 15871 # If the user did not use the arguments to specify the items to instantiate, 15872 # then the envvar interface is used. Set only those that are not. 15873 # We use the long form for the default assignment because of an extremely 15874 # bizarre bug on SunOS 4.1.3. 15875 if $ac_need_defaults; then 15876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15878 fi 15879 15880 # Have a temporary directory for convenience. Make it in the build tree 15881 # simply because there is no reason against having it here, and in addition, 15882 # creating and moving files from /tmp can sometimes cause problems. 15883 # Hook for its removal unless debugging. 15884 # Note that there is a small window in which the directory will not be cleaned: 15885 # after its creation but before its name has been assigned to `$tmp'. 15886 $debug || 15887 { 15888 tmp= ac_tmp= 15889 trap 'exit_status=$? 15890 : "${ac_tmp:=$tmp}" 15891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15892 ' 0 15893 trap 'as_fn_exit 1' 1 2 13 15 15894 } 15895 # Create a (secure) tmp directory for tmp files. 15896 15897 { 15898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15899 test -d "$tmp" 15900 } || 15901 { 15902 tmp=./conf$$-$RANDOM 15903 (umask 077 && mkdir "$tmp") 15904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15905 ac_tmp=$tmp 15906 15907 # Set up the scripts for CONFIG_FILES section. 15908 # No need to generate them if there are no CONFIG_FILES. 15909 # This happens for instance with `./config.status config.h'. 15910 if test -n "$CONFIG_FILES"; then 15911 15912 15913 ac_cr=`echo X | tr X '\015'` 15914 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15915 # But we know of no other shell where ac_cr would be empty at this 15916 # point, so we can use a bashism as a fallback. 15917 if test "x$ac_cr" = x; then 15918 eval ac_cr=\$\'\\r\' 15919 fi 15920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15922 ac_cs_awk_cr='\\r' 15923 else 15924 ac_cs_awk_cr=$ac_cr 15925 fi 15926 15927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15928 _ACEOF 15929 15930 15931 { 15932 echo "cat >conf$$subs.awk <<_ACEOF" && 15933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15934 echo "_ACEOF" 15935 } >conf$$subs.sh || 15936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15938 ac_delim='%!_!# ' 15939 for ac_last_try in false false false false false :; do 15940 . ./conf$$subs.sh || 15941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15942 15943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15944 if test $ac_delim_n = $ac_delim_num; then 15945 break 15946 elif $ac_last_try; then 15947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15948 else 15949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15950 fi 15951 done 15952 rm -f conf$$subs.sh 15953 15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15956 _ACEOF 15957 sed -n ' 15958 h 15959 s/^/S["/; s/!.*/"]=/ 15960 p 15961 g 15962 s/^[^!]*!// 15963 :repl 15964 t repl 15965 s/'"$ac_delim"'$// 15966 t delim 15967 :nl 15968 h 15969 s/\(.\{148\}\)..*/\1/ 15970 t more1 15971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15972 p 15973 n 15974 b repl 15975 :more1 15976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15977 p 15978 g 15979 s/.\{148\}// 15980 t nl 15981 :delim 15982 h 15983 s/\(.\{148\}\)..*/\1/ 15984 t more2 15985 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15986 p 15987 b 15988 :more2 15989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15990 p 15991 g 15992 s/.\{148\}// 15993 t delim 15994 ' <conf$$subs.awk | sed ' 15995 /^[^""]/{ 15996 N 15997 s/\n// 15998 } 15999 ' >>$CONFIG_STATUS || ac_write_fail=1 16000 rm -f conf$$subs.awk 16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16002 _ACAWK 16003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16004 for (key in S) S_is_set[key] = 1 16005 FS = "" 16006 16007 } 16008 { 16009 line = $ 0 16010 nfields = split(line, field, "@") 16011 substed = 0 16012 len = length(field[1]) 16013 for (i = 2; i < nfields; i++) { 16014 key = field[i] 16015 keylen = length(key) 16016 if (S_is_set[key]) { 16017 value = S[key] 16018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16019 len += length(value) + length(field[++i]) 16020 substed = 1 16021 } else 16022 len += 1 + keylen 16023 } 16024 16025 print line 16026 } 16027 16028 _ACAWK 16029 _ACEOF 16030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16033 else 16034 cat 16035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16037 _ACEOF 16038 16039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16041 # trailing colons and then remove the whole line if VPATH becomes empty 16042 # (actually we leave an empty line to preserve line numbers). 16043 if test "x$srcdir" = x.; then 16044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16045 h 16046 s/// 16047 s/^/:/ 16048 s/[ ]*$/:/ 16049 s/:\$(srcdir):/:/g 16050 s/:\${srcdir}:/:/g 16051 s/:@srcdir@:/:/g 16052 s/^:*// 16053 s/:*$// 16054 x 16055 s/\(=[ ]*\).*/\1/ 16056 G 16057 s/\n// 16058 s/^[^=]*=[ ]*$// 16059 }' 16060 fi 16061 16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16063 fi # test -n "$CONFIG_FILES" 16064 16065 # Set up the scripts for CONFIG_HEADERS section. 16066 # No need to generate them if there are no CONFIG_HEADERS. 16067 # This happens for instance with `./config.status Makefile'. 16068 if test -n "$CONFIG_HEADERS"; then 16069 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16070 BEGIN { 16071 _ACEOF 16072 16073 # Transform confdefs.h into an awk script `defines.awk', embedded as 16074 # here-document in config.status, that substitutes the proper values into 16075 # config.h.in to produce config.h. 16076 16077 # Create a delimiter string that does not exist in confdefs.h, to ease 16078 # handling of long lines. 16079 ac_delim='%!_!# ' 16080 for ac_last_try in false false :; do 16081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16082 if test -z "$ac_tt"; then 16083 break 16084 elif $ac_last_try; then 16085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16086 else 16087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16088 fi 16089 done 16090 16091 # For the awk script, D is an array of macro values keyed by name, 16092 # likewise P contains macro parameters if any. Preserve backslash 16093 # newline sequences. 16094 16095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16096 sed -n ' 16097 s/.\{148\}/&'"$ac_delim"'/g 16098 t rset 16099 :rset 16100 s/^[ ]*#[ ]*define[ ][ ]*/ / 16101 t def 16102 d 16103 :def 16104 s/\\$// 16105 t bsnl 16106 s/["\\]/\\&/g 16107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16108 D["\1"]=" \3"/p 16109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16110 d 16111 :bsnl 16112 s/["\\]/\\&/g 16113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16114 D["\1"]=" \3\\\\\\n"\\/p 16115 t cont 16116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16117 t cont 16118 d 16119 :cont 16120 n 16121 s/.\{148\}/&'"$ac_delim"'/g 16122 t clear 16123 :clear 16124 s/\\$// 16125 t bsnlc 16126 s/["\\]/\\&/g; s/^/"/; s/$/"/p 16127 d 16128 :bsnlc 16129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16130 b cont 16131 ' <confdefs.h | sed ' 16132 s/'"$ac_delim"'/"\\\ 16133 "/g' >>$CONFIG_STATUS || ac_write_fail=1 16134 16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16136 for (key in D) D_is_set[key] = 1 16137 FS = "" 16138 } 16139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16140 line = \$ 0 16141 split(line, arg, " ") 16142 if (arg[1] == "#") { 16143 defundef = arg[2] 16144 mac1 = arg[3] 16145 } else { 16146 defundef = substr(arg[1], 2) 16147 mac1 = arg[2] 16148 } 16149 split(mac1, mac2, "(") #) 16150 macro = mac2[1] 16151 prefix = substr(line, 1, index(line, defundef) - 1) 16152 if (D_is_set[macro]) { 16153 # Preserve the white space surrounding the "#". 16154 print prefix "define", macro P[macro] D[macro] 16155 next 16156 } else { 16157 # Replace #undef with comments. This is necessary, for example, 16158 # in the case of _POSIX_SOURCE, which is predefined and required 16159 # on some systems where configure will not decide to define it. 16160 if (defundef == "undef") { 16161 print "/*", prefix defundef, macro, "*/" 16162 next 16163 } 16164 } 16165 } 16166 { print } 16167 _ACAWK 16168 _ACEOF 16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16171 fi # test -n "$CONFIG_HEADERS" 16172 16173 16174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 16175 shift 16176 for ac_tag 16177 do 16178 case $ac_tag in 16179 :[FHLC]) ac_mode=$ac_tag; continue;; 16180 esac 16181 case $ac_mode$ac_tag in 16182 :[FHL]*:*);; 16183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16184 :[FH]-) ac_tag=-:-;; 16185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16186 esac 16187 ac_save_IFS=$IFS 16188 IFS=: 16189 set x $ac_tag 16190 IFS=$ac_save_IFS 16191 shift 16192 ac_file=$1 16193 shift 16194 16195 case $ac_mode in 16196 :L) ac_source=$1;; 16197 :[FH]) 16198 ac_file_inputs= 16199 for ac_f 16200 do 16201 case $ac_f in 16202 -) ac_f="$ac_tmp/stdin";; 16203 *) # Look for the file first in the build tree, then in the source tree 16204 # (if the path is not absolute). The absolute path cannot be DOS-style, 16205 # because $ac_f cannot contain `:'. 16206 test -f "$ac_f" || 16207 case $ac_f in 16208 [\\/$]*) false;; 16209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16210 esac || 16211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16212 esac 16213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16214 as_fn_append ac_file_inputs " '$ac_f'" 16215 done 16216 16217 # Let's still pretend it is `configure' which instantiates (i.e., don't 16218 # use $as_me), people would be surprised to read: 16219 # /* config.h. Generated by config.status. */ 16220 configure_input='Generated from '` 16221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16222 `' by configure.' 16223 if test x"$ac_file" != x-; then 16224 configure_input="$ac_file. $configure_input" 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16226 $as_echo "$as_me: creating $ac_file" >&6;} 16227 fi 16228 # Neutralize special characters interpreted by sed in replacement strings. 16229 case $configure_input in #( 16230 *\&* | *\|* | *\\* ) 16231 ac_sed_conf_input=`$as_echo "$configure_input" | 16232 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16233 *) ac_sed_conf_input=$configure_input;; 16234 esac 16235 16236 case $ac_tag in 16237 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16239 esac 16240 ;; 16241 esac 16242 16243 ac_dir=`$as_dirname -- "$ac_file" || 16244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16245 X"$ac_file" : 'X\(//\)[^/]' \| \ 16246 X"$ac_file" : 'X\(//\)$' \| \ 16247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16248 $as_echo X"$ac_file" | 16249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16250 s//\1/ 16251 q 16252 } 16253 /^X\(\/\/\)[^/].*/{ 16254 s//\1/ 16255 q 16256 } 16257 /^X\(\/\/\)$/{ 16258 s//\1/ 16259 q 16260 } 16261 /^X\(\/\).*/{ 16262 s//\1/ 16263 q 16264 } 16265 s/.*/./; q'` 16266 as_dir="$ac_dir"; as_fn_mkdir_p 16267 ac_builddir=. 16268 16269 case "$ac_dir" in 16270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16271 *) 16272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16273 # A ".." for each directory in $ac_dir_suffix. 16274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16275 case $ac_top_builddir_sub in 16276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16278 esac ;; 16279 esac 16280 ac_abs_top_builddir=$ac_pwd 16281 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16282 # for backward compatibility: 16283 ac_top_builddir=$ac_top_build_prefix 16284 16285 case $srcdir in 16286 .) # We are building in place. 16287 ac_srcdir=. 16288 ac_top_srcdir=$ac_top_builddir_sub 16289 ac_abs_top_srcdir=$ac_pwd ;; 16290 [\\/]* | ?:[\\/]* ) # Absolute name. 16291 ac_srcdir=$srcdir$ac_dir_suffix; 16292 ac_top_srcdir=$srcdir 16293 ac_abs_top_srcdir=$srcdir ;; 16294 *) # Relative name. 16295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16296 ac_top_srcdir=$ac_top_build_prefix$srcdir 16297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16298 esac 16299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16300 16301 16302 case $ac_mode in 16303 :F) 16304 # 16305 # CONFIG_FILE 16306 # 16307 16308 case $INSTALL in 16309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16311 esac 16312 ac_MKDIR_P=$MKDIR_P 16313 case $MKDIR_P in 16314 [\\/$]* | ?:[\\/]* ) ;; 16315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16316 esac 16317 _ACEOF 16318 16319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16320 # If the template does not know about datarootdir, expand it. 16321 # FIXME: This hack should be removed a few years after 2.60. 16322 ac_datarootdir_hack=; ac_datarootdir_seen= 16323 ac_sed_dataroot=' 16324 /datarootdir/ { 16325 p 16326 q 16327 } 16328 /@datadir@/p 16329 /@docdir@/p 16330 /@infodir@/p 16331 /@localedir@/p 16332 /@mandir@/p' 16333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16334 *datarootdir*) ac_datarootdir_seen=yes;; 16335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16338 _ACEOF 16339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16340 ac_datarootdir_hack=' 16341 s&@datadir@&$datadir&g 16342 s&@docdir@&$docdir&g 16343 s&@infodir@&$infodir&g 16344 s&@localedir@&$localedir&g 16345 s&@mandir@&$mandir&g 16346 s&\\\${datarootdir}&$datarootdir&g' ;; 16347 esac 16348 _ACEOF 16349 16350 # Neutralize VPATH when `$srcdir' = `.'. 16351 # Shell code in configure.ac might set extrasub. 16352 # FIXME: do we really want to maintain this feature? 16353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16354 ac_sed_extra="$ac_vpsub 16355 $extrasub 16356 _ACEOF 16357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16358 :t 16359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16360 s|@configure_input@|$ac_sed_conf_input|;t t 16361 s&@top_builddir@&$ac_top_builddir_sub&;t t 16362 s&@top_build_prefix@&$ac_top_build_prefix&;t t 16363 s&@srcdir@&$ac_srcdir&;t t 16364 s&@abs_srcdir@&$ac_abs_srcdir&;t t 16365 s&@top_srcdir@&$ac_top_srcdir&;t t 16366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16367 s&@builddir@&$ac_builddir&;t t 16368 s&@abs_builddir@&$ac_abs_builddir&;t t 16369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16370 s&@INSTALL@&$ac_INSTALL&;t t 16371 s&@MKDIR_P@&$ac_MKDIR_P&;t t 16372 $ac_datarootdir_hack 16373 " 16374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16376 16377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16380 "$ac_tmp/out"`; test -z "$ac_out"; } && 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16382 which seems to be undefined. Please make sure it is defined" >&5 16383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16384 which seems to be undefined. Please make sure it is defined" >&2;} 16385 16386 rm -f "$ac_tmp/stdin" 16387 case $ac_file in 16388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16390 esac \ 16391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16392 ;; 16393 :H) 16394 # 16395 # CONFIG_HEADER 16396 # 16397 if test x"$ac_file" != x-; then 16398 { 16399 $as_echo "/* $configure_input */" \ 16400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16401 } >"$ac_tmp/config.h" \ 16402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16405 $as_echo "$as_me: $ac_file is unchanged" >&6;} 16406 else 16407 rm -f "$ac_file" 16408 mv "$ac_tmp/config.h" "$ac_file" \ 16409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16410 fi 16411 else 16412 $as_echo "/* $configure_input */" \ 16413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16414 || as_fn_error $? "could not create -" "$LINENO" 5 16415 fi 16416 ;; 16417 16418 16419 esac 16420 16421 16422 case $ac_file$ac_mode in 16423 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 16424 16425 esac 16426 done # for ac_tag 16427 16428 16429 as_fn_exit 0 16430 _ACEOF 16431 ac_clean_files=$ac_clean_files_save 16432 16433 test $ac_write_fail = 0 || 16434 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16435 16436 16437 # configure is writing to config.log, and then calls config.status. 16438 # config.status does its own redirection, appending to config.log. 16439 # Unfortunately, on DOS this fails, as config.log is still kept open 16440 # by configure, so config.status won't be able to write to it; its 16441 # output is simply discarded. So we exec the FD to /dev/null, 16442 # effectively closing config.log, so it can be properly (re)opened and 16443 # appended to by config.status. When coming back to configure, we 16444 # need to make the FD available again. 16445 if test "$no_create" != yes; then 16446 ac_cs_success=: 16447 ac_config_status_args= 16448 test "$silent" = yes && 16449 ac_config_status_args="$ac_config_status_args --quiet" 16450 exec 5>/dev/null 16451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16452 exec 5>>config.log 16453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16454 # would make configure fail if this is the last instruction. 16455 $ac_cs_success || as_fn_exit 1 16456 fi 16457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16460 fi 16461 16462 16463 echo "creating Modules/Setup" 16464 if test ! -f Modules/Setup 16465 then 16466 cp $srcdir/Modules/Setup.dist Modules/Setup 16467 fi 16468 16469 echo "creating Modules/Setup.local" 16470 if test ! -f Modules/Setup.local 16471 then 16472 echo "# Edit this file for local setup changes" >Modules/Setup.local 16473 fi 16474 16475 echo "creating Makefile" 16476 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 16477 -s Modules Modules/Setup.config \ 16478 Modules/Setup.local Modules/Setup 16479 16480 case $ac_sys_system in 16481 BeOS) 16482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16483 16484 Support for BeOS is deprecated as of Python 2.6. 16485 See PEP 11 for the gory details. 16486 " >&5 16487 $as_echo "$as_me: WARNING: 16488 16489 Support for BeOS is deprecated as of Python 2.6. 16490 See PEP 11 for the gory details. 16491 " >&2;} 16492 ;; 16493 *) ;; 16494 esac 16495 16496 mv config.c Modules 16497 16498 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 16499 echo "" >&6 16500 echo "" >&6 16501 echo "If you want a release build with all optimizations active (LTO, PGO, etc)," 16502 echo "please run ./configure --enable-optimizations" >&6 16503 echo "" >&6 16504 echo "" >&6 16505 fi 16506