1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622exec 623ruby_pc 624PACKAGE 625BUILTIN_TRANSOBJS 626BUILTIN_TRANSSRCS 627BUILTIN_ENCOBJS 628USE_RUBYGEMS 629MANTYPE 630NROFF 631vendorarchhdrdir 632sitearchhdrdir 633rubyarchhdrdir 634vendorhdrdir 635sitehdrdir 636rubyhdrdir 637UNIVERSAL_INTS 638UNIVERSAL_ARCHNAMES 639configure_args 640vendorarchdir 641vendorlibdir 642vendordir 643sitearchdir 644sitelibdir 645sitedir 646rubyarchdir 647rubylibdir 648ruby_version 649sitearch 650arch 651sitearchincludedir 652archincludedir 653sitearchlibdir 654archlibdir 655RI_BASE_NAME 656ridir 657rubysitearchprefix 658rubyarchprefix 659rubylibprefix 660MAKEFILES 661PLATFORM_DIR 662THREAD_MODEL 663MINIOBJS 664SYMBOL_PREFIX 665EXPORT_PREFIX 666COMMON_HEADERS 667COMMON_MACROS 668COMMON_LIBS 669MAINLIBS 670ENABLE_SHARED 671DLDLIBS 672SOLIBS 673LIBRUBYARG_SHARED 674LIBRUBYARG_STATIC 675LIBRUBYARG 676LIBRUBY 677LIBRUBY_ALIASES 678LIBRUBY_SO 679LIBRUBY_A 680RUBY_SO_NAME 681RUBYW_INSTALL_NAME 682rubyw_install_name 683RUBY_INSTALL_NAME 684LIBRUBY_DLDFLAGS 685LIBRUBY_LDSHARED 686EXTDLDFLAGS 687EXTLDFLAGS 688XLDFLAGS 689XCFLAGS 690strict_warnflags 691warnflags 692debugflags 693optflags 694cxxflags 695cflags 696cppflags 697NULLCMD 698DLNOBJ 699INSTALLDOC 700CAPITARGET 701RDOCTARGET 702LIBRUBY_A_OBJS 703DTRACE_GLOMMED_OBJ 704DTRACE_OBJ 705DTRACE_EXT 706EXECUTABLE_EXTS 707ARCHFILE 708LIBRUBY_RELATIVE 709EXTOUT 710XRUBY 711RUNRUBY 712RUNRUBY_COMMAND 713PREP 714BTESTRUBY 715MINIRUBY 716CROSS_COMPILING 717TEST_RUNNABLE 718XRUBY_RUBYHDRDIR 719XRUBY_RUBYLIBDIR 720XRUBY_LIBDIR 721setup 722EXTOBJS 723ENCOBJS 724EXTSTATIC 725STRIP 726TRY_LINK 727LIBPATHENV 728RPATHFLAG 729LIBPATHFLAG 730LINK_SO 731LIBEXT 732DLEXT2 733DLEXT 734LDSHAREDXX 735LDSHARED 736CCDLFLAGS 737STATIC 738ARCH_FLAG 739DLDFLAGS 740ALLOCA 741LIBOBJS 742codesign 743POSTLINK 744WERRORFLAG 745CHDIR 746RMALL 747RMDIRS 748RMDIR 749CP 750RM 751PKG_CONFIG 752PYTHON 753DOXYGEN 754DOT 755DTRACE 756MAKEDIRS 757MKDIR_P 758INSTALL_DATA 759INSTALL_SCRIPT 760INSTALL_PROGRAM 761SET_MAKE 762LN_S 763NM 764DLLWRAP 765WINDRES 766ac_ct_OBJCOPY 767OBJCOPY 768ac_ct_OBJDUMP 769OBJDUMP 770ASFLAGS 771AS 772AR 773RANLIB 774try_header 775COUTFLAG 776OUTFLAG 777CPPOUTFILE 778GNU_LD 779LD 780GCC 781EGREP 782GREP 783CPP 784ac_ct_CXX 785CXXFLAGS 786CXX 787OBJEXT 788EXEEXT 789CPPFLAGS 790LDFLAGS 791CFLAGS 792ac_ct_CC 793CC 794NACL_SDK_VARIANT 795NACL_SDK_ROOT 796NACL_TOOLCHAIN 797target_os 798target_vendor 799target_cpu 800target 801host_os 802host_vendor 803host_cpu 804host 805RUBY_VERSION_NAME 806RUBYW_BASE_NAME 807RUBY_BASE_NAME 808build_os 809build_vendor 810build_cpu 811build 812RUBY_RELEASE_DATE 813RUBY_PROGRAM_VERSION 814TEENY 815MINOR 816MAJOR 817BASERUBY 818target_alias 819host_alias 820build_alias 821LIBS 822ECHO_T 823ECHO_N 824ECHO_C 825DEFS 826mandir 827localedir 828libdir 829psdir 830pdfdir 831dvidir 832htmldir 833infodir 834docdir 835oldincludedir 836includedir 837localstatedir 838sharedstatedir 839sysconfdir 840datadir 841datarootdir 842libexecdir 843sbindir 844bindir 845program_transform_name 846prefix 847exec_prefix 848PACKAGE_URL 849PACKAGE_BUGREPORT 850PACKAGE_STRING 851PACKAGE_VERSION 852PACKAGE_TARNAME 853PACKAGE_NAME 854PATH_SEPARATOR 855SHELL' 856ac_subst_files='' 857ac_user_opts=' 858enable_option_checking 859with_baseruby 860with_gcc 861with_arch 862enable_load_relative 863with_newlib 864enable_werror 865with_winnt_ver 866enable_pthread 867enable_largefile 868with_setjmp_type 869enable_setreuid 870with_dln_a_out 871enable_rpath 872with_opt_dir 873with_valgrind 874with_ext 875with_out_ext 876with_static_linked_ext 877with_soname 878enable_shared 879enable_dtrace 880enable_install_doc 881enable_install_rdoc 882enable_install_capi 883enable_dln 884enable_debug_env 885enable_multiarch 886with_rubylibprefix 887with_rubyarchprefix 888with_rubysitearchprefix 889with_ridir 890with_ruby_version 891with_sitedir 892with_sitearchdir 893with_vendordir 894with_vendorarchdir 895with_search_path 896with_rubyhdrdir 897with_rubyarchhdrdir 898with_sitehdrdir 899with_sitearchhdrdir 900with_vendorhdrdir 901with_vendorarchhdrdir 902with_mantype 903enable_rubygems 904with_ruby_pc 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CXX 915CXXFLAGS 916CCC 917CPP' 918 919 920# Initialize some variables set by options. 921ac_init_help= 922ac_init_version=false 923ac_unrecognized_opts= 924ac_unrecognized_sep= 925# The variables have the same names as the options, with 926# dashes changed to underlines. 927cache_file=/dev/null 928exec_prefix=NONE 929no_create= 930no_recursion= 931prefix=NONE 932program_prefix=NONE 933program_suffix=NONE 934program_transform_name=s,x,x, 935silent= 936site= 937srcdir= 938verbose= 939x_includes=NONE 940x_libraries=NONE 941 942# Installation directory options. 943# These are left unexpanded so users can "make install exec_prefix=/foo" 944# and all the variables that are supposed to be based on exec_prefix 945# by default will actually change. 946# Use braces instead of parens because sh, perl, etc. also accept them. 947# (The list follows the same order as the GNU Coding Standards.) 948bindir='${exec_prefix}/bin' 949sbindir='${exec_prefix}/sbin' 950libexecdir='${exec_prefix}/libexec' 951datarootdir='${prefix}/share' 952datadir='${datarootdir}' 953sysconfdir='${prefix}/etc' 954sharedstatedir='${prefix}/com' 955localstatedir='${prefix}/var' 956includedir='${prefix}/include' 957oldincludedir='/usr/include' 958docdir='${datarootdir}/doc/${PACKAGE}' 959infodir='${datarootdir}/info' 960htmldir='${docdir}' 961dvidir='${docdir}' 962pdfdir='${docdir}' 963psdir='${docdir}' 964libdir='${exec_prefix}/lib' 965localedir='${datarootdir}/locale' 966mandir='${datarootdir}/man' 967 968ac_prev= 969ac_dashdash= 970for ac_option 971do 972 # If the previous option needs an argument, assign it. 973 if test -n "$ac_prev"; then 974 eval $ac_prev=\$ac_option 975 ac_prev= 976 continue 977 fi 978 979 case $ac_option in 980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 981 *=) ac_optarg= ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error $? "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=no ;; 1038 1039 -docdir | --docdir | --docdi | --doc | --do) 1040 ac_prev=docdir ;; 1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1042 docdir=$ac_optarg ;; 1043 1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1045 ac_prev=dvidir ;; 1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1047 dvidir=$ac_optarg ;; 1048 1049 -enable-* | --enable-*) 1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1051 # Reject names that are not valid shell variable names. 1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1053 as_fn_error $? "invalid feature name: $ac_useropt" 1054 ac_useropt_orig=$ac_useropt 1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1056 case $ac_user_opts in 1057 *" 1058"enable_$ac_useropt" 1059"*) ;; 1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1061 ac_unrecognized_sep=', ';; 1062 esac 1063 eval enable_$ac_useropt=\$ac_optarg ;; 1064 1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1067 | --exec | --exe | --ex) 1068 ac_prev=exec_prefix ;; 1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1071 | --exec=* | --exe=* | --ex=*) 1072 exec_prefix=$ac_optarg ;; 1073 1074 -gas | --gas | --ga | --g) 1075 # Obsolete; use --with-gas. 1076 with_gas=yes ;; 1077 1078 -help | --help | --hel | --he | -h) 1079 ac_init_help=long ;; 1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1081 ac_init_help=recursive ;; 1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1083 ac_init_help=short ;; 1084 1085 -host | --host | --hos | --ho) 1086 ac_prev=host_alias ;; 1087 -host=* | --host=* | --hos=* | --ho=*) 1088 host_alias=$ac_optarg ;; 1089 1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1091 ac_prev=htmldir ;; 1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1093 | --ht=*) 1094 htmldir=$ac_optarg ;; 1095 1096 -includedir | --includedir | --includedi | --included | --include \ 1097 | --includ | --inclu | --incl | --inc) 1098 ac_prev=includedir ;; 1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1100 | --includ=* | --inclu=* | --incl=* | --inc=*) 1101 includedir=$ac_optarg ;; 1102 1103 -infodir | --infodir | --infodi | --infod | --info | --inf) 1104 ac_prev=infodir ;; 1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1106 infodir=$ac_optarg ;; 1107 1108 -libdir | --libdir | --libdi | --libd) 1109 ac_prev=libdir ;; 1110 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1111 libdir=$ac_optarg ;; 1112 1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1114 | --libexe | --libex | --libe) 1115 ac_prev=libexecdir ;; 1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1117 | --libexe=* | --libex=* | --libe=*) 1118 libexecdir=$ac_optarg ;; 1119 1120 -localedir | --localedir | --localedi | --localed | --locale) 1121 ac_prev=localedir ;; 1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1123 localedir=$ac_optarg ;; 1124 1125 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1126 | --localstate | --localstat | --localsta | --localst | --locals) 1127 ac_prev=localstatedir ;; 1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1130 localstatedir=$ac_optarg ;; 1131 1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1133 ac_prev=mandir ;; 1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1135 mandir=$ac_optarg ;; 1136 1137 -nfp | --nfp | --nf) 1138 # Obsolete; use --without-fp. 1139 with_fp=no ;; 1140 1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1142 | --no-cr | --no-c | -n) 1143 no_create=yes ;; 1144 1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1147 no_recursion=yes ;; 1148 1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1151 | --oldin | --oldi | --old | --ol | --o) 1152 ac_prev=oldincludedir ;; 1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1156 oldincludedir=$ac_optarg ;; 1157 1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1159 ac_prev=prefix ;; 1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1161 prefix=$ac_optarg ;; 1162 1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1164 | --program-pre | --program-pr | --program-p) 1165 ac_prev=program_prefix ;; 1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1168 program_prefix=$ac_optarg ;; 1169 1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1171 | --program-suf | --program-su | --program-s) 1172 ac_prev=program_suffix ;; 1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1175 program_suffix=$ac_optarg ;; 1176 1177 -program-transform-name | --program-transform-name \ 1178 | --program-transform-nam | --program-transform-na \ 1179 | --program-transform-n | --program-transform- \ 1180 | --program-transform | --program-transfor \ 1181 | --program-transfo | --program-transf \ 1182 | --program-trans | --program-tran \ 1183 | --progr-tra | --program-tr | --program-t) 1184 ac_prev=program_transform_name ;; 1185 -program-transform-name=* | --program-transform-name=* \ 1186 | --program-transform-nam=* | --program-transform-na=* \ 1187 | --program-transform-n=* | --program-transform-=* \ 1188 | --program-transform=* | --program-transfor=* \ 1189 | --program-transfo=* | --program-transf=* \ 1190 | --program-trans=* | --program-tran=* \ 1191 | --progr-tra=* | --program-tr=* | --program-t=*) 1192 program_transform_name=$ac_optarg ;; 1193 1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1195 ac_prev=pdfdir ;; 1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1197 pdfdir=$ac_optarg ;; 1198 1199 -psdir | --psdir | --psdi | --psd | --ps) 1200 ac_prev=psdir ;; 1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1202 psdir=$ac_optarg ;; 1203 1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1205 | -silent | --silent | --silen | --sile | --sil) 1206 silent=yes ;; 1207 1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1209 ac_prev=sbindir ;; 1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1211 | --sbi=* | --sb=*) 1212 sbindir=$ac_optarg ;; 1213 1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1216 | --sharedst | --shareds | --shared | --share | --shar \ 1217 | --sha | --sh) 1218 ac_prev=sharedstatedir ;; 1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1222 | --sha=* | --sh=*) 1223 sharedstatedir=$ac_optarg ;; 1224 1225 -site | --site | --sit) 1226 ac_prev=site ;; 1227 -site=* | --site=* | --sit=*) 1228 site=$ac_optarg ;; 1229 1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1231 ac_prev=srcdir ;; 1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1233 srcdir=$ac_optarg ;; 1234 1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1236 | --syscon | --sysco | --sysc | --sys | --sy) 1237 ac_prev=sysconfdir ;; 1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1240 sysconfdir=$ac_optarg ;; 1241 1242 -target | --target | --targe | --targ | --tar | --ta | --t) 1243 ac_prev=target_alias ;; 1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1245 target_alias=$ac_optarg ;; 1246 1247 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1248 verbose=yes ;; 1249 1250 -version | --version | --versio | --versi | --vers | -V) 1251 ac_init_version=: ;; 1252 1253 -with-* | --with-*) 1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1255 # Reject names that are not valid shell variable names. 1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1257 as_fn_error $? "invalid package name: $ac_useropt" 1258 ac_useropt_orig=$ac_useropt 1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1260 case $ac_user_opts in 1261 *" 1262"with_$ac_useropt" 1263"*) ;; 1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1265 ac_unrecognized_sep=', ';; 1266 esac 1267 eval with_$ac_useropt=\$ac_optarg ;; 1268 1269 -without-* | --without-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 as_fn_error $? "invalid package name: $ac_useropt" 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278"with_$ac_useropt" 1279"*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=no ;; 1284 1285 --x) 1286 # Obsolete; use --with-x. 1287 with_x=yes ;; 1288 1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1290 | --x-incl | --x-inc | --x-in | --x-i) 1291 ac_prev=x_includes ;; 1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1294 x_includes=$ac_optarg ;; 1295 1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1298 ac_prev=x_libraries ;; 1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1301 x_libraries=$ac_optarg ;; 1302 1303 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1304Try \`$0 --help' for more information" 1305 ;; 1306 1307 *=*) 1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1309 # Reject names that are not valid shell variable names. 1310 case $ac_envvar in #( 1311 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1313 esac 1314 eval $ac_envvar=\$ac_optarg 1315 export $ac_envvar ;; 1316 1317 *) 1318 # FIXME: should be removed in autoconf 3.0. 1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1323 ;; 1324 1325 esac 1326done 1327 1328if test -n "$ac_prev"; then 1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1330 as_fn_error $? "missing argument to $ac_option" 1331fi 1332 1333if test -n "$ac_unrecognized_opts"; then 1334 case $enable_option_checking in 1335 no) ;; 1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1338 esac 1339fi 1340 1341# Check all directory arguments for consistency. 1342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1343 datadir sysconfdir sharedstatedir localstatedir includedir \ 1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1345 libdir localedir mandir 1346do 1347 eval ac_val=\$$ac_var 1348 # Remove trailing slashes. 1349 case $ac_val in 1350 */ ) 1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1352 eval $ac_var=\$ac_val;; 1353 esac 1354 # Be sure to have absolute directory names. 1355 case $ac_val in 1356 [\\/$]* | ?:[\\/]* ) continue;; 1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1358 esac 1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1360done 1361 1362# There might be people who depend on the old broken behavior: `$host' 1363# used to hold the argument of --host etc. 1364# FIXME: To remove some day. 1365build=$build_alias 1366host=$host_alias 1367target=$target_alias 1368 1369# FIXME: To remove some day. 1370if test "x$host_alias" != x; then 1371 if test "x$build_alias" = x; then 1372 cross_compiling=maybe 1373 elif test "x$build_alias" != "x$host_alias"; then 1374 cross_compiling=yes 1375 fi 1376fi 1377 1378ac_tool_prefix= 1379test -n "$host_alias" && ac_tool_prefix=$host_alias- 1380 1381test "$silent" = yes && exec 6>/dev/null 1382 1383 1384ac_pwd=`pwd` && test -n "$ac_pwd" && 1385ac_ls_di=`ls -di .` && 1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1387 as_fn_error $? "working directory cannot be determined" 1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1389 as_fn_error $? "pwd does not report name of working directory" 1390 1391 1392# Find the source files, if location was not specified. 1393if test -z "$srcdir"; then 1394 ac_srcdir_defaulted=yes 1395 # Try the directory containing this script, then the parent directory. 1396 ac_confdir=`$as_dirname -- "$as_myself" || 1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1398 X"$as_myself" : 'X\(//\)[^/]' \| \ 1399 X"$as_myself" : 'X\(//\)$' \| \ 1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1401$as_echo X"$as_myself" | 1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\/\)[^/].*/{ 1407 s//\1/ 1408 q 1409 } 1410 /^X\(\/\/\)$/{ 1411 s//\1/ 1412 q 1413 } 1414 /^X\(\/\).*/{ 1415 s//\1/ 1416 q 1417 } 1418 s/.*/./; q'` 1419 srcdir=$ac_confdir 1420 if test ! -r "$srcdir/$ac_unique_file"; then 1421 srcdir=.. 1422 fi 1423else 1424 ac_srcdir_defaulted=no 1425fi 1426if test ! -r "$srcdir/$ac_unique_file"; then 1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1429fi 1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1431ac_abs_confdir=`( 1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1433 pwd)` 1434# When building in place, set srcdir=. 1435if test "$ac_abs_confdir" = "$ac_pwd"; then 1436 srcdir=. 1437fi 1438# Remove unnecessary trailing slashes from srcdir. 1439# Double slashes in file names in object file debugging info 1440# mess up M-x gdb in Emacs. 1441case $srcdir in 1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1443esac 1444for ac_var in $ac_precious_vars; do 1445 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1446 eval ac_env_${ac_var}_value=\$${ac_var} 1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1448 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1449done 1450 1451# 1452# Report the --help message. 1453# 1454if test "$ac_init_help" = "long"; then 1455 # Omit some internal or obsolete options to make the list less imposing. 1456 # This message is too long to be a string in the A/UX 3.1 sh. 1457 cat <<_ACEOF 1458\`configure' configures this package to adapt to many kinds of systems. 1459 1460Usage: $0 [OPTION]... [VAR=VALUE]... 1461 1462To assign environment variables (e.g., CC, CFLAGS...), specify them as 1463VAR=VALUE. See below for descriptions of some of the useful variables. 1464 1465Defaults for the options are specified in brackets. 1466 1467Configuration: 1468 -h, --help display this help and exit 1469 --help=short display options specific to this package 1470 --help=recursive display the short help of all the included packages 1471 -V, --version display version information and exit 1472 -q, --quiet, --silent do not print \`checking ...' messages 1473 --cache-file=FILE cache test results in FILE [disabled] 1474 -C, --config-cache alias for \`--cache-file=config.cache' 1475 -n, --no-create do not create output files 1476 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1477 1478Installation directories: 1479 --prefix=PREFIX install architecture-independent files in PREFIX 1480 [$ac_default_prefix] 1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1482 [PREFIX] 1483 1484By default, \`make install' will install all the files in 1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1486an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1487for instance \`--prefix=\$HOME'. 1488 1489For better control, use the options below. 1490 1491Fine tuning of the installation directories: 1492 --bindir=DIR user executables [EPREFIX/bin] 1493 --sbindir=DIR system admin executables [EPREFIX/sbin] 1494 --libexecdir=DIR program executables [EPREFIX/libexec] 1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1498 --libdir=DIR object code libraries [EPREFIX/lib] 1499 --includedir=DIR C header files [PREFIX/include] 1500 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1503 --infodir=DIR info documentation [DATAROOTDIR/info] 1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1505 --mandir=DIR man documentation [DATAROOTDIR/man] 1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1507 --htmldir=DIR html documentation [DOCDIR] 1508 --dvidir=DIR dvi documentation [DOCDIR] 1509 --pdfdir=DIR pdf documentation [DOCDIR] 1510 --psdir=DIR ps documentation [DOCDIR] 1511_ACEOF 1512 1513 cat <<\_ACEOF 1514 1515Program names: 1516 --program-prefix=PREFIX prepend PREFIX to installed program names 1517 --program-suffix=SUFFIX append SUFFIX to installed program names 1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1519 1520System types: 1521 --build=BUILD configure for building on BUILD [guessed] 1522 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1523 --target=TARGET configure for building compilers for TARGET [HOST] 1524_ACEOF 1525fi 1526 1527if test -n "$ac_init_help"; then 1528 1529 cat <<\_ACEOF 1530 1531Optional Features: 1532 --disable-option-checking ignore unrecognized --enable/--with options 1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1535 --enable-load-relative resolve load paths at run time 1536 --disable-werror don't make warnings into errors even if a compiler 1537 support -Werror feature [disabled by default unless 1538 development version] 1539 --enable-pthread obsolete, and ignored 1540 --disable-largefile omit support for large files 1541 --enable-setreuid use setreuid()/setregid() according to need even if 1542 obsolete 1543 --enable-rpath embed run path into extension libraries. enabled by 1544 default on ELF platforms 1545 --enable-shared build a shared library for Ruby 1546 --enable-dtrace enable DTrace for tracing inside ruby. enabled by 1547 default on systems having dtrace 1548 --disable-install-doc do not install neither rdoc indexes nor C API 1549 documents during install 1550 --disable-install-rdoc do not install rdoc indexes during install 1551 --disable-install-capi do not install C API documents during install 1552 --disable-dln disable dynamic link feature 1553 --enable-debug-env enable RUBY_DEBUG environment variable 1554 --enable-multiarch enable multiarch compatible directories 1555 --disable-rubygems disable rubygems by default 1556 1557Optional Packages: 1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1560 --with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby 1561 --without-gcc never use gcc 1562 --with-arch=ARCHS build an Apple/NeXT Multi Architecture Binary (MAB); 1563 ARCHS is a comma-delimited list of architectures for 1564 which to build; if this option is disabled or 1565 omitted entirely, then the package will be built 1566 only for the target platform 1567 --with-newlib uses newlib version of NativeClient SDK 1568 --with-winnt-ver=0xXXXX target Windows NT version (default to 0x0501) 1569 --with-setjmp-type select setjmp type 1570 --with-dln-a-out use dln_a_out if possible 1571 --with-opt-dir=DIR-LIST add optional headers and libraries directories 1572 separated by $PATH_SEPARATOR 1573 --without-valgrind disable valgrind memcheck support 1574 --with-ext=EXTS pass to --with-ext option of extmk.rb 1575 --with-out-ext=EXTS pass to --without-ext option of extmk.rb 1576 --with-static-linked-ext 1577 link external modules statically 1578 --with-soname=SONAME base name of shared library 1579 --with-rubylibprefix=DIR 1580 prefix for ruby libraries [[LIBDIR/RUBY_BASE_NAME]] 1581 --with-rubyarchprefix=DIR 1582 prefix for architecture dependent ruby libraries 1583 [[RUBYLIBPREFIX/ARCH]] 1584 --with-rubysitearchprefix=DIR 1585 prefix for architecture dependent site libraries 1586 [[RUBYLIBPREFIX/SITEARCH]] 1587 --with-ridir=DIR ri documentation [[DATAROOTDIR/ri]] 1588 --with-ruby-version=STR ruby version string for version specific directories 1589 [[full]] (full|minor|STR) 1590 --with-sitedir=DIR site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]], 1591 "no" to disable site directory 1592 --with-arch-sitedir=DIR architecture dependent site libraries in DIR 1593 [[SITEDIR/SITEARCH]], "no" to disable site directory 1594 --with-vendordir=DIR vendor libraries in DIR 1595 [[RUBY_LIB_PREFIX/vendor_ruby]], "no" to disable 1596 vendor directory 1597 --with-arch-vendordir=DIR 1598 architecture dependent vendor libraries in DIR 1599 [[VENDORDIR/SITEARCH]], "no" to disable vendor 1600 directory 1601 --with-search-path=DIR specify the additional search path 1602 --with-rubyhdrdir=DIR core headers in DIR 1603 [[INCLUDEDIR/RUBY_BASE_NAME-RUBY_VERSION]] 1604 --with-arch-rubyhdrdir=DIR 1605 architecture dependent core headers in DIR 1606 [[$(rubyhdrdir)/$(arch)]] 1607 --with-sitehdrdir=DIR core site headers in DIR [[RUBYHDRDIR/site_ruby]] 1608 --with-arch-sitehdrdir=DIR 1609 architecture dependent core site headers in DIR 1610 [[RUBYHDRDIR/site_ruby]] 1611 --with-vendorhdrdir=DIR core vendor headers in DIR 1612 [[RUBYHDRDIR/vendor_ruby]] 1613 --with-arch-vendorhdrdir=DIR 1614 architecture dependent core vendor headers in DIR 1615 [[RUBYHDRDIR/vendor_ruby]] 1616 --with-mantype=TYPE specify man page type; TYPE is one of man and doc 1617 pc file basename 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 CXX C++ compiler command 1628 CXXFLAGS C++ compiler flags 1629 CPP C preprocessor 1630 1631Use these variables to override the choices made by `configure' or to help 1632it to find libraries and programs with nonstandard names/locations. 1633 1634Report bugs to the package provider. 1635_ACEOF 1636ac_status=$? 1637fi 1638 1639if test "$ac_init_help" = "recursive"; then 1640 # If there are subdirs, report their specific --help. 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1642 test -d "$ac_dir" || 1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1644 continue 1645 ac_builddir=. 1646 1647case "$ac_dir" in 1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649*) 1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1651 # A ".." for each directory in $ac_dir_suffix. 1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1653 case $ac_top_builddir_sub in 1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1656 esac ;; 1657esac 1658ac_abs_top_builddir=$ac_pwd 1659ac_abs_builddir=$ac_pwd$ac_dir_suffix 1660# for backward compatibility: 1661ac_top_builddir=$ac_top_build_prefix 1662 1663case $srcdir in 1664 .) # We are building in place. 1665 ac_srcdir=. 1666 ac_top_srcdir=$ac_top_builddir_sub 1667 ac_abs_top_srcdir=$ac_pwd ;; 1668 [\\/]* | ?:[\\/]* ) # Absolute name. 1669 ac_srcdir=$srcdir$ac_dir_suffix; 1670 ac_top_srcdir=$srcdir 1671 ac_abs_top_srcdir=$srcdir ;; 1672 *) # Relative name. 1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1674 ac_top_srcdir=$ac_top_build_prefix$srcdir 1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1676esac 1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1678 1679 cd "$ac_dir" || { ac_status=$?; continue; } 1680 # Check for guested configure. 1681 if test -f "$ac_srcdir/configure.gnu"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1684 elif test -f "$ac_srcdir/configure"; then 1685 echo && 1686 $SHELL "$ac_srcdir/configure" --help=recursive 1687 else 1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1689 fi || ac_status=$? 1690 cd "$ac_pwd" || { ac_status=$?; break; } 1691 done 1692fi 1693 1694test -n "$ac_init_help" && exit $ac_status 1695if $ac_init_version; then 1696 cat <<\_ACEOF 1697configure 1698generated by GNU Autoconf 2.69 1699 1700Copyright (C) 2012 Free Software Foundation, Inc. 1701This configure script is free software; the Free Software Foundation 1702gives unlimited permission to copy, distribute and modify it. 1703_ACEOF 1704 exit 1705fi 1706 1707## ------------------------ ## 1708## Autoconf initialization. ## 1709## ------------------------ ## 1710 1711# ac_fn_c_try_compile LINENO 1712# -------------------------- 1713# Try to compile conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext 1718 if { { ac_try="$ac_compile" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_compile") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest.$ac_objext; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_c_try_compile 1748 1749# ac_fn_cxx_try_compile LINENO 1750# ---------------------------- 1751# Try to compile conftest.$ac_ext, and return whether this succeeded. 1752ac_fn_cxx_try_compile () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 rm -f conftest.$ac_objext 1756 if { { ac_try="$ac_compile" 1757case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_compile") 2>conftest.err 1764 ac_status=$? 1765 if test -s conftest.err; then 1766 grep -v '^ *+' conftest.err >conftest.er1 1767 cat conftest.er1 >&5 1768 mv -f conftest.er1 conftest.err 1769 fi 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { 1772 test -z "$ac_cxx_werror_flag" || 1773 test ! -s conftest.err 1774 } && test -s conftest.$ac_objext; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=1 1781fi 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_cxx_try_compile 1786 1787# ac_fn_c_try_cpp LINENO 1788# ---------------------- 1789# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1790ac_fn_c_try_cpp () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if { { ac_try="$ac_cpp conftest.$ac_ext" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } > conftest.i && { 1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1810 test ! -s conftest.err 1811 }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_cpp 1823 1824# ac_fn_c_try_link LINENO 1825# ----------------------- 1826# Try to link conftest.$ac_ext, and return whether this succeeded. 1827ac_fn_c_try_link () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 rm -f conftest.$ac_objext conftest$ac_exeext 1831 if { { ac_try="$ac_link" 1832case "(($ac_try" in 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1834 *) ac_try_echo=$ac_try;; 1835esac 1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1837$as_echo "$ac_try_echo"; } >&5 1838 (eval "$ac_link") 2>conftest.err 1839 ac_status=$? 1840 if test -s conftest.err; then 1841 grep -v '^ *+' conftest.err >conftest.er1 1842 cat conftest.er1 >&5 1843 mv -f conftest.er1 conftest.err 1844 fi 1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1846 test $ac_status = 0; } && { 1847 test -z "$ac_c_werror_flag" || 1848 test ! -s conftest.err 1849 } && test -s conftest$ac_exeext && { 1850 test "$cross_compiling" = yes || 1851 test -x conftest$ac_exeext 1852 }; then : 1853 ac_retval=0 1854else 1855 $as_echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858 ac_retval=1 1859fi 1860 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1861 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1862 # interfere with the next link command; also delete a directory that is 1863 # left behind by Apple's compiler. We do this before executing the actions. 1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 as_fn_set_status $ac_retval 1867 1868} # ac_fn_c_try_link 1869 1870# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1871# ------------------------------------------------------- 1872# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1873# the include files in INCLUDES and setting the cache variable VAR 1874# accordingly. 1875ac_fn_c_check_header_mongrel () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 if eval \${$3+:} false; then : 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883fi 1884eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886$as_echo "$ac_res" >&6; } 1887else 1888 # Is the header compilable? 1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1890$as_echo_n "checking $2 usability... " >&6; } 1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892/* end confdefs.h. */ 1893$4 1894#include <$2> 1895_ACEOF 1896if ac_fn_c_try_compile "$LINENO"; then : 1897 ac_header_compiler=yes 1898else 1899 ac_header_compiler=no 1900fi 1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1903$as_echo "$ac_header_compiler" >&6; } 1904 1905# Is the header present? 1906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1907$as_echo_n "checking $2 presence... " >&6; } 1908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1909/* end confdefs.h. */ 1910#include <$2> 1911_ACEOF 1912if ac_fn_c_try_cpp "$LINENO"; then : 1913 ac_header_preproc=yes 1914else 1915 ac_header_preproc=no 1916fi 1917rm -f conftest.err conftest.i conftest.$ac_ext 1918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1919$as_echo "$ac_header_preproc" >&6; } 1920 1921# So? What about this header? 1922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1923 yes:no: ) 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1925$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1928 ;; 1929 no:yes:* ) 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1931$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1933$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1935$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1937$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1940 ;; 1941esac 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1943$as_echo_n "checking for $2... " >&6; } 1944if eval \${$3+:} false; then : 1945 $as_echo_n "(cached) " >&6 1946else 1947 eval "$3=\$ac_header_compiler" 1948fi 1949eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951$as_echo "$ac_res" >&6; } 1952fi 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 1955} # ac_fn_c_check_header_mongrel 1956 1957# ac_fn_c_try_run LINENO 1958# ---------------------- 1959# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1960# that executables *can* be run. 1961ac_fn_c_try_run () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 if { { ac_try="$ac_link" 1965case "(($ac_try" in 1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1967 *) ac_try_echo=$ac_try;; 1968esac 1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1970$as_echo "$ac_try_echo"; } >&5 1971 (eval "$ac_link") 2>&5 1972 ac_status=$? 1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1975 { { case "(($ac_try" in 1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1977 *) ac_try_echo=$ac_try;; 1978esac 1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1980$as_echo "$ac_try_echo"; } >&5 1981 (eval "$ac_try") 2>&5 1982 ac_status=$? 1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1984 test $ac_status = 0; }; }; then : 1985 ac_retval=0 1986else 1987 $as_echo "$as_me: program exited with status $ac_status" >&5 1988 $as_echo "$as_me: failed program was:" >&5 1989sed 's/^/| /' conftest.$ac_ext >&5 1990 1991 ac_retval=$ac_status 1992fi 1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 as_fn_set_status $ac_retval 1996 1997} # ac_fn_c_try_run 1998 1999# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2000# ------------------------------------------------------- 2001# Tests whether HEADER exists and can be compiled using the include files in 2002# INCLUDES, setting the cache variable VAR accordingly. 2003ac_fn_c_check_header_compile () 2004{ 2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2007$as_echo_n "checking for $2... " >&6; } 2008if eval \${$3+:} false; then : 2009 $as_echo_n "(cached) " >&6 2010else 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014#include <$2> 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 eval "$3=yes" 2018else 2019 eval "$3=no" 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022fi 2023eval ac_res=\$$3 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025$as_echo "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_header_compile 2029 2030# ac_fn_c_check_func LINENO FUNC VAR 2031# ---------------------------------- 2032# Tests whether FUNC exists, setting the cache variable VAR accordingly 2033ac_fn_c_check_func () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2037$as_echo_n "checking for $2... " >&6; } 2038if eval \${$3+:} false; then : 2039 $as_echo_n "(cached) " >&6 2040else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2045#define $2 innocuous_$2 2046 2047/* System header to define __stub macros and hopefully few prototypes, 2048 which can conflict with char $2 (); below. 2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2050 <limits.h> exists even on freestanding compilers. */ 2051 2052#ifdef __STDC__ 2053# include <limits.h> 2054#else 2055# include <assert.h> 2056#endif 2057 2058#undef $2 2059 2060/* Override any GCC internal prototype to avoid an error. 2061 Use char because int might match the return type of a GCC 2062 builtin and then its argument prototype would still apply. */ 2063#ifdef __cplusplus 2064extern "C" 2065#endif 2066char $2 (); 2067/* The GNU C library defines this for functions which it implements 2068 to always fail with ENOSYS. Some functions are actually named 2069 something starting with __ and the normal name is an alias. */ 2070#if defined __stub_$2 || defined __stub___$2 2071choke me 2072#endif 2073 2074int 2075main () 2076{ 2077return $2 (); 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_link "$LINENO"; then : 2083 eval "$3=yes" 2084else 2085 eval "$3=no" 2086fi 2087rm -f core conftest.err conftest.$ac_objext \ 2088 conftest$ac_exeext conftest.$ac_ext 2089fi 2090eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092$as_echo "$ac_res" >&6; } 2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2094 2095} # ac_fn_c_check_func 2096 2097# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2098# ------------------------------------------- 2099# Tests whether TYPE exists after having included INCLUDES, setting cache 2100# variable VAR accordingly. 2101ac_fn_c_check_type () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2105$as_echo_n "checking for $2... " >&6; } 2106if eval \${$3+:} false; then : 2107 $as_echo_n "(cached) " >&6 2108else 2109 eval "$3=no" 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112$4 2113int 2114main () 2115{ 2116if (sizeof ($2)) 2117 return 0; 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO"; then : 2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124/* end confdefs.h. */ 2125$4 2126int 2127main () 2128{ 2129if (sizeof (($2))) 2130 return 0; 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135if ac_fn_c_try_compile "$LINENO"; then : 2136 2137else 2138 eval "$3=yes" 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141fi 2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2143fi 2144eval ac_res=\$$3 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2146$as_echo "$ac_res" >&6; } 2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2148 2149} # ac_fn_c_check_type 2150 2151# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2152# -------------------------------------------- 2153# Tries to find the compile-time value of EXPR in a program that includes 2154# INCLUDES, setting VAR accordingly. Returns whether the value could be 2155# computed 2156ac_fn_c_compute_int () 2157{ 2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2159 if test "$cross_compiling" = yes; then 2160 # Depending upon the size, compute the lo and hi bounds. 2161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167static int test_array [1 - 2 * !(($2) >= 0)]; 2168test_array [0] = 0; 2169return test_array [0]; 2170 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 ac_lo=0 ac_mid=0 2177 while :; do 2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2179/* end confdefs.h. */ 2180$4 2181int 2182main () 2183{ 2184static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2185test_array [0] = 0; 2186return test_array [0]; 2187 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 ac_hi=$ac_mid; break 2194else 2195 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2196 if test $ac_lo -le $ac_mid; then 2197 ac_lo= ac_hi= 2198 break 2199 fi 2200 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2201fi 2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2203 done 2204else 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$4 2208int 2209main () 2210{ 2211static int test_array [1 - 2 * !(($2) < 0)]; 2212test_array [0] = 0; 2213return test_array [0]; 2214 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219if ac_fn_c_try_compile "$LINENO"; then : 2220 ac_hi=-1 ac_mid=-1 2221 while :; do 2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2223/* end confdefs.h. */ 2224$4 2225int 2226main () 2227{ 2228static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2229test_array [0] = 0; 2230return test_array [0]; 2231 2232 ; 2233 return 0; 2234} 2235_ACEOF 2236if ac_fn_c_try_compile "$LINENO"; then : 2237 ac_lo=$ac_mid; break 2238else 2239 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2240 if test $ac_mid -le $ac_hi; then 2241 ac_lo= ac_hi= 2242 break 2243 fi 2244 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2245fi 2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2247 done 2248else 2249 ac_lo= ac_hi= 2250fi 2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2252fi 2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2254# Binary search between lo and hi bounds. 2255while test "x$ac_lo" != "x$ac_hi"; do 2256 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2258/* end confdefs.h. */ 2259$4 2260int 2261main () 2262{ 2263static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2264test_array [0] = 0; 2265return test_array [0]; 2266 2267 ; 2268 return 0; 2269} 2270_ACEOF 2271if ac_fn_c_try_compile "$LINENO"; then : 2272 ac_hi=$ac_mid 2273else 2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2275fi 2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2277done 2278case $ac_lo in #(( 2279?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2280'') ac_retval=1 ;; 2281esac 2282 else 2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2284/* end confdefs.h. */ 2285$4 2286static long int longval () { return $2; } 2287static unsigned long int ulongval () { return $2; } 2288#include <stdio.h> 2289#include <stdlib.h> 2290int 2291main () 2292{ 2293 2294 FILE *f = fopen ("conftest.val", "w"); 2295 if (! f) 2296 return 1; 2297 if (($2) < 0) 2298 { 2299 long int i = longval (); 2300 if (i != ($2)) 2301 return 1; 2302 fprintf (f, "%ld", i); 2303 } 2304 else 2305 { 2306 unsigned long int i = ulongval (); 2307 if (i != ($2)) 2308 return 1; 2309 fprintf (f, "%lu", i); 2310 } 2311 /* Do not output a trailing newline, as this causes \r\n confusion 2312 on some platforms. */ 2313 return ferror (f) || fclose (f) != 0; 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319if ac_fn_c_try_run "$LINENO"; then : 2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2321else 2322 ac_retval=1 2323fi 2324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2325 conftest.$ac_objext conftest.beam conftest.$ac_ext 2326rm -f conftest.val 2327 2328 fi 2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2330 as_fn_set_status $ac_retval 2331 2332} # ac_fn_c_compute_int 2333 2334# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2335# --------------------------------------------- 2336# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2337# accordingly. 2338ac_fn_c_check_decl () 2339{ 2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2341 as_decl_name=`echo $2|sed 's/ *(.*//'` 2342 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2344$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2345if eval \${$3+:} false; then : 2346 $as_echo_n "(cached) " >&6 2347else 2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2349/* end confdefs.h. */ 2350$4 2351int 2352main () 2353{ 2354#ifndef $as_decl_name 2355#ifdef __cplusplus 2356 (void) $as_decl_use; 2357#else 2358 (void) $as_decl_name; 2359#endif 2360#endif 2361 2362 ; 2363 return 0; 2364} 2365_ACEOF 2366if ac_fn_c_try_compile "$LINENO"; then : 2367 eval "$3=yes" 2368else 2369 eval "$3=no" 2370fi 2371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2372fi 2373eval ac_res=\$$3 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2375$as_echo "$ac_res" >&6; } 2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2377 2378} # ac_fn_c_check_decl 2379 2380# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2381# ---------------------------------------------------- 2382# Tries to find if the field MEMBER exists in type AGGR, after including 2383# INCLUDES, setting cache variable VAR accordingly. 2384ac_fn_c_check_member () 2385{ 2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2388$as_echo_n "checking for $2.$3... " >&6; } 2389if eval \${$4+:} false; then : 2390 $as_echo_n "(cached) " >&6 2391else 2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2393/* end confdefs.h. */ 2394$5 2395int 2396main () 2397{ 2398static $2 ac_aggr; 2399if (ac_aggr.$3) 2400return 0; 2401 ; 2402 return 0; 2403} 2404_ACEOF 2405if ac_fn_c_try_compile "$LINENO"; then : 2406 eval "$4=yes" 2407else 2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2409/* end confdefs.h. */ 2410$5 2411int 2412main () 2413{ 2414static $2 ac_aggr; 2415if (sizeof ac_aggr.$3) 2416return 0; 2417 ; 2418 return 0; 2419} 2420_ACEOF 2421if ac_fn_c_try_compile "$LINENO"; then : 2422 eval "$4=yes" 2423else 2424 eval "$4=no" 2425fi 2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2427fi 2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2429fi 2430eval ac_res=\$$4 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2432$as_echo "$ac_res" >&6; } 2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2434 2435} # ac_fn_c_check_member 2436cat >config.log <<_ACEOF 2437This file contains any messages produced by compilers while 2438running configure, to aid debugging if configure makes a mistake. 2439 2440It was created by $as_me, which was 2441generated by GNU Autoconf 2.69. Invocation command line was 2442 2443 $ $0 $@ 2444 2445_ACEOF 2446exec 5>>config.log 2447{ 2448cat <<_ASUNAME 2449## --------- ## 2450## Platform. ## 2451## --------- ## 2452 2453hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2454uname -m = `(uname -m) 2>/dev/null || echo unknown` 2455uname -r = `(uname -r) 2>/dev/null || echo unknown` 2456uname -s = `(uname -s) 2>/dev/null || echo unknown` 2457uname -v = `(uname -v) 2>/dev/null || echo unknown` 2458 2459/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2460/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2461 2462/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2463/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2464/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2465/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2466/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2467/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2468/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2469 2470_ASUNAME 2471 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 $as_echo "PATH: $as_dir" 2478 done 2479IFS=$as_save_IFS 2480 2481} >&5 2482 2483cat >&5 <<_ACEOF 2484 2485 2486## ----------- ## 2487## Core tests. ## 2488## ----------- ## 2489 2490_ACEOF 2491 2492 2493# Keep a trace of the command line. 2494# Strip out --no-create and --no-recursion so they do not pile up. 2495# Strip out --silent because we don't want to record it for future runs. 2496# Also quote any args containing shell meta-characters. 2497# Make two passes to allow for proper duplicate-argument suppression. 2498ac_configure_args= 2499ac_configure_args0= 2500ac_configure_args1= 2501ac_must_keep_next=false 2502for ac_pass in 1 2 2503do 2504 for ac_arg 2505 do 2506 case $ac_arg in 2507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2509 | -silent | --silent | --silen | --sile | --sil) 2510 continue ;; 2511 *\'*) 2512 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2513 esac 2514 case $ac_pass in 2515 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2516 2) 2517 as_fn_append ac_configure_args1 " '$ac_arg'" 2518 if test $ac_must_keep_next = true; then 2519 ac_must_keep_next=false # Got value, back to normal. 2520 else 2521 case $ac_arg in 2522 *=* | --config-cache | -C | -disable-* | --disable-* \ 2523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2525 | -with-* | --with-* | -without-* | --without-* | --x) 2526 case "$ac_configure_args0 " in 2527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2528 esac 2529 ;; 2530 -* ) ac_must_keep_next=true ;; 2531 esac 2532 fi 2533 as_fn_append ac_configure_args " '$ac_arg'" 2534 ;; 2535 esac 2536 done 2537done 2538{ ac_configure_args0=; unset ac_configure_args0;} 2539{ ac_configure_args1=; unset ac_configure_args1;} 2540 2541# When interrupted or exit'd, cleanup temporary files, and complete 2542# config.log. We remove comments because anyway the quotes in there 2543# would cause problems or look ugly. 2544# WARNING: Use '\'' to represent an apostrophe within the trap. 2545# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2546trap 'exit_status=$? 2547 # Save into config.log some information that might help in debugging. 2548 { 2549 echo 2550 2551 $as_echo "## ---------------- ## 2552## Cache variables. ## 2553## ---------------- ##" 2554 echo 2555 # The following way of writing the cache mishandles newlines in values, 2556( 2557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2558 eval ac_val=\$$ac_var 2559 case $ac_val in #( 2560 *${as_nl}*) 2561 case $ac_var in #( 2562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2564 esac 2565 case $ac_var in #( 2566 _ | IFS | as_nl) ;; #( 2567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2568 *) { eval $ac_var=; unset $ac_var;} ;; 2569 esac ;; 2570 esac 2571 done 2572 (set) 2>&1 | 2573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2574 *${as_nl}ac_space=\ *) 2575 sed -n \ 2576 "s/'\''/'\''\\\\'\'''\''/g; 2577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2578 ;; #( 2579 *) 2580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2581 ;; 2582 esac | 2583 sort 2584) 2585 echo 2586 2587 $as_echo "## ----------------- ## 2588## Output variables. ## 2589## ----------------- ##" 2590 echo 2591 for ac_var in $ac_subst_vars 2592 do 2593 eval ac_val=\$$ac_var 2594 case $ac_val in 2595 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2596 esac 2597 $as_echo "$ac_var='\''$ac_val'\''" 2598 done | sort 2599 echo 2600 2601 if test -n "$ac_subst_files"; then 2602 $as_echo "## ------------------- ## 2603## File substitutions. ## 2604## ------------------- ##" 2605 echo 2606 for ac_var in $ac_subst_files 2607 do 2608 eval ac_val=\$$ac_var 2609 case $ac_val in 2610 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2611 esac 2612 $as_echo "$ac_var='\''$ac_val'\''" 2613 done | sort 2614 echo 2615 fi 2616 2617 if test -s confdefs.h; then 2618 $as_echo "## ----------- ## 2619## confdefs.h. ## 2620## ----------- ##" 2621 echo 2622 cat confdefs.h 2623 echo 2624 fi 2625 test "$ac_signal" != 0 && 2626 $as_echo "$as_me: caught signal $ac_signal" 2627 $as_echo "$as_me: exit $exit_status" 2628 } >&5 2629 rm -f core *.core core.conftest.* && 2630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2631 exit $exit_status 2632' 0 2633for ac_signal in 1 2 13 15; do 2634 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2635done 2636ac_signal=0 2637 2638# confdefs.h avoids OS command line length limits that DEFS can exceed. 2639rm -f -r conftest* confdefs.h 2640 2641$as_echo "/* confdefs.h */" > confdefs.h 2642 2643# Predefined preprocessor variables. 2644 2645cat >>confdefs.h <<_ACEOF 2646#define PACKAGE_NAME "$PACKAGE_NAME" 2647_ACEOF 2648 2649cat >>confdefs.h <<_ACEOF 2650#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2651_ACEOF 2652 2653cat >>confdefs.h <<_ACEOF 2654#define PACKAGE_VERSION "$PACKAGE_VERSION" 2655_ACEOF 2656 2657cat >>confdefs.h <<_ACEOF 2658#define PACKAGE_STRING "$PACKAGE_STRING" 2659_ACEOF 2660 2661cat >>confdefs.h <<_ACEOF 2662#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2663_ACEOF 2664 2665cat >>confdefs.h <<_ACEOF 2666#define PACKAGE_URL "$PACKAGE_URL" 2667_ACEOF 2668 2669 2670# Let the site file select an alternate cache file if it wants to. 2671# Prefer an explicitly selected file to automatically selected ones. 2672ac_site_file1=NONE 2673ac_site_file2=NONE 2674if test -n "$CONFIG_SITE"; then 2675 # We do not want a PATH search for config.site. 2676 case $CONFIG_SITE in #(( 2677 -*) ac_site_file1=./$CONFIG_SITE;; 2678 */*) ac_site_file1=$CONFIG_SITE;; 2679 *) ac_site_file1=./$CONFIG_SITE;; 2680 esac 2681elif test "x$prefix" != xNONE; then 2682 ac_site_file1=$prefix/share/config.site 2683 ac_site_file2=$prefix/etc/config.site 2684else 2685 ac_site_file1=$ac_default_prefix/share/config.site 2686 ac_site_file2=$ac_default_prefix/etc/config.site 2687fi 2688for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2689do 2690 test "x$ac_site_file" = xNONE && continue 2691 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2693$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2694 sed 's/^/| /' "$ac_site_file" >&5 2695 . "$ac_site_file" \ 2696 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2698as_fn_error $? "failed to load site script $ac_site_file 2699See \`config.log' for more details" "$LINENO" 5; } 2700 fi 2701done 2702 2703if test -r "$cache_file"; then 2704 # Some versions of bash will fail to source /dev/null (special files 2705 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2706 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2708$as_echo "$as_me: loading cache $cache_file" >&6;} 2709 case $cache_file in 2710 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2711 *) . "./$cache_file";; 2712 esac 2713 fi 2714else 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2716$as_echo "$as_me: creating cache $cache_file" >&6;} 2717 >$cache_file 2718fi 2719 2720# Check that the precious variables saved in the cache have kept the same 2721# value. 2722ac_cache_corrupted=false 2723for ac_var in $ac_precious_vars; do 2724 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2725 eval ac_new_set=\$ac_env_${ac_var}_set 2726 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2727 eval ac_new_val=\$ac_env_${ac_var}_value 2728 case $ac_old_set,$ac_new_set in 2729 set,) 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2731$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2732 ac_cache_corrupted=: ;; 2733 ,set) 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2735$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2736 ac_cache_corrupted=: ;; 2737 ,);; 2738 *) 2739 if test "x$ac_old_val" != "x$ac_new_val"; then 2740 # differences in whitespace do not lead to failure. 2741 ac_old_val_w=`echo x $ac_old_val` 2742 ac_new_val_w=`echo x $ac_new_val` 2743 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2745$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2746 ac_cache_corrupted=: 2747 else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2749$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2750 eval $ac_var=\$ac_old_val 2751 fi 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2753$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2755$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2756 fi;; 2757 esac 2758 # Pass precious variables to config.status. 2759 if test "$ac_new_set" = set; then 2760 case $ac_new_val in 2761 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2762 *) ac_arg=$ac_var=$ac_new_val ;; 2763 esac 2764 case " $ac_configure_args " in 2765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2766 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2767 esac 2768 fi 2769done 2770if $ac_cache_corrupted; then 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2774$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2775 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2776fi 2777## -------------------- ## 2778## Main body of script. ## 2779## -------------------- ## 2780 2781ac_ext=c 2782ac_cpp='$CPP $CPPFLAGS' 2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2785ac_compiler_gnu=$ac_cv_c_compiler_gnu 2786 2787 2788{ 2789ac_aux_dir= 2790for ac_dir in tool "$srcdir"/tool; do 2791 if test -f "$ac_dir/install-sh"; then 2792 ac_aux_dir=$ac_dir 2793 ac_install_sh="$ac_aux_dir/install-sh -c" 2794 break 2795 elif test -f "$ac_dir/install.sh"; then 2796 ac_aux_dir=$ac_dir 2797 ac_install_sh="$ac_aux_dir/install.sh -c" 2798 break 2799 elif test -f "$ac_dir/shtool"; then 2800 ac_aux_dir=$ac_dir 2801 ac_install_sh="$ac_aux_dir/shtool install -c" 2802 break 2803 fi 2804done 2805if test -z "$ac_aux_dir"; then 2806 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tool \"$srcdir\"/tool" "$LINENO" 5 2807fi 2808 2809# These three variables are undocumented and unsupported, 2810# and are intended to be withdrawn in a future Autoconf release. 2811# They can cause serious problems if a builder's source tree is in a directory 2812# whose full name contains unusual characters. 2813ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2814ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2815ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825{ # environment section 2826 2827 2828# Check whether --with-baseruby was given. 2829if test "${with_baseruby+set}" = set; then : 2830 withval=$with_baseruby; 2831 case "$withval" in #( 2832 *ruby*) : 2833 BASERUBY=$withval ;; #( 2834 *) : 2835 as_fn_error $? "need ruby" "$LINENO" 5 ;; 2836esac 2837 2838else 2839 2840 BASERUBY="ruby" 2841 2842fi 2843 2844if test "`RUBYOPT=- $BASERUBY -e 'p 42' 2>/dev/null`" = 42; then 2845 if test "`RUBYOPT=- $BASERUBY --disable=gems -e 'p 42' 2>/dev/null`" = 42; then 2846 BASERUBY="$BASERUBY --disable=gems" 2847 fi 2848else 2849 BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false" 2850fi 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863eval `sed -n 's/^#define RUBY_API_VERSION_\([A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)/\1=\2/p' $srcdir/include/ruby/version.h` 2864for v in MAJOR MINOR TEENY; do 2865 if eval "test \"\$$v\" = ''"; then 2866 as_fn_error $? "could not determine $v number from version.h" "$LINENO" 5 2867 fi 2868done 2869 2870 2871 2872RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/version.h` 2873 2874RUBY_RELEASE_DATE=`sed -n 's/^#define RUBY_RELEASE_DATE "\(.*\)"/\1/p' $srcdir/version.h` 2875 2876RUBY_PATCHLEVEL=`sed -n 's/^#define RUBY_PATCHLEVEL //p' $srcdir/version.h` 2877$as_echo "#define CANONICALIZATION_FOR_MATHN 1" >>confdefs.h 2878 2879# Make sure we can run config.sub. 2880$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2881 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2882 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2884$as_echo_n "checking build system type... " >&6; } 2885if ${ac_cv_build+:} false; then : 2886 $as_echo_n "(cached) " >&6 2887else 2888 ac_build_alias=$build_alias 2889test "x$ac_build_alias" = x && 2890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2891test "x$ac_build_alias" = x && 2892 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2893ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2894 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2895 2896fi 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2898$as_echo "$ac_cv_build" >&6; } 2899case $ac_cv_build in 2900*-*-*) ;; 2901*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2902esac 2903build=$ac_cv_build 2904ac_save_IFS=$IFS; IFS='-' 2905set x $ac_cv_build 2906shift 2907build_cpu=$1 2908build_vendor=$2 2909shift; shift 2910# Remember, the first character of IFS is used to create $*, 2911# except with old shells: 2912build_os=$* 2913IFS=$ac_save_IFS 2914case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2915 2916 2917 2918 2919# suppress error messages, rm: cannot remove 'conftest.dSYM', from 2920# AC_EGREP_CPP with CFLAGS=-g on Darwin. 2921case $build_os in #( 2922 darwin*) : 2923 2924rm() { 2925 rm_recursive='' 2926 for arg do 2927 case "$arg" in #( 2928 --*) : 2929 ;; #( 2930 -*r*) : 2931 break ;; #( 2932 conftest.*) : 2933 if test -d "$arg"; then rm_recursive=-r; break; fi ;; #( 2934 *) : 2935 ;; 2936esac 2937 done 2938 command rm $rm_recursive "$@" 2939} 2940 ;; #( 2941 *) : 2942 ;; 2943esac 2944 2945# Check whether --with-gcc was given. 2946if test "${with_gcc+set}" = set; then : 2947 withval=$with_gcc; 2948 case $withval in #( 2949 no) : 2950 : ${CC=cc} ;; #( 2951 yes) : 2952 : ${CC=gcc} ;; #( 2953 *) : 2954 CC=$withval ;; 2955esac 2956fi 2957 2958if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 2959then 2960 as_fn_error $? "cached CC is different -- throw away $cache_file 2961(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 2962fi 2963case "$build_os" in #( 2964 darwin1*.*) : 2965 2966 case "x$CC" in #( 2967 xgcc-4.2|x/usr/bin/gcc-4.2) : 2968 : ${CXX=g++-4.2} ;; #( 2969 xgcc|x/usr/bin/gcc) : 2970 : ${CXX=g++} ;; #( 2971 xcc|x/usr/bin/cc) : 2972 : ${CXX=c++} ;; #( 2973 xclang|x/usr/bin/clang) : 2974 : ${CXX=clang++} ;; #( 2975 *) : 2976 ;; 2977esac 2978 ;; #( 2979 *) : 2980 ;; 2981esac 2982test -z "$CC" || ac_cv_prog_CC="$CC" 2983test -z "$CXX" || ac_cv_prog_CXX="$CXX" 2984 2985if test "$program_prefix" = NONE; then 2986 program_prefix= 2987fi 2988RUBY_BASE_NAME=`echo ruby | sed "$program_transform_name"` 2989RUBYW_BASE_NAME=`echo rubyw | sed "$program_transform_name"` 2990 2991 2992RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}' 2993 2994cat >>confdefs.h <<_ACEOF 2995#define RUBY_BASE_NAME "${RUBY_BASE_NAME}" !<verconf>! 2996_ACEOF 2997 2998cat >>confdefs.h <<_ACEOF 2999#define RUBY_VERSION_NAME RUBY_BASE_NAME"-"RUBY_LIB_VERSION !<verconf>! 3000_ACEOF 3001 3002 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3004$as_echo_n "checking host system type... " >&6; } 3005if ${ac_cv_host+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test "x$host_alias" = x; then 3009 ac_cv_host=$ac_cv_build 3010else 3011 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3012 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3013fi 3014 3015fi 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3017$as_echo "$ac_cv_host" >&6; } 3018case $ac_cv_host in 3019*-*-*) ;; 3020*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3021esac 3022host=$ac_cv_host 3023ac_save_IFS=$IFS; IFS='-' 3024set x $ac_cv_host 3025shift 3026host_cpu=$1 3027host_vendor=$2 3028shift; shift 3029# Remember, the first character of IFS is used to create $*, 3030# except with old shells: 3031host_os=$* 3032IFS=$ac_save_IFS 3033case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3034 3035 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3037$as_echo_n "checking target system type... " >&6; } 3038if ${ac_cv_target+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test "x$target_alias" = x; then 3042 ac_cv_target=$ac_cv_host 3043else 3044 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3046fi 3047 3048fi 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3050$as_echo "$ac_cv_target" >&6; } 3051case $ac_cv_target in 3052*-*-*) ;; 3053*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3054esac 3055target=$ac_cv_target 3056ac_save_IFS=$IFS; IFS='-' 3057set x $ac_cv_target 3058shift 3059target_cpu=$1 3060target_vendor=$2 3061shift; shift 3062# Remember, the first character of IFS is used to create $*, 3063# except with old shells: 3064target_os=$* 3065IFS=$ac_save_IFS 3066case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3067 3068 3069# The aliases save the names the user supplied, while $host etc. 3070# will get canonicalized. 3071test -n "$target_alias" && 3072 test "$program_prefix$program_suffix$program_transform_name" = \ 3073 NONENONEs,x,x, && 3074 program_prefix=${target_alias}- 3075target_os=`echo $target_os | sed 's/linux-gnu$/linux/;s/linux-gnu/linux-/'` 3076ac_install_sh='' # unusable for extension libraries. 3077 3078 3079 3080 3081 3082 3083 3084# Check whether --with-arch was given. 3085if test "${with_arch+set}" = set; then : 3086 withval=$with_arch; target_archs="$withval" 3087else 3088 unset target_archs 3089fi 3090 3091 3092 3093 3094 3095 3096# Check whether --enable-load-relative was given. 3097if test "${enable_load_relative+set}" = set; then : 3098 enableval=$enable_load_relative; load_relative=$enableval 3099fi 3100 3101 3102test "$program_prefix" != NONE && 3103 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3104# Use a double $ so make ignores it. 3105test "$program_suffix" != NONE && 3106 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3107# Double any \ or $. 3108# By default was `s,x,x', remove it if useless. 3109ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3110program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3111 3112 3113 3114cflagspat= 3115test -z "$optflags" || 3116 cflagspat="$cflagspat;s|"`eval echo '"'"${optflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' 3117test -z "$debugflags" || 3118 cflagspat="$cflagspat;s|"`eval echo '"'"${debugflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' 3119test -z "warnflags" || 3120 cflagspat="$cflagspat;s|"`eval echo '"'"${warnflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' 3121if test -z "${CFLAGS+set}"; then 3122 cflags=`echo " $cflags " | sed "$cflagspat;s/^ *//;s/ *$//"` 3123 orig_cflags="$cflags" 3124 cflags="$cflags "'${optflags} ${debugflags} ${warnflags}' 3125fi 3126if test -z "${CXXFLAGS+set}"; then 3127 cxxflags=`echo " $cxxflags " | sed "$cflagspat;s/^ *//;s/ *$//"` 3128 orig_cxxflags="$cxxflags" 3129 cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}' 3130fi 3131 3132 3133 case "${host_os}" in #( 3134 nacl) : 3135 3136 ac_cv_exeext=.nexe 3137 host_vendor=chromium 3138 ac_cv_host=chromium 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather \$NACL_SDK_ROOT is set" >&5 3140$as_echo_n "checking wheather \$NACL_SDK_ROOT is set... " >&6; } 3141 if test x"${NACL_SDK_ROOT}" = x; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144 as_fn_error $? "You need to set \$NACL_SDK_ROOT environment variable to build for NativeClient" "$LINENO" 5 3145 fi 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3147$as_echo "yes" >&6; } 3148 3149 nacl_cv_build_variant=glibc 3150 3151# Check whether --with-newlib was given. 3152if test "${with_newlib+set}" = set; then : 3153 withval=$with_newlib; case $withval in #( 3154 no) : 3155 nacl_cv_build_variant=glibc ;; #( 3156 yes) : 3157 nacl_cv_build_variant=newlib ;; #( 3158 *) : 3159 ;; 3160esac 3161fi 3162 3163 3164 case "$build_cpu" in #( 3165 x86_64|i?86) : 3166 nacl_cv_cpu_nick=x86 ;; #( 3167 *) : 3168 nacl_cv_cpu_nick=$build_cpu ;; 3169esac 3170 case "$build_os" in #( 3171 linux*) : 3172 nacl_cv_os_nick=linux ;; #( 3173 darwin*) : 3174 nacl_cv_os_nick=mac ;; #( 3175 cygwin*|mingw*) : 3176 nacl_cv_os_nick=win ;; #( 3177 *) : 3178 nacl_cv_os_nick=$build_os ;; 3179esac 3180 3181 host="$host_cpu-chromium-$host_os-" 3182 ac_tool_prefix="$host_cpu-nacl-" 3183 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NativeClient toolchain" >&5 3185$as_echo_n "checking NativeClient toolchain... " >&6; } 3186 if test -d \ 3187 "${NACL_SDK_ROOT}/toolchain/${nacl_cv_os_nick}_${nacl_cv_cpu_nick}_${nacl_cv_build_variant}"; then 3188 NACL_TOOLCHAIN="${nacl_cv_os_nick}_${nacl_cv_cpu_nick}_${nacl_cv_build_variant}" 3189 else 3190 case "${nacl_cv_build_variant}" in #( 3191 glibc) : 3192 if test \ 3193 -d "${NACL_SDK_ROOT}/toolchain/${nacl_cv_os_nick}_${nacl_cv_cpu_nick}_newlib" \ 3194 -a -d "${NACL_SDK_ROOT}/toolchain/${nacl_cv_os_nick}_${nacl_cv_cpu_nick}"; then 3195 NACL_TOOLCHAIN="${nacl_cv_os_nick}_${nacl_cv_cpu_nick}" 3196 fi ;; #( 3197 newlib) : 3198 NACL_TOOLCHAIN="${nacl_cv_os_nick}_${nacl_cv_cpu_nick}" ;; #( 3199 *) : 3200 ;; 3201esac 3202 fi 3203 if test ! -e "${NACL_SDK_ROOT}/toolchain/${NACL_TOOLCHAIN}/${ac_tool_prefix}gcc"; then 3204 if test "${build_cpu}" = i686 -a -e "${NACL_SDK_ROOT}/toolchain/${NACL_TOOLCHAIN}/nacl-gcc"; then 3205 ac_tool_prefix=nacl- 3206 fi 3207 if test "${build_cpu}" = x86_64 -a -e "${NACL_SDK_ROOT}/toolchain/${NACL_TOOLCHAIN}/nacl-gcc"; then 3208 ac_tool_prefix=nacl64- 3209 fi 3210 fi 3211 if test -z "${NACL_TOOLCHAIN}"; then 3212 as_fn_error $? "Unrecognized --host and --build combination or NaCl SDK is not installed" "$LINENO" 5 3213 fi 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NACL_TOOLCHAIN}" >&5 3215$as_echo "${NACL_TOOLCHAIN}" >&6; } 3216 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to SDK" >&5 3218$as_echo_n "checking path to SDK... " >&6; } 3219 if ! echo -- "${PATH}" | grep -F "${NACL_SDK_ROOT}/toolchain/${NACL_TOOLCHAIN}/bin" > /dev/null; then 3220 PATH="${PATH}:${NACL_SDK_ROOT}/toolchain/${NACL_TOOLCHAIN}/bin" 3221 fi 3222 3223 3224 3225 NACL_SDK_VARIANT=nacl_cv_build_variant 3226 3227 ;; #( 3228 *) : 3229 ;; 3230esac 3231case "$host_os:$build_os" in #( 3232 darwin*:darwin*) : 3233 3234 if test -n "$ac_tool_prefix"; then 3235 for ac_prog in gcc-4.2 clang gcc cc 3236 do 3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if ${ac_cv_prog_CC+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 if test -n "$CC"; then 3245 ac_cv_prog_CC="$CC" # Let the user override the test. 3246else 3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3248for as_dir in $PATH 3249do 3250 IFS=$as_save_IFS 3251 test -z "$as_dir" && as_dir=. 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262fi 3263fi 3264CC=$ac_cv_prog_CC 3265if test -n "$CC"; then 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3267$as_echo "$CC" >&6; } 3268else 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271fi 3272 3273 3274 test -n "$CC" && break 3275 done 3276fi 3277if test -z "$CC"; then 3278 ac_ct_CC=$CC 3279 for ac_prog in gcc-4.2 clang gcc cc 3280do 3281 # Extract the first word of "$ac_prog", so it can be a program name with args. 3282set dummy $ac_prog; ac_word=$2 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284$as_echo_n "checking for $ac_word... " >&6; } 3285if ${ac_cv_prog_ac_ct_CC+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 if test -n "$ac_ct_CC"; then 3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3298 ac_cv_prog_ac_ct_CC="$ac_prog" 3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3300 break 2 3301 fi 3302done 3303 done 3304IFS=$as_save_IFS 3305 3306fi 3307fi 3308ac_ct_CC=$ac_cv_prog_ac_ct_CC 3309if test -n "$ac_ct_CC"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3311$as_echo "$ac_ct_CC" >&6; } 3312else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314$as_echo "no" >&6; } 3315fi 3316 3317 3318 test -n "$ac_ct_CC" && break 3319done 3320 3321 if test "x$ac_ct_CC" = x; then 3322 CC="" 3323 else 3324 case $cross_compiling:$ac_tool_warned in 3325yes:) 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3328ac_tool_warned=yes ;; 3329esac 3330 CC=$ac_ct_CC 3331 fi 3332fi 3333 3334 ;; #( 3335 *) : 3336 ;; 3337esac 3338if test x"${build}" != x"${host}"; then 3339 if test -n "$ac_tool_prefix"; then 3340 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3341set dummy ${ac_tool_prefix}gcc; ac_word=$2 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343$as_echo_n "checking for $ac_word... " >&6; } 3344if ${ac_cv_prog_CC+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 if test -n "$CC"; then 3348 ac_cv_prog_CC="$CC" # Let the user override the test. 3349else 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361done 3362 done 3363IFS=$as_save_IFS 3364 3365fi 3366fi 3367CC=$ac_cv_prog_CC 3368if test -n "$CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3370$as_echo "$CC" >&6; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373$as_echo "no" >&6; } 3374fi 3375 3376 3377fi 3378if test -z "$ac_cv_prog_CC"; then 3379 ac_ct_CC=$CC 3380 # Extract the first word of "gcc", so it can be a program name with args. 3381set dummy gcc; ac_word=$2 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383$as_echo_n "checking for $ac_word... " >&6; } 3384if ${ac_cv_prog_ac_ct_CC+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 if test -n "$ac_ct_CC"; then 3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3389else 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391for as_dir in $PATH 3392do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_ac_ct_CC="gcc" 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402 done 3403IFS=$as_save_IFS 3404 3405fi 3406fi 3407ac_ct_CC=$ac_cv_prog_ac_ct_CC 3408if test -n "$ac_ct_CC"; then 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3410$as_echo "$ac_ct_CC" >&6; } 3411else 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3413$as_echo "no" >&6; } 3414fi 3415 3416 if test "x$ac_ct_CC" = x; then 3417 CC="" 3418 else 3419 case $cross_compiling:$ac_tool_warned in 3420yes:) 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3423ac_tool_warned=yes ;; 3424esac 3425 CC=$ac_ct_CC 3426 fi 3427else 3428 CC="$ac_cv_prog_CC" 3429fi 3430 3431fi 3432 3433ac_ext=c 3434ac_cpp='$CPP $CPPFLAGS' 3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3437ac_compiler_gnu=$ac_cv_c_compiler_gnu 3438if test -n "$ac_tool_prefix"; then 3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3440set dummy ${ac_tool_prefix}gcc; ac_word=$2 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442$as_echo_n "checking for $ac_word... " >&6; } 3443if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448else 3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH 3451do 3452 IFS=$as_save_IFS 3453 test -z "$as_dir" && as_dir=. 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3456 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460done 3461 done 3462IFS=$as_save_IFS 3463 3464fi 3465fi 3466CC=$ac_cv_prog_CC 3467if test -n "$CC"; then 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3469$as_echo "$CC" >&6; } 3470else 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3472$as_echo "no" >&6; } 3473fi 3474 3475 3476fi 3477if test -z "$ac_cv_prog_CC"; then 3478 ac_ct_CC=$CC 3479 # Extract the first word of "gcc", so it can be a program name with args. 3480set dummy gcc; ac_word=$2 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3482$as_echo_n "checking for $ac_word... " >&6; } 3483if ${ac_cv_prog_ac_ct_CC+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485else 3486 if test -n "$ac_ct_CC"; then 3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3488else 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 test -z "$as_dir" && as_dir=. 3494 for ac_exec_ext in '' $ac_executable_extensions; do 3495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3496 ac_cv_prog_ac_ct_CC="gcc" 3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3498 break 2 3499 fi 3500done 3501 done 3502IFS=$as_save_IFS 3503 3504fi 3505fi 3506ac_ct_CC=$ac_cv_prog_ac_ct_CC 3507if test -n "$ac_ct_CC"; then 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3509$as_echo "$ac_ct_CC" >&6; } 3510else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3512$as_echo "no" >&6; } 3513fi 3514 3515 if test "x$ac_ct_CC" = x; then 3516 CC="" 3517 else 3518 case $cross_compiling:$ac_tool_warned in 3519yes:) 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3522ac_tool_warned=yes ;; 3523esac 3524 CC=$ac_ct_CC 3525 fi 3526else 3527 CC="$ac_cv_prog_CC" 3528fi 3529 3530if test -z "$CC"; then 3531 if test -n "$ac_tool_prefix"; then 3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3533set dummy ${ac_tool_prefix}cc; ac_word=$2 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535$as_echo_n "checking for $ac_word... " >&6; } 3536if ${ac_cv_prog_CC+:} false; then : 3537 $as_echo_n "(cached) " >&6 3538else 3539 if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 test -z "$as_dir" && as_dir=. 3547 for ac_exec_ext in '' $ac_executable_extensions; do 3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3549 ac_cv_prog_CC="${ac_tool_prefix}cc" 3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3551 break 2 3552 fi 3553done 3554 done 3555IFS=$as_save_IFS 3556 3557fi 3558fi 3559CC=$ac_cv_prog_CC 3560if test -n "$CC"; then 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3562$as_echo "$CC" >&6; } 3563else 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3565$as_echo "no" >&6; } 3566fi 3567 3568 3569 fi 3570fi 3571if test -z "$CC"; then 3572 # Extract the first word of "cc", so it can be a program name with args. 3573set dummy cc; ac_word=$2 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3575$as_echo_n "checking for $ac_word... " >&6; } 3576if ${ac_cv_prog_CC+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 if test -n "$CC"; then 3580 ac_cv_prog_CC="$CC" # Let the user override the test. 3581else 3582 ac_prog_rejected=no 3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3584for as_dir in $PATH 3585do 3586 IFS=$as_save_IFS 3587 test -z "$as_dir" && as_dir=. 3588 for ac_exec_ext in '' $ac_executable_extensions; do 3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3591 ac_prog_rejected=yes 3592 continue 3593 fi 3594 ac_cv_prog_CC="cc" 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3596 break 2 3597 fi 3598done 3599 done 3600IFS=$as_save_IFS 3601 3602if test $ac_prog_rejected = yes; then 3603 # We found a bogon in the path, so make sure we never use it. 3604 set dummy $ac_cv_prog_CC 3605 shift 3606 if test $# != 0; then 3607 # We chose a different compiler from the bogus one. 3608 # However, it has the same basename, so the bogon will be chosen 3609 # first if we set CC to just the basename; use the full file name. 3610 shift 3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3612 fi 3613fi 3614fi 3615fi 3616CC=$ac_cv_prog_CC 3617if test -n "$CC"; then 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3619$as_echo "$CC" >&6; } 3620else 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622$as_echo "no" >&6; } 3623fi 3624 3625 3626fi 3627if test -z "$CC"; then 3628 if test -n "$ac_tool_prefix"; then 3629 for ac_prog in cl.exe 3630 do 3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3632set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634$as_echo_n "checking for $ac_word... " >&6; } 3635if ${ac_cv_prog_CC+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -n "$CC"; then 3639 ac_cv_prog_CC="$CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 break 2 3651 fi 3652done 3653 done 3654IFS=$as_save_IFS 3655 3656fi 3657fi 3658CC=$ac_cv_prog_CC 3659if test -n "$CC"; then 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3661$as_echo "$CC" >&6; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665fi 3666 3667 3668 test -n "$CC" && break 3669 done 3670fi 3671if test -z "$CC"; then 3672 ac_ct_CC=$CC 3673 for ac_prog in cl.exe 3674do 3675 # Extract the first word of "$ac_prog", so it can be a program name with args. 3676set dummy $ac_prog; ac_word=$2 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3678$as_echo_n "checking for $ac_word... " >&6; } 3679if ${ac_cv_prog_ac_ct_CC+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 if test -n "$ac_ct_CC"; then 3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3684else 3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH 3687do 3688 IFS=$as_save_IFS 3689 test -z "$as_dir" && as_dir=. 3690 for ac_exec_ext in '' $ac_executable_extensions; do 3691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3692 ac_cv_prog_ac_ct_CC="$ac_prog" 3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3694 break 2 3695 fi 3696done 3697 done 3698IFS=$as_save_IFS 3699 3700fi 3701fi 3702ac_ct_CC=$ac_cv_prog_ac_ct_CC 3703if test -n "$ac_ct_CC"; then 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3705$as_echo "$ac_ct_CC" >&6; } 3706else 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3708$as_echo "no" >&6; } 3709fi 3710 3711 3712 test -n "$ac_ct_CC" && break 3713done 3714 3715 if test "x$ac_ct_CC" = x; then 3716 CC="" 3717 else 3718 case $cross_compiling:$ac_tool_warned in 3719yes:) 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3722ac_tool_warned=yes ;; 3723esac 3724 CC=$ac_ct_CC 3725 fi 3726fi 3727 3728fi 3729 3730 3731test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3733as_fn_error $? "no acceptable C compiler found in \$PATH 3734See \`config.log' for more details" "$LINENO" 5; } 3735 3736# Provide some information about the compiler. 3737$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3738set X $ac_compile 3739ac_compiler=$2 3740for ac_option in --version -v -V -qversion; do 3741 { { ac_try="$ac_compiler $ac_option >&5" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3747$as_echo "$ac_try_echo"; } >&5 3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3749 ac_status=$? 3750 if test -s conftest.err; then 3751 sed '10a\ 3752... rest of stderr output deleted ... 3753 10q' conftest.err >conftest.er1 3754 cat conftest.er1 >&5 3755 fi 3756 rm -f conftest.er1 conftest.err 3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3758 test $ac_status = 0; } 3759done 3760 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772ac_clean_files_save=$ac_clean_files 3773ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3774# Try to create an executable without -o first, disregard a.out. 3775# It will help us diagnose broken compilers, and finding out an intuition 3776# of exeext. 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3778$as_echo_n "checking whether the C compiler works... " >&6; } 3779ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3780 3781# The possible output files: 3782ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3783 3784ac_rmfiles= 3785for ac_file in $ac_files 3786do 3787 case $ac_file in 3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3789 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3790 esac 3791done 3792rm -f $ac_rmfiles 3793 3794if { { ac_try="$ac_link_default" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800$as_echo "$ac_try_echo"; } >&5 3801 (eval "$ac_link_default") 2>&5 3802 ac_status=$? 3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; }; then : 3805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3807# in a Makefile. We should not override ac_cv_exeext if it was cached, 3808# so that the user can short-circuit this test for compilers unknown to 3809# Autoconf. 3810for ac_file in $ac_files '' 3811do 3812 test -f "$ac_file" || continue 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3815 ;; 3816 [ab].out ) 3817 # We found the default executable, but exeext='' is most 3818 # certainly right. 3819 break;; 3820 *.* ) 3821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3822 then :; else 3823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3824 fi 3825 # We set ac_cv_exeext here because the later test for it is not 3826 # safe: cross compilers may not add the suffix if given an `-o' 3827 # argument, so we may need to know it at that point already. 3828 # Even if this section looks crufty: it has the advantage of 3829 # actually working. 3830 break;; 3831 * ) 3832 break;; 3833 esac 3834done 3835test "$ac_cv_exeext" = no && ac_cv_exeext= 3836 3837else 3838 ac_file='' 3839fi 3840if test -z "$ac_file"; then : 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842$as_echo "no" >&6; } 3843$as_echo "$as_me: failed program was:" >&5 3844sed 's/^/| /' conftest.$ac_ext >&5 3845 3846{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3848as_fn_error 77 "C compiler cannot create executables 3849See \`config.log' for more details" "$LINENO" 5; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3852$as_echo "yes" >&6; } 3853fi 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3855$as_echo_n "checking for C compiler default output file name... " >&6; } 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3857$as_echo "$ac_file" >&6; } 3858ac_exeext=$ac_cv_exeext 3859 3860rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3861ac_clean_files=$ac_clean_files_save 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3863$as_echo_n "checking for suffix of executables... " >&6; } 3864if { { ac_try="$ac_link" 3865case "(($ac_try" in 3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3867 *) ac_try_echo=$ac_try;; 3868esac 3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3870$as_echo "$ac_try_echo"; } >&5 3871 (eval "$ac_link") 2>&5 3872 ac_status=$? 3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3874 test $ac_status = 0; }; then : 3875 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3877# work properly (i.e., refer to `conftest.exe'), while it won't with 3878# `rm'. 3879for ac_file in conftest.exe conftest conftest.*; do 3880 test -f "$ac_file" || continue 3881 case $ac_file in 3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3884 break;; 3885 * ) break;; 3886 esac 3887done 3888else 3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3891as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3892See \`config.log' for more details" "$LINENO" 5; } 3893fi 3894rm -f conftest conftest$ac_cv_exeext 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3896$as_echo "$ac_cv_exeext" >&6; } 3897 3898rm -f conftest.$ac_ext 3899EXEEXT=$ac_cv_exeext 3900ac_exeext=$EXEEXT 3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903#include <stdio.h> 3904int 3905main () 3906{ 3907FILE *f = fopen ("conftest.out", "w"); 3908 return ferror (f) || fclose (f) != 0; 3909 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914ac_clean_files="$ac_clean_files conftest.out" 3915# Check that the compiler produces executables we can run. If not, either 3916# the compiler is broken, or we cross compile. 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3918$as_echo_n "checking whether we are cross compiling... " >&6; } 3919if test "$cross_compiling" != yes; then 3920 { { ac_try="$ac_link" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_link") 2>&5 3928 ac_status=$? 3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; } 3931 if { ac_try='./conftest$ac_cv_exeext' 3932 { { case "(($ac_try" in 3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3934 *) ac_try_echo=$ac_try;; 3935esac 3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3937$as_echo "$ac_try_echo"; } >&5 3938 (eval "$ac_try") 2>&5 3939 ac_status=$? 3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3941 test $ac_status = 0; }; }; then 3942 cross_compiling=no 3943 else 3944 if test "$cross_compiling" = maybe; then 3945 cross_compiling=yes 3946 else 3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3949as_fn_error $? "cannot run C compiled programs. 3950If you meant to cross compile, use \`--host'. 3951See \`config.log' for more details" "$LINENO" 5; } 3952 fi 3953 fi 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3956$as_echo "$cross_compiling" >&6; } 3957 3958rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3959ac_clean_files=$ac_clean_files_save 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3961$as_echo_n "checking for suffix of object files... " >&6; } 3962if ${ac_cv_objext+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main () 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976rm -f conftest.o conftest.obj 3977if { { ac_try="$ac_compile" 3978case "(($ac_try" in 3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3980 *) ac_try_echo=$ac_try;; 3981esac 3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3983$as_echo "$ac_try_echo"; } >&5 3984 (eval "$ac_compile") 2>&5 3985 ac_status=$? 3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3987 test $ac_status = 0; }; then : 3988 for ac_file in conftest.o conftest.obj conftest.*; do 3989 test -f "$ac_file" || continue; 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3993 break;; 3994 esac 3995done 3996else 3997 $as_echo "$as_me: failed program was:" >&5 3998sed 's/^/| /' conftest.$ac_ext >&5 3999 4000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4002as_fn_error $? "cannot compute suffix of object files: cannot compile 4003See \`config.log' for more details" "$LINENO" 5; } 4004fi 4005rm -f conftest.$ac_cv_objext conftest.$ac_ext 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4008$as_echo "$ac_cv_objext" >&6; } 4009OBJEXT=$ac_cv_objext 4010ac_objext=$OBJEXT 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4012$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4013if ${ac_cv_c_compiler_gnu+:} false; then : 4014 $as_echo_n "(cached) " >&6 4015else 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main () 4021{ 4022#ifndef __GNUC__ 4023 choke me 4024#endif 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_compiler_gnu=yes 4032else 4033 ac_compiler_gnu=no 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036ac_cv_c_compiler_gnu=$ac_compiler_gnu 4037 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4040$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4041if test $ac_compiler_gnu = yes; then 4042 GCC=yes 4043else 4044 GCC= 4045fi 4046ac_test_CFLAGS=${CFLAGS+set} 4047ac_save_CFLAGS=$CFLAGS 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4049$as_echo_n "checking whether $CC accepts -g... " >&6; } 4050if ${ac_cv_prog_cc_g+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 ac_save_c_werror_flag=$ac_c_werror_flag 4054 ac_c_werror_flag=yes 4055 ac_cv_prog_cc_g=no 4056 CFLAGS="-g" 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059 4060int 4061main () 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_prog_cc_g=yes 4070else 4071 CFLAGS="" 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074 4075int 4076main () 4077{ 4078 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083if ac_fn_c_try_compile "$LINENO"; then : 4084 4085else 4086 ac_c_werror_flag=$ac_save_c_werror_flag 4087 CFLAGS="-g" 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090 4091int 4092main () 4093{ 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099if ac_fn_c_try_compile "$LINENO"; then : 4100 ac_cv_prog_cc_g=yes 4101fi 4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4103fi 4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4105fi 4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4107 ac_c_werror_flag=$ac_save_c_werror_flag 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4110$as_echo "$ac_cv_prog_cc_g" >&6; } 4111if test "$ac_test_CFLAGS" = set; then 4112 CFLAGS=$ac_save_CFLAGS 4113elif test $ac_cv_prog_cc_g = yes; then 4114 if test "$GCC" = yes; then 4115 CFLAGS="-g -O2" 4116 else 4117 CFLAGS="-g" 4118 fi 4119else 4120 if test "$GCC" = yes; then 4121 CFLAGS="-O2" 4122 else 4123 CFLAGS= 4124 fi 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4127$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4128if ${ac_cv_prog_cc_c89+:} false; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 ac_cv_prog_cc_c89=no 4132ac_save_CC=$CC 4133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135#include <stdarg.h> 4136#include <stdio.h> 4137struct stat; 4138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4139struct buf { int x; }; 4140FILE * (*rcsopen) (struct buf *, struct stat *, int); 4141static char *e (p, i) 4142 char **p; 4143 int i; 4144{ 4145 return p[i]; 4146} 4147static char *f (char * (*g) (char **, int), char **p, ...) 4148{ 4149 char *s; 4150 va_list v; 4151 va_start (v,p); 4152 s = g (p, va_arg (v,int)); 4153 va_end (v); 4154 return s; 4155} 4156 4157/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4158 function prototypes and stuff, but not '\xHH' hex character constants. 4159 These don't provoke an error unfortunately, instead are silently treated 4160 as 'x'. The following induces an error, until -std is added to get 4161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4162 array size at least. It's necessary to write '\x00'==0 to get something 4163 that's true only with -std. */ 4164int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4165 4166/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4167 inside strings and character constants. */ 4168#define FOO(x) 'x' 4169int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4170 4171int test (int i, double x); 4172struct s1 {int (*f) (int a);}; 4173struct s2 {int (*f) (double a);}; 4174int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4175int argc; 4176char **argv; 4177int 4178main () 4179{ 4180return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4181 ; 4182 return 0; 4183} 4184_ACEOF 4185for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4187do 4188 CC="$ac_save_CC $ac_arg" 4189 if ac_fn_c_try_compile "$LINENO"; then : 4190 ac_cv_prog_cc_c89=$ac_arg 4191fi 4192rm -f core conftest.err conftest.$ac_objext 4193 test "x$ac_cv_prog_cc_c89" != "xno" && break 4194done 4195rm -f conftest.$ac_ext 4196CC=$ac_save_CC 4197 4198fi 4199# AC_CACHE_VAL 4200case "x$ac_cv_prog_cc_c89" in 4201 x) 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4203$as_echo "none needed" >&6; } ;; 4204 xno) 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4206$as_echo "unsupported" >&6; } ;; 4207 *) 4208 CC="$CC $ac_cv_prog_cc_c89" 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4210$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4211esac 4212if test "x$ac_cv_prog_cc_c89" != xno; then : 4213 4214fi 4215 4216ac_ext=c 4217ac_cpp='$CPP $CPPFLAGS' 4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4220ac_compiler_gnu=$ac_cv_c_compiler_gnu 4221 4222ac_ext=cpp 4223ac_cpp='$CXXCPP $CPPFLAGS' 4224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4227if test -z "$CXX"; then 4228 if test -n "$CCC"; then 4229 CXX=$CCC 4230 else 4231 if test -n "$ac_tool_prefix"; then 4232 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4233 do 4234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4235set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4237$as_echo_n "checking for $ac_word... " >&6; } 4238if ${ac_cv_prog_CXX+:} false; then : 4239 $as_echo_n "(cached) " >&6 4240else 4241 if test -n "$CXX"; then 4242 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4243else 4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4245for as_dir in $PATH 4246do 4247 IFS=$as_save_IFS 4248 test -z "$as_dir" && as_dir=. 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4253 break 2 4254 fi 4255done 4256 done 4257IFS=$as_save_IFS 4258 4259fi 4260fi 4261CXX=$ac_cv_prog_CXX 4262if test -n "$CXX"; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4264$as_echo "$CXX" >&6; } 4265else 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4267$as_echo "no" >&6; } 4268fi 4269 4270 4271 test -n "$CXX" && break 4272 done 4273fi 4274if test -z "$CXX"; then 4275 ac_ct_CXX=$CXX 4276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4277do 4278 # Extract the first word of "$ac_prog", so it can be a program name with args. 4279set dummy $ac_prog; ac_word=$2 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4281$as_echo_n "checking for $ac_word... " >&6; } 4282if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 if test -n "$ac_ct_CXX"; then 4286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4287else 4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289for as_dir in $PATH 4290do 4291 IFS=$as_save_IFS 4292 test -z "$as_dir" && as_dir=. 4293 for ac_exec_ext in '' $ac_executable_extensions; do 4294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4295 ac_cv_prog_ac_ct_CXX="$ac_prog" 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4297 break 2 4298 fi 4299done 4300 done 4301IFS=$as_save_IFS 4302 4303fi 4304fi 4305ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4306if test -n "$ac_ct_CXX"; then 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4308$as_echo "$ac_ct_CXX" >&6; } 4309else 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4311$as_echo "no" >&6; } 4312fi 4313 4314 4315 test -n "$ac_ct_CXX" && break 4316done 4317 4318 if test "x$ac_ct_CXX" = x; then 4319 CXX="g++" 4320 else 4321 case $cross_compiling:$ac_tool_warned in 4322yes:) 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4325ac_tool_warned=yes ;; 4326esac 4327 CXX=$ac_ct_CXX 4328 fi 4329fi 4330 4331 fi 4332fi 4333# Provide some information about the compiler. 4334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4335set X $ac_compile 4336ac_compiler=$2 4337for ac_option in --version -v -V -qversion; do 4338 { { ac_try="$ac_compiler $ac_option >&5" 4339case "(($ac_try" in 4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4341 *) ac_try_echo=$ac_try;; 4342esac 4343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4344$as_echo "$ac_try_echo"; } >&5 4345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4346 ac_status=$? 4347 if test -s conftest.err; then 4348 sed '10a\ 4349... rest of stderr output deleted ... 4350 10q' conftest.err >conftest.er1 4351 cat conftest.er1 >&5 4352 fi 4353 rm -f conftest.er1 conftest.err 4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4355 test $ac_status = 0; } 4356done 4357 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4359$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4360if ${ac_cv_cxx_compiler_gnu+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364/* end confdefs.h. */ 4365 4366int 4367main () 4368{ 4369#ifndef __GNUC__ 4370 choke me 4371#endif 4372 4373 ; 4374 return 0; 4375} 4376_ACEOF 4377if ac_fn_cxx_try_compile "$LINENO"; then : 4378 ac_compiler_gnu=yes 4379else 4380 ac_compiler_gnu=no 4381fi 4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4383ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4384 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4387$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4388if test $ac_compiler_gnu = yes; then 4389 GXX=yes 4390else 4391 GXX= 4392fi 4393ac_test_CXXFLAGS=${CXXFLAGS+set} 4394ac_save_CXXFLAGS=$CXXFLAGS 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4396$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4397if ${ac_cv_prog_cxx_g+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399else 4400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4401 ac_cxx_werror_flag=yes 4402 ac_cv_prog_cxx_g=no 4403 CXXFLAGS="-g" 4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4405/* end confdefs.h. */ 4406 4407int 4408main () 4409{ 4410 4411 ; 4412 return 0; 4413} 4414_ACEOF 4415if ac_fn_cxx_try_compile "$LINENO"; then : 4416 ac_cv_prog_cxx_g=yes 4417else 4418 CXXFLAGS="" 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421 4422int 4423main () 4424{ 4425 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430if ac_fn_cxx_try_compile "$LINENO"; then : 4431 4432else 4433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4434 CXXFLAGS="-g" 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437 4438int 4439main () 4440{ 4441 4442 ; 4443 return 0; 4444} 4445_ACEOF 4446if ac_fn_cxx_try_compile "$LINENO"; then : 4447 ac_cv_prog_cxx_g=yes 4448fi 4449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4450fi 4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4452fi 4453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4457$as_echo "$ac_cv_prog_cxx_g" >&6; } 4458if test "$ac_test_CXXFLAGS" = set; then 4459 CXXFLAGS=$ac_save_CXXFLAGS 4460elif test $ac_cv_prog_cxx_g = yes; then 4461 if test "$GXX" = yes; then 4462 CXXFLAGS="-g -O2" 4463 else 4464 CXXFLAGS="-g" 4465 fi 4466else 4467 if test "$GXX" = yes; then 4468 CXXFLAGS="-O2" 4469 else 4470 CXXFLAGS= 4471 fi 4472fi 4473ac_ext=c 4474ac_cpp='$CPP $CPPFLAGS' 4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4477ac_compiler_gnu=$ac_cv_c_compiler_gnu 4478 4479 4480ac_ext=c 4481ac_cpp='$CPP $CPPFLAGS' 4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4484ac_compiler_gnu=$ac_cv_c_compiler_gnu 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4486$as_echo_n "checking how to run the C preprocessor... " >&6; } 4487# On Suns, sometimes $CPP names a directory. 4488if test -n "$CPP" && test -d "$CPP"; then 4489 CPP= 4490fi 4491if test -z "$CPP"; then 4492 if ${ac_cv_prog_CPP+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 # Double quotes because CPP needs to be expanded 4496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4497 do 4498 ac_preproc_ok=false 4499for ac_c_preproc_warn_flag in '' yes 4500do 4501 # Use a header file that comes with gcc, so configuring glibc 4502 # with a fresh cross-compiler works. 4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4504 # <limits.h> exists even on freestanding compilers. 4505 # On the NeXT, cc -E runs the code through the compiler's parser, 4506 # not just through cpp. "Syntax error" is here to catch this case. 4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508/* end confdefs.h. */ 4509#ifdef __STDC__ 4510# include <limits.h> 4511#else 4512# include <assert.h> 4513#endif 4514 Syntax error 4515_ACEOF 4516if ac_fn_c_try_cpp "$LINENO"; then : 4517 4518else 4519 # Broken: fails on valid input. 4520continue 4521fi 4522rm -f conftest.err conftest.i conftest.$ac_ext 4523 4524 # OK, works on sane cases. Now check whether nonexistent headers 4525 # can be detected and how. 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528#include <ac_nonexistent.h> 4529_ACEOF 4530if ac_fn_c_try_cpp "$LINENO"; then : 4531 # Broken: success on invalid input. 4532continue 4533else 4534 # Passes both tests. 4535ac_preproc_ok=: 4536break 4537fi 4538rm -f conftest.err conftest.i conftest.$ac_ext 4539 4540done 4541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4542rm -f conftest.i conftest.err conftest.$ac_ext 4543if $ac_preproc_ok; then : 4544 break 4545fi 4546 4547 done 4548 ac_cv_prog_CPP=$CPP 4549 4550fi 4551 CPP=$ac_cv_prog_CPP 4552else 4553 ac_cv_prog_CPP=$CPP 4554fi 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4556$as_echo "$CPP" >&6; } 4557ac_preproc_ok=false 4558for ac_c_preproc_warn_flag in '' yes 4559do 4560 # Use a header file that comes with gcc, so configuring glibc 4561 # with a fresh cross-compiler works. 4562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4563 # <limits.h> exists even on freestanding compilers. 4564 # On the NeXT, cc -E runs the code through the compiler's parser, 4565 # not just through cpp. "Syntax error" is here to catch this case. 4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4567/* end confdefs.h. */ 4568#ifdef __STDC__ 4569# include <limits.h> 4570#else 4571# include <assert.h> 4572#endif 4573 Syntax error 4574_ACEOF 4575if ac_fn_c_try_cpp "$LINENO"; then : 4576 4577else 4578 # Broken: fails on valid input. 4579continue 4580fi 4581rm -f conftest.err conftest.i conftest.$ac_ext 4582 4583 # OK, works on sane cases. Now check whether nonexistent headers 4584 # can be detected and how. 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4586/* end confdefs.h. */ 4587#include <ac_nonexistent.h> 4588_ACEOF 4589if ac_fn_c_try_cpp "$LINENO"; then : 4590 # Broken: success on invalid input. 4591continue 4592else 4593 # Passes both tests. 4594ac_preproc_ok=: 4595break 4596fi 4597rm -f conftest.err conftest.i conftest.$ac_ext 4598 4599done 4600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4601rm -f conftest.i conftest.err conftest.$ac_ext 4602if $ac_preproc_ok; then : 4603 4604else 4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4607as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4608See \`config.log' for more details" "$LINENO" 5; } 4609fi 4610 4611ac_ext=c 4612ac_cpp='$CPP $CPPFLAGS' 4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4615ac_compiler_gnu=$ac_cv_c_compiler_gnu 4616 4617 4618case "$host_os" in #( 4619 cygwin*) : 4620 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mingw32 environment" >&5 4622$as_echo_n "checking for mingw32 environment... " >&6; } 4623if ${rb_cv_mingw32+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4627/* end confdefs.h. */ 4628 4629#ifndef __MINGW32__ 4630# error 4631#endif 4632 4633_ACEOF 4634if ac_fn_c_try_cpp "$LINENO"; then : 4635 rb_cv_mingw32=yes 4636else 4637 rb_cv_mingw32=no 4638fi 4639rm -f conftest.err conftest.i conftest.$ac_ext 4640rm -f conftest* 4641fi 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mingw32" >&5 4643$as_echo "$rb_cv_mingw32" >&6; } 4644if test "$rb_cv_mingw32" = yes; then 4645 target_os="mingw32" 4646 : ${ac_tool_prefix:="`expr "$CC" : '\(.*-\)g\?cc[^/]*$'`"} 4647fi 4648 ;; #( 4649 *) : 4650 ;; 4651esac 4652case "$target_os" in #( 4653 mingw*msvc) : 4654 4655target_os="`echo ${target_os} | sed 's/msvc$//'`" 4656 ;; #( 4657 *) : 4658 ;; 4659esac 4660case "$target_cpu-$target_os" in #( 4661 x86_64-mingw*) : 4662 4663target_cpu=x64 4664 ;; #( 4665 *) : 4666 ;; 4667esac 4668 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4670$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4671if ${ac_cv_path_GREP+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 if test -z "$GREP"; then 4675 ac_path_GREP_found=false 4676 # Loop through the user's path and test for each of PROGNAME-LIST 4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4678for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4679do 4680 IFS=$as_save_IFS 4681 test -z "$as_dir" && as_dir=. 4682 for ac_prog in grep ggrep; do 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4685 as_fn_executable_p "$ac_path_GREP" || continue 4686# Check for GNU ac_path_GREP and select it if it is found. 4687 # Check for GNU $ac_path_GREP 4688case `"$ac_path_GREP" --version 2>&1` in 4689*GNU*) 4690 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4691*) 4692 ac_count=0 4693 $as_echo_n 0123456789 >"conftest.in" 4694 while : 4695 do 4696 cat "conftest.in" "conftest.in" >"conftest.tmp" 4697 mv "conftest.tmp" "conftest.in" 4698 cp "conftest.in" "conftest.nl" 4699 $as_echo 'GREP' >> "conftest.nl" 4700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4702 as_fn_arith $ac_count + 1 && ac_count=$as_val 4703 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4704 # Best one so far, save it but keep looking for a better one 4705 ac_cv_path_GREP="$ac_path_GREP" 4706 ac_path_GREP_max=$ac_count 4707 fi 4708 # 10*(2^10) chars as input seems more than enough 4709 test $ac_count -gt 10 && break 4710 done 4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4712esac 4713 4714 $ac_path_GREP_found && break 3 4715 done 4716 done 4717 done 4718IFS=$as_save_IFS 4719 if test -z "$ac_cv_path_GREP"; then 4720 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4721 fi 4722else 4723 ac_cv_path_GREP=$GREP 4724fi 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4728$as_echo "$ac_cv_path_GREP" >&6; } 4729 GREP="$ac_cv_path_GREP" 4730 4731 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4733$as_echo_n "checking for egrep... " >&6; } 4734if ${ac_cv_path_EGREP+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4738 then ac_cv_path_EGREP="$GREP -E" 4739 else 4740 if test -z "$EGREP"; then 4741 ac_path_EGREP_found=false 4742 # Loop through the user's path and test for each of PROGNAME-LIST 4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4744for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4745do 4746 IFS=$as_save_IFS 4747 test -z "$as_dir" && as_dir=. 4748 for ac_prog in egrep; do 4749 for ac_exec_ext in '' $ac_executable_extensions; do 4750 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4751 as_fn_executable_p "$ac_path_EGREP" || continue 4752# Check for GNU ac_path_EGREP and select it if it is found. 4753 # Check for GNU $ac_path_EGREP 4754case `"$ac_path_EGREP" --version 2>&1` in 4755*GNU*) 4756 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4757*) 4758 ac_count=0 4759 $as_echo_n 0123456789 >"conftest.in" 4760 while : 4761 do 4762 cat "conftest.in" "conftest.in" >"conftest.tmp" 4763 mv "conftest.tmp" "conftest.in" 4764 cp "conftest.in" "conftest.nl" 4765 $as_echo 'EGREP' >> "conftest.nl" 4766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4768 as_fn_arith $ac_count + 1 && ac_count=$as_val 4769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4770 # Best one so far, save it but keep looking for a better one 4771 ac_cv_path_EGREP="$ac_path_EGREP" 4772 ac_path_EGREP_max=$ac_count 4773 fi 4774 # 10*(2^10) chars as input seems more than enough 4775 test $ac_count -gt 10 && break 4776 done 4777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4778esac 4779 4780 $ac_path_EGREP_found && break 3 4781 done 4782 done 4783 done 4784IFS=$as_save_IFS 4785 if test -z "$ac_cv_path_EGREP"; then 4786 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4787 fi 4788else 4789 ac_cv_path_EGREP=$EGREP 4790fi 4791 4792 fi 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4795$as_echo "$ac_cv_path_EGREP" >&6; } 4796 EGREP="$ac_cv_path_EGREP" 4797 4798 4799if test $ac_cv_c_compiler_gnu = yes; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4801$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4802if ${ac_cv_prog_gcc_traditional+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 ac_pattern="Autoconf.*'x'" 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808#include <sgtty.h> 4809Autoconf TIOCGETP 4810_ACEOF 4811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4812 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4813 ac_cv_prog_gcc_traditional=yes 4814else 4815 ac_cv_prog_gcc_traditional=no 4816fi 4817rm -f conftest* 4818 4819 4820 if test $ac_cv_prog_gcc_traditional = no; then 4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4822/* end confdefs.h. */ 4823#include <termio.h> 4824Autoconf TCGETA 4825_ACEOF 4826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4827 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4828 ac_cv_prog_gcc_traditional=yes 4829fi 4830rm -f conftest* 4831 4832 fi 4833fi 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4835$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4836 if test $ac_cv_prog_gcc_traditional = yes; then 4837 CC="$CC -traditional" 4838 fi 4839fi 4840 4841 4842case "$target_os" in #( 4843 solaris*) : 4844 if test -n "$ac_tool_prefix"; then 4845 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 4846set dummy ${ac_tool_prefix}ld; ac_word=$2 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4848$as_echo_n "checking for $ac_word... " >&6; } 4849if ${ac_cv_path_LD+:} false; then : 4850 $as_echo_n "(cached) " >&6 4851else 4852 case $LD in 4853 [\\/]* | ?:[\\/]*) 4854 ac_cv_path_LD="$LD" # Let the user override the test with a path. 4855 ;; 4856 *) 4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858as_dummy="/usr/ccs/bin:$PATH" 4859for as_dir in $as_dummy 4860do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4865 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869done 4870 done 4871IFS=$as_save_IFS 4872 4873 ;; 4874esac 4875fi 4876LD=$ac_cv_path_LD 4877if test -n "$LD"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4879$as_echo "$LD" >&6; } 4880else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4882$as_echo "no" >&6; } 4883fi 4884 4885 4886fi 4887if test -z "$ac_cv_path_LD"; then 4888 ac_pt_LD=$LD 4889 # Extract the first word of "ld", so it can be a program name with args. 4890set dummy ld; ac_word=$2 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4892$as_echo_n "checking for $ac_word... " >&6; } 4893if ${ac_cv_path_ac_pt_LD+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 case $ac_pt_LD in 4897 [\\/]* | ?:[\\/]*) 4898 ac_cv_path_ac_pt_LD="$ac_pt_LD" # Let the user override the test with a path. 4899 ;; 4900 *) 4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902as_dummy="/usr/ccs/bin:$PATH" 4903for as_dir in $as_dummy 4904do 4905 IFS=$as_save_IFS 4906 test -z "$as_dir" && as_dir=. 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4909 ac_cv_path_ac_pt_LD="$as_dir/$ac_word$ac_exec_ext" 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4911 break 2 4912 fi 4913done 4914 done 4915IFS=$as_save_IFS 4916 4917 ;; 4918esac 4919fi 4920ac_pt_LD=$ac_cv_path_ac_pt_LD 4921if test -n "$ac_pt_LD"; then 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LD" >&5 4923$as_echo "$ac_pt_LD" >&6; } 4924else 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4926$as_echo "no" >&6; } 4927fi 4928 4929 if test "x$ac_pt_LD" = x; then 4930 LD="/usr/ccs/bin/ld" 4931 else 4932 case $cross_compiling:$ac_tool_warned in 4933yes:) 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4936ac_tool_warned=yes ;; 4937esac 4938 LD=$ac_pt_LD 4939 fi 4940else 4941 LD="$ac_cv_path_LD" 4942fi 4943 ;; #( 4944 *) : 4945 if test -n "$ac_tool_prefix"; then 4946 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 4947set dummy ${ac_tool_prefix}ld; ac_word=$2 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949$as_echo_n "checking for $ac_word... " >&6; } 4950if ${ac_cv_prog_LD+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 if test -n "$LD"; then 4954 ac_cv_prog_LD="$LD" # Let the user override the test. 4955else 4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4963 ac_cv_prog_LD="${ac_tool_prefix}ld" 4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971fi 4972fi 4973LD=$ac_cv_prog_LD 4974if test -n "$LD"; then 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4976$as_echo "$LD" >&6; } 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981 4982 4983fi 4984if test -z "$ac_cv_prog_LD"; then 4985 ac_ct_LD=$LD 4986 # Extract the first word of "ld", so it can be a program name with args. 4987set dummy ld; ac_word=$2 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4989$as_echo_n "checking for $ac_word... " >&6; } 4990if ${ac_cv_prog_ac_ct_LD+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if test -n "$ac_ct_LD"; then 4994 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_ac_ct_LD="ld" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008 done 5009IFS=$as_save_IFS 5010 5011fi 5012fi 5013ac_ct_LD=$ac_cv_prog_ac_ct_LD 5014if test -n "$ac_ct_LD"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 5016$as_echo "$ac_ct_LD" >&6; } 5017else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020fi 5021 5022 if test "x$ac_ct_LD" = x; then 5023 LD="ld" 5024 else 5025 case $cross_compiling:$ac_tool_warned in 5026yes:) 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5029ac_tool_warned=yes ;; 5030esac 5031 LD=$ac_ct_LD 5032 fi 5033else 5034 LD="$ac_cv_prog_LD" 5035fi 5036 ;; 5037esac 5038 5039if test "$GCC" = yes; then 5040 linker_flag=-Wl, 5041 : ${optflags=-O3} 5042 { for rb_opt in "-include ruby/config.h" "-include ruby/missing.h"; do # RUBY_APPEND_OPTIONS(XCFLAGS, "-include ruby/config.h" "-include ruby/missing.h") 5043 case " ${XCFLAGS-} " in #( 5044 *" ${rb_opt} "*) : 5045 ;; #( 5046 ' ') : 5047 XCFLAGS="${rb_opt}" ;; #( 5048 *) : 5049 XCFLAGS="$XCFLAGS ${rb_opt}" ;; 5050esac 5051 done; } 5052else 5053 linker_flag=-Wl, 5054fi 5055 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker is GNU ld" >&5 5057$as_echo_n "checking whether the linker is GNU ld... " >&6; } 5058if ${rb_cv_prog_gnu_ld+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 if `$CC $CFLAGS $CPPFLAGS $LDFLAGS --print-prog-name=ld 2>&1` -v 2>&1 | grep "GNU ld" > /dev/null; then 5062 rb_cv_prog_gnu_ld=yes 5063else 5064 rb_cv_prog_gnu_ld=no 5065fi 5066 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_gnu_ld" >&5 5069$as_echo "$rb_cv_prog_gnu_ld" >&6; } 5070GNU_LD=$rb_cv_prog_gnu_ld 5071 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CPP} accepts -o" >&5 5073$as_echo_n "checking whether ${CPP} accepts -o... " >&6; } 5074if ${rb_cv_cppoutfile+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 save_CPPFLAGS="$CPPFLAGS" 5078CPPFLAGS='-o conftest-1.i' 5079rb_cv_cppoutfile=no 5080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082test-for-cppout 5083_ACEOF 5084if ac_fn_c_try_cpp "$LINENO"; then : 5085 grep test-for-cppout conftest-1.i > /dev/null && rb_cv_cppoutfile=yes 5086fi 5087rm -f conftest.err conftest.i conftest.$ac_ext 5088CPPFLAGS="$save_CPPFLAGS" 5089rm -f conftest* 5090fi 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_cppoutfile" >&5 5092$as_echo "$rb_cv_cppoutfile" >&6; } 5093if test "$rb_cv_cppoutfile" = yes; then 5094 CPPOUTFILE='-o conftest.i' 5095elif test "$rb_cv_cppoutfile" = no; then 5096 CPPOUTFILE='> conftest.i' 5097elif test -n "$rb_cv_cppoutfile"; then 5098 CPPOUTFILE="$rb_cv_cppoutfile" 5099fi 5100 5101 5102: ${OUTFLAG='-o '} 5103: ${COUTFLAG=${OUTFLAG}} 5104 5105 5106 5107 5108# RUBY_UNIVERSAL_ARCH begin 5109ARCH_FLAG=`expr " $CFLAGS " : '.* \(-m[0-9][0-9]*\) '` 5110test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'` 5111test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'` 5112unset universal_binary universal_archnames 5113if test ${target_archs+set}; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 5115$as_echo_n "checking target architectures... " >&6; } 5116 target_archs=`echo $target_archs | tr , ' '` 5117 # /usr/lib/arch_tool -archify_list $TARGET_ARCHS 5118 for archs in $target_archs 5119 do 5120 case ",$universal_binary," in #( 5121 *",$archs,"*) : 5122 ;; #( 5123 *) : 5124 5125 cpu=`$SHELL "$ac_aux_dir/config.sub" "${archs}-${target_os}" 2>&1` || { 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5127$as_echo "failed" >&6; } 5128 as_fn_error $? "$cpu" "$LINENO" 5 5129 } 5130 cpu=`echo $cpu | sed 's/-.*-.*//'` 5131 universal_binary="${universal_binary+$universal_binary,}$cpu" 5132 universal_archnames="${universal_archnames} ${archs}=${cpu}" 5133 ARCH_FLAG="${ARCH_FLAG+$ARCH_FLAG }-arch $archs" 5134 ;; 5135esac 5136 done 5137 target_archs="$universal_binary" 5138 universal_binary=yes 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_archs" >&5 5140$as_echo "$target_archs" >&6; } 5141 5142 target=`echo $target | sed "s/^$target_cpu-/-/"` 5143 target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"` 5144 if test "${universal_binary-no}" = yes; then 5145 5146 try_header=try_compile 5147 5148 target_cpu=universal 5149 real_cross_compiling=$cross_compiling 5150 else 5151 if test x"$target_cpu" != x"${target_archs}"; then 5152 echo 'int main(){return 0;}' > conftest.c 5153 if $CC $CFLAGS $ARCH_FLAG -o conftest conftest.c > /dev/null 2>&1; then 5154 rm -fr conftest.* 5155 else 5156 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking arch option" >&5 5158$as_echo_n "checking arch option... " >&6; } 5159case "$target_archs" in #( 5160 *64) : 5161 ARCH_FLAG=-m64 ;; #( 5162 i[3-6]86) : 5163 ARCH_FLAG=-m32 ;; #( 5164 *) : 5165 as_fn_error $? "unknown target architecture: $target_archs" "$LINENO" 5 5166 ;; 5167esac 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_FLAG" >&5 5169$as_echo "$ARCH_FLAG" >&6; } 5170 5171 fi 5172 fi 5173 target_cpu=${target_archs} 5174 fi 5175 case "$target" in #( 5176 -*) : 5177 target="$target_cpu${target}" ;; #( 5178 *) : 5179 ;; 5180esac 5181 case "$target_alias" in #( 5182 -*) : 5183 target_alias="$target_cpu${target_alias}" ;; #( 5184 *) : 5185 ;; 5186esac 5187else 5188 if test x"$target_alias" = x; then 5189 case "$target_os" in #( 5190 darwin*) : 5191 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 5193$as_echo_n "checking for real target cpu... " >&6; } 5194 target=`echo $target | sed "s/^$target_cpu-/-/"` 5195 target_cpu=`$CC -E - 2>/dev/null <<EOF | 5196#ifdef __x86_64__ 5197"processor-name=x86_64" 5198#endif 5199#ifdef __i386__ 5200"processor-name=i386" 5201#endif 5202#ifdef __ppc__ 5203"processor-name=powerpc" 5204#endif 5205#ifdef __ppc64__ 5206"processor-name=powerpc64" 5207#endif 5208EOF 5209 sed -n 's/^"processor-name=\(.*\)"/\1/p'` 5210 target="$target_cpu${target}" 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5 5212$as_echo "$target_cpu" >&6; } 5213 ;; #( 5214 *) : 5215 ;; 5216esac 5217 fi 5218 target_archs="$target_cpu" 5219fi 5220if test "${target_archs}" != "${rb_cv_target_archs-${target_archs}}"; then 5221 as_fn_error $? "target arch(s) has changed from ${rb_cv_target_archs-nothing} to ${target_archs}" "$LINENO" 5 5222else 5223 rb_cv_target_archs=${target_archs} 5224fi 5225if test "x${ARCH_FLAG}" != x; then 5226 CFLAGS="$CFLAGS ${ARCH_FLAG}" 5227 LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}" 5228fi 5229# RUBY_UNIVERSAL_ARCH end 5230 5231if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no; then 5232 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking arch option" >&5 5234$as_echo_n "checking arch option... " >&6; } 5235case "$target_cpu" in #( 5236 *64) : 5237 ARCH_FLAG=-m64 ;; #( 5238 i[3-6]86) : 5239 ARCH_FLAG=-m32 ;; #( 5240 *) : 5241 as_fn_error $? "unknown target architecture: $target_archs" "$LINENO" 5 5242 ;; 5243esac 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_FLAG" >&5 5245$as_echo "$ARCH_FLAG" >&6; } 5246 5247fi 5248 5249case "$target_cpu-$target_os" in #( 5250 i[3-6]86*) : 5251 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5 5253$as_echo_n "checking for __sync_val_compare_and_swap... " >&6; } 5254if ${rb_cv_gcc_compiler_cas+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260unsigned long atomic_var; 5261int 5262main () 5263{ 5264 5265 __sync_val_compare_and_swap(&atomic_var, 0, 1); 5266 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271if ac_fn_c_try_link "$LINENO"; then : 5272 rb_cv_gcc_compiler_cas=yes 5273else 5274 rb_cv_gcc_compiler_cas=no 5275fi 5276rm -f core conftest.err conftest.$ac_objext \ 5277 conftest$ac_exeext conftest.$ac_ext 5278fi 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_compiler_cas" >&5 5280$as_echo "$rb_cv_gcc_compiler_cas" >&6; } 5281 if test "$rb_cv_gcc_compiler_cas" = no; then 5282 unset rb_cv_gcc_compiler_cas 5283 save_CFLAGS="$CFLAGS" 5284 CFLAGS="$CFLAGS -march=i486" 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap with -march=i486" >&5 5286$as_echo_n "checking for __sync_val_compare_and_swap with -march=i486... " >&6; } 5287if ${rb_cv_gcc_compiler_cas+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293unsigned long atomic_var; 5294int 5295main () 5296{ 5297 5298 __sync_val_compare_and_swap(&atomic_var, 0, 1); 5299 5300 ; 5301 return 0; 5302} 5303_ACEOF 5304if ac_fn_c_try_link "$LINENO"; then : 5305 rb_cv_gcc_compiler_cas=yes 5306 ARCH_FLAG="-march=i486" 5307else 5308 rb_cv_gcc_compiler_cas=no 5309fi 5310rm -f core conftest.err conftest.$ac_objext \ 5311 conftest$ac_exeext conftest.$ac_ext 5312fi 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_compiler_cas" >&5 5314$as_echo "$rb_cv_gcc_compiler_cas" >&6; } 5315 CFLAGS="$save_CFLAGS" 5316 fi ;; #( 5317 *) : 5318 ;; 5319esac 5320 5321if test -n "$ac_tool_prefix"; then 5322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5323set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5325$as_echo_n "checking for $ac_word... " >&6; } 5326if ${ac_cv_prog_RANLIB+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 if test -n "$RANLIB"; then 5330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5331else 5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333for as_dir in $PATH 5334do 5335 IFS=$as_save_IFS 5336 test -z "$as_dir" && as_dir=. 5337 for ac_exec_ext in '' $ac_executable_extensions; do 5338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5339 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5341 break 2 5342 fi 5343done 5344 done 5345IFS=$as_save_IFS 5346 5347fi 5348fi 5349RANLIB=$ac_cv_prog_RANLIB 5350if test -n "$RANLIB"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5352$as_echo "$RANLIB" >&6; } 5353else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5355$as_echo "no" >&6; } 5356fi 5357 5358 5359fi 5360if test -z "$ac_cv_prog_RANLIB"; then 5361 ac_ct_RANLIB=$RANLIB 5362 # Extract the first word of "ranlib", so it can be a program name with args. 5363set dummy ranlib; ac_word=$2 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5365$as_echo_n "checking for $ac_word... " >&6; } 5366if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 if test -n "$ac_ct_RANLIB"; then 5370 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5371else 5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5373for as_dir in $PATH 5374do 5375 IFS=$as_save_IFS 5376 test -z "$as_dir" && as_dir=. 5377 for ac_exec_ext in '' $ac_executable_extensions; do 5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5379 ac_cv_prog_ac_ct_RANLIB="ranlib" 5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5381 break 2 5382 fi 5383done 5384 done 5385IFS=$as_save_IFS 5386 5387fi 5388fi 5389ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5390if test -n "$ac_ct_RANLIB"; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5392$as_echo "$ac_ct_RANLIB" >&6; } 5393else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5395$as_echo "no" >&6; } 5396fi 5397 5398 if test "x$ac_ct_RANLIB" = x; then 5399 RANLIB=":" 5400 else 5401 case $cross_compiling:$ac_tool_warned in 5402yes:) 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5405ac_tool_warned=yes ;; 5406esac 5407 RANLIB=$ac_ct_RANLIB 5408 fi 5409else 5410 RANLIB="$ac_cv_prog_RANLIB" 5411fi 5412 5413if test -n "$ac_tool_prefix"; then 5414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5415set dummy ${ac_tool_prefix}ar; ac_word=$2 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5417$as_echo_n "checking for $ac_word... " >&6; } 5418if ${ac_cv_prog_AR+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 if test -n "$AR"; then 5422 ac_cv_prog_AR="$AR" # Let the user override the test. 5423else 5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425for as_dir in $PATH 5426do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5431 ac_cv_prog_AR="${ac_tool_prefix}ar" 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435done 5436 done 5437IFS=$as_save_IFS 5438 5439fi 5440fi 5441AR=$ac_cv_prog_AR 5442if test -n "$AR"; then 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5444$as_echo "$AR" >&6; } 5445else 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447$as_echo "no" >&6; } 5448fi 5449 5450 5451fi 5452if test -z "$ac_cv_prog_AR"; then 5453 ac_ct_AR=$AR 5454 # Extract the first word of "ar", so it can be a program name with args. 5455set dummy ar; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if ${ac_cv_prog_ac_ct_AR+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$ac_ct_AR"; then 5462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_prog_ac_ct_AR="ar" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481ac_ct_AR=$ac_cv_prog_ac_ct_AR 5482if test -n "$ac_ct_AR"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5484$as_echo "$ac_ct_AR" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 if test "x$ac_ct_AR" = x; then 5491 AR="" 5492 else 5493 case $cross_compiling:$ac_tool_warned in 5494yes:) 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5497ac_tool_warned=yes ;; 5498esac 5499 AR=$ac_ct_AR 5500 fi 5501else 5502 AR="$ac_cv_prog_AR" 5503fi 5504 5505if test -z "$AR"; then 5506 for ac_prog in aal 5507do 5508 # Extract the first word of "$ac_prog", so it can be a program name with args. 5509set dummy $ac_prog; ac_word=$2 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5511$as_echo_n "checking for $ac_word... " >&6; } 5512if ${ac_cv_prog_AR+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 if test -n "$AR"; then 5516 ac_cv_prog_AR="$AR" # Let the user override the test. 5517else 5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5519for as_dir in $PATH 5520do 5521 IFS=$as_save_IFS 5522 test -z "$as_dir" && as_dir=. 5523 for ac_exec_ext in '' $ac_executable_extensions; do 5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5525 ac_cv_prog_AR="$ac_prog" 5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5527 break 2 5528 fi 5529done 5530 done 5531IFS=$as_save_IFS 5532 5533fi 5534fi 5535AR=$ac_cv_prog_AR 5536if test -n "$AR"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5538$as_echo "$AR" >&6; } 5539else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541$as_echo "no" >&6; } 5542fi 5543 5544 5545 test -n "$AR" && break 5546done 5547test -n "$AR" || AR="ar" 5548 5549fi 5550 5551if test -n "$ac_tool_prefix"; then 5552 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5553set dummy ${ac_tool_prefix}as; ac_word=$2 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5555$as_echo_n "checking for $ac_word... " >&6; } 5556if ${ac_cv_prog_AS+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 if test -n "$AS"; then 5560 ac_cv_prog_AS="$AS" # Let the user override the test. 5561else 5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5563for as_dir in $PATH 5564do 5565 IFS=$as_save_IFS 5566 test -z "$as_dir" && as_dir=. 5567 for ac_exec_ext in '' $ac_executable_extensions; do 5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5569 ac_cv_prog_AS="${ac_tool_prefix}as" 5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5571 break 2 5572 fi 5573done 5574 done 5575IFS=$as_save_IFS 5576 5577fi 5578fi 5579AS=$ac_cv_prog_AS 5580if test -n "$AS"; then 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5582$as_echo "$AS" >&6; } 5583else 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5585$as_echo "no" >&6; } 5586fi 5587 5588 5589fi 5590if test -z "$ac_cv_prog_AS"; then 5591 ac_ct_AS=$AS 5592 # Extract the first word of "as", so it can be a program name with args. 5593set dummy as; ac_word=$2 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5595$as_echo_n "checking for $ac_word... " >&6; } 5596if ${ac_cv_prog_ac_ct_AS+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 if test -n "$ac_ct_AS"; then 5600 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5601else 5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_exec_ext in '' $ac_executable_extensions; do 5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5609 ac_cv_prog_ac_ct_AS="as" 5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5611 break 2 5612 fi 5613done 5614 done 5615IFS=$as_save_IFS 5616 5617fi 5618fi 5619ac_ct_AS=$ac_cv_prog_ac_ct_AS 5620if test -n "$ac_ct_AS"; then 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5622$as_echo "$ac_ct_AS" >&6; } 5623else 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5625$as_echo "no" >&6; } 5626fi 5627 5628 if test "x$ac_ct_AS" = x; then 5629 AS="" 5630 else 5631 case $cross_compiling:$ac_tool_warned in 5632yes:) 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5635ac_tool_warned=yes ;; 5636esac 5637 AS=$ac_ct_AS 5638 fi 5639else 5640 AS="$ac_cv_prog_AS" 5641fi 5642 5643ASFLAGS=$ASFLAGS 5644 5645 5646case "$target_os" in #( 5647 cygwin*|mingw*) : 5648 ac_cv_prog_ac_ct_OBJCOPY=":" ;; #( 5649 *) : 5650 ;; 5651esac 5652 5653# BSD's ports and MacPorts prefix GNU binutils with 'g' 5654if test -n "$ac_tool_prefix"; then 5655 for ac_prog in objdump gobjdump 5656 do 5657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5658set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5660$as_echo_n "checking for $ac_word... " >&6; } 5661if ${ac_cv_prog_OBJDUMP+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 if test -n "$OBJDUMP"; then 5665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5666else 5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5668for as_dir in $PATH 5669do 5670 IFS=$as_save_IFS 5671 test -z "$as_dir" && as_dir=. 5672 for ac_exec_ext in '' $ac_executable_extensions; do 5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5674 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5676 break 2 5677 fi 5678done 5679 done 5680IFS=$as_save_IFS 5681 5682fi 5683fi 5684OBJDUMP=$ac_cv_prog_OBJDUMP 5685if test -n "$OBJDUMP"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5687$as_echo "$OBJDUMP" >&6; } 5688else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690$as_echo "no" >&6; } 5691fi 5692 5693 5694 test -n "$OBJDUMP" && break 5695 done 5696fi 5697if test -z "$OBJDUMP"; then 5698 ac_ct_OBJDUMP=$OBJDUMP 5699 for ac_prog in objdump gobjdump 5700do 5701 # Extract the first word of "$ac_prog", so it can be a program name with args. 5702set dummy $ac_prog; ac_word=$2 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704$as_echo_n "checking for $ac_word... " >&6; } 5705if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test -n "$ac_ct_OBJDUMP"; then 5709 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5710else 5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712for as_dir in $PATH 5713do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5718 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722done 5723 done 5724IFS=$as_save_IFS 5725 5726fi 5727fi 5728ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5729if test -n "$ac_ct_OBJDUMP"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5731$as_echo "$ac_ct_OBJDUMP" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735fi 5736 5737 5738 test -n "$ac_ct_OBJDUMP" && break 5739done 5740 5741 if test "x$ac_ct_OBJDUMP" = x; then 5742 OBJDUMP="" 5743 else 5744 case $cross_compiling:$ac_tool_warned in 5745yes:) 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5748ac_tool_warned=yes ;; 5749esac 5750 OBJDUMP=$ac_ct_OBJDUMP 5751 fi 5752fi 5753 5754if test -n "$ac_tool_prefix"; then 5755 for ac_prog in objcopy gobjcopy 5756 do 5757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5758set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_OBJCOPY+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$OBJCOPY"; then 5765 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784OBJCOPY=$ac_cv_prog_OBJCOPY 5785if test -n "$OBJCOPY"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 5787$as_echo "$OBJCOPY" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794 test -n "$OBJCOPY" && break 5795 done 5796fi 5797if test -z "$OBJCOPY"; then 5798 ac_ct_OBJCOPY=$OBJCOPY 5799 for ac_prog in objcopy gobjcopy 5800do 5801 # Extract the first word of "$ac_prog", so it can be a program name with args. 5802set dummy $ac_prog; ac_word=$2 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5804$as_echo_n "checking for $ac_word... " >&6; } 5805if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 if test -n "$ac_ct_OBJCOPY"; then 5809 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 5810else 5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812for as_dir in $PATH 5813do 5814 IFS=$as_save_IFS 5815 test -z "$as_dir" && as_dir=. 5816 for ac_exec_ext in '' $ac_executable_extensions; do 5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5818 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5820 break 2 5821 fi 5822done 5823 done 5824IFS=$as_save_IFS 5825 5826fi 5827fi 5828ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 5829if test -n "$ac_ct_OBJCOPY"; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 5831$as_echo "$ac_ct_OBJCOPY" >&6; } 5832else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5834$as_echo "no" >&6; } 5835fi 5836 5837 5838 test -n "$ac_ct_OBJCOPY" && break 5839done 5840 5841 if test "x$ac_ct_OBJCOPY" = x; then 5842 OBJCOPY="" 5843 else 5844 case $cross_compiling:$ac_tool_warned in 5845yes:) 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5848ac_tool_warned=yes ;; 5849esac 5850 OBJCOPY=$ac_ct_OBJCOPY 5851 fi 5852fi 5853 5854 5855case "$target_os" in #( 5856 cygwin*|mingw*) : 5857 5858 if test -n "$ac_tool_prefix"; then 5859 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 5860set dummy ${ac_tool_prefix}windres; ac_word=$2 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5862$as_echo_n "checking for $ac_word... " >&6; } 5863if ${ac_cv_prog_WINDRES+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 if test -n "$WINDRES"; then 5867 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 5868else 5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870for as_dir in $PATH 5871do 5872 IFS=$as_save_IFS 5873 test -z "$as_dir" && as_dir=. 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880done 5881 done 5882IFS=$as_save_IFS 5883 5884fi 5885fi 5886WINDRES=$ac_cv_prog_WINDRES 5887if test -n "$WINDRES"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 5889$as_echo "$WINDRES" >&6; } 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893fi 5894 5895 5896fi 5897if test -z "$ac_cv_prog_WINDRES"; then 5898 ac_ct_WINDRES=$WINDRES 5899 # Extract the first word of "windres", so it can be a program name with args. 5900set dummy windres; ac_word=$2 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902$as_echo_n "checking for $ac_word... " >&6; } 5903if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 if test -n "$ac_ct_WINDRES"; then 5907 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 5908else 5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5916 ac_cv_prog_ac_ct_WINDRES="windres" 5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921 done 5922IFS=$as_save_IFS 5923 5924fi 5925fi 5926ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 5927if test -n "$ac_ct_WINDRES"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 5929$as_echo "$ac_ct_WINDRES" >&6; } 5930else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934 5935 if test "x$ac_ct_WINDRES" = x; then 5936 WINDRES="" 5937 else 5938 case $cross_compiling:$ac_tool_warned in 5939yes:) 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5942ac_tool_warned=yes ;; 5943esac 5944 WINDRES=$ac_ct_WINDRES 5945 fi 5946else 5947 WINDRES="$ac_cv_prog_WINDRES" 5948fi 5949 5950 if test -n "$ac_tool_prefix"; then 5951 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. 5952set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5954$as_echo_n "checking for $ac_word... " >&6; } 5955if ${ac_cv_prog_DLLWRAP+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 if test -n "$DLLWRAP"; then 5959 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" 5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978DLLWRAP=$ac_cv_prog_DLLWRAP 5979if test -n "$DLLWRAP"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 5981$as_echo "$DLLWRAP" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 5988fi 5989if test -z "$ac_cv_prog_DLLWRAP"; then 5990 ac_ct_DLLWRAP=$DLLWRAP 5991 # Extract the first word of "dllwrap", so it can be a program name with args. 5992set dummy dllwrap; ac_word=$2 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994$as_echo_n "checking for $ac_word... " >&6; } 5995if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 if test -n "$ac_ct_DLLWRAP"; then 5999 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6008 ac_cv_prog_ac_ct_DLLWRAP="dllwrap" 6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013 done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP 6019if test -n "$ac_ct_DLLWRAP"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 6021$as_echo "$ac_ct_DLLWRAP" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024$as_echo "no" >&6; } 6025fi 6026 6027 if test "x$ac_ct_DLLWRAP" = x; then 6028 DLLWRAP="" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031yes:) 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6034ac_tool_warned=yes ;; 6035esac 6036 DLLWRAP=$ac_ct_DLLWRAP 6037 fi 6038else 6039 DLLWRAP="$ac_cv_prog_DLLWRAP" 6040fi 6041 6042 target=`echo $target | sed "s/^$target_cpu-/-/"` 6043 target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"` 6044 target_cpu=`echo $target_cpu | sed s/i.86/i386/` 6045 case "$target" in #( 6046 -*) : 6047 target="$target_cpu${target}" ;; #( 6048 *) : 6049 ;; 6050esac 6051 case "$target_alias" in #( 6052 -*) : 6053 target_alias="$target_cpu${target_alias}" ;; #( 6054 *) : 6055 ;; 6056esac 6057 case "$target_os" in #( 6058 mingw*) : 6059 6060 test "$rb_cv_msvcrt" = "" && unset rb_cv_msvcrt 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mingw32 runtime DLL" >&5 6062$as_echo_n "checking for mingw32 runtime DLL... " >&6; } 6063if ${rb_cv_msvcrt+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068/* end confdefs.h. */ 6069#include <stdio.h> 6070int 6071main () 6072{ 6073FILE* volatile f = stdin; return 0; 6074 ; 6075 return 0; 6076} 6077_ACEOF 6078if ac_fn_c_try_link "$LINENO"; then : 6079 rb_cv_msvcrt=`$OBJDUMP -p conftest$ac_exeext | 6080 tr A-Z a-z | 6081 sed -n '/^[ ]*dll name: \(msvc.*\)\.dll$/{s//\1/p;q;}'` 6082else 6083 rb_cv_msvcrt=msvcrt 6084fi 6085rm -f core conftest.err conftest.$ac_objext \ 6086 conftest$ac_exeext conftest.$ac_ext 6087 test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt 6088fi 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_msvcrt" >&5 6090$as_echo "$rb_cv_msvcrt" >&6; } 6091 RT_VER=`echo "$rb_cv_msvcrt" | tr -cd 0-9` 6092 test "$RT_VER" = "" && RT_VER=60 6093 cat >>confdefs.h <<_ACEOF 6094#define RUBY_MSVCRT_VERSION $RT_VER 6095_ACEOF 6096 6097 ;; #( 6098 *) : 6099 ;; 6100esac 6101 : ${enable_shared=yes} 6102 ;; #( 6103 aix*) : 6104 if test -n "$ac_tool_prefix"; then 6105 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 6106set dummy ${ac_tool_prefix}nm; ac_word=$2 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6108$as_echo_n "checking for $ac_word... " >&6; } 6109if ${ac_cv_prog_NM+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 if test -n "$NM"; then 6113 ac_cv_prog_NM="$NM" # Let the user override the test. 6114else 6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6116as_dummy="/usr/ccs/bin:$PATH" 6117for as_dir in $as_dummy 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6123 ac_cv_prog_NM="${ac_tool_prefix}nm" 6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131fi 6132fi 6133NM=$ac_cv_prog_NM 6134if test -n "$NM"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 6136$as_echo "$NM" >&6; } 6137else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139$as_echo "no" >&6; } 6140fi 6141 6142 6143fi 6144if test -z "$ac_cv_prog_NM"; then 6145 ac_ct_NM=$NM 6146 # Extract the first word of "nm", so it can be a program name with args. 6147set dummy nm; ac_word=$2 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6149$as_echo_n "checking for $ac_word... " >&6; } 6150if ${ac_cv_prog_ac_ct_NM+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 if test -n "$ac_ct_NM"; then 6154 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 6155else 6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157as_dummy="/usr/ccs/bin:$PATH" 6158for as_dir in $as_dummy 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_ac_ct_NM="nm" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174ac_ct_NM=$ac_cv_prog_ac_ct_NM 6175if test -n "$ac_ct_NM"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 6177$as_echo "$ac_ct_NM" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 if test "x$ac_ct_NM" = x; then 6184 NM="/usr/ccs/bin/nm" 6185 else 6186 case $cross_compiling:$ac_tool_warned in 6187yes:) 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6190ac_tool_warned=yes ;; 6191esac 6192 NM=$ac_ct_NM 6193 fi 6194else 6195 NM="$ac_cv_prog_NM" 6196fi 6197 ;; #( 6198 hiuxmpp*) : 6199 $as_echo "#define __HIUX_MPP__ 1" >>confdefs.h 6200 ;; #( 6201 *) : 6202 ;; 6203esac # by TOYODA Eizi <toyoda@npd.kishou.go.jp> 6204if test -n "$ac_tool_prefix"; then 6205 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 6206set dummy ${ac_tool_prefix}nm; ac_word=$2 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6208$as_echo_n "checking for $ac_word... " >&6; } 6209if ${ac_cv_prog_NM+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211else 6212 if test -n "$NM"; then 6213 ac_cv_prog_NM="$NM" # Let the user override the test. 6214else 6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6216for as_dir in $PATH 6217do 6218 IFS=$as_save_IFS 6219 test -z "$as_dir" && as_dir=. 6220 for ac_exec_ext in '' $ac_executable_extensions; do 6221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6222 ac_cv_prog_NM="${ac_tool_prefix}nm" 6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6224 break 2 6225 fi 6226done 6227 done 6228IFS=$as_save_IFS 6229 6230fi 6231fi 6232NM=$ac_cv_prog_NM 6233if test -n "$NM"; then 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 6235$as_echo "$NM" >&6; } 6236else 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6238$as_echo "no" >&6; } 6239fi 6240 6241 6242fi 6243if test -z "$ac_cv_prog_NM"; then 6244 ac_ct_NM=$NM 6245 # Extract the first word of "nm", so it can be a program name with args. 6246set dummy nm; ac_word=$2 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6248$as_echo_n "checking for $ac_word... " >&6; } 6249if ${ac_cv_prog_ac_ct_NM+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 if test -n "$ac_ct_NM"; then 6253 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 6254else 6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6256for as_dir in $PATH 6257do 6258 IFS=$as_save_IFS 6259 test -z "$as_dir" && as_dir=. 6260 for ac_exec_ext in '' $ac_executable_extensions; do 6261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6262 ac_cv_prog_ac_ct_NM="nm" 6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6264 break 2 6265 fi 6266done 6267 done 6268IFS=$as_save_IFS 6269 6270fi 6271fi 6272ac_ct_NM=$ac_cv_prog_ac_ct_NM 6273if test -n "$ac_ct_NM"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 6275$as_echo "$ac_ct_NM" >&6; } 6276else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278$as_echo "no" >&6; } 6279fi 6280 6281 if test "x$ac_ct_NM" = x; then 6282 NM="" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285yes:) 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288ac_tool_warned=yes ;; 6289esac 6290 NM=$ac_ct_NM 6291 fi 6292else 6293 NM="$ac_cv_prog_NM" 6294fi 6295 6296 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6298$as_echo_n "checking whether ln -s works... " >&6; } 6299LN_S=$as_ln_s 6300if test "$LN_S" = "ln -s"; then 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6302$as_echo "yes" >&6; } 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6305$as_echo "no, using $LN_S" >&6; } 6306fi 6307 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6310set x ${MAKE-make} 6311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6312if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 cat >conftest.make <<\_ACEOF 6316SHELL = /bin/sh 6317all: 6318 @echo '@@@%%%=$(MAKE)=@@@%%%' 6319_ACEOF 6320# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6321case `${MAKE-make} -f conftest.make 2>/dev/null` in 6322 *@@@%%%=?*=@@@%%%*) 6323 eval ac_cv_prog_make_${ac_make}_set=yes;; 6324 *) 6325 eval ac_cv_prog_make_${ac_make}_set=no;; 6326esac 6327rm -f conftest.make 6328fi 6329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6331$as_echo "yes" >&6; } 6332 SET_MAKE= 6333else 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335$as_echo "no" >&6; } 6336 SET_MAKE="MAKE=${MAKE-make}" 6337fi 6338 6339# Find a good install program. We prefer a C program (faster), 6340# so one script is as good as another. But avoid the broken or 6341# incompatible versions: 6342# SysV /etc/install, /usr/sbin/install 6343# SunOS /usr/etc/install 6344# IRIX /sbin/install 6345# AIX /bin/install 6346# AmigaOS /C/install, which installs bootblocks on floppy discs 6347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6348# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6350# OS/2's system install, which has a completely different semantic 6351# ./install, which can be erroneously created by make from ./install.sh. 6352# Reject install programs that cannot install multiple files. 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6354$as_echo_n "checking for a BSD-compatible install... " >&6; } 6355if test -z "$INSTALL"; then 6356if ${ac_cv_path_install+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 # Account for people who put trailing slashes in PATH elements. 6365case $as_dir/ in #(( 6366 ./ | .// | /[cC]/* | \ 6367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6368 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6369 /usr/ucb/* ) ;; 6370 *) 6371 # OSF1 and SCO ODT 3.0 have their own names for install. 6372 # Don't use installbsd from OSF since it installs stuff as root 6373 # by default. 6374 for ac_prog in ginstall scoinst install; do 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6377 if test $ac_prog = install && 6378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6379 # AIX install. It has an incompatible calling convention. 6380 : 6381 elif test $ac_prog = install && 6382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6383 # program-specific install script used by HP pwplus--don't use. 6384 : 6385 else 6386 rm -rf conftest.one conftest.two conftest.dir 6387 echo one > conftest.one 6388 echo two > conftest.two 6389 mkdir conftest.dir 6390 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6391 test -s conftest.one && test -s conftest.two && 6392 test -s conftest.dir/conftest.one && 6393 test -s conftest.dir/conftest.two 6394 then 6395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6396 break 3 6397 fi 6398 fi 6399 fi 6400 done 6401 done 6402 ;; 6403esac 6404 6405 done 6406IFS=$as_save_IFS 6407 6408rm -rf conftest.one conftest.two conftest.dir 6409 6410fi 6411 if test "${ac_cv_path_install+set}" = set; then 6412 INSTALL=$ac_cv_path_install 6413 else 6414 # As a last resort, use the slow shell script. Don't cache a 6415 # value for INSTALL within a source directory, because that will 6416 # break other packages using the cache if that directory is 6417 # removed, or if the value is a relative name. 6418 INSTALL=$ac_install_sh 6419 fi 6420fi 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6422$as_echo "$INSTALL" >&6; } 6423 6424# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6425# It thinks the first close brace ends the variable substitution. 6426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6427 6428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6429 6430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6431 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6433$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6434if test -z "$MKDIR_P"; then 6435 if ${ac_cv_path_mkdir+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_prog in mkdir gmkdir; do 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6446 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6447 'mkdir (GNU coreutils) '* | \ 6448 'mkdir (coreutils) '* | \ 6449 'mkdir (fileutils) '4.1*) 6450 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6451 break 3;; 6452 esac 6453 done 6454 done 6455 done 6456IFS=$as_save_IFS 6457 6458fi 6459 6460 test -d ./--version && rmdir ./--version 6461 if test "${ac_cv_path_mkdir+set}" = set; then 6462 MKDIR_P="$ac_cv_path_mkdir -p" 6463 else 6464 # As a last resort, use the slow shell script. Don't cache a 6465 # value for MKDIR_P within a source directory, because that will 6466 # break other packages using the cache if that directory is 6467 # removed, or if the value is a relative name. 6468 MKDIR_P="$ac_install_sh -d" 6469 fi 6470fi 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6472$as_echo "$MKDIR_P" >&6; } 6473 6474if test "x$MKDIR_P" = "x -d"; then 6475 if test x"$as_mkdir_p" != xfalse; then 6476 MKDIR_P='mkdir -p' 6477 echo "use 'mkdir -p' as MKDIR_P" 6478 else 6479 as_fn_error $? "mkdir -p is required" "$LINENO" 5 6480 fi 6481fi 6482MAKEDIRS="$MKDIR_P" 6483 6484 6485 6486 6487 6488 6489# Extract the first word of "${ac_tool_prefix}dtrace", so it can be a program name with args. 6490set dummy ${ac_tool_prefix}dtrace; ac_word=$2 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6492$as_echo_n "checking for $ac_word... " >&6; } 6493if ${ac_cv_prog_DTRACE+:} false; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 if test -n "$DTRACE"; then 6497 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. 6498else 6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6500for as_dir in $PATH 6501do 6502 IFS=$as_save_IFS 6503 test -z "$as_dir" && as_dir=. 6504 for ac_exec_ext in '' $ac_executable_extensions; do 6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6506 ac_cv_prog_DTRACE="${ac_tool_prefix}dtrace" 6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511 done 6512IFS=$as_save_IFS 6513 6514fi 6515fi 6516DTRACE=$ac_cv_prog_DTRACE 6517if test -n "$DTRACE"; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 6519$as_echo "$DTRACE" >&6; } 6520else 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6522$as_echo "no" >&6; } 6523fi 6524 6525 6526if test "$cross_compiling:$ac_cv_prog_DTRACE" = no: -a -n "$ac_tool_prefix"; then 6527 # Extract the first word of "dtrace", so it can be a program name with args. 6528set dummy dtrace; ac_word=$2 6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6530$as_echo_n "checking for $ac_word... " >&6; } 6531if ${ac_cv_prog_DTRACE+:} false; then : 6532 $as_echo_n "(cached) " >&6 6533else 6534 if test -n "$DTRACE"; then 6535 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. 6536else 6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538for as_dir in $PATH 6539do 6540 IFS=$as_save_IFS 6541 test -z "$as_dir" && as_dir=. 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6544 ac_cv_prog_DTRACE="dtrace" 6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548done 6549 done 6550IFS=$as_save_IFS 6551 6552fi 6553fi 6554DTRACE=$ac_cv_prog_DTRACE 6555if test -n "$DTRACE"; then 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 6557$as_echo "$DTRACE" >&6; } 6558else 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6560$as_echo "no" >&6; } 6561fi 6562 6563 6564fi 6565 6566for ac_prog in dot 6567do 6568 # Extract the first word of "$ac_prog", so it can be a program name with args. 6569set dummy $ac_prog; ac_word=$2 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6571$as_echo_n "checking for $ac_word... " >&6; } 6572if ${ac_cv_prog_DOT+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 if test -n "$DOT"; then 6576 ac_cv_prog_DOT="$DOT" # Let the user override the test. 6577else 6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6579for as_dir in $PATH 6580do 6581 IFS=$as_save_IFS 6582 test -z "$as_dir" && as_dir=. 6583 for ac_exec_ext in '' $ac_executable_extensions; do 6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6585 ac_cv_prog_DOT="$ac_prog" 6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589done 6590 done 6591IFS=$as_save_IFS 6592 6593fi 6594fi 6595DOT=$ac_cv_prog_DOT 6596if test -n "$DOT"; then 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 6598$as_echo "$DOT" >&6; } 6599else 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6601$as_echo "no" >&6; } 6602fi 6603 6604 6605 test -n "$DOT" && break 6606done 6607 6608for ac_prog in doxygen 6609do 6610 # Extract the first word of "$ac_prog", so it can be a program name with args. 6611set dummy $ac_prog; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_DOXYGEN+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$DOXYGEN"; then 6618 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_DOXYGEN="$ac_prog" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637DOXYGEN=$ac_cv_prog_DOXYGEN 6638if test -n "$DOXYGEN"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 6640$as_echo "$DOXYGEN" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647 test -n "$DOXYGEN" && break 6648done 6649 6650case "${host_os}" in #( 6651 nacl) : 6652 # Extract the first word of "python", so it can be a program name with args. 6653set dummy python; ac_word=$2 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655$as_echo_n "checking for $ac_word... " >&6; } 6656if ${ac_cv_path_PYTHON+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 case $PYTHON in 6660 [\\/]* | ?:[\\/]*) 6661 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 6662 ;; 6663 *) 6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679 ;; 6680esac 6681fi 6682PYTHON=$ac_cv_path_PYTHON 6683if test -n "$PYTHON"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 6685$as_echo "$PYTHON" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 ;; #( 6692 *) : 6693 ;; 6694esac 6695 6696# Extract the first word of "pkg-config", so it can be a program name with args. 6697set dummy pkg-config; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_PKG_CONFIG+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$PKG_CONFIG"; then 6704 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 6705else 6706 ac_prog_rejected=no 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6714 if test "$as_dir/$ac_word$ac_exec_ext" = "`"$as_dir/$ac_word$ac_exec_ext" --print-errors --version > /dev/null 2>&1 || echo "$as_dir/$ac_word$ac_exec_ext"`"; then 6715 ac_prog_rejected=yes 6716 continue 6717 fi 6718 ac_cv_prog_PKG_CONFIG="pkg-config" 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6720 break 2 6721 fi 6722done 6723 done 6724IFS=$as_save_IFS 6725 6726if test $ac_prog_rejected = yes; then 6727 # We found a bogon in the path, so make sure we never use it. 6728 set dummy $ac_cv_prog_PKG_CONFIG 6729 shift 6730 if test $# != 0; then 6731 # We chose a different compiler from the bogus one. 6732 # However, it has the same basename, so the bogon will be chosen 6733 # first if we set PKG_CONFIG to just the basename; use the full file name. 6734 shift 6735 ac_cv_prog_PKG_CONFIG="$as_dir/$ac_word${1+' '}$@" 6736 fi 6737fi 6738fi 6739fi 6740PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 6741if test -n "$PKG_CONFIG"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6743$as_echo "$PKG_CONFIG" >&6; } 6744else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746$as_echo "no" >&6; } 6747fi 6748 6749 6750 6751# checks for UNIX variants that set C preprocessor variables 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6753$as_echo_n "checking for ANSI C header files... " >&6; } 6754if ${ac_cv_header_stdc+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758/* end confdefs.h. */ 6759#include <stdlib.h> 6760#include <stdarg.h> 6761#include <string.h> 6762#include <float.h> 6763 6764int 6765main () 6766{ 6767 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 ac_cv_header_stdc=yes 6774else 6775 ac_cv_header_stdc=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778 6779if test $ac_cv_header_stdc = yes; then 6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783#include <string.h> 6784 6785_ACEOF 6786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6787 $EGREP "memchr" >/dev/null 2>&1; then : 6788 6789else 6790 ac_cv_header_stdc=no 6791fi 6792rm -f conftest* 6793 6794fi 6795 6796if test $ac_cv_header_stdc = yes; then 6797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800#include <stdlib.h> 6801 6802_ACEOF 6803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6804 $EGREP "free" >/dev/null 2>&1; then : 6805 6806else 6807 ac_cv_header_stdc=no 6808fi 6809rm -f conftest* 6810 6811fi 6812 6813if test $ac_cv_header_stdc = yes; then 6814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6815 if test "$cross_compiling" = yes; then : 6816 : 6817else 6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6819/* end confdefs.h. */ 6820#include <ctype.h> 6821#include <stdlib.h> 6822#if ((' ' & 0x0FF) == 0x020) 6823# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6824# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6825#else 6826# define ISLOWER(c) \ 6827 (('a' <= (c) && (c) <= 'i') \ 6828 || ('j' <= (c) && (c) <= 'r') \ 6829 || ('s' <= (c) && (c) <= 'z')) 6830# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6831#endif 6832 6833#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6834int 6835main () 6836{ 6837 int i; 6838 for (i = 0; i < 256; i++) 6839 if (XOR (islower (i), ISLOWER (i)) 6840 || toupper (i) != TOUPPER (i)) 6841 return 2; 6842 return 0; 6843} 6844_ACEOF 6845if ac_fn_c_try_run "$LINENO"; then : 6846 6847else 6848 ac_cv_header_stdc=no 6849fi 6850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6851 conftest.$ac_objext conftest.beam conftest.$ac_ext 6852fi 6853 6854fi 6855fi 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6857$as_echo "$ac_cv_header_stdc" >&6; } 6858if test $ac_cv_header_stdc = yes; then 6859 6860$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6861 6862fi 6863 6864# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6865for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6866 inttypes.h stdint.h unistd.h 6867do : 6868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6869ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6870" 6871if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6872 cat >>confdefs.h <<_ACEOF 6873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6874_ACEOF 6875 6876fi 6877 6878done 6879 6880 6881 6882 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6883if test "x$ac_cv_header_minix_config_h" = xyes; then : 6884 MINIX=yes 6885else 6886 MINIX= 6887fi 6888 6889 6890 if test "$MINIX" = yes; then 6891 6892$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6893 6894 6895$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6896 6897 6898$as_echo "#define _MINIX 1" >>confdefs.h 6899 6900 fi 6901 6902 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6904$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6905if ${ac_cv_safe_to_define___extensions__+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907else 6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909/* end confdefs.h. */ 6910 6911# define __EXTENSIONS__ 1 6912 $ac_includes_default 6913int 6914main () 6915{ 6916 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921if ac_fn_c_try_compile "$LINENO"; then : 6922 ac_cv_safe_to_define___extensions__=yes 6923else 6924 ac_cv_safe_to_define___extensions__=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6927fi 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6929$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6930 test $ac_cv_safe_to_define___extensions__ = yes && 6931 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6932 6933 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6934 6935 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6936 6937 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6938 6939 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6940 6941 6942 6943RM='rm -f' 6944 6945CP='cp' 6946 6947RMDIRS='$(top_srcdir)/tool/rmdirs' 6948RMDIR=rmdir 6949mkdir "rmdirs_$$_test" "rmdirs_$$_test/a" 6950rmdir --ignore-fail-on-non-empty "rmdirs_$$_test" 2>/dev/null && 6951RMDIR='rmdir --ignore-fail-on-non-empty' 6952$RMDIR -p "rmdirs_$$_test/a" 2>/dev/null && 6953{ test -d "rmdirs_$$_test" || RMDIRS="$RMDIR -p"; } 6954rmdir "rmdirs_$$_test/a" "rmdirs_$$_test" 2>/dev/null 6955 6956 6957RMALL='rm -fr' 6958 6959 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cd using physical directory" >&5 6961$as_echo_n "checking for cd using physical directory... " >&6; } 6962rm -fr conf$$.dir 6963mkdir conf$$.dir && 6964(cd conf$$.dir && mkdir src build && cd src && 6965$as_ln_s ../build . > /dev/null 2>&1 && cd build && 6966for chdir in 'cd -P' 'PWD= cd'; do 6967 /bin/sh -c "$chdir ../src && echo '$chdir' > cdcmd" 2> /dev/null && break 6968done) 6969if test -f conf$$.dir/src/cdcmd; then 6970 read CHDIR < conf$$.dir/src/cdcmd 2> /dev/null 6971else 6972 CHDIR=cd 6973fi 6974rm -fr conf$$.dir 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHDIR" >&5 6976$as_echo "$CHDIR" >&6; } 6977 6978 6979} 6980{ # compiler section 6981 6982 6983 6984 6985 6986 6987 6988case $RUBY_PATCHLEVEL in #( 6989 -*) : 6990 particular_werror_flags=yes ;; #( 6991 *) : 6992 particular_werror_flags=no ;; 6993esac 6994# Check whether --enable-werror was given. 6995if test "${enable_werror+set}" = set; then : 6996 enableval=$enable_werror; particular_werror_flags=$enableval 6997fi 6998 6999 7000rb_cv_warnflags="$warnflags" 7001if test "$GCC:${warnflags+set}:no" = yes::no; then 7002 for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \ 7003 -Wno-missing-field-initializers \ 7004 -Wunused-variable \ 7005 -Werror=pointer-arith \ 7006 -Werror=write-strings \ 7007 -Werror=declaration-after-statement \ 7008 -Werror=shorten-64-to-32 \ 7009 -Werror=implicit-function-declaration \ 7010 ; do 7011 if test "$particular_werror_flags" != yes; then 7012 wflag=`echo x$wflag | sed 's/^x-Werror=/-W/;s/^x//'` 7013 fi 7014 ok=no 7015 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 7017$as_echo_n "checking whether $wflag is accepted as CFLAGS... " >&6; } 7018 save_CFLAGS="$CFLAGS" 7019CFLAGS="$CFLAGS $rb_cv_warnflags" 7020if test "${ac_c_werror_flag+set}"; then 7021 rb_c_werror_flag="$ac_c_werror_flag" 7022else 7023 unset rb_c_werror_flag 7024fi 7025ac_c_werror_flag=yes 7026 7027 CFLAGS="$CFLAGS $wflag" 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029/* end confdefs.h. */ 7030 7031int 7032main () 7033{ 7034 7035 ; 7036 return 0; 7037} 7038_ACEOF 7039if ac_fn_c_try_compile "$LINENO"; then : 7040 7041 { for rb_opt in $wflag; do # RUBY_APPEND_OPTIONS(warnflags, $wflag) 7042 case " ${warnflags-} " in #( 7043 *" ${rb_opt} "*) : 7044 ;; #( 7045 ' ') : 7046 warnflags="${rb_opt}" ;; #( 7047 *) : 7048 warnflags="$warnflags ${rb_opt}" ;; 7049esac 7050 done; } 7051 ok=yes 7052 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7054$as_echo "yes" >&6; } 7055else 7056 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058$as_echo "no" >&6; } 7059fi 7060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7061 7062CFLAGS="$save_CFLAGS" 7063save_CFLAGS= 7064if test "${rb_c_werror_flag+set}"; then 7065 ac_c_werror_flag="$rb_c_werror_flag" 7066else 7067 unset ac_c_werror_flag 7068fi 7069 7070 case $ok:$wflag in #( 7071 no:-Werror=*) : 7072 7073 wflag=`echo x$wflag | sed 's/^x-Werror=/-W/'` 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 7076$as_echo_n "checking whether $wflag is accepted as CFLAGS... " >&6; } 7077 save_CFLAGS="$CFLAGS" 7078CFLAGS="$CFLAGS $rb_cv_warnflags" 7079if test "${ac_c_werror_flag+set}"; then 7080 rb_c_werror_flag="$ac_c_werror_flag" 7081else 7082 unset rb_c_werror_flag 7083fi 7084ac_c_werror_flag=yes 7085 7086 CFLAGS="$CFLAGS $wflag" 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_compile "$LINENO"; then : 7099 7100 { for rb_opt in $wflag; do # RUBY_APPEND_OPTIONS(warnflags, $wflag) 7101 case " ${warnflags-} " in #( 7102 *" ${rb_opt} "*) : 7103 ;; #( 7104 ' ') : 7105 warnflags="${rb_opt}" ;; #( 7106 *) : 7107 warnflags="$warnflags ${rb_opt}" ;; 7108esac 7109 done; } 7110 particular_werror_flags=no 7111 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7113$as_echo "yes" >&6; } 7114else 7115 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7120 7121CFLAGS="$save_CFLAGS" 7122save_CFLAGS= 7123if test "${rb_c_werror_flag+set}"; then 7124 ac_c_werror_flag="$rb_c_werror_flag" 7125else 7126 unset ac_c_werror_flag 7127fi 7128 7129 ;; #( 7130 *) : 7131 ;; 7132esac 7133 done 7134 case " $warnflags " in #( 7135 *" -Wno-missing-field-initializers "*) : 7136 wflag="-Wall -Wextra" ;; #( 7137 *) : 7138 wflag=-Wall ;; 7139esac 7140 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 7142$as_echo_n "checking whether $wflag is accepted as CFLAGS... " >&6; } 7143 save_CFLAGS="$CFLAGS" 7144CFLAGS="$CFLAGS $rb_cv_warnflags" 7145if test "${ac_c_werror_flag+set}"; then 7146 rb_c_werror_flag="$ac_c_werror_flag" 7147else 7148 unset rb_c_werror_flag 7149fi 7150ac_c_werror_flag=yes 7151 7152 CFLAGS="$CFLAGS $wflag" 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155 7156int 7157main () 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_compile "$LINENO"; then : 7165 warnflags="$wflag${warnflags+ $warnflags}" 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7167$as_echo "yes" >&6; } 7168else 7169 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171$as_echo "no" >&6; } 7172fi 7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7174 7175CFLAGS="$save_CFLAGS" 7176save_CFLAGS= 7177if test "${rb_c_werror_flag+set}"; then 7178 ac_c_werror_flag="$rb_c_werror_flag" 7179else 7180 unset ac_c_werror_flag 7181fi 7182 7183 # Disable warnflags while conftest. -Werror=* flags might make bad OS capability guess. 7184 rb_cv_warnflags="$warnflags" 7185 warnflags= 7186fi 7187if test "$GCC" = yes; then 7188 test "${debugflags+set}" || { 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -ggdb3 is accepted as CFLAGS" >&5 7190$as_echo_n "checking whether -ggdb3 is accepted as CFLAGS... " >&6; } 7191 save_CFLAGS="$CFLAGS" 7192CFLAGS="$CFLAGS $rb_cv_warnflags" 7193if test "${ac_c_werror_flag+set}"; then 7194 rb_c_werror_flag="$ac_c_werror_flag" 7195else 7196 unset rb_c_werror_flag 7197fi 7198ac_c_werror_flag=yes 7199 7200 CFLAGS="$CFLAGS -ggdb3" 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203 7204int 7205main () 7206{ 7207 7208 ; 7209 return 0; 7210} 7211_ACEOF 7212if ac_fn_c_try_compile "$LINENO"; then : 7213 debugflags=-ggdb3 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7215$as_echo "yes" >&6; } 7216else 7217 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219$as_echo "no" >&6; } 7220fi 7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222 7223CFLAGS="$save_CFLAGS" 7224save_CFLAGS= 7225if test "${rb_c_werror_flag+set}"; then 7226 ac_c_werror_flag="$rb_c_werror_flag" 7227else 7228 unset ac_c_werror_flag 7229fi 7230} 7231 test "${debugflags+set}" || { 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -ggdb is accepted as CFLAGS" >&5 7233$as_echo_n "checking whether -ggdb is accepted as CFLAGS... " >&6; } 7234 save_CFLAGS="$CFLAGS" 7235CFLAGS="$CFLAGS $rb_cv_warnflags" 7236if test "${ac_c_werror_flag+set}"; then 7237 rb_c_werror_flag="$ac_c_werror_flag" 7238else 7239 unset rb_c_werror_flag 7240fi 7241ac_c_werror_flag=yes 7242 7243 CFLAGS="$CFLAGS -ggdb" 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246 7247int 7248main () 7249{ 7250 7251 ; 7252 return 0; 7253} 7254_ACEOF 7255if ac_fn_c_try_compile "$LINENO"; then : 7256 debugflags=-ggdb 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7258$as_echo "yes" >&6; } 7259else 7260 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7262$as_echo "no" >&6; } 7263fi 7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7265 7266CFLAGS="$save_CFLAGS" 7267save_CFLAGS= 7268if test "${rb_c_werror_flag+set}"; then 7269 ac_c_werror_flag="$rb_c_werror_flag" 7270else 7271 unset ac_c_werror_flag 7272fi 7273} 7274 test "${debugflags+set}" || { 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -g3 is accepted as CFLAGS" >&5 7276$as_echo_n "checking whether -g3 is accepted as CFLAGS... " >&6; } 7277 save_CFLAGS="$CFLAGS" 7278CFLAGS="$CFLAGS $rb_cv_warnflags" 7279if test "${ac_c_werror_flag+set}"; then 7280 rb_c_werror_flag="$ac_c_werror_flag" 7281else 7282 unset rb_c_werror_flag 7283fi 7284ac_c_werror_flag=yes 7285 7286 CFLAGS="$CFLAGS -g3" 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289 7290int 7291main () 7292{ 7293 7294 ; 7295 return 0; 7296} 7297_ACEOF 7298if ac_fn_c_try_compile "$LINENO"; then : 7299 debugflags=-g3 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7301$as_echo "yes" >&6; } 7302else 7303 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7305$as_echo "no" >&6; } 7306fi 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7308 7309CFLAGS="$save_CFLAGS" 7310save_CFLAGS= 7311if test "${rb_c_werror_flag+set}"; then 7312 ac_c_werror_flag="$rb_c_werror_flag" 7313else 7314 unset ac_c_werror_flag 7315fi 7316} 7317 7318 # -D_FORTIFY_SOURCE 7319 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_FORTIFY_SOURCE=2 is accepted as CFLAGS" >&5 7321$as_echo_n "checking whether -D_FORTIFY_SOURCE=2 is accepted as CFLAGS... " >&6; } 7322 save_CFLAGS="$CFLAGS" 7323CFLAGS="$CFLAGS $rb_cv_warnflags" 7324if test "${ac_c_werror_flag+set}"; then 7325 rb_c_werror_flag="$ac_c_werror_flag" 7326else 7327 unset rb_c_werror_flag 7328fi 7329ac_c_werror_flag=yes 7330 7331 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334 7335int 7336main () 7337{ 7338 7339 ; 7340 return 0; 7341} 7342_ACEOF 7343if ac_fn_c_try_compile "$LINENO"; then : 7344 # RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2) 7345 case " ${XCFLAGS-} " in #( 7346 *' -D_FORTIFY_SOURCE=2 '*) : 7347 ;; #( 7348 ' ') : 7349 XCFLAGS="-D_FORTIFY_SOURCE=2" ;; #( 7350 *) : 7351 XCFLAGS="$XCFLAGS -D_FORTIFY_SOURCE=2" ;; 7352esac 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7354$as_echo "yes" >&6; } 7355else 7356 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7358$as_echo "no" >&6; } 7359fi 7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7361 7362CFLAGS="$save_CFLAGS" 7363save_CFLAGS= 7364if test "${rb_c_werror_flag+set}"; then 7365 ac_c_werror_flag="$rb_c_werror_flag" 7366else 7367 unset ac_c_werror_flag 7368fi 7369 7370 7371 # -fstack-protector 7372 case "$target_os" in #( 7373 mingw*|nacl|haiku) : 7374 7375 stack_protector=no 7376 ;; #( 7377 *) : 7378 7379 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector is accepted as CFLAGS" >&5 7381$as_echo_n "checking whether -fstack-protector is accepted as CFLAGS... " >&6; } 7382 save_CFLAGS="$CFLAGS" 7383CFLAGS="$CFLAGS $rb_cv_warnflags" 7384if test "${ac_c_werror_flag+set}"; then 7385 rb_c_werror_flag="$ac_c_werror_flag" 7386else 7387 unset rb_c_werror_flag 7388fi 7389ac_c_werror_flag=yes 7390 7391 CFLAGS="$CFLAGS -fstack-protector" 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394 7395int 7396main () 7397{ 7398 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_compile "$LINENO"; then : 7404 stack_protector=yes 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7406$as_echo "yes" >&6; } 7407else 7408 stack_protector=no 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413 7414CFLAGS="$save_CFLAGS" 7415save_CFLAGS= 7416if test "${rb_c_werror_flag+set}"; then 7417 ac_c_werror_flag="$rb_c_werror_flag" 7418else 7419 unset ac_c_werror_flag 7420fi 7421 7422 if test "x$stack_protector" = xyes; then 7423 7424 save_LDFLAGS="$LDFLAGS" 7425 LDFLAGS="$LDFLAGS -fstack-protector" 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fstack-protector is accepted as LDFLAGS" >&5 7427$as_echo_n "checking whether -fstack-protector is accepted as LDFLAGS... " >&6; } 7428 save_CFLAGS="$CFLAGS" 7429CFLAGS="$CFLAGS $rb_cv_warnflags" 7430if test "${ac_c_werror_flag+set}"; then 7431 rb_c_werror_flag="$ac_c_werror_flag" 7432else 7433 unset rb_c_werror_flag 7434fi 7435ac_c_werror_flag=yes 7436 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439 7440int 7441main () 7442{ 7443 7444 ; 7445 return 0; 7446} 7447_ACEOF 7448if ac_fn_c_try_link "$LINENO"; then : 7449 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7451$as_echo "yes" >&6; } 7452else 7453 stack_protector=broken 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7455$as_echo "no" >&6; } 7456fi 7457rm -f core conftest.err conftest.$ac_objext \ 7458 conftest$ac_exeext conftest.$ac_ext 7459 7460CFLAGS="$save_CFLAGS" 7461save_CFLAGS= 7462if test "${rb_c_werror_flag+set}"; then 7463 ac_c_werror_flag="$rb_c_werror_flag" 7464else 7465 unset ac_c_werror_flag 7466fi 7467 LDFLAGS="$save_LDFLAGS" 7468 save_LDFLAGS= 7469 7470 fi 7471 ;; 7472esac 7473 if test "x$stack_protector" = xyes; then 7474 # RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector) 7475 case " ${XCFLAGS-} " in #( 7476 *' -fstack-protector '*) : 7477 ;; #( 7478 ' ') : 7479 XCFLAGS="-fstack-protector" ;; #( 7480 *) : 7481 XCFLAGS="$XCFLAGS -fstack-protector" ;; 7482esac 7483 # RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector) 7484 case " ${XLDFLAGS-} " in #( 7485 *' -fstack-protector '*) : 7486 ;; #( 7487 ' ') : 7488 XLDFLAGS="-fstack-protector" ;; #( 7489 *) : 7490 XLDFLAGS="$XLDFLAGS -fstack-protector" ;; 7491esac 7492 # RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector) 7493 case " ${LDFLAGS-} " in #( 7494 *' -fstack-protector '*) : 7495 ;; #( 7496 ' ') : 7497 LDFLAGS="-fstack-protector" ;; #( 7498 *) : 7499 LDFLAGS="$LDFLAGS -fstack-protector" ;; 7500esac 7501 fi 7502 7503 case "$target_os" in #( 7504 mingw*) : 7505 7506 # On Windows platforms, system provided headers are VC++ 7507 # optimized. That is, C++ habits are often contaminated into 7508 # various headers. Most frequent situation is the use of // 7509 # comments. We bypass ANSI C mode for them. Otherwise 7510 # extension libs cannot include those headers. 7511 ;; #( 7512 cygwin*|darwin*|netbsd*) : 7513 7514 # need lgamma_r(), finite() 7515 ;; #( 7516 haiku) : 7517 7518 # Haiku R1/alpha3 uses gcc-4.4.4 which can not handle anonymous union 7519 # with ANSI standard flags. Anonumous union is required to compile 7520 # socket extension where <net/if.h> uses anonymous union. 7521 ;; #( 7522 *) : 7523 7524 # ANSI (no XCFLAGS because this is C only) 7525 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -ansi -std=iso9899:199409 is accepted as CFLAGS" >&5 7527$as_echo_n "checking whether -ansi -std=iso9899:199409 is accepted as CFLAGS... " >&6; } 7528 save_CFLAGS="$CFLAGS" 7529CFLAGS="$CFLAGS $rb_cv_warnflags" 7530if test "${ac_c_werror_flag+set}"; then 7531 rb_c_werror_flag="$ac_c_werror_flag" 7532else 7533 unset rb_c_werror_flag 7534fi 7535ac_c_werror_flag=yes 7536 7537 CFLAGS="$CFLAGS -ansi -std=iso9899:199409" 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540 7541int 7542main () 7543{ 7544 7545 ; 7546 return 0; 7547} 7548_ACEOF 7549if ac_fn_c_try_compile "$LINENO"; then : 7550 7551 # RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409) 7552 case " ${warnflags-} " in #( 7553 *' -ansi -std=iso9899:199409 '*) : 7554 ;; #( 7555 ' ') : 7556 warnflags="-ansi -std=iso9899:199409" ;; #( 7557 *) : 7558 warnflags="$warnflags -ansi -std=iso9899:199409" ;; 7559esac 7560 # RUBY_APPEND_OPTION(strict_warnflags, -ansi -std=iso9899:199409) 7561 case " ${strict_warnflags-} " in #( 7562 *' -ansi -std=iso9899:199409 '*) : 7563 ;; #( 7564 ' ') : 7565 strict_warnflags="-ansi -std=iso9899:199409" ;; #( 7566 *) : 7567 strict_warnflags="$strict_warnflags -ansi -std=iso9899:199409" ;; 7568esac 7569 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7571$as_echo "yes" >&6; } 7572else 7573 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7575$as_echo "no" >&6; } 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7578 7579CFLAGS="$save_CFLAGS" 7580save_CFLAGS= 7581if test "${rb_c_werror_flag+set}"; then 7582 ac_c_werror_flag="$rb_c_werror_flag" 7583else 7584 unset ac_c_werror_flag 7585fi 7586 7587 ;; 7588esac 7589 7590 # suppress annoying -Wstrict-overflow warnings 7591 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-strict-overflow is accepted as CFLAGS" >&5 7593$as_echo_n "checking whether -fno-strict-overflow is accepted as CFLAGS... " >&6; } 7594 save_CFLAGS="$CFLAGS" 7595CFLAGS="$CFLAGS $rb_cv_warnflags" 7596if test "${ac_c_werror_flag+set}"; then 7597 rb_c_werror_flag="$ac_c_werror_flag" 7598else 7599 unset rb_c_werror_flag 7600fi 7601ac_c_werror_flag=yes 7602 7603 CFLAGS="$CFLAGS -fno-strict-overflow" 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606 7607int 7608main () 7609{ 7610 7611 ; 7612 return 0; 7613} 7614_ACEOF 7615if ac_fn_c_try_compile "$LINENO"; then : 7616 # RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow) 7617 case " ${XCFLAGS-} " in #( 7618 *' -fno-strict-overflow '*) : 7619 ;; #( 7620 ' ') : 7621 XCFLAGS="-fno-strict-overflow" ;; #( 7622 *) : 7623 XCFLAGS="$XCFLAGS -fno-strict-overflow" ;; 7624esac 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7626$as_echo "yes" >&6; } 7627else 7628 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7633 7634CFLAGS="$save_CFLAGS" 7635save_CFLAGS= 7636if test "${rb_c_werror_flag+set}"; then 7637 ac_c_werror_flag="$rb_c_werror_flag" 7638else 7639 unset ac_c_werror_flag 7640fi 7641 7642fi 7643test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} 7644 7645if test "$GCC" = ""; then 7646 case "$target_os" in #( 7647 aix*) : 7648 warnflags="$warnflags -qinfo=por" rb_cv_warnflags="$rb_cv_warnflags -qinfo=por" ;; #( 7649 *) : 7650 ;; 7651esac 7652fi 7653if test "$GCC" = yes; then 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656 7657 #if !(defined __GNUC__ && __GNUC__ >= 4) 7658 #error not GCC 4 or later 7659 >>>not GCC 4 or later<<< 7660 #endif 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669if ac_fn_c_try_compile "$LINENO"; then : 7670 visibility_option=yes 7671else 7672 visibility_option=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7675 if test "$visibility_option" = yes; then 7676 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden is accepted as CFLAGS" >&5 7678$as_echo_n "checking whether -fvisibility=hidden is accepted as CFLAGS... " >&6; } 7679 save_CFLAGS="$CFLAGS" 7680CFLAGS="$CFLAGS $rb_cv_warnflags" 7681if test "${ac_c_werror_flag+set}"; then 7682 rb_c_werror_flag="$ac_c_werror_flag" 7683else 7684 unset rb_c_werror_flag 7685fi 7686ac_c_werror_flag=yes 7687 7688 CFLAGS="$CFLAGS -fvisibility=hidden" 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691 7692int 7693main () 7694{ 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700if ac_fn_c_try_compile "$LINENO"; then : 7701 visibility_option=yes 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7703$as_echo "yes" >&6; } 7704else 7705 visibility_option=no 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707$as_echo "no" >&6; } 7708fi 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7710 7711CFLAGS="$save_CFLAGS" 7712save_CFLAGS= 7713if test "${rb_c_werror_flag+set}"; then 7714 ac_c_werror_flag="$rb_c_werror_flag" 7715else 7716 unset ac_c_werror_flag 7717fi 7718 7719 fi 7720 WERRORFLAG="-Werror" 7721 7722 if test "$visibility_option" = yes; then 7723 # RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden) 7724 case " ${XCFLAGS-} " in #( 7725 *' -fvisibility=hidden '*) : 7726 ;; #( 7727 ' ') : 7728 XCFLAGS="-fvisibility=hidden" ;; #( 7729 *) : 7730 XCFLAGS="$XCFLAGS -fvisibility=hidden" ;; 7731esac 7732 else 7733 7734 save_LDFLAGS="$LDFLAGS" 7735 LDFLAGS="$LDFLAGS -Wl,-unexported_symbol,_Init_*" 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wl,-unexported_symbol,_Init_* is accepted as LDFLAGS" >&5 7737$as_echo_n "checking whether -Wl,-unexported_symbol,_Init_* is accepted as LDFLAGS... " >&6; } 7738 save_CFLAGS="$CFLAGS" 7739CFLAGS="$CFLAGS $rb_cv_warnflags" 7740if test "${ac_c_werror_flag+set}"; then 7741 rb_c_werror_flag="$ac_c_werror_flag" 7742else 7743 unset rb_c_werror_flag 7744fi 7745ac_c_werror_flag=yes 7746 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749 7750int 7751main () 7752{ 7753 7754 ; 7755 return 0; 7756} 7757_ACEOF 7758if ac_fn_c_try_link "$LINENO"; then : 7759 visibility_option=ld 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7761$as_echo "yes" >&6; } 7762else 7763 visibility_option=no 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765$as_echo "no" >&6; } 7766fi 7767rm -f core conftest.err conftest.$ac_objext \ 7768 conftest$ac_exeext conftest.$ac_ext 7769 7770CFLAGS="$save_CFLAGS" 7771save_CFLAGS= 7772if test "${rb_c_werror_flag+set}"; then 7773 ac_c_werror_flag="$rb_c_werror_flag" 7774else 7775 unset ac_c_werror_flag 7776fi 7777 LDFLAGS="$save_LDFLAGS" 7778 save_LDFLAGS= 7779 7780 fi 7781 test "$visibility_option" = no -o "$host_os" = nacl || OBJCOPY=: 7782fi 7783 7784if test "$GCC" = yes; then 7785 # optflags 7786 7787 case "$target_os" in #( 7788 mingw*) : 7789 7790 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-omit-frame-pointer is accepted as CFLAGS" >&5 7792$as_echo_n "checking whether -fno-omit-frame-pointer is accepted as CFLAGS... " >&6; } 7793 save_CFLAGS="$CFLAGS" 7794CFLAGS="$CFLAGS $rb_cv_warnflags" 7795if test "${ac_c_werror_flag+set}"; then 7796 rb_c_werror_flag="$ac_c_werror_flag" 7797else 7798 unset rb_c_werror_flag 7799fi 7800ac_c_werror_flag=yes 7801 7802 CFLAGS="$CFLAGS -fno-omit-frame-pointer" 7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7804/* end confdefs.h. */ 7805 7806int 7807main () 7808{ 7809 7810 ; 7811 return 0; 7812} 7813_ACEOF 7814if ac_fn_c_try_compile "$LINENO"; then : 7815 optflags="${optflags+$optflags }-fno-omit-frame-pointer" 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7817$as_echo "yes" >&6; } 7818else 7819 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7821$as_echo "no" >&6; } 7822fi 7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7824 7825CFLAGS="$save_CFLAGS" 7826save_CFLAGS= 7827if test "${rb_c_werror_flag+set}"; then 7828 ac_c_werror_flag="$rb_c_werror_flag" 7829else 7830 unset ac_c_werror_flag 7831fi 7832 7833 ;; #( 7834 *) : 7835 ;; 7836esac 7837 7838 # disable fast-math 7839 for oflag in -fno-fast-math; do 7840 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $oflag is accepted as CFLAGS" >&5 7842$as_echo_n "checking whether $oflag is accepted as CFLAGS... " >&6; } 7843 save_CFLAGS="$CFLAGS" 7844CFLAGS="$CFLAGS $rb_cv_warnflags" 7845if test "${ac_c_werror_flag+set}"; then 7846 rb_c_werror_flag="$ac_c_werror_flag" 7847else 7848 unset rb_c_werror_flag 7849fi 7850ac_c_werror_flag=yes 7851 7852 CFLAGS="$CFLAGS $oflag" 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855 7856int 7857main () 7858{ 7859 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864if ac_fn_c_try_compile "$LINENO"; then : 7865 # RUBY_APPEND_OPTION(optflags, $oflag) 7866 case " ${optflags-} " in #( 7867 *' $oflag '*) : 7868 ;; #( 7869 ' ') : 7870 optflags="$oflag" ;; #( 7871 *) : 7872 optflags="$optflags $oflag" ;; 7873esac 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7875$as_echo "yes" >&6; } 7876else 7877 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7879$as_echo "no" >&6; } 7880fi 7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7882 7883CFLAGS="$save_CFLAGS" 7884save_CFLAGS= 7885if test "${rb_c_werror_flag+set}"; then 7886 ac_c_werror_flag="$rb_c_werror_flag" 7887else 7888 unset ac_c_werror_flag 7889fi 7890 7891 done 7892fi 7893 7894test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" 7895test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\"" 7896 7897} 7898{ # header and library section 7899 7900 7901# Check whether --with-winnt-ver was given. 7902if test "${with_winnt_ver+set}" = set; then : 7903 withval=$with_winnt_ver; with_winnt_ver="$withval" 7904else 7905 with_winnt_ver="0x0501" 7906fi 7907 7908case "$target_os" in #( 7909 mingw*) : 7910 7911 # RUBY_APPEND_OPTION(CPPFLAGS, -D_WIN32_WINNT=$with_winnt_ver) 7912 case " ${CPPFLAGS-} " in #( 7913 *' -D_WIN32_WINNT=$with_winnt_ver '*) : 7914 ;; #( 7915 ' ') : 7916 CPPFLAGS="-D_WIN32_WINNT=$with_winnt_ver" ;; #( 7917 *) : 7918 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=$with_winnt_ver" ;; 7919esac 7920 ;; #( 7921 *) : 7922 ;; 7923esac 7924 7925case "$target_os" in #( 7926 freebsd*) : 7927 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread should be enabled by default" >&5 7929$as_echo_n "checking whether pthread should be enabled by default... " >&6; } 7930if ${rb_cv_enable_pthread_default+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934/* end confdefs.h. */ 7935 7936#include <osreldate.h> 7937#if __FreeBSD_version < 502102 7938#error pthread should be disabled on this platform 7939#endif 7940 7941_ACEOF 7942if ac_fn_c_try_cpp "$LINENO"; then : 7943 rb_cv_enable_pthread_default=yes 7944else 7945 rb_cv_enable_pthread_default=no 7946fi 7947rm -f conftest.err conftest.i conftest.$ac_ext 7948fi 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_enable_pthread_default" >&5 7950$as_echo "$rb_cv_enable_pthread_default" >&6; } 7951 enable_pthread=$rb_cv_enable_pthread_default 7952 ;; #( 7953 mingw*) : 7954 7955 enable_pthread=no 7956 ;; #( 7957 *) : 7958 7959 enable_pthread=yes 7960 ;; 7961esac 7962 7963# Check whether --enable-pthread was given. 7964if test "${enable_pthread+set}" = set; then : 7965 enableval=$enable_pthread; 7966fi 7967 7968 7969case "$target_os" in #( 7970 *bsd*|dragonfly*) : 7971 ;; #( 7972 *) : 7973 ac_cv_func_daemon=no ;; 7974esac 7975 7976POSTLINK=: 7977 7978case "$target_os" in #( 7979 nextstep*) : 7980 ;; #( 7981 openstep*) : 7982 ;; #( 7983 rhapsody*) : 7984 ;; #( 7985 darwin*) : 7986 # RUBY_PREPEND_OPTION(LIBS, -lobjc) 7987 case " ${LIBS-} " in #( 7988 *' -lobjc '*) : 7989 ;; #( 7990 ' ') : 7991 LIBS="-lobjc" ;; #( 7992 *) : 7993 LIBS="-lobjc $LIBS" ;; 7994esac 7995 { for rb_opt in -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT; do # RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT) 7996 case " ${CPPFLAGS-} " in #( 7997 *" ${rb_opt} "*) : 7998 ;; #( 7999 ' ') : 8000 CPPFLAGS="${rb_opt}" ;; #( 8001 *) : 8002 CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; 8003esac 8004 done; } 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Mac OS X 10.5 or later" >&5 8006$as_echo_n "checking whether Mac OS X 10.5 or later... " >&6; } 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009#include <AvailabilityMacros.h> 8010 #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1040 8011 #error pre OS X 10.4 8012 [!<===== pre OS X 10.4 =====>] 8013 #endif 8014 8015_ACEOF 8016if ac_fn_c_try_cpp "$LINENO"; then : 8017 macosx_10_5=yes 8018else 8019 macosx_10_5=no 8020fi 8021rm -f conftest.err conftest.i conftest.$ac_ext 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $macosx_10_5" >&5 8023$as_echo "$macosx_10_5" >&6; } 8024 if test $macosx_10_5 = yes; then 8025 ac_cv_header_ucontext_h=no 8026 else 8027 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8028 8029 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8030 8031 fi 8032 ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage 8033 ac_cv_lib_crypt_crypt=no 8034 ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync() 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken crypt with 8bit chars" >&5 8036$as_echo_n "checking for broken crypt with 8bit chars... " >&6; } 8037if ${rb_cv_broken_crypt+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 if test "$cross_compiling" = yes; then : 8041 rb_cv_broken_crypt=yes 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045 8046#include <stdio.h> 8047#include <unistd.h> 8048#include <string.h> 8049 8050int 8051main() 8052{ 8053 int i; 8054 for (i = 0; i < 128*128; i++) { 8055 char salt[2], buf[256], *s; 8056 salt[0] = 0x80 | (i & 0x7f); 8057 salt[1] = 0x80 | (i >> 7); 8058 strcpy(buf, crypt("", salt)); 8059 if (strcmp(buf, s = crypt("", salt))) { 8060#if 0 8061 printf("%.2x%.2x: %s -> %s\n", (unsigned char)salt[0], (unsigned char)salt[1], 8062 buf+2, s+2); 8063#endif 8064 return 1; 8065 } 8066 } 8067 return 0; 8068} 8069 8070_ACEOF 8071if ac_fn_c_try_run "$LINENO"; then : 8072 rb_cv_broken_crypt=no 8073else 8074 rb_cv_broken_crypt=yes 8075fi 8076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8077 conftest.$ac_objext conftest.beam conftest.$ac_ext 8078fi 8079 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_crypt" >&5 8082$as_echo "$rb_cv_broken_crypt" >&6; } 8083 if test "$rb_cv_broken_crypt" = yes; then 8084 $as_echo "#define BROKEN_CRYPT 1" >>confdefs.h 8085 8086 fi 8087 for ac_prog in codesign 8088do 8089 # Extract the first word of "$ac_prog", so it can be a program name with args. 8090set dummy $ac_prog; ac_word=$2 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092$as_echo_n "checking for $ac_word... " >&6; } 8093if ${ac_cv_prog_codesign+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 if test -n "$codesign"; then 8097 ac_cv_prog_codesign="$codesign" # Let the user override the test. 8098else 8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_codesign="$ac_prog" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116codesign=$ac_cv_prog_codesign 8117if test -n "$codesign"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $codesign" >&5 8119$as_echo "$codesign" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 8126 test -n "$codesign" && break 8127done 8128 8129 if test -n "$codesign"; then 8130 POSTLINK="test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@" 8131 LINK_SO="$LINK_SO 8132$POSTLINK" 8133 fi 8134 for ac_header in crt_externs.h 8135do : 8136 ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" " 8137 #include <crt_externs.h> 8138 8139" 8140if test "x$ac_cv_header_crt_externs_h" = xyes; then : 8141 cat >>confdefs.h <<_ACEOF 8142#define HAVE_CRT_EXTERNS_H 1 8143_ACEOF 8144 8145fi 8146 8147done 8148 8149 ;; #( 8150 hpux*) : 8151 LIBS="-lm $LIBS" 8152 ac_cv_c_inline=no ;; #( 8153 beos*|haiku*) : 8154 8155 ac_cv_func_link=no 8156 ac_cv_func_sched_yield=no 8157 ac_cv_func_pthread_attr_setinheritsched=no 8158 case "$target_os" in #( 8159 beos*) : 8160 ac_cv_header_net_socket_h=yes ;; #( 8161 haiku*) : 8162 ac_cv_func_shutdown=no ;; #( 8163 *) : 8164 ;; 8165esac 8166 LIBS="$LIBS" # m lib is include in root under BeOS/Haiku 8167 ;; #( 8168 cygwin*) : 8169 ac_cv_header_langinfo_h=yes 8170 for ac_func in cygwin_conv_path 8171do : 8172 ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path" 8173if test "x$ac_cv_func_cygwin_conv_path" = xyes; then : 8174 cat >>confdefs.h <<_ACEOF 8175#define HAVE_CYGWIN_CONV_PATH 1 8176_ACEOF 8177 8178fi 8179done 8180 8181 case " $LIBOBJS " in 8182 *" langinfo.$ac_objext "* ) ;; 8183 *) LIBOBJS="$LIBOBJS langinfo.$ac_objext" 8184 ;; 8185esac 8186 8187 ;; #( 8188 mingw*) : 8189 LIBS="-lshell32 -lws2_32 -limagehlp -lshlwapi $LIBS" 8190 ac_cv_header_a_out_h=no 8191 ac_cv_header_pwd_h=no 8192 ac_cv_header_utime_h=no 8193 ac_cv_header_sys_ioctl_h=no 8194 ac_cv_header_sys_param_h=no 8195 ac_cv_header_sys_resource_h=no 8196 ac_cv_header_sys_select_h=no 8197 ac_cv_header_sys_time_h=no 8198 ac_cv_header_sys_times_h=no 8199 ac_cv_header_sys_socket_h=no 8200 ac_cv_func_times=yes 8201 ac_cv_func_waitpid=yes 8202 ac_cv_func_fsync=yes 8203 ac_cv_func_seekdir=yes 8204 ac_cv_func_telldir=yes 8205 ac_cv_func_isinf=yes 8206 ac_cv_func_isnan=yes 8207 ac_cv_func_finite=yes 8208 ac_cv_func_link=yes 8209 ac_cv_func_fseeko=yes 8210 ac_cv_lib_crypt_crypt=no 8211 ac_cv_func_getpgrp_void=no 8212 ac_cv_func_memcmp_working=yes 8213 ac_cv_lib_dl_dlopen=no 8214 rb_cv_binary_elf=no 8215 rb_cv_negative_time_t=no 8216 ac_cv_func_fcntl=yes 8217 ac_cv_func_flock=yes 8218 ac_cv_func_gmtime_r=yes 8219 rb_cv_large_fd_select=yes 8220 ac_cv_type_struct_timeval=yes 8221 case " $LIBOBJS " in 8222 *" langinfo.$ac_objext "* ) ;; 8223 *) LIBOBJS="$LIBOBJS langinfo.$ac_objext" 8224 ;; 8225esac 8226 8227 ;; #( 8228 os2-emx*) : 8229 LIBS="-lm $LIBS" 8230 ac_cv_lib_dir_opendir=no ;; #( 8231 bsdi*) : 8232 LIBS="-lm $LIBS" 8233 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8234 8235 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8236 8237 ac_cv_sizeof_rlim_t=8 ;; #( 8238 freebsd*) : 8239 LIBS="-lm $LIBS" 8240 ac_cv_func_getpeername=no 8241 ac_cv_func_getsockname=no 8242 ac_cv_func_shutdown=no 8243 ac_cv_func_close=no 8244 ;; #( 8245 dragonfly*) : 8246 LIBS="-lm $LIBS" 8247 # isinf() and isnan() are macros on DragonFly. 8248 ac_cv_func_isinf=yes 8249 ac_cv_func_isnan=yes 8250 ;; #( 8251 bow) : 8252 ac_cv_func_setitimer=no 8253 ;; #( 8254 superux*) : 8255 ac_cv_func_setitimer=no 8256 ;; #( 8257 nacl) : 8258 8259 LIBS="-lm $LIBS" 8260 if test "${nacl_cv_build_variant}" = "newlib"; then 8261 # RUBY_APPEND_OPTION(CPPFLAGS, -DNACL_NEWLIB) 8262 case " ${CPPFLAGS-} " in #( 8263 *' -DNACL_NEWLIB '*) : 8264 ;; #( 8265 ' ') : 8266 CPPFLAGS="-DNACL_NEWLIB" ;; #( 8267 *) : 8268 CPPFLAGS="$CPPFLAGS -DNACL_NEWLIB" ;; 8269esac 8270 # RUBY_APPEND_OPTION(LIBS, '-lnosys') 8271 case " ${LIBS-} " in #( 8272 *' '-lnosys' '*) : 8273 ;; #( 8274 ' ') : 8275 LIBS="'-lnosys'" ;; #( 8276 *) : 8277 LIBS="$LIBS '-lnosys'" ;; 8278esac 8279 else 8280 # RUBY_APPEND_OPTION(XCFLAGS, -fPIC) 8281 case " ${XCFLAGS-} " in #( 8282 *' -fPIC '*) : 8283 ;; #( 8284 ' ') : 8285 XCFLAGS="-fPIC" ;; #( 8286 *) : 8287 XCFLAGS="$XCFLAGS -fPIC" ;; 8288esac 8289 fi 8290 ac_cv_func_shutdown=no 8291 ac_cv_func_fcntl=no 8292 ;; #( 8293 *) : 8294 LIBS="-lm $LIBS" ;; 8295esac 8296 8297ac_header_dirent=no 8298for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8299 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8301$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8302if eval \${$as_ac_Header+:} false; then : 8303 $as_echo_n "(cached) " >&6 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307#include <sys/types.h> 8308#include <$ac_hdr> 8309 8310int 8311main () 8312{ 8313if ((DIR *) 0) 8314return 0; 8315 ; 8316 return 0; 8317} 8318_ACEOF 8319if ac_fn_c_try_compile "$LINENO"; then : 8320 eval "$as_ac_Header=yes" 8321else 8322 eval "$as_ac_Header=no" 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8325fi 8326eval ac_res=\$$as_ac_Header 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8328$as_echo "$ac_res" >&6; } 8329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8330 cat >>confdefs.h <<_ACEOF 8331#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8332_ACEOF 8333 8334ac_header_dirent=$ac_hdr; break 8335fi 8336 8337done 8338# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8339if test $ac_header_dirent = dirent.h; then 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8341$as_echo_n "checking for library containing opendir... " >&6; } 8342if ${ac_cv_search_opendir+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 ac_func_search_save_LIBS=$LIBS 8346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348 8349/* Override any GCC internal prototype to avoid an error. 8350 Use char because int might match the return type of a GCC 8351 builtin and then its argument prototype would still apply. */ 8352#ifdef __cplusplus 8353extern "C" 8354#endif 8355char opendir (); 8356int 8357main () 8358{ 8359return opendir (); 8360 ; 8361 return 0; 8362} 8363_ACEOF 8364for ac_lib in '' dir; do 8365 if test -z "$ac_lib"; then 8366 ac_res="none required" 8367 else 8368 ac_res=-l$ac_lib 8369 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8370 fi 8371 if ac_fn_c_try_link "$LINENO"; then : 8372 ac_cv_search_opendir=$ac_res 8373fi 8374rm -f core conftest.err conftest.$ac_objext \ 8375 conftest$ac_exeext 8376 if ${ac_cv_search_opendir+:} false; then : 8377 break 8378fi 8379done 8380if ${ac_cv_search_opendir+:} false; then : 8381 8382else 8383 ac_cv_search_opendir=no 8384fi 8385rm conftest.$ac_ext 8386LIBS=$ac_func_search_save_LIBS 8387fi 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8389$as_echo "$ac_cv_search_opendir" >&6; } 8390ac_res=$ac_cv_search_opendir 8391if test "$ac_res" != no; then : 8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8393 8394fi 8395 8396else 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8398$as_echo_n "checking for library containing opendir... " >&6; } 8399if ${ac_cv_search_opendir+:} false; then : 8400 $as_echo_n "(cached) " >&6 8401else 8402 ac_func_search_save_LIBS=$LIBS 8403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405 8406/* Override any GCC internal prototype to avoid an error. 8407 Use char because int might match the return type of a GCC 8408 builtin and then its argument prototype would still apply. */ 8409#ifdef __cplusplus 8410extern "C" 8411#endif 8412char opendir (); 8413int 8414main () 8415{ 8416return opendir (); 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421for ac_lib in '' x; do 8422 if test -z "$ac_lib"; then 8423 ac_res="none required" 8424 else 8425 ac_res=-l$ac_lib 8426 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8427 fi 8428 if ac_fn_c_try_link "$LINENO"; then : 8429 ac_cv_search_opendir=$ac_res 8430fi 8431rm -f core conftest.err conftest.$ac_objext \ 8432 conftest$ac_exeext 8433 if ${ac_cv_search_opendir+:} false; then : 8434 break 8435fi 8436done 8437if ${ac_cv_search_opendir+:} false; then : 8438 8439else 8440 ac_cv_search_opendir=no 8441fi 8442rm conftest.$ac_ext 8443LIBS=$ac_func_search_save_LIBS 8444fi 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8446$as_echo "$ac_cv_search_opendir" >&6; } 8447ac_res=$ac_cv_search_opendir 8448if test "$ac_res" != no; then : 8449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8450 8451fi 8452 8453fi 8454 8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8456$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8457if ${ac_cv_header_stdbool_h+:} false; then : 8458 $as_echo_n "(cached) " >&6 8459else 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462 8463 #include <stdbool.h> 8464 #ifndef bool 8465 "error: bool is not defined" 8466 #endif 8467 #ifndef false 8468 "error: false is not defined" 8469 #endif 8470 #if false 8471 "error: false is not 0" 8472 #endif 8473 #ifndef true 8474 "error: true is not defined" 8475 #endif 8476 #if true != 1 8477 "error: true is not 1" 8478 #endif 8479 #ifndef __bool_true_false_are_defined 8480 "error: __bool_true_false_are_defined is not defined" 8481 #endif 8482 8483 struct s { _Bool s: 1; _Bool t; } s; 8484 8485 char a[true == 1 ? 1 : -1]; 8486 char b[false == 0 ? 1 : -1]; 8487 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8488 char d[(bool) 0.5 == true ? 1 : -1]; 8489 /* See body of main program for 'e'. */ 8490 char f[(_Bool) 0.0 == false ? 1 : -1]; 8491 char g[true]; 8492 char h[sizeof (_Bool)]; 8493 char i[sizeof s.t]; 8494 enum { j = false, k = true, l = false * true, m = true * 256 }; 8495 /* The following fails for 8496 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8497 _Bool n[m]; 8498 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8499 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8500 /* Catch a bug in an HP-UX C compiler. See 8501 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8502 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8503 */ 8504 _Bool q = true; 8505 _Bool *pq = &q; 8506 8507int 8508main () 8509{ 8510 8511 bool e = &s; 8512 *pq |= q; 8513 *pq |= ! q; 8514 /* Refer to every declared value, to avoid compiler optimizations. */ 8515 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8516 + !m + !n + !o + !p + !q + !pq); 8517 8518 ; 8519 return 0; 8520} 8521_ACEOF 8522if ac_fn_c_try_compile "$LINENO"; then : 8523 ac_cv_header_stdbool_h=yes 8524else 8525 ac_cv_header_stdbool_h=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8528fi 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8530$as_echo "$ac_cv_header_stdbool_h" >&6; } 8531 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8532if test "x$ac_cv_type__Bool" = xyes; then : 8533 8534cat >>confdefs.h <<_ACEOF 8535#define HAVE__BOOL 1 8536_ACEOF 8537 8538 8539fi 8540 8541 8542if test $ac_cv_header_stdbool_h = yes; then 8543 8544$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 8545 8546fi 8547 8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 8549$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 8550if ${ac_cv_header_sys_wait_h+:} false; then : 8551 $as_echo_n "(cached) " >&6 8552else 8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554/* end confdefs.h. */ 8555#include <sys/types.h> 8556#include <sys/wait.h> 8557#ifndef WEXITSTATUS 8558# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 8559#endif 8560#ifndef WIFEXITED 8561# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8562#endif 8563 8564int 8565main () 8566{ 8567 int s; 8568 wait (&s); 8569 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574if ac_fn_c_try_compile "$LINENO"; then : 8575 ac_cv_header_sys_wait_h=yes 8576else 8577 ac_cv_header_sys_wait_h=no 8578fi 8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8580fi 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 8582$as_echo "$ac_cv_header_sys_wait_h" >&6; } 8583if test $ac_cv_header_sys_wait_h = yes; then 8584 8585$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8586 8587fi 8588 8589for ac_header in limits.h sys/file.h sys/ioctl.h sys/syscall.h\ 8590 fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ 8591 syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \ 8592 sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \ 8593 ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \ 8594 net/socket.h sys/socket.h process.h sys/prctl.h atomic.h 8595do : 8596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8597ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8598if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8599 cat >>confdefs.h <<_ACEOF 8600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8601_ACEOF 8602 8603fi 8604 8605done 8606 8607 8608mv confdefs.h confdefs1.h 8609: > confdefs.h 8610# Check whether --enable-largefile was given. 8611if test "${enable_largefile+set}" = set; then : 8612 enableval=$enable_largefile; 8613fi 8614 8615if test "$enable_largefile" != no; then 8616 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8618$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 8619if ${ac_cv_sys_largefile_CC+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 ac_cv_sys_largefile_CC=no 8623 if test "$GCC" != yes; then 8624 ac_save_CC=$CC 8625 while :; do 8626 # IRIX 6.2 and later do not support large files by default, 8627 # so use the C compiler's -n32 option if that helps. 8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8629/* end confdefs.h. */ 8630#include <sys/types.h> 8631 /* Check that off_t can represent 2**63 - 1 correctly. 8632 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8633 since some C++ compilers masquerading as C compilers 8634 incorrectly reject 9223372036854775807. */ 8635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8637 && LARGE_OFF_T % 2147483647 == 1) 8638 ? 1 : -1]; 8639int 8640main () 8641{ 8642 8643 ; 8644 return 0; 8645} 8646_ACEOF 8647 if ac_fn_c_try_compile "$LINENO"; then : 8648 break 8649fi 8650rm -f core conftest.err conftest.$ac_objext 8651 CC="$CC -n32" 8652 if ac_fn_c_try_compile "$LINENO"; then : 8653 ac_cv_sys_largefile_CC=' -n32'; break 8654fi 8655rm -f core conftest.err conftest.$ac_objext 8656 break 8657 done 8658 CC=$ac_save_CC 8659 rm -f conftest.$ac_ext 8660 fi 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8663$as_echo "$ac_cv_sys_largefile_CC" >&6; } 8664 if test "$ac_cv_sys_largefile_CC" != no; then 8665 CC=$CC$ac_cv_sys_largefile_CC 8666 fi 8667 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8669$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8670if ${ac_cv_sys_file_offset_bits+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 while :; do 8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8675/* end confdefs.h. */ 8676#include <sys/types.h> 8677 /* Check that off_t can represent 2**63 - 1 correctly. 8678 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8679 since some C++ compilers masquerading as C compilers 8680 incorrectly reject 9223372036854775807. */ 8681#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8683 && LARGE_OFF_T % 2147483647 == 1) 8684 ? 1 : -1]; 8685int 8686main () 8687{ 8688 8689 ; 8690 return 0; 8691} 8692_ACEOF 8693if ac_fn_c_try_compile "$LINENO"; then : 8694 ac_cv_sys_file_offset_bits=no; break 8695fi 8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8698/* end confdefs.h. */ 8699#define _FILE_OFFSET_BITS 64 8700#include <sys/types.h> 8701 /* Check that off_t can represent 2**63 - 1 correctly. 8702 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8703 since some C++ compilers masquerading as C compilers 8704 incorrectly reject 9223372036854775807. */ 8705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8707 && LARGE_OFF_T % 2147483647 == 1) 8708 ? 1 : -1]; 8709int 8710main () 8711{ 8712 8713 ; 8714 return 0; 8715} 8716_ACEOF 8717if ac_fn_c_try_compile "$LINENO"; then : 8718 ac_cv_sys_file_offset_bits=64; break 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721 ac_cv_sys_file_offset_bits=unknown 8722 break 8723done 8724fi 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8726$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 8727case $ac_cv_sys_file_offset_bits in #( 8728 no | unknown) ;; 8729 *) 8730cat >>confdefs.h <<_ACEOF 8731#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 8732_ACEOF 8733;; 8734esac 8735rm -rf conftest* 8736 if test $ac_cv_sys_file_offset_bits = unknown; then 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8738$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 8739if ${ac_cv_sys_large_files+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 while :; do 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745#include <sys/types.h> 8746 /* Check that off_t can represent 2**63 - 1 correctly. 8747 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8748 since some C++ compilers masquerading as C compilers 8749 incorrectly reject 9223372036854775807. */ 8750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8752 && LARGE_OFF_T % 2147483647 == 1) 8753 ? 1 : -1]; 8754int 8755main () 8756{ 8757 8758 ; 8759 return 0; 8760} 8761_ACEOF 8762if ac_fn_c_try_compile "$LINENO"; then : 8763 ac_cv_sys_large_files=no; break 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768#define _LARGE_FILES 1 8769#include <sys/types.h> 8770 /* Check that off_t can represent 2**63 - 1 correctly. 8771 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8772 since some C++ compilers masquerading as C compilers 8773 incorrectly reject 9223372036854775807. */ 8774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 8775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8776 && LARGE_OFF_T % 2147483647 == 1) 8777 ? 1 : -1]; 8778int 8779main () 8780{ 8781 8782 ; 8783 return 0; 8784} 8785_ACEOF 8786if ac_fn_c_try_compile "$LINENO"; then : 8787 ac_cv_sys_large_files=1; break 8788fi 8789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8790 ac_cv_sys_large_files=unknown 8791 break 8792done 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8795$as_echo "$ac_cv_sys_large_files" >&6; } 8796case $ac_cv_sys_large_files in #( 8797 no | unknown) ;; 8798 *) 8799cat >>confdefs.h <<_ACEOF 8800#define _LARGE_FILES $ac_cv_sys_large_files 8801_ACEOF 8802;; 8803esac 8804rm -rf conftest* 8805 fi 8806 8807 8808fi 8809 8810mv confdefs.h largefile.h 8811mv confdefs1.h confdefs.h 8812cat largefile.h >> confdefs.h 8813 8814case "$target_os" in #( 8815 mingw*) : 8816 ac_cv_type_off_t=yes;ac_cv_sizeof_off_t=8 ;; #( 8817 *) : 8818 ;; 8819esac 8820 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8822$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 8823if ${ac_cv_c_bigendian+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 ac_cv_c_bigendian=unknown 8827 # See if we're dealing with a universal compiler. 8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829/* end confdefs.h. */ 8830#ifndef __APPLE_CC__ 8831 not a universal capable compiler 8832 #endif 8833 typedef int dummy; 8834 8835_ACEOF 8836if ac_fn_c_try_compile "$LINENO"; then : 8837 8838 # Check for potential -arch flags. It is then universal. 8839 ac_arch= 8840 ac_prev= 8841 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 8842 if test -n "$ac_prev"; then 8843 case $ac_word in 8844 i?86 | x86_64 | ppc | ppc64) 8845 ac_cv_c_bigendian=universal 8846 break 8847 ;; 8848 esac 8849 ac_prev= 8850 elif test "x$ac_word" = "x-arch"; then 8851 ac_prev=arch 8852 fi 8853 done 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8856 if test $ac_cv_c_bigendian = unknown; then 8857 # See if sys/param.h defines the BYTE_ORDER macro. 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860#include <sys/types.h> 8861 #include <sys/param.h> 8862 8863int 8864main () 8865{ 8866#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 8867 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 8868 && LITTLE_ENDIAN) 8869 bogus endian macros 8870 #endif 8871 8872 ; 8873 return 0; 8874} 8875_ACEOF 8876if ac_fn_c_try_compile "$LINENO"; then : 8877 # It does; now see whether it defined to BIG_ENDIAN or not. 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880#include <sys/types.h> 8881 #include <sys/param.h> 8882 8883int 8884main () 8885{ 8886#if BYTE_ORDER != BIG_ENDIAN 8887 not big endian 8888 #endif 8889 8890 ; 8891 return 0; 8892} 8893_ACEOF 8894if ac_fn_c_try_compile "$LINENO"; then : 8895 ac_cv_c_bigendian=yes 8896else 8897 ac_cv_c_bigendian=no 8898fi 8899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8900fi 8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8902 fi 8903 if test $ac_cv_c_bigendian = unknown; then 8904 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907#include <limits.h> 8908 8909int 8910main () 8911{ 8912#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 8913 bogus endian macros 8914 #endif 8915 8916 ; 8917 return 0; 8918} 8919_ACEOF 8920if ac_fn_c_try_compile "$LINENO"; then : 8921 # It does; now see whether it defined to _BIG_ENDIAN or not. 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924#include <limits.h> 8925 8926int 8927main () 8928{ 8929#ifndef _BIG_ENDIAN 8930 not big endian 8931 #endif 8932 8933 ; 8934 return 0; 8935} 8936_ACEOF 8937if ac_fn_c_try_compile "$LINENO"; then : 8938 ac_cv_c_bigendian=yes 8939else 8940 ac_cv_c_bigendian=no 8941fi 8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8943fi 8944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8945 fi 8946 if test $ac_cv_c_bigendian = unknown; then 8947 # Compile a test program. 8948 if test "$cross_compiling" = yes; then : 8949 # Try to guess by grepping values from an object file. 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951/* end confdefs.h. */ 8952short int ascii_mm[] = 8953 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8954 short int ascii_ii[] = 8955 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8956 int use_ascii (int i) { 8957 return ascii_mm[i] + ascii_ii[i]; 8958 } 8959 short int ebcdic_ii[] = 8960 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8961 short int ebcdic_mm[] = 8962 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8963 int use_ebcdic (int i) { 8964 return ebcdic_mm[i] + ebcdic_ii[i]; 8965 } 8966 extern int foo; 8967 8968int 8969main () 8970{ 8971return use_ascii (foo) == use_ebcdic (foo); 8972 ; 8973 return 0; 8974} 8975_ACEOF 8976if ac_fn_c_try_compile "$LINENO"; then : 8977 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 8978 ac_cv_c_bigendian=yes 8979 fi 8980 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8981 if test "$ac_cv_c_bigendian" = unknown; then 8982 ac_cv_c_bigendian=no 8983 else 8984 # finding both strings is unlikely to happen, but who knows? 8985 ac_cv_c_bigendian=unknown 8986 fi 8987 fi 8988fi 8989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8990else 8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8992/* end confdefs.h. */ 8993$ac_includes_default 8994int 8995main () 8996{ 8997 8998 /* Are we little or big endian? From Harbison&Steele. */ 8999 union 9000 { 9001 long int l; 9002 char c[sizeof (long int)]; 9003 } u; 9004 u.l = 1; 9005 return u.c[sizeof (long int) - 1] == 1; 9006 9007 ; 9008 return 0; 9009} 9010_ACEOF 9011if ac_fn_c_try_run "$LINENO"; then : 9012 ac_cv_c_bigendian=no 9013else 9014 ac_cv_c_bigendian=yes 9015fi 9016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9017 conftest.$ac_objext conftest.beam conftest.$ac_ext 9018fi 9019 9020 fi 9021fi 9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9023$as_echo "$ac_cv_c_bigendian" >&6; } 9024 case $ac_cv_c_bigendian in #( 9025 yes) 9026 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9027;; #( 9028 no) 9029 ;; #( 9030 universal) 9031 9032$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9033 9034 ;; #( 9035 *) 9036 as_fn_error $? "unknown endianness 9037 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9038 esac 9039 9040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9041$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9042if ${ac_cv_c_const+:} false; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047 9048int 9049main () 9050{ 9051 9052#ifndef __cplusplus 9053 /* Ultrix mips cc rejects this sort of thing. */ 9054 typedef int charset[2]; 9055 const charset cs = { 0, 0 }; 9056 /* SunOS 4.1.1 cc rejects this. */ 9057 char const *const *pcpcc; 9058 char **ppc; 9059 /* NEC SVR4.0.2 mips cc rejects this. */ 9060 struct point {int x, y;}; 9061 static struct point const zero = {0,0}; 9062 /* AIX XL C 1.02.0.0 rejects this. 9063 It does not let you subtract one const X* pointer from another in 9064 an arm of an if-expression whose if-part is not a constant 9065 expression */ 9066 const char *g = "string"; 9067 pcpcc = &g + (g ? g-g : 0); 9068 /* HPUX 7.0 cc rejects these. */ 9069 ++pcpcc; 9070 ppc = (char**) pcpcc; 9071 pcpcc = (char const *const *) ppc; 9072 { /* SCO 3.2v4 cc rejects this sort of thing. */ 9073 char tx; 9074 char *t = &tx; 9075 char const *s = 0 ? (char *) 0 : (char const *) 0; 9076 9077 *t++ = 0; 9078 if (s) return 0; 9079 } 9080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9081 int x[] = {25, 17}; 9082 const int *foo = &x[0]; 9083 ++foo; 9084 } 9085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9086 typedef const int *iptr; 9087 iptr p = 0; 9088 ++p; 9089 } 9090 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 9091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9092 struct s { int j; const int *ap[3]; } bx; 9093 struct s *b = &bx; b->j = 5; 9094 } 9095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9096 const int foo = 10; 9097 if (!foo) return 0; 9098 } 9099 return !cs[0] && !zero.x; 9100#endif 9101 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106if ac_fn_c_try_compile "$LINENO"; then : 9107 ac_cv_c_const=yes 9108else 9109 ac_cv_c_const=no 9110fi 9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9112fi 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9114$as_echo "$ac_cv_c_const" >&6; } 9115if test $ac_cv_c_const = no; then 9116 9117$as_echo "#define const /**/" >>confdefs.h 9118 9119fi 9120 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 9122$as_echo_n "checking whether char is unsigned... " >&6; } 9123if ${ac_cv_c_char_unsigned+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125else 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128$ac_includes_default 9129int 9130main () 9131{ 9132static int test_array [1 - 2 * !(((char) -1) < 0)]; 9133test_array [0] = 0; 9134return test_array [0]; 9135 9136 ; 9137 return 0; 9138} 9139_ACEOF 9140if ac_fn_c_try_compile "$LINENO"; then : 9141 ac_cv_c_char_unsigned=no 9142else 9143 ac_cv_c_char_unsigned=yes 9144fi 9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9146fi 9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 9148$as_echo "$ac_cv_c_char_unsigned" >&6; } 9149if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 9150 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 9151 9152fi 9153 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9155$as_echo_n "checking for inline... " >&6; } 9156if ${ac_cv_c_inline+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 ac_cv_c_inline=no 9160for ac_kw in inline __inline__ __inline; do 9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9162/* end confdefs.h. */ 9163#ifndef __cplusplus 9164typedef int foo_t; 9165static $ac_kw foo_t static_foo () {return 0; } 9166$ac_kw foo_t foo () {return 0; } 9167#endif 9168 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO"; then : 9171 ac_cv_c_inline=$ac_kw 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174 test "$ac_cv_c_inline" != no && break 9175done 9176 9177fi 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9179$as_echo "$ac_cv_c_inline" >&6; } 9180 9181case $ac_cv_c_inline in 9182 inline | yes) ;; 9183 *) 9184 case $ac_cv_c_inline in 9185 no) ac_val=;; 9186 *) ac_val=$ac_cv_c_inline;; 9187 esac 9188 cat >>confdefs.h <<_ACEOF 9189#ifndef __cplusplus 9190#define inline $ac_val 9191#endif 9192_ACEOF 9193 ;; 9194esac 9195 9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9197$as_echo_n "checking for working volatile... " >&6; } 9198if ${ac_cv_c_volatile+:} false; then : 9199 $as_echo_n "(cached) " >&6 9200else 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203 9204int 9205main () 9206{ 9207 9208volatile int x; 9209int * volatile y = (int *) 0; 9210return !x && !y; 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO"; then : 9216 ac_cv_c_volatile=yes 9217else 9218 ac_cv_c_volatile=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9221fi 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9223$as_echo "$ac_cv_c_volatile" >&6; } 9224if test $ac_cv_c_volatile = no; then 9225 9226$as_echo "#define volatile /**/" >>confdefs.h 9227 9228fi 9229 9230 9231case ":$ac_cv_c_const:$ac_cv_c_volatile:" in #( 9232 *:no:*) : 9233 as_fn_error $? "ANSI C-conforming const and volatile are mandatory" "$LINENO" 5 ;; #( 9234 *) : 9235 ;; 9236esac 9237 9238ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 9239if test "x$ac_cv_type_long_long" = xyes; then : 9240 9241cat >>confdefs.h <<_ACEOF 9242#define HAVE_LONG_LONG 1 9243_ACEOF 9244 9245 9246fi 9247ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 9248if test "x$ac_cv_type_off_t" = xyes; then : 9249 9250cat >>confdefs.h <<_ACEOF 9251#define HAVE_OFF_T 1 9252_ACEOF 9253 9254 9255fi 9256 9257 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking char bit" >&5 9259$as_echo_n "checking char bit... " >&6; } 9260if ${rb_cv_char_bit+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262else 9263 test "$universal_binary" = yes && cross_compiling=yes 9264 if ac_fn_c_compute_int "$LINENO" "CHAR_BIT" "rb_cv_char_bit" "#include <limits.h> 9265"; then : 9266 9267else 9268 rb_cv_char_bit=8 9269fi 9270 9271 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9272fi 9273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_char_bit" >&5 9274$as_echo "$rb_cv_char_bit" >&6; } 9275 9276 9277 9278if test "$universal_binary" = yes; then 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9280$as_echo_n "checking size of int... " >&6; } 9281if ${ac_cv_sizeof_int+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 9285 unset ac_cv_sizeof_int 9286 rbcv_var=" 9287typedef int ac__type_sizeof_; 9288static ac__type_sizeof_ *rbcv_ptr; 9289#define SIZEOF_INT sizeof((*rbcv_ptr)) 9290" 9291 9292 unset cond 9293 test -z "${ac_cv_sizeof_int+set}" && { 9294 for s in 32 64 128; do 9295 for t in ILP; do 9296 cond="${cond} 9297#${cond+el}if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s})" 9298 hdr=" 9299#if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s}) 9300# define HAVE_INT 1 9301#else 9302# define HAVE_INT 0 9303#endif 9304" 9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307$hdr 9308int 9309main () 9310{ 9311static int test_array [1 - 2 * !(!HAVE_INT)]; 9312test_array [0] = 0; 9313return test_array [0]; 9314 9315 ; 9316 return 0; 9317} 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO"; then : 9320 continue 9321fi 9322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324/* end confdefs.h. */ 9325$hdr 9326 $rbcv_var 9327int 9328main () 9329{ 9330static int test_array [1 - 2 * !(HAVE_INT == (SIZEOF_INT == ($[s / rb_cv_char_bit])))]; 9331test_array [0] = 0; 9332return test_array [0]; 9333 9334 ; 9335 return 0; 9336} 9337_ACEOF 9338if ac_fn_c_try_compile "$LINENO"; then : 9339 ac_cv_sizeof_int="${ac_cv_sizeof_int+${ac_cv_sizeof_int-} }${t}${s}" 9340fi 9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9342 done 9343 done 9344 } 9345 test "${ac_cv_sizeof_int#SIZEOF_}" = "${ac_cv_sizeof_int}" && { 9346 test "$universal_binary" = yes && cross_compiling=yes 9347 if ac_fn_c_compute_int "$LINENO" "SIZEOF_INT" "t" "$ac_includes_default 9348${cond+$cond 9349#else} 9350$rbcv_var 9351${cond+#endif} 9352#ifndef SIZEOF_INT 9353#define SIZEOF_INT 0 9354#endif"; then : 9355 9356else 9357 t=0 9358fi 9359 9360 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9361 if test ${t-0} != 0; then 9362 ac_cv_sizeof_int="${ac_cv_sizeof_int+${ac_cv_sizeof_int-} }${t}" 9363 fi 9364 } 9365 : ${ac_cv_sizeof_int=0} 9366 9367fi 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9369$as_echo "$ac_cv_sizeof_int" >&6; } 9370{ 9371 unset cond 9372 for t in ${ac_cv_sizeof_int-}; do 9373 case "$t" in #( 9374 [0-9]*|SIZEOF_*) : 9375 9376 ${cond+echo "#else"} 9377 echo "#define SIZEOF_INT $t" 9378 break 9379 ;; #( 9380 *) : 9381 9382 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9383 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9384 echo "#define SIZEOF_INT $[s / rb_cv_char_bit]" 9385 cond=1 9386 ;; 9387esac 9388 done 9389 ${cond+echo "#endif"} 9390} >> confdefs.h 9391else 9392# The cast to long int works around a bug in the HP C Compiler 9393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9395# This bug is HP SR number 8606223364. 9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9397$as_echo_n "checking size of int... " >&6; } 9398if ${ac_cv_sizeof_int+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9402 9403else 9404 if test "$ac_cv_type_int" = yes; then 9405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9407as_fn_error 77 "cannot compute sizeof (int) 9408See \`config.log' for more details" "$LINENO" 5; } 9409 else 9410 ac_cv_sizeof_int=0 9411 fi 9412fi 9413 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9416$as_echo "$ac_cv_sizeof_int" >&6; } 9417 9418 9419 9420cat >>confdefs.h <<_ACEOF 9421#define SIZEOF_INT $ac_cv_sizeof_int 9422_ACEOF 9423 9424 9425fi 9426 9427if test "$universal_binary" = yes; then 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9429$as_echo_n "checking size of short... " >&6; } 9430if ${ac_cv_sizeof_short+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 9434 unset ac_cv_sizeof_short 9435 rbcv_var=" 9436typedef short ac__type_sizeof_; 9437static ac__type_sizeof_ *rbcv_ptr; 9438#define SIZEOF_SHORT sizeof((*rbcv_ptr)) 9439" 9440 9441 unset cond 9442 9443 { 9444 test "$universal_binary" = yes && cross_compiling=yes 9445 if ac_fn_c_compute_int "$LINENO" "SIZEOF_SHORT" "t" "$ac_includes_default 9446${cond+$cond 9447#else} 9448$rbcv_var 9449${cond+#endif} 9450#ifndef SIZEOF_SHORT 9451#define SIZEOF_SHORT 0 9452#endif"; then : 9453 9454else 9455 t=0 9456fi 9457 9458 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9459 if test ${t-0} != 0; then 9460 ac_cv_sizeof_short="${ac_cv_sizeof_short+${ac_cv_sizeof_short-} }${t}" 9461 fi 9462 } 9463 : ${ac_cv_sizeof_short=0} 9464 9465fi 9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9467$as_echo "$ac_cv_sizeof_short" >&6; } 9468{ 9469 unset cond 9470 for t in ${ac_cv_sizeof_short-}; do 9471 case "$t" in #( 9472 [0-9]*|SIZEOF_*) : 9473 9474 ${cond+echo "#else"} 9475 echo "#define SIZEOF_SHORT $t" 9476 break 9477 ;; #( 9478 *) : 9479 9480 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9481 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9482 echo "#define SIZEOF_SHORT $[s / rb_cv_char_bit]" 9483 cond=1 9484 ;; 9485esac 9486 done 9487 ${cond+echo "#endif"} 9488} >> confdefs.h 9489else 9490# The cast to long int works around a bug in the HP C Compiler 9491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9493# This bug is HP SR number 8606223364. 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 9495$as_echo_n "checking size of short... " >&6; } 9496if ${ac_cv_sizeof_short+:} false; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 9500 9501else 9502 if test "$ac_cv_type_short" = yes; then 9503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9505as_fn_error 77 "cannot compute sizeof (short) 9506See \`config.log' for more details" "$LINENO" 5; } 9507 else 9508 ac_cv_sizeof_short=0 9509 fi 9510fi 9511 9512fi 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 9514$as_echo "$ac_cv_sizeof_short" >&6; } 9515 9516 9517 9518cat >>confdefs.h <<_ACEOF 9519#define SIZEOF_SHORT $ac_cv_sizeof_short 9520_ACEOF 9521 9522 9523fi 9524 9525if test "$universal_binary" = yes; then 9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9527$as_echo_n "checking size of long... " >&6; } 9528if ${ac_cv_sizeof_long+:} false; then : 9529 $as_echo_n "(cached) " >&6 9530else 9531 9532 unset ac_cv_sizeof_long 9533 rbcv_var=" 9534typedef long ac__type_sizeof_; 9535static ac__type_sizeof_ *rbcv_ptr; 9536#define SIZEOF_LONG sizeof((*rbcv_ptr)) 9537" 9538 test -z "${ac_cv_sizeof_long+set}" && { 9539 for t in int; do 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542 9543 $rbcv_var 9544 9545int 9546main () 9547{ 9548static int test_array [1 - 2 * !(SIZEOF_LONG == sizeof($t))]; 9549test_array [0] = 0; 9550return test_array [0]; 9551 9552 ; 9553 return 0; 9554} 9555_ACEOF 9556if ac_fn_c_try_compile "$LINENO"; then : 9557 9558 ac_cv_sizeof_long=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 9559 break 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9562 done 9563 } 9564 unset cond 9565 test -z "${ac_cv_sizeof_long+set}" && { 9566 for s in 32 64 128; do 9567 for t in ILP LP; do 9568 cond="${cond} 9569#${cond+el}if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s})" 9570 hdr=" 9571#if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s}) 9572# define HAVE_LONG 1 9573#else 9574# define HAVE_LONG 0 9575#endif 9576" 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579$hdr 9580int 9581main () 9582{ 9583static int test_array [1 - 2 * !(!HAVE_LONG)]; 9584test_array [0] = 0; 9585return test_array [0]; 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 continue 9593fi 9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597$hdr 9598 $rbcv_var 9599int 9600main () 9601{ 9602static int test_array [1 - 2 * !(HAVE_LONG == (SIZEOF_LONG == ($[s / rb_cv_char_bit])))]; 9603test_array [0] = 0; 9604return test_array [0]; 9605 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_c_try_compile "$LINENO"; then : 9611 ac_cv_sizeof_long="${ac_cv_sizeof_long+${ac_cv_sizeof_long-} }${t}${s}" 9612fi 9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9614 done 9615 done 9616 } 9617 test "${ac_cv_sizeof_long#SIZEOF_}" = "${ac_cv_sizeof_long}" && { 9618 test "$universal_binary" = yes && cross_compiling=yes 9619 if ac_fn_c_compute_int "$LINENO" "SIZEOF_LONG" "t" "$ac_includes_default 9620${cond+$cond 9621#else} 9622$rbcv_var 9623${cond+#endif} 9624#ifndef SIZEOF_LONG 9625#define SIZEOF_LONG 0 9626#endif"; then : 9627 9628else 9629 t=0 9630fi 9631 9632 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9633 if test ${t-0} != 0; then 9634 ac_cv_sizeof_long="${ac_cv_sizeof_long+${ac_cv_sizeof_long-} }${t}" 9635 fi 9636 } 9637 : ${ac_cv_sizeof_long=0} 9638 9639fi 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9641$as_echo "$ac_cv_sizeof_long" >&6; } 9642{ 9643 unset cond 9644 for t in ${ac_cv_sizeof_long-}; do 9645 case "$t" in #( 9646 [0-9]*|SIZEOF_*) : 9647 9648 ${cond+echo "#else"} 9649 echo "#define SIZEOF_LONG $t" 9650 break 9651 ;; #( 9652 *) : 9653 9654 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9655 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9656 echo "#define SIZEOF_LONG $[s / rb_cv_char_bit]" 9657 cond=1 9658 ;; 9659esac 9660 done 9661 ${cond+echo "#endif"} 9662} >> confdefs.h 9663else 9664# The cast to long int works around a bug in the HP C Compiler 9665# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9666# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9667# This bug is HP SR number 8606223364. 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9669$as_echo_n "checking size of long... " >&6; } 9670if ${ac_cv_sizeof_long+:} false; then : 9671 $as_echo_n "(cached) " >&6 9672else 9673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9674 9675else 9676 if test "$ac_cv_type_long" = yes; then 9677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9679as_fn_error 77 "cannot compute sizeof (long) 9680See \`config.log' for more details" "$LINENO" 5; } 9681 else 9682 ac_cv_sizeof_long=0 9683 fi 9684fi 9685 9686fi 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9688$as_echo "$ac_cv_sizeof_long" >&6; } 9689 9690 9691 9692cat >>confdefs.h <<_ACEOF 9693#define SIZEOF_LONG $ac_cv_sizeof_long 9694_ACEOF 9695 9696 9697fi 9698 9699if test "$universal_binary" = yes; then 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9701$as_echo_n "checking size of long long... " >&6; } 9702if ${ac_cv_sizeof_long_long+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704else 9705 9706 unset ac_cv_sizeof_long_long 9707 rbcv_var=" 9708typedef long long ac__type_sizeof_; 9709static ac__type_sizeof_ *rbcv_ptr; 9710#define SIZEOF_LONG_LONG sizeof((*rbcv_ptr)) 9711" 9712 9713 unset cond 9714 9715 { 9716 test "$universal_binary" = yes && cross_compiling=yes 9717 if ac_fn_c_compute_int "$LINENO" "SIZEOF_LONG_LONG" "t" "$ac_includes_default 9718${cond+$cond 9719#else} 9720$rbcv_var 9721${cond+#endif} 9722#ifndef SIZEOF_LONG_LONG 9723#define SIZEOF_LONG_LONG 0 9724#endif"; then : 9725 9726else 9727 t=0 9728fi 9729 9730 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9731 if test ${t-0} != 0; then 9732 ac_cv_sizeof_long_long="${ac_cv_sizeof_long_long+${ac_cv_sizeof_long_long-} }${t}" 9733 fi 9734 } 9735 : ${ac_cv_sizeof_long_long=0} 9736 9737fi 9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9739$as_echo "$ac_cv_sizeof_long_long" >&6; } 9740{ 9741 unset cond 9742 for t in ${ac_cv_sizeof_long_long-}; do 9743 case "$t" in #( 9744 [0-9]*|SIZEOF_*) : 9745 9746 ${cond+echo "#else"} 9747 echo "#define SIZEOF_LONG_LONG $t" 9748 break 9749 ;; #( 9750 *) : 9751 9752 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9753 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9754 echo "#define SIZEOF_LONG_LONG $[s / rb_cv_char_bit]" 9755 cond=1 9756 ;; 9757esac 9758 done 9759 ${cond+echo "#endif"} 9760} >> confdefs.h 9761else 9762# The cast to long int works around a bug in the HP C Compiler 9763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9765# This bug is HP SR number 8606223364. 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9767$as_echo_n "checking size of long long... " >&6; } 9768if ${ac_cv_sizeof_long_long+:} false; then : 9769 $as_echo_n "(cached) " >&6 9770else 9771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9772 9773else 9774 if test "$ac_cv_type_long_long" = yes; then 9775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9777as_fn_error 77 "cannot compute sizeof (long long) 9778See \`config.log' for more details" "$LINENO" 5; } 9779 else 9780 ac_cv_sizeof_long_long=0 9781 fi 9782fi 9783 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9786$as_echo "$ac_cv_sizeof_long_long" >&6; } 9787 9788 9789 9790cat >>confdefs.h <<_ACEOF 9791#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9792_ACEOF 9793 9794 9795fi 9796 9797if test "$universal_binary" = yes; then 9798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 9799$as_echo_n "checking size of __int64... " >&6; } 9800if ${ac_cv_sizeof___int64+:} false; then : 9801 $as_echo_n "(cached) " >&6 9802else 9803 9804 unset ac_cv_sizeof___int64 9805 rbcv_var=" 9806typedef __int64 ac__type_sizeof_; 9807static ac__type_sizeof_ *rbcv_ptr; 9808#define SIZEOF___INT64 sizeof((*rbcv_ptr)) 9809" 9810 9811 unset cond 9812 9813 { 9814 test "$universal_binary" = yes && cross_compiling=yes 9815 if ac_fn_c_compute_int "$LINENO" "SIZEOF___INT64" "t" "$ac_includes_default 9816${cond+$cond 9817#else} 9818$rbcv_var 9819${cond+#endif} 9820#ifndef SIZEOF___INT64 9821#define SIZEOF___INT64 0 9822#endif"; then : 9823 9824else 9825 t=0 9826fi 9827 9828 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9829 if test ${t-0} != 0; then 9830 ac_cv_sizeof___int64="${ac_cv_sizeof___int64+${ac_cv_sizeof___int64-} }${t}" 9831 fi 9832 } 9833 : ${ac_cv_sizeof___int64=0} 9834 9835fi 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 9837$as_echo "$ac_cv_sizeof___int64" >&6; } 9838{ 9839 unset cond 9840 for t in ${ac_cv_sizeof___int64-}; do 9841 case "$t" in #( 9842 [0-9]*|SIZEOF_*) : 9843 9844 ${cond+echo "#else"} 9845 echo "#define SIZEOF___INT64 $t" 9846 break 9847 ;; #( 9848 *) : 9849 9850 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9851 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9852 echo "#define SIZEOF___INT64 $[s / rb_cv_char_bit]" 9853 cond=1 9854 ;; 9855esac 9856 done 9857 ${cond+echo "#endif"} 9858} >> confdefs.h 9859else 9860# The cast to long int works around a bug in the HP C Compiler 9861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9863# This bug is HP SR number 8606223364. 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 9865$as_echo_n "checking size of __int64... " >&6; } 9866if ${ac_cv_sizeof___int64+:} false; then : 9867 $as_echo_n "(cached) " >&6 9868else 9869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then : 9870 9871else 9872 if test "$ac_cv_type___int64" = yes; then 9873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9875as_fn_error 77 "cannot compute sizeof (__int64) 9876See \`config.log' for more details" "$LINENO" 5; } 9877 else 9878 ac_cv_sizeof___int64=0 9879 fi 9880fi 9881 9882fi 9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 9884$as_echo "$ac_cv_sizeof___int64" >&6; } 9885 9886 9887 9888cat >>confdefs.h <<_ACEOF 9889#define SIZEOF___INT64 $ac_cv_sizeof___int64 9890_ACEOF 9891 9892 9893fi 9894 9895if test "$universal_binary" = yes; then 9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 9897$as_echo_n "checking size of off_t... " >&6; } 9898if ${ac_cv_sizeof_off_t+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 9902 unset ac_cv_sizeof_off_t 9903 rbcv_var=" 9904typedef off_t ac__type_sizeof_; 9905static ac__type_sizeof_ *rbcv_ptr; 9906#define SIZEOF_OFF_T sizeof((*rbcv_ptr)) 9907" 9908 9909 unset cond 9910 9911 { 9912 test "$universal_binary" = yes && cross_compiling=yes 9913 if ac_fn_c_compute_int "$LINENO" "SIZEOF_OFF_T" "t" "$ac_includes_default 9914${cond+$cond 9915#else} 9916$rbcv_var 9917${cond+#endif} 9918#ifndef SIZEOF_OFF_T 9919#define SIZEOF_OFF_T 0 9920#endif"; then : 9921 9922else 9923 t=0 9924fi 9925 9926 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 9927 if test ${t-0} != 0; then 9928 ac_cv_sizeof_off_t="${ac_cv_sizeof_off_t+${ac_cv_sizeof_off_t-} }${t}" 9929 fi 9930 } 9931 : ${ac_cv_sizeof_off_t=0} 9932 9933fi 9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 9935$as_echo "$ac_cv_sizeof_off_t" >&6; } 9936{ 9937 unset cond 9938 for t in ${ac_cv_sizeof_off_t-}; do 9939 case "$t" in #( 9940 [0-9]*|SIZEOF_*) : 9941 9942 ${cond+echo "#else"} 9943 echo "#define SIZEOF_OFF_T $t" 9944 break 9945 ;; #( 9946 *) : 9947 9948 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 9949 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 9950 echo "#define SIZEOF_OFF_T $[s / rb_cv_char_bit]" 9951 cond=1 9952 ;; 9953esac 9954 done 9955 ${cond+echo "#endif"} 9956} >> confdefs.h 9957else 9958# The cast to long int works around a bug in the HP C Compiler 9959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9961# This bug is HP SR number 8606223364. 9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 9963$as_echo_n "checking size of off_t... " >&6; } 9964if ${ac_cv_sizeof_off_t+:} false; then : 9965 $as_echo_n "(cached) " >&6 9966else 9967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 9968 9969else 9970 if test "$ac_cv_type_off_t" = yes; then 9971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9973as_fn_error 77 "cannot compute sizeof (off_t) 9974See \`config.log' for more details" "$LINENO" 5; } 9975 else 9976 ac_cv_sizeof_off_t=0 9977 fi 9978fi 9979 9980fi 9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 9982$as_echo "$ac_cv_sizeof_off_t" >&6; } 9983 9984 9985 9986cat >>confdefs.h <<_ACEOF 9987#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 9988_ACEOF 9989 9990 9991fi 9992 9993if test "$universal_binary" = yes; then 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 9995$as_echo_n "checking size of void*... " >&6; } 9996if ${ac_cv_sizeof_voidp+:} false; then : 9997 $as_echo_n "(cached) " >&6 9998else 9999 10000 unset ac_cv_sizeof_voidp 10001 rbcv_var=" 10002typedef void* ac__type_sizeof_; 10003static ac__type_sizeof_ *rbcv_ptr; 10004#define SIZEOF_VOIDP sizeof((*rbcv_ptr)) 10005" 10006 test -z "${ac_cv_sizeof_voidp+set}" && { 10007 for t in int long "long long"; do 10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10009/* end confdefs.h. */ 10010 10011 $rbcv_var 10012 10013int 10014main () 10015{ 10016static int test_array [1 - 2 * !(SIZEOF_VOIDP == sizeof($t))]; 10017test_array [0] = 0; 10018return test_array [0]; 10019 10020 ; 10021 return 0; 10022} 10023_ACEOF 10024if ac_fn_c_try_compile "$LINENO"; then : 10025 10026 ac_cv_sizeof_voidp=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 10027 break 10028fi 10029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10030 done 10031 } 10032 unset cond 10033 test -z "${ac_cv_sizeof_voidp+set}" && { 10034 for s in 32 64 128; do 10035 for t in ILP LP LLP; do 10036 cond="${cond} 10037#${cond+el}if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s})" 10038 hdr=" 10039#if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s}) 10040# define HAVE_VOIDP 1 10041#else 10042# define HAVE_VOIDP 0 10043#endif 10044" 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047$hdr 10048int 10049main () 10050{ 10051static int test_array [1 - 2 * !(!HAVE_VOIDP)]; 10052test_array [0] = 0; 10053return test_array [0]; 10054 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_compile "$LINENO"; then : 10060 continue 10061fi 10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064/* end confdefs.h. */ 10065$hdr 10066 $rbcv_var 10067int 10068main () 10069{ 10070static int test_array [1 - 2 * !(HAVE_VOIDP == (SIZEOF_VOIDP == ($[s / rb_cv_char_bit])))]; 10071test_array [0] = 0; 10072return test_array [0]; 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO"; then : 10079 ac_cv_sizeof_voidp="${ac_cv_sizeof_voidp+${ac_cv_sizeof_voidp-} }${t}${s}" 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10082 done 10083 done 10084 } 10085 test "${ac_cv_sizeof_voidp#SIZEOF_}" = "${ac_cv_sizeof_voidp}" && { 10086 test "$universal_binary" = yes && cross_compiling=yes 10087 if ac_fn_c_compute_int "$LINENO" "SIZEOF_VOIDP" "t" "$ac_includes_default 10088${cond+$cond 10089#else} 10090$rbcv_var 10091${cond+#endif} 10092#ifndef SIZEOF_VOIDP 10093#define SIZEOF_VOIDP 0 10094#endif"; then : 10095 10096else 10097 t=0 10098fi 10099 10100 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 10101 if test ${t-0} != 0; then 10102 ac_cv_sizeof_voidp="${ac_cv_sizeof_voidp+${ac_cv_sizeof_voidp-} }${t}" 10103 fi 10104 } 10105 : ${ac_cv_sizeof_voidp=0} 10106 10107fi 10108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 10109$as_echo "$ac_cv_sizeof_voidp" >&6; } 10110{ 10111 unset cond 10112 for t in ${ac_cv_sizeof_voidp-}; do 10113 case "$t" in #( 10114 [0-9]*|SIZEOF_*) : 10115 10116 ${cond+echo "#else"} 10117 echo "#define SIZEOF_VOIDP $t" 10118 break 10119 ;; #( 10120 *) : 10121 10122 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 10123 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 10124 echo "#define SIZEOF_VOIDP $[s / rb_cv_char_bit]" 10125 cond=1 10126 ;; 10127esac 10128 done 10129 ${cond+echo "#endif"} 10130} >> confdefs.h 10131else 10132# The cast to long int works around a bug in the HP C Compiler 10133# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10134# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10135# This bug is HP SR number 8606223364. 10136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 10137$as_echo_n "checking size of void*... " >&6; } 10138if ${ac_cv_sizeof_voidp+:} false; then : 10139 $as_echo_n "(cached) " >&6 10140else 10141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 10142 10143else 10144 if test "$ac_cv_type_voidp" = yes; then 10145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10147as_fn_error 77 "cannot compute sizeof (void*) 10148See \`config.log' for more details" "$LINENO" 5; } 10149 else 10150 ac_cv_sizeof_voidp=0 10151 fi 10152fi 10153 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 10156$as_echo "$ac_cv_sizeof_voidp" >&6; } 10157 10158 10159 10160cat >>confdefs.h <<_ACEOF 10161#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 10162_ACEOF 10163 10164 10165fi 10166 10167if test "$universal_binary" = yes; then 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 10169$as_echo_n "checking size of float... " >&6; } 10170if ${ac_cv_sizeof_float+:} false; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 10174 unset ac_cv_sizeof_float 10175 rbcv_var=" 10176typedef float ac__type_sizeof_; 10177static ac__type_sizeof_ *rbcv_ptr; 10178#define SIZEOF_FLOAT sizeof((*rbcv_ptr)) 10179" 10180 10181 unset cond 10182 10183 { 10184 test "$universal_binary" = yes && cross_compiling=yes 10185 if ac_fn_c_compute_int "$LINENO" "SIZEOF_FLOAT" "t" "$ac_includes_default 10186${cond+$cond 10187#else} 10188$rbcv_var 10189${cond+#endif} 10190#ifndef SIZEOF_FLOAT 10191#define SIZEOF_FLOAT 0 10192#endif"; then : 10193 10194else 10195 t=0 10196fi 10197 10198 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 10199 if test ${t-0} != 0; then 10200 ac_cv_sizeof_float="${ac_cv_sizeof_float+${ac_cv_sizeof_float-} }${t}" 10201 fi 10202 } 10203 : ${ac_cv_sizeof_float=0} 10204 10205fi 10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 10207$as_echo "$ac_cv_sizeof_float" >&6; } 10208{ 10209 unset cond 10210 for t in ${ac_cv_sizeof_float-}; do 10211 case "$t" in #( 10212 [0-9]*|SIZEOF_*) : 10213 10214 ${cond+echo "#else"} 10215 echo "#define SIZEOF_FLOAT $t" 10216 break 10217 ;; #( 10218 *) : 10219 10220 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 10221 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 10222 echo "#define SIZEOF_FLOAT $[s / rb_cv_char_bit]" 10223 cond=1 10224 ;; 10225esac 10226 done 10227 ${cond+echo "#endif"} 10228} >> confdefs.h 10229else 10230# The cast to long int works around a bug in the HP C Compiler 10231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10233# This bug is HP SR number 8606223364. 10234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 10235$as_echo_n "checking size of float... " >&6; } 10236if ${ac_cv_sizeof_float+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238else 10239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 10240 10241else 10242 if test "$ac_cv_type_float" = yes; then 10243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10245as_fn_error 77 "cannot compute sizeof (float) 10246See \`config.log' for more details" "$LINENO" 5; } 10247 else 10248 ac_cv_sizeof_float=0 10249 fi 10250fi 10251 10252fi 10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 10254$as_echo "$ac_cv_sizeof_float" >&6; } 10255 10256 10257 10258cat >>confdefs.h <<_ACEOF 10259#define SIZEOF_FLOAT $ac_cv_sizeof_float 10260_ACEOF 10261 10262 10263fi 10264 10265if test "$universal_binary" = yes; then 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 10267$as_echo_n "checking size of double... " >&6; } 10268if ${ac_cv_sizeof_double+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 10272 unset ac_cv_sizeof_double 10273 rbcv_var=" 10274typedef double ac__type_sizeof_; 10275static ac__type_sizeof_ *rbcv_ptr; 10276#define SIZEOF_DOUBLE sizeof((*rbcv_ptr)) 10277" 10278 10279 unset cond 10280 10281 { 10282 test "$universal_binary" = yes && cross_compiling=yes 10283 if ac_fn_c_compute_int "$LINENO" "SIZEOF_DOUBLE" "t" "$ac_includes_default 10284${cond+$cond 10285#else} 10286$rbcv_var 10287${cond+#endif} 10288#ifndef SIZEOF_DOUBLE 10289#define SIZEOF_DOUBLE 0 10290#endif"; then : 10291 10292else 10293 t=0 10294fi 10295 10296 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 10297 if test ${t-0} != 0; then 10298 ac_cv_sizeof_double="${ac_cv_sizeof_double+${ac_cv_sizeof_double-} }${t}" 10299 fi 10300 } 10301 : ${ac_cv_sizeof_double=0} 10302 10303fi 10304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 10305$as_echo "$ac_cv_sizeof_double" >&6; } 10306{ 10307 unset cond 10308 for t in ${ac_cv_sizeof_double-}; do 10309 case "$t" in #( 10310 [0-9]*|SIZEOF_*) : 10311 10312 ${cond+echo "#else"} 10313 echo "#define SIZEOF_DOUBLE $t" 10314 break 10315 ;; #( 10316 *) : 10317 10318 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 10319 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 10320 echo "#define SIZEOF_DOUBLE $[s / rb_cv_char_bit]" 10321 cond=1 10322 ;; 10323esac 10324 done 10325 ${cond+echo "#endif"} 10326} >> confdefs.h 10327else 10328# The cast to long int works around a bug in the HP C Compiler 10329# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10330# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10331# This bug is HP SR number 8606223364. 10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 10333$as_echo_n "checking size of double... " >&6; } 10334if ${ac_cv_sizeof_double+:} false; then : 10335 $as_echo_n "(cached) " >&6 10336else 10337 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 10338 10339else 10340 if test "$ac_cv_type_double" = yes; then 10341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10343as_fn_error 77 "cannot compute sizeof (double) 10344See \`config.log' for more details" "$LINENO" 5; } 10345 else 10346 ac_cv_sizeof_double=0 10347 fi 10348fi 10349 10350fi 10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 10352$as_echo "$ac_cv_sizeof_double" >&6; } 10353 10354 10355 10356cat >>confdefs.h <<_ACEOF 10357#define SIZEOF_DOUBLE $ac_cv_sizeof_double 10358_ACEOF 10359 10360 10361fi 10362 10363if test "$universal_binary" = yes; then 10364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 10365$as_echo_n "checking size of time_t... " >&6; } 10366if ${ac_cv_sizeof_time_t+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 10370 unset ac_cv_sizeof_time_t 10371 rbcv_var=" 10372typedef time_t ac__type_sizeof_; 10373static ac__type_sizeof_ *rbcv_ptr; 10374#define SIZEOF_TIME_T sizeof((*rbcv_ptr)) 10375" 10376 test -z "${ac_cv_sizeof_time_t+set}" && { 10377 for t in long "long long"; do 10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10379/* end confdefs.h. */ 10380#include <time.h> 10381 $rbcv_var 10382 10383int 10384main () 10385{ 10386static int test_array [1 - 2 * !(SIZEOF_TIME_T == sizeof($t))]; 10387test_array [0] = 0; 10388return test_array [0]; 10389 10390 ; 10391 return 0; 10392} 10393_ACEOF 10394if ac_fn_c_try_compile "$LINENO"; then : 10395 10396 ac_cv_sizeof_time_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 10397 break 10398fi 10399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10400 done 10401 } 10402 unset cond 10403 10404 test "${ac_cv_sizeof_time_t#SIZEOF_}" = "${ac_cv_sizeof_time_t}" && { 10405 test "$universal_binary" = yes && cross_compiling=yes 10406 if ac_fn_c_compute_int "$LINENO" "SIZEOF_TIME_T" "t" "#include <time.h> 10407 10408${cond+$cond 10409#else} 10410$rbcv_var 10411${cond+#endif} 10412#ifndef SIZEOF_TIME_T 10413#define SIZEOF_TIME_T 0 10414#endif"; then : 10415 10416else 10417 t=0 10418fi 10419 10420 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 10421 if test ${t-0} != 0; then 10422 ac_cv_sizeof_time_t="${ac_cv_sizeof_time_t+${ac_cv_sizeof_time_t-} }${t}" 10423 fi 10424 } 10425 : ${ac_cv_sizeof_time_t=0} 10426 10427fi 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 10429$as_echo "$ac_cv_sizeof_time_t" >&6; } 10430{ 10431 unset cond 10432 for t in ${ac_cv_sizeof_time_t-}; do 10433 case "$t" in #( 10434 [0-9]*|SIZEOF_*) : 10435 10436 ${cond+echo "#else"} 10437 echo "#define SIZEOF_TIME_T $t" 10438 break 10439 ;; #( 10440 *) : 10441 10442 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 10443 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 10444 echo "#define SIZEOF_TIME_T $[s / rb_cv_char_bit]" 10445 cond=1 10446 ;; 10447esac 10448 done 10449 ${cond+echo "#endif"} 10450} >> confdefs.h 10451else 10452# The cast to long int works around a bug in the HP C Compiler 10453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10455# This bug is HP SR number 8606223364. 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 10457$as_echo_n "checking size of time_t... " >&6; } 10458if ${ac_cv_sizeof_time_t+:} false; then : 10459 $as_echo_n "(cached) " >&6 10460else 10461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h> 10462"; then : 10463 10464else 10465 if test "$ac_cv_type_time_t" = yes; then 10466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10468as_fn_error 77 "cannot compute sizeof (time_t) 10469See \`config.log' for more details" "$LINENO" 5; } 10470 else 10471 ac_cv_sizeof_time_t=0 10472 fi 10473fi 10474 10475fi 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 10477$as_echo "$ac_cv_sizeof_time_t" >&6; } 10478 10479 10480 10481cat >>confdefs.h <<_ACEOF 10482#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 10483_ACEOF 10484 10485 10486fi 10487 10488 10489 10490 10491if test "x$ac_cv_type_long_long" = xyes; then 10492 10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf prefix for long long" >&5 10494$as_echo_n "checking for printf prefix for long long... " >&6; } 10495if ${rb_cv_pri_prefix_long_long+:} false; then : 10496 $as_echo_n "(cached) " >&6 10497else 10498 10499 rb_cv_pri_prefix_long_long=NONE 10500 save_CFLAGS="$CFLAGS" 10501CFLAGS="$CFLAGS $rb_cv_warnflags" 10502if test "${ac_c_werror_flag+set}"; then 10503 rb_c_werror_flag="$ac_c_werror_flag" 10504else 10505 unset rb_c_werror_flag 10506fi 10507ac_c_werror_flag=yes 10508for pri in ll I64; do 10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510/* end confdefs.h. */ 10511#include <stdio.h> 10512 #include <stddef.h> 10513 #ifdef __GNUC__ 10514 #define PRINTF_ARGS(decl, string_index, first_to_check) \ 10515 decl __attribute__((format(printf, string_index, first_to_check))) 10516 #else 10517 #define PRINTF_ARGS(decl, string_index, first_to_check) decl 10518 #endif 10519 PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); 10520int 10521main () 10522{ 10523printf("%${pri}d", (long long)42); 10524 test_sprintf("%${pri}d", (long long)42); 10525 ; 10526 return 0; 10527} 10528_ACEOF 10529if ac_fn_c_try_compile "$LINENO"; then : 10530 rb_cv_pri_prefix_long_long=$pri; break 10531fi 10532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10533 done 10534CFLAGS="$save_CFLAGS" 10535save_CFLAGS= 10536if test "${rb_c_werror_flag+set}"; then 10537 ac_c_werror_flag="$rb_c_werror_flag" 10538else 10539 unset ac_c_werror_flag 10540fi 10541fi 10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_long_long" >&5 10543$as_echo "$rb_cv_pri_prefix_long_long" >&6; } 10544if test "$rb_cv_pri_prefix_long_long" != NONE; then 10545 cat >>confdefs.h <<_ACEOF 10546#define PRI_LL_PREFIX "$rb_cv_pri_prefix_long_long" 10547_ACEOF 10548 10549fi 10550 10551elif test "x$ac_cv_type___int64" = xyes; then 10552 10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf prefix for __int64" >&5 10554$as_echo_n "checking for printf prefix for __int64... " >&6; } 10555if ${rb_cv_pri_prefix___int64+:} false; then : 10556 $as_echo_n "(cached) " >&6 10557else 10558 10559 rb_cv_pri_prefix___int64=NONE 10560 save_CFLAGS="$CFLAGS" 10561CFLAGS="$CFLAGS $rb_cv_warnflags" 10562if test "${ac_c_werror_flag+set}"; then 10563 rb_c_werror_flag="$ac_c_werror_flag" 10564else 10565 unset rb_c_werror_flag 10566fi 10567ac_c_werror_flag=yes 10568for pri in ll I64; do 10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571#include <stdio.h> 10572 #include <stddef.h> 10573 #ifdef __GNUC__ 10574 #define PRINTF_ARGS(decl, string_index, first_to_check) \ 10575 decl __attribute__((format(printf, string_index, first_to_check))) 10576 #else 10577 #define PRINTF_ARGS(decl, string_index, first_to_check) decl 10578 #endif 10579 PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); 10580int 10581main () 10582{ 10583printf("%${pri}d", (__int64)42); 10584 test_sprintf("%${pri}d", (__int64)42); 10585 ; 10586 return 0; 10587} 10588_ACEOF 10589if ac_fn_c_try_compile "$LINENO"; then : 10590 rb_cv_pri_prefix___int64=$pri; break 10591fi 10592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10593 done 10594CFLAGS="$save_CFLAGS" 10595save_CFLAGS= 10596if test "${rb_c_werror_flag+set}"; then 10597 ac_c_werror_flag="$rb_c_werror_flag" 10598else 10599 unset ac_c_werror_flag 10600fi 10601fi 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix___int64" >&5 10603$as_echo "$rb_cv_pri_prefix___int64" >&6; } 10604if test "$rb_cv_pri_prefix___int64" != NONE; then 10605 cat >>confdefs.h <<_ACEOF 10606#define PRI_LL_PREFIX "$rb_cv_pri_prefix___int64" 10607_ACEOF 10608 10609fi 10610 10611fi 10612 10613 10614 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10615if test "x$ac_cv_type_pid_t" = xyes; then : 10616 n="pid_t" 10617else 10618 n="int" 10619fi 10620 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of pid_t" >&5 10622$as_echo_n "checking for convertible type of pid_t... " >&6; } 10623if ${rb_cv_pid_t_convertible+:} false; then : 10624 $as_echo_n "(cached) " >&6 10625else 10626 10627 u= t= 10628 case "$n " in #( 10629 *" signed "*) : 10630 ;; #( 10631 *" unsigned "*) : 10632 10633 u=U ;; #( 10634 *) : 10635 10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637/* end confdefs.h. */ 10638$ac_includes_default 10639int 10640main () 10641{ 10642static int test_array [1 - 2 * !(($n)-1 > 0)]; 10643test_array [0] = 0; 10644return test_array [0]; 10645 10646 ; 10647 return 0; 10648} 10649_ACEOF 10650if ac_fn_c_try_compile "$LINENO"; then : 10651 u=U 10652fi 10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 10654esac 10655 if test x"$t" = x; then 10656 for t in "long long" long int short; do 10657 test -n "$u" && t="unsigned $t" 10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10659/* end confdefs.h. */ 10660$ac_includes_default 10661 typedef $n rbcv_conftest_target_type; 10662 typedef $t rbcv_conftest_replace_type; 10663 extern rbcv_conftest_target_type rbcv_conftest_var; 10664 extern rbcv_conftest_replace_type rbcv_conftest_var; 10665 extern rbcv_conftest_target_type rbcv_conftest_func(void); 10666 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 10667 10668int 10669main () 10670{ 10671static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 10672test_array [0] = 0; 10673return test_array [0]; 10674 10675 ; 10676 return 0; 10677} 10678_ACEOF 10679if ac_fn_c_try_compile "$LINENO"; then : 10680 n="$t"; break 10681fi 10682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10683 done 10684 fi 10685 case " $n " in #( 10686 *" long long "*) : 10687 10688 t=LL ;; #( 10689 *" long "*) : 10690 10691 t=LONG ;; #( 10692 *) : 10693 10694 t=INT ;; 10695esac 10696 rb_cv_pid_t_convertible=${u}${t} 10697fi 10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pid_t_convertible" >&5 10699$as_echo "$rb_cv_pid_t_convertible" >&6; } 10700 test "${ac_cv_type_pid_t}" = "yes" && n="pid_t" 10701 cat >>confdefs.h <<_ACEOF 10702#define rb_pid_t $n 10703_ACEOF 10704 10705 cat >>confdefs.h <<_ACEOF 10706#define PIDT2NUM(v) ${rb_cv_pid_t_convertible}2NUM(v) 10707_ACEOF 10708 10709 cat >>confdefs.h <<_ACEOF 10710#define NUM2PIDT(v) NUM2${rb_cv_pid_t_convertible}(v) 10711_ACEOF 10712 10713 cat >>confdefs.h <<_ACEOF 10714#define PRI_PIDT_PREFIX PRI_`echo ${rb_cv_pid_t_convertible} | sed 's/^U//'`_PREFIX 10715_ACEOF 10716 10717 10718 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" 10719if test "x$ac_cv_type_uid_t" = xyes; then : 10720 n="uid_t" 10721else 10722 n="int" 10723fi 10724 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of uid_t" >&5 10726$as_echo_n "checking for convertible type of uid_t... " >&6; } 10727if ${rb_cv_uid_t_convertible+:} false; then : 10728 $as_echo_n "(cached) " >&6 10729else 10730 10731 u= t= 10732 case "$n " in #( 10733 *" signed "*) : 10734 ;; #( 10735 *" unsigned "*) : 10736 10737 u=U ;; #( 10738 *) : 10739 10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741/* end confdefs.h. */ 10742$ac_includes_default 10743int 10744main () 10745{ 10746static int test_array [1 - 2 * !(($n)-1 > 0)]; 10747test_array [0] = 0; 10748return test_array [0]; 10749 10750 ; 10751 return 0; 10752} 10753_ACEOF 10754if ac_fn_c_try_compile "$LINENO"; then : 10755 u=U 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 10758esac 10759 if test x"$t" = x; then 10760 for t in "long long" long int short; do 10761 test -n "$u" && t="unsigned $t" 10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10763/* end confdefs.h. */ 10764$ac_includes_default 10765 typedef $n rbcv_conftest_target_type; 10766 typedef $t rbcv_conftest_replace_type; 10767 extern rbcv_conftest_target_type rbcv_conftest_var; 10768 extern rbcv_conftest_replace_type rbcv_conftest_var; 10769 extern rbcv_conftest_target_type rbcv_conftest_func(void); 10770 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 10771 10772int 10773main () 10774{ 10775static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 10776test_array [0] = 0; 10777return test_array [0]; 10778 10779 ; 10780 return 0; 10781} 10782_ACEOF 10783if ac_fn_c_try_compile "$LINENO"; then : 10784 n="$t"; break 10785fi 10786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10787 done 10788 fi 10789 case " $n " in #( 10790 *" long long "*) : 10791 10792 t=LL ;; #( 10793 *" long "*) : 10794 10795 t=LONG ;; #( 10796 *) : 10797 10798 t=INT ;; 10799esac 10800 rb_cv_uid_t_convertible=${u}${t} 10801fi 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_uid_t_convertible" >&5 10803$as_echo "$rb_cv_uid_t_convertible" >&6; } 10804 test "${ac_cv_type_uid_t}" = "yes" && n="uid_t" 10805 cat >>confdefs.h <<_ACEOF 10806#define rb_uid_t $n 10807_ACEOF 10808 10809 cat >>confdefs.h <<_ACEOF 10810#define UIDT2NUM(v) ${rb_cv_uid_t_convertible}2NUM(v) 10811_ACEOF 10812 10813 cat >>confdefs.h <<_ACEOF 10814#define NUM2UIDT(v) NUM2${rb_cv_uid_t_convertible}(v) 10815_ACEOF 10816 10817 cat >>confdefs.h <<_ACEOF 10818#define PRI_UIDT_PREFIX PRI_`echo ${rb_cv_uid_t_convertible} | sed 's/^U//'`_PREFIX 10819_ACEOF 10820 10821 10822 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" 10823if test "x$ac_cv_type_gid_t" = xyes; then : 10824 n="gid_t" 10825else 10826 n="int" 10827fi 10828 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of gid_t" >&5 10830$as_echo_n "checking for convertible type of gid_t... " >&6; } 10831if ${rb_cv_gid_t_convertible+:} false; then : 10832 $as_echo_n "(cached) " >&6 10833else 10834 10835 u= t= 10836 case "$n " in #( 10837 *" signed "*) : 10838 ;; #( 10839 *" unsigned "*) : 10840 10841 u=U ;; #( 10842 *) : 10843 10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10845/* end confdefs.h. */ 10846$ac_includes_default 10847int 10848main () 10849{ 10850static int test_array [1 - 2 * !(($n)-1 > 0)]; 10851test_array [0] = 0; 10852return test_array [0]; 10853 10854 ; 10855 return 0; 10856} 10857_ACEOF 10858if ac_fn_c_try_compile "$LINENO"; then : 10859 u=U 10860fi 10861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 10862esac 10863 if test x"$t" = x; then 10864 for t in "long long" long int short; do 10865 test -n "$u" && t="unsigned $t" 10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10867/* end confdefs.h. */ 10868$ac_includes_default 10869 typedef $n rbcv_conftest_target_type; 10870 typedef $t rbcv_conftest_replace_type; 10871 extern rbcv_conftest_target_type rbcv_conftest_var; 10872 extern rbcv_conftest_replace_type rbcv_conftest_var; 10873 extern rbcv_conftest_target_type rbcv_conftest_func(void); 10874 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 10875 10876int 10877main () 10878{ 10879static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 10880test_array [0] = 0; 10881return test_array [0]; 10882 10883 ; 10884 return 0; 10885} 10886_ACEOF 10887if ac_fn_c_try_compile "$LINENO"; then : 10888 n="$t"; break 10889fi 10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10891 done 10892 fi 10893 case " $n " in #( 10894 *" long long "*) : 10895 10896 t=LL ;; #( 10897 *" long "*) : 10898 10899 t=LONG ;; #( 10900 *) : 10901 10902 t=INT ;; 10903esac 10904 rb_cv_gid_t_convertible=${u}${t} 10905fi 10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gid_t_convertible" >&5 10907$as_echo "$rb_cv_gid_t_convertible" >&6; } 10908 test "${ac_cv_type_gid_t}" = "yes" && n="gid_t" 10909 cat >>confdefs.h <<_ACEOF 10910#define rb_gid_t $n 10911_ACEOF 10912 10913 cat >>confdefs.h <<_ACEOF 10914#define GIDT2NUM(v) ${rb_cv_gid_t_convertible}2NUM(v) 10915_ACEOF 10916 10917 cat >>confdefs.h <<_ACEOF 10918#define NUM2GIDT(v) NUM2${rb_cv_gid_t_convertible}(v) 10919_ACEOF 10920 10921 cat >>confdefs.h <<_ACEOF 10922#define PRI_GIDT_PREFIX PRI_`echo ${rb_cv_gid_t_convertible} | sed 's/^U//'`_PREFIX 10923_ACEOF 10924 10925 10926 ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "#include <time.h> 10927" 10928if test "x$ac_cv_type_time_t" = xyes; then : 10929 n="time_t" 10930else 10931 n="" 10932fi 10933 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of time_t" >&5 10935$as_echo_n "checking for convertible type of time_t... " >&6; } 10936if ${rb_cv_time_t_convertible+:} false; then : 10937 $as_echo_n "(cached) " >&6 10938else 10939 10940 u= t= 10941 case "$n " in #( 10942 *" signed "*) : 10943 ;; #( 10944 *" unsigned "*) : 10945 10946 u=U ;; #( 10947 *) : 10948 10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950/* end confdefs.h. */ 10951#include <time.h> 10952 10953int 10954main () 10955{ 10956static int test_array [1 - 2 * !(($n)-1 > 0)]; 10957test_array [0] = 0; 10958return test_array [0]; 10959 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_compile "$LINENO"; then : 10965 u=U 10966fi 10967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 10968esac 10969 if test x"$t" = x; then 10970 for t in "long long" long int short; do 10971 test -n "$u" && t="unsigned $t" 10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10973/* end confdefs.h. */ 10974#include <time.h> 10975 10976 typedef $n rbcv_conftest_target_type; 10977 typedef $t rbcv_conftest_replace_type; 10978 extern rbcv_conftest_target_type rbcv_conftest_var; 10979 extern rbcv_conftest_replace_type rbcv_conftest_var; 10980 extern rbcv_conftest_target_type rbcv_conftest_func(void); 10981 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 10982 10983int 10984main () 10985{ 10986static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 10987test_array [0] = 0; 10988return test_array [0]; 10989 10990 ; 10991 return 0; 10992} 10993_ACEOF 10994if ac_fn_c_try_compile "$LINENO"; then : 10995 n="$t"; break 10996fi 10997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10998 done 10999 fi 11000 case " $n " in #( 11001 *" long long "*) : 11002 11003 t=LL ;; #( 11004 *" long "*) : 11005 11006 t=LONG ;; #( 11007 *) : 11008 11009 t=INT ;; 11010esac 11011 rb_cv_time_t_convertible=${u}${t} 11012fi 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_time_t_convertible" >&5 11014$as_echo "$rb_cv_time_t_convertible" >&6; } 11015 test "${ac_cv_type_time_t}" = "yes" && n="time_t" 11016 cat >>confdefs.h <<_ACEOF 11017#define rb_time_t $n 11018_ACEOF 11019 11020 cat >>confdefs.h <<_ACEOF 11021#define TIMET2NUM(v) ${rb_cv_time_t_convertible}2NUM(v) 11022_ACEOF 11023 11024 cat >>confdefs.h <<_ACEOF 11025#define NUM2TIMET(v) NUM2${rb_cv_time_t_convertible}(v) 11026_ACEOF 11027 11028 cat >>confdefs.h <<_ACEOF 11029#define PRI_TIMET_PREFIX PRI_`echo ${rb_cv_time_t_convertible} | sed 's/^U//'`_PREFIX 11030_ACEOF 11031 11032 11033 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 11034if test "x$ac_cv_type_dev_t" = xyes; then : 11035 n="dev_t" 11036else 11037 n="int long \"long long\"" 11038fi 11039 11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of dev_t" >&5 11041$as_echo_n "checking for convertible type of dev_t... " >&6; } 11042if ${rb_cv_dev_t_convertible+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 11046 u= t= 11047 case "$n " in #( 11048 *" signed "*) : 11049 ;; #( 11050 *" unsigned "*) : 11051 11052 u=U ;; #( 11053 *) : 11054 11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057$ac_includes_default 11058int 11059main () 11060{ 11061static int test_array [1 - 2 * !(($n)-1 > 0)]; 11062test_array [0] = 0; 11063return test_array [0]; 11064 11065 ; 11066 return 0; 11067} 11068_ACEOF 11069if ac_fn_c_try_compile "$LINENO"; then : 11070 u=U 11071fi 11072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 11073esac 11074 if test x"$t" = x; then 11075 for t in "long long" long int short; do 11076 test -n "$u" && t="unsigned $t" 11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11078/* end confdefs.h. */ 11079$ac_includes_default 11080 typedef $n rbcv_conftest_target_type; 11081 typedef $t rbcv_conftest_replace_type; 11082 extern rbcv_conftest_target_type rbcv_conftest_var; 11083 extern rbcv_conftest_replace_type rbcv_conftest_var; 11084 extern rbcv_conftest_target_type rbcv_conftest_func(void); 11085 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 11086 11087int 11088main () 11089{ 11090static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 11091test_array [0] = 0; 11092return test_array [0]; 11093 11094 ; 11095 return 0; 11096} 11097_ACEOF 11098if ac_fn_c_try_compile "$LINENO"; then : 11099 n="$t"; break 11100fi 11101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11102 done 11103 fi 11104 case " $n " in #( 11105 *" long long "*) : 11106 11107 t=LL ;; #( 11108 *" long "*) : 11109 11110 t=LONG ;; #( 11111 *) : 11112 11113 t=INT ;; 11114esac 11115 rb_cv_dev_t_convertible=${u}${t} 11116fi 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dev_t_convertible" >&5 11118$as_echo "$rb_cv_dev_t_convertible" >&6; } 11119 test "${ac_cv_type_dev_t}" = "yes" && n="dev_t" 11120 cat >>confdefs.h <<_ACEOF 11121#define rb_dev_t $n 11122_ACEOF 11123 11124 cat >>confdefs.h <<_ACEOF 11125#define DEVT2NUM(v) ${rb_cv_dev_t_convertible}2NUM(v) 11126_ACEOF 11127 11128 cat >>confdefs.h <<_ACEOF 11129#define NUM2DEVT(v) NUM2${rb_cv_dev_t_convertible}(v) 11130_ACEOF 11131 11132 cat >>confdefs.h <<_ACEOF 11133#define PRI_DEVT_PREFIX PRI_`echo ${rb_cv_dev_t_convertible} | sed 's/^U//'`_PREFIX 11134_ACEOF 11135 11136 11137 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "#include <sys/stat.h> 11138" 11139if test "x$ac_cv_type_mode_t" = xyes; then : 11140 n="mode_t" 11141else 11142 n="\"unsigned int\" long" 11143fi 11144 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of mode_t" >&5 11146$as_echo_n "checking for convertible type of mode_t... " >&6; } 11147if ${rb_cv_mode_t_convertible+:} false; then : 11148 $as_echo_n "(cached) " >&6 11149else 11150 11151 u= t= 11152 case "$n " in #( 11153 *" signed "*) : 11154 ;; #( 11155 *" unsigned "*) : 11156 11157 u=U ;; #( 11158 *) : 11159 11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11161/* end confdefs.h. */ 11162#include <sys/stat.h> 11163 11164int 11165main () 11166{ 11167static int test_array [1 - 2 * !(($n)-1 > 0)]; 11168test_array [0] = 0; 11169return test_array [0]; 11170 11171 ; 11172 return 0; 11173} 11174_ACEOF 11175if ac_fn_c_try_compile "$LINENO"; then : 11176 u=U 11177fi 11178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 11179esac 11180 if test x"$t" = x; then 11181 for t in "long long" long int short; do 11182 test -n "$u" && t="unsigned $t" 11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11184/* end confdefs.h. */ 11185#include <sys/stat.h> 11186 11187 typedef $n rbcv_conftest_target_type; 11188 typedef $t rbcv_conftest_replace_type; 11189 extern rbcv_conftest_target_type rbcv_conftest_var; 11190 extern rbcv_conftest_replace_type rbcv_conftest_var; 11191 extern rbcv_conftest_target_type rbcv_conftest_func(void); 11192 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 11193 11194int 11195main () 11196{ 11197static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 11198test_array [0] = 0; 11199return test_array [0]; 11200 11201 ; 11202 return 0; 11203} 11204_ACEOF 11205if ac_fn_c_try_compile "$LINENO"; then : 11206 n="$t"; break 11207fi 11208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11209 done 11210 fi 11211 case " $n " in #( 11212 *" long long "*) : 11213 11214 t=LL ;; #( 11215 *" long "*) : 11216 11217 t=LONG ;; #( 11218 *) : 11219 11220 t=INT ;; 11221esac 11222 rb_cv_mode_t_convertible=${u}${t} 11223fi 11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mode_t_convertible" >&5 11225$as_echo "$rb_cv_mode_t_convertible" >&6; } 11226 test "${ac_cv_type_mode_t}" = "yes" && n="mode_t" 11227 cat >>confdefs.h <<_ACEOF 11228#define rb_mode_t $n 11229_ACEOF 11230 11231 cat >>confdefs.h <<_ACEOF 11232#define MODET2NUM(v) ${rb_cv_mode_t_convertible}2NUM(v) 11233_ACEOF 11234 11235 cat >>confdefs.h <<_ACEOF 11236#define NUM2MODET(v) NUM2${rb_cv_mode_t_convertible}(v) 11237_ACEOF 11238 11239 cat >>confdefs.h <<_ACEOF 11240#define PRI_MODET_PREFIX PRI_`echo ${rb_cv_mode_t_convertible} | sed 's/^U//'`_PREFIX 11241_ACEOF 11242 11243 11244 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " 11245#ifdef HAVE_SYS_TYPES_H 11246#include <sys/types.h> 11247#endif 11248#ifdef HAVE_SYS_TYPES_H 11249#include <sys/time.h> 11250#endif 11251#include <sys/resource.h> 11252 11253" 11254if test "x$ac_cv_type_rlim_t" = xyes; then : 11255 n="rlim_t" 11256else 11257 n="int long \"long long\"" 11258fi 11259 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for convertible type of rlim_t" >&5 11261$as_echo_n "checking for convertible type of rlim_t... " >&6; } 11262if ${rb_cv_rlim_t_convertible+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 11266 u= t= 11267 case "$n " in #( 11268 *" signed "*) : 11269 ;; #( 11270 *" unsigned "*) : 11271 11272 u=U ;; #( 11273 *) : 11274 11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277 11278#ifdef HAVE_SYS_TYPES_H 11279#include <sys/types.h> 11280#endif 11281#ifdef HAVE_SYS_TYPES_H 11282#include <sys/time.h> 11283#endif 11284#include <sys/resource.h> 11285 11286 11287int 11288main () 11289{ 11290static int test_array [1 - 2 * !(($n)-1 > 0)]; 11291test_array [0] = 0; 11292return test_array [0]; 11293 11294 ; 11295 return 0; 11296} 11297_ACEOF 11298if ac_fn_c_try_compile "$LINENO"; then : 11299 u=U 11300fi 11301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 11302esac 11303 if test x"$t" = x; then 11304 for t in "long long" long int short; do 11305 test -n "$u" && t="unsigned $t" 11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309#ifdef HAVE_SYS_TYPES_H 11310#include <sys/types.h> 11311#endif 11312#ifdef HAVE_SYS_TYPES_H 11313#include <sys/time.h> 11314#endif 11315#include <sys/resource.h> 11316 11317 11318 typedef $n rbcv_conftest_target_type; 11319 typedef $t rbcv_conftest_replace_type; 11320 extern rbcv_conftest_target_type rbcv_conftest_var; 11321 extern rbcv_conftest_replace_type rbcv_conftest_var; 11322 extern rbcv_conftest_target_type rbcv_conftest_func(void); 11323 extern rbcv_conftest_replace_type rbcv_conftest_func(void); 11324 11325int 11326main () 11327{ 11328static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; 11329test_array [0] = 0; 11330return test_array [0]; 11331 11332 ; 11333 return 0; 11334} 11335_ACEOF 11336if ac_fn_c_try_compile "$LINENO"; then : 11337 n="$t"; break 11338fi 11339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11340 done 11341 fi 11342 case " $n " in #( 11343 *" long long "*) : 11344 11345 t=LL ;; #( 11346 *" long "*) : 11347 11348 t=LONG ;; #( 11349 *) : 11350 11351 t=INT ;; 11352esac 11353 rb_cv_rlim_t_convertible=${u}${t} 11354fi 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rlim_t_convertible" >&5 11356$as_echo "$rb_cv_rlim_t_convertible" >&6; } 11357 test "${ac_cv_type_rlim_t}" = "yes" && n="rlim_t" 11358 cat >>confdefs.h <<_ACEOF 11359#define rb_rlim_t $n 11360_ACEOF 11361 11362 cat >>confdefs.h <<_ACEOF 11363#define RLIM2NUM(v) ${rb_cv_rlim_t_convertible}2NUM(v) 11364_ACEOF 11365 11366 cat >>confdefs.h <<_ACEOF 11367#define NUM2RLIM(v) NUM2${rb_cv_rlim_t_convertible}(v) 11368_ACEOF 11369 11370 cat >>confdefs.h <<_ACEOF 11371#define PRI_RLIM_PREFIX PRI_`echo ${rb_cv_rlim_t_convertible} | sed 's/^U//'`_PREFIX 11372_ACEOF 11373 11374 11375 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 11377$as_echo_n "checking for prototypes... " >&6; } 11378if ${rb_cv_have_prototypes+:} false; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11382/* end confdefs.h. */ 11383int foo(int x) { return 0; } 11384int 11385main () 11386{ 11387return foo(10); 11388 ; 11389 return 0; 11390} 11391_ACEOF 11392if ac_fn_c_try_compile "$LINENO"; then : 11393 rb_cv_have_prototypes=yes 11394else 11395 rb_cv_have_prototypes=no 11396fi 11397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11398fi 11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_prototypes" >&5 11400$as_echo "$rb_cv_have_prototypes" >&6; } 11401if test "$rb_cv_have_prototypes" = yes; then 11402 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 11403 11404fi 11405 11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking token paste string" >&5 11407$as_echo_n "checking token paste string... " >&6; } 11408if ${rb_cv_tokenpaste+:} false; then : 11409 $as_echo_n "(cached) " >&6 11410else 11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11412/* end confdefs.h. */ 11413#define paste(a,b) a##b 11414int 11415main () 11416{ 11417int xy = 1; return paste(x,y); 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422if ac_fn_c_try_compile "$LINENO"; then : 11423 rb_cv_tokenpaste=ansi 11424else 11425 rb_cv_tokenpaste=knr 11426fi 11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11428fi 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_tokenpaste" >&5 11430$as_echo "$rb_cv_tokenpaste" >&6; } 11431if test "$rb_cv_tokenpaste" = ansi; then 11432 $as_echo "#define TOKEN_PASTE(x,y) x##y" >>confdefs.h 11433 11434else 11435 $as_echo "#define TOKEN_PASTE(x,y) x/**/y" >>confdefs.h 11436 11437fi 11438 11439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stringization" >&5 11440$as_echo_n "checking stringization... " >&6; } 11441if ${rb_cv_stringization+:} false; then : 11442 $as_echo_n "(cached) " >&6 11443else 11444 11445 rb_cv_stringization=no 11446 for string in "#expr" '"expr"'; do 11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448/* end confdefs.h. */ 11449 11450 11451#define STRINGIZE0(expr) $string 11452#define STRINGIZE(expr) STRINGIZE0(expr) 11453#undef real_test_for_stringization 11454#define test_for_stringization -.real_test_for_stringization.- 11455const char stringized[] = STRINGIZE(test_for_stringization); 11456 11457int 11458main () 11459{ 11460static int test_array [1 - 2 * !(sizeof(stringized) == 32)]; 11461test_array [0] = 0; 11462return test_array [0]; 11463 11464 ; 11465 return 0; 11466} 11467_ACEOF 11468if ac_fn_c_try_compile "$LINENO"; then : 11469 rb_cv_stringization="$string"; break 11470else 11471 rb_cv_stringization=no 11472fi 11473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11474 done 11475 11476fi 11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_stringization" >&5 11478$as_echo "$rb_cv_stringization" >&6; } 11479$as_echo "#define STRINGIZE(expr) STRINGIZE0(expr)" >>confdefs.h 11480 11481if test x"$rb_cv_stringization" != xno -a "$rb_cv_stringization" != "#expr"; then 11482 cat >>confdefs.h <<_ACEOF 11483#define STRINGIZE0(expr) $rb_cv_stringization 11484_ACEOF 11485 11486 $as_echo "#define OLD_FASHIONED_STRINGIZATION 1" >>confdefs.h 11487 11488fi 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking string literal concatenation" >&5 11491$as_echo_n "checking string literal concatenation... " >&6; } 11492if ${rb_cv_string_literal_concatenation+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11497/* end confdefs.h. */ 11498 11499 11500const char concatenated_literal[] = "literals" "to" 11501 "be" "concatenated."; 11502 11503int 11504main () 11505{ 11506static int test_array [1 - 2 * !(sizeof(concatenated_literal) == 26)]; 11507test_array [0] = 0; 11508return test_array [0]; 11509 11510 ; 11511 return 0; 11512} 11513_ACEOF 11514if ac_fn_c_try_compile "$LINENO"; then : 11515 rb_cv_string_literal_concatenation=yes 11516else 11517 rb_cv_string_literal_concatenation=no 11518fi 11519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11520 11521fi 11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_string_literal_concatenation" >&5 11523$as_echo "$rb_cv_string_literal_concatenation" >&6; } 11524if test "$rb_cv_string_literal_concatenation" = no; then 11525 $as_echo "#define NO_STRING_LITERAL_CONCATENATION 1" >>confdefs.h 11526 11527fi 11528 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 11530$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 11531if ${rb_cv_stdarg+:} false; then : 11532 $as_echo_n "(cached) " >&6 11533else 11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11535/* end confdefs.h. */ 11536 11537#include <stdarg.h> 11538int foo(int x, ...) { 11539 va_list va; 11540 va_start(va, x); 11541 va_arg(va, int); 11542 va_arg(va, char *); 11543 va_arg(va, double); 11544 return 0; 11545} 11546 11547int 11548main () 11549{ 11550return foo(10, "", 3.14); 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555if ac_fn_c_try_compile "$LINENO"; then : 11556 rb_cv_stdarg=yes 11557else 11558 rb_cv_stdarg=no 11559fi 11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11561fi 11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_stdarg" >&5 11563$as_echo "$rb_cv_stdarg" >&6; } 11564if test "$rb_cv_stdarg" = yes; then 11565 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 11566 11567fi 11568 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length macro" >&5 11570$as_echo_n "checking for variable length macro... " >&6; } 11571if ${rb_cv_va_args_macro+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11575/* end confdefs.h. */ 11576 11577int foo(int x, ...); 11578#define FOO(a, ...) foo(a, ##__VA_ARGS__) 11579 11580int 11581main () 11582{ 11583FOO(1);FOO(1,2);FOO(1,2,3); 11584 ; 11585 return 0; 11586} 11587_ACEOF 11588if ac_fn_c_try_compile "$LINENO"; then : 11589 rb_cv_va_args_macro=yes 11590else 11591 rb_cv_va_args_macro=no 11592fi 11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11594fi 11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_va_args_macro" >&5 11596$as_echo "$rb_cv_va_args_macro" >&6; } 11597if test "$rb_cv_va_args_macro" = yes; then 11598 $as_echo "#define HAVE_VA_ARGS_MACRO 1" >>confdefs.h 11599 11600fi 11601 11602 11603 11604 11605 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for noreturn function attribute" >&5 11607$as_echo_n "checking for noreturn function attribute... " >&6; } 11608if ${rb_cv_func_noreturn+:} false; then : 11609 $as_echo_n "(cached) " >&6 11610else 11611 rb_cv_func_noreturn=x 11612save_CFLAGS="$CFLAGS" 11613CFLAGS="$CFLAGS $rb_cv_warnflags" 11614if test "${ac_c_werror_flag+set}"; then 11615 rb_c_werror_flag="$ac_c_werror_flag" 11616else 11617 unset rb_c_werror_flag 11618fi 11619ac_c_werror_flag=yes 11620 11621for mac in "__attribute__ ((noreturn)) x" "x __attribute__ ((noreturn))" "__declspec(noreturn) x" x; do 11622 11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11624/* end confdefs.h. */ 11625 11626#define NORETURN(x) $mac 11627 11628 NORETURN(void conftest_attribute_check(void)); 11629int 11630main () 11631{ 11632 11633 ; 11634 return 0; 11635} 11636_ACEOF 11637if ac_fn_c_try_compile "$LINENO"; then : 11638 rb_cv_func_noreturn="$mac"; break 11639fi 11640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11641done 11642 11643CFLAGS="$save_CFLAGS" 11644save_CFLAGS= 11645if test "${rb_c_werror_flag+set}"; then 11646 ac_c_werror_flag="$rb_c_werror_flag" 11647else 11648 unset ac_c_werror_flag 11649fi 11650fi 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_noreturn" >&5 11652$as_echo "$rb_cv_func_noreturn" >&6; } 11653if test "$rb_cv_func_noreturn" != x; then 11654 cat >>confdefs.h <<_ACEOF 11655#define NORETURN(x) $rb_cv_func_noreturn 11656_ACEOF 11657 11658fi 11659 11660 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated function attribute" >&5 11662$as_echo_n "checking for deprecated function attribute... " >&6; } 11663if ${rb_cv_func_deprecated+:} false; then : 11664 $as_echo_n "(cached) " >&6 11665else 11666 rb_cv_func_deprecated=x 11667save_CFLAGS="$CFLAGS" 11668CFLAGS="$CFLAGS $rb_cv_warnflags" 11669if test "${ac_c_werror_flag+set}"; then 11670 rb_c_werror_flag="$ac_c_werror_flag" 11671else 11672 unset rb_c_werror_flag 11673fi 11674ac_c_werror_flag=yes 11675 11676for mac in "__attribute__ ((deprecated)) x" "x __attribute__ ((deprecated))" "__declspec(deprecated) x" x; do 11677 11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11679/* end confdefs.h. */ 11680 11681#define DEPRECATED(x) $mac 11682 11683 DEPRECATED(void conftest_attribute_check(void)); 11684int 11685main () 11686{ 11687 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692if ac_fn_c_try_compile "$LINENO"; then : 11693 rb_cv_func_deprecated="$mac"; break 11694fi 11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11696done 11697 11698CFLAGS="$save_CFLAGS" 11699save_CFLAGS= 11700if test "${rb_c_werror_flag+set}"; then 11701 ac_c_werror_flag="$rb_c_werror_flag" 11702else 11703 unset ac_c_werror_flag 11704fi 11705fi 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_deprecated" >&5 11707$as_echo "$rb_cv_func_deprecated" >&6; } 11708if test "$rb_cv_func_deprecated" != x; then 11709 cat >>confdefs.h <<_ACEOF 11710#define DEPRECATED(x) $rb_cv_func_deprecated 11711_ACEOF 11712 11713fi 11714 11715 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for noinline function attribute" >&5 11717$as_echo_n "checking for noinline function attribute... " >&6; } 11718if ${rb_cv_func_noinline+:} false; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 rb_cv_func_noinline=x 11722save_CFLAGS="$CFLAGS" 11723CFLAGS="$CFLAGS $rb_cv_warnflags" 11724if test "${ac_c_werror_flag+set}"; then 11725 rb_c_werror_flag="$ac_c_werror_flag" 11726else 11727 unset rb_c_werror_flag 11728fi 11729ac_c_werror_flag=yes 11730 11731for mac in "__attribute__ ((noinline)) x" "x __attribute__ ((noinline))" "__declspec(noinline) x" x; do 11732 11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11734/* end confdefs.h. */ 11735 11736#define NOINLINE(x) $mac 11737 11738 NOINLINE(void conftest_attribute_check(void)); 11739int 11740main () 11741{ 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_compile "$LINENO"; then : 11748 rb_cv_func_noinline="$mac"; break 11749fi 11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11751done 11752 11753CFLAGS="$save_CFLAGS" 11754save_CFLAGS= 11755if test "${rb_c_werror_flag+set}"; then 11756 ac_c_werror_flag="$rb_c_werror_flag" 11757else 11758 unset ac_c_werror_flag 11759fi 11760fi 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_noinline" >&5 11762$as_echo "$rb_cv_func_noinline" >&6; } 11763if test "$rb_cv_func_noinline" != x; then 11764 cat >>confdefs.h <<_ACEOF 11765#define NOINLINE(x) $rb_cv_func_noinline 11766_ACEOF 11767 11768fi 11769 11770 11771if_i386=${universal_binary+defined __i386__} 11772 rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdcall function attribute" >&5 11774$as_echo_n "checking for stdcall function attribute... " >&6; } 11775if ${rb_cv_func_stdcall+:} false; then : 11776 $as_echo_n "(cached) " >&6 11777else 11778 rb_cv_func_stdcall=x 11779save_CFLAGS="$CFLAGS" 11780CFLAGS="$CFLAGS $rb_cv_warnflags" 11781if test "${ac_c_werror_flag+set}"; then 11782 rb_c_werror_flag="$ac_c_werror_flag" 11783else 11784 unset rb_c_werror_flag 11785fi 11786ac_c_werror_flag=yes 11787 11788for mac in "__attribute__ ((stdcall)) x" "x __attribute__ ((stdcall))" "__declspec(stdcall) x" x; do 11789 mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} 11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11791/* end confdefs.h. */ 11792${rbcv_cond+#if $rbcv_cond} 11793#define FUNC_STDCALL(x) $mac 11794${rbcv_cond+#else} 11795${rbcv_cond+#define FUNC_STDCALL(x) x} 11796${rbcv_cond+#endif} 11797 FUNC_STDCALL(void conftest_attribute_check(void)); 11798int 11799main () 11800{ 11801 11802 ; 11803 return 0; 11804} 11805_ACEOF 11806if ac_fn_c_try_compile "$LINENO"; then : 11807 rb_cv_func_stdcall="$mac"; break 11808fi 11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11810done 11811 11812CFLAGS="$save_CFLAGS" 11813save_CFLAGS= 11814if test "${rb_c_werror_flag+set}"; then 11815 ac_c_werror_flag="$rb_c_werror_flag" 11816else 11817 unset ac_c_werror_flag 11818fi 11819fi 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_stdcall" >&5 11821$as_echo "$rb_cv_func_stdcall" >&6; } 11822if test "$rb_cv_func_stdcall" != x; then 11823 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11824#if ${rbcv_cond} 11825EOH 11826cat >>confdefs.h <<_ACEOF 11827#define FUNC_STDCALL(x) $rb_cv_func_stdcall 11828_ACEOF 11829 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11830#endif /* ${rbcv_cond} */ 11831EOH 11832 11833fi 11834unset rbcv_conddnl 11835 11836 rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond 11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdecl function attribute" >&5 11838$as_echo_n "checking for cdecl function attribute... " >&6; } 11839if ${rb_cv_func_cdecl+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 rb_cv_func_cdecl=x 11843save_CFLAGS="$CFLAGS" 11844CFLAGS="$CFLAGS $rb_cv_warnflags" 11845if test "${ac_c_werror_flag+set}"; then 11846 rb_c_werror_flag="$ac_c_werror_flag" 11847else 11848 unset rb_c_werror_flag 11849fi 11850ac_c_werror_flag=yes 11851 11852for mac in "__attribute__ ((cdecl)) x" "x __attribute__ ((cdecl))" "__declspec(cdecl) x" x; do 11853 mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} 11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11855/* end confdefs.h. */ 11856${rbcv_cond+#if $rbcv_cond} 11857#define FUNC_CDECL(x) $mac 11858${rbcv_cond+#else} 11859${rbcv_cond+#define FUNC_CDECL(x) x} 11860${rbcv_cond+#endif} 11861 FUNC_CDECL(void conftest_attribute_check(void)); 11862int 11863main () 11864{ 11865 11866 ; 11867 return 0; 11868} 11869_ACEOF 11870if ac_fn_c_try_compile "$LINENO"; then : 11871 rb_cv_func_cdecl="$mac"; break 11872fi 11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11874done 11875 11876CFLAGS="$save_CFLAGS" 11877save_CFLAGS= 11878if test "${rb_c_werror_flag+set}"; then 11879 ac_c_werror_flag="$rb_c_werror_flag" 11880else 11881 unset ac_c_werror_flag 11882fi 11883fi 11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_cdecl" >&5 11885$as_echo "$rb_cv_func_cdecl" >&6; } 11886if test "$rb_cv_func_cdecl" != x; then 11887 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11888#if ${rbcv_cond} 11889EOH 11890cat >>confdefs.h <<_ACEOF 11891#define FUNC_CDECL(x) $rb_cv_func_cdecl 11892_ACEOF 11893 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11894#endif /* ${rbcv_cond} */ 11895EOH 11896 11897fi 11898unset rbcv_conddnl 11899 11900 rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond 11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fastcall function attribute" >&5 11902$as_echo_n "checking for fastcall function attribute... " >&6; } 11903if ${rb_cv_func_fastcall+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905else 11906 rb_cv_func_fastcall=x 11907save_CFLAGS="$CFLAGS" 11908CFLAGS="$CFLAGS $rb_cv_warnflags" 11909if test "${ac_c_werror_flag+set}"; then 11910 rb_c_werror_flag="$ac_c_werror_flag" 11911else 11912 unset rb_c_werror_flag 11913fi 11914ac_c_werror_flag=yes 11915 11916for mac in "__attribute__ ((fastcall)) x" "x __attribute__ ((fastcall))" "__declspec(fastcall) x" x; do 11917 mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} 11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11919/* end confdefs.h. */ 11920${rbcv_cond+#if $rbcv_cond} 11921#define FUNC_FASTCALL(x) $mac 11922${rbcv_cond+#else} 11923${rbcv_cond+#define FUNC_FASTCALL(x) x} 11924${rbcv_cond+#endif} 11925 FUNC_FASTCALL(void conftest_attribute_check(void)); 11926int 11927main () 11928{ 11929 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934if ac_fn_c_try_compile "$LINENO"; then : 11935 rb_cv_func_fastcall="$mac"; break 11936fi 11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11938done 11939 11940CFLAGS="$save_CFLAGS" 11941save_CFLAGS= 11942if test "${rb_c_werror_flag+set}"; then 11943 ac_c_werror_flag="$rb_c_werror_flag" 11944else 11945 unset ac_c_werror_flag 11946fi 11947fi 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_fastcall" >&5 11949$as_echo "$rb_cv_func_fastcall" >&6; } 11950if test "$rb_cv_func_fastcall" != x; then 11951 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11952#if ${rbcv_cond} 11953EOH 11954cat >>confdefs.h <<_ACEOF 11955#define FUNC_FASTCALL(x) $rb_cv_func_fastcall 11956_ACEOF 11957 test "X${rbcv_cond}" = X || cat <<EOH >> confdefs.h 11958#endif /* ${rbcv_cond} */ 11959EOH 11960 11961fi 11962unset rbcv_conddnl 11963 11964 11965if test "$GCC" = yes; then 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function alias" >&5 11967$as_echo_n "checking for function alias... " >&6; } 11968if ${rb_cv_gcc_function_alias+:} false; then : 11969 $as_echo_n "(cached) " >&6 11970else 11971 rb_cv_gcc_function_alias=no 11972 for a in alias weak,alias; do 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975void foo(void) {} 11976 void bar(void) __attribute__(($a("foo"))); 11977int 11978main () 11979{ 11980bar() 11981 ; 11982 return 0; 11983} 11984_ACEOF 11985if ac_fn_c_try_link "$LINENO"; then : 11986 rb_cv_gcc_function_alias=$a; break 11987fi 11988rm -f core conftest.err conftest.$ac_objext \ 11989 conftest$ac_exeext conftest.$ac_ext 11990 done 11991fi 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_function_alias" >&5 11993$as_echo "$rb_cv_gcc_function_alias" >&6; } 11994 if test "$rb_cv_gcc_function_alias" != no; then 11995 cat >>confdefs.h <<_ACEOF 11996#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) type prot __attribute__(($rb_cv_gcc_function_alias(#name))); 11997_ACEOF 11998 11999 cat >>confdefs.h <<_ACEOF 12000#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args) 12001_ACEOF 12002 12003 fi 12004 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic builtins" >&5 12006$as_echo_n "checking for __atomic builtins... " >&6; } 12007if ${rb_cv_gcc_atomic_builtins+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12012/* end confdefs.h. */ 12013unsigned char atomic_var; 12014int 12015main () 12016{ 12017 12018 __atomic_exchange_n(&atomic_var, 0, __ATOMIC_SEQ_CST); 12019 __atomic_exchange_n(&atomic_var, 1, __ATOMIC_SEQ_CST); 12020 __atomic_fetch_add(&atomic_var, 1, __ATOMIC_SEQ_CST); 12021 __atomic_fetch_sub(&atomic_var, 1, __ATOMIC_SEQ_CST); 12022 12023 ; 12024 return 0; 12025} 12026_ACEOF 12027if ac_fn_c_try_link "$LINENO"; then : 12028 rb_cv_gcc_atomic_builtins=yes 12029else 12030 rb_cv_gcc_atomic_builtins=no 12031fi 12032rm -f core conftest.err conftest.$ac_objext \ 12033 conftest$ac_exeext conftest.$ac_ext 12034fi 12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_atomic_builtins" >&5 12036$as_echo "$rb_cv_gcc_atomic_builtins" >&6; } 12037 if test "$rb_cv_gcc_atomic_builtins" = yes; then 12038 $as_echo "#define HAVE_GCC_ATOMIC_BUILTINS 1" >>confdefs.h 12039 12040 fi 12041 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtins" >&5 12043$as_echo_n "checking for __sync builtins... " >&6; } 12044if ${rb_cv_gcc_sync_builtins+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12049/* end confdefs.h. */ 12050unsigned char atomic_var; 12051int 12052main () 12053{ 12054 12055 __sync_lock_test_and_set(&atomic_var, 0); 12056 __sync_lock_test_and_set(&atomic_var, 1); 12057 __sync_fetch_and_add(&atomic_var, 1); 12058 __sync_fetch_and_sub(&atomic_var, 1); 12059 12060 ; 12061 return 0; 12062} 12063_ACEOF 12064if ac_fn_c_try_link "$LINENO"; then : 12065 rb_cv_gcc_sync_builtins=yes 12066else 12067 rb_cv_gcc_sync_builtins=no 12068fi 12069rm -f core conftest.err conftest.$ac_objext \ 12070 conftest$ac_exeext conftest.$ac_ext 12071fi 12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_sync_builtins" >&5 12073$as_echo "$rb_cv_gcc_sync_builtins" >&6; } 12074 if test "$rb_cv_gcc_sync_builtins" = yes; then 12075 $as_echo "#define HAVE_GCC_SYNC_BUILTINS 1" >>confdefs.h 12076 12077 fi 12078 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 12080$as_echo_n "checking for __builtin_unreachable... " >&6; } 12081if ${rb_cv_func___builtin_unreachable+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 save_CFLAGS="$CFLAGS" 12085CFLAGS="$CFLAGS $rb_cv_warnflags" 12086if test "${ac_c_werror_flag+set}"; then 12087 rb_c_werror_flag="$ac_c_werror_flag" 12088else 12089 unset rb_c_werror_flag 12090fi 12091ac_c_werror_flag=yes 12092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12093/* end confdefs.h. */ 12094#include <stdlib.h> 12095int 12096main () 12097{ 12098exit(0); __builtin_unreachable(); 12099 ; 12100 return 0; 12101} 12102_ACEOF 12103if ac_fn_c_try_link "$LINENO"; then : 12104 rb_cv_func___builtin_unreachable=yes 12105else 12106 rb_cv_func___builtin_unreachable=no 12107fi 12108rm -f core conftest.err conftest.$ac_objext \ 12109 conftest$ac_exeext conftest.$ac_ext 12110 12111CFLAGS="$save_CFLAGS" 12112save_CFLAGS= 12113if test "${rb_c_werror_flag+set}"; then 12114 ac_c_werror_flag="$rb_c_werror_flag" 12115else 12116 unset ac_c_werror_flag 12117fi 12118 12119fi 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___builtin_unreachable" >&5 12121$as_echo "$rb_cv_func___builtin_unreachable" >&6; } 12122 if test "$rb_cv_func___builtin_unreachable" = yes; then 12123 cat >>confdefs.h <<_ACEOF 12124#define UNREACHABLE __builtin_unreachable() 12125_ACEOF 12126 12127 fi 12128fi 12129 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported function attribute" >&5 12131$as_echo_n "checking for exported function attribute... " >&6; } 12132if ${rb_cv_func_exported+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 12136rb_cv_func_exported=no 12137save_CFLAGS="$CFLAGS" 12138CFLAGS="$CFLAGS $rb_cv_warnflags" 12139if test "${ac_c_werror_flag+set}"; then 12140 rb_c_werror_flag="$ac_c_werror_flag" 12141else 12142 unset rb_c_werror_flag 12143fi 12144ac_c_werror_flag=yes 12145 12146for mac in '__attribute__ ((visibility("default")))' '__declspec(dllexport)'; do 12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12148/* end confdefs.h. */ 12149#define RUBY_FUNC_EXPORTED $mac extern 12150 RUBY_FUNC_EXPORTED void conftest_attribute_check(void); 12151int 12152main () 12153{ 12154 12155 ; 12156 return 0; 12157} 12158_ACEOF 12159if ac_fn_c_try_compile "$LINENO"; then : 12160 rb_cv_func_exported="$mac"; break 12161fi 12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12163done 12164 12165CFLAGS="$save_CFLAGS" 12166save_CFLAGS= 12167if test "${rb_c_werror_flag+set}"; then 12168 ac_c_werror_flag="$rb_c_werror_flag" 12169else 12170 unset ac_c_werror_flag 12171fi 12172fi 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_exported" >&5 12174$as_echo "$rb_cv_func_exported" >&6; } 12175if test "$rb_cv_func_exported" != no; then 12176 cat >>confdefs.h <<_ACEOF 12177#define RUBY_FUNC_EXPORTED $rb_cv_func_exported extern 12178_ACEOF 12179 12180fi 12181 12182# RUBY_APPEND_OPTION(XCFLAGS, -DRUBY_EXPORT) 12183 case " ${XCFLAGS-} " in #( 12184 *' -DRUBY_EXPORT '*) : 12185 ;; #( 12186 ' ') : 12187 XCFLAGS="-DRUBY_EXPORT" ;; #( 12188 *) : 12189 XCFLAGS="$XCFLAGS -DRUBY_EXPORT" ;; 12190esac 12191 12192ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "$ac_includes_default 12193#include <errno.h> 12194" 12195if test "x$ac_cv_have_decl_sys_nerr" = xyes; then : 12196 ac_have_decl=1 12197else 12198 ac_have_decl=0 12199fi 12200 12201cat >>confdefs.h <<_ACEOF 12202#define HAVE_DECL_SYS_NERR $ac_have_decl 12203_ACEOF 12204 12205 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12207$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12208if ${ac_cv_lib_crypt_crypt+:} false; then : 12209 $as_echo_n "(cached) " >&6 12210else 12211 ac_check_lib_save_LIBS=$LIBS 12212LIBS="-lcrypt $LIBS" 12213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12214/* end confdefs.h. */ 12215 12216/* Override any GCC internal prototype to avoid an error. 12217 Use char because int might match the return type of a GCC 12218 builtin and then its argument prototype would still apply. */ 12219#ifdef __cplusplus 12220extern "C" 12221#endif 12222char crypt (); 12223int 12224main () 12225{ 12226return crypt (); 12227 ; 12228 return 0; 12229} 12230_ACEOF 12231if ac_fn_c_try_link "$LINENO"; then : 12232 ac_cv_lib_crypt_crypt=yes 12233else 12234 ac_cv_lib_crypt_crypt=no 12235fi 12236rm -f core conftest.err conftest.$ac_objext \ 12237 conftest$ac_exeext conftest.$ac_ext 12238LIBS=$ac_check_lib_save_LIBS 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12241$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12242if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12243 cat >>confdefs.h <<_ACEOF 12244#define HAVE_LIBCRYPT 1 12245_ACEOF 12246 12247 LIBS="-lcrypt $LIBS" 12248 12249fi 12250 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12252$as_echo_n "checking for dlopen in -ldl... " >&6; } 12253if ${ac_cv_lib_dl_dlopen+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 ac_check_lib_save_LIBS=$LIBS 12257LIBS="-ldl $LIBS" 12258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259/* end confdefs.h. */ 12260 12261/* Override any GCC internal prototype to avoid an error. 12262 Use char because int might match the return type of a GCC 12263 builtin and then its argument prototype would still apply. */ 12264#ifdef __cplusplus 12265extern "C" 12266#endif 12267char dlopen (); 12268int 12269main () 12270{ 12271return dlopen (); 12272 ; 12273 return 0; 12274} 12275_ACEOF 12276if ac_fn_c_try_link "$LINENO"; then : 12277 ac_cv_lib_dl_dlopen=yes 12278else 12279 ac_cv_lib_dl_dlopen=no 12280fi 12281rm -f core conftest.err conftest.$ac_objext \ 12282 conftest$ac_exeext conftest.$ac_ext 12283LIBS=$ac_check_lib_save_LIBS 12284fi 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12286$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12287if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12288 cat >>confdefs.h <<_ACEOF 12289#define HAVE_LIBDL 1 12290_ACEOF 12291 12292 LIBS="-ldl $LIBS" 12293 12294fi 12295 # Dynamic linking for SunOS/Solaris and SYSV 12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12297$as_echo_n "checking for shl_load in -ldld... " >&6; } 12298if ${ac_cv_lib_dld_shl_load+:} false; then : 12299 $as_echo_n "(cached) " >&6 12300else 12301 ac_check_lib_save_LIBS=$LIBS 12302LIBS="-ldld $LIBS" 12303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12304/* end confdefs.h. */ 12305 12306/* Override any GCC internal prototype to avoid an error. 12307 Use char because int might match the return type of a GCC 12308 builtin and then its argument prototype would still apply. */ 12309#ifdef __cplusplus 12310extern "C" 12311#endif 12312char shl_load (); 12313int 12314main () 12315{ 12316return shl_load (); 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321if ac_fn_c_try_link "$LINENO"; then : 12322 ac_cv_lib_dld_shl_load=yes 12323else 12324 ac_cv_lib_dld_shl_load=no 12325fi 12326rm -f core conftest.err conftest.$ac_objext \ 12327 conftest$ac_exeext conftest.$ac_ext 12328LIBS=$ac_check_lib_save_LIBS 12329fi 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12331$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12332if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12333 cat >>confdefs.h <<_ACEOF 12334#define HAVE_LIBDLD 1 12335_ACEOF 12336 12337 LIBS="-ldld $LIBS" 12338 12339fi 12340 # Dynamic linking for HP-UX 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 12342$as_echo_n "checking for socketpair in -lsocket... " >&6; } 12343if ${ac_cv_lib_socket_socketpair+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 ac_check_lib_save_LIBS=$LIBS 12347LIBS="-lsocket $LIBS" 12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350 12351/* Override any GCC internal prototype to avoid an error. 12352 Use char because int might match the return type of a GCC 12353 builtin and then its argument prototype would still apply. */ 12354#ifdef __cplusplus 12355extern "C" 12356#endif 12357char socketpair (); 12358int 12359main () 12360{ 12361return socketpair (); 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_link "$LINENO"; then : 12367 ac_cv_lib_socket_socketpair=yes 12368else 12369 ac_cv_lib_socket_socketpair=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext \ 12372 conftest$ac_exeext conftest.$ac_ext 12373LIBS=$ac_check_lib_save_LIBS 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 12376$as_echo "$ac_cv_lib_socket_socketpair" >&6; } 12377if test "x$ac_cv_lib_socket_socketpair" = xyes; then : 12378 cat >>confdefs.h <<_ACEOF 12379#define HAVE_LIBSOCKET 1 12380_ACEOF 12381 12382 LIBS="-lsocket $LIBS" 12383 12384fi 12385 # SunOS/Solaris 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 12387$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 12388if ${ac_cv_lib_rt_clock_gettime+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 ac_check_lib_save_LIBS=$LIBS 12392LIBS="-lrt $LIBS" 12393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395 12396/* Override any GCC internal prototype to avoid an error. 12397 Use char because int might match the return type of a GCC 12398 builtin and then its argument prototype would still apply. */ 12399#ifdef __cplusplus 12400extern "C" 12401#endif 12402char clock_gettime (); 12403int 12404main () 12405{ 12406return clock_gettime (); 12407 ; 12408 return 0; 12409} 12410_ACEOF 12411if ac_fn_c_try_link "$LINENO"; then : 12412 ac_cv_lib_rt_clock_gettime=yes 12413else 12414 ac_cv_lib_rt_clock_gettime=no 12415fi 12416rm -f core conftest.err conftest.$ac_objext \ 12417 conftest$ac_exeext conftest.$ac_ext 12418LIBS=$ac_check_lib_save_LIBS 12419fi 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 12421$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 12422if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 12423 cat >>confdefs.h <<_ACEOF 12424#define HAVE_LIBRT 1 12425_ACEOF 12426 12427 LIBS="-lrt $LIBS" 12428 12429fi 12430 # GNU/Linux 12431 12432case "$target_cpu" in #( 12433 alpha*|sh4|sh4el|sh4eb) : 12434 case "$target_os"::"$GCC" in #( 12435 *::yes) : 12436 # gcc 12437 CFLAGS="-mieee $CFLAGS" ;; #( 12438 osf*) : 12439 # ccc 12440 CFLAGS="-ieee $CFLAGS" ;; #( 12441 *) : 12442 ;; 12443esac ;; #( 12444 sparc*) : 12445 case " $LIBOBJS " in 12446 *" sparc.$ac_objext "* ) ;; 12447 *) LIBOBJS="$LIBOBJS sparc.$ac_objext" 12448 ;; 12449esac 12450 ;; #( 12451 *) : 12452 ;; 12453esac 12454 12455ac_cv_header_net_socket_h=${ac_cv_header_net_socket_h=no} 12456if test "$ac_cv_header_net_socket_h" = yes; then 12457 ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=no} 12458else 12459 ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=yes} 12460fi 12461 12462 12463ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12464if test "x$ac_cv_type_size_t" = xyes; then : 12465 12466else 12467 12468cat >>confdefs.h <<_ACEOF 12469#define size_t unsigned int 12470_ACEOF 12471 12472fi 12473 12474if test "$universal_binary" = yes; then 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 12476$as_echo_n "checking size of size_t... " >&6; } 12477if ${ac_cv_sizeof_size_t+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479else 12480 12481 unset ac_cv_sizeof_size_t 12482 rbcv_var=" 12483typedef size_t ac__type_sizeof_; 12484static ac__type_sizeof_ *rbcv_ptr; 12485#define SIZEOF_SIZE_T sizeof((*rbcv_ptr)) 12486" 12487 test -z "${ac_cv_sizeof_size_t+set}" && { 12488 for t in int long void*; do 12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12490/* end confdefs.h. */ 12491#include <sys/types.h> 12492 $rbcv_var 12493 12494int 12495main () 12496{ 12497static int test_array [1 - 2 * !(SIZEOF_SIZE_T == sizeof($t))]; 12498test_array [0] = 0; 12499return test_array [0]; 12500 12501 ; 12502 return 0; 12503} 12504_ACEOF 12505if ac_fn_c_try_compile "$LINENO"; then : 12506 12507 ac_cv_sizeof_size_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 12508 break 12509fi 12510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12511 done 12512 } 12513 unset cond 12514 12515 test "${ac_cv_sizeof_size_t#SIZEOF_}" = "${ac_cv_sizeof_size_t}" && { 12516 test "$universal_binary" = yes && cross_compiling=yes 12517 if ac_fn_c_compute_int "$LINENO" "SIZEOF_SIZE_T" "t" "#include <sys/types.h> 12518 12519${cond+$cond 12520#else} 12521$rbcv_var 12522${cond+#endif} 12523#ifndef SIZEOF_SIZE_T 12524#define SIZEOF_SIZE_T 0 12525#endif"; then : 12526 12527else 12528 t=0 12529fi 12530 12531 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 12532 if test ${t-0} != 0; then 12533 ac_cv_sizeof_size_t="${ac_cv_sizeof_size_t+${ac_cv_sizeof_size_t-} }${t}" 12534 fi 12535 } 12536 : ${ac_cv_sizeof_size_t=0} 12537 12538fi 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 12540$as_echo "$ac_cv_sizeof_size_t" >&6; } 12541{ 12542 unset cond 12543 for t in ${ac_cv_sizeof_size_t-}; do 12544 case "$t" in #( 12545 [0-9]*|SIZEOF_*) : 12546 12547 ${cond+echo "#else"} 12548 echo "#define SIZEOF_SIZE_T $t" 12549 break 12550 ;; #( 12551 *) : 12552 12553 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 12554 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 12555 echo "#define SIZEOF_SIZE_T $[s / rb_cv_char_bit]" 12556 cond=1 12557 ;; 12558esac 12559 done 12560 ${cond+echo "#endif"} 12561} >> confdefs.h 12562else 12563# The cast to long int works around a bug in the HP C Compiler 12564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12566# This bug is HP SR number 8606223364. 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 12568$as_echo_n "checking size of size_t... " >&6; } 12569if ${ac_cv_sizeof_size_t+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571else 12572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "#include <sys/types.h> 12573"; then : 12574 12575else 12576 if test "$ac_cv_type_size_t" = yes; then 12577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12579as_fn_error 77 "cannot compute sizeof (size_t) 12580See \`config.log' for more details" "$LINENO" 5; } 12581 else 12582 ac_cv_sizeof_size_t=0 12583 fi 12584fi 12585 12586fi 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 12588$as_echo "$ac_cv_sizeof_size_t" >&6; } 12589 12590 12591 12592cat >>confdefs.h <<_ACEOF 12593#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 12594_ACEOF 12595 12596 12597fi 12598 12599if test "$universal_binary" = yes; then 12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 12601$as_echo_n "checking size of ptrdiff_t... " >&6; } 12602if ${ac_cv_sizeof_ptrdiff_t+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 12606 unset ac_cv_sizeof_ptrdiff_t 12607 rbcv_var=" 12608typedef ptrdiff_t ac__type_sizeof_; 12609static ac__type_sizeof_ *rbcv_ptr; 12610#define SIZEOF_PTRDIFF_T sizeof((*rbcv_ptr)) 12611" 12612 test -z "${ac_cv_sizeof_ptrdiff_t+set}" && { 12613 for t in size_t; do 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616#include <stddef.h> 12617 $rbcv_var 12618 12619int 12620main () 12621{ 12622static int test_array [1 - 2 * !(SIZEOF_PTRDIFF_T == sizeof($t))]; 12623test_array [0] = 0; 12624return test_array [0]; 12625 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630if ac_fn_c_try_compile "$LINENO"; then : 12631 12632 ac_cv_sizeof_ptrdiff_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 12633 break 12634fi 12635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12636 done 12637 } 12638 unset cond 12639 12640 test "${ac_cv_sizeof_ptrdiff_t#SIZEOF_}" = "${ac_cv_sizeof_ptrdiff_t}" && { 12641 test "$universal_binary" = yes && cross_compiling=yes 12642 if ac_fn_c_compute_int "$LINENO" "SIZEOF_PTRDIFF_T" "t" "#include <stddef.h> 12643 12644${cond+$cond 12645#else} 12646$rbcv_var 12647${cond+#endif} 12648#ifndef SIZEOF_PTRDIFF_T 12649#define SIZEOF_PTRDIFF_T 0 12650#endif"; then : 12651 12652else 12653 t=0 12654fi 12655 12656 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 12657 if test ${t-0} != 0; then 12658 ac_cv_sizeof_ptrdiff_t="${ac_cv_sizeof_ptrdiff_t+${ac_cv_sizeof_ptrdiff_t-} }${t}" 12659 fi 12660 } 12661 : ${ac_cv_sizeof_ptrdiff_t=0} 12662 12663fi 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 12665$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 12666{ 12667 unset cond 12668 for t in ${ac_cv_sizeof_ptrdiff_t-}; do 12669 case "$t" in #( 12670 [0-9]*|SIZEOF_*) : 12671 12672 ${cond+echo "#else"} 12673 echo "#define SIZEOF_PTRDIFF_T $t" 12674 break 12675 ;; #( 12676 *) : 12677 12678 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 12679 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 12680 echo "#define SIZEOF_PTRDIFF_T $[s / rb_cv_char_bit]" 12681 cond=1 12682 ;; 12683esac 12684 done 12685 ${cond+echo "#endif"} 12686} >> confdefs.h 12687else 12688# The cast to long int works around a bug in the HP C Compiler 12689# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12690# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12691# This bug is HP SR number 8606223364. 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 12693$as_echo_n "checking size of ptrdiff_t... " >&6; } 12694if ${ac_cv_sizeof_ptrdiff_t+:} false; then : 12695 $as_echo_n "(cached) " >&6 12696else 12697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "#include <stddef.h> 12698"; then : 12699 12700else 12701 if test "$ac_cv_type_ptrdiff_t" = yes; then 12702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12704as_fn_error 77 "cannot compute sizeof (ptrdiff_t) 12705See \`config.log' for more details" "$LINENO" 5; } 12706 else 12707 ac_cv_sizeof_ptrdiff_t=0 12708 fi 12709fi 12710 12711fi 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 12713$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } 12714 12715 12716 12717cat >>confdefs.h <<_ACEOF 12718#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t 12719_ACEOF 12720 12721 12722fi 12723 12724 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf prefix for size_t" >&5 12726$as_echo_n "checking for printf prefix for size_t... " >&6; } 12727if ${rb_cv_pri_prefix_size_t+:} false; then : 12728 $as_echo_n "(cached) " >&6 12729else 12730 12731 rb_cv_pri_prefix_size_t=NONE 12732 save_CFLAGS="$CFLAGS" 12733CFLAGS="$CFLAGS $rb_cv_warnflags" 12734if test "${ac_c_werror_flag+set}"; then 12735 rb_c_werror_flag="$ac_c_werror_flag" 12736else 12737 unset rb_c_werror_flag 12738fi 12739ac_c_werror_flag=yes 12740for pri in z; do 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743#include <stdio.h> 12744 #include <stddef.h> 12745 #ifdef __GNUC__ 12746 #define PRINTF_ARGS(decl, string_index, first_to_check) \ 12747 decl __attribute__((format(printf, string_index, first_to_check))) 12748 #else 12749 #define PRINTF_ARGS(decl, string_index, first_to_check) decl 12750 #endif 12751 PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); 12752int 12753main () 12754{ 12755printf("%${pri}d", (size_t)42); 12756 test_sprintf("%${pri}d", (size_t)42); 12757 ; 12758 return 0; 12759} 12760_ACEOF 12761if ac_fn_c_try_compile "$LINENO"; then : 12762 rb_cv_pri_prefix_size_t=$pri; break 12763fi 12764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12765 done 12766CFLAGS="$save_CFLAGS" 12767save_CFLAGS= 12768if test "${rb_c_werror_flag+set}"; then 12769 ac_c_werror_flag="$rb_c_werror_flag" 12770else 12771 unset ac_c_werror_flag 12772fi 12773fi 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_size_t" >&5 12775$as_echo "$rb_cv_pri_prefix_size_t" >&6; } 12776if test "$rb_cv_pri_prefix_size_t" != NONE; then 12777 cat >>confdefs.h <<_ACEOF 12778#define PRI_SIZE_PREFIX "$rb_cv_pri_prefix_size_t" 12779_ACEOF 12780 12781fi 12782 12783 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf prefix for ptrdiff_t" >&5 12785$as_echo_n "checking for printf prefix for ptrdiff_t... " >&6; } 12786if ${rb_cv_pri_prefix_ptrdiff_t+:} false; then : 12787 $as_echo_n "(cached) " >&6 12788else 12789 12790 rb_cv_pri_prefix_ptrdiff_t=NONE 12791 save_CFLAGS="$CFLAGS" 12792CFLAGS="$CFLAGS $rb_cv_warnflags" 12793if test "${ac_c_werror_flag+set}"; then 12794 rb_c_werror_flag="$ac_c_werror_flag" 12795else 12796 unset rb_c_werror_flag 12797fi 12798ac_c_werror_flag=yes 12799for pri in t; do 12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12801/* end confdefs.h. */ 12802#include <stdio.h> 12803 #include <stddef.h> 12804 #ifdef __GNUC__ 12805 #define PRINTF_ARGS(decl, string_index, first_to_check) \ 12806 decl __attribute__((format(printf, string_index, first_to_check))) 12807 #else 12808 #define PRINTF_ARGS(decl, string_index, first_to_check) decl 12809 #endif 12810 PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); 12811int 12812main () 12813{ 12814printf("%${pri}d", (ptrdiff_t)42); 12815 test_sprintf("%${pri}d", (ptrdiff_t)42); 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820if ac_fn_c_try_compile "$LINENO"; then : 12821 rb_cv_pri_prefix_ptrdiff_t=$pri; break 12822fi 12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12824 done 12825CFLAGS="$save_CFLAGS" 12826save_CFLAGS= 12827if test "${rb_c_werror_flag+set}"; then 12828 ac_c_werror_flag="$rb_c_werror_flag" 12829else 12830 unset ac_c_werror_flag 12831fi 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_ptrdiff_t" >&5 12834$as_echo "$rb_cv_pri_prefix_ptrdiff_t" >&6; } 12835if test "$rb_cv_pri_prefix_ptrdiff_t" != NONE; then 12836 cat >>confdefs.h <<_ACEOF 12837#define PRI_PTRDIFF_PREFIX "$rb_cv_pri_prefix_ptrdiff_t" 12838_ACEOF 12839 12840fi 12841 12842ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 12843if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 12844 12845cat >>confdefs.h <<_ACEOF 12846#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 12847_ACEOF 12848 12849 12850$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12851 12852fi 12853 12854 12855ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 12856if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 12857 12858cat >>confdefs.h <<_ACEOF 12859#define HAVE_STRUCT_STAT_ST_BLOCKS 1 12860_ACEOF 12861 12862 12863$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h 12864 12865else 12866 case " $LIBOBJS " in 12867 *" fileblocks.$ac_objext "* ) ;; 12868 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" 12869 ;; 12870esac 12871 12872fi 12873 12874 12875ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12876if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12877 12878cat >>confdefs.h <<_ACEOF 12879#define HAVE_STRUCT_STAT_ST_RDEV 1 12880_ACEOF 12881 12882 12883$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h 12884 12885fi 12886 12887 12888 12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_size" >&5 12890$as_echo_n "checking size of struct stat.st_size... " >&6; } 12891if ${ac_cv_sizeof_struct_stat_st_size+:} false; then : 12892 $as_echo_n "(cached) " >&6 12893else 12894 12895 unset ac_cv_sizeof_struct_stat_st_size 12896 rbcv_var=" 12897typedef struct stat ac__type_sizeof_; 12898static ac__type_sizeof_ *rbcv_ptr; 12899#define SIZEOF_STRUCT_STAT_ST_SIZE sizeof((*rbcv_ptr).st_size) 12900" 12901 test -z "${ac_cv_sizeof_struct_stat_st_size+set}" && { 12902 for t in int long "long long"; do 12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905#include <sys/stat.h> 12906 $rbcv_var 12907 12908int 12909main () 12910{ 12911static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_SIZE == sizeof($t))]; 12912test_array [0] = 0; 12913return test_array [0]; 12914 12915 ; 12916 return 0; 12917} 12918_ACEOF 12919if ac_fn_c_try_compile "$LINENO"; then : 12920 12921 ac_cv_sizeof_struct_stat_st_size=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 12922 break 12923fi 12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12925 done 12926 } 12927 unset cond 12928 12929 test "${ac_cv_sizeof_struct_stat_st_size#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_size}" && { 12930 test "$universal_binary" = yes && cross_compiling=yes 12931 if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_SIZE" "t" "#include <sys/stat.h> 12932 12933${cond+$cond 12934#else} 12935$rbcv_var 12936${cond+#endif} 12937#ifndef SIZEOF_STRUCT_STAT_ST_SIZE 12938#define SIZEOF_STRUCT_STAT_ST_SIZE 0 12939#endif"; then : 12940 12941else 12942 t=0 12943fi 12944 12945 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 12946 if test ${t-0} != 0; then 12947 ac_cv_sizeof_struct_stat_st_size="${ac_cv_sizeof_struct_stat_st_size+${ac_cv_sizeof_struct_stat_st_size-} }${t}" 12948 fi 12949 } 12950 : ${ac_cv_sizeof_struct_stat_st_size=0} 12951 12952fi 12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_size" >&5 12954$as_echo "$ac_cv_sizeof_struct_stat_st_size" >&6; } 12955{ 12956 unset cond 12957 for t in ${ac_cv_sizeof_struct_stat_st_size-}; do 12958 case "$t" in #( 12959 [0-9]*|SIZEOF_*) : 12960 12961 ${cond+echo "#else"} 12962 echo "#define SIZEOF_STRUCT_STAT_ST_SIZE $t" 12963 break 12964 ;; #( 12965 *) : 12966 12967 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 12968 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 12969 echo "#define SIZEOF_STRUCT_STAT_ST_SIZE $[s / rb_cv_char_bit]" 12970 cond=1 12971 ;; 12972esac 12973 done 12974 ${cond+echo "#endif"} 12975} >> confdefs.h 12976 12977 12978if test "$ac_cv_member_struct_stat_st_blocks" = yes; then 12979 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_blocks" >&5 12981$as_echo_n "checking size of struct stat.st_blocks... " >&6; } 12982if ${ac_cv_sizeof_struct_stat_st_blocks+:} false; then : 12983 $as_echo_n "(cached) " >&6 12984else 12985 12986 unset ac_cv_sizeof_struct_stat_st_blocks 12987 rbcv_var=" 12988typedef struct stat ac__type_sizeof_; 12989static ac__type_sizeof_ *rbcv_ptr; 12990#define SIZEOF_STRUCT_STAT_ST_BLOCKS sizeof((*rbcv_ptr).st_blocks) 12991" 12992 test -z "${ac_cv_sizeof_struct_stat_st_blocks+set}" && { 12993 for t in int long "long long"; do 12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12995/* end confdefs.h. */ 12996#include <sys/stat.h> 12997 $rbcv_var 12998 12999int 13000main () 13001{ 13002static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_BLOCKS == sizeof($t))]; 13003test_array [0] = 0; 13004return test_array [0]; 13005 13006 ; 13007 return 0; 13008} 13009_ACEOF 13010if ac_fn_c_try_compile "$LINENO"; then : 13011 13012 ac_cv_sizeof_struct_stat_st_blocks=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 13013 break 13014fi 13015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13016 done 13017 } 13018 unset cond 13019 13020 test "${ac_cv_sizeof_struct_stat_st_blocks#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_blocks}" && { 13021 test "$universal_binary" = yes && cross_compiling=yes 13022 if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_BLOCKS" "t" "#include <sys/stat.h> 13023 13024${cond+$cond 13025#else} 13026$rbcv_var 13027${cond+#endif} 13028#ifndef SIZEOF_STRUCT_STAT_ST_BLOCKS 13029#define SIZEOF_STRUCT_STAT_ST_BLOCKS 0 13030#endif"; then : 13031 13032else 13033 t=0 13034fi 13035 13036 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 13037 if test ${t-0} != 0; then 13038 ac_cv_sizeof_struct_stat_st_blocks="${ac_cv_sizeof_struct_stat_st_blocks+${ac_cv_sizeof_struct_stat_st_blocks-} }${t}" 13039 fi 13040 } 13041 : ${ac_cv_sizeof_struct_stat_st_blocks=0} 13042 13043fi 13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_blocks" >&5 13045$as_echo "$ac_cv_sizeof_struct_stat_st_blocks" >&6; } 13046{ 13047 unset cond 13048 for t in ${ac_cv_sizeof_struct_stat_st_blocks-}; do 13049 case "$t" in #( 13050 [0-9]*|SIZEOF_*) : 13051 13052 ${cond+echo "#else"} 13053 echo "#define SIZEOF_STRUCT_STAT_ST_BLOCKS $t" 13054 break 13055 ;; #( 13056 *) : 13057 13058 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 13059 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 13060 echo "#define SIZEOF_STRUCT_STAT_ST_BLOCKS $[s / rb_cv_char_bit]" 13061 cond=1 13062 ;; 13063esac 13064 done 13065 ${cond+echo "#endif"} 13066} >> confdefs.h 13067 13068 13069fi 13070ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" 13071if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : 13072 13073cat >>confdefs.h <<_ACEOF 13074#define HAVE_STRUCT_STAT_ST_ATIM 1 13075_ACEOF 13076 13077 13078fi 13079 13080ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default" 13081if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then : 13082 13083cat >>confdefs.h <<_ACEOF 13084#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1 13085_ACEOF 13086 13087 13088fi 13089 13090ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default" 13091if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : 13092 13093cat >>confdefs.h <<_ACEOF 13094#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 13095_ACEOF 13096 13097 13098fi 13099 13100ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 13101if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 13102 13103cat >>confdefs.h <<_ACEOF 13104#define HAVE_STRUCT_STAT_ST_MTIM 1 13105_ACEOF 13106 13107 13108fi 13109 13110ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" 13111if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 13112 13113cat >>confdefs.h <<_ACEOF 13114#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 13115_ACEOF 13116 13117 13118fi 13119 13120ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" 13121if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 13122 13123cat >>confdefs.h <<_ACEOF 13124#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 13125_ACEOF 13126 13127 13128fi 13129 13130ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" 13131if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then : 13132 13133cat >>confdefs.h <<_ACEOF 13134#define HAVE_STRUCT_STAT_ST_CTIM 1 13135_ACEOF 13136 13137 13138fi 13139 13140ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default" 13141if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then : 13142 13143cat >>confdefs.h <<_ACEOF 13144#define HAVE_STRUCT_STAT_ST_CTIMESPEC 1 13145_ACEOF 13146 13147 13148fi 13149 13150ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default" 13151if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then : 13152 13153cat >>confdefs.h <<_ACEOF 13154#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1 13155_ACEOF 13156 13157 13158fi 13159 13160 13161ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "#ifdef HAVE_TIME_H 13162#include <time.h> 13163#endif 13164#ifdef HAVE_SYS_TIME_H 13165#include <sys/time.h> 13166#endif 13167" 13168if test "x$ac_cv_type_struct_timeval" = xyes; then : 13169 13170cat >>confdefs.h <<_ACEOF 13171#define HAVE_STRUCT_TIMEVAL 1 13172_ACEOF 13173 13174 13175fi 13176 13177 13178ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H 13179#include <time.h> 13180#endif 13181#ifdef HAVE_SYS_TIME_H 13182#include <sys/time.h> 13183#endif 13184" 13185if test "x$ac_cv_type_struct_timespec" = xyes; then : 13186 13187cat >>confdefs.h <<_ACEOF 13188#define HAVE_STRUCT_TIMESPEC 1 13189_ACEOF 13190 13191 13192fi 13193 13194 13195ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "#ifdef HAVE_TIME_H 13196# include <time.h> 13197#endif 13198#ifdef HAVE_SYS_TIME_H 13199# include <sys/time.h> 13200#endif 13201" 13202if test "x$ac_cv_type_struct_timezone" = xyes; then : 13203 13204cat >>confdefs.h <<_ACEOF 13205#define HAVE_STRUCT_TIMEZONE 1 13206_ACEOF 13207 13208 13209fi 13210 13211 13212ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "#ifdef HAVE_TIME_H 13213# include <time.h> 13214#endif 13215#ifdef HAVE_SYS_TIME_H 13216# include <sys/time.h> 13217#endif 13218" 13219if test "x$ac_cv_type_clockid_t" = xyes; then : 13220 13221cat >>confdefs.h <<_ACEOF 13222#define HAVE_CLOCKID_T 1 13223_ACEOF 13224 13225 13226fi 13227 13228 13229if ${rb_cv_large_fd_select+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "$ac_includes_default" 13233if test "x$ac_cv_type_fd_mask" = xyes; then : 13234 rb_cv_large_fd_select=yes 13235else 13236 rb_cv_large_fd_select=no 13237fi 13238 13239fi 13240 13241if test "$rb_cv_large_fd_select" = yes; then 13242 $as_echo "#define HAVE_RB_FD_INIT 1" >>confdefs.h 13243 13244fi 13245 13246 13247 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 13249$as_echo_n "checking for int8_t... " >&6; } 13250if ${rb_cv_type_int8_t+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13254/* end confdefs.h. */ 13255$ac_includes_default 13256typedef int8_t t; int s = sizeof(t) == 42; 13257int 13258main () 13259{ 13260 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_compile "$LINENO"; then : 13266 rb_cv_type_int8_t=yes 13267else 13268 case 1 in #( 13269 "1") : 13270 rb_cv_type_int8_t="signed char" ;; #( 13271 "$ac_cv_sizeof_short") : 13272 rb_cv_type_int8_t="short" ;; #( 13273 "$ac_cv_sizeof_int") : 13274 rb_cv_type_int8_t="int" ;; #( 13275 "$ac_cv_sizeof_long") : 13276 rb_cv_type_int8_t="long" ;; #( 13277 "$ac_cv_sizeof_long_long") : 13278 rb_cv_type_int8_t="long long" ;; #( 13279 "$ac_cv_sizeof___int64") : 13280 rb_cv_type_int8_t="__int64" ;; #( 13281 *) : 13282 rb_cv_type_int8_t=no ;; 13283esac 13284fi 13285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13286fi 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int8_t" >&5 13288$as_echo "$rb_cv_type_int8_t" >&6; } 13289if test "${rb_cv_type_int8_t}" != no; then 13290 $as_echo "#define HAVE_INT8_T 1" >>confdefs.h 13291 13292 if test "${rb_cv_type_int8_t}" = yes; then 13293 # The cast to long int works around a bug in the HP C Compiler 13294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13296# This bug is HP SR number 8606223364. 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int8_t" >&5 13298$as_echo_n "checking size of int8_t... " >&6; } 13299if ${ac_cv_sizeof_int8_t+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default 13303"; then : 13304 13305else 13306 if test "$ac_cv_type_int8_t" = yes; then 13307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13309as_fn_error 77 "cannot compute sizeof (int8_t) 13310See \`config.log' for more details" "$LINENO" 5; } 13311 else 13312 ac_cv_sizeof_int8_t=0 13313 fi 13314fi 13315 13316fi 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int8_t" >&5 13318$as_echo "$ac_cv_sizeof_int8_t" >&6; } 13319 13320 13321 13322cat >>confdefs.h <<_ACEOF 13323#define SIZEOF_INT8_T $ac_cv_sizeof_int8_t 13324_ACEOF 13325 13326 13327 else 13328 cat >>confdefs.h <<_ACEOF 13329#define int8_t $rb_cv_type_int8_t 13330_ACEOF 13331 13332 cat >>confdefs.h <<_ACEOF 13333#define SIZEOF_INT8_T SIZEOF_`$as_echo "$rb_cv_type_int8_t" | $as_tr_cpp` 13334_ACEOF 13335 13336 fi 13337fi 13338 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 13340$as_echo_n "checking for uint8_t... " >&6; } 13341if ${rb_cv_type_uint8_t+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346$ac_includes_default 13347typedef uint8_t t; int s = sizeof(t) == 42; 13348int 13349main () 13350{ 13351 13352 ; 13353 return 0; 13354} 13355_ACEOF 13356if ac_fn_c_try_compile "$LINENO"; then : 13357 rb_cv_type_uint8_t=yes 13358else 13359 case 1 in #( 13360 "1") : 13361 rb_cv_type_uint8_t="unsigned char" ;; #( 13362 "$ac_cv_sizeof_short") : 13363 rb_cv_type_uint8_t="unsigned short" ;; #( 13364 "$ac_cv_sizeof_int") : 13365 rb_cv_type_uint8_t="unsigned int" ;; #( 13366 "$ac_cv_sizeof_long") : 13367 rb_cv_type_uint8_t="unsigned long" ;; #( 13368 "$ac_cv_sizeof_long_long") : 13369 rb_cv_type_uint8_t="unsigned long long" ;; #( 13370 "$ac_cv_sizeof___int64") : 13371 rb_cv_type_uint8_t="unsigned __int64" ;; #( 13372 *) : 13373 rb_cv_type_uint8_t=no ;; 13374esac 13375fi 13376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13377fi 13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint8_t" >&5 13379$as_echo "$rb_cv_type_uint8_t" >&6; } 13380if test "${rb_cv_type_uint8_t}" != no; then 13381 $as_echo "#define HAVE_UINT8_T 1" >>confdefs.h 13382 13383 if test "${rb_cv_type_uint8_t}" = yes; then 13384 # The cast to long int works around a bug in the HP C Compiler 13385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13387# This bug is HP SR number 8606223364. 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint8_t" >&5 13389$as_echo_n "checking size of uint8_t... " >&6; } 13390if ${ac_cv_sizeof_uint8_t+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default 13394"; then : 13395 13396else 13397 if test "$ac_cv_type_uint8_t" = yes; then 13398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13400as_fn_error 77 "cannot compute sizeof (uint8_t) 13401See \`config.log' for more details" "$LINENO" 5; } 13402 else 13403 ac_cv_sizeof_uint8_t=0 13404 fi 13405fi 13406 13407fi 13408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint8_t" >&5 13409$as_echo "$ac_cv_sizeof_uint8_t" >&6; } 13410 13411 13412 13413cat >>confdefs.h <<_ACEOF 13414#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t 13415_ACEOF 13416 13417 13418 else 13419 cat >>confdefs.h <<_ACEOF 13420#define uint8_t $rb_cv_type_uint8_t 13421_ACEOF 13422 13423 cat >>confdefs.h <<_ACEOF 13424#define SIZEOF_UINT8_T SIZEOF_`$as_echo "$rb_cv_type_uint8_t" | $as_tr_cpp` 13425_ACEOF 13426 13427 fi 13428fi 13429 13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 13431$as_echo_n "checking for int16_t... " >&6; } 13432if ${rb_cv_type_int16_t+:} false; then : 13433 $as_echo_n "(cached) " >&6 13434else 13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13436/* end confdefs.h. */ 13437$ac_includes_default 13438typedef int16_t t; int s = sizeof(t) == 42; 13439int 13440main () 13441{ 13442 13443 ; 13444 return 0; 13445} 13446_ACEOF 13447if ac_fn_c_try_compile "$LINENO"; then : 13448 rb_cv_type_int16_t=yes 13449else 13450 case 2 in #( 13451 "1") : 13452 rb_cv_type_int16_t="signed char" ;; #( 13453 "$ac_cv_sizeof_short") : 13454 rb_cv_type_int16_t="short" ;; #( 13455 "$ac_cv_sizeof_int") : 13456 rb_cv_type_int16_t="int" ;; #( 13457 "$ac_cv_sizeof_long") : 13458 rb_cv_type_int16_t="long" ;; #( 13459 "$ac_cv_sizeof_long_long") : 13460 rb_cv_type_int16_t="long long" ;; #( 13461 "$ac_cv_sizeof___int64") : 13462 rb_cv_type_int16_t="__int64" ;; #( 13463 *) : 13464 rb_cv_type_int16_t=no ;; 13465esac 13466fi 13467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13468fi 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int16_t" >&5 13470$as_echo "$rb_cv_type_int16_t" >&6; } 13471if test "${rb_cv_type_int16_t}" != no; then 13472 $as_echo "#define HAVE_INT16_T 1" >>confdefs.h 13473 13474 if test "${rb_cv_type_int16_t}" = yes; then 13475 # The cast to long int works around a bug in the HP C Compiler 13476# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13477# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13478# This bug is HP SR number 8606223364. 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5 13480$as_echo_n "checking size of int16_t... " >&6; } 13481if ${ac_cv_sizeof_int16_t+:} false; then : 13482 $as_echo_n "(cached) " >&6 13483else 13484 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default 13485"; then : 13486 13487else 13488 if test "$ac_cv_type_int16_t" = yes; then 13489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13491as_fn_error 77 "cannot compute sizeof (int16_t) 13492See \`config.log' for more details" "$LINENO" 5; } 13493 else 13494 ac_cv_sizeof_int16_t=0 13495 fi 13496fi 13497 13498fi 13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5 13500$as_echo "$ac_cv_sizeof_int16_t" >&6; } 13501 13502 13503 13504cat >>confdefs.h <<_ACEOF 13505#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t 13506_ACEOF 13507 13508 13509 else 13510 cat >>confdefs.h <<_ACEOF 13511#define int16_t $rb_cv_type_int16_t 13512_ACEOF 13513 13514 cat >>confdefs.h <<_ACEOF 13515#define SIZEOF_INT16_T SIZEOF_`$as_echo "$rb_cv_type_int16_t" | $as_tr_cpp` 13516_ACEOF 13517 13518 fi 13519fi 13520 13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 13522$as_echo_n "checking for uint16_t... " >&6; } 13523if ${rb_cv_type_uint16_t+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528$ac_includes_default 13529typedef uint16_t t; int s = sizeof(t) == 42; 13530int 13531main () 13532{ 13533 13534 ; 13535 return 0; 13536} 13537_ACEOF 13538if ac_fn_c_try_compile "$LINENO"; then : 13539 rb_cv_type_uint16_t=yes 13540else 13541 case 2 in #( 13542 "1") : 13543 rb_cv_type_uint16_t="unsigned char" ;; #( 13544 "$ac_cv_sizeof_short") : 13545 rb_cv_type_uint16_t="unsigned short" ;; #( 13546 "$ac_cv_sizeof_int") : 13547 rb_cv_type_uint16_t="unsigned int" ;; #( 13548 "$ac_cv_sizeof_long") : 13549 rb_cv_type_uint16_t="unsigned long" ;; #( 13550 "$ac_cv_sizeof_long_long") : 13551 rb_cv_type_uint16_t="unsigned long long" ;; #( 13552 "$ac_cv_sizeof___int64") : 13553 rb_cv_type_uint16_t="unsigned __int64" ;; #( 13554 *) : 13555 rb_cv_type_uint16_t=no ;; 13556esac 13557fi 13558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13559fi 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint16_t" >&5 13561$as_echo "$rb_cv_type_uint16_t" >&6; } 13562if test "${rb_cv_type_uint16_t}" != no; then 13563 $as_echo "#define HAVE_UINT16_T 1" >>confdefs.h 13564 13565 if test "${rb_cv_type_uint16_t}" = yes; then 13566 # The cast to long int works around a bug in the HP C Compiler 13567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13569# This bug is HP SR number 8606223364. 13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5 13571$as_echo_n "checking size of uint16_t... " >&6; } 13572if ${ac_cv_sizeof_uint16_t+:} false; then : 13573 $as_echo_n "(cached) " >&6 13574else 13575 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default 13576"; then : 13577 13578else 13579 if test "$ac_cv_type_uint16_t" = yes; then 13580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13582as_fn_error 77 "cannot compute sizeof (uint16_t) 13583See \`config.log' for more details" "$LINENO" 5; } 13584 else 13585 ac_cv_sizeof_uint16_t=0 13586 fi 13587fi 13588 13589fi 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5 13591$as_echo "$ac_cv_sizeof_uint16_t" >&6; } 13592 13593 13594 13595cat >>confdefs.h <<_ACEOF 13596#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t 13597_ACEOF 13598 13599 13600 else 13601 cat >>confdefs.h <<_ACEOF 13602#define uint16_t $rb_cv_type_uint16_t 13603_ACEOF 13604 13605 cat >>confdefs.h <<_ACEOF 13606#define SIZEOF_UINT16_T SIZEOF_`$as_echo "$rb_cv_type_uint16_t" | $as_tr_cpp` 13607_ACEOF 13608 13609 fi 13610fi 13611 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 13613$as_echo_n "checking for int32_t... " >&6; } 13614if ${rb_cv_type_int32_t+:} false; then : 13615 $as_echo_n "(cached) " >&6 13616else 13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13618/* end confdefs.h. */ 13619$ac_includes_default 13620typedef int32_t t; int s = sizeof(t) == 42; 13621int 13622main () 13623{ 13624 13625 ; 13626 return 0; 13627} 13628_ACEOF 13629if ac_fn_c_try_compile "$LINENO"; then : 13630 rb_cv_type_int32_t=yes 13631else 13632 case 4 in #( 13633 "1") : 13634 rb_cv_type_int32_t="signed char" ;; #( 13635 "$ac_cv_sizeof_short") : 13636 rb_cv_type_int32_t="short" ;; #( 13637 "$ac_cv_sizeof_int") : 13638 rb_cv_type_int32_t="int" ;; #( 13639 "$ac_cv_sizeof_long") : 13640 rb_cv_type_int32_t="long" ;; #( 13641 "$ac_cv_sizeof_long_long") : 13642 rb_cv_type_int32_t="long long" ;; #( 13643 "$ac_cv_sizeof___int64") : 13644 rb_cv_type_int32_t="__int64" ;; #( 13645 *) : 13646 rb_cv_type_int32_t=no ;; 13647esac 13648fi 13649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13650fi 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int32_t" >&5 13652$as_echo "$rb_cv_type_int32_t" >&6; } 13653if test "${rb_cv_type_int32_t}" != no; then 13654 $as_echo "#define HAVE_INT32_T 1" >>confdefs.h 13655 13656 if test "${rb_cv_type_int32_t}" = yes; then 13657 # The cast to long int works around a bug in the HP C Compiler 13658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13660# This bug is HP SR number 8606223364. 13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5 13662$as_echo_n "checking size of int32_t... " >&6; } 13663if ${ac_cv_sizeof_int32_t+:} false; then : 13664 $as_echo_n "(cached) " >&6 13665else 13666 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default 13667"; then : 13668 13669else 13670 if test "$ac_cv_type_int32_t" = yes; then 13671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13673as_fn_error 77 "cannot compute sizeof (int32_t) 13674See \`config.log' for more details" "$LINENO" 5; } 13675 else 13676 ac_cv_sizeof_int32_t=0 13677 fi 13678fi 13679 13680fi 13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5 13682$as_echo "$ac_cv_sizeof_int32_t" >&6; } 13683 13684 13685 13686cat >>confdefs.h <<_ACEOF 13687#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t 13688_ACEOF 13689 13690 13691 else 13692 cat >>confdefs.h <<_ACEOF 13693#define int32_t $rb_cv_type_int32_t 13694_ACEOF 13695 13696 cat >>confdefs.h <<_ACEOF 13697#define SIZEOF_INT32_T SIZEOF_`$as_echo "$rb_cv_type_int32_t" | $as_tr_cpp` 13698_ACEOF 13699 13700 fi 13701fi 13702 13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 13704$as_echo_n "checking for uint32_t... " >&6; } 13705if ${rb_cv_type_uint32_t+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710$ac_includes_default 13711typedef uint32_t t; int s = sizeof(t) == 42; 13712int 13713main () 13714{ 13715 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_compile "$LINENO"; then : 13721 rb_cv_type_uint32_t=yes 13722else 13723 case 4 in #( 13724 "1") : 13725 rb_cv_type_uint32_t="unsigned char" ;; #( 13726 "$ac_cv_sizeof_short") : 13727 rb_cv_type_uint32_t="unsigned short" ;; #( 13728 "$ac_cv_sizeof_int") : 13729 rb_cv_type_uint32_t="unsigned int" ;; #( 13730 "$ac_cv_sizeof_long") : 13731 rb_cv_type_uint32_t="unsigned long" ;; #( 13732 "$ac_cv_sizeof_long_long") : 13733 rb_cv_type_uint32_t="unsigned long long" ;; #( 13734 "$ac_cv_sizeof___int64") : 13735 rb_cv_type_uint32_t="unsigned __int64" ;; #( 13736 *) : 13737 rb_cv_type_uint32_t=no ;; 13738esac 13739fi 13740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13741fi 13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint32_t" >&5 13743$as_echo "$rb_cv_type_uint32_t" >&6; } 13744if test "${rb_cv_type_uint32_t}" != no; then 13745 $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h 13746 13747 if test "${rb_cv_type_uint32_t}" = yes; then 13748 # The cast to long int works around a bug in the HP C Compiler 13749# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13750# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13751# This bug is HP SR number 8606223364. 13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5 13753$as_echo_n "checking size of uint32_t... " >&6; } 13754if ${ac_cv_sizeof_uint32_t+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756else 13757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default 13758"; then : 13759 13760else 13761 if test "$ac_cv_type_uint32_t" = yes; then 13762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13764as_fn_error 77 "cannot compute sizeof (uint32_t) 13765See \`config.log' for more details" "$LINENO" 5; } 13766 else 13767 ac_cv_sizeof_uint32_t=0 13768 fi 13769fi 13770 13771fi 13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5 13773$as_echo "$ac_cv_sizeof_uint32_t" >&6; } 13774 13775 13776 13777cat >>confdefs.h <<_ACEOF 13778#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t 13779_ACEOF 13780 13781 13782 else 13783 cat >>confdefs.h <<_ACEOF 13784#define uint32_t $rb_cv_type_uint32_t 13785_ACEOF 13786 13787 cat >>confdefs.h <<_ACEOF 13788#define SIZEOF_UINT32_T SIZEOF_`$as_echo "$rb_cv_type_uint32_t" | $as_tr_cpp` 13789_ACEOF 13790 13791 fi 13792fi 13793 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 13795$as_echo_n "checking for int64_t... " >&6; } 13796if ${rb_cv_type_int64_t+:} false; then : 13797 $as_echo_n "(cached) " >&6 13798else 13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13800/* end confdefs.h. */ 13801$ac_includes_default 13802typedef int64_t t; int s = sizeof(t) == 42; 13803int 13804main () 13805{ 13806 13807 ; 13808 return 0; 13809} 13810_ACEOF 13811if ac_fn_c_try_compile "$LINENO"; then : 13812 rb_cv_type_int64_t=yes 13813else 13814 case 8 in #( 13815 "1") : 13816 rb_cv_type_int64_t="signed char" ;; #( 13817 "$ac_cv_sizeof_short") : 13818 rb_cv_type_int64_t="short" ;; #( 13819 "$ac_cv_sizeof_int") : 13820 rb_cv_type_int64_t="int" ;; #( 13821 "$ac_cv_sizeof_long") : 13822 rb_cv_type_int64_t="long" ;; #( 13823 "$ac_cv_sizeof_long_long") : 13824 rb_cv_type_int64_t="long long" ;; #( 13825 "$ac_cv_sizeof___int64") : 13826 rb_cv_type_int64_t="__int64" ;; #( 13827 *) : 13828 rb_cv_type_int64_t=no ;; 13829esac 13830fi 13831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13832fi 13833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int64_t" >&5 13834$as_echo "$rb_cv_type_int64_t" >&6; } 13835if test "${rb_cv_type_int64_t}" != no; then 13836 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h 13837 13838 if test "${rb_cv_type_int64_t}" = yes; then 13839 # The cast to long int works around a bug in the HP C Compiler 13840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13842# This bug is HP SR number 8606223364. 13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 13844$as_echo_n "checking size of int64_t... " >&6; } 13845if ${ac_cv_sizeof_int64_t+:} false; then : 13846 $as_echo_n "(cached) " >&6 13847else 13848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default 13849"; then : 13850 13851else 13852 if test "$ac_cv_type_int64_t" = yes; then 13853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13855as_fn_error 77 "cannot compute sizeof (int64_t) 13856See \`config.log' for more details" "$LINENO" 5; } 13857 else 13858 ac_cv_sizeof_int64_t=0 13859 fi 13860fi 13861 13862fi 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 13864$as_echo "$ac_cv_sizeof_int64_t" >&6; } 13865 13866 13867 13868cat >>confdefs.h <<_ACEOF 13869#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t 13870_ACEOF 13871 13872 13873 else 13874 cat >>confdefs.h <<_ACEOF 13875#define int64_t $rb_cv_type_int64_t 13876_ACEOF 13877 13878 cat >>confdefs.h <<_ACEOF 13879#define SIZEOF_INT64_T SIZEOF_`$as_echo "$rb_cv_type_int64_t" | $as_tr_cpp` 13880_ACEOF 13881 13882 fi 13883fi 13884 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 13886$as_echo_n "checking for uint64_t... " >&6; } 13887if ${rb_cv_type_uint64_t+:} false; then : 13888 $as_echo_n "(cached) " >&6 13889else 13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13891/* end confdefs.h. */ 13892$ac_includes_default 13893typedef uint64_t t; int s = sizeof(t) == 42; 13894int 13895main () 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_compile "$LINENO"; then : 13903 rb_cv_type_uint64_t=yes 13904else 13905 case 8 in #( 13906 "1") : 13907 rb_cv_type_uint64_t="unsigned char" ;; #( 13908 "$ac_cv_sizeof_short") : 13909 rb_cv_type_uint64_t="unsigned short" ;; #( 13910 "$ac_cv_sizeof_int") : 13911 rb_cv_type_uint64_t="unsigned int" ;; #( 13912 "$ac_cv_sizeof_long") : 13913 rb_cv_type_uint64_t="unsigned long" ;; #( 13914 "$ac_cv_sizeof_long_long") : 13915 rb_cv_type_uint64_t="unsigned long long" ;; #( 13916 "$ac_cv_sizeof___int64") : 13917 rb_cv_type_uint64_t="unsigned __int64" ;; #( 13918 *) : 13919 rb_cv_type_uint64_t=no ;; 13920esac 13921fi 13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13923fi 13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint64_t" >&5 13925$as_echo "$rb_cv_type_uint64_t" >&6; } 13926if test "${rb_cv_type_uint64_t}" != no; then 13927 $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h 13928 13929 if test "${rb_cv_type_uint64_t}" = yes; then 13930 # The cast to long int works around a bug in the HP C Compiler 13931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13933# This bug is HP SR number 8606223364. 13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5 13935$as_echo_n "checking size of uint64_t... " >&6; } 13936if ${ac_cv_sizeof_uint64_t+:} false; then : 13937 $as_echo_n "(cached) " >&6 13938else 13939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default 13940"; then : 13941 13942else 13943 if test "$ac_cv_type_uint64_t" = yes; then 13944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13946as_fn_error 77 "cannot compute sizeof (uint64_t) 13947See \`config.log' for more details" "$LINENO" 5; } 13948 else 13949 ac_cv_sizeof_uint64_t=0 13950 fi 13951fi 13952 13953fi 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5 13955$as_echo "$ac_cv_sizeof_uint64_t" >&6; } 13956 13957 13958 13959cat >>confdefs.h <<_ACEOF 13960#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t 13961_ACEOF 13962 13963 13964 else 13965 cat >>confdefs.h <<_ACEOF 13966#define uint64_t $rb_cv_type_uint64_t 13967_ACEOF 13968 13969 cat >>confdefs.h <<_ACEOF 13970#define SIZEOF_UINT64_T SIZEOF_`$as_echo "$rb_cv_type_uint64_t" | $as_tr_cpp` 13971_ACEOF 13972 13973 fi 13974fi 13975 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int128_t" >&5 13977$as_echo_n "checking for int128_t... " >&6; } 13978if ${rb_cv_type_int128_t+:} false; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983$ac_includes_default 13984typedef int128_t t; int s = sizeof(t) == 42; 13985int 13986main () 13987{ 13988 13989 ; 13990 return 0; 13991} 13992_ACEOF 13993if ac_fn_c_try_compile "$LINENO"; then : 13994 rb_cv_type_int128_t=yes 13995else 13996 case 16 in #( 13997 "1") : 13998 rb_cv_type_int128_t="signed char" ;; #( 13999 "$ac_cv_sizeof_short") : 14000 rb_cv_type_int128_t="short" ;; #( 14001 "$ac_cv_sizeof_int") : 14002 rb_cv_type_int128_t="int" ;; #( 14003 "$ac_cv_sizeof_long") : 14004 rb_cv_type_int128_t="long" ;; #( 14005 "$ac_cv_sizeof_long_long") : 14006 rb_cv_type_int128_t="long long" ;; #( 14007 "$ac_cv_sizeof___int64") : 14008 rb_cv_type_int128_t="__int64" ;; #( 14009 *) : 14010 rb_cv_type_int128_t=no ;; 14011esac 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014fi 14015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int128_t" >&5 14016$as_echo "$rb_cv_type_int128_t" >&6; } 14017if test "${rb_cv_type_int128_t}" != no; then 14018 $as_echo "#define HAVE_INT128_T 1" >>confdefs.h 14019 14020 if test "${rb_cv_type_int128_t}" = yes; then 14021 # The cast to long int works around a bug in the HP C Compiler 14022# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14023# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14024# This bug is HP SR number 8606223364. 14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int128_t" >&5 14026$as_echo_n "checking size of int128_t... " >&6; } 14027if ${ac_cv_sizeof_int128_t+:} false; then : 14028 $as_echo_n "(cached) " >&6 14029else 14030 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int128_t))" "ac_cv_sizeof_int128_t" "$ac_includes_default 14031"; then : 14032 14033else 14034 if test "$ac_cv_type_int128_t" = yes; then 14035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14037as_fn_error 77 "cannot compute sizeof (int128_t) 14038See \`config.log' for more details" "$LINENO" 5; } 14039 else 14040 ac_cv_sizeof_int128_t=0 14041 fi 14042fi 14043 14044fi 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int128_t" >&5 14046$as_echo "$ac_cv_sizeof_int128_t" >&6; } 14047 14048 14049 14050cat >>confdefs.h <<_ACEOF 14051#define SIZEOF_INT128_T $ac_cv_sizeof_int128_t 14052_ACEOF 14053 14054 14055 else 14056 cat >>confdefs.h <<_ACEOF 14057#define int128_t $rb_cv_type_int128_t 14058_ACEOF 14059 14060 cat >>confdefs.h <<_ACEOF 14061#define SIZEOF_INT128_T SIZEOF_`$as_echo "$rb_cv_type_int128_t" | $as_tr_cpp` 14062_ACEOF 14063 14064 fi 14065fi 14066 14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint128_t" >&5 14068$as_echo_n "checking for uint128_t... " >&6; } 14069if ${rb_cv_type_uint128_t+:} false; then : 14070 $as_echo_n "(cached) " >&6 14071else 14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074$ac_includes_default 14075typedef uint128_t t; int s = sizeof(t) == 42; 14076int 14077main () 14078{ 14079 14080 ; 14081 return 0; 14082} 14083_ACEOF 14084if ac_fn_c_try_compile "$LINENO"; then : 14085 rb_cv_type_uint128_t=yes 14086else 14087 case 16 in #( 14088 "1") : 14089 rb_cv_type_uint128_t="unsigned char" ;; #( 14090 "$ac_cv_sizeof_short") : 14091 rb_cv_type_uint128_t="unsigned short" ;; #( 14092 "$ac_cv_sizeof_int") : 14093 rb_cv_type_uint128_t="unsigned int" ;; #( 14094 "$ac_cv_sizeof_long") : 14095 rb_cv_type_uint128_t="unsigned long" ;; #( 14096 "$ac_cv_sizeof_long_long") : 14097 rb_cv_type_uint128_t="unsigned long long" ;; #( 14098 "$ac_cv_sizeof___int64") : 14099 rb_cv_type_uint128_t="unsigned __int64" ;; #( 14100 *) : 14101 rb_cv_type_uint128_t=no ;; 14102esac 14103fi 14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14105fi 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint128_t" >&5 14107$as_echo "$rb_cv_type_uint128_t" >&6; } 14108if test "${rb_cv_type_uint128_t}" != no; then 14109 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h 14110 14111 if test "${rb_cv_type_uint128_t}" = yes; then 14112 # The cast to long int works around a bug in the HP C Compiler 14113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14115# This bug is HP SR number 8606223364. 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint128_t" >&5 14117$as_echo_n "checking size of uint128_t... " >&6; } 14118if ${ac_cv_sizeof_uint128_t+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint128_t))" "ac_cv_sizeof_uint128_t" "$ac_includes_default 14122"; then : 14123 14124else 14125 if test "$ac_cv_type_uint128_t" = yes; then 14126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14128as_fn_error 77 "cannot compute sizeof (uint128_t) 14129See \`config.log' for more details" "$LINENO" 5; } 14130 else 14131 ac_cv_sizeof_uint128_t=0 14132 fi 14133fi 14134 14135fi 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint128_t" >&5 14137$as_echo "$ac_cv_sizeof_uint128_t" >&6; } 14138 14139 14140 14141cat >>confdefs.h <<_ACEOF 14142#define SIZEOF_UINT128_T $ac_cv_sizeof_uint128_t 14143_ACEOF 14144 14145 14146 else 14147 cat >>confdefs.h <<_ACEOF 14148#define uint128_t $rb_cv_type_uint128_t 14149_ACEOF 14150 14151 cat >>confdefs.h <<_ACEOF 14152#define SIZEOF_UINT128_T SIZEOF_`$as_echo "$rb_cv_type_uint128_t" | $as_tr_cpp` 14153_ACEOF 14154 14155 fi 14156fi 14157 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intptr_t" >&5 14159$as_echo_n "checking for intptr_t... " >&6; } 14160if ${rb_cv_type_intptr_t+:} false; then : 14161 $as_echo_n "(cached) " >&6 14162else 14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14164/* end confdefs.h. */ 14165$ac_includes_default 14166typedef intptr_t t; int s = sizeof(t) == 42; 14167int 14168main () 14169{ 14170 14171 ; 14172 return 0; 14173} 14174_ACEOF 14175if ac_fn_c_try_compile "$LINENO"; then : 14176 rb_cv_type_intptr_t=yes 14177else 14178 case $ac_cv_sizeof_voidp in #( 14179 "1") : 14180 rb_cv_type_intptr_t="signed char" ;; #( 14181 "$ac_cv_sizeof_short") : 14182 rb_cv_type_intptr_t="short" ;; #( 14183 "$ac_cv_sizeof_int") : 14184 rb_cv_type_intptr_t="int" ;; #( 14185 "$ac_cv_sizeof_long") : 14186 rb_cv_type_intptr_t="long" ;; #( 14187 "$ac_cv_sizeof_long_long") : 14188 rb_cv_type_intptr_t="long long" ;; #( 14189 "$ac_cv_sizeof___int64") : 14190 rb_cv_type_intptr_t="__int64" ;; #( 14191 *) : 14192 rb_cv_type_intptr_t=no ;; 14193esac 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_intptr_t" >&5 14198$as_echo "$rb_cv_type_intptr_t" >&6; } 14199if test "${rb_cv_type_intptr_t}" != no; then 14200 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 14201 14202 if test "${rb_cv_type_intptr_t}" = yes; then 14203 if test "$universal_binary" = yes; then 14204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5 14205$as_echo_n "checking size of intptr_t... " >&6; } 14206if ${ac_cv_sizeof_intptr_t+:} false; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 14210 unset ac_cv_sizeof_intptr_t 14211 rbcv_var=" 14212typedef intptr_t ac__type_sizeof_; 14213static ac__type_sizeof_ *rbcv_ptr; 14214#define SIZEOF_INTPTR_T sizeof((*rbcv_ptr)) 14215" 14216 test -z "${ac_cv_sizeof_intptr_t+set}" && { 14217 for t in void*; do 14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14219/* end confdefs.h. */ 14220$ac_includes_default 14221 $rbcv_var 14222 14223int 14224main () 14225{ 14226static int test_array [1 - 2 * !(SIZEOF_INTPTR_T == sizeof($t))]; 14227test_array [0] = 0; 14228return test_array [0]; 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234if ac_fn_c_try_compile "$LINENO"; then : 14235 14236 ac_cv_sizeof_intptr_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 14237 break 14238fi 14239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14240 done 14241 } 14242 unset cond 14243 14244 test "${ac_cv_sizeof_intptr_t#SIZEOF_}" = "${ac_cv_sizeof_intptr_t}" && { 14245 test "$universal_binary" = yes && cross_compiling=yes 14246 if ac_fn_c_compute_int "$LINENO" "SIZEOF_INTPTR_T" "t" "$ac_includes_default 14247 14248${cond+$cond 14249#else} 14250$rbcv_var 14251${cond+#endif} 14252#ifndef SIZEOF_INTPTR_T 14253#define SIZEOF_INTPTR_T 0 14254#endif"; then : 14255 14256else 14257 t=0 14258fi 14259 14260 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 14261 if test ${t-0} != 0; then 14262 ac_cv_sizeof_intptr_t="${ac_cv_sizeof_intptr_t+${ac_cv_sizeof_intptr_t-} }${t}" 14263 fi 14264 } 14265 : ${ac_cv_sizeof_intptr_t=0} 14266 14267fi 14268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 14269$as_echo "$ac_cv_sizeof_intptr_t" >&6; } 14270{ 14271 unset cond 14272 for t in ${ac_cv_sizeof_intptr_t-}; do 14273 case "$t" in #( 14274 [0-9]*|SIZEOF_*) : 14275 14276 ${cond+echo "#else"} 14277 echo "#define SIZEOF_INTPTR_T $t" 14278 break 14279 ;; #( 14280 *) : 14281 14282 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 14283 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 14284 echo "#define SIZEOF_INTPTR_T $[s / rb_cv_char_bit]" 14285 cond=1 14286 ;; 14287esac 14288 done 14289 ${cond+echo "#endif"} 14290} >> confdefs.h 14291else 14292# The cast to long int works around a bug in the HP C Compiler 14293# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14294# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14295# This bug is HP SR number 8606223364. 14296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5 14297$as_echo_n "checking size of intptr_t... " >&6; } 14298if ${ac_cv_sizeof_intptr_t+:} false; then : 14299 $as_echo_n "(cached) " >&6 14300else 14301 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default 14302"; then : 14303 14304else 14305 if test "$ac_cv_type_intptr_t" = yes; then 14306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14308as_fn_error 77 "cannot compute sizeof (intptr_t) 14309See \`config.log' for more details" "$LINENO" 5; } 14310 else 14311 ac_cv_sizeof_intptr_t=0 14312 fi 14313fi 14314 14315fi 14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 14317$as_echo "$ac_cv_sizeof_intptr_t" >&6; } 14318 14319 14320 14321cat >>confdefs.h <<_ACEOF 14322#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t 14323_ACEOF 14324 14325 14326fi 14327 14328 else 14329 cat >>confdefs.h <<_ACEOF 14330#define intptr_t $rb_cv_type_intptr_t 14331_ACEOF 14332 14333 cat >>confdefs.h <<_ACEOF 14334#define SIZEOF_INTPTR_T SIZEOF_`$as_echo "$rb_cv_type_intptr_t" | $as_tr_cpp` 14335_ACEOF 14336 14337 fi 14338fi 14339 14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 14341$as_echo_n "checking for uintptr_t... " >&6; } 14342if ${rb_cv_type_uintptr_t+:} false; then : 14343 $as_echo_n "(cached) " >&6 14344else 14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14346/* end confdefs.h. */ 14347$ac_includes_default 14348typedef uintptr_t t; int s = sizeof(t) == 42; 14349int 14350main () 14351{ 14352 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357if ac_fn_c_try_compile "$LINENO"; then : 14358 rb_cv_type_uintptr_t=yes 14359else 14360 case $ac_cv_sizeof_voidp in #( 14361 "1") : 14362 rb_cv_type_uintptr_t="unsigned char" ;; #( 14363 "$ac_cv_sizeof_short") : 14364 rb_cv_type_uintptr_t="unsigned short" ;; #( 14365 "$ac_cv_sizeof_int") : 14366 rb_cv_type_uintptr_t="unsigned int" ;; #( 14367 "$ac_cv_sizeof_long") : 14368 rb_cv_type_uintptr_t="unsigned long" ;; #( 14369 "$ac_cv_sizeof_long_long") : 14370 rb_cv_type_uintptr_t="unsigned long long" ;; #( 14371 "$ac_cv_sizeof___int64") : 14372 rb_cv_type_uintptr_t="unsigned __int64" ;; #( 14373 *) : 14374 rb_cv_type_uintptr_t=no ;; 14375esac 14376fi 14377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14378fi 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uintptr_t" >&5 14380$as_echo "$rb_cv_type_uintptr_t" >&6; } 14381if test "${rb_cv_type_uintptr_t}" != no; then 14382 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 14383 14384 if test "${rb_cv_type_uintptr_t}" = yes; then 14385 if test "$universal_binary" = yes; then 14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 14387$as_echo_n "checking size of uintptr_t... " >&6; } 14388if ${ac_cv_sizeof_uintptr_t+:} false; then : 14389 $as_echo_n "(cached) " >&6 14390else 14391 14392 unset ac_cv_sizeof_uintptr_t 14393 rbcv_var=" 14394typedef uintptr_t ac__type_sizeof_; 14395static ac__type_sizeof_ *rbcv_ptr; 14396#define SIZEOF_UINTPTR_T sizeof((*rbcv_ptr)) 14397" 14398 test -z "${ac_cv_sizeof_uintptr_t+set}" && { 14399 for t in void*; do 14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401/* end confdefs.h. */ 14402$ac_includes_default 14403 $rbcv_var 14404 14405int 14406main () 14407{ 14408static int test_array [1 - 2 * !(SIZEOF_UINTPTR_T == sizeof($t))]; 14409test_array [0] = 0; 14410return test_array [0]; 14411 14412 ; 14413 return 0; 14414} 14415_ACEOF 14416if ac_fn_c_try_compile "$LINENO"; then : 14417 14418 ac_cv_sizeof_uintptr_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 14419 break 14420fi 14421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14422 done 14423 } 14424 unset cond 14425 14426 test "${ac_cv_sizeof_uintptr_t#SIZEOF_}" = "${ac_cv_sizeof_uintptr_t}" && { 14427 test "$universal_binary" = yes && cross_compiling=yes 14428 if ac_fn_c_compute_int "$LINENO" "SIZEOF_UINTPTR_T" "t" "$ac_includes_default 14429 14430${cond+$cond 14431#else} 14432$rbcv_var 14433${cond+#endif} 14434#ifndef SIZEOF_UINTPTR_T 14435#define SIZEOF_UINTPTR_T 0 14436#endif"; then : 14437 14438else 14439 t=0 14440fi 14441 14442 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 14443 if test ${t-0} != 0; then 14444 ac_cv_sizeof_uintptr_t="${ac_cv_sizeof_uintptr_t+${ac_cv_sizeof_uintptr_t-} }${t}" 14445 fi 14446 } 14447 : ${ac_cv_sizeof_uintptr_t=0} 14448 14449fi 14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 14451$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 14452{ 14453 unset cond 14454 for t in ${ac_cv_sizeof_uintptr_t-}; do 14455 case "$t" in #( 14456 [0-9]*|SIZEOF_*) : 14457 14458 ${cond+echo "#else"} 14459 echo "#define SIZEOF_UINTPTR_T $t" 14460 break 14461 ;; #( 14462 *) : 14463 14464 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 14465 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 14466 echo "#define SIZEOF_UINTPTR_T $[s / rb_cv_char_bit]" 14467 cond=1 14468 ;; 14469esac 14470 done 14471 ${cond+echo "#endif"} 14472} >> confdefs.h 14473else 14474# The cast to long int works around a bug in the HP C Compiler 14475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14477# This bug is HP SR number 8606223364. 14478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 14479$as_echo_n "checking size of uintptr_t... " >&6; } 14480if ${ac_cv_sizeof_uintptr_t+:} false; then : 14481 $as_echo_n "(cached) " >&6 14482else 14483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default 14484"; then : 14485 14486else 14487 if test "$ac_cv_type_uintptr_t" = yes; then 14488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14490as_fn_error 77 "cannot compute sizeof (uintptr_t) 14491See \`config.log' for more details" "$LINENO" 5; } 14492 else 14493 ac_cv_sizeof_uintptr_t=0 14494 fi 14495fi 14496 14497fi 14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 14499$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 14500 14501 14502 14503cat >>confdefs.h <<_ACEOF 14504#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 14505_ACEOF 14506 14507 14508fi 14509 14510 else 14511 cat >>confdefs.h <<_ACEOF 14512#define uintptr_t $rb_cv_type_uintptr_t 14513_ACEOF 14514 14515 cat >>confdefs.h <<_ACEOF 14516#define SIZEOF_UINTPTR_T SIZEOF_`$as_echo "$rb_cv_type_uintptr_t" | $as_tr_cpp` 14517_ACEOF 14518 14519 fi 14520fi 14521 14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 14523$as_echo_n "checking for ssize_t... " >&6; } 14524if ${rb_cv_type_ssize_t+:} false; then : 14525 $as_echo_n "(cached) " >&6 14526else 14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14528/* end confdefs.h. */ 14529#include <sys/types.h> 14530 14531typedef ssize_t t; int s = sizeof(t) == 42; 14532int 14533main () 14534{ 14535 14536 ; 14537 return 0; 14538} 14539_ACEOF 14540if ac_fn_c_try_compile "$LINENO"; then : 14541 rb_cv_type_ssize_t=yes 14542else 14543 case $ac_cv_sizeof_size_t in #( 14544 "1") : 14545 rb_cv_type_ssize_t="signed char" ;; #( 14546 "$ac_cv_sizeof_short") : 14547 rb_cv_type_ssize_t="short" ;; #( 14548 "$ac_cv_sizeof_int") : 14549 rb_cv_type_ssize_t="int" ;; #( 14550 "$ac_cv_sizeof_long") : 14551 rb_cv_type_ssize_t="long" ;; #( 14552 "$ac_cv_sizeof_long_long") : 14553 rb_cv_type_ssize_t="long long" ;; #( 14554 "$ac_cv_sizeof___int64") : 14555 rb_cv_type_ssize_t="__int64" ;; #( 14556 *) : 14557 rb_cv_type_ssize_t=no ;; 14558esac 14559fi 14560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14561fi 14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_ssize_t" >&5 14563$as_echo "$rb_cv_type_ssize_t" >&6; } 14564if test "${rb_cv_type_ssize_t}" != no; then 14565 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 14566 14567 if test "${rb_cv_type_ssize_t}" = yes; then 14568 if test "$universal_binary" = yes; then 14569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 14570$as_echo_n "checking size of ssize_t... " >&6; } 14571if ${ac_cv_sizeof_ssize_t+:} false; then : 14572 $as_echo_n "(cached) " >&6 14573else 14574 14575 unset ac_cv_sizeof_ssize_t 14576 rbcv_var=" 14577typedef ssize_t ac__type_sizeof_; 14578static ac__type_sizeof_ *rbcv_ptr; 14579#define SIZEOF_SSIZE_T sizeof((*rbcv_ptr)) 14580" 14581 test -z "${ac_cv_sizeof_ssize_t+set}" && { 14582 for t in size_t; do 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585#include <sys/types.h> 14586 14587 $rbcv_var 14588 14589int 14590main () 14591{ 14592static int test_array [1 - 2 * !(SIZEOF_SSIZE_T == sizeof($t))]; 14593test_array [0] = 0; 14594return test_array [0]; 14595 14596 ; 14597 return 0; 14598} 14599_ACEOF 14600if ac_fn_c_try_compile "$LINENO"; then : 14601 14602 ac_cv_sizeof_ssize_t=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 14603 break 14604fi 14605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14606 done 14607 } 14608 unset cond 14609 14610 test "${ac_cv_sizeof_ssize_t#SIZEOF_}" = "${ac_cv_sizeof_ssize_t}" && { 14611 test "$universal_binary" = yes && cross_compiling=yes 14612 if ac_fn_c_compute_int "$LINENO" "SIZEOF_SSIZE_T" "t" "#include <sys/types.h> 14613 14614 14615${cond+$cond 14616#else} 14617$rbcv_var 14618${cond+#endif} 14619#ifndef SIZEOF_SSIZE_T 14620#define SIZEOF_SSIZE_T 0 14621#endif"; then : 14622 14623else 14624 t=0 14625fi 14626 14627 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 14628 if test ${t-0} != 0; then 14629 ac_cv_sizeof_ssize_t="${ac_cv_sizeof_ssize_t+${ac_cv_sizeof_ssize_t-} }${t}" 14630 fi 14631 } 14632 : ${ac_cv_sizeof_ssize_t=0} 14633 14634fi 14635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 14636$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 14637{ 14638 unset cond 14639 for t in ${ac_cv_sizeof_ssize_t-}; do 14640 case "$t" in #( 14641 [0-9]*|SIZEOF_*) : 14642 14643 ${cond+echo "#else"} 14644 echo "#define SIZEOF_SSIZE_T $t" 14645 break 14646 ;; #( 14647 *) : 14648 14649 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 14650 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 14651 echo "#define SIZEOF_SSIZE_T $[s / rb_cv_char_bit]" 14652 cond=1 14653 ;; 14654esac 14655 done 14656 ${cond+echo "#endif"} 14657} >> confdefs.h 14658else 14659# The cast to long int works around a bug in the HP C Compiler 14660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14662# This bug is HP SR number 8606223364. 14663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 14664$as_echo_n "checking size of ssize_t... " >&6; } 14665if ${ac_cv_sizeof_ssize_t+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667else 14668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "#include <sys/types.h> 14669 14670"; then : 14671 14672else 14673 if test "$ac_cv_type_ssize_t" = yes; then 14674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14676as_fn_error 77 "cannot compute sizeof (ssize_t) 14677See \`config.log' for more details" "$LINENO" 5; } 14678 else 14679 ac_cv_sizeof_ssize_t=0 14680 fi 14681fi 14682 14683fi 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 14685$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 14686 14687 14688 14689cat >>confdefs.h <<_ACEOF 14690#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 14691_ACEOF 14692 14693 14694fi 14695 14696 else 14697 cat >>confdefs.h <<_ACEOF 14698#define ssize_t $rb_cv_type_ssize_t 14699_ACEOF 14700 14701 cat >>confdefs.h <<_ACEOF 14702#define SIZEOF_SSIZE_T SIZEOF_`$as_echo "$rb_cv_type_ssize_t" | $as_tr_cpp` 14703_ACEOF 14704 14705 fi 14706fi 14707 14708case "${host_os}" in #( 14709 nacl) : 14710 14711 ac_fn_c_check_type "$LINENO" "struct PPB_Core" "ac_cv_type_struct_PPB_Core" "$ac_includes_default" 14712if test "x$ac_cv_type_struct_PPB_Core" = xyes; then : 14713 14714cat >>confdefs.h <<_ACEOF 14715#define HAVE_STRUCT_PPB_CORE 1 14716_ACEOF 14717 14718 14719fi 14720ac_fn_c_check_type "$LINENO" "struct PPB_Messaging" "ac_cv_type_struct_PPB_Messaging" "$ac_includes_default" 14721if test "x$ac_cv_type_struct_PPB_Messaging" = xyes; then : 14722 14723cat >>confdefs.h <<_ACEOF 14724#define HAVE_STRUCT_PPB_MESSAGING 1 14725_ACEOF 14726 14727 14728fi 14729ac_fn_c_check_type "$LINENO" "struct PPB_Var" "ac_cv_type_struct_PPB_Var" "$ac_includes_default" 14730if test "x$ac_cv_type_struct_PPB_Var" = xyes; then : 14731 14732cat >>confdefs.h <<_ACEOF 14733#define HAVE_STRUCT_PPB_VAR 1 14734_ACEOF 14735 14736 14737fi 14738ac_fn_c_check_type "$LINENO" "struct PPB_URLLoader" "ac_cv_type_struct_PPB_URLLoader" "$ac_includes_default" 14739if test "x$ac_cv_type_struct_PPB_URLLoader" = xyes; then : 14740 14741cat >>confdefs.h <<_ACEOF 14742#define HAVE_STRUCT_PPB_URLLOADER 1 14743_ACEOF 14744 14745 14746fi 14747ac_fn_c_check_type "$LINENO" "struct PPB_URLRequestInfo" "ac_cv_type_struct_PPB_URLRequestInfo" "$ac_includes_default" 14748if test "x$ac_cv_type_struct_PPB_URLRequestInfo" = xyes; then : 14749 14750cat >>confdefs.h <<_ACEOF 14751#define HAVE_STRUCT_PPB_URLREQUESTINFO 1 14752_ACEOF 14753 14754 14755fi 14756ac_fn_c_check_type "$LINENO" "struct PPB_URLResponseInfo" "ac_cv_type_struct_PPB_URLResponseInfo" "$ac_includes_default" 14757if test "x$ac_cv_type_struct_PPB_URLResponseInfo" = xyes; then : 14758 14759cat >>confdefs.h <<_ACEOF 14760#define HAVE_STRUCT_PPB_URLRESPONSEINFO 1 14761_ACEOF 14762 14763 14764fi 14765ac_fn_c_check_type "$LINENO" "struct PPB_FileRef" "ac_cv_type_struct_PPB_FileRef" "$ac_includes_default" 14766if test "x$ac_cv_type_struct_PPB_FileRef" = xyes; then : 14767 14768cat >>confdefs.h <<_ACEOF 14769#define HAVE_STRUCT_PPB_FILEREF 1 14770_ACEOF 14771 14772 14773fi 14774ac_fn_c_check_type "$LINENO" "struct PPP_Instance" "ac_cv_type_struct_PPP_Instance" "$ac_includes_default" 14775if test "x$ac_cv_type_struct_PPP_Instance" = xyes; then : 14776 14777cat >>confdefs.h <<_ACEOF 14778#define HAVE_STRUCT_PPP_INSTANCE 1 14779_ACEOF 14780 14781 14782fi 14783 14784 ;; #( 14785 *) : 14786 ;; 14787esac 14788 14789 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack end address" >&5 14791$as_echo_n "checking for stack end address... " >&6; } 14792if ${rb_cv_stack_end_address+:} false; then : 14793 $as_echo_n "(cached) " >&6 14794else 14795 rb_cv_stack_end_address=no 14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798extern void *__libc_stack_end; 14799int 14800main () 14801{ 14802if (!__libc_stack_end) return 1; 14803 ; 14804 return 0; 14805} 14806_ACEOF 14807if ac_fn_c_try_link "$LINENO"; then : 14808 rb_cv_stack_end_address="__libc_stack_end" 14809fi 14810rm -f core conftest.err conftest.$ac_objext \ 14811 conftest$ac_exeext conftest.$ac_ext 14812 14813fi 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_stack_end_address" >&5 14815$as_echo "$rb_cv_stack_end_address" >&6; } 14816if test $rb_cv_stack_end_address != no; then 14817 cat >>confdefs.h <<_ACEOF 14818#define STACK_END_ADDRESS $rb_cv_stack_end_address 14819_ACEOF 14820 14821fi 14822 14823case "$target_os" in #( 14824 openbsd*) : 14825 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heap align log on openbsd" >&5 14827$as_echo_n "checking for heap align log on openbsd... " >&6; } 14828if ${rb_cv_page_size_log+:} false; then : 14829 $as_echo_n "(cached) " >&6 14830else 14831 rb_cv_page_size_log=no 14832 for page_log in 12 13; do 14833 if test "$cross_compiling" = yes; then : 14834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14836as_fn_error $? "cannot run test program while cross compiling 14837See \`config.log' for more details" "$LINENO" 5; } 14838else 14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14840/* end confdefs.h. */ 14841 14842#include <math.h> 14843#include <unistd.h> 14844 14845int 14846main() { 14847 if ((int)log2((double)sysconf(_SC_PAGESIZE)) != $page_log) return 1; 14848 return 0; 14849} 14850 14851_ACEOF 14852if ac_fn_c_try_run "$LINENO"; then : 14853 rb_cv_page_size_log="$page_log"; break 14854fi 14855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14856 conftest.$ac_objext conftest.beam conftest.$ac_ext 14857fi 14858 14859 done 14860fi 14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_page_size_log" >&5 14862$as_echo "$rb_cv_page_size_log" >&6; } 14863 if test $rb_cv_page_size_log != no; then 14864 cat >>confdefs.h <<_ACEOF 14865#define HEAP_ALIGN_LOG $rb_cv_page_size_log 14866_ACEOF 14867 14868 else 14869 cat >>confdefs.h <<_ACEOF 14870#define HEAP_ALIGN_LOG 12 14871_ACEOF 14872 14873 fi 14874 ;; #( 14875 *) : 14876 ;; 14877esac 14878 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14880$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14881if ${ac_cv_type_uid_t+:} false; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886#include <sys/types.h> 14887 14888_ACEOF 14889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14890 $EGREP "uid_t" >/dev/null 2>&1; then : 14891 ac_cv_type_uid_t=yes 14892else 14893 ac_cv_type_uid_t=no 14894fi 14895rm -f conftest* 14896 14897fi 14898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14899$as_echo "$ac_cv_type_uid_t" >&6; } 14900if test $ac_cv_type_uid_t = no; then 14901 14902$as_echo "#define uid_t int" >>confdefs.h 14903 14904 14905$as_echo "#define gid_t int" >>confdefs.h 14906 14907fi 14908 14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 14910$as_echo_n "checking type of array argument to getgroups... " >&6; } 14911if ${ac_cv_type_getgroups+:} false; then : 14912 $as_echo_n "(cached) " >&6 14913else 14914 if test "$cross_compiling" = yes; then : 14915 ac_cv_type_getgroups=cross 14916else 14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14918/* end confdefs.h. */ 14919/* Thanks to Mike Rendell for this test. */ 14920$ac_includes_default 14921#define NGID 256 14922#undef MAX 14923#define MAX(x, y) ((x) > (y) ? (x) : (y)) 14924 14925int 14926main () 14927{ 14928 gid_t gidset[NGID]; 14929 int i, n; 14930 union { gid_t gval; long int lval; } val; 14931 14932 val.lval = -1; 14933 for (i = 0; i < NGID; i++) 14934 gidset[i] = val.gval; 14935 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 14936 gidset); 14937 /* Exit non-zero if getgroups seems to require an array of ints. This 14938 happens when gid_t is short int but getgroups modifies an array 14939 of ints. */ 14940 return n > 0 && gidset[n] != val.gval; 14941} 14942_ACEOF 14943if ac_fn_c_try_run "$LINENO"; then : 14944 ac_cv_type_getgroups=gid_t 14945else 14946 ac_cv_type_getgroups=int 14947fi 14948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14949 conftest.$ac_objext conftest.beam conftest.$ac_ext 14950fi 14951 14952if test $ac_cv_type_getgroups = cross; then 14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14954/* end confdefs.h. */ 14955#include <unistd.h> 14956 14957_ACEOF 14958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14959 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 14960 ac_cv_type_getgroups=gid_t 14961else 14962 ac_cv_type_getgroups=int 14963fi 14964rm -f conftest* 14965 14966fi 14967fi 14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 14969$as_echo "$ac_cv_type_getgroups" >&6; } 14970 14971cat >>confdefs.h <<_ACEOF 14972#define GETGROUPS_T $ac_cv_type_getgroups 14973_ACEOF 14974 14975 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14977$as_echo_n "checking return type of signal handlers... " >&6; } 14978if ${ac_cv_type_signal+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14982/* end confdefs.h. */ 14983#include <sys/types.h> 14984#include <signal.h> 14985 14986int 14987main () 14988{ 14989return *(signal (0, 0)) (0) == 1; 14990 ; 14991 return 0; 14992} 14993_ACEOF 14994if ac_fn_c_try_compile "$LINENO"; then : 14995 ac_cv_type_signal=int 14996else 14997 ac_cv_type_signal=void 14998fi 14999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15000fi 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15002$as_echo "$ac_cv_type_signal" >&6; } 15003 15004cat >>confdefs.h <<_ACEOF 15005#define RETSIGTYPE $ac_cv_type_signal 15006_ACEOF 15007 15008 15009case "${target_cpu}-${target_os}:${target_archs}" in #( 15010 powerpc-darwin*) : 15011 15012 15013 ALLOCA=\${LIBOBJDIR}alloca.${ac_objext} 15014 15015 $as_echo "#define C_ALLOCA 1" >>confdefs.h 15016 15017 cat >>confdefs.h <<_ACEOF 15018#define alloca alloca 15019_ACEOF 15020 15021 ;; #( 15022 universal-darwin*:*ppc*) : 15023 15024 15025 ALLOCA=\${LIBOBJDIR}alloca.${ac_objext} 15026 15027 cat <<EOH >> confdefs.h 15028#if defined __powerpc__ 15029EOH 15030cat >>confdefs.h <<_ACEOF 15031#define C_ALLOCA 1 15032_ACEOF 15033 cat <<EOH >> confdefs.h 15034#endif /* defined __powerpc__ */ 15035EOH 15036 15037 cat <<EOH >> confdefs.h 15038#if defined __powerpc__ 15039EOH 15040cat >>confdefs.h <<_ACEOF 15041#define alloca alloca 15042_ACEOF 15043 cat <<EOH >> confdefs.h 15044#endif /* defined __powerpc__ */ 15045EOH 15046 15047 ;; #( 15048 *) : 15049 15050 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 15051# for constant arguments. Useless! 15052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 15053$as_echo_n "checking for working alloca.h... " >&6; } 15054if ${ac_cv_working_alloca_h+:} false; then : 15055 $as_echo_n "(cached) " >&6 15056else 15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15058/* end confdefs.h. */ 15059#include <alloca.h> 15060int 15061main () 15062{ 15063char *p = (char *) alloca (2 * sizeof (int)); 15064 if (p) return 0; 15065 ; 15066 return 0; 15067} 15068_ACEOF 15069if ac_fn_c_try_link "$LINENO"; then : 15070 ac_cv_working_alloca_h=yes 15071else 15072 ac_cv_working_alloca_h=no 15073fi 15074rm -f core conftest.err conftest.$ac_objext \ 15075 conftest$ac_exeext conftest.$ac_ext 15076fi 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 15078$as_echo "$ac_cv_working_alloca_h" >&6; } 15079if test $ac_cv_working_alloca_h = yes; then 15080 15081$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 15082 15083fi 15084 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 15086$as_echo_n "checking for alloca... " >&6; } 15087if ${ac_cv_func_alloca_works+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15091/* end confdefs.h. */ 15092#ifdef __GNUC__ 15093# define alloca __builtin_alloca 15094#else 15095# ifdef _MSC_VER 15096# include <malloc.h> 15097# define alloca _alloca 15098# else 15099# ifdef HAVE_ALLOCA_H 15100# include <alloca.h> 15101# else 15102# ifdef _AIX 15103 #pragma alloca 15104# else 15105# ifndef alloca /* predefined by HP cc +Olibcalls */ 15106void *alloca (size_t); 15107# endif 15108# endif 15109# endif 15110# endif 15111#endif 15112 15113int 15114main () 15115{ 15116char *p = (char *) alloca (1); 15117 if (p) return 0; 15118 ; 15119 return 0; 15120} 15121_ACEOF 15122if ac_fn_c_try_link "$LINENO"; then : 15123 ac_cv_func_alloca_works=yes 15124else 15125 ac_cv_func_alloca_works=no 15126fi 15127rm -f core conftest.err conftest.$ac_objext \ 15128 conftest$ac_exeext conftest.$ac_ext 15129fi 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 15131$as_echo "$ac_cv_func_alloca_works" >&6; } 15132 15133if test $ac_cv_func_alloca_works = yes; then 15134 15135$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 15136 15137else 15138 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 15139# that cause trouble. Some versions do not even contain alloca or 15140# contain a buggy version. If you still want to use their alloca, 15141# use ar to extract alloca.o from them instead of compiling alloca.c. 15142 15143ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 15144 15145$as_echo "#define C_ALLOCA 1" >>confdefs.h 15146 15147 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 15149$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 15150if ${ac_cv_os_cray+:} false; then : 15151 $as_echo_n "(cached) " >&6 15152else 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155#if defined CRAY && ! defined CRAY2 15156webecray 15157#else 15158wenotbecray 15159#endif 15160 15161_ACEOF 15162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15163 $EGREP "webecray" >/dev/null 2>&1; then : 15164 ac_cv_os_cray=yes 15165else 15166 ac_cv_os_cray=no 15167fi 15168rm -f conftest* 15169 15170fi 15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 15172$as_echo "$ac_cv_os_cray" >&6; } 15173if test $ac_cv_os_cray = yes; then 15174 for ac_func in _getb67 GETB67 getb67; do 15175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15176ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15177if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15178 15179cat >>confdefs.h <<_ACEOF 15180#define CRAY_STACKSEG_END $ac_func 15181_ACEOF 15182 15183 break 15184fi 15185 15186 done 15187fi 15188 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 15190$as_echo_n "checking stack direction for C alloca... " >&6; } 15191if ${ac_cv_c_stack_direction+:} false; then : 15192 $as_echo_n "(cached) " >&6 15193else 15194 if test "$cross_compiling" = yes; then : 15195 ac_cv_c_stack_direction=0 15196else 15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15198/* end confdefs.h. */ 15199$ac_includes_default 15200int 15201find_stack_direction (int *addr, int depth) 15202{ 15203 int dir, dummy = 0; 15204 if (! addr) 15205 addr = &dummy; 15206 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 15207 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 15208 return dir + dummy; 15209} 15210 15211int 15212main (int argc, char **argv) 15213{ 15214 return find_stack_direction (0, argc + !argv + 20) < 0; 15215} 15216_ACEOF 15217if ac_fn_c_try_run "$LINENO"; then : 15218 ac_cv_c_stack_direction=1 15219else 15220 ac_cv_c_stack_direction=-1 15221fi 15222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15223 conftest.$ac_objext conftest.beam conftest.$ac_ext 15224fi 15225 15226fi 15227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 15228$as_echo "$ac_cv_c_stack_direction" >&6; } 15229cat >>confdefs.h <<_ACEOF 15230#define STACK_DIRECTION $ac_cv_c_stack_direction 15231_ACEOF 15232 15233 15234fi 15235 15236 ;; 15237esac 15238if test "x$ALLOCA" = "x"; then 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic size alloca" >&5 15240$as_echo_n "checking for dynamic size alloca... " >&6; } 15241if ${rb_cv_dynamic_alloca+:} false; then : 15242 $as_echo_n "(cached) " >&6 15243else 15244 15245 for chk in ok __chkstk; do 15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15247/* end confdefs.h. */ 15248 15249 #ifdef HAVE_ALLOCA_H 15250 #include <alloca.h> 15251 #endif 15252 void $chk() {} 15253 int dynamic_alloca_test; 15254 int dynamic_alloca_result; 15255int 15256main () 15257{ 15258dynamic_alloca_result = alloca(dynamic_alloca_test) != 0; 15259 ; 15260 return 0; 15261} 15262_ACEOF 15263if ac_fn_c_try_link "$LINENO"; then : 15264 rb_cv_dynamic_alloca=$chk; break 15265fi 15266rm -f core conftest.err conftest.$ac_objext \ 15267 conftest$ac_exeext conftest.$ac_ext 15268 done 15269fi 15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dynamic_alloca" >&5 15271$as_echo "$rb_cv_dynamic_alloca" >&6; } 15272 if test "x$rb_cv_dynamic_alloca" = "x__chkstk"; then 15273 cat >>confdefs.h <<_ACEOF 15274#define RUBY_ALLOCA_CHKSTK _$rb_cv_dynamic_alloca 15275_ACEOF 15276 15277 case "$target_cpu" in #( 15278 x64|x86_64) : 15279 15280 ALLOCA=\${LIBOBJDIR}x86_64-chkstk.${ac_objext} 15281 15282 ;; #( 15283 *) : 15284 ;; 15285esac 15286 fi 15287fi 15288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 15289$as_echo_n "checking for working memcmp... " >&6; } 15290if ${ac_cv_func_memcmp_working+:} false; then : 15291 $as_echo_n "(cached) " >&6 15292else 15293 if test "$cross_compiling" = yes; then : 15294 ac_cv_func_memcmp_working=no 15295else 15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15297/* end confdefs.h. */ 15298$ac_includes_default 15299int 15300main () 15301{ 15302 15303 /* Some versions of memcmp are not 8-bit clean. */ 15304 char c0 = '\100', c1 = '\200', c2 = '\201'; 15305 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 15306 return 1; 15307 15308 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 15309 or more and with at least one buffer not starting on a 4-byte boundary. 15310 William Lewis provided this test program. */ 15311 { 15312 char foo[21]; 15313 char bar[21]; 15314 int i; 15315 for (i = 0; i < 4; i++) 15316 { 15317 char *a = foo + i; 15318 char *b = bar + i; 15319 strcpy (a, "--------01111111"); 15320 strcpy (b, "--------10000000"); 15321 if (memcmp (a, b, 16) >= 0) 15322 return 1; 15323 } 15324 return 0; 15325 } 15326 15327 ; 15328 return 0; 15329} 15330_ACEOF 15331if ac_fn_c_try_run "$LINENO"; then : 15332 ac_cv_func_memcmp_working=yes 15333else 15334 ac_cv_func_memcmp_working=no 15335fi 15336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15337 conftest.$ac_objext conftest.beam conftest.$ac_ext 15338fi 15339 15340fi 15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 15342$as_echo "$ac_cv_func_memcmp_working" >&6; } 15343test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 15344 *" memcmp.$ac_objext "* ) ;; 15345 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15346 ;; 15347esac 15348 15349 15350 15351# http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html 15352# Debian GNU/Linux Etch's libc6.1 2.3.6.ds1-13etch5 has this problem. 15353# Debian GNU/Linux Lenny's libc6.1 2.7-10 has no problem. 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken erfc of glibc-2.3.6 on IA64" >&5 15355$as_echo_n "checking for broken erfc of glibc-2.3.6 on IA64... " >&6; } 15356if ${rb_cv_broken_glibc_ia64_erfc+:} false; then : 15357 $as_echo_n "(cached) " >&6 15358else 15359 if test "$cross_compiling" = yes; then : 15360 rb_cv_broken_glibc_ia64_erfc=no 15361else 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363/* end confdefs.h. */ 15364 15365#include <math.h> 15366int 15367main() 15368{ 15369 erfc(10000.0); 15370 return 0; 15371} 15372 15373_ACEOF 15374if ac_fn_c_try_run "$LINENO"; then : 15375 rb_cv_broken_glibc_ia64_erfc=no 15376else 15377 rb_cv_broken_glibc_ia64_erfc=yes 15378fi 15379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15380 conftest.$ac_objext conftest.beam conftest.$ac_ext 15381fi 15382 15383fi 15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_glibc_ia64_erfc" >&5 15385$as_echo "$rb_cv_broken_glibc_ia64_erfc" >&6; } 15386case $rb_cv_broken_glibc_ia64_erfc in #( 15387 yes) : 15388 ac_cv_func_erf=no ;; #( 15389 *) : 15390 ;; 15391esac 15392 15393case "$target_os" in #( 15394 freebsd*) : 15395 15396 $as_echo "#define BROKEN_CLOSE 1" >>confdefs.h 15397 15398 ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close" 15399if test "x$ac_cv_func_close" = xyes; then : 15400 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h 15401 15402else 15403 case " $LIBOBJS " in 15404 *" close.$ac_objext "* ) ;; 15405 *) LIBOBJS="$LIBOBJS close.$ac_objext" 15406 ;; 15407esac 15408 15409fi 15410 15411 15412 ;; #( 15413 *) : 15414 ;; 15415esac 15416ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 15417if test "x$ac_cv_func_dup2" = xyes; then : 15418 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 15419 15420else 15421 case " $LIBOBJS " in 15422 *" dup2.$ac_objext "* ) ;; 15423 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 15424 ;; 15425esac 15426 15427fi 15428 15429ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 15430if test "x$ac_cv_func_memmove" = xyes; then : 15431 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 15432 15433else 15434 case " $LIBOBJS " in 15435 *" memmove.$ac_objext "* ) ;; 15436 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 15437 ;; 15438esac 15439 15440fi 15441 15442ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 15443if test "x$ac_cv_func_strerror" = xyes; then : 15444 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 15445 15446else 15447 case " $LIBOBJS " in 15448 *" strerror.$ac_objext "* ) ;; 15449 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 15450 ;; 15451esac 15452 15453fi 15454 15455ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 15456if test "x$ac_cv_func_strchr" = xyes; then : 15457 $as_echo "#define HAVE_STRCHR 1" >>confdefs.h 15458 15459else 15460 case " $LIBOBJS " in 15461 *" strchr.$ac_objext "* ) ;; 15462 *) LIBOBJS="$LIBOBJS strchr.$ac_objext" 15463 ;; 15464esac 15465 15466fi 15467 15468ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 15469if test "x$ac_cv_func_strstr" = xyes; then : 15470 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h 15471 15472else 15473 case " $LIBOBJS " in 15474 *" strstr.$ac_objext "* ) ;; 15475 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" 15476 ;; 15477esac 15478 15479fi 15480 15481ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 15482if test "x$ac_cv_func_crypt" = xyes; then : 15483 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h 15484 15485else 15486 case " $LIBOBJS " in 15487 *" crypt.$ac_objext "* ) ;; 15488 *) LIBOBJS="$LIBOBJS crypt.$ac_objext" 15489 ;; 15490esac 15491 15492fi 15493 15494ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 15495if test "x$ac_cv_func_flock" = xyes; then : 15496 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 15497 15498else 15499 case " $LIBOBJS " in 15500 *" flock.$ac_objext "* ) ;; 15501 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 15502 ;; 15503esac 15504 15505fi 15506 15507ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" 15508if test "x$ac_cv_func_isnan" = xyes; then : 15509 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 15510 15511else 15512 case " $LIBOBJS " in 15513 *" isnan.$ac_objext "* ) ;; 15514 *) LIBOBJS="$LIBOBJS isnan.$ac_objext" 15515 ;; 15516esac 15517 15518fi 15519 15520ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 15521if test "x$ac_cv_func_finite" = xyes; then : 15522 $as_echo "#define HAVE_FINITE 1" >>confdefs.h 15523 15524else 15525 case " $LIBOBJS " in 15526 *" finite.$ac_objext "* ) ;; 15527 *) LIBOBJS="$LIBOBJS finite.$ac_objext" 15528 ;; 15529esac 15530 15531fi 15532 15533ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf" 15534if test "x$ac_cv_func_isinf" = xyes; then : 15535 $as_echo "#define HAVE_ISINF 1" >>confdefs.h 15536 15537else 15538 case " $LIBOBJS " in 15539 *" isinf.$ac_objext "* ) ;; 15540 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" 15541 ;; 15542esac 15543 15544fi 15545 15546ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" 15547if test "x$ac_cv_func_hypot" = xyes; then : 15548 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h 15549 15550else 15551 case " $LIBOBJS " in 15552 *" hypot.$ac_objext "* ) ;; 15553 *) LIBOBJS="$LIBOBJS hypot.$ac_objext" 15554 ;; 15555esac 15556 15557fi 15558 15559ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh" 15560if test "x$ac_cv_func_acosh" = xyes; then : 15561 $as_echo "#define HAVE_ACOSH 1" >>confdefs.h 15562 15563else 15564 case " $LIBOBJS " in 15565 *" acosh.$ac_objext "* ) ;; 15566 *) LIBOBJS="$LIBOBJS acosh.$ac_objext" 15567 ;; 15568esac 15569 15570fi 15571 15572ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf" 15573if test "x$ac_cv_func_erf" = xyes; then : 15574 $as_echo "#define HAVE_ERF 1" >>confdefs.h 15575 15576else 15577 case " $LIBOBJS " in 15578 *" erf.$ac_objext "* ) ;; 15579 *) LIBOBJS="$LIBOBJS erf.$ac_objext" 15580 ;; 15581esac 15582 15583fi 15584 15585ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma" 15586if test "x$ac_cv_func_tgamma" = xyes; then : 15587 $as_echo "#define HAVE_TGAMMA 1" >>confdefs.h 15588 15589else 15590 case " $LIBOBJS " in 15591 *" tgamma.$ac_objext "* ) ;; 15592 *) LIBOBJS="$LIBOBJS tgamma.$ac_objext" 15593 ;; 15594esac 15595 15596fi 15597 15598ac_fn_c_check_func "$LINENO" "lgamma_r" "ac_cv_func_lgamma_r" 15599if test "x$ac_cv_func_lgamma_r" = xyes; then : 15600 $as_echo "#define HAVE_LGAMMA_R 1" >>confdefs.h 15601 15602else 15603 case " $LIBOBJS " in 15604 *" lgamma_r.$ac_objext "* ) ;; 15605 *) LIBOBJS="$LIBOBJS lgamma_r.$ac_objext" 15606 ;; 15607esac 15608 15609fi 15610 15611ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 15612if test "x$ac_cv_func_cbrt" = xyes; then : 15613 $as_echo "#define HAVE_CBRT 1" >>confdefs.h 15614 15615else 15616 case " $LIBOBJS " in 15617 *" cbrt.$ac_objext "* ) ;; 15618 *) LIBOBJS="$LIBOBJS cbrt.$ac_objext" 15619 ;; 15620esac 15621 15622fi 15623 15624ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15625if test "x$ac_cv_func_strlcpy" = xyes; then : 15626 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 15627 15628else 15629 case " $LIBOBJS " in 15630 *" strlcpy.$ac_objext "* ) ;; 15631 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15632 ;; 15633esac 15634 15635fi 15636 15637ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15638if test "x$ac_cv_func_strlcat" = xyes; then : 15639 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 15640 15641else 15642 case " $LIBOBJS " in 15643 *" strlcat.$ac_objext "* ) ;; 15644 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15645 ;; 15646esac 15647 15648fi 15649 15650ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" 15651if test "x$ac_cv_func_ffs" = xyes; then : 15652 $as_echo "#define HAVE_FFS 1" >>confdefs.h 15653 15654else 15655 case " $LIBOBJS " in 15656 *" ffs.$ac_objext "* ) ;; 15657 *) LIBOBJS="$LIBOBJS ffs.$ac_objext" 15658 ;; 15659esac 15660 15661fi 15662 15663ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 15664if test "x$ac_cv_func_setproctitle" = xyes; then : 15665 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h 15666 15667else 15668 case " $LIBOBJS " in 15669 *" setproctitle.$ac_objext "* ) ;; 15670 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" 15671 ;; 15672esac 15673 15674fi 15675 15676 15677 15678# for missing/setproctitle.c 15679case "$target_os" in #( 15680 aix* | k*bsd*-gnu | kopensolaris*-gnu | linux* | darwin*) : 15681 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 15682 ;; #( 15683 hpux*) : 15684 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 15685 ;; #( 15686 *) : 15687 ;; 15688esac 15689for ac_header in sys/pstat.h 15690do : 15691 ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" 15692if test "x$ac_cv_header_sys_pstat_h" = xyes; then : 15693 cat >>confdefs.h <<_ACEOF 15694#define HAVE_SYS_PSTAT_H 1 15695_ACEOF 15696 15697fi 15698 15699done 15700 15701 15702 15703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit" >&5 15704$as_echo_n "checking for signbit... " >&6; } 15705if ${rb_cv_have_signbit+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15709/* end confdefs.h. */ 15710 15711#include <math.h> 15712 15713int 15714main () 15715{ 15716int v = signbit(-0.0); 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721if ac_fn_c_try_link "$LINENO"; then : 15722 rb_cv_have_signbit=yes 15723else 15724 rb_cv_have_signbit=no 15725fi 15726rm -f core conftest.err conftest.$ac_objext \ 15727 conftest$ac_exeext conftest.$ac_ext 15728fi 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_signbit" >&5 15730$as_echo "$rb_cv_have_signbit" >&6; } 15731if test "$rb_cv_have_signbit" = yes; then 15732 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h 15733 15734else 15735 case " $LIBOBJS " in 15736 *" signbit.$ac_objext "* ) ;; 15737 *) LIBOBJS="$LIBOBJS signbit.$ac_objext" 15738 ;; 15739esac 15740 15741fi 15742for ac_func in fmod killpg wait4 waitpid fork spawnv syscall __syscall chroot getcwd eaccess\ 15743 truncate ftruncate ftello chsize times utimes utimensat fcntl lockf lstat\ 15744 truncate64 ftruncate64 ftello64 fseeko fseeko64 \ 15745 link symlink readlink readdir_r fsync fdatasync fchown posix_fadvise\ 15746 setitimer setruid seteuid setreuid setresuid socketpair\ 15747 setrgid setegid setregid setresgid issetugid pause lchown lchmod\ 15748 getpgrp setpgrp getpgid setpgid initgroups getgroups setgroups\ 15749 getpriority getrlimit setrlimit sysconf close getpwnam_r getgrnam_r\ 15750 dlopen sigprocmask sigaction sigsetjmp _setjmp _longjmp\ 15751 getsid setsid telldir seekdir fchmod cosh sinh tanh log2 round llabs\ 15752 setuid setgid daemon select_large_fdset setenv unsetenv\ 15753 mktime timegm gmtime_r clock_gettime gettimeofday poll ppoll\ 15754 pread sendfile shutdown sigaltstack dl_iterate_phdr\ 15755 dup dup3 pipe2 posix_memalign memalign ioctl 15756do : 15757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15758ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15759if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15760 cat >>confdefs.h <<_ACEOF 15761#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15762_ACEOF 15763 15764fi 15765done 15766 15767 15768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv returns a value" >&5 15769$as_echo_n "checking for unsetenv returns a value... " >&6; } 15770if ${rb_cv_unsetenv_return_value+:} false; then : 15771 $as_echo_n "(cached) " >&6 15772else 15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15774/* end confdefs.h. */ 15775 15776#include <stdlib.h> 15777 15778int 15779main () 15780{ 15781int v = unsetenv("foo"); 15782 ; 15783 return 0; 15784} 15785_ACEOF 15786if ac_fn_c_try_compile "$LINENO"; then : 15787 rb_cv_unsetenv_return_value=yes 15788else 15789 rb_cv_unsetenv_return_value=no 15790fi 15791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15792fi 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_unsetenv_return_value" >&5 15794$as_echo "$rb_cv_unsetenv_return_value" >&6; } 15795if test "$rb_cv_unsetenv_return_value" = no; then 15796 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h 15797 15798fi 15799 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_setjmp" >&5 15801$as_echo_n "checking for __builtin_setjmp... " >&6; } 15802if ${ac_cv_func___builtin_setjmp+:} false; then : 15803 $as_echo_n "(cached) " >&6 15804else 15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15806/* end confdefs.h. */ 15807#include <setjmp.h> 15808 jmp_buf jb; void t(v) int v; {__builtin_longjmp(jb, v);} 15809int 15810main () 15811{ 15812__builtin_setjmp(jb); 15813 ; 15814 return 0; 15815} 15816_ACEOF 15817if ac_fn_c_try_link "$LINENO"; then : 15818 ac_cv_func___builtin_setjmp=yes 15819else 15820 ac_cv_func___builtin_setjmp=no 15821fi 15822rm -f core conftest.err conftest.$ac_objext \ 15823 conftest$ac_exeext conftest.$ac_ext 15824 15825fi 15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func___builtin_setjmp" >&5 15827$as_echo "$ac_cv_func___builtin_setjmp" >&6; } 15828 15829test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no 15830 15831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setjmp type" >&5 15832$as_echo_n "checking for setjmp type... " >&6; } 15833 15834# Check whether --with-setjmp-type was given. 15835if test "${with_setjmp_type+set}" = set; then : 15836 withval=$with_setjmp_type; 15837 case $withval in #( 15838 __builtin_setjmp) : 15839 setjmp_prefix=__builtin_ ;; #( 15840 _setjmp) : 15841 setjmp_prefix=_ ;; #( 15842 sigsetjmp) : 15843 setjmp_prefix=sig ;; #( 15844 setjmp) : 15845 setjmp_prefix= ;; #( 15846 '') : 15847 unset setjmp_prefix ;; #( 15848 *) : 15849 as_fn_error $? "invalid setjmp type: $withval" "$LINENO" 5 ;; 15850esac 15851else 15852 unset setjmp_prefix 15853fi 15854 15855if test ${setjmp_prefix+set}; then 15856 if test "${setjmp_prefix}" && eval test '$ac_cv_func_'${setjmp_prefix}setjmp = no; then 15857 as_fn_error $? "${setjmp_prefix}setjmp is not available" "$LINENO" 5 15858 fi 15859elif test "$ac_cv_func___builtin_setjmp" = yes; then 15860 setjmp_prefix=__builtin_ 15861elif test "$ac_cv_func__setjmp" = yes; then 15862 setjmp_prefix=_ 15863elif test "$ac_cv_func_sigsetjmp" = yes; then 15864 case $target_os in #( 15865 solaris*|cygwin*) : 15866 setjmp_prefix= ;; #( 15867 *) : 15868 setjmp_prefix=sig ;; 15869esac 15870else 15871 setjmp_prefix= 15872fi 15873if test x$setjmp_prefix = xsig; then 15874 setjmp_sigmask=yes 15875else 15876 unset setjmp_sigmask 15877fi 15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${setjmp_prefix}setjmp" >&5 15879$as_echo "${setjmp_prefix}setjmp" >&6; } 15880cat >>confdefs.h <<_ACEOF 15881#define RUBY_SETJMP(env) ${setjmp_prefix}setjmp(env${setjmp_sigmask+,0}) 15882_ACEOF 15883 15884cat >>confdefs.h <<_ACEOF 15885#define RUBY_LONGJMP(env,val) ${setjmp_prefix}longjmp(env,val) 15886_ACEOF 15887 15888cat >>confdefs.h <<_ACEOF 15889#define RUBY_JMP_BUF ${setjmp_sigmask+${setjmp_prefix}}jmp_buf 15890_ACEOF 15891 15892 15893# Check whether --enable-setreuid was given. 15894if test "${enable_setreuid+set}" = set; then : 15895 enableval=$enable_setreuid; use_setreuid=$enableval 15896fi 15897 15898if test "$use_setreuid" = yes; then 15899 $as_echo "#define USE_SETREUID 1" >>confdefs.h 15900 15901 $as_echo "#define USE_SETREGID 1" >>confdefs.h 15902 15903fi 15904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 15905$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 15906if ${ac_cv_struct_tm+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15910/* end confdefs.h. */ 15911#include <sys/types.h> 15912#include <time.h> 15913 15914int 15915main () 15916{ 15917struct tm tm; 15918 int *p = &tm.tm_sec; 15919 return !p; 15920 ; 15921 return 0; 15922} 15923_ACEOF 15924if ac_fn_c_try_compile "$LINENO"; then : 15925 ac_cv_struct_tm=time.h 15926else 15927 ac_cv_struct_tm=sys/time.h 15928fi 15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15930fi 15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 15932$as_echo "$ac_cv_struct_tm" >&6; } 15933if test $ac_cv_struct_tm = sys/time.h; then 15934 15935$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 15936 15937fi 15938 15939ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 15940#include <$ac_cv_struct_tm> 15941 15942" 15943if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 15944 15945cat >>confdefs.h <<_ACEOF 15946#define HAVE_STRUCT_TM_TM_ZONE 1 15947_ACEOF 15948 15949 15950fi 15951 15952if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 15953 15954$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 15955 15956else 15957 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 15958" 15959if test "x$ac_cv_have_decl_tzname" = xyes; then : 15960 ac_have_decl=1 15961else 15962 ac_have_decl=0 15963fi 15964 15965cat >>confdefs.h <<_ACEOF 15966#define HAVE_DECL_TZNAME $ac_have_decl 15967_ACEOF 15968 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 15970$as_echo_n "checking for tzname... " >&6; } 15971if ${ac_cv_var_tzname+:} false; then : 15972 $as_echo_n "(cached) " >&6 15973else 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976#include <time.h> 15977#if !HAVE_DECL_TZNAME 15978extern char *tzname[]; 15979#endif 15980 15981int 15982main () 15983{ 15984return tzname[0][0]; 15985 ; 15986 return 0; 15987} 15988_ACEOF 15989if ac_fn_c_try_link "$LINENO"; then : 15990 ac_cv_var_tzname=yes 15991else 15992 ac_cv_var_tzname=no 15993fi 15994rm -f core conftest.err conftest.$ac_objext \ 15995 conftest$ac_exeext conftest.$ac_ext 15996fi 15997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 15998$as_echo "$ac_cv_var_tzname" >&6; } 15999 if test $ac_cv_var_tzname = yes; then 16000 16001$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 16002 16003 fi 16004fi 16005 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff" >&5 16007$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } 16008if ${rb_cv_member_struct_tm_tm_gmtoff+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16012/* end confdefs.h. */ 16013#include <time.h> 16014int 16015main () 16016{ 16017struct tm t; t.tm_gmtoff = 3600; 16018 ; 16019 return 0; 16020} 16021_ACEOF 16022if ac_fn_c_try_compile "$LINENO"; then : 16023 rb_cv_member_struct_tm_tm_gmtoff=yes 16024else 16025 rb_cv_member_struct_tm_tm_gmtoff=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_member_struct_tm_tm_gmtoff" >&5 16030$as_echo "$rb_cv_member_struct_tm_tm_gmtoff" >&6; } 16031if test "$rb_cv_member_struct_tm_tm_gmtoff" = yes; then 16032 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 16033 16034fi 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external int daylight" >&5 16036$as_echo_n "checking for external int daylight... " >&6; } 16037if ${rb_cv_have_daylight+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042#include <time.h> 16043 int i; 16044int 16045main () 16046{ 16047i = daylight; 16048 ; 16049 return 0; 16050} 16051_ACEOF 16052if ac_fn_c_try_link "$LINENO"; then : 16053 rb_cv_have_daylight=yes 16054else 16055 rb_cv_have_daylight=no 16056fi 16057rm -f core conftest.err conftest.$ac_objext \ 16058 conftest$ac_exeext conftest.$ac_ext 16059fi 16060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_daylight" >&5 16061$as_echo "$rb_cv_have_daylight" >&6; } 16062if test "$rb_cv_have_daylight" = yes; then 16063 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 16064 16065fi 16066 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external timezone" >&5 16068$as_echo_n "checking for external timezone... " >&6; } 16069if ${rb_cv_var_timezone+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 rb_cv_var_timezone=no 16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16074/* end confdefs.h. */ 16075 16076#ifndef _XOPEN_SOURCE 16077#define _XOPEN_SOURCE 1 16078#endif 16079#include <time.h> 16080; 16081const volatile void *volatile t; 16082int 16083main () 16084{ 16085t = &(&timezone)[0]; 16086 ; 16087 return 0; 16088} 16089_ACEOF 16090if ac_fn_c_try_compile "$LINENO"; then : 16091 for t in long int; do 16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16093/* end confdefs.h. */ 16094 16095#ifndef _XOPEN_SOURCE 16096#define _XOPEN_SOURCE 1 16097#endif 16098#include <time.h> 16099; 16100extern $t timezone; 16101const volatile void *volatile t; 16102int 16103main () 16104{ 16105t = &(&timezone)[0]; 16106 ; 16107 return 0; 16108} 16109_ACEOF 16110if ac_fn_c_try_compile "$LINENO"; then : 16111 rb_cv_var_timezone=$t; break 16112fi 16113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16114 done 16115fi 16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_var_timezone" >&5 16119$as_echo "$rb_cv_var_timezone" >&6; } 16120if test "${rb_cv_var_timezone}" != no; then 16121 $as_echo "#define HAVE_VAR_TIMEZONE 1" >>confdefs.h 16122 16123 cat >>confdefs.h <<_ACEOF 16124#define TYPEOF_VAR_TIMEZONE ${rb_cv_var_timezone} 16125_ACEOF 16126 16127fi 16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external altzone" >&5 16129$as_echo_n "checking for external altzone... " >&6; } 16130if ${rb_cv_var_altzone+:} false; then : 16131 $as_echo_n "(cached) " >&6 16132else 16133 rb_cv_var_altzone=no 16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136 16137#ifndef _XOPEN_SOURCE 16138#define _XOPEN_SOURCE 1 16139#endif 16140#include <time.h> 16141; 16142const volatile void *volatile t; 16143int 16144main () 16145{ 16146t = &(&altzone)[0]; 16147 ; 16148 return 0; 16149} 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 for t in long int; do 16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16154/* end confdefs.h. */ 16155 16156#ifndef _XOPEN_SOURCE 16157#define _XOPEN_SOURCE 1 16158#endif 16159#include <time.h> 16160; 16161extern $t altzone; 16162const volatile void *volatile t; 16163int 16164main () 16165{ 16166t = &(&altzone)[0]; 16167 ; 16168 return 0; 16169} 16170_ACEOF 16171if ac_fn_c_try_compile "$LINENO"; then : 16172 rb_cv_var_altzone=$t; break 16173fi 16174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16175 done 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16178fi 16179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_var_altzone" >&5 16180$as_echo "$rb_cv_var_altzone" >&6; } 16181if test "${rb_cv_var_altzone}" != no; then 16182 $as_echo "#define HAVE_VAR_ALTZONE 1" >>confdefs.h 16183 16184 cat >>confdefs.h <<_ACEOF 16185#define TYPEOF_VAR_ALTZONE ${rb_cv_var_altzone} 16186_ACEOF 16187 16188fi 16189for ac_func in timezone 16190do : 16191 ac_fn_c_check_func "$LINENO" "timezone" "ac_cv_func_timezone" 16192if test "x$ac_cv_func_timezone" = xyes; then : 16193 cat >>confdefs.h <<_ACEOF 16194#define HAVE_TIMEZONE 1 16195_ACEOF 16196 16197fi 16198done 16199 16200if test "$ac_cv_func_timezone" = yes; then 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timezone requires zero arguments" >&5 16202$as_echo_n "checking whether timezone requires zero arguments... " >&6; } 16203if ${rb_cv_func_timezone_void+:} false; then : 16204 $as_echo_n "(cached) " >&6 16205else 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208#include <time.h> 16209int 16210main () 16211{ 16212(void)timezone(0, 0); 16213 ; 16214 return 0; 16215} 16216_ACEOF 16217if ac_fn_c_try_compile "$LINENO"; then : 16218 rb_cv_func_timezone_void=no 16219else 16220 rb_cv_func_timezone_void=yes 16221fi 16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16223 16224fi 16225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_timezone_void" >&5 16226$as_echo "$rb_cv_func_timezone_void" >&6; } 16227 if test $rb_cv_func_timezone_void = yes; then 16228 $as_echo "#define TIMEZONE_VOID 1" >>confdefs.h 16229 16230 fi 16231fi 16232 16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative time_t for gmtime(3)" >&5 16234$as_echo_n "checking for negative time_t for gmtime(3)... " >&6; } 16235if ${rb_cv_negative_time_t+:} false; then : 16236 $as_echo_n "(cached) " >&6 16237else 16238 if test "$cross_compiling" = yes; then : 16239 rb_cv_negative_time_t=yes 16240else 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243 16244#include <stdlib.h> 16245#include <time.h> 16246 16247void 16248check(tm, y, m, d, h, s) 16249 struct tm *tm; 16250 int y, m, d, h, s; 16251{ 16252 if (!tm || 16253 tm->tm_year != y || 16254 tm->tm_mon != m-1 || 16255 tm->tm_mday != d || 16256 tm->tm_hour != h || 16257 tm->tm_sec != s) { 16258 exit(1); 16259 } 16260} 16261 16262int 16263main() 16264{ 16265 time_t t = -1; 16266 struct tm *tm; 16267 16268 check(gmtime(&t), 69, 12, 31, 23, 59); 16269 t = ~(time_t)0 << 31; 16270 check(gmtime(&t), 1, 12, 13, 20, 52); 16271 return 0; 16272} 16273 16274_ACEOF 16275if ac_fn_c_try_run "$LINENO"; then : 16276 rb_cv_negative_time_t=yes 16277else 16278 rb_cv_negative_time_t=no 16279fi 16280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16281 conftest.$ac_objext conftest.beam conftest.$ac_ext 16282fi 16283 16284fi 16285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_negative_time_t" >&5 16286$as_echo "$rb_cv_negative_time_t" >&6; } 16287if test "$rb_cv_negative_time_t" = yes; then 16288 $as_echo "#define NEGATIVE_TIME_T 1" >>confdefs.h 16289 16290fi 16291 16292# [ruby-dev:40910] overflow of time on FreeBSD 16293# http://www.freebsd.org/cgi/query-pr.cgi?pr=145341 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime(3) overflow correctly" >&5 16295$as_echo_n "checking for localtime(3) overflow correctly... " >&6; } 16296if ${rb_cv_localtime_overflow+:} false; then : 16297 $as_echo_n "(cached) " >&6 16298else 16299 if test "$cross_compiling" = yes; then : 16300 rb_cv_localtime_overflow=yes 16301else 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304 16305#include <stdlib.h> 16306#include <time.h> 16307 16308void 16309check(time_t t1) 16310{ 16311 struct tm *tm; 16312 time_t t2; 16313 tm = localtime(&t1); 16314 if (!tm) 16315 return; /* overflow detected. ok. */ 16316 t2 = mktime(tm); 16317 if (t1 == t2) 16318 return; /* round-trip. ok. */ 16319 exit(1); 16320} 16321 16322int 16323main() 16324{ 16325 time_t t; 16326 if (~(time_t)0 <= 0) { 16327 t = (((time_t)1) << (sizeof(time_t) * 8 - 2)); 16328 t |= t - 1; 16329 } 16330 else { 16331 t = ~(time_t)0; 16332 } 16333 check(t); 16334 return 0; 16335} 16336 16337_ACEOF 16338if ac_fn_c_try_run "$LINENO"; then : 16339 rb_cv_localtime_overflow=yes 16340else 16341 rb_cv_localtime_overflow=no 16342fi 16343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16344 conftest.$ac_objext conftest.beam conftest.$ac_ext 16345fi 16346 16347fi 16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_localtime_overflow" >&5 16349$as_echo "$rb_cv_localtime_overflow" >&6; } 16350if test "$rb_cv_localtime_overflow" = no; then 16351 $as_echo "#define LOCALTIME_OVERFLOW_PROBLEM 1" >>confdefs.h 16352 16353fi 16354 16355if test "$ac_cv_func_sigprocmask" = yes && test "$ac_cv_func_sigaction" = yes; then 16356 $as_echo "#define POSIX_SIGNAL 1" >>confdefs.h 16357 16358else 16359 for ac_func in sigsetmask 16360do : 16361 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask" 16362if test "x$ac_cv_func_sigsetmask" = xyes; then : 16363 cat >>confdefs.h <<_ACEOF 16364#define HAVE_SIGSETMASK 1 16365_ACEOF 16366 16367fi 16368done 16369 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5 16371$as_echo_n "checking for BSD signal semantics... " >&6; } 16372if ${rb_cv_bsd_signal+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374else 16375 if test "$cross_compiling" = yes; then : 16376 rb_cv_bsd_signal=$ac_cv_func_sigsetmask 16377else 16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16379/* end confdefs.h. */ 16380 16381#include <stdio.h> 16382#include <signal.h> 16383 16384void 16385sig_handler(dummy) 16386 int dummy; 16387{ 16388} 16389 16390int 16391main() 16392{ 16393 signal(SIGINT, sig_handler); 16394 kill(getpid(), SIGINT); 16395 kill(getpid(), SIGINT); 16396 return 0; 16397} 16398 16399_ACEOF 16400if ac_fn_c_try_run "$LINENO"; then : 16401 rb_cv_bsd_signal=yes 16402else 16403 rb_cv_bsd_signal=no 16404fi 16405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16406 conftest.$ac_objext conftest.beam conftest.$ac_ext 16407fi 16408 16409fi 16410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_bsd_signal" >&5 16411$as_echo "$rb_cv_bsd_signal" >&6; } 16412 if test "$rb_cv_bsd_signal" = yes; then 16413 $as_echo "#define BSD_SIGNAL 1" >>confdefs.h 16414 16415 fi 16416fi 16417 16418if test "$ac_cv_func_getpgid" = no; then 16419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 16420$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 16421if ${ac_cv_func_getpgrp_void+:} false; then : 16422 $as_echo_n "(cached) " >&6 16423else 16424 # Use it with a single arg. 16425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16426/* end confdefs.h. */ 16427$ac_includes_default 16428int 16429main () 16430{ 16431getpgrp (0); 16432 ; 16433 return 0; 16434} 16435_ACEOF 16436if ac_fn_c_try_compile "$LINENO"; then : 16437 ac_cv_func_getpgrp_void=no 16438else 16439 ac_cv_func_getpgrp_void=yes 16440fi 16441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16442 16443fi 16444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 16445$as_echo "$ac_cv_func_getpgrp_void" >&6; } 16446if test $ac_cv_func_getpgrp_void = yes; then 16447 16448$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 16449 16450fi 16451 16452fi 16453if test "$ac_cv_func_setpgid:$ac_cv_func_setpgrp" = no:yes; then 16454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 16455$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 16456if ${ac_cv_func_setpgrp_void+:} false; then : 16457 $as_echo_n "(cached) " >&6 16458else 16459 if test "$cross_compiling" = yes; then : 16460 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 16461else 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464$ac_includes_default 16465int 16466main () 16467{ 16468/* If this system has a BSD-style setpgrp which takes arguments, 16469 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 16470 exit successfully. */ 16471 return setpgrp (1,1) != -1; 16472 ; 16473 return 0; 16474} 16475_ACEOF 16476if ac_fn_c_try_run "$LINENO"; then : 16477 ac_cv_func_setpgrp_void=no 16478else 16479 ac_cv_func_setpgrp_void=yes 16480fi 16481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16482 conftest.$ac_objext conftest.beam conftest.$ac_ext 16483fi 16484 16485fi 16486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 16487$as_echo "$ac_cv_func_setpgrp_void" >&6; } 16488if test $ac_cv_func_setpgrp_void = yes; then 16489 16490$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 16491 16492fi 16493 16494fi 16495 16496if test x"$target_cpu" = xia64; then 16497 case " $LIBOBJS " in 16498 *" ia64.$ac_objext "* ) ;; 16499 *) LIBOBJS="$LIBOBJS ia64.$ac_objext" 16500 ;; 16501esac 16502 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __libc_ia64_register_backing_store_base" >&5 16504$as_echo_n "checking for __libc_ia64_register_backing_store_base... " >&6; } 16505if ${rb_cv___libc_ia64_register_backing_store_base+:} false; then : 16506 $as_echo_n "(cached) " >&6 16507else 16508 rb_cv___libc_ia64_register_backing_store_base=no 16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16510/* end confdefs.h. */ 16511extern unsigned long __libc_ia64_register_backing_store_base; 16512int 16513main () 16514{ 16515unsigned long p = __libc_ia64_register_backing_store_base; 16516 printf("%ld\n", p); 16517 ; 16518 return 0; 16519} 16520_ACEOF 16521if ac_fn_c_try_link "$LINENO"; then : 16522 rb_cv___libc_ia64_register_backing_store_base=yes 16523fi 16524rm -f core conftest.err conftest.$ac_objext \ 16525 conftest$ac_exeext conftest.$ac_ext 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv___libc_ia64_register_backing_store_base" >&5 16528$as_echo "$rb_cv___libc_ia64_register_backing_store_base" >&6; } 16529 if test $rb_cv___libc_ia64_register_backing_store_base = yes; then 16530 $as_echo "#define HAVE___LIBC_IA64_REGISTER_BACKING_STORE_BASE 1" >>confdefs.h 16531 16532 fi 16533fi 16534 16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift preserve sign bit" >&5 16536$as_echo_n "checking whether right shift preserve sign bit... " >&6; } 16537if ${rb_cv_rshift_sign+:} false; then : 16538 $as_echo_n "(cached) " >&6 16539else 16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541/* end confdefs.h. */ 16542 16543int 16544main () 16545{ 16546static int test_array [1 - 2 * !((-1==(-1>>1)))]; 16547test_array [0] = 0; 16548return test_array [0]; 16549 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_c_try_compile "$LINENO"; then : 16555 rb_cv_rshift_sign=yes 16556else 16557 rb_cv_rshift_sign=no 16558fi 16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16560fi 16561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rshift_sign" >&5 16562$as_echo "$rb_cv_rshift_sign" >&6; } 16563if test "$rb_cv_rshift_sign" = yes; then 16564 $as_echo "#define RSHIFT(x,y) ((x)>>(int)(y))" >>confdefs.h 16565 16566else 16567 $as_echo "#define RSHIFT(x,y) (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y))" >>confdefs.h 16568 16569fi 16570 16571# win32.c still use this. Don't remove it. 16572test "$rb_cv_fcnt" = "not found" && rb_cv_fcnt="not found (OK if using GNU libc)" 16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking read count field in FILE structures" >&5 16574$as_echo_n "checking read count field in FILE structures... " >&6; } 16575if ${rb_cv_fcnt+:} false; then : 16576 $as_echo_n "(cached) " >&6 16577else 16578 rb_cv_fcnt="not found (OK if using GNU libc)" 16579for fcnt in _cnt __cnt _r readCount _rcount ; do 16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16581/* end confdefs.h. */ 16582#include <stdio.h> 16583 16584int 16585main () 16586{ 16587FILE *f = stdin; f->$fcnt = 0; 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592if ac_fn_c_try_compile "$LINENO"; then : 16593 rb_cv_fcnt="$fcnt"; break 16594fi 16595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16596done 16597fi 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_fcnt" >&5 16599$as_echo "$rb_cv_fcnt" >&6; } 16600case "$rb_cv_fcnt" in #( 16601 "not found"*) : 16602 rb_cv_fcnt="not found" ;; #( 16603 *) : 16604 cat >>confdefs.h <<_ACEOF 16605#define FILE_COUNT $rb_cv_fcnt 16606_ACEOF 16607 ;; 16608esac 16609 16610# win32.c still use this. Don't remove it. 16611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking read buffer ptr field in FILE structures" >&5 16612$as_echo_n "checking read buffer ptr field in FILE structures... " >&6; } 16613if ${rb_cv_frptr+:} false; then : 16614 $as_echo_n "(cached) " >&6 16615else 16616 for frptr in _IO_read_ptr _ptr __ptr bufpos _p __bufpos ; do 16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16618/* end confdefs.h. */ 16619#include <stdio.h> 16620 16621int 16622main () 16623{ 16624FILE *f = stdin; char buf[256]; f->$frptr = buf; 16625 ; 16626 return 0; 16627} 16628_ACEOF 16629if ac_fn_c_try_compile "$LINENO"; then : 16630 rb_cv_frptr="$frptr"; break 16631else 16632 rb_cv_frptr="not found" 16633fi 16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16635done 16636fi 16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_frptr" >&5 16638$as_echo "$rb_cv_frptr" >&6; } 16639if test "$rb_cv_frptr" != "not found"; then 16640 cat >>confdefs.h <<_ACEOF 16641#define FILE_READPTR $rb_cv_frptr 16642_ACEOF 16643 16644 16645 if test "$rb_cv_fcnt" = "not found"; then 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking read buffer end field in FILE structures" >&5 16647$as_echo_n "checking read buffer end field in FILE structures... " >&6; } 16648if ${rb_cv_frend+:} false; then : 16649 $as_echo_n "(cached) " >&6 16650else 16651 for frend in _IO_read_end bufread __bufread ; do 16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16653/* end confdefs.h. */ 16654#include <stdio.h> 16655 16656int 16657main () 16658{ 16659FILE *f = stdin; char buf[256]; f->$frend = buf; 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664if ac_fn_c_try_compile "$LINENO"; then : 16665 rb_cv_frend="$frend"; break 16666else 16667 rb_cv_frend="not found" 16668fi 16669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16670 done 16671fi 16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_frend" >&5 16673$as_echo "$rb_cv_frend" >&6; } 16674 if test "$rb_cv_frend" != "not found"; then 16675 cat >>confdefs.h <<_ACEOF 16676#define FILE_READEND $rb_cv_frend 16677_ACEOF 16678 16679 fi 16680 fi 16681fi 16682 16683 16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_ino" >&5 16685$as_echo_n "checking size of struct stat.st_ino... " >&6; } 16686if ${ac_cv_sizeof_struct_stat_st_ino+:} false; then : 16687 $as_echo_n "(cached) " >&6 16688else 16689 16690 unset ac_cv_sizeof_struct_stat_st_ino 16691 rbcv_var=" 16692typedef struct stat ac__type_sizeof_; 16693static ac__type_sizeof_ *rbcv_ptr; 16694#define SIZEOF_STRUCT_STAT_ST_INO sizeof((*rbcv_ptr).st_ino) 16695" 16696 test -z "${ac_cv_sizeof_struct_stat_st_ino+set}" && { 16697 for t in long "long long"; do 16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16699/* end confdefs.h. */ 16700#include <sys/stat.h> 16701 $rbcv_var 16702 16703int 16704main () 16705{ 16706static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_INO == sizeof($t))]; 16707test_array [0] = 0; 16708return test_array [0]; 16709 16710 ; 16711 return 0; 16712} 16713_ACEOF 16714if ac_fn_c_try_compile "$LINENO"; then : 16715 16716 ac_cv_sizeof_struct_stat_st_ino=`$as_echo "SIZEOF_$t" | $as_tr_cpp` 16717 break 16718fi 16719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16720 done 16721 } 16722 unset cond 16723 16724 test "${ac_cv_sizeof_struct_stat_st_ino#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_ino}" && { 16725 test "$universal_binary" = yes && cross_compiling=yes 16726 if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_INO" "t" "#include <sys/stat.h> 16727 16728${cond+$cond 16729#else} 16730$rbcv_var 16731${cond+#endif} 16732#ifndef SIZEOF_STRUCT_STAT_ST_INO 16733#define SIZEOF_STRUCT_STAT_ST_INO 0 16734#endif"; then : 16735 16736else 16737 t=0 16738fi 16739 16740 test "$universal_binary" = yes && cross_compiling=$real_cross_compiling 16741 if test ${t-0} != 0; then 16742 ac_cv_sizeof_struct_stat_st_ino="${ac_cv_sizeof_struct_stat_st_ino+${ac_cv_sizeof_struct_stat_st_ino-} }${t}" 16743 fi 16744 } 16745 : ${ac_cv_sizeof_struct_stat_st_ino=0} 16746 16747fi 16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_ino" >&5 16749$as_echo "$ac_cv_sizeof_struct_stat_st_ino" >&6; } 16750{ 16751 unset cond 16752 for t in ${ac_cv_sizeof_struct_stat_st_ino-}; do 16753 case "$t" in #( 16754 [0-9]*|SIZEOF_*) : 16755 16756 ${cond+echo "#else"} 16757 echo "#define SIZEOF_STRUCT_STAT_ST_INO $t" 16758 break 16759 ;; #( 16760 *) : 16761 16762 s=`expr $t : '.*[^0-9]\([0-9][0-9]*\)$'` 16763 echo "#${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)" 16764 echo "#define SIZEOF_STRUCT_STAT_ST_INO $[s / rb_cv_char_bit]" 16765 cond=1 16766 ;; 16767esac 16768 done 16769 ${cond+echo "#endif"} 16770} >> confdefs.h 16771 16772 16773 16774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent.d_name is too small" >&5 16775$as_echo_n "checking whether struct dirent.d_name is too small... " >&6; } 16776if ${rb_cv_sizeof_struct_dirent_too_small+:} false; then : 16777 $as_echo_n "(cached) " >&6 16778else 16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16780/* end confdefs.h. */ 16781 16782#if defined _WIN32 16783# error <<<struct direct in win32/dir.h has variable length d_name>>> 16784#elif defined HAVE_DIRENT_H 16785# include <dirent.h> 16786#elif defined HAVE_DIRECT_H 16787# include <direct.h> 16788#else 16789# define dirent direct 16790# if HAVE_SYS_NDIR_H 16791# include <sys/ndir.h> 16792# endif 16793# if HAVE_SYS_DIR_H 16794# include <sys/dir.h> 16795# endif 16796# if HAVE_NDIR_H 16797# include <ndir.h> 16798# endif 16799#endif 16800#include <stddef.h> 16801#define numberof(array) (int)(sizeof(array) / sizeof((array)[0])) 16802struct dirent d; 16803 16804 16805int 16806main () 16807{ 16808static int test_array [1 - 2 * !(offsetof(struct dirent, d_name[numberof(d.d_name)]) - offsetof(struct dirent, d_name) < 256)]; 16809test_array [0] = 0; 16810return test_array [0]; 16811 16812 ; 16813 return 0; 16814} 16815_ACEOF 16816if ac_fn_c_try_compile "$LINENO"; then : 16817 rb_cv_sizeof_struct_dirent_too_small=yes 16818else 16819 rb_cv_sizeof_struct_dirent_too_small=no 16820fi 16821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16822fi 16823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_sizeof_struct_dirent_too_small" >&5 16824$as_echo "$rb_cv_sizeof_struct_dirent_too_small" >&6; } 16825if test "$rb_cv_sizeof_struct_dirent_too_small" = yes; then 16826 $as_echo "#define SIZEOF_STRUCT_DIRENT_TOO_SMALL 1" >>confdefs.h 16827 16828fi 16829 16830if test "$ac_cv_func_sysconf" = yes; then 16831 16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _SC_CLK_TCK is supported" >&5 16833$as_echo_n "checking whether _SC_CLK_TCK is supported... " >&6; } 16834if ${rb_cv_have_sc_clk_tck+:} false; then : 16835 $as_echo_n "(cached) " >&6 16836else 16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16838/* end confdefs.h. */ 16839#include <unistd.h> 16840 16841int 16842main () 16843{ 16844_SC_CLK_TCK >= 0 16845 ; 16846 return 0; 16847} 16848_ACEOF 16849if ac_fn_c_try_compile "$LINENO"; then : 16850 rb_cv_have_sc_clk_tck=yes 16851else 16852 rb_cv_have_sc_clk_tck=no 16853fi 16854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16855 16856fi 16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_sc_clk_tck" >&5 16858$as_echo "$rb_cv_have_sc_clk_tck" >&6; } 16859 if test "$rb_cv_have_sc_clk_tck" = yes; then 16860 $as_echo "#define HAVE__SC_CLK_TCK 1" >>confdefs.h 16861 16862 fi 16863 16864fi 16865 16866 16867if test "${universal_binary-no}" = yes ; then 16868 archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` 16869 save_CFLAGS="$CFLAGS" new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'` 16870 save_LDFLAGS="$LDFLAGS" new_ldflags=`echo "$LDFLAGS" | sed "s|$archflagpat"'||'` 16871 stack_dir= 16872 for archs in ${universal_archnames}; do 16873 archs=`echo $archs | sed 's/=.*//'` 16874 CFLAGS="$new_cflags -arch $archs" 16875 LDFLAGS="$new_ldflags -arch $archs" 16876 16877 as_stack_grow_dir=`$as_echo "rb_cv_stack_grow_dir_$archs" | $as_tr_sh` 16878 16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $archs" >&5 16880$as_echo_n "checking stack growing direction on $archs... " >&6; } 16881if eval \${$as_stack_grow_dir+:} false; then : 16882 $as_echo_n "(cached) " >&6 16883else 16884 16885case "$archs" in #( 16886 m68*|x86*|x64|i?86|ia64|ppc*|sparc*|alpha*) : 16887 dir=-1 ;; #( 16888 hppa*) : 16889 dir=+1 ;; #( 16890 *) : 16891 16892 if test "$cross_compiling" = yes; then : 16893 dir=0 16894else 16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896/* end confdefs.h. */ 16897 16898/* recurse to get rid of inlining */ 16899static int 16900stack_growup_p(addr, n) 16901 volatile int *addr, n; 16902{ 16903 volatile int end; 16904 if (n > 0) 16905 return *addr = stack_growup_p(addr, n - 1); 16906 else 16907 return (&end > addr); 16908} 16909int main() 16910{ 16911 int x; 16912 return stack_growup_p(&x, 10); 16913} 16914 16915_ACEOF 16916if ac_fn_c_try_run "$LINENO"; then : 16917 dir=-1 16918else 16919 dir=+1 16920fi 16921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16922 conftest.$ac_objext conftest.beam conftest.$ac_ext 16923fi 16924 16925 ;; 16926esac 16927eval $as_stack_grow_dir=\$dir 16928fi 16929eval ac_res=\$$as_stack_grow_dir 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16931$as_echo "$ac_res" >&6; } 16932eval dir=\$$as_stack_grow_dir 16933 16934 if test x$stack_dir = x; then 16935 stack_dir=$dir 16936 elif test x$stack_dir != x$dir; then 16937 stack_dir=no 16938 fi 16939 done 16940 CFLAGS="$save_CFLAGS" LDFLAGS="$save_LDFLAGS" 16941 if test x$stack_dir = xno; then 16942 for archs in ${universal_archnames}; do 16943 archs=`echo $archs | sed 's/=.*//'` 16944 eval dir=\$rb_cv_stack_grow_dir_`$as_echo "$archs" | $as_tr_sh` 16945 test "Xdefined __${archs}__" = X || cat <<EOH >> confdefs.h 16946#if defined __${archs}__ 16947EOH 16948cat >>confdefs.h <<_ACEOF 16949#define STACK_GROW_DIRECTION $dir 16950_ACEOF 16951 test "Xdefined __${archs}__" = X || cat <<EOH >> confdefs.h 16952#endif /* defined __${archs}__ */ 16953EOH 16954 16955 done 16956 else 16957 cat >>confdefs.h <<_ACEOF 16958#define STACK_GROW_DIRECTION $stack_dir 16959_ACEOF 16960 16961 fi 16962else 16963 16964 as_stack_grow_dir=`$as_echo "rb_cv_stack_grow_dir_$target_cpu" | $as_tr_sh` 16965 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $target_cpu" >&5 16967$as_echo_n "checking stack growing direction on $target_cpu... " >&6; } 16968if eval \${$as_stack_grow_dir+:} false; then : 16969 $as_echo_n "(cached) " >&6 16970else 16971 16972case "$target_cpu" in #( 16973 m68*|x86*|x64|i?86|ia64|ppc*|sparc*|alpha*) : 16974 dir=-1 ;; #( 16975 hppa*) : 16976 dir=+1 ;; #( 16977 *) : 16978 16979 if test "$cross_compiling" = yes; then : 16980 dir=0 16981else 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984 16985/* recurse to get rid of inlining */ 16986static int 16987stack_growup_p(addr, n) 16988 volatile int *addr, n; 16989{ 16990 volatile int end; 16991 if (n > 0) 16992 return *addr = stack_growup_p(addr, n - 1); 16993 else 16994 return (&end > addr); 16995} 16996int main() 16997{ 16998 int x; 16999 return stack_growup_p(&x, 10); 17000} 17001 17002_ACEOF 17003if ac_fn_c_try_run "$LINENO"; then : 17004 dir=-1 17005else 17006 dir=+1 17007fi 17008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17009 conftest.$ac_objext conftest.beam conftest.$ac_ext 17010fi 17011 17012 ;; 17013esac 17014eval $as_stack_grow_dir=\$dir 17015fi 17016eval ac_res=\$$as_stack_grow_dir 17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17018$as_echo "$ac_res" >&6; } 17019eval dir=\$$as_stack_grow_dir 17020 17021 cat >>confdefs.h <<_ACEOF 17022#define STACK_GROW_DIRECTION $dir 17023_ACEOF 17024 17025fi 17026 17027if test x"$enable_pthread" = xyes; then 17028 for pthread_lib in thr pthread pthreads c c_r root; do 17029 as_ac_Lib=`$as_echo "ac_cv_lib_$pthread_lib''_pthread_kill" | $as_tr_sh` 17030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -l$pthread_lib" >&5 17031$as_echo_n "checking for pthread_kill in -l$pthread_lib... " >&6; } 17032if eval \${$as_ac_Lib+:} false; then : 17033 $as_echo_n "(cached) " >&6 17034else 17035 ac_check_lib_save_LIBS=$LIBS 17036LIBS="-l$pthread_lib $LIBS" 17037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039 17040/* Override any GCC internal prototype to avoid an error. 17041 Use char because int might match the return type of a GCC 17042 builtin and then its argument prototype would still apply. */ 17043#ifdef __cplusplus 17044extern "C" 17045#endif 17046char pthread_kill (); 17047int 17048main () 17049{ 17050return pthread_kill (); 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055if ac_fn_c_try_link "$LINENO"; then : 17056 eval "$as_ac_Lib=yes" 17057else 17058 eval "$as_ac_Lib=no" 17059fi 17060rm -f core conftest.err conftest.$ac_objext \ 17061 conftest$ac_exeext conftest.$ac_ext 17062LIBS=$ac_check_lib_save_LIBS 17063fi 17064eval ac_res=\$$as_ac_Lib 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17066$as_echo "$ac_res" >&6; } 17067if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17068 rb_with_pthread=yes 17069else 17070 rb_with_pthread=no 17071fi 17072 17073 if test "$rb_with_pthread" = "yes"; then break; fi 17074 done 17075 if test x"$rb_with_pthread" = xyes; then 17076 $as_echo "#define _REENTRANT 1" >>confdefs.h 17077 17078 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h 17079 17080 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 17081 17082 for ac_header in pthread_np.h 17083do : 17084 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h> 17085" 17086if test "x$ac_cv_header_pthread_np_h" = xyes; then : 17087 cat >>confdefs.h <<_ACEOF 17088#define HAVE_PTHREAD_NP_H 1 17089_ACEOF 17090 17091fi 17092 17093done 17094 17095 case $pthread_lib in #( 17096 c) : 17097 ;; #( 17098 root) : 17099 ;; #( 17100 c_r) : 17101 MAINLIBS="-pthread $MAINLIBS" ;; #( 17102 *) : 17103 case "$target_os" in #( 17104 openbsd*) : 17105 LIBS="-pthread $LIBS" ;; #( 17106 *) : 17107 LIBS="-l$pthread_lib $LIBS" ;; 17108esac ;; 17109esac 17110 else 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&5 17112$as_echo "$as_me: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&2;} 17113 fi 17114 for ac_func in sched_yield pthread_attr_setinheritsched \ 17115 pthread_getattr_np pthread_attr_get_np pthread_attr_getstack\ 17116 pthread_get_stackaddr_np pthread_get_stacksize_np \ 17117 thr_stksegment pthread_stackseg_np pthread_getthrds_np \ 17118 pthread_cond_init pthread_condattr_setclock pthread_condattr_init \ 17119 pthread_sigmask 17120do : 17121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17122ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17123if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17124 cat >>confdefs.h <<_ACEOF 17125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17126_ACEOF 17127 17128fi 17129done 17130 17131 if test "${host_os}" = "nacl"; then 17132 ac_cv_func_pthread_attr_init=no 17133 else 17134 for ac_func in pthread_attr_init 17135do : 17136 ac_fn_c_check_func "$LINENO" "pthread_attr_init" "ac_cv_func_pthread_attr_init" 17137if test "x$ac_cv_func_pthread_attr_init" = xyes; then : 17138 cat >>confdefs.h <<_ACEOF 17139#define HAVE_PTHREAD_ATTR_INIT 1 17140_ACEOF 17141 17142fi 17143done 17144 17145 fi 17146fi 17147if test x"$ac_cv_header_ucontext_h" = xyes; then 17148 if test x"$rb_with_pthread" = xyes; then 17149 for ac_func in getcontext setcontext 17150do : 17151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17152ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17153if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17154 cat >>confdefs.h <<_ACEOF 17155#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17156_ACEOF 17157 17158fi 17159done 17160 17161 fi 17162fi 17163 17164if test "$ac_cv_func_fork" = "yes" -a "$rb_with_pthread" = "yes"; then 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fork works with pthread" >&5 17166$as_echo_n "checking if fork works with pthread... " >&6; } 17167if ${rb_cv_fork_with_pthread+:} false; then : 17168 $as_echo_n "(cached) " >&6 17169else 17170 if test "$cross_compiling" = yes; then : 17171 rb_cv_fork_with_pthread=yes 17172else 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175 17176#include <stdlib.h> 17177#include <unistd.h> 17178#include <pthread.h> 17179#include <stdio.h> 17180#include <sys/types.h> 17181#include <sys/wait.h> 17182#include <signal.h> 17183#ifndef EXIT_SUCCESS 17184#define EXIT_SUCCESS 0 17185#endif 17186#ifndef EXIT_FAILURE 17187#define EXIT_FAILURE 1 17188#endif 17189 17190void * 17191thread_func(void *dmy) 17192{ 17193 return dmy; 17194} 17195 17196int 17197use_threads(void) 17198{ 17199 pthread_t tid; 17200 if (pthread_create(&tid, 0, thread_func, 0) != 0) { 17201 return -1; 17202 } 17203 if (pthread_join(tid, 0) != 0) { 17204 return -1; 17205 } 17206 return 0; 17207} 17208 17209int 17210main(int argc, char *argv[]) 17211{ 17212 pid_t pid; 17213 if (use_threads()) return EXIT_FAILURE; 17214 pid = fork(); 17215 17216 if (pid) { 17217 int loc; 17218 sleep(1); 17219 if (waitpid(pid, &loc, WNOHANG) == 0) { 17220 kill(pid, SIGKILL); 17221 return EXIT_FAILURE; 17222 } 17223 if (!WIFEXITED(loc) || WEXITSTATUS(loc) != EXIT_SUCCESS) 17224 return EXIT_FAILURE; 17225 } 17226 else { 17227 if (use_threads()) return EXIT_FAILURE; 17228 } 17229 17230 return EXIT_SUCCESS; 17231} 17232_ACEOF 17233if ac_fn_c_try_run "$LINENO"; then : 17234 rb_cv_fork_with_pthread=yes 17235else 17236 rb_cv_fork_with_pthread=no 17237fi 17238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17239 conftest.$ac_objext conftest.beam conftest.$ac_ext 17240fi 17241 17242fi 17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_fork_with_pthread" >&5 17244$as_echo "$rb_cv_fork_with_pthread" >&6; } 17245 test x$rb_cv_fork_with_pthread = xyes || $as_echo "#define CANNOT_FORK_WITH_PTHREAD 1" >>confdefs.h 17246 17247fi 17248 17249 17250} 17251{ # runtime section 17252 17253 17254# Check whether --with-dln-a-out was given. 17255if test "${with_dln_a_out+set}" = set; then : 17256 withval=$with_dln_a_out; 17257 case $withval in #( 17258 yes) : 17259 17260 if test "$enable_shared" = yes; then 17261 as_fn_error $? "dln_a_out can not make shared library" "$LINENO" 5 17262 fi 17263 with_dln_a_out=yes ;; #( 17264 *) : 17265 17266 with_dln_a_out=no ;; 17267esac 17268else 17269 with_dln_a_out=no 17270fi 17271 17272 17273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ELF binaries are produced" >&5 17274$as_echo_n "checking whether ELF binaries are produced... " >&6; } 17275if ${rb_cv_binary_elf+:} false; then : 17276 $as_echo_n "(cached) " >&6 17277else 17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280 17281int 17282main () 17283{ 17284 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289if ac_fn_c_try_link "$LINENO"; then : 17290 17291case "`head -1 conftest$EXEEXT | cat -e`" in #( 17292 '^?ELF'*) : 17293 rb_cv_binary_elf=yes ;; #( 17294 *) : 17295 rb_cv_binary_elf=no ;; 17296esac 17297else 17298 rb_cv_binary_elf=no 17299fi 17300rm -f core conftest.err conftest.$ac_objext \ 17301 conftest$ac_exeext conftest.$ac_ext 17302fi 17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_binary_elf" >&5 17304$as_echo "$rb_cv_binary_elf" >&6; } 17305 17306if test "$rb_cv_binary_elf" = yes; then 17307 $as_echo "#define USE_ELF 1" >>confdefs.h 17308 17309 if test "$with_dln_a_out" = yes; then 17310 as_fn_error $? "dln_a_out does not work with ELF" "$LINENO" 5 17311 fi 17312 for ac_header in elf.h elf_abi.h 17313do : 17314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17315ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17317 cat >>confdefs.h <<_ACEOF 17318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17319_ACEOF 17320 17321fi 17322 17323done 17324 17325 if test $ac_cv_header_elf_h = yes -o $ac_cv_header_elf_abi_h = yes; then 17326 case " $LIBOBJS " in 17327 *" addr2line.$ac_objext "* ) ;; 17328 *) LIBOBJS="$LIBOBJS addr2line.$ac_objext" 17329 ;; 17330esac 17331 17332 fi 17333fi 17334 17335case "$target_os" in #( 17336 linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu | nacl) : 17337 17338 if test "$rb_cv_binary_elf" = no; then 17339 with_dln_a_out=yes 17340 else 17341 LDFLAGS="$LDFLAGS -rdynamic" 17342 fi ;; #( 17343 *) : 17344 ;; 17345esac 17346LIBEXT=a 17347 17348 17349 17350STATIC= 17351: ${PATHFLAG=''} 17352 17353if test "$with_dln_a_out" != yes; then 17354 rb_cv_dlopen=unknown 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS depend dynamic link works" >&5 17356$as_echo_n "checking whether OS depend dynamic link works... " >&6; } 17357 if test "$GCC" = yes; then 17358 case "$target_os" in #( 17359 darwin*) : 17360 17361 # The -fno-common is needed if we wish to embed the Ruby interpreter 17362 # into a plugin module of some project (as opposed to embedding it 17363 # within the project's application). The -I/usr/local/include is 17364 # needed because CPP as discovered by configure (cc -E -traditional) 17365 # fails to consult /usr/local/include by default. This causes 17366 # mkmf.rb's have_header() to fail if the desired resource happens to be 17367 # installed in the /usr/local tree. 17368 # RUBY_APPEND_OPTION(CCDLFLAGS, -fno-common) 17369 case " ${CCDLFLAGS-} " in #( 17370 *' -fno-common '*) : 17371 ;; #( 17372 ' ') : 17373 CCDLFLAGS="-fno-common" ;; #( 17374 *) : 17375 CCDLFLAGS="$CCDLFLAGS -fno-common" ;; 17376esac ;; #( 17377 bsdi*|beos*|haiku*|cygwin*|mingw*|aix*|interix*) : 17378 ;; #( 17379 *) : 17380 17381 # RUBY_APPEND_OPTION(CCDLFLAGS, -fPIC) 17382 case " ${CCDLFLAGS-} " in #( 17383 *' -fPIC '*) : 17384 ;; #( 17385 ' ') : 17386 CCDLFLAGS="-fPIC" ;; #( 17387 *) : 17388 CCDLFLAGS="$CCDLFLAGS -fPIC" ;; 17389esac ;; 17390esac 17391 else 17392 case "$target_os" in #( 17393 hpux*) : 17394 CCDLFLAGS="$CCDLFLAGS +Z" ;; #( 17395 solaris*|irix*) : 17396 CCDLFLAGS="$CCDLFLAGS -KPIC" ;; #( 17397 sunos*) : 17398 CCDLFLAGS="$CCDLFLAGS -PIC" ;; #( 17399 esix*|uxpds*) : 17400 CCDLFLAGS="$CCDLFLAGS -KPIC" ;; #( 17401 *) : 17402 : ${CCDLFLAGS=""} ;; 17403esac 17404 fi 17405 17406 17407 # Check whether --enable-rpath was given. 17408if test "${enable_rpath+set}" = set; then : 17409 enableval=$enable_rpath; enable_rpath=$enableval 17410else 17411 enable_rpath="$rb_cv_binary_elf" 17412fi 17413 17414 if test "$enable_rpath" = yes; then 17415 RPATHFLAG=" ${linker_flag}-R%1\$-s" 17416 fi 17417 17418 case "$target_os" in #( 17419 hpux*) : 17420 DLDFLAGS="$DLDFLAGS -E" 17421 : ${LDSHARED='$(LD) -b'} 17422 XLDFLAGS="$XLDFLAGS -Wl,-E" 17423 : ${LIBPATHENV=SHLIB_PATH} 17424 if test "$rb_cv_prog_gnu_ld" = no; then 17425 RPATHFLAG=' +b %1$-s' 17426 fi 17427 rb_cv_dlopen=yes ;; #( 17428 solaris*) : 17429 if test "$GCC" = yes; then 17430 : ${LDSHARED='$(CC) -shared'} 17431 if test "$rb_cv_prog_gnu_ld" = yes; then 17432 LDFLAGS="$LDFLAGS -Wl,-E" 17433 fi 17434 else 17435 : ${LDSHARED='$(CC) -G'} 17436 fi 17437 if test "$ac_cv_sizeof_voidp" = 8; then 17438 : ${LIBPATHENV=LD_LIBRARY_PATH_64} 17439 fi 17440 rb_cv_dlopen=yes ;; #( 17441 sunos*) : 17442 : ${LDSHARED='$(LD) -assert nodefinitions'} 17443 rb_cv_dlopen=yes ;; #( 17444 irix*) : 17445 : ${LDSHARED='$(LD) -shared'} 17446 rb_cv_dlopen=yes ;; #( 17447 sysv4*) : 17448 : ${LDSHARED='$(LD) -G'} 17449 rb_cv_dlopen=yes ;; #( 17450 nto-qnx*) : 17451 : ${LDSHARED='$(CC) -shared'} 17452 rb_cv_dlopen=yes ;; #( 17453 esix*|uxpds*) : 17454 : ${LDSHARED='$(LD) -G'} 17455 rb_cv_dlopen=yes ;; #( 17456 osf*) : 17457 : ${LDSHARED='$(LD) -shared -expect_unresolved "*"'} 17458 rb_cv_dlopen=yes ;; #( 17459 bsdi3*) : 17460 case "$CC" in #( 17461 *shlicc*) : 17462 : ${LDSHARED='$(CC) -r'} 17463 rb_cv_dlopen=yes ;; #( 17464 *) : 17465 ;; 17466esac ;; #( 17467 linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu) : 17468 17469 : ${LDSHARED='$(CC) -shared'} 17470 if test "$rb_cv_binary_elf" = yes; then 17471 LDFLAGS="$LDFLAGS -Wl,-export-dynamic" 17472 fi 17473 rb_cv_dlopen=yes ;; #( 17474 interix*) : 17475 : ${LDSHARED='$(CC) -shared'} 17476 XLDFLAGS="$XLDFLAGS -Wl,-E" 17477 LIBPATHFLAG=" -L%1\$-s" 17478 rb_cv_dlopen=yes ;; #( 17479 freebsd*|dragonfly*) : 17480 17481 : ${LDSHARED='$(CC) -shared'} 17482 if test "$rb_cv_binary_elf" = yes; then 17483 LDFLAGS="$LDFLAGS -rdynamic" 17484 DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@' 17485 else 17486 test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' 17487 fi 17488 rb_cv_dlopen=yes ;; #( 17489 openbsd*|mirbsd*) : 17490 : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'} 17491 if test "$rb_cv_binary_elf" = yes; then 17492 LDFLAGS="$LDFLAGS -Wl,-E" 17493 fi 17494 rb_cv_dlopen=yes ;; #( 17495 darwin*) : 17496 : ${LDSHARED='$(CC) -dynamic -bundle'} 17497 : ${DLDFLAGS="${linker_flag}-undefined${linker_flag:+,}dynamic_lookup ${linker_flag}-multiply_defined${linker_flag:+,}suppress"} 17498 : ${LDFLAGS=""} 17499 : ${LIBPATHENV=DYLD_LIBRARY_PATH} 17500 # /usr/local/include is always searched for 17501 # some reason, but /usr/local/lib is not. 17502 hdr=`find /usr/local/include -name \*.h -type f | sed 's:^/usr/local/include/::;q'` 17503 if test -n "$hdr" && $CC -E -include "$hdr" -xc - </dev/null 2>/dev/null | fgrep -q "$hdr"; then 17504 $CC -print-search-dirs | grep -q '^libraries:.*:/usr/local/lib/*' || 17505 echo " $LDFLAGS " | grep -q ' -L */usr/local/lib/* ' || 17506 LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib" 17507 fi 17508 rb_cv_dlopen=yes ;; #( 17509 aix*) : 17510 : ${LDSHARED='$(CC)'} 17511 LDSHARED="$LDSHARED ${linker_flag}-G" 17512 EXTDLDFLAGS='-e$(TARGET_ENTRY)' 17513 XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl" 17514 XLDFLAGS="$XLDFLAGS ${linker_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}" 17515 : ${ARCHFILE="ruby.imp"} 17516 TRY_LINK='$(CC) $(LDFLAGS) -oconftest $(INCFLAGS) -I$(hdrdir) $(CPPFLAGS)' 17517 TRY_LINK="$TRY_LINK"' $(CFLAGS) $(src) $(LIBPATH) $(LOCAL_LIBS) $(LIBS)' 17518 : ${LIBPATHENV=LIBPATH} 17519 RPATHFLAG=" ${linker_flag}-blibpath:%1\$-s:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}" 17520 rb_cv_dlopen=yes ;; #( 17521 beos*) : 17522 case "$target_cpu" in #( 17523 powerpc*) : 17524 17525 : ${LDSHARED='$(LD) -xms'} 17526 EXTDLDFLAGS='-export $(TARGET_ENTRY)' 17527 DLDFLAGS="$DLDFLAGS -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o" 17528 LDFLAGS="$LDFLAGS -L/boot/home/config/lib -lbe -lroot" 17529 ;; #( 17530 i586*) : 17531 17532 : ${LDSHARED='$(LD) -shared'} 17533 DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib \$(topdir)/_APP_ -lroot" 17534 LDFLAGS="$LDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib -lroot" 17535 ;; #( 17536 *) : 17537 ;; 17538esac 17539 : ${LIBPATHENV=LIBRARY_PATH} 17540 rb_cv_dlopen=yes ;; #( 17541 haiku*) : 17542 case "$target_cpu" in #( 17543 powerpc*) : 17544 17545 : ${LDSHARED='$(LD) -xms'} 17546 EXTDLDFLAGS='-export $(TARGET_ENTRY)' 17547 DLDFLAGS="$DLDFLAGS -lroot glue-noinit.a init_term_dyn.o start_dyn.o" 17548 ;; #( 17549 i586*) : 17550 17551 : ${LDSHARED='$(LD) -shared'} 17552 DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lroot" 17553 ;; #( 17554 *) : 17555 ;; 17556esac 17557 : ${LIBPATHENV=LIBRARY_PATH} 17558 rb_cv_dlopen=yes ;; #( 17559 nto-qnx*) : 17560 DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" 17561 : ${LDSHARED='$(LD) -Bshareable -x'} 17562 LDFLAGS="$LDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" 17563 rb_cv_dlopen=yes ;; #( 17564 cygwin*|mingw*) : 17565 17566 : ${LDSHARED='$(CC) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)'} 17567 XLDFLAGS="$XLDFLAGS -Wl,--stack,0x00200000,--enable-auto-import" 17568 DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-image-base,--enable-auto-import" 17569 : ${LIBPATHENV=""} 17570 rb_cv_dlopen=yes ;; #( 17571 hiuxmpp) : 17572 : ${LDSHARED='$(LD) -r'} ;; #( 17573 atheos*) : 17574 : ${LDSHARED='$(CC) -shared'} 17575 rb_cv_dlopen=yes ;; #( 17576 os2-emx*) : 17577 LDFLAGS="$LDFLAGS -Zomf" 17578 ;; #( 17579 nacl) : 17580 LDSHARED='$(CC) -shared' ;; #( 17581 *) : 17582 : ${LDSHARED='$(LD)'} ;; 17583esac 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dlopen" >&5 17585$as_echo "$rb_cv_dlopen" >&6; } 17586fi 17587if test "${LDSHAREDXX}" = ""; then 17588 case "${LDSHARED}" in #( 17589 *'$(CC)'*) : 17590 17591 LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\$(CC)/$(CXX)/'` 17592 ;; #( 17593 *'${CC}'*) : 17594 17595 LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\${CC}/${CXX}/'` 17596 ;; #( 17597 *$CC*) : 17598 17599 LDSHAREDXX=`echo "${LDSHARED}" | sed "s|$CC|$CXX|"` 17600 ;; #( 17601 ld" "*) : 17602 17603 ;; #( 17604 *) : 17605 ;; 17606esac 17607fi 17608case ${RPATHFLAG} in #( 17609 *'%1$'*) : 17610 : ${LIBPATHFLAG=' -L%1$-s'} ;; #( 17611 *) : 17612 : ${LIBPATHFLAG=' -L%s'} ;; 17613esac 17614 17615 17616 17617 17618LIBPATHENV="${LIBPATHENV-LD_LIBRARY_PATH}" 17619 17620 17621 17622 17623# Check whether --with-opt-dir was given. 17624if test "${with_opt_dir+set}" = set; then : 17625 withval=$with_opt_dir; 17626 val=`echo "$PATH_SEPARATOR$withval" | sed "s|$PATH_SEPARATOR\([^$PATH_SEPARATOR]*\)| -I\1/include|g;s/^ //"` 17627 CPPFLAGS="$CPPFLAGS $val" 17628 val=`IFS="$PATH_SEPARATOR" 17629 for dir in $withval; do 17630 echo x ${LIBPATHFLAG} ${RPATHFLAG} | 17631 sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${dir}/lib${IFS}g;s${IFS}%s${IFS}${dir}/lib${IFS}g" 17632 done | tr '\012' ' '` 17633 LDFLAGS_OPTDIR="$val" 17634 LDFLAGS="$LDFLAGS${LDFLAGS:+ }$val" 17635 DLDFLAGS="$DLDFLAGS${DLDFLAGS:+ }$val" 17636 17637fi 17638 17639 17640case "$target_cpu-$target_os" in #( 17641 *-freebsd*|x86_64-netbsd*) : 17642 17643 for ac_header in execinfo.h 17644do : 17645 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 17646if test "x$ac_cv_header_execinfo_h" = xyes; then : 17647 cat >>confdefs.h <<_ACEOF 17648#define HAVE_EXECINFO_H 1 17649_ACEOF 17650 17651fi 17652 17653done 17654 17655 if test "x$ac_cv_header_execinfo_h" = xyes; then 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5 17657$as_echo_n "checking for backtrace in -lexecinfo... " >&6; } 17658if ${ac_cv_lib_execinfo_backtrace+:} false; then : 17659 $as_echo_n "(cached) " >&6 17660else 17661 ac_check_lib_save_LIBS=$LIBS 17662LIBS="-lexecinfo $LIBS" 17663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17664/* end confdefs.h. */ 17665 17666/* Override any GCC internal prototype to avoid an error. 17667 Use char because int might match the return type of a GCC 17668 builtin and then its argument prototype would still apply. */ 17669#ifdef __cplusplus 17670extern "C" 17671#endif 17672char backtrace (); 17673int 17674main () 17675{ 17676return backtrace (); 17677 ; 17678 return 0; 17679} 17680_ACEOF 17681if ac_fn_c_try_link "$LINENO"; then : 17682 ac_cv_lib_execinfo_backtrace=yes 17683else 17684 ac_cv_lib_execinfo_backtrace=no 17685fi 17686rm -f core conftest.err conftest.$ac_objext \ 17687 conftest$ac_exeext conftest.$ac_ext 17688LIBS=$ac_check_lib_save_LIBS 17689fi 17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 17691$as_echo "$ac_cv_lib_execinfo_backtrace" >&6; } 17692if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then : 17693 cat >>confdefs.h <<_ACEOF 17694#define HAVE_LIBEXECINFO 1 17695_ACEOF 17696 17697 LIBS="-lexecinfo $LIBS" 17698 17699fi 17700 17701 execinfo_frame_pointer=no 17702 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-omit-frame-pointer is accepted as CFLAGS" >&5 17704$as_echo_n "checking whether -fno-omit-frame-pointer is accepted as CFLAGS... " >&6; } 17705 save_CFLAGS="$CFLAGS" 17706CFLAGS="$CFLAGS $rb_cv_warnflags" 17707if test "${ac_c_werror_flag+set}"; then 17708 rb_c_werror_flag="$ac_c_werror_flag" 17709else 17710 unset rb_c_werror_flag 17711fi 17712ac_c_werror_flag=yes 17713 17714 CFLAGS="$CFLAGS -fno-omit-frame-pointer" 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717 17718int 17719main () 17720{ 17721 17722 ; 17723 return 0; 17724} 17725_ACEOF 17726if ac_fn_c_try_compile "$LINENO"; then : 17727 execinfo_frame_pointer=yes 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17729$as_echo "yes" >&6; } 17730else 17731 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17733$as_echo "no" >&6; } 17734fi 17735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17736 17737CFLAGS="$save_CFLAGS" 17738save_CFLAGS= 17739if test "${rb_c_werror_flag+set}"; then 17740 ac_c_werror_flag="$rb_c_werror_flag" 17741else 17742 unset ac_c_werror_flag 17743fi 17744 17745 if test "x$execinfo_frame_pointer" = xyes; then 17746 # optflags must be manipulated very carefully. For the 17747 # later cflagspat/cxxflagspat substitution to work, CFLAGS 17748 # and CXXFLAGS must start exactly with the value of 17749 # optflags. 17750 CFLAGS="${CFLAGS# }"; CFLAGS="${CFLAGS#"$optflags "}" 17751 CXXFLAGS="${CXXFLAGS# }"; CXXFLAGS="${CXXFLAGS#"$optflags "}" 17752 # RUBY_APPEND_OPTION(optflags, -fno-omit-frame-pointer) 17753 case " ${optflags-} " in #( 17754 *' -fno-omit-frame-pointer '*) : 17755 ;; #( 17756 ' ') : 17757 optflags="-fno-omit-frame-pointer" ;; #( 17758 *) : 17759 optflags="$optflags -fno-omit-frame-pointer" ;; 17760esac 17761 CFLAGS=" $optflags $CFLAGS" 17762 CXXFLAGS=" $optflags $CXXFLAGS" 17763 fi 17764 fi ;; #( 17765 *) : 17766 ;; 17767esac 17768for ac_func in backtrace 17769do : 17770 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 17771if test "x$ac_cv_func_backtrace" = xyes; then : 17772 cat >>confdefs.h <<_ACEOF 17773#define HAVE_BACKTRACE 1 17774_ACEOF 17775 17776fi 17777done 17778 17779 17780 17781# Check whether --with-valgrind was given. 17782if test "${with_valgrind+set}" = set; then : 17783 withval=$with_valgrind; 17784else 17785 with_valgrind=yes 17786fi 17787 17788if test x$with_valgrind != xno; then : 17789 for ac_header in valgrind/memcheck.h 17790do : 17791 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" 17792if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : 17793 cat >>confdefs.h <<_ACEOF 17794#define HAVE_VALGRIND_MEMCHECK_H 1 17795_ACEOF 17796 17797fi 17798 17799done 17800 17801fi 17802 17803dln_a_out_works=no 17804if test "$ac_cv_header_a_out_h" = yes; then 17805 if test "$with_dln_a_out" = yes || test "$rb_cv_dlopen" = unknown; then 17806 cat confdefs.h > config.h 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether matz's dln works" >&5 17808$as_echo_n "checking whether matz's dln works... " >&6; } 17809if ${rb_cv_dln_a_out+:} false; then : 17810 $as_echo_n "(cached) " >&6 17811else 17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17813/* end confdefs.h. */ 17814 17815#define USE_DLN_A_OUT 17816#include "dln.c" 17817 17818int 17819main () 17820{ 17821 17822 ; 17823 return 0; 17824} 17825_ACEOF 17826if ac_fn_c_try_compile "$LINENO"; then : 17827 rb_cv_dln_a_out=yes 17828else 17829 rb_cv_dln_a_out=no 17830fi 17831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17832fi 17833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dln_a_out" >&5 17834$as_echo "$rb_cv_dln_a_out" >&6; } 17835 if test "$rb_cv_dln_a_out" = yes; then 17836 dln_a_out_works=yes 17837 $as_echo "#define USE_DLN_A_OUT 1" >>confdefs.h 17838 17839 fi 17840 fi 17841fi 17842 17843if test "$dln_a_out_works" = yes; then 17844 if test "$GCC" = yes; then 17845 STATIC=-static 17846 else 17847 STATIC=-Bstatic 17848 fi 17849 DLEXT=so 17850 CCDLFLAGS= 17851else 17852 case "$target_os" in #( 17853 hpux*) : 17854 17855 DLEXT=sl ;; #( 17856 darwin*) : 17857 17858 # RUBY_APPEND_OPTION(XLDFLAGS, -Wl,-u,_objc_msgSend) 17859 case " ${XLDFLAGS-} " in #( 17860 *' -Wl,-u,_objc_msgSend '*) : 17861 ;; #( 17862 ' ') : 17863 XLDFLAGS="-Wl,-u,_objc_msgSend" ;; #( 17864 *) : 17865 XLDFLAGS="$XLDFLAGS -Wl,-u,_objc_msgSend" ;; 17866esac 17867 DLEXT=bundle ;; #( 17868 os2-emx*) : 17869 17870 LOAD_RELATIVE=1 17871 DLEXT=dll ;; #( 17872 cygwin*|mingw*|*djgpp*) : 17873 17874 LOAD_RELATIVE=1 17875 DLEXT=so ;; #( 17876 *) : 17877 17878 DLEXT=so ;; 17879esac 17880fi 17881if test "$rb_cv_dlopen:$load_relative" = yes:yes; then 17882 for ac_func in dladdr 17883do : 17884 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" 17885if test "x$ac_cv_func_dladdr" = xyes; then : 17886 cat >>confdefs.h <<_ACEOF 17887#define HAVE_DLADDR 1 17888_ACEOF 17889 17890fi 17891done 17892 17893 if test "$ac_cv_func_dladdr" = yes; then 17894 LOAD_RELATIVE=1 17895 fi 17896fi 17897if test x"$LOAD_RELATIVE" = x1; then 17898 load_relative=yes 17899else 17900 unset load_relative 17901fi 17902 17903len=2 # .rb 17904n=`expr "$DLEXT" : '.*'`; test "$n" -gt "$len" && len=$n 17905n=`expr "$DLEXT2" : '.*'`; test "$n" -gt "$len" && len=$n 17906cat >>confdefs.h <<_ACEOF 17907#define DLEXT_MAXLEN `expr $len + 1` 17908_ACEOF 17909 17910test ".$DLEXT" = "." || cat >>confdefs.h <<_ACEOF 17911#define DLEXT ".$DLEXT" 17912_ACEOF 17913 17914test ".$DLEXT2" = "." || cat >>confdefs.h <<_ACEOF 17915#define DLEXT2 ".$DLEXT2" 17916_ACEOF 17917 17918 17919 17920if test "$with_dln_a_out" = yes; then 17921 STRIP=true 17922else 17923 if test -n "$ac_tool_prefix"; then 17924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 17925set dummy ${ac_tool_prefix}strip; ac_word=$2 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17927$as_echo_n "checking for $ac_word... " >&6; } 17928if ${ac_cv_prog_STRIP+:} false; then : 17929 $as_echo_n "(cached) " >&6 17930else 17931 if test -n "$STRIP"; then 17932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 17933else 17934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17935for as_dir in $PATH 17936do 17937 IFS=$as_save_IFS 17938 test -z "$as_dir" && as_dir=. 17939 for ac_exec_ext in '' $ac_executable_extensions; do 17940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17941 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 17942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17943 break 2 17944 fi 17945done 17946 done 17947IFS=$as_save_IFS 17948 17949fi 17950fi 17951STRIP=$ac_cv_prog_STRIP 17952if test -n "$STRIP"; then 17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 17954$as_echo "$STRIP" >&6; } 17955else 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17957$as_echo "no" >&6; } 17958fi 17959 17960 17961fi 17962if test -z "$ac_cv_prog_STRIP"; then 17963 ac_ct_STRIP=$STRIP 17964 # Extract the first word of "strip", so it can be a program name with args. 17965set dummy strip; ac_word=$2 17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17967$as_echo_n "checking for $ac_word... " >&6; } 17968if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970else 17971 if test -n "$ac_ct_STRIP"; then 17972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 17973else 17974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17975for as_dir in $PATH 17976do 17977 IFS=$as_save_IFS 17978 test -z "$as_dir" && as_dir=. 17979 for ac_exec_ext in '' $ac_executable_extensions; do 17980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17981 ac_cv_prog_ac_ct_STRIP="strip" 17982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17983 break 2 17984 fi 17985done 17986 done 17987IFS=$as_save_IFS 17988 17989fi 17990fi 17991ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 17992if test -n "$ac_ct_STRIP"; then 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 17994$as_echo "$ac_ct_STRIP" >&6; } 17995else 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17997$as_echo "no" >&6; } 17998fi 17999 18000 if test "x$ac_ct_STRIP" = x; then 18001 STRIP=":" 18002 else 18003 case $cross_compiling:$ac_tool_warned in 18004yes:) 18005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18007ac_tool_warned=yes ;; 18008esac 18009 STRIP=$ac_ct_STRIP 18010 fi 18011else 18012 STRIP="$ac_cv_prog_STRIP" 18013fi 18014fi 18015 18016case "$target_os" in #( 18017 linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu) : 18018 18019 STRIP="$STRIP -S -x" ;; #( 18020 darwin*) : 18021 18022 STRIP="$STRIP -A -n" ;; #( 18023 *) : 18024 ;; 18025esac 18026 18027 18028# Check whether --with-ext was given. 18029if test "${with_ext+set}" = set; then : 18030 withval=$with_ext; 18031fi 18032 18033 18034# Check whether --with-out-ext was given. 18035if test "${with_out_ext+set}" = set; then : 18036 withval=$with_out_ext; 18037fi 18038 18039EXTSTATIC= 18040 18041# Check whether --with-static-linked-ext was given. 18042if test "${with_static_linked_ext+set}" = set; then : 18043 withval=$with_static_linked_ext; case $withval in #( 18044 yes) : 18045 STATIC=;EXTSTATIC=static ;; #( 18046 *) : 18047 ;; 18048esac 18049fi 18050 18051if test x"$EXTSTATIC" = xstatic; then 18052 ENCOBJS='enc/encinit.$(OBJEXT) enc/libenc.$(LIBEXT) enc/libtrans.$(LIBEXT)' 18053 EXTOBJS='ext/extinit.$(OBJEXT)' 18054 cat >>confdefs.h <<_ACEOF 18055#define EXTSTATIC 1 18056_ACEOF 18057 18058fi 18059 18060 18061 18062case "$target_os" in #( 18063 os2-emx) : 18064 18065 setup=Setup.emx 18066 ;; #( 18067 *djgpp*) : 18068 18069 setup=Setup.dj 18070 ;; #( 18071 nacl) : 18072 18073 setup=Setup.nacl 18074 ;; #( 18075 *) : 18076 18077 setup=Setup 18078 ;; 18079esac 18080 18081 18082 18083test x"$prefix" = xNONE && prefix=$ac_default_prefix 18084test x"${exec_prefix}" = xNONE && exec_prefix="$prefix" 18085pat=`echo "${exec_prefix}" | tr -c '\012' .`'\(.*\)' 18086for var in bindir libdir; do 18087 eval val='"$'$var'"' 18088 case "$val" in #( 18089 "${exec_prefix}"*) : 18090 val='${exec_prefix}'"`expr \"$val\" : \"$pat\"`" ;; #( 18091 *) : 18092 ;; 18093esac 18094 eval $var='"$val"' 18095done 18096 18097BTESTRUBY='$(MINIRUBY)' 18098if test x"$cross_compiling" = xyes; then 18099 test x"$MINIRUBY" = x && MINIRUBY="${RUBY-$BASERUBY} -I`$CHDIR .; pwd` "-r'$(arch)-fake' 18100 XRUBY_LIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["libdir"]'` 18101 XRUBY_RUBYLIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["rubylibdir"]'` 18102 XRUBY_RUBYHDRDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["rubyhdrdir"]'` 18103 18104 18105 18106 PREP='$(arch)-fake.rb' 18107 RUNRUBY_COMMAND='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`' 18108 RUNRUBY='$(RUNRUBY_COMMAND)' 18109 XRUBY='$(MINIRUBY)' 18110 TEST_RUNNABLE=no 18111 CROSS_COMPILING=yes 18112 18113 if test "$host_os" = "nacl"; then 18114 if test "$build_cpu" = "$host_cpu" || test "${nacl_cv_cpu_nick}" = "x86" -a "$host_cpu" = "i686"; then 18115 nacl_cv_sel_ldr='`$(MINIRUBY) $(srcdir)/nacl/nacl-config.rb sel_ldr`' 18116 nacl_cv_irt_core='`$(MINIRUBY) $(srcdir)/nacl/nacl-config.rb irt_core`' 18117 nacl_cv_runnable_ld='`$(MINIRUBY) $(srcdir)/nacl/nacl-config.rb runnable_ld`' 18118 nacl_cv_host_lib='`$(MINIRUBY) $(srcdir)/nacl/nacl-config.rb host_lib`' 18119 TEST_RUNNABLE=yes 18120 BTESTRUBY="${nacl_cv_sel_ldr} -a -B ${nacl_cv_irt_core} -w 1:3 -w 2:4" 18121 BTESTRUBY="$BTESTRUBY -- ${nacl_cv_runnable_ld} --library-path ${nacl_cv_host_lib}" 18122 BTESTRUBY="$BTESTRUBY `pwd`/"'miniruby$(EXEEXT) -I`cd $(srcdir)/lib; pwd` -I.' 18123 BTESTRUBY="$BTESTRUBY"' -I$(EXTOUT)/common 3>&1 4>&2 1>/dev/null 2>/dev/null ' 18124 fi 18125 fi 18126else 18127 MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib -I.' 18128 MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common' 18129 PREP='miniruby$(EXEEXT)' 18130 RUNRUBY_COMMAND='$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=$(EXTOUT) $(RUNRUBYOPT)' 18131 RUNRUBY='$(RUNRUBY_COMMAND) --' 18132 XRUBY='$(RUNRUBY)' 18133 TEST_RUNNABLE=yes 18134 CROSS_COMPILING=no 18135fi 18136 18137 18138 18139 18140 18141 18142 18143 18144EXTOUT=${EXTOUT=.ext} 18145 18146 18147FIRSTMAKEFILE="" 18148LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a' 18149LIBRUBY='$(LIBRUBY_A)' 18150LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static' 18151LIBRUBYARG='$(LIBRUBYARG_STATIC)' 18152SOLIBS= 18153 18154case "$target_os" in #( 18155 cygwin*|mingw*|beos*|haiku*|darwin*|os2-emx*) : 18156 18157 : ${DLDLIBS=""} 18158 ;; #( 18159 *) : 18160 18161 DLDLIBS="$DLDLIBS -lc" 18162 ;; 18163esac 18164 18165 18166# Check whether --with-soname was given. 18167if test "${with_soname+set}" = set; then : 18168 withval=$with_soname; RUBY_SO_NAME=$withval 18169else 18170 RUBY_SO_NAME='$(RUBY_BASE_NAME)' 18171fi 18172 18173 18174LIBRUBY_LDSHARED=$LDSHARED 18175LIBRUBY_DLDFLAGS=$DLDFLAGS 18176LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)' 18177LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so' 18178ENABLE_SHARED=no 18179 18180# Check whether --enable-shared was given. 18181if test "${enable_shared+set}" = set; then : 18182 enableval=$enable_shared; enable_shared=$enableval 18183fi 18184 18185libprefix='$(libdir)' 18186LIBRUBY_RELATIVE=${load_relative-no} 18187case "$enable_shared" in #( 18188 yes) : 18189 18190 LIBRUBY='$(LIBRUBY_SO)' 18191 LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)' 18192 LIBRUBYARG='$(LIBRUBYARG_SHARED)' 18193 LIBRUBY_RELATIVE=no 18194 test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS" 18195 ENABLE_SHARED=yes 18196 if test "$rb_cv_binary_elf" = yes; then 18197 SOLIBS='$(LIBS)' 18198 fi 18199 18200 # libdir can be overridden in config.site file (on OpenSUSE at least). 18201 libdir_basename=lib 18202 if test "$bindir" = '${exec_prefix}/bin'; then 18203 case "$libdir" in #( 18204 '${exec_prefix}/'*) : 18205 libdir_basename=`basename "$libdir"` ;; #( 18206 *) : 18207 ;; 18208esac 18209 fi 18210 cat >>confdefs.h <<_ACEOF 18211#define LIBDIR_BASENAME "${libdir_basename}" 18212_ACEOF 18213 18214 18215 case "$target_os" in #( 18216 freebsd*|dragonfly*) : 18217 ;; #( 18218 *) : 18219 18220 if test "$GCC" = yes; then 18221 18222 save_LDFLAGS="$LDFLAGS" 18223 LDFLAGS="$LDFLAGS ${linker_flag}--no-undefined" 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${linker_flag}--no-undefined is accepted as LDFLAGS" >&5 18225$as_echo_n "checking whether ${linker_flag}--no-undefined is accepted as LDFLAGS... " >&6; } 18226 save_CFLAGS="$CFLAGS" 18227CFLAGS="$CFLAGS $rb_cv_warnflags" 18228if test "${ac_c_werror_flag+set}"; then 18229 rb_c_werror_flag="$ac_c_werror_flag" 18230else 18231 unset rb_c_werror_flag 18232fi 18233ac_c_werror_flag=yes 18234 18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18236/* end confdefs.h. */ 18237 18238int 18239main () 18240{ 18241 18242 ; 18243 return 0; 18244} 18245_ACEOF 18246if ac_fn_c_try_link "$LINENO"; then : 18247 no_undefined=yes 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18249$as_echo "yes" >&6; } 18250else 18251 no_undefined=no 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18253$as_echo "no" >&6; } 18254fi 18255rm -f core conftest.err conftest.$ac_objext \ 18256 conftest$ac_exeext conftest.$ac_ext 18257 18258CFLAGS="$save_CFLAGS" 18259save_CFLAGS= 18260if test "${rb_c_werror_flag+set}"; then 18261 ac_c_werror_flag="$rb_c_werror_flag" 18262else 18263 unset ac_c_werror_flag 18264fi 18265 LDFLAGS="$save_LDFLAGS" 18266 save_LDFLAGS= 18267 18268 if test "no_undefined" = yes; then 18269 # RUBY_APPEND_OPTION(EXTLDFLAGS, ${linker_flag}--no-undefined) 18270 case " ${EXTLDFLAGS-} " in #( 18271 *' ${linker_flag}--no-undefined '*) : 18272 ;; #( 18273 ' ') : 18274 EXTLDFLAGS="${linker_flag}--no-undefined" ;; #( 18275 *) : 18276 EXTLDFLAGS="$EXTLDFLAGS ${linker_flag}--no-undefined" ;; 18277esac 18278 fi 18279 fi 18280 ;; 18281esac 18282 18283 case "$target_os" in #( 18284 sunos4*) : 18285 18286 LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' 18287 ;; #( 18288 linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu) : 18289 18290 LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'" $LDFLAGS_OPTDIR" 18291 LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so' 18292 if test "$load_relative" = yes; then 18293 LIBRUBY_RPATHFLAGS="'-Wl,-rpath,\$\${ORIGIN}/../${libdir_basename}'" 18294 LIBRUBY_RELATIVE=yes 18295 fi 18296 ;; #( 18297 freebsd*|dragonfly*) : 18298 18299 SOLIBS='$(LIBS)' 18300 LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' 18301 if test "$rb_cv_binary_elf" != "yes" ; then 18302 LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" 18303 LIBRUBY_ALIASES='' 18304 fi 18305 ;; #( 18306 netbsd*) : 18307 18308 SOLIBS='$(LIBS)' 18309 LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' 18310 LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'" $LDFLAGS_OPTDIR" 18311 if test "$rb_cv_binary_elf" = yes; then # ELF platforms 18312 LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' 18313 else # a.out platforms 18314 LIBRUBY_ALIASES="" 18315 fi 18316 ;; #( 18317 openbsd*) : 18318 18319 SOLIBS='$(LIBS)' 18320 LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` 18321 ;; #( 18322 solaris*) : 18323 18324 SOLIBS='$(LIBS)' 18325 LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)' 18326 LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY) lib$(RUBY_SO_NAME).so' 18327 if test "$GCC" = yes; then 18328 LIBRUBY_DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(@F)' 18329 else 18330 LIBRUBY_DLDFLAGS="$DLDFLAGS "'-h $(@F)' 18331 fi 18332 XLDFLAGS="$XLDFLAGS "'-R${libdir}' 18333 ;; #( 18334 hpux*) : 18335 18336 XLDFLAGS="$XLDFLAGS "'-Wl,+s,+b,$(libdir)' 18337 LIBRUBY_SO='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR).$(TEENY)' 18338 LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).sl' 18339 ;; #( 18340 aix*) : 18341 18342 LIBRUBY_DLDFLAGS="${linker_flag}-bnoentry $XLDFLAGS $LDFLAGS_OPTDIR" 18343 LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}' 18344 SOLIBS='-lm -lc' 18345 ;; #( 18346 beos*) : 18347 18348 case "$target_cpu" in #( 18349 powerpc*) : 18350 18351 LIBRUBY_DLDFLAGS="-f ruby.exp -lnet -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o $LDFLAGS_OPTDIR" 18352 ;; #( 18353 *) : 18354 ;; 18355esac 18356 ;; #( 18357 darwin*) : 18358 18359 RUBY_SO_NAME="$RUBY_SO_NAME"'.$(MAJOR).$(MINOR).$(TEENY)' 18360 LIBRUBY_LDSHARED='$(CC) -dynamiclib' 18361 if test "$load_relative" = yes; then 18362 libprefix="@executable_path/../${libdir_basename}" 18363 LIBRUBY_RELATIVE=yes 18364 fi 18365 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-install_name '${libprefix}'/$(LIBRUBY_SO)' 18366 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-current_version $(MAJOR).$(MINOR).$(TEENY)' 18367 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-compatibility_version $(ruby_version)' 18368 if test "$visibility_option" = ld; then 18369 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_Init_*' 18370 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,*_threadptr_*' 18371 fi 18372 LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "' $(XLDFLAGS)' 18373 LIBRUBY_SO='lib$(RUBY_SO_NAME).dylib' 18374 LIBRUBY_ALIASES='lib$(RUBY_BASE_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_INSTALL_NAME).dylib' 18375 ;; #( 18376 interix*) : 18377 18378 LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' 18379 ;; #( 18380 mingw*|cygwin*|mswin*) : 18381 18382 LIBRUBY_RELATIVE=yes 18383 ;; #( 18384 *) : 18385 ;; 18386esac 18387 ;; #( 18388 *) : 18389 18390 LIBRUBYARG_SHARED= 18391 18392 # enable PIE if possible 18393 pie= 18394 case "$target_os" in #( 18395 haiku) : 18396 18397 # gcc supports PIE, but doesn't work correctly in Haiku 18398 pie=no 18399 ;; #( 18400 nacl) : 18401 18402 # -pie implies -shared for NaCl. 18403 pie=no 18404 ;; #( 18405 *) : 18406 ;; 18407esac 18408 if test "$GCC" = yes -a -z "$EXTSTATIC" -a "x$pie" != xno; then 18409 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is accepted as CFLAGS" >&5 18411$as_echo_n "checking whether -fPIE is accepted as CFLAGS... " >&6; } 18412 save_CFLAGS="$CFLAGS" 18413CFLAGS="$CFLAGS $rb_cv_warnflags" 18414if test "${ac_c_werror_flag+set}"; then 18415 rb_c_werror_flag="$ac_c_werror_flag" 18416else 18417 unset rb_c_werror_flag 18418fi 18419ac_c_werror_flag=yes 18420 18421 CFLAGS="$CFLAGS -fPIE" 18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18423/* end confdefs.h. */ 18424 18425int 18426main () 18427{ 18428 18429 ; 18430 return 0; 18431} 18432_ACEOF 18433if ac_fn_c_try_compile "$LINENO"; then : 18434 pie=yes 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18436$as_echo "yes" >&6; } 18437else 18438 pie=no 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18440$as_echo "no" >&6; } 18441fi 18442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18443 18444CFLAGS="$save_CFLAGS" 18445save_CFLAGS= 18446if test "${rb_c_werror_flag+set}"; then 18447 ac_c_werror_flag="$rb_c_werror_flag" 18448else 18449 unset ac_c_werror_flag 18450fi 18451 18452 if test "$pie" = yes; then 18453 # Use -fPIE when testing -pie. RUBY_TRY_LDFLAGS sets 18454 # $save_CFLAGS internally, so set other name here. 18455 save_CFLAGS_before_pie="$CFLAGS" 18456 CFLAGS="$CFLAGS -fPIE" 18457 18458 # gcc need -pie but clang need -Wl,-pie. 18459 for pie in -pie -Wl,-pie; do 18460 18461 save_LDFLAGS="$LDFLAGS" 18462 LDFLAGS="$LDFLAGS $pie" 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $pie is accepted as LDFLAGS" >&5 18464$as_echo_n "checking whether $pie is accepted as LDFLAGS... " >&6; } 18465 save_CFLAGS="$CFLAGS" 18466CFLAGS="$CFLAGS $rb_cv_warnflags" 18467if test "${ac_c_werror_flag+set}"; then 18468 rb_c_werror_flag="$ac_c_werror_flag" 18469else 18470 unset rb_c_werror_flag 18471fi 18472ac_c_werror_flag=yes 18473 18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18475/* end confdefs.h. */ 18476 18477int 18478main () 18479{ 18480 18481 ; 18482 return 0; 18483} 18484_ACEOF 18485if ac_fn_c_try_link "$LINENO"; then : 18486 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18488$as_echo "yes" >&6; } 18489else 18490 pie= 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18492$as_echo "no" >&6; } 18493fi 18494rm -f core conftest.err conftest.$ac_objext \ 18495 conftest$ac_exeext conftest.$ac_ext 18496 18497CFLAGS="$save_CFLAGS" 18498save_CFLAGS= 18499if test "${rb_c_werror_flag+set}"; then 18500 ac_c_werror_flag="$rb_c_werror_flag" 18501else 18502 unset ac_c_werror_flag 18503fi 18504 LDFLAGS="$save_LDFLAGS" 18505 save_LDFLAGS= 18506 18507 if test "x$pie" != x; then 18508 # RUBY_APPEND_OPTION(XCFLAGS, -fPIE) 18509 case " ${XCFLAGS-} " in #( 18510 *' -fPIE '*) : 18511 ;; #( 18512 ' ') : 18513 XCFLAGS="-fPIE" ;; #( 18514 *) : 18515 XCFLAGS="$XCFLAGS -fPIE" ;; 18516esac 18517 # RUBY_APPEND_OPTION(XLDFLAGS, $pie) 18518 case " ${XLDFLAGS-} " in #( 18519 *' $pie '*) : 18520 ;; #( 18521 ' ') : 18522 XLDFLAGS="$pie" ;; #( 18523 *) : 18524 XLDFLAGS="$XLDFLAGS $pie" ;; 18525esac 18526 break 18527 fi 18528 done 18529 CFLAGS="$save_CFLAGS_before_pie" 18530 fi 18531 fi 18532 ;; 18533esac 18534if test "$enable_rpath" = yes; then 18535 test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS " 18536 LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${libprefix} -L\$(libdir)" 18537 LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" 18538 LIBRUBYARG_STATIC="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_STATIC" 18539fi 18540 18541 18542LDFLAGS="-L. $LDFLAGS" 18543 18544 18545if test "$EXEEXT" = .exe; then 18546 EXECUTABLE_EXTS='".exe",".com",".cmd",".bat"' 18547 cat >>confdefs.h <<_ACEOF 18548#define EXECUTABLE_EXTS $EXECUTABLE_EXTS 18549_ACEOF 18550 18551 EXECUTABLE_EXTS=`echo $EXECUTABLE_EXTS | tr -d '"' | tr , ' '` 18552 18553fi 18554 18555# Check whether --enable-dtrace was given. 18556if test "${enable_dtrace+set}" = set; then : 18557 enableval=$enable_dtrace; enable_dtrace=$enableval 18558else 18559 enable_dtrace=auto 18560fi 18561 18562 18563if test "${enable_dtrace}" = "auto"; then 18564 if test x"$DTRACE" != x -a x"$cross_compiling" != xyes; then 18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dtrace USDT is available" >&5 18566$as_echo_n "checking whether dtrace USDT is available... " >&6; } 18567if ${rb_cv_dtrace_available+:} false; then : 18568 $as_echo_n "(cached) " >&6 18569else 18570 18571 echo "provider conftest{ probe fire(); };" > conftest_provider.d 18572 if $DTRACE -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null; then 18573 # DTrace is available on the system 18574 rb_cv_dtrace_available=yes 18575 else 18576 # DTrace is not available while dtrace command exists 18577 # for example FreeBSD 8 or FreeBSD 9 without DTrace build option 18578 rb_cv_dtrace_available=no 18579 fi 18580 rm -f conftest.co conftest_provider.dho 18581 18582fi 18583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dtrace_available" >&5 18584$as_echo "$rb_cv_dtrace_available" >&6; } 18585 18586 enable_dtrace=$rb_cv_dtrace_available 18587 else 18588 enable_dtrace=no 18589 fi 18590fi 18591 18592LIBRUBY_A_OBJS='$(OBJS)' 18593if test "${enable_dtrace}" = "yes"; then 18594 if test -z "$DTRACE"; then 18595 as_fn_error $? "dtrace(1) is missing" "$LINENO" 5 18596 elif test "$cross_compiling" = yes; then 18597 as_fn_error $? "--enable-dtrace, however, cross compiling" "$LINENO" 5 18598 else 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dtrace USDT is available" >&5 18600$as_echo_n "checking whether dtrace USDT is available... " >&6; } 18601if ${rb_cv_dtrace_available+:} false; then : 18602 $as_echo_n "(cached) " >&6 18603else 18604 18605 echo "provider conftest{ probe fire(); };" > conftest_provider.d 18606 if $DTRACE -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null; then 18607 # DTrace is available on the system 18608 rb_cv_dtrace_available=yes 18609 else 18610 # DTrace is not available while dtrace command exists 18611 # for example FreeBSD 8 or FreeBSD 9 without DTrace build option 18612 rb_cv_dtrace_available=no 18613 fi 18614 rm -f conftest.co conftest_provider.dho 18615 18616fi 18617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dtrace_available" >&5 18618$as_echo "$rb_cv_dtrace_available" >&6; } 18619 18620 enable_dtrace=$rb_cv_dtrace_available 18621 if test "${enable_dtrace}" = "no"; then 18622 as_fn_error $? "--enable-dtrace, however, USDT is not available" "$LINENO" 5 18623 fi 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DTRACE needs post processing" >&5 18625$as_echo_n "checking whether $DTRACE needs post processing... " >&6; } 18626if ${rb_cv_prog_dtrace_g+:} false; then : 18627 $as_echo_n "(cached) " >&6 18628else 18629 18630 if { 18631 echo "provider conftest{ probe fire(); };" > conftest_provider.d && 18632 dtrace -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null && 18633 cat >conftest.c <<_CONF && 18634 #include "conftest_provider.h" 18635 int main(void){ CONFTEST_FIRE(); return 0; } 18636_CONF 18637 $CC $CFLAGS -c -o conftest.o conftest.c && 18638 $DTRACE -G -s conftest_provider.d conftest.o 2>/dev/null 18639 }; then 18640 rb_cv_prog_dtrace_g=yes 18641 else 18642 rb_cv_prog_dtrace_g=no 18643 fi 18644 rm -f conftest.co conftest_provider.dho 18645 18646fi 18647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_dtrace_g" >&5 18648$as_echo "$rb_cv_prog_dtrace_g" >&6; } 18649 18650 if test "$rb_cv_prog_dtrace_g" = 'yes'; then 18651 DTRACE_OBJ='probes.$(OBJEXT)' 18652 DTRACE_GLOMMED_OBJ='ruby-glommed.$(OBJEXT)' 18653 LIBRUBY_A_OBJS='$(DTRACE_GLOMMED_OBJ)' 18654 fi 18655 case "${target_os}" in #( 18656 freebsd*) : 18657 18658 # FreeBSD's dtrace requires libelf 18659 LIBS="-lelf $LIBS" 18660 ;; #( 18661 *) : 18662 ;; 18663esac 18664 fi 18665 DTRACE_EXT=d 18666else 18667 DTRACE_EXT=dmyh 18668fi 18669 18670 18671 18672 18673 18674} 18675{ # build section 18676 18677RDOCTARGET="" 18678CAPITARGET="" 18679# Check whether --enable-install-doc was given. 18680if test "${enable_install_doc+set}" = set; then : 18681 enableval=$enable_install_doc; install_doc=$enableval 18682else 18683 install_doc=yes 18684fi 18685 18686# Check whether --enable-install-rdoc was given. 18687if test "${enable_install_rdoc+set}" = set; then : 18688 enableval=$enable_install_rdoc; install_rdoc=$enableval 18689else 18690 install_rdoc=yes 18691fi 18692 18693# Check whether --enable-install-capi was given. 18694if test "${enable_install_capi+set}" = set; then : 18695 enableval=$enable_install_capi; install_capi=$enableval 18696else 18697 install_capi=yes 18698fi 18699 18700 18701if test "$install_doc" != no; then 18702 if test "$install_rdoc" != no; then 18703 RDOCTARGET="rdoc" 18704 else 18705 RDOCTARGET="nodoc" 18706 fi 18707 if test "$install_capi" != no -a -n "$DOXYGEN"; then 18708 CAPITARGET="capi" 18709 else 18710 CAPITARGET="nodoc" 18711 fi 18712else 18713 RDOCTARGET="nodoc" 18714 CAPITARGET="nodoc" 18715fi 18716 18717 18718 18719 18720case "$RDOCTARGET:$CAPITARGET" in #( 18721 nodoc:nodoc) : 18722 INSTALLDOC=nodoc ;; #( 18723 *) : 18724 INSTALLDOC=all ;; 18725esac 18726 18727 18728if test "$rb_with_pthread" = "yes"; then 18729 THREAD_MODEL=pthread 18730fi 18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of external symbols" >&5 18732$as_echo_n "checking for prefix of external symbols... " >&6; } 18733if ${rb_cv_symbol_prefix+:} false; then : 18734 $as_echo_n "(cached) " >&6 18735else 18736 18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18738/* end confdefs.h. */ 18739extern void conftest_external(void) {} 18740int 18741main () 18742{ 18743 18744 ; 18745 return 0; 18746} 18747_ACEOF 18748if ac_fn_c_try_compile "$LINENO"; then : 18749 18750 rb_cv_symbol_prefix=`$NM conftest.$ac_objext | 18751 sed -n '/.*T[ ]\([^ ]*\)conftest_external.*/!d;s//\1/p;q'` 18752 18753else 18754 rb_cv_symbol_prefix='' 18755fi 18756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18757 test -n "$rb_cv_symbol_prefix" || rb_cv_symbol_prefix=NONE 18758 18759fi 18760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_symbol_prefix" >&5 18761$as_echo "$rb_cv_symbol_prefix" >&6; } 18762SYMBOL_PREFIX="$rb_cv_symbol_prefix" 18763test "x$SYMBOL_PREFIX" = xNONE && SYMBOL_PREFIX='' 18764DLNOBJ=dln.o 18765# Check whether --enable-dln was given. 18766if test "${enable_dln+set}" = set; then : 18767 enableval=$enable_dln; test "$enableval" = yes || DLNOBJ=dmydln.o 18768fi 18769 18770 18771MINIDLNOBJ=dmydln.o 18772 18773case "$target_os" in #( 18774 linux*) : 18775 18776 ;; #( 18777 netbsd*) : 18778 18779 # RUBY_APPEND_OPTION(CFLAGS, -pipe) 18780 case " ${CFLAGS-} " in #( 18781 *' -pipe '*) : 18782 ;; #( 18783 ' ') : 18784 CFLAGS="-pipe" ;; #( 18785 *) : 18786 CFLAGS="$CFLAGS -pipe" ;; 18787esac 18788 ;; #( 18789 darwin*) : 18790 18791 # RUBY_APPEND_OPTION(CFLAGS, -pipe) 18792 case " ${CFLAGS-} " in #( 18793 *' -pipe '*) : 18794 ;; #( 18795 ' ') : 18796 CFLAGS="-pipe" ;; #( 18797 *) : 18798 CFLAGS="$CFLAGS -pipe" ;; 18799esac 18800 ;; #( 18801 os2-emx) : 18802 18803 case " $LIBOBJS " in 18804 *" os2.$ac_objext "* ) ;; 18805 *) LIBOBJS="$LIBOBJS os2.$ac_objext" 18806 ;; 18807esac 18808 18809 CFLAGS="$CFLAGS -DOS2" 18810 LIBRUBY_A=`echo $LIBRUBY_A | sed 's/^lib//'` 18811 LIBRUBY_SO=`echo $LIBRUBY_SO | sed 's/^lib//'` 18812 LIBRUBY_ALIASES=`for i in $LIBRUBY_ALIASES; do echo "$i"; done | sed 's/^lib//'` 18813 ;; #( 18814 osf*) : 18815 18816 if test "$GCC" != "yes" ; then 18817 # compile something small: taint.c is fine for this. 18818 # the main point is the '-v' flag of 'cc'. 18819 case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in #( 18820 */gemc_cc*) : 18821 # we have the new DEC GEM CC 18822 CFLAGS="$CFLAGS -oldc" 18823 ;; #( 18824 *) : 18825 # we have the old MIPS CC 18826 ;; 18827esac 18828 # cleanup 18829 rm -f /tmp/main.o 18830 CFLAGS="$CFLAGS -std" 18831 fi 18832 ;; #( 18833 beos*) : 18834 18835 case "$target_cpu" in #( 18836 powerpc*) : 18837 CFLAGS="$CFLAGS -relax_pointers" ;; #( 18838 *) : 18839 ;; 18840esac 18841 CPPFLAGS="$CPPFLAGS -I/boot/home/config/include" 18842 ;; #( 18843 cygwin*|mingw*) : 18844 18845 RUBY_SO_NAME="${RUBY_SO_NAME}"'$(MAJOR)$(MINOR)$(TEENY)' 18846 LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)' 18847 case "$target_os" in #( 18848 cygwin*) : 18849 18850 if test x"$enable_shared" = xyes; then 18851 LIBRUBY_SO='cyg$(RUBY_SO_NAME)'.dll 18852 LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)' 18853 fi 18854 ;; #( 18855 mingw*) : 18856 18857 RUBY_SO_NAME="${rb_cv_msvcrt}-${RUBY_SO_NAME}" 18858 if test x"${target_cpu}" != xi386; then 18859 RUBY_SO_NAME="${target_cpu}-${RUBY_SO_NAME}" 18860 fi 18861 if test x"$enable_shared" = xyes; then 18862 LIBRUBY_SO='$(RUBY_SO_NAME)'.dll 18863 LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)' 18864 fi 18865 EXPORT_PREFIX=' ' 18866 DLDFLAGS="${DLDFLAGS}"' $(DEFFILE)' 18867 case " $LIBOBJS " in 18868 *" win32/win32.$ac_objext "* ) ;; 18869 *) LIBOBJS="$LIBOBJS win32/win32.$ac_objext" 18870 ;; 18871esac 18872 18873 case " $LIBOBJS " in 18874 *" win32/file.$ac_objext "* ) ;; 18875 *) LIBOBJS="$LIBOBJS win32/file.$ac_objext" 18876 ;; 18877esac 18878 18879 COMMON_LIBS=m 18880# COMMON_MACROS="WIN32_LEAN_AND_MEAN=" 18881 COMMON_HEADERS="winsock2.h windows.h" 18882 THREAD_MODEL=win32 18883 PLATFORM_DIR=win32 18884 ;; #( 18885 *) : 18886 ;; 18887esac 18888 LIBRUBY_ALIASES='' 18889 FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in 18890 SOLIBS='$(LIBS)' 18891 if test x"$enable_shared" = xyes; then 18892 LIBRUBY='lib$(RUBY_SO_NAME).dll.a' 18893 else 18894 LIBRUBY_SO=dummy 18895 LIBRUBY='lib$(RUBY_SO_NAME).a' 18896 LIBRUBYARG='-l$(RUBY_SO_NAME)' 18897 fi 18898 ;; #( 18899 hpux*) : 18900 18901 case "$YACC" in #( 18902 *yacc*) : 18903 18904 XCFLAGS="$XCFLAGS -DYYMAXDEPTH=300" 18905 YACC="$YACC -Nl40000 -Nm40000" 18906 ;; #( 18907 *) : 18908 ;; 18909esac ;; #( 18910 nacl) : 18911 18912 FIRSTMAKEFILE=GNUmakefile:nacl/GNUmakefile.in 18913 ;; #( 18914 *) : 18915 ;; 18916esac 18917MINIOBJS="$MINIDLNOBJ" 18918 18919case "$THREAD_MODEL" in #( 18920 pthread) : 18921 for ac_header in pthread.h 18922do : 18923 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 18924if test "x$ac_cv_header_pthread_h" = xyes; then : 18925 cat >>confdefs.h <<_ACEOF 18926#define HAVE_PTHREAD_H 1 18927_ACEOF 18928 18929fi 18930 18931done 18932 ;; #( 18933 win32) : 18934 ;; #( 18935 "") : 18936 as_fn_error $? "thread model is missing" "$LINENO" 5 ;; #( 18937 *) : 18938 as_fn_error $? "unknown thread model $THREAD_MODEL" "$LINENO" 5 ;; 18939esac 18940 18941# Check whether --enable-debug-env was given. 18942if test "${enable_debug_env+set}" = set; then : 18943 enableval=$enable_debug_env; $as_echo "#define RUBY_DEBUG_ENV 1" >>confdefs.h 18944 18945fi 18946 18947 18948case "$FIRSTMAKEFILE" in #( 18949 *GNUmakefile:*) : 18950 gnumake=yes ;; #( 18951 *) : 18952 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5 18954$as_echo_n "checking if ${MAKE-make} is GNU make... " >&6; } 18955 mkdir conftest.dir 18956 echo "all:; @echo yes" > conftest.dir/GNUmakefile 18957 echo "all:; @echo no" > conftest.dir/Makefile 18958 gnumake=`(cd conftest.dir; ${MAKE-make})` 18959 rm -fr conftest.dir 18960 case "$gnumake" in #( 18961 *yes*) : 18962 18963 echo '# -*- makefile -*-' > GNUmakefile 18964 echo 'override MFLAGS := $(filter-out -j%,$(MFLAGS))' >> GNUmakefile 18965 echo "include Makefile" >> GNUmakefile 18966 echo "-include uncommon.mk" >> GNUmakefile 18967 gnumake=yes ;; #( 18968 *) : 18969 18970 gnumake=no ;; 18971esac 18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnumake" >&5 18973$as_echo "$gnumake" >&6; } 18974 ;; 18975esac 18976if test "$gnumake" = yes; then : 18977 NULLCMD=: 18978else 18979 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for safe null command for ${MAKE-make}" >&5 18981$as_echo_n "checking for safe null command for ${MAKE-make}... " >&6; } 18982 mkdir conftest.dir 18983 NULLCMD= 18984 for cmd in : true; do 18985 echo 'A=1' > conftest.dir/Makefile 18986 echo 'B=$(A:1=@'$cmd')' >> conftest.dir/Makefile 18987 echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile 18988 if (cd conftest.dir; ${MAKE-make} >/dev/null 2>/dev/null); then 18989 NULLCMD=$cmd 18990 break 18991 fi 18992 done 18993 rm -fr conftest.dir 18994 if test -z "$NULLCMD"; then 18995 as_fn_error $? "no candidate for safe null command" "$LINENO" 5 18996 fi 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NULLCMD" >&5 18998$as_echo "$NULLCMD" >&6; } 18999 19000fi 19001 19002 19003if test "${universal_binary-no}" = yes ; then 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture macros" >&5 19005$as_echo_n "checking for architecture macros... " >&6; } 19006if ${rb_cv_architecture_macros+:} false; then : 19007 $as_echo_n "(cached) " >&6 19008else 19009 19010 mv confdefs.h confdefs1.h 19011 : > confdefs.h 19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19013/* end confdefs.h. */ 19014#if defined __`echo ${universal_archnames} | 19015 sed 's/=[^ ]*//g;s/ /__ || defined __/g'`__ 19016#else 19017#error 19018>>>>>><<<<<< 19019#endif 19020int 19021main () 19022{ 19023 19024 ; 19025 return 0; 19026} 19027_ACEOF 19028if ac_fn_c_try_compile "$LINENO"; then : 19029 19030 rb_cv_architecture_macros=yes 19031 mv -f confdefs1.h confdefs.h 19032 19033else 19034 19035 rb_cv_architecture_macros=no 19036 archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` 19037 new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'` 19038 for archs in ${universal_archnames}; do 19039 cpu=${archs#*=} 19040 archs=${archs%=*} 19041 CFLAGS="$new_cflags -arch $archs" 19042 archs="__${archs}__" 19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macro ${archs} on ${cpu}" >&5 19044$as_echo_n "checking for macro ${archs} on ${cpu}... " >&6; } 19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19046/* end confdefs.h. */ 19047#ifndef ${archs} 19048#error 19049#endif 19050int 19051main () 19052{ 19053 19054 ; 19055 return 0; 19056} 19057_ACEOF 19058if ac_fn_c_try_compile "$LINENO"; then : 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19060$as_echo "yes" >&6; } 19061else 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19063$as_echo "no" >&6; } 19064fi 19065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19066 done 19067 mv -f confdefs1.h confdefs.h 19068 as_fn_error $? "failed" "$LINENO" 5 19069 19070fi 19071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19072fi 19073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_macros" >&5 19074$as_echo "$rb_cv_architecture_macros" >&6; } 19075fi 19076 19077ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 19078if test "x$ac_cv_func_memmem" = xyes; then : 19079 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken memmem" >&5 19081$as_echo_n "checking for broken memmem... " >&6; } 19082if ${rb_cv_broken_memmem+:} false; then : 19083 $as_echo_n "(cached) " >&6 19084else 19085 19086 if test "$cross_compiling" = yes; then : 19087 rb_cv_broken_memmem=yes 19088else 19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19090/* end confdefs.h. */ 19091 19092#include <string.h> 19093 19094int 19095main() 19096{ 19097 char *str = "hogefugafoobar"; 19098 char *rs = "foo"; 19099 char *empty = ""; 19100 char *p; 19101 19102 p = memmem(str, strlen(str), rs, strlen(rs)); 19103 if (p == str+8) { 19104 p = memmem(str, strlen(str), empty, strlen(empty)); 19105 if (p == str) 19106 return 0; 19107 else 19108 return 1; 19109 } 19110 else { 19111 return 1; 19112 } 19113} 19114 19115_ACEOF 19116if ac_fn_c_try_run "$LINENO"; then : 19117 rb_cv_broken_memmem=no 19118else 19119 rb_cv_broken_memmem=yes 19120fi 19121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19122 conftest.$ac_objext conftest.beam conftest.$ac_ext 19123fi 19124 19125 19126fi 19127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_memmem" >&5 19128$as_echo "$rb_cv_broken_memmem" >&6; } 19129 if test "$rb_cv_broken_memmem" = no; then 19130 $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h 19131 19132 fi 19133 19134fi 19135 19136 19137 19138CPPFLAGS="$CPPFLAGS "'$(DEFS)' 19139test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}' 19140if test -n "${cflags+set}"; then 19141 cflagspat=`eval echo '"'"${cflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/^ *$/ /'` 19142 CFLAGS=`echo " $CFLAGS " | sed "s|$cflagspat"'|${cflags}|;s/^ *//;s/ *$//'` 19143fi 19144if test -n "${cxxflags+set}"; then 19145 cxxflagspat=`eval echo '"'"${cxxflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/^ *$/ /'` 19146 CXXFLAGS=`echo " $CXXFLAGS " | sed "s|$cxxflagspat"'|${cxxflags}|;s/^ *//;s/ *$//'` 19147fi 19148if test "${ARCH_FLAG}"; then 19149 archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` 19150 CFLAGS=`echo "$CFLAGS" | sed "s| *$archflagpat"'||'` 19151 CXXFLAGS=`echo "$CXXFLAGS" | sed "s| *$archflagpat"'||'` 19152 LDFLAGS=`echo "$LDFLAGS" | sed "s| *$archflagpat"'||'` 19153fi 19154warnflags="$rb_cv_warnflags" 19155cflags="$orig_cflags "'${optflags} ${debugflags} ${warnflags}' 19156cxxflags="$orig_cxxflags "'${optflags} ${debugflags} ${warnflags}' 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183MAKEFILES="Makefile `echo $FIRSTMAKEFILE | sed 's/:.*//'`" 19184MAKEFILES="`echo $MAKEFILES`" 19185 19186 19187ri_prefix= 19188test "$program_prefix" != NONE && 19189 ri_prefix=$program_prefix 19190 19191ri_suffix= 19192test "$program_suffix" != NONE && 19193 ri_suffix=$program_suffix 19194 19195RUBY_INSTALL_NAME="${ri_prefix}"'$(RUBY_BASE_NAME)'"${ri_suffix}" 19196case "$target_os" in #( 19197 cygwin*|mingw*) : 19198 19199 RUBYW_INSTALL_NAME="${ri_prefix}"'$(RUBYW_BASE_NAME)'"${ri_suffix}" 19200 rubyw_install_name='$(RUBYW_INSTALL_NAME)' 19201 ;; #( 19202 *) : 19203 ;; 19204esac 19205 19206# Check whether --enable-multiarch was given. 19207if test "${enable_multiarch+set}" = set; then : 19208 enableval=$enable_multiarch; multiarch= 19209else 19210 unset multiarch 19211fi 19212 19213 19214archlibdir='${libdir}/${arch}' 19215sitearchlibdir='${libdir}/${sitearch}' 19216archincludedir='${includedir}/${arch}' 19217sitearchincludedir='${includedir}/${sitearch}' 19218 19219shvar_to_cpp() { 19220 var="$1" val="$2" 19221 exec_prefix_pat="`echo \"${exec_prefix}\" | sed 's/\\./\\\\./g'`" 19222 arch_pat="`echo \"${arch}\" | sed 's/\\./\\\\./g'`" 19223 sitearch_pat="`echo \"${sitearch}\" | sed 's/\\./\\\\./g'`" 19224 val="`echo '\"'\"${val}\"'\"' | 19225 sed \ 19226 -e 's/\${\([A-Z][A-Z_]*\)}/\"\1\"/g' \ 19227 -e 's|\${sitearchlibdir}|'\"${sitearchlibdir}|g\" \ 19228 -e 's|\${sitearchincludedir}|'\"${sitearchincludedir}|g\" \ 19229 -e 's|\${archlibdir}|'\"${archlibdir}|g\" \ 19230 -e 's|\${archincludedir}|'\"${archincludedir}|g\" \ 19231 -e 's|\${libdir}|'\"${libdir}|g\" \ 19232 -e 's/\${ruby_version}/\"RUBY_LIB_VERSION\"/g' \ 19233 -e 's/\${arch}/\"arch\"/g' \ 19234 -e 's/\${sitearch}/\"arch\"/g' \ 19235 -e 's/\${vendorarchdir}/\"RUBY_VENDOR_ARCH_LIB\"/g' \ 19236 -e 's/\${sitearchdir}/\"RUBY_SITE_ARCH_LIB\"/g' \ 19237 -e 's/\${vendorlibdir}/\"RUBY_VENDOR_LIB2\"/g' \ 19238 -e 's/\${sitelibdir}/\"RUBY_SITE_LIB2\"/g' \ 19239 -e 's/\${vendordir}/\"RUBY_VENDOR_LIB\"/g' \ 19240 -e 's/\${sitedir}/\"RUBY_SITE_LIB\"/g' \ 19241 -e 's/\${rubylibdir}/\"RUBY_LIB\"/g' \ 19242 -e 's/\${rubylibprefix}/\"RUBY_LIB_PREFIX\"/g' \ 19243 -e 's/\${rubyarchprefix}/\"RUBY_ARCH_PREFIX_FOR(arch)\"/g' \ 19244 -e 's/\${rubysitearchprefix}/\"RUBY_SITEARCH_PREFIX_FOR(arch)\"/g' \ 19245 -e 's/\${exec_prefix}/\"RUBY_EXEC_PREFIX\"/g' \ 19246 -e \"s|${exec_prefix_pat}/|\"'\"RUBY_EXEC_PREFIX\"/|g' \ 19247 -e \"s|${arch_pat}|\"'\"arch\"|g' \ 19248 -e \"s|${sitearch_pat}|\"'\"sitearch\"|g' \ 19249 -e 's|^\\\"NONE/|RUBY_EXEC_PREFIX\\\"/|' \ 19250 -e 's|^\\\"NONE\\\"|\\\"'\"${prefix}\"'\\\"|' \ 19251 -e 's/^\\\"\\\"\(.\)/\1/;s/\(.\)\\\"\\\"$/\1/' 19252 `" 19253 eval $var='"$val"' 19254} 19255 19256unexpand_shvar() { 19257 var=$1 n="" v="" expr="" 19258 shift 19259 test "$#" -eq 0 && return 19260 for n do 19261 eval v='"$'$n'"' 19262 v="`echo \"$v\" | sed -e 's/${[^${}\"]*}/\"&\"/g' -e 's/[][$|.\\?*]/\\\\&/g'`" 19263 if test -n "$v"; then 19264 expr="${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" 19265 case "$v" in #( 19266 *'${'*'}'*) : 19267 expr="$expr;s|$v|\"\${$n}\"|g" ;; #( 19268 *) : 19269 ;; 19270esac 19271 fi 19272 done 19273 expr='s/${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g' 19274 eval $var='"`echo \"\\\"${'$var'}\\\"\" | sed \"$expr;s/\\\"//g\"`"' 19275} 19276 19277rubylibprefix='${libdir}/${RUBY_BASE_NAME}' 19278 19279# Check whether --with-rubylibprefix was given. 19280if test "${with_rubylibprefix+set}" = set; then : 19281 withval=$with_rubylibprefix; if test "x$withval" = xno; then 19282 as_fn_error $? "No ruby, No libprefix" "$LINENO" 5 19283 fi 19284 rubylibprefix="$withval" 19285fi 19286 19287 19288rubylibdir='${rubylibprefix}/${ruby_version}' 19289rubyarchdir=${multiarch+'${rubyarchprefix}/${ruby_version}'}${multiarch-'${rubylibdir}/${arch}'} 19290 19291rubyarchprefix=${multiarch+'${archlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${arch}'} 19292 19293# Check whether --with-rubyarchprefix was given. 19294if test "${with_rubyarchprefix+set}" = set; then : 19295 withval=$with_rubyarchprefix; rubyarchprefix="$withval" 19296fi 19297 19298 19299 19300rubysitearchprefix=${multiarch+'${sitearchlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${sitearch}'} 19301 19302# Check whether --with-rubysitearchprefix was given. 19303if test "${with_rubysitearchprefix+set}" = set; then : 19304 withval=$with_rubysitearchprefix; rubysitearchprefix="$withval" 19305fi 19306 19307 19308 19309RI_BASE_NAME=`echo ${RUBY_BASE_NAME} | sed 's/ruby/ri/'` 19310ridir='${datarootdir}/${RI_BASE_NAME}' 19311 19312# Check whether --with-ridir was given. 19313if test "${with_ridir+set}" = set; then : 19314 withval=$with_ridir; ridir=$withval 19315fi 19316 19317 19318 19319 19320 19321# Check whether --with-ruby-version was given. 19322if test "${with_ruby_version+set}" = set; then : 19323 withval=$with_ruby_version; ruby_version=$withval 19324else 19325 ruby_version=full 19326fi 19327 19328unset RUBY_LIB_VERSION 19329unset RUBY_LIB_VERSION_STYLE 19330case "$ruby_version" in #( 19331 full) : 19332 RUBY_LIB_VERSION_STYLE='3 /* full */' ;; #( 19333 minor) : 19334 RUBY_LIB_VERSION_STYLE='2 /* minor */' ;; #( 19335 *) : 19336 ;; 19337esac 19338if test ${RUBY_LIB_VERSION_STYLE+set}; then 19339 { 19340 echo "#define RUBY_LIB_VERSION_STYLE $RUBY_LIB_VERSION_STYLE" 19341 echo '#define STRINGIZE(x) x' 19342 test -f revision.h -o -f "${srcdir}/revision.h" || echo '#define RUBY_REVISION 0' 19343 echo '#include "verconf.h"' 19344 echo '#include "version.h"' 19345 echo 'ruby_version=RUBY_LIB_VERSION' 19346 } > conftest.c 19347 test -f verconf.h || > verconf.h 19348 ruby_version="`$CPP -I. -I"${srcdir}" -I"${srcdir}/include" conftest.c | sed '/^ruby_version=/!d;s/ //g'`" 19349 eval $ruby_version 19350else 19351 RUBY_LIB_VERSION="\"${ruby_version}\"" 19352fi 19353 19354 19355# Check whether --with-sitedir was given. 19356if test "${with_sitedir+set}" = set; then : 19357 withval=$with_sitedir; sitedir=$withval 19358else 19359 sitedir='${rubylibprefix}/site_ruby' 19360fi 19361 19362sitelibdir='${sitedir}/${ruby_version}' 19363 19364 19365# Check whether --with-sitearchdir was given. 19366if test "${with_sitearchdir+set}" = set; then : 19367 withval=$with_sitearchdir; sitearchdir=$withval 19368else 19369 sitearchdir=${multiarch+'${rubysitearchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'} 19370fi 19371 19372 19373 19374# Check whether --with-vendordir was given. 19375if test "${with_vendordir+set}" = set; then : 19376 withval=$with_vendordir; vendordir=$withval 19377else 19378 vendordir='${rubylibprefix}/vendor_ruby' 19379fi 19380 19381vendorlibdir='${vendordir}/${ruby_version}' 19382 19383 19384# Check whether --with-vendorarchdir was given. 19385if test "${with_vendorarchdir+set}" = set; then : 19386 withval=$with_vendorarchdir; vendorarchdir=$withval 19387else 19388 vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'} 19389fi 19390 19391 19392unexpand_shvar rubylibprefix exec_prefix libdir RUBY_BASE_NAME 19393unexpand_shvar rubyarchprefix exec_prefix libdir arch RUBY_BASE_NAME archlibdir rubylibprefix 19394unexpand_shvar rubysitearchprefix exec_prefix libdir sitearch arch RUBY_BASE_NAME archlibdir sitearchlibdir rubylibprefix 19395if test "${LOAD_RELATIVE+set}"; then 19396 cat >>confdefs.h <<_ACEOF 19397#define LOAD_RELATIVE $LOAD_RELATIVE 19398_ACEOF 19399 19400 RUBY_EXEC_PREFIX='""' 19401else 19402 shvar_to_cpp RUBY_EXEC_PREFIX "${exec_prefix}" 19403fi 19404shvar_to_cpp RUBY_LIB_PREFIX "${rubylibprefix}" 19405shvar_to_cpp RUBY_ARCH_PREFIX_FOR "${rubyarchprefix}" 19406shvar_to_cpp RUBY_SITEARCH_PREFIX_FOR "${rubysitearchprefix}" 19407shvar_to_cpp RIDIR "${ridir}" 19408unexpand_shvar exec_prefix prefix 19409 19410if test ${RUBY_LIB_VERSION_STYLE+set}; then 19411 cat >>confdefs.h <<_ACEOF 19412#define RUBY_LIB_VERSION_STYLE $RUBY_LIB_VERSION_STYLE !<verconf>! 19413_ACEOF 19414 19415else 19416 cat >>confdefs.h <<_ACEOF 19417#define RUBY_LIB_VERSION $RUBY_LIB_VERSION !<verconf>! 19418_ACEOF 19419 19420fi 19421cat >>confdefs.h <<_ACEOF 19422#define RUBY_EXEC_PREFIX ${RUBY_EXEC_PREFIX} 19423_ACEOF 19424 19425cat >>confdefs.h <<_ACEOF 19426#define RUBY_LIB_PREFIX ${RUBY_LIB_PREFIX} !<verconf>! 19427_ACEOF 19428 19429cat >>confdefs.h <<_ACEOF 19430#define RUBY_ARCH_PREFIX_FOR(arch) ${RUBY_ARCH_PREFIX_FOR} !<verconf>! 19431_ACEOF 19432 19433cat >>confdefs.h <<_ACEOF 19434#define RUBY_SITEARCH_PREFIX_FOR(arch) ${RUBY_SITEARCH_PREFIX_FOR} !<verconf>! 19435_ACEOF 19436 19437 19438shvar_to_cpp RUBY_LIB "${rubylibdir}" 19439if test "x${RUBY_LIB}" != 'xRUBY_LIB_PREFIX"/"RUBY_LIB_VERSION'; then 19440 cat >>confdefs.h <<_ACEOF 19441#define RUBY_LIB ${RUBY_LIB} !<verconf>! 19442_ACEOF 19443 19444fi 19445shvar_to_cpp RUBY_ARCH_LIB_FOR "${rubyarchdir}" 19446cat >>confdefs.h <<_ACEOF 19447#define RUBY_ARCH_LIB_FOR(arch) ${RUBY_ARCH_LIB_FOR} !<verconf>! 19448_ACEOF 19449 19450if test "x$sitedir" = xno; then 19451 $as_echo "#define NO_RUBY_SITE_LIB !<verconf>!" >>confdefs.h 19452 19453else 19454 shvar_to_cpp RUBY_SITE_LIB "${sitedir}" 19455 cat >>confdefs.h <<_ACEOF 19456#define RUBY_SITE_LIB ${RUBY_SITE_LIB} !<verconf>! 19457_ACEOF 19458 19459 shvar_to_cpp RUBY_SITE_ARCH_LIB_FOR "${sitearchdir}" 19460 cat >>confdefs.h <<_ACEOF 19461#define RUBY_SITE_ARCH_LIB_FOR(arch) ${RUBY_SITE_ARCH_LIB_FOR} !<verconf>! 19462_ACEOF 19463 19464fi 19465if test "x$vendordir" = xno; then 19466 $as_echo "#define NO_RUBY_VENDOR_LIB !<verconf>!" >>confdefs.h 19467 19468else 19469 shvar_to_cpp RUBY_VENDOR_LIB "${vendordir}" 19470 cat >>confdefs.h <<_ACEOF 19471#define RUBY_VENDOR_LIB ${RUBY_VENDOR_LIB} !<verconf>! 19472_ACEOF 19473 19474 shvar_to_cpp RUBY_VENDOR_ARCH_LIB_FOR "${vendorarchdir}" 19475 cat >>confdefs.h <<_ACEOF 19476#define RUBY_VENDOR_ARCH_LIB_FOR(arch) ${RUBY_VENDOR_ARCH_LIB_FOR} !<verconf>! 19477_ACEOF 19478 19479fi 19480 19481 19482configure_args=$ac_configure_args 19483 19484if test "${universal_binary-no}" = yes ; then 19485 arch="universal-${target_os}" 19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ARCHITECTURE__ is available" >&5 19487$as_echo_n "checking whether __ARCHITECTURE__ is available... " >&6; } 19488if ${rb_cv_architecture_available+:} false; then : 19489 $as_echo_n "(cached) " >&6 19490else 19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19492/* end confdefs.h. */ 19493const char arch = __ARCHITECTURE__; 19494int 19495main () 19496{ 19497puts(arch); 19498 ; 19499 return 0; 19500} 19501_ACEOF 19502if ac_fn_c_try_compile "$LINENO"; then : 19503 rb_cv_architecture_available=yes 19504else 19505 rb_cv_architecture_available=no 19506fi 19507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19508fi 19509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_available" >&5 19510$as_echo "$rb_cv_architecture_available" >&6; } 19511 if test "${rb_cv_architecture_available}" = yes; then 19512 cat >>confdefs.h <<_ACEOF 19513#define RUBY_PLATFORM_CPU __ARCHITECTURE__ !<verconf>! 19514_ACEOF 19515 19516 else 19517 for archs in ${universal_archnames}; do 19518 cpu=`echo $archs | sed 's/.*=//'` 19519 archs=`echo $archs | sed 's/=.*//'` 19520 test "Xdefined __${archs}__" = X || cat <<EOH >> confdefs.h 19521#if defined __${archs}__ 19522EOH 19523cat >>confdefs.h <<_ACEOF 19524#define RUBY_PLATFORM_CPU "${cpu}" 19525_ACEOF 19526 test "Xdefined __${archs}__" = X || cat <<EOH >> confdefs.h 19527#endif /* defined __${archs}__ */ 19528EOH 19529 19530 done 19531 fi 19532 ints='long int short' 19533 test "$ac_cv_type_long_long" = yes && ints="'long long' $ints" 19534 UNIVERSAL_ARCHNAMES="${universal_archnames}" 19535 19536 UNIVERSAL_INTS="${ints}" 19537 19538 cat >>confdefs.h <<_ACEOF 19539#define RUBY_PLATFORM_OS "${target_os}" !<verconf>! 19540_ACEOF 19541 19542 cat >>confdefs.h <<_ACEOF 19543#define RUBY_ARCH "universal-"RUBY_PLATFORM_OS !<verconf>! 19544_ACEOF 19545 19546 cat >>confdefs.h <<_ACEOF 19547#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS !<verconf>! 19548_ACEOF 19549 19550else 19551 arch="${target_cpu}-${target_os}" 19552 cat >>confdefs.h <<_ACEOF 19553#define RUBY_PLATFORM "${arch}" !<verconf>! 19554_ACEOF 19555 19556fi 19557 19558unset sitearch 19559case "$target_os" in #( 19560 mingw*) : 19561 sitearch="$target_cpu-$rb_cv_msvcrt" ;; #( 19562 *) : 19563 ;; 19564esac 19565test ${sitearch+set} && cat >>confdefs.h <<_ACEOF 19566#define RUBY_SITEARCH "${sitearch}" !<verconf>! 19567_ACEOF 19568 19569: ${sitearch='${arch}'} 19570 19571 19572# Check whether --with-search-path was given. 19573if test "${with_search_path+set}" = set; then : 19574 withval=$with_search_path; search_path=$withval 19575fi 19576 19577if test "$search_path" != ""; then 19578 cat >>confdefs.h <<_ACEOF 19579#define RUBY_SEARCH_PATH "$search_path" !<verconf>! 19580_ACEOF 19581 19582fi 19583 19584 19585# Check whether --with-rubyhdrdir was given. 19586if test "${with_rubyhdrdir+set}" = set; then : 19587 withval=$with_rubyhdrdir; rubyhdrdir=$withval 19588else 19589 rubyhdrdir='${includedir}/${RUBY_VERSION_NAME}' 19590fi 19591 19592 19593 19594# Check whether --with-rubyarchhdrdir was given. 19595if test "${with_rubyarchhdrdir+set}" = set; then : 19596 withval=$with_rubyarchhdrdir; rubyarchhdrdir=$withval 19597else 19598 rubyarchhdrdir=${multiarch+'${archincludedir}/${RUBY_VERSION_NAME}'}${multiarch-'${rubyhdrdir}/${arch}'} 19599fi 19600 19601 19602 19603# Check whether --with-sitehdrdir was given. 19604if test "${with_sitehdrdir+set}" = set; then : 19605 withval=$with_sitehdrdir; sitehdrdir=$withval 19606else 19607 sitehdrdir='${rubyhdrdir}/site_ruby' 19608fi 19609 19610 19611 19612# Check whether --with-sitearchhdrdir was given. 19613if test "${with_sitearchhdrdir+set}" = set; then : 19614 withval=$with_sitearchhdrdir; sitearchhdrdir=$withval 19615else 19616 sitearchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/site_ruby'}${multiarch-'${sitehdrdir}/${sitearch}'} 19617fi 19618 19619 19620 19621# Check whether --with-vendorhdrdir was given. 19622if test "${with_vendorhdrdir+set}" = set; then : 19623 withval=$with_vendorhdrdir; vendorhdrdir=$withval 19624else 19625 vendorhdrdir='${rubyhdrdir}/vendor_ruby' 19626fi 19627 19628 19629 19630# Check whether --with-vendorarchhdrdir was given. 19631if test "${with_vendorarchhdrdir+set}" = set; then : 19632 withval=$with_vendorarchhdrdir; vendorarchhdrdir=$withval 19633else 19634 vendorarchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/vendor_ruby'}${multiarch-'${vendorhdrdir}/${sitearch}'} 19635fi 19636 19637 19638 19639 19640# Check whether --with-mantype was given. 19641if test "${with_mantype+set}" = set; then : 19642 withval=$with_mantype; 19643 case "$withval" in #( 19644 man|doc) : 19645 MANTYPE=$withval ;; #( 19646 *) : 19647 as_fn_error $? "invalid man type: $withval" "$LINENO" 5 ;; 19648esac 19649 19650fi 19651 19652if test -z "$MANTYPE"; then 19653 for ac_prog in nroff awf 19654do 19655 # Extract the first word of "$ac_prog", so it can be a program name with args. 19656set dummy $ac_prog; ac_word=$2 19657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19658$as_echo_n "checking for $ac_word... " >&6; } 19659if ${ac_cv_path_NROFF+:} false; then : 19660 $as_echo_n "(cached) " >&6 19661else 19662 case $NROFF in 19663 [\\/]* | ?:[\\/]*) 19664 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 19665 ;; 19666 *) 19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19668as_dummy=""/usr/bin:/usr/ucb"" 19669for as_dir in $as_dummy 19670do 19671 IFS=$as_save_IFS 19672 test -z "$as_dir" && as_dir=. 19673 for ac_exec_ext in '' $ac_executable_extensions; do 19674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19675 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 19676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19677 break 2 19678 fi 19679done 19680 done 19681IFS=$as_save_IFS 19682 19683 ;; 19684esac 19685fi 19686NROFF=$ac_cv_path_NROFF 19687if test -n "$NROFF"; then 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 19689$as_echo "$NROFF" >&6; } 19690else 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19692$as_echo "no" >&6; } 19693fi 19694 19695 19696 test -n "$NROFF" && break 19697done 19698test -n "$NROFF" || NROFF="/bin/false" 19699 19700 if ${NROFF} -mdoc ${srcdir}/man/ruby.1 >/dev/null 2>&1; then 19701 MANTYPE=doc 19702 else 19703 MANTYPE=man 19704 fi 19705fi 19706 19707 19708# Check whether --enable-rubygems was given. 19709if test "${enable_rubygems+set}" = set; then : 19710 enableval=$enable_rubygems; enable_rubygems="$enableval" 19711else 19712 enable_rubygems=yes 19713fi 19714 19715if test x"$enable_rubygems" = xno; then 19716 $as_echo "#define DISABLE_RUBYGEMS 1" >>confdefs.h 19717 19718 USE_RUBYGEMS=NO 19719else 19720 USE_RUBYGEMS=YES 19721fi 19722 19723 19724arch_hdrdir="${EXTOUT}/include/${arch}/ruby" 19725as_dir="${arch_hdrdir}"; as_fn_mkdir_p 19726config_h="${arch_hdrdir}/config.h" 19727guard=INCLUDE_RUBY_CONFIG_H 19728{ 19729 echo "#ifndef $guard" 19730 echo "#define $guard 1" 19731 grep -v "^#define PACKAGE_" confdefs.h | grep -v ' !<verconf>!$' 19732 echo "#endif /* $guard */" 19733} | tr -d '\015' | 19734${srcdir}/tool/ifchange "${config_h}" - 19735sed -n 's/ !<verconf>!$//p' confdefs.h | ${srcdir}/tool/ifchange verconf.h - 19736tr -d '\015' < largefile.h > confdefs.h 19737rm largefile.h 19738 19739BUILTIN_ENCS="`sed -n -e '/^BUILTIN_ENCS[ ]*=/{' \ 19740 -e s/// -e :l -e '/\\\\$/N' -e 's/\\\\\\n/ /' -e 't l' -e p \ 19741 -e '}' "${srcdir}/enc/Makefile.in"`" 19742BUILTIN_ENCOBJS= 19743for e in $BUILTIN_ENCS; do BUILTIN_ENCOBJS="$BUILTIN_ENCOBJS `basename $e .c`"'.$(OBJEXT)'; done 19744 19745 19746BUILTIN_TRANSES="`sed -n -e '/^BUILTIN_TRANSES[ ]*=/{' \ 19747 -e s/// -e :l -e '/\\\\$/N' -e 's/\\\\\\n/ /' -e 't l' -e p \ 19748 -e '}' "${srcdir}/enc/Makefile.in"`" 19749BUILTIN_TRANSSRCS= 19750BUILTIN_TRANSOBJS= 19751for e in $BUILTIN_TRANSES; do 19752 BUILTIN_TRANSSRCS="$BUILTIN_TRANSSRCS `basename $e .trans`"'.c'; 19753 BUILTIN_TRANSOBJS="$BUILTIN_TRANSOBJS `basename $e .trans`"'.$(OBJEXT)'; 19754done 19755 19756 19757 19758PACKAGE=$RUBY_BASE_NAME 19759 19760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE library version = $ruby_version" >&5 19761$as_echo "$PACKAGE library version = $ruby_version" >&6; } 19762 19763case " $CPP " in #( 19764 *" $CC "*) : 19765 CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'` ;; #( 19766 *) : 19767 ;; 19768esac 19769 19770ac_config_files="$ac_config_files $FIRSTMAKEFILE" 19771 19772ac_config_files="$ac_config_files Makefile" 19773 19774 19775 19776# Check whether --with-ruby-pc was given. 19777if test "${with_ruby_pc+set}" = set; then : 19778 withval=$with_ruby_pc; ruby_pc="$withval" 19779else 19780 ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc" 19781fi 19782 19783 19784exec=exec 19785 19786 19787ac_config_files="$ac_config_files $ruby_pc:template/ruby.pc.in" 19788 19789 19790cat >confcache <<\_ACEOF 19791# This file is a shell script that caches the results of configure 19792# tests run on this system so they can be shared between configure 19793# scripts and configure runs, see configure's option --config-cache. 19794# It is not useful on other systems. If it contains results you don't 19795# want to keep, you may remove or edit it. 19796# 19797# config.status only pays attention to the cache file if you give it 19798# the --recheck option to rerun configure. 19799# 19800# `ac_cv_env_foo' variables (set or unset) will be overridden when 19801# loading this file, other *unset* `ac_cv_foo' will be assigned the 19802# following values. 19803 19804_ACEOF 19805 19806# The following way of writing the cache mishandles newlines in values, 19807# but we know of no workaround that is simple, portable, and efficient. 19808# So, we kill variables containing newlines. 19809# Ultrix sh set writes to stderr and can't be redirected directly, 19810# and sets the high bit in the cache file unless we assign to the vars. 19811( 19812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19813 eval ac_val=\$$ac_var 19814 case $ac_val in #( 19815 *${as_nl}*) 19816 case $ac_var in #( 19817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19819 esac 19820 case $ac_var in #( 19821 _ | IFS | as_nl) ;; #( 19822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19823 *) { eval $ac_var=; unset $ac_var;} ;; 19824 esac ;; 19825 esac 19826 done 19827 19828 (set) 2>&1 | 19829 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19830 *${as_nl}ac_space=\ *) 19831 # `set' does not quote correctly, so add quotes: double-quote 19832 # substitution turns \\\\ into \\, and sed turns \\ into \. 19833 sed -n \ 19834 "s/'/'\\\\''/g; 19835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19836 ;; #( 19837 *) 19838 # `set' quotes correctly as required by POSIX, so do not add quotes. 19839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19840 ;; 19841 esac | 19842 sort 19843) | 19844 sed ' 19845 /^ac_cv_env_/b end 19846 t clear 19847 :clear 19848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19849 t end 19850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19851 :end' >>confcache 19852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19853 if test -w "$cache_file"; then 19854 if test "x$cache_file" != "x/dev/null"; then 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19856$as_echo "$as_me: updating cache $cache_file" >&6;} 19857 if test ! -f "$cache_file" || test -h "$cache_file"; then 19858 cat confcache >"$cache_file" 19859 else 19860 case $cache_file in #( 19861 */* | ?:*) 19862 mv -f confcache "$cache_file"$$ && 19863 mv -f "$cache_file"$$ "$cache_file" ;; #( 19864 *) 19865 mv -f confcache "$cache_file" ;; 19866 esac 19867 fi 19868 fi 19869 else 19870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19872 fi 19873fi 19874rm -f confcache 19875 19876test "x$prefix" = xNONE && prefix=$ac_default_prefix 19877# Let make expand exec_prefix. 19878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19879 19880# Transform confdefs.h into DEFS. 19881# Protect against shell expansion while executing Makefile rules. 19882# Protect against Makefile macro expansion. 19883# 19884# If the first sed substitution is executed (which looks for macros that 19885# take arguments), then branch to the quote section. Otherwise, 19886# look for a macro that doesn't take arguments. 19887ac_script=' 19888:mline 19889/\\$/{ 19890 N 19891 s,\\\n,, 19892 b mline 19893} 19894t clear 19895:clear 19896s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19897t quote 19898s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19899t quote 19900b any 19901:quote 19902s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19903s/\[/\\&/g 19904s/\]/\\&/g 19905s/\$/$$/g 19906H 19907:any 19908${ 19909 g 19910 s/^\n// 19911 s/\n/ /g 19912 p 19913} 19914' 19915DEFS=`sed -n "$ac_script" confdefs.h` 19916 19917 19918ac_libobjs= 19919ac_ltlibobjs= 19920U= 19921for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19922 # 1. Remove the extension, and $U if already installed. 19923 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19924 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19925 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19926 # will be set to the directory where LIBOBJS objects are built. 19927 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19928 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19929done 19930LIBOBJS=$ac_libobjs 19931 19932LTLIBOBJS=$ac_ltlibobjs 19933 19934 19935 19936 19937: "${CONFIG_STATUS=./config.status}" 19938ac_write_fail=0 19939ac_clean_files_save=$ac_clean_files 19940ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19941{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19942$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19943as_write_fail=0 19944cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19945#! $SHELL 19946# Generated by $as_me. 19947# Run this file to recreate the current configuration. 19948# Compiler output produced by configure, useful for debugging 19949# configure, is in config.log if it exists. 19950 19951debug=false 19952ac_cs_recheck=false 19953ac_cs_silent=false 19954 19955SHELL=\${CONFIG_SHELL-$SHELL} 19956export SHELL 19957_ASEOF 19958cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19959## -------------------- ## 19960## M4sh Initialization. ## 19961## -------------------- ## 19962 19963# Be more Bourne compatible 19964DUALCASE=1; export DUALCASE # for MKS sh 19965if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19966 emulate sh 19967 NULLCMD=: 19968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19969 # is contrary to our usage. Disable this feature. 19970 alias -g '${1+"$@"}'='"$@"' 19971 setopt NO_GLOB_SUBST 19972else 19973 case `(set -o) 2>/dev/null` in #( 19974 *posix*) : 19975 set -o posix ;; #( 19976 *) : 19977 ;; 19978esac 19979fi 19980 19981 19982as_nl=' 19983' 19984export as_nl 19985# Printing a long string crashes Solaris 7 /usr/bin/printf. 19986as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19987as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19988as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19989# Prefer a ksh shell builtin over an external printf program on Solaris, 19990# but without wasting forks for bash or zsh. 19991if test -z "$BASH_VERSION$ZSH_VERSION" \ 19992 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19993 as_echo='print -r --' 19994 as_echo_n='print -rn --' 19995elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19996 as_echo='printf %s\n' 19997 as_echo_n='printf %s' 19998else 19999 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20000 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20001 as_echo_n='/usr/ucb/echo -n' 20002 else 20003 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20004 as_echo_n_body='eval 20005 arg=$1; 20006 case $arg in #( 20007 *"$as_nl"*) 20008 expr "X$arg" : "X\\(.*\\)$as_nl"; 20009 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20010 esac; 20011 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20012 ' 20013 export as_echo_n_body 20014 as_echo_n='sh -c $as_echo_n_body as_echo' 20015 fi 20016 export as_echo_body 20017 as_echo='sh -c $as_echo_body as_echo' 20018fi 20019 20020# The user is always right. 20021if test "${PATH_SEPARATOR+set}" != set; then 20022 PATH_SEPARATOR=: 20023 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20024 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20025 PATH_SEPARATOR=';' 20026 } 20027fi 20028 20029 20030# IFS 20031# We need space, tab and new line, in precisely that order. Quoting is 20032# there to prevent editors from complaining about space-tab. 20033# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20034# splitting by setting IFS to empty value.) 20035IFS=" "" $as_nl" 20036 20037# Find who we are. Look in the path if we contain no directory separator. 20038as_myself= 20039case $0 in #(( 20040 *[\\/]* ) as_myself=$0 ;; 20041 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20042for as_dir in $PATH 20043do 20044 IFS=$as_save_IFS 20045 test -z "$as_dir" && as_dir=. 20046 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20047 done 20048IFS=$as_save_IFS 20049 20050 ;; 20051esac 20052# We did not find ourselves, most probably we were run as `sh COMMAND' 20053# in which case we are not to be found in the path. 20054if test "x$as_myself" = x; then 20055 as_myself=$0 20056fi 20057if test ! -f "$as_myself"; then 20058 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20059 exit 1 20060fi 20061 20062# Unset variables that we do not need and which cause bugs (e.g. in 20063# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20064# suppresses any "Segmentation fault" message there. '((' could 20065# trigger a bug in pdksh 5.2.14. 20066for as_var in BASH_ENV ENV MAIL MAILPATH 20067do eval test x\${$as_var+set} = xset \ 20068 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20069done 20070PS1='$ ' 20071PS2='> ' 20072PS4='+ ' 20073 20074# NLS nuisances. 20075LC_ALL=C 20076export LC_ALL 20077LANGUAGE=C 20078export LANGUAGE 20079 20080# CDPATH. 20081(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20082 20083 20084# as_fn_error STATUS ERROR [LINENO LOG_FD] 20085# ---------------------------------------- 20086# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20087# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20088# script with STATUS, using 1 if that was 0. 20089as_fn_error () 20090{ 20091 as_status=$1; test $as_status -eq 0 && as_status=1 20092 if test "$4"; then 20093 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20094 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20095 fi 20096 $as_echo "$as_me: error: $2" >&2 20097 as_fn_exit $as_status 20098} # as_fn_error 20099 20100 20101# as_fn_set_status STATUS 20102# ----------------------- 20103# Set $? to STATUS, without forking. 20104as_fn_set_status () 20105{ 20106 return $1 20107} # as_fn_set_status 20108 20109# as_fn_exit STATUS 20110# ----------------- 20111# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20112as_fn_exit () 20113{ 20114 set +e 20115 as_fn_set_status $1 20116 exit $1 20117} # as_fn_exit 20118 20119# as_fn_unset VAR 20120# --------------- 20121# Portably unset VAR. 20122as_fn_unset () 20123{ 20124 { eval $1=; unset $1;} 20125} 20126as_unset=as_fn_unset 20127# as_fn_append VAR VALUE 20128# ---------------------- 20129# Append the text in VALUE to the end of the definition contained in VAR. Take 20130# advantage of any shell optimizations that allow amortized linear growth over 20131# repeated appends, instead of the typical quadratic growth present in naive 20132# implementations. 20133if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20134 eval 'as_fn_append () 20135 { 20136 eval $1+=\$2 20137 }' 20138else 20139 as_fn_append () 20140 { 20141 eval $1=\$$1\$2 20142 } 20143fi # as_fn_append 20144 20145# as_fn_arith ARG... 20146# ------------------ 20147# Perform arithmetic evaluation on the ARGs, and store the result in the 20148# global $as_val. Take advantage of shells that can avoid forks. The arguments 20149# must be portable across $(()) and expr. 20150if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20151 eval 'as_fn_arith () 20152 { 20153 as_val=$(( $* )) 20154 }' 20155else 20156 as_fn_arith () 20157 { 20158 as_val=`expr "$@" || test $? -eq 1` 20159 } 20160fi # as_fn_arith 20161 20162 20163if expr a : '\(a\)' >/dev/null 2>&1 && 20164 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20165 as_expr=expr 20166else 20167 as_expr=false 20168fi 20169 20170if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20171 as_basename=basename 20172else 20173 as_basename=false 20174fi 20175 20176if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20177 as_dirname=dirname 20178else 20179 as_dirname=false 20180fi 20181 20182as_me=`$as_basename -- "$0" || 20183$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20184 X"$0" : 'X\(//\)$' \| \ 20185 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20186$as_echo X/"$0" | 20187 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20188 s//\1/ 20189 q 20190 } 20191 /^X\/\(\/\/\)$/{ 20192 s//\1/ 20193 q 20194 } 20195 /^X\/\(\/\).*/{ 20196 s//\1/ 20197 q 20198 } 20199 s/.*/./; q'` 20200 20201# Avoid depending upon Character Ranges. 20202as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20203as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20204as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20205as_cr_digits='0123456789' 20206as_cr_alnum=$as_cr_Letters$as_cr_digits 20207 20208ECHO_C= ECHO_N= ECHO_T= 20209case `echo -n x` in #((((( 20210-n*) 20211 case `echo 'xy\c'` in 20212 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20213 xy) ECHO_C='\c';; 20214 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20215 ECHO_T=' ';; 20216 esac;; 20217*) 20218 ECHO_N='-n';; 20219esac 20220 20221rm -f conf$$ conf$$.exe conf$$.file 20222if test -d conf$$.dir; then 20223 rm -f conf$$.dir/conf$$.file 20224else 20225 rm -f conf$$.dir 20226 mkdir conf$$.dir 2>/dev/null 20227fi 20228if (echo >conf$$.file) 2>/dev/null; then 20229 if ln -s conf$$.file conf$$ 2>/dev/null; then 20230 as_ln_s='ln -s' 20231 # ... but there are two gotchas: 20232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20234 # In both cases, we have to default to `cp -pR'. 20235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20236 as_ln_s='cp -pR' 20237 elif ln conf$$.file conf$$ 2>/dev/null; then 20238 as_ln_s=ln 20239 else 20240 as_ln_s='cp -pR' 20241 fi 20242else 20243 as_ln_s='cp -pR' 20244fi 20245rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20246rmdir conf$$.dir 2>/dev/null 20247 20248 20249# as_fn_mkdir_p 20250# ------------- 20251# Create "$as_dir" as a directory, including parents if necessary. 20252as_fn_mkdir_p () 20253{ 20254 20255 case $as_dir in #( 20256 -*) as_dir=./$as_dir;; 20257 esac 20258 test -d "$as_dir" || eval $as_mkdir_p || { 20259 as_dirs= 20260 while :; do 20261 case $as_dir in #( 20262 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20263 *) as_qdir=$as_dir;; 20264 esac 20265 as_dirs="'$as_qdir' $as_dirs" 20266 as_dir=`$as_dirname -- "$as_dir" || 20267$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20268 X"$as_dir" : 'X\(//\)[^/]' \| \ 20269 X"$as_dir" : 'X\(//\)$' \| \ 20270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20271$as_echo X"$as_dir" | 20272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20273 s//\1/ 20274 q 20275 } 20276 /^X\(\/\/\)[^/].*/{ 20277 s//\1/ 20278 q 20279 } 20280 /^X\(\/\/\)$/{ 20281 s//\1/ 20282 q 20283 } 20284 /^X\(\/\).*/{ 20285 s//\1/ 20286 q 20287 } 20288 s/.*/./; q'` 20289 test -d "$as_dir" && break 20290 done 20291 test -z "$as_dirs" || eval "mkdir $as_dirs" 20292 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20293 20294 20295} # as_fn_mkdir_p 20296if mkdir -p . 2>/dev/null; then 20297 as_mkdir_p='mkdir -p "$as_dir"' 20298else 20299 test -d ./-p && rmdir ./-p 20300 as_mkdir_p=false 20301fi 20302 20303 20304# as_fn_executable_p FILE 20305# ----------------------- 20306# Test if FILE is an executable regular file. 20307as_fn_executable_p () 20308{ 20309 test -f "$1" && test -x "$1" 20310} # as_fn_executable_p 20311as_test_x='test -x' 20312as_executable_p=as_fn_executable_p 20313 20314# Sed expression to map a string onto a valid CPP name. 20315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20316 20317# Sed expression to map a string onto a valid variable name. 20318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20319 20320 20321exec 6>&1 20322## ----------------------------------- ## 20323## Main body of $CONFIG_STATUS script. ## 20324## ----------------------------------- ## 20325_ASEOF 20326test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20327 20328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20329# Save the log message, to keep $0 and so on meaningful, and to 20330# report actual input values of CONFIG_FILES etc. instead of their 20331# values after options handling. 20332ac_log=" 20333This file was extended by $as_me, which was 20334generated by GNU Autoconf 2.69. Invocation command line was 20335 20336 CONFIG_FILES = $CONFIG_FILES 20337 CONFIG_HEADERS = $CONFIG_HEADERS 20338 CONFIG_LINKS = $CONFIG_LINKS 20339 CONFIG_COMMANDS = $CONFIG_COMMANDS 20340 $ $0 $@ 20341 20342on `(hostname || uname -n) 2>/dev/null | sed 1q` 20343" 20344 20345_ACEOF 20346 20347case $ac_config_files in *" 20348"*) set x $ac_config_files; shift; ac_config_files=$*;; 20349esac 20350 20351 20352 20353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20354# Files that config.status was made for. 20355config_files="$ac_config_files" 20356 20357_ACEOF 20358 20359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20360ac_cs_usage="\ 20361\`$as_me' instantiates files and other configuration actions 20362from templates according to the current configuration. Unless the files 20363and actions are specified as TAGs, all are instantiated by default. 20364 20365Usage: $0 [OPTION]... [TAG]... 20366 20367 -h, --help print this help, then exit 20368 -V, --version print version number and configuration settings, then exit 20369 --config print configuration, then exit 20370 -q, --quiet, --silent 20371 do not print progress messages 20372 -d, --debug don't remove temporary files 20373 --recheck update $as_me by reconfiguring in the same conditions 20374 --file=FILE[:TEMPLATE] 20375 instantiate the configuration file FILE 20376 20377Configuration files: 20378$config_files 20379 20380Report bugs to the package provider." 20381 20382_ACEOF 20383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20384ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20385ac_cs_version="\\ 20386config.status 20387configured by $0, generated by GNU Autoconf 2.69, 20388 with options \\"\$ac_cs_config\\" 20389 20390Copyright (C) 2012 Free Software Foundation, Inc. 20391This config.status script is free software; the Free Software Foundation 20392gives unlimited permission to copy, distribute and modify it." 20393 20394ac_pwd='$ac_pwd' 20395srcdir='$srcdir' 20396INSTALL='$INSTALL' 20397MKDIR_P='$MKDIR_P' 20398test -n "\$AWK" || AWK=awk 20399_ACEOF 20400 20401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20402# The default lists apply if the user does not specify any file. 20403ac_need_defaults=: 20404while test $# != 0 20405do 20406 case $1 in 20407 --*=?*) 20408 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20410 ac_shift=: 20411 ;; 20412 --*=) 20413 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20414 ac_optarg= 20415 ac_shift=: 20416 ;; 20417 *) 20418 ac_option=$1 20419 ac_optarg=$2 20420 ac_shift=shift 20421 ;; 20422 esac 20423 20424 case $ac_option in 20425 # Handling of the options. 20426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20427 ac_cs_recheck=: ;; 20428 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20429 $as_echo "$ac_cs_version"; exit ;; 20430 --config | --confi | --conf | --con | --co | --c ) 20431 $as_echo "$ac_cs_config"; exit ;; 20432 --debug | --debu | --deb | --de | --d | -d ) 20433 debug=: ;; 20434 --file | --fil | --fi | --f ) 20435 $ac_shift 20436 case $ac_optarg in 20437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20438 '') as_fn_error $? "missing file argument" ;; 20439 esac 20440 as_fn_append CONFIG_FILES " '$ac_optarg'" 20441 ac_need_defaults=false;; 20442 --he | --h | --help | --hel | -h ) 20443 $as_echo "$ac_cs_usage"; exit ;; 20444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20445 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20446 ac_cs_silent=: ;; 20447 20448 # This is an error. 20449 -*) as_fn_error $? "unrecognized option: \`$1' 20450Try \`$0 --help' for more information." ;; 20451 20452 *) as_fn_append ac_config_targets " $1" 20453 ac_need_defaults=false ;; 20454 20455 esac 20456 shift 20457done 20458 20459ac_configure_extra_args= 20460 20461if $ac_cs_silent; then 20462 exec 6>/dev/null 20463 ac_configure_extra_args="$ac_configure_extra_args --silent" 20464fi 20465 20466_ACEOF 20467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20468if \$ac_cs_recheck; then 20469 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20470 shift 20471 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20472 CONFIG_SHELL='$SHELL' 20473 export CONFIG_SHELL 20474 exec "\$@" 20475fi 20476 20477_ACEOF 20478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20479exec 5>>config.log 20480{ 20481 echo 20482 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20483## Running $as_me. ## 20484_ASBOX 20485 $as_echo "$ac_log" 20486} >&5 20487 20488_ACEOF 20489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20490# 20491# INIT-COMMANDS 20492# 20493EXEEXT='$EXEEXT' gnumake='$gnumake' 20494ruby_pc='$ruby_pc' PKG_CONFIG='$PKG_CONFIG' 20495 20496_ACEOF 20497 20498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20499 20500# Handling of arguments. 20501for ac_config_target in $ac_config_targets 20502do 20503 case $ac_config_target in 20504 "$FIRSTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $FIRSTMAKEFILE" ;; 20505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20506 "$ruby_pc") CONFIG_FILES="$CONFIG_FILES $ruby_pc:template/ruby.pc.in" ;; 20507 20508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20509 esac 20510done 20511 20512 20513# If the user did not use the arguments to specify the items to instantiate, 20514# then the envvar interface is used. Set only those that are not. 20515# We use the long form for the default assignment because of an extremely 20516# bizarre bug on SunOS 4.1.3. 20517if $ac_need_defaults; then 20518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20519fi 20520 20521# Have a temporary directory for convenience. Make it in the build tree 20522# simply because there is no reason against having it here, and in addition, 20523# creating and moving files from /tmp can sometimes cause problems. 20524# Hook for its removal unless debugging. 20525# Note that there is a small window in which the directory will not be cleaned: 20526# after its creation but before its name has been assigned to `$tmp'. 20527$debug || 20528{ 20529 tmp= ac_tmp= 20530 trap 'exit_status=$? 20531 : "${ac_tmp:=$tmp}" 20532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20533' 0 20534 trap 'as_fn_exit 1' 1 2 13 15 20535} 20536# Create a (secure) tmp directory for tmp files. 20537 20538{ 20539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20540 test -d "$tmp" 20541} || 20542{ 20543 tmp=./conf$$-$RANDOM 20544 (umask 077 && mkdir "$tmp") 20545} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20546ac_tmp=$tmp 20547 20548# Set up the scripts for CONFIG_FILES section. 20549# No need to generate them if there are no CONFIG_FILES. 20550# This happens for instance with `./config.status config.h'. 20551if test -n "$CONFIG_FILES"; then 20552 20553 20554ac_cr=`echo X | tr X '\015'` 20555# On cygwin, bash can eat \r inside `` if the user requested igncr. 20556# But we know of no other shell where ac_cr would be empty at this 20557# point, so we can use a bashism as a fallback. 20558if test "x$ac_cr" = x; then 20559 eval ac_cr=\$\'\\r\' 20560fi 20561ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20562if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20563 ac_cs_awk_cr='\\r' 20564else 20565 ac_cs_awk_cr=$ac_cr 20566fi 20567 20568echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20569_ACEOF 20570 20571 20572{ 20573 echo "cat >conf$$subs.awk <<_ACEOF" && 20574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20575 echo "_ACEOF" 20576} >conf$$subs.sh || 20577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20578ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20579ac_delim='%!_!# ' 20580for ac_last_try in false false false false false :; do 20581 . ./conf$$subs.sh || 20582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20583 20584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20585 if test $ac_delim_n = $ac_delim_num; then 20586 break 20587 elif $ac_last_try; then 20588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20589 else 20590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20591 fi 20592done 20593rm -f conf$$subs.sh 20594 20595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20596cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20597_ACEOF 20598sed -n ' 20599h 20600s/^/S["/; s/!.*/"]=/ 20601p 20602g 20603s/^[^!]*!// 20604:repl 20605t repl 20606s/'"$ac_delim"'$// 20607t delim 20608:nl 20609h 20610s/\(.\{148\}\)..*/\1/ 20611t more1 20612s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20613p 20614n 20615b repl 20616:more1 20617s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20618p 20619g 20620s/.\{148\}// 20621t nl 20622:delim 20623h 20624s/\(.\{148\}\)..*/\1/ 20625t more2 20626s/["\\]/\\&/g; s/^/"/; s/$/"/ 20627p 20628b 20629:more2 20630s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20631p 20632g 20633s/.\{148\}// 20634t delim 20635' <conf$$subs.awk | sed ' 20636/^[^""]/{ 20637 N 20638 s/\n// 20639} 20640' >>$CONFIG_STATUS || ac_write_fail=1 20641rm -f conf$$subs.awk 20642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20643_ACAWK 20644cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20645 for (key in S) S_is_set[key] = 1 20646 FS = "" 20647 20648} 20649{ 20650 line = $ 0 20651 nfields = split(line, field, "@") 20652 substed = 0 20653 len = length(field[1]) 20654 for (i = 2; i < nfields; i++) { 20655 key = field[i] 20656 keylen = length(key) 20657 if (S_is_set[key]) { 20658 value = S[key] 20659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20660 len += length(value) + length(field[++i]) 20661 substed = 1 20662 } else 20663 len += 1 + keylen 20664 } 20665 20666 print line 20667} 20668 20669_ACAWK 20670_ACEOF 20671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20672if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20674else 20675 cat 20676fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20677 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20678_ACEOF 20679 20680# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20681# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20682# trailing colons and then remove the whole line if VPATH becomes empty 20683# (actually we leave an empty line to preserve line numbers). 20684if test "x$srcdir" = x.; then 20685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20686h 20687s/// 20688s/^/:/ 20689s/[ ]*$/:/ 20690s/:\$(srcdir):/:/g 20691s/:\${srcdir}:/:/g 20692s/:@srcdir@:/:/g 20693s/^:*// 20694s/:*$// 20695x 20696s/\(=[ ]*\).*/\1/ 20697G 20698s/\n// 20699s/^[^=]*=[ ]*$// 20700}' 20701fi 20702 20703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20704fi # test -n "$CONFIG_FILES" 20705 20706 20707eval set X " :F $CONFIG_FILES " 20708shift 20709for ac_tag 20710do 20711 case $ac_tag in 20712 :[FHLC]) ac_mode=$ac_tag; continue;; 20713 esac 20714 case $ac_mode$ac_tag in 20715 :[FHL]*:*);; 20716 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20717 :[FH]-) ac_tag=-:-;; 20718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20719 esac 20720 ac_save_IFS=$IFS 20721 IFS=: 20722 set x $ac_tag 20723 IFS=$ac_save_IFS 20724 shift 20725 ac_file=$1 20726 shift 20727 20728 case $ac_mode in 20729 :L) ac_source=$1;; 20730 :[FH]) 20731 ac_file_inputs= 20732 for ac_f 20733 do 20734 case $ac_f in 20735 -) ac_f="$ac_tmp/stdin";; 20736 *) # Look for the file first in the build tree, then in the source tree 20737 # (if the path is not absolute). The absolute path cannot be DOS-style, 20738 # because $ac_f cannot contain `:'. 20739 test -f "$ac_f" || 20740 case $ac_f in 20741 [\\/$]*) false;; 20742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20743 esac || 20744 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20745 esac 20746 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20747 as_fn_append ac_file_inputs " '$ac_f'" 20748 done 20749 20750 # Let's still pretend it is `configure' which instantiates (i.e., don't 20751 # use $as_me), people would be surprised to read: 20752 # /* config.h. Generated by config.status. */ 20753 configure_input='Generated from '` 20754 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20755 `' by configure.' 20756 if test x"$ac_file" != x-; then 20757 configure_input="$ac_file. $configure_input" 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20759$as_echo "$as_me: creating $ac_file" >&6;} 20760 fi 20761 # Neutralize special characters interpreted by sed in replacement strings. 20762 case $configure_input in #( 20763 *\&* | *\|* | *\\* ) 20764 ac_sed_conf_input=`$as_echo "$configure_input" | 20765 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20766 *) ac_sed_conf_input=$configure_input;; 20767 esac 20768 20769 case $ac_tag in 20770 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20772 esac 20773 ;; 20774 esac 20775 20776 ac_dir=`$as_dirname -- "$ac_file" || 20777$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20778 X"$ac_file" : 'X\(//\)[^/]' \| \ 20779 X"$ac_file" : 'X\(//\)$' \| \ 20780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20781$as_echo X"$ac_file" | 20782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20783 s//\1/ 20784 q 20785 } 20786 /^X\(\/\/\)[^/].*/{ 20787 s//\1/ 20788 q 20789 } 20790 /^X\(\/\/\)$/{ 20791 s//\1/ 20792 q 20793 } 20794 /^X\(\/\).*/{ 20795 s//\1/ 20796 q 20797 } 20798 s/.*/./; q'` 20799 as_dir="$ac_dir"; as_fn_mkdir_p 20800 ac_builddir=. 20801 20802case "$ac_dir" in 20803.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20804*) 20805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20806 # A ".." for each directory in $ac_dir_suffix. 20807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20808 case $ac_top_builddir_sub in 20809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20811 esac ;; 20812esac 20813ac_abs_top_builddir=$ac_pwd 20814ac_abs_builddir=$ac_pwd$ac_dir_suffix 20815# for backward compatibility: 20816ac_top_builddir=$ac_top_build_prefix 20817 20818case $srcdir in 20819 .) # We are building in place. 20820 ac_srcdir=. 20821 ac_top_srcdir=$ac_top_builddir_sub 20822 ac_abs_top_srcdir=$ac_pwd ;; 20823 [\\/]* | ?:[\\/]* ) # Absolute name. 20824 ac_srcdir=$srcdir$ac_dir_suffix; 20825 ac_top_srcdir=$srcdir 20826 ac_abs_top_srcdir=$srcdir ;; 20827 *) # Relative name. 20828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20829 ac_top_srcdir=$ac_top_build_prefix$srcdir 20830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20831esac 20832ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20833 20834 20835 case $ac_mode in 20836 :F) 20837 # 20838 # CONFIG_FILE 20839 # 20840 20841 case $INSTALL in 20842 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20843 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20844 esac 20845 ac_MKDIR_P=$MKDIR_P 20846 case $MKDIR_P in 20847 [\\/$]* | ?:[\\/]* ) ;; 20848 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20849 esac 20850_ACEOF 20851 20852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20853# If the template does not know about datarootdir, expand it. 20854# FIXME: This hack should be removed a few years after 2.60. 20855ac_datarootdir_hack=; ac_datarootdir_seen= 20856ac_sed_dataroot=' 20857/datarootdir/ { 20858 p 20859 q 20860} 20861/@datadir@/p 20862/@docdir@/p 20863/@infodir@/p 20864/@localedir@/p 20865/@mandir@/p' 20866case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20867*datarootdir*) ac_datarootdir_seen=yes;; 20868*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20870$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20871_ACEOF 20872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20873 ac_datarootdir_hack=' 20874 s&@datadir@&$datadir&g 20875 s&@docdir@&$docdir&g 20876 s&@infodir@&$infodir&g 20877 s&@localedir@&$localedir&g 20878 s&@mandir@&$mandir&g 20879 s&\\\${datarootdir}&$datarootdir&g' ;; 20880esac 20881_ACEOF 20882 20883# Neutralize VPATH when `$srcdir' = `.'. 20884# Shell code in configure.ac might set extrasub. 20885# FIXME: do we really want to maintain this feature? 20886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20887ac_sed_extra="$ac_vpsub 20888$extrasub 20889_ACEOF 20890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20891:t 20892/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20893s|@configure_input@|$ac_sed_conf_input|;t t 20894s&@top_builddir@&$ac_top_builddir_sub&;t t 20895s&@top_build_prefix@&$ac_top_build_prefix&;t t 20896s&@srcdir@&$ac_srcdir&;t t 20897s&@abs_srcdir@&$ac_abs_srcdir&;t t 20898s&@top_srcdir@&$ac_top_srcdir&;t t 20899s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20900s&@builddir@&$ac_builddir&;t t 20901s&@abs_builddir@&$ac_abs_builddir&;t t 20902s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20903s&@INSTALL@&$ac_INSTALL&;t t 20904s&@MKDIR_P@&$ac_MKDIR_P&;t t 20905$ac_datarootdir_hack 20906" 20907eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20908 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20909 20910test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20911 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20912 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20913 "$ac_tmp/out"`; test -z "$ac_out"; } && 20914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20915which seems to be undefined. Please make sure it is defined" >&5 20916$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20917which seems to be undefined. Please make sure it is defined" >&2;} 20918 20919 rm -f "$ac_tmp/stdin" 20920 case $ac_file in 20921 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20922 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20923 esac \ 20924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20925 ;; 20926 20927 20928 20929 esac 20930 20931 20932 case $ac_file$ac_mode in 20933 "Makefile":F) 20934 tmpmk=confmk$$.tmp 20935 { 20936 if test ${VCS+set}; then 20937 : 20938 elif svn info "$srcdir" > /dev/null 2>&1; then 20939 VCS='svn' 20940 elif test -d "$srcdir/.git/svn"; then 20941 VCS='git svn' 20942 elif test -d "$srcdir/.git"; then 20943 VCS='git' 20944 else 20945 VCS='echo cannot' 20946 fi 20947 case "$VCS" in #( 20948 svn) : 20949 VCSUP='$(VCS) up $(SVNUPOPTIONS)' ;; #( 20950 "git svn") : 20951 VCSUP='$(VCS) rebase $(GITSVNREBASEOPTIONS)' ;; #( 20952 git) : 20953 VCSUP='$(VCS) pull $(GITPULLOPTIONS)' ;; #( 20954 *) : 20955 VCSUP='$(VCS)' ;; 20956esac 20957 sed '/^MISSING/s/\$U\././g;/^VCS *=/s#@VCS@#'"$VCS"'#;/^VCSUP *=/s#@VCSUP@#'"$VCSUP"'#' Makefile 20958 echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)' 20959 if test "$gnumake" != yes; then 20960 echo '$(MKFILES): $(srcdir)/common.mk' 20961 sed 's/{\$([^(){}]*)[^{}]*}//g' ${srcdir}/common.mk 20962 else 20963 echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk' 20964 fi 20965 } > $tmpmk && if ! grep '^ruby:' $tmpmk > /dev/null; then 20966 if test "${gnumake}" = yes; then 20967 tmpgmk=confgmk$$.tmp 20968 { 20969 echo "include $tmpmk" 20970 echo "-include uncommon.mk" 20971 } > $tmpgmk 20972 else 20973 tmpgmk=$tmpmk 20974 fi && 20975 test -z "`${MAKE-make} -f $tmpgmk info-program | grep '^PROGRAM=ruby$'`" && 20976 echo 'ruby: $(PROGRAM);' >> $tmpmk 20977 test "$tmpmk" = "$tmpgmk" || rm -f "$tmpgmk" 20978 fi && mv -f $tmpmk Makefile ;; 20979 "$ruby_pc":F) 20980 if sed 's/\$(\([A-Za-z_][A-Za-z0-9_]*\))/${\1}/g;s/@[A-Za-z_][A-Za-z0-9_]*@//' $ruby_pc > ruby.tmp.pc && 20981 { 20982 test -z "$PKG_CONFIG" || 20983 PKG_CONFIG_PATH=. $PKG_CONFIG --print-errors ruby.tmp 20984 } 20985 then 20986 mv -f ruby.tmp.pc $ruby_pc 20987 else 20988 exit 1 20989 fi 20990 ;; 20991 20992 esac 20993done # for ac_tag 20994 20995 20996as_fn_exit 0 20997_ACEOF 20998ac_clean_files=$ac_clean_files_save 20999 21000test $ac_write_fail = 0 || 21001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21002 21003 21004# configure is writing to config.log, and then calls config.status. 21005# config.status does its own redirection, appending to config.log. 21006# Unfortunately, on DOS this fails, as config.log is still kept open 21007# by configure, so config.status won't be able to write to it; its 21008# output is simply discarded. So we exec the FD to /dev/null, 21009# effectively closing config.log, so it can be properly (re)opened and 21010# appended to by config.status. When coming back to configure, we 21011# need to make the FD available again. 21012if test "$no_create" != yes; then 21013 ac_cs_success=: 21014 ac_config_status_args= 21015 test "$silent" = yes && 21016 ac_config_status_args="$ac_config_status_args --quiet" 21017 exec 5>/dev/null 21018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21019 exec 5>>config.log 21020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21021 # would make configure fail if this is the last instruction. 21022 $ac_cs_success || as_fn_exit 1 21023fi 21024if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21026$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21027fi 21028 21029} 21030} 21031